AC_MSG_CHECKING([if toupper() requires islower()])
AC_CACHE_VAL(ol_cv_c_upper_lower,[
AC_TRY_RUN([
-#include <ctypes.h>
+#include <ctype.h>
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],
#line 5445 "configure"
#include "confdefs.h"
-#include <ctypes.h>
+#include <ctype.h>
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
--- /dev/null
+/* Generic ctype.h */
+
+#ifndef _AC_CTYPE_H
+#define _AC_CTYPE_H
+
+#include <ctype.h>
+
+#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 */
# include <errno.h>
#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 */
#include <sys/types.h>
#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 <regex.h>
-#else
- /* no regex.h, use compatibility library */
-# include <regex-compat.h>
-#endif /* ! regex.h */
+#endif /* regex.h */
#endif /* _AC_REGEX_H_ */
--- /dev/null
+/* Generic signal.h */
+
+#ifndef _AC_SIGNAL_H
+#define _AC_SIGNAL_H
+
+#include <signal.h>
+
+#ifdef HAVE_SIGSET
+#define SIGNAL sigset
+#else
+#define SIGNAL signal
+#endif
+
+#endif /* _AC_SIGNAL_H */
#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