summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorwlemb <wlemb>2000-05-31 14:18:41 +0000
committerwlemb <wlemb>2000-05-31 14:18:41 +0000
commit8e3dd5967e77a57e8e2359e80421686ed0f9c622 (patch)
tree0ebf8d45f42e54635deeba0dcbeba2e68e368490 /aclocal.m4
parentbbc23036e5152f165a47f9247c4bfbed293bfd31 (diff)
downloadgroff-8e3dd5967e77a57e8e2359e80421686ed0f9c622.tar.gz
* src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
strncasecmp(). * aclocal.m4 (GROFF_SRAND): New function to test the return value of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'. * configure.in: Use it. * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it. * configure, Makefile.in: Updated. * configure.in: Add test for strncasecmp(). * src/include/lib.h: Use it.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 77a4d800..8bc06f50 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -136,6 +136,19 @@ AC_MSG_RESULT(yes);AC_DEFINE(STDIO_H_DECLARES_PCLOSE))
AC_LANG_RESTORE])dnl
dnl
dnl
+dnl srand() of SunOS 4.1.3 has return type int instead of void
+dnl
+AC_DEFUN(GROFF_SRAND,
+[AC_LANG_SAVE
+AC_LANG_CPLUSPLUS
+AC_MSG_CHECKING([for return type of srand])
+AC_TRY_COMPILE([#include <stdlib.h>
+extern "C" { void srand(unsigned int); }],,
+AC_MSG_RESULT(void);AC_DEFINE(RET_TYPE_SRAND_IS_VOID),
+AC_MSG_RESULT(int))
+AC_LANG_RESTORE])dnl
+dnl
+dnl
AC_DEFUN(GROFF_SYS_NERR,
[AC_LANG_SAVE
AC_LANG_CPLUSPLUS