~ubuntu-branches/ubuntu/gutsy/samba/gutsy-updates

« back to all changes in this revision

Viewing changes to source/configure

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Mitchell
  • Date: 2006-11-28 20:14:37 UTC
  • mfrom: (0.10.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061128201437-a6x4lzlhempazocp
Tags: 3.0.23d-1ubuntu1
* Merge from debian unstable.
* Drop python2.4-samba, replace with python-samba. Added Conflicts/Replaces
  on python2.4-samba
* Drop track-connection-dos.patch, ubuntu-winbind-panic.patch, 
  ubuntu-fix-ldap.patch, ubuntu-setlocale.patch, ubuntu-setlocale-fixes.patch
* Remaining Ubuntu changes:
  - Revert Debian's installation of mount.cifs and umount.cifs as suid
  - Comment out the default [homes] shares and add more verbose comments to
    explain what they do and how they work (closes: launchpad.net/27608)
  - Add a "valid users = %S" stanza to the commented-out [homes] section, to
    show users how to restrict access to \\server\username to only username.
  - Change the (commented-out) "printer admin" example to use "@lpadmin"
    instead of "@ntadmin", since the lpadmin group is used for spool admin.
  - Alter the panic-action script to encourage users to report their
    bugs in Ubuntu packages to Ubuntu, rather than reporting to Debian.
    Modify text to more closely match the Debian script
  - Munge our init script to deal with the fact that our implementation
    (or lack thereof) of log_daemon_msg and log_progress_msg differs
    from Debian's implementation of the same (Ubuntu #19691)
  - Kept ubuntu-auxsrc.patch: some auxilliary sources (undocumented in 
    previous changelogs)
  - Set default workgroup to MSHOME

Show diffs side-by-side

added added

removed removed

Lines of Context:
310
310
# include <unistd.h>
311
311
#endif"
312
312
 
313
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configdir lockdir piddir logfilebase privatedir swatdir LDSHFLAGS SONAMEFLAG SONAMEVERSIONSUFFIX SHLD HOST_OS PICFLAGS PICSUFFIX libc_cv_fpie PIE_CFLAGS PIE_LDFLAGS SHLIBEXT INSTALLLIBCMD_SH INSTALLLIBCMD_A INSTALL_LIBMSRPC LIBMSRPC_SHARED LIBMSRPC INSTALL_LIBSMBCLIENT LIBSMBCLIENT_SHARED LIBSMBCLIENT INSTALL_LIBSMBSHAREMODES LIBSMBSHAREMODES_SHARED LIBSMBSHAREMODES PRINT_LIBS AUTH_LIBS ACL_LIBS PASSDB_LIBS IDMAP_LIBS KRB5_LIBS LDAP_LIBS SHLIB_PROGS SMBWRAPPER SMBWRAP_OBJS SMBWRAP_INC EXTRA_BIN_PROGS EXTRA_SBIN_PROGS EXTRA_ALL_TARGETS CONFIG_LIBS SOCKWRAP CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK PERL AR ac_ct_AR BROKEN_CC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os EGREP CUPS_CONFIG LIBOBJS TERMLIBS TERMLDFLAGS ROFF DYNEXP SMBLDAP SMBLDAPUTIL KRB5CONFIG XML2_CONFIG XML_CFLAGS XML_LIBS MYSQL_CONFIG MYSQL_CFLAGS MYSQL_LIBS PGSQL_CONFIG PGSQL_CFLAGS PGSQL_LIBS WINBIND_NSS WINBIND_WINS_NSS WINBIND_NSS_LDSHFLAGS WINBIND_NSS_EXTRA_OBJS WINBIND_NSS_EXTRA_LIBS BUILD_POPT POPTLIBS FLAGS1 PYTHON PDB_STATIC PDB_MODULES RPC_STATIC RPC_MODULES IDMAP_STATIC IDMAP_MODULES CHARSET_STATIC CHARSET_MODULES AUTH_STATIC AUTH_MODULES VFS_STATIC VFS_MODULES builddir LTLIBOBJS'
 
313
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configdir lockdir piddir logfilebase privatedir swatdir rootsbindir pammodulesdir LDSHFLAGS SONAMEFLAG SHLD HOST_OS PICFLAGS PICSUFFIX libc_cv_fpie PIE_CFLAGS PIE_LDFLAGS SHLIBEXT INSTALLLIBCMD_SH INSTALLLIBCMD_A UNINSTALLLIBCMD_SH UNINSTALLLIBCMD_A INSTALL_LIBMSRPC UNINSTALL_LIBMSRPC LIBMSRPC_SHARED LIBMSRPC INSTALL_LIBSMBCLIENT UNINSTALL_LIBSMBCLIENT LIBSMBCLIENT_SHARED LIBSMBCLIENT INSTALL_LIBSMBSHAREMODES LIBSMBSHAREMODES_SHARED LIBSMBSHAREMODES PRINT_LIBS AUTH_LIBS ACL_LIBS PASSDB_LIBS IDMAP_LIBS KRB5_LIBS LDAP_LIBS SHLIB_PROGS PAM_MODULES INSTALL_PAM_MODULES UNINSTALL_PAM_MODULES SMBWRAPPER SMBWRAP_OBJS SMBWRAP_INC EXTRA_BIN_PROGS CIFSMOUNT_PROGS INSTALL_CIFSMOUNT UNINSTALL_CIFSMOUNT EXTRA_SBIN_PROGS EXTRA_ALL_TARGETS CONFIG_LIBS NSCD_LIBS SOCKWRAP selftest_prefix smbtorture4_path CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK PERL AR ac_ct_AR BROKEN_CC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os EGREP CUPS_CONFIG LIBOBJS TERMLIBS TERMLDFLAGS LIBUNWIND_PTRACE ROFF DYNEXP SMBLDAP SMBLDAPUTIL KRB5CONFIG WINBIND_NSS WINBIND_WINS_NSS WINBIND_NSS_LDSHFLAGS WINBIND_NSS_EXTRA_OBJS WINBIND_NSS_EXTRA_LIBS NSSSONAMEVERSIONSUFFIX BUILD_POPT POPTLIBS FLAGS1 BUILD_INIPARSER INIPARSERLIBS PYTHON PDB_STATIC PDB_MODULES RPC_STATIC RPC_MODULES IDMAP_STATIC IDMAP_MODULES CHARSET_STATIC CHARSET_MODULES AUTH_STATIC AUTH_MODULES VFS_STATIC VFS_MODULES builddir SMBD_LIBS LTLIBOBJS'
314
314
ac_subst_files=''
315
315
 
316
316
# Initialize some variables set by options.
856
856
  --enable-dmalloc        Enable heap debugging default=no
857
857
  --enable-cups           Turn on CUPS support (default=auto)
858
858
  --enable-iprint         Turn on iPrint support (default=yes if cups is yes)
859
 
  --disable-xmltest       Do not try to compile and run a test LIBXML program
860
859
 
861
860
Optional Packages:
862
861
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
863
862
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
864
863
  --with-fhs              Use FHS-compliant paths (default=no)
865
864
  --with-privatedir=DIR   Where to put smbpasswd ($ac_default_prefix/private)
 
865
  --with-rootsbindir=DIR  Which directory to use for root sbin ($ac_default_prefix/sbin)
866
866
  --with-lockdir=DIR      Where to put lock files ($ac_default_prefix/var/locks)
867
867
  --with-piddir=DIR       Where to put pid files ($ac_default_prefix/var/locks)
868
868
  --with-swatdir=DIR      Where to put SWAT files ($ac_default_prefix/swat)
869
869
  --with-configdir=DIR    Where to put configuration files ($libdir)
870
870
  --with-logfilebase=DIR  Where to put log files ($VARDIR)
871
871
  --with-libdir=DIR       Where to put libdir ($libdir)
 
872
  --with-pammodulesdir=DIR  Which directory to use for PAM modules ($ac_default_prefix/$libdir/security)
872
873
  --with-mandir=DIR       Where to put man pages ($mandir)
873
874
  --with-cfenc=HEADERDIR  Use internal CoreFoundation encoding API
874
875
                          for optimization (Mac OS X/Darwin only)
 
876
  --with-selftest-prefix=DIR    The prefix where make test will be runned ($selftest_prefix)
 
877
  --with-smbtorture4-path=PATH    The path to a samba4 smbtorture for make test (none)
 
878
  --with-profiling-data   Include gathering source code profile information (default=no)
875
879
  --with-readline=DIR     Look for readline include/libs in DIR (default=auto)
876
880
  --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
877
881
  --with-smbwrapper       Include SMB wrapper support (default=no)
882
886
  --with-ldap             LDAP support (default yes)
883
887
  --with-ads              Active Directory support (default auto)
884
888
  --with-krb5=base-dir    Locate Kerberos 5 support (default=/usr)
885
 
  --with-expsam=<list>    Include experimental passdb libraries (default=no)
886
 
                          Valid choices include (comma separated list):
887
 
                              xml, mysql & pgsql
888
 
  --with-xml-prefix=PFX   Prefix where libxml is installed (optional)
889
 
  --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
890
 
  --with-mysql-prefix=PFX   Prefix where MYSQL is installed (optional)
891
 
  --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)
892
 
  --with-pgsql-prefix=PFX   Prefix where PostgreSQL is installed (optional)
893
 
  --with-pgsql-exec-prefix=PFX Exec prefix where PostgreSQL is installed (optional)
894
889
  --with-automount        Include automount support (default=no)
895
890
  --with-smbmount         Include smbmount (Linux only) support (default=no)
 
891
  --with-cifsmount        Include mount.cifs and umount.cifs (Linux only) support (default=yes)
896
892
  --with-pam              Include PAM support (default=no)
897
893
  --with-pam_smbpass      Build PAM module for authenticating against passdb backends (default=no)
898
 
  --with-ldapsam          Include LDAP SAM 2.2 compatible configuration (default=no)
899
894
  --with-nisplus-home     Include NISPLUS_HOME support (default=no)
900
895
  --with-syslog           Include experimental SYSLOG support (default=no)
901
 
  --with-profiling-data   Include gathering source code profile information (default=no)
902
896
  --with-quotas           Include disk-quota support (default=no)
903
897
  --with-sys-quotas       Include lib/sysquotas.c support (default=auto)
904
898
  --with-utmp             Include utmp accounting (default, if supported by OS)
906
900
  --with-libsmbclient     Build the libsmbclient shared library (default=yes if shared libs supported)
907
901
  --with-libsmbsharemodes     Build the libsmbsharemodes shared library (default=yes if shared libs supported)
908
902
  --with-spinlocks        Use spin locks instead of fcntl locks (default=no)
 
903
  --with-cluster-support  Enable cluster extensions (default=no)
909
904
  --with-acl-support      Include ACL support (default=no)
910
905
  --with-aio-support      Include asynchronous io support (default=no)
911
906
  --with-sendfile-support Check for sendfile support (default=yes)
912
907
  --with-winbind          Build winbind (default, if supported by OS)
913
908
  --with-included-popt    use bundled popt library, not from system
 
909
  --with-included-iniparser    use bundled iniparser library, not from system
914
910
  --with-python=PYTHONNAME  build Python libraries
915
911
  --with-static-modules=MODULES  Comma-seperated list of names of modules to statically link in
916
912
  --with-shared-modules=MODULES  Comma-seperated list of names of modules to build shared
1425
1421
# ones...
1426
1422
 
1427
1423
 
 
1424
rootsbindir="\${SBINDIR}"
1428
1425
lockdir="\${VARDIR}/locks"
1429
1426
piddir="\${VARDIR}/locks"
1430
 
mandir="\${prefix}/man"
 
1427
test "${mandir}" || mandir="\${prefix}/man"
1431
1428
logfilebase="\${VARDIR}"
1432
1429
privatedir="\${prefix}/private"
1433
 
libdir="\${prefix}/lib"
 
1430
test "${libdir}" || libdir="\${prefix}/lib"
 
1431
pammodulesdir="\${LIBDIR}/security"
1434
1432
configdir="\${LIBDIR}"
1435
1433
swatdir="\${prefix}/swat"
1436
1434
 
1473
1471
fi;
1474
1472
 
1475
1473
#################################################
 
1474
# set root sbin directory location
 
1475
 
 
1476
# Check whether --with-rootsbindir or --without-rootsbindir was given.
 
1477
if test "${with_rootsbindir+set}" = set; then
 
1478
  withval="$with_rootsbindir"
 
1479
   case "$withval" in
 
1480
  yes|no)
 
1481
  #
 
1482
  # Just in case anybody calls it without argument
 
1483
  #
 
1484
    { echo "$as_me:$LINENO: WARNING: --with-rootsbindir called without argument - will use default" >&5
 
1485
echo "$as_me: WARNING: --with-rootsbindir called without argument - will use default" >&2;}
 
1486
  ;;
 
1487
  * )
 
1488
    rootsbindir="$withval"
 
1489
    ;;
 
1490
  esac
 
1491
fi;
 
1492
 
 
1493
#################################################
1476
1494
# set lock directory location
1477
1495
 
1478
1496
# Check whether --with-lockdir or --without-lockdir was given.
1593
1611
fi;
1594
1612
 
1595
1613
#################################################
1596
 
# set lib directory location
 
1614
# set PAM modules directory location
 
1615
 
 
1616
# Check whether --with-pammodulesdir or --without-pammodulesdir was given.
 
1617
if test "${with_pammodulesdir+set}" = set; then
 
1618
  withval="$with_pammodulesdir"
 
1619
   case "$withval" in
 
1620
  yes|no)
 
1621
  #
 
1622
  # Just in case anybody calls it without argument
 
1623
  #
 
1624
    { echo "$as_me:$LINENO: WARNING: --with-pammodulesdir called without argument - will use default" >&5
 
1625
echo "$as_me: WARNING: --with-pammodulesdir called without argument - will use default" >&2;}
 
1626
  ;;
 
1627
  * )
 
1628
    pammodulesdir="$withval"
 
1629
    ;;
 
1630
  esac
 
1631
fi;
 
1632
 
 
1633
#################################################
 
1634
# set man directory location
1597
1635
 
1598
1636
# Check whether --with-mandir or --without-mandir was given.
1599
1637
if test "${with_mandir+set}" = set; then
1681
1719
 
1682
1720
 
1683
1721
 
 
1722
 
 
1723
 
 
1724
 
 
1725
 
 
1726
 
 
1727
 
 
1728
 
 
1729
 
 
1730
 
 
1731
 
 
1732
 
 
1733
 
1684
1734
# Set defaults
1685
1735
PIE_CFLAGS=""
1686
1736
PIE_LDFLAGS=""
1744
1794
    fi
1745
1795
fi;
1746
1796
 
 
1797
#################################################
 
1798
# set prefix for 'make test'
 
1799
selftest_prefix="./"
 
1800
 
 
1801
 
 
1802
# Check whether --with-selftest-prefix or --without-selftest-prefix was given.
 
1803
if test "${with_selftest_prefix+set}" = set; then
 
1804
  withval="$with_selftest_prefix"
 
1805
   case "$withval" in
 
1806
  yes|no)
 
1807
    { echo "$as_me:$LINENO: WARNING: --with-selftest-prefix called without argument - will use default" >&5
 
1808
echo "$as_me: WARNING: --with-selftest-prefix called without argument - will use default" >&2;}
 
1809
  ;;
 
1810
  * )
 
1811
    selftest_prefix="$withval"
 
1812
    ;;
 
1813
  esac
 
1814
 
 
1815
fi;
 
1816
 
 
1817
#################################################
 
1818
# set path of samba4's smbtorture
 
1819
smbtorture4_path=""
 
1820
 
 
1821
 
 
1822
# Check whether --with-smbtorture4_path or --without-smbtorture4_path was given.
 
1823
if test "${with_smbtorture4_path+set}" = set; then
 
1824
  withval="$with_smbtorture4_path"
 
1825
   case "$withval" in
 
1826
  yes|no)
 
1827
    { { echo "$as_me:$LINENO: error: --with-smbtorture4-path should take a path" >&5
 
1828
echo "$as_me: error: --with-smbtorture4-path should take a path" >&2;}
 
1829
   { (exit 1); exit 1; }; }
 
1830
  ;;
 
1831
  * )
 
1832
    smbtorture4_path="$withval"
 
1833
    if test -z "$smbtorture4_path" -a ! -f $smbtorture4_path; then
 
1834
        { { echo "$as_me:$LINENO: error: '$smbtorture_path' does not  exist!" >&5
 
1835
echo "$as_me: error: '$smbtorture_path' does not  exist!" >&2;}
 
1836
   { (exit 1); exit 1; }; }
 
1837
    fi
 
1838
  ;;
 
1839
 esac
 
1840
 
 
1841
fi;
 
1842
 
1747
1843
# compile with optimization and without debugging by default, but
1748
1844
# allow people to set their own preference.
1749
1845
# do this here since AC_CACHE_CHECK apparently sets the CFLAGS to "-g -O2"
2745
2841
samba_cv_HAVE_Wdeclaration_after_statement=no
2746
2842
fi
2747
2843
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2748
 
fi;
 
2844
fi
2749
2845
        CFLAGS="$old_CFLAGS";
2750
2846
        old_CFLAGS="";
2751
2847
        export CFLAGS;
2796
2892
        LIBS="$LIBS -ldmalloc"
2797
2893
fi
2798
2894
 
 
2895
#################################################
 
2896
# check for a shared memory profiling support
 
2897
echo "$as_me:$LINENO: checking whether to use profiling" >&5
 
2898
echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6
 
2899
 
 
2900
# Check whether --with-profiling-data or --without-profiling-data was given.
 
2901
if test "${with_profiling_data+set}" = set; then
 
2902
  withval="$with_profiling_data"
 
2903
   case "$withval" in
 
2904
  yes)
 
2905
    echo "$as_me:$LINENO: result: yes" >&5
 
2906
echo "${ECHO_T}yes" >&6
 
2907
 
 
2908
cat >>confdefs.h <<\_ACEOF
 
2909
#define WITH_PROFILE 1
 
2910
_ACEOF
 
2911
 
 
2912
    samba_cv_WITH_PROFILE=yes
 
2913
    ;;
 
2914
  *)
 
2915
    echo "$as_me:$LINENO: result: no" >&5
 
2916
echo "${ECHO_T}no" >&6
 
2917
    samba_cv_WITH_PROFILE=no
 
2918
    ;;
 
2919
  esac
 
2920
else
 
2921
  echo "$as_me:$LINENO: result: no" >&5
 
2922
echo "${ECHO_T}no" >&6
 
2923
 
 
2924
fi;
 
2925
 
2799
2926
 
2800
2927
##
2801
2928
## for some reason this macro resets the CFLAGS
4362
4489
samba_cv_HAVE_Werror=no
4363
4490
fi
4364
4491
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4365
 
fi;
 
4492
fi
4366
4493
        CFLAGS="$old_CFLAGS";
4367
4494
        old_CFLAGS="";
4368
4495
        export CFLAGS;
4431
4558
samba_cv_HAVE_w2=no
4432
4559
fi
4433
4560
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4434
 
fi;
 
4561
fi
4435
4562
        CFLAGS="$old_CFLAGS";
4436
4563
        old_CFLAGS="";
4437
4564
        export CFLAGS;
4620
4747
  program_prefix=${target_alias}-
4621
4748
 
4622
4749
  case "$host_os" in
4623
 
        *irix6*) cat >> confdefs.h <<\EOF
 
4750
        *irix6*)
 
4751
                cat >> confdefs.h <<\EOF
4624
4752
#include <standards.h>
4625
4753
EOF
4626
4754
 
 
4755
                if test x"$ac_cv_c_compiler_gnu" != x"yes" ; then
 
4756
                                                                                                                                                                                                CFLAGS="$CFLAGS -diag_error 1035"
 
4757
                                                                                                CFLAGS="$CFLAGS -woff 1209,1174,3201"
 
4758
                fi
4627
4759
        ;;
4628
4760
esac
4629
4761
 
4653
4785
 
4654
4786
DYNEXP=
4655
4787
 
4656
 
default_static_modules="pdb_smbpasswd pdb_tdbsam rpc_lsa rpc_samr rpc_reg rpc_lsa_ds rpc_wks rpc_svcctl rpc_ntsvcs rpc_net rpc_dfs rpc_srv rpc_spoolss rpc_eventlog auth_rhosts auth_sam auth_unix auth_winbind auth_server auth_domain auth_builtin"
 
4788
default_static_modules="pdb_smbpasswd pdb_tdbsam rpc_lsa rpc_samr rpc_reg rpc_lsa_ds rpc_wks rpc_svcctl rpc_ntsvcs rpc_net rpc_netdfs rpc_srv rpc_spoolss rpc_eventlog auth_sam auth_unix auth_winbind auth_server auth_domain auth_builtin"
4657
4789
 
4658
4790
default_shared_modules="vfs_recycle vfs_audit vfs_extd_audit vfs_full_audit vfs_netatalk vfs_fake_perms vfs_default_quota vfs_readonly vfs_cap vfs_expand_msdfs vfs_shadow_copy charset_CP850 charset_CP437 auth_script"
4659
4791
 
6289
6421
 
6290
6422
 
6291
6423
 
6292
 
 
6293
 
for ac_header in unistd.h utime.h grp.h sys/id.h limits.h memory.h alloca.h
 
6424
for ac_header in unistd.h utime.h grp.h sys/id.h memory.h alloca.h
 
6425
do
 
6426
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6427
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6428
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6429
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6430
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6431
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6432
fi
 
6433
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6434
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6435
else
 
6436
  # Is the header compilable?
 
6437
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6438
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6439
cat >conftest.$ac_ext <<_ACEOF
 
6440
/* confdefs.h.  */
 
6441
_ACEOF
 
6442
cat confdefs.h >>conftest.$ac_ext
 
6443
cat >>conftest.$ac_ext <<_ACEOF
 
6444
/* end confdefs.h.  */
 
6445
$ac_includes_default
 
6446
#include <$ac_header>
 
6447
_ACEOF
 
6448
rm -f conftest.$ac_objext
 
6449
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6450
  (eval $ac_compile) 2>conftest.er1
 
6451
  ac_status=$?
 
6452
  grep -v '^ *+' conftest.er1 >conftest.err
 
6453
  rm -f conftest.er1
 
6454
  cat conftest.err >&5
 
6455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6456
  (exit $ac_status); } &&
 
6457
         { ac_try='test -z "$ac_c_werror_flag"
 
6458
                         || test ! -s conftest.err'
 
6459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6460
  (eval $ac_try) 2>&5
 
6461
  ac_status=$?
 
6462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6463
  (exit $ac_status); }; } &&
 
6464
         { ac_try='test -s conftest.$ac_objext'
 
6465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6466
  (eval $ac_try) 2>&5
 
6467
  ac_status=$?
 
6468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6469
  (exit $ac_status); }; }; then
 
6470
  ac_header_compiler=yes
 
6471
else
 
6472
  echo "$as_me: failed program was:" >&5
 
6473
sed 's/^/| /' conftest.$ac_ext >&5
 
6474
 
 
6475
ac_header_compiler=no
 
6476
fi
 
6477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6478
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6479
echo "${ECHO_T}$ac_header_compiler" >&6
 
6480
 
 
6481
# Is the header present?
 
6482
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6483
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6484
cat >conftest.$ac_ext <<_ACEOF
 
6485
/* confdefs.h.  */
 
6486
_ACEOF
 
6487
cat confdefs.h >>conftest.$ac_ext
 
6488
cat >>conftest.$ac_ext <<_ACEOF
 
6489
/* end confdefs.h.  */
 
6490
#include <$ac_header>
 
6491
_ACEOF
 
6492
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6493
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6494
  ac_status=$?
 
6495
  grep -v '^ *+' conftest.er1 >conftest.err
 
6496
  rm -f conftest.er1
 
6497
  cat conftest.err >&5
 
6498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6499
  (exit $ac_status); } >/dev/null; then
 
6500
  if test -s conftest.err; then
 
6501
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6502
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6503
  else
 
6504
    ac_cpp_err=
 
6505
  fi
 
6506
else
 
6507
  ac_cpp_err=yes
 
6508
fi
 
6509
if test -z "$ac_cpp_err"; then
 
6510
  ac_header_preproc=yes
 
6511
else
 
6512
  echo "$as_me: failed program was:" >&5
 
6513
sed 's/^/| /' conftest.$ac_ext >&5
 
6514
 
 
6515
  ac_header_preproc=no
 
6516
fi
 
6517
rm -f conftest.err conftest.$ac_ext
 
6518
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6519
echo "${ECHO_T}$ac_header_preproc" >&6
 
6520
 
 
6521
# So?  What about this header?
 
6522
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6523
  yes:no: )
 
6524
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6525
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6526
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6527
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6528
    ac_header_preproc=yes
 
6529
    ;;
 
6530
  no:yes:* )
 
6531
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6532
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6533
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6534
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6535
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6536
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6537
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6538
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6539
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6540
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6541
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6542
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6543
    (
 
6544
      cat <<\_ASBOX
 
6545
## ------------------------------------------ ##
 
6546
## Report this to the AC_PACKAGE_NAME lists.  ##
 
6547
## ------------------------------------------ ##
 
6548
_ASBOX
 
6549
    ) |
 
6550
      sed "s/^/$as_me: WARNING:     /" >&2
 
6551
    ;;
 
6552
esac
 
6553
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6554
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6555
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6556
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6557
else
 
6558
  eval "$as_ac_Header=\$ac_header_preproc"
 
6559
fi
 
6560
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6561
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6562
 
 
6563
fi
 
6564
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6565
  cat >>confdefs.h <<_ACEOF
 
6566
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6567
_ACEOF
 
6568
 
 
6569
fi
 
6570
 
 
6571
done
 
6572
 
 
6573
 
 
6574
 
 
6575
for ac_header in limits.h float.h
6294
6576
do
6295
6577
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6296
6578
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7518
7800
 
7519
7801
 
7520
7802
 
7521
 
 
7522
 
for ac_header in sys/syslog.h syslog.h execinfo.h
 
7803
for ac_header in sys/syslog.h syslog.h
7523
7804
do
7524
7805
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7525
7806
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9036
9317
 
9037
9318
 
9038
9319
 
9039
 
 
9040
 
for ac_header in sys/capability.h syscall.h sys/syscall.h
9041
 
do
9042
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9043
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9044
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
9045
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9046
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9047
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9048
 
fi
9049
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9050
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9051
 
else
9052
 
  # Is the header compilable?
9053
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9054
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9055
 
cat >conftest.$ac_ext <<_ACEOF
9056
 
/* confdefs.h.  */
9057
 
_ACEOF
9058
 
cat confdefs.h >>conftest.$ac_ext
9059
 
cat >>conftest.$ac_ext <<_ACEOF
9060
 
/* end confdefs.h.  */
9061
 
$ac_includes_default
9062
 
#include <$ac_header>
9063
 
_ACEOF
9064
 
rm -f conftest.$ac_objext
9065
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066
 
  (eval $ac_compile) 2>conftest.er1
9067
 
  ac_status=$?
9068
 
  grep -v '^ *+' conftest.er1 >conftest.err
9069
 
  rm -f conftest.er1
9070
 
  cat conftest.err >&5
9071
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072
 
  (exit $ac_status); } &&
9073
 
         { ac_try='test -z "$ac_c_werror_flag"
9074
 
                         || test ! -s conftest.err'
9075
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076
 
  (eval $ac_try) 2>&5
9077
 
  ac_status=$?
9078
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079
 
  (exit $ac_status); }; } &&
9080
 
         { ac_try='test -s conftest.$ac_objext'
9081
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082
 
  (eval $ac_try) 2>&5
9083
 
  ac_status=$?
9084
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085
 
  (exit $ac_status); }; }; then
9086
 
  ac_header_compiler=yes
9087
 
else
9088
 
  echo "$as_me: failed program was:" >&5
9089
 
sed 's/^/| /' conftest.$ac_ext >&5
9090
 
 
9091
 
ac_header_compiler=no
9092
 
fi
9093
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9094
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9095
 
echo "${ECHO_T}$ac_header_compiler" >&6
9096
 
 
9097
 
# Is the header present?
9098
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9099
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9100
 
cat >conftest.$ac_ext <<_ACEOF
9101
 
/* confdefs.h.  */
9102
 
_ACEOF
9103
 
cat confdefs.h >>conftest.$ac_ext
9104
 
cat >>conftest.$ac_ext <<_ACEOF
9105
 
/* end confdefs.h.  */
9106
 
#include <$ac_header>
9107
 
_ACEOF
9108
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9109
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9110
 
  ac_status=$?
9111
 
  grep -v '^ *+' conftest.er1 >conftest.err
9112
 
  rm -f conftest.er1
9113
 
  cat conftest.err >&5
9114
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115
 
  (exit $ac_status); } >/dev/null; then
9116
 
  if test -s conftest.err; then
9117
 
    ac_cpp_err=$ac_c_preproc_warn_flag
9118
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9119
 
  else
9120
 
    ac_cpp_err=
9121
 
  fi
9122
 
else
9123
 
  ac_cpp_err=yes
9124
 
fi
9125
 
if test -z "$ac_cpp_err"; then
9126
 
  ac_header_preproc=yes
9127
 
else
9128
 
  echo "$as_me: failed program was:" >&5
9129
 
sed 's/^/| /' conftest.$ac_ext >&5
9130
 
 
9131
 
  ac_header_preproc=no
9132
 
fi
9133
 
rm -f conftest.err conftest.$ac_ext
9134
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9135
 
echo "${ECHO_T}$ac_header_preproc" >&6
9136
 
 
9137
 
# So?  What about this header?
9138
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9139
 
  yes:no: )
9140
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9141
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9142
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9143
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9144
 
    ac_header_preproc=yes
9145
 
    ;;
9146
 
  no:yes:* )
9147
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9148
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9149
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9150
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9151
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9152
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9153
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9154
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9155
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9156
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9157
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9158
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9159
 
    (
9160
 
      cat <<\_ASBOX
9161
 
## ------------------------------------------ ##
9162
 
## Report this to the AC_PACKAGE_NAME lists.  ##
9163
 
## ------------------------------------------ ##
9164
 
_ASBOX
9165
 
    ) |
9166
 
      sed "s/^/$as_me: WARNING:     /" >&2
9167
 
    ;;
9168
 
esac
9169
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
9170
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9171
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9172
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9173
 
else
9174
 
  eval "$as_ac_Header=\$ac_header_preproc"
9175
 
fi
9176
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9177
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9178
 
 
9179
 
fi
9180
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9181
 
  cat >>confdefs.h <<_ACEOF
9182
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9183
 
_ACEOF
9184
 
 
9185
 
fi
9186
 
 
9187
 
done
9188
 
 
9189
 
 
9190
 
 
9191
 
 
9192
 
 
9193
 
 
9194
 
 
9195
 
 
9196
 
for ac_header in sys/acl.h sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h sys/proplist.h
9197
 
do
9198
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9199
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9200
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
9201
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9202
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9203
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9204
 
fi
9205
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9206
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9207
 
else
9208
 
  # Is the header compilable?
9209
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9210
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9211
 
cat >conftest.$ac_ext <<_ACEOF
9212
 
/* confdefs.h.  */
9213
 
_ACEOF
9214
 
cat confdefs.h >>conftest.$ac_ext
9215
 
cat >>conftest.$ac_ext <<_ACEOF
9216
 
/* end confdefs.h.  */
9217
 
$ac_includes_default
9218
 
#include <$ac_header>
9219
 
_ACEOF
9220
 
rm -f conftest.$ac_objext
9221
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9222
 
  (eval $ac_compile) 2>conftest.er1
9223
 
  ac_status=$?
9224
 
  grep -v '^ *+' conftest.er1 >conftest.err
9225
 
  rm -f conftest.er1
9226
 
  cat conftest.err >&5
9227
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228
 
  (exit $ac_status); } &&
9229
 
         { ac_try='test -z "$ac_c_werror_flag"
9230
 
                         || test ! -s conftest.err'
9231
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232
 
  (eval $ac_try) 2>&5
9233
 
  ac_status=$?
9234
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235
 
  (exit $ac_status); }; } &&
9236
 
         { ac_try='test -s conftest.$ac_objext'
9237
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238
 
  (eval $ac_try) 2>&5
9239
 
  ac_status=$?
9240
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241
 
  (exit $ac_status); }; }; then
9242
 
  ac_header_compiler=yes
9243
 
else
9244
 
  echo "$as_me: failed program was:" >&5
9245
 
sed 's/^/| /' conftest.$ac_ext >&5
9246
 
 
9247
 
ac_header_compiler=no
9248
 
fi
9249
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9250
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9251
 
echo "${ECHO_T}$ac_header_compiler" >&6
9252
 
 
9253
 
# Is the header present?
9254
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9255
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9256
 
cat >conftest.$ac_ext <<_ACEOF
9257
 
/* confdefs.h.  */
9258
 
_ACEOF
9259
 
cat confdefs.h >>conftest.$ac_ext
9260
 
cat >>conftest.$ac_ext <<_ACEOF
9261
 
/* end confdefs.h.  */
9262
 
#include <$ac_header>
9263
 
_ACEOF
9264
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9265
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9266
 
  ac_status=$?
9267
 
  grep -v '^ *+' conftest.er1 >conftest.err
9268
 
  rm -f conftest.er1
9269
 
  cat conftest.err >&5
9270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271
 
  (exit $ac_status); } >/dev/null; then
9272
 
  if test -s conftest.err; then
9273
 
    ac_cpp_err=$ac_c_preproc_warn_flag
9274
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9275
 
  else
9276
 
    ac_cpp_err=
9277
 
  fi
9278
 
else
9279
 
  ac_cpp_err=yes
9280
 
fi
9281
 
if test -z "$ac_cpp_err"; then
9282
 
  ac_header_preproc=yes
9283
 
else
9284
 
  echo "$as_me: failed program was:" >&5
9285
 
sed 's/^/| /' conftest.$ac_ext >&5
9286
 
 
9287
 
  ac_header_preproc=no
9288
 
fi
9289
 
rm -f conftest.err conftest.$ac_ext
9290
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9291
 
echo "${ECHO_T}$ac_header_preproc" >&6
9292
 
 
9293
 
# So?  What about this header?
9294
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9295
 
  yes:no: )
9296
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9297
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9298
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9299
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9300
 
    ac_header_preproc=yes
9301
 
    ;;
9302
 
  no:yes:* )
9303
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9304
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9305
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9306
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9307
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9308
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9309
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9310
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9311
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9312
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9313
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9314
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9315
 
    (
9316
 
      cat <<\_ASBOX
9317
 
## ------------------------------------------ ##
9318
 
## Report this to the AC_PACKAGE_NAME lists.  ##
9319
 
## ------------------------------------------ ##
9320
 
_ASBOX
9321
 
    ) |
9322
 
      sed "s/^/$as_me: WARNING:     /" >&2
9323
 
    ;;
9324
 
esac
9325
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
9326
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9327
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9328
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9329
 
else
9330
 
  eval "$as_ac_Header=\$ac_header_preproc"
9331
 
fi
9332
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9333
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9334
 
 
9335
 
fi
9336
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9337
 
  cat >>confdefs.h <<_ACEOF
9338
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9339
 
_ACEOF
9340
 
 
9341
 
fi
9342
 
 
9343
 
done
 
9320
for ac_header in syscall.h sys/syscall.h
 
9321
do
 
9322
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9323
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9324
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9325
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9326
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9328
fi
 
9329
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9330
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9331
else
 
9332
  # Is the header compilable?
 
9333
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9334
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9335
cat >conftest.$ac_ext <<_ACEOF
 
9336
/* confdefs.h.  */
 
9337
_ACEOF
 
9338
cat confdefs.h >>conftest.$ac_ext
 
9339
cat >>conftest.$ac_ext <<_ACEOF
 
9340
/* end confdefs.h.  */
 
9341
$ac_includes_default
 
9342
#include <$ac_header>
 
9343
_ACEOF
 
9344
rm -f conftest.$ac_objext
 
9345
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9346
  (eval $ac_compile) 2>conftest.er1
 
9347
  ac_status=$?
 
9348
  grep -v '^ *+' conftest.er1 >conftest.err
 
9349
  rm -f conftest.er1
 
9350
  cat conftest.err >&5
 
9351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9352
  (exit $ac_status); } &&
 
9353
         { ac_try='test -z "$ac_c_werror_flag"
 
9354
                         || test ! -s conftest.err'
 
9355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9356
  (eval $ac_try) 2>&5
 
9357
  ac_status=$?
 
9358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9359
  (exit $ac_status); }; } &&
 
9360
         { ac_try='test -s conftest.$ac_objext'
 
9361
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9362
  (eval $ac_try) 2>&5
 
9363
  ac_status=$?
 
9364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9365
  (exit $ac_status); }; }; then
 
9366
  ac_header_compiler=yes
 
9367
else
 
9368
  echo "$as_me: failed program was:" >&5
 
9369
sed 's/^/| /' conftest.$ac_ext >&5
 
9370
 
 
9371
ac_header_compiler=no
 
9372
fi
 
9373
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9374
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9375
echo "${ECHO_T}$ac_header_compiler" >&6
 
9376
 
 
9377
# Is the header present?
 
9378
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9379
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9380
cat >conftest.$ac_ext <<_ACEOF
 
9381
/* confdefs.h.  */
 
9382
_ACEOF
 
9383
cat confdefs.h >>conftest.$ac_ext
 
9384
cat >>conftest.$ac_ext <<_ACEOF
 
9385
/* end confdefs.h.  */
 
9386
#include <$ac_header>
 
9387
_ACEOF
 
9388
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9389
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9390
  ac_status=$?
 
9391
  grep -v '^ *+' conftest.er1 >conftest.err
 
9392
  rm -f conftest.er1
 
9393
  cat conftest.err >&5
 
9394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9395
  (exit $ac_status); } >/dev/null; then
 
9396
  if test -s conftest.err; then
 
9397
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9398
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9399
  else
 
9400
    ac_cpp_err=
 
9401
  fi
 
9402
else
 
9403
  ac_cpp_err=yes
 
9404
fi
 
9405
if test -z "$ac_cpp_err"; then
 
9406
  ac_header_preproc=yes
 
9407
else
 
9408
  echo "$as_me: failed program was:" >&5
 
9409
sed 's/^/| /' conftest.$ac_ext >&5
 
9410
 
 
9411
  ac_header_preproc=no
 
9412
fi
 
9413
rm -f conftest.err conftest.$ac_ext
 
9414
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9415
echo "${ECHO_T}$ac_header_preproc" >&6
 
9416
 
 
9417
# So?  What about this header?
 
9418
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9419
  yes:no: )
 
9420
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9421
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9422
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9423
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9424
    ac_header_preproc=yes
 
9425
    ;;
 
9426
  no:yes:* )
 
9427
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9428
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9429
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9430
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9431
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9432
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9433
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9434
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9435
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9436
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9437
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9438
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9439
    (
 
9440
      cat <<\_ASBOX
 
9441
## ------------------------------------------ ##
 
9442
## Report this to the AC_PACKAGE_NAME lists.  ##
 
9443
## ------------------------------------------ ##
 
9444
_ASBOX
 
9445
    ) |
 
9446
      sed "s/^/$as_me: WARNING:     /" >&2
 
9447
    ;;
 
9448
esac
 
9449
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9450
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9451
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9452
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9453
else
 
9454
  eval "$as_ac_Header=\$ac_header_preproc"
 
9455
fi
 
9456
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9457
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9458
 
 
9459
fi
 
9460
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9461
  cat >>confdefs.h <<_ACEOF
 
9462
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9463
_ACEOF
 
9464
 
 
9465
fi
 
9466
 
 
9467
done
 
9468
 
 
9469
 
 
9470
 
 
9471
 
 
9472
 
 
9473
 
 
9474
 
 
9475
 
 
9476
for ac_header in sys/acl.h sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h
 
9477
do
 
9478
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9479
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9480
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9481
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9482
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9483
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9484
fi
 
9485
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9486
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9487
else
 
9488
  # Is the header compilable?
 
9489
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9490
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9491
cat >conftest.$ac_ext <<_ACEOF
 
9492
/* confdefs.h.  */
 
9493
_ACEOF
 
9494
cat confdefs.h >>conftest.$ac_ext
 
9495
cat >>conftest.$ac_ext <<_ACEOF
 
9496
/* end confdefs.h.  */
 
9497
$ac_includes_default
 
9498
#include <$ac_header>
 
9499
_ACEOF
 
9500
rm -f conftest.$ac_objext
 
9501
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9502
  (eval $ac_compile) 2>conftest.er1
 
9503
  ac_status=$?
 
9504
  grep -v '^ *+' conftest.er1 >conftest.err
 
9505
  rm -f conftest.er1
 
9506
  cat conftest.err >&5
 
9507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9508
  (exit $ac_status); } &&
 
9509
         { ac_try='test -z "$ac_c_werror_flag"
 
9510
                         || test ! -s conftest.err'
 
9511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9512
  (eval $ac_try) 2>&5
 
9513
  ac_status=$?
 
9514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9515
  (exit $ac_status); }; } &&
 
9516
         { ac_try='test -s conftest.$ac_objext'
 
9517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9518
  (eval $ac_try) 2>&5
 
9519
  ac_status=$?
 
9520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9521
  (exit $ac_status); }; }; then
 
9522
  ac_header_compiler=yes
 
9523
else
 
9524
  echo "$as_me: failed program was:" >&5
 
9525
sed 's/^/| /' conftest.$ac_ext >&5
 
9526
 
 
9527
ac_header_compiler=no
 
9528
fi
 
9529
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9530
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9531
echo "${ECHO_T}$ac_header_compiler" >&6
 
9532
 
 
9533
# Is the header present?
 
9534
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9535
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9536
cat >conftest.$ac_ext <<_ACEOF
 
9537
/* confdefs.h.  */
 
9538
_ACEOF
 
9539
cat confdefs.h >>conftest.$ac_ext
 
9540
cat >>conftest.$ac_ext <<_ACEOF
 
9541
/* end confdefs.h.  */
 
9542
#include <$ac_header>
 
9543
_ACEOF
 
9544
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9545
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9546
  ac_status=$?
 
9547
  grep -v '^ *+' conftest.er1 >conftest.err
 
9548
  rm -f conftest.er1
 
9549
  cat conftest.err >&5
 
9550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9551
  (exit $ac_status); } >/dev/null; then
 
9552
  if test -s conftest.err; then
 
9553
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9554
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9555
  else
 
9556
    ac_cpp_err=
 
9557
  fi
 
9558
else
 
9559
  ac_cpp_err=yes
 
9560
fi
 
9561
if test -z "$ac_cpp_err"; then
 
9562
  ac_header_preproc=yes
 
9563
else
 
9564
  echo "$as_me: failed program was:" >&5
 
9565
sed 's/^/| /' conftest.$ac_ext >&5
 
9566
 
 
9567
  ac_header_preproc=no
 
9568
fi
 
9569
rm -f conftest.err conftest.$ac_ext
 
9570
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9571
echo "${ECHO_T}$ac_header_preproc" >&6
 
9572
 
 
9573
# So?  What about this header?
 
9574
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9575
  yes:no: )
 
9576
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9577
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9578
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9579
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9580
    ac_header_preproc=yes
 
9581
    ;;
 
9582
  no:yes:* )
 
9583
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9584
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9585
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9586
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9587
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9588
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9589
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9590
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9591
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9592
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9593
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9594
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9595
    (
 
9596
      cat <<\_ASBOX
 
9597
## ------------------------------------------ ##
 
9598
## Report this to the AC_PACKAGE_NAME lists.  ##
 
9599
## ------------------------------------------ ##
 
9600
_ASBOX
 
9601
    ) |
 
9602
      sed "s/^/$as_me: WARNING:     /" >&2
 
9603
    ;;
 
9604
esac
 
9605
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9606
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9607
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9608
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9609
else
 
9610
  eval "$as_ac_Header=\$ac_header_preproc"
 
9611
fi
 
9612
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9613
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9614
 
 
9615
fi
 
9616
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9617
  cat >>confdefs.h <<_ACEOF
 
9618
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9619
_ACEOF
 
9620
 
 
9621
fi
 
9622
 
 
9623
done
 
9624
 
 
9625
 
 
9626
 
 
9627
for ac_header in sys/ea.h sys/proplist.h
 
9628
do
 
9629
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9630
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9631
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9632
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9633
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9635
fi
 
9636
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9637
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9638
else
 
9639
  # Is the header compilable?
 
9640
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9641
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9642
cat >conftest.$ac_ext <<_ACEOF
 
9643
/* confdefs.h.  */
 
9644
_ACEOF
 
9645
cat confdefs.h >>conftest.$ac_ext
 
9646
cat >>conftest.$ac_ext <<_ACEOF
 
9647
/* end confdefs.h.  */
 
9648
$ac_includes_default
 
9649
#include <$ac_header>
 
9650
_ACEOF
 
9651
rm -f conftest.$ac_objext
 
9652
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9653
  (eval $ac_compile) 2>conftest.er1
 
9654
  ac_status=$?
 
9655
  grep -v '^ *+' conftest.er1 >conftest.err
 
9656
  rm -f conftest.er1
 
9657
  cat conftest.err >&5
 
9658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9659
  (exit $ac_status); } &&
 
9660
         { ac_try='test -z "$ac_c_werror_flag"
 
9661
                         || test ! -s conftest.err'
 
9662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9663
  (eval $ac_try) 2>&5
 
9664
  ac_status=$?
 
9665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9666
  (exit $ac_status); }; } &&
 
9667
         { ac_try='test -s conftest.$ac_objext'
 
9668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9669
  (eval $ac_try) 2>&5
 
9670
  ac_status=$?
 
9671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9672
  (exit $ac_status); }; }; then
 
9673
  ac_header_compiler=yes
 
9674
else
 
9675
  echo "$as_me: failed program was:" >&5
 
9676
sed 's/^/| /' conftest.$ac_ext >&5
 
9677
 
 
9678
ac_header_compiler=no
 
9679
fi
 
9680
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9681
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9682
echo "${ECHO_T}$ac_header_compiler" >&6
 
9683
 
 
9684
# Is the header present?
 
9685
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9686
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9687
cat >conftest.$ac_ext <<_ACEOF
 
9688
/* confdefs.h.  */
 
9689
_ACEOF
 
9690
cat confdefs.h >>conftest.$ac_ext
 
9691
cat >>conftest.$ac_ext <<_ACEOF
 
9692
/* end confdefs.h.  */
 
9693
#include <$ac_header>
 
9694
_ACEOF
 
9695
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9696
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9697
  ac_status=$?
 
9698
  grep -v '^ *+' conftest.er1 >conftest.err
 
9699
  rm -f conftest.er1
 
9700
  cat conftest.err >&5
 
9701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9702
  (exit $ac_status); } >/dev/null; then
 
9703
  if test -s conftest.err; then
 
9704
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9705
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9706
  else
 
9707
    ac_cpp_err=
 
9708
  fi
 
9709
else
 
9710
  ac_cpp_err=yes
 
9711
fi
 
9712
if test -z "$ac_cpp_err"; then
 
9713
  ac_header_preproc=yes
 
9714
else
 
9715
  echo "$as_me: failed program was:" >&5
 
9716
sed 's/^/| /' conftest.$ac_ext >&5
 
9717
 
 
9718
  ac_header_preproc=no
 
9719
fi
 
9720
rm -f conftest.err conftest.$ac_ext
 
9721
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9722
echo "${ECHO_T}$ac_header_preproc" >&6
 
9723
 
 
9724
# So?  What about this header?
 
9725
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9726
  yes:no: )
 
9727
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9728
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9729
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9730
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9731
    ac_header_preproc=yes
 
9732
    ;;
 
9733
  no:yes:* )
 
9734
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9735
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9736
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9737
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9738
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9739
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9740
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9741
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9742
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9743
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9744
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9745
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9746
    (
 
9747
      cat <<\_ASBOX
 
9748
## ------------------------------------------ ##
 
9749
## Report this to the AC_PACKAGE_NAME lists.  ##
 
9750
## ------------------------------------------ ##
 
9751
_ASBOX
 
9752
    ) |
 
9753
      sed "s/^/$as_me: WARNING:     /" >&2
 
9754
    ;;
 
9755
esac
 
9756
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9757
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9758
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9760
else
 
9761
  eval "$as_ac_Header=\$ac_header_preproc"
 
9762
fi
 
9763
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9764
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9765
 
 
9766
fi
 
9767
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9768
  cat >>confdefs.h <<_ACEOF
 
9769
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9770
_ACEOF
 
9771
 
 
9772
fi
 
9773
 
 
9774
done
 
9775
 
9344
9776
 
9345
9777
 
9346
9778
 
10680
11112
_ACEOF
10681
11113
 
10682
11114
 
 
11115
echo "$as_me:$LINENO: checking for long long" >&5
 
11116
echo $ECHO_N "checking for long long... $ECHO_C" >&6
 
11117
if test "${ac_cv_type_long_long+set}" = set; then
 
11118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11119
else
 
11120
  cat >conftest.$ac_ext <<_ACEOF
 
11121
/* confdefs.h.  */
 
11122
_ACEOF
 
11123
cat confdefs.h >>conftest.$ac_ext
 
11124
cat >>conftest.$ac_ext <<_ACEOF
 
11125
/* end confdefs.h.  */
 
11126
$ac_includes_default
 
11127
int
 
11128
main ()
 
11129
{
 
11130
if ((long long *) 0)
 
11131
  return 0;
 
11132
if (sizeof (long long))
 
11133
  return 0;
 
11134
  ;
 
11135
  return 0;
 
11136
}
 
11137
_ACEOF
 
11138
rm -f conftest.$ac_objext
 
11139
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11140
  (eval $ac_compile) 2>conftest.er1
 
11141
  ac_status=$?
 
11142
  grep -v '^ *+' conftest.er1 >conftest.err
 
11143
  rm -f conftest.er1
 
11144
  cat conftest.err >&5
 
11145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11146
  (exit $ac_status); } &&
 
11147
         { ac_try='test -z "$ac_c_werror_flag"
 
11148
                         || test ! -s conftest.err'
 
11149
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11150
  (eval $ac_try) 2>&5
 
11151
  ac_status=$?
 
11152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11153
  (exit $ac_status); }; } &&
 
11154
         { ac_try='test -s conftest.$ac_objext'
 
11155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11156
  (eval $ac_try) 2>&5
 
11157
  ac_status=$?
 
11158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11159
  (exit $ac_status); }; }; then
 
11160
  ac_cv_type_long_long=yes
 
11161
else
 
11162
  echo "$as_me: failed program was:" >&5
 
11163
sed 's/^/| /' conftest.$ac_ext >&5
 
11164
 
 
11165
ac_cv_type_long_long=no
 
11166
fi
 
11167
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11168
fi
 
11169
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 
11170
echo "${ECHO_T}$ac_cv_type_long_long" >&6
 
11171
 
 
11172
echo "$as_me:$LINENO: checking size of long long" >&5
 
11173
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
 
11174
if test "${ac_cv_sizeof_long_long+set}" = set; then
 
11175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11176
else
 
11177
  if test "$ac_cv_type_long_long" = yes; then
 
11178
  # The cast to unsigned long works around a bug in the HP C Compiler
 
11179
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
11180
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
11181
  # This bug is HP SR number 8606223364.
 
11182
  if test "$cross_compiling" = yes; then
 
11183
  # Depending upon the size, compute the lo and hi bounds.
 
11184
cat >conftest.$ac_ext <<_ACEOF
 
11185
/* confdefs.h.  */
 
11186
_ACEOF
 
11187
cat confdefs.h >>conftest.$ac_ext
 
11188
cat >>conftest.$ac_ext <<_ACEOF
 
11189
/* end confdefs.h.  */
 
11190
$ac_includes_default
 
11191
int
 
11192
main ()
 
11193
{
 
11194
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
 
11195
test_array [0] = 0
 
11196
 
 
11197
  ;
 
11198
  return 0;
 
11199
}
 
11200
_ACEOF
 
11201
rm -f conftest.$ac_objext
 
11202
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11203
  (eval $ac_compile) 2>conftest.er1
 
11204
  ac_status=$?
 
11205
  grep -v '^ *+' conftest.er1 >conftest.err
 
11206
  rm -f conftest.er1
 
11207
  cat conftest.err >&5
 
11208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11209
  (exit $ac_status); } &&
 
11210
         { ac_try='test -z "$ac_c_werror_flag"
 
11211
                         || test ! -s conftest.err'
 
11212
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11213
  (eval $ac_try) 2>&5
 
11214
  ac_status=$?
 
11215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11216
  (exit $ac_status); }; } &&
 
11217
         { ac_try='test -s conftest.$ac_objext'
 
11218
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11219
  (eval $ac_try) 2>&5
 
11220
  ac_status=$?
 
11221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11222
  (exit $ac_status); }; }; then
 
11223
  ac_lo=0 ac_mid=0
 
11224
  while :; do
 
11225
    cat >conftest.$ac_ext <<_ACEOF
 
11226
/* confdefs.h.  */
 
11227
_ACEOF
 
11228
cat confdefs.h >>conftest.$ac_ext
 
11229
cat >>conftest.$ac_ext <<_ACEOF
 
11230
/* end confdefs.h.  */
 
11231
$ac_includes_default
 
11232
int
 
11233
main ()
 
11234
{
 
11235
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
 
11236
test_array [0] = 0
 
11237
 
 
11238
  ;
 
11239
  return 0;
 
11240
}
 
11241
_ACEOF
 
11242
rm -f conftest.$ac_objext
 
11243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11244
  (eval $ac_compile) 2>conftest.er1
 
11245
  ac_status=$?
 
11246
  grep -v '^ *+' conftest.er1 >conftest.err
 
11247
  rm -f conftest.er1
 
11248
  cat conftest.err >&5
 
11249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11250
  (exit $ac_status); } &&
 
11251
         { ac_try='test -z "$ac_c_werror_flag"
 
11252
                         || test ! -s conftest.err'
 
11253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11254
  (eval $ac_try) 2>&5
 
11255
  ac_status=$?
 
11256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11257
  (exit $ac_status); }; } &&
 
11258
         { ac_try='test -s conftest.$ac_objext'
 
11259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11260
  (eval $ac_try) 2>&5
 
11261
  ac_status=$?
 
11262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11263
  (exit $ac_status); }; }; then
 
11264
  ac_hi=$ac_mid; break
 
11265
else
 
11266
  echo "$as_me: failed program was:" >&5
 
11267
sed 's/^/| /' conftest.$ac_ext >&5
 
11268
 
 
11269
ac_lo=`expr $ac_mid + 1`
 
11270
                    if test $ac_lo -le $ac_mid; then
 
11271
                      ac_lo= ac_hi=
 
11272
                      break
 
11273
                    fi
 
11274
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
11275
fi
 
11276
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11277
  done
 
11278
else
 
11279
  echo "$as_me: failed program was:" >&5
 
11280
sed 's/^/| /' conftest.$ac_ext >&5
 
11281
 
 
11282
cat >conftest.$ac_ext <<_ACEOF
 
11283
/* confdefs.h.  */
 
11284
_ACEOF
 
11285
cat confdefs.h >>conftest.$ac_ext
 
11286
cat >>conftest.$ac_ext <<_ACEOF
 
11287
/* end confdefs.h.  */
 
11288
$ac_includes_default
 
11289
int
 
11290
main ()
 
11291
{
 
11292
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
 
11293
test_array [0] = 0
 
11294
 
 
11295
  ;
 
11296
  return 0;
 
11297
}
 
11298
_ACEOF
 
11299
rm -f conftest.$ac_objext
 
11300
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11301
  (eval $ac_compile) 2>conftest.er1
 
11302
  ac_status=$?
 
11303
  grep -v '^ *+' conftest.er1 >conftest.err
 
11304
  rm -f conftest.er1
 
11305
  cat conftest.err >&5
 
11306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11307
  (exit $ac_status); } &&
 
11308
         { ac_try='test -z "$ac_c_werror_flag"
 
11309
                         || test ! -s conftest.err'
 
11310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11311
  (eval $ac_try) 2>&5
 
11312
  ac_status=$?
 
11313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11314
  (exit $ac_status); }; } &&
 
11315
         { ac_try='test -s conftest.$ac_objext'
 
11316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11317
  (eval $ac_try) 2>&5
 
11318
  ac_status=$?
 
11319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11320
  (exit $ac_status); }; }; then
 
11321
  ac_hi=-1 ac_mid=-1
 
11322
  while :; do
 
11323
    cat >conftest.$ac_ext <<_ACEOF
 
11324
/* confdefs.h.  */
 
11325
_ACEOF
 
11326
cat confdefs.h >>conftest.$ac_ext
 
11327
cat >>conftest.$ac_ext <<_ACEOF
 
11328
/* end confdefs.h.  */
 
11329
$ac_includes_default
 
11330
int
 
11331
main ()
 
11332
{
 
11333
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
 
11334
test_array [0] = 0
 
11335
 
 
11336
  ;
 
11337
  return 0;
 
11338
}
 
11339
_ACEOF
 
11340
rm -f conftest.$ac_objext
 
11341
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11342
  (eval $ac_compile) 2>conftest.er1
 
11343
  ac_status=$?
 
11344
  grep -v '^ *+' conftest.er1 >conftest.err
 
11345
  rm -f conftest.er1
 
11346
  cat conftest.err >&5
 
11347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11348
  (exit $ac_status); } &&
 
11349
         { ac_try='test -z "$ac_c_werror_flag"
 
11350
                         || test ! -s conftest.err'
 
11351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11352
  (eval $ac_try) 2>&5
 
11353
  ac_status=$?
 
11354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11355
  (exit $ac_status); }; } &&
 
11356
         { ac_try='test -s conftest.$ac_objext'
 
11357
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11358
  (eval $ac_try) 2>&5
 
11359
  ac_status=$?
 
11360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11361
  (exit $ac_status); }; }; then
 
11362
  ac_lo=$ac_mid; break
 
11363
else
 
11364
  echo "$as_me: failed program was:" >&5
 
11365
sed 's/^/| /' conftest.$ac_ext >&5
 
11366
 
 
11367
ac_hi=`expr '(' $ac_mid ')' - 1`
 
11368
                       if test $ac_mid -le $ac_hi; then
 
11369
                         ac_lo= ac_hi=
 
11370
                         break
 
11371
                       fi
 
11372
                       ac_mid=`expr 2 '*' $ac_mid`
 
11373
fi
 
11374
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11375
  done
 
11376
else
 
11377
  echo "$as_me: failed program was:" >&5
 
11378
sed 's/^/| /' conftest.$ac_ext >&5
 
11379
 
 
11380
ac_lo= ac_hi=
 
11381
fi
 
11382
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11383
fi
 
11384
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11385
# Binary search between lo and hi bounds.
 
11386
while test "x$ac_lo" != "x$ac_hi"; do
 
11387
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
11388
  cat >conftest.$ac_ext <<_ACEOF
 
11389
/* confdefs.h.  */
 
11390
_ACEOF
 
11391
cat confdefs.h >>conftest.$ac_ext
 
11392
cat >>conftest.$ac_ext <<_ACEOF
 
11393
/* end confdefs.h.  */
 
11394
$ac_includes_default
 
11395
int
 
11396
main ()
 
11397
{
 
11398
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
 
11399
test_array [0] = 0
 
11400
 
 
11401
  ;
 
11402
  return 0;
 
11403
}
 
11404
_ACEOF
 
11405
rm -f conftest.$ac_objext
 
11406
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11407
  (eval $ac_compile) 2>conftest.er1
 
11408
  ac_status=$?
 
11409
  grep -v '^ *+' conftest.er1 >conftest.err
 
11410
  rm -f conftest.er1
 
11411
  cat conftest.err >&5
 
11412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11413
  (exit $ac_status); } &&
 
11414
         { ac_try='test -z "$ac_c_werror_flag"
 
11415
                         || test ! -s conftest.err'
 
11416
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11417
  (eval $ac_try) 2>&5
 
11418
  ac_status=$?
 
11419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11420
  (exit $ac_status); }; } &&
 
11421
         { ac_try='test -s conftest.$ac_objext'
 
11422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11423
  (eval $ac_try) 2>&5
 
11424
  ac_status=$?
 
11425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11426
  (exit $ac_status); }; }; then
 
11427
  ac_hi=$ac_mid
 
11428
else
 
11429
  echo "$as_me: failed program was:" >&5
 
11430
sed 's/^/| /' conftest.$ac_ext >&5
 
11431
 
 
11432
ac_lo=`expr '(' $ac_mid ')' + 1`
 
11433
fi
 
11434
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11435
done
 
11436
case $ac_lo in
 
11437
?*) ac_cv_sizeof_long_long=$ac_lo;;
 
11438
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
 
11439
See \`config.log' for more details." >&5
 
11440
echo "$as_me: error: cannot compute sizeof (long long), 77
 
11441
See \`config.log' for more details." >&2;}
 
11442
   { (exit 1); exit 1; }; } ;;
 
11443
esac
 
11444
else
 
11445
  if test "$cross_compiling" = yes; then
 
11446
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
11447
See \`config.log' for more details." >&5
 
11448
echo "$as_me: error: cannot run test program while cross compiling
 
11449
See \`config.log' for more details." >&2;}
 
11450
   { (exit 1); exit 1; }; }
 
11451
else
 
11452
  cat >conftest.$ac_ext <<_ACEOF
 
11453
/* confdefs.h.  */
 
11454
_ACEOF
 
11455
cat confdefs.h >>conftest.$ac_ext
 
11456
cat >>conftest.$ac_ext <<_ACEOF
 
11457
/* end confdefs.h.  */
 
11458
$ac_includes_default
 
11459
long longval () { return (long) (sizeof (long long)); }
 
11460
unsigned long ulongval () { return (long) (sizeof (long long)); }
 
11461
#include <stdio.h>
 
11462
#include <stdlib.h>
 
11463
int
 
11464
main ()
 
11465
{
 
11466
 
 
11467
  FILE *f = fopen ("conftest.val", "w");
 
11468
  if (! f)
 
11469
    exit (1);
 
11470
  if (((long) (sizeof (long long))) < 0)
 
11471
    {
 
11472
      long i = longval ();
 
11473
      if (i != ((long) (sizeof (long long))))
 
11474
        exit (1);
 
11475
      fprintf (f, "%ld\n", i);
 
11476
    }
 
11477
  else
 
11478
    {
 
11479
      unsigned long i = ulongval ();
 
11480
      if (i != ((long) (sizeof (long long))))
 
11481
        exit (1);
 
11482
      fprintf (f, "%lu\n", i);
 
11483
    }
 
11484
  exit (ferror (f) || fclose (f) != 0);
 
11485
 
 
11486
  ;
 
11487
  return 0;
 
11488
}
 
11489
_ACEOF
 
11490
rm -f conftest$ac_exeext
 
11491
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11492
  (eval $ac_link) 2>&5
 
11493
  ac_status=$?
 
11494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11495
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11497
  (eval $ac_try) 2>&5
 
11498
  ac_status=$?
 
11499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11500
  (exit $ac_status); }; }; then
 
11501
  ac_cv_sizeof_long_long=`cat conftest.val`
 
11502
else
 
11503
  echo "$as_me: program exited with status $ac_status" >&5
 
11504
echo "$as_me: failed program was:" >&5
 
11505
sed 's/^/| /' conftest.$ac_ext >&5
 
11506
 
 
11507
( exit $ac_status )
 
11508
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
 
11509
See \`config.log' for more details." >&5
 
11510
echo "$as_me: error: cannot compute sizeof (long long), 77
 
11511
See \`config.log' for more details." >&2;}
 
11512
   { (exit 1); exit 1; }; }
 
11513
fi
 
11514
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11515
fi
 
11516
fi
 
11517
rm -f conftest.val
 
11518
else
 
11519
  ac_cv_sizeof_long_long=0
 
11520
fi
 
11521
fi
 
11522
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
 
11523
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
 
11524
cat >>confdefs.h <<_ACEOF
 
11525
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
 
11526
_ACEOF
 
11527
 
 
11528
 
10683
11529
echo "$as_me:$LINENO: checking for short" >&5
10684
11530
echo $ECHO_N "checking for short... $ECHO_C" >&6
10685
11531
if test "${ac_cv_type_short+set}" = set; then
16828
17674
 
16829
17675
 
16830
17676
 
 
17677
for ac_func in getdents getdents64
 
17678
do
 
17679
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17680
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17681
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
17682
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
17683
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17684
else
 
17685
  cat >conftest.$ac_ext <<_ACEOF
 
17686
/* confdefs.h.  */
 
17687
_ACEOF
 
17688
cat confdefs.h >>conftest.$ac_ext
 
17689
cat >>conftest.$ac_ext <<_ACEOF
 
17690
/* end confdefs.h.  */
 
17691
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17692
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17693
#define $ac_func innocuous_$ac_func
 
17694
 
 
17695
/* System header to define __stub macros and hopefully few prototypes,
 
17696
    which can conflict with char $ac_func (); below.
 
17697
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17698
    <limits.h> exists even on freestanding compilers.  */
 
17699
 
 
17700
#ifdef __STDC__
 
17701
# include <limits.h>
 
17702
#else
 
17703
# include <assert.h>
 
17704
#endif
 
17705
 
 
17706
#undef $ac_func
 
17707
 
 
17708
/* Override any gcc2 internal prototype to avoid an error.  */
 
17709
#ifdef __cplusplus
 
17710
extern "C"
 
17711
{
 
17712
#endif
 
17713
/* We use char because int might match the return type of a gcc2
 
17714
   builtin and then its argument prototype would still apply.  */
 
17715
char $ac_func ();
 
17716
/* The GNU C library defines this for functions which it implements
 
17717
    to always fail with ENOSYS.  Some functions are actually named
 
17718
    something starting with __ and the normal name is an alias.  */
 
17719
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
17720
choke me
 
17721
#else
 
17722
char (*f) () = $ac_func;
 
17723
#endif
 
17724
#ifdef __cplusplus
 
17725
}
 
17726
#endif
 
17727
 
 
17728
int
 
17729
main ()
 
17730
{
 
17731
return f != $ac_func;
 
17732
  ;
 
17733
  return 0;
 
17734
}
 
17735
_ACEOF
 
17736
rm -f conftest.$ac_objext conftest$ac_exeext
 
17737
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17738
  (eval $ac_link) 2>conftest.er1
 
17739
  ac_status=$?
 
17740
  grep -v '^ *+' conftest.er1 >conftest.err
 
17741
  rm -f conftest.er1
 
17742
  cat conftest.err >&5
 
17743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17744
  (exit $ac_status); } &&
 
17745
         { ac_try='test -z "$ac_c_werror_flag"
 
17746
                         || test ! -s conftest.err'
 
17747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17748
  (eval $ac_try) 2>&5
 
17749
  ac_status=$?
 
17750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17751
  (exit $ac_status); }; } &&
 
17752
         { ac_try='test -s conftest$ac_exeext'
 
17753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17754
  (eval $ac_try) 2>&5
 
17755
  ac_status=$?
 
17756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17757
  (exit $ac_status); }; }; then
 
17758
  eval "$as_ac_var=yes"
 
17759
else
 
17760
  echo "$as_me: failed program was:" >&5
 
17761
sed 's/^/| /' conftest.$ac_ext >&5
 
17762
 
 
17763
eval "$as_ac_var=no"
 
17764
fi
 
17765
rm -f conftest.err conftest.$ac_objext \
 
17766
      conftest$ac_exeext conftest.$ac_ext
 
17767
fi
 
17768
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
17769
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
17770
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17771
  cat >>confdefs.h <<_ACEOF
 
17772
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17773
_ACEOF
 
17774
 
 
17775
fi
 
17776
done
 
17777
 
 
17778
 
 
17779
 
16831
17780
 
16832
17781
 
16833
17782
 
17247
18196
fi
17248
18197
done
17249
18198
 
 
18199
 
 
18200
 
 
18201
 
 
18202
 
 
18203
for ac_func in mlock munlock mlockall munlockall
 
18204
do
 
18205
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18206
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18207
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
18208
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
18209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18210
else
 
18211
  cat >conftest.$ac_ext <<_ACEOF
 
18212
/* confdefs.h.  */
 
18213
_ACEOF
 
18214
cat confdefs.h >>conftest.$ac_ext
 
18215
cat >>conftest.$ac_ext <<_ACEOF
 
18216
/* end confdefs.h.  */
 
18217
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18218
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18219
#define $ac_func innocuous_$ac_func
 
18220
 
 
18221
/* System header to define __stub macros and hopefully few prototypes,
 
18222
    which can conflict with char $ac_func (); below.
 
18223
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18224
    <limits.h> exists even on freestanding compilers.  */
 
18225
 
 
18226
#ifdef __STDC__
 
18227
# include <limits.h>
 
18228
#else
 
18229
# include <assert.h>
 
18230
#endif
 
18231
 
 
18232
#undef $ac_func
 
18233
 
 
18234
/* Override any gcc2 internal prototype to avoid an error.  */
 
18235
#ifdef __cplusplus
 
18236
extern "C"
 
18237
{
 
18238
#endif
 
18239
/* We use char because int might match the return type of a gcc2
 
18240
   builtin and then its argument prototype would still apply.  */
 
18241
char $ac_func ();
 
18242
/* The GNU C library defines this for functions which it implements
 
18243
    to always fail with ENOSYS.  Some functions are actually named
 
18244
    something starting with __ and the normal name is an alias.  */
 
18245
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
18246
choke me
 
18247
#else
 
18248
char (*f) () = $ac_func;
 
18249
#endif
 
18250
#ifdef __cplusplus
 
18251
}
 
18252
#endif
 
18253
 
 
18254
int
 
18255
main ()
 
18256
{
 
18257
return f != $ac_func;
 
18258
  ;
 
18259
  return 0;
 
18260
}
 
18261
_ACEOF
 
18262
rm -f conftest.$ac_objext conftest$ac_exeext
 
18263
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18264
  (eval $ac_link) 2>conftest.er1
 
18265
  ac_status=$?
 
18266
  grep -v '^ *+' conftest.er1 >conftest.err
 
18267
  rm -f conftest.er1
 
18268
  cat conftest.err >&5
 
18269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18270
  (exit $ac_status); } &&
 
18271
         { ac_try='test -z "$ac_c_werror_flag"
 
18272
                         || test ! -s conftest.err'
 
18273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18274
  (eval $ac_try) 2>&5
 
18275
  ac_status=$?
 
18276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18277
  (exit $ac_status); }; } &&
 
18278
         { ac_try='test -s conftest$ac_exeext'
 
18279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18280
  (eval $ac_try) 2>&5
 
18281
  ac_status=$?
 
18282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18283
  (exit $ac_status); }; }; then
 
18284
  eval "$as_ac_var=yes"
 
18285
else
 
18286
  echo "$as_me: failed program was:" >&5
 
18287
sed 's/^/| /' conftest.$ac_ext >&5
 
18288
 
 
18289
eval "$as_ac_var=no"
 
18290
fi
 
18291
rm -f conftest.err conftest.$ac_objext \
 
18292
      conftest$ac_exeext conftest.$ac_ext
 
18293
fi
 
18294
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18295
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18296
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18297
  cat >>confdefs.h <<_ACEOF
 
18298
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18299
_ACEOF
 
18300
 
 
18301
fi
 
18302
done
 
18303
 
 
18304
 
 
18305
for ac_header in sys/mman.h
 
18306
do
 
18307
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
18308
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
18309
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18310
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
18311
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
18312
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18313
fi
 
18314
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
18315
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
18316
else
 
18317
  # Is the header compilable?
 
18318
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
18319
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
18320
cat >conftest.$ac_ext <<_ACEOF
 
18321
/* confdefs.h.  */
 
18322
_ACEOF
 
18323
cat confdefs.h >>conftest.$ac_ext
 
18324
cat >>conftest.$ac_ext <<_ACEOF
 
18325
/* end confdefs.h.  */
 
18326
$ac_includes_default
 
18327
#include <$ac_header>
 
18328
_ACEOF
 
18329
rm -f conftest.$ac_objext
 
18330
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18331
  (eval $ac_compile) 2>conftest.er1
 
18332
  ac_status=$?
 
18333
  grep -v '^ *+' conftest.er1 >conftest.err
 
18334
  rm -f conftest.er1
 
18335
  cat conftest.err >&5
 
18336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18337
  (exit $ac_status); } &&
 
18338
         { ac_try='test -z "$ac_c_werror_flag"
 
18339
                         || test ! -s conftest.err'
 
18340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18341
  (eval $ac_try) 2>&5
 
18342
  ac_status=$?
 
18343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18344
  (exit $ac_status); }; } &&
 
18345
         { ac_try='test -s conftest.$ac_objext'
 
18346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18347
  (eval $ac_try) 2>&5
 
18348
  ac_status=$?
 
18349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18350
  (exit $ac_status); }; }; then
 
18351
  ac_header_compiler=yes
 
18352
else
 
18353
  echo "$as_me: failed program was:" >&5
 
18354
sed 's/^/| /' conftest.$ac_ext >&5
 
18355
 
 
18356
ac_header_compiler=no
 
18357
fi
 
18358
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
18359
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
18360
echo "${ECHO_T}$ac_header_compiler" >&6
 
18361
 
 
18362
# Is the header present?
 
18363
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
18364
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
18365
cat >conftest.$ac_ext <<_ACEOF
 
18366
/* confdefs.h.  */
 
18367
_ACEOF
 
18368
cat confdefs.h >>conftest.$ac_ext
 
18369
cat >>conftest.$ac_ext <<_ACEOF
 
18370
/* end confdefs.h.  */
 
18371
#include <$ac_header>
 
18372
_ACEOF
 
18373
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
18374
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
18375
  ac_status=$?
 
18376
  grep -v '^ *+' conftest.er1 >conftest.err
 
18377
  rm -f conftest.er1
 
18378
  cat conftest.err >&5
 
18379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18380
  (exit $ac_status); } >/dev/null; then
 
18381
  if test -s conftest.err; then
 
18382
    ac_cpp_err=$ac_c_preproc_warn_flag
 
18383
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
18384
  else
 
18385
    ac_cpp_err=
 
18386
  fi
 
18387
else
 
18388
  ac_cpp_err=yes
 
18389
fi
 
18390
if test -z "$ac_cpp_err"; then
 
18391
  ac_header_preproc=yes
 
18392
else
 
18393
  echo "$as_me: failed program was:" >&5
 
18394
sed 's/^/| /' conftest.$ac_ext >&5
 
18395
 
 
18396
  ac_header_preproc=no
 
18397
fi
 
18398
rm -f conftest.err conftest.$ac_ext
 
18399
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
18400
echo "${ECHO_T}$ac_header_preproc" >&6
 
18401
 
 
18402
# So?  What about this header?
 
18403
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
18404
  yes:no: )
 
18405
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
18406
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
18407
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
18408
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
18409
    ac_header_preproc=yes
 
18410
    ;;
 
18411
  no:yes:* )
 
18412
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
18413
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
18414
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
18415
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
18416
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
18417
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
18418
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
18419
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
18420
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
18421
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
18422
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
18423
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
18424
    (
 
18425
      cat <<\_ASBOX
 
18426
## ------------------------------------------ ##
 
18427
## Report this to the AC_PACKAGE_NAME lists.  ##
 
18428
## ------------------------------------------ ##
 
18429
_ASBOX
 
18430
    ) |
 
18431
      sed "s/^/$as_me: WARNING:     /" >&2
 
18432
    ;;
 
18433
esac
 
18434
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18435
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
18436
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
18437
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18438
else
 
18439
  eval "$as_ac_Header=\$ac_header_preproc"
 
18440
fi
 
18441
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
18442
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
18443
 
 
18444
fi
 
18445
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
18446
  cat >>confdefs.h <<_ACEOF
 
18447
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
18448
_ACEOF
 
18449
 
 
18450
fi
 
18451
 
 
18452
done
 
18453
 
17250
18454
# setbuffer, shmget, shm_open are needed for smbtorture
17251
18455
 
17252
18456
 
17253
18457
 
17254
 
 
17255
 
for ac_func in setbuffer shmget shm_open backtrace_symbols
 
18458
for ac_func in setbuffer shmget shm_open
17256
18459
do
17257
18460
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17258
18461
echo "$as_me:$LINENO: checking for $ac_func" >&5
17354
18557
done
17355
18558
 
17356
18559
 
17357
 
for ac_header in libexc.h
 
18560
# Find a method of generating a stack trace
 
18561
 
 
18562
 
 
18563
 
 
18564
for ac_header in execinfo.h libexc.h libunwind.h
17358
18565
do
17359
18566
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17360
18567
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17504
18711
done
17505
18712
 
17506
18713
 
 
18714
for ac_func in backtrace_symbols
 
18715
do
 
18716
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18717
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18718
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
18719
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
18720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18721
else
 
18722
  cat >conftest.$ac_ext <<_ACEOF
 
18723
/* confdefs.h.  */
 
18724
_ACEOF
 
18725
cat confdefs.h >>conftest.$ac_ext
 
18726
cat >>conftest.$ac_ext <<_ACEOF
 
18727
/* end confdefs.h.  */
 
18728
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18729
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18730
#define $ac_func innocuous_$ac_func
 
18731
 
 
18732
/* System header to define __stub macros and hopefully few prototypes,
 
18733
    which can conflict with char $ac_func (); below.
 
18734
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18735
    <limits.h> exists even on freestanding compilers.  */
 
18736
 
 
18737
#ifdef __STDC__
 
18738
# include <limits.h>
 
18739
#else
 
18740
# include <assert.h>
 
18741
#endif
 
18742
 
 
18743
#undef $ac_func
 
18744
 
 
18745
/* Override any gcc2 internal prototype to avoid an error.  */
 
18746
#ifdef __cplusplus
 
18747
extern "C"
 
18748
{
 
18749
#endif
 
18750
/* We use char because int might match the return type of a gcc2
 
18751
   builtin and then its argument prototype would still apply.  */
 
18752
char $ac_func ();
 
18753
/* The GNU C library defines this for functions which it implements
 
18754
    to always fail with ENOSYS.  Some functions are actually named
 
18755
    something starting with __ and the normal name is an alias.  */
 
18756
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
18757
choke me
 
18758
#else
 
18759
char (*f) () = $ac_func;
 
18760
#endif
 
18761
#ifdef __cplusplus
 
18762
}
 
18763
#endif
 
18764
 
 
18765
int
 
18766
main ()
 
18767
{
 
18768
return f != $ac_func;
 
18769
  ;
 
18770
  return 0;
 
18771
}
 
18772
_ACEOF
 
18773
rm -f conftest.$ac_objext conftest$ac_exeext
 
18774
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18775
  (eval $ac_link) 2>conftest.er1
 
18776
  ac_status=$?
 
18777
  grep -v '^ *+' conftest.er1 >conftest.err
 
18778
  rm -f conftest.er1
 
18779
  cat conftest.err >&5
 
18780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18781
  (exit $ac_status); } &&
 
18782
         { ac_try='test -z "$ac_c_werror_flag"
 
18783
                         || test ! -s conftest.err'
 
18784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18785
  (eval $ac_try) 2>&5
 
18786
  ac_status=$?
 
18787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18788
  (exit $ac_status); }; } &&
 
18789
         { ac_try='test -s conftest$ac_exeext'
 
18790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18791
  (eval $ac_try) 2>&5
 
18792
  ac_status=$?
 
18793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18794
  (exit $ac_status); }; }; then
 
18795
  eval "$as_ac_var=yes"
 
18796
else
 
18797
  echo "$as_me: failed program was:" >&5
 
18798
sed 's/^/| /' conftest.$ac_ext >&5
 
18799
 
 
18800
eval "$as_ac_var=no"
 
18801
fi
 
18802
rm -f conftest.err conftest.$ac_objext \
 
18803
      conftest$ac_exeext conftest.$ac_ext
 
18804
fi
 
18805
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18806
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18807
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18808
  cat >>confdefs.h <<_ACEOF
 
18809
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18810
_ACEOF
 
18811
 
 
18812
fi
 
18813
done
 
18814
 
 
18815
 
17507
18816
echo "$as_me:$LINENO: checking for trace_back_stack in -lexc" >&5
17508
18817
echo $ECHO_N "checking for trace_back_stack in -lexc... $ECHO_C" >&6
17509
18818
if test "${ac_cv_lib_exc_trace_back_stack+set}" = set; then
17578
18887
fi
17579
18888
 
17580
18889
 
 
18890
# Note that all the libunwind symbols in the API are defined to internal
 
18891
# platform-specific version, so we must include libunwind.h before checking
 
18892
# any of them.
 
18893
echo "$as_me:$LINENO: checking for libunwind" >&5
 
18894
echo $ECHO_N "checking for libunwind... $ECHO_C" >&6
 
18895
save_LIBS=$LIBS
 
18896
if test x"$UNAME_P" = xunknown ; then
 
18897
    # This probably won't link without the platform-specific libunwind.
 
18898
    LIBS="$LIBS -lunwind"
 
18899
else
 
18900
    # Add the platform-specific libunwind module. uname -p seems the most
 
18901
    # plausible option and works for ia64, where libunwind is most useful.
 
18902
    LIBS="$LIBS -lunwind -lunwind-$UNAME_P"
 
18903
fi
 
18904
 
 
18905
cat >conftest.$ac_ext <<_ACEOF
 
18906
/* confdefs.h.  */
 
18907
_ACEOF
 
18908
cat confdefs.h >>conftest.$ac_ext
 
18909
cat >>conftest.$ac_ext <<_ACEOF
 
18910
/* end confdefs.h.  */
 
18911
 
 
18912
#ifdef HAVE_LIBUNWIND_H
 
18913
#include <libunwind.h>
 
18914
#endif
 
18915
 
 
18916
int
 
18917
main ()
 
18918
{
 
18919
 
 
18920
        unw_context_t ctx; unw_cursor_t cur;
 
18921
        char buf[256]; unw_word_t off;
 
18922
        unw_getcontext(&ctx); unw_init_local(&cur, &ctx);
 
18923
        unw_get_proc_name(&cur, buf, sizeof(buf), &off);
 
18924
 
 
18925
  ;
 
18926
  return 0;
 
18927
}
 
18928
_ACEOF
 
18929
rm -f conftest.$ac_objext conftest$ac_exeext
 
18930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18931
  (eval $ac_link) 2>conftest.er1
 
18932
  ac_status=$?
 
18933
  grep -v '^ *+' conftest.er1 >conftest.err
 
18934
  rm -f conftest.er1
 
18935
  cat conftest.err >&5
 
18936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18937
  (exit $ac_status); } &&
 
18938
         { ac_try='test -z "$ac_c_werror_flag"
 
18939
                         || test ! -s conftest.err'
 
18940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18941
  (eval $ac_try) 2>&5
 
18942
  ac_status=$?
 
18943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18944
  (exit $ac_status); }; } &&
 
18945
         { ac_try='test -s conftest$ac_exeext'
 
18946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18947
  (eval $ac_try) 2>&5
 
18948
  ac_status=$?
 
18949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18950
  (exit $ac_status); }; }; then
 
18951
 
 
18952
        echo "$as_me:$LINENO: result: yes" >&5
 
18953
echo "${ECHO_T}yes" >&6
 
18954
 
 
18955
cat >>confdefs.h <<\_ACEOF
 
18956
#define HAVE_LIBUNWIND 1
 
18957
_ACEOF
 
18958
 
 
18959
 
 
18960
        # If we have libunwind, test whether we also have libunwind-ptrace
 
18961
        # which would let us unwind arbitrary processes.
 
18962
        save_LIBS=$LIBS
 
18963
 
 
18964
for ac_header in libunwind-ptrace.h
 
18965
do
 
18966
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
18967
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
18968
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18969
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
18970
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
18971
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18972
fi
 
18973
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
18974
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
18975
else
 
18976
  # Is the header compilable?
 
18977
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
18978
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
18979
cat >conftest.$ac_ext <<_ACEOF
 
18980
/* confdefs.h.  */
 
18981
_ACEOF
 
18982
cat confdefs.h >>conftest.$ac_ext
 
18983
cat >>conftest.$ac_ext <<_ACEOF
 
18984
/* end confdefs.h.  */
 
18985
$ac_includes_default
 
18986
#include <$ac_header>
 
18987
_ACEOF
 
18988
rm -f conftest.$ac_objext
 
18989
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18990
  (eval $ac_compile) 2>conftest.er1
 
18991
  ac_status=$?
 
18992
  grep -v '^ *+' conftest.er1 >conftest.err
 
18993
  rm -f conftest.er1
 
18994
  cat conftest.err >&5
 
18995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18996
  (exit $ac_status); } &&
 
18997
         { ac_try='test -z "$ac_c_werror_flag"
 
18998
                         || test ! -s conftest.err'
 
18999
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19000
  (eval $ac_try) 2>&5
 
19001
  ac_status=$?
 
19002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19003
  (exit $ac_status); }; } &&
 
19004
         { ac_try='test -s conftest.$ac_objext'
 
19005
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19006
  (eval $ac_try) 2>&5
 
19007
  ac_status=$?
 
19008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19009
  (exit $ac_status); }; }; then
 
19010
  ac_header_compiler=yes
 
19011
else
 
19012
  echo "$as_me: failed program was:" >&5
 
19013
sed 's/^/| /' conftest.$ac_ext >&5
 
19014
 
 
19015
ac_header_compiler=no
 
19016
fi
 
19017
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19018
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19019
echo "${ECHO_T}$ac_header_compiler" >&6
 
19020
 
 
19021
# Is the header present?
 
19022
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19023
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
19024
cat >conftest.$ac_ext <<_ACEOF
 
19025
/* confdefs.h.  */
 
19026
_ACEOF
 
19027
cat confdefs.h >>conftest.$ac_ext
 
19028
cat >>conftest.$ac_ext <<_ACEOF
 
19029
/* end confdefs.h.  */
 
19030
#include <$ac_header>
 
19031
_ACEOF
 
19032
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
19033
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
19034
  ac_status=$?
 
19035
  grep -v '^ *+' conftest.er1 >conftest.err
 
19036
  rm -f conftest.er1
 
19037
  cat conftest.err >&5
 
19038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19039
  (exit $ac_status); } >/dev/null; then
 
19040
  if test -s conftest.err; then
 
19041
    ac_cpp_err=$ac_c_preproc_warn_flag
 
19042
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
19043
  else
 
19044
    ac_cpp_err=
 
19045
  fi
 
19046
else
 
19047
  ac_cpp_err=yes
 
19048
fi
 
19049
if test -z "$ac_cpp_err"; then
 
19050
  ac_header_preproc=yes
 
19051
else
 
19052
  echo "$as_me: failed program was:" >&5
 
19053
sed 's/^/| /' conftest.$ac_ext >&5
 
19054
 
 
19055
  ac_header_preproc=no
 
19056
fi
 
19057
rm -f conftest.err conftest.$ac_ext
 
19058
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19059
echo "${ECHO_T}$ac_header_preproc" >&6
 
19060
 
 
19061
# So?  What about this header?
 
19062
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19063
  yes:no: )
 
19064
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
19065
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19066
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
19067
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
19068
    ac_header_preproc=yes
 
19069
    ;;
 
19070
  no:yes:* )
 
19071
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
19072
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
19073
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
19074
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
19075
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
19076
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
19077
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
19078
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
19079
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
19080
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
19081
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
19082
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
19083
    (
 
19084
      cat <<\_ASBOX
 
19085
## ------------------------------------------ ##
 
19086
## Report this to the AC_PACKAGE_NAME lists.  ##
 
19087
## ------------------------------------------ ##
 
19088
_ASBOX
 
19089
    ) |
 
19090
      sed "s/^/$as_me: WARNING:     /" >&2
 
19091
    ;;
 
19092
esac
 
19093
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19094
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
19095
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19096
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19097
else
 
19098
  eval "$as_ac_Header=\$ac_header_preproc"
 
19099
fi
 
19100
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19101
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19102
 
 
19103
fi
 
19104
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
19105
  cat >>confdefs.h <<_ACEOF
 
19106
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
19107
_ACEOF
 
19108
 
 
19109
fi
 
19110
 
 
19111
done
 
19112
 
 
19113
        echo "$as_me:$LINENO: checking for _UPT_create in -lunwind-ptrace" >&5
 
19114
echo $ECHO_N "checking for _UPT_create in -lunwind-ptrace... $ECHO_C" >&6
 
19115
if test "${ac_cv_lib_unwind_ptrace__UPT_create+set}" = set; then
 
19116
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19117
else
 
19118
  ac_check_lib_save_LIBS=$LIBS
 
19119
LIBS="-lunwind-ptrace  $LIBS"
 
19120
cat >conftest.$ac_ext <<_ACEOF
 
19121
/* confdefs.h.  */
 
19122
_ACEOF
 
19123
cat confdefs.h >>conftest.$ac_ext
 
19124
cat >>conftest.$ac_ext <<_ACEOF
 
19125
/* end confdefs.h.  */
 
19126
 
 
19127
/* Override any gcc2 internal prototype to avoid an error.  */
 
19128
#ifdef __cplusplus
 
19129
extern "C"
 
19130
#endif
 
19131
/* We use char because int might match the return type of a gcc2
 
19132
   builtin and then its argument prototype would still apply.  */
 
19133
char _UPT_create ();
 
19134
int
 
19135
main ()
 
19136
{
 
19137
_UPT_create ();
 
19138
  ;
 
19139
  return 0;
 
19140
}
 
19141
_ACEOF
 
19142
rm -f conftest.$ac_objext conftest$ac_exeext
 
19143
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19144
  (eval $ac_link) 2>conftest.er1
 
19145
  ac_status=$?
 
19146
  grep -v '^ *+' conftest.er1 >conftest.err
 
19147
  rm -f conftest.er1
 
19148
  cat conftest.err >&5
 
19149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19150
  (exit $ac_status); } &&
 
19151
         { ac_try='test -z "$ac_c_werror_flag"
 
19152
                         || test ! -s conftest.err'
 
19153
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19154
  (eval $ac_try) 2>&5
 
19155
  ac_status=$?
 
19156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19157
  (exit $ac_status); }; } &&
 
19158
         { ac_try='test -s conftest$ac_exeext'
 
19159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19160
  (eval $ac_try) 2>&5
 
19161
  ac_status=$?
 
19162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19163
  (exit $ac_status); }; }; then
 
19164
  ac_cv_lib_unwind_ptrace__UPT_create=yes
 
19165
else
 
19166
  echo "$as_me: failed program was:" >&5
 
19167
sed 's/^/| /' conftest.$ac_ext >&5
 
19168
 
 
19169
ac_cv_lib_unwind_ptrace__UPT_create=no
 
19170
fi
 
19171
rm -f conftest.err conftest.$ac_objext \
 
19172
      conftest$ac_exeext conftest.$ac_ext
 
19173
LIBS=$ac_check_lib_save_LIBS
 
19174
fi
 
19175
echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_ptrace__UPT_create" >&5
 
19176
echo "${ECHO_T}$ac_cv_lib_unwind_ptrace__UPT_create" >&6
 
19177
if test $ac_cv_lib_unwind_ptrace__UPT_create = yes; then
 
19178
 
 
19179
                LIBUNWIND_PTRACE="-lunwind-ptrace";
 
19180
 
 
19181
cat >>confdefs.h <<\_ACEOF
 
19182
#define HAVE_LIBUNWIND_PTRACE 1
 
19183
_ACEOF
 
19184
 
 
19185
 
 
19186
else
 
19187
   LIBUNWIND_PTRACE=""
 
19188
fi
 
19189
 
 
19190
 
 
19191
        LIBS=$save_LIBS
 
19192
 
 
19193
else
 
19194
  echo "$as_me: failed program was:" >&5
 
19195
sed 's/^/| /' conftest.$ac_ext >&5
 
19196
 
 
19197
 
 
19198
        echo "$as_me:$LINENO: result: no" >&5
 
19199
echo "${ECHO_T}no" >&6
 
19200
        LIBS=$save_LIBS
 
19201
 
 
19202
fi
 
19203
rm -f conftest.err conftest.$ac_objext \
 
19204
      conftest$ac_exeext conftest.$ac_ext
 
19205
 
 
19206
# To use libunwind-ptrace, we also need to make some ptrace system calls.
 
19207
if test x"$LIBUNWIND_PTRACE" != x"" ; then
 
19208
 
 
19209
for ac_header in sys/ptrace.h
 
19210
do
 
19211
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19212
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19213
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19214
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
19215
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19216
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19217
fi
 
19218
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19219
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19220
else
 
19221
  # Is the header compilable?
 
19222
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19223
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
19224
cat >conftest.$ac_ext <<_ACEOF
 
19225
/* confdefs.h.  */
 
19226
_ACEOF
 
19227
cat confdefs.h >>conftest.$ac_ext
 
19228
cat >>conftest.$ac_ext <<_ACEOF
 
19229
/* end confdefs.h.  */
 
19230
$ac_includes_default
 
19231
#include <$ac_header>
 
19232
_ACEOF
 
19233
rm -f conftest.$ac_objext
 
19234
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19235
  (eval $ac_compile) 2>conftest.er1
 
19236
  ac_status=$?
 
19237
  grep -v '^ *+' conftest.er1 >conftest.err
 
19238
  rm -f conftest.er1
 
19239
  cat conftest.err >&5
 
19240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19241
  (exit $ac_status); } &&
 
19242
         { ac_try='test -z "$ac_c_werror_flag"
 
19243
                         || test ! -s conftest.err'
 
19244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19245
  (eval $ac_try) 2>&5
 
19246
  ac_status=$?
 
19247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19248
  (exit $ac_status); }; } &&
 
19249
         { ac_try='test -s conftest.$ac_objext'
 
19250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19251
  (eval $ac_try) 2>&5
 
19252
  ac_status=$?
 
19253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19254
  (exit $ac_status); }; }; then
 
19255
  ac_header_compiler=yes
 
19256
else
 
19257
  echo "$as_me: failed program was:" >&5
 
19258
sed 's/^/| /' conftest.$ac_ext >&5
 
19259
 
 
19260
ac_header_compiler=no
 
19261
fi
 
19262
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19263
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19264
echo "${ECHO_T}$ac_header_compiler" >&6
 
19265
 
 
19266
# Is the header present?
 
19267
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19268
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
19269
cat >conftest.$ac_ext <<_ACEOF
 
19270
/* confdefs.h.  */
 
19271
_ACEOF
 
19272
cat confdefs.h >>conftest.$ac_ext
 
19273
cat >>conftest.$ac_ext <<_ACEOF
 
19274
/* end confdefs.h.  */
 
19275
#include <$ac_header>
 
19276
_ACEOF
 
19277
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
19278
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
19279
  ac_status=$?
 
19280
  grep -v '^ *+' conftest.er1 >conftest.err
 
19281
  rm -f conftest.er1
 
19282
  cat conftest.err >&5
 
19283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19284
  (exit $ac_status); } >/dev/null; then
 
19285
  if test -s conftest.err; then
 
19286
    ac_cpp_err=$ac_c_preproc_warn_flag
 
19287
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
19288
  else
 
19289
    ac_cpp_err=
 
19290
  fi
 
19291
else
 
19292
  ac_cpp_err=yes
 
19293
fi
 
19294
if test -z "$ac_cpp_err"; then
 
19295
  ac_header_preproc=yes
 
19296
else
 
19297
  echo "$as_me: failed program was:" >&5
 
19298
sed 's/^/| /' conftest.$ac_ext >&5
 
19299
 
 
19300
  ac_header_preproc=no
 
19301
fi
 
19302
rm -f conftest.err conftest.$ac_ext
 
19303
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19304
echo "${ECHO_T}$ac_header_preproc" >&6
 
19305
 
 
19306
# So?  What about this header?
 
19307
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19308
  yes:no: )
 
19309
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
19310
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19311
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
19312
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
19313
    ac_header_preproc=yes
 
19314
    ;;
 
19315
  no:yes:* )
 
19316
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
19317
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
19318
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
19319
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
19320
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
19321
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
19322
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
19323
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
19324
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
19325
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
19326
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
19327
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
19328
    (
 
19329
      cat <<\_ASBOX
 
19330
## ------------------------------------------ ##
 
19331
## Report this to the AC_PACKAGE_NAME lists.  ##
 
19332
## ------------------------------------------ ##
 
19333
_ASBOX
 
19334
    ) |
 
19335
      sed "s/^/$as_me: WARNING:     /" >&2
 
19336
    ;;
 
19337
esac
 
19338
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19339
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
19340
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19341
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19342
else
 
19343
  eval "$as_ac_Header=\$ac_header_preproc"
 
19344
fi
 
19345
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19346
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19347
 
 
19348
fi
 
19349
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
19350
  cat >>confdefs.h <<_ACEOF
 
19351
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
19352
_ACEOF
 
19353
 
 
19354
fi
 
19355
 
 
19356
done
 
19357
 
 
19358
    echo "$as_me:$LINENO: checking for the Linux ptrace(2) interface" >&5
 
19359
echo $ECHO_N "checking for the Linux ptrace(2) interface... $ECHO_C" >&6
 
19360
    cat >conftest.$ac_ext <<_ACEOF
 
19361
/* confdefs.h.  */
 
19362
_ACEOF
 
19363
cat confdefs.h >>conftest.$ac_ext
 
19364
cat >>conftest.$ac_ext <<_ACEOF
 
19365
/* end confdefs.h.  */
 
19366
 
 
19367
#if HAVE_SYS_TYPES_H
 
19368
#include <sys/types.h>
 
19369
#endif
 
19370
#if HAVE_SYS_PTRACE_H
 
19371
#include <sys/ptrace.h>
 
19372
#endif
 
19373
 
 
19374
int
 
19375
main ()
 
19376
{
 
19377
 
 
19378
                int main(int argc, const char ** argv)
 
19379
                {
 
19380
                        pid_t me = (pid_t)-1;
 
19381
                        ptrace(PTRACE_ATTACH, me, 0, 0);
 
19382
                        ptrace(PTRACE_DETACH, me, 0, 0);
 
19383
                        return 0;
 
19384
                }
 
19385
 
 
19386
  ;
 
19387
  return 0;
 
19388
}
 
19389
_ACEOF
 
19390
rm -f conftest.$ac_objext conftest$ac_exeext
 
19391
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19392
  (eval $ac_link) 2>conftest.er1
 
19393
  ac_status=$?
 
19394
  grep -v '^ *+' conftest.er1 >conftest.err
 
19395
  rm -f conftest.er1
 
19396
  cat conftest.err >&5
 
19397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19398
  (exit $ac_status); } &&
 
19399
         { ac_try='test -z "$ac_c_werror_flag"
 
19400
                         || test ! -s conftest.err'
 
19401
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19402
  (eval $ac_try) 2>&5
 
19403
  ac_status=$?
 
19404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19405
  (exit $ac_status); }; } &&
 
19406
         { ac_try='test -s conftest$ac_exeext'
 
19407
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19408
  (eval $ac_try) 2>&5
 
19409
  ac_status=$?
 
19410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19411
  (exit $ac_status); }; }; then
 
19412
 
 
19413
                echo "$as_me:$LINENO: result: yes" >&5
 
19414
echo "${ECHO_T}yes" >&6
 
19415
 
 
19416
cat >>confdefs.h <<\_ACEOF
 
19417
#define HAVE_LINUX_PTRACE 1
 
19418
_ACEOF
 
19419
 
 
19420
 
 
19421
else
 
19422
  echo "$as_me: failed program was:" >&5
 
19423
sed 's/^/| /' conftest.$ac_ext >&5
 
19424
 
 
19425
 
 
19426
                echo "$as_me:$LINENO: result: no" >&5
 
19427
echo "${ECHO_T}no" >&6
 
19428
                LIBUNWIND_PTRACE=""
 
19429
 
 
19430
fi
 
19431
rm -f conftest.err conftest.$ac_objext \
 
19432
      conftest$ac_exeext conftest.$ac_ext
 
19433
fi
 
19434
 
 
19435
 
 
19436
 
17581
19437
# syscall() is needed for smbwrapper.
17582
19438
 
17583
19439
for ac_func in syscall
18434
20290
 
18435
20291
 
18436
20292
 
18437
 
 
18438
 
for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
 
20293
for ac_func in getdents __getdents _lseek __lseek _read __read
18439
20294
do
18440
20295
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18441
20296
echo "$as_me:$LINENO: checking for $ac_func" >&5
19814
21669
 
19815
21670
fi
19816
21671
 
 
21672
echo "$as_me:$LINENO: checking whether struct stat has sub-second timestamps without struct timespec" >&5
 
21673
echo $ECHO_N "checking whether struct stat has sub-second timestamps without struct timespec... $ECHO_C" >&6
 
21674
if test "${samba_stat_hires_notimespec+set}" = set; then
 
21675
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21676
else
 
21677
 
 
21678
        cat >conftest.$ac_ext <<_ACEOF
 
21679
/* confdefs.h.  */
 
21680
_ACEOF
 
21681
cat confdefs.h >>conftest.$ac_ext
 
21682
cat >>conftest.$ac_ext <<_ACEOF
 
21683
/* end confdefs.h.  */
 
21684
 
 
21685
#if TIME_WITH_SYS_TIME
 
21686
# include <sys/time.h>
 
21687
# include <time.h>
 
21688
#else
 
21689
# if HAVE_SYS_TIME_H
 
21690
#  include <sys/time.h>
 
21691
# else
 
21692
#  include <time.h>
 
21693
# endif
 
21694
#endif
 
21695
#ifdef HAVE_SYS_STAT_H
 
21696
#include <sys/stat.h>
 
21697
#endif
 
21698
 
 
21699
int
 
21700
main ()
 
21701
{
 
21702
 
 
21703
                struct timespec t;
 
21704
                struct stat s = {0};
 
21705
                t.tv_sec = s.st_mtime;
 
21706
                t.tv_nsec = s.st_mtimensec;
 
21707
                t.tv_sec = s.st_ctime;
 
21708
                t.tv_nsec = s.st_ctimensec;
 
21709
                t.tv_sec = s.st_atime;
 
21710
                t.tv_nsec = s.st_atimensec;
 
21711
 
 
21712
  ;
 
21713
  return 0;
 
21714
}
 
21715
_ACEOF
 
21716
rm -f conftest.$ac_objext
 
21717
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21718
  (eval $ac_compile) 2>conftest.er1
 
21719
  ac_status=$?
 
21720
  grep -v '^ *+' conftest.er1 >conftest.err
 
21721
  rm -f conftest.er1
 
21722
  cat conftest.err >&5
 
21723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21724
  (exit $ac_status); } &&
 
21725
         { ac_try='test -z "$ac_c_werror_flag"
 
21726
                         || test ! -s conftest.err'
 
21727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21728
  (eval $ac_try) 2>&5
 
21729
  ac_status=$?
 
21730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21731
  (exit $ac_status); }; } &&
 
21732
         { ac_try='test -s conftest.$ac_objext'
 
21733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21734
  (eval $ac_try) 2>&5
 
21735
  ac_status=$?
 
21736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21737
  (exit $ac_status); }; }; then
 
21738
  samba_stat_hires=yes
 
21739
else
 
21740
  echo "$as_me: failed program was:" >&5
 
21741
sed 's/^/| /' conftest.$ac_ext >&5
 
21742
 
 
21743
samba_stat_hires=no
 
21744
fi
 
21745
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21746
 
 
21747
fi
 
21748
echo "$as_me:$LINENO: result: $samba_stat_hires_notimespec" >&5
 
21749
echo "${ECHO_T}$samba_stat_hires_notimespec" >&6
 
21750
 
 
21751
if test x"$samba_stat_hires_notimespec" = x"yes" ; then
 
21752
 
 
21753
cat >>confdefs.h <<\_ACEOF
 
21754
#define HAVE_STAT_ST_MTIMENSEC 1
 
21755
_ACEOF
 
21756
 
 
21757
 
 
21758
cat >>confdefs.h <<\_ACEOF
 
21759
#define HAVE_STAT_ST_ATIMENSEC 1
 
21760
_ACEOF
 
21761
 
 
21762
 
 
21763
cat >>confdefs.h <<\_ACEOF
 
21764
#define HAVE_STAT_ST_CTIMENSEC 1
 
21765
_ACEOF
 
21766
 
 
21767
 
 
21768
cat >>confdefs.h <<\_ACEOF
 
21769
#define HAVE_STAT_HIRES_TIMESTAMPS 1
 
21770
_ACEOF
 
21771
 
 
21772
fi
 
21773
 
19817
21774
#####################################
19818
 
# we might need the resolv library on some systems
 
21775
# needed for SRV lookups
19819
21776
 
19820
21777
echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
19821
21778
echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
19891
21848
fi
19892
21849
 
19893
21850
 
 
21851
echo "$as_me:$LINENO: checking for _dn_expand in -lresolv" >&5
 
21852
echo $ECHO_N "checking for _dn_expand in -lresolv... $ECHO_C" >&6
 
21853
if test "${ac_cv_lib_resolv__dn_expand+set}" = set; then
 
21854
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21855
else
 
21856
  ac_check_lib_save_LIBS=$LIBS
 
21857
LIBS="-lresolv  $LIBS"
 
21858
cat >conftest.$ac_ext <<_ACEOF
 
21859
/* confdefs.h.  */
 
21860
_ACEOF
 
21861
cat confdefs.h >>conftest.$ac_ext
 
21862
cat >>conftest.$ac_ext <<_ACEOF
 
21863
/* end confdefs.h.  */
 
21864
 
 
21865
/* Override any gcc2 internal prototype to avoid an error.  */
 
21866
#ifdef __cplusplus
 
21867
extern "C"
 
21868
#endif
 
21869
/* We use char because int might match the return type of a gcc2
 
21870
   builtin and then its argument prototype would still apply.  */
 
21871
char _dn_expand ();
 
21872
int
 
21873
main ()
 
21874
{
 
21875
_dn_expand ();
 
21876
  ;
 
21877
  return 0;
 
21878
}
 
21879
_ACEOF
 
21880
rm -f conftest.$ac_objext conftest$ac_exeext
 
21881
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21882
  (eval $ac_link) 2>conftest.er1
 
21883
  ac_status=$?
 
21884
  grep -v '^ *+' conftest.er1 >conftest.err
 
21885
  rm -f conftest.er1
 
21886
  cat conftest.err >&5
 
21887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21888
  (exit $ac_status); } &&
 
21889
         { ac_try='test -z "$ac_c_werror_flag"
 
21890
                         || test ! -s conftest.err'
 
21891
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21892
  (eval $ac_try) 2>&5
 
21893
  ac_status=$?
 
21894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21895
  (exit $ac_status); }; } &&
 
21896
         { ac_try='test -s conftest$ac_exeext'
 
21897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21898
  (eval $ac_try) 2>&5
 
21899
  ac_status=$?
 
21900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21901
  (exit $ac_status); }; }; then
 
21902
  ac_cv_lib_resolv__dn_expand=yes
 
21903
else
 
21904
  echo "$as_me: failed program was:" >&5
 
21905
sed 's/^/| /' conftest.$ac_ext >&5
 
21906
 
 
21907
ac_cv_lib_resolv__dn_expand=no
 
21908
fi
 
21909
rm -f conftest.err conftest.$ac_objext \
 
21910
      conftest$ac_exeext conftest.$ac_ext
 
21911
LIBS=$ac_check_lib_save_LIBS
 
21912
fi
 
21913
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv__dn_expand" >&5
 
21914
echo "${ECHO_T}$ac_cv_lib_resolv__dn_expand" >&6
 
21915
if test $ac_cv_lib_resolv__dn_expand = yes; then
 
21916
  cat >>confdefs.h <<_ACEOF
 
21917
#define HAVE_LIBRESOLV 1
 
21918
_ACEOF
 
21919
 
 
21920
  LIBS="-lresolv $LIBS"
 
21921
 
 
21922
fi
 
21923
 
 
21924
 
 
21925
echo "$as_me:$LINENO: checking for __dn_expand in -lresolv" >&5
 
21926
echo $ECHO_N "checking for __dn_expand in -lresolv... $ECHO_C" >&6
 
21927
if test "${ac_cv_lib_resolv___dn_expand+set}" = set; then
 
21928
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21929
else
 
21930
  ac_check_lib_save_LIBS=$LIBS
 
21931
LIBS="-lresolv  $LIBS"
 
21932
cat >conftest.$ac_ext <<_ACEOF
 
21933
/* confdefs.h.  */
 
21934
_ACEOF
 
21935
cat confdefs.h >>conftest.$ac_ext
 
21936
cat >>conftest.$ac_ext <<_ACEOF
 
21937
/* end confdefs.h.  */
 
21938
 
 
21939
/* Override any gcc2 internal prototype to avoid an error.  */
 
21940
#ifdef __cplusplus
 
21941
extern "C"
 
21942
#endif
 
21943
/* We use char because int might match the return type of a gcc2
 
21944
   builtin and then its argument prototype would still apply.  */
 
21945
char __dn_expand ();
 
21946
int
 
21947
main ()
 
21948
{
 
21949
__dn_expand ();
 
21950
  ;
 
21951
  return 0;
 
21952
}
 
21953
_ACEOF
 
21954
rm -f conftest.$ac_objext conftest$ac_exeext
 
21955
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21956
  (eval $ac_link) 2>conftest.er1
 
21957
  ac_status=$?
 
21958
  grep -v '^ *+' conftest.er1 >conftest.err
 
21959
  rm -f conftest.er1
 
21960
  cat conftest.err >&5
 
21961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21962
  (exit $ac_status); } &&
 
21963
         { ac_try='test -z "$ac_c_werror_flag"
 
21964
                         || test ! -s conftest.err'
 
21965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21966
  (eval $ac_try) 2>&5
 
21967
  ac_status=$?
 
21968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21969
  (exit $ac_status); }; } &&
 
21970
         { ac_try='test -s conftest$ac_exeext'
 
21971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21972
  (eval $ac_try) 2>&5
 
21973
  ac_status=$?
 
21974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21975
  (exit $ac_status); }; }; then
 
21976
  ac_cv_lib_resolv___dn_expand=yes
 
21977
else
 
21978
  echo "$as_me: failed program was:" >&5
 
21979
sed 's/^/| /' conftest.$ac_ext >&5
 
21980
 
 
21981
ac_cv_lib_resolv___dn_expand=no
 
21982
fi
 
21983
rm -f conftest.err conftest.$ac_objext \
 
21984
      conftest$ac_exeext conftest.$ac_ext
 
21985
LIBS=$ac_check_lib_save_LIBS
 
21986
fi
 
21987
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dn_expand" >&5
 
21988
echo "${ECHO_T}$ac_cv_lib_resolv___dn_expand" >&6
 
21989
if test $ac_cv_lib_resolv___dn_expand = yes; then
 
21990
  cat >>confdefs.h <<_ACEOF
 
21991
#define HAVE_LIBRESOLV 1
 
21992
_ACEOF
 
21993
 
 
21994
  LIBS="-lresolv $LIBS"
 
21995
 
 
21996
fi
 
21997
 
 
21998
 
19894
21999
#
19895
22000
# Check for the functions putprpwnam, set_auth_parameters,
19896
22001
# getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
19997
22102
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19998
22103
_ACEOF
19999
22104
 
20000
 
else
20001
 
   case "$LIBS" in
20002
 
          *-lsecurity*)
20003
 
for ac_func in putprpwnam
20004
 
do
20005
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20006
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
20007
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20008
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
20009
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20010
 
else
20011
 
  cat >conftest.$ac_ext <<_ACEOF
20012
 
/* confdefs.h.  */
20013
 
_ACEOF
20014
 
cat confdefs.h >>conftest.$ac_ext
20015
 
cat >>conftest.$ac_ext <<_ACEOF
20016
 
/* end confdefs.h.  */
20017
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20018
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20019
 
#define $ac_func innocuous_$ac_func
20020
 
 
20021
 
/* System header to define __stub macros and hopefully few prototypes,
20022
 
    which can conflict with char $ac_func (); below.
20023
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20024
 
    <limits.h> exists even on freestanding compilers.  */
20025
 
 
20026
 
#ifdef __STDC__
20027
 
# include <limits.h>
20028
 
#else
20029
 
# include <assert.h>
20030
 
#endif
20031
 
 
20032
 
#undef $ac_func
20033
 
 
20034
 
/* Override any gcc2 internal prototype to avoid an error.  */
20035
 
#ifdef __cplusplus
20036
 
extern "C"
20037
 
{
20038
 
#endif
20039
 
/* We use char because int might match the return type of a gcc2
20040
 
   builtin and then its argument prototype would still apply.  */
20041
 
char $ac_func ();
20042
 
/* The GNU C library defines this for functions which it implements
20043
 
    to always fail with ENOSYS.  Some functions are actually named
20044
 
    something starting with __ and the normal name is an alias.  */
20045
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20046
 
choke me
20047
 
#else
20048
 
char (*f) () = $ac_func;
20049
 
#endif
20050
 
#ifdef __cplusplus
20051
 
}
20052
 
#endif
20053
 
 
20054
 
int
20055
 
main ()
20056
 
{
20057
 
return f != $ac_func;
20058
 
  ;
20059
 
  return 0;
20060
 
}
20061
 
_ACEOF
20062
 
rm -f conftest.$ac_objext conftest$ac_exeext
20063
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20064
 
  (eval $ac_link) 2>conftest.er1
20065
 
  ac_status=$?
20066
 
  grep -v '^ *+' conftest.er1 >conftest.err
20067
 
  rm -f conftest.er1
20068
 
  cat conftest.err >&5
20069
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070
 
  (exit $ac_status); } &&
20071
 
         { ac_try='test -z "$ac_c_werror_flag"
20072
 
                         || test ! -s conftest.err'
20073
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074
 
  (eval $ac_try) 2>&5
20075
 
  ac_status=$?
20076
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077
 
  (exit $ac_status); }; } &&
20078
 
         { ac_try='test -s conftest$ac_exeext'
20079
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080
 
  (eval $ac_try) 2>&5
20081
 
  ac_status=$?
20082
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083
 
  (exit $ac_status); }; }; then
20084
 
  eval "$as_ac_var=yes"
20085
 
else
20086
 
  echo "$as_me: failed program was:" >&5
20087
 
sed 's/^/| /' conftest.$ac_ext >&5
20088
 
 
20089
 
eval "$as_ac_var=no"
20090
 
fi
20091
 
rm -f conftest.err conftest.$ac_objext \
20092
 
      conftest$ac_exeext conftest.$ac_ext
20093
 
fi
20094
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20095
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20096
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
20097
 
  cat >>confdefs.h <<_ACEOF
20098
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20099
 
_ACEOF
20100
 
 
20101
 
fi
20102
 
done
20103
 
 ;;
 
22105
        # putprpwnam was found in libc or existing $LIBS
 
22106
 
 
22107
 
 
22108
cat >>confdefs.h <<\_ACEOF
 
22109
#define HAVE_PUTPRPWNAM 1
 
22110
_ACEOF
 
22111
 
 
22112
 
 
22113
 
 
22114
else
 
22115
 
 
22116
        # putprpwnam was not found, try adding libsecurity
 
22117
        case " $LIBS " in
 
22118
          *\ -lsecurity\ *)
 
22119
 
 
22120
                    # putprpwnam was not found and we already had libsecurity
 
22121
                    # nothing to do here by default
 
22122
                    true
 
22123
 
 
22124
            ;;
20104
22125
          *)
20105
 
echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
 
22126
            # putprpwnam was not found, try adding libsecurity
 
22127
            echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
20106
22128
echo $ECHO_N "checking for putprpwnam in -lsecurity... $ECHO_C" >&6
20107
22129
if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
20108
22130
  echo $ECHO_N "(cached) $ECHO_C" >&6
20167
22189
echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
20168
22190
echo "${ECHO_T}$ac_cv_lib_security_putprpwnam" >&6
20169
22191
if test $ac_cv_lib_security_putprpwnam = yes; then
20170
 
  cat >>confdefs.h <<_ACEOF
20171
 
#define HAVE_LIBSECURITY 1
20172
 
_ACEOF
20173
 
 
20174
 
  LIBS="-lsecurity $LIBS"
20175
 
 
20176
 
fi
20177
 
 
20178
 
 
20179
 
for ac_func in putprpwnam
20180
 
do
20181
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20182
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
20183
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20184
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
20185
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20186
 
else
20187
 
  cat >conftest.$ac_ext <<_ACEOF
20188
 
/* confdefs.h.  */
20189
 
_ACEOF
20190
 
cat confdefs.h >>conftest.$ac_ext
20191
 
cat >>conftest.$ac_ext <<_ACEOF
20192
 
/* end confdefs.h.  */
20193
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20194
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20195
 
#define $ac_func innocuous_$ac_func
20196
 
 
20197
 
/* System header to define __stub macros and hopefully few prototypes,
20198
 
    which can conflict with char $ac_func (); below.
20199
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20200
 
    <limits.h> exists even on freestanding compilers.  */
20201
 
 
20202
 
#ifdef __STDC__
20203
 
# include <limits.h>
20204
 
#else
20205
 
# include <assert.h>
20206
 
#endif
20207
 
 
20208
 
#undef $ac_func
20209
 
 
20210
 
/* Override any gcc2 internal prototype to avoid an error.  */
20211
 
#ifdef __cplusplus
20212
 
extern "C"
20213
 
{
20214
 
#endif
20215
 
/* We use char because int might match the return type of a gcc2
20216
 
   builtin and then its argument prototype would still apply.  */
20217
 
char $ac_func ();
20218
 
/* The GNU C library defines this for functions which it implements
20219
 
    to always fail with ENOSYS.  Some functions are actually named
20220
 
    something starting with __ and the normal name is an alias.  */
20221
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20222
 
choke me
20223
 
#else
20224
 
char (*f) () = $ac_func;
20225
 
#endif
20226
 
#ifdef __cplusplus
20227
 
}
20228
 
#endif
20229
 
 
20230
 
int
20231
 
main ()
20232
 
{
20233
 
return f != $ac_func;
20234
 
  ;
20235
 
  return 0;
20236
 
}
20237
 
_ACEOF
20238
 
rm -f conftest.$ac_objext conftest$ac_exeext
20239
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20240
 
  (eval $ac_link) 2>conftest.er1
20241
 
  ac_status=$?
20242
 
  grep -v '^ *+' conftest.er1 >conftest.err
20243
 
  rm -f conftest.er1
20244
 
  cat conftest.err >&5
20245
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246
 
  (exit $ac_status); } &&
20247
 
         { ac_try='test -z "$ac_c_werror_flag"
20248
 
                         || test ! -s conftest.err'
20249
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250
 
  (eval $ac_try) 2>&5
20251
 
  ac_status=$?
20252
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253
 
  (exit $ac_status); }; } &&
20254
 
         { ac_try='test -s conftest$ac_exeext'
20255
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256
 
  (eval $ac_try) 2>&5
20257
 
  ac_status=$?
20258
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259
 
  (exit $ac_status); }; }; then
20260
 
  eval "$as_ac_var=yes"
20261
 
else
20262
 
  echo "$as_me: failed program was:" >&5
20263
 
sed 's/^/| /' conftest.$ac_ext >&5
20264
 
 
20265
 
eval "$as_ac_var=no"
20266
 
fi
20267
 
rm -f conftest.err conftest.$ac_objext \
20268
 
      conftest$ac_exeext conftest.$ac_ext
20269
 
fi
20270
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20271
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20272
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
20273
 
  cat >>confdefs.h <<_ACEOF
20274
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20275
 
_ACEOF
20276
 
 
20277
 
fi
20278
 
done
20279
 
 
20280
 
          ;;
 
22192
 
 
22193
                LIBS="-lsecurity $LIBS"
 
22194
 
 
22195
 
 
22196
cat >>confdefs.h <<\_ACEOF
 
22197
#define HAVE_PUTPRPWNAM 1
 
22198
_ACEOF
 
22199
 
 
22200
 
 
22201
 
 
22202
else
 
22203
 
 
22204
 
 
22205
                        # putprpwnam was not found in libsecurity
 
22206
                        # nothing to do here by default
 
22207
                        true
 
22208
 
 
22209
 
 
22210
fi
 
22211
 
 
22212
          ;;
20281
22213
        esac
20282
22214
 
20283
22215
fi
20384
22316
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20385
22317
_ACEOF
20386
22318
 
20387
 
else
20388
 
   case "$LIBS" in
20389
 
          *-lsec*)
20390
 
for ac_func in putprpwnam
20391
 
do
20392
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20393
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
20394
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20395
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
20396
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20397
 
else
20398
 
  cat >conftest.$ac_ext <<_ACEOF
20399
 
/* confdefs.h.  */
20400
 
_ACEOF
20401
 
cat confdefs.h >>conftest.$ac_ext
20402
 
cat >>conftest.$ac_ext <<_ACEOF
20403
 
/* end confdefs.h.  */
20404
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20405
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20406
 
#define $ac_func innocuous_$ac_func
20407
 
 
20408
 
/* System header to define __stub macros and hopefully few prototypes,
20409
 
    which can conflict with char $ac_func (); below.
20410
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20411
 
    <limits.h> exists even on freestanding compilers.  */
20412
 
 
20413
 
#ifdef __STDC__
20414
 
# include <limits.h>
20415
 
#else
20416
 
# include <assert.h>
20417
 
#endif
20418
 
 
20419
 
#undef $ac_func
20420
 
 
20421
 
/* Override any gcc2 internal prototype to avoid an error.  */
20422
 
#ifdef __cplusplus
20423
 
extern "C"
20424
 
{
20425
 
#endif
20426
 
/* We use char because int might match the return type of a gcc2
20427
 
   builtin and then its argument prototype would still apply.  */
20428
 
char $ac_func ();
20429
 
/* The GNU C library defines this for functions which it implements
20430
 
    to always fail with ENOSYS.  Some functions are actually named
20431
 
    something starting with __ and the normal name is an alias.  */
20432
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20433
 
choke me
20434
 
#else
20435
 
char (*f) () = $ac_func;
20436
 
#endif
20437
 
#ifdef __cplusplus
20438
 
}
20439
 
#endif
20440
 
 
20441
 
int
20442
 
main ()
20443
 
{
20444
 
return f != $ac_func;
20445
 
  ;
20446
 
  return 0;
20447
 
}
20448
 
_ACEOF
20449
 
rm -f conftest.$ac_objext conftest$ac_exeext
20450
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20451
 
  (eval $ac_link) 2>conftest.er1
20452
 
  ac_status=$?
20453
 
  grep -v '^ *+' conftest.er1 >conftest.err
20454
 
  rm -f conftest.er1
20455
 
  cat conftest.err >&5
20456
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457
 
  (exit $ac_status); } &&
20458
 
         { ac_try='test -z "$ac_c_werror_flag"
20459
 
                         || test ! -s conftest.err'
20460
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461
 
  (eval $ac_try) 2>&5
20462
 
  ac_status=$?
20463
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464
 
  (exit $ac_status); }; } &&
20465
 
         { ac_try='test -s conftest$ac_exeext'
20466
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467
 
  (eval $ac_try) 2>&5
20468
 
  ac_status=$?
20469
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470
 
  (exit $ac_status); }; }; then
20471
 
  eval "$as_ac_var=yes"
20472
 
else
20473
 
  echo "$as_me: failed program was:" >&5
20474
 
sed 's/^/| /' conftest.$ac_ext >&5
20475
 
 
20476
 
eval "$as_ac_var=no"
20477
 
fi
20478
 
rm -f conftest.err conftest.$ac_objext \
20479
 
      conftest$ac_exeext conftest.$ac_ext
20480
 
fi
20481
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20482
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20483
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
20484
 
  cat >>confdefs.h <<_ACEOF
20485
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20486
 
_ACEOF
20487
 
 
20488
 
fi
20489
 
done
20490
 
 ;;
 
22319
        # putprpwnam was found in libc or existing $LIBS
 
22320
 
 
22321
 
 
22322
cat >>confdefs.h <<\_ACEOF
 
22323
#define HAVE_PUTPRPWNAM 1
 
22324
_ACEOF
 
22325
 
 
22326
 
 
22327
 
 
22328
else
 
22329
 
 
22330
        # putprpwnam was not found, try adding libsec
 
22331
        case " $LIBS " in
 
22332
          *\ -lsec\ *)
 
22333
 
 
22334
                    # putprpwnam was not found and we already had libsec
 
22335
                    # nothing to do here by default
 
22336
                    true
 
22337
 
 
22338
            ;;
20491
22339
          *)
20492
 
echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
 
22340
            # putprpwnam was not found, try adding libsec
 
22341
            echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
20493
22342
echo $ECHO_N "checking for putprpwnam in -lsec... $ECHO_C" >&6
20494
22343
if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
20495
22344
  echo $ECHO_N "(cached) $ECHO_C" >&6
20554
22403
echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
20555
22404
echo "${ECHO_T}$ac_cv_lib_sec_putprpwnam" >&6
20556
22405
if test $ac_cv_lib_sec_putprpwnam = yes; then
20557
 
  cat >>confdefs.h <<_ACEOF
20558
 
#define HAVE_LIBSEC 1
20559
 
_ACEOF
20560
 
 
20561
 
  LIBS="-lsec $LIBS"
20562
 
 
20563
 
fi
20564
 
 
20565
 
 
20566
 
for ac_func in putprpwnam
20567
 
do
20568
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20569
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
20570
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20571
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
20572
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20573
 
else
20574
 
  cat >conftest.$ac_ext <<_ACEOF
20575
 
/* confdefs.h.  */
20576
 
_ACEOF
20577
 
cat confdefs.h >>conftest.$ac_ext
20578
 
cat >>conftest.$ac_ext <<_ACEOF
20579
 
/* end confdefs.h.  */
20580
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20581
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20582
 
#define $ac_func innocuous_$ac_func
20583
 
 
20584
 
/* System header to define __stub macros and hopefully few prototypes,
20585
 
    which can conflict with char $ac_func (); below.
20586
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20587
 
    <limits.h> exists even on freestanding compilers.  */
20588
 
 
20589
 
#ifdef __STDC__
20590
 
# include <limits.h>
20591
 
#else
20592
 
# include <assert.h>
20593
 
#endif
20594
 
 
20595
 
#undef $ac_func
20596
 
 
20597
 
/* Override any gcc2 internal prototype to avoid an error.  */
20598
 
#ifdef __cplusplus
20599
 
extern "C"
20600
 
{
20601
 
#endif
20602
 
/* We use char because int might match the return type of a gcc2
20603
 
   builtin and then its argument prototype would still apply.  */
20604
 
char $ac_func ();
20605
 
/* The GNU C library defines this for functions which it implements
20606
 
    to always fail with ENOSYS.  Some functions are actually named
20607
 
    something starting with __ and the normal name is an alias.  */
20608
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20609
 
choke me
20610
 
#else
20611
 
char (*f) () = $ac_func;
20612
 
#endif
20613
 
#ifdef __cplusplus
20614
 
}
20615
 
#endif
20616
 
 
20617
 
int
20618
 
main ()
20619
 
{
20620
 
return f != $ac_func;
20621
 
  ;
20622
 
  return 0;
20623
 
}
20624
 
_ACEOF
20625
 
rm -f conftest.$ac_objext conftest$ac_exeext
20626
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20627
 
  (eval $ac_link) 2>conftest.er1
20628
 
  ac_status=$?
20629
 
  grep -v '^ *+' conftest.er1 >conftest.err
20630
 
  rm -f conftest.er1
20631
 
  cat conftest.err >&5
20632
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633
 
  (exit $ac_status); } &&
20634
 
         { ac_try='test -z "$ac_c_werror_flag"
20635
 
                         || test ! -s conftest.err'
20636
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637
 
  (eval $ac_try) 2>&5
20638
 
  ac_status=$?
20639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640
 
  (exit $ac_status); }; } &&
20641
 
         { ac_try='test -s conftest$ac_exeext'
20642
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20643
 
  (eval $ac_try) 2>&5
20644
 
  ac_status=$?
20645
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646
 
  (exit $ac_status); }; }; then
20647
 
  eval "$as_ac_var=yes"
20648
 
else
20649
 
  echo "$as_me: failed program was:" >&5
20650
 
sed 's/^/| /' conftest.$ac_ext >&5
20651
 
 
20652
 
eval "$as_ac_var=no"
20653
 
fi
20654
 
rm -f conftest.err conftest.$ac_objext \
20655
 
      conftest$ac_exeext conftest.$ac_ext
20656
 
fi
20657
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20658
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20659
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
20660
 
  cat >>confdefs.h <<_ACEOF
20661
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20662
 
_ACEOF
20663
 
 
20664
 
fi
20665
 
done
20666
 
 
20667
 
          ;;
 
22406
 
 
22407
                LIBS="-lsec $LIBS"
 
22408
 
 
22409
 
 
22410
cat >>confdefs.h <<\_ACEOF
 
22411
#define HAVE_PUTPRPWNAM 1
 
22412
_ACEOF
 
22413
 
 
22414
 
 
22415
 
 
22416
else
 
22417
 
 
22418
 
 
22419
                        # putprpwnam was not found in libsec
 
22420
                        # nothing to do here by default
 
22421
                        true
 
22422
 
 
22423
 
 
22424
fi
 
22425
 
 
22426
          ;;
20668
22427
        esac
20669
22428
 
20670
22429
fi
20772
22531
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20773
22532
_ACEOF
20774
22533
 
20775
 
else
20776
 
   case "$LIBS" in
20777
 
          *-lsecurity*)
20778
 
for ac_func in set_auth_parameters
20779
 
do
20780
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20781
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
20782
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20783
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
20784
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20785
 
else
20786
 
  cat >conftest.$ac_ext <<_ACEOF
20787
 
/* confdefs.h.  */
20788
 
_ACEOF
20789
 
cat confdefs.h >>conftest.$ac_ext
20790
 
cat >>conftest.$ac_ext <<_ACEOF
20791
 
/* end confdefs.h.  */
20792
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20793
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20794
 
#define $ac_func innocuous_$ac_func
20795
 
 
20796
 
/* System header to define __stub macros and hopefully few prototypes,
20797
 
    which can conflict with char $ac_func (); below.
20798
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20799
 
    <limits.h> exists even on freestanding compilers.  */
20800
 
 
20801
 
#ifdef __STDC__
20802
 
# include <limits.h>
20803
 
#else
20804
 
# include <assert.h>
20805
 
#endif
20806
 
 
20807
 
#undef $ac_func
20808
 
 
20809
 
/* Override any gcc2 internal prototype to avoid an error.  */
20810
 
#ifdef __cplusplus
20811
 
extern "C"
20812
 
{
20813
 
#endif
20814
 
/* We use char because int might match the return type of a gcc2
20815
 
   builtin and then its argument prototype would still apply.  */
20816
 
char $ac_func ();
20817
 
/* The GNU C library defines this for functions which it implements
20818
 
    to always fail with ENOSYS.  Some functions are actually named
20819
 
    something starting with __ and the normal name is an alias.  */
20820
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20821
 
choke me
20822
 
#else
20823
 
char (*f) () = $ac_func;
20824
 
#endif
20825
 
#ifdef __cplusplus
20826
 
}
20827
 
#endif
20828
 
 
20829
 
int
20830
 
main ()
20831
 
{
20832
 
return f != $ac_func;
20833
 
  ;
20834
 
  return 0;
20835
 
}
20836
 
_ACEOF
20837
 
rm -f conftest.$ac_objext conftest$ac_exeext
20838
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20839
 
  (eval $ac_link) 2>conftest.er1
20840
 
  ac_status=$?
20841
 
  grep -v '^ *+' conftest.er1 >conftest.err
20842
 
  rm -f conftest.er1
20843
 
  cat conftest.err >&5
20844
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845
 
  (exit $ac_status); } &&
20846
 
         { ac_try='test -z "$ac_c_werror_flag"
20847
 
                         || test ! -s conftest.err'
20848
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849
 
  (eval $ac_try) 2>&5
20850
 
  ac_status=$?
20851
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852
 
  (exit $ac_status); }; } &&
20853
 
         { ac_try='test -s conftest$ac_exeext'
20854
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855
 
  (eval $ac_try) 2>&5
20856
 
  ac_status=$?
20857
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858
 
  (exit $ac_status); }; }; then
20859
 
  eval "$as_ac_var=yes"
20860
 
else
20861
 
  echo "$as_me: failed program was:" >&5
20862
 
sed 's/^/| /' conftest.$ac_ext >&5
20863
 
 
20864
 
eval "$as_ac_var=no"
20865
 
fi
20866
 
rm -f conftest.err conftest.$ac_objext \
20867
 
      conftest$ac_exeext conftest.$ac_ext
20868
 
fi
20869
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20870
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20871
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
20872
 
  cat >>confdefs.h <<_ACEOF
20873
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20874
 
_ACEOF
20875
 
 
20876
 
fi
20877
 
done
20878
 
 ;;
 
22534
        # set_auth_parameters was found in libc or existing $LIBS
 
22535
 
 
22536
 
 
22537
cat >>confdefs.h <<\_ACEOF
 
22538
#define HAVE_SET_AUTH_PARAMETERS 1
 
22539
_ACEOF
 
22540
 
 
22541
 
 
22542
 
 
22543
else
 
22544
 
 
22545
        # set_auth_parameters was not found, try adding libsecurity
 
22546
        case " $LIBS " in
 
22547
          *\ -lsecurity\ *)
 
22548
 
 
22549
                    # set_auth_parameters was not found and we already had libsecurity
 
22550
                    # nothing to do here by default
 
22551
                    true
 
22552
 
 
22553
            ;;
20879
22554
          *)
20880
 
echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
 
22555
            # set_auth_parameters was not found, try adding libsecurity
 
22556
            echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
20881
22557
echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
20882
22558
if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
20883
22559
  echo $ECHO_N "(cached) $ECHO_C" >&6
20942
22618
echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
20943
22619
echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
20944
22620
if test $ac_cv_lib_security_set_auth_parameters = yes; then
20945
 
  cat >>confdefs.h <<_ACEOF
20946
 
#define HAVE_LIBSECURITY 1
20947
 
_ACEOF
20948
 
 
20949
 
  LIBS="-lsecurity $LIBS"
20950
 
 
20951
 
fi
20952
 
 
20953
 
 
20954
 
for ac_func in set_auth_parameters
20955
 
do
20956
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20957
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
20958
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20959
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
20960
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20961
 
else
20962
 
  cat >conftest.$ac_ext <<_ACEOF
20963
 
/* confdefs.h.  */
20964
 
_ACEOF
20965
 
cat confdefs.h >>conftest.$ac_ext
20966
 
cat >>conftest.$ac_ext <<_ACEOF
20967
 
/* end confdefs.h.  */
20968
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20969
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20970
 
#define $ac_func innocuous_$ac_func
20971
 
 
20972
 
/* System header to define __stub macros and hopefully few prototypes,
20973
 
    which can conflict with char $ac_func (); below.
20974
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20975
 
    <limits.h> exists even on freestanding compilers.  */
20976
 
 
20977
 
#ifdef __STDC__
20978
 
# include <limits.h>
20979
 
#else
20980
 
# include <assert.h>
20981
 
#endif
20982
 
 
20983
 
#undef $ac_func
20984
 
 
20985
 
/* Override any gcc2 internal prototype to avoid an error.  */
20986
 
#ifdef __cplusplus
20987
 
extern "C"
20988
 
{
20989
 
#endif
20990
 
/* We use char because int might match the return type of a gcc2
20991
 
   builtin and then its argument prototype would still apply.  */
20992
 
char $ac_func ();
20993
 
/* The GNU C library defines this for functions which it implements
20994
 
    to always fail with ENOSYS.  Some functions are actually named
20995
 
    something starting with __ and the normal name is an alias.  */
20996
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20997
 
choke me
20998
 
#else
20999
 
char (*f) () = $ac_func;
21000
 
#endif
21001
 
#ifdef __cplusplus
21002
 
}
21003
 
#endif
21004
 
 
21005
 
int
21006
 
main ()
21007
 
{
21008
 
return f != $ac_func;
21009
 
  ;
21010
 
  return 0;
21011
 
}
21012
 
_ACEOF
21013
 
rm -f conftest.$ac_objext conftest$ac_exeext
21014
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21015
 
  (eval $ac_link) 2>conftest.er1
21016
 
  ac_status=$?
21017
 
  grep -v '^ *+' conftest.er1 >conftest.err
21018
 
  rm -f conftest.er1
21019
 
  cat conftest.err >&5
21020
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021
 
  (exit $ac_status); } &&
21022
 
         { ac_try='test -z "$ac_c_werror_flag"
21023
 
                         || test ! -s conftest.err'
21024
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025
 
  (eval $ac_try) 2>&5
21026
 
  ac_status=$?
21027
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028
 
  (exit $ac_status); }; } &&
21029
 
         { ac_try='test -s conftest$ac_exeext'
21030
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031
 
  (eval $ac_try) 2>&5
21032
 
  ac_status=$?
21033
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034
 
  (exit $ac_status); }; }; then
21035
 
  eval "$as_ac_var=yes"
21036
 
else
21037
 
  echo "$as_me: failed program was:" >&5
21038
 
sed 's/^/| /' conftest.$ac_ext >&5
21039
 
 
21040
 
eval "$as_ac_var=no"
21041
 
fi
21042
 
rm -f conftest.err conftest.$ac_objext \
21043
 
      conftest$ac_exeext conftest.$ac_ext
21044
 
fi
21045
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21046
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21047
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
21048
 
  cat >>confdefs.h <<_ACEOF
21049
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21050
 
_ACEOF
21051
 
 
21052
 
fi
21053
 
done
21054
 
 
21055
 
          ;;
 
22621
 
 
22622
                LIBS="-lsecurity $LIBS"
 
22623
 
 
22624
 
 
22625
cat >>confdefs.h <<\_ACEOF
 
22626
#define HAVE_SET_AUTH_PARAMETERS 1
 
22627
_ACEOF
 
22628
 
 
22629
 
 
22630
 
 
22631
else
 
22632
 
 
22633
 
 
22634
                        # set_auth_parameters was not found in libsecurity
 
22635
                        # nothing to do here by default
 
22636
                        true
 
22637
 
 
22638
 
 
22639
fi
 
22640
 
 
22641
          ;;
21056
22642
        esac
21057
22643
 
21058
22644
fi
21159
22745
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21160
22746
_ACEOF
21161
22747
 
21162
 
else
21163
 
   case "$LIBS" in
21164
 
          *-lsec*)
21165
 
for ac_func in set_auth_parameters
21166
 
do
21167
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21168
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
21169
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21170
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
21171
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21172
 
else
21173
 
  cat >conftest.$ac_ext <<_ACEOF
21174
 
/* confdefs.h.  */
21175
 
_ACEOF
21176
 
cat confdefs.h >>conftest.$ac_ext
21177
 
cat >>conftest.$ac_ext <<_ACEOF
21178
 
/* end confdefs.h.  */
21179
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21180
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21181
 
#define $ac_func innocuous_$ac_func
21182
 
 
21183
 
/* System header to define __stub macros and hopefully few prototypes,
21184
 
    which can conflict with char $ac_func (); below.
21185
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21186
 
    <limits.h> exists even on freestanding compilers.  */
21187
 
 
21188
 
#ifdef __STDC__
21189
 
# include <limits.h>
21190
 
#else
21191
 
# include <assert.h>
21192
 
#endif
21193
 
 
21194
 
#undef $ac_func
21195
 
 
21196
 
/* Override any gcc2 internal prototype to avoid an error.  */
21197
 
#ifdef __cplusplus
21198
 
extern "C"
21199
 
{
21200
 
#endif
21201
 
/* We use char because int might match the return type of a gcc2
21202
 
   builtin and then its argument prototype would still apply.  */
21203
 
char $ac_func ();
21204
 
/* The GNU C library defines this for functions which it implements
21205
 
    to always fail with ENOSYS.  Some functions are actually named
21206
 
    something starting with __ and the normal name is an alias.  */
21207
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21208
 
choke me
21209
 
#else
21210
 
char (*f) () = $ac_func;
21211
 
#endif
21212
 
#ifdef __cplusplus
21213
 
}
21214
 
#endif
21215
 
 
21216
 
int
21217
 
main ()
21218
 
{
21219
 
return f != $ac_func;
21220
 
  ;
21221
 
  return 0;
21222
 
}
21223
 
_ACEOF
21224
 
rm -f conftest.$ac_objext conftest$ac_exeext
21225
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21226
 
  (eval $ac_link) 2>conftest.er1
21227
 
  ac_status=$?
21228
 
  grep -v '^ *+' conftest.er1 >conftest.err
21229
 
  rm -f conftest.er1
21230
 
  cat conftest.err >&5
21231
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232
 
  (exit $ac_status); } &&
21233
 
         { ac_try='test -z "$ac_c_werror_flag"
21234
 
                         || test ! -s conftest.err'
21235
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236
 
  (eval $ac_try) 2>&5
21237
 
  ac_status=$?
21238
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239
 
  (exit $ac_status); }; } &&
21240
 
         { ac_try='test -s conftest$ac_exeext'
21241
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242
 
  (eval $ac_try) 2>&5
21243
 
  ac_status=$?
21244
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245
 
  (exit $ac_status); }; }; then
21246
 
  eval "$as_ac_var=yes"
21247
 
else
21248
 
  echo "$as_me: failed program was:" >&5
21249
 
sed 's/^/| /' conftest.$ac_ext >&5
21250
 
 
21251
 
eval "$as_ac_var=no"
21252
 
fi
21253
 
rm -f conftest.err conftest.$ac_objext \
21254
 
      conftest$ac_exeext conftest.$ac_ext
21255
 
fi
21256
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21257
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21258
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
21259
 
  cat >>confdefs.h <<_ACEOF
21260
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21261
 
_ACEOF
21262
 
 
21263
 
fi
21264
 
done
21265
 
 ;;
 
22748
        # set_auth_parameters was found in libc or existing $LIBS
 
22749
 
 
22750
 
 
22751
cat >>confdefs.h <<\_ACEOF
 
22752
#define HAVE_SET_AUTH_PARAMETERS 1
 
22753
_ACEOF
 
22754
 
 
22755
 
 
22756
 
 
22757
else
 
22758
 
 
22759
        # set_auth_parameters was not found, try adding libsec
 
22760
        case " $LIBS " in
 
22761
          *\ -lsec\ *)
 
22762
 
 
22763
                    # set_auth_parameters was not found and we already had libsec
 
22764
                    # nothing to do here by default
 
22765
                    true
 
22766
 
 
22767
            ;;
21266
22768
          *)
21267
 
echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
 
22769
            # set_auth_parameters was not found, try adding libsec
 
22770
            echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
21268
22771
echo $ECHO_N "checking for set_auth_parameters in -lsec... $ECHO_C" >&6
21269
22772
if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
21270
22773
  echo $ECHO_N "(cached) $ECHO_C" >&6
21329
22832
echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
21330
22833
echo "${ECHO_T}$ac_cv_lib_sec_set_auth_parameters" >&6
21331
22834
if test $ac_cv_lib_sec_set_auth_parameters = yes; then
21332
 
  cat >>confdefs.h <<_ACEOF
21333
 
#define HAVE_LIBSEC 1
21334
 
_ACEOF
21335
 
 
21336
 
  LIBS="-lsec $LIBS"
21337
 
 
21338
 
fi
21339
 
 
21340
 
 
21341
 
for ac_func in set_auth_parameters
21342
 
do
21343
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21344
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
21345
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21346
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
21347
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21348
 
else
21349
 
  cat >conftest.$ac_ext <<_ACEOF
21350
 
/* confdefs.h.  */
21351
 
_ACEOF
21352
 
cat confdefs.h >>conftest.$ac_ext
21353
 
cat >>conftest.$ac_ext <<_ACEOF
21354
 
/* end confdefs.h.  */
21355
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21356
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21357
 
#define $ac_func innocuous_$ac_func
21358
 
 
21359
 
/* System header to define __stub macros and hopefully few prototypes,
21360
 
    which can conflict with char $ac_func (); below.
21361
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21362
 
    <limits.h> exists even on freestanding compilers.  */
21363
 
 
21364
 
#ifdef __STDC__
21365
 
# include <limits.h>
21366
 
#else
21367
 
# include <assert.h>
21368
 
#endif
21369
 
 
21370
 
#undef $ac_func
21371
 
 
21372
 
/* Override any gcc2 internal prototype to avoid an error.  */
21373
 
#ifdef __cplusplus
21374
 
extern "C"
21375
 
{
21376
 
#endif
21377
 
/* We use char because int might match the return type of a gcc2
21378
 
   builtin and then its argument prototype would still apply.  */
21379
 
char $ac_func ();
21380
 
/* The GNU C library defines this for functions which it implements
21381
 
    to always fail with ENOSYS.  Some functions are actually named
21382
 
    something starting with __ and the normal name is an alias.  */
21383
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21384
 
choke me
21385
 
#else
21386
 
char (*f) () = $ac_func;
21387
 
#endif
21388
 
#ifdef __cplusplus
21389
 
}
21390
 
#endif
21391
 
 
21392
 
int
21393
 
main ()
21394
 
{
21395
 
return f != $ac_func;
21396
 
  ;
21397
 
  return 0;
21398
 
}
21399
 
_ACEOF
21400
 
rm -f conftest.$ac_objext conftest$ac_exeext
21401
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21402
 
  (eval $ac_link) 2>conftest.er1
21403
 
  ac_status=$?
21404
 
  grep -v '^ *+' conftest.er1 >conftest.err
21405
 
  rm -f conftest.er1
21406
 
  cat conftest.err >&5
21407
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408
 
  (exit $ac_status); } &&
21409
 
         { ac_try='test -z "$ac_c_werror_flag"
21410
 
                         || test ! -s conftest.err'
21411
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412
 
  (eval $ac_try) 2>&5
21413
 
  ac_status=$?
21414
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415
 
  (exit $ac_status); }; } &&
21416
 
         { ac_try='test -s conftest$ac_exeext'
21417
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418
 
  (eval $ac_try) 2>&5
21419
 
  ac_status=$?
21420
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421
 
  (exit $ac_status); }; }; then
21422
 
  eval "$as_ac_var=yes"
21423
 
else
21424
 
  echo "$as_me: failed program was:" >&5
21425
 
sed 's/^/| /' conftest.$ac_ext >&5
21426
 
 
21427
 
eval "$as_ac_var=no"
21428
 
fi
21429
 
rm -f conftest.err conftest.$ac_objext \
21430
 
      conftest$ac_exeext conftest.$ac_ext
21431
 
fi
21432
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21433
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21434
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
21435
 
  cat >>confdefs.h <<_ACEOF
21436
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21437
 
_ACEOF
21438
 
 
21439
 
fi
21440
 
done
21441
 
 
21442
 
          ;;
 
22835
 
 
22836
                LIBS="-lsec $LIBS"
 
22837
 
 
22838
 
 
22839
cat >>confdefs.h <<\_ACEOF
 
22840
#define HAVE_SET_AUTH_PARAMETERS 1
 
22841
_ACEOF
 
22842
 
 
22843
 
 
22844
 
 
22845
else
 
22846
 
 
22847
 
 
22848
                        # set_auth_parameters was not found in libsec
 
22849
                        # nothing to do here by default
 
22850
                        true
 
22851
 
 
22852
 
 
22853
fi
 
22854
 
 
22855
          ;;
21443
22856
        esac
21444
22857
 
21445
22858
fi
21548
22961
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21549
22962
_ACEOF
21550
22963
 
21551
 
else
21552
 
   case "$LIBS" in
21553
 
          *-lgen*)
21554
 
for ac_func in getspnam
21555
 
do
21556
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21557
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
21558
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21559
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
21560
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21561
 
else
21562
 
  cat >conftest.$ac_ext <<_ACEOF
21563
 
/* confdefs.h.  */
21564
 
_ACEOF
21565
 
cat confdefs.h >>conftest.$ac_ext
21566
 
cat >>conftest.$ac_ext <<_ACEOF
21567
 
/* end confdefs.h.  */
21568
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21569
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21570
 
#define $ac_func innocuous_$ac_func
21571
 
 
21572
 
/* System header to define __stub macros and hopefully few prototypes,
21573
 
    which can conflict with char $ac_func (); below.
21574
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21575
 
    <limits.h> exists even on freestanding compilers.  */
21576
 
 
21577
 
#ifdef __STDC__
21578
 
# include <limits.h>
21579
 
#else
21580
 
# include <assert.h>
21581
 
#endif
21582
 
 
21583
 
#undef $ac_func
21584
 
 
21585
 
/* Override any gcc2 internal prototype to avoid an error.  */
21586
 
#ifdef __cplusplus
21587
 
extern "C"
21588
 
{
21589
 
#endif
21590
 
/* We use char because int might match the return type of a gcc2
21591
 
   builtin and then its argument prototype would still apply.  */
21592
 
char $ac_func ();
21593
 
/* The GNU C library defines this for functions which it implements
21594
 
    to always fail with ENOSYS.  Some functions are actually named
21595
 
    something starting with __ and the normal name is an alias.  */
21596
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21597
 
choke me
21598
 
#else
21599
 
char (*f) () = $ac_func;
21600
 
#endif
21601
 
#ifdef __cplusplus
21602
 
}
21603
 
#endif
21604
 
 
21605
 
int
21606
 
main ()
21607
 
{
21608
 
return f != $ac_func;
21609
 
  ;
21610
 
  return 0;
21611
 
}
21612
 
_ACEOF
21613
 
rm -f conftest.$ac_objext conftest$ac_exeext
21614
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21615
 
  (eval $ac_link) 2>conftest.er1
21616
 
  ac_status=$?
21617
 
  grep -v '^ *+' conftest.er1 >conftest.err
21618
 
  rm -f conftest.er1
21619
 
  cat conftest.err >&5
21620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621
 
  (exit $ac_status); } &&
21622
 
         { ac_try='test -z "$ac_c_werror_flag"
21623
 
                         || test ! -s conftest.err'
21624
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625
 
  (eval $ac_try) 2>&5
21626
 
  ac_status=$?
21627
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628
 
  (exit $ac_status); }; } &&
21629
 
         { ac_try='test -s conftest$ac_exeext'
21630
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21631
 
  (eval $ac_try) 2>&5
21632
 
  ac_status=$?
21633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634
 
  (exit $ac_status); }; }; then
21635
 
  eval "$as_ac_var=yes"
21636
 
else
21637
 
  echo "$as_me: failed program was:" >&5
21638
 
sed 's/^/| /' conftest.$ac_ext >&5
21639
 
 
21640
 
eval "$as_ac_var=no"
21641
 
fi
21642
 
rm -f conftest.err conftest.$ac_objext \
21643
 
      conftest$ac_exeext conftest.$ac_ext
21644
 
fi
21645
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21646
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21647
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
21648
 
  cat >>confdefs.h <<_ACEOF
21649
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21650
 
_ACEOF
21651
 
 
21652
 
fi
21653
 
done
21654
 
 ;;
 
22964
        # getspnam was found in libc or existing $LIBS
 
22965
 
 
22966
 
 
22967
cat >>confdefs.h <<\_ACEOF
 
22968
#define HAVE_GETSPNAM 1
 
22969
_ACEOF
 
22970
 
 
22971
 
 
22972
 
 
22973
else
 
22974
 
 
22975
        # getspnam was not found, try adding libgen
 
22976
        case " $LIBS " in
 
22977
          *\ -lgen\ *)
 
22978
 
 
22979
                    # getspnam was not found and we already had libgen
 
22980
                    # nothing to do here by default
 
22981
                    true
 
22982
 
 
22983
            ;;
21655
22984
          *)
21656
 
echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
 
22985
            # getspnam was not found, try adding libgen
 
22986
            echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
21657
22987
echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
21658
22988
if test "${ac_cv_lib_gen_getspnam+set}" = set; then
21659
22989
  echo $ECHO_N "(cached) $ECHO_C" >&6
21718
23048
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
21719
23049
echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
21720
23050
if test $ac_cv_lib_gen_getspnam = yes; then
21721
 
  cat >>confdefs.h <<_ACEOF
21722
 
#define HAVE_LIBGEN 1
21723
 
_ACEOF
21724
 
 
21725
 
  LIBS="-lgen $LIBS"
21726
 
 
21727
 
fi
21728
 
 
21729
 
 
21730
 
for ac_func in getspnam
21731
 
do
21732
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21733
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
21734
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21735
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
21736
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21737
 
else
21738
 
  cat >conftest.$ac_ext <<_ACEOF
21739
 
/* confdefs.h.  */
21740
 
_ACEOF
21741
 
cat confdefs.h >>conftest.$ac_ext
21742
 
cat >>conftest.$ac_ext <<_ACEOF
21743
 
/* end confdefs.h.  */
21744
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21745
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21746
 
#define $ac_func innocuous_$ac_func
21747
 
 
21748
 
/* System header to define __stub macros and hopefully few prototypes,
21749
 
    which can conflict with char $ac_func (); below.
21750
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21751
 
    <limits.h> exists even on freestanding compilers.  */
21752
 
 
21753
 
#ifdef __STDC__
21754
 
# include <limits.h>
21755
 
#else
21756
 
# include <assert.h>
21757
 
#endif
21758
 
 
21759
 
#undef $ac_func
21760
 
 
21761
 
/* Override any gcc2 internal prototype to avoid an error.  */
21762
 
#ifdef __cplusplus
21763
 
extern "C"
21764
 
{
21765
 
#endif
21766
 
/* We use char because int might match the return type of a gcc2
21767
 
   builtin and then its argument prototype would still apply.  */
21768
 
char $ac_func ();
21769
 
/* The GNU C library defines this for functions which it implements
21770
 
    to always fail with ENOSYS.  Some functions are actually named
21771
 
    something starting with __ and the normal name is an alias.  */
21772
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21773
 
choke me
21774
 
#else
21775
 
char (*f) () = $ac_func;
21776
 
#endif
21777
 
#ifdef __cplusplus
21778
 
}
21779
 
#endif
21780
 
 
21781
 
int
21782
 
main ()
21783
 
{
21784
 
return f != $ac_func;
21785
 
  ;
21786
 
  return 0;
21787
 
}
21788
 
_ACEOF
21789
 
rm -f conftest.$ac_objext conftest$ac_exeext
21790
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21791
 
  (eval $ac_link) 2>conftest.er1
21792
 
  ac_status=$?
21793
 
  grep -v '^ *+' conftest.er1 >conftest.err
21794
 
  rm -f conftest.er1
21795
 
  cat conftest.err >&5
21796
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797
 
  (exit $ac_status); } &&
21798
 
         { ac_try='test -z "$ac_c_werror_flag"
21799
 
                         || test ! -s conftest.err'
21800
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801
 
  (eval $ac_try) 2>&5
21802
 
  ac_status=$?
21803
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804
 
  (exit $ac_status); }; } &&
21805
 
         { ac_try='test -s conftest$ac_exeext'
21806
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807
 
  (eval $ac_try) 2>&5
21808
 
  ac_status=$?
21809
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810
 
  (exit $ac_status); }; }; then
21811
 
  eval "$as_ac_var=yes"
21812
 
else
21813
 
  echo "$as_me: failed program was:" >&5
21814
 
sed 's/^/| /' conftest.$ac_ext >&5
21815
 
 
21816
 
eval "$as_ac_var=no"
21817
 
fi
21818
 
rm -f conftest.err conftest.$ac_objext \
21819
 
      conftest$ac_exeext conftest.$ac_ext
21820
 
fi
21821
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21822
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21823
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
21824
 
  cat >>confdefs.h <<_ACEOF
21825
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21826
 
_ACEOF
21827
 
 
21828
 
fi
21829
 
done
21830
 
 
21831
 
          ;;
 
23051
 
 
23052
                LIBS="-lgen $LIBS"
 
23053
 
 
23054
 
 
23055
cat >>confdefs.h <<\_ACEOF
 
23056
#define HAVE_GETSPNAM 1
 
23057
_ACEOF
 
23058
 
 
23059
 
 
23060
 
 
23061
else
 
23062
 
 
23063
 
 
23064
                        # getspnam was not found in libgen
 
23065
                        # nothing to do here by default
 
23066
                        true
 
23067
 
 
23068
 
 
23069
fi
 
23070
 
 
23071
          ;;
21832
23072
        esac
21833
23073
 
21834
23074
fi
21936
23176
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21937
23177
_ACEOF
21938
23178
 
21939
 
else
21940
 
   case "$LIBS" in
21941
 
          *-lsecurity*)
21942
 
for ac_func in getspnam
21943
 
do
21944
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21945
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
21946
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21947
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
21948
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21949
 
else
21950
 
  cat >conftest.$ac_ext <<_ACEOF
21951
 
/* confdefs.h.  */
21952
 
_ACEOF
21953
 
cat confdefs.h >>conftest.$ac_ext
21954
 
cat >>conftest.$ac_ext <<_ACEOF
21955
 
/* end confdefs.h.  */
21956
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21957
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21958
 
#define $ac_func innocuous_$ac_func
21959
 
 
21960
 
/* System header to define __stub macros and hopefully few prototypes,
21961
 
    which can conflict with char $ac_func (); below.
21962
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21963
 
    <limits.h> exists even on freestanding compilers.  */
21964
 
 
21965
 
#ifdef __STDC__
21966
 
# include <limits.h>
21967
 
#else
21968
 
# include <assert.h>
21969
 
#endif
21970
 
 
21971
 
#undef $ac_func
21972
 
 
21973
 
/* Override any gcc2 internal prototype to avoid an error.  */
21974
 
#ifdef __cplusplus
21975
 
extern "C"
21976
 
{
21977
 
#endif
21978
 
/* We use char because int might match the return type of a gcc2
21979
 
   builtin and then its argument prototype would still apply.  */
21980
 
char $ac_func ();
21981
 
/* The GNU C library defines this for functions which it implements
21982
 
    to always fail with ENOSYS.  Some functions are actually named
21983
 
    something starting with __ and the normal name is an alias.  */
21984
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21985
 
choke me
21986
 
#else
21987
 
char (*f) () = $ac_func;
21988
 
#endif
21989
 
#ifdef __cplusplus
21990
 
}
21991
 
#endif
21992
 
 
21993
 
int
21994
 
main ()
21995
 
{
21996
 
return f != $ac_func;
21997
 
  ;
21998
 
  return 0;
21999
 
}
22000
 
_ACEOF
22001
 
rm -f conftest.$ac_objext conftest$ac_exeext
22002
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22003
 
  (eval $ac_link) 2>conftest.er1
22004
 
  ac_status=$?
22005
 
  grep -v '^ *+' conftest.er1 >conftest.err
22006
 
  rm -f conftest.er1
22007
 
  cat conftest.err >&5
22008
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009
 
  (exit $ac_status); } &&
22010
 
         { ac_try='test -z "$ac_c_werror_flag"
22011
 
                         || test ! -s conftest.err'
22012
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013
 
  (eval $ac_try) 2>&5
22014
 
  ac_status=$?
22015
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016
 
  (exit $ac_status); }; } &&
22017
 
         { ac_try='test -s conftest$ac_exeext'
22018
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019
 
  (eval $ac_try) 2>&5
22020
 
  ac_status=$?
22021
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022
 
  (exit $ac_status); }; }; then
22023
 
  eval "$as_ac_var=yes"
22024
 
else
22025
 
  echo "$as_me: failed program was:" >&5
22026
 
sed 's/^/| /' conftest.$ac_ext >&5
22027
 
 
22028
 
eval "$as_ac_var=no"
22029
 
fi
22030
 
rm -f conftest.err conftest.$ac_objext \
22031
 
      conftest$ac_exeext conftest.$ac_ext
22032
 
fi
22033
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22034
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22035
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
22036
 
  cat >>confdefs.h <<_ACEOF
22037
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22038
 
_ACEOF
22039
 
 
22040
 
fi
22041
 
done
22042
 
 ;;
 
23179
        # getspnam was found in libc or existing $LIBS
 
23180
 
 
23181
 
 
23182
cat >>confdefs.h <<\_ACEOF
 
23183
#define HAVE_GETSPNAM 1
 
23184
_ACEOF
 
23185
 
 
23186
 
 
23187
 
 
23188
else
 
23189
 
 
23190
        # getspnam was not found, try adding libsecurity
 
23191
        case " $LIBS " in
 
23192
          *\ -lsecurity\ *)
 
23193
 
 
23194
                    # getspnam was not found and we already had libsecurity
 
23195
                    # nothing to do here by default
 
23196
                    true
 
23197
 
 
23198
            ;;
22043
23199
          *)
22044
 
echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
 
23200
            # getspnam was not found, try adding libsecurity
 
23201
            echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
22045
23202
echo $ECHO_N "checking for getspnam in -lsecurity... $ECHO_C" >&6
22046
23203
if test "${ac_cv_lib_security_getspnam+set}" = set; then
22047
23204
  echo $ECHO_N "(cached) $ECHO_C" >&6
22106
23263
echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
22107
23264
echo "${ECHO_T}$ac_cv_lib_security_getspnam" >&6
22108
23265
if test $ac_cv_lib_security_getspnam = yes; then
22109
 
  cat >>confdefs.h <<_ACEOF
22110
 
#define HAVE_LIBSECURITY 1
22111
 
_ACEOF
22112
 
 
22113
 
  LIBS="-lsecurity $LIBS"
22114
 
 
22115
 
fi
22116
 
 
22117
 
 
22118
 
for ac_func in getspnam
22119
 
do
22120
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22121
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
22122
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22123
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
22124
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22125
 
else
22126
 
  cat >conftest.$ac_ext <<_ACEOF
22127
 
/* confdefs.h.  */
22128
 
_ACEOF
22129
 
cat confdefs.h >>conftest.$ac_ext
22130
 
cat >>conftest.$ac_ext <<_ACEOF
22131
 
/* end confdefs.h.  */
22132
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22133
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22134
 
#define $ac_func innocuous_$ac_func
22135
 
 
22136
 
/* System header to define __stub macros and hopefully few prototypes,
22137
 
    which can conflict with char $ac_func (); below.
22138
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22139
 
    <limits.h> exists even on freestanding compilers.  */
22140
 
 
22141
 
#ifdef __STDC__
22142
 
# include <limits.h>
22143
 
#else
22144
 
# include <assert.h>
22145
 
#endif
22146
 
 
22147
 
#undef $ac_func
22148
 
 
22149
 
/* Override any gcc2 internal prototype to avoid an error.  */
22150
 
#ifdef __cplusplus
22151
 
extern "C"
22152
 
{
22153
 
#endif
22154
 
/* We use char because int might match the return type of a gcc2
22155
 
   builtin and then its argument prototype would still apply.  */
22156
 
char $ac_func ();
22157
 
/* The GNU C library defines this for functions which it implements
22158
 
    to always fail with ENOSYS.  Some functions are actually named
22159
 
    something starting with __ and the normal name is an alias.  */
22160
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22161
 
choke me
22162
 
#else
22163
 
char (*f) () = $ac_func;
22164
 
#endif
22165
 
#ifdef __cplusplus
22166
 
}
22167
 
#endif
22168
 
 
22169
 
int
22170
 
main ()
22171
 
{
22172
 
return f != $ac_func;
22173
 
  ;
22174
 
  return 0;
22175
 
}
22176
 
_ACEOF
22177
 
rm -f conftest.$ac_objext conftest$ac_exeext
22178
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22179
 
  (eval $ac_link) 2>conftest.er1
22180
 
  ac_status=$?
22181
 
  grep -v '^ *+' conftest.er1 >conftest.err
22182
 
  rm -f conftest.er1
22183
 
  cat conftest.err >&5
22184
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185
 
  (exit $ac_status); } &&
22186
 
         { ac_try='test -z "$ac_c_werror_flag"
22187
 
                         || test ! -s conftest.err'
22188
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22189
 
  (eval $ac_try) 2>&5
22190
 
  ac_status=$?
22191
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192
 
  (exit $ac_status); }; } &&
22193
 
         { ac_try='test -s conftest$ac_exeext'
22194
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22195
 
  (eval $ac_try) 2>&5
22196
 
  ac_status=$?
22197
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198
 
  (exit $ac_status); }; }; then
22199
 
  eval "$as_ac_var=yes"
22200
 
else
22201
 
  echo "$as_me: failed program was:" >&5
22202
 
sed 's/^/| /' conftest.$ac_ext >&5
22203
 
 
22204
 
eval "$as_ac_var=no"
22205
 
fi
22206
 
rm -f conftest.err conftest.$ac_objext \
22207
 
      conftest$ac_exeext conftest.$ac_ext
22208
 
fi
22209
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22210
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22211
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
22212
 
  cat >>confdefs.h <<_ACEOF
22213
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22214
 
_ACEOF
22215
 
 
22216
 
fi
22217
 
done
22218
 
 
22219
 
          ;;
 
23266
 
 
23267
                LIBS="-lsecurity $LIBS"
 
23268
 
 
23269
 
 
23270
cat >>confdefs.h <<\_ACEOF
 
23271
#define HAVE_GETSPNAM 1
 
23272
_ACEOF
 
23273
 
 
23274
 
 
23275
 
 
23276
else
 
23277
 
 
23278
 
 
23279
                        # getspnam was not found in libsecurity
 
23280
                        # nothing to do here by default
 
23281
                        true
 
23282
 
 
23283
 
 
23284
fi
 
23285
 
 
23286
          ;;
22220
23287
        esac
22221
23288
 
22222
23289
fi
22323
23390
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22324
23391
_ACEOF
22325
23392
 
22326
 
else
22327
 
   case "$LIBS" in
22328
 
          *-lsec*)
22329
 
for ac_func in getspnam
22330
 
do
22331
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22332
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
22333
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22334
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
22335
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22336
 
else
22337
 
  cat >conftest.$ac_ext <<_ACEOF
22338
 
/* confdefs.h.  */
22339
 
_ACEOF
22340
 
cat confdefs.h >>conftest.$ac_ext
22341
 
cat >>conftest.$ac_ext <<_ACEOF
22342
 
/* end confdefs.h.  */
22343
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22344
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22345
 
#define $ac_func innocuous_$ac_func
22346
 
 
22347
 
/* System header to define __stub macros and hopefully few prototypes,
22348
 
    which can conflict with char $ac_func (); below.
22349
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22350
 
    <limits.h> exists even on freestanding compilers.  */
22351
 
 
22352
 
#ifdef __STDC__
22353
 
# include <limits.h>
22354
 
#else
22355
 
# include <assert.h>
22356
 
#endif
22357
 
 
22358
 
#undef $ac_func
22359
 
 
22360
 
/* Override any gcc2 internal prototype to avoid an error.  */
22361
 
#ifdef __cplusplus
22362
 
extern "C"
22363
 
{
22364
 
#endif
22365
 
/* We use char because int might match the return type of a gcc2
22366
 
   builtin and then its argument prototype would still apply.  */
22367
 
char $ac_func ();
22368
 
/* The GNU C library defines this for functions which it implements
22369
 
    to always fail with ENOSYS.  Some functions are actually named
22370
 
    something starting with __ and the normal name is an alias.  */
22371
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22372
 
choke me
22373
 
#else
22374
 
char (*f) () = $ac_func;
22375
 
#endif
22376
 
#ifdef __cplusplus
22377
 
}
22378
 
#endif
22379
 
 
22380
 
int
22381
 
main ()
22382
 
{
22383
 
return f != $ac_func;
22384
 
  ;
22385
 
  return 0;
22386
 
}
22387
 
_ACEOF
22388
 
rm -f conftest.$ac_objext conftest$ac_exeext
22389
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22390
 
  (eval $ac_link) 2>conftest.er1
22391
 
  ac_status=$?
22392
 
  grep -v '^ *+' conftest.er1 >conftest.err
22393
 
  rm -f conftest.er1
22394
 
  cat conftest.err >&5
22395
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396
 
  (exit $ac_status); } &&
22397
 
         { ac_try='test -z "$ac_c_werror_flag"
22398
 
                         || test ! -s conftest.err'
22399
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400
 
  (eval $ac_try) 2>&5
22401
 
  ac_status=$?
22402
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403
 
  (exit $ac_status); }; } &&
22404
 
         { ac_try='test -s conftest$ac_exeext'
22405
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22406
 
  (eval $ac_try) 2>&5
22407
 
  ac_status=$?
22408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409
 
  (exit $ac_status); }; }; then
22410
 
  eval "$as_ac_var=yes"
22411
 
else
22412
 
  echo "$as_me: failed program was:" >&5
22413
 
sed 's/^/| /' conftest.$ac_ext >&5
22414
 
 
22415
 
eval "$as_ac_var=no"
22416
 
fi
22417
 
rm -f conftest.err conftest.$ac_objext \
22418
 
      conftest$ac_exeext conftest.$ac_ext
22419
 
fi
22420
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22421
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22422
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
22423
 
  cat >>confdefs.h <<_ACEOF
22424
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22425
 
_ACEOF
22426
 
 
22427
 
fi
22428
 
done
22429
 
 ;;
 
23393
        # getspnam was found in libc or existing $LIBS
 
23394
 
 
23395
 
 
23396
cat >>confdefs.h <<\_ACEOF
 
23397
#define HAVE_GETSPNAM 1
 
23398
_ACEOF
 
23399
 
 
23400
 
 
23401
 
 
23402
else
 
23403
 
 
23404
        # getspnam was not found, try adding libsec
 
23405
        case " $LIBS " in
 
23406
          *\ -lsec\ *)
 
23407
 
 
23408
                    # getspnam was not found and we already had libsec
 
23409
                    # nothing to do here by default
 
23410
                    true
 
23411
 
 
23412
            ;;
22430
23413
          *)
22431
 
echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
 
23414
            # getspnam was not found, try adding libsec
 
23415
            echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
22432
23416
echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
22433
23417
if test "${ac_cv_lib_sec_getspnam+set}" = set; then
22434
23418
  echo $ECHO_N "(cached) $ECHO_C" >&6
22493
23477
echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
22494
23478
echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
22495
23479
if test $ac_cv_lib_sec_getspnam = yes; then
22496
 
  cat >>confdefs.h <<_ACEOF
22497
 
#define HAVE_LIBSEC 1
22498
 
_ACEOF
22499
 
 
22500
 
  LIBS="-lsec $LIBS"
22501
 
 
22502
 
fi
22503
 
 
22504
 
 
22505
 
for ac_func in getspnam
22506
 
do
22507
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22508
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
22509
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22510
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
22511
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22512
 
else
22513
 
  cat >conftest.$ac_ext <<_ACEOF
22514
 
/* confdefs.h.  */
22515
 
_ACEOF
22516
 
cat confdefs.h >>conftest.$ac_ext
22517
 
cat >>conftest.$ac_ext <<_ACEOF
22518
 
/* end confdefs.h.  */
22519
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22520
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22521
 
#define $ac_func innocuous_$ac_func
22522
 
 
22523
 
/* System header to define __stub macros and hopefully few prototypes,
22524
 
    which can conflict with char $ac_func (); below.
22525
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22526
 
    <limits.h> exists even on freestanding compilers.  */
22527
 
 
22528
 
#ifdef __STDC__
22529
 
# include <limits.h>
22530
 
#else
22531
 
# include <assert.h>
22532
 
#endif
22533
 
 
22534
 
#undef $ac_func
22535
 
 
22536
 
/* Override any gcc2 internal prototype to avoid an error.  */
22537
 
#ifdef __cplusplus
22538
 
extern "C"
22539
 
{
22540
 
#endif
22541
 
/* We use char because int might match the return type of a gcc2
22542
 
   builtin and then its argument prototype would still apply.  */
22543
 
char $ac_func ();
22544
 
/* The GNU C library defines this for functions which it implements
22545
 
    to always fail with ENOSYS.  Some functions are actually named
22546
 
    something starting with __ and the normal name is an alias.  */
22547
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22548
 
choke me
22549
 
#else
22550
 
char (*f) () = $ac_func;
22551
 
#endif
22552
 
#ifdef __cplusplus
22553
 
}
22554
 
#endif
22555
 
 
22556
 
int
22557
 
main ()
22558
 
{
22559
 
return f != $ac_func;
22560
 
  ;
22561
 
  return 0;
22562
 
}
22563
 
_ACEOF
22564
 
rm -f conftest.$ac_objext conftest$ac_exeext
22565
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22566
 
  (eval $ac_link) 2>conftest.er1
22567
 
  ac_status=$?
22568
 
  grep -v '^ *+' conftest.er1 >conftest.err
22569
 
  rm -f conftest.er1
22570
 
  cat conftest.err >&5
22571
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572
 
  (exit $ac_status); } &&
22573
 
         { ac_try='test -z "$ac_c_werror_flag"
22574
 
                         || test ! -s conftest.err'
22575
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576
 
  (eval $ac_try) 2>&5
22577
 
  ac_status=$?
22578
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579
 
  (exit $ac_status); }; } &&
22580
 
         { ac_try='test -s conftest$ac_exeext'
22581
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22582
 
  (eval $ac_try) 2>&5
22583
 
  ac_status=$?
22584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585
 
  (exit $ac_status); }; }; then
22586
 
  eval "$as_ac_var=yes"
22587
 
else
22588
 
  echo "$as_me: failed program was:" >&5
22589
 
sed 's/^/| /' conftest.$ac_ext >&5
22590
 
 
22591
 
eval "$as_ac_var=no"
22592
 
fi
22593
 
rm -f conftest.err conftest.$ac_objext \
22594
 
      conftest$ac_exeext conftest.$ac_ext
22595
 
fi
22596
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22597
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22598
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
22599
 
  cat >>confdefs.h <<_ACEOF
22600
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22601
 
_ACEOF
22602
 
 
22603
 
fi
22604
 
done
22605
 
 
22606
 
          ;;
 
23480
 
 
23481
                LIBS="-lsec $LIBS"
 
23482
 
 
23483
 
 
23484
cat >>confdefs.h <<\_ACEOF
 
23485
#define HAVE_GETSPNAM 1
 
23486
_ACEOF
 
23487
 
 
23488
 
 
23489
 
 
23490
else
 
23491
 
 
23492
 
 
23493
                        # getspnam was not found in libsec
 
23494
                        # nothing to do here by default
 
23495
                        true
 
23496
 
 
23497
 
 
23498
fi
 
23499
 
 
23500
          ;;
22607
23501
        esac
22608
23502
 
22609
23503
fi
22711
23605
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22712
23606
_ACEOF
22713
23607
 
22714
 
else
22715
 
   case "$LIBS" in
22716
 
          *-lsecurity*)
22717
 
for ac_func in bigcrypt
22718
 
do
22719
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22720
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
22721
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22722
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
22723
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22724
 
else
22725
 
  cat >conftest.$ac_ext <<_ACEOF
22726
 
/* confdefs.h.  */
22727
 
_ACEOF
22728
 
cat confdefs.h >>conftest.$ac_ext
22729
 
cat >>conftest.$ac_ext <<_ACEOF
22730
 
/* end confdefs.h.  */
22731
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22732
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22733
 
#define $ac_func innocuous_$ac_func
22734
 
 
22735
 
/* System header to define __stub macros and hopefully few prototypes,
22736
 
    which can conflict with char $ac_func (); below.
22737
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22738
 
    <limits.h> exists even on freestanding compilers.  */
22739
 
 
22740
 
#ifdef __STDC__
22741
 
# include <limits.h>
22742
 
#else
22743
 
# include <assert.h>
22744
 
#endif
22745
 
 
22746
 
#undef $ac_func
22747
 
 
22748
 
/* Override any gcc2 internal prototype to avoid an error.  */
22749
 
#ifdef __cplusplus
22750
 
extern "C"
22751
 
{
22752
 
#endif
22753
 
/* We use char because int might match the return type of a gcc2
22754
 
   builtin and then its argument prototype would still apply.  */
22755
 
char $ac_func ();
22756
 
/* The GNU C library defines this for functions which it implements
22757
 
    to always fail with ENOSYS.  Some functions are actually named
22758
 
    something starting with __ and the normal name is an alias.  */
22759
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22760
 
choke me
22761
 
#else
22762
 
char (*f) () = $ac_func;
22763
 
#endif
22764
 
#ifdef __cplusplus
22765
 
}
22766
 
#endif
22767
 
 
22768
 
int
22769
 
main ()
22770
 
{
22771
 
return f != $ac_func;
22772
 
  ;
22773
 
  return 0;
22774
 
}
22775
 
_ACEOF
22776
 
rm -f conftest.$ac_objext conftest$ac_exeext
22777
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22778
 
  (eval $ac_link) 2>conftest.er1
22779
 
  ac_status=$?
22780
 
  grep -v '^ *+' conftest.er1 >conftest.err
22781
 
  rm -f conftest.er1
22782
 
  cat conftest.err >&5
22783
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784
 
  (exit $ac_status); } &&
22785
 
         { ac_try='test -z "$ac_c_werror_flag"
22786
 
                         || test ! -s conftest.err'
22787
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788
 
  (eval $ac_try) 2>&5
22789
 
  ac_status=$?
22790
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791
 
  (exit $ac_status); }; } &&
22792
 
         { ac_try='test -s conftest$ac_exeext'
22793
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794
 
  (eval $ac_try) 2>&5
22795
 
  ac_status=$?
22796
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797
 
  (exit $ac_status); }; }; then
22798
 
  eval "$as_ac_var=yes"
22799
 
else
22800
 
  echo "$as_me: failed program was:" >&5
22801
 
sed 's/^/| /' conftest.$ac_ext >&5
22802
 
 
22803
 
eval "$as_ac_var=no"
22804
 
fi
22805
 
rm -f conftest.err conftest.$ac_objext \
22806
 
      conftest$ac_exeext conftest.$ac_ext
22807
 
fi
22808
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22809
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22810
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
22811
 
  cat >>confdefs.h <<_ACEOF
22812
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22813
 
_ACEOF
22814
 
 
22815
 
fi
22816
 
done
22817
 
 ;;
 
23608
        # bigcrypt was found in libc or existing $LIBS
 
23609
 
 
23610
 
 
23611
cat >>confdefs.h <<\_ACEOF
 
23612
#define HAVE_BIGCRYPT 1
 
23613
_ACEOF
 
23614
 
 
23615
 
 
23616
 
 
23617
else
 
23618
 
 
23619
        # bigcrypt was not found, try adding libsecurity
 
23620
        case " $LIBS " in
 
23621
          *\ -lsecurity\ *)
 
23622
 
 
23623
                    # bigcrypt was not found and we already had libsecurity
 
23624
                    # nothing to do here by default
 
23625
                    true
 
23626
 
 
23627
            ;;
22818
23628
          *)
22819
 
echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
 
23629
            # bigcrypt was not found, try adding libsecurity
 
23630
            echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
22820
23631
echo $ECHO_N "checking for bigcrypt in -lsecurity... $ECHO_C" >&6
22821
23632
if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
22822
23633
  echo $ECHO_N "(cached) $ECHO_C" >&6
22881
23692
echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
22882
23693
echo "${ECHO_T}$ac_cv_lib_security_bigcrypt" >&6
22883
23694
if test $ac_cv_lib_security_bigcrypt = yes; then
22884
 
  cat >>confdefs.h <<_ACEOF
22885
 
#define HAVE_LIBSECURITY 1
22886
 
_ACEOF
22887
 
 
22888
 
  LIBS="-lsecurity $LIBS"
22889
 
 
22890
 
fi
22891
 
 
22892
 
 
22893
 
for ac_func in bigcrypt
22894
 
do
22895
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22896
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
22897
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22898
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
22899
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22900
 
else
22901
 
  cat >conftest.$ac_ext <<_ACEOF
22902
 
/* confdefs.h.  */
22903
 
_ACEOF
22904
 
cat confdefs.h >>conftest.$ac_ext
22905
 
cat >>conftest.$ac_ext <<_ACEOF
22906
 
/* end confdefs.h.  */
22907
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22908
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22909
 
#define $ac_func innocuous_$ac_func
22910
 
 
22911
 
/* System header to define __stub macros and hopefully few prototypes,
22912
 
    which can conflict with char $ac_func (); below.
22913
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22914
 
    <limits.h> exists even on freestanding compilers.  */
22915
 
 
22916
 
#ifdef __STDC__
22917
 
# include <limits.h>
22918
 
#else
22919
 
# include <assert.h>
22920
 
#endif
22921
 
 
22922
 
#undef $ac_func
22923
 
 
22924
 
/* Override any gcc2 internal prototype to avoid an error.  */
22925
 
#ifdef __cplusplus
22926
 
extern "C"
22927
 
{
22928
 
#endif
22929
 
/* We use char because int might match the return type of a gcc2
22930
 
   builtin and then its argument prototype would still apply.  */
22931
 
char $ac_func ();
22932
 
/* The GNU C library defines this for functions which it implements
22933
 
    to always fail with ENOSYS.  Some functions are actually named
22934
 
    something starting with __ and the normal name is an alias.  */
22935
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22936
 
choke me
22937
 
#else
22938
 
char (*f) () = $ac_func;
22939
 
#endif
22940
 
#ifdef __cplusplus
22941
 
}
22942
 
#endif
22943
 
 
22944
 
int
22945
 
main ()
22946
 
{
22947
 
return f != $ac_func;
22948
 
  ;
22949
 
  return 0;
22950
 
}
22951
 
_ACEOF
22952
 
rm -f conftest.$ac_objext conftest$ac_exeext
22953
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22954
 
  (eval $ac_link) 2>conftest.er1
22955
 
  ac_status=$?
22956
 
  grep -v '^ *+' conftest.er1 >conftest.err
22957
 
  rm -f conftest.er1
22958
 
  cat conftest.err >&5
22959
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960
 
  (exit $ac_status); } &&
22961
 
         { ac_try='test -z "$ac_c_werror_flag"
22962
 
                         || test ! -s conftest.err'
22963
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964
 
  (eval $ac_try) 2>&5
22965
 
  ac_status=$?
22966
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967
 
  (exit $ac_status); }; } &&
22968
 
         { ac_try='test -s conftest$ac_exeext'
22969
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22970
 
  (eval $ac_try) 2>&5
22971
 
  ac_status=$?
22972
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973
 
  (exit $ac_status); }; }; then
22974
 
  eval "$as_ac_var=yes"
22975
 
else
22976
 
  echo "$as_me: failed program was:" >&5
22977
 
sed 's/^/| /' conftest.$ac_ext >&5
22978
 
 
22979
 
eval "$as_ac_var=no"
22980
 
fi
22981
 
rm -f conftest.err conftest.$ac_objext \
22982
 
      conftest$ac_exeext conftest.$ac_ext
22983
 
fi
22984
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22985
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22986
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
22987
 
  cat >>confdefs.h <<_ACEOF
22988
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22989
 
_ACEOF
22990
 
 
22991
 
fi
22992
 
done
22993
 
 
22994
 
          ;;
 
23695
 
 
23696
                LIBS="-lsecurity $LIBS"
 
23697
 
 
23698
 
 
23699
cat >>confdefs.h <<\_ACEOF
 
23700
#define HAVE_BIGCRYPT 1
 
23701
_ACEOF
 
23702
 
 
23703
 
 
23704
 
 
23705
else
 
23706
 
 
23707
 
 
23708
                        # bigcrypt was not found in libsecurity
 
23709
                        # nothing to do here by default
 
23710
                        true
 
23711
 
 
23712
 
 
23713
fi
 
23714
 
 
23715
          ;;
22995
23716
        esac
22996
23717
 
22997
23718
fi
23098
23819
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23099
23820
_ACEOF
23100
23821
 
23101
 
else
23102
 
   case "$LIBS" in
23103
 
          *-lsec*)
23104
 
for ac_func in bigcrypt
23105
 
do
23106
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23107
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23108
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23109
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
23110
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23111
 
else
23112
 
  cat >conftest.$ac_ext <<_ACEOF
23113
 
/* confdefs.h.  */
23114
 
_ACEOF
23115
 
cat confdefs.h >>conftest.$ac_ext
23116
 
cat >>conftest.$ac_ext <<_ACEOF
23117
 
/* end confdefs.h.  */
23118
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23119
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23120
 
#define $ac_func innocuous_$ac_func
23121
 
 
23122
 
/* System header to define __stub macros and hopefully few prototypes,
23123
 
    which can conflict with char $ac_func (); below.
23124
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23125
 
    <limits.h> exists even on freestanding compilers.  */
23126
 
 
23127
 
#ifdef __STDC__
23128
 
# include <limits.h>
23129
 
#else
23130
 
# include <assert.h>
23131
 
#endif
23132
 
 
23133
 
#undef $ac_func
23134
 
 
23135
 
/* Override any gcc2 internal prototype to avoid an error.  */
23136
 
#ifdef __cplusplus
23137
 
extern "C"
23138
 
{
23139
 
#endif
23140
 
/* We use char because int might match the return type of a gcc2
23141
 
   builtin and then its argument prototype would still apply.  */
23142
 
char $ac_func ();
23143
 
/* The GNU C library defines this for functions which it implements
23144
 
    to always fail with ENOSYS.  Some functions are actually named
23145
 
    something starting with __ and the normal name is an alias.  */
23146
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23147
 
choke me
23148
 
#else
23149
 
char (*f) () = $ac_func;
23150
 
#endif
23151
 
#ifdef __cplusplus
23152
 
}
23153
 
#endif
23154
 
 
23155
 
int
23156
 
main ()
23157
 
{
23158
 
return f != $ac_func;
23159
 
  ;
23160
 
  return 0;
23161
 
}
23162
 
_ACEOF
23163
 
rm -f conftest.$ac_objext conftest$ac_exeext
23164
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23165
 
  (eval $ac_link) 2>conftest.er1
23166
 
  ac_status=$?
23167
 
  grep -v '^ *+' conftest.er1 >conftest.err
23168
 
  rm -f conftest.er1
23169
 
  cat conftest.err >&5
23170
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171
 
  (exit $ac_status); } &&
23172
 
         { ac_try='test -z "$ac_c_werror_flag"
23173
 
                         || test ! -s conftest.err'
23174
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175
 
  (eval $ac_try) 2>&5
23176
 
  ac_status=$?
23177
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178
 
  (exit $ac_status); }; } &&
23179
 
         { ac_try='test -s conftest$ac_exeext'
23180
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181
 
  (eval $ac_try) 2>&5
23182
 
  ac_status=$?
23183
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184
 
  (exit $ac_status); }; }; then
23185
 
  eval "$as_ac_var=yes"
23186
 
else
23187
 
  echo "$as_me: failed program was:" >&5
23188
 
sed 's/^/| /' conftest.$ac_ext >&5
23189
 
 
23190
 
eval "$as_ac_var=no"
23191
 
fi
23192
 
rm -f conftest.err conftest.$ac_objext \
23193
 
      conftest$ac_exeext conftest.$ac_ext
23194
 
fi
23195
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23196
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23197
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
23198
 
  cat >>confdefs.h <<_ACEOF
23199
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23200
 
_ACEOF
23201
 
 
23202
 
fi
23203
 
done
23204
 
 ;;
 
23822
        # bigcrypt was found in libc or existing $LIBS
 
23823
 
 
23824
 
 
23825
cat >>confdefs.h <<\_ACEOF
 
23826
#define HAVE_BIGCRYPT 1
 
23827
_ACEOF
 
23828
 
 
23829
 
 
23830
 
 
23831
else
 
23832
 
 
23833
        # bigcrypt was not found, try adding libsec
 
23834
        case " $LIBS " in
 
23835
          *\ -lsec\ *)
 
23836
 
 
23837
                    # bigcrypt was not found and we already had libsec
 
23838
                    # nothing to do here by default
 
23839
                    true
 
23840
 
 
23841
            ;;
23205
23842
          *)
23206
 
echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
 
23843
            # bigcrypt was not found, try adding libsec
 
23844
            echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
23207
23845
echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
23208
23846
if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
23209
23847
  echo $ECHO_N "(cached) $ECHO_C" >&6
23268
23906
echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
23269
23907
echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
23270
23908
if test $ac_cv_lib_sec_bigcrypt = yes; then
23271
 
  cat >>confdefs.h <<_ACEOF
23272
 
#define HAVE_LIBSEC 1
23273
 
_ACEOF
23274
 
 
23275
 
  LIBS="-lsec $LIBS"
23276
 
 
23277
 
fi
23278
 
 
23279
 
 
23280
 
for ac_func in bigcrypt
23281
 
do
23282
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23283
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23284
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23285
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
23286
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23287
 
else
23288
 
  cat >conftest.$ac_ext <<_ACEOF
23289
 
/* confdefs.h.  */
23290
 
_ACEOF
23291
 
cat confdefs.h >>conftest.$ac_ext
23292
 
cat >>conftest.$ac_ext <<_ACEOF
23293
 
/* end confdefs.h.  */
23294
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23295
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23296
 
#define $ac_func innocuous_$ac_func
23297
 
 
23298
 
/* System header to define __stub macros and hopefully few prototypes,
23299
 
    which can conflict with char $ac_func (); below.
23300
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23301
 
    <limits.h> exists even on freestanding compilers.  */
23302
 
 
23303
 
#ifdef __STDC__
23304
 
# include <limits.h>
23305
 
#else
23306
 
# include <assert.h>
23307
 
#endif
23308
 
 
23309
 
#undef $ac_func
23310
 
 
23311
 
/* Override any gcc2 internal prototype to avoid an error.  */
23312
 
#ifdef __cplusplus
23313
 
extern "C"
23314
 
{
23315
 
#endif
23316
 
/* We use char because int might match the return type of a gcc2
23317
 
   builtin and then its argument prototype would still apply.  */
23318
 
char $ac_func ();
23319
 
/* The GNU C library defines this for functions which it implements
23320
 
    to always fail with ENOSYS.  Some functions are actually named
23321
 
    something starting with __ and the normal name is an alias.  */
23322
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23323
 
choke me
23324
 
#else
23325
 
char (*f) () = $ac_func;
23326
 
#endif
23327
 
#ifdef __cplusplus
23328
 
}
23329
 
#endif
23330
 
 
23331
 
int
23332
 
main ()
23333
 
{
23334
 
return f != $ac_func;
23335
 
  ;
23336
 
  return 0;
23337
 
}
23338
 
_ACEOF
23339
 
rm -f conftest.$ac_objext conftest$ac_exeext
23340
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23341
 
  (eval $ac_link) 2>conftest.er1
23342
 
  ac_status=$?
23343
 
  grep -v '^ *+' conftest.er1 >conftest.err
23344
 
  rm -f conftest.er1
23345
 
  cat conftest.err >&5
23346
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347
 
  (exit $ac_status); } &&
23348
 
         { ac_try='test -z "$ac_c_werror_flag"
23349
 
                         || test ! -s conftest.err'
23350
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23351
 
  (eval $ac_try) 2>&5
23352
 
  ac_status=$?
23353
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354
 
  (exit $ac_status); }; } &&
23355
 
         { ac_try='test -s conftest$ac_exeext'
23356
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23357
 
  (eval $ac_try) 2>&5
23358
 
  ac_status=$?
23359
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360
 
  (exit $ac_status); }; }; then
23361
 
  eval "$as_ac_var=yes"
23362
 
else
23363
 
  echo "$as_me: failed program was:" >&5
23364
 
sed 's/^/| /' conftest.$ac_ext >&5
23365
 
 
23366
 
eval "$as_ac_var=no"
23367
 
fi
23368
 
rm -f conftest.err conftest.$ac_objext \
23369
 
      conftest$ac_exeext conftest.$ac_ext
23370
 
fi
23371
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23372
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23373
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
23374
 
  cat >>confdefs.h <<_ACEOF
23375
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23376
 
_ACEOF
23377
 
 
23378
 
fi
23379
 
done
23380
 
 
23381
 
          ;;
 
23909
 
 
23910
                LIBS="-lsec $LIBS"
 
23911
 
 
23912
 
 
23913
cat >>confdefs.h <<\_ACEOF
 
23914
#define HAVE_BIGCRYPT 1
 
23915
_ACEOF
 
23916
 
 
23917
 
 
23918
 
 
23919
else
 
23920
 
 
23921
 
 
23922
                        # bigcrypt was not found in libsec
 
23923
                        # nothing to do here by default
 
23924
                        true
 
23925
 
 
23926
 
 
23927
fi
 
23928
 
 
23929
          ;;
23382
23930
        esac
23383
23931
 
23384
23932
fi
23486
24034
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23487
24035
_ACEOF
23488
24036
 
23489
 
else
23490
 
   case "$LIBS" in
23491
 
          *-lsecurity*)
23492
 
for ac_func in getprpwnam
23493
 
do
23494
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23495
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23496
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23497
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
23498
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23499
 
else
23500
 
  cat >conftest.$ac_ext <<_ACEOF
23501
 
/* confdefs.h.  */
23502
 
_ACEOF
23503
 
cat confdefs.h >>conftest.$ac_ext
23504
 
cat >>conftest.$ac_ext <<_ACEOF
23505
 
/* end confdefs.h.  */
23506
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23507
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23508
 
#define $ac_func innocuous_$ac_func
23509
 
 
23510
 
/* System header to define __stub macros and hopefully few prototypes,
23511
 
    which can conflict with char $ac_func (); below.
23512
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23513
 
    <limits.h> exists even on freestanding compilers.  */
23514
 
 
23515
 
#ifdef __STDC__
23516
 
# include <limits.h>
23517
 
#else
23518
 
# include <assert.h>
23519
 
#endif
23520
 
 
23521
 
#undef $ac_func
23522
 
 
23523
 
/* Override any gcc2 internal prototype to avoid an error.  */
23524
 
#ifdef __cplusplus
23525
 
extern "C"
23526
 
{
23527
 
#endif
23528
 
/* We use char because int might match the return type of a gcc2
23529
 
   builtin and then its argument prototype would still apply.  */
23530
 
char $ac_func ();
23531
 
/* The GNU C library defines this for functions which it implements
23532
 
    to always fail with ENOSYS.  Some functions are actually named
23533
 
    something starting with __ and the normal name is an alias.  */
23534
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23535
 
choke me
23536
 
#else
23537
 
char (*f) () = $ac_func;
23538
 
#endif
23539
 
#ifdef __cplusplus
23540
 
}
23541
 
#endif
23542
 
 
23543
 
int
23544
 
main ()
23545
 
{
23546
 
return f != $ac_func;
23547
 
  ;
23548
 
  return 0;
23549
 
}
23550
 
_ACEOF
23551
 
rm -f conftest.$ac_objext conftest$ac_exeext
23552
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23553
 
  (eval $ac_link) 2>conftest.er1
23554
 
  ac_status=$?
23555
 
  grep -v '^ *+' conftest.er1 >conftest.err
23556
 
  rm -f conftest.er1
23557
 
  cat conftest.err >&5
23558
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559
 
  (exit $ac_status); } &&
23560
 
         { ac_try='test -z "$ac_c_werror_flag"
23561
 
                         || test ! -s conftest.err'
23562
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563
 
  (eval $ac_try) 2>&5
23564
 
  ac_status=$?
23565
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566
 
  (exit $ac_status); }; } &&
23567
 
         { ac_try='test -s conftest$ac_exeext'
23568
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569
 
  (eval $ac_try) 2>&5
23570
 
  ac_status=$?
23571
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572
 
  (exit $ac_status); }; }; then
23573
 
  eval "$as_ac_var=yes"
23574
 
else
23575
 
  echo "$as_me: failed program was:" >&5
23576
 
sed 's/^/| /' conftest.$ac_ext >&5
23577
 
 
23578
 
eval "$as_ac_var=no"
23579
 
fi
23580
 
rm -f conftest.err conftest.$ac_objext \
23581
 
      conftest$ac_exeext conftest.$ac_ext
23582
 
fi
23583
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23584
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23585
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
23586
 
  cat >>confdefs.h <<_ACEOF
23587
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23588
 
_ACEOF
23589
 
 
23590
 
fi
23591
 
done
23592
 
 ;;
 
24037
        # getprpwnam was found in libc or existing $LIBS
 
24038
 
 
24039
 
 
24040
cat >>confdefs.h <<\_ACEOF
 
24041
#define HAVE_GETPRPWNAM 1
 
24042
_ACEOF
 
24043
 
 
24044
 
 
24045
 
 
24046
else
 
24047
 
 
24048
        # getprpwnam was not found, try adding libsecurity
 
24049
        case " $LIBS " in
 
24050
          *\ -lsecurity\ *)
 
24051
 
 
24052
                    # getprpwnam was not found and we already had libsecurity
 
24053
                    # nothing to do here by default
 
24054
                    true
 
24055
 
 
24056
            ;;
23593
24057
          *)
23594
 
echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
 
24058
            # getprpwnam was not found, try adding libsecurity
 
24059
            echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
23595
24060
echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
23596
24061
if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
23597
24062
  echo $ECHO_N "(cached) $ECHO_C" >&6
23656
24121
echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
23657
24122
echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
23658
24123
if test $ac_cv_lib_security_getprpwnam = yes; then
23659
 
  cat >>confdefs.h <<_ACEOF
23660
 
#define HAVE_LIBSECURITY 1
23661
 
_ACEOF
23662
 
 
23663
 
  LIBS="-lsecurity $LIBS"
23664
 
 
23665
 
fi
23666
 
 
23667
 
 
23668
 
for ac_func in getprpwnam
23669
 
do
23670
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23671
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23672
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23673
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
23674
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23675
 
else
23676
 
  cat >conftest.$ac_ext <<_ACEOF
23677
 
/* confdefs.h.  */
23678
 
_ACEOF
23679
 
cat confdefs.h >>conftest.$ac_ext
23680
 
cat >>conftest.$ac_ext <<_ACEOF
23681
 
/* end confdefs.h.  */
23682
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23683
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23684
 
#define $ac_func innocuous_$ac_func
23685
 
 
23686
 
/* System header to define __stub macros and hopefully few prototypes,
23687
 
    which can conflict with char $ac_func (); below.
23688
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23689
 
    <limits.h> exists even on freestanding compilers.  */
23690
 
 
23691
 
#ifdef __STDC__
23692
 
# include <limits.h>
23693
 
#else
23694
 
# include <assert.h>
23695
 
#endif
23696
 
 
23697
 
#undef $ac_func
23698
 
 
23699
 
/* Override any gcc2 internal prototype to avoid an error.  */
23700
 
#ifdef __cplusplus
23701
 
extern "C"
23702
 
{
23703
 
#endif
23704
 
/* We use char because int might match the return type of a gcc2
23705
 
   builtin and then its argument prototype would still apply.  */
23706
 
char $ac_func ();
23707
 
/* The GNU C library defines this for functions which it implements
23708
 
    to always fail with ENOSYS.  Some functions are actually named
23709
 
    something starting with __ and the normal name is an alias.  */
23710
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23711
 
choke me
23712
 
#else
23713
 
char (*f) () = $ac_func;
23714
 
#endif
23715
 
#ifdef __cplusplus
23716
 
}
23717
 
#endif
23718
 
 
23719
 
int
23720
 
main ()
23721
 
{
23722
 
return f != $ac_func;
23723
 
  ;
23724
 
  return 0;
23725
 
}
23726
 
_ACEOF
23727
 
rm -f conftest.$ac_objext conftest$ac_exeext
23728
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23729
 
  (eval $ac_link) 2>conftest.er1
23730
 
  ac_status=$?
23731
 
  grep -v '^ *+' conftest.er1 >conftest.err
23732
 
  rm -f conftest.er1
23733
 
  cat conftest.err >&5
23734
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735
 
  (exit $ac_status); } &&
23736
 
         { ac_try='test -z "$ac_c_werror_flag"
23737
 
                         || test ! -s conftest.err'
23738
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23739
 
  (eval $ac_try) 2>&5
23740
 
  ac_status=$?
23741
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742
 
  (exit $ac_status); }; } &&
23743
 
         { ac_try='test -s conftest$ac_exeext'
23744
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745
 
  (eval $ac_try) 2>&5
23746
 
  ac_status=$?
23747
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748
 
  (exit $ac_status); }; }; then
23749
 
  eval "$as_ac_var=yes"
23750
 
else
23751
 
  echo "$as_me: failed program was:" >&5
23752
 
sed 's/^/| /' conftest.$ac_ext >&5
23753
 
 
23754
 
eval "$as_ac_var=no"
23755
 
fi
23756
 
rm -f conftest.err conftest.$ac_objext \
23757
 
      conftest$ac_exeext conftest.$ac_ext
23758
 
fi
23759
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23760
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23761
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
23762
 
  cat >>confdefs.h <<_ACEOF
23763
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23764
 
_ACEOF
23765
 
 
23766
 
fi
23767
 
done
23768
 
 
23769
 
          ;;
 
24124
 
 
24125
                LIBS="-lsecurity $LIBS"
 
24126
 
 
24127
 
 
24128
cat >>confdefs.h <<\_ACEOF
 
24129
#define HAVE_GETPRPWNAM 1
 
24130
_ACEOF
 
24131
 
 
24132
 
 
24133
 
 
24134
else
 
24135
 
 
24136
 
 
24137
                        # getprpwnam was not found in libsecurity
 
24138
                        # nothing to do here by default
 
24139
                        true
 
24140
 
 
24141
 
 
24142
fi
 
24143
 
 
24144
          ;;
23770
24145
        esac
23771
24146
 
23772
24147
fi
23873
24248
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23874
24249
_ACEOF
23875
24250
 
23876
 
else
23877
 
   case "$LIBS" in
23878
 
          *-lsec*)
23879
 
for ac_func in getprpwnam
23880
 
do
23881
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23882
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23883
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23884
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
23885
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23886
 
else
23887
 
  cat >conftest.$ac_ext <<_ACEOF
23888
 
/* confdefs.h.  */
23889
 
_ACEOF
23890
 
cat confdefs.h >>conftest.$ac_ext
23891
 
cat >>conftest.$ac_ext <<_ACEOF
23892
 
/* end confdefs.h.  */
23893
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23894
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23895
 
#define $ac_func innocuous_$ac_func
23896
 
 
23897
 
/* System header to define __stub macros and hopefully few prototypes,
23898
 
    which can conflict with char $ac_func (); below.
23899
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23900
 
    <limits.h> exists even on freestanding compilers.  */
23901
 
 
23902
 
#ifdef __STDC__
23903
 
# include <limits.h>
23904
 
#else
23905
 
# include <assert.h>
23906
 
#endif
23907
 
 
23908
 
#undef $ac_func
23909
 
 
23910
 
/* Override any gcc2 internal prototype to avoid an error.  */
23911
 
#ifdef __cplusplus
23912
 
extern "C"
23913
 
{
23914
 
#endif
23915
 
/* We use char because int might match the return type of a gcc2
23916
 
   builtin and then its argument prototype would still apply.  */
23917
 
char $ac_func ();
23918
 
/* The GNU C library defines this for functions which it implements
23919
 
    to always fail with ENOSYS.  Some functions are actually named
23920
 
    something starting with __ and the normal name is an alias.  */
23921
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23922
 
choke me
23923
 
#else
23924
 
char (*f) () = $ac_func;
23925
 
#endif
23926
 
#ifdef __cplusplus
23927
 
}
23928
 
#endif
23929
 
 
23930
 
int
23931
 
main ()
23932
 
{
23933
 
return f != $ac_func;
23934
 
  ;
23935
 
  return 0;
23936
 
}
23937
 
_ACEOF
23938
 
rm -f conftest.$ac_objext conftest$ac_exeext
23939
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23940
 
  (eval $ac_link) 2>conftest.er1
23941
 
  ac_status=$?
23942
 
  grep -v '^ *+' conftest.er1 >conftest.err
23943
 
  rm -f conftest.er1
23944
 
  cat conftest.err >&5
23945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946
 
  (exit $ac_status); } &&
23947
 
         { ac_try='test -z "$ac_c_werror_flag"
23948
 
                         || test ! -s conftest.err'
23949
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23950
 
  (eval $ac_try) 2>&5
23951
 
  ac_status=$?
23952
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953
 
  (exit $ac_status); }; } &&
23954
 
         { ac_try='test -s conftest$ac_exeext'
23955
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23956
 
  (eval $ac_try) 2>&5
23957
 
  ac_status=$?
23958
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959
 
  (exit $ac_status); }; }; then
23960
 
  eval "$as_ac_var=yes"
23961
 
else
23962
 
  echo "$as_me: failed program was:" >&5
23963
 
sed 's/^/| /' conftest.$ac_ext >&5
23964
 
 
23965
 
eval "$as_ac_var=no"
23966
 
fi
23967
 
rm -f conftest.err conftest.$ac_objext \
23968
 
      conftest$ac_exeext conftest.$ac_ext
23969
 
fi
23970
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23971
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23972
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
23973
 
  cat >>confdefs.h <<_ACEOF
23974
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23975
 
_ACEOF
23976
 
 
23977
 
fi
23978
 
done
23979
 
 ;;
 
24251
        # getprpwnam was found in libc or existing $LIBS
 
24252
 
 
24253
 
 
24254
cat >>confdefs.h <<\_ACEOF
 
24255
#define HAVE_GETPRPWNAM 1
 
24256
_ACEOF
 
24257
 
 
24258
 
 
24259
 
 
24260
else
 
24261
 
 
24262
        # getprpwnam was not found, try adding libsec
 
24263
        case " $LIBS " in
 
24264
          *\ -lsec\ *)
 
24265
 
 
24266
                    # getprpwnam was not found and we already had libsec
 
24267
                    # nothing to do here by default
 
24268
                    true
 
24269
 
 
24270
            ;;
23980
24271
          *)
23981
 
echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
 
24272
            # getprpwnam was not found, try adding libsec
 
24273
            echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
23982
24274
echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
23983
24275
if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
23984
24276
  echo $ECHO_N "(cached) $ECHO_C" >&6
24043
24335
echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
24044
24336
echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
24045
24337
if test $ac_cv_lib_sec_getprpwnam = yes; then
24046
 
  cat >>confdefs.h <<_ACEOF
24047
 
#define HAVE_LIBSEC 1
 
24338
 
 
24339
                LIBS="-lsec $LIBS"
 
24340
 
 
24341
 
 
24342
cat >>confdefs.h <<\_ACEOF
 
24343
#define HAVE_GETPRPWNAM 1
24048
24344
_ACEOF
24049
24345
 
24050
 
  LIBS="-lsec $LIBS"
24051
 
 
24052
 
fi
24053
 
 
24054
 
 
24055
 
for ac_func in getprpwnam
 
24346
 
 
24347
 
 
24348
else
 
24349
 
 
24350
 
 
24351
                        # getprpwnam was not found in libsec
 
24352
                        # nothing to do here by default
 
24353
                        true
 
24354
 
 
24355
 
 
24356
fi
 
24357
 
 
24358
          ;;
 
24359
        esac
 
24360
 
 
24361
fi
 
24362
done
 
24363
 
 
24364
 
 
24365
 
 
24366
 
 
24367
for ac_func in strsignal
24056
24368
do
24057
24369
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24058
24370
echo "$as_me:$LINENO: checking for $ac_func" >&5
24153
24465
fi
24154
24466
done
24155
24467
 
24156
 
          ;;
24157
 
        esac
24158
 
 
24159
 
fi
24160
 
done
24161
 
 
24162
 
 
24163
24468
 
24164
24469
############################################
24165
24470
# Check if we have libattr
24841
25146
 
24842
25147
 
24843
25148
 
 
25149
 
 
25150
 
 
25151
for ac_func in getea fgetea lgetea listea flistea llistea
 
25152
do
 
25153
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
25154
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
25155
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
25156
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
25157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25158
else
 
25159
  cat >conftest.$ac_ext <<_ACEOF
 
25160
/* confdefs.h.  */
 
25161
_ACEOF
 
25162
cat confdefs.h >>conftest.$ac_ext
 
25163
cat >>conftest.$ac_ext <<_ACEOF
 
25164
/* end confdefs.h.  */
 
25165
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
25166
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
25167
#define $ac_func innocuous_$ac_func
 
25168
 
 
25169
/* System header to define __stub macros and hopefully few prototypes,
 
25170
    which can conflict with char $ac_func (); below.
 
25171
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
25172
    <limits.h> exists even on freestanding compilers.  */
 
25173
 
 
25174
#ifdef __STDC__
 
25175
# include <limits.h>
 
25176
#else
 
25177
# include <assert.h>
 
25178
#endif
 
25179
 
 
25180
#undef $ac_func
 
25181
 
 
25182
/* Override any gcc2 internal prototype to avoid an error.  */
 
25183
#ifdef __cplusplus
 
25184
extern "C"
 
25185
{
 
25186
#endif
 
25187
/* We use char because int might match the return type of a gcc2
 
25188
   builtin and then its argument prototype would still apply.  */
 
25189
char $ac_func ();
 
25190
/* The GNU C library defines this for functions which it implements
 
25191
    to always fail with ENOSYS.  Some functions are actually named
 
25192
    something starting with __ and the normal name is an alias.  */
 
25193
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
25194
choke me
 
25195
#else
 
25196
char (*f) () = $ac_func;
 
25197
#endif
 
25198
#ifdef __cplusplus
 
25199
}
 
25200
#endif
 
25201
 
 
25202
int
 
25203
main ()
 
25204
{
 
25205
return f != $ac_func;
 
25206
  ;
 
25207
  return 0;
 
25208
}
 
25209
_ACEOF
 
25210
rm -f conftest.$ac_objext conftest$ac_exeext
 
25211
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25212
  (eval $ac_link) 2>conftest.er1
 
25213
  ac_status=$?
 
25214
  grep -v '^ *+' conftest.er1 >conftest.err
 
25215
  rm -f conftest.er1
 
25216
  cat conftest.err >&5
 
25217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25218
  (exit $ac_status); } &&
 
25219
         { ac_try='test -z "$ac_c_werror_flag"
 
25220
                         || test ! -s conftest.err'
 
25221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25222
  (eval $ac_try) 2>&5
 
25223
  ac_status=$?
 
25224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25225
  (exit $ac_status); }; } &&
 
25226
         { ac_try='test -s conftest$ac_exeext'
 
25227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25228
  (eval $ac_try) 2>&5
 
25229
  ac_status=$?
 
25230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25231
  (exit $ac_status); }; }; then
 
25232
  eval "$as_ac_var=yes"
 
25233
else
 
25234
  echo "$as_me: failed program was:" >&5
 
25235
sed 's/^/| /' conftest.$ac_ext >&5
 
25236
 
 
25237
eval "$as_ac_var=no"
 
25238
fi
 
25239
rm -f conftest.err conftest.$ac_objext \
 
25240
      conftest$ac_exeext conftest.$ac_ext
 
25241
fi
 
25242
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
25243
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
25244
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
25245
  cat >>confdefs.h <<_ACEOF
 
25246
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
25247
_ACEOF
 
25248
 
 
25249
fi
 
25250
done
 
25251
 
 
25252
 
 
25253
 
 
25254
 
 
25255
 
 
25256
 
 
25257
 
 
25258
for ac_func in removeea fremoveea lremoveea setea fsetea lsetea
 
25259
do
 
25260
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
25261
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
25262
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
25263
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
25264
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25265
else
 
25266
  cat >conftest.$ac_ext <<_ACEOF
 
25267
/* confdefs.h.  */
 
25268
_ACEOF
 
25269
cat confdefs.h >>conftest.$ac_ext
 
25270
cat >>conftest.$ac_ext <<_ACEOF
 
25271
/* end confdefs.h.  */
 
25272
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
25273
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
25274
#define $ac_func innocuous_$ac_func
 
25275
 
 
25276
/* System header to define __stub macros and hopefully few prototypes,
 
25277
    which can conflict with char $ac_func (); below.
 
25278
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
25279
    <limits.h> exists even on freestanding compilers.  */
 
25280
 
 
25281
#ifdef __STDC__
 
25282
# include <limits.h>
 
25283
#else
 
25284
# include <assert.h>
 
25285
#endif
 
25286
 
 
25287
#undef $ac_func
 
25288
 
 
25289
/* Override any gcc2 internal prototype to avoid an error.  */
 
25290
#ifdef __cplusplus
 
25291
extern "C"
 
25292
{
 
25293
#endif
 
25294
/* We use char because int might match the return type of a gcc2
 
25295
   builtin and then its argument prototype would still apply.  */
 
25296
char $ac_func ();
 
25297
/* The GNU C library defines this for functions which it implements
 
25298
    to always fail with ENOSYS.  Some functions are actually named
 
25299
    something starting with __ and the normal name is an alias.  */
 
25300
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
25301
choke me
 
25302
#else
 
25303
char (*f) () = $ac_func;
 
25304
#endif
 
25305
#ifdef __cplusplus
 
25306
}
 
25307
#endif
 
25308
 
 
25309
int
 
25310
main ()
 
25311
{
 
25312
return f != $ac_func;
 
25313
  ;
 
25314
  return 0;
 
25315
}
 
25316
_ACEOF
 
25317
rm -f conftest.$ac_objext conftest$ac_exeext
 
25318
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25319
  (eval $ac_link) 2>conftest.er1
 
25320
  ac_status=$?
 
25321
  grep -v '^ *+' conftest.er1 >conftest.err
 
25322
  rm -f conftest.er1
 
25323
  cat conftest.err >&5
 
25324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25325
  (exit $ac_status); } &&
 
25326
         { ac_try='test -z "$ac_c_werror_flag"
 
25327
                         || test ! -s conftest.err'
 
25328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25329
  (eval $ac_try) 2>&5
 
25330
  ac_status=$?
 
25331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25332
  (exit $ac_status); }; } &&
 
25333
         { ac_try='test -s conftest$ac_exeext'
 
25334
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25335
  (eval $ac_try) 2>&5
 
25336
  ac_status=$?
 
25337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25338
  (exit $ac_status); }; }; then
 
25339
  eval "$as_ac_var=yes"
 
25340
else
 
25341
  echo "$as_me: failed program was:" >&5
 
25342
sed 's/^/| /' conftest.$ac_ext >&5
 
25343
 
 
25344
eval "$as_ac_var=no"
 
25345
fi
 
25346
rm -f conftest.err conftest.$ac_objext \
 
25347
      conftest$ac_exeext conftest.$ac_ext
 
25348
fi
 
25349
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
25350
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
25351
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
25352
  cat >>confdefs.h <<_ACEOF
 
25353
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
25354
_ACEOF
 
25355
 
 
25356
fi
 
25357
done
 
25358
 
 
25359
 
 
25360
 
 
25361
 
 
25362
 
24844
25363
for ac_func in flistxattr removexattr lremovexattr fremovexattr
24845
25364
do
24846
25365
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25695
26214
HOST_OS="$host_os"
25696
26215
LDSHFLAGS="-shared"
25697
26216
SONAMEFLAG="#"
25698
 
SONAMEVERSIONSUFFIX=""
25699
26217
SHLD="\${CC} \${CFLAGS}"
25700
26218
PICFLAGS=""
25701
26219
PICSUFFIX="po"
25725
26243
                        DYNEXP="-Wl,--export-dynamic"
25726
26244
                        PICFLAGS="-fPIC"
25727
26245
                        SONAMEFLAG="-Wl,-soname="
25728
 
                        SONAMEVERSIONSUFFIX=".2"
25729
26246
                        cat >>confdefs.h <<\_ACEOF
25730
26247
#define STAT_ST_BLOCKSIZE 512
25731
26248
_ACEOF
25741
26258
                        SONAMEFLAG="-h "
25742
26259
                        if test "${GCC}" = "yes"; then
25743
26260
                                PICFLAGS="-fPIC"
 
26261
                                SONAMEFLAG="-Wl,-soname="
25744
26262
                                if test "${ac_cv_prog_gnu_ld}" = "yes"; then
25745
26263
                                        DYNEXP="-Wl,-E"
25746
26264
                                fi
25848
26366
_ACEOF
25849
26367
 
25850
26368
                        BLDSHARED="true"
25851
 
                        LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry,-berok"
 
26369
                        LDSHFLAGS="-Wl,-G,-bexpall"
25852
26370
                        DYNEXP="-Wl,-brtl,-bexpall,-bbigtoc"
25853
26371
                        PICFLAGS="-O2"
 
26372
                        # as AIX code is always position independent...
 
26373
                        # .po will just create compile warnings, use .o:
 
26374
                        PICSUFFIX="o"
25854
26375
                        if test "${GCC}" != "yes"; then
25855
26376
                                ## for funky AIX compiler using strncpy()
25856
26377
                                CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
26174
26695
#define HAVE_LONGLONG 1
26175
26696
_ACEOF
26176
26697
 
 
26698
    echo "$as_me:$LINENO: checking for intptr_t" >&5
 
26699
echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
 
26700
if test "${ac_cv_type_intptr_t+set}" = set; then
 
26701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26702
else
 
26703
  cat >conftest.$ac_ext <<_ACEOF
 
26704
/* confdefs.h.  */
 
26705
_ACEOF
 
26706
cat confdefs.h >>conftest.$ac_ext
 
26707
cat >>conftest.$ac_ext <<_ACEOF
 
26708
/* end confdefs.h.  */
 
26709
$ac_includes_default
 
26710
int
 
26711
main ()
 
26712
{
 
26713
if ((intptr_t *) 0)
 
26714
  return 0;
 
26715
if (sizeof (intptr_t))
 
26716
  return 0;
 
26717
  ;
 
26718
  return 0;
 
26719
}
 
26720
_ACEOF
 
26721
rm -f conftest.$ac_objext
 
26722
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26723
  (eval $ac_compile) 2>conftest.er1
 
26724
  ac_status=$?
 
26725
  grep -v '^ *+' conftest.er1 >conftest.err
 
26726
  rm -f conftest.er1
 
26727
  cat conftest.err >&5
 
26728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26729
  (exit $ac_status); } &&
 
26730
         { ac_try='test -z "$ac_c_werror_flag"
 
26731
                         || test ! -s conftest.err'
 
26732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26733
  (eval $ac_try) 2>&5
 
26734
  ac_status=$?
 
26735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26736
  (exit $ac_status); }; } &&
 
26737
         { ac_try='test -s conftest.$ac_objext'
 
26738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26739
  (eval $ac_try) 2>&5
 
26740
  ac_status=$?
 
26741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26742
  (exit $ac_status); }; }; then
 
26743
  ac_cv_type_intptr_t=yes
 
26744
else
 
26745
  echo "$as_me: failed program was:" >&5
 
26746
sed 's/^/| /' conftest.$ac_ext >&5
 
26747
 
 
26748
ac_cv_type_intptr_t=no
 
26749
fi
 
26750
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26751
fi
 
26752
echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
 
26753
echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
 
26754
if test $ac_cv_type_intptr_t = yes; then
 
26755
  :
 
26756
else
 
26757
 
 
26758
cat >>confdefs.h <<_ACEOF
 
26759
#define intptr_t unsigned long long
 
26760
_ACEOF
 
26761
 
 
26762
fi
 
26763
 
 
26764
else
 
26765
    echo "$as_me:$LINENO: checking for intptr_t" >&5
 
26766
echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
 
26767
if test "${ac_cv_type_intptr_t+set}" = set; then
 
26768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26769
else
 
26770
  cat >conftest.$ac_ext <<_ACEOF
 
26771
/* confdefs.h.  */
 
26772
_ACEOF
 
26773
cat confdefs.h >>conftest.$ac_ext
 
26774
cat >>conftest.$ac_ext <<_ACEOF
 
26775
/* end confdefs.h.  */
 
26776
$ac_includes_default
 
26777
int
 
26778
main ()
 
26779
{
 
26780
if ((intptr_t *) 0)
 
26781
  return 0;
 
26782
if (sizeof (intptr_t))
 
26783
  return 0;
 
26784
  ;
 
26785
  return 0;
 
26786
}
 
26787
_ACEOF
 
26788
rm -f conftest.$ac_objext
 
26789
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26790
  (eval $ac_compile) 2>conftest.er1
 
26791
  ac_status=$?
 
26792
  grep -v '^ *+' conftest.er1 >conftest.err
 
26793
  rm -f conftest.er1
 
26794
  cat conftest.err >&5
 
26795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26796
  (exit $ac_status); } &&
 
26797
         { ac_try='test -z "$ac_c_werror_flag"
 
26798
                         || test ! -s conftest.err'
 
26799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26800
  (eval $ac_try) 2>&5
 
26801
  ac_status=$?
 
26802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26803
  (exit $ac_status); }; } &&
 
26804
         { ac_try='test -s conftest.$ac_objext'
 
26805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26806
  (eval $ac_try) 2>&5
 
26807
  ac_status=$?
 
26808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26809
  (exit $ac_status); }; }; then
 
26810
  ac_cv_type_intptr_t=yes
 
26811
else
 
26812
  echo "$as_me: failed program was:" >&5
 
26813
sed 's/^/| /' conftest.$ac_ext >&5
 
26814
 
 
26815
ac_cv_type_intptr_t=no
 
26816
fi
 
26817
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26818
fi
 
26819
echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
 
26820
echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
 
26821
if test $ac_cv_type_intptr_t = yes; then
 
26822
  :
 
26823
else
 
26824
 
 
26825
cat >>confdefs.h <<_ACEOF
 
26826
#define intptr_t unsigned long
 
26827
_ACEOF
 
26828
 
 
26829
fi
 
26830
 
26177
26831
fi
26178
26832
 
26179
26833
#
27168
27822
 
27169
27823
fi
27170
27824
 
 
27825
if test x"$samba_cv_WITH_PROFILE" = x"yes"; then
 
27826
 
 
27827
    # On some systems (eg. Linux) librt can pull in libpthread. We
 
27828
    # don't want this to happen because libpthreads changes signal delivery
 
27829
    # semantics in ways we are not prepared for. This breaks Linux oplocks
 
27830
    # which rely on signals.
 
27831
 
 
27832
 
 
27833
 
 
27834
for ac_func in clock_gettime
 
27835
do
 
27836
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
27837
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
27838
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
27839
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
27840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27841
else
 
27842
  cat >conftest.$ac_ext <<_ACEOF
 
27843
/* confdefs.h.  */
 
27844
_ACEOF
 
27845
cat confdefs.h >>conftest.$ac_ext
 
27846
cat >>conftest.$ac_ext <<_ACEOF
 
27847
/* end confdefs.h.  */
 
27848
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
27849
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
27850
#define $ac_func innocuous_$ac_func
 
27851
 
 
27852
/* System header to define __stub macros and hopefully few prototypes,
 
27853
    which can conflict with char $ac_func (); below.
 
27854
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
27855
    <limits.h> exists even on freestanding compilers.  */
 
27856
 
 
27857
#ifdef __STDC__
 
27858
# include <limits.h>
 
27859
#else
 
27860
# include <assert.h>
 
27861
#endif
 
27862
 
 
27863
#undef $ac_func
 
27864
 
 
27865
/* Override any gcc2 internal prototype to avoid an error.  */
 
27866
#ifdef __cplusplus
 
27867
extern "C"
 
27868
{
 
27869
#endif
 
27870
/* We use char because int might match the return type of a gcc2
 
27871
   builtin and then its argument prototype would still apply.  */
 
27872
char $ac_func ();
 
27873
/* The GNU C library defines this for functions which it implements
 
27874
    to always fail with ENOSYS.  Some functions are actually named
 
27875
    something starting with __ and the normal name is an alias.  */
 
27876
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
27877
choke me
 
27878
#else
 
27879
char (*f) () = $ac_func;
 
27880
#endif
 
27881
#ifdef __cplusplus
 
27882
}
 
27883
#endif
 
27884
 
 
27885
int
 
27886
main ()
 
27887
{
 
27888
return f != $ac_func;
 
27889
  ;
 
27890
  return 0;
 
27891
}
 
27892
_ACEOF
 
27893
rm -f conftest.$ac_objext conftest$ac_exeext
 
27894
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27895
  (eval $ac_link) 2>conftest.er1
 
27896
  ac_status=$?
 
27897
  grep -v '^ *+' conftest.er1 >conftest.err
 
27898
  rm -f conftest.er1
 
27899
  cat conftest.err >&5
 
27900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27901
  (exit $ac_status); } &&
 
27902
         { ac_try='test -z "$ac_c_werror_flag"
 
27903
                         || test ! -s conftest.err'
 
27904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27905
  (eval $ac_try) 2>&5
 
27906
  ac_status=$?
 
27907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27908
  (exit $ac_status); }; } &&
 
27909
         { ac_try='test -s conftest$ac_exeext'
 
27910
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27911
  (eval $ac_try) 2>&5
 
27912
  ac_status=$?
 
27913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27914
  (exit $ac_status); }; }; then
 
27915
  eval "$as_ac_var=yes"
 
27916
else
 
27917
  echo "$as_me: failed program was:" >&5
 
27918
sed 's/^/| /' conftest.$ac_ext >&5
 
27919
 
 
27920
eval "$as_ac_var=no"
 
27921
fi
 
27922
rm -f conftest.err conftest.$ac_objext \
 
27923
      conftest$ac_exeext conftest.$ac_ext
 
27924
fi
 
27925
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
27926
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
27927
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
27928
  cat >>confdefs.h <<_ACEOF
 
27929
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
27930
_ACEOF
 
27931
 
 
27932
        # clock_gettime was found in libc or existing $LIBS
 
27933
 
 
27934
 
 
27935
 
 
27936
    echo "$as_me:$LINENO: checking if libpthread is linked" >&5
 
27937
echo $ECHO_N "checking if libpthread is linked... $ECHO_C" >&6
 
27938
    cat >conftest.$ac_ext <<_ACEOF
 
27939
/* confdefs.h.  */
 
27940
_ACEOF
 
27941
cat confdefs.h >>conftest.$ac_ext
 
27942
cat >>conftest.$ac_ext <<_ACEOF
 
27943
/* end confdefs.h.  */
 
27944
 
 
27945
int
 
27946
main ()
 
27947
{
 
27948
return pthread_create(0, 0, 0, 0);
 
27949
  ;
 
27950
  return 0;
 
27951
}
 
27952
_ACEOF
 
27953
rm -f conftest.$ac_objext conftest$ac_exeext
 
27954
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27955
  (eval $ac_link) 2>conftest.er1
 
27956
  ac_status=$?
 
27957
  grep -v '^ *+' conftest.er1 >conftest.err
 
27958
  rm -f conftest.er1
 
27959
  cat conftest.err >&5
 
27960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27961
  (exit $ac_status); } &&
 
27962
         { ac_try='test -z "$ac_c_werror_flag"
 
27963
                         || test ! -s conftest.err'
 
27964
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27965
  (eval $ac_try) 2>&5
 
27966
  ac_status=$?
 
27967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27968
  (exit $ac_status); }; } &&
 
27969
         { ac_try='test -s conftest$ac_exeext'
 
27970
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27971
  (eval $ac_try) 2>&5
 
27972
  ac_status=$?
 
27973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27974
  (exit $ac_status); }; }; then
 
27975
 
 
27976
            echo "$as_me:$LINENO: result: yes" >&5
 
27977
echo "${ECHO_T}yes" >&6
 
27978
 
 
27979
    LIBS=`echo $LIBS | sed -es/-lrt//g`
 
27980
 
 
27981
 
 
27982
else
 
27983
  echo "$as_me: failed program was:" >&5
 
27984
sed 's/^/| /' conftest.$ac_ext >&5
 
27985
 
 
27986
 
 
27987
            echo "$as_me:$LINENO: result: no" >&5
 
27988
echo "${ECHO_T}no" >&6
 
27989
 
 
27990
 
 
27991
cat >>confdefs.h <<\_ACEOF
 
27992
#define HAVE_CLOCK_GETTIME 1
 
27993
_ACEOF
 
27994
 
 
27995
 
 
27996
    echo "$as_me:$LINENO: checking for CLOCK_MONOTONIC" >&5
 
27997
echo $ECHO_N "checking for CLOCK_MONOTONIC... $ECHO_C" >&6
 
27998
    cat >conftest.$ac_ext <<_ACEOF
 
27999
/* confdefs.h.  */
 
28000
_ACEOF
 
28001
cat confdefs.h >>conftest.$ac_ext
 
28002
cat >>conftest.$ac_ext <<_ACEOF
 
28003
/* end confdefs.h.  */
 
28004
 
 
28005
#if TIME_WITH_SYS_TIME
 
28006
# include <sys/time.h>
 
28007
# include <time.h>
 
28008
#else
 
28009
# if HAVE_SYS_TIME_H
 
28010
#  include <sys/time.h>
 
28011
# else
 
28012
#  include <time.h>
 
28013
# endif
 
28014
#endif
 
28015
 
 
28016
int
 
28017
main ()
 
28018
{
 
28019
 
 
28020
clockid_t clk = CLOCK_MONOTONIC;
 
28021
 
 
28022
  ;
 
28023
  return 0;
 
28024
}
 
28025
_ACEOF
 
28026
rm -f conftest.$ac_objext conftest$ac_exeext
 
28027
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28028
  (eval $ac_link) 2>conftest.er1
 
28029
  ac_status=$?
 
28030
  grep -v '^ *+' conftest.er1 >conftest.err
 
28031
  rm -f conftest.er1
 
28032
  cat conftest.err >&5
 
28033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28034
  (exit $ac_status); } &&
 
28035
         { ac_try='test -z "$ac_c_werror_flag"
 
28036
                         || test ! -s conftest.err'
 
28037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28038
  (eval $ac_try) 2>&5
 
28039
  ac_status=$?
 
28040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28041
  (exit $ac_status); }; } &&
 
28042
         { ac_try='test -s conftest$ac_exeext'
 
28043
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28044
  (eval $ac_try) 2>&5
 
28045
  ac_status=$?
 
28046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28047
  (exit $ac_status); }; }; then
 
28048
 
 
28049
        echo "$as_me:$LINENO: result: yes" >&5
 
28050
echo "${ECHO_T}yes" >&6
 
28051
 
 
28052
cat >>confdefs.h <<\_ACEOF
 
28053
#define HAVE_CLOCK_MONOTONIC 1
 
28054
_ACEOF
 
28055
 
 
28056
 
 
28057
else
 
28058
  echo "$as_me: failed program was:" >&5
 
28059
sed 's/^/| /' conftest.$ac_ext >&5
 
28060
 
 
28061
 
 
28062
        echo "$as_me:$LINENO: result: no" >&5
 
28063
echo "${ECHO_T}no" >&6
 
28064
 
 
28065
fi
 
28066
rm -f conftest.err conftest.$ac_objext \
 
28067
      conftest$ac_exeext conftest.$ac_ext
 
28068
 
 
28069
 
 
28070
    echo "$as_me:$LINENO: checking for CLOCK_PROCESS_CPUTIME_ID" >&5
 
28071
echo $ECHO_N "checking for CLOCK_PROCESS_CPUTIME_ID... $ECHO_C" >&6
 
28072
    cat >conftest.$ac_ext <<_ACEOF
 
28073
/* confdefs.h.  */
 
28074
_ACEOF
 
28075
cat confdefs.h >>conftest.$ac_ext
 
28076
cat >>conftest.$ac_ext <<_ACEOF
 
28077
/* end confdefs.h.  */
 
28078
 
 
28079
#if TIME_WITH_SYS_TIME
 
28080
# include <sys/time.h>
 
28081
# include <time.h>
 
28082
#else
 
28083
# if HAVE_SYS_TIME_H
 
28084
#  include <sys/time.h>
 
28085
# else
 
28086
#  include <time.h>
 
28087
# endif
 
28088
#endif
 
28089
 
 
28090
int
 
28091
main ()
 
28092
{
 
28093
 
 
28094
clockid_t clk = CLOCK_PROCESS_CPUTIME_ID;
 
28095
 
 
28096
  ;
 
28097
  return 0;
 
28098
}
 
28099
_ACEOF
 
28100
rm -f conftest.$ac_objext conftest$ac_exeext
 
28101
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28102
  (eval $ac_link) 2>conftest.er1
 
28103
  ac_status=$?
 
28104
  grep -v '^ *+' conftest.er1 >conftest.err
 
28105
  rm -f conftest.er1
 
28106
  cat conftest.err >&5
 
28107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28108
  (exit $ac_status); } &&
 
28109
         { ac_try='test -z "$ac_c_werror_flag"
 
28110
                         || test ! -s conftest.err'
 
28111
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28112
  (eval $ac_try) 2>&5
 
28113
  ac_status=$?
 
28114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28115
  (exit $ac_status); }; } &&
 
28116
         { ac_try='test -s conftest$ac_exeext'
 
28117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28118
  (eval $ac_try) 2>&5
 
28119
  ac_status=$?
 
28120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28121
  (exit $ac_status); }; }; then
 
28122
 
 
28123
        echo "$as_me:$LINENO: result: yes" >&5
 
28124
echo "${ECHO_T}yes" >&6
 
28125
 
 
28126
cat >>confdefs.h <<\_ACEOF
 
28127
#define HAVE_CLOCK_PROCESS_CPUTIME_ID 1
 
28128
_ACEOF
 
28129
 
 
28130
 
 
28131
else
 
28132
  echo "$as_me: failed program was:" >&5
 
28133
sed 's/^/| /' conftest.$ac_ext >&5
 
28134
 
 
28135
 
 
28136
        echo "$as_me:$LINENO: result: no" >&5
 
28137
echo "${ECHO_T}no" >&6
 
28138
 
 
28139
fi
 
28140
rm -f conftest.err conftest.$ac_objext \
 
28141
      conftest$ac_exeext conftest.$ac_ext
 
28142
 
 
28143
 
 
28144
    echo "$as_me:$LINENO: checking for CLOCK_REALTIME" >&5
 
28145
echo $ECHO_N "checking for CLOCK_REALTIME... $ECHO_C" >&6
 
28146
    cat >conftest.$ac_ext <<_ACEOF
 
28147
/* confdefs.h.  */
 
28148
_ACEOF
 
28149
cat confdefs.h >>conftest.$ac_ext
 
28150
cat >>conftest.$ac_ext <<_ACEOF
 
28151
/* end confdefs.h.  */
 
28152
 
 
28153
#if TIME_WITH_SYS_TIME
 
28154
# include <sys/time.h>
 
28155
# include <time.h>
 
28156
#else
 
28157
# if HAVE_SYS_TIME_H
 
28158
#  include <sys/time.h>
 
28159
# else
 
28160
#  include <time.h>
 
28161
# endif
 
28162
#endif
 
28163
 
 
28164
int
 
28165
main ()
 
28166
{
 
28167
 
 
28168
clockid_t clk = CLOCK_REALTIME;
 
28169
 
 
28170
  ;
 
28171
  return 0;
 
28172
}
 
28173
_ACEOF
 
28174
rm -f conftest.$ac_objext conftest$ac_exeext
 
28175
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28176
  (eval $ac_link) 2>conftest.er1
 
28177
  ac_status=$?
 
28178
  grep -v '^ *+' conftest.er1 >conftest.err
 
28179
  rm -f conftest.er1
 
28180
  cat conftest.err >&5
 
28181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28182
  (exit $ac_status); } &&
 
28183
         { ac_try='test -z "$ac_c_werror_flag"
 
28184
                         || test ! -s conftest.err'
 
28185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28186
  (eval $ac_try) 2>&5
 
28187
  ac_status=$?
 
28188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28189
  (exit $ac_status); }; } &&
 
28190
         { ac_try='test -s conftest$ac_exeext'
 
28191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28192
  (eval $ac_try) 2>&5
 
28193
  ac_status=$?
 
28194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28195
  (exit $ac_status); }; }; then
 
28196
 
 
28197
        echo "$as_me:$LINENO: result: yes" >&5
 
28198
echo "${ECHO_T}yes" >&6
 
28199
 
 
28200
cat >>confdefs.h <<\_ACEOF
 
28201
#define HAVE_CLOCK_REALTIME 1
 
28202
_ACEOF
 
28203
 
 
28204
 
 
28205
else
 
28206
  echo "$as_me: failed program was:" >&5
 
28207
sed 's/^/| /' conftest.$ac_ext >&5
 
28208
 
 
28209
 
 
28210
        echo "$as_me:$LINENO: result: no" >&5
 
28211
echo "${ECHO_T}no" >&6
 
28212
 
 
28213
fi
 
28214
rm -f conftest.err conftest.$ac_objext \
 
28215
      conftest$ac_exeext conftest.$ac_ext
 
28216
 
 
28217
 
 
28218
 
 
28219
fi
 
28220
rm -f conftest.err conftest.$ac_objext \
 
28221
      conftest$ac_exeext conftest.$ac_ext
 
28222
 
 
28223
 
 
28224
 
 
28225
 
 
28226
else
 
28227
 
 
28228
        # clock_gettime was not found, try adding librt
 
28229
        case " $LIBS " in
 
28230
          *\ -lrt\ *)
 
28231
 
 
28232
                    # clock_gettime was not found and we already had librt
 
28233
                    # nothing to do here by default
 
28234
                    true
 
28235
 
 
28236
            ;;
 
28237
          *)
 
28238
            # clock_gettime was not found, try adding librt
 
28239
            echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
 
28240
echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
 
28241
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
 
28242
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28243
else
 
28244
  ac_check_lib_save_LIBS=$LIBS
 
28245
LIBS="-lrt  $LIBS"
 
28246
cat >conftest.$ac_ext <<_ACEOF
 
28247
/* confdefs.h.  */
 
28248
_ACEOF
 
28249
cat confdefs.h >>conftest.$ac_ext
 
28250
cat >>conftest.$ac_ext <<_ACEOF
 
28251
/* end confdefs.h.  */
 
28252
 
 
28253
/* Override any gcc2 internal prototype to avoid an error.  */
 
28254
#ifdef __cplusplus
 
28255
extern "C"
 
28256
#endif
 
28257
/* We use char because int might match the return type of a gcc2
 
28258
   builtin and then its argument prototype would still apply.  */
 
28259
char clock_gettime ();
 
28260
int
 
28261
main ()
 
28262
{
 
28263
clock_gettime ();
 
28264
  ;
 
28265
  return 0;
 
28266
}
 
28267
_ACEOF
 
28268
rm -f conftest.$ac_objext conftest$ac_exeext
 
28269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28270
  (eval $ac_link) 2>conftest.er1
 
28271
  ac_status=$?
 
28272
  grep -v '^ *+' conftest.er1 >conftest.err
 
28273
  rm -f conftest.er1
 
28274
  cat conftest.err >&5
 
28275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28276
  (exit $ac_status); } &&
 
28277
         { ac_try='test -z "$ac_c_werror_flag"
 
28278
                         || test ! -s conftest.err'
 
28279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28280
  (eval $ac_try) 2>&5
 
28281
  ac_status=$?
 
28282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28283
  (exit $ac_status); }; } &&
 
28284
         { ac_try='test -s conftest$ac_exeext'
 
28285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28286
  (eval $ac_try) 2>&5
 
28287
  ac_status=$?
 
28288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28289
  (exit $ac_status); }; }; then
 
28290
  ac_cv_lib_rt_clock_gettime=yes
 
28291
else
 
28292
  echo "$as_me: failed program was:" >&5
 
28293
sed 's/^/| /' conftest.$ac_ext >&5
 
28294
 
 
28295
ac_cv_lib_rt_clock_gettime=no
 
28296
fi
 
28297
rm -f conftest.err conftest.$ac_objext \
 
28298
      conftest$ac_exeext conftest.$ac_ext
 
28299
LIBS=$ac_check_lib_save_LIBS
 
28300
fi
 
28301
echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
 
28302
echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
 
28303
if test $ac_cv_lib_rt_clock_gettime = yes; then
 
28304
 
 
28305
                LIBS="-lrt $LIBS"
 
28306
 
 
28307
 
 
28308
 
 
28309
    echo "$as_me:$LINENO: checking if libpthread is linked" >&5
 
28310
echo $ECHO_N "checking if libpthread is linked... $ECHO_C" >&6
 
28311
    cat >conftest.$ac_ext <<_ACEOF
 
28312
/* confdefs.h.  */
 
28313
_ACEOF
 
28314
cat confdefs.h >>conftest.$ac_ext
 
28315
cat >>conftest.$ac_ext <<_ACEOF
 
28316
/* end confdefs.h.  */
 
28317
 
 
28318
int
 
28319
main ()
 
28320
{
 
28321
return pthread_create(0, 0, 0, 0);
 
28322
  ;
 
28323
  return 0;
 
28324
}
 
28325
_ACEOF
 
28326
rm -f conftest.$ac_objext conftest$ac_exeext
 
28327
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28328
  (eval $ac_link) 2>conftest.er1
 
28329
  ac_status=$?
 
28330
  grep -v '^ *+' conftest.er1 >conftest.err
 
28331
  rm -f conftest.er1
 
28332
  cat conftest.err >&5
 
28333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28334
  (exit $ac_status); } &&
 
28335
         { ac_try='test -z "$ac_c_werror_flag"
 
28336
                         || test ! -s conftest.err'
 
28337
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28338
  (eval $ac_try) 2>&5
 
28339
  ac_status=$?
 
28340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28341
  (exit $ac_status); }; } &&
 
28342
         { ac_try='test -s conftest$ac_exeext'
 
28343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28344
  (eval $ac_try) 2>&5
 
28345
  ac_status=$?
 
28346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28347
  (exit $ac_status); }; }; then
 
28348
 
 
28349
            echo "$as_me:$LINENO: result: yes" >&5
 
28350
echo "${ECHO_T}yes" >&6
 
28351
 
 
28352
    LIBS=`echo $LIBS | sed -es/-lrt//g`
 
28353
 
 
28354
 
 
28355
else
 
28356
  echo "$as_me: failed program was:" >&5
 
28357
sed 's/^/| /' conftest.$ac_ext >&5
 
28358
 
 
28359
 
 
28360
            echo "$as_me:$LINENO: result: no" >&5
 
28361
echo "${ECHO_T}no" >&6
 
28362
 
 
28363
 
 
28364
cat >>confdefs.h <<\_ACEOF
 
28365
#define HAVE_CLOCK_GETTIME 1
 
28366
_ACEOF
 
28367
 
 
28368
 
 
28369
    echo "$as_me:$LINENO: checking for CLOCK_MONOTONIC" >&5
 
28370
echo $ECHO_N "checking for CLOCK_MONOTONIC... $ECHO_C" >&6
 
28371
    cat >conftest.$ac_ext <<_ACEOF
 
28372
/* confdefs.h.  */
 
28373
_ACEOF
 
28374
cat confdefs.h >>conftest.$ac_ext
 
28375
cat >>conftest.$ac_ext <<_ACEOF
 
28376
/* end confdefs.h.  */
 
28377
 
 
28378
#if TIME_WITH_SYS_TIME
 
28379
# include <sys/time.h>
 
28380
# include <time.h>
 
28381
#else
 
28382
# if HAVE_SYS_TIME_H
 
28383
#  include <sys/time.h>
 
28384
# else
 
28385
#  include <time.h>
 
28386
# endif
 
28387
#endif
 
28388
 
 
28389
int
 
28390
main ()
 
28391
{
 
28392
 
 
28393
clockid_t clk = CLOCK_MONOTONIC;
 
28394
 
 
28395
  ;
 
28396
  return 0;
 
28397
}
 
28398
_ACEOF
 
28399
rm -f conftest.$ac_objext conftest$ac_exeext
 
28400
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28401
  (eval $ac_link) 2>conftest.er1
 
28402
  ac_status=$?
 
28403
  grep -v '^ *+' conftest.er1 >conftest.err
 
28404
  rm -f conftest.er1
 
28405
  cat conftest.err >&5
 
28406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28407
  (exit $ac_status); } &&
 
28408
         { ac_try='test -z "$ac_c_werror_flag"
 
28409
                         || test ! -s conftest.err'
 
28410
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28411
  (eval $ac_try) 2>&5
 
28412
  ac_status=$?
 
28413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28414
  (exit $ac_status); }; } &&
 
28415
         { ac_try='test -s conftest$ac_exeext'
 
28416
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28417
  (eval $ac_try) 2>&5
 
28418
  ac_status=$?
 
28419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28420
  (exit $ac_status); }; }; then
 
28421
 
 
28422
        echo "$as_me:$LINENO: result: yes" >&5
 
28423
echo "${ECHO_T}yes" >&6
 
28424
 
 
28425
cat >>confdefs.h <<\_ACEOF
 
28426
#define HAVE_CLOCK_MONOTONIC 1
 
28427
_ACEOF
 
28428
 
 
28429
 
 
28430
else
 
28431
  echo "$as_me: failed program was:" >&5
 
28432
sed 's/^/| /' conftest.$ac_ext >&5
 
28433
 
 
28434
 
 
28435
        echo "$as_me:$LINENO: result: no" >&5
 
28436
echo "${ECHO_T}no" >&6
 
28437
 
 
28438
fi
 
28439
rm -f conftest.err conftest.$ac_objext \
 
28440
      conftest$ac_exeext conftest.$ac_ext
 
28441
 
 
28442
 
 
28443
    echo "$as_me:$LINENO: checking for CLOCK_PROCESS_CPUTIME_ID" >&5
 
28444
echo $ECHO_N "checking for CLOCK_PROCESS_CPUTIME_ID... $ECHO_C" >&6
 
28445
    cat >conftest.$ac_ext <<_ACEOF
 
28446
/* confdefs.h.  */
 
28447
_ACEOF
 
28448
cat confdefs.h >>conftest.$ac_ext
 
28449
cat >>conftest.$ac_ext <<_ACEOF
 
28450
/* end confdefs.h.  */
 
28451
 
 
28452
#if TIME_WITH_SYS_TIME
 
28453
# include <sys/time.h>
 
28454
# include <time.h>
 
28455
#else
 
28456
# if HAVE_SYS_TIME_H
 
28457
#  include <sys/time.h>
 
28458
# else
 
28459
#  include <time.h>
 
28460
# endif
 
28461
#endif
 
28462
 
 
28463
int
 
28464
main ()
 
28465
{
 
28466
 
 
28467
clockid_t clk = CLOCK_PROCESS_CPUTIME_ID;
 
28468
 
 
28469
  ;
 
28470
  return 0;
 
28471
}
 
28472
_ACEOF
 
28473
rm -f conftest.$ac_objext conftest$ac_exeext
 
28474
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28475
  (eval $ac_link) 2>conftest.er1
 
28476
  ac_status=$?
 
28477
  grep -v '^ *+' conftest.er1 >conftest.err
 
28478
  rm -f conftest.er1
 
28479
  cat conftest.err >&5
 
28480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28481
  (exit $ac_status); } &&
 
28482
         { ac_try='test -z "$ac_c_werror_flag"
 
28483
                         || test ! -s conftest.err'
 
28484
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28485
  (eval $ac_try) 2>&5
 
28486
  ac_status=$?
 
28487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28488
  (exit $ac_status); }; } &&
 
28489
         { ac_try='test -s conftest$ac_exeext'
 
28490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28491
  (eval $ac_try) 2>&5
 
28492
  ac_status=$?
 
28493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28494
  (exit $ac_status); }; }; then
 
28495
 
 
28496
        echo "$as_me:$LINENO: result: yes" >&5
 
28497
echo "${ECHO_T}yes" >&6
 
28498
 
 
28499
cat >>confdefs.h <<\_ACEOF
 
28500
#define HAVE_CLOCK_PROCESS_CPUTIME_ID 1
 
28501
_ACEOF
 
28502
 
 
28503
 
 
28504
else
 
28505
  echo "$as_me: failed program was:" >&5
 
28506
sed 's/^/| /' conftest.$ac_ext >&5
 
28507
 
 
28508
 
 
28509
        echo "$as_me:$LINENO: result: no" >&5
 
28510
echo "${ECHO_T}no" >&6
 
28511
 
 
28512
fi
 
28513
rm -f conftest.err conftest.$ac_objext \
 
28514
      conftest$ac_exeext conftest.$ac_ext
 
28515
 
 
28516
 
 
28517
    echo "$as_me:$LINENO: checking for CLOCK_REALTIME" >&5
 
28518
echo $ECHO_N "checking for CLOCK_REALTIME... $ECHO_C" >&6
 
28519
    cat >conftest.$ac_ext <<_ACEOF
 
28520
/* confdefs.h.  */
 
28521
_ACEOF
 
28522
cat confdefs.h >>conftest.$ac_ext
 
28523
cat >>conftest.$ac_ext <<_ACEOF
 
28524
/* end confdefs.h.  */
 
28525
 
 
28526
#if TIME_WITH_SYS_TIME
 
28527
# include <sys/time.h>
 
28528
# include <time.h>
 
28529
#else
 
28530
# if HAVE_SYS_TIME_H
 
28531
#  include <sys/time.h>
 
28532
# else
 
28533
#  include <time.h>
 
28534
# endif
 
28535
#endif
 
28536
 
 
28537
int
 
28538
main ()
 
28539
{
 
28540
 
 
28541
clockid_t clk = CLOCK_REALTIME;
 
28542
 
 
28543
  ;
 
28544
  return 0;
 
28545
}
 
28546
_ACEOF
 
28547
rm -f conftest.$ac_objext conftest$ac_exeext
 
28548
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28549
  (eval $ac_link) 2>conftest.er1
 
28550
  ac_status=$?
 
28551
  grep -v '^ *+' conftest.er1 >conftest.err
 
28552
  rm -f conftest.er1
 
28553
  cat conftest.err >&5
 
28554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28555
  (exit $ac_status); } &&
 
28556
         { ac_try='test -z "$ac_c_werror_flag"
 
28557
                         || test ! -s conftest.err'
 
28558
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28559
  (eval $ac_try) 2>&5
 
28560
  ac_status=$?
 
28561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28562
  (exit $ac_status); }; } &&
 
28563
         { ac_try='test -s conftest$ac_exeext'
 
28564
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28565
  (eval $ac_try) 2>&5
 
28566
  ac_status=$?
 
28567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28568
  (exit $ac_status); }; }; then
 
28569
 
 
28570
        echo "$as_me:$LINENO: result: yes" >&5
 
28571
echo "${ECHO_T}yes" >&6
 
28572
 
 
28573
cat >>confdefs.h <<\_ACEOF
 
28574
#define HAVE_CLOCK_REALTIME 1
 
28575
_ACEOF
 
28576
 
 
28577
 
 
28578
else
 
28579
  echo "$as_me: failed program was:" >&5
 
28580
sed 's/^/| /' conftest.$ac_ext >&5
 
28581
 
 
28582
 
 
28583
        echo "$as_me:$LINENO: result: no" >&5
 
28584
echo "${ECHO_T}no" >&6
 
28585
 
 
28586
fi
 
28587
rm -f conftest.err conftest.$ac_objext \
 
28588
      conftest$ac_exeext conftest.$ac_ext
 
28589
 
 
28590
 
 
28591
 
 
28592
fi
 
28593
rm -f conftest.err conftest.$ac_objext \
 
28594
      conftest$ac_exeext conftest.$ac_ext
 
28595
 
 
28596
 
 
28597
 
 
28598
 
 
28599
else
 
28600
 
 
28601
 
 
28602
                        # clock_gettime was not found in librt
 
28603
                        # nothing to do here by default
 
28604
                        true
 
28605
 
 
28606
 
 
28607
fi
 
28608
 
 
28609
          ;;
 
28610
        esac
 
28611
 
 
28612
fi
 
28613
done
 
28614
 
 
28615
 
 
28616
 
 
28617
fi
 
28618
 
27171
28619
echo "$as_me:$LINENO: checking for va_copy" >&5
27172
28620
echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
27173
28621
if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
27369
28817
 
27370
28818
fi
27371
28819
 
27372
 
echo "$as_me:$LINENO: checking for broken readdir" >&5
27373
 
echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
27374
 
if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
 
28820
echo "$as_me:$LINENO: checking for broken readdir name" >&5
 
28821
echo $ECHO_N "checking for broken readdir name... $ECHO_C" >&6
 
28822
if test "${samba_cv_HAVE_BROKEN_READDIR_NAME+set}" = set; then
27375
28823
  echo $ECHO_N "(cached) $ECHO_C" >&6
27376
28824
else
27377
28825
 
27378
28826
if test "$cross_compiling" = yes; then
27379
 
  samba_cv_HAVE_BROKEN_READDIR=cross
 
28827
  samba_cv_HAVE_BROKEN_READDIR_NAME=cross
27380
28828
else
27381
28829
  cat >conftest.$ac_ext <<_ACEOF
27382
28830
/* confdefs.h.  */
27401
28849
  ac_status=$?
27402
28850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403
28851
  (exit $ac_status); }; }; then
27404
 
  samba_cv_HAVE_BROKEN_READDIR=yes
 
28852
  samba_cv_HAVE_BROKEN_READDIR_NAME=yes
27405
28853
else
27406
28854
  echo "$as_me: program exited with status $ac_status" >&5
27407
28855
echo "$as_me: failed program was:" >&5
27408
28856
sed 's/^/| /' conftest.$ac_ext >&5
27409
28857
 
27410
28858
( exit $ac_status )
27411
 
samba_cv_HAVE_BROKEN_READDIR=no
 
28859
samba_cv_HAVE_BROKEN_READDIR_NAME=no
27412
28860
fi
27413
28861
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27414
28862
fi
27415
28863
fi
27416
 
echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
27417
 
echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
27418
 
if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
 
28864
echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR_NAME" >&5
 
28865
echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR_NAME" >&6
 
28866
if test x"$samba_cv_HAVE_BROKEN_READDIR_NAME" = x"yes"; then
27419
28867
 
27420
28868
cat >>confdefs.h <<\_ACEOF
27421
 
#define HAVE_BROKEN_READDIR 1
 
28869
#define HAVE_BROKEN_READDIR_NAME 1
27422
28870
_ACEOF
27423
28871
 
27424
28872
fi
29070
30518
 
29071
30519
fi
29072
30520
 
 
30521
#################################################
 
30522
# Check if FAM notifications are available. For FAM info, see
 
30523
#       http://oss.sgi.com/projects/fam/
 
30524
#       http://savannah.nongnu.org/projects/fam/
 
30525
 
 
30526
 
 
30527
for ac_header in fam.h
 
30528
do
 
30529
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
30530
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
30531
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
30532
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
30533
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
30534
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30535
fi
 
30536
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
30537
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
30538
else
 
30539
  # Is the header compilable?
 
30540
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
30541
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
30542
cat >conftest.$ac_ext <<_ACEOF
 
30543
/* confdefs.h.  */
 
30544
_ACEOF
 
30545
cat confdefs.h >>conftest.$ac_ext
 
30546
cat >>conftest.$ac_ext <<_ACEOF
 
30547
/* end confdefs.h.  */
 
30548
$ac_includes_default
 
30549
#include <$ac_header>
 
30550
_ACEOF
 
30551
rm -f conftest.$ac_objext
 
30552
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30553
  (eval $ac_compile) 2>conftest.er1
 
30554
  ac_status=$?
 
30555
  grep -v '^ *+' conftest.er1 >conftest.err
 
30556
  rm -f conftest.er1
 
30557
  cat conftest.err >&5
 
30558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30559
  (exit $ac_status); } &&
 
30560
         { ac_try='test -z "$ac_c_werror_flag"
 
30561
                         || test ! -s conftest.err'
 
30562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30563
  (eval $ac_try) 2>&5
 
30564
  ac_status=$?
 
30565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30566
  (exit $ac_status); }; } &&
 
30567
         { ac_try='test -s conftest.$ac_objext'
 
30568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30569
  (eval $ac_try) 2>&5
 
30570
  ac_status=$?
 
30571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30572
  (exit $ac_status); }; }; then
 
30573
  ac_header_compiler=yes
 
30574
else
 
30575
  echo "$as_me: failed program was:" >&5
 
30576
sed 's/^/| /' conftest.$ac_ext >&5
 
30577
 
 
30578
ac_header_compiler=no
 
30579
fi
 
30580
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30581
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
30582
echo "${ECHO_T}$ac_header_compiler" >&6
 
30583
 
 
30584
# Is the header present?
 
30585
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
30586
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
30587
cat >conftest.$ac_ext <<_ACEOF
 
30588
/* confdefs.h.  */
 
30589
_ACEOF
 
30590
cat confdefs.h >>conftest.$ac_ext
 
30591
cat >>conftest.$ac_ext <<_ACEOF
 
30592
/* end confdefs.h.  */
 
30593
#include <$ac_header>
 
30594
_ACEOF
 
30595
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
30596
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
30597
  ac_status=$?
 
30598
  grep -v '^ *+' conftest.er1 >conftest.err
 
30599
  rm -f conftest.er1
 
30600
  cat conftest.err >&5
 
30601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30602
  (exit $ac_status); } >/dev/null; then
 
30603
  if test -s conftest.err; then
 
30604
    ac_cpp_err=$ac_c_preproc_warn_flag
 
30605
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
30606
  else
 
30607
    ac_cpp_err=
 
30608
  fi
 
30609
else
 
30610
  ac_cpp_err=yes
 
30611
fi
 
30612
if test -z "$ac_cpp_err"; then
 
30613
  ac_header_preproc=yes
 
30614
else
 
30615
  echo "$as_me: failed program was:" >&5
 
30616
sed 's/^/| /' conftest.$ac_ext >&5
 
30617
 
 
30618
  ac_header_preproc=no
 
30619
fi
 
30620
rm -f conftest.err conftest.$ac_ext
 
30621
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
30622
echo "${ECHO_T}$ac_header_preproc" >&6
 
30623
 
 
30624
# So?  What about this header?
 
30625
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
30626
  yes:no: )
 
30627
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
30628
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
30629
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
30630
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
30631
    ac_header_preproc=yes
 
30632
    ;;
 
30633
  no:yes:* )
 
30634
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
30635
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
30636
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
30637
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
30638
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
30639
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
30640
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
30641
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
30642
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
30643
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
30644
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
30645
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
30646
    (
 
30647
      cat <<\_ASBOX
 
30648
## ------------------------------------------ ##
 
30649
## Report this to the AC_PACKAGE_NAME lists.  ##
 
30650
## ------------------------------------------ ##
 
30651
_ASBOX
 
30652
    ) |
 
30653
      sed "s/^/$as_me: WARNING:     /" >&2
 
30654
    ;;
 
30655
esac
 
30656
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
30657
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
30658
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
30659
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30660
else
 
30661
  eval "$as_ac_Header=\$ac_header_preproc"
 
30662
fi
 
30663
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
30664
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
30665
 
 
30666
fi
 
30667
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
30668
  cat >>confdefs.h <<_ACEOF
 
30669
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
30670
_ACEOF
 
30671
 samba_cv_HAVE_FAM_H=yes
 
30672
else
 
30673
  samba_cv_HAVE_FAM_H=no
 
30674
fi
 
30675
 
 
30676
done
 
30677
 
 
30678
if test x"$samba_cv_HAVE_FAM_H" = x"yes"; then
 
30679
    # On IRIX, libfam requires libC, but other FAM implementations might not
 
30680
    # need it.
 
30681
    echo "$as_me:$LINENO: checking for FAMOpen2 in -lfam" >&5
 
30682
echo $ECHO_N "checking for FAMOpen2 in -lfam... $ECHO_C" >&6
 
30683
if test "${ac_cv_lib_fam_FAMOpen2+set}" = set; then
 
30684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30685
else
 
30686
  ac_check_lib_save_LIBS=$LIBS
 
30687
LIBS="-lfam  $LIBS"
 
30688
cat >conftest.$ac_ext <<_ACEOF
 
30689
/* confdefs.h.  */
 
30690
_ACEOF
 
30691
cat confdefs.h >>conftest.$ac_ext
 
30692
cat >>conftest.$ac_ext <<_ACEOF
 
30693
/* end confdefs.h.  */
 
30694
 
 
30695
/* Override any gcc2 internal prototype to avoid an error.  */
 
30696
#ifdef __cplusplus
 
30697
extern "C"
 
30698
#endif
 
30699
/* We use char because int might match the return type of a gcc2
 
30700
   builtin and then its argument prototype would still apply.  */
 
30701
char FAMOpen2 ();
 
30702
int
 
30703
main ()
 
30704
{
 
30705
FAMOpen2 ();
 
30706
  ;
 
30707
  return 0;
 
30708
}
 
30709
_ACEOF
 
30710
rm -f conftest.$ac_objext conftest$ac_exeext
 
30711
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30712
  (eval $ac_link) 2>conftest.er1
 
30713
  ac_status=$?
 
30714
  grep -v '^ *+' conftest.er1 >conftest.err
 
30715
  rm -f conftest.er1
 
30716
  cat conftest.err >&5
 
30717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30718
  (exit $ac_status); } &&
 
30719
         { ac_try='test -z "$ac_c_werror_flag"
 
30720
                         || test ! -s conftest.err'
 
30721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30722
  (eval $ac_try) 2>&5
 
30723
  ac_status=$?
 
30724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30725
  (exit $ac_status); }; } &&
 
30726
         { ac_try='test -s conftest$ac_exeext'
 
30727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30728
  (eval $ac_try) 2>&5
 
30729
  ac_status=$?
 
30730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30731
  (exit $ac_status); }; }; then
 
30732
  ac_cv_lib_fam_FAMOpen2=yes
 
30733
else
 
30734
  echo "$as_me: failed program was:" >&5
 
30735
sed 's/^/| /' conftest.$ac_ext >&5
 
30736
 
 
30737
ac_cv_lib_fam_FAMOpen2=no
 
30738
fi
 
30739
rm -f conftest.err conftest.$ac_objext \
 
30740
      conftest$ac_exeext conftest.$ac_ext
 
30741
LIBS=$ac_check_lib_save_LIBS
 
30742
fi
 
30743
echo "$as_me:$LINENO: result: $ac_cv_lib_fam_FAMOpen2" >&5
 
30744
echo "${ECHO_T}$ac_cv_lib_fam_FAMOpen2" >&6
 
30745
if test $ac_cv_lib_fam_FAMOpen2 = yes; then
 
30746
  samba_cv_HAVE_LIBFAM=yes; samba_fam_libs="-lfam"
 
30747
else
 
30748
  samba_cv_HAVE_LIBFAM=no
 
30749
fi
 
30750
 
 
30751
 
 
30752
    if test x"$samba_cv_HAVE_LIBFAM" = x"no" ; then
 
30753
        samba_fam_xtra=-lC
 
30754
 
 
30755
 
 
30756
 
 
30757
ac_check_lib_ext_save_LIBS=$LIBS
 
30758
LIBS="-lfam $samba_fam_xtra  $LIBS"
 
30759
 
 
30760
 
 
30761
 
 
30762
 
 
30763
        echo "$as_me:$LINENO: checking for FAMOpen2 in -lfam" >&5
 
30764
echo $ECHO_N "checking for FAMOpen2 in -lfam... $ECHO_C" >&6
 
30765
if test "${ac_cv_lib_ext_fam_FAMOpen2+set}" = set; then
 
30766
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30767
else
 
30768
  cat >conftest.$ac_ext <<_ACEOF
 
30769
/* confdefs.h.  */
 
30770
_ACEOF
 
30771
cat confdefs.h >>conftest.$ac_ext
 
30772
cat >>conftest.$ac_ext <<_ACEOF
 
30773
/* end confdefs.h.  */
 
30774
 
 
30775
/* Override any gcc2 internal prototype to avoid an error.  */
 
30776
#ifdef __cplusplus
 
30777
extern "C"
 
30778
#endif
 
30779
/* We use char because int might match the return type of a gcc2
 
30780
   builtin and then its argument prototype would still apply.  */
 
30781
char FAMOpen2 ();
 
30782
int
 
30783
main ()
 
30784
{
 
30785
FAMOpen2 ();
 
30786
  ;
 
30787
  return 0;
 
30788
}
 
30789
_ACEOF
 
30790
rm -f conftest.$ac_objext conftest$ac_exeext
 
30791
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30792
  (eval $ac_link) 2>conftest.er1
 
30793
  ac_status=$?
 
30794
  grep -v '^ *+' conftest.er1 >conftest.err
 
30795
  rm -f conftest.er1
 
30796
  cat conftest.err >&5
 
30797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30798
  (exit $ac_status); } &&
 
30799
         { ac_try='test -z "$ac_c_werror_flag"
 
30800
                         || test ! -s conftest.err'
 
30801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30802
  (eval $ac_try) 2>&5
 
30803
  ac_status=$?
 
30804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30805
  (exit $ac_status); }; } &&
 
30806
         { ac_try='test -s conftest$ac_exeext'
 
30807
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30808
  (eval $ac_try) 2>&5
 
30809
  ac_status=$?
 
30810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30811
  (exit $ac_status); }; }; then
 
30812
  ac_cv_lib_ext_fam_FAMOpen2=yes;
 
30813
                  ac_cv_lib_ext_fam=yes
 
30814
else
 
30815
  echo "$as_me: failed program was:" >&5
 
30816
sed 's/^/| /' conftest.$ac_ext >&5
 
30817
 
 
30818
ac_cv_lib_ext_fam_FAMOpen2=no;
 
30819
                  ac_cv_lib_ext_fam=no
 
30820
fi
 
30821
rm -f conftest.err conftest.$ac_objext \
 
30822
      conftest$ac_exeext conftest.$ac_ext
 
30823
 
 
30824
fi
 
30825
echo "$as_me:$LINENO: result: $ac_cv_lib_ext_fam_FAMOpen2" >&5
 
30826
echo "${ECHO_T}$ac_cv_lib_ext_fam_FAMOpen2" >&6
 
30827
    if test $ac_cv_lib_ext_fam_FAMOpen2 = yes; then
 
30828
  cat >>confdefs.h <<_ACEOF
 
30829
#define HAVE_FAMOPEN2 1
 
30830
_ACEOF
 
30831
 
 
30832
fi
 
30833
 
 
30834
LIBS=$ac_check_lib_ext_save_LIBS
 
30835
 
 
30836
if test $ac_cv_lib_ext_fam = yes; then
 
30837
  samba_cv_HAVE_LIBFAM=yes; samba_fam_libs="-lfam -lC"
 
30838
 
 
30839
 
 
30840
else
 
30841
  samba_cv_HAVE_LIBFAM=no
 
30842
fi
 
30843
 
 
30844
        unset samba_fam_xtra
 
30845
    fi
 
30846
fi
 
30847
 
 
30848
if test x"$samba_cv_HAVE_LIBFAM" = x"yes" ; then
 
30849
 
 
30850
cat >>confdefs.h <<\_ACEOF
 
30851
#define HAVE_FAM_CHANGE_NOTIFY 1
 
30852
_ACEOF
 
30853
 
 
30854
    cat >conftest.$ac_ext <<_ACEOF
 
30855
/* confdefs.h.  */
 
30856
_ACEOF
 
30857
cat confdefs.h >>conftest.$ac_ext
 
30858
cat >>conftest.$ac_ext <<_ACEOF
 
30859
/* end confdefs.h.  */
 
30860
#include <fam.h>
 
30861
int
 
30862
main ()
 
30863
{
 
30864
FAMCodes code = FAMChanged;
 
30865
  ;
 
30866
  return 0;
 
30867
}
 
30868
_ACEOF
 
30869
rm -f conftest.$ac_objext
 
30870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30871
  (eval $ac_compile) 2>conftest.er1
 
30872
  ac_status=$?
 
30873
  grep -v '^ *+' conftest.er1 >conftest.err
 
30874
  rm -f conftest.er1
 
30875
  cat conftest.err >&5
 
30876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30877
  (exit $ac_status); } &&
 
30878
         { ac_try='test -z "$ac_c_werror_flag"
 
30879
                         || test ! -s conftest.err'
 
30880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30881
  (eval $ac_try) 2>&5
 
30882
  ac_status=$?
 
30883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30884
  (exit $ac_status); }; } &&
 
30885
         { ac_try='test -s conftest.$ac_objext'
 
30886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30887
  (eval $ac_try) 2>&5
 
30888
  ac_status=$?
 
30889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30890
  (exit $ac_status); }; }; then
 
30891
 
 
30892
cat >>confdefs.h <<\_ACEOF
 
30893
#define HAVE_FAM_H_FAMCODES_TYPEDEF 1
 
30894
_ACEOF
 
30895
 
 
30896
else
 
30897
  echo "$as_me: failed program was:" >&5
 
30898
sed 's/^/| /' conftest.$ac_ext >&5
 
30899
 
 
30900
fi
 
30901
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30902
fi
 
30903
 
 
30904
#################################################
 
30905
# Check for DMAPI interfaces in libdm/libjfsdm/libxsdm
 
30906
 
 
30907
 
 
30908
    samba_dmapi_libs=""
 
30909
 
 
30910
    if test x"$samba_dmapi_libs" = x"" ; then
 
30911
        echo "$as_me:$LINENO: checking for dm_get_eventlist in -ldm" >&5
 
30912
echo $ECHO_N "checking for dm_get_eventlist in -ldm... $ECHO_C" >&6
 
30913
if test "${ac_cv_lib_dm_dm_get_eventlist+set}" = set; then
 
30914
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30915
else
 
30916
  ac_check_lib_save_LIBS=$LIBS
 
30917
LIBS="-ldm  $LIBS"
 
30918
cat >conftest.$ac_ext <<_ACEOF
 
30919
/* confdefs.h.  */
 
30920
_ACEOF
 
30921
cat confdefs.h >>conftest.$ac_ext
 
30922
cat >>conftest.$ac_ext <<_ACEOF
 
30923
/* end confdefs.h.  */
 
30924
 
 
30925
/* Override any gcc2 internal prototype to avoid an error.  */
 
30926
#ifdef __cplusplus
 
30927
extern "C"
 
30928
#endif
 
30929
/* We use char because int might match the return type of a gcc2
 
30930
   builtin and then its argument prototype would still apply.  */
 
30931
char dm_get_eventlist ();
 
30932
int
 
30933
main ()
 
30934
{
 
30935
dm_get_eventlist ();
 
30936
  ;
 
30937
  return 0;
 
30938
}
 
30939
_ACEOF
 
30940
rm -f conftest.$ac_objext conftest$ac_exeext
 
30941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30942
  (eval $ac_link) 2>conftest.er1
 
30943
  ac_status=$?
 
30944
  grep -v '^ *+' conftest.er1 >conftest.err
 
30945
  rm -f conftest.er1
 
30946
  cat conftest.err >&5
 
30947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30948
  (exit $ac_status); } &&
 
30949
         { ac_try='test -z "$ac_c_werror_flag"
 
30950
                         || test ! -s conftest.err'
 
30951
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30952
  (eval $ac_try) 2>&5
 
30953
  ac_status=$?
 
30954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30955
  (exit $ac_status); }; } &&
 
30956
         { ac_try='test -s conftest$ac_exeext'
 
30957
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30958
  (eval $ac_try) 2>&5
 
30959
  ac_status=$?
 
30960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30961
  (exit $ac_status); }; }; then
 
30962
  ac_cv_lib_dm_dm_get_eventlist=yes
 
30963
else
 
30964
  echo "$as_me: failed program was:" >&5
 
30965
sed 's/^/| /' conftest.$ac_ext >&5
 
30966
 
 
30967
ac_cv_lib_dm_dm_get_eventlist=no
 
30968
fi
 
30969
rm -f conftest.err conftest.$ac_objext \
 
30970
      conftest$ac_exeext conftest.$ac_ext
 
30971
LIBS=$ac_check_lib_save_LIBS
 
30972
fi
 
30973
echo "$as_me:$LINENO: result: $ac_cv_lib_dm_dm_get_eventlist" >&5
 
30974
echo "${ECHO_T}$ac_cv_lib_dm_dm_get_eventlist" >&6
 
30975
if test $ac_cv_lib_dm_dm_get_eventlist = yes; then
 
30976
   samba_dmapi_libs="-ldm"
 
30977
fi
 
30978
 
 
30979
    fi
 
30980
 
 
30981
    if test x"$samba_dmapi_libs" = x"" ; then
 
30982
        echo "$as_me:$LINENO: checking for dm_get_eventlist in -ljfsdm" >&5
 
30983
echo $ECHO_N "checking for dm_get_eventlist in -ljfsdm... $ECHO_C" >&6
 
30984
if test "${ac_cv_lib_jfsdm_dm_get_eventlist+set}" = set; then
 
30985
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30986
else
 
30987
  ac_check_lib_save_LIBS=$LIBS
 
30988
LIBS="-ljfsdm  $LIBS"
 
30989
cat >conftest.$ac_ext <<_ACEOF
 
30990
/* confdefs.h.  */
 
30991
_ACEOF
 
30992
cat confdefs.h >>conftest.$ac_ext
 
30993
cat >>conftest.$ac_ext <<_ACEOF
 
30994
/* end confdefs.h.  */
 
30995
 
 
30996
/* Override any gcc2 internal prototype to avoid an error.  */
 
30997
#ifdef __cplusplus
 
30998
extern "C"
 
30999
#endif
 
31000
/* We use char because int might match the return type of a gcc2
 
31001
   builtin and then its argument prototype would still apply.  */
 
31002
char dm_get_eventlist ();
 
31003
int
 
31004
main ()
 
31005
{
 
31006
dm_get_eventlist ();
 
31007
  ;
 
31008
  return 0;
 
31009
}
 
31010
_ACEOF
 
31011
rm -f conftest.$ac_objext conftest$ac_exeext
 
31012
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31013
  (eval $ac_link) 2>conftest.er1
 
31014
  ac_status=$?
 
31015
  grep -v '^ *+' conftest.er1 >conftest.err
 
31016
  rm -f conftest.er1
 
31017
  cat conftest.err >&5
 
31018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31019
  (exit $ac_status); } &&
 
31020
         { ac_try='test -z "$ac_c_werror_flag"
 
31021
                         || test ! -s conftest.err'
 
31022
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31023
  (eval $ac_try) 2>&5
 
31024
  ac_status=$?
 
31025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31026
  (exit $ac_status); }; } &&
 
31027
         { ac_try='test -s conftest$ac_exeext'
 
31028
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31029
  (eval $ac_try) 2>&5
 
31030
  ac_status=$?
 
31031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31032
  (exit $ac_status); }; }; then
 
31033
  ac_cv_lib_jfsdm_dm_get_eventlist=yes
 
31034
else
 
31035
  echo "$as_me: failed program was:" >&5
 
31036
sed 's/^/| /' conftest.$ac_ext >&5
 
31037
 
 
31038
ac_cv_lib_jfsdm_dm_get_eventlist=no
 
31039
fi
 
31040
rm -f conftest.err conftest.$ac_objext \
 
31041
      conftest$ac_exeext conftest.$ac_ext
 
31042
LIBS=$ac_check_lib_save_LIBS
 
31043
fi
 
31044
echo "$as_me:$LINENO: result: $ac_cv_lib_jfsdm_dm_get_eventlist" >&5
 
31045
echo "${ECHO_T}$ac_cv_lib_jfsdm_dm_get_eventlist" >&6
 
31046
if test $ac_cv_lib_jfsdm_dm_get_eventlist = yes; then
 
31047
  samba_dmapi_libs="-ljfsdm"
 
31048
fi
 
31049
 
 
31050
    fi
 
31051
 
 
31052
    if test x"$samba_dmapi_libs" = x"" ; then
 
31053
        echo "$as_me:$LINENO: checking for dm_get_eventlist in -lxdsm" >&5
 
31054
echo $ECHO_N "checking for dm_get_eventlist in -lxdsm... $ECHO_C" >&6
 
31055
if test "${ac_cv_lib_xdsm_dm_get_eventlist+set}" = set; then
 
31056
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31057
else
 
31058
  ac_check_lib_save_LIBS=$LIBS
 
31059
LIBS="-lxdsm  $LIBS"
 
31060
cat >conftest.$ac_ext <<_ACEOF
 
31061
/* confdefs.h.  */
 
31062
_ACEOF
 
31063
cat confdefs.h >>conftest.$ac_ext
 
31064
cat >>conftest.$ac_ext <<_ACEOF
 
31065
/* end confdefs.h.  */
 
31066
 
 
31067
/* Override any gcc2 internal prototype to avoid an error.  */
 
31068
#ifdef __cplusplus
 
31069
extern "C"
 
31070
#endif
 
31071
/* We use char because int might match the return type of a gcc2
 
31072
   builtin and then its argument prototype would still apply.  */
 
31073
char dm_get_eventlist ();
 
31074
int
 
31075
main ()
 
31076
{
 
31077
dm_get_eventlist ();
 
31078
  ;
 
31079
  return 0;
 
31080
}
 
31081
_ACEOF
 
31082
rm -f conftest.$ac_objext conftest$ac_exeext
 
31083
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31084
  (eval $ac_link) 2>conftest.er1
 
31085
  ac_status=$?
 
31086
  grep -v '^ *+' conftest.er1 >conftest.err
 
31087
  rm -f conftest.er1
 
31088
  cat conftest.err >&5
 
31089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31090
  (exit $ac_status); } &&
 
31091
         { ac_try='test -z "$ac_c_werror_flag"
 
31092
                         || test ! -s conftest.err'
 
31093
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31094
  (eval $ac_try) 2>&5
 
31095
  ac_status=$?
 
31096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31097
  (exit $ac_status); }; } &&
 
31098
         { ac_try='test -s conftest$ac_exeext'
 
31099
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31100
  (eval $ac_try) 2>&5
 
31101
  ac_status=$?
 
31102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31103
  (exit $ac_status); }; }; then
 
31104
  ac_cv_lib_xdsm_dm_get_eventlist=yes
 
31105
else
 
31106
  echo "$as_me: failed program was:" >&5
 
31107
sed 's/^/| /' conftest.$ac_ext >&5
 
31108
 
 
31109
ac_cv_lib_xdsm_dm_get_eventlist=no
 
31110
fi
 
31111
rm -f conftest.err conftest.$ac_objext \
 
31112
      conftest$ac_exeext conftest.$ac_ext
 
31113
LIBS=$ac_check_lib_save_LIBS
 
31114
fi
 
31115
echo "$as_me:$LINENO: result: $ac_cv_lib_xdsm_dm_get_eventlist" >&5
 
31116
echo "${ECHO_T}$ac_cv_lib_xdsm_dm_get_eventlist" >&6
 
31117
if test $ac_cv_lib_xdsm_dm_get_eventlist = yes; then
 
31118
  samba_dmapi_libs="-lxdsm"
 
31119
fi
 
31120
 
 
31121
    fi
 
31122
 
 
31123
    # Only bother to test ehaders if we have a candidate DMAPI library
 
31124
    if test x"$samba_dmapi_libs" != x"" ; then
 
31125
 
 
31126
 
 
31127
 
 
31128
 
 
31129
for ac_header in sys/dmi.h xfs/dmapi.h sys/jfsdmapi.h sys/dmapi.h
 
31130
do
 
31131
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
31132
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
31133
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
31134
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
31135
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
31136
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31137
fi
 
31138
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
31139
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
31140
else
 
31141
  # Is the header compilable?
 
31142
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
31143
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
31144
cat >conftest.$ac_ext <<_ACEOF
 
31145
/* confdefs.h.  */
 
31146
_ACEOF
 
31147
cat confdefs.h >>conftest.$ac_ext
 
31148
cat >>conftest.$ac_ext <<_ACEOF
 
31149
/* end confdefs.h.  */
 
31150
$ac_includes_default
 
31151
#include <$ac_header>
 
31152
_ACEOF
 
31153
rm -f conftest.$ac_objext
 
31154
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31155
  (eval $ac_compile) 2>conftest.er1
 
31156
  ac_status=$?
 
31157
  grep -v '^ *+' conftest.er1 >conftest.err
 
31158
  rm -f conftest.er1
 
31159
  cat conftest.err >&5
 
31160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31161
  (exit $ac_status); } &&
 
31162
         { ac_try='test -z "$ac_c_werror_flag"
 
31163
                         || test ! -s conftest.err'
 
31164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31165
  (eval $ac_try) 2>&5
 
31166
  ac_status=$?
 
31167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31168
  (exit $ac_status); }; } &&
 
31169
         { ac_try='test -s conftest.$ac_objext'
 
31170
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31171
  (eval $ac_try) 2>&5
 
31172
  ac_status=$?
 
31173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31174
  (exit $ac_status); }; }; then
 
31175
  ac_header_compiler=yes
 
31176
else
 
31177
  echo "$as_me: failed program was:" >&5
 
31178
sed 's/^/| /' conftest.$ac_ext >&5
 
31179
 
 
31180
ac_header_compiler=no
 
31181
fi
 
31182
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31183
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
31184
echo "${ECHO_T}$ac_header_compiler" >&6
 
31185
 
 
31186
# Is the header present?
 
31187
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
31188
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
31189
cat >conftest.$ac_ext <<_ACEOF
 
31190
/* confdefs.h.  */
 
31191
_ACEOF
 
31192
cat confdefs.h >>conftest.$ac_ext
 
31193
cat >>conftest.$ac_ext <<_ACEOF
 
31194
/* end confdefs.h.  */
 
31195
#include <$ac_header>
 
31196
_ACEOF
 
31197
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
31198
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
31199
  ac_status=$?
 
31200
  grep -v '^ *+' conftest.er1 >conftest.err
 
31201
  rm -f conftest.er1
 
31202
  cat conftest.err >&5
 
31203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31204
  (exit $ac_status); } >/dev/null; then
 
31205
  if test -s conftest.err; then
 
31206
    ac_cpp_err=$ac_c_preproc_warn_flag
 
31207
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
31208
  else
 
31209
    ac_cpp_err=
 
31210
  fi
 
31211
else
 
31212
  ac_cpp_err=yes
 
31213
fi
 
31214
if test -z "$ac_cpp_err"; then
 
31215
  ac_header_preproc=yes
 
31216
else
 
31217
  echo "$as_me: failed program was:" >&5
 
31218
sed 's/^/| /' conftest.$ac_ext >&5
 
31219
 
 
31220
  ac_header_preproc=no
 
31221
fi
 
31222
rm -f conftest.err conftest.$ac_ext
 
31223
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
31224
echo "${ECHO_T}$ac_header_preproc" >&6
 
31225
 
 
31226
# So?  What about this header?
 
31227
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
31228
  yes:no: )
 
31229
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
31230
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
31231
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
31232
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
31233
    ac_header_preproc=yes
 
31234
    ;;
 
31235
  no:yes:* )
 
31236
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
31237
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
31238
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
31239
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
31240
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
31241
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
31242
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
31243
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
31244
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
31245
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
31246
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
31247
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
31248
    (
 
31249
      cat <<\_ASBOX
 
31250
## ------------------------------------------ ##
 
31251
## Report this to the AC_PACKAGE_NAME lists.  ##
 
31252
## ------------------------------------------ ##
 
31253
_ASBOX
 
31254
    ) |
 
31255
      sed "s/^/$as_me: WARNING:     /" >&2
 
31256
    ;;
 
31257
esac
 
31258
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
31259
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
31260
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
31261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31262
else
 
31263
  eval "$as_ac_Header=\$ac_header_preproc"
 
31264
fi
 
31265
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
31266
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
31267
 
 
31268
fi
 
31269
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
31270
  cat >>confdefs.h <<_ACEOF
 
31271
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
31272
_ACEOF
 
31273
 
 
31274
fi
 
31275
 
 
31276
done
 
31277
 
 
31278
    fi
 
31279
 
 
31280
    if test x"$samba_dmapi_libs" != x"" ; then
 
31281
        samba_dmapi_save_LIBS="$LIBS"
 
31282
        LIBS="$LIBS $samba_dmapi_libs"
 
31283
        cat >conftest.$ac_ext <<_ACEOF
 
31284
/* confdefs.h.  */
 
31285
_ACEOF
 
31286
cat confdefs.h >>conftest.$ac_ext
 
31287
cat >>conftest.$ac_ext <<_ACEOF
 
31288
/* end confdefs.h.  */
 
31289
 
 
31290
#include <time.h>      /* needed by Tru64 */
 
31291
#include <sys/types.h> /* needed by AIX */
 
31292
#ifdef HAVE_XFS_DMAPI_H
 
31293
#include <xfs/dmapi.h>
 
31294
#elif defined(HAVE_SYS_DMI_H)
 
31295
#include <sys/dmi.h>
 
31296
#elif defined(HAVE_SYS_JFSDMAPI_H)
 
31297
#include <sys/jfsdmapi.h>
 
31298
#elif defined(HAVE_SYS_DMAPI_H)
 
31299
#include <sys/dmapi.h>
 
31300
#endif
 
31301
 
 
31302
int
 
31303
main ()
 
31304
{
 
31305
 
 
31306
/* This link test is designed to fail on IRI 6.4, but should
 
31307
 * succeed on Linux, IRIX 6.5 and AIX.
 
31308
 */
 
31309
        char * version;
 
31310
        dm_eventset_t events;
 
31311
        /* This doesn't take an argument on IRIX 6.4. */
 
31312
        dm_init_service(&version);
 
31313
        /* IRIX 6.4 expects events to be a pointer. */
 
31314
        DMEV_ISSET(DM_EVENT_READ, events);
 
31315
 
 
31316
  ;
 
31317
  return 0;
 
31318
}
 
31319
_ACEOF
 
31320
rm -f conftest.$ac_objext conftest$ac_exeext
 
31321
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31322
  (eval $ac_link) 2>conftest.er1
 
31323
  ac_status=$?
 
31324
  grep -v '^ *+' conftest.er1 >conftest.err
 
31325
  rm -f conftest.er1
 
31326
  cat conftest.err >&5
 
31327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31328
  (exit $ac_status); } &&
 
31329
         { ac_try='test -z "$ac_c_werror_flag"
 
31330
                         || test ! -s conftest.err'
 
31331
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31332
  (eval $ac_try) 2>&5
 
31333
  ac_status=$?
 
31334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31335
  (exit $ac_status); }; } &&
 
31336
         { ac_try='test -s conftest$ac_exeext'
 
31337
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31338
  (eval $ac_try) 2>&5
 
31339
  ac_status=$?
 
31340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31341
  (exit $ac_status); }; }; then
 
31342
 
 
31343
                    true # DMAPI link test succeeded
 
31344
 
 
31345
else
 
31346
  echo "$as_me: failed program was:" >&5
 
31347
sed 's/^/| /' conftest.$ac_ext >&5
 
31348
 
 
31349
 
 
31350
                    # DMAPI link failure
 
31351
                    samba_dmapi_libs=
 
31352
 
 
31353
fi
 
31354
rm -f conftest.err conftest.$ac_objext \
 
31355
      conftest$ac_exeext conftest.$ac_ext
 
31356
        LIBS="$samba_dmapi_save_LIBS"
 
31357
    fi
 
31358
 
 
31359
    if test x"$samba_dmapi_libs" = x"" ; then
 
31360
        # DMAPI detection failure actions begin
 
31361
 
 
31362
                { echo "$as_me:$LINENO: DMAPI support not present" >&5
 
31363
echo "$as_me: DMAPI support not present" >&6;}
 
31364
 
 
31365
        # DMAPI detection failure actions end
 
31366
    else
 
31367
        # DMAPI detection success actions start
 
31368
 
 
31369
 
 
31370
cat >>confdefs.h <<\_ACEOF
 
31371
#define USE_DMAPI 1
 
31372
_ACEOF
 
31373
 
 
31374
                { echo "$as_me:$LINENO: Found DMAPI support in $samba_dmapi_libs" >&5
 
31375
echo "$as_me: Found DMAPI support in $samba_dmapi_libs" >&6;}
 
31376
 
 
31377
        # DMAPI detection success actions end
 
31378
    fi
 
31379
 
 
31380
 
 
31381
 
29073
31382
echo "$as_me:$LINENO: checking for kernel share modes" >&5
29074
31383
echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6
29075
31384
if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
29133
31442
fi
29134
31443
 
29135
31444
 
29136
 
 
29137
 
 
29138
31445
echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
29139
31446
echo $ECHO_N "checking for IRIX kernel oplock type definitions... $ECHO_C" >&6
29140
31447
if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
29198
31505
 
29199
31506
fi
29200
31507
 
29201
 
echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
29202
 
echo $ECHO_N "checking for irix specific capabilities... $ECHO_C" >&6
29203
 
if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
29204
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29205
 
else
29206
 
 
29207
 
if test "$cross_compiling" = yes; then
29208
 
  samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
29209
 
else
29210
 
  cat >conftest.$ac_ext <<_ACEOF
29211
 
/* confdefs.h.  */
29212
 
_ACEOF
29213
 
cat confdefs.h >>conftest.$ac_ext
29214
 
cat >>conftest.$ac_ext <<_ACEOF
29215
 
/* end confdefs.h.  */
 
31508
#################################################
 
31509
# Check for POSIX capability support
 
31510
 
 
31511
if test "${ac_cv_header_sys_capability_h+set}" = set; then
 
31512
  echo "$as_me:$LINENO: checking for sys/capability.h" >&5
 
31513
echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6
 
31514
if test "${ac_cv_header_sys_capability_h+set}" = set; then
 
31515
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31516
fi
 
31517
echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
 
31518
echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6
 
31519
else
 
31520
  # Is the header compilable?
 
31521
echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
 
31522
echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6
 
31523
cat >conftest.$ac_ext <<_ACEOF
 
31524
/* confdefs.h.  */
 
31525
_ACEOF
 
31526
cat confdefs.h >>conftest.$ac_ext
 
31527
cat >>conftest.$ac_ext <<_ACEOF
 
31528
/* end confdefs.h.  */
 
31529
$ac_includes_default
 
31530
#include <sys/capability.h>
 
31531
_ACEOF
 
31532
rm -f conftest.$ac_objext
 
31533
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31534
  (eval $ac_compile) 2>conftest.er1
 
31535
  ac_status=$?
 
31536
  grep -v '^ *+' conftest.er1 >conftest.err
 
31537
  rm -f conftest.er1
 
31538
  cat conftest.err >&5
 
31539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31540
  (exit $ac_status); } &&
 
31541
         { ac_try='test -z "$ac_c_werror_flag"
 
31542
                         || test ! -s conftest.err'
 
31543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31544
  (eval $ac_try) 2>&5
 
31545
  ac_status=$?
 
31546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31547
  (exit $ac_status); }; } &&
 
31548
         { ac_try='test -s conftest.$ac_objext'
 
31549
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31550
  (eval $ac_try) 2>&5
 
31551
  ac_status=$?
 
31552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31553
  (exit $ac_status); }; }; then
 
31554
  ac_header_compiler=yes
 
31555
else
 
31556
  echo "$as_me: failed program was:" >&5
 
31557
sed 's/^/| /' conftest.$ac_ext >&5
 
31558
 
 
31559
ac_header_compiler=no
 
31560
fi
 
31561
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31562
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
31563
echo "${ECHO_T}$ac_header_compiler" >&6
 
31564
 
 
31565
# Is the header present?
 
31566
echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
 
31567
echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6
 
31568
cat >conftest.$ac_ext <<_ACEOF
 
31569
/* confdefs.h.  */
 
31570
_ACEOF
 
31571
cat confdefs.h >>conftest.$ac_ext
 
31572
cat >>conftest.$ac_ext <<_ACEOF
 
31573
/* end confdefs.h.  */
 
31574
#include <sys/capability.h>
 
31575
_ACEOF
 
31576
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
31577
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
31578
  ac_status=$?
 
31579
  grep -v '^ *+' conftest.er1 >conftest.err
 
31580
  rm -f conftest.er1
 
31581
  cat conftest.err >&5
 
31582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31583
  (exit $ac_status); } >/dev/null; then
 
31584
  if test -s conftest.err; then
 
31585
    ac_cpp_err=$ac_c_preproc_warn_flag
 
31586
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
31587
  else
 
31588
    ac_cpp_err=
 
31589
  fi
 
31590
else
 
31591
  ac_cpp_err=yes
 
31592
fi
 
31593
if test -z "$ac_cpp_err"; then
 
31594
  ac_header_preproc=yes
 
31595
else
 
31596
  echo "$as_me: failed program was:" >&5
 
31597
sed 's/^/| /' conftest.$ac_ext >&5
 
31598
 
 
31599
  ac_header_preproc=no
 
31600
fi
 
31601
rm -f conftest.err conftest.$ac_ext
 
31602
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
31603
echo "${ECHO_T}$ac_header_preproc" >&6
 
31604
 
 
31605
# So?  What about this header?
 
31606
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
31607
  yes:no: )
 
31608
    { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
31609
echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
31610
    { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
 
31611
echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
 
31612
    ac_header_preproc=yes
 
31613
    ;;
 
31614
  no:yes:* )
 
31615
    { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
 
31616
echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
 
31617
    { echo "$as_me:$LINENO: WARNING: sys/capability.h:     check for missing prerequisite headers?" >&5
 
31618
echo "$as_me: WARNING: sys/capability.h:     check for missing prerequisite headers?" >&2;}
 
31619
    { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
 
31620
echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
 
31621
    { echo "$as_me:$LINENO: WARNING: sys/capability.h:     section \"Present But Cannot Be Compiled\"" >&5
 
31622
echo "$as_me: WARNING: sys/capability.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
31623
    { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
 
31624
echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
 
31625
    { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
 
31626
echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
 
31627
    (
 
31628
      cat <<\_ASBOX
 
31629
## ------------------------------------------ ##
 
31630
## Report this to the AC_PACKAGE_NAME lists.  ##
 
31631
## ------------------------------------------ ##
 
31632
_ASBOX
 
31633
    ) |
 
31634
      sed "s/^/$as_me: WARNING:     /" >&2
 
31635
    ;;
 
31636
esac
 
31637
echo "$as_me:$LINENO: checking for sys/capability.h" >&5
 
31638
echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6
 
31639
if test "${ac_cv_header_sys_capability_h+set}" = set; then
 
31640
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31641
else
 
31642
  ac_cv_header_sys_capability_h=$ac_header_preproc
 
31643
fi
 
31644
echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
 
31645
echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6
 
31646
 
 
31647
fi
 
31648
if test $ac_cv_header_sys_capability_h = yes; then
 
31649
  samba_cv_HAVE_SYS_CAPABILITY_H=yes;
 
31650
 
 
31651
cat >>confdefs.h <<\_ACEOF
 
31652
#define HAVE_SYS_CAPABILITY_H 1
 
31653
_ACEOF
 
31654
 
 
31655
fi
 
31656
 
 
31657
 
 
31658
 
 
31659
if test x"$samba_cv_HAVE_SYS_CAPABILITY_H" = x"yes"; then
 
31660
 
 
31661
    ac_save_LIBS=$LIBS
 
31662
 
 
31663
 
 
31664
for ac_func in cap_get_proc
 
31665
do
 
31666
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
31667
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
31668
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
31669
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
31670
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31671
else
 
31672
  cat >conftest.$ac_ext <<_ACEOF
 
31673
/* confdefs.h.  */
 
31674
_ACEOF
 
31675
cat confdefs.h >>conftest.$ac_ext
 
31676
cat >>conftest.$ac_ext <<_ACEOF
 
31677
/* end confdefs.h.  */
 
31678
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
31679
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
31680
#define $ac_func innocuous_$ac_func
 
31681
 
 
31682
/* System header to define __stub macros and hopefully few prototypes,
 
31683
    which can conflict with char $ac_func (); below.
 
31684
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
31685
    <limits.h> exists even on freestanding compilers.  */
 
31686
 
 
31687
#ifdef __STDC__
 
31688
# include <limits.h>
 
31689
#else
 
31690
# include <assert.h>
 
31691
#endif
 
31692
 
 
31693
#undef $ac_func
 
31694
 
 
31695
/* Override any gcc2 internal prototype to avoid an error.  */
 
31696
#ifdef __cplusplus
 
31697
extern "C"
 
31698
{
 
31699
#endif
 
31700
/* We use char because int might match the return type of a gcc2
 
31701
   builtin and then its argument prototype would still apply.  */
 
31702
char $ac_func ();
 
31703
/* The GNU C library defines this for functions which it implements
 
31704
    to always fail with ENOSYS.  Some functions are actually named
 
31705
    something starting with __ and the normal name is an alias.  */
 
31706
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
31707
choke me
 
31708
#else
 
31709
char (*f) () = $ac_func;
 
31710
#endif
 
31711
#ifdef __cplusplus
 
31712
}
 
31713
#endif
 
31714
 
 
31715
int
 
31716
main ()
 
31717
{
 
31718
return f != $ac_func;
 
31719
  ;
 
31720
  return 0;
 
31721
}
 
31722
_ACEOF
 
31723
rm -f conftest.$ac_objext conftest$ac_exeext
 
31724
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31725
  (eval $ac_link) 2>conftest.er1
 
31726
  ac_status=$?
 
31727
  grep -v '^ *+' conftest.er1 >conftest.err
 
31728
  rm -f conftest.er1
 
31729
  cat conftest.err >&5
 
31730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31731
  (exit $ac_status); } &&
 
31732
         { ac_try='test -z "$ac_c_werror_flag"
 
31733
                         || test ! -s conftest.err'
 
31734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31735
  (eval $ac_try) 2>&5
 
31736
  ac_status=$?
 
31737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31738
  (exit $ac_status); }; } &&
 
31739
         { ac_try='test -s conftest$ac_exeext'
 
31740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31741
  (eval $ac_try) 2>&5
 
31742
  ac_status=$?
 
31743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31744
  (exit $ac_status); }; }; then
 
31745
  eval "$as_ac_var=yes"
 
31746
else
 
31747
  echo "$as_me: failed program was:" >&5
 
31748
sed 's/^/| /' conftest.$ac_ext >&5
 
31749
 
 
31750
eval "$as_ac_var=no"
 
31751
fi
 
31752
rm -f conftest.err conftest.$ac_objext \
 
31753
      conftest$ac_exeext conftest.$ac_ext
 
31754
fi
 
31755
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
31756
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
31757
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
31758
  cat >>confdefs.h <<_ACEOF
 
31759
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
31760
_ACEOF
 
31761
 
 
31762
        # cap_get_proc was found in libc or existing $LIBS
 
31763
 
 
31764
 
 
31765
cat >>confdefs.h <<\_ACEOF
 
31766
#define HAVE_CAP_GET_PROC 1
 
31767
_ACEOF
 
31768
 
 
31769
 
 
31770
 
 
31771
else
 
31772
 
 
31773
        # cap_get_proc was not found, try adding libcap
 
31774
        case " $LIBS " in
 
31775
          *\ -lcap\ *)
 
31776
 
 
31777
                    # cap_get_proc was not found and we already had libcap
 
31778
                    # nothing to do here by default
 
31779
                    true
 
31780
 
 
31781
            ;;
 
31782
          *)
 
31783
            # cap_get_proc was not found, try adding libcap
 
31784
            echo "$as_me:$LINENO: checking for cap_get_proc in -lcap" >&5
 
31785
echo $ECHO_N "checking for cap_get_proc in -lcap... $ECHO_C" >&6
 
31786
if test "${ac_cv_lib_cap_cap_get_proc+set}" = set; then
 
31787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31788
else
 
31789
  ac_check_lib_save_LIBS=$LIBS
 
31790
LIBS="-lcap  $LIBS"
 
31791
cat >conftest.$ac_ext <<_ACEOF
 
31792
/* confdefs.h.  */
 
31793
_ACEOF
 
31794
cat confdefs.h >>conftest.$ac_ext
 
31795
cat >>conftest.$ac_ext <<_ACEOF
 
31796
/* end confdefs.h.  */
 
31797
 
 
31798
/* Override any gcc2 internal prototype to avoid an error.  */
 
31799
#ifdef __cplusplus
 
31800
extern "C"
 
31801
#endif
 
31802
/* We use char because int might match the return type of a gcc2
 
31803
   builtin and then its argument prototype would still apply.  */
 
31804
char cap_get_proc ();
 
31805
int
 
31806
main ()
 
31807
{
 
31808
cap_get_proc ();
 
31809
  ;
 
31810
  return 0;
 
31811
}
 
31812
_ACEOF
 
31813
rm -f conftest.$ac_objext conftest$ac_exeext
 
31814
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31815
  (eval $ac_link) 2>conftest.er1
 
31816
  ac_status=$?
 
31817
  grep -v '^ *+' conftest.er1 >conftest.err
 
31818
  rm -f conftest.er1
 
31819
  cat conftest.err >&5
 
31820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31821
  (exit $ac_status); } &&
 
31822
         { ac_try='test -z "$ac_c_werror_flag"
 
31823
                         || test ! -s conftest.err'
 
31824
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31825
  (eval $ac_try) 2>&5
 
31826
  ac_status=$?
 
31827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31828
  (exit $ac_status); }; } &&
 
31829
         { ac_try='test -s conftest$ac_exeext'
 
31830
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31831
  (eval $ac_try) 2>&5
 
31832
  ac_status=$?
 
31833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31834
  (exit $ac_status); }; }; then
 
31835
  ac_cv_lib_cap_cap_get_proc=yes
 
31836
else
 
31837
  echo "$as_me: failed program was:" >&5
 
31838
sed 's/^/| /' conftest.$ac_ext >&5
 
31839
 
 
31840
ac_cv_lib_cap_cap_get_proc=no
 
31841
fi
 
31842
rm -f conftest.err conftest.$ac_objext \
 
31843
      conftest$ac_exeext conftest.$ac_ext
 
31844
LIBS=$ac_check_lib_save_LIBS
 
31845
fi
 
31846
echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_get_proc" >&5
 
31847
echo "${ECHO_T}$ac_cv_lib_cap_cap_get_proc" >&6
 
31848
if test $ac_cv_lib_cap_cap_get_proc = yes; then
 
31849
 
 
31850
                LIBS="-lcap $LIBS"
 
31851
 
 
31852
 
 
31853
cat >>confdefs.h <<\_ACEOF
 
31854
#define HAVE_CAP_GET_PROC 1
 
31855
_ACEOF
 
31856
 
 
31857
 
 
31858
 
 
31859
else
 
31860
 
 
31861
 
 
31862
                        # cap_get_proc was not found in libcap
 
31863
                        # nothing to do here by default
 
31864
                        true
 
31865
 
 
31866
 
 
31867
fi
 
31868
 
 
31869
          ;;
 
31870
        esac
 
31871
 
 
31872
fi
 
31873
done
 
31874
 
 
31875
 
 
31876
 
 
31877
    echo "$as_me:$LINENO: checking for POSIX capabilities" >&5
 
31878
echo $ECHO_N "checking for POSIX capabilities... $ECHO_C" >&6
 
31879
if test "${samba_cv_HAVE_POSIX_CAPABILITIES+set}" = set; then
 
31880
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31881
else
 
31882
 
 
31883
                if test "$cross_compiling" = yes; then
 
31884
  samba_cv_HAVE_POSIX_CAPABILITIES=cross
 
31885
else
 
31886
  cat >conftest.$ac_ext <<_ACEOF
 
31887
/* confdefs.h.  */
 
31888
_ACEOF
 
31889
cat confdefs.h >>conftest.$ac_ext
 
31890
cat >>conftest.$ac_ext <<_ACEOF
 
31891
/* end confdefs.h.  */
 
31892
 
29216
31893
#include <sys/types.h>
29217
31894
#include <sys/capability.h>
29218
31895
main() {
29219
31896
 cap_t cap;
29220
 
 if ((cap = cap_get_proc()) == NULL)
 
31897
 cap_value_t vals[1];
 
31898
 if (!(cap = cap_get_proc()))
29221
31899
   exit(1);
29222
 
 cap->cap_effective |= CAP_NETWORK_MGT;
29223
 
 cap->cap_inheritable |= CAP_NETWORK_MGT;
 
31900
 vals[0] = CAP_CHOWN;
 
31901
 cap_set_flag(cap, CAP_INHERITABLE, 1, vals, CAP_CLEAR);
29224
31902
 cap_set_proc(cap);
29225
31903
 exit(0);
29226
31904
}
29227
 
 
29228
31905
_ACEOF
29229
31906
rm -f conftest$ac_exeext
29230
31907
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29237
31914
  ac_status=$?
29238
31915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239
31916
  (exit $ac_status); }; }; then
29240
 
  samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
 
31917
  samba_cv_HAVE_POSIX_CAPABILITIES=yes
29241
31918
else
29242
31919
  echo "$as_me: program exited with status $ac_status" >&5
29243
31920
echo "$as_me: failed program was:" >&5
29244
31921
sed 's/^/| /' conftest.$ac_ext >&5
29245
31922
 
29246
31923
( exit $ac_status )
29247
 
samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
 
31924
samba_cv_HAVE_POSIX_CAPABILITIES=no
29248
31925
fi
29249
31926
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29250
31927
fi
 
31928
 
29251
31929
fi
29252
 
echo "$as_me:$LINENO: result: $samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&5
29253
 
echo "${ECHO_T}$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&6
29254
 
if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
 
31930
echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_CAPABILITIES" >&5
 
31931
echo "${ECHO_T}$samba_cv_HAVE_POSIX_CAPABILITIES" >&6
 
31932
 
 
31933
if test x"$samba_cv_HAVE_POSIX_CAPABILITIES" = x"yes"; then
29255
31934
 
29256
31935
cat >>confdefs.h <<\_ACEOF
29257
 
#define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
 
31936
#define HAVE_POSIX_CAPABILITIES 1
29258
31937
_ACEOF
29259
31938
 
 
31939
else
 
31940
    LIBS=$ac_save_LIBS
 
31941
fi
 
31942
 
29260
31943
fi
29261
31944
 
29262
31945
#
29981
32664
 
29982
32665
fi
29983
32666
 
29984
 
echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
 
32667
echo "$as_me:$LINENO: checking for broken readdir" >&5
 
32668
echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
 
32669
if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
 
32670
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32671
else
 
32672
 
 
32673
        if test "$cross_compiling" = yes; then
 
32674
  samba_cv_HAVE_BROKEN_READDIR="assuming not"
 
32675
else
 
32676
  cat >conftest.$ac_ext <<_ACEOF
 
32677
/* confdefs.h.  */
 
32678
_ACEOF
 
32679
cat confdefs.h >>conftest.$ac_ext
 
32680
cat >>conftest.$ac_ext <<_ACEOF
 
32681
/* end confdefs.h.  */
 
32682
#include "${srcdir-.}/tests/os2_delete.c"
 
32683
_ACEOF
 
32684
rm -f conftest$ac_exeext
 
32685
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
32686
  (eval $ac_link) 2>&5
 
32687
  ac_status=$?
 
32688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32689
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
32690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32691
  (eval $ac_try) 2>&5
 
32692
  ac_status=$?
 
32693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32694
  (exit $ac_status); }; }; then
 
32695
  samba_cv_HAVE_BROKEN_READDIR=no
 
32696
else
 
32697
  echo "$as_me: program exited with status $ac_status" >&5
 
32698
echo "$as_me: failed program was:" >&5
 
32699
sed 's/^/| /' conftest.$ac_ext >&5
 
32700
 
 
32701
( exit $ac_status )
 
32702
samba_cv_HAVE_BROKEN_READDIR=yes
 
32703
fi
 
32704
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32705
fi
 
32706
fi
 
32707
echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
 
32708
echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
 
32709
 
 
32710
if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
 
32711
echo "$as_me:$LINENO: checking for replacing readdir" >&5
 
32712
echo $ECHO_N "checking for replacing readdir... $ECHO_C" >&6
 
32713
if test "${samba_cv_REPLACE_READDIR+set}" = set; then
 
32714
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32715
else
 
32716
 
 
32717
        if test "$cross_compiling" = yes; then
 
32718
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
32719
See \`config.log' for more details." >&5
 
32720
echo "$as_me: error: cannot run test program while cross compiling
 
32721
See \`config.log' for more details." >&2;}
 
32722
   { (exit 1); exit 1; }; }
 
32723
else
 
32724
  cat >conftest.$ac_ext <<_ACEOF
 
32725
/* confdefs.h.  */
 
32726
_ACEOF
 
32727
cat confdefs.h >>conftest.$ac_ext
 
32728
cat >>conftest.$ac_ext <<_ACEOF
 
32729
/* end confdefs.h.  */
 
32730
 
 
32731
#include "${srcdir-.}/lib/repdir.c"
 
32732
#include "${srcdir-.}/tests/os2_delete.c"
 
32733
_ACEOF
 
32734
rm -f conftest$ac_exeext
 
32735
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
32736
  (eval $ac_link) 2>&5
 
32737
  ac_status=$?
 
32738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32739
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
32740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32741
  (eval $ac_try) 2>&5
 
32742
  ac_status=$?
 
32743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32744
  (exit $ac_status); }; }; then
 
32745
  samba_cv_REPLACE_READDIR=yes
 
32746
else
 
32747
  echo "$as_me: program exited with status $ac_status" >&5
 
32748
echo "$as_me: failed program was:" >&5
 
32749
sed 's/^/| /' conftest.$ac_ext >&5
 
32750
 
 
32751
( exit $ac_status )
 
32752
samba_cv_REPLACE_READDIR=no
 
32753
fi
 
32754
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32755
fi
 
32756
fi
 
32757
echo "$as_me:$LINENO: result: $samba_cv_REPLACE_READDIR" >&5
 
32758
echo "${ECHO_T}$samba_cv_REPLACE_READDIR" >&6
 
32759
fi
 
32760
 
 
32761
if test x"$samba_cv_REPLACE_READDIR" = x"yes"; then
 
32762
 
 
32763
cat >>confdefs.h <<\_ACEOF
 
32764
#define REPLACE_READDIR 1
 
32765
_ACEOF
 
32766
 
 
32767
fi
 
32768
 
 
32769
 
 
32770
    echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
29985
32771
echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6
29986
32772
if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
29987
32773
  echo $ECHO_N "(cached) $ECHO_C" >&6
29988
32774
else
29989
32775
 
29990
 
if test "$cross_compiling" = yes; then
29991
 
  samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
29992
 
else
29993
 
  cat >conftest.$ac_ext <<_ACEOF
 
32776
            cat >conftest.$ac_ext <<_ACEOF
29994
32777
/* confdefs.h.  */
29995
32778
_ACEOF
29996
32779
cat confdefs.h >>conftest.$ac_ext
29997
32780
cat >>conftest.$ac_ext <<_ACEOF
29998
32781
/* end confdefs.h.  */
29999
32782
#include <unistd.h>
30000
 
main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
 
32783
int
 
32784
main ()
 
32785
{
 
32786
 return sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0;
 
32787
  ;
 
32788
  return 0;
 
32789
}
30001
32790
_ACEOF
30002
 
rm -f conftest$ac_exeext
 
32791
rm -f conftest.$ac_objext conftest$ac_exeext
30003
32792
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30004
 
  (eval $ac_link) 2>&5
30005
 
  ac_status=$?
30006
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
32793
  (eval $ac_link) 2>conftest.er1
 
32794
  ac_status=$?
 
32795
  grep -v '^ *+' conftest.er1 >conftest.err
 
32796
  rm -f conftest.er1
 
32797
  cat conftest.err >&5
 
32798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32799
  (exit $ac_status); } &&
 
32800
         { ac_try='test -z "$ac_c_werror_flag"
 
32801
                         || test ! -s conftest.err'
 
32802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32803
  (eval $ac_try) 2>&5
 
32804
  ac_status=$?
 
32805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32806
  (exit $ac_status); }; } &&
 
32807
         { ac_try='test -s conftest$ac_exeext'
30008
32808
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30009
32809
  (eval $ac_try) 2>&5
30010
32810
  ac_status=$?
30011
32811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012
32812
  (exit $ac_status); }; }; then
30013
 
  samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
 
32813
   samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
30014
32814
else
30015
 
  echo "$as_me: program exited with status $ac_status" >&5
30016
 
echo "$as_me: failed program was:" >&5
 
32815
  echo "$as_me: failed program was:" >&5
30017
32816
sed 's/^/| /' conftest.$ac_ext >&5
30018
32817
 
30019
 
( exit $ac_status )
30020
 
samba_cv_SYSCONF_SC_NGROUPS_MAX=no
30021
 
fi
30022
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30023
 
fi
 
32818
 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
 
32819
fi
 
32820
rm -f conftest.err conftest.$ac_objext \
 
32821
      conftest$ac_exeext conftest.$ac_ext
 
32822
 
30024
32823
fi
30025
32824
echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
30026
32825
echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6
30027
 
if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
 
32826
 
 
32827
    if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes" ; then
30028
32828
 
30029
32829
cat >>confdefs.h <<\_ACEOF
30030
32830
#define SYSCONF_SC_NGROUPS_MAX 1
30031
32831
_ACEOF
30032
32832
 
30033
 
fi
30034
 
 
30035
 
echo "$as_me:$LINENO: checking for sysconf(_SC_NPROC_ONLN)" >&5
 
32833
    fi
 
32834
 
 
32835
 
 
32836
    echo "$as_me:$LINENO: checking for sysconf(_SC_NPROC_ONLN)" >&5
30036
32837
echo $ECHO_N "checking for sysconf(_SC_NPROC_ONLN)... $ECHO_C" >&6
30037
32838
if test "${samba_cv_SYSCONF_SC_NPROC_ONLN+set}" = set; then
30038
32839
  echo $ECHO_N "(cached) $ECHO_C" >&6
30039
32840
else
30040
32841
 
30041
 
if test "$cross_compiling" = yes; then
30042
 
  samba_cv_SYSCONF_SC_NPROC_ONLN=cross
30043
 
else
30044
 
  cat >conftest.$ac_ext <<_ACEOF
 
32842
            cat >conftest.$ac_ext <<_ACEOF
30045
32843
/* confdefs.h.  */
30046
32844
_ACEOF
30047
32845
cat confdefs.h >>conftest.$ac_ext
30048
32846
cat >>conftest.$ac_ext <<_ACEOF
30049
32847
/* end confdefs.h.  */
30050
32848
#include <unistd.h>
30051
 
main() { exit(sysconf(_SC_NPROC_ONLN) == -1 ? 1 : 0); }
 
32849
int
 
32850
main ()
 
32851
{
 
32852
 return sysconf(_SC_NPROC_ONLN) == -1 ? 1 : 0;
 
32853
  ;
 
32854
  return 0;
 
32855
}
30052
32856
_ACEOF
30053
 
rm -f conftest$ac_exeext
 
32857
rm -f conftest.$ac_objext conftest$ac_exeext
30054
32858
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30055
 
  (eval $ac_link) 2>&5
30056
 
  ac_status=$?
30057
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
32859
  (eval $ac_link) 2>conftest.er1
 
32860
  ac_status=$?
 
32861
  grep -v '^ *+' conftest.er1 >conftest.err
 
32862
  rm -f conftest.er1
 
32863
  cat conftest.err >&5
 
32864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32865
  (exit $ac_status); } &&
 
32866
         { ac_try='test -z "$ac_c_werror_flag"
 
32867
                         || test ! -s conftest.err'
 
32868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32869
  (eval $ac_try) 2>&5
 
32870
  ac_status=$?
 
32871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32872
  (exit $ac_status); }; } &&
 
32873
         { ac_try='test -s conftest$ac_exeext'
30059
32874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30060
32875
  (eval $ac_try) 2>&5
30061
32876
  ac_status=$?
30062
32877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063
32878
  (exit $ac_status); }; }; then
30064
 
  samba_cv_SYSCONF_SC_NPROC_ONLN=yes
 
32879
   samba_cv_SYSCONF_SC_NPROC_ONLN=yes
30065
32880
else
30066
 
  echo "$as_me: program exited with status $ac_status" >&5
30067
 
echo "$as_me: failed program was:" >&5
 
32881
  echo "$as_me: failed program was:" >&5
30068
32882
sed 's/^/| /' conftest.$ac_ext >&5
30069
32883
 
30070
 
( exit $ac_status )
30071
 
samba_cv_SYSCONF_SC_NPROC_ONLN=no
30072
 
fi
30073
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30074
 
fi
 
32884
 samba_cv_SYSCONF_SC_NPROC_ONLN=no
 
32885
fi
 
32886
rm -f conftest.err conftest.$ac_objext \
 
32887
      conftest$ac_exeext conftest.$ac_ext
 
32888
 
30075
32889
fi
30076
32890
echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NPROC_ONLN" >&5
30077
32891
echo "${ECHO_T}$samba_cv_SYSCONF_SC_NPROC_ONLN" >&6
30078
 
if test x"$samba_cv_SYSCONF_SC_NPROC_ONLN" = x"yes"; then
 
32892
 
 
32893
    if test x"$samba_cv_SYSCONF_SC_NPROC_ONLN" = x"yes" ; then
30079
32894
 
30080
32895
cat >>confdefs.h <<\_ACEOF
30081
32896
#define SYSCONF_SC_NPROC_ONLN 1
30082
32897
_ACEOF
30083
32898
 
30084
 
fi
 
32899
    fi
 
32900
 
 
32901
 
 
32902
    echo "$as_me:$LINENO: checking for sysconf(_SC_NPROCESSORS_ONLN)" >&5
 
32903
echo $ECHO_N "checking for sysconf(_SC_NPROCESSORS_ONLN)... $ECHO_C" >&6
 
32904
if test "${samba_cv_SYSCONF_SC_NPROCESSORS_ONLN+set}" = set; then
 
32905
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32906
else
 
32907
 
 
32908
            cat >conftest.$ac_ext <<_ACEOF
 
32909
/* confdefs.h.  */
 
32910
_ACEOF
 
32911
cat confdefs.h >>conftest.$ac_ext
 
32912
cat >>conftest.$ac_ext <<_ACEOF
 
32913
/* end confdefs.h.  */
 
32914
#include <unistd.h>
 
32915
int
 
32916
main ()
 
32917
{
 
32918
 return sysconf(_SC_NPROCESSORS_ONLN) == -1 ? 1 : 0;
 
32919
  ;
 
32920
  return 0;
 
32921
}
 
32922
_ACEOF
 
32923
rm -f conftest.$ac_objext conftest$ac_exeext
 
32924
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
32925
  (eval $ac_link) 2>conftest.er1
 
32926
  ac_status=$?
 
32927
  grep -v '^ *+' conftest.er1 >conftest.err
 
32928
  rm -f conftest.er1
 
32929
  cat conftest.err >&5
 
32930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32931
  (exit $ac_status); } &&
 
32932
         { ac_try='test -z "$ac_c_werror_flag"
 
32933
                         || test ! -s conftest.err'
 
32934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32935
  (eval $ac_try) 2>&5
 
32936
  ac_status=$?
 
32937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32938
  (exit $ac_status); }; } &&
 
32939
         { ac_try='test -s conftest$ac_exeext'
 
32940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32941
  (eval $ac_try) 2>&5
 
32942
  ac_status=$?
 
32943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32944
  (exit $ac_status); }; }; then
 
32945
   samba_cv_SYSCONF_SC_NPROCESSORS_ONLN=yes
 
32946
else
 
32947
  echo "$as_me: failed program was:" >&5
 
32948
sed 's/^/| /' conftest.$ac_ext >&5
 
32949
 
 
32950
 samba_cv_SYSCONF_SC_NPROCESSORS_ONLN=no
 
32951
fi
 
32952
rm -f conftest.err conftest.$ac_objext \
 
32953
      conftest$ac_exeext conftest.$ac_ext
 
32954
 
 
32955
fi
 
32956
echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NPROCESSORS_ONLN" >&5
 
32957
echo "${ECHO_T}$samba_cv_SYSCONF_SC_NPROCESSORS_ONLN" >&6
 
32958
 
 
32959
    if test x"$samba_cv_SYSCONF_SC_NPROCESSORS_ONLN" = x"yes" ; then
 
32960
 
 
32961
cat >>confdefs.h <<\_ACEOF
 
32962
#define SYSCONF_SC_NPROCESSORS_ONLN 1
 
32963
_ACEOF
 
32964
 
 
32965
    fi
 
32966
 
 
32967
 
 
32968
    echo "$as_me:$LINENO: checking for sysconf(_SC_PAGESIZE)" >&5
 
32969
echo $ECHO_N "checking for sysconf(_SC_PAGESIZE)... $ECHO_C" >&6
 
32970
if test "${samba_cv_SYSCONF_SC_PAGESIZE+set}" = set; then
 
32971
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32972
else
 
32973
 
 
32974
            cat >conftest.$ac_ext <<_ACEOF
 
32975
/* confdefs.h.  */
 
32976
_ACEOF
 
32977
cat confdefs.h >>conftest.$ac_ext
 
32978
cat >>conftest.$ac_ext <<_ACEOF
 
32979
/* end confdefs.h.  */
 
32980
#include <unistd.h>
 
32981
int
 
32982
main ()
 
32983
{
 
32984
 return sysconf(_SC_PAGESIZE) == -1 ? 1 : 0;
 
32985
  ;
 
32986
  return 0;
 
32987
}
 
32988
_ACEOF
 
32989
rm -f conftest.$ac_objext conftest$ac_exeext
 
32990
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
32991
  (eval $ac_link) 2>conftest.er1
 
32992
  ac_status=$?
 
32993
  grep -v '^ *+' conftest.er1 >conftest.err
 
32994
  rm -f conftest.er1
 
32995
  cat conftest.err >&5
 
32996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32997
  (exit $ac_status); } &&
 
32998
         { ac_try='test -z "$ac_c_werror_flag"
 
32999
                         || test ! -s conftest.err'
 
33000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33001
  (eval $ac_try) 2>&5
 
33002
  ac_status=$?
 
33003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33004
  (exit $ac_status); }; } &&
 
33005
         { ac_try='test -s conftest$ac_exeext'
 
33006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33007
  (eval $ac_try) 2>&5
 
33008
  ac_status=$?
 
33009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33010
  (exit $ac_status); }; }; then
 
33011
   samba_cv_SYSCONF_SC_PAGESIZE=yes
 
33012
else
 
33013
  echo "$as_me: failed program was:" >&5
 
33014
sed 's/^/| /' conftest.$ac_ext >&5
 
33015
 
 
33016
 samba_cv_SYSCONF_SC_PAGESIZE=no
 
33017
fi
 
33018
rm -f conftest.err conftest.$ac_objext \
 
33019
      conftest$ac_exeext conftest.$ac_ext
 
33020
 
 
33021
fi
 
33022
echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_PAGESIZE" >&5
 
33023
echo "${ECHO_T}$samba_cv_SYSCONF_SC_PAGESIZE" >&6
 
33024
 
 
33025
    if test x"$samba_cv_SYSCONF_SC_PAGESIZE" = x"yes" ; then
 
33026
 
 
33027
cat >>confdefs.h <<\_ACEOF
 
33028
#define SYSCONF_SC_PAGESIZE 1
 
33029
_ACEOF
 
33030
 
 
33031
    fi
 
33032
 
30085
33033
 
30086
33034
echo "$as_me:$LINENO: checking for root" >&5
30087
33035
echo $ECHO_N "checking for root... $ECHO_C" >&6
31108
34056
 
31109
34057
# Conditions under which smbwrapper should not be built.
31110
34058
 
31111
 
        if test x$PICFLAGS = x; then
 
34059
        if test x"$PICFLAGS" = x; then
31112
34060
           echo No support for PIC code - disabling smbwrapper and smbsh
31113
34061
           WRAPPROG=""
31114
34062
           WRAP=""
32026
34974
_ACEOF
32027
34975
 
32028
34976
 
 
34977
 
 
34978
 
 
34979
 
 
34980
    ac_check_func_ext_save_LIBS=$LIBS
 
34981
    LIBS="$LDAP_LIBS $LIBS"
 
34982
        echo "$as_me:$LINENO: checking for ldap_dn2ad_canonical" >&5
 
34983
echo $ECHO_N "checking for ldap_dn2ad_canonical... $ECHO_C" >&6
 
34984
if test "${ac_cv_func_ext_ldap_dn2ad_canonical+set}" = set; then
 
34985
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34986
else
 
34987
  cat >conftest.$ac_ext <<_ACEOF
 
34988
/* confdefs.h.  */
 
34989
_ACEOF
 
34990
cat confdefs.h >>conftest.$ac_ext
 
34991
cat >>conftest.$ac_ext <<_ACEOF
 
34992
/* end confdefs.h.  */
 
34993
/* Define ldap_dn2ad_canonical to an innocuous variant, in case <limits.h> declares ldap_dn2ad_canonical.
 
34994
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
34995
#define ldap_dn2ad_canonical innocuous_ldap_dn2ad_canonical
 
34996
 
 
34997
/* System header to define __stub macros and hopefully few prototypes,
 
34998
    which can conflict with char ldap_dn2ad_canonical (); below.
 
34999
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
35000
    <limits.h> exists even on freestanding compilers.  */
 
35001
 
 
35002
#ifdef __STDC__
 
35003
# include <limits.h>
 
35004
#else
 
35005
# include <assert.h>
 
35006
#endif
 
35007
 
 
35008
#undef ldap_dn2ad_canonical
 
35009
 
 
35010
/* Override any gcc2 internal prototype to avoid an error.  */
 
35011
#ifdef __cplusplus
 
35012
extern "C"
 
35013
{
 
35014
#endif
 
35015
/* We use char because int might match the return type of a gcc2
 
35016
   builtin and then its argument prototype would still apply.  */
 
35017
char ldap_dn2ad_canonical ();
 
35018
/* The GNU C library defines this for functions which it implements
 
35019
    to always fail with ENOSYS.  Some functions are actually named
 
35020
    something starting with __ and the normal name is an alias.  */
 
35021
#if defined (__stub_ldap_dn2ad_canonical) || defined (__stub___ldap_dn2ad_canonical)
 
35022
choke me
 
35023
#else
 
35024
char (*f) () = ldap_dn2ad_canonical;
 
35025
#endif
 
35026
#ifdef __cplusplus
 
35027
}
 
35028
#endif
 
35029
 
 
35030
int
 
35031
main ()
 
35032
{
 
35033
return f != ldap_dn2ad_canonical;
 
35034
  ;
 
35035
  return 0;
 
35036
}
 
35037
_ACEOF
 
35038
rm -f conftest.$ac_objext conftest$ac_exeext
 
35039
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
35040
  (eval $ac_link) 2>conftest.er1
 
35041
  ac_status=$?
 
35042
  grep -v '^ *+' conftest.er1 >conftest.err
 
35043
  rm -f conftest.er1
 
35044
  cat conftest.err >&5
 
35045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35046
  (exit $ac_status); } &&
 
35047
         { ac_try='test -z "$ac_c_werror_flag"
 
35048
                         || test ! -s conftest.err'
 
35049
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35050
  (eval $ac_try) 2>&5
 
35051
  ac_status=$?
 
35052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35053
  (exit $ac_status); }; } &&
 
35054
         { ac_try='test -s conftest$ac_exeext'
 
35055
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35056
  (eval $ac_try) 2>&5
 
35057
  ac_status=$?
 
35058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35059
  (exit $ac_status); }; }; then
 
35060
  ac_cv_func_ext_ldap_dn2ad_canonical=yes
 
35061
else
 
35062
  echo "$as_me: failed program was:" >&5
 
35063
sed 's/^/| /' conftest.$ac_ext >&5
 
35064
 
 
35065
ac_cv_func_ext_ldap_dn2ad_canonical=no
 
35066
fi
 
35067
rm -f conftest.err conftest.$ac_objext \
 
35068
      conftest$ac_exeext conftest.$ac_ext
 
35069
fi
 
35070
echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_dn2ad_canonical" >&5
 
35071
echo "${ECHO_T}$ac_cv_func_ext_ldap_dn2ad_canonical" >&6
 
35072
    LIBS=$ac_check_func_ext_save_LIBS
 
35073
    if test $ac_cv_func_ext_ldap_dn2ad_canonical = yes; then
 
35074
  cat >>confdefs.h <<_ACEOF
 
35075
#define HAVE_LDAP_DN2AD_CANONICAL 1
 
35076
_ACEOF
 
35077
 
 
35078
fi
 
35079
 
 
35080
 
32029
35081
  if test x"$ac_cv_lib_ext_ldap_ldap_init" = x"yes"; then
32030
35082
 
32031
35083
cat >>confdefs.h <<\_ACEOF
32084
35136
KRB5_LIBS=""
32085
35137
 
32086
35138
if test x"$with_ldap_support" != x"yes"; then
 
35139
 
32087
35140
    if test x"$with_ads_support" = x"yes"; then
32088
35141
        { { echo "$as_me:$LINENO: error: Active Directory Support requires LDAP support" >&5
32089
35142
echo "$as_me: error: Active Directory Support requires LDAP support" >&2;}
32090
35143
   { (exit 1); exit 1; }; }
32091
 
    elif test x"$with_ads_support" != x"no"; then
32092
 
        { echo "$as_me:$LINENO: WARNING: Active Directory Support requires LDAP support" >&5
32093
 
echo "$as_me: WARNING: Active Directory Support requires LDAP support" >&2;}
 
35144
    elif test x"$with_ads_support" = x"auto"; then
 
35145
        { echo "$as_me:$LINENO: WARNING: Disabling Active Directory support (requires LDAP support)" >&5
 
35146
echo "$as_me: WARNING: Disabling Active Directory support (requires LDAP support)" >&2;}
 
35147
        with_ads_support=no
32094
35148
    fi
32095
 
    with_ads_support=no
32096
 
fi
 
35149
 
 
35150
else
 
35151
 
 
35152
    # Check to see whether there is enough LDAP functionality to be able
 
35153
    # to build AD support.
32097
35154
 
32098
35155
 
32099
35156
 
32199
35256
fi
32200
35257
 
32201
35258
 
32202
 
if test x"$ac_cv_func_ext_ldap_initialize" != x"yes"; then
32203
 
    if test x"$with_ads_support" = x"yes"; then
32204
 
        { { echo "$as_me:$LINENO: error: Active Directory Support requires ldap_initialize" >&5
32205
 
echo "$as_me: error: Active Directory Support requires ldap_initialize" >&2;}
32206
 
   { (exit 1); exit 1; }; }
32207
 
    fi
32208
 
    { echo "$as_me:$LINENO: WARNING: Active Directory Support requires ldap_initialize" >&5
32209
 
echo "$as_me: WARNING: Active Directory Support requires ldap_initialize" >&2;}
32210
 
    with_ads_support=no
32211
 
fi
32212
 
 
32213
 
 
32214
 
 
32215
 
 
32216
 
    ac_check_func_ext_save_LIBS=$LIBS
32217
 
    LIBS="$LDAP_LIBS $LIBS"
32218
 
        echo "$as_me:$LINENO: checking for ldap_domain2hostlist" >&5
32219
 
echo $ECHO_N "checking for ldap_domain2hostlist... $ECHO_C" >&6
32220
 
if test "${ac_cv_func_ext_ldap_domain2hostlist+set}" = set; then
32221
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
32222
 
else
32223
 
  cat >conftest.$ac_ext <<_ACEOF
32224
 
/* confdefs.h.  */
32225
 
_ACEOF
32226
 
cat confdefs.h >>conftest.$ac_ext
32227
 
cat >>conftest.$ac_ext <<_ACEOF
32228
 
/* end confdefs.h.  */
32229
 
/* Define ldap_domain2hostlist to an innocuous variant, in case <limits.h> declares ldap_domain2hostlist.
32230
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32231
 
#define ldap_domain2hostlist innocuous_ldap_domain2hostlist
32232
 
 
32233
 
/* System header to define __stub macros and hopefully few prototypes,
32234
 
    which can conflict with char ldap_domain2hostlist (); below.
32235
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32236
 
    <limits.h> exists even on freestanding compilers.  */
32237
 
 
32238
 
#ifdef __STDC__
32239
 
# include <limits.h>
32240
 
#else
32241
 
# include <assert.h>
32242
 
#endif
32243
 
 
32244
 
#undef ldap_domain2hostlist
32245
 
 
32246
 
/* Override any gcc2 internal prototype to avoid an error.  */
32247
 
#ifdef __cplusplus
32248
 
extern "C"
32249
 
{
32250
 
#endif
32251
 
/* We use char because int might match the return type of a gcc2
32252
 
   builtin and then its argument prototype would still apply.  */
32253
 
char ldap_domain2hostlist ();
32254
 
/* The GNU C library defines this for functions which it implements
32255
 
    to always fail with ENOSYS.  Some functions are actually named
32256
 
    something starting with __ and the normal name is an alias.  */
32257
 
#if defined (__stub_ldap_domain2hostlist) || defined (__stub___ldap_domain2hostlist)
32258
 
choke me
32259
 
#else
32260
 
char (*f) () = ldap_domain2hostlist;
32261
 
#endif
32262
 
#ifdef __cplusplus
32263
 
}
32264
 
#endif
32265
 
 
32266
 
int
32267
 
main ()
32268
 
{
32269
 
return f != ldap_domain2hostlist;
32270
 
  ;
32271
 
  return 0;
32272
 
}
32273
 
_ACEOF
32274
 
rm -f conftest.$ac_objext conftest$ac_exeext
32275
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32276
 
  (eval $ac_link) 2>conftest.er1
32277
 
  ac_status=$?
32278
 
  grep -v '^ *+' conftest.er1 >conftest.err
32279
 
  rm -f conftest.er1
32280
 
  cat conftest.err >&5
32281
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282
 
  (exit $ac_status); } &&
32283
 
         { ac_try='test -z "$ac_c_werror_flag"
32284
 
                         || test ! -s conftest.err'
32285
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32286
 
  (eval $ac_try) 2>&5
32287
 
  ac_status=$?
32288
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289
 
  (exit $ac_status); }; } &&
32290
 
         { ac_try='test -s conftest$ac_exeext'
32291
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32292
 
  (eval $ac_try) 2>&5
32293
 
  ac_status=$?
32294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32295
 
  (exit $ac_status); }; }; then
32296
 
  ac_cv_func_ext_ldap_domain2hostlist=yes
32297
 
else
32298
 
  echo "$as_me: failed program was:" >&5
32299
 
sed 's/^/| /' conftest.$ac_ext >&5
32300
 
 
32301
 
ac_cv_func_ext_ldap_domain2hostlist=no
32302
 
fi
32303
 
rm -f conftest.err conftest.$ac_objext \
32304
 
      conftest$ac_exeext conftest.$ac_ext
32305
 
fi
32306
 
echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_domain2hostlist" >&5
32307
 
echo "${ECHO_T}$ac_cv_func_ext_ldap_domain2hostlist" >&6
32308
 
    LIBS=$ac_check_func_ext_save_LIBS
32309
 
    if test $ac_cv_func_ext_ldap_domain2hostlist = yes; then
32310
 
  cat >>confdefs.h <<_ACEOF
32311
 
#define HAVE_LDAP_DOMAIN2HOSTLIST 1
32312
 
_ACEOF
32313
 
 
32314
 
fi
32315
 
 
32316
 
 
32317
 
if test x"$ac_cv_func_ext_ldap_domain2hostlist" != x"yes"; then
32318
 
    if test x"$with_ads_support" = x"yes"; then
32319
 
        { { echo "$as_me:$LINENO: error: Active Directory Support requires ldap_domain2hostlist" >&5
32320
 
echo "$as_me: error: Active Directory Support requires ldap_domain2hostlist" >&2;}
32321
 
   { (exit 1); exit 1; }; }
32322
 
    fi
32323
 
    { echo "$as_me:$LINENO: WARNING: Active Directory Support requires ldap_domain2hostlist" >&5
32324
 
echo "$as_me: WARNING: Active Directory Support requires ldap_domain2hostlist" >&2;}
32325
 
    with_ads_support=no
32326
 
fi
 
35259
    if test x"$ac_cv_func_ext_ldap_initialize" != x"yes"; then
 
35260
        if test x"$with_ads_support" = x"yes"; then
 
35261
            { { echo "$as_me:$LINENO: error: Active Directory support requires ldap_initialize" >&5
 
35262
echo "$as_me: error: Active Directory support requires ldap_initialize" >&2;}
 
35263
   { (exit 1); exit 1; }; }
 
35264
        elif test x"$with_ads_support" = x"auto"; then
 
35265
            { echo "$as_me:$LINENO: WARNING: Disabling Active Directory support (requires ldap_initialize)" >&5
 
35266
echo "$as_me: WARNING: Disabling Active Directory support (requires ldap_initialize)" >&2;}
 
35267
            with_ads_support=no
 
35268
        fi
 
35269
    fi
32327
35270
 
32328
35271
 
32329
35272
 
32429
35372
fi
32430
35373
 
32431
35374
 
32432
 
if test x"$ac_cv_func_ext_ldap_add_result_entry" != x"yes"; then
32433
 
    if test x"$with_ads_support" = x"yes"; then
32434
 
        { { echo "$as_me:$LINENO: error: Active Directory Support requires ldap_add_result_entry" >&5
32435
 
echo "$as_me: error: Active Directory Support requires ldap_add_result_entry" >&2;}
 
35375
    if test x"$ac_cv_func_ext_ldap_add_result_entry" != x"yes"; then
 
35376
        if test x"$with_ads_support" = x"yes"; then
 
35377
            { { echo "$as_me:$LINENO: error: Active Directory support requires ldap_add_result_entry" >&5
 
35378
echo "$as_me: error: Active Directory support requires ldap_add_result_entry" >&2;}
32436
35379
   { (exit 1); exit 1; }; }
 
35380
        elif test x"$with_ads_support" = x"auto"; then
 
35381
            { echo "$as_me:$LINENO: WARNING: Disabling Active Directory support (requires ldap_add_result_entry)" >&5
 
35382
echo "$as_me: WARNING: Disabling Active Directory support (requires ldap_add_result_entry)" >&2;}
 
35383
            with_ads_support=no
 
35384
        fi
32437
35385
    fi
32438
 
    { echo "$as_me:$LINENO: WARNING: Active Directory Support requires ldap_add_result_entry" >&5
32439
 
echo "$as_me: WARNING: Active Directory Support requires ldap_add_result_entry" >&2;}
32440
 
    with_ads_support=no
 
35386
 
32441
35387
fi
32442
35388
 
32443
35389
if test x"$with_ads_support" != x"no"; then
37136
40082
fi
37137
40083
 
37138
40084
 
 
40085
 
 
40086
 
 
40087
    ac_check_func_ext_save_LIBS=$LIBS
 
40088
    LIBS="$KRB5_LIBS $LIBS"
 
40089
        echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_pac_request" >&5
 
40090
echo $ECHO_N "checking for krb5_get_init_creds_opt_set_pac_request... $ECHO_C" >&6
 
40091
if test "${ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request+set}" = set; then
 
40092
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40093
else
 
40094
  cat >conftest.$ac_ext <<_ACEOF
 
40095
/* confdefs.h.  */
 
40096
_ACEOF
 
40097
cat confdefs.h >>conftest.$ac_ext
 
40098
cat >>conftest.$ac_ext <<_ACEOF
 
40099
/* end confdefs.h.  */
 
40100
/* Define krb5_get_init_creds_opt_set_pac_request to an innocuous variant, in case <limits.h> declares krb5_get_init_creds_opt_set_pac_request.
 
40101
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
40102
#define krb5_get_init_creds_opt_set_pac_request innocuous_krb5_get_init_creds_opt_set_pac_request
 
40103
 
 
40104
/* System header to define __stub macros and hopefully few prototypes,
 
40105
    which can conflict with char krb5_get_init_creds_opt_set_pac_request (); below.
 
40106
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
40107
    <limits.h> exists even on freestanding compilers.  */
 
40108
 
 
40109
#ifdef __STDC__
 
40110
# include <limits.h>
 
40111
#else
 
40112
# include <assert.h>
 
40113
#endif
 
40114
 
 
40115
#undef krb5_get_init_creds_opt_set_pac_request
 
40116
 
 
40117
/* Override any gcc2 internal prototype to avoid an error.  */
 
40118
#ifdef __cplusplus
 
40119
extern "C"
 
40120
{
 
40121
#endif
 
40122
/* We use char because int might match the return type of a gcc2
 
40123
   builtin and then its argument prototype would still apply.  */
 
40124
char krb5_get_init_creds_opt_set_pac_request ();
 
40125
/* The GNU C library defines this for functions which it implements
 
40126
    to always fail with ENOSYS.  Some functions are actually named
 
40127
    something starting with __ and the normal name is an alias.  */
 
40128
#if defined (__stub_krb5_get_init_creds_opt_set_pac_request) || defined (__stub___krb5_get_init_creds_opt_set_pac_request)
 
40129
choke me
 
40130
#else
 
40131
char (*f) () = krb5_get_init_creds_opt_set_pac_request;
 
40132
#endif
 
40133
#ifdef __cplusplus
 
40134
}
 
40135
#endif
 
40136
 
 
40137
int
 
40138
main ()
 
40139
{
 
40140
return f != krb5_get_init_creds_opt_set_pac_request;
 
40141
  ;
 
40142
  return 0;
 
40143
}
 
40144
_ACEOF
 
40145
rm -f conftest.$ac_objext conftest$ac_exeext
 
40146
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
40147
  (eval $ac_link) 2>conftest.er1
 
40148
  ac_status=$?
 
40149
  grep -v '^ *+' conftest.er1 >conftest.err
 
40150
  rm -f conftest.er1
 
40151
  cat conftest.err >&5
 
40152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40153
  (exit $ac_status); } &&
 
40154
         { ac_try='test -z "$ac_c_werror_flag"
 
40155
                         || test ! -s conftest.err'
 
40156
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40157
  (eval $ac_try) 2>&5
 
40158
  ac_status=$?
 
40159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40160
  (exit $ac_status); }; } &&
 
40161
         { ac_try='test -s conftest$ac_exeext'
 
40162
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40163
  (eval $ac_try) 2>&5
 
40164
  ac_status=$?
 
40165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40166
  (exit $ac_status); }; }; then
 
40167
  ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request=yes
 
40168
else
 
40169
  echo "$as_me: failed program was:" >&5
 
40170
sed 's/^/| /' conftest.$ac_ext >&5
 
40171
 
 
40172
ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request=no
 
40173
fi
 
40174
rm -f conftest.err conftest.$ac_objext \
 
40175
      conftest$ac_exeext conftest.$ac_ext
 
40176
fi
 
40177
echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request" >&5
 
40178
echo "${ECHO_T}$ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request" >&6
 
40179
    LIBS=$ac_check_func_ext_save_LIBS
 
40180
    if test $ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request = yes; then
 
40181
  cat >>confdefs.h <<_ACEOF
 
40182
#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_PAC_REQUEST 1
 
40183
_ACEOF
 
40184
 
 
40185
fi
 
40186
 
 
40187
 
 
40188
 
 
40189
 
 
40190
    ac_check_func_ext_save_LIBS=$LIBS
 
40191
    LIBS="$KRB5_LIBS $LIBS"
 
40192
        echo "$as_me:$LINENO: checking for krb5_get_renewed_creds" >&5
 
40193
echo $ECHO_N "checking for krb5_get_renewed_creds... $ECHO_C" >&6
 
40194
if test "${ac_cv_func_ext_krb5_get_renewed_creds+set}" = set; then
 
40195
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40196
else
 
40197
  cat >conftest.$ac_ext <<_ACEOF
 
40198
/* confdefs.h.  */
 
40199
_ACEOF
 
40200
cat confdefs.h >>conftest.$ac_ext
 
40201
cat >>conftest.$ac_ext <<_ACEOF
 
40202
/* end confdefs.h.  */
 
40203
/* Define krb5_get_renewed_creds to an innocuous variant, in case <limits.h> declares krb5_get_renewed_creds.
 
40204
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
40205
#define krb5_get_renewed_creds innocuous_krb5_get_renewed_creds
 
40206
 
 
40207
/* System header to define __stub macros and hopefully few prototypes,
 
40208
    which can conflict with char krb5_get_renewed_creds (); below.
 
40209
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
40210
    <limits.h> exists even on freestanding compilers.  */
 
40211
 
 
40212
#ifdef __STDC__
 
40213
# include <limits.h>
 
40214
#else
 
40215
# include <assert.h>
 
40216
#endif
 
40217
 
 
40218
#undef krb5_get_renewed_creds
 
40219
 
 
40220
/* Override any gcc2 internal prototype to avoid an error.  */
 
40221
#ifdef __cplusplus
 
40222
extern "C"
 
40223
{
 
40224
#endif
 
40225
/* We use char because int might match the return type of a gcc2
 
40226
   builtin and then its argument prototype would still apply.  */
 
40227
char krb5_get_renewed_creds ();
 
40228
/* The GNU C library defines this for functions which it implements
 
40229
    to always fail with ENOSYS.  Some functions are actually named
 
40230
    something starting with __ and the normal name is an alias.  */
 
40231
#if defined (__stub_krb5_get_renewed_creds) || defined (__stub___krb5_get_renewed_creds)
 
40232
choke me
 
40233
#else
 
40234
char (*f) () = krb5_get_renewed_creds;
 
40235
#endif
 
40236
#ifdef __cplusplus
 
40237
}
 
40238
#endif
 
40239
 
 
40240
int
 
40241
main ()
 
40242
{
 
40243
return f != krb5_get_renewed_creds;
 
40244
  ;
 
40245
  return 0;
 
40246
}
 
40247
_ACEOF
 
40248
rm -f conftest.$ac_objext conftest$ac_exeext
 
40249
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
40250
  (eval $ac_link) 2>conftest.er1
 
40251
  ac_status=$?
 
40252
  grep -v '^ *+' conftest.er1 >conftest.err
 
40253
  rm -f conftest.er1
 
40254
  cat conftest.err >&5
 
40255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40256
  (exit $ac_status); } &&
 
40257
         { ac_try='test -z "$ac_c_werror_flag"
 
40258
                         || test ! -s conftest.err'
 
40259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40260
  (eval $ac_try) 2>&5
 
40261
  ac_status=$?
 
40262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40263
  (exit $ac_status); }; } &&
 
40264
         { ac_try='test -s conftest$ac_exeext'
 
40265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40266
  (eval $ac_try) 2>&5
 
40267
  ac_status=$?
 
40268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40269
  (exit $ac_status); }; }; then
 
40270
  ac_cv_func_ext_krb5_get_renewed_creds=yes
 
40271
else
 
40272
  echo "$as_me: failed program was:" >&5
 
40273
sed 's/^/| /' conftest.$ac_ext >&5
 
40274
 
 
40275
ac_cv_func_ext_krb5_get_renewed_creds=no
 
40276
fi
 
40277
rm -f conftest.err conftest.$ac_objext \
 
40278
      conftest$ac_exeext conftest.$ac_ext
 
40279
fi
 
40280
echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_renewed_creds" >&5
 
40281
echo "${ECHO_T}$ac_cv_func_ext_krb5_get_renewed_creds" >&6
 
40282
    LIBS=$ac_check_func_ext_save_LIBS
 
40283
    if test $ac_cv_func_ext_krb5_get_renewed_creds = yes; then
 
40284
  cat >>confdefs.h <<_ACEOF
 
40285
#define HAVE_KRB5_GET_RENEWED_CREDS 1
 
40286
_ACEOF
 
40287
 
 
40288
fi
 
40289
 
 
40290
 
 
40291
 
 
40292
 
 
40293
    ac_check_func_ext_save_LIBS=$LIBS
 
40294
    LIBS="$KRB5_LIBS $LIBS"
 
40295
        echo "$as_me:$LINENO: checking for krb5_get_kdc_cred" >&5
 
40296
echo $ECHO_N "checking for krb5_get_kdc_cred... $ECHO_C" >&6
 
40297
if test "${ac_cv_func_ext_krb5_get_kdc_cred+set}" = set; then
 
40298
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40299
else
 
40300
  cat >conftest.$ac_ext <<_ACEOF
 
40301
/* confdefs.h.  */
 
40302
_ACEOF
 
40303
cat confdefs.h >>conftest.$ac_ext
 
40304
cat >>conftest.$ac_ext <<_ACEOF
 
40305
/* end confdefs.h.  */
 
40306
/* Define krb5_get_kdc_cred to an innocuous variant, in case <limits.h> declares krb5_get_kdc_cred.
 
40307
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
40308
#define krb5_get_kdc_cred innocuous_krb5_get_kdc_cred
 
40309
 
 
40310
/* System header to define __stub macros and hopefully few prototypes,
 
40311
    which can conflict with char krb5_get_kdc_cred (); below.
 
40312
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
40313
    <limits.h> exists even on freestanding compilers.  */
 
40314
 
 
40315
#ifdef __STDC__
 
40316
# include <limits.h>
 
40317
#else
 
40318
# include <assert.h>
 
40319
#endif
 
40320
 
 
40321
#undef krb5_get_kdc_cred
 
40322
 
 
40323
/* Override any gcc2 internal prototype to avoid an error.  */
 
40324
#ifdef __cplusplus
 
40325
extern "C"
 
40326
{
 
40327
#endif
 
40328
/* We use char because int might match the return type of a gcc2
 
40329
   builtin and then its argument prototype would still apply.  */
 
40330
char krb5_get_kdc_cred ();
 
40331
/* The GNU C library defines this for functions which it implements
 
40332
    to always fail with ENOSYS.  Some functions are actually named
 
40333
    something starting with __ and the normal name is an alias.  */
 
40334
#if defined (__stub_krb5_get_kdc_cred) || defined (__stub___krb5_get_kdc_cred)
 
40335
choke me
 
40336
#else
 
40337
char (*f) () = krb5_get_kdc_cred;
 
40338
#endif
 
40339
#ifdef __cplusplus
 
40340
}
 
40341
#endif
 
40342
 
 
40343
int
 
40344
main ()
 
40345
{
 
40346
return f != krb5_get_kdc_cred;
 
40347
  ;
 
40348
  return 0;
 
40349
}
 
40350
_ACEOF
 
40351
rm -f conftest.$ac_objext conftest$ac_exeext
 
40352
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
40353
  (eval $ac_link) 2>conftest.er1
 
40354
  ac_status=$?
 
40355
  grep -v '^ *+' conftest.er1 >conftest.err
 
40356
  rm -f conftest.er1
 
40357
  cat conftest.err >&5
 
40358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40359
  (exit $ac_status); } &&
 
40360
         { ac_try='test -z "$ac_c_werror_flag"
 
40361
                         || test ! -s conftest.err'
 
40362
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40363
  (eval $ac_try) 2>&5
 
40364
  ac_status=$?
 
40365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40366
  (exit $ac_status); }; } &&
 
40367
         { ac_try='test -s conftest$ac_exeext'
 
40368
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40369
  (eval $ac_try) 2>&5
 
40370
  ac_status=$?
 
40371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40372
  (exit $ac_status); }; }; then
 
40373
  ac_cv_func_ext_krb5_get_kdc_cred=yes
 
40374
else
 
40375
  echo "$as_me: failed program was:" >&5
 
40376
sed 's/^/| /' conftest.$ac_ext >&5
 
40377
 
 
40378
ac_cv_func_ext_krb5_get_kdc_cred=no
 
40379
fi
 
40380
rm -f conftest.err conftest.$ac_objext \
 
40381
      conftest$ac_exeext conftest.$ac_ext
 
40382
fi
 
40383
echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_kdc_cred" >&5
 
40384
echo "${ECHO_T}$ac_cv_func_ext_krb5_get_kdc_cred" >&6
 
40385
    LIBS=$ac_check_func_ext_save_LIBS
 
40386
    if test $ac_cv_func_ext_krb5_get_kdc_cred = yes; then
 
40387
  cat >>confdefs.h <<_ACEOF
 
40388
#define HAVE_KRB5_GET_KDC_CRED 1
 
40389
_ACEOF
 
40390
 
 
40391
fi
 
40392
 
 
40393
 
 
40394
 
 
40395
 
 
40396
    ac_check_func_ext_save_LIBS=$LIBS
 
40397
    LIBS="$KRB5_LIBS $LIBS"
 
40398
        echo "$as_me:$LINENO: checking for krb5_free_error_contents" >&5
 
40399
echo $ECHO_N "checking for krb5_free_error_contents... $ECHO_C" >&6
 
40400
if test "${ac_cv_func_ext_krb5_free_error_contents+set}" = set; then
 
40401
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40402
else
 
40403
  cat >conftest.$ac_ext <<_ACEOF
 
40404
/* confdefs.h.  */
 
40405
_ACEOF
 
40406
cat confdefs.h >>conftest.$ac_ext
 
40407
cat >>conftest.$ac_ext <<_ACEOF
 
40408
/* end confdefs.h.  */
 
40409
/* Define krb5_free_error_contents to an innocuous variant, in case <limits.h> declares krb5_free_error_contents.
 
40410
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
40411
#define krb5_free_error_contents innocuous_krb5_free_error_contents
 
40412
 
 
40413
/* System header to define __stub macros and hopefully few prototypes,
 
40414
    which can conflict with char krb5_free_error_contents (); below.
 
40415
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
40416
    <limits.h> exists even on freestanding compilers.  */
 
40417
 
 
40418
#ifdef __STDC__
 
40419
# include <limits.h>
 
40420
#else
 
40421
# include <assert.h>
 
40422
#endif
 
40423
 
 
40424
#undef krb5_free_error_contents
 
40425
 
 
40426
/* Override any gcc2 internal prototype to avoid an error.  */
 
40427
#ifdef __cplusplus
 
40428
extern "C"
 
40429
{
 
40430
#endif
 
40431
/* We use char because int might match the return type of a gcc2
 
40432
   builtin and then its argument prototype would still apply.  */
 
40433
char krb5_free_error_contents ();
 
40434
/* The GNU C library defines this for functions which it implements
 
40435
    to always fail with ENOSYS.  Some functions are actually named
 
40436
    something starting with __ and the normal name is an alias.  */
 
40437
#if defined (__stub_krb5_free_error_contents) || defined (__stub___krb5_free_error_contents)
 
40438
choke me
 
40439
#else
 
40440
char (*f) () = krb5_free_error_contents;
 
40441
#endif
 
40442
#ifdef __cplusplus
 
40443
}
 
40444
#endif
 
40445
 
 
40446
int
 
40447
main ()
 
40448
{
 
40449
return f != krb5_free_error_contents;
 
40450
  ;
 
40451
  return 0;
 
40452
}
 
40453
_ACEOF
 
40454
rm -f conftest.$ac_objext conftest$ac_exeext
 
40455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
40456
  (eval $ac_link) 2>conftest.er1
 
40457
  ac_status=$?
 
40458
  grep -v '^ *+' conftest.er1 >conftest.err
 
40459
  rm -f conftest.er1
 
40460
  cat conftest.err >&5
 
40461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40462
  (exit $ac_status); } &&
 
40463
         { ac_try='test -z "$ac_c_werror_flag"
 
40464
                         || test ! -s conftest.err'
 
40465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40466
  (eval $ac_try) 2>&5
 
40467
  ac_status=$?
 
40468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40469
  (exit $ac_status); }; } &&
 
40470
         { ac_try='test -s conftest$ac_exeext'
 
40471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40472
  (eval $ac_try) 2>&5
 
40473
  ac_status=$?
 
40474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40475
  (exit $ac_status); }; }; then
 
40476
  ac_cv_func_ext_krb5_free_error_contents=yes
 
40477
else
 
40478
  echo "$as_me: failed program was:" >&5
 
40479
sed 's/^/| /' conftest.$ac_ext >&5
 
40480
 
 
40481
ac_cv_func_ext_krb5_free_error_contents=no
 
40482
fi
 
40483
rm -f conftest.err conftest.$ac_objext \
 
40484
      conftest$ac_exeext conftest.$ac_ext
 
40485
fi
 
40486
echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_free_error_contents" >&5
 
40487
echo "${ECHO_T}$ac_cv_func_ext_krb5_free_error_contents" >&6
 
40488
    LIBS=$ac_check_func_ext_save_LIBS
 
40489
    if test $ac_cv_func_ext_krb5_free_error_contents = yes; then
 
40490
  cat >>confdefs.h <<_ACEOF
 
40491
#define HAVE_KRB5_FREE_ERROR_CONTENTS 1
 
40492
_ACEOF
 
40493
 
 
40494
fi
 
40495
 
 
40496
 
37139
40497
  LIBS="$KRB5_LIBS $LIBS"
37140
40498
 
37141
40499
  echo "$as_me:$LINENO: checking whether krb5_verify_checksum takes 7 arguments" >&5
37389
40747
 
37390
40748
  fi
37391
40749
 
 
40750
  echo "$as_me:$LINENO: checking for e_data pointer in krb5_error" >&5
 
40751
echo $ECHO_N "checking for e_data pointer in krb5_error... $ECHO_C" >&6
 
40752
if test "${samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR+set}" = set; then
 
40753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40754
else
 
40755
 
 
40756
    cat >conftest.$ac_ext <<_ACEOF
 
40757
/* confdefs.h.  */
 
40758
_ACEOF
 
40759
cat confdefs.h >>conftest.$ac_ext
 
40760
cat >>conftest.$ac_ext <<_ACEOF
 
40761
/* end confdefs.h.  */
 
40762
#include <krb5.h>
 
40763
int
 
40764
main ()
 
40765
{
 
40766
krb5_error err; err.e_data = NULL;
 
40767
  ;
 
40768
  return 0;
 
40769
}
 
40770
_ACEOF
 
40771
rm -f conftest.$ac_objext
 
40772
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
40773
  (eval $ac_compile) 2>conftest.er1
 
40774
  ac_status=$?
 
40775
  grep -v '^ *+' conftest.er1 >conftest.err
 
40776
  rm -f conftest.er1
 
40777
  cat conftest.err >&5
 
40778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40779
  (exit $ac_status); } &&
 
40780
         { ac_try='test -z "$ac_c_werror_flag"
 
40781
                         || test ! -s conftest.err'
 
40782
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40783
  (eval $ac_try) 2>&5
 
40784
  ac_status=$?
 
40785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40786
  (exit $ac_status); }; } &&
 
40787
         { ac_try='test -s conftest.$ac_objext'
 
40788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40789
  (eval $ac_try) 2>&5
 
40790
  ac_status=$?
 
40791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40792
  (exit $ac_status); }; }; then
 
40793
  samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR=yes
 
40794
else
 
40795
  echo "$as_me: failed program was:" >&5
 
40796
sed 's/^/| /' conftest.$ac_ext >&5
 
40797
 
 
40798
samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR=no
 
40799
fi
 
40800
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
40801
fi
 
40802
echo "$as_me:$LINENO: result: $samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR" >&5
 
40803
echo "${ECHO_T}$samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR" >&6
 
40804
 
 
40805
  if test x"$samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR" = x"yes"; then
 
40806
 
 
40807
cat >>confdefs.h <<\_ACEOF
 
40808
#define HAVE_E_DATA_POINTER_IN_KRB5_ERROR 1
 
40809
_ACEOF
 
40810
 
 
40811
  fi
 
40812
 
37392
40813
  echo "$as_me:$LINENO: checking for krb5_crypto type" >&5
37393
40814
echo $ECHO_N "checking for krb5_crypto type... $ECHO_C" >&6
37394
40815
if test "${samba_cv_HAVE_KRB5_CRYPTO+set}" = set; then
38453
41874
 
38454
41875
  fi
38455
41876
 
 
41877
  echo "$as_me:$LINENO: checking for magic in krb5_address" >&5
 
41878
echo $ECHO_N "checking for magic in krb5_address... $ECHO_C" >&6
 
41879
if test "${samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS+set}" = set; then
 
41880
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
41881
else
 
41882
 
 
41883
    cat >conftest.$ac_ext <<_ACEOF
 
41884
/* confdefs.h.  */
 
41885
_ACEOF
 
41886
cat confdefs.h >>conftest.$ac_ext
 
41887
cat >>conftest.$ac_ext <<_ACEOF
 
41888
/* end confdefs.h.  */
 
41889
#include <krb5.h>
 
41890
int
 
41891
main ()
 
41892
{
 
41893
krb5_address addr; addr.magic = 0;
 
41894
  ;
 
41895
  return 0;
 
41896
}
 
41897
_ACEOF
 
41898
rm -f conftest.$ac_objext
 
41899
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
41900
  (eval $ac_compile) 2>conftest.er1
 
41901
  ac_status=$?
 
41902
  grep -v '^ *+' conftest.er1 >conftest.err
 
41903
  rm -f conftest.er1
 
41904
  cat conftest.err >&5
 
41905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41906
  (exit $ac_status); } &&
 
41907
         { ac_try='test -z "$ac_c_werror_flag"
 
41908
                         || test ! -s conftest.err'
 
41909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41910
  (eval $ac_try) 2>&5
 
41911
  ac_status=$?
 
41912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41913
  (exit $ac_status); }; } &&
 
41914
         { ac_try='test -s conftest.$ac_objext'
 
41915
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41916
  (eval $ac_try) 2>&5
 
41917
  ac_status=$?
 
41918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41919
  (exit $ac_status); }; }; then
 
41920
  samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS=yes
 
41921
else
 
41922
  echo "$as_me: failed program was:" >&5
 
41923
sed 's/^/| /' conftest.$ac_ext >&5
 
41924
 
 
41925
samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS=no
 
41926
fi
 
41927
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
41928
fi
 
41929
echo "$as_me:$LINENO: result: $samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS" >&5
 
41930
echo "${ECHO_T}$samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS" >&6
 
41931
 
 
41932
  if test x"$samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS" = x"yes"; then
 
41933
 
 
41934
cat >>confdefs.h <<\_ACEOF
 
41935
#define HAVE_MAGIC_IN_KRB5_ADDRESS 1
 
41936
_ACEOF
 
41937
 
 
41938
  fi
 
41939
 
38456
41940
  if test x"$ac_cv_lib_ext_krb5_krb5_mk_req_extended" = x"yes"; then
38457
41941
 
38458
41942
cat >>confdefs.h <<\_ACEOF
38611
42095
 
38612
42096
  fi
38613
42097
 
 
42098
  echo "$as_me:$LINENO: checking for krb5_addresses type" >&5
 
42099
echo $ECHO_N "checking for krb5_addresses type... $ECHO_C" >&6
 
42100
if test "${samba_cv_HAVE_KRB5_ADDRESSES+set}" = set; then
 
42101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
42102
else
 
42103
 
 
42104
    cat >conftest.$ac_ext <<_ACEOF
 
42105
/* confdefs.h.  */
 
42106
_ACEOF
 
42107
cat confdefs.h >>conftest.$ac_ext
 
42108
cat >>conftest.$ac_ext <<_ACEOF
 
42109
/* end confdefs.h.  */
 
42110
#include <krb5.h>
 
42111
int
 
42112
main ()
 
42113
{
 
42114
krb5_addresses addr;
 
42115
  ;
 
42116
  return 0;
 
42117
}
 
42118
_ACEOF
 
42119
rm -f conftest.$ac_objext
 
42120
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
42121
  (eval $ac_compile) 2>conftest.er1
 
42122
  ac_status=$?
 
42123
  grep -v '^ *+' conftest.er1 >conftest.err
 
42124
  rm -f conftest.er1
 
42125
  cat conftest.err >&5
 
42126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42127
  (exit $ac_status); } &&
 
42128
         { ac_try='test -z "$ac_c_werror_flag"
 
42129
                         || test ! -s conftest.err'
 
42130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42131
  (eval $ac_try) 2>&5
 
42132
  ac_status=$?
 
42133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42134
  (exit $ac_status); }; } &&
 
42135
         { ac_try='test -s conftest.$ac_objext'
 
42136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42137
  (eval $ac_try) 2>&5
 
42138
  ac_status=$?
 
42139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42140
  (exit $ac_status); }; }; then
 
42141
  samba_cv_HAVE_KRB5_ADDRESSES=yes
 
42142
else
 
42143
  echo "$as_me: failed program was:" >&5
 
42144
sed 's/^/| /' conftest.$ac_ext >&5
 
42145
 
 
42146
samba_cv_HAVE_KRB5_ADDRESSES=no
 
42147
fi
 
42148
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
42149
fi
 
42150
echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_ADDRESSES" >&5
 
42151
echo "${ECHO_T}$samba_cv_HAVE_KRB5_ADDRESSES" >&6
 
42152
 
 
42153
  if test x"$samba_cv_HAVE_KRB5_ADDRESSES" = x"yes"; then
 
42154
 
 
42155
cat >>confdefs.h <<\_ACEOF
 
42156
#define HAVE_KRB5_ADDRESSES 1
 
42157
_ACEOF
 
42158
 
 
42159
  fi
 
42160
 
38614
42161
LIBS="$ac_save_LIBS"
38615
42162
fi
38616
42163
 
38617
 
########################################################
38618
 
# Compile experimental passdb backends?
38619
 
# (pdb_xml, pdb_mysql, pdb_pgsql)
38620
 
echo "$as_me:$LINENO: checking whether to build experimental passdb libraries" >&5
38621
 
echo $ECHO_N "checking whether to build experimental passdb libraries... $ECHO_C" >&6
38622
 
 
38623
 
# Check whether --with-expsam or --without-expsam was given.
38624
 
if test "${with_expsam+set}" = set; then
38625
 
  withval="$with_expsam"
38626
 
   expsam_pdb_modules=`echo "$withval" | sed 's/,/ /g'`
38627
 
  if test "z$expsam_pdb_modules" = "zyes"; then
38628
 
    expsam_pdb_modules="xml mysql pgsql"
38629
 
  fi
38630
 
  echo "$as_me:$LINENO: result: $expsam_pdb_modules" >&5
38631
 
echo "${ECHO_T}$expsam_pdb_modules" >&6
38632
 
  for i in $expsam_pdb_modules
38633
 
  do
38634
 
    case "$i" in
38635
 
    xml|all|yes)
38636
 
      ## pdb_xml
38637
 
 
38638
 
 
38639
 
# Check whether --with-xml-prefix or --without-xml-prefix was given.
38640
 
if test "${with_xml_prefix+set}" = set; then
38641
 
  withval="$with_xml_prefix"
38642
 
  xml_config_prefix="$withval"
38643
 
else
38644
 
  xml_config_prefix=""
38645
 
fi;
38646
 
 
38647
 
# Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
38648
 
if test "${with_xml_exec_prefix+set}" = set; then
38649
 
  withval="$with_xml_exec_prefix"
38650
 
  xml_config_exec_prefix="$withval"
38651
 
else
38652
 
  xml_config_exec_prefix=""
38653
 
fi;
38654
 
# Check whether --enable-xmltest or --disable-xmltest was given.
38655
 
if test "${enable_xmltest+set}" = set; then
38656
 
  enableval="$enable_xmltest"
38657
 
 
38658
 
else
38659
 
  enable_xmltest=yes
38660
 
fi;
38661
 
 
38662
 
  if test x$xml_config_exec_prefix != x ; then
38663
 
     xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
38664
 
     if test x${XML2_CONFIG+set} != xset ; then
38665
 
        XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
38666
 
     fi
38667
 
  fi
38668
 
  if test x$xml_config_prefix != x ; then
38669
 
     xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
38670
 
     if test x${XML2_CONFIG+set} != xset ; then
38671
 
        XML2_CONFIG=$xml_config_prefix/bin/xml2-config
38672
 
     fi
38673
 
  fi
38674
 
 
38675
 
  # Extract the first word of "xml2-config", so it can be a program name with args.
38676
 
set dummy xml2-config; ac_word=$2
38677
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
38678
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38679
 
if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
 
42164
 
 
42165
 
 
42166
 
 
42167
ac_check_lib_ext_save_LIBS=$LIBS
 
42168
LIBS="-lnscd $NSCD_LIBS  $LIBS"
 
42169
 
 
42170
 
 
42171
 
 
42172
 
 
42173
        echo "$as_me:$LINENO: checking for nscd_flush_cache in -lnscd" >&5
 
42174
echo $ECHO_N "checking for nscd_flush_cache in -lnscd... $ECHO_C" >&6
 
42175
if test "${ac_cv_lib_ext_nscd_nscd_flush_cache+set}" = set; then
38680
42176
  echo $ECHO_N "(cached) $ECHO_C" >&6
38681
42177
else
38682
 
  case $XML2_CONFIG in
38683
 
  [\\/]* | ?:[\\/]*)
38684
 
  ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
38685
 
  ;;
38686
 
  *)
38687
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38688
 
for as_dir in $PATH
38689
 
do
38690
 
  IFS=$as_save_IFS
38691
 
  test -z "$as_dir" && as_dir=.
38692
 
  for ac_exec_ext in '' $ac_executable_extensions; do
38693
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38694
 
    ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38695
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38696
 
    break 2
38697
 
  fi
38698
 
done
38699
 
done
38700
 
 
38701
 
  test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
38702
 
  ;;
38703
 
esac
38704
 
fi
38705
 
XML2_CONFIG=$ac_cv_path_XML2_CONFIG
38706
 
 
38707
 
if test -n "$XML2_CONFIG"; then
38708
 
  echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
38709
 
echo "${ECHO_T}$XML2_CONFIG" >&6
38710
 
else
38711
 
  echo "$as_me:$LINENO: result: no" >&5
38712
 
echo "${ECHO_T}no" >&6
38713
 
fi
38714
 
 
38715
 
  min_xml_version=2.0.0
38716
 
  echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
38717
 
echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
38718
 
  no_xml=""
38719
 
  if test "$XML2_CONFIG" = "no" ; then
38720
 
    no_xml=yes
38721
 
  else
38722
 
    XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
38723
 
    XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
38724
 
    xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
38725
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38726
 
    xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
38727
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38728
 
    xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
38729
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38730
 
    if test "x$enable_xmltest" = "xyes" ; then
38731
 
      ac_save_CFLAGS="$CFLAGS"
38732
 
      ac_save_LIBS="$LIBS"
38733
 
      CFLAGS="$CFLAGS $XML_CFLAGS"
38734
 
      LIBS="$XML_LIBS $LIBS"
38735
 
      rm -f conf.xmltest
38736
 
      if test "$cross_compiling" = yes; then
38737
 
  echo $ac_n "cross compiling; assumed OK... $ac_c"
38738
 
else
38739
42178
  cat >conftest.$ac_ext <<_ACEOF
38740
42179
/* confdefs.h.  */
38741
42180
_ACEOF
38743
42182
cat >>conftest.$ac_ext <<_ACEOF
38744
42183
/* end confdefs.h.  */
38745
42184
 
38746
 
#include <stdlib.h>
38747
 
#include <stdio.h>
38748
 
#include <string.h>
38749
 
#include <libxml/xmlversion.h>
38750
 
 
38751
 
int
38752
 
main()
38753
 
{
38754
 
  int xml_major_version, xml_minor_version, xml_micro_version;
38755
 
  int major, minor, micro;
38756
 
  char *tmp_version;
38757
 
 
38758
 
  system("touch conf.xmltest");
38759
 
 
38760
 
  /* Capture xml2-config output via autoconf/configure variables */
38761
 
  /* HP/UX 9 (%@#!) writes to sscanf strings */
38762
 
  tmp_version = (char *)strdup("$min_xml_version");
38763
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
38764
 
     printf("%s, bad version string from xml2-config\n", "$min_xml_version");
38765
 
     exit(1);
38766
 
   }
38767
 
   free(tmp_version);
38768
 
 
38769
 
   /* Capture the version information from the header files */
38770
 
   tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
38771
 
   if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
38772
 
     printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
38773
 
     exit(1);
38774
 
   }
38775
 
   free(tmp_version);
38776
 
 
38777
 
 /* Compare xml2-config output to the libxml headers */
38778
 
  if ((xml_major_version != $xml_config_major_version) ||
38779
 
      (xml_minor_version != $xml_config_minor_version) ||
38780
 
      (xml_micro_version != $xml_config_micro_version))
38781
 
    {
38782
 
      printf("*** libxml header files (version %d.%d.%d) do not match\n",
38783
 
         xml_major_version, xml_minor_version, xml_micro_version);
38784
 
      printf("*** xml2-config (version %d.%d.%d)\n",
38785
 
         $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
38786
 
      return 1;
38787
 
    }
38788
 
/* Compare the headers to the library to make sure we match */
38789
 
  /* Less than ideal -- doesn't provide us with return value feedback,
38790
 
   * only exits if there's a serious mismatch between header and library.
38791
 
   */
38792
 
    LIBXML_TEST_VERSION;
38793
 
 
38794
 
    /* Test that the library is greater than our minimum version */
38795
 
    if ((xml_major_version > major) ||
38796
 
        ((xml_major_version == major) && (xml_minor_version > minor)) ||
38797
 
        ((xml_major_version == major) && (xml_minor_version == minor) &&
38798
 
        (xml_micro_version >= micro)))
38799
 
      {
38800
 
        return 0;
38801
 
       }
38802
 
     else
38803
 
      {
38804
 
        printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
38805
 
               xml_major_version, xml_minor_version, xml_micro_version);
38806
 
        printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
38807
 
           major, minor, micro);
38808
 
        printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
38809
 
        printf("***\n");
38810
 
        printf("*** If you have already installed a sufficiently new version, this error\n");
38811
 
        printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
38812
 
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
38813
 
        printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
38814
 
        printf("*** correct copy of xml2-config. (In this case, you will have to\n");
38815
 
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
38816
 
        printf("*** so that the correct libraries are found at run-time))\n");
38817
 
    }
38818
 
  return 1;
38819
 
}
38820
 
 
38821
 
_ACEOF
38822
 
rm -f conftest$ac_exeext
38823
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38824
 
  (eval $ac_link) 2>&5
38825
 
  ac_status=$?
38826
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38828
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38829
 
  (eval $ac_try) 2>&5
38830
 
  ac_status=$?
38831
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38832
 
  (exit $ac_status); }; }; then
38833
 
  :
38834
 
else
38835
 
  echo "$as_me: program exited with status $ac_status" >&5
38836
 
echo "$as_me: failed program was:" >&5
38837
 
sed 's/^/| /' conftest.$ac_ext >&5
38838
 
 
38839
 
( exit $ac_status )
38840
 
no_xml=yes
38841
 
fi
38842
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38843
 
fi
38844
 
       CFLAGS="$ac_save_CFLAGS"
38845
 
       LIBS="$ac_save_LIBS"
38846
 
     fi
38847
 
  fi
38848
 
 
38849
 
  if test "x$no_xml" = x ; then
38850
 
     echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
38851
 
echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
38852
 
     default_shared_modules="$default_shared_modules pdb_xml"
38853
 
  else
38854
 
     echo "$as_me:$LINENO: result: no" >&5
38855
 
echo "${ECHO_T}no" >&6
38856
 
     if test "$XML2_CONFIG" = "no" ; then
38857
 
       echo "*** The xml2-config script installed by LIBXML could not be found"
38858
 
       echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
38859
 
       echo "*** your path, or set the XML2_CONFIG environment variable to the"
38860
 
       echo "*** full path to xml2-config."
38861
 
     else
38862
 
       if test -f conf.xmltest ; then
38863
 
        :
38864
 
       else
38865
 
          echo "*** Could not run libxml test program, checking why..."
38866
 
          CFLAGS="$CFLAGS $XML_CFLAGS"
38867
 
          LIBS="$LIBS $XML_LIBS"
38868
 
          cat >conftest.$ac_ext <<_ACEOF
38869
 
/* confdefs.h.  */
38870
 
_ACEOF
38871
 
cat confdefs.h >>conftest.$ac_ext
38872
 
cat >>conftest.$ac_ext <<_ACEOF
38873
 
/* end confdefs.h.  */
38874
 
 
38875
 
#include <libxml/xmlversion.h>
38876
 
#include <stdio.h>
38877
 
 
 
42185
/* Override any gcc2 internal prototype to avoid an error.  */
 
42186
#ifdef __cplusplus
 
42187
extern "C"
 
42188
#endif
 
42189
/* We use char because int might match the return type of a gcc2
 
42190
   builtin and then its argument prototype would still apply.  */
 
42191
char nscd_flush_cache ();
38878
42192
int
38879
42193
main ()
38880
42194
{
38881
 
 LIBXML_TEST_VERSION; return 0;
 
42195
nscd_flush_cache ();
38882
42196
  ;
38883
42197
  return 0;
38884
42198
}
38905
42219
  ac_status=$?
38906
42220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907
42221
  (exit $ac_status); }; }; then
38908
 
   echo "*** The test program compiled, but did not run. This usually means"
38909
 
          echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
38910
 
          echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
38911
 
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
38912
 
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
38913
 
          echo "*** is required on your system"
38914
 
          echo "***"
38915
 
          echo "*** If you have an old version installed, it is best to remove it, although"
38916
 
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 
42222
  ac_cv_lib_ext_nscd_nscd_flush_cache=yes;
 
42223
                  ac_cv_lib_ext_nscd=yes
38917
42224
else
38918
42225
  echo "$as_me: failed program was:" >&5
38919
42226
sed 's/^/| /' conftest.$ac_ext >&5
38920
42227
 
38921
 
 echo "*** The test program failed to compile or link. See the file config.log for the"
38922
 
          echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
38923
 
          echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
38924
 
          echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
 
42228
ac_cv_lib_ext_nscd_nscd_flush_cache=no;
 
42229
                  ac_cv_lib_ext_nscd=no
38925
42230
fi
38926
42231
rm -f conftest.err conftest.$ac_objext \
38927
42232
      conftest$ac_exeext conftest.$ac_ext
38928
 
          CFLAGS="$ac_save_CFLAGS"
38929
 
          LIBS="$ac_save_LIBS"
38930
 
       fi
38931
 
     fi
38932
 
 
38933
 
     XML_CFLAGS=""
38934
 
     XML_LIBS=""
38935
 
     { { echo "$as_me:$LINENO: error: Can't find XML libraries while XML support is requested" >&5
38936
 
echo "$as_me: error: Can't find XML libraries while XML support is requested" >&2;}
38937
 
   { (exit 1); exit 1; }; }
38938
 
  fi
38939
 
 
38940
 
 
38941
 
  rm -f conf.xmltest
38942
 
 
38943
 
      CFLAGS="$CFLAGS $XML_CFLAGS"
38944
 
      ;;
38945
 
    mysql|all|yes)
38946
 
      ## pdb_mysql
38947
 
 
38948
 
# Check whether --with-mysql-prefix or --without-mysql-prefix was given.
38949
 
if test "${with_mysql_prefix+set}" = set; then
38950
 
  withval="$with_mysql_prefix"
38951
 
  mysql_prefix="$withval"
38952
 
else
38953
 
  mysql_prefix=""
38954
 
fi;
38955
 
 
38956
 
# Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
38957
 
if test "${with_mysql_exec_prefix+set}" = set; then
38958
 
  withval="$with_mysql_exec_prefix"
38959
 
  mysql_exec_prefix="$withval"
38960
 
else
38961
 
  mysql_exec_prefix=""
38962
 
fi;
38963
 
 
38964
 
  if test x$mysql_exec_prefix != x ; then
38965
 
     mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
38966
 
     if test x${MYSQL_CONFIG+set} != xset ; then
38967
 
        MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
38968
 
     fi
38969
 
  fi
38970
 
  if test x$mysql_prefix != x ; then
38971
 
     mysql_args="$mysql_args --prefix=$mysql_prefix"
38972
 
     if test x${MYSQL_CONFIG+set} != xset ; then
38973
 
        MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
38974
 
     fi
38975
 
  fi
38976
 
 
38977
 
 
38978
 
  # Extract the first word of "mysql_config", so it can be a program name with args.
38979
 
set dummy mysql_config; ac_word=$2
38980
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
38981
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38982
 
if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
38983
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
38984
 
else
38985
 
  case $MYSQL_CONFIG in
38986
 
  [\\/]* | ?:[\\/]*)
38987
 
  ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
38988
 
  ;;
38989
 
  *)
38990
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38991
 
for as_dir in $PATH
38992
 
do
38993
 
  IFS=$as_save_IFS
38994
 
  test -z "$as_dir" && as_dir=.
38995
 
  for ac_exec_ext in '' $ac_executable_extensions; do
38996
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38997
 
    ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38998
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38999
 
    break 2
39000
 
  fi
39001
 
done
39002
 
done
39003
 
 
39004
 
  test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
39005
 
  ;;
39006
 
esac
39007
 
fi
39008
 
MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
39009
 
 
39010
 
if test -n "$MYSQL_CONFIG"; then
39011
 
  echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
39012
 
echo "${ECHO_T}$MYSQL_CONFIG" >&6
39013
 
else
39014
 
  echo "$as_me:$LINENO: result: no" >&5
39015
 
echo "${ECHO_T}no" >&6
39016
 
fi
39017
 
 
39018
 
  echo "$as_me:$LINENO: checking for MYSQL" >&5
39019
 
echo $ECHO_N "checking for MYSQL... $ECHO_C" >&6
39020
 
  no_mysql=""
39021
 
  if test "$MYSQL_CONFIG" = "no" ; then
39022
 
    MYSQL_CFLAGS=""
39023
 
    MYSQL_LIBS=""
39024
 
    echo "$as_me:$LINENO: result: no" >&5
39025
 
echo "${ECHO_T}no" >&6
39026
 
     { { echo "$as_me:$LINENO: error: Can't find MySQL libraries while MySQL support is requested" >&5
39027
 
echo "$as_me: error: Can't find MySQL libraries while MySQL support is requested" >&2;}
39028
 
   { (exit 1); exit 1; }; }
39029
 
  else
39030
 
    MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
39031
 
    MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
39032
 
    echo "$as_me:$LINENO: result: yes" >&5
39033
 
echo "${ECHO_T}yes" >&6
39034
 
    default_shared_modules="$default_shared_modules pdb_mysql"
39035
 
  fi
39036
 
 
39037
 
 
39038
 
 
39039
 
      CFLAGS="$CFLAGS $MYSQL_CFLAGS"
39040
 
      ;;
39041
 
     pgsql|all|yes)
39042
 
      ## pdb_pgsql
39043
 
 
39044
 
# Check whether --with-pgsql-prefix or --without-pgsql-prefix was given.
39045
 
if test "${with_pgsql_prefix+set}" = set; then
39046
 
  withval="$with_pgsql_prefix"
39047
 
  pgsql_prefix="$withval"
39048
 
else
39049
 
  pgsql_prefix=""
39050
 
fi;
39051
 
 
39052
 
# Check whether --with-pgsql-exec-prefix or --without-pgsql-exec-prefix was given.
39053
 
if test "${with_pgsql_exec_prefix+set}" = set; then
39054
 
  withval="$with_pgsql_exec_prefix"
39055
 
  pgsql_exec_prefix="$withval"
39056
 
else
39057
 
  pgsql_exec_prefix=""
39058
 
fi;
39059
 
 
39060
 
  if test x$pgsql_exec_prefix != x ; then
39061
 
     if test x${PGSQL_CONFIG+set} != xset ; then
39062
 
        PGSQL_CONFIG=$pgsql_exec_prefix/bin/pg_config
39063
 
     fi
39064
 
  fi
39065
 
  if test x$pgsql_prefix != x ; then
39066
 
     if test x${PGSQL_CONFIG+set} != xset ; then
39067
 
        PGSQL_CONFIG=$pgsql_prefix/bin/pg_config
39068
 
     fi
39069
 
  fi
39070
 
 
39071
 
 
39072
 
  # Extract the first word of "pg_config", so it can be a program name with args.
39073
 
set dummy pg_config; ac_word=$2
39074
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
39075
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39076
 
if test "${ac_cv_path_PGSQL_CONFIG+set}" = set; then
39077
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
39078
 
else
39079
 
  case $PGSQL_CONFIG in
39080
 
  [\\/]* | ?:[\\/]*)
39081
 
  ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path.
39082
 
  ;;
39083
 
  *)
39084
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39085
 
as_dummy="$PATH:/usr/lib/postgresql/bin"
39086
 
for as_dir in $as_dummy
39087
 
do
39088
 
  IFS=$as_save_IFS
39089
 
  test -z "$as_dir" && as_dir=.
39090
 
  for ac_exec_ext in '' $ac_executable_extensions; do
39091
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39092
 
    ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39093
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39094
 
    break 2
39095
 
  fi
39096
 
done
39097
 
done
39098
 
 
39099
 
  test -z "$ac_cv_path_PGSQL_CONFIG" && ac_cv_path_PGSQL_CONFIG="no"
39100
 
  ;;
39101
 
esac
39102
 
fi
39103
 
PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG
39104
 
 
39105
 
if test -n "$PGSQL_CONFIG"; then
39106
 
  echo "$as_me:$LINENO: result: $PGSQL_CONFIG" >&5
39107
 
echo "${ECHO_T}$PGSQL_CONFIG" >&6
39108
 
else
39109
 
  echo "$as_me:$LINENO: result: no" >&5
39110
 
echo "${ECHO_T}no" >&6
39111
 
fi
39112
 
 
39113
 
  echo "$as_me:$LINENO: checking for PGSQL" >&5
39114
 
echo $ECHO_N "checking for PGSQL... $ECHO_C" >&6
39115
 
  no_pgsql=""
39116
 
  if test "$PGSQL_CONFIG" = "no" ; then
39117
 
    PGSQL_CFLAGS=""
39118
 
    PGSQL_LIBS=""
39119
 
    echo "$as_me:$LINENO: result: no" >&5
39120
 
echo "${ECHO_T}no" >&6
39121
 
     :
39122
 
  else
39123
 
    PGSQL_CFLAGS=-I`$PGSQL_CONFIG --includedir`
39124
 
    PGSQL_LIBS="-lpq -L`$PGSQL_CONFIG --libdir`"
39125
 
    echo "$as_me:$LINENO: result: yes" >&5
39126
 
echo "${ECHO_T}yes" >&6
39127
 
    default_shared_modules="$default_shared_modules pdb_pgsql"
39128
 
  fi
39129
 
 
39130
 
 
39131
 
 
39132
 
      CFLAGS="$CFLAGS $PGSQL_CFLAGS"
39133
 
      ;;
39134
 
    no)
39135
 
      ;;
39136
 
    *)
39137
 
      echo "Unknown module name \"$i\"!  Exiting..."
39138
 
      exit 1
39139
 
      ;;
39140
 
    esac
39141
 
  done
39142
 
else
39143
 
  echo "$as_me:$LINENO: result: no" >&5
39144
 
echo "${ECHO_T}no" >&6
39145
 
 
39146
 
fi;
 
42233
 
 
42234
fi
 
42235
echo "$as_me:$LINENO: result: $ac_cv_lib_ext_nscd_nscd_flush_cache" >&5
 
42236
echo "${ECHO_T}$ac_cv_lib_ext_nscd_nscd_flush_cache" >&6
 
42237
    if test $ac_cv_lib_ext_nscd_nscd_flush_cache = yes; then
 
42238
  cat >>confdefs.h <<_ACEOF
 
42239
#define HAVE_NSCD_FLUSH_CACHE 1
 
42240
_ACEOF
 
42241
 
 
42242
fi
 
42243
 
 
42244
LIBS=$ac_check_lib_ext_save_LIBS
 
42245
 
 
42246
if test $ac_cv_lib_ext_nscd = yes; then
 
42247
  cat >>confdefs.h <<_ACEOF
 
42248
#define HAVE_LIBNSCD 1
 
42249
_ACEOF
 
42250
 
 
42251
                case "$NSCD_LIBS" in
 
42252
                    *-lnscd*)
 
42253
                        ;;
 
42254
                    *)
 
42255
                        NSCD_LIBS="-lnscd $NSCD_LIBS"
 
42256
                        ;;
 
42257
                esac
 
42258
 
 
42259
 
 
42260
fi
 
42261
 
 
42262
PASSDB_LIBS="$PASSDB_LIBS $NSCD_LIBS"
39147
42263
 
39148
42264
#################################################
39149
42265
# check for automount support
39213
42329
 
39214
42330
fi;
39215
42331
 
 
42332
#################################################
 
42333
# check for mount- and umount.cifs support
 
42334
CIFSMOUNT_PROGS=""
 
42335
INSTALL_CIFSMOUNT=""
 
42336
UNINSTALL_CIFSMOUNT=""
 
42337
echo "$as_me:$LINENO: checking whether to build mount.cifs and umount.cifs" >&5
 
42338
echo $ECHO_N "checking whether to build mount.cifs and umount.cifs... $ECHO_C" >&6
 
42339
 
 
42340
# Check whether --with-cifsmount or --without-cifsmount was given.
 
42341
if test "${with_cifsmount+set}" = set; then
 
42342
  withval="$with_cifsmount"
 
42343
   case "$withval" in
 
42344
  no)
 
42345
        echo "$as_me:$LINENO: result: no" >&5
 
42346
echo "${ECHO_T}no" >&6
 
42347
        ;;
 
42348
  *)
 
42349
        case "$host_os" in
 
42350
        *linux*)
 
42351
                echo "$as_me:$LINENO: result: yes" >&5
 
42352
echo "${ECHO_T}yes" >&6
 
42353
 
 
42354
cat >>confdefs.h <<\_ACEOF
 
42355
#define WITH_CIFSMOUNT 1
 
42356
_ACEOF
 
42357
 
 
42358
                CIFSMOUNT_PROGS="bin/mount.cifs bin/umount.cifs"
 
42359
                INSTALL_CIFSMOUNT="installcifsmount"
 
42360
                UNINSTALL_CIFSMOUNT="uninstallcifsmount"
 
42361
                ;;
 
42362
        *)
 
42363
                { { echo "$as_me:$LINENO: error: not on a linux system!" >&5
 
42364
echo "$as_me: error: not on a linux system!" >&2;}
 
42365
   { (exit 1); exit 1; }; }
 
42366
                ;;
 
42367
        esac
 
42368
    ;;
 
42369
  esac
 
42370
else
 
42371
   case "$host_os" in
 
42372
  *linux*)
 
42373
        echo "$as_me:$LINENO: result: yes" >&5
 
42374
echo "${ECHO_T}yes" >&6
 
42375
 
 
42376
cat >>confdefs.h <<\_ACEOF
 
42377
#define WITH_CIFSMOUNT 1
 
42378
_ACEOF
 
42379
 
 
42380
        CIFSMOUNT_PROGS="bin/mount.cifs bin/umount.cifs"
 
42381
        INSTALL_CIFSMOUNT="installcifsmount"
 
42382
        UNINSTALL_CIFSMOUNT="uninstallcifsmount"
 
42383
        ;;
 
42384
  *)
 
42385
        echo "$as_me:$LINENO: result: no" >&5
 
42386
echo "${ECHO_T}no" >&6
 
42387
        ;;
 
42388
  esac
 
42389
 
 
42390
fi;
39216
42391
 
39217
42392
 
39218
42393
#################################################
39332
42507
 
39333
42508
#################################################
39334
42509
# check for pam_smbpass support
 
42510
PAM_MODULES=""
 
42511
INSTALL_PAM_MODULES=""
 
42512
UNINSTALL_PAM_MODULES=""
39335
42513
echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
39336
42514
echo $ECHO_N "checking whether to use pam_smbpass... $ECHO_C" >&6
39337
42515
 
39345
42523
 
39346
42524
       # Conditions under which pam_smbpass should not be built.
39347
42525
 
39348
 
       if test x$PICFLAGS = x; then
 
42526
       if test x"$PICFLAGS" = x; then
39349
42527
          { { echo "$as_me:$LINENO: error: No support for PIC code" >&5
39350
42528
echo "$as_me: error: No support for PIC code" >&2;}
39351
42529
   { (exit 1); exit 1; }; }
39359
42537
   { (exit 1); exit 1; }; }
39360
42538
       else
39361
42539
          AUTH_LIBS="$AUTH_LIBS -lpam"
39362
 
          SHLIB_PROGS="$SHLIB_PROGS bin/pam_smbpass.$SHLIBEXT"
 
42540
          PAM_MODULES="pam_smbpass"
 
42541
          INSTALL_PAM_MODULES="installpammodules"
 
42542
          UNINSTALL_PAM_MODULES="uninstallpammodules"
39363
42543
       fi
39364
42544
    ;;
39365
42545
  *)
39569
42749
fi
39570
42750
fi
39571
42751
 
39572
 
 
39573
 
########################################################################################
39574
 
##
39575
 
## TESTS FOR SAM BACKENDS.  KEEP THESE GROUPED TOGETHER
39576
 
##
39577
 
########################################################################################
39578
 
 
39579
 
#################################################
39580
 
# check for a LDAP password database configuration backwards compatibility
39581
 
echo "$as_me:$LINENO: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
39582
 
echo $ECHO_N "checking whether to use LDAP SAM 2.2 compatible configuration... $ECHO_C" >&6
39583
 
 
39584
 
# Check whether --with-ldapsam or --without-ldapsam was given.
39585
 
if test "${with_ldapsam+set}" = set; then
39586
 
  withval="$with_ldapsam"
39587
 
   case "$withval" in
39588
 
  yes)
39589
 
    echo "$as_me:$LINENO: result: yes" >&5
39590
 
echo "${ECHO_T}yes" >&6
39591
 
 
39592
 
cat >>confdefs.h <<\_ACEOF
39593
 
#define WITH_LDAP_SAMCONFIG 1
39594
 
_ACEOF
39595
 
 
39596
 
    ;;
39597
 
  *)
39598
 
    echo "$as_me:$LINENO: result: no" >&5
39599
 
echo "${ECHO_T}no" >&6
39600
 
    ;;
39601
 
  esac
39602
 
else
39603
 
  echo "$as_me:$LINENO: result: no" >&5
39604
 
echo "${ECHO_T}no" >&6
39605
 
 
39606
 
fi;
39607
 
 
39608
 
########################################################################################
39609
 
##
39610
 
## END OF TESTS FOR SAM BACKENDS.
39611
 
##
39612
 
########################################################################################
39613
 
 
39614
42752
#################################################
39615
42753
# check for a NISPLUS_HOME support
39616
42754
echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
39670
42808
fi;
39671
42809
 
39672
42810
#################################################
39673
 
# check for a shared memory profiling support
39674
 
echo "$as_me:$LINENO: checking whether to use profiling" >&5
39675
 
echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6
39676
 
 
39677
 
# Check whether --with-profiling-data or --without-profiling-data was given.
39678
 
if test "${with_profiling_data+set}" = set; then
39679
 
  withval="$with_profiling_data"
39680
 
   case "$withval" in
39681
 
  yes)
39682
 
    echo "$as_me:$LINENO: result: yes" >&5
39683
 
echo "${ECHO_T}yes" >&6
39684
 
 
39685
 
cat >>confdefs.h <<\_ACEOF
39686
 
#define WITH_PROFILE 1
39687
 
_ACEOF
39688
 
 
39689
 
    ;;
39690
 
  *)
39691
 
    echo "$as_me:$LINENO: result: no" >&5
39692
 
echo "${ECHO_T}no" >&6
39693
 
    ;;
39694
 
  esac
39695
 
else
39696
 
  echo "$as_me:$LINENO: result: no" >&5
39697
 
echo "${ECHO_T}no" >&6
39698
 
 
39699
 
fi;
39700
 
 
39701
 
 
39702
 
#################################################
39703
42811
# check for experimental disk-quotas support
39704
42812
 
39705
42813
samba_cv_WITH_QUOTAS=auto
40500
43608
samba_cv_HAVE_QUOTACTL_4A=no
40501
43609
fi
40502
43610
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40503
 
fi;
 
43611
fi
40504
43612
        CFLAGS="$old_CFLAGS";
40505
43613
        old_CFLAGS="";
40506
43614
        export CFLAGS;
40578
43686
samba_cv_HAVE_QUOTACTL_4B=no
40579
43687
fi
40580
43688
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40581
 
fi;
 
43689
fi
40582
43690
        CFLAGS="$old_CFLAGS";
40583
43691
        old_CFLAGS="";
40584
43692
        export CFLAGS;
40657
43765
samba_cv_HAVE_QUOTACTL_3=no
40658
43766
fi
40659
43767
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40660
 
fi;
 
43768
fi
40661
43769
        CFLAGS="$old_CFLAGS";
40662
43770
        old_CFLAGS="";
40663
43771
        export CFLAGS;
41515
44623
 
41516
44624
INSTALLLIBCMD_SH=:
41517
44625
INSTALLLIBCMD_A=:
 
44626
UNINSTALLLIBCMD_SH=:
 
44627
UNINSTALLLIBCMD_A=:
41518
44628
 
41519
44629
if test $BLDSHARED = true; then
41520
44630
        INSTALLLIBCMD_SH="\$(INSTALLCMD)"
 
44631
        UNINSTALLLIBCMD_SH="rm -f"
41521
44632
fi
41522
44633
if test $enable_static = yes; then
41523
44634
        INSTALLLIBCMD_A="\$(INSTALLCMD)"
 
44635
        UNINSTALLLIBCMD_A="rm -f"
41524
44636
fi
41525
44637
 
41526
44638
#################################################
41527
44639
# should we build libmsrpc?
41528
44640
INSTALL_LIBMSRPC=
 
44641
UNINSTALL_LIBMSRPC=
41529
44642
LIBMSRPC_SHARED=
41530
44643
LIBMSRPC=
41531
44644
echo "$as_me:$LINENO: checking whether to build the libmsrpc shared library" >&5
41554
44667
        LIBMSRPC=libmsrpc
41555
44668
     fi
41556
44669
     INSTALL_LIBMSRPC=installlibmsrpc
 
44670
     UNINSTALL_LIBMSRPC=uninstalllibmsrpc
41557
44671
     ;;
41558
44672
  esac
41559
44673
else
41573
44687
     LIBMSRPC=libmsrpc
41574
44688
  fi
41575
44689
  INSTALL_LIBMSRPC=installlibmsrpc
 
44690
  UNINSTALL_LIBMSRPC=uninstalllibmsrpc
41576
44691
 
41577
44692
fi;
41578
44693
 
41579
44694
#################################################
41580
44695
# should we build libsmbclient?
41581
44696
INSTALL_LIBSMBCLIENT=
 
44697
UNINSTALL_LIBSMBCLIENT=
41582
44698
LIBSMBCLIENT_SHARED=
41583
44699
LIBSMBCLIENT=
41584
44700
echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
41607
44723
        LIBSMBCLIENT=libsmbclient
41608
44724
     fi
41609
44725
     INSTALL_LIBSMBCLIENT=installclientlib
 
44726
     UNINSTALL_LIBSMBCLIENT=uninstallclientlib
41610
44727
     ;;
41611
44728
  esac
41612
44729
else
41626
44743
     LIBSMBCLIENT=libsmbclient
41627
44744
  fi
41628
44745
  INSTALL_LIBSMBCLIENT=installclientlib
 
44746
  UNINSTALL_LIBSMBCLIENT=uninstallclientlib
41629
44747
 
41630
44748
fi;
41631
44749
 
42271
45389
fi
42272
45390
 
42273
45391
#################################################
 
45392
# check for cluster extensions
 
45393
 
 
45394
echo "$as_me:$LINENO: checking whether to include cluster support" >&5
 
45395
echo $ECHO_N "checking whether to include cluster support... $ECHO_C" >&6
 
45396
 
 
45397
# Check whether --with-cluster-support or --without-cluster-support was given.
 
45398
if test "${with_cluster_support+set}" = set; then
 
45399
  withval="$with_cluster_support"
 
45400
 
 
45401
fi;
 
45402
if test "x$with_cluster_support" = "xyes"; then
 
45403
 
 
45404
cat >>confdefs.h <<\_ACEOF
 
45405
#define CLUSTER_SUPPORT 1
 
45406
_ACEOF
 
45407
 
 
45408
    echo "$as_me:$LINENO: result: yes" >&5
 
45409
echo "${ECHO_T}yes" >&6
 
45410
else
 
45411
    echo "$as_me:$LINENO: result: no" >&5
 
45412
echo "${ECHO_T}no" >&6
 
45413
fi
 
45414
 
 
45415
 
 
45416
#################################################
42274
45417
# check for ACL support
42275
45418
 
42276
45419
echo "$as_me:$LINENO: checking whether to support ACLs" >&5
42868
46011
echo "${ECHO_T}yes" >&6
42869
46012
        case "$host_os" in
42870
46013
        *)
 
46014
                AIO_LIBS=$LIBS
42871
46015
                echo "$as_me:$LINENO: checking for aio_read in -lrt" >&5
42872
46016
echo $ECHO_N "checking for aio_read in -lrt... $ECHO_C" >&6
42873
46017
if test "${ac_cv_lib_rt_aio_read+set}" = set; then
44712
47856
WINBIND_NSS="nsswitch/libnss_winbind.$SHLIBEXT"
44713
47857
WINBIND_WINS_NSS="nsswitch/libnss_wins.$SHLIBEXT"
44714
47858
WINBIND_NSS_LDSHFLAGS=$LDSHFLAGS
 
47859
NSSSONAMEVERSIONSUFFIX=""
44715
47860
 
44716
47861
case "$host_os" in
44717
47862
        *linux*)
 
47863
                NSSSONAMEVERSIONSUFFIX=".2"
44718
47864
                WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_linux.o"
44719
47865
                ;;
44720
47866
        *freebsd[5-9]*)
44721
47867
                # FreeBSD winbind client is implemented as a wrapper around
44722
47868
                # the Linux version.
 
47869
                NSSSONAMEVERSIONSUFFIX=".1"
44723
47870
                WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_freebsd.o \
44724
47871
                    nsswitch/winbind_nss_linux.o"
44725
47872
                WINBIND_NSS="nsswitch/nss_winbind.$SHLIBEXT"
44734
47881
        *solaris*)
44735
47882
                # Solaris winbind client is implemented as a wrapper around
44736
47883
                # the Linux version.
 
47884
                NSSSONAMEVERSIONSUFFIX=".1"
44737
47885
                WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o \
44738
47886
                    nsswitch/winbind_nss_linux.o"
44739
47887
                WINBIND_NSS_EXTRA_LIBS="-lsocket"
44761
47909
 
44762
47910
 
44763
47911
 
 
47912
 
44764
47913
# Check the setting of --with-winbind
44765
47914
 
44766
47915
 
44805
47954
                SHLIB_PROGS="$SHLIB_PROGS $WINBIND_NSS $WINBIND_WINS_NSS"
44806
47955
 
44807
47956
                if test x"$with_pam" = x"yes"; then
44808
 
                        SHLIB_PROGS="$SHLIB_PROGS nsswitch/pam_winbind.$SHLIBEXT"
 
47957
                        PAM_MODULES="$PAM_MODULES pam_winbind"
 
47958
                        INSTALL_PAM_MODULES="installpammodules"
 
47959
                        UNINSTALL_PAM_MODULES="uninstallpammodules"
44809
47960
                fi
44810
47961
        fi
44811
47962
else
45478
48629
echo "${ECHO_T}yes" >&6
45479
48630
    BUILD_POPT='$(POPT_OBJS)'
45480
48631
        POPTLIBS='$(POPT_OBJS)'
45481
 
    FLAGS1="-I$srcdir/popt"
 
48632
    FLAGS1="-I\$(srcdir)/popt"
45482
48633
else
45483
48634
    echo "$as_me:$LINENO: result: no" >&5
45484
48635
echo "${ECHO_T}no" >&6
45490
48641
 
45491
48642
 
45492
48643
#################################################
 
48644
# Check to see if we should use the included iniparser
 
48645
 
 
48646
 
 
48647
# Check whether --with-included-iniparser or --without-included-iniparser was given.
 
48648
if test "${with_included_iniparser+set}" = set; then
 
48649
  withval="$with_included_iniparser"
 
48650
 
 
48651
  case "$withval" in
 
48652
        yes)
 
48653
                INCLUDED_INIPARSER=yes
 
48654
                ;;
 
48655
        no)
 
48656
                INCLUDED_INIPARSER=no
 
48657
                ;;
 
48658
  esac
 
48659
fi;
 
48660
if test x"$INCLUDED_INIPARSER" != x"yes"; then
 
48661
    echo "$as_me:$LINENO: checking for iniparser_load in -liniparser" >&5
 
48662
echo $ECHO_N "checking for iniparser_load in -liniparser... $ECHO_C" >&6
 
48663
if test "${ac_cv_lib_iniparser_iniparser_load+set}" = set; then
 
48664
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
48665
else
 
48666
  ac_check_lib_save_LIBS=$LIBS
 
48667
LIBS="-liniparser  $LIBS"
 
48668
cat >conftest.$ac_ext <<_ACEOF
 
48669
/* confdefs.h.  */
 
48670
_ACEOF
 
48671
cat confdefs.h >>conftest.$ac_ext
 
48672
cat >>conftest.$ac_ext <<_ACEOF
 
48673
/* end confdefs.h.  */
 
48674
 
 
48675
/* Override any gcc2 internal prototype to avoid an error.  */
 
48676
#ifdef __cplusplus
 
48677
extern "C"
 
48678
#endif
 
48679
/* We use char because int might match the return type of a gcc2
 
48680
   builtin and then its argument prototype would still apply.  */
 
48681
char iniparser_load ();
 
48682
int
 
48683
main ()
 
48684
{
 
48685
iniparser_load ();
 
48686
  ;
 
48687
  return 0;
 
48688
}
 
48689
_ACEOF
 
48690
rm -f conftest.$ac_objext conftest$ac_exeext
 
48691
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
48692
  (eval $ac_link) 2>conftest.er1
 
48693
  ac_status=$?
 
48694
  grep -v '^ *+' conftest.er1 >conftest.err
 
48695
  rm -f conftest.er1
 
48696
  cat conftest.err >&5
 
48697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
48698
  (exit $ac_status); } &&
 
48699
         { ac_try='test -z "$ac_c_werror_flag"
 
48700
                         || test ! -s conftest.err'
 
48701
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
48702
  (eval $ac_try) 2>&5
 
48703
  ac_status=$?
 
48704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
48705
  (exit $ac_status); }; } &&
 
48706
         { ac_try='test -s conftest$ac_exeext'
 
48707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
48708
  (eval $ac_try) 2>&5
 
48709
  ac_status=$?
 
48710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
48711
  (exit $ac_status); }; }; then
 
48712
  ac_cv_lib_iniparser_iniparser_load=yes
 
48713
else
 
48714
  echo "$as_me: failed program was:" >&5
 
48715
sed 's/^/| /' conftest.$ac_ext >&5
 
48716
 
 
48717
ac_cv_lib_iniparser_iniparser_load=no
 
48718
fi
 
48719
rm -f conftest.err conftest.$ac_objext \
 
48720
      conftest$ac_exeext conftest.$ac_ext
 
48721
LIBS=$ac_check_lib_save_LIBS
 
48722
fi
 
48723
echo "$as_me:$LINENO: result: $ac_cv_lib_iniparser_iniparser_load" >&5
 
48724
echo "${ECHO_T}$ac_cv_lib_iniparser_iniparser_load" >&6
 
48725
if test $ac_cv_lib_iniparser_iniparser_load = yes; then
 
48726
  INCLUDED_INIPARSER=no
 
48727
else
 
48728
  INCLUDED_INIPARSER=yes
 
48729
fi
 
48730
 
 
48731
fi
 
48732
 
 
48733
echo "$as_me:$LINENO: checking whether to use included iniparser" >&5
 
48734
echo $ECHO_N "checking whether to use included iniparser... $ECHO_C" >&6
 
48735
if test x"$INCLUDED_INIPARSER" = x"yes"; then
 
48736
    echo "$as_me:$LINENO: result: yes" >&5
 
48737
echo "${ECHO_T}yes" >&6
 
48738
    BUILD_INIPARSER='$(INIPARSER_OBJ)'
 
48739
        INIPARSERLIBS=""
 
48740
    FLAGS1="$FLAGS1 -I\$(srcdir)/iniparser/src"
 
48741
else
 
48742
    echo "$as_me:$LINENO: result: no" >&5
 
48743
echo "${ECHO_T}no" >&6
 
48744
        BUILD_INIPARSER=""
 
48745
    INIPARSERLIBS="-liniparser"
 
48746
fi
 
48747
 
 
48748
 
 
48749
 
 
48750
 
 
48751
 
 
48752
 
 
48753
#################################################
45493
48754
# Check if the user wants Python
45494
48755
 
45495
48756
# At the moment, you can use this to set which Python binary to link
45534
48795
        fi
45535
48796
done
45536
48797
 
45537
 
MODULE_pdb_guest=STATIC
45538
48798
MODULE_rpc_spoolss=STATIC
45539
48799
MODULE_rpc_srv=STATIC
45540
48800
MODULE_idmap_tdb=STATIC
45563
48823
fi
45564
48824
fi;
45565
48825
 
45566
 
###########################################################################
45567
 
## contributed pdb_modules
45568
 
 
45569
 
 
45570
 
        echo "$as_me:$LINENO: checking how to build pdb_xml" >&5
45571
 
echo $ECHO_N "checking how to build pdb_xml... $ECHO_C" >&6
45572
 
        if test "$MODULE_pdb_xml"; then
45573
 
                DEST=$MODULE_pdb_xml
45574
 
        elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_xml"; then
45575
 
                DEST=$MODULE_pdb
45576
 
        else
45577
 
                DEST=$MODULE_DEFAULT_pdb_xml
45578
 
        fi
45579
 
 
45580
 
        if test x"$DEST" = xSHARED; then
45581
 
 
45582
 
cat >>confdefs.h <<\_ACEOF
45583
 
#define pdb_xml_init init_module
45584
 
_ACEOF
45585
 
 
45586
 
                PDB_MODULES="$PDB_MODULES "bin/xml.$SHLIBEXT""
45587
 
                echo "$as_me:$LINENO: result: shared" >&5
45588
 
echo "${ECHO_T}shared" >&6
45589
 
 
45590
 
                string_shared_modules="$string_shared_modules pdb_xml"
45591
 
        elif test x"$DEST" = xSTATIC; then
45592
 
                init_static_modules_pdb="$init_static_modules_pdb pdb_xml_init();"
45593
 
                string_static_modules="$string_static_modules pdb_xml"
45594
 
                PDB_STATIC="$PDB_STATIC passdb/pdb_xml.o"
45595
 
 
45596
 
                 PASSDB_LIBS="$PASSDB_LIBS $XML_LIBS"
45597
 
                echo "$as_me:$LINENO: result: static" >&5
45598
 
echo "${ECHO_T}static" >&6
45599
 
        else
45600
 
            string_ignored_modules="$string_ignored_modules pdb_xml"
45601
 
                echo "$as_me:$LINENO: result: not" >&5
45602
 
echo "${ECHO_T}not" >&6
45603
 
        fi
45604
 
 
45605
 
 
45606
 
        echo "$as_me:$LINENO: checking how to build pdb_mysql" >&5
45607
 
echo $ECHO_N "checking how to build pdb_mysql... $ECHO_C" >&6
45608
 
        if test "$MODULE_pdb_mysql"; then
45609
 
                DEST=$MODULE_pdb_mysql
45610
 
        elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_mysql"; then
45611
 
                DEST=$MODULE_pdb
45612
 
        else
45613
 
                DEST=$MODULE_DEFAULT_pdb_mysql
45614
 
        fi
45615
 
 
45616
 
        if test x"$DEST" = xSHARED; then
45617
 
 
45618
 
cat >>confdefs.h <<\_ACEOF
45619
 
#define pdb_mysql_init init_module
45620
 
_ACEOF
45621
 
 
45622
 
                PDB_MODULES="$PDB_MODULES "bin/mysql.$SHLIBEXT""
45623
 
                echo "$as_me:$LINENO: result: shared" >&5
45624
 
echo "${ECHO_T}shared" >&6
45625
 
 
45626
 
                string_shared_modules="$string_shared_modules pdb_mysql"
45627
 
        elif test x"$DEST" = xSTATIC; then
45628
 
                init_static_modules_pdb="$init_static_modules_pdb pdb_mysql_init();"
45629
 
                string_static_modules="$string_static_modules pdb_mysql"
45630
 
                PDB_STATIC="$PDB_STATIC passdb/pdb_mysql.o"
45631
 
 
45632
 
                 PASSDB_LIBS="$PASSDB_LIBS $MYSQL_LIBS"
45633
 
                echo "$as_me:$LINENO: result: static" >&5
45634
 
echo "${ECHO_T}static" >&6
45635
 
        else
45636
 
            string_ignored_modules="$string_ignored_modules pdb_mysql"
45637
 
                echo "$as_me:$LINENO: result: not" >&5
45638
 
echo "${ECHO_T}not" >&6
45639
 
        fi
45640
 
 
45641
 
 
45642
 
        echo "$as_me:$LINENO: checking how to build pdb_pgsql" >&5
45643
 
echo $ECHO_N "checking how to build pdb_pgsql... $ECHO_C" >&6
45644
 
        if test "$MODULE_pdb_pgsql"; then
45645
 
                DEST=$MODULE_pdb_pgsql
45646
 
        elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_pgsql"; then
45647
 
                DEST=$MODULE_pdb
45648
 
        else
45649
 
                DEST=$MODULE_DEFAULT_pdb_pgsql
45650
 
        fi
45651
 
 
45652
 
        if test x"$DEST" = xSHARED; then
45653
 
 
45654
 
cat >>confdefs.h <<\_ACEOF
45655
 
#define pdb_pgsql_init init_module
45656
 
_ACEOF
45657
 
 
45658
 
                PDB_MODULES="$PDB_MODULES "bin/pgsql.$SHLIBEXT""
45659
 
                echo "$as_me:$LINENO: result: shared" >&5
45660
 
echo "${ECHO_T}shared" >&6
45661
 
 
45662
 
                string_shared_modules="$string_shared_modules pdb_pgsql"
45663
 
        elif test x"$DEST" = xSTATIC; then
45664
 
                init_static_modules_pdb="$init_static_modules_pdb pdb_pgsql_init();"
45665
 
                string_static_modules="$string_static_modules pdb_pgsql"
45666
 
                PDB_STATIC="$PDB_STATIC passdb/pdb_pgsql.o"
45667
 
 
45668
 
                 PASSDB_LIBS="$PASSDB_LIBS $PGSQL_LIBS"
45669
 
                echo "$as_me:$LINENO: result: static" >&5
45670
 
echo "${ECHO_T}static" >&6
45671
 
        else
45672
 
            string_ignored_modules="$string_ignored_modules pdb_pgsql"
45673
 
                echo "$as_me:$LINENO: result: not" >&5
45674
 
echo "${ECHO_T}not" >&6
45675
 
        fi
45676
 
 
45677
 
 
45678
 
## end of contributed pdb_modules
45679
 
###########################################################################
45680
 
 
45681
48826
 
45682
48827
        echo "$as_me:$LINENO: checking how to build pdb_ldap" >&5
45683
48828
echo $ECHO_N "checking how to build pdb_ldap... $ECHO_C" >&6
45701
48846
 
45702
48847
                string_shared_modules="$string_shared_modules pdb_ldap"
45703
48848
        elif test x"$DEST" = xSTATIC; then
45704
 
                init_static_modules_pdb="$init_static_modules_pdb pdb_ldap_init();"
 
48849
                init_static_modules_pdb="$init_static_modules_pdb  pdb_ldap_init();"
 
48850
                decl_static_modules_pdb="$decl_static_modules_pdb extern NTSTATUS pdb_ldap_init(void);"
45705
48851
                string_static_modules="$string_static_modules pdb_ldap"
45706
48852
                PDB_STATIC="$PDB_STATIC passdb/pdb_ldap.o passdb/pdb_nds.o"
45707
48853
 
45737
48883
 
45738
48884
                string_shared_modules="$string_shared_modules pdb_smbpasswd"
45739
48885
        elif test x"$DEST" = xSTATIC; then
45740
 
                init_static_modules_pdb="$init_static_modules_pdb pdb_smbpasswd_init();"
 
48886
                init_static_modules_pdb="$init_static_modules_pdb  pdb_smbpasswd_init();"
 
48887
                decl_static_modules_pdb="$decl_static_modules_pdb extern NTSTATUS pdb_smbpasswd_init(void);"
45741
48888
                string_static_modules="$string_static_modules pdb_smbpasswd"
45742
48889
                PDB_STATIC="$PDB_STATIC passdb/pdb_smbpasswd.o"
45743
48890
 
45773
48920
 
45774
48921
                string_shared_modules="$string_shared_modules pdb_tdbsam"
45775
48922
        elif test x"$DEST" = xSTATIC; then
45776
 
                init_static_modules_pdb="$init_static_modules_pdb pdb_tdbsam_init();"
 
48923
                init_static_modules_pdb="$init_static_modules_pdb  pdb_tdbsam_init();"
 
48924
                decl_static_modules_pdb="$decl_static_modules_pdb extern NTSTATUS pdb_tdbsam_init(void);"
45777
48925
                string_static_modules="$string_static_modules pdb_tdbsam"
45778
48926
                PDB_STATIC="$PDB_STATIC passdb/pdb_tdb.o"
45779
48927
 
45787
48935
        fi
45788
48936
 
45789
48937
 
45790
 
        echo "$as_me:$LINENO: checking how to build pdb_guest" >&5
45791
 
echo $ECHO_N "checking how to build pdb_guest... $ECHO_C" >&6
45792
 
        if test "$MODULE_pdb_guest"; then
45793
 
                DEST=$MODULE_pdb_guest
45794
 
        elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_guest"; then
45795
 
                DEST=$MODULE_pdb
45796
 
        else
45797
 
                DEST=$MODULE_DEFAULT_pdb_guest
45798
 
        fi
45799
 
 
45800
 
        if test x"$DEST" = xSHARED; then
45801
 
 
45802
 
cat >>confdefs.h <<\_ACEOF
45803
 
#define pdb_guest_init init_module
45804
 
_ACEOF
45805
 
 
45806
 
                PDB_MODULES="$PDB_MODULES "bin/guest.$SHLIBEXT""
45807
 
                echo "$as_me:$LINENO: result: shared" >&5
45808
 
echo "${ECHO_T}shared" >&6
45809
 
 
45810
 
                string_shared_modules="$string_shared_modules pdb_guest"
45811
 
        elif test x"$DEST" = xSTATIC; then
45812
 
                init_static_modules_pdb="$init_static_modules_pdb pdb_guest_init();"
45813
 
                string_static_modules="$string_static_modules pdb_guest"
45814
 
                PDB_STATIC="$PDB_STATIC passdb/pdb_guest.o"
45815
 
 
45816
 
 
45817
 
                echo "$as_me:$LINENO: result: static" >&5
45818
 
echo "${ECHO_T}static" >&6
45819
 
        else
45820
 
            string_ignored_modules="$string_ignored_modules pdb_guest"
45821
 
                echo "$as_me:$LINENO: result: not" >&5
45822
 
echo "${ECHO_T}not" >&6
45823
 
        fi
45824
 
 
45825
 
 
45826
48938
 
45827
48939
 
45828
48940
 
45830
48942
#define static_init_pdb {$init_static_modules_pdb}
45831
48943
_ACEOF
45832
48944
 
 
48945
 
 
48946
cat >>confdefs.h <<_ACEOF
 
48947
#define static_decl_pdb $decl_static_modules_pdb
 
48948
_ACEOF
 
48949
 
45833
48950
        rm -f passdb/pdb_interface.o
45834
48951
 
45835
48952
 
45857
48974
 
45858
48975
                string_shared_modules="$string_shared_modules rpc_lsa"
45859
48976
        elif test x"$DEST" = xSTATIC; then
45860
 
                init_static_modules_rpc="$init_static_modules_rpc rpc_lsa_init();"
 
48977
                init_static_modules_rpc="$init_static_modules_rpc  rpc_lsa_init();"
 
48978
                decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_lsa_init(void);"
45861
48979
                string_static_modules="$string_static_modules rpc_lsa"
45862
48980
                RPC_STATIC="$RPC_STATIC \$(RPC_LSA_OBJ)"
45863
48981
 
45893
49011
 
45894
49012
                string_shared_modules="$string_shared_modules rpc_reg"
45895
49013
        elif test x"$DEST" = xSTATIC; then
45896
 
                init_static_modules_rpc="$init_static_modules_rpc rpc_reg_init();"
 
49014
                init_static_modules_rpc="$init_static_modules_rpc  rpc_reg_init();"
 
49015
                decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_reg_init(void);"
45897
49016
                string_static_modules="$string_static_modules rpc_reg"
45898
49017
                RPC_STATIC="$RPC_STATIC \$(RPC_REG_OBJ)"
45899
49018
 
45929
49048
 
45930
49049
                string_shared_modules="$string_shared_modules rpc_lsa_ds"
45931
49050
        elif test x"$DEST" = xSTATIC; then
45932
 
                init_static_modules_rpc="$init_static_modules_rpc rpc_lsa_ds_init();"
 
49051
                init_static_modules_rpc="$init_static_modules_rpc  rpc_lsa_ds_init();"
 
49052
                decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_lsa_ds_init(void);"
45933
49053
                string_static_modules="$string_static_modules rpc_lsa_ds"
45934
49054
                RPC_STATIC="$RPC_STATIC \$(RPC_LSA_DS_OBJ)"
45935
49055
 
45965
49085
 
45966
49086
                string_shared_modules="$string_shared_modules rpc_wks"
45967
49087
        elif test x"$DEST" = xSTATIC; then
45968
 
                init_static_modules_rpc="$init_static_modules_rpc rpc_wks_init();"
 
49088
                init_static_modules_rpc="$init_static_modules_rpc  rpc_wks_init();"
 
49089
                decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_wks_init(void);"
45969
49090
                string_static_modules="$string_static_modules rpc_wks"
45970
49091
                RPC_STATIC="$RPC_STATIC \$(RPC_WKS_OBJ)"
45971
49092
 
46001
49122
 
46002
49123
                string_shared_modules="$string_shared_modules rpc_svcctl"
46003
49124
        elif test x"$DEST" = xSTATIC; then
46004
 
                init_static_modules_rpc="$init_static_modules_rpc rpc_svcctl_init();"
 
49125
                init_static_modules_rpc="$init_static_modules_rpc  rpc_svcctl_init();"
 
49126
                decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_svcctl_init(void);"
46005
49127
                string_static_modules="$string_static_modules rpc_svcctl"
46006
49128
                RPC_STATIC="$RPC_STATIC \$(RPC_SVCCTL_OBJ)"
46007
49129
 
46037
49159
 
46038
49160
                string_shared_modules="$string_shared_modules rpc_ntsvcs"
46039
49161
        elif test x"$DEST" = xSTATIC; then
46040
 
                init_static_modules_rpc="$init_static_modules_rpc rpc_ntsvcs_init();"
 
49162
                init_static_modules_rpc="$init_static_modules_rpc  rpc_ntsvcs_init();"
 
49163
                decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_ntsvcs_init(void);"
46041
49164
                string_static_modules="$string_static_modules rpc_ntsvcs"
46042
49165
                RPC_STATIC="$RPC_STATIC \$(RPC_NTSVCS_OBJ)"
46043
49166
 
46073
49196
 
46074
49197
                string_shared_modules="$string_shared_modules rpc_net"
46075
49198
        elif test x"$DEST" = xSTATIC; then
46076
 
                init_static_modules_rpc="$init_static_modules_rpc rpc_net_init();"
 
49199
                init_static_modules_rpc="$init_static_modules_rpc  rpc_net_init();"
 
49200
                decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_net_init(void);"
46077
49201
                string_static_modules="$string_static_modules rpc_net"
46078
49202
                RPC_STATIC="$RPC_STATIC \$(RPC_NETLOG_OBJ)"
46079
49203
 
46087
49211
        fi
46088
49212
 
46089
49213
 
46090
 
        echo "$as_me:$LINENO: checking how to build rpc_dfs" >&5
46091
 
echo $ECHO_N "checking how to build rpc_dfs... $ECHO_C" >&6
46092
 
        if test "$MODULE_rpc_dfs"; then
46093
 
                DEST=$MODULE_rpc_dfs
46094
 
        elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_dfs"; then
 
49214
        echo "$as_me:$LINENO: checking how to build rpc_netdfs" >&5
 
49215
echo $ECHO_N "checking how to build rpc_netdfs... $ECHO_C" >&6
 
49216
        if test "$MODULE_rpc_netdfs"; then
 
49217
                DEST=$MODULE_rpc_netdfs
 
49218
        elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_netdfs"; then
46095
49219
                DEST=$MODULE_rpc
46096
49220
        else
46097
 
                DEST=$MODULE_DEFAULT_rpc_dfs
 
49221
                DEST=$MODULE_DEFAULT_rpc_netdfs
46098
49222
        fi
46099
49223
 
46100
49224
        if test x"$DEST" = xSHARED; then
46101
49225
 
46102
49226
cat >>confdefs.h <<\_ACEOF
46103
 
#define rpc_dfs_init init_module
 
49227
#define rpc_netdfs_init init_module
46104
49228
_ACEOF
46105
49229
 
46106
49230
                RPC_MODULES="$RPC_MODULES "bin/librpc_netdfs.$SHLIBEXT""
46107
49231
                echo "$as_me:$LINENO: result: shared" >&5
46108
49232
echo "${ECHO_T}shared" >&6
46109
49233
 
46110
 
                string_shared_modules="$string_shared_modules rpc_dfs"
 
49234
                string_shared_modules="$string_shared_modules rpc_netdfs"
46111
49235
        elif test x"$DEST" = xSTATIC; then
46112
 
                init_static_modules_rpc="$init_static_modules_rpc rpc_dfs_init();"
46113
 
                string_static_modules="$string_static_modules rpc_dfs"
 
49236
                init_static_modules_rpc="$init_static_modules_rpc  rpc_netdfs_init();"
 
49237
                decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_netdfs_init(void);"
 
49238
                string_static_modules="$string_static_modules rpc_netdfs"
46114
49239
                RPC_STATIC="$RPC_STATIC \$(RPC_DFS_OBJ)"
46115
49240
 
46116
49241
 
46117
49242
                echo "$as_me:$LINENO: result: static" >&5
46118
49243
echo "${ECHO_T}static" >&6
46119
49244
        else
46120
 
            string_ignored_modules="$string_ignored_modules rpc_dfs"
 
49245
            string_ignored_modules="$string_ignored_modules rpc_netdfs"
46121
49246
                echo "$as_me:$LINENO: result: not" >&5
46122
49247
echo "${ECHO_T}not" >&6
46123
49248
        fi
46145
49270
 
46146
49271
                string_shared_modules="$string_shared_modules rpc_srv"
46147
49272
        elif test x"$DEST" = xSTATIC; then
46148
 
                init_static_modules_rpc="$init_static_modules_rpc rpc_srv_init();"
 
49273
                init_static_modules_rpc="$init_static_modules_rpc  rpc_srv_init();"
 
49274
                decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_srv_init(void);"
46149
49275
                string_static_modules="$string_static_modules rpc_srv"
46150
49276
                RPC_STATIC="$RPC_STATIC \$(RPC_SVC_OBJ)"
46151
49277
 
46181
49307
 
46182
49308
                string_shared_modules="$string_shared_modules rpc_spoolss"
46183
49309
        elif test x"$DEST" = xSTATIC; then
46184
 
                init_static_modules_rpc="$init_static_modules_rpc rpc_spoolss_init();"
 
49310
                init_static_modules_rpc="$init_static_modules_rpc  rpc_spoolss_init();"
 
49311
                decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_spoolss_init(void);"
46185
49312
                string_static_modules="$string_static_modules rpc_spoolss"
46186
49313
                RPC_STATIC="$RPC_STATIC \$(RPC_SPOOLSS_OBJ)"
46187
49314
 
46217
49344
 
46218
49345
                string_shared_modules="$string_shared_modules rpc_eventlog"
46219
49346
        elif test x"$DEST" = xSTATIC; then
46220
 
                init_static_modules_rpc="$init_static_modules_rpc rpc_eventlog_init();"
 
49347
                init_static_modules_rpc="$init_static_modules_rpc  rpc_eventlog_init();"
 
49348
                decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_eventlog_init(void);"
46221
49349
                string_static_modules="$string_static_modules rpc_eventlog"
46222
49350
                RPC_STATIC="$RPC_STATIC \$(RPC_EVENTLOG_OBJ)"
46223
49351
 
46253
49381
 
46254
49382
                string_shared_modules="$string_shared_modules rpc_samr"
46255
49383
        elif test x"$DEST" = xSTATIC; then
46256
 
                init_static_modules_rpc="$init_static_modules_rpc rpc_samr_init();"
 
49384
                init_static_modules_rpc="$init_static_modules_rpc  rpc_samr_init();"
 
49385
                decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_samr_init(void);"
46257
49386
                string_static_modules="$string_static_modules rpc_samr"
46258
49387
                RPC_STATIC="$RPC_STATIC \$(RPC_SAMR_OBJ)"
46259
49388
 
46289
49418
 
46290
49419
                string_shared_modules="$string_shared_modules rpc_echo"
46291
49420
        elif test x"$DEST" = xSTATIC; then
46292
 
                init_static_modules_rpc="$init_static_modules_rpc rpc_echo_init();"
 
49421
                init_static_modules_rpc="$init_static_modules_rpc  rpc_echo_init();"
 
49422
                decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_echo_init(void);"
46293
49423
                string_static_modules="$string_static_modules rpc_echo"
46294
49424
                RPC_STATIC="$RPC_STATIC \$(RPC_ECHO_OBJ)"
46295
49425
 
46310
49440
#define static_init_rpc {$init_static_modules_rpc}
46311
49441
_ACEOF
46312
49442
 
 
49443
 
 
49444
cat >>confdefs.h <<_ACEOF
 
49445
#define static_decl_rpc $decl_static_modules_rpc
 
49446
_ACEOF
 
49447
 
46313
49448
        rm -f smbd/server.o
46314
49449
 
46315
49450
 
46336
49471
 
46337
49472
                string_shared_modules="$string_shared_modules idmap_ldap"
46338
49473
        elif test x"$DEST" = xSTATIC; then
46339
 
                init_static_modules_idmap="$init_static_modules_idmap idmap_ldap_init();"
 
49474
                init_static_modules_idmap="$init_static_modules_idmap  idmap_ldap_init();"
 
49475
                decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_ldap_init(void);"
46340
49476
                string_static_modules="$string_static_modules idmap_ldap"
46341
49477
                IDMAP_STATIC="$IDMAP_STATIC sam/idmap_ldap.o"
46342
49478
 
46372
49508
 
46373
49509
                string_shared_modules="$string_shared_modules idmap_tdb"
46374
49510
        elif test x"$DEST" = xSTATIC; then
46375
 
                init_static_modules_idmap="$init_static_modules_idmap idmap_tdb_init();"
 
49511
                init_static_modules_idmap="$init_static_modules_idmap  idmap_tdb_init();"
 
49512
                decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_tdb_init(void);"
46376
49513
                string_static_modules="$string_static_modules idmap_tdb"
46377
49514
                IDMAP_STATIC="$IDMAP_STATIC sam/idmap_tdb.o"
46378
49515
 
46408
49545
 
46409
49546
                string_shared_modules="$string_shared_modules idmap_rid"
46410
49547
        elif test x"$DEST" = xSTATIC; then
46411
 
                init_static_modules_idmap="$init_static_modules_idmap idmap_rid_init();"
 
49548
                init_static_modules_idmap="$init_static_modules_idmap  idmap_rid_init();"
 
49549
                decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_rid_init(void);"
46412
49550
                string_static_modules="$string_static_modules idmap_rid"
46413
49551
                IDMAP_STATIC="$IDMAP_STATIC sam/idmap_rid.o"
46414
49552
 
46444
49582
 
46445
49583
                string_shared_modules="$string_shared_modules idmap_ad"
46446
49584
        elif test x"$DEST" = xSTATIC; then
46447
 
                init_static_modules_idmap="$init_static_modules_idmap idmap_ad_init();"
 
49585
                init_static_modules_idmap="$init_static_modules_idmap  idmap_ad_init();"
 
49586
                decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_ad_init(void);"
46448
49587
                string_static_modules="$string_static_modules idmap_ad"
46449
49588
                IDMAP_STATIC="$IDMAP_STATIC sam/idmap_ad.o"
46450
49589
 
46465
49604
#define static_init_idmap {$init_static_modules_idmap}
46466
49605
_ACEOF
46467
49606
 
 
49607
 
 
49608
cat >>confdefs.h <<_ACEOF
 
49609
#define static_decl_idmap $decl_static_modules_idmap
 
49610
_ACEOF
 
49611
 
46468
49612
        rm -f sam/idmap.o
46469
49613
 
46470
49614
 
46491
49635
 
46492
49636
                string_shared_modules="$string_shared_modules charset_weird"
46493
49637
        elif test x"$DEST" = xSTATIC; then
46494
 
                init_static_modules_charset="$init_static_modules_charset charset_weird_init();"
 
49638
                init_static_modules_charset="$init_static_modules_charset  charset_weird_init();"
 
49639
                decl_static_modules_charset="$decl_static_modules_charset extern NTSTATUS charset_weird_init(void);"
46495
49640
                string_static_modules="$string_static_modules charset_weird"
46496
49641
                CHARSET_STATIC="$CHARSET_STATIC modules/weird.o"
46497
49642
 
46527
49672
 
46528
49673
                string_shared_modules="$string_shared_modules charset_CP850"
46529
49674
        elif test x"$DEST" = xSTATIC; then
46530
 
                init_static_modules_charset="$init_static_modules_charset charset_CP850_init();"
 
49675
                init_static_modules_charset="$init_static_modules_charset  charset_CP850_init();"
 
49676
                decl_static_modules_charset="$decl_static_modules_charset extern NTSTATUS charset_CP850_init(void);"
46531
49677
                string_static_modules="$string_static_modules charset_CP850"
46532
49678
                CHARSET_STATIC="$CHARSET_STATIC modules/CP850.o"
46533
49679
 
46563
49709
 
46564
49710
                string_shared_modules="$string_shared_modules charset_CP437"
46565
49711
        elif test x"$DEST" = xSTATIC; then
46566
 
                init_static_modules_charset="$init_static_modules_charset charset_CP437_init();"
 
49712
                init_static_modules_charset="$init_static_modules_charset  charset_CP437_init();"
 
49713
                decl_static_modules_charset="$decl_static_modules_charset extern NTSTATUS charset_CP437_init(void);"
46567
49714
                string_static_modules="$string_static_modules charset_CP437"
46568
49715
                CHARSET_STATIC="$CHARSET_STATIC modules/CP437.o"
46569
49716
 
46599
49746
 
46600
49747
                string_shared_modules="$string_shared_modules charset_macosxfs"
46601
49748
        elif test x"$DEST" = xSTATIC; then
46602
 
                init_static_modules_charset="$init_static_modules_charset charset_macosxfs_init();"
 
49749
                init_static_modules_charset="$init_static_modules_charset  charset_macosxfs_init();"
 
49750
                decl_static_modules_charset="$decl_static_modules_charset extern NTSTATUS charset_macosxfs_init(void);"
46603
49751
                string_static_modules="$string_static_modules charset_macosxfs"
46604
49752
                CHARSET_STATIC="$CHARSET_STATIC modules/charset_macosxfs.o"
46605
49753
 
46620
49768
#define static_init_charset {$init_static_modules_charset}
46621
49769
_ACEOF
46622
49770
 
 
49771
 
 
49772
cat >>confdefs.h <<_ACEOF
 
49773
#define static_decl_charset $decl_static_modules_charset
 
49774
_ACEOF
 
49775
 
46623
49776
        rm -f lib/iconv.o
46624
49777
 
46625
49778
 
46626
49779
 
46627
 
        echo "$as_me:$LINENO: checking how to build auth_rhosts" >&5
46628
 
echo $ECHO_N "checking how to build auth_rhosts... $ECHO_C" >&6
46629
 
        if test "$MODULE_auth_rhosts"; then
46630
 
                DEST=$MODULE_auth_rhosts
46631
 
        elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_rhosts"; then
46632
 
                DEST=$MODULE_auth
46633
 
        else
46634
 
                DEST=$MODULE_DEFAULT_auth_rhosts
46635
 
        fi
46636
 
 
46637
 
        if test x"$DEST" = xSHARED; then
46638
 
 
46639
 
cat >>confdefs.h <<\_ACEOF
46640
 
#define auth_rhosts_init init_module
46641
 
_ACEOF
46642
 
 
46643
 
                AUTH_MODULES="$AUTH_MODULES "bin/rhosts.$SHLIBEXT""
46644
 
                echo "$as_me:$LINENO: result: shared" >&5
46645
 
echo "${ECHO_T}shared" >&6
46646
 
 
46647
 
                string_shared_modules="$string_shared_modules auth_rhosts"
46648
 
        elif test x"$DEST" = xSTATIC; then
46649
 
                init_static_modules_auth="$init_static_modules_auth auth_rhosts_init();"
46650
 
                string_static_modules="$string_static_modules auth_rhosts"
46651
 
                AUTH_STATIC="$AUTH_STATIC \$(AUTH_RHOSTS_OBJ)"
46652
 
 
46653
 
 
46654
 
                echo "$as_me:$LINENO: result: static" >&5
46655
 
echo "${ECHO_T}static" >&6
46656
 
        else
46657
 
            string_ignored_modules="$string_ignored_modules auth_rhosts"
46658
 
                echo "$as_me:$LINENO: result: not" >&5
46659
 
echo "${ECHO_T}not" >&6
46660
 
        fi
46661
 
 
46662
 
 
46663
49780
        echo "$as_me:$LINENO: checking how to build auth_sam" >&5
46664
49781
echo $ECHO_N "checking how to build auth_sam... $ECHO_C" >&6
46665
49782
        if test "$MODULE_auth_sam"; then
46682
49799
 
46683
49800
                string_shared_modules="$string_shared_modules auth_sam"
46684
49801
        elif test x"$DEST" = xSTATIC; then
46685
 
                init_static_modules_auth="$init_static_modules_auth auth_sam_init();"
 
49802
                init_static_modules_auth="$init_static_modules_auth  auth_sam_init();"
 
49803
                decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_sam_init(void);"
46686
49804
                string_static_modules="$string_static_modules auth_sam"
46687
49805
                AUTH_STATIC="$AUTH_STATIC \$(AUTH_SAM_OBJ)"
46688
49806
 
46718
49836
 
46719
49837
                string_shared_modules="$string_shared_modules auth_unix"
46720
49838
        elif test x"$DEST" = xSTATIC; then
46721
 
                init_static_modules_auth="$init_static_modules_auth auth_unix_init();"
 
49839
                init_static_modules_auth="$init_static_modules_auth  auth_unix_init();"
 
49840
                decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_unix_init(void);"
46722
49841
                string_static_modules="$string_static_modules auth_unix"
46723
49842
                AUTH_STATIC="$AUTH_STATIC \$(AUTH_UNIX_OBJ)"
46724
49843
 
46754
49873
 
46755
49874
                string_shared_modules="$string_shared_modules auth_winbind"
46756
49875
        elif test x"$DEST" = xSTATIC; then
46757
 
                init_static_modules_auth="$init_static_modules_auth auth_winbind_init();"
 
49876
                init_static_modules_auth="$init_static_modules_auth  auth_winbind_init();"
 
49877
                decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_winbind_init(void);"
46758
49878
                string_static_modules="$string_static_modules auth_winbind"
46759
49879
                AUTH_STATIC="$AUTH_STATIC \$(AUTH_WINBIND_OBJ)"
46760
49880
 
46790
49910
 
46791
49911
                string_shared_modules="$string_shared_modules auth_server"
46792
49912
        elif test x"$DEST" = xSTATIC; then
46793
 
                init_static_modules_auth="$init_static_modules_auth auth_server_init();"
 
49913
                init_static_modules_auth="$init_static_modules_auth  auth_server_init();"
 
49914
                decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_server_init(void);"
46794
49915
                string_static_modules="$string_static_modules auth_server"
46795
49916
                AUTH_STATIC="$AUTH_STATIC \$(AUTH_SERVER_OBJ)"
46796
49917
 
46826
49947
 
46827
49948
                string_shared_modules="$string_shared_modules auth_domain"
46828
49949
        elif test x"$DEST" = xSTATIC; then
46829
 
                init_static_modules_auth="$init_static_modules_auth auth_domain_init();"
 
49950
                init_static_modules_auth="$init_static_modules_auth  auth_domain_init();"
 
49951
                decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_domain_init(void);"
46830
49952
                string_static_modules="$string_static_modules auth_domain"
46831
49953
                AUTH_STATIC="$AUTH_STATIC \$(AUTH_DOMAIN_OBJ)"
46832
49954
 
46862
49984
 
46863
49985
                string_shared_modules="$string_shared_modules auth_builtin"
46864
49986
        elif test x"$DEST" = xSTATIC; then
46865
 
                init_static_modules_auth="$init_static_modules_auth auth_builtin_init();"
 
49987
                init_static_modules_auth="$init_static_modules_auth  auth_builtin_init();"
 
49988
                decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_builtin_init(void);"
46866
49989
                string_static_modules="$string_static_modules auth_builtin"
46867
49990
                AUTH_STATIC="$AUTH_STATIC \$(AUTH_BUILTIN_OBJ)"
46868
49991
 
46898
50021
 
46899
50022
                string_shared_modules="$string_shared_modules auth_script"
46900
50023
        elif test x"$DEST" = xSTATIC; then
46901
 
                init_static_modules_auth="$init_static_modules_auth auth_script_init();"
 
50024
                init_static_modules_auth="$init_static_modules_auth  auth_script_init();"
 
50025
                decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_script_init(void);"
46902
50026
                string_static_modules="$string_static_modules auth_script"
46903
50027
                AUTH_STATIC="$AUTH_STATIC \$(AUTH_SCRIPT_OBJ)"
46904
50028
 
46919
50043
#define static_init_auth {$init_static_modules_auth}
46920
50044
_ACEOF
46921
50045
 
 
50046
 
 
50047
cat >>confdefs.h <<_ACEOF
 
50048
#define static_decl_auth $decl_static_modules_auth
 
50049
_ACEOF
 
50050
 
46922
50051
        rm -f auth/auth.o
46923
50052
 
46924
50053
 
46945
50074
 
46946
50075
                string_shared_modules="$string_shared_modules vfs_recycle"
46947
50076
        elif test x"$DEST" = xSTATIC; then
46948
 
                init_static_modules_vfs="$init_static_modules_vfs vfs_recycle_init();"
 
50077
                init_static_modules_vfs="$init_static_modules_vfs  vfs_recycle_init();"
 
50078
                decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_recycle_init(void);"
46949
50079
                string_static_modules="$string_static_modules vfs_recycle"
46950
50080
                VFS_STATIC="$VFS_STATIC \$(VFS_RECYCLE_OBJ)"
46951
50081
 
46981
50111
 
46982
50112
                string_shared_modules="$string_shared_modules vfs_audit"
46983
50113
        elif test x"$DEST" = xSTATIC; then
46984
 
                init_static_modules_vfs="$init_static_modules_vfs vfs_audit_init();"
 
50114
                init_static_modules_vfs="$init_static_modules_vfs  vfs_audit_init();"
 
50115
                decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_audit_init(void);"
46985
50116
                string_static_modules="$string_static_modules vfs_audit"
46986
50117
                VFS_STATIC="$VFS_STATIC \$(VFS_AUDIT_OBJ)"
46987
50118
 
47017
50148
 
47018
50149
                string_shared_modules="$string_shared_modules vfs_extd_audit"
47019
50150
        elif test x"$DEST" = xSTATIC; then
47020
 
                init_static_modules_vfs="$init_static_modules_vfs vfs_extd_audit_init();"
 
50151
                init_static_modules_vfs="$init_static_modules_vfs  vfs_extd_audit_init();"
 
50152
                decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_extd_audit_init(void);"
47021
50153
                string_static_modules="$string_static_modules vfs_extd_audit"
47022
50154
                VFS_STATIC="$VFS_STATIC \$(VFS_EXTD_AUDIT_OBJ)"
47023
50155
 
47053
50185
 
47054
50186
                string_shared_modules="$string_shared_modules vfs_full_audit"
47055
50187
        elif test x"$DEST" = xSTATIC; then
47056
 
                init_static_modules_vfs="$init_static_modules_vfs vfs_full_audit_init();"
 
50188
                init_static_modules_vfs="$init_static_modules_vfs  vfs_full_audit_init();"
 
50189
                decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_full_audit_init(void);"
47057
50190
                string_static_modules="$string_static_modules vfs_full_audit"
47058
50191
                VFS_STATIC="$VFS_STATIC \$(VFS_FULL_AUDIT_OBJ)"
47059
50192
 
47089
50222
 
47090
50223
                string_shared_modules="$string_shared_modules vfs_netatalk"
47091
50224
        elif test x"$DEST" = xSTATIC; then
47092
 
                init_static_modules_vfs="$init_static_modules_vfs vfs_netatalk_init();"
 
50225
                init_static_modules_vfs="$init_static_modules_vfs  vfs_netatalk_init();"
 
50226
                decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_netatalk_init(void);"
47093
50227
                string_static_modules="$string_static_modules vfs_netatalk"
47094
50228
                VFS_STATIC="$VFS_STATIC \$(VFS_NETATALK_OBJ)"
47095
50229
 
47125
50259
 
47126
50260
                string_shared_modules="$string_shared_modules vfs_fake_perms"
47127
50261
        elif test x"$DEST" = xSTATIC; then
47128
 
                init_static_modules_vfs="$init_static_modules_vfs vfs_fake_perms_init();"
 
50262
                init_static_modules_vfs="$init_static_modules_vfs  vfs_fake_perms_init();"
 
50263
                decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_fake_perms_init(void);"
47129
50264
                string_static_modules="$string_static_modules vfs_fake_perms"
47130
50265
                VFS_STATIC="$VFS_STATIC \$(VFS_FAKE_PERMS_OBJ)"
47131
50266
 
47161
50296
 
47162
50297
                string_shared_modules="$string_shared_modules vfs_default_quota"
47163
50298
        elif test x"$DEST" = xSTATIC; then
47164
 
                init_static_modules_vfs="$init_static_modules_vfs vfs_default_quota_init();"
 
50299
                init_static_modules_vfs="$init_static_modules_vfs  vfs_default_quota_init();"
 
50300
                decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_default_quota_init(void);"
47165
50301
                string_static_modules="$string_static_modules vfs_default_quota"
47166
50302
                VFS_STATIC="$VFS_STATIC \$(VFS_DEFAULT_QUOTA_OBJ)"
47167
50303
 
47197
50333
 
47198
50334
                string_shared_modules="$string_shared_modules vfs_readonly"
47199
50335
        elif test x"$DEST" = xSTATIC; then
47200
 
                init_static_modules_vfs="$init_static_modules_vfs vfs_readonly_init();"
 
50336
                init_static_modules_vfs="$init_static_modules_vfs  vfs_readonly_init();"
 
50337
                decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_readonly_init(void);"
47201
50338
                string_static_modules="$string_static_modules vfs_readonly"
47202
50339
                VFS_STATIC="$VFS_STATIC \$(VFS_READONLY_OBJ)"
47203
50340
 
47233
50370
 
47234
50371
                string_shared_modules="$string_shared_modules vfs_cap"
47235
50372
        elif test x"$DEST" = xSTATIC; then
47236
 
                init_static_modules_vfs="$init_static_modules_vfs vfs_cap_init();"
 
50373
                init_static_modules_vfs="$init_static_modules_vfs  vfs_cap_init();"
 
50374
                decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_cap_init(void);"
47237
50375
                string_static_modules="$string_static_modules vfs_cap"
47238
50376
                VFS_STATIC="$VFS_STATIC \$(VFS_CAP_OBJ)"
47239
50377
 
47269
50407
 
47270
50408
                string_shared_modules="$string_shared_modules vfs_expand_msdfs"
47271
50409
        elif test x"$DEST" = xSTATIC; then
47272
 
                init_static_modules_vfs="$init_static_modules_vfs vfs_expand_msdfs_init();"
 
50410
                init_static_modules_vfs="$init_static_modules_vfs  vfs_expand_msdfs_init();"
 
50411
                decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_expand_msdfs_init(void);"
47273
50412
                string_static_modules="$string_static_modules vfs_expand_msdfs"
47274
50413
                VFS_STATIC="$VFS_STATIC \$(VFS_EXPAND_MSDFS_OBJ)"
47275
50414
 
47305
50444
 
47306
50445
                string_shared_modules="$string_shared_modules vfs_shadow_copy"
47307
50446
        elif test x"$DEST" = xSTATIC; then
47308
 
                init_static_modules_vfs="$init_static_modules_vfs vfs_shadow_copy_init();"
 
50447
                init_static_modules_vfs="$init_static_modules_vfs  vfs_shadow_copy_init();"
 
50448
                decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_shadow_copy_init(void);"
47309
50449
                string_static_modules="$string_static_modules vfs_shadow_copy"
47310
50450
                VFS_STATIC="$VFS_STATIC \$(VFS_SHADOW_COPY_OBJ)"
47311
50451
 
47341
50481
 
47342
50482
                string_shared_modules="$string_shared_modules vfs_afsacl"
47343
50483
        elif test x"$DEST" = xSTATIC; then
47344
 
                init_static_modules_vfs="$init_static_modules_vfs vfs_afsacl_init();"
 
50484
                init_static_modules_vfs="$init_static_modules_vfs  vfs_afsacl_init();"
 
50485
                decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_afsacl_init(void);"
47345
50486
                string_static_modules="$string_static_modules vfs_afsacl"
47346
50487
                VFS_STATIC="$VFS_STATIC \$(VFS_AFSACL_OBJ)"
47347
50488
 
47377
50518
 
47378
50519
                string_shared_modules="$string_shared_modules vfs_catia"
47379
50520
        elif test x"$DEST" = xSTATIC; then
47380
 
                init_static_modules_vfs="$init_static_modules_vfs vfs_catia_init();"
 
50521
                init_static_modules_vfs="$init_static_modules_vfs  vfs_catia_init();"
 
50522
                decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_catia_init(void);"
47381
50523
                string_static_modules="$string_static_modules vfs_catia"
47382
50524
                VFS_STATIC="$VFS_STATIC \$(VFS_CATIA_OBJ)"
47383
50525
 
47398
50540
#define static_init_vfs {$init_static_modules_vfs}
47399
50541
_ACEOF
47400
50542
 
 
50543
 
 
50544
cat >>confdefs.h <<_ACEOF
 
50545
#define static_decl_vfs $decl_static_modules_vfs
 
50546
_ACEOF
 
50547
 
47401
50548
        rm -f smbd/vfs.o
47402
50549
 
47403
50550
 
47478
50625
builddir=`pwd`
47479
50626
 
47480
50627
 
 
50628
# Stuff the smbd-only libraries at the end of the smbd link
 
50629
# path (if we have them).
 
50630
SMBD_LIBS="$samba_fam_libs $samba_dmapi_libs"
 
50631
 
 
50632
 
47481
50633
 
47482
50634
  ac_new_flags=""
47483
50635
  for i in $LDFLAGS; do
47520
50672
  CPPFLAGS=$ac_new_flags
47521
50673
 
47522
50674
 
47523
 
                                                  ac_config_files="$ac_config_files include/stamp-h Makefile script/findsmb smbadduser script/gen-8bit-gap.sh"
 
50675
                                                                      ac_config_files="$ac_config_files include/stamp-h Makefile script/findsmb smbadduser script/gen-8bit-gap.sh script/installbin.sh script/uninstallbin.sh"
47524
50676
cat >confcache <<\_ACEOF
47525
50677
# This file is a shell script that caches the results of configure
47526
50678
# tests run on this system so they can be shared between configure
48051
51203
  "script/findsmb" ) CONFIG_FILES="$CONFIG_FILES script/findsmb" ;;
48052
51204
  "smbadduser" ) CONFIG_FILES="$CONFIG_FILES smbadduser" ;;
48053
51205
  "script/gen-8bit-gap.sh" ) CONFIG_FILES="$CONFIG_FILES script/gen-8bit-gap.sh" ;;
 
51206
  "script/installbin.sh" ) CONFIG_FILES="$CONFIG_FILES script/installbin.sh" ;;
 
51207
  "script/uninstallbin.sh" ) CONFIG_FILES="$CONFIG_FILES script/uninstallbin.sh" ;;
48054
51208
  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
48055
51209
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48056
51210
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48142
51296
s,@logfilebase@,$logfilebase,;t t
48143
51297
s,@privatedir@,$privatedir,;t t
48144
51298
s,@swatdir@,$swatdir,;t t
 
51299
s,@rootsbindir@,$rootsbindir,;t t
 
51300
s,@pammodulesdir@,$pammodulesdir,;t t
48145
51301
s,@LDSHFLAGS@,$LDSHFLAGS,;t t
48146
51302
s,@SONAMEFLAG@,$SONAMEFLAG,;t t
48147
 
s,@SONAMEVERSIONSUFFIX@,$SONAMEVERSIONSUFFIX,;t t
48148
51303
s,@SHLD@,$SHLD,;t t
48149
51304
s,@HOST_OS@,$HOST_OS,;t t
48150
51305
s,@PICFLAGS@,$PICFLAGS,;t t
48155
51310
s,@SHLIBEXT@,$SHLIBEXT,;t t
48156
51311
s,@INSTALLLIBCMD_SH@,$INSTALLLIBCMD_SH,;t t
48157
51312
s,@INSTALLLIBCMD_A@,$INSTALLLIBCMD_A,;t t
 
51313
s,@UNINSTALLLIBCMD_SH@,$UNINSTALLLIBCMD_SH,;t t
 
51314
s,@UNINSTALLLIBCMD_A@,$UNINSTALLLIBCMD_A,;t t
48158
51315
s,@INSTALL_LIBMSRPC@,$INSTALL_LIBMSRPC,;t t
 
51316
s,@UNINSTALL_LIBMSRPC@,$UNINSTALL_LIBMSRPC,;t t
48159
51317
s,@LIBMSRPC_SHARED@,$LIBMSRPC_SHARED,;t t
48160
51318
s,@LIBMSRPC@,$LIBMSRPC,;t t
48161
51319
s,@INSTALL_LIBSMBCLIENT@,$INSTALL_LIBSMBCLIENT,;t t
 
51320
s,@UNINSTALL_LIBSMBCLIENT@,$UNINSTALL_LIBSMBCLIENT,;t t
48162
51321
s,@LIBSMBCLIENT_SHARED@,$LIBSMBCLIENT_SHARED,;t t
48163
51322
s,@LIBSMBCLIENT@,$LIBSMBCLIENT,;t t
48164
51323
s,@INSTALL_LIBSMBSHAREMODES@,$INSTALL_LIBSMBSHAREMODES,;t t
48172
51331
s,@KRB5_LIBS@,$KRB5_LIBS,;t t
48173
51332
s,@LDAP_LIBS@,$LDAP_LIBS,;t t
48174
51333
s,@SHLIB_PROGS@,$SHLIB_PROGS,;t t
 
51334
s,@PAM_MODULES@,$PAM_MODULES,;t t
 
51335
s,@INSTALL_PAM_MODULES@,$INSTALL_PAM_MODULES,;t t
 
51336
s,@UNINSTALL_PAM_MODULES@,$UNINSTALL_PAM_MODULES,;t t
48175
51337
s,@SMBWRAPPER@,$SMBWRAPPER,;t t
48176
51338
s,@SMBWRAP_OBJS@,$SMBWRAP_OBJS,;t t
48177
51339
s,@SMBWRAP_INC@,$SMBWRAP_INC,;t t
48178
51340
s,@EXTRA_BIN_PROGS@,$EXTRA_BIN_PROGS,;t t
 
51341
s,@CIFSMOUNT_PROGS@,$CIFSMOUNT_PROGS,;t t
 
51342
s,@INSTALL_CIFSMOUNT@,$INSTALL_CIFSMOUNT,;t t
 
51343
s,@UNINSTALL_CIFSMOUNT@,$UNINSTALL_CIFSMOUNT,;t t
48179
51344
s,@EXTRA_SBIN_PROGS@,$EXTRA_SBIN_PROGS,;t t
48180
51345
s,@EXTRA_ALL_TARGETS@,$EXTRA_ALL_TARGETS,;t t
48181
51346
s,@CONFIG_LIBS@,$CONFIG_LIBS,;t t
 
51347
s,@NSCD_LIBS@,$NSCD_LIBS,;t t
48182
51348
s,@SOCKWRAP@,$SOCKWRAP,;t t
 
51349
s,@selftest_prefix@,$selftest_prefix,;t t
 
51350
s,@smbtorture4_path@,$smbtorture4_path,;t t
48183
51351
s,@CC@,$CC,;t t
48184
51352
s,@CFLAGS@,$CFLAGS,;t t
48185
51353
s,@LDFLAGS@,$LDFLAGS,;t t
48213
51381
s,@LIBOBJS@,$LIBOBJS,;t t
48214
51382
s,@TERMLIBS@,$TERMLIBS,;t t
48215
51383
s,@TERMLDFLAGS@,$TERMLDFLAGS,;t t
 
51384
s,@LIBUNWIND_PTRACE@,$LIBUNWIND_PTRACE,;t t
48216
51385
s,@ROFF@,$ROFF,;t t
48217
51386
s,@DYNEXP@,$DYNEXP,;t t
48218
51387
s,@SMBLDAP@,$SMBLDAP,;t t
48219
51388
s,@SMBLDAPUTIL@,$SMBLDAPUTIL,;t t
48220
51389
s,@KRB5CONFIG@,$KRB5CONFIG,;t t
48221
 
s,@XML2_CONFIG@,$XML2_CONFIG,;t t
48222
 
s,@XML_CFLAGS@,$XML_CFLAGS,;t t
48223
 
s,@XML_LIBS@,$XML_LIBS,;t t
48224
 
s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
48225
 
s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
48226
 
s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
48227
 
s,@PGSQL_CONFIG@,$PGSQL_CONFIG,;t t
48228
 
s,@PGSQL_CFLAGS@,$PGSQL_CFLAGS,;t t
48229
 
s,@PGSQL_LIBS@,$PGSQL_LIBS,;t t
48230
51390
s,@WINBIND_NSS@,$WINBIND_NSS,;t t
48231
51391
s,@WINBIND_WINS_NSS@,$WINBIND_WINS_NSS,;t t
48232
51392
s,@WINBIND_NSS_LDSHFLAGS@,$WINBIND_NSS_LDSHFLAGS,;t t
48233
51393
s,@WINBIND_NSS_EXTRA_OBJS@,$WINBIND_NSS_EXTRA_OBJS,;t t
48234
51394
s,@WINBIND_NSS_EXTRA_LIBS@,$WINBIND_NSS_EXTRA_LIBS,;t t
 
51395
s,@NSSSONAMEVERSIONSUFFIX@,$NSSSONAMEVERSIONSUFFIX,;t t
48235
51396
s,@BUILD_POPT@,$BUILD_POPT,;t t
48236
51397
s,@POPTLIBS@,$POPTLIBS,;t t
48237
51398
s,@FLAGS1@,$FLAGS1,;t t
 
51399
s,@BUILD_INIPARSER@,$BUILD_INIPARSER,;t t
 
51400
s,@INIPARSERLIBS@,$INIPARSERLIBS,;t t
48238
51401
s,@PYTHON@,$PYTHON,;t t
48239
51402
s,@PDB_STATIC@,$PDB_STATIC,;t t
48240
51403
s,@PDB_MODULES@,$PDB_MODULES,;t t
48249
51412
s,@VFS_STATIC@,$VFS_STATIC,;t t
48250
51413
s,@VFS_MODULES@,$VFS_MODULES,;t t
48251
51414
s,@builddir@,$builddir,;t t
 
51415
s,@SMBD_LIBS@,$SMBD_LIBS,;t t
48252
51416
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
48253
51417
CEOF
48254
51418