mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
1a74d8d1f0
Samba now features a pluggable passdb interface, along the same lines as the
one in use in the auth subsystem. In this case, only one backend may be active
at a time by the 'normal' interface, and only one backend per passdb_context is
permitted outside that.
This pluggable interface is designed to allow any number of passdb backends to
be compiled in, with the selection at runtime. The 'passdb backend' paramater
has been created (and documented!) to support this.
As such, configure has been modfied to allow (for example) --with-ldap and the
old smbpasswd to be selected at the same time.
This patch also introduces two new backends: smbpasswd_nua and tdbsam_nua.
These two backends accept 'non unix accounts', where the user does *not* exist
in /etc/passwd. These accounts' don't have UIDs in the unix sense, but to
avoid conflicts in the algroitmic mapping of RIDs, they use the values
specified in the 'non unix account range' paramter - in the same way as the
winbind ranges are specifed.
While I was at it, I cleaned up some of the code in pdb_tdb (code copied
directly from smbpasswd and not really considered properly). Most of this was
to do with % macro expansion on stored data. It isn't easy to get the macros
into the tdb, and the first password change will 'expand' them. tdbsam needs
to use a similar system to pdb_ldap in this regard.
This patch only makes minor adjustments to pdb_nisplus and pdb_ldap, becouse I
don't have the test facilities for these. I plan to incoroprate at least
pdb_ldap into this scheme after consultation with Jerry.
Each (converted) passdb module now no longer has any 'static' variables, and
only exports 1 init function outside its .c file.
The non-unix-account support in this patch has been proven! It is now possible
to join a win2k machine to a Samba PDC without an account in /etc/passwd!
Other changes:
Minor interface adjustments:
pdb_delete_sam_account() now takes a SAM_ACCOUNT, not a char*.
pdb_update_sam_account() no longer takes the 'override' argument that was being
ignored so often (every other passdb backend). Extra checks have been added in
some places.
Minor code changes:
smbpasswd no longer attempts to initialise the passdb at startup, this is
now done on first use.
pdbedit has lost some of its 'machine account' logic, as this behaviour is now
controlled by the passdb subsystem directly.
The samr subsystem no longer calls 'local password change', but does the pdb
interactions directly. This allow the ACB_ flags specifed to be transferred
direct to the backend, without interference.
Doco:
I've updated the doco to reflect some of the changes, and removed some paramters
no longer applicable to HEAD.
(This used to be commit ff354c99c5
)
14031 lines
375 KiB
Bash
Executable File
14031 lines
375 KiB
Bash
Executable File
#! /bin/sh
|
|
|
|
# Guess values for system-dependent variables and create Makefiles.
|
|
# Generated automatically using autoconf version 2.13
|
|
# 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/samba
|
|
ac_help="$ac_help
|
|
--enable-debug turn on debugging [default=no]"
|
|
ac_help="$ac_help
|
|
--enable-developer turn on developer warnings and debugging [default=no]"
|
|
ac_help="$ac_help
|
|
--enable-krb5developer turn on developer warnings and debugging, except -Wstrict-prototypes [default=no]"
|
|
ac_help="$ac_help
|
|
--enable-dmalloc enable heap debugging [default=no]"
|
|
ac_help="$ac_help
|
|
--with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
|
|
ac_help="$ac_help
|
|
--with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
|
|
ac_help="$ac_help
|
|
--with-smbwrapper Include SMB wrapper support (default=no) "
|
|
ac_help="$ac_help
|
|
--with-afs Include AFS clear-text auth support (default=no) "
|
|
ac_help="$ac_help
|
|
--with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
|
|
ac_help="$ac_help
|
|
--with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
|
|
ac_help="$ac_help
|
|
--with-automount Include AUTOMOUNT support (default=no)"
|
|
ac_help="$ac_help
|
|
--with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
|
|
ac_help="$ac_help
|
|
--with-pam Include PAM support (default=no)"
|
|
ac_help="$ac_help
|
|
--with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
|
|
ac_help="$ac_help
|
|
--with-tdbsam Include experimental TDB SAM support (default=no)"
|
|
ac_help="$ac_help
|
|
--with-ldapsam Include experimental LDAP SAM support (default=no)"
|
|
ac_help="$ac_help
|
|
--with-nisplussam Include NISPLUS SAM support (default=no)"
|
|
ac_help="$ac_help
|
|
--with-nisplus-home Include NISPLUS_HOME support (default=no)"
|
|
ac_help="$ac_help
|
|
--with-ssl Include SSL support (default=no)
|
|
--with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
|
|
--with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
|
|
ac_help="$ac_help
|
|
--with-syslog Include experimental SYSLOG support (default=no)"
|
|
ac_help="$ac_help
|
|
--with-profiling-data Include gathering source code profile information (default=no)"
|
|
ac_help="$ac_help
|
|
--with-quotas Include experimental disk-quota support (default=no)"
|
|
ac_help="$ac_help
|
|
--with-utmp Include experimental utmp accounting (default=no)"
|
|
ac_help="$ac_help
|
|
--with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
|
|
ac_help="$ac_help
|
|
--with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
|
|
ac_help="$ac_help
|
|
--with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
|
|
ac_help="$ac_help
|
|
--with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
|
|
ac_help="$ac_help
|
|
--with-spinlocks Use spin locks instead of fcntl locks (default=no) "
|
|
ac_help="$ac_help
|
|
--with-acl-support Include ACL support (default=no)"
|
|
ac_help="$ac_help
|
|
--with-winbind Build winbind (default, if supported by OS)"
|
|
ac_help="$ac_help
|
|
--with-included-popt use bundled popt library, not from system"
|
|
|
|
# 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"
|
|
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=include/includes.h
|
|
|
|
# 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
|
|
|
|
if test -r "$cache_file"; then
|
|
echo "loading cache $cache_file"
|
|
. $cache_file
|
|
else
|
|
echo "creating cache $cache_file"
|
|
> $cache_file
|
|
fi
|
|
|
|
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
|
|
|
|
|
|
|
|
# we want to be compatible with older versions of Samba
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# compile with optimisation and without debugging by default
|
|
CFLAGS="-O ${CFLAGS}"
|
|
|
|
# Check whether --enable-debug or --disable-debug was given.
|
|
if test "${enable_debug+set}" = set; then
|
|
enableval="$enable_debug"
|
|
if eval "test x$enable_debug = xyes"; then
|
|
CFLAGS="${CFLAGS} -g"
|
|
fi
|
|
fi
|
|
|
|
|
|
# Check whether --enable-developer or --disable-developer was given.
|
|
if test "${enable_developer+set}" = set; then
|
|
enableval="$enable_developer"
|
|
if eval "test x$enable_developer = xyes"; then
|
|
CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
|
|
fi
|
|
fi
|
|
|
|
|
|
# Check whether --enable-krb5developer or --disable-krb5developer was given.
|
|
if test "${enable_krb5developer+set}" = set; then
|
|
enableval="$enable_krb5developer"
|
|
if eval "test x$enable_krb5developer = xyes"; then
|
|
CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
|
|
fi
|
|
fi
|
|
|
|
|
|
# Check whether --enable-dmalloc or --disable-dmalloc was given.
|
|
if test "${enable_dmalloc+set}" = set; then
|
|
enableval="$enable_dmalloc"
|
|
:
|
|
fi
|
|
|
|
|
|
if test "x$enable_dmalloc" = xyes
|
|
then
|
|
cat >> confdefs.h <<\EOF
|
|
#define ENABLE_DMALLOC 1
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define DMALLOC_FUNC_CHECK 1
|
|
EOF
|
|
|
|
LIBS="$LIBS -ldmalloc"
|
|
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:662: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'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:692: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'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*)
|
|
# 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:743: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'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 $LDFLAGS) works""... $ac_c" 1>&6
|
|
echo "configure:775: checking whether the C compiler ($CC $CFLAGS $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 786 "configure"
|
|
#include "confdefs.h"
|
|
|
|
main(){return(0);}
|
|
EOF
|
|
if { (eval echo configure:791: \"$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 $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
echo "configure:817: checking whether the C compiler ($CC $CFLAGS $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:822: checking whether we are using GNU C" >&5
|
|
if eval "test \"`echo '$''{'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:831: \"$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:850: checking whether ${CC-cc} accepts -g" >&5
|
|
if eval "test \"`echo '$''{'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
|
|
|
|
ac_aux_dir=
|
|
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; 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
|
|
fi
|
|
done
|
|
if test -z "$ac_aux_dir"; then
|
|
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|
fi
|
|
ac_config_guess=$ac_aux_dir/config.guess
|
|
ac_config_sub=$ac_aux_dir/config.sub
|
|
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|
|
|
# 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:912: checking for a BSD compatible install" >&5
|
|
if test -z "$INSTALL"; then
|
|
if eval "test \"`echo '$''{'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.
|
|
:
|
|
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_PROGRAM}'
|
|
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
|
|
for ac_prog in gawk mawk 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:969: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'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 for POSIXized ISC""... $ac_c" 1>&6
|
|
echo "configure:1000: 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
|
|
|
|
|
|
if test "x$CC" != xcc; then
|
|
echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
|
|
echo "configure:1023: checking whether $CC and cc understand -c and -o together" >&5
|
|
else
|
|
echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
|
|
echo "configure:1026: checking whether cc understands -c and -o together" >&5
|
|
fi
|
|
set dummy $CC; ac_cc="`echo $2 |
|
|
sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
echo 'foo(){}' > conftest.c
|
|
# Make sure it works both with $CC and with simple cc.
|
|
# We do the test twice because some compilers refuse to overwrite an
|
|
# existing .o file with -o, though they will create one.
|
|
ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
|
|
if { (eval echo configure:1038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
|
|
test -f conftest.o && { (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
|
|
then
|
|
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
|
|
if test "x$CC" != xcc; then
|
|
# Test first that cc exists at all.
|
|
if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
|
|
ac_try='cc -c conftest.c -o conftest.o 1>&5'
|
|
if { (eval echo configure:1046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
|
|
test -f conftest.o && { (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
|
|
then
|
|
# cc works too.
|
|
:
|
|
else
|
|
# cc exists but doesn't like -o.
|
|
eval ac_cv_prog_cc_${ac_cc}_c_o=no
|
|
fi
|
|
fi
|
|
fi
|
|
else
|
|
eval ac_cv_prog_cc_${ac_cc}_c_o=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define NO_MINUS_C_MINUS_O 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
|
|
BROKEN_CC=
|
|
else
|
|
BROKEN_CC=#
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
|
|
echo "configure:1081: checking that the C compiler understands volatile" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1087 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
int main() {
|
|
volatile int i = 0
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_volatile=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_volatile=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_volatile" 1>&6
|
|
if test x"$samba_cv_volatile" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_VOLATILE 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
# Make sure we can run config.sub.
|
|
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|
fi
|
|
|
|
echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|
echo "configure:1143: checking host system type" >&5
|
|
|
|
host_alias=$host
|
|
case "$host_alias" in
|
|
NONE)
|
|
case $nonopt in
|
|
NONE)
|
|
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
|
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|
fi ;;
|
|
*) host_alias=$nonopt ;;
|
|
esac ;;
|
|
esac
|
|
|
|
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
echo "$ac_t""$host" 1>&6
|
|
|
|
echo $ac_n "checking target system type""... $ac_c" 1>&6
|
|
echo "configure:1164: checking target system type" >&5
|
|
|
|
target_alias=$target
|
|
case "$target_alias" in
|
|
NONE)
|
|
case $nonopt in
|
|
NONE) target_alias=$host_alias ;;
|
|
*) target_alias=$nonopt ;;
|
|
esac ;;
|
|
esac
|
|
|
|
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
|
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
echo "$ac_t""$target" 1>&6
|
|
|
|
echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|
echo "configure:1182: checking build system type" >&5
|
|
|
|
build_alias=$build
|
|
case "$build_alias" in
|
|
NONE)
|
|
case $nonopt in
|
|
NONE) build_alias=$host_alias ;;
|
|
*) build_alias=$nonopt ;;
|
|
esac ;;
|
|
esac
|
|
|
|
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
echo "$ac_t""$build" 1>&6
|
|
|
|
test "$host_alias" != "$target_alias" &&
|
|
test "$program_prefix$program_suffix$program_transform_name" = \
|
|
NONENONEs,x,x, &&
|
|
program_prefix=${target_alias}-
|
|
|
|
|
|
case "$host_os" in
|
|
*irix6*) cat >> confdefs.h <<\EOF
|
|
#include <standards.h>
|
|
EOF
|
|
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
|
|
echo "configure:1216: checking config.cache system type" >&5
|
|
if { test x"${ac_cv_host_system_type+set}" = x"set" &&
|
|
test x"$ac_cv_host_system_type" != x"$host"; } ||
|
|
{ test x"${ac_cv_build_system_type+set}" = x"set" &&
|
|
test x"$ac_cv_build_system_type" != x"$build"; } ||
|
|
{ test x"${ac_cv_target_system_type+set}" = x"set" &&
|
|
test x"$ac_cv_target_system_type" != x"$target"; }; then
|
|
echo "$ac_t""different" 1>&6
|
|
{ echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
|
|
else
|
|
echo "$ac_t""same" 1>&6
|
|
fi
|
|
ac_cv_host_system_type="$host"
|
|
ac_cv_build_system_type="$build"
|
|
ac_cv_target_system_type="$target"
|
|
|
|
|
|
#
|
|
# Config CPPFLAG settings for strange OS's that must be set
|
|
# before other tests.
|
|
#
|
|
case "$host_os" in
|
|
# Try to work out if this is the native HPUX compiler that uses the -Ae flag.
|
|
*hpux*)
|
|
echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
|
|
echo "configure:1241: checking whether ${CC-cc} accepts -Ae" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
echo 'void f(){}' > conftest.c
|
|
if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
|
|
ac_cv_prog_cc_Ae=yes
|
|
else
|
|
ac_cv_prog_cc_Ae=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
|
|
# mmap on HPUX is completely broken...
|
|
cat >> confdefs.h <<\EOF
|
|
#define MMAP_BLACKLIST 1
|
|
EOF
|
|
|
|
if test $ac_cv_prog_cc_Ae = yes; then
|
|
CPPFLAGS="$CPPFLAGS -Ae"
|
|
fi
|
|
#
|
|
# Defines needed for HPUX support.
|
|
# HPUX has bigcrypt but (sometimes?) doesn't use it for
|
|
# password hashing - hence the USE_BOTH_CRYPT_CALLS define.
|
|
#
|
|
case `uname -r` in
|
|
*9*|*10*)
|
|
CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
|
|
cat >> confdefs.h <<\EOF
|
|
#define USE_BOTH_CRYPT_CALLS 1
|
|
EOF
|
|
|
|
;;
|
|
*11*)
|
|
CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
|
|
cat >> confdefs.h <<\EOF
|
|
#define USE_BOTH_CRYPT_CALLS 1
|
|
EOF
|
|
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
#
|
|
# CRAY Unicos has broken const handling
|
|
*unicos*)
|
|
echo "$ac_t""disabling const" 1>&6
|
|
CPPFLAGS="$CPPFLAGS -Dconst="
|
|
;;
|
|
|
|
#
|
|
# AIX4.x doesn't even admit to having large
|
|
# files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
|
|
#
|
|
*aix4*)
|
|
echo "$ac_t""enabling large file support" 1>&6
|
|
CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
|
|
;;
|
|
#
|
|
# Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
|
|
# to the existance of large files..
|
|
# Note that -D_LARGEFILE64_SOURCE is different from the Sun
|
|
# recommendations on large file support, however it makes the
|
|
# compile work using gcc 2.7 and 2.8, whereas using the Sun
|
|
# recommendation makes the compile fail on gcc2.7. JRA.
|
|
#
|
|
*solaris*)
|
|
case `uname -r` in
|
|
5.0*|5.1*|5.2*|5.3*|5.5*)
|
|
echo "$ac_t""no large file support" 1>&6
|
|
;;
|
|
5.*)
|
|
echo "$ac_t""enabling large file support" 1>&6
|
|
if test "$ac_cv_prog_gcc" = yes; then
|
|
${CC-cc} -v >conftest.c 2>&1
|
|
ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
|
|
rm -fr conftest.c
|
|
case "$ac_cv_gcc_compiler_version_number" in
|
|
*"gcc version 2.6"*|*"gcc version 2.7"*)
|
|
CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
|
|
;;
|
|
*)
|
|
CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
;;
|
|
esac
|
|
else
|
|
CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
fi
|
|
;;
|
|
esac
|
|
;;
|
|
#
|
|
# Tests needed for SINIX large file support.
|
|
#
|
|
*sysv4*)
|
|
if test $host = mips-sni-sysv4 ; then
|
|
echo $ac_n "checking for LFS support""... $ac_c" 1>&6
|
|
echo "configure:1341: checking for LFS support" >&5
|
|
old_CPPFLAGS="$CPPFLAGS"
|
|
CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
|
|
if test "$cross_compiling" = yes; then
|
|
SINIX_LFS_SUPPORT=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1348 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <unistd.h>
|
|
main () {
|
|
#if _LFS64_LARGEFILE == 1
|
|
exit(0);
|
|
#else
|
|
exit(1);
|
|
#endif
|
|
}
|
|
EOF
|
|
if { (eval echo configure:1360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
SINIX_LFS_SUPPORT=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
SINIX_LFS_SUPPORT=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
CPPFLAGS="$old_CPPFLAGS"
|
|
if test x$SINIX_LFS_SUPPORT = xyes ; then
|
|
CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
|
|
CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
|
|
LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
|
|
LIBS="`getconf LFS64_LIBS` $LIBS"
|
|
fi
|
|
echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
|
|
fi
|
|
;;
|
|
|
|
# Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
|
|
#
|
|
*linux*)
|
|
echo $ac_n "checking for LFS support""... $ac_c" 1>&6
|
|
echo "configure:1387: checking for LFS support" >&5
|
|
old_CPPFLAGS="$CPPFLAGS"
|
|
CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
|
|
if test "$cross_compiling" = yes; then
|
|
LINUX_LFS_SUPPORT=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1394 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <unistd.h>
|
|
#include <sys/utsname.h>
|
|
main() {
|
|
#if _LFS64_LARGEFILE == 1
|
|
struct utsname uts;
|
|
char *release;
|
|
int major, minor;
|
|
|
|
/* Ensure this is glibc 2.2 or higher */
|
|
#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
|
|
int libc_major = __GLIBC__;
|
|
int libc_minor = __GLIBC_MINOR__;
|
|
|
|
if (libc_major < 2)
|
|
exit(1);
|
|
if (libc_minor < 2)
|
|
exit(1);
|
|
#endif
|
|
|
|
/* Ensure this is kernel 2.4 or higher */
|
|
|
|
uname(&uts);
|
|
release = uts.release;
|
|
major = atoi(strsep(&release, "."));
|
|
minor = atoi(strsep(&release, "."));
|
|
|
|
if (major > 2 || (major == 2 && minor > 3))
|
|
exit(0);
|
|
exit(1);
|
|
#else
|
|
exit(1);
|
|
#endif
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
LINUX_LFS_SUPPORT=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
LINUX_LFS_SUPPORT=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
CPPFLAGS="$old_CPPFLAGS"
|
|
if test x$LINUX_LFS_SUPPORT = xyes ; then
|
|
CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
|
|
fi
|
|
echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
|
|
;;
|
|
|
|
*hurd*)
|
|
echo $ac_n "checking for LFS support""... $ac_c" 1>&6
|
|
echo "configure:1453: checking for LFS support" >&5
|
|
old_CPPFLAGS="$CPPFLAGS"
|
|
CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
|
|
if test "$cross_compiling" = yes; then
|
|
GLIBC_LFS_SUPPORT=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1460 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <unistd.h>
|
|
main () {
|
|
#if _LFS64_LARGEFILE == 1
|
|
exit(0);
|
|
#else
|
|
exit(1);
|
|
#endif
|
|
}
|
|
EOF
|
|
if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
GLIBC_LFS_SUPPORT=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
GLIBC_LFS_SUPPORT=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
CPPFLAGS="$old_CPPFLAGS"
|
|
if test x$GLIBC_LFS_SUPPORT = xyes ; then
|
|
CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
|
|
fi
|
|
echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
|
|
;;
|
|
|
|
esac
|
|
|
|
echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|
echo "configure:1494: checking for inline" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_cv_c_inline=no
|
|
for ac_kw in inline __inline__ __inline; do
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1501 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
} $ac_kw foo() {
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:1508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_c_inline=$ac_kw; break
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
done
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
case "$ac_cv_c_inline" in
|
|
inline | yes) ;;
|
|
no) cat >> confdefs.h <<\EOF
|
|
#define inline
|
|
EOF
|
|
;;
|
|
*) cat >> confdefs.h <<EOF
|
|
#define inline $ac_cv_c_inline
|
|
EOF
|
|
;;
|
|
esac
|
|
|
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|
echo "configure:1534: 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 \"`echo '$''{'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 1549 "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:1555: \"$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 1566 "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:1572: \"$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 1583 "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:1589: \"$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
|
|
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|
echo "configure:1614: checking for ANSI C header files" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1619 "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:1627: \"$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 1644 "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 1662 "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 1683 "configure"
|
|
#include "confdefs.h"
|
|
#include <ctype.h>
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
#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:1694: \"$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
|
|
|
|
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:1722: checking for $ac_hdr that defines DIR" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1727 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <$ac_hdr>
|
|
int main() {
|
|
DIR *dirp = 0;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:1735: \"$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:1760: checking for opendir in -ldir" >&5
|
|
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'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 1768 "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:1779: \"$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:1801: checking for opendir in -lx" >&5
|
|
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'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 1809 "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:1820: \"$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 whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
|
echo "configure:1843: checking whether time.h and sys/time.h may both be included" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1848 "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:1857: \"$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 for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
|
echo "configure:1878: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1883 "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:1899: \"$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
|
|
|
|
for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:1923: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1928 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:1933: \"$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 unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:1963: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1968 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:1973: \"$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 compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:2003: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2008 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2013: \"$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 sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:2043: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2048 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2053: \"$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 sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:2083: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2088 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2093: \"$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 sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:2123: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2128 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2133: \"$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 sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:2163: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2168 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2173: \"$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 security/pam_modules.h security/_pam_macros.h ldap.h lber.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:2203: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2208 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2213: \"$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
|
|
|
|
|
|
#
|
|
# HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
|
|
# This causes configure to fail to detect it. Check for shadow separately on HPUX.
|
|
#
|
|
case "$host_os" in
|
|
*hpux*)
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2247 "configure"
|
|
#include "confdefs.h"
|
|
#include <shadow.h>
|
|
int main() {
|
|
struct spwd testme
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:2254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_header_shadow_h=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_header_shadow_h=no
|
|
fi
|
|
rm -f conftest*
|
|
if test x"$ac_cv_header_shadow_h" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SHADOW_H 1
|
|
EOF
|
|
|
|
fi
|
|
;;
|
|
esac
|
|
for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:2276: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2281 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2286: \"$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 nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:2316: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2321 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2326: \"$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 stropts.h poll.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:2356: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2361 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2366: \"$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 sys/capability.h syscall.h sys/syscall.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:2396: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2401 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2406: \"$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 sys/acl.h sys/cdefs.h glob.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:2436: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2441 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2446: \"$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 experimental utmp support (lastlog on some BSD-like systems)
|
|
for ac_hdr in utmp.h utmpx.h lastlog.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:2478: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2483 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2488: \"$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 quotas on Veritas VxFS filesystems
|
|
for ac_hdr in sys/fs/vx_quota.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:2520: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2525 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2530: \"$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 quotas on Linux XFS filesystems
|
|
for ac_hdr in linux/xqm.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:2562: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2567 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2572: \"$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 size of int""... $ac_c" 1>&6
|
|
echo "configure:2600: checking size of int" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_sizeof_int=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2608 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
main()
|
|
{
|
|
FILE *f=fopen("conftestval", "w");
|
|
if (!f) exit(1);
|
|
fprintf(f, "%d\n", sizeof(int));
|
|
exit(0);
|
|
}
|
|
EOF
|
|
if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ac_cv_sizeof_int=`cat conftestval`
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ac_cv_sizeof_int=0
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
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:2639: checking size of long" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_sizeof_long=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2647 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
main()
|
|
{
|
|
FILE *f=fopen("conftestval", "w");
|
|
if (!f) exit(1);
|
|
fprintf(f, "%d\n", sizeof(long));
|
|
exit(0);
|
|
}
|
|
EOF
|
|
if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ac_cv_sizeof_long=`cat conftestval`
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ac_cv_sizeof_long=0
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define SIZEOF_LONG $ac_cv_sizeof_long
|
|
EOF
|
|
|
|
|
|
echo $ac_n "checking size of short""... $ac_c" 1>&6
|
|
echo "configure:2678: checking size of short" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_sizeof_short=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2686 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
main()
|
|
{
|
|
FILE *f=fopen("conftestval", "w");
|
|
if (!f) exit(1);
|
|
fprintf(f, "%d\n", sizeof(short));
|
|
exit(0);
|
|
}
|
|
EOF
|
|
if { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ac_cv_sizeof_short=`cat conftestval`
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ac_cv_sizeof_short=0
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
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 for working const""... $ac_c" 1>&6
|
|
echo "configure:2718: checking for working const" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2723 "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:2772: \"$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 for inline""... $ac_c" 1>&6
|
|
echo "configure:2793: checking for inline" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_cv_c_inline=no
|
|
for ac_kw in inline __inline__ __inline; do
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2800 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
} $ac_kw foo() {
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:2807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_c_inline=$ac_kw; break
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
done
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
case "$ac_cv_c_inline" in
|
|
inline | yes) ;;
|
|
no) cat >> confdefs.h <<\EOF
|
|
#define inline
|
|
EOF
|
|
;;
|
|
*) cat >> confdefs.h <<EOF
|
|
#define inline $ac_cv_c_inline
|
|
EOF
|
|
;;
|
|
esac
|
|
|
|
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
|
echo "configure:2833: checking whether byte ordering is bigendian" >&5
|
|
if eval "test \"`echo '$''{'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 2840 "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:2851: \"$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 2855 "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:2866: \"$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 2886 "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:2899: \"$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
|
|
|
|
echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
|
|
echo "configure:2923: checking whether char is unsigned" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$GCC" = yes; then
|
|
# GCC predefines this symbol on systems where it applies.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2930 "configure"
|
|
#include "confdefs.h"
|
|
#ifdef __CHAR_UNSIGNED__
|
|
yes
|
|
#endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "yes" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ac_cv_c_char_unsigned=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_c_char_unsigned=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
else
|
|
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 2952 "configure"
|
|
#include "confdefs.h"
|
|
/* volatile prevents gcc2 from optimizing the test away on sparcs. */
|
|
#if !defined(__STDC__) || __STDC__ != 1
|
|
#define volatile
|
|
#endif
|
|
main() {
|
|
volatile char c = 255; exit(c < 0);
|
|
}
|
|
EOF
|
|
if { (eval echo configure:2962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ac_cv_c_char_unsigned=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ac_cv_c_char_unsigned=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
|
|
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define __CHAR_UNSIGNED__ 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
|
echo "configure:2987: checking return type of signal handlers" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2992 "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:3009: \"$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 uid_t in sys/types.h""... $ac_c" 1>&6
|
|
echo "configure:3028: checking for uid_t in sys/types.h" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3033 "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 mode_t""... $ac_c" 1>&6
|
|
echo "configure:3062: checking for mode_t" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3067 "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*
|
|
ac_cv_type_mode_t=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_type_mode_t=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
echo "$ac_t""$ac_cv_type_mode_t" 1>&6
|
|
if test $ac_cv_type_mode_t = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define mode_t int
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
|
echo "configure:3095: checking for off_t" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3100 "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*
|
|
ac_cv_type_off_t=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_type_off_t=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|
if test $ac_cv_type_off_t = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define off_t long
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
|
echo "configure:3128: checking for size_t" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3133 "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*
|
|
ac_cv_type_size_t=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_type_size_t=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|
if test $ac_cv_type_size_t = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define size_t unsigned
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
|
echo "configure:3161: checking for pid_t" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3166 "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*
|
|
ac_cv_type_pid_t=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_type_pid_t=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
|
if test $ac_cv_type_pid_t = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define pid_t int
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
|
|
echo "configure:3194: checking for st_rdev in struct stat" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3199 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
int main() {
|
|
struct stat s; s.st_rdev;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_struct_st_rdev=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_struct_st_rdev=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
|
|
if test $ac_cv_struct_st_rdev = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_ST_RDEV 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
|
|
echo "configure:3228: checking for d_off in dirent" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3233 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <unistd.h>
|
|
#include <sys/types.h>
|
|
#include <dirent.h>
|
|
int main() {
|
|
struct dirent d; d.d_off;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_dirent_d_off=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_dirent_d_off=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
|
|
if test $ac_cv_dirent_d_off = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_DIRENT_D_OFF 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ino_t""... $ac_c" 1>&6
|
|
echo "configure:3264: checking for ino_t" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3269 "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])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ac_cv_type_ino_t=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_type_ino_t=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
echo "$ac_t""$ac_cv_type_ino_t" 1>&6
|
|
if test $ac_cv_type_ino_t = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define ino_t unsigned
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for loff_t""... $ac_c" 1>&6
|
|
echo "configure:3297: checking for loff_t" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3302 "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])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ac_cv_type_loff_t=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_type_loff_t=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
echo "$ac_t""$ac_cv_type_loff_t" 1>&6
|
|
if test $ac_cv_type_loff_t = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define loff_t off_t
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for offset_t""... $ac_c" 1>&6
|
|
echo "configure:3330: checking for offset_t" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3335 "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])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ac_cv_type_offset_t=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_type_offset_t=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
echo "$ac_t""$ac_cv_type_offset_t" 1>&6
|
|
if test $ac_cv_type_offset_t = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define offset_t loff_t
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
|
|
echo "configure:3363: checking for ssize_t" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3368 "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*
|
|
ac_cv_type_ssize_t=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_type_ssize_t=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
|
|
if test $ac_cv_type_ssize_t = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define ssize_t int
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
|
|
echo "configure:3396: checking for wchar_t" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3401 "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])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ac_cv_type_wchar_t=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_type_wchar_t=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
|
|
if test $ac_cv_type_wchar_t = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define wchar_t unsigned short
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
############################################
|
|
# for cups support we need libcups, and a handful of header files
|
|
|
|
echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
|
|
echo "configure:3433: checking for httpConnect in -lcups" >&5
|
|
ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lcups $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3441 "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 httpConnect();
|
|
|
|
int main() {
|
|
httpConnect()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3452: \"$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 cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lcups $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
# I wonder if there is a nicer way of doing this?
|
|
|
|
if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
|
|
for ac_hdr in cups/cups.h cups/language.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:3487: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3492 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:3497: \"$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 x"$ac_cv_header_cups_cups_h" = x"yes"; then
|
|
if test x"$ac_cv_header_cups_language_h" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_CUPS 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
############################################
|
|
# we need libdl for PAM and the new VFS code
|
|
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
|
echo "configure:3536: checking for dlopen in -ldl" >&5
|
|
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-ldl $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3544 "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 dlopen();
|
|
|
|
int main() {
|
|
dlopen()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3555: \"$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 -ldl";
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_LIBDL 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
############################################
|
|
# check if the compiler can do immediate structures
|
|
echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
|
|
echo "configure:3583: checking for immediate structures" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3589 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
int main() {
|
|
|
|
#define X_FOOBAR(x) ((FOOBAR) { x })
|
|
typedef struct {unsigned x;} FOOBAR;
|
|
FOOBAR f = X_FOOBAR(1);
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_immediate_structures=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_immediate_structures=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_immediate_structures" 1>&6
|
|
if test x"$samba_cv_immediate_structures" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_IMMEDIATE_STRUCTURES 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
############################################
|
|
# check for unix domain sockets
|
|
echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
|
|
echo "configure:3624: checking for unix domain sockets" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3630 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
#include <stdlib.h>
|
|
#include <stddef.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/un.h>
|
|
int main() {
|
|
|
|
struct sockaddr_un sunaddr;
|
|
sunaddr.sun_family = AF_UNIX;
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_unixsocket=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_unixsocket=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_unixsocket" 1>&6
|
|
if test x"$samba_cv_unixsocket" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UNIXSOCKET 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
|
|
echo "configure:3667: checking for socklen_t type" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3673 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
#if STDC_HEADERS
|
|
#include <stdlib.h>
|
|
#include <stddef.h>
|
|
#endif
|
|
#include <sys/socket.h>
|
|
int main() {
|
|
socklen_t i = 0
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_socklen_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_socklen_t=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_socklen_t" 1>&6
|
|
if test x"$samba_cv_socklen_t" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SOCKLEN_T_TYPE 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
|
|
echo "configure:3707: checking for sig_atomic_t type" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3713 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
#if STDC_HEADERS
|
|
#include <stdlib.h>
|
|
#include <stddef.h>
|
|
#endif
|
|
#include <signal.h>
|
|
int main() {
|
|
sig_atomic_t i = 0
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_sig_atomic_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_sig_atomic_t=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
|
|
if test x"$samba_cv_sig_atomic_t" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SIG_ATOMIC_T_TYPE 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
# stupid headers have the functions but no declaration. grrrr.
|
|
|
|
echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
|
|
echo "configure:3749: checking for errno declaration" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3755 "configure"
|
|
#include "confdefs.h"
|
|
#include <errno.h>
|
|
int main() {
|
|
int i = (int)errno
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_have_errno_decl=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_have_errno_decl=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
|
|
if test x"$ac_cv_have_errno_decl" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_ERRNO_DECL 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
|
|
echo "configure:3784: checking for setresuid declaration" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3790 "configure"
|
|
#include "confdefs.h"
|
|
#include <unistd.h>
|
|
int main() {
|
|
int i = (int)setresuid
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_have_setresuid_decl=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_have_setresuid_decl=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
|
|
if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SETRESUID_DECL 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
|
|
echo "configure:3819: checking for setresgid declaration" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3825 "configure"
|
|
#include "confdefs.h"
|
|
#include <unistd.h>
|
|
int main() {
|
|
int i = (int)setresgid
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_have_setresgid_decl=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_have_setresgid_decl=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
|
|
if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SETRESGID_DECL 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
|
|
echo "configure:3854: checking for asprintf declaration" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3860 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
int main() {
|
|
int i = (int)asprintf
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_have_asprintf_decl=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_have_asprintf_decl=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
|
|
if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_ASPRINTF_DECL 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
|
|
echo "configure:3889: checking for vasprintf declaration" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3895 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
int main() {
|
|
int i = (int)vasprintf
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_have_vasprintf_decl=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_have_vasprintf_decl=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
|
|
if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_VASPRINTF_DECL 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
|
|
echo "configure:3924: checking for vsnprintf declaration" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3930 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
int main() {
|
|
int i = (int)vsnprintf
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_have_vsnprintf_decl=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_have_vsnprintf_decl=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
|
|
if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_VSNPRINTF_DECL 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
|
|
echo "configure:3959: checking for snprintf declaration" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3965 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
int main() {
|
|
int i = (int)snprintf
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_have_snprintf_decl=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_have_snprintf_decl=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
|
|
if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SNPRINTF_DECL 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
# and glibc has setresuid under linux but the function does
|
|
# nothing until kernel 2.1.44! very dumb.
|
|
echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
|
|
echo "configure:3996: checking for real setresuid" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_have_setresuid=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4005 "configure"
|
|
#include "confdefs.h"
|
|
#include <errno.h>
|
|
main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
|
|
EOF
|
|
if { (eval echo configure:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_have_setresuid=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_have_setresuid=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_have_setresuid" 1>&6
|
|
if test x"$samba_cv_have_setresuid" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SETRESUID 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
# Do the same check for setresguid...
|
|
#
|
|
echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
|
|
echo "configure:4035: checking for real setresgid" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_have_setresgid=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4044 "configure"
|
|
#include "confdefs.h"
|
|
#include <unistd.h>
|
|
#include <errno.h>
|
|
main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
|
|
EOF
|
|
if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_have_setresgid=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_have_setresgid=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_have_setresgid" 1>&6
|
|
if test x"$samba_cv_have_setresgid" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SETRESGID 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
|
|
echo "configure:4073: checking for 8-bit clean memcmp" >&5
|
|
if eval "test \"`echo '$''{'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 4081 "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:4091: \"$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}"
|
|
|
|
|
|
###############################################
|
|
# test for where we get crypt() from
|
|
for ac_func in crypt
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:4114: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4119 "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();
|
|
|
|
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
|
|
$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 x"$ac_cv_func_crypt" = x"no"; then
|
|
echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
|
|
echo "configure:4168: checking for crypt in -lcrypt" >&5
|
|
ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'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 4176 "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:4187: \"$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 -lcrypt";
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_CRYPT 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
###############################################
|
|
# Readline included by default unless explicitly asked not to
|
|
test "${with_readline+set}" != "set" && with_readline=yes
|
|
|
|
# test for where we get readline() from
|
|
echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
|
|
echo "configure:4220: checking whether to use readline" >&5
|
|
# Check whether --with-readline or --without-readline was given.
|
|
if test "${with_readline+set}" = set; then
|
|
withval="$with_readline"
|
|
case "$with_readline" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
for ac_hdr in readline.h history.h readline/readline.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4232: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4237 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4242: \"$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 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:4272: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4277 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4282: \"$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 readline.h readline/readline.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4313: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4318 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4323: \"$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
|
|
|
|
for termlib in ncurses curses termcap terminfo termlib; do
|
|
echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
|
|
echo "configure:4346: checking for tgetent in -l${termlib}" >&5
|
|
ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-l${termlib} $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4354 "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 tgetent();
|
|
|
|
int main() {
|
|
tgetent()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4365: \"$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
|
|
TERMLIBS="-l${termlib}"; break
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
done
|
|
echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
|
|
echo "configure:4387: checking for rl_callback_handler_install in -lreadline" >&5
|
|
ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lreadline $TERMLIBS $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4395 "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 rl_callback_handler_install();
|
|
|
|
int main() {
|
|
rl_callback_handler_install()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4406: \"$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
|
|
TERMLIBS="-lreadline $TERMLIBS"
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_LIBREADLINE 1
|
|
EOF
|
|
|
|
break
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
TERMLIBS=
|
|
fi
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
;;
|
|
no)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
*)
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
# Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
|
|
# alternate readline path
|
|
_ldflags=${LDFLAGS}
|
|
_cppflags=${CPPFLAGS}
|
|
|
|
# Add additional search path
|
|
LDFLAGS="-L$with_readline/lib $LDFLAGS"
|
|
CPPFLAGS="-I$with_readline/include $CPPFLAGS"
|
|
|
|
for ac_hdr in readline.h history.h readline/readline.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4457: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4462 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4467: \"$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 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:4497: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4502 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4507: \"$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 readline.h readline/readline.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4538: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4543 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4548: \"$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
|
|
|
|
for termlib in ncurses curses termcap terminfo termlib; do
|
|
echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
|
|
echo "configure:4571: checking for tgetent in -l${termlib}" >&5
|
|
ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-l${termlib} $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4579 "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 tgetent();
|
|
|
|
int main() {
|
|
tgetent()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4590: \"$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
|
|
TERMLIBS="-l${termlib}"; break
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
done
|
|
echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
|
|
echo "configure:4612: checking for rl_callback_handler_install in -lreadline" >&5
|
|
ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lreadline $TERMLIBS $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4620 "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 rl_callback_handler_install();
|
|
|
|
int main() {
|
|
rl_callback_handler_install()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4631: \"$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
|
|
TERMLDFLAGS="-L$with_readline/lib"
|
|
TERMCPPFLAGS="-I$with_readline/include"
|
|
CPPFLAGS="-I$with_readline/include $CPPFLAGS"
|
|
TERMLIBS="-lreadline $TERMLIBS"
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_LIBREADLINE 1
|
|
EOF
|
|
|
|
break
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
TERMLIBS= CPPFLAGS=$_cppflags
|
|
fi
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
LDFLAGS=$_ldflags
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# The readline API changed slightly from readline3 to readline4, so
|
|
# code will generate warnings on one of them unless we have a few
|
|
# special cases.
|
|
echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
|
|
echo "configure:4681: checking for rl_completion_matches in -lreadline" >&5
|
|
ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lreadline $TERMLIBS $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4689 "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 rl_completion_matches();
|
|
|
|
int main() {
|
|
rl_completion_matches()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4700: \"$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_NEW_LIBREADLINE 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
# The following test taken from the cvs sources
|
|
# If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
|
|
# The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
|
|
# libsocket.so which has a bad implementation of gethostbyname (it
|
|
# only looks in /etc/hosts), so we only look for -lsocket if we need
|
|
# it.
|
|
for ac_func in connect
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:4733: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4738 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4761: \"$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 x"$ac_cv_func_connect" = x"no"; then
|
|
case "$LIBS" in
|
|
*-lnsl*) ;;
|
|
*) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
|
|
echo "configure:4789: checking for printf in -lnsl_s" >&5
|
|
ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'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 4797 "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 printf();
|
|
|
|
int main() {
|
|
printf()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4808: \"$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
|
|
;;
|
|
esac
|
|
case "$LIBS" in
|
|
*-lnsl*) ;;
|
|
*) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
|
|
echo "configure:4839: checking for printf in -lnsl" >&5
|
|
ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'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 4847 "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 printf();
|
|
|
|
int main() {
|
|
printf()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4858: \"$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
|
|
;;
|
|
esac
|
|
case "$LIBS" in
|
|
*-lsocket*) ;;
|
|
*) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
|
|
echo "configure:4889: checking for connect in -lsocket" >&5
|
|
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'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 4897 "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 connect();
|
|
|
|
int main() {
|
|
connect()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4908: \"$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
|
|
;;
|
|
esac
|
|
case "$LIBS" in
|
|
*-linet*) ;;
|
|
*) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
|
|
echo "configure:4939: checking for connect in -linet" >&5
|
|
ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'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 4947 "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 connect();
|
|
|
|
int main() {
|
|
connect()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4958: \"$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
|
|
;;
|
|
esac
|
|
if test x"$ac_cv_lib_socket_connect" = x"yes" ||
|
|
test x"$ac_cv_lib_inet_connect" = x"yes"; then
|
|
# ac_cv_func_connect=yes
|
|
# don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_CONNECT 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
###############################################
|
|
# test for where we get get_yp_default_domain() from
|
|
for ac_func in yp_get_default_domain
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5002: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5007 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5030: \"$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 x"$ac_cv_func_yp_get_default_domain" = x"no"; then
|
|
echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
|
|
echo "configure:5056: checking for yp_get_default_domain in -lnsl" >&5
|
|
ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'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 5064 "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 yp_get_default_domain();
|
|
|
|
int main() {
|
|
yp_get_default_domain()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5075: \"$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 -lnsl";
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_YP_GET_DEFAULT_DOMAIN 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
fi
|
|
|
|
# Check if we have execl, if not we need to compile smbrun.
|
|
for ac_func in execl
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5105: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5110 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5133: \"$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 x"$ac_cv_func_execl" = x"no"; then
|
|
RUNPROG="bin/smbrun"
|
|
else
|
|
RUNPROG=""
|
|
fi
|
|
|
|
for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5166: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5171 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5194: \"$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 fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5221: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5226 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5249: \"$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 memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5276: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5281 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5304: \"$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 strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5331: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5336 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5359: \"$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 initgroups select poll rdchk getgrnam getgrent pathconf
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5386: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5391 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5414: \"$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 setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5441: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5446 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5469: \"$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 lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5496: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5501 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5524: \"$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 fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5551: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5556 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5579: \"$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 srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5606: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5611 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5634: \"$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 syslog vsyslog
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5661: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5666 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5689: \"$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
|
|
|
|
# setbuffer is needed for smbtorture
|
|
for ac_func in setbuffer
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5717: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5722 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5745: \"$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
|
|
|
|
|
|
# syscall() is needed for smbwrapper.
|
|
for ac_func in syscall
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5774: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5779 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5802: \"$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 _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5830: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5835 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5858: \"$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 __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5885: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5890 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5913: \"$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 __getcwd _getcwd
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5940: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5945 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5968: \"$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 __xstat __fxstat __lxstat
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:5995: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6000 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6023: \"$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 _stat _lstat _fstat __stat __lstat __fstat
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6050: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6055 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6078: \"$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 _acl __acl _facl __facl _open __open _chdir __chdir
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6105: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6110 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6133: \"$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 _close __close _fchdir __fchdir _fcntl __fcntl
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6160: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6165 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6188: \"$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 getdents _getdents __getdents _lseek __lseek _read __read
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6215: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6220 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6243: \"$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 _write __write _fork __fork
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6270: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6275 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6298: \"$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 _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6325: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6330 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6353: \"$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 __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6380: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6385 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6408: \"$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 pread _pread __pread pread64 _pread64 __pread64
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6435: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6440 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6463: \"$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 pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6490: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6495 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6518: \"$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 open64 _open64 __open64 creat64
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6545: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6550 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6573: \"$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
|
|
|
|
|
|
#
|
|
# stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
|
|
#
|
|
|
|
if test x$ac_cv_func_stat64 = xno ; then
|
|
echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
|
|
echo "configure:6604: checking for stat64 in <sys/stat.h>" >&5
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6606 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if defined(HAVE_UNISTD_H)
|
|
#include <unistd.h>
|
|
#endif
|
|
#include <sys/stat.h>
|
|
|
|
int main() {
|
|
struct stat64 st64; exit(stat64(".",&st64));
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_func_stat64=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
echo "$ac_t""$ac_cv_func_stat64" 1>&6
|
|
if test x$ac_cv_func_stat64 = xyes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STAT64 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
if test x$ac_cv_func_lstat64 = xno ; then
|
|
echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
|
|
echo "configure:6637: checking for lstat64 in <sys/stat.h>" >&5
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6639 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if defined(HAVE_UNISTD_H)
|
|
#include <unistd.h>
|
|
#endif
|
|
#include <sys/stat.h>
|
|
|
|
int main() {
|
|
struct stat64 st64; exit(lstat64(".",&st64));
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_func_lstat64=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
echo "$ac_t""$ac_cv_func_lstat64" 1>&6
|
|
if test x$ac_cv_func_lstat64 = xyes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_LSTAT64 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
if test x$ac_cv_func_fstat64 = xno ; then
|
|
echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
|
|
echo "configure:6670: checking for fstat64 in <sys/stat.h>" >&5
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6672 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if defined(HAVE_UNISTD_H)
|
|
#include <unistd.h>
|
|
#endif
|
|
#include <sys/stat.h>
|
|
|
|
int main() {
|
|
struct stat64 st64; exit(fstat64(0,&st64));
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_func_fstat64=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
echo "$ac_t""$ac_cv_func_fstat64" 1>&6
|
|
if test x$ac_cv_func_fstat64 = xyes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_FSTAT64 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
#####################################
|
|
# we might need the resolv library on some systems
|
|
echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
|
|
echo "configure:6704: checking for dn_expand in -lresolv" >&5
|
|
ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'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 6712 "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 dn_expand();
|
|
|
|
int main() {
|
|
dn_expand()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6723: \"$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
|
|
|
|
|
|
#
|
|
# Check for the functions putprpwnam, set_auth_parameters,
|
|
# getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
|
|
# Needed for OSF1 and HPUX.
|
|
#
|
|
|
|
case "$LIBS" in
|
|
*-lsecurity*) for ac_func in putprpwnam
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6761: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6766 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6789: \"$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 putprpwnam in -lsecurity""... $ac_c" 1>&6
|
|
echo "configure:6814: checking for putprpwnam in -lsecurity" >&5
|
|
ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lsecurity $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6822 "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 putprpwnam();
|
|
|
|
int main() {
|
|
putprpwnam()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6833: \"$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 security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lsecurity $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
for ac_func in putprpwnam
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6863: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6868 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6891: \"$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
|
|
|
|
;;
|
|
esac
|
|
|
|
case "$LIBS" in
|
|
*-lsec*) for ac_func in putprpwnam
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6922: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6927 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6950: \"$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 putprpwnam in -lsec""... $ac_c" 1>&6
|
|
echo "configure:6975: checking for putprpwnam in -lsec" >&5
|
|
ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lsec $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6983 "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 putprpwnam();
|
|
|
|
int main() {
|
|
putprpwnam()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6994: \"$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 sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lsec $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
for ac_func in putprpwnam
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:7024: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7029 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7052: \"$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
|
|
|
|
;;
|
|
esac
|
|
|
|
|
|
case "$LIBS" in
|
|
*-lsecurity*) for ac_func in set_auth_parameters
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:7084: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7089 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7112: \"$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 set_auth_parameters in -lsecurity""... $ac_c" 1>&6
|
|
echo "configure:7137: checking for set_auth_parameters in -lsecurity" >&5
|
|
ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lsecurity $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7145 "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 set_auth_parameters();
|
|
|
|
int main() {
|
|
set_auth_parameters()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7156: \"$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 security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lsecurity $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
for ac_func in set_auth_parameters
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:7186: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7191 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7214: \"$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
|
|
|
|
;;
|
|
esac
|
|
|
|
case "$LIBS" in
|
|
*-lsec*) for ac_func in set_auth_parameters
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:7245: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7250 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7273: \"$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 set_auth_parameters in -lsec""... $ac_c" 1>&6
|
|
echo "configure:7298: checking for set_auth_parameters in -lsec" >&5
|
|
ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lsec $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7306 "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 set_auth_parameters();
|
|
|
|
int main() {
|
|
set_auth_parameters()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7317: \"$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 sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lsec $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
for ac_func in set_auth_parameters
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:7347: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7352 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7375: \"$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
|
|
|
|
;;
|
|
esac
|
|
|
|
|
|
# UnixWare 7.x has its getspnam in -lgen
|
|
case "$LIBS" in
|
|
*-lgen*) for ac_func in getspnam
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:7408: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7413 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7436: \"$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 getspnam in -lgen""... $ac_c" 1>&6
|
|
echo "configure:7461: checking for getspnam in -lgen" >&5
|
|
ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'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 7469 "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 getspnam();
|
|
|
|
int main() {
|
|
getspnam()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7480: \"$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
|
|
|
|
for ac_func in getspnam
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:7510: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7515 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7538: \"$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
|
|
|
|
;;
|
|
esac
|
|
|
|
|
|
case "$LIBS" in
|
|
*-lsecurity*) for ac_func in getspnam
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:7570: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7575 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7598: \"$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 getspnam in -lsecurity""... $ac_c" 1>&6
|
|
echo "configure:7623: checking for getspnam in -lsecurity" >&5
|
|
ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lsecurity $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7631 "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 getspnam();
|
|
|
|
int main() {
|
|
getspnam()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7642: \"$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 security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lsecurity $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
for ac_func in getspnam
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:7672: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7677 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7700: \"$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
|
|
|
|
;;
|
|
esac
|
|
|
|
case "$LIBS" in
|
|
*-lsec*) for ac_func in getspnam
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:7731: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7736 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7759: \"$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 getspnam in -lsec""... $ac_c" 1>&6
|
|
echo "configure:7784: checking for getspnam in -lsec" >&5
|
|
ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lsec $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7792 "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 getspnam();
|
|
|
|
int main() {
|
|
getspnam()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7803: \"$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 sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lsec $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
for ac_func in getspnam
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:7833: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7838 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7861: \"$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
|
|
|
|
;;
|
|
esac
|
|
|
|
|
|
case "$LIBS" in
|
|
*-lsecurity*) for ac_func in bigcrypt
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:7893: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7898 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7921: \"$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 bigcrypt in -lsecurity""... $ac_c" 1>&6
|
|
echo "configure:7946: checking for bigcrypt in -lsecurity" >&5
|
|
ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lsecurity $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7954 "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 bigcrypt();
|
|
|
|
int main() {
|
|
bigcrypt()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7965: \"$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 security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lsecurity $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
for ac_func in bigcrypt
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:7995: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8000 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8023: \"$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
|
|
|
|
;;
|
|
esac
|
|
|
|
case "$LIBS" in
|
|
*-lsec*) for ac_func in bigcrypt
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:8054: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8059 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8082: \"$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 bigcrypt in -lsec""... $ac_c" 1>&6
|
|
echo "configure:8107: checking for bigcrypt in -lsec" >&5
|
|
ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lsec $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8115 "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 bigcrypt();
|
|
|
|
int main() {
|
|
bigcrypt()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8126: \"$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 sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lsec $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
for ac_func in bigcrypt
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:8156: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8161 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8184: \"$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
|
|
|
|
;;
|
|
esac
|
|
|
|
|
|
case "$LIBS" in
|
|
*-lsecurity*) for ac_func in getprpwnam
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:8216: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8221 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8244: \"$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 getprpwnam in -lsecurity""... $ac_c" 1>&6
|
|
echo "configure:8269: checking for getprpwnam in -lsecurity" >&5
|
|
ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lsecurity $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8277 "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 getprpwnam();
|
|
|
|
int main() {
|
|
getprpwnam()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8288: \"$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 security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lsecurity $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
for ac_func in getprpwnam
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:8318: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8323 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8346: \"$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
|
|
|
|
;;
|
|
esac
|
|
|
|
case "$LIBS" in
|
|
*-lsec*) for ac_func in getprpwnam
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:8377: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8382 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8405: \"$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 getprpwnam in -lsec""... $ac_c" 1>&6
|
|
echo "configure:8430: checking for getprpwnam in -lsec" >&5
|
|
ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lsec $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8438 "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 getprpwnam();
|
|
|
|
int main() {
|
|
getprpwnam()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8449: \"$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 sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lsec $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
for ac_func in getprpwnam
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:8479: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8484 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8507: \"$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
|
|
|
|
;;
|
|
esac
|
|
|
|
|
|
# this bit needs to be modified for each OS that is suported by
|
|
# smbwrapper. You need to specify how to created a shared library and
|
|
# how to compile C code to produce PIC object files
|
|
|
|
# these are the defaults, good for lots of systems
|
|
HOST_OS="$host_os"
|
|
LDSHFLAGS="-shared"
|
|
SHLD="\${CC}"
|
|
PICFLAG=""
|
|
PICSUFFIX="po"
|
|
POBAD_CC="#"
|
|
SHLIBEXT="so"
|
|
# Assume non-shared by default and override below
|
|
BLDSHARED="false"
|
|
echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
|
|
echo "configure:8550: checking ability to build shared libraries" >&5
|
|
|
|
# and these are for particular systems
|
|
case "$host_os" in
|
|
*linux*) cat >> confdefs.h <<\EOF
|
|
#define LINUX 1
|
|
EOF
|
|
|
|
BLDSHARED="true"
|
|
LDSHFLAGS="-shared"
|
|
PICFLAG="-fPIC"
|
|
cat >> confdefs.h <<\EOF
|
|
#define STAT_ST_BLOCKSIZE 512
|
|
EOF
|
|
|
|
;;
|
|
*solaris*) cat >> confdefs.h <<\EOF
|
|
#define SUNOS5 1
|
|
EOF
|
|
|
|
BLDSHARED="true"
|
|
LDSHFLAGS="-h \$@ -G"
|
|
if test "${ac_cv_prog_CC}" = "gcc"; then
|
|
PICFLAG="-fPIC"
|
|
else
|
|
PICFLAG="-KPIC"
|
|
POBAD_CC=""
|
|
PICSUFFIX="po.o"
|
|
fi
|
|
cat >> confdefs.h <<\EOF
|
|
#define STAT_ST_BLOCKSIZE 512
|
|
EOF
|
|
|
|
;;
|
|
*sunos*) cat >> confdefs.h <<\EOF
|
|
#define SUNOS4 1
|
|
EOF
|
|
|
|
BLDSHARED="true"
|
|
LDSHFLAGS="-Wl,-h,\$@ -G"
|
|
PICFLAG="-KPIC" # Is this correct for SunOS
|
|
;;
|
|
*bsd*) BLDSHARED="true"
|
|
LDSHFLAGS="-Wl,-soname,\$@ -shared"
|
|
PICFLAG="-fPIC"
|
|
cat >> confdefs.h <<\EOF
|
|
#define STAT_ST_BLOCKSIZE 512
|
|
EOF
|
|
|
|
;;
|
|
*irix*) cat >> confdefs.h <<\EOF
|
|
#define IRIX 1
|
|
EOF
|
|
|
|
case "$host_os" in
|
|
*irix6*) cat >> confdefs.h <<\EOF
|
|
#define IRIX6 1
|
|
EOF
|
|
|
|
;;
|
|
esac
|
|
ATTEMPT_WRAP32_BUILD=yes
|
|
BLDSHARED="true"
|
|
LDSHFLAGS="-Wl,-soname,\$@ -shared"
|
|
if test "${ac_cv_prog_CC}" = "gcc"; then
|
|
PICFLAG="-fPIC"
|
|
else
|
|
PICFLAG="-KPIC"
|
|
fi
|
|
cat >> confdefs.h <<\EOF
|
|
#define STAT_ST_BLOCKSIZE 512
|
|
EOF
|
|
|
|
;;
|
|
*aix*) cat >> confdefs.h <<\EOF
|
|
#define AIX 1
|
|
EOF
|
|
|
|
BLDSHARED="true"
|
|
LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
|
|
PICFLAG="-O2 -qmaxmem=6000"
|
|
cat >> confdefs.h <<\EOF
|
|
#define STAT_ST_BLOCKSIZE DEV_BSIZE
|
|
EOF
|
|
|
|
;;
|
|
*hpux*) cat >> confdefs.h <<\EOF
|
|
#define HPUX 1
|
|
EOF
|
|
|
|
SHLIBEXT="sl"
|
|
# Use special PIC flags for the native HP-UX compiler.
|
|
if test $ac_cv_prog_cc_Ae = yes; then
|
|
#BLDSHARED="true"
|
|
LDSHFLAGS="-b -z +h \$@"
|
|
PICFLAG="+z"
|
|
fi
|
|
cat >> confdefs.h <<\EOF
|
|
#define STAT_ST_BLOCKSIZE 8192
|
|
EOF
|
|
|
|
;;
|
|
*qnx*) cat >> confdefs.h <<\EOF
|
|
#define QNX 1
|
|
EOF
|
|
;;
|
|
*osf*) cat >> confdefs.h <<\EOF
|
|
#define OSF1 1
|
|
EOF
|
|
|
|
BLDSHARED="true"
|
|
LDSHFLAGS="-Wl,-soname,\$@ -shared"
|
|
PICFLAG="-fPIC"
|
|
;;
|
|
*sco*) cat >> confdefs.h <<\EOF
|
|
#define SCO 1
|
|
EOF
|
|
;;
|
|
*unixware*) cat >> confdefs.h <<\EOF
|
|
#define UNIXWARE 1
|
|
EOF
|
|
|
|
BLDSHARED="true"
|
|
LDSHFLAGS="-Wl,-soname,\$@ -shared"
|
|
PICFLAG="-KPIC"
|
|
;;
|
|
*next2*) cat >> confdefs.h <<\EOF
|
|
#define NEXT2 1
|
|
EOF
|
|
;;
|
|
*dgux*) # Extract the first word of "groff", so it can be a program name with args.
|
|
set dummy groff; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:8683: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$ROFF"; then
|
|
ac_cv_prog_ROFF="$ROFF" # 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_ROFF="groff -etpsR -Tascii -man"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
ROFF="$ac_cv_prog_ROFF"
|
|
if test -n "$ROFF"; then
|
|
echo "$ac_t""$ROFF" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
;;
|
|
*sysv4*)
|
|
case "$host" in
|
|
*-univel-*) if test "$GCC" != yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_MEMSET 1
|
|
EOF
|
|
|
|
fi
|
|
LDSHFLAGS="-G"
|
|
;;
|
|
*mips-sni-sysv4*) cat >> confdefs.h <<\EOF
|
|
#define RELIANTUNIX 1
|
|
EOF
|
|
;;
|
|
esac
|
|
;;
|
|
*sysv5*)
|
|
if test "$GCC" != yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_MEMSET 1
|
|
EOF
|
|
|
|
fi
|
|
LDSHFLAGS="-G"
|
|
;;
|
|
esac
|
|
echo "$ac_t""$BLDSHARED" 1>&6
|
|
echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
|
|
echo "configure:8737: checking linker flags for shared libraries" >&5
|
|
echo "$ac_t""$LDSHFLAGS" 1>&6
|
|
echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
|
|
echo "configure:8740: checking compiler flags for position-independent code" >&5
|
|
echo "$ac_t""$PICFLAGS" 1>&6
|
|
|
|
#######################################################
|
|
# test whether building a shared library actually works
|
|
if test $BLDSHARED = true; then
|
|
echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
|
|
echo "configure:8747: checking whether building shared libraries actually works" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
ac_cv_shlib_works=no
|
|
# try building a trivial shared library
|
|
$CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
|
|
$CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
|
|
ac_cv_shlib_works=yes
|
|
rm -f shlib.so shlib.po
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_shlib_works" 1>&6
|
|
if test $ac_cv_shlib_works = no; then
|
|
BLDSHARED=false
|
|
fi
|
|
fi
|
|
|
|
|
|
# this updates our target list if we can build shared libs
|
|
if test $BLDSHARED = true; then
|
|
LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
|
|
else
|
|
LIBSMBCLIENT_SHARED=
|
|
fi
|
|
|
|
################
|
|
|
|
echo $ac_n "checking for long long""... $ac_c" 1>&6
|
|
echo "configure:8778: checking for long long" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_have_longlong=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8787 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
|
|
EOF
|
|
if { (eval echo configure:8792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_have_longlong=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_have_longlong=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_have_longlong" 1>&6
|
|
if test x"$samba_cv_have_longlong" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_LONGLONG 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
#
|
|
# Check if the compiler supports the LL prefix on long long integers.
|
|
# AIX needs this.
|
|
|
|
echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
|
|
echo "configure:8819: checking for LL suffix on long long integers" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8825 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
int main() {
|
|
long long i = 0x8000000000LL
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_compiler_supports_ll=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_compiler_supports_ll=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
|
|
if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define COMPILER_SUPPORTS_LL 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
|
|
echo "configure:8854: checking for 64 bit off_t" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_SIZEOF_OFF_T=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8863 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
#include <sys/stat.h>
|
|
main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
|
|
EOF
|
|
if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_SIZEOF_OFF_T=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_SIZEOF_OFF_T=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
|
|
if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SIZEOF_OFF_T 8
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for off64_t""... $ac_c" 1>&6
|
|
echo "configure:8892: checking for off64_t" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_OFF64_T=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8901 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if defined(HAVE_UNISTD_H)
|
|
#include <unistd.h>
|
|
#endif
|
|
#include <stdio.h>
|
|
#include <sys/stat.h>
|
|
main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
|
|
EOF
|
|
if { (eval echo configure:8911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_OFF64_T=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_OFF64_T=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
|
|
if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_OFF64_T 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
|
|
echo "configure:8934: checking for 64 bit ino_t" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_SIZEOF_INO_T=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8943 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
#include <sys/stat.h>
|
|
main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
|
|
EOF
|
|
if { (eval echo configure:8949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_SIZEOF_INO_T=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_SIZEOF_INO_T=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
|
|
if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SIZEOF_INO_T 8
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
|
|
echo "configure:8972: checking for ino64_t" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_INO64_T=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8981 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if defined(HAVE_UNISTD_H)
|
|
#include <unistd.h>
|
|
#endif
|
|
#include <stdio.h>
|
|
#include <sys/stat.h>
|
|
main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
|
|
EOF
|
|
if { (eval echo configure:8991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_INO64_T=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_INO64_T=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
|
|
if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_INO64_T 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
|
|
echo "configure:9014: checking for dev64_t" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_DEV64_T=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9023 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if defined(HAVE_UNISTD_H)
|
|
#include <unistd.h>
|
|
#endif
|
|
#include <stdio.h>
|
|
#include <sys/stat.h>
|
|
main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
|
|
EOF
|
|
if { (eval echo configure:9033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_DEV64_T=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_DEV64_T=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
|
|
if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_DEV64_T 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
|
|
echo "configure:9056: checking for struct dirent64" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9062 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if defined(HAVE_UNISTD_H)
|
|
#include <unistd.h>
|
|
#endif
|
|
#include <sys/types.h>
|
|
#include <dirent.h>
|
|
int main() {
|
|
struct dirent64 de;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_STRUCT_DIRENT64=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_STRUCT_DIRENT64=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
|
|
if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STRUCT_DIRENT64 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for major macro""... $ac_c" 1>&6
|
|
echo "configure:9095: checking for major macro" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_DEVICE_MAJOR_FN=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9104 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if defined(HAVE_UNISTD_H)
|
|
#include <unistd.h>
|
|
#endif
|
|
#include <sys/types.h>
|
|
main() { dev_t dev; int i = major(dev); return 0; }
|
|
EOF
|
|
if { (eval echo configure:9113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_DEVICE_MAJOR_FN=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_DEVICE_MAJOR_FN=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
|
|
if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_DEVICE_MAJOR_FN 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for minor macro""... $ac_c" 1>&6
|
|
echo "configure:9136: checking for minor macro" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_DEVICE_MINOR_FN=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9145 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if defined(HAVE_UNISTD_H)
|
|
#include <unistd.h>
|
|
#endif
|
|
#include <sys/types.h>
|
|
main() { dev_t dev; int i = minor(dev); return 0; }
|
|
EOF
|
|
if { (eval echo configure:9154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_DEVICE_MINOR_FN=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_DEVICE_MINOR_FN=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
|
|
if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_DEVICE_MINOR_FN 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
|
|
echo "configure:9177: checking for unsigned char" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_UNSIGNED_CHAR=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9186 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
main() { char c; c=250; exit((c > 0)?0:1); }
|
|
EOF
|
|
if { (eval echo configure:9191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_UNSIGNED_CHAR=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_UNSIGNED_CHAR=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
|
|
if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UNSIGNED_CHAR 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
|
|
echo "configure:9214: checking for sin_len in sock" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9220 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
int main() {
|
|
struct sockaddr_in sock; sock.sin_len = sizeof(sock);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_SOCK_SIN_LEN=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_SOCK_SIN_LEN=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
|
|
if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SOCK_SIN_LEN 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
|
|
echo "configure:9250: checking whether seekdir returns void" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9256 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <dirent.h>
|
|
void seekdir(DIR *d, long loc) { return; }
|
|
int main() {
|
|
return 0;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_SEEKDIR_RETURNS_VOID=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_SEEKDIR_RETURNS_VOID=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
|
|
if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SEEKDIR_RETURNS_VOID 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
|
|
echo "configure:9286: checking for __FILE__ macro" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9292 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
int main() {
|
|
printf("%s\n", __FILE__);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_FILE_MACRO=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_FILE_MACRO=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
|
|
if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_FILE_MACRO 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
|
|
echo "configure:9320: checking for __FUNCTION__ macro" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9326 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
int main() {
|
|
printf("%s\n", __FUNCTION__);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_FUNCTION_MACRO=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_FUNCTION_MACRO=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
|
|
if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_FUNCTION_MACRO 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
|
|
echo "configure:9354: checking if gettimeofday takes tz argument" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9363 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/time.h>
|
|
#include <unistd.h>
|
|
main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
|
|
EOF
|
|
if { (eval echo configure:9370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_GETTIMEOFDAY_TZ=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
|
|
if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_GETTIMEOFDAY_TZ 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
|
|
echo "configure:9393: checking for C99 vsnprintf" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_C99_VSNPRINTF=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9402 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
#include <stdarg.h>
|
|
void foo(const char *format, ...) {
|
|
va_list ap;
|
|
int len;
|
|
char buf[5];
|
|
|
|
va_start(ap, format);
|
|
len = vsnprintf(0, 0, format, ap);
|
|
va_end(ap);
|
|
if (len != 5) exit(1);
|
|
|
|
if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
|
|
|
|
exit(0);
|
|
}
|
|
main() { foo("hello"); }
|
|
|
|
EOF
|
|
if { (eval echo configure:9424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_C99_VSNPRINTF=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_C99_VSNPRINTF=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
|
|
if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_C99_VSNPRINTF 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
|
|
echo "configure:9447: checking for broken readdir" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_BROKEN_READDIR=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9456 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <dirent.h>
|
|
main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
|
|
if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
|
|
di->d_name[0] == 0) exit(0); exit(1);}
|
|
EOF
|
|
if { (eval echo configure:9464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_BROKEN_READDIR=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_BROKEN_READDIR=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
|
|
if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_BROKEN_READDIR 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
|
|
echo "configure:9487: checking for utimbuf" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9493 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <utime.h>
|
|
int main() {
|
|
struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UTIMBUF=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UTIMBUF=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
|
|
if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UTIMBUF 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:9525: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9530 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9553: \"$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 ut_name in utmp""... $ac_c" 1>&6
|
|
echo "configure:9579: checking for ut_name in utmp" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9585 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <utmp.h>
|
|
int main() {
|
|
struct utmp ut; ut.ut_name[0] = 'a';
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_NAME=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_NAME=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
|
|
if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UT_UT_NAME 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
|
|
echo "configure:9614: checking for ut_user in utmp" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9620 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <utmp.h>
|
|
int main() {
|
|
struct utmp ut; ut.ut_user[0] = 'a';
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_USER=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_USER=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
|
|
if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UT_UT_USER 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
|
|
echo "configure:9649: checking for ut_id in utmp" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9655 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <utmp.h>
|
|
int main() {
|
|
struct utmp ut; ut.ut_id[0] = 'a';
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_ID=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_ID=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
|
|
if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UT_UT_ID 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
|
|
echo "configure:9684: checking for ut_host in utmp" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9690 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <utmp.h>
|
|
int main() {
|
|
struct utmp ut; ut.ut_host[0] = 'a';
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_HOST=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_HOST=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
|
|
if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UT_UT_HOST 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
|
|
echo "configure:9719: checking for ut_time in utmp" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9725 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <utmp.h>
|
|
int main() {
|
|
struct utmp ut; time_t t; ut.ut_time = t;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_TIME=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_TIME=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
|
|
if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UT_UT_TIME 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
|
|
echo "configure:9754: checking for ut_tv in utmp" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9760 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <utmp.h>
|
|
int main() {
|
|
struct utmp ut; struct timeval tv; ut.ut_tv = tv;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_TV=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_TV=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
|
|
if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UT_UT_TV 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
|
|
echo "configure:9789: checking for ut_type in utmp" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9795 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <utmp.h>
|
|
int main() {
|
|
struct utmp ut; ut.ut_type = 0;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_TYPE=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_TYPE=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
|
|
if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UT_UT_TYPE 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
|
|
echo "configure:9824: checking for ut_pid in utmp" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9830 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <utmp.h>
|
|
int main() {
|
|
struct utmp ut; ut.ut_pid = 0;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_PID=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_PID=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
|
|
if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UT_UT_PID 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
|
|
echo "configure:9859: checking for ut_exit in utmp" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9865 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <utmp.h>
|
|
int main() {
|
|
struct utmp ut; ut.ut_exit.e_exit = 0;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_EXIT=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_EXIT=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
|
|
if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UT_UT_EXIT 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
|
|
echo "configure:9894: checking for ut_addr in utmp" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9900 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <utmp.h>
|
|
int main() {
|
|
struct utmp ut; ut.ut_addr = 0;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_ADDR=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UT_UT_ADDR=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
|
|
if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UT_UT_ADDR 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
if test x$ac_cv_func_pututline = xyes ; then
|
|
echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
|
|
echo "configure:9930: checking whether pututline returns pointer" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9936 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <utmp.h>
|
|
int main() {
|
|
struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_PUTUTLINE_RETURNS_UTMP=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_PUTUTLINE_RETURNS_UTMP=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
|
|
if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define PUTUTLINE_RETURNS_UTMP 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
|
|
echo "configure:9966: checking for ut_syslen in utmpx" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9972 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <utmpx.h>
|
|
int main() {
|
|
struct utmpx ux; ux.ut_syslen = 0;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UX_UT_SYSLEN=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UX_UT_SYSLEN=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
|
|
if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UX_UT_SYSLEN 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# check for libiconv support
|
|
echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
|
|
echo "configure:10004: checking whether to use libiconv" >&5
|
|
# Check whether --with-libiconv or --without-libiconv was given.
|
|
if test "${with_libiconv+set}" = set; then
|
|
withval="$with_libiconv"
|
|
case "$withval" in
|
|
no)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
*)
|
|
echo "$ac_t""yes" 1>&6
|
|
CFLAGS="$CFLAGS -I$withval/include"
|
|
LDFLAGS="$LDFLAGS -L$withval/lib"
|
|
echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
|
|
echo "configure:10017: checking for iconv_open in -liconv" >&5
|
|
ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-liconv $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10025 "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 iconv_open();
|
|
|
|
int main() {
|
|
iconv_open()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10036: \"$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 iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-liconv $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
cat >> confdefs.h <<EOF
|
|
#define WITH_LIBICONV "${withval}"
|
|
EOF
|
|
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
############
|
|
# check for iconv in libc
|
|
echo $ac_n "checking for working iconv""... $ac_c" 1>&6
|
|
echo "configure:10079: checking for working iconv" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_NATIVE_ICONV=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10088 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <iconv.h>
|
|
main() {
|
|
iconv_t cd = iconv_open("ASCII", "UCS-2LE");
|
|
if (cd == 0 || cd == (iconv_t)-1) return -1;
|
|
return 0;
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:10099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_NATIVE_ICONV=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_NATIVE_ICONV=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
|
|
if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_NATIVE_ICONV 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
|
|
echo "configure:10123: checking for Linux kernel oplocks" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10132 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
#include <fcntl.h>
|
|
#ifndef F_GETLEASE
|
|
#define F_GETLEASE 1025
|
|
#endif
|
|
main() {
|
|
int fd = open("/dev/null", O_RDONLY);
|
|
return fcntl(fd, F_GETLEASE, 0) == -1;
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:10146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
|
|
if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_KERNEL_OPLOCKS_LINUX 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
|
|
echo "configure:10169: checking for kernel change notify support" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10178 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
#include <fcntl.h>
|
|
#include <signal.h>
|
|
#ifndef F_NOTIFY
|
|
#define F_NOTIFY 1026
|
|
#endif
|
|
main() {
|
|
exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:10192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
|
|
if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_KERNEL_CHANGE_NOTIFY 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
|
|
echo "configure:10215: checking for kernel share modes" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_KERNEL_SHARE_MODES=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10224 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
#include <fcntl.h>
|
|
#include <signal.h>
|
|
#include <sys/file.h>
|
|
#ifndef LOCK_MAND
|
|
#define LOCK_MAND 32
|
|
#define LOCK_READ 64
|
|
#endif
|
|
main() {
|
|
exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:10240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_KERNEL_SHARE_MODES=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_KERNEL_SHARE_MODES=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
|
|
if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_KERNEL_SHARE_MODES 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
|
|
echo "configure:10266: checking for IRIX kernel oplock type definitions" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10272 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <fcntl.h>
|
|
int main() {
|
|
oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
|
|
if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_KERNEL_OPLOCKS_IRIX 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
|
|
echo "configure:10301: checking for irix specific capabilities" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10310 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/capability.h>
|
|
main() {
|
|
cap_t cap;
|
|
if ((cap = cap_get_proc()) == NULL)
|
|
exit(1);
|
|
cap->cap_effective |= CAP_NETWORK_MGT;
|
|
cap->cap_inheritable |= CAP_NETWORK_MGT;
|
|
cap_set_proc(cap);
|
|
exit(0);
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
|
|
if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
#
|
|
# Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
|
|
# This is *really* broken but some systems (DEC OSF1) do this.... JRA.
|
|
#
|
|
|
|
echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
|
|
echo "configure:10353: checking for int16 typedef included by rpc/rpc.h" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10359 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#if defined(HAVE_RPC_RPC_H)
|
|
#include <rpc/rpc.h>
|
|
#endif
|
|
int main() {
|
|
int16 testvar;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
|
|
if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_INT16_FROM_RPC_RPC_H 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
|
|
echo "configure:10390: checking for uint16 typedef included by rpc/rpc.h" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10396 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#if defined(HAVE_RPC_RPC_H)
|
|
#include <rpc/rpc.h>
|
|
#endif
|
|
int main() {
|
|
uint16 testvar;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
|
|
if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UINT16_FROM_RPC_RPC_H 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
|
|
echo "configure:10427: checking for int32 typedef included by rpc/rpc.h" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10433 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#if defined(HAVE_RPC_RPC_H)
|
|
#include <rpc/rpc.h>
|
|
#endif
|
|
int main() {
|
|
int32 testvar;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
|
|
if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_INT32_FROM_RPC_RPC_H 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
|
|
echo "configure:10464: checking for uint32 typedef included by rpc/rpc.h" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10470 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#if defined(HAVE_RPC_RPC_H)
|
|
#include <rpc/rpc.h>
|
|
#endif
|
|
int main() {
|
|
uint32 testvar;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
|
|
if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UINT32_FROM_RPC_RPC_H 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
|
|
echo "configure:10502: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10508 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#ifdef HAVE_SYS_SECURITY_H
|
|
#include <sys/security.h>
|
|
#include <prot.h>
|
|
#endif /* HAVE_SYS_SECURITY_H */
|
|
#if defined(HAVE_RPC_RPC_H)
|
|
#include <rpc/rpc.h>
|
|
#endif
|
|
int main() {
|
|
int testvar;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
|
|
if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_RPC_AUTH_ERROR_CONFLICT 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for test routines""... $ac_c" 1>&6
|
|
echo "configure:10543: checking for test routines" >&5
|
|
if test "$cross_compiling" = yes; then
|
|
echo "configure: warning: cannot run when cross-compiling" 1>&2
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10548 "configure"
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/tests/trivial.c"
|
|
EOF
|
|
if { (eval echo configure:10552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
echo "$ac_t""yes" 1>&6
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
{ echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
|
|
echo "configure:10566: checking for ftruncate extend" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_FTRUNCATE_EXTEND=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10575 "configure"
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/tests/ftruncate.c"
|
|
EOF
|
|
if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_FTRUNCATE_EXTEND=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_FTRUNCATE_EXTEND=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
|
|
if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_FTRUNCATE_EXTEND 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
|
|
echo "configure:10602: checking for AF_LOCAL socket support" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_WORKING_AF_LOCAL=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10611 "configure"
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/tests/unixsock.c"
|
|
EOF
|
|
if { (eval echo configure:10615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_WORKING_AF_LOCAL=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_WORKING_AF_LOCAL=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
|
|
if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
|
|
then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_WORKING_AF_LOCAL 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
|
|
echo "configure:10639: checking for broken getgroups" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_BROKEN_GETGROUPS=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10648 "configure"
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/tests/getgroups.c"
|
|
EOF
|
|
if { (eval echo configure:10652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_BROKEN_GETGROUPS=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_BROKEN_GETGROUPS=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
|
|
if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_BROKEN_GETGROUPS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
|
|
echo "configure:10675: checking whether getpass should be replaced" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
SAVE_CPPFLAGS="$CPPFLAGS"
|
|
CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10683 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define REPLACE_GETPASS 1
|
|
#define NO_CONFIG_H 1
|
|
#define main dont_declare_main
|
|
#include "${srcdir-.}/lib/getsmbpass.c"
|
|
#undef main
|
|
|
|
int main() {
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_REPLACE_GETPASS=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_REPLACE_GETPASS=no
|
|
fi
|
|
rm -f conftest*
|
|
CPPFLAGS="$SAVE_CPPFLAGS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
|
|
if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define REPLACE_GETPASS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
|
|
echo "configure:10719: checking for broken inet_ntoa" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_REPLACE_INET_NTOA=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10728 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
#include <netinet/in.h>
|
|
#ifdef HAVE_ARPA_INET_H
|
|
#include <arpa/inet.h>
|
|
#endif
|
|
main() { struct in_addr ip; ip.s_addr = 0x12345678;
|
|
if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
|
|
strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
|
|
exit(1);}
|
|
EOF
|
|
if { (eval echo configure:10742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_REPLACE_INET_NTOA=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_REPLACE_INET_NTOA=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
|
|
if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define REPLACE_INET_NTOA 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
|
|
echo "configure:10765: checking for secure mkstemp" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_SECURE_MKSTEMP=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10774 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdlib.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <unistd.h>
|
|
main() {
|
|
struct stat st;
|
|
char tpl[20]="/tmp/test.XXXXXX";
|
|
int fd = mkstemp(tpl);
|
|
if (fd == -1) exit(1);
|
|
unlink(tpl);
|
|
if (fstat(fd, &st) != 0) exit(1);
|
|
if ((st.st_mode & 0777) != 0600) exit(1);
|
|
exit(0);
|
|
}
|
|
EOF
|
|
if { (eval echo configure:10791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_SECURE_MKSTEMP=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_SECURE_MKSTEMP=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
|
|
if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SECURE_MKSTEMP 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
|
|
echo "configure:10814: checking for sysconf(_SC_NGROUPS_MAX)" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10823 "configure"
|
|
#include "confdefs.h"
|
|
#include <unistd.h>
|
|
main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
|
|
EOF
|
|
if { (eval echo configure:10828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_SYSCONF_SC_NGROUPS_MAX=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
|
|
if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SYSCONF_SC_NGROUPS_MAX 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for root""... $ac_c" 1>&6
|
|
echo "configure:10851: checking for root" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_ROOT=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10860 "configure"
|
|
#include "confdefs.h"
|
|
main() { exit(getuid() != 0); }
|
|
EOF
|
|
if { (eval echo configure:10864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_ROOT=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_ROOT=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
|
|
if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_ROOT 1
|
|
EOF
|
|
|
|
else
|
|
echo "configure: warning: running as non-root will disable some tests" 1>&2
|
|
fi
|
|
|
|
##################
|
|
# look for a method of finding the list of network interfaces
|
|
iface=no;
|
|
echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
|
|
echo "configure:10892: checking for iface AIX" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_IFACE_AIX=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10901 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define HAVE_IFACE_AIX 1
|
|
#define AUTOCONF_TEST 1
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/lib/interfaces.c"
|
|
EOF
|
|
if { (eval echo configure:10909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_IFACE_AIX=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_IFACE_AIX=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
|
|
if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
|
|
iface=yes;cat >> confdefs.h <<\EOF
|
|
#define HAVE_IFACE_AIX 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
if test $iface = no; then
|
|
echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
|
|
echo "configure:10933: checking for iface ifconf" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_IFACE_IFCONF=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10942 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define HAVE_IFACE_IFCONF 1
|
|
#define AUTOCONF_TEST 1
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/lib/interfaces.c"
|
|
EOF
|
|
if { (eval echo configure:10950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_IFACE_IFCONF=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_IFACE_IFCONF=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
|
|
if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
|
|
iface=yes;cat >> confdefs.h <<\EOF
|
|
#define HAVE_IFACE_IFCONF 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
if test $iface = no; then
|
|
echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
|
|
echo "configure:10975: checking for iface ifreq" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_IFACE_IFREQ=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10984 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define HAVE_IFACE_IFREQ 1
|
|
#define AUTOCONF_TEST 1
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/lib/interfaces.c"
|
|
EOF
|
|
if { (eval echo configure:10992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_IFACE_IFREQ=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_IFACE_IFREQ=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
|
|
if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
|
|
iface=yes;cat >> confdefs.h <<\EOF
|
|
#define HAVE_IFACE_IFREQ 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
|
|
################################################
|
|
# look for a method of setting the effective uid
|
|
seteuid=no;
|
|
if test $seteuid = no; then
|
|
echo $ac_n "checking for setresuid""... $ac_c" 1>&6
|
|
echo "configure:11021: checking for setresuid" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_USE_SETRESUID=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11030 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define AUTOCONF_TEST 1
|
|
#define USE_SETRESUID 1
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/lib/util_sec.c"
|
|
EOF
|
|
if { (eval echo configure:11038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_USE_SETRESUID=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_USE_SETRESUID=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
|
|
if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
|
|
seteuid=yes;cat >> confdefs.h <<\EOF
|
|
#define USE_SETRESUID 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
|
|
if test $seteuid = no; then
|
|
echo $ac_n "checking for setreuid""... $ac_c" 1>&6
|
|
echo "configure:11064: checking for setreuid" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_USE_SETREUID=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11073 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define AUTOCONF_TEST 1
|
|
#define USE_SETREUID 1
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/lib/util_sec.c"
|
|
EOF
|
|
if { (eval echo configure:11081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_USE_SETREUID=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_USE_SETREUID=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
|
|
if test x"$samba_cv_USE_SETREUID" = x"yes"; then
|
|
seteuid=yes;cat >> confdefs.h <<\EOF
|
|
#define USE_SETREUID 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
if test $seteuid = no; then
|
|
echo $ac_n "checking for seteuid""... $ac_c" 1>&6
|
|
echo "configure:11106: checking for seteuid" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_USE_SETEUID=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11115 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define AUTOCONF_TEST 1
|
|
#define USE_SETEUID 1
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/lib/util_sec.c"
|
|
EOF
|
|
if { (eval echo configure:11123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_USE_SETEUID=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_USE_SETEUID=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
|
|
if test x"$samba_cv_USE_SETEUID" = x"yes"; then
|
|
seteuid=yes;cat >> confdefs.h <<\EOF
|
|
#define USE_SETEUID 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
if test $seteuid = no; then
|
|
echo $ac_n "checking for setuidx""... $ac_c" 1>&6
|
|
echo "configure:11148: checking for setuidx" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_USE_SETUIDX=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11157 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define AUTOCONF_TEST 1
|
|
#define USE_SETUIDX 1
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/lib/util_sec.c"
|
|
EOF
|
|
if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_USE_SETUIDX=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_USE_SETUIDX=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
|
|
if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
|
|
seteuid=yes;cat >> confdefs.h <<\EOF
|
|
#define USE_SETUIDX 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|
echo "configure:11190: checking for working mmap" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_MMAP=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11199 "configure"
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/tests/shared_mmap.c"
|
|
EOF
|
|
if { (eval echo configure:11203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_MMAP=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_MMAP=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
|
|
if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_MMAP 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
|
|
echo "configure:11226: checking for ftruncate needs root" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_FTRUNCATE_NEEDS_ROOT=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11235 "configure"
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/tests/ftruncroot.c"
|
|
EOF
|
|
if { (eval echo configure:11239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_FTRUNCATE_NEEDS_ROOT=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_FTRUNCATE_NEEDS_ROOT=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
|
|
if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define FTRUNCATE_NEEDS_ROOT 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
|
|
echo "configure:11262: checking for fcntl locking" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_FCNTL_LOCK=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11271 "configure"
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/tests/fcntl_lock.c"
|
|
EOF
|
|
if { (eval echo configure:11275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_FCNTL_LOCK=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_FCNTL_LOCK=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
|
|
if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_FCNTL_LOCK 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
|
|
echo "configure:11298: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11307 "configure"
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/tests/fcntl_lock64.c"
|
|
EOF
|
|
if { (eval echo configure:11311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
|
|
if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_BROKEN_FCNTL64_LOCKS 1
|
|
EOF
|
|
|
|
|
|
else
|
|
|
|
|
|
echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
|
|
echo "configure:11336: checking for 64 bit fcntl locking" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_STRUCT_FLOCK64=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11345 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if defined(HAVE_UNISTD_H)
|
|
#include <unistd.h>
|
|
#endif
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#ifdef HAVE_FCNTL_H
|
|
#include <fcntl.h>
|
|
#endif
|
|
|
|
#ifdef HAVE_SYS_FCNTL_H
|
|
#include <sys/fcntl.h>
|
|
#endif
|
|
main() { struct flock64 fl64;
|
|
#if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
|
|
exit(0);
|
|
#else
|
|
exit(1);
|
|
#endif
|
|
}
|
|
EOF
|
|
if { (eval echo configure:11369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_STRUCT_FLOCK64=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_STRUCT_FLOCK64=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
|
|
|
|
if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STRUCT_FLOCK64 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
|
|
echo "configure:11394: checking for st_blocks in struct stat" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11400 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <unistd.h>
|
|
int main() {
|
|
struct stat st; st.st_blocks = 0;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_STAT_ST_BLOCKS=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_STAT_ST_BLOCKS=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
|
|
if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STAT_ST_BLOCKS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
case "$host_os" in
|
|
*linux*)
|
|
echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
|
|
echo "configure:11432: checking for broken RedHat 7.2 system header files" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11438 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_SYS_VFS_H
|
|
#include <sys/vfs.h>
|
|
#endif
|
|
#ifdef HAVE_SYS_CAPABILITY_H
|
|
#include <sys/capability.h>
|
|
#endif
|
|
|
|
int main() {
|
|
int i;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
|
|
if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
|
|
EOF
|
|
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
|
|
echo "configure:11475: checking for broken nisplus include files" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11481 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/acl.h>
|
|
#if defined(HAVE_RPCSVC_NIS_H)
|
|
#include <rpcsvc/nis.h>
|
|
#endif
|
|
int main() {
|
|
int i;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
|
|
if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define BROKEN_NISPLUS_INCLUDE_FILES 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# check for smbwrapper support
|
|
echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
|
|
echo "configure:11515: checking whether to use smbwrapper" >&5
|
|
# Check whether --with-smbwrapper or --without-smbwrapper was given.
|
|
if test "${with_smbwrapper+set}" = set; then
|
|
withval="$with_smbwrapper"
|
|
case "$withval" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_SMBWRAPPER 1
|
|
EOF
|
|
|
|
WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
|
|
|
|
if test x$ATTEMPT_WRAP32_BUILD = x; then
|
|
WRAP32=""
|
|
else
|
|
WRAP32=bin/smbwrapper.32.$SHLIBEXT
|
|
fi
|
|
|
|
# Conditions under which smbwrapper should not be built.
|
|
|
|
if test x$PICFLAG = x; then
|
|
echo No support for PIC code - disabling smbwrapper and smbsh
|
|
WRAP=""
|
|
WRAP32=""
|
|
elif test x$ac_cv_func_syscall = xno; then
|
|
echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
|
|
WRAP=""
|
|
WRAP32=""
|
|
fi
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# check for AFS clear-text auth support
|
|
echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
|
|
echo "configure:11559: checking whether to use AFS clear-text auth" >&5
|
|
# Check whether --with-afs or --without-afs was given.
|
|
if test "${with_afs+set}" = set; then
|
|
withval="$with_afs"
|
|
case "$withval" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_AFS 1
|
|
EOF
|
|
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
#################################################
|
|
# check for the DFS clear-text auth system
|
|
echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
|
|
echo "configure:11585: checking whether to use DFS clear-text auth" >&5
|
|
# Check whether --with-dfs or --without-dfs was given.
|
|
if test "${with_dfs+set}" = set; then
|
|
withval="$with_dfs"
|
|
case "$withval" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_DFS 1
|
|
EOF
|
|
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
#################################################
|
|
# see if this box has the RedHat location for kerberos
|
|
echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
|
|
echo "configure:11611: checking for /usr/kerberos" >&5
|
|
if test -d /usr/kerberos; then
|
|
LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
|
|
CFLAGS="$CFLAGS -I/usr/kerberos/include"
|
|
CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
|
|
echo "$ac_t""yes" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
#################################################
|
|
# check for location of Kerberos 5 install
|
|
echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
|
|
echo "configure:11624: checking for kerberos 5 install path" >&5
|
|
# Check whether --with-krb5 or --without-krb5 was given.
|
|
if test "${with_krb5+set}" = set; then
|
|
withval="$with_krb5"
|
|
case "$withval" in
|
|
no)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
*)
|
|
echo "$ac_t""yes" 1>&6
|
|
LIBS="$LIBS -lkrb5"
|
|
CFLAGS="$CFLAGS -I$withval/include"
|
|
CPPFLAGS="$CPPFLAGS -I$withval/include"
|
|
LDFLAGS="$LDFLAGS -L$withval/lib"
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
# now check for krb5.h. Some systems have the libraries without the headers!
|
|
# note that this check is done here to allow for different kerberos
|
|
# include paths
|
|
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:11653: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11658 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:11663: \"$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
|
|
|
|
|
|
# now check for gssapi headers. This is also done here to allow for
|
|
# different kerberos include paths
|
|
for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:11696: checking for $ac_hdr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11701 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:11706: \"$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
|
|
|
|
|
|
##################################################################
|
|
# we might need the k5crypto and com_err libraries on some systems
|
|
echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
|
|
echo "configure:11736: checking for _et_list in -lcom_err" >&5
|
|
ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lcom_err $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11744 "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 _et_list();
|
|
|
|
int main() {
|
|
_et_list()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11755: \"$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 -lcom_err"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
|
|
echo "configure:11776: checking for krb5_encrypt_data in -lk5crypto" >&5
|
|
ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lk5crypto $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11784 "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 krb5_encrypt_data();
|
|
|
|
int main() {
|
|
krb5_encrypt_data()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11795: \"$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 -lk5crypto"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
|
|
echo "configure:11816: checking for gss_display_status in -lgssapi_krb5" >&5
|
|
ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lgssapi_krb5 $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11824 "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 gss_display_status();
|
|
|
|
int main() {
|
|
gss_display_status()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11835: \"$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 -lgssapi_krb5"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
|
|
########################################################
|
|
# now see if we can find the krb5 libs in standard paths
|
|
# or as specified above
|
|
echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
|
|
echo "configure:11861: checking for krb5_mk_req_extended in -lkrb5" >&5
|
|
ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lkrb5 $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11869 "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 krb5_mk_req_extended();
|
|
|
|
int main() {
|
|
krb5_mk_req_extended()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11880: \"$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 -lkrb5";
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_KRB5 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
########################################################
|
|
# now see if we can find the gssapi libs in standard paths
|
|
echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
|
|
echo "configure:11908: checking for gss_display_status in -lgssapi_krb5" >&5
|
|
ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lgssapi_krb5 $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11916 "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 gss_display_status();
|
|
|
|
int main() {
|
|
gss_display_status()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11927: \"$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_GSSAPI 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
|
|
##################################################################
|
|
# we might need the lber lib on some systems. To avoid link errors
|
|
# this test must be before the libldap test
|
|
echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
|
|
echo "configure:11956: checking for ber_scanf in -llber" >&5
|
|
ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-llber $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11964 "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 ber_scanf();
|
|
|
|
int main() {
|
|
ber_scanf()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11975: \"$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 -llber"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
########################################################
|
|
# now see if we can find the ldap libs in standard paths
|
|
if test x$have_ldap != xyes; then
|
|
echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
|
|
echo "configure:12000: checking for ldap_domain2hostlist in -lldap" >&5
|
|
ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lldap $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12008 "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 ldap_domain2hostlist();
|
|
|
|
int main() {
|
|
ldap_domain2hostlist()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12019: \"$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 -lldap";
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_LDAP 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
fi
|
|
|
|
#################################################
|
|
# check for automount support
|
|
echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
|
|
echo "configure:12048: checking whether to use AUTOMOUNT" >&5
|
|
# Check whether --with-automount or --without-automount was given.
|
|
if test "${with_automount+set}" = set; then
|
|
withval="$with_automount"
|
|
case "$withval" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_AUTOMOUNT 1
|
|
EOF
|
|
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# check for smbmount support
|
|
echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
|
|
echo "configure:12073: checking whether to use SMBMOUNT" >&5
|
|
# Check whether --with-smbmount or --without-smbmount was given.
|
|
if test "${with_smbmount+set}" = set; then
|
|
withval="$with_smbmount"
|
|
case "$withval" in
|
|
yes)
|
|
case "$host_os" in
|
|
*linux*)
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_SMBMOUNT 1
|
|
EOF
|
|
|
|
MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
|
|
;;
|
|
*)
|
|
{ echo "configure: error: not on a linux system!" 1>&2; exit 1; }
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
MPROGS=
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
MPROGS=
|
|
|
|
fi
|
|
|
|
|
|
|
|
#################################################
|
|
# check for a PAM clear-text auth, accounts, password and session support
|
|
with_pam_for_crypt=no
|
|
echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
|
|
echo "configure:12110: checking whether to use PAM" >&5
|
|
# Check whether --with-pam or --without-pam was given.
|
|
if test "${with_pam+set}" = set; then
|
|
withval="$with_pam"
|
|
case "$withval" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_PAM 1
|
|
EOF
|
|
|
|
LIBS="$LIBS -lpam"
|
|
with_pam_for_crypt=yes
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
# we can't build a pam module if we don't have pam.
|
|
echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
|
|
echo "configure:12136: checking for pam_get_data in -lpam" >&5
|
|
ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lpam $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12144 "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 pam_get_data();
|
|
|
|
int main() {
|
|
pam_get_data()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12155: \"$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_LIBPAM 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# check for pam_smbpass support
|
|
echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
|
|
echo "configure:12182: checking whether to use pam_smbpass" >&5
|
|
# Check whether --with-pam_smbpass or --without-pam_smbpass was given.
|
|
if test "${with_pam_smbpass+set}" = set; then
|
|
withval="$with_pam_smbpass"
|
|
case "$withval" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
# Conditions under which pam_smbpass should not be built.
|
|
|
|
if test x$PICFLAG = x; then
|
|
echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
|
|
PAM_MOD=""
|
|
elif test x$ac_cv_lib_pam_pam_get_data = xno; then
|
|
echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
|
|
PAM_MOD=""
|
|
else
|
|
PAM_MOD="bin/pam_smbpass.so"
|
|
fi
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
###############################################
|
|
# test for where we get crypt() from, but only
|
|
# if not using PAM
|
|
if test $with_pam_for_crypt = no; then
|
|
for ac_func in crypt
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:12220: checking for $ac_func" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12225 "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();
|
|
|
|
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
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12248: \"$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 x"$ac_cv_func_crypt" = x"no"; then
|
|
echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
|
|
echo "configure:12274: checking for crypt in -lcrypt" >&5
|
|
ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'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 12282 "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:12293: \"$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 -lcrypt";
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_CRYPT 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
fi
|
|
fi
|
|
|
|
##
|
|
## moved after the check for -lcrypt in order to
|
|
## ensure that the necessary libraries are included
|
|
## check checking for truncated salt. Wrapped by the
|
|
## $with_pam_for_crypt variable as above --jerry
|
|
##
|
|
if test $with_pam_for_crypt = no; then
|
|
echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
|
|
echo "configure:12328: checking for a crypt that needs truncated salt" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
samba_cv_HAVE_TRUNCATED_SALT=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12337 "configure"
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/tests/crypttest.c"
|
|
EOF
|
|
if { (eval echo configure:12341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
samba_cv_HAVE_TRUNCATED_SALT=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
samba_cv_HAVE_TRUNCATED_SALT=yes
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
|
|
if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_TRUNCATED_SALT 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
########################################################################################
|
|
##
|
|
## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
|
|
##
|
|
########################################################################################
|
|
|
|
#################################################
|
|
# check for a TDB password database
|
|
echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
|
|
echo "configure:12375: checking whether to use TDB SAM database" >&5
|
|
# Check whether --with-tdbsam or --without-tdbsam was given.
|
|
if test "${with_tdbsam+set}" = set; then
|
|
withval="$with_tdbsam"
|
|
case "$withval" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_TDB_SAM 1
|
|
EOF
|
|
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# check for a LDAP password database
|
|
echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
|
|
echo "configure:12400: checking whether to use LDAP SAM database" >&5
|
|
# Check whether --with-ldapsam or --without-ldapsam was given.
|
|
if test "${with_ldapsam+set}" = set; then
|
|
withval="$with_ldapsam"
|
|
case "$withval" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_LDAP_SAM 1
|
|
EOF
|
|
|
|
LIBS="-lldap -llber $LIBS"
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# check for a NISPLUS password database
|
|
echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
|
|
echo "configure:12426: checking whether to use NISPLUS SAM database" >&5
|
|
# Check whether --with-nisplussam or --without-nisplussam was given.
|
|
if test "${with_nisplussam+set}" = set; then
|
|
withval="$with_nisplussam"
|
|
case "$withval" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_NISPLUS_SAM 1
|
|
EOF
|
|
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
########################################################################################
|
|
##
|
|
## END OF TESTS FOR SAM BACKENDS.
|
|
##
|
|
########################################################################################
|
|
|
|
#################################################
|
|
# check for a NISPLUS_HOME support
|
|
echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
|
|
echo "configure:12457: checking whether to use NISPLUS_HOME" >&5
|
|
# Check whether --with-nisplus-home or --without-nisplus-home was given.
|
|
if test "${with_nisplus_home+set}" = set; then
|
|
withval="$with_nisplus_home"
|
|
case "$withval" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_NISPLUS_HOME 1
|
|
EOF
|
|
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# check for the secure socket layer
|
|
echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
|
|
echo "configure:12482: checking whether to use SSL" >&5
|
|
# Check whether --with-ssl or --without-ssl was given.
|
|
if test "${with_ssl+set}" = set; then
|
|
withval="$with_ssl"
|
|
case "$withval" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_SSL 1
|
|
EOF
|
|
|
|
withval="/usr/local/ssl" # default
|
|
|
|
if test "${with_sslinc+set}" = set; then
|
|
|
|
withval="$with_sslinc"
|
|
case "$withval" in
|
|
yes|no)
|
|
echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
|
|
CFLAGS="-I/usr/local/ssl/include $CFLAGS"
|
|
;;
|
|
* )
|
|
CFLAGS="-I${withval} $CFLAGS"
|
|
;;
|
|
esac
|
|
|
|
else
|
|
|
|
CFLAGS="-I/usr/local/ssl/include $CFLAGS"
|
|
|
|
fi
|
|
|
|
if test "${with_ssllib+set}" = set; then
|
|
|
|
withval="$with_ssllib"
|
|
case "$withval" in
|
|
yes|no)
|
|
echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
|
|
LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
|
|
;;
|
|
* )
|
|
LDFLAGS="-L${withval}/lib $LDFLAGS"
|
|
;;
|
|
esac
|
|
|
|
else
|
|
|
|
LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
|
|
|
|
fi
|
|
|
|
LIBS="-lssl -lcrypto $LIBS"
|
|
|
|
# if test ! -d ${withval}; then
|
|
# echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
|
|
# exit 1
|
|
# fi
|
|
|
|
CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
|
|
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# check for syslog logging
|
|
echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
|
|
echo "configure:12556: checking whether to use syslog logging" >&5
|
|
# Check whether --with-syslog or --without-syslog was given.
|
|
if test "${with_syslog+set}" = set; then
|
|
withval="$with_syslog"
|
|
case "$withval" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_SYSLOG 1
|
|
EOF
|
|
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# check for a shared memory profiling support
|
|
echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
|
|
echo "configure:12581: checking whether to use profiling" >&5
|
|
# Check whether --with-profiling-data or --without-profiling-data was given.
|
|
if test "${with_profiling_data+set}" = set; then
|
|
withval="$with_profiling_data"
|
|
case "$withval" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_PROFILE 1
|
|
EOF
|
|
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
#################################################
|
|
# check for experimental disk-quotas support
|
|
QUOTAOBJS=smbd/noquotas.o
|
|
|
|
echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
|
|
echo "configure:12609: checking whether to support disk-quotas" >&5
|
|
# Check whether --with-quotas or --without-quotas was given.
|
|
if test "${with_quotas+set}" = set; then
|
|
withval="$with_quotas"
|
|
case "$withval" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
case "$host_os" in
|
|
*linux*)
|
|
# Check for kernel 2.4.x quota braindamage...
|
|
echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
|
|
echo "configure:12620: checking for linux 2.4.x quota braindamage.." >&5
|
|
if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12626 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
#include <asm/types.h>
|
|
#include <linux/quota.h>
|
|
#include <mntent.h>
|
|
#include <linux/unistd.h>
|
|
int main() {
|
|
struct mem_dqblk D;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_linux_2_4_quota_braindamage=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_linux_2_4_quota_braindamage=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
|
|
if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define LINUX_QUOTAS_2 1
|
|
EOF
|
|
|
|
else
|
|
cat >> confdefs.h <<\EOF
|
|
#define LINUX_QUOTAS_1 1
|
|
EOF
|
|
|
|
fi
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
QUOTAOBJS=smbd/quotas.o
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_QUOTAS 1
|
|
EOF
|
|
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
#################################################
|
|
# check for experimental utmp accounting
|
|
|
|
echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
|
|
echo "configure:12687: checking whether to support utmp accounting" >&5
|
|
# Check whether --with-utmp or --without-utmp was given.
|
|
if test "${with_utmp+set}" = set; then
|
|
withval="$with_utmp"
|
|
case "$withval" in
|
|
yes)
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_UTMP 1
|
|
EOF
|
|
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
;;
|
|
esac
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# set private directory location
|
|
# Check whether --with-privatedir or --without-privatedir was given.
|
|
if test "${with_privatedir+set}" = set; then
|
|
withval="$with_privatedir"
|
|
case "$withval" in
|
|
yes|no)
|
|
#
|
|
# Just in case anybody calls it without argument
|
|
#
|
|
echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
|
|
privatedir='${prefix}/private'
|
|
;;
|
|
* )
|
|
privatedir="$withval"
|
|
;;
|
|
esac
|
|
|
|
else
|
|
privatedir='${prefix}/private'
|
|
|
|
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# set lock directory location
|
|
# Check whether --with-lockdir or --without-lockdir was given.
|
|
if test "${with_lockdir+set}" = set; then
|
|
withval="$with_lockdir"
|
|
case "$withval" in
|
|
yes|no)
|
|
#
|
|
# Just in case anybody calls it without argument
|
|
#
|
|
echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
|
|
lockdir='$(VARDIR)/locks'
|
|
;;
|
|
* )
|
|
lockdir="$withval"
|
|
;;
|
|
esac
|
|
|
|
else
|
|
lockdir='$(VARDIR)/locks'
|
|
|
|
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# set SWAT directory location
|
|
# Check whether --with-swatdir or --without-swatdir was given.
|
|
if test "${with_swatdir+set}" = set; then
|
|
withval="$with_swatdir"
|
|
case "$withval" in
|
|
yes|no)
|
|
#
|
|
# Just in case anybody does it
|
|
#
|
|
echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
|
|
swatdir='${prefix}/swat'
|
|
;;
|
|
* )
|
|
swatdir="$withval"
|
|
;;
|
|
esac
|
|
|
|
else
|
|
swatdir='${prefix}/swat'
|
|
|
|
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# choose native language(s) of man pages
|
|
echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
|
|
echo "configure:12787: checking chosen man pages' language(s)" >&5
|
|
# Check whether --with-manpages-langs or --without-manpages-langs was given.
|
|
if test "${with_manpages_langs+set}" = set; then
|
|
withval="$with_manpages_langs"
|
|
case "$withval" in
|
|
yes|no)
|
|
echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
|
|
manlangs="en"
|
|
;;
|
|
*)
|
|
manlangs="$withval"
|
|
;;
|
|
esac
|
|
|
|
echo "$ac_t""$manlangs" 1>&6
|
|
manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
|
|
|
|
else
|
|
manlangs="en"
|
|
echo "$ac_t""$manlangs" 1>&6
|
|
|
|
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# these tests are taken from the GNU fileutils package
|
|
echo "checking how to get filesystem space usage" 1>&6
|
|
echo "configure:12815: checking how to get filesystem space usage" >&5
|
|
space=no
|
|
|
|
# Test for statvfs64.
|
|
if test $space = no; then
|
|
# SVR4
|
|
echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
|
|
echo "configure:12822: checking statvfs64 function (SVR4)" >&5
|
|
if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
fu_cv_sys_stat_statvfs64=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12830 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if defined(HAVE_UNISTD_H)
|
|
#include <unistd.h>
|
|
#endif
|
|
#include <sys/types.h>
|
|
#include <sys/statvfs.h>
|
|
main ()
|
|
{
|
|
struct statvfs64 fsd;
|
|
exit (statvfs64 (".", &fsd));
|
|
}
|
|
EOF
|
|
if { (eval echo configure:12844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
fu_cv_sys_stat_statvfs64=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
fu_cv_sys_stat_statvfs64=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
|
|
if test $fu_cv_sys_stat_statvfs64 = yes; then
|
|
space=yes
|
|
cat >> confdefs.h <<\EOF
|
|
#define STAT_STATVFS64 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
# Perform only the link test since it seems there are no variants of the
|
|
# statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
|
|
# because that got a false positive on SCO OSR5. Adding the declaration
|
|
# of a `struct statvfs' causes this test to fail (as it should) on such
|
|
# systems. That system is reported to work fine with STAT_STATFS4 which
|
|
# is what it gets when this test fails.
|
|
if test $space = no; then
|
|
# SVR4
|
|
echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
|
|
echo "configure:12877: checking statvfs function (SVR4)" >&5
|
|
if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12882 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/statvfs.h>
|
|
int main() {
|
|
struct statvfs fsd; statvfs (0, &fsd);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
fu_cv_sys_stat_statvfs=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
fu_cv_sys_stat_statvfs=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
|
|
if test $fu_cv_sys_stat_statvfs = yes; then
|
|
space=yes
|
|
cat >> confdefs.h <<\EOF
|
|
#define STAT_STATVFS 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
if test $space = no; then
|
|
# DEC Alpha running OSF/1
|
|
echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
|
|
echo "configure:12915: checking for 3-argument statfs function (DEC OSF/1)" >&5
|
|
if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
fu_cv_sys_stat_statfs3_osf1=no
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12923 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/param.h>
|
|
#include <sys/types.h>
|
|
#include <sys/mount.h>
|
|
main ()
|
|
{
|
|
struct statfs fsd;
|
|
fsd.f_fsize = 0;
|
|
exit (statfs (".", &fsd, sizeof (struct statfs)));
|
|
}
|
|
EOF
|
|
if { (eval echo configure:12936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
fu_cv_sys_stat_statfs3_osf1=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
fu_cv_sys_stat_statfs3_osf1=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
|
|
if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
|
|
space=yes
|
|
cat >> confdefs.h <<\EOF
|
|
#define STAT_STATFS3_OSF1 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
if test $space = no; then
|
|
# AIX
|
|
echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
|
|
echo "configure:12963: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
|
|
if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
fu_cv_sys_stat_statfs2_bsize=no
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12971 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_SYS_PARAM_H
|
|
#include <sys/param.h>
|
|
#endif
|
|
#ifdef HAVE_SYS_MOUNT_H
|
|
#include <sys/mount.h>
|
|
#endif
|
|
#ifdef HAVE_SYS_VFS_H
|
|
#include <sys/vfs.h>
|
|
#endif
|
|
main ()
|
|
{
|
|
struct statfs fsd;
|
|
fsd.f_bsize = 0;
|
|
exit (statfs (".", &fsd));
|
|
}
|
|
EOF
|
|
if { (eval echo configure:12990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
fu_cv_sys_stat_statfs2_bsize=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
fu_cv_sys_stat_statfs2_bsize=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
|
|
if test $fu_cv_sys_stat_statfs2_bsize = yes; then
|
|
space=yes
|
|
cat >> confdefs.h <<\EOF
|
|
#define STAT_STATFS2_BSIZE 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
if test $space = no; then
|
|
# SVR3
|
|
echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
|
|
echo "configure:13017: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
|
|
if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
fu_cv_sys_stat_statfs4=no
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13025 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/statfs.h>
|
|
main ()
|
|
{
|
|
struct statfs fsd;
|
|
exit (statfs (".", &fsd, sizeof fsd, 0));
|
|
}
|
|
EOF
|
|
if { (eval echo configure:13035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
fu_cv_sys_stat_statfs4=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
fu_cv_sys_stat_statfs4=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
|
|
if test $fu_cv_sys_stat_statfs4 = yes; then
|
|
space=yes
|
|
cat >> confdefs.h <<\EOF
|
|
#define STAT_STATFS4 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
if test $space = no; then
|
|
# 4.4BSD and NetBSD
|
|
echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
|
|
echo "configure:13062: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
|
|
if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
fu_cv_sys_stat_statfs2_fsize=no
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13070 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#ifdef HAVE_SYS_PARAM_H
|
|
#include <sys/param.h>
|
|
#endif
|
|
#ifdef HAVE_SYS_MOUNT_H
|
|
#include <sys/mount.h>
|
|
#endif
|
|
main ()
|
|
{
|
|
struct statfs fsd;
|
|
fsd.f_fsize = 0;
|
|
exit (statfs (".", &fsd));
|
|
}
|
|
EOF
|
|
if { (eval echo configure:13086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
fu_cv_sys_stat_statfs2_fsize=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
fu_cv_sys_stat_statfs2_fsize=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
|
|
if test $fu_cv_sys_stat_statfs2_fsize = yes; then
|
|
space=yes
|
|
cat >> confdefs.h <<\EOF
|
|
#define STAT_STATFS2_FSIZE 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
if test $space = no; then
|
|
# Ultrix
|
|
echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
|
|
echo "configure:13113: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
|
|
if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
fu_cv_sys_stat_fs_data=no
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13121 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#ifdef HAVE_SYS_PARAM_H
|
|
#include <sys/param.h>
|
|
#endif
|
|
#ifdef HAVE_SYS_MOUNT_H
|
|
#include <sys/mount.h>
|
|
#endif
|
|
#ifdef HAVE_SYS_FS_TYPES_H
|
|
#include <sys/fs_types.h>
|
|
#endif
|
|
main ()
|
|
{
|
|
struct fs_data fsd;
|
|
/* Ultrix's statfs returns 1 for success,
|
|
0 for not mounted, -1 for failure. */
|
|
exit (statfs (".", &fsd) != 1);
|
|
}
|
|
EOF
|
|
if { (eval echo configure:13141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
fu_cv_sys_stat_fs_data=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
fu_cv_sys_stat_fs_data=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
|
|
if test $fu_cv_sys_stat_fs_data = yes; then
|
|
space=yes
|
|
cat >> confdefs.h <<\EOF
|
|
#define STAT_STATFS2_FS_DATA 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
#
|
|
# As a gating factor for large file support, in order to
|
|
# use <4GB files we must have the following minimal support
|
|
# available.
|
|
# long long, and a 64 bit off_t or off64_t.
|
|
# If we don't have all of these then disable large
|
|
# file support.
|
|
#
|
|
echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
|
|
echo "configure:13174: checking if large file support can be enabled" >&5
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13176 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
|
|
#include <sys/types.h>
|
|
#else
|
|
__COMPILE_ERROR_
|
|
#endif
|
|
|
|
int main() {
|
|
int i
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
|
|
fi
|
|
rm -f conftest*
|
|
if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
|
|
|
|
# Check whether --with-spinlocks or --without-spinlocks was given.
|
|
if test "${with_spinlocks+set}" = set; then
|
|
withval="$with_spinlocks"
|
|
:
|
|
fi
|
|
|
|
if test "x$with_spinlocks" = "xyes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define USE_SPINLOCKS 1
|
|
EOF
|
|
|
|
|
|
case "$host_cpu" in
|
|
sparc)
|
|
cat >> confdefs.h <<\EOF
|
|
#define SPARC_SPINLOCKS 1
|
|
EOF
|
|
|
|
;;
|
|
|
|
i386|i486|i586|i686)
|
|
cat >> confdefs.h <<\EOF
|
|
#define INTEL_SPINLOCKS 1
|
|
EOF
|
|
|
|
;;
|
|
|
|
mips)
|
|
cat >> confdefs.h <<\EOF
|
|
#define MIPS_SPINLOCKS 1
|
|
EOF
|
|
|
|
;;
|
|
|
|
powerpc)
|
|
cat >> confdefs.h <<\EOF
|
|
#define POWERPC_SPINLOCKS 1
|
|
EOF
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
#################################################
|
|
# check for ACL support
|
|
|
|
echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
|
|
echo "configure:13254: checking whether to support ACLs" >&5
|
|
# Check whether --with-acl-support or --without-acl-support was given.
|
|
if test "${with_acl_support+set}" = set; then
|
|
withval="$with_acl_support"
|
|
case "$withval" in
|
|
yes)
|
|
|
|
case "$host_os" in
|
|
*sysv5*)
|
|
echo "$ac_t""Using UnixWare ACLs" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UNIXWARE_ACLS 1
|
|
EOF
|
|
|
|
;;
|
|
*solaris*)
|
|
echo "$ac_t""Using solaris ACLs" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SOLARIS_ACLS 1
|
|
EOF
|
|
|
|
;;
|
|
*hpux*)
|
|
echo "$ac_t""Using HPUX ACLs" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_HPUX_ACLS 1
|
|
EOF
|
|
|
|
;;
|
|
*irix*)
|
|
echo "$ac_t""Using IRIX ACLs" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_IRIX_ACLS 1
|
|
EOF
|
|
|
|
;;
|
|
*aix*)
|
|
echo "$ac_t""Using AIX ACLs" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_AIX_ACLS 1
|
|
EOF
|
|
|
|
;;
|
|
*osf*)
|
|
echo "$ac_t""Using Tru64 ACLs" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_TRU64_ACLS 1
|
|
EOF
|
|
|
|
LIBS="$LIBS -lpacl"
|
|
;;
|
|
*)
|
|
echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
|
|
echo "configure:13307: checking for acl_get_file in -lacl" >&5
|
|
ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lacl $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13315 "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 acl_get_file();
|
|
|
|
int main() {
|
|
acl_get_file()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13326: \"$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 acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lacl $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
echo $ac_n "checking for ACL support""... $ac_c" 1>&6
|
|
echo "configure:13354: checking for ACL support" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13360 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/acl.h>
|
|
int main() {
|
|
acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_POSIX_ACLS=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_POSIX_ACLS=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
|
|
if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
|
|
echo "$ac_t""Using posix ACLs" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_POSIX_ACLS 1
|
|
EOF
|
|
|
|
echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
|
|
echo "configure:13388: checking for acl_get_perm_np" >&5
|
|
if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13394 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/acl.h>
|
|
int main() {
|
|
acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_ACL_GET_PERM_NP=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
samba_cv_HAVE_ACL_GET_PERM_NP=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
|
|
if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_ACL_GET_PERM_NP 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
echo "$ac_t""no" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_NO_ACLS 1
|
|
EOF
|
|
|
|
;;
|
|
esac
|
|
else
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_NO_ACLS 1
|
|
EOF
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
#################################################
|
|
# Check whether winbind is supported on this platform. If so we need to
|
|
# build and install client programs (WINBIND_TARGETS), sbin programs
|
|
# (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
|
|
|
|
echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
|
|
echo "configure:13449: checking whether to build winbind" >&5
|
|
|
|
# Initially, the value of $host_os decides whether winbind is supported
|
|
|
|
case "$host_os" in
|
|
*linux*|*solaris*|*irix*)
|
|
HAVE_WINBIND=yes
|
|
;;
|
|
*)
|
|
HAVE_WINBIND=no
|
|
winbind_no_reason=", unsupported on $host_os"
|
|
;;
|
|
esac
|
|
|
|
# Check the setting of --with-winbindd
|
|
|
|
# Check whether --with-winbind or --without-winbind was given.
|
|
if test "${with_winbind+set}" = set; then
|
|
withval="$with_winbind"
|
|
|
|
case "$withval" in
|
|
yes)
|
|
HAVE_WINBIND=yes
|
|
;;
|
|
no)
|
|
HAVE_WINBIND=no
|
|
winbind_reason=""
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
|
|
# We need unix domain sockets for winbind
|
|
|
|
if test x"$HAVE_WINBIND" = x"yes"; then
|
|
if test x"$samba_cv_unixsocket" = x"no"; then
|
|
winbind_no_reason=", no unix domain socket support on $host_os"
|
|
HAVE_WINBIND=no
|
|
fi
|
|
fi
|
|
|
|
# Display test results
|
|
|
|
WINBIND_TARGETS=""
|
|
WINBIND_STARGETS=""
|
|
WINBIND_LTARGETS=""
|
|
WINBIND_PAM_PROGS=""
|
|
|
|
if test x"$HAVE_WINBIND" = x"yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
WINBIND_TARGETS="bin/wbinfo"
|
|
WINBIND_STARGETS="bin/winbindd"
|
|
if test x"$BLDSHARED" = x"true"; then
|
|
WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
|
|
if test x"$with_pam" = x"yes"; then
|
|
WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
|
|
fi
|
|
fi
|
|
else
|
|
echo "$ac_t""no$winbind_no_reason" 1>&6
|
|
fi
|
|
|
|
# Substitution time!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#################################################
|
|
# Check to see if we should use the included popt
|
|
|
|
# Check whether --with-included-popt or --without-included-popt was given.
|
|
if test "${with_included_popt+set}" = set; then
|
|
withval="$with_included_popt"
|
|
|
|
case "$withval" in
|
|
yes)
|
|
INCLUDED_POPT=yes
|
|
;;
|
|
no)
|
|
INCLUDED_POPT=no
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
if test x"$INCLUDED_POPT" != x"yes"; then
|
|
echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
|
|
echo "configure:13538: checking for poptGetContext in -lpopt" >&5
|
|
ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lpopt $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13546 "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 poptGetContext();
|
|
|
|
int main() {
|
|
poptGetContext()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13557: \"$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
|
|
INCLUDED_POPT=no
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
INCLUDED_POPT=yes
|
|
fi
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
|
|
echo "configure:13581: checking whether to use included popt" >&5
|
|
if test x"$INCLUDED_POPT" = x"yes"; then
|
|
echo "$ac_t""$srcdir/popt" 1>&6
|
|
BUILD_POPT='$(POPT_OBJS)'
|
|
FLAGS1="-I$srcdir/popt"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
LIBS="$LIBS -lpopt"
|
|
fi
|
|
|
|
|
|
|
|
#################################################
|
|
# final configure stuff
|
|
|
|
echo "checking configure summary"
|
|
if test "$cross_compiling" = yes; then
|
|
:
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13601 "configure"
|
|
#include "confdefs.h"
|
|
#include "${srcdir-.}/tests/summary.c"
|
|
EOF
|
|
if { (eval echo configure:13605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
echo "configure OK";
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
{ echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
builddir=`pwd`
|
|
|
|
|
|
trap '' 1 2 15
|
|
cat > confcache <<\EOF
|
|
# This file is a shell script that caches the results of configure
|
|
# tests run on this system so they can be shared between configure
|
|
# scripts and configure runs. It is not useful on other systems.
|
|
# If it contains results you don't want to keep, you may remove or edit it.
|
|
#
|
|
# By default, configure uses ./config.cache as the cache file,
|
|
# creating it if it does not exist already. You can give configure
|
|
# the --cache-file=FILE option to use a different cache file; that is
|
|
# what configure does when it calls configure scripts in
|
|
# subdirectories, so they share the cache.
|
|
# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|
# config.status only pays attention to the cache file if you give it the
|
|
# --recheck option to rerun configure.
|
|
#
|
|
EOF
|
|
# The following way of writing the cache mishandles newlines in values,
|
|
# but we know of no workaround that is simple, portable, and efficient.
|
|
# So, don't put newlines in cache variables' values.
|
|
# Ultrix sh set writes to stderr and can't be redirected directly,
|
|
# and sets the high bit in the cache file unless we assign to the vars.
|
|
(set) 2>&1 |
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|
*ac_space=\ *)
|
|
# `set' does not quote correctly, so add quotes (double-quote substitution
|
|
# turns \\\\ into \\, and sed turns \\ into \).
|
|
sed -n \
|
|
-e "s/'/'\\\\''/g" \
|
|
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|
;;
|
|
*)
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
|
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|
;;
|
|
esac >> confcache
|
|
if cmp -s $cache_file confcache; then
|
|
:
|
|
else
|
|
if test -w $cache_file; then
|
|
echo "updating cache $cache_file"
|
|
cat confcache > $cache_file
|
|
else
|
|
echo "not updating unwritable cache $cache_file"
|
|
fi
|
|
fi
|
|
rm -f confcache
|
|
|
|
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"
|
|
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 "include/stamp-h Makefile include/config.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%@RUNPROG@%$RUNPROG%g
|
|
s%@MPROGS@%$MPROGS%g
|
|
s%@LDSHFLAGS@%$LDSHFLAGS%g
|
|
s%@SHLD@%$SHLD%g
|
|
s%@HOST_OS@%$HOST_OS%g
|
|
s%@PAM_MOD@%$PAM_MOD%g
|
|
s%@WRAP@%$WRAP%g
|
|
s%@WRAP32@%$WRAP32%g
|
|
s%@PICFLAG@%$PICFLAG%g
|
|
s%@PICSUFFIX@%$PICSUFFIX%g
|
|
s%@POBAD_CC@%$POBAD_CC%g
|
|
s%@SHLIBEXT@%$SHLIBEXT%g
|
|
s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
|
|
s%@CC@%$CC%g
|
|
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|
s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
s%@AWK@%$AWK%g
|
|
s%@BROKEN_CC@%$BROKEN_CC%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%@CPP@%$CPP%g
|
|
s%@LIBOBJS@%$LIBOBJS%g
|
|
s%@TERMLIBS@%$TERMLIBS%g
|
|
s%@TERMLDFLAGS@%$TERMLDFLAGS%g
|
|
s%@ROFF@%$ROFF%g
|
|
s%@QUOTAOBJS@%$QUOTAOBJS%g
|
|
s%@privatedir@%$privatedir%g
|
|
s%@lockdir@%$lockdir%g
|
|
s%@swatdir@%$swatdir%g
|
|
s%@manlangs@%$manlangs%g
|
|
s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
|
|
s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
|
|
s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
|
|
s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
|
|
s%@BUILD_POPT@%$BUILD_POPT%g
|
|
s%@FLAGS1@%$FLAGS1%g
|
|
s%@builddir@%$builddir%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-"include/stamp-h Makefile"}
|
|
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
|
|
*Makefile*) 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/config.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
|
|
|
|
exit 0
|
|
EOF
|
|
chmod +x $CONFIG_STATUS
|
|
rm -fr confdefs* $ac_clean_files
|
|
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|
|
|
|
|
#################################################
|
|
# Print very concise instructions on building/use
|
|
if test "x$enable_dmalloc" = xyes
|
|
then
|
|
echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
|
|
echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6
|
|
fi
|