]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9485 - Update contrib ldapc++ for autoconf-2.71
authorQuanah Gibson-Mount <quanah@openldap.org>
Tue, 6 Jul 2021 16:28:12 +0000 (16:28 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 29 Jul 2021 18:22:52 +0000 (18:22 +0000)
contrib/ldapc++/configure.ac
contrib/ldapc++/src/ac/time.h

index 9e53b7243116521c824456d5fb2d4d3c358c0d76..ec6bc79bf30ae8b800d556fcf002946946ca68df 100644 (file)
@@ -8,10 +8,10 @@ dnl Process this file with autoconf to produce a configure script.
 AC_COPYRIGHT([[Copyright 2000-2021 The OpenLDAP Foundation. All rights reserved.
 Restrictions apply, see COPYRIGHT and LICENSE files.]])
 AC_REVISION([$Id$])
-AC_INIT(ldapcpplib, [] , [http://www.openldap.org/its/] )
+AC_INIT([ldapcpplib],[ ],[http://www.openldap.org/its/ ])
 AC_CONFIG_SRCDIR(src/LDAPConnection.h)
 AM_INIT_AUTOMAKE(foreign)
-AM_CONFIG_HEADER(src/config.h)
+AC_CONFIG_HEADERS([src/config.h])
 
 eval `$ac_aux_dir/version.sh`
 if test -z "$OL_CPP_API_RELEASE"; then
@@ -27,8 +27,8 @@ AC_PROG_INSTALL
 dnl AC_PROG_CC
 AC_PROG_CXX
 dnl AC_PROG_RANLIB
-dnl AM_DISABLE_SHARED
-AC_PROG_LIBTOOL
+dnl AC_DISABLE_SHARED([])
+LT_INIT
 dnl AC_PROG_MAKE_SET
 AC_ARG_ENABLE(debug,[  --enable-debug],[
        CXXFLAGS="-g -O0 -Wall"
@@ -72,7 +72,6 @@ dnl NOOP
     -llber
     ])
 dnl Checks for header files.
-AC_HEADER_TIME
 AC_CHECK_HEADERS(termios.h ldap.h)
 AC_EGREP_HEADER(ldap_add_ext,ldap.h,[
 dnl NOOP
@@ -98,4 +97,5 @@ dnl Checks for typedefs, structures, and compiler characteristics.
 
 dnl Checks for library functions.
 
-AC_OUTPUT(Makefile src/Makefile examples/Makefile)
+AC_CONFIG_FILES([Makefile src/Makefile examples/Makefile])
+AC_OUTPUT
index 7c7f6c680ca5078ca7302dde149ed5fcbefb3f74..6ea30f0dd9e670d738888398df5b6cb1169c4084 100644 (file)
 #ifndef _AC_TIME_H
 #define _AC_TIME_H
 
-#ifdef TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#elif defined HAVE_SYS_TIME_H
+#if defined HAVE_SYS_TIME_H
 # include <sys/time.h>
 # ifdef HAVE_SYS_TIMEB_H
 #  include <sys/timeb.h>
 # endif
-#else
-# include <time.h>
 #endif
+# include <time.h>
 
 #endif /* _AC_TIME_H */