Diff for /configure.in between versions 1.586 and 1.586.2.12

version 1.586, 2005/08/07 16:08:02 version 1.586.2.12, 2005/08/12 20:42:27
Line 1 Line 1
 dnl $OpenLDAP: pkg/ldap/configure.in,v 1.585 2005/07/25 18:51:00 ando Exp $  dnl $OpenLDAP: pkg/ldap/configure.in,v 1.586.2.10 2005/08/12 18:00:10 kurt Exp $
 dnl This work is part of OpenLDAP Software <http://www.openldap.org/>.  dnl This work is part of OpenLDAP Software <http://www.openldap.org/>.
 dnl  dnl
 dnl Copyright 1998-2005 The OpenLDAP Foundation.  dnl Copyright 1998-2005 The OpenLDAP Foundation.
Line 19  dnl at top of generated configure script Line 19  dnl at top of generated configure script
 define([AC_INIT_BINSH],  define([AC_INIT_BINSH],
 [[#! /bin/sh  [[#! /bin/sh
 # $]OpenLDAP[$  # $]OpenLDAP[$
 # from] translit([$OpenLDAP: pkg/ldap/configure.in,v 1.585 2005/07/25 18:51:00 ando Exp $], $")] [  # from] translit([$OpenLDAP: pkg/ldap/configure.in,v 1.586.2.10 2005/08/12 18:00:10 kurt Exp $], $")] [
   
 # This work is part of OpenLDAP Software <http://www.openldap.org/>.  # This work is part of OpenLDAP Software <http://www.openldap.org/>.
 #  #
Line 35  define([AC_INIT_BINSH], Line 35  define([AC_INIT_BINSH],
 # <http://www.OpenLDAP.org/license.html>.  # <http://www.OpenLDAP.org/license.html>.
   
 echo "Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved."  echo "Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved."
 echo "  Restrictions apply, see COPYRIGHT and LICENSE files."  echo "Restrictions apply, see COPYRIGHT and LICENSE files."
 ])dnl  ])dnl
   AC_COPYRIGHT([[Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
   Restrictions apply, see COPYRIGHT and LICENSE files.]])
   AC_REVSION(++ $OpenLDAP$ ++)
   dnl ----------------------------------------------------------------
   dnl OpenLDAP Autoconf Macros
   builtin(include, build/openldap.m4)dnl
 dnl ----------------------------------------------------------------  dnl ----------------------------------------------------------------
 dnl Disable config.cache!  dnl Disable config.cache!
 define([AC_CACHE_LOAD], )dnl  define([AC_CACHE_LOAD], )dnl
 define([AC_CACHE_SAVE], )dnl  define([AC_CACHE_SAVE], )dnl
 dnl ================================================================  dnl ================================================================
 dnl Configure.in for OpenLDAP  dnl Configure.in for OpenLDAP
 AC_INIT(build/version.sh)dnl  AC_INIT
   AC_CONFIG_SRCDIR(build/version.sh)dnl
   
 # set unset (borrowed from autoconf 2.49c)  # set unset (borrowed from autoconf 2.49c)
 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then  if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
Line 82  echo "Configuring ${TB}${OL_STRING}${TN} Line 89  echo "Configuring ${TB}${OL_STRING}${TN}
   
 dnl Determine host platform  dnl Determine host platform
 dnl             we try not to use this for much  dnl             we try not to use this for much
 AC_CANONICAL_SYSTEM  AC_CANONICAL_TARGET([])
   
 AM_INIT_AUTOMAKE([$OL_PACKAGE],[$OL_VERSION], [no defines])dnl  AM_INIT_AUTOMAKE([$OL_PACKAGE],[$OL_VERSION], [no defines])dnl
 AC_SUBST(PACKAGE)dnl  AC_SUBST(PACKAGE)dnl
Line 104  AC_SUBST(OPENLDAP_LIBVERSION)dnl Line 111  AC_SUBST(OPENLDAP_LIBVERSION)dnl
 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"  OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
 AC_SUBST(OPENLDAP_RELEASE_DATE)dnl  AC_SUBST(OPENLDAP_RELEASE_DATE)dnl
   
 dnl We use autoconf features new to 2.13.  Later versions like won't work.  dnl We use autoconf features new to 2.59.  Later versions like won't work.
 dnl aclocal.m4 should be built using aclocal from automake 1.4  dnl aclocal.m4 should be built using aclocal from automake 1.5
 dnl libtool 1.4.3 should be installed.  dnl libtool 1.5 should be installed.
 AC_PREREQ(2.13)dnl Required Autoconf version  AC_PREREQ(2.59)dnl Required Autoconf version
   
   AH_TOP([
   /* begin of portable.h.pre */
   /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
    *
    * Copyright 1998-2005 The OpenLDAP Foundation
    * All rights reserved.
    *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted only as authorized by the OpenLDAP
    * Public License.
    *
    * A copy of this license is available in the file LICENSE in the
    * top-level directory of the distribution or, alternatively, at
    * <http://www.OpenLDAP.org/license.html>.
    */
   
   #ifndef _LDAP_PORTABLE_H
   #define _LDAP_PORTABLE_H
   
   /* define this if needed to get reentrant functions */
   #ifndef REENTRANT
   #undef REENTRANT
   #endif
   #ifndef _REENTRANT
   #undef _REENTRANT
   #endif
   
   /* define this if needed to get threadsafe functions */
   #ifndef THREADSAFE
   #undef THREADSAFE
   #endif
   #ifndef _THREADSAFE
   #undef _THREADSAFE
   #endif
   #ifndef THREAD_SAFE
   #undef THREAD_SAFE
   #endif
   #ifndef _THREAD_SAFE
   #undef _THREAD_SAFE
   #endif
   
   #ifndef _SGI_MP_SOURCE
   #undef _SGI_MP_SOURCE
   #endif
   
   /* end of portable.h.pre */
   ])
   AH_BOTTOM([
   /* begin of portable.h.post */
   
   #ifdef _WIN32
           /* don't suck in all of the win32 api */
   #       define WIN32_LEAN_AND_MEAN 1
   #endif
   
   #ifndef LDAP_NEEDS_PROTOTYPES
   /* force LDAP_P to always include prototypes */
   #define LDAP_NEEDS_PROTOTYPES 1
   #endif
   
   #ifndef LDAP_REL_ENG
   #if (LDAP_VENDOR_VERSION == 000000) && !defined(LDAP_DEVEL)
   #define LDAP_DEVEL
   #endif
   #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
   #define LDAP_TEST
   #endif
   #endif
   
   #ifdef HAVE_STDDEF_H
   #       include <stddef.h>
   #endif
   
   #ifdef HAVE_EBCDIC 
   /* ASCII/EBCDIC converting replacements for stdio funcs
    * vsnprintf and snprintf are used too, but they are already
    * checked by the configure script
    */
   #define fputs ber_pvt_fputs
   #define fgets ber_pvt_fgets
   #define printf ber_pvt_printf
   #define fprintf ber_pvt_fprintf
   #define vfprintf ber_pvt_vfprintf
   #define vsprintf ber_pvt_vsprintf
   #endif
   
   #include "ac/fdset.h"
   
   #include "ldap_cdefs.h"
   #include "ldap_features.h"
   
 AC_CONFIG_HEADER(include/portable.h include/ldap_features.h include/lber_types.h)dnl  #include "ac/assert.h"
   #include "ac/localize.h"
   
   #endif /* _LDAP_PORTABLE_H */
   /* end of portable.h.post */
   ])
   
   AC_CONFIG_HEADERS([include/portable.h:include/portable.hin])
   AC_CONFIG_HEADERS([include/ldap_features.h:include/ldap_features.hin])
   AC_CONFIG_HEADERS([include/lber_types.h:include/lber_types.hin])
   
 dnl ================================================================  dnl ================================================================
 dnl Start Args  dnl Start Args
Line 657  dnl AC_ISC_POSIX Line 764  dnl AC_ISC_POSIX
 dnl AC_MINIX  dnl AC_MINIX
   
 dnl ----------------------------------------------------------------  dnl ----------------------------------------------------------------
 dnl Checks for system services  dnl Checks for file extensions
 AC_CYGWIN  
 AC_MINGW32  
 AC_EXEEXT  AC_EXEEXT
 AC_OBJEXT  AC_OBJEXT
   
 AC_DEFINE_UNQUOTED(EXEEXT, "${EXEEXT}", [defined to be the EXE extension])  AC_DEFINE_UNQUOTED(EXEEXT, "${EXEEXT}", [defined to be the EXE extension])
   
 dnl ----------------------------------------------------------------  dnl ----------------------------------------------------------------
Line 671  AC_CHECK_LIB(be, be_app, [LIBS="$LIBS -l Line 775  AC_CHECK_LIB(be, be_app, [LIBS="$LIBS -l
   
 dnl ----------------------------------------------------------------  dnl ----------------------------------------------------------------
 dnl OpenLDAP requires STDC features  dnl OpenLDAP requires STDC features
 AM_PROG_CC_STDC  AC_PROG_CC
 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then  if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
         AC_MSG_ERROR([OpenLDAP requires compiler to support STDC constructs.])          AC_MSG_ERROR([OpenLDAP requires compiler to support STDC constructs.])
 fi  fi
   
Line 749  fi Line 853  fi
   
 AC_HEADER_DIRENT  AC_HEADER_DIRENT
 AC_HEADER_SYS_WAIT  AC_HEADER_SYS_WAIT
 AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL  AC_HEADER_TIOCGWINSZ
 if test $am_cv_sys_posix_termios = yes ; then  
         AC_DEFINE(HAVE_POSIX_TERMIOS,1,  
                 [define if you have POSIX termios])  
 fi  
   
 AC_CHECK_HEADERS(               \  AC_CHECK_HEADERS(               \
         arpa/inet.h             \          arpa/inet.h             \
Line 828  AC_CACHE_CHECK([for winsock], [ol_cv_win Line 928  AC_CACHE_CHECK([for winsock], [ol_cv_win
 save_LIBS="$LIBS"  save_LIBS="$LIBS"
 for curlib in ws2_32 wsock32; do  for curlib in ws2_32 wsock32; do
         LIBS="$LIBS -l$curlib"          LIBS="$LIBS -l$curlib"
         AC_TRY_LINK([#include <winsock.h>          AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <winsock.h>
                         ],                          ]], [[
                         [  
                         socket(0,0,0);                          socket(0,0,0);
                         select(0,NULL,NULL,NULL,NULL);                          select(0,NULL,NULL,NULL,NULL);
                         closesocket(0);                          closesocket(0);
                         gethostname(NULL,0);                          gethostname(NULL,0);
                         ],                          ]])],[ol_cv_winsock=yes],[ol_cv_winsock=no])
                         ol_cv_winsock=yes, ol_cv_winsock=no)  
   
         if test $ol_cv_winsock = yes; then          if test $ol_cv_winsock = yes; then
                 AC_DEFINE(HAVE_WINSOCK, 1, [define if you have winsock])                  AC_DEFINE(HAVE_WINSOCK, 1, [define if you have winsock])
Line 891  dnl ------------------------------------ Line 989  dnl ------------------------------------
 AC_CHECK_HEADERS( sys/epoll.h )  AC_CHECK_HEADERS( sys/epoll.h )
 if test "${ac_cv_header_sys_epoll_h}" = yes; then  if test "${ac_cv_header_sys_epoll_h}" = yes; then
 AC_MSG_CHECKING(for epoll system call)  AC_MSG_CHECKING(for epoll system call)
 AC_TRY_RUN(  AC_RUN_IFELSE([AC_LANG_SOURCE([[int main(int argc, char *argv)
 int main(int argc, char *argv[])  
 {  {
         int epfd = epoll_create(256);          int epfd = epoll_create(256);
         exit (epfd == -1 ? 1 : 0);          exit (epfd == -1 ? 1 : 0);
 }, [AC_MSG_RESULT(yes)  }]])],[AC_MSG_RESULT(yes)
 AC_DEFINE(HAVE_EPOLL,1, [define if your system supports epoll])],  AC_DEFINE(HAVE_EPOLL,1, [define if your system supports epoll])],[AC_MSG_RESULT(no)],[AC_MSG_RESULT(no)])
 AC_MSG_RESULT(no),AC_MSG_RESULT(no))  
 fi  fi
   
 dnl ----------------------------------------------------------------  dnl ----------------------------------------------------------------
Line 943  if test $have_uuid = no ; then Line 1039  if test $have_uuid = no ; then
         AC_MSG_CHECKING(to see if -lrpcrt4 is needed for win32 UUID support)          AC_MSG_CHECKING(to see if -lrpcrt4 is needed for win32 UUID support)
         save_LIBS="$LIBS"          save_LIBS="$LIBS"
         LIBS="$LIBS -lrpcrt4"          LIBS="$LIBS -lrpcrt4"
         AC_TRY_LINK([          AC_LINK_IFELSE([AC_LANG_PROGRAM([[
                 int __stdcall UuidCreate(void *);                  int __stdcall UuidCreate(void *);
                 int __stdcall UuidToStringA(void *,void **);                  int __stdcall UuidToStringA(void *,void **);
                 ],                  ]], [[
                 [  
                 UuidCreate(0);                  UuidCreate(0);
                 UuidToStringA(0,0);                  UuidToStringA(0,0);
                 ],                  ]])],[need_rpcrt=yes],[need_rpcrt=no])
                 need_rpcrt=yes, need_rpcrt=no)  
         if test $need_rpcrt = yes; then          if test $need_rpcrt = yes; then
                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"                  SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
         fi          fi
Line 1008  elif test $ol_enable_ipv6 != no ; then Line 1102  elif test $ol_enable_ipv6 != no ; then
   
   
         AC_CACHE_CHECK([struct sockaddr_storage],ol_cv_struct_sockaddr_storage,[          AC_CACHE_CHECK([struct sockaddr_storage],ol_cv_struct_sockaddr_storage,[
                 AC_TRY_COMPILE([                  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/socket.h>  #include <sys/socket.h>
 ],[  ]], [[
                         struct sockaddr_storage ss;                          struct sockaddr_storage ss;
 ],                      [ol_cv_struct_sockaddr_storage=yes],  ]])],[ol_cv_struct_sockaddr_storage=yes],[ol_cv_struct_sockaddr_storage=no])])
                         [ol_cv_struct_sockaddr_storage=no])])  
   
         if test $ol_cv_inet6_addrstrlen = yes \          if test $ol_cv_inet6_addrstrlen = yes \
                 -a $ol_cv_struct_sockaddr_storage = yes ; then                  -a $ol_cv_struct_sockaddr_storage = yes ; then
