diff options
author | wlemb <wlemb> | 2001-04-20 23:53:47 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2001-04-20 23:53:47 +0000 |
commit | 7eb65edae91d64b4d60961184403215b204fdd35 (patch) | |
tree | 895d779e357d2ecc92626f6d4bd31c64a2fadc27 /aclocal.m4 | |
parent | f874b9a4016a8ce490ecccfee92e4edeaf316a7d (diff) | |
download | groff-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.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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))])]) |