diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-01-15 10:19:20 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-01-15 10:30:10 -0800 |
commit | b3f10a08922f568b7cbc791354cf0d4267cd88c1 (patch) | |
tree | d065d9f02d4608c928bc184da9e19276f7efd832 | |
parent | ff81a4e4e894915bb6b8aece8314ca1a854140a4 (diff) |
Use autoconf standard HAVE_MKSTEMP define instead of old imake HAS_MKSTEMP
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | bmtoa.c | 4 | ||||
-rw-r--r-- | configure.ac | 3 |
2 files changed, 3 insertions, 4 deletions
@@ -44,7 +44,7 @@ from The Open Group. #include <stdlib.h> #include <unistd.h> -#ifndef HAS_MKSTEMP +#ifndef HAVE_MKSTEMP extern char *mktemp(); #endif @@ -78,7 +78,7 @@ copy_stdin (void) FILE *fp; int nread, nwritten; -#ifndef HAS_MKSTEMP +#ifndef HAVE_MKSTEMP if (mktemp (tmpfilename) == NULL) { fprintf (stderr, "%s: unable to genererate temporary file name for stdin.\n", diff --git a/configure.ac b/configure.ac index b05d070..9c977a6 100644 --- a/configure.ac +++ b/configure.ac @@ -40,8 +40,7 @@ XORG_DEFAULT_OPTIONS AM_PROG_CC_C_O -AC_CHECK_FUNC([mkstemp], - AC_DEFINE(HAS_MKSTEMP,1,[Define to 1 if you have the "mkstemp" function.])) +AC_CHECK_FUNCS([mkstemp]) # Obtain compiler/linker options from depedencies PKG_CHECK_MODULES(BMTOA, x11 xmu) |