Update AC_DEFINES to use autoconf 1.3 descriptions.

Update acconfig.h to use @TOP@ and @BOTTOM@ to rid ourselves of
the .top/.bot files.
This commit is contained in:
Kurt Zeilenga 1999-02-03 01:05:41 +00:00
parent 0c2ce661fb
commit ee05cd8038
6 changed files with 462 additions and 496 deletions

View file

@ -1,13 +1,18 @@
/* acconfig.h /*
Copyright 1998 The OpenLDAP Foundation, All Rights Reserved. * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
COPYING RESTRICTIONS APPLY, See COPYRIGHT file * All rights reserved.
*
* Redistribution and use in source and binary forms are permitted only
* as authorized by the OpenLDAP Public License. A copy of this
* license is available at http://www.OpenLDAP.org/license.html or
* in file LICENSE in the top-level directory of the distribution.
*/
Descriptive text for the C preprocessor macros that #ifndef _LDAP_PORTABLE_H
the distributed Autoconf macros can define. #define _LDAP_PORTABLE_H
Leave the following blank line there!! Autoheader needs it. */
/* end of preamble */
@TOP@
/* define this if needed to get reentrant functions */ /* define this if needed to get reentrant functions */
#ifndef REENTRANT #ifndef REENTRANT
@ -221,3 +226,15 @@
/* Leave that blank line there!! Autoheader needs it. */ /* Leave that blank line there!! Autoheader needs it. */
@BOTTOM@
/* begin of postamble */
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
#include "ldap_cdefs.h"
#include "ldap_features.h"
#endif /* _LDAP_PORTABLE_H */

