summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-11-26 21:53:24 +0000
committerwlemb <wlemb>2001-11-26 21:53:24 +0000
commit0380dc494b9e026075a49a9f8b0c9b8a1e6d11a5 (patch)
tree907a9b4ace936d336e2c50a1c45c282383face4d /aclocal.m4
parent27f30ca70d36830294cb7927910061676d4a255d (diff)
downloadgroff-0380dc494b9e026075a49a9f8b0c9b8a1e6d11a5.tar.gz
* aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
* configure: Regenerated. * win32-diffs: Updated. * tmac/groff_mwww.tmac: Renamed to ... * tmac/groff_www.tmac: This. * tmac/mwww.tmac: Removed. * NEWS, tmac/Makefile.sub: Updated. * doc/groff.texinfo: Improve documentation of the `\v' escape. Fix explanation of `\D' and `rt'.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m413
1 files changed, 8 insertions, 5 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index bf4308db..6f36ca89 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -504,12 +504,15 @@ dnl
dnl If mkstemp() isn't available, use our own mkstemp.cc file.
dnl
AC_DEFUN(GROFF_MKSTEMP,
-[AC_LANG_PUSH(C++)
+[AC_MSG_CHECKING([for mkstemp])
+AC_LANG_PUSH(C++)
AC_LIBSOURCE(mkstemp.cc)
-AC_CHECK_FUNC(mkstemp,
- [AC_DEFINE(HAVE_MKSTEMP, 1,
- [Define if you have mkstemp().])],
- [_AC_LIBOBJ(mkstemp)])
+AC_TRY_LINK([#include <stdlib.h>
+int (*f) (char *);],
+[f = mkstemp;],
+AC_MSG_RESULT(yes);AC_DEFINE(HAVE_MKSTEMP, 1,
+ [Define if you have mkstemp().]),
+AC_MSG_RESULT(no);_AC_LIBOBJ(mkstemp))
AC_LANG_POP(C++)])dnl
dnl
dnl