summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbje <bje>1998-10-03 04:34:47 +0000
committerbje <bje>1998-10-03 04:34:47 +0000
commitd959f43a2226cb141cfab2e939e837423f152ff5 (patch)
tree756e4638e4c52dfa32c475b12ebc005d7ca095e3
parent42fa8e0dc950a232993087c400c8f55d7eb47ba1 (diff)
Correct oversight in AC_DEFINE logic.
-rwxr-xr-xconfigure11
-rw-r--r--configure.in2
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
-#line 982 "configure"
+#line 987 "configure"
#include "confdefs.h"
#include <$ac_hdr>
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]))