From b3f10a08922f568b7cbc791354cf0d4267cd88c1 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 15 Jan 2011 10:19:20 -0800 Subject: Use autoconf standard HAVE_MKSTEMP define instead of old imake HAS_MKSTEMP Signed-off-by: Alan Coopersmith --- bmtoa.c | 4 ++-- configure.ac | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bmtoa.c b/bmtoa.c index 5e48776..2918469 100644 --- a/bmtoa.c +++ b/bmtoa.c @@ -44,7 +44,7 @@ from The Open Group. #include #include -#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) -- cgit v1.2.3