From d959f43a2226cb141cfab2e939e837423f152ff5 Mon Sep 17 00:00:00 2001 From: bje Date: Sat, 3 Oct 1998 04:34:47 +0000 Subject: Correct oversight in AC_DEFINE logic. --- configure | 11 ++++++++--- configure.in | 2 ++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 3cea8d4..8cd92d5 100755 --- a/configure +++ b/configure @@ -967,23 +967,28 @@ if test x$p32_cv_stdcall = xyes ; then #define STDCALL _stdcall EOF +else + cat >> confdefs.h <<\EOF +#define STDCALL +EOF + fi for ac_hdr in windows.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:977: checking for $ac_hdr" >&5 +echo "configure:982: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* diff --git a/configure.in b/configure.in index 7bd1784..f3726f6 100644 --- a/configure.in +++ b/configure.in @@ -21,6 +21,8 @@ AC_CACHE_CHECK(for _stdcall keyword, p32_cv_stdcall, if test x$p32_cv_stdcall = xyes ; then AC_DEFINE(STDCALL, _stdcall) +else + AC_DEFINE(STDCALL,) fi AC_CHECK_HEADERS(windows.h,,AC_MSG_WARN([Target system must be Win32])) -- cgit v1.2.3