From 43e6fc8e765445a93793e1f899efbd36e8c04f4e Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 21 Oct 1998 23:52:29 +0000 Subject: [PATCH] SLDAP compiles, needs LDBM work to link --- aclocal.m4 | 6 +++--- configure | 6 +++--- include/ac/ctype.h | 16 ++++++++++++++++ include/ac/errno.h | 5 +++++ include/ac/regex.h | 14 +++++++++----- include/ac/signal.h | 14 ++++++++++++++ include/portable.h.nt | 3 +++ 7 files changed, 53 insertions(+), 11 deletions(-) create mode 100644 include/ac/ctype.h create mode 100644 include/ac/signal.h diff --git a/aclocal.m4 b/aclocal.m4 index b6e6ca9700..6e8e2e667c 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -347,13 +347,13 @@ AC_DEFUN([OL_C_UPPER_LOWER], AC_MSG_CHECKING([if toupper() requires islower()]) AC_CACHE_VAL(ol_cv_c_upper_lower,[ AC_TRY_RUN([ -#include +#include main() { if ('C' == toupper('C')) - exit 0; + exit(0); else - exit 1; + exit(1); }], [ol_cv_c_upper_lower=no], [ol_cv_c_upper_lower=yes], diff --git a/configure b/configure index 516047020c..0ee9272d2c 100755 --- a/configure +++ b/configure @@ -5444,13 +5444,13 @@ else #line 5445 "configure" #include "confdefs.h" -#include +#include main() { if ('C' == toupper('C')) - exit 0; + exit(0); else - exit 1; + exit(1); } EOF if { (eval echo configure:5457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null diff --git a/include/ac/ctype.h b/include/ac/ctype.h new file mode 100644 index 0000000000..e16a5ec80f --- /dev/null +++ b/include/ac/ctype.h @@ -0,0 +1,16 @@ +/* Generic ctype.h */ + +#ifndef _AC_CTYPE_H +#define _AC_CTYPE_H + +#include + +#ifdef C_UPPER_LOWER +# define TOUPPER(c) (islower(c) ? toupper(c) : (c)) +# define TOLOWER(c) (islower(c) ? toupper(c) : (c)) +#else +# define TOUPPER(c) toupper(c) +# define TOLOWER(c) tolower(c) +#endif + +#endif /* _AC_CTYPE_H */ diff --git a/include/ac/errno.h b/include/ac/errno.h index edeb90764e..b4854c8ba0 100644 --- a/include/ac/errno.h +++ b/include/ac/errno.h @@ -9,6 +9,11 @@ # include #endif +#ifdef DECL_SYS_ERRLIST +extern int sys_nerr; +extern char *sys_errlist[]; +#endif + /* use _POSIX_VERSION for POSIX.1 code */ #endif /* _AC_ERRNO_H */ diff --git a/include/ac/regex.h b/include/ac/regex.h index c646a08d93..cc21e66215 100644 --- a/include/ac/regex.h +++ b/include/ac/regex.h @@ -8,12 +8,16 @@ #include #endif -#ifdef HAVE_REGEX_H +#ifndef HAVE_REGEX_H +/* NO POSIX REGEX!! + you'll need to install a POSIX compatible REGEX library. + Either Henry Spencer's or GNU regex will do. + + For NT: http://people.delphi.com/gjc/hs_regex.html +*/ +#else /* have regex.h, assume it's POSIX compliant */ # include -#else - /* no regex.h, use compatibility library */ -# include -#endif /* ! regex.h */ +#endif /* regex.h */ #endif /* _AC_REGEX_H_ */ diff --git a/include/ac/signal.h b/include/ac/signal.h new file mode 100644 index 0000000000..56597a0bfe --- /dev/null +++ b/include/ac/signal.h @@ -0,0 +1,14 @@ +/* Generic signal.h */ + +#ifndef _AC_SIGNAL_H +#define _AC_SIGNAL_H + +#include + +#ifdef HAVE_SIGSET +#define SIGNAL sigset +#else +#define SIGNAL signal +#endif + +#endif /* _AC_SIGNAL_H */ diff --git a/include/portable.h.nt b/include/portable.h.nt index b81d8d1656..d715fb1bbe 100644 --- a/include/portable.h.nt +++ b/include/portable.h.nt @@ -31,6 +31,9 @@ is provided ``as is'' without express or implied warranty. #ifndef _LDAP_PORTABLE_H #define _LDAP_PORTABLE_H +/* we installed Henry Spencer's REGEX */ +#define HAVE_REGEX_H 1 + /* win32 specific stuff */ #define strcasecmp stricmp #define strncasecmp strnicmp -- 2.39.5