From 7eb65edae91d64b4d60961184403215b204fdd35 Mon Sep 17 00:00:00 2001 From: wlemb Date: Fri, 20 Apr 2001 23:53:47 +0000 Subject: * 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'. --- aclocal.m4 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'aclocal.m4') 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 ]) +AC_EGREP_CPP(mkstemp, +[#include ], +AC_MSG_RESULT(yes);AC_DEFINE(HAVE_MKSTEMP_PROTO), +AC_MSG_RESULT(no))])]) -- cgit v1.2.1