686
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -357,24 +357,24 @@ if test $ol_enable_ldapd != no ; then
dnl look for ISODE libraries dnl look for ISODE libraries
AC_CHECK_LIB(xtpp, main, [ AC_CHECK_LIB(xtpp, main, [
ol_link_isode=yes ol_link_isode=yes
AC_DEFINE(HAVE_XTPP,1) AC_DEFINE(HAVE_XTPP,1, [define if you have -lxttp])
LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi" LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
],:,[-lxtdsap -lxtisode -losi]) ],:,[-lxtdsap -lxtisode -losi])
AC_CHECK_LIB(dsap, main, [ AC_CHECK_LIB(dsap, main, [
ol_link_isode=yes ol_link_isode=yes
AC_DEFINE(HAVE_DSAP,1) AC_DEFINE(HAVE_DSAP,1, [define if you have -ldsap])
LDAPD_LIBS="$LDAPD_LIBS -ldsap" LDAPD_LIBS="$LDAPD_LIBS -ldsap"
],:,[-lisode]) ],:,[-lisode])
AC_CHECK_LIB(isode, main, [ AC_CHECK_LIB(isode, main, [
ol_link_isode=yes ol_link_isode=yes
AC_DEFINE(HAVE_ISODE,1) AC_DEFINE(HAVE_ISODE,1, [define if you have -lisode])
LDAPD_LIBS="$LDAPD_LIBS -lisode" LDAPD_LIBS="$LDAPD_LIBS -lisode"
],:) ],:)
fi fi
if test $ol_link_isode != no; then if test $ol_link_isode != no; then
AC_CHECK_LIB(pp, main, [ AC_CHECK_LIB(pp, main, [
AC_DEFINE(HAVE_PP,1) AC_DEFINE(HAVE_PP,1, [define if you have -lpp])
LDAPD_LIBS="-lpp $LDAPD_LIBS" LDAPD_LIBS="-lpp $LDAPD_LIBS"
],:) ],:)
@ -397,7 +397,6 @@ if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
ol_with_kerberos=found ol_with_kerberos=found
ol_link_kerberos=yes ol_link_kerberos=yes
AC_DEFINE(HAVE_KERBEROS)
KRB_LIBS="-lkrb4 -lkrb5 -ldes425" KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
fi fi
fi fi
@ -413,18 +412,14 @@ if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
ol_with_kerberos=found ol_with_kerberos=found
ol_link_kerberos=yes ol_link_kerberos=yes
AC_DEFINE(HAVE_KERBEROS)
KRB_LIBS="-lkrb -ldes" KRB_LIBS="-lkrb -ldes"
fi fi
fi fi
fi fi
dnl if test $ol_link_kerberos = yes ; then if test $ol_link_kerberos = yes ; then
dnl save_LIBS=$LIBS AC_DEFINE(HAVE_KERBEROS, 1, [define if you have Kerberos])
dnl LIBS="$KRB_LIBS $LIBS" fi
dnl AC_CHECK_FUNCS(des_string_to_key)
dnl LIBS=$save_LIBS
dnl fi
ol_link_threads=no ol_link_threads=no
if test $ol_with_threads = auto -o $ol_with_threads = yes \ if test $ol_with_threads = auto -o $ol_with_threads = yes \
@ -436,9 +431,11 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
OL_POSIX_THREAD_VERSION OL_POSIX_THREAD_VERSION
if test $ol_cv_pthread_version = final ; then if test $ol_cv_pthread_version = final ; then
AC_DEFINE(HAVE_PTHREADS_FINAL) AC_DEFINE(HAVE_PTHREADS_FINAL,1,
[define if pthreads API compatible with final spec])
elif test $ol_cv_pthread_version = draft4 ; then elif test $ol_cv_pthread_version = draft4 ; then
AC_DEFINE(HAVE_PTHREADS_D4) AC_DEFINE(HAVE_PTHREADS_D4,1,
[define if pthreads API compatible with draft4 spec])
else else
AC_MSG_ERROR([unknown pthread version]) AC_MSG_ERROR([unknown pthread version])
fi fi
@ -449,7 +446,8 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
OL_LINUX_THREADS OL_LINUX_THREADS
if test $ol_cv_linux_threads = yes ; then if test $ol_cv_linux_threads = yes ; then
AC_DEFINE(HAVE_LINUX_THREADS,1) AC_DEFINE(HAVE_LINUX_THREADS,1,
[define if you have LinuxThreads])
fi fi
dnl Now the hard part, how to link? dnl Now the hard part, how to link?
@ -734,7 +732,8 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
fi fi
if test $ol_link_threads != no ; then if test $ol_link_threads != no ; then
AC_DEFINE(HAVE_PTHREADS) AC_DEFINE(HAVE_PTHREADS,1,
[define if you have POSIX Threads])
dnl save flags dnl save flags
save_CPPFLAGS="$CPPFLAGS" save_CPPFLAGS="$CPPFLAGS"
@ -944,7 +943,8 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
if test $ol_link_threads != no ; then if test $ol_link_threads != no ; then
: check for cthread specific functionality here : check for cthread specific functionality here
AC_DEFINE(HAVE_MACH_CTHREADS,1) AC_DEFINE(HAVE_MACH_CTHREADS,1,
[define if you have Mach Cthreads])
else else
AC_MSG_ERROR([could not link with Mach CThreads]) AC_MSG_ERROR([could not link with Mach CThreads])
fi fi
@ -964,7 +964,8 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
AC_CHECK_LIB(thread, thr_create, [have_thr=yes], [have_thr=no]) AC_CHECK_LIB(thread, thr_create, [have_thr=yes], [have_thr=no])
if test $have_thr = yes ; then if test $have_thr = yes ; then
AC_DEFINE(HAVE_THR) AC_DEFINE(HAVE_THR,1,
[if you have Solaris LWP (thr) package])
LTHREAD_LIBS="$LTHREAD_LIBS -lthread" LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
ol_link_threads=thr ol_link_threads=thr
@ -986,7 +987,8 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
AC_CHECK_LIB(lwp, lwp_create, [have_lwp=yes], [have_lwp=no]) AC_CHECK_LIB(lwp, lwp_create, [have_lwp=yes], [have_lwp=no])
if test $have_lwp = yes ; then if test $have_lwp = yes ; then
AC_DEFINE(HAVE_LWP) AC_DEFINE(HAVE_LWP,1,
[if you have SunOS LWP package])
LTHREAD_LIBS="$LTHREAD_LIBS -llwp" LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
ol_link_threads=lwp ol_link_threads=lwp
@ -998,7 +1000,8 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
fi fi
if test $ol_with_yielding_select = yes ; then if test $ol_with_yielding_select = yes ; then
AC_DEFINE(HAVE_YIELDING_SELECT,1) AC_DEFINE(HAVE_YIELDING_SELECT,1,
[define if select implicitly yields])
fi fi
if test $ol_with_threads = manual ; then if test $ol_with_threads = manual ; then
@ -1111,7 +1114,8 @@ if test $ol_link_threads = no ; then
ol_with_threads=no ol_with_threads=no
fi fi
AC_DEFINE(NO_THREADS,1) AC_DEFINE(NO_THREADS,1,
[define if you have (or want) no threads])
LTHREAD_LIBS="" LTHREAD_LIBS=""
fi fi
@ -1226,7 +1230,7 @@ if test $ol_enable_wrappers != no ; then
fi fi
if test $have_wrappers = yes ; then if test $have_wrappers = yes ; then
AC_DEFINE(HAVE_TCPD) AC_DEFINE(HAVE_TCPD,1, [define if you have -lwrap])
SLAPD_LIBS="$SLAPD_LIBS -lwrap" SLAPD_LIBS="$SLAPD_LIBS -lwrap"
else else
AC_MSG_WARN(could not find -lwrap) AC_MSG_WARN(could not find -lwrap)
@ -1259,7 +1263,7 @@ AC_CHECK_HEADERS(termcap.h ncurses.h)
if test $ol_link_termcap = no ; then if test $ol_link_termcap = no ; then
AC_CHECK_LIB(termcap, tputs, [have_termcap=yes], [have_termcap=no]) AC_CHECK_LIB(termcap, tputs, [have_termcap=yes], [have_termcap=no])
if test $have_termcap = yes ; then if test $have_termcap = yes ; then
AC_DEFINE(HAVE_TERMCAP) AC_DEFINE(HAVE_TERMCAP, 1, [define if you have -ltermcap])
ol_link_termcap=yes ol_link_termcap=yes
TERMCAP_LIBS=-ltermcap TERMCAP_LIBS=-ltermcap
fi fi
@ -1268,14 +1272,14 @@ fi
if test $ol_link_termcap = no ; then if test $ol_link_termcap = no ; then
AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no]) AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no])
if test $have_ncurses = yes ; then if test $have_ncurses = yes ; then
AC_DEFINE(HAVE_NCURSES) AC_DEFINE(HAVE_NCURSES, 1, [define if you have -lncurses])
ol_link_termcap=yes ol_link_termcap=yes
TERMCAP_LIBS=-lncurses TERMCAP_LIBS=-lncurses
fi fi
fi fi
if test $ol_link_termcap = no ; then if test $ol_link_termcap = no ; then
AC_DEFINE(NO_TERMCAP,1) AC_DEFINE(NO_TERMCAP,1, [define if you have no termcap support])
TERMCAP_LIBS= TERMCAP_LIBS=
fi fi
@ -1324,7 +1328,8 @@ AC_HEADER_DIRENT
AC_HEADER_SYS_WAIT AC_HEADER_SYS_WAIT
AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL
if test $am_cv_sys_posix_termios = yes ; then if test $am_cv_sys_posix_termios = yes ; then
AC_DEFINE(HAVE_POSIX_TERMIOS,1) AC_DEFINE(HAVE_POSIX_TERMIOS,1,
[define if you have POSIX termios])
fi fi
AC_CHECK_HEADERS( \ AC_CHECK_HEADERS( \
@ -1380,7 +1385,7 @@ AC_C_CONST
OL_C_VOLATILE OL_C_VOLATILE
if test $cross_compiling = yes ; then if test $cross_compiling = yes ; then
AC_DEFINE(CROSS_COMPILING, 1) AC_DEFINE(CROSS_COMPILING, 1, [define if cross compiling])
else else
AC_C_BIGENDIAN AC_C_BIGENDIAN
AC_CHECK_SIZEOF(short) AC_CHECK_SIZEOF(short)
@ -1484,13 +1489,13 @@ if test "$ol_enable_cache" = no ; then
AC_DEFINE(LDAP_NOCACHE,1) AC_DEFINE(LDAP_NOCACHE,1)
fi fi
if test "$ol_enable_dns" != no ; then if test "$ol_enable_dns" != no ; then
AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_DNS,LDAP_VENDOR_VERSION,1) AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_DNS,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)
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,1) AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS,LDAP_VENDOR_VERSION)
fi fi
if test "$ol_enable_cldap" != no ; then if test "$ol_enable_cldap" != no ; then
AC_DEFINE(LDAP_CONNECTIONLESS,1) AC_DEFINE(LDAP_CONNECTIONLESS,1)

