]> git.sur5r.net Git - openldap/blobdiff - contrib/ldaptcl/configure.in
Fix single-value delete, replace
[openldap] / contrib / ldaptcl / configure.in
index 8b5d743a0c367997a644b73622b98252957e0d61..804c39087f399db11b8e01f09d46d5ef100d8e48 100644 (file)
@@ -2,10 +2,10 @@ dnl   This file is an input file used by the GNU "autoconf" program to
 dnl    generate the file "configure", which is run during Tk installation
 dnl    to configure the system for the local environment.
 AC_INIT(neoXldap.c)
-# $Id: configure.in,v 1.15 1998/05/22 21:26:25 kunkee Exp $
+# $OpenLDAP$
 
-NEO_VERSION=1.0
-NEO_MAJOR_VERSION=1
+NEO_VERSION=2.0
+NEO_MAJOR_VERSION=2
 NEO_MINOR_VERSION=0
 VERSION=${NEO_VERSION}
 
@@ -16,16 +16,6 @@ if test "${exec_prefix}" = "NONE"; then
     exec_prefix=$prefix
 fi
 
-AC_ARG_ENABLE(gcc, [  --enable-gcc            allow use of gcc if available],
-    [neo_ok=$enableval], [neo_ok=no])
-if test "$neo_ok" = "yes"; then
-    AC_PROG_CC
-else
-    CC=${CC-cc}
-    AC_SUBST(CC)
-fi
-AC_PROG_CPP
-
 AC_ARG_ENABLE(gcc, [  --enable-gcc            allow use of gcc if available],
     [neo_ok=$enableval], [neo_ok=no])
 if test "$neo_ok" = "yes"; then
@@ -109,8 +99,8 @@ DL_LIBS=$TCL_DL_LIBS
 LD_FLAGS=$TCL_LD_FLAGS
 NEO_LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS
 
-eval "NEO_SHARED_LIB_FILE=libldap${TCL_SHARED_LIB_SUFFIX}"
-eval "NEO_UNSHARED_LIB_FILE=libldap${TCL_UNSHARED_LIB_SUFFIX}"
+eval "NEO_SHARED_LIB_FILE=libldaptcl${TCL_SHARED_LIB_SUFFIX}"
+eval "NEO_UNSHARED_LIB_FILE=libldaptcl${TCL_UNSHARED_LIB_SUFFIX}"
 
 #--------------------------------------------------------------------
 #      The statements below define a collection of symbols related to
@@ -126,7 +116,7 @@ AC_ARG_ENABLE(shared,
 if test "$ok" = "yes" -a "${SHLIB_SUFFIX}" != ""; then
     NEO_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
     eval "NEO_LIB_FILE=libldaptcl${TCL_SHARED_LIB_SUFFIX}"
-    MAKE_LIB="\${SHLIB_LD} $TCL_LIB_HNAME -o ${NEO_LIB_FILE} \${OBJS}"
+    MAKE_LIB="\${SHLIB_LD} $TCL_LIB_HNAME -o ${NEO_LIB_FILE} \${OBJS} \${LDAP_LIBFLAGS}"
     RANLIB=":"
 else
     NEO_SHLIB_CFLAGS=""
@@ -155,7 +145,7 @@ AC_ARG_WITH(ldap-incdir, [  --with-ldap-incdir=<dir>    path to ldap.h],
 
 ldaplibdir=$ldapdir/lib
 AC_ARG_WITH(ldap-libdir, [  --with-ldap-libdir=<dir>    path to ldap and lber libs],
-       [ldapincdir=$withval])
+       [ldaplibdir=$withval])
 
 AC_ARG_WITH(ldap-libraries, [  --with-ldap-libflags=<libnames>   -l flags for ldap libraries],
        [ldaplibflags="-L$ldaplibdir $withval"],
@@ -169,6 +159,7 @@ AC_SUBST(ldaplibflags)
 AC_SUBST(ldapinclude)
 AC_SUBST(ldapbuild)
 AC_SUBST(ldapdir)
+AC_SUBST(ldapincdir)
 
 
 VERSION=${NEO_VERSION}