summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-04-20 23:53:47 +0000
committerwlemb <wlemb>2001-04-20 23:53:47 +0000
commit7eb65edae91d64b4d60961184403215b204fdd35 (patch)
tree895d779e357d2ecc92626f6d4bd31c64a2fadc27 /aclocal.m4
parentf874b9a4016a8ce490ecccfee92e4edeaf316a7d (diff)
downloadgroff-7eb65edae91d64b4d60961184403215b204fdd35.tar.gz
* configure.in: Move check for mkstemp() to...
* aclocal.m4 (GROFF_MKSTEMP): This new function. * configure: Regenerated. * src/include/groff-getopt.h: Don't use variable names in declarations. * configure.in: Add special check for mkstemp(). * src/libs/libgroff/tmpfile.cc: Use it. * src/utils/indxbib/indxbib.cc: Ditto. * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style. * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use `const'.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 34ee4f1f..53e09ae7 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -514,3 +514,15 @@ if test $groff_cv_decl_needed_$1 = yes; then
AC_DEFINE([NEED_DECLARATION_]translit($1, [a-z], [A-Z]))
fi
AC_LANG_RESTORE])dnl
+dnl
+dnl
+dnl Check for mkstemp() and its function prototype.
+dnl
+AC_DEFUN(GROFF_MKSTEMP,
+[AC_CHECK_FUNC(mkstemp,
+[AC_DEFINE(HAVE_MKSTEMP)
+AC_MSG_CHECKING([for mkstemp prototype in <stdlib.h>])
+AC_EGREP_CPP(mkstemp,
+[#include <stdlib.h>],
+AC_MSG_RESULT(yes);AC_DEFINE(HAVE_MKSTEMP_PROTO),
+AC_MSG_RESULT(no))])])