]> git.sur5r.net Git - openldap/blobdiff - contrib/ldapc++/configure.in
Update guide Copyright/License handling
[openldap] / contrib / ldapc++ / configure.in
index f7d8e3f5e9bd0750b4f66a7c7a4bf16a88485985..1725c1ccd6cda19fe04c0d97ceb18ea97cb5eb97 100644 (file)
@@ -1,30 +1,39 @@
-dnl Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
+dnl $OpenLDAP$
+
+dnl Copyright 2000-2011 The OpenLDAP Foundation. All Rights Reserved.
 dnl COPYING RESTRICTIONS APPLY, see COPYRIGHT file
-  
-  
-dnl Process this file with autoconf to produce a configure script.
 
-dnl disable config.cache
-define([AC_CACHE_LOAD], )
-define([AC_CACHE_SAVE], )
+dnl Process this file with autoconf to produce a configure script.
 
-AC_INIT(src/main.cpp)
-AM_INIT_AUTOMAKE(main, 0.0.1)
+AC_COPYRIGHT([[Copyright 2000-2011 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_CONFIG_SRCDIR(src/LDAPConnection.h)
+AM_INIT_AUTOMAKE(foreign)
 AM_CONFIG_HEADER(src/config.h)
 
+eval `$ac_aux_dir/version.sh`
+if test -z "$OL_CPP_API_RELEASE"; then
+        AC_MSG_ERROR([could not determine version])
+fi
 
+VERSION=$OL_CPP_API_RELEASE
+OPENLDAP_CPP_API_VERSION=$OL_CPP_API_VERSION
+AC_SUBST(VERSION)
+AC_SUBST(OPENLDAP_CPP_API_VERSION)
 dnl Checks for programs.
 AC_PROG_INSTALL
 dnl AC_PROG_CC
 AC_PROG_CXX
-AC_PROG_RANLIB
+dnl AC_PROG_RANLIB
 dnl AM_DISABLE_SHARED
-AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
 dnl AC_PROG_MAKE_SET
-AC_ARG_ENABLE(debug,--enable-debug,[
+AC_ARG_ENABLE(debug,[  --enable-debug],[
        CXXFLAGS="-g -O0 -Wall"
-    AC_DEFINE(WITH_DEBUG)
-       ]
+    AC_DEFINE(WITH_DEBUG,[],[Define to 1 ot enable debug logging])
+       ],
 )
 
 AC_ARG_WITH(libldap,[  --with-libldap=DIR          Path to the libldap library [/usr/local/lib]],[
@@ -43,6 +52,8 @@ AC_ARG_WITH(ldap-includes,[  --with-ldap-includes=DIR    Path to the libldap inc
 dnl Checks for libraries.
 AC_CHECK_LIB(resolv,main)
 AC_CHECK_LIB(lber,ber_strdup,[
+dnl NOOP
+        :
     ],[
         echo "        didn't find ber_strdup in liblber !";
         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
@@ -50,6 +61,8 @@ AC_CHECK_LIB(lber,ber_strdup,[
         exit
     ])
 AC_CHECK_LIB(ldap,ldap_add_ext,[
+dnl NOOP
+        :
     ],[
         echo "        didn't find ldap_add_ext in libldap !";
         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
@@ -60,8 +73,10 @@ AC_CHECK_LIB(ldap,ldap_add_ext,[
     ])
 dnl Checks for header files.
 AC_HEADER_TIME
-AC_CHECK_HEADER(ldap.h)
+AC_CHECK_HEADERS(termios.h ldap.h)
 AC_EGREP_HEADER(ldap_add_ext,ldap.h,[
+dnl NOOP
+        :
     ],[
         echo "        didn't find ldap_add_ext in ldap.h!";
         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
@@ -70,6 +85,8 @@ AC_EGREP_HEADER(ldap_add_ext,ldap.h,[
     ])
 AC_CHECK_HEADER(lber.h)
 AC_EGREP_HEADER(ber_strdup,lber.h,[
+dnl NOOP
+        :
     ],[
         echo "        didn't find ber_strdup in lber.h!";
         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
@@ -81,4 +98,4 @@ dnl Checks for typedefs, structures, and compiler characteristics.
 
 dnl Checks for library functions.
 
-AC_OUTPUT(Makefile src/Makefile)
+AC_OUTPUT(Makefile src/Makefile examples/Makefile)