X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=contrib%2Fldaptcl%2Fconfigure.in;h=16b135293616700c63077e9a1a601681d4442fdd;hb=6018fe9671dcbb90e3845bc14851858c5d9fdf2a;hp=a1a5880e60607fa699a21546af0c44cc71331029;hpb=47a6da5c899e1dd5c8d79c428033962c430806f8;p=openldap diff --git a/contrib/ldaptcl/configure.in b/contrib/ldaptcl/configure.in index a1a5880e60..16b1352936 100644 --- a/contrib/ldaptcl/configure.in +++ b/contrib/ldaptcl/configure.in @@ -4,9 +4,11 @@ dnl to configure the system for the local environment. AC_INIT(neoXldap.c) # $OpenLDAP$ -NEO_VERSION=1.2 -NEO_MAJOR_VERSION=1 -NEO_MINOR_VERSION=2 +AC_REVISION([$Id$]) + +NEO_VERSION=2.0 +NEO_MAJOR_VERSION=2 +NEO_MINOR_VERSION=0 VERSION=${NEO_VERSION} if test "${prefix}" = "NONE"; then @@ -16,16 +18,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 @@ -62,7 +54,8 @@ AC_ARG_WITH(tk, [ --with-tk=DIR use Tk 8.0 binaries from DIR], case "$with_tk" in yes) - if test -f $exec_prefix/lib/tkConfig.sh -a $exec_prefix/lib/tkxConfig.sh + if test -f $exec_prefix/lib/tkConfig.sh && + test -f $exec_prefix/lib/tkxConfig.sh then : else @@ -123,7 +116,7 @@ eval "NEO_UNSHARED_LIB_FILE=libldaptcl${TCL_UNSHARED_LIB_SUFFIX}" AC_ARG_ENABLE(shared, [ --enable-shared build libldaptcl as a shared library], [ok=$enableval], [ok=no]) -if test "$ok" = "yes" -a "${SHLIB_SUFFIX}" != ""; then +if test "$ok" = "yes" && test "${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} \${LDAP_LIBFLAGS}" @@ -155,7 +148,7 @@ AC_ARG_WITH(ldap-incdir, [ --with-ldap-incdir= path to ldap.h], ldaplibdir=$ldapdir/lib AC_ARG_WITH(ldap-libdir, [ --with-ldap-libdir= path to ldap and lber libs], - [ldapincdir=$withval]) + [ldaplibdir=$withval]) AC_ARG_WITH(ldap-libraries, [ --with-ldap-libflags= -l flags for ldap libraries], [ldaplibflags="-L$ldaplibdir $withval"],