View file

@ -1,21 +0,0 @@
/* portable.h.bot begin */
/*
* Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted only
* as authorized by the OpenLDAP Public License. A copy of this
* license is available at http://www.OpenLDAP.org/license.html or
* in file LICENSE in the top-level directory of the distribution.
*/
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
#include "ldap_cdefs.h"
#include "ldap_features.h"
#endif /* _LDAP_PORTABLE_H */
/* portable.h.bot end */

View file

@ -1,5 +1,4 @@
/* include/portable.h.in. Generated automatically from configure.in by autoheader. */ /* include/portable.h.in. Generated automatically from configure.in by autoheader. */
/* portable.h.top begin */
/* /*
* Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
* All rights reserved. * All rights reserved.
@ -13,7 +12,7 @@
#ifndef _LDAP_PORTABLE_H #ifndef _LDAP_PORTABLE_H
#define _LDAP_PORTABLE_H #define _LDAP_PORTABLE_H
/* portable.h.top end */ /* end of preamble */
/* Define if on AIX 3. /* Define if on AIX 3.
System headers sometimes define this. System headers sometimes define this.
@ -110,9 +109,6 @@
#undef _THREAD_SAFE #undef _THREAD_SAFE
#endif #endif
/* define this if cross compiling */
#undef CROSS_COMPILING
/* define this if toupper() requires tolower() check */ /* define this if toupper() requires tolower() check */
#undef C_UPPER_LOWER #undef C_UPPER_LOWER
@ -131,48 +127,12 @@
/* define if you have crypt */ /* define if you have crypt */
#undef HAVE_CRYPT #undef HAVE_CRYPT
/* define if you have DSAP */
#undef HAVE_DSAP
/* define if you have GDBM */ /* define if you have GDBM */
#undef HAVE_GDBM #undef HAVE_GDBM
/* define if you have ISODE */
#undef HAVE_ISODE
/* define if you have Kerberos */
#undef HAVE_KERBEROS
/* define if you have LinuxThreads */
#undef HAVE_LINUX_THREADS
/* define if you have Sun LWP (SunOS style) */
#undef HAVE_LWP
/* define if you have -lncurses */
#undef HAVE_NCURSES
/* define if you have NDBM */ /* define if you have NDBM */
#undef HAVE_NDBM #undef HAVE_NDBM
/* define if you have Mach CThreads */
#undef HAVE_MACH_CTHREADS
/* define if you have POSIX termios */
#undef HAVE_POSIX_TERMIOS
/* define if you have PP */
#undef HAVE_PP
/* define if you have POSIX Threads */
#undef HAVE_PTHREADS
/* define if your POSIX Threads implementation is circa Final Draft */
#undef HAVE_PTHREADS_FINAL
/* define if your POSIX Threads implementation is circa Draft 4 */
#undef HAVE_PTHREADS_D4
/* define if you have res_search() */ /* define if you have res_search() */
#ifdef __notdef__ #ifdef __notdef__
/* see second res_search define */ /* see second res_search define */
@ -188,21 +148,6 @@
/* define if you have setproctitle() */ /* define if you have setproctitle() */
#undef HAVE_SETPROCTITLE #undef HAVE_SETPROCTITLE
/* define if you have -lwrap */
#undef HAVE_TCPD
/* define if you have -ltermcap */
#undef HAVE_TERMCAP
/* define if you have Sun LWP (Solaris style) */
#undef HAVE_THR
/* define if you have XTPP */
#undef HAVE_XTPP
/* define this if select() implicitly yields in thread environments */
#undef HAVE_YIELDING_SELECT
/* define this for connectionless LDAP support */ /* define this for connectionless LDAP support */
#undef LDAP_CONNECTIONLESS #undef LDAP_CONNECTIONLESS
@ -227,12 +172,6 @@
/* define this to use DBHASH w/ LDBM backend */ /* define this to use DBHASH w/ LDBM backend */
#undef LDBM_USE_DBHASH #undef LDBM_USE_DBHASH
/* define this if you want no termcap support */
#undef NO_TERMCAP
/* define this if you want no thread support */
#undef NO_THREADS
/* define this for ACL Group support */ /* define this for ACL Group support */
#undef SLAPD_ACLGROUPS #undef SLAPD_ACLGROUPS
@ -616,28 +555,73 @@
/* Define if you have the socket library (-lsocket). */ /* Define if you have the socket library (-lsocket). */
#undef HAVE_LIBSOCKET #undef HAVE_LIBSOCKET
/* define if you have -lxttp */
#undef HAVE_XTPP
/* define if you have -ldsap */
#undef HAVE_DSAP
/* define if you have -lisode */
#undef HAVE_ISODE
/* define if you have -lpp */
#undef HAVE_PP
/* define if you have Kerberos */
#undef HAVE_KERBEROS
/* define if pthreads API compatible with final spec */
#undef HAVE_PTHREADS_FINAL
/* define if pthreads API compatible with draft4 spec */
#undef HAVE_PTHREADS_D4
/* define if you have LinuxThreads */
#undef HAVE_LINUX_THREADS
/* define if you have POSIX Threads */
#undef HAVE_PTHREADS
/* define if you have Mach Cthreads */
#undef HAVE_MACH_CTHREADS
/* if you have Solaris LWP (thr) package */
#undef HAVE_THR
/* if you have SunOS LWP package */
#undef HAVE_LWP
/* define if select implicitly yields */
#undef HAVE_YIELDING_SELECT
/* define if you have (or want) no threads */
#undef NO_THREADS
/* define if you have -lwrap */
#undef HAVE_TCPD
/* define if you have -ltermcap */
#undef HAVE_TERMCAP
/* define if you have -lncurses */
#undef HAVE_NCURSES
/* define if you have no termcap support */
#undef NO_TERMCAP
/* Define if TIOCGWINSZ requires sys/ioctl.h */ /* Define if TIOCGWINSZ requires sys/ioctl.h */
#undef GWINSZ_IN_SYS_IOCTL #undef GWINSZ_IN_SYS_IOCTL
/* define if you have POSIX termios */
#undef HAVE_POSIX_TERMIOS
/* Define if system has ptrdiff_t type */ /* Define if system has ptrdiff_t type */
#undef HAVE_PTRDIFF_T #undef HAVE_PTRDIFF_T
/* 1 */ /* define if cross compiling */
#undef LDAP_API_FEATURE_X_OPENLDAP_V2_DNS #undef CROSS_COMPILING
/* 1 */ /* begin of postamble */
#undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
/* portable.h.bot begin */
/*
* Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted only
* as authorized by the OpenLDAP Public License. A copy of this
* license is available at http://www.OpenLDAP.org/license.html or
* in file LICENSE in the top-level directory of the distribution.
*/
#ifdef HAVE_STDDEF_H #ifdef HAVE_STDDEF_H
# include <stddef.h> # include <stddef.h>
@ -647,5 +631,3 @@
#include "ldap_features.h" #include "ldap_features.h"
#endif /* _LDAP_PORTABLE_H */ #endif /* _LDAP_PORTABLE_H */
/* portable.h.bot end */

View file

@ -1,15 +0,0 @@
/* portable.h.top begin */
/*
* Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted only
* as authorized by the OpenLDAP Public License. A copy of this
* license is available at http://www.OpenLDAP.org/license.html or
* in file LICENSE in the top-level directory of the distribution.
*/
#ifndef _LDAP_PORTABLE_H
#define _LDAP_PORTABLE_H
/* portable.h.top end */