Line 1141  if test $ol_link_krb5 = yes -a \( $ol_wi Line 1234  if test $ol_link_krb5 = yes -a \( $ol_wi
                                 dnl save the flags                                  dnl save the flags
                                 save_LIBS="$LIBS"                                  save_LIBS="$LIBS"
                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"                                  LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
                                 AC_TRY_LINK([                                  AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 #include <kerberosIV/krb.h>  #include <kerberosIV/krb.h>
 #include <kerberosIV/des.h>  #include <kerberosIV/des.h>
 extern int des_debug;  extern int des_debug;
 ],[  ]], [[
 des_debug = 1;  des_debug = 1;
 ],                              ol_cv_var_des_debug=yes, ol_cv_var_des_debug=no)  ]])],[ol_cv_var_des_debug=yes],[ol_cv_var_des_debug=no])
                                 dnl restore the LIBS                                  dnl restore the LIBS
                                 LIBS="$save_LIBS"                                  LIBS="$save_LIBS"
                         ])                          ])
Line 1260  if test $ol_with_tls != no ; then Line 1353  if test $ol_with_tls != no ; then
         fi          fi
   
 else  else
         AC_WARN([TLS data protection not supported!])          AC_MSG_WARN([TLS data protection not supported!])
 fi  fi
   
 WITH_TLS=no  WITH_TLS=no
Line 1269  if test $ol_link_tls = yes ; then Line 1362  if test $ol_link_tls = yes ; then
         WITH_TLS=yes          WITH_TLS=yes
   
 elif test $ol_with_tls = auto ; then  elif test $ol_with_tls = auto ; then
         AC_WARN([Could not locate TLS/SSL package])          AC_MSG_WARN([Could not locate TLS/SSL package])
         AC_WARN([TLS data protection not supported!])          AC_MSG_WARN([TLS data protection not supported!])
   
 elif test $ol_with_tls != no ; then  elif test $ol_with_tls != no ; then
         AC_ERROR([Could not locate TLS/SSL package])          AC_MSG_ERROR([Could not locate TLS/SSL package])
 fi  fi
   
 dnl ----------------------------------------------------------------  dnl ----------------------------------------------------------------
 dnl LAN Manger password checking requires DES from OpenSSL  dnl LAN Manger password checking requires DES from OpenSSL
 if test $ol_enable_lmpasswd != no; then  if test $ol_enable_lmpasswd != no; then
         if test $ol_link_tls != yes ; then          if test $ol_link_tls != yes ; then
                 AC_ERROR([LAN Manager passwords require OpenSSL])                  AC_MSG_ERROR([LAN Manager passwords require OpenSSL])
         fi          fi
   
         AC_DEFINE(SLAPD_LMHASH, 1, [define to support LAN Manager passwords])          AC_DEFINE(SLAPD_LMHASH, 1, [define to support LAN Manager passwords])
Line 1370  if test $ol_with_threads = auto -o $ol_w Line 1463  if test $ol_with_threads = auto -o $ol_w
                 dnl pthread_create in $LIBS                  dnl pthread_create in $LIBS
                 AC_CACHE_CHECK([for pthread_create in default libraries],                  AC_CACHE_CHECK([for pthread_create in default libraries],
                         ol_cv_pthread_create,[                          ol_cv_pthread_create,[
                 AC_TRY_RUN(OL_PTHREAD_TEST_PROGRAM,                          AC_RUN_IFELSE([OL_PTHREAD_TEST_PROGRAM],
                         [ol_cv_pthread_create=yes],  
                         [ol_cv_pthread_create=no],  
                         [AC_TRY_LINK(OL_PTHREAD_TEST_INCLUDES,OL_PTHREAD_TEST_FUNCTION,  
                                 [ol_cv_pthread_create=yes],                                  [ol_cv_pthread_create=yes],
                                 [ol_cv_pthread_create=no])])])                                  [ol_cv_pthread_create=no],
                                   [AC_TRY_LINK(OL_PTHREAD_TEST_INCLUDES,OL_PTHREAD_TEST_FUNCTION,
                                           [ol_cv_pthread_create=yes],
                                           [ol_cv_pthread_create=no])])])
   
                 if test $ol_cv_pthread_create != no ; then                  if test $ol_cv_pthread_create != no ; then
                         ol_link_threads=posix                          ol_link_threads=posix
Line 1451  dnl   [ol_cv_pthread_lpthread_lexc]) Line 1544  dnl   [ol_cv_pthread_lpthread_lexc])
                         AC_CACHE_CHECK([for pthread_detach with <pthread.h>],                          AC_CACHE_CHECK([for pthread_detach with <pthread.h>],
                                 [ol_cv_func_pthread_detach], [                                  [ol_cv_func_pthread_detach], [
                                 dnl save the flags                                  dnl save the flags
                                 AC_TRY_LINK([                                  AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 #include <pthread.h>  #include <pthread.h>
 #ifndef NULL  #ifndef NULL
 #define NULL (void*)0  #define NULL (void*)0
 #endif  #endif
 ],  ]], [[pthread_detach(NULL);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
                                         [pthread_detach(NULL);],  
                                         [ol_cv_func_pthread_detach=yes],  
                                         [ol_cv_func_pthread_detach=no])  
                         ])                          ])
   
                         if test $ol_cv_func_pthread_detach = no ; then                          if test $ol_cv_func_pthread_detach = no ; then
Line 1486  dnl   [ol_cv_pthread_lpthread_lexc]) Line 1576  dnl   [ol_cv_pthread_lpthread_lexc])
   
                         AC_CACHE_CHECK([if pthread_create() works],                          AC_CACHE_CHECK([if pthread_create() works],
                                 ol_cv_pthread_create_works,[                                  ol_cv_pthread_create_works,[
                         AC_TRY_RUN(OL_PTHREAD_TEST_PROGRAM,                          AC_RUN_IFELSE([OL_PTHREAD_TEST_PROGRAM],
                                 [ol_cv_pthread_create_works=yes],                                  [ol_cv_pthread_create_works=yes],
                                 [ol_cv_pthread_create_works=no],                                  [ol_cv_pthread_create_works=no],
                                 [dnl assume yes                                  [dnl assume yes
Line 1500  dnl   [ol_cv_pthread_lpthread_lexc]) Line 1590  dnl   [ol_cv_pthread_lpthread_lexc])
                         if test $ol_with_yielding_select = auto ; then                          if test $ol_with_yielding_select = auto ; then
                                 AC_CACHE_CHECK([if select yields when using pthreads],                                  AC_CACHE_CHECK([if select yields when using pthreads],
                                         ol_cv_pthread_select_yields,[                                          ol_cv_pthread_select_yields,[
                                 AC_TRY_RUN([                                  AC_RUN_IFELSE([AC_LANG_SOURCE([[
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/time.h>  #include <sys/time.h>
 #include <unistd.h>  #include <unistd.h>
Line 1573  int main(argc, argv) Line 1663  int main(argc, argv)
 #endif  #endif
   
         exit(2);          exit(2);
 }],  }]])],[ol_cv_pthread_select_yields=no],[ol_cv_pthread_select_yields=yes],[ol_cv_pthread_select_yields=cross])])
                                 [ol_cv_pthread_select_yields=no],  
                                 [ol_cv_pthread_select_yields=yes],  
                                 [ol_cv_pthread_select_yields=cross])])  
   
                                 if test $ol_cv_pthread_select_yields = cross ; then                                  if test $ol_cv_pthread_select_yields = cross ; then
                                         AC_MSG_ERROR([crossing compiling: use --with-yielding_select=yes|no|manual])                                          AC_MSG_ERROR([crossing compiling: use --with-yielding_select=yes|no|manual])
Line 1619  if test $ol_with_threads = auto -o $ol_w Line 1706  if test $ol_with_threads = auto -o $ol_w
                                 dnl save the flags                                  dnl save the flags
                                 save_LIBS="$LIBS"                                  save_LIBS="$LIBS"
                                 LIBS="-all_load $LIBS"                                  LIBS="-all_load $LIBS"
                                 AC_TRY_LINK([#include <mach/cthreads.h>],[                                  AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <mach/cthreads.h>]], [[
                                         cthread_fork((void *)0, (void *)0);                                          cthread_fork((void *)0, (void *)0);
                                         ], ol_cv_cthread_all_load=yes, ol_cv_cthread_all_load=no)                                          ]])],[ol_cv_cthread_all_load=yes],[ol_cv_cthread_all_load=no])
                                 dnl restore the LIBS                                  dnl restore the LIBS
                                 LIBS="$save_LIBS"                                  LIBS="$save_LIBS"
                         ])                          ])
Line 1765  if test $ol_link_threads != no -a $ol_li Line 1852  if test $ol_link_threads != no -a $ol_li
         dnl If it does, we must link with thread support.          dnl If it does, we must link with thread support.
         AC_CACHE_CHECK([for thread specific errno],          AC_CACHE_CHECK([for thread specific errno],
                 [ol_cv_errno_thread_specific], [                  [ol_cv_errno_thread_specific], [
                 AC_TRY_LINK([#include <errno.h>], [errno = 0;],                  AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[errno = 0;]])],[ol_cv_errno_thread_specific=yes],[ol_cv_errno_thread_specific=no])
                         [ol_cv_errno_thread_specific=yes],  
                         [ol_cv_errno_thread_specific=no])  
         ])          ])
   
         dnl The h_errno declaration may dependent upon _REENTRANT.          dnl The h_errno declaration may dependent upon _REENTRANT.
         dnl If it does, we must link with thread support.          dnl If it does, we must link with thread support.
         AC_CACHE_CHECK([for thread specific h_errno],          AC_CACHE_CHECK([for thread specific h_errno],
                 [ol_cv_h_errno_thread_specific], [                  [ol_cv_h_errno_thread_specific], [
                 AC_TRY_LINK([#include <netdb.h>], [h_errno = 0;],                  AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <netdb.h>]], [[h_errno = 0;]])],[ol_cv_h_errno_thread_specific=yes],[ol_cv_h_errno_thread_specific=no])
                         [ol_cv_h_errno_thread_specific=yes],  
                         [ol_cv_h_errno_thread_specific=no])  
         ])          ])
   
         if test $ol_cv_errno_thread_specific != yes \          if test $ol_cv_errno_thread_specific != yes \
Line 1852  if test $ol_link_threads = no ; then Line 1935  if test $ol_link_threads = no ; then
 fi  fi
   
 if test $ol_link_threads != no ; then  if test $ol_link_threads != no ; then
         AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE,1)          AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE,1,
                   [define to 1 if library is thread safe])
 fi  fi
   
 dnl ----------------------------------------------------------------  dnl ----------------------------------------------------------------
Line 2000  if test $ol_enable_wrappers != no ; then Line 2084  if test $ol_enable_wrappers != no ; then
                 AC_MSG_CHECKING([for TCP wrappers library])                  AC_MSG_CHECKING([for TCP wrappers library])
                 save_LIBS="$LIBS"                  save_LIBS="$LIBS"
                 LIBS="$LIBS -lwrap"                  LIBS="$LIBS -lwrap"
                 AC_TRY_LINK([                  AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 #include <tcpd.h>  #include <tcpd.h>
 int allow_severity = 0;  int allow_severity = 0;
 int deny_severity  = 0;  int deny_severity  = 0;
   
 struct request_info *req;  struct request_info *req;
                 ],[                  ]], [[
 hosts_access(req)  hosts_access(req)
                 ],[AC_MSG_RESULT([-lwrap])                  ]])],[AC_MSG_RESULT([-lwrap])
                 have_wrappers=yes                  have_wrappers=yes
                 LIBS="$save_LIBS"],[                  LIBS="$save_LIBS"],[
                 dnl try with -lnsl                  dnl try with -lnsl
Line 2026  hosts_access(req) Line 2110  hosts_access(req)
                 LIBS="$save_LIBS -lnsl"],[                  LIBS="$save_LIBS -lnsl"],[
                 AC_MSG_RESULT(no)                  AC_MSG_RESULT(no)
                 have_wrappers=no                  have_wrappers=no
                 LIBS=$save_LIBS])],[                  LIBS=$save_LIBS])])],[have_wrappers=no])
                 have_wrappers=no])],[have_wrappers=no])  
   
         if test $have_wrappers = yes ; then          if test $have_wrappers = yes ; then
                 AC_DEFINE(HAVE_TCPD,1, [define if you have -lwrap])                  AC_DEFINE(HAVE_TCPD,1, [define if you have -lwrap])
Line 2216  if test $ol_enable_proctitle != no ; the Line 2299  if test $ol_enable_proctitle != no ; the
                         [have_setproctitle=yes                          [have_setproctitle=yes
                         LUTIL_LIBS="$LUTIL_LIBS -lutil"],                          LUTIL_LIBS="$LUTIL_LIBS -lutil"],
                         [have_setproctitle=no                          [have_setproctitle=no
                         LIBOBJS="$LIBOBJS setproctitle.o"                          AC_LIBOBJ(setproctitle)
                         LIBSRCS="$LIBSRCS setproctitle.c"])])                          LIBSRCS="$LIBSRCS setproctitle.c"])])
   
         if test $have_setproctitle = yes ; then          if test $have_setproctitle = yes ; then
Line 2338  fi Line 2421  fi
 dnl ----------------------------------------------------------------  dnl ----------------------------------------------------------------
 dnl Checks for typedefs, structures, and compiler characteristics.  dnl Checks for typedefs, structures, and compiler characteristics.
   
 dnl Checks for long long  AC_CHECK_TYPE(mode_t, int)
 AC_CACHE_CHECK([long long], ol_cv_type_long_long, [  AC_CHECK_TYPE(off_t, long)
         AC_TRY_COMPILE([], [long long x;],  AC_CHECK_TYPE(pid_t, int)
                 [ol_cv_type_long_long=yes],  
                 [ol_cv_type_long_long=no])])  
 if test $ol_cv_type_long_long = yes; then  
         AC_DEFINE(HAVE_LONG_LONG, 1, [define if you have 'long long'])  
 fi  
   
 AC_TYPE_MODE_T  
 AC_TYPE_OFF_T  
 AC_TYPE_PID_T  
 AM_TYPE_PTRDIFF_T  
 AC_TYPE_SIGNAL  
 AC_TYPE_SIZE_T  
   
 AC_CHECK_TYPE(ssize_t, [signed int])  AC_CHECK_TYPE(ssize_t, [signed int])
 AC_CHECK_TYPE(caddr_t,  [char *])  AC_CHECK_TYPE(caddr_t,  [char *])
   AC_CHECK_TYPE(size_t, unsigned)
   
 OL_TYPE_SOCKLEN_T  AC_CHECK_TYPES([long long])
 AC_STRUCT_ST_BLKSIZE  AC_CHECK_TYPES([ptrdiff_t])
 AC_HEADER_TIME  
 AC_STRUCT_TM  
 AC_TYPE_UID_T  
 OL_TYPE_SIG_ATOMIC_T  
   
   AC_TYPE_SIGNAL
   AC_TYPE_UID_T
 dnl AC_TYPE_GETGROUPS  dnl AC_TYPE_GETGROUPS
   OL_TYPE_SOCKLEN_T
   OL_TYPE_SIG_ATOMIC_T
   
 OL_STRUCT_PASSWD_PW_GECOS  AC_HEADER_TIME
 OL_STRUCT_PASSWD_PW_PASSWD  AC_STRUCT_TM
   AC_CHECK_MEMBERS([struct stat.st_blksize])
   AC_CHECK_MEMBERS([struct passwd.pw_gecos])
   AC_CHECK_MEMBERS([struct passwd.pw_passwd])
   
 OL_C_UPPER_LOWER  OL_C_UPPER_LOWER
 AC_C_CONST  AC_C_CONST
Line 2380  else Line 2454  else
         AC_C_BIGENDIAN          AC_C_BIGENDIAN
 fi  fi
   
 AC_COMPILE_CHECK_SIZEOF(short)   AC_CHECK_SIZEOF(short) 
 AC_COMPILE_CHECK_SIZEOF(int)   AC_CHECK_SIZEOF(int) 
 AC_COMPILE_CHECK_SIZEOF(long)  AC_CHECK_SIZEOF(long)
 AC_COMPILE_CHECK_SIZEOF(wchar_t)  AC_CHECK_SIZEOF(wchar_t)
   
 if test "$ac_cv_sizeof_int" -lt 4 ; then  if test "$ac_cv_sizeof_int" -lt 4 ; then
         AC_MSG_WARN([OpenLDAP requires 'int' to be 32 bits or greater.])          AC_MSG_WARN([OpenLDAP requires 'int' to be 32 bits or greater.])
   
         AC_DEFINE(LBER_INT_T,long)          AC_DEFINE(LBER_INT_T,long,[define to 32-bit or greater integer type])
 else  else
         AC_DEFINE(LBER_INT_T,int)          AC_DEFINE(LBER_INT_T,int,[define to 32-bit or greater integer type])
 fi  fi
   
 AC_DEFINE(LBER_LEN_T,long)  AC_DEFINE(LBER_LEN_T,long,[define to large integer type])
 AC_DEFINE(LBER_SOCKET_T,int)  AC_DEFINE(LBER_SOCKET_T,int,[define to socket descriptor type])
 AC_DEFINE(LBER_TAG_T,long)  AC_DEFINE(LBER_TAG_T,long,[define to large integer type])
   
 dnl ----------------------------------------------------------------  dnl ----------------------------------------------------------------
 dnl Checks for library functions.  dnl Checks for library functions.
 AC_FUNC_MEMCMP  AC_FUNC_MEMCMP
   
 if test $ac_cv_func_memcmp_clean = no ; then  if test $ac_cv_func_memcmp_working = no ; then
         AC_DEFINE(NEED_MEMCMP_REPLACEMENT,1,          AC_DEFINE(NEED_MEMCMP_REPLACEMENT,1,
                 [define if memcmp is not 8-bit clean or is otherwise broken])                  [define if memcmp is not 8-bit clean or is otherwise broken])
 fi  fi
   
 dnl AM_FUNC_MKTIME dnl checks for sys/time.h and unistd.h  dnl AC_FUNC_MKTIME([]) dnl checks for sys/time.h and unistd.h
 AC_FUNC_STRFTIME  AC_FUNC_STRFTIME
 dnl AM_FUNC_STRTOD  dnl AC_FUNC_STRTOD([])
   
 OL_FUNC_INET_ATON  OL_FUNC_INET_ATON
   
Line 2538  if test "$ol_enable_syslog" = yes ; then Line 2612  if test "$ol_enable_syslog" = yes ; then
                 [define this to add syslog code])                  [define this to add syslog code])
 fi  fi
 if test "$ol_link_kbind" != no ; then  if test "$ol_link_kbind" != no ; then
         AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND,LDAP_VENDOR_VERSION)          AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND,LDAP_VENDOR_VERSION,
                   [define to LDAP VENDOR VERSION])
 fi  fi
 if test "$ol_enable_proctitle" != no ; then  if test "$ol_enable_proctitle" != no ; then
         AC_DEFINE(LDAP_PROCTITLE,1,          AC_DEFINE(LDAP_PROCTITLE,1,
                 [define this for LDAP process title support])                  [define this for LDAP process title support])
 fi  fi
 if test "$ol_enable_referrals" != no ; then  if test "$ol_enable_referrals" != no ; then
         AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS,LDAP_VENDOR_VERSION)          AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS,LDAP_VENDOR_VERSION,
                   [define to LDAP VENDOR VERSION])
 fi  fi
 if test "$ol_enable_local" != no; then  if test "$ol_enable_local" != no; then
         AC_DEFINE(LDAP_PF_LOCAL,1,[define to support PF_LOCAL])          AC_DEFINE(LDAP_PF_LOCAL,1,[define to support PF_LOCAL])
Line 3042  dnl ------------------------------------ Line 3118  dnl ------------------------------------
 dnl final output  dnl final output
 dnl  dnl
   
 AC_OUTPUT( \  AC_CONFIG_FILES([\
 Makefile:build/top.mk:Makefile.in:build/dir.mk \  Makefile:build/top.mk:Makefile.in:build/dir.mk \
 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \  doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \  doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
Line 3083  servers/slurpd/Makefile:build/top.mk:ser Line 3159  servers/slurpd/Makefile:build/top.mk:ser
 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \  tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
 tests/run \  tests/run \
 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \  tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
 ,[  ])
   AC_CONFIG_COMMANDS([default],[[
 chmod +x tests/run  chmod +x tests/run
 date > stamp-h  date > stamp-h
 BACKENDSC="servers/slapd/backends.c"  BACKENDSC="servers/slapd/backends.c"
Line 3119  ENDX Line 3196  ENDX
   
         cat >> $BACKENDSC << ENDX          cat >> $BACKENDSC << ENDX
   
 BackendInfo slap_binfo[[]] = {  BackendInfo slap_binfo[] = {
 ENDX  ENDX
   
         for b in config ${STATIC_BACKENDS}; do          for b in config ${STATIC_BACKENDS}; do
Line 3139  ENDX Line 3216  ENDX
 fi  fi
   
 echo Please run \"make depend\" to build dependencies  echo Please run \"make depend\" to build dependencies
 ],[STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"])  ]],[[STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"]])
   AC_OUTPUT

Removed from v.1.586  
changed lines
  Added in v.1.586.2.12


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org