Now makes newer autoconfs happier.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 11 Jul 2002 08:46:30 +0000
changeset 331 822f78a88aba
parent 330 5ca5066cf5ff
child 332 e670cee9e9b1
Now makes newer autoconfs happier.
configure.in
--- a/configure.in	Thu Jul 11 08:44:27 2002 +0000
+++ b/configure.in	Thu Jul 11 08:46:30 2002 +0000
@@ -75,11 +75,11 @@
     CFLAGS="-O0"
   fi
   CFLAGS="$CFLAGS -Werror -Wall"
-  AC_DEFINE(DEBUG)
-  AC_DEFINE(DEBUG_CHATTER)
+  AC_DEFINE([DEBUG], 1, [define if debug build is enabled])
+  AC_DEFINE([DEBUG_CHATTER], 1, [define if debug chatter is enabled])
 else
   CFLAGS="-O2"
-  AC_DEFINE(NDEBUG)
+  AC_DEFINE([NDEBUG], 1, [define if debug build is disabled])
 fi
 
 
@@ -100,7 +100,7 @@
 dnl check for 64-bit llseek()...
 dnl AC_CHECK_LIB(c, llseek, have_llseek=yes)
 if test x$have_llseek = xyes; then
-  AC_DEFINE(PHYSFS_HAVE_LLSEEK)
+  AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek])
 fi
 
 require_zlib="no"
@@ -110,7 +110,7 @@
 [  --enable-zip               enable ZIP support [default=yes]],
               , enable_zip=yes)
 if test x$enable_zip = xyes; then
-  AC_DEFINE(PHYSFS_SUPPORTS_ZIP)
+  AC_DEFINE([PHYSFS_SUPPORTS_ZIP], 1, [define if zip support is enabled])
   require_zlib="yes"
 fi
 
@@ -120,7 +120,7 @@
 [  --enable-grp               enable Build Engine GRP support [default=yes]],
               , enable_grp=yes)
 if test x$enable_grp = xyes; then
-  AC_DEFINE(PHYSFS_SUPPORTS_GRP)
+  AC_DEFINE([PHYSFS_SUPPORTS_GRP], 1, [define if grp support is enabled])
 fi
 
 
@@ -188,7 +188,7 @@
   AC_CHECK_LIB(readline, add_history, have_history_lib=yes, , -lcurses)
   if test x$have_readline_hdr = xyes -a x$have_readline_lib = xyes; then
     if test x$have_history_hdr = xyes -a x$have_history_lib = xyes; then
-      AC_DEFINE(PHYSFS_HAVE_READLINE)
+      AC_DEFINE([PHYSFS_HAVE_READLINE], 1, [define if we have readline])
       LIBS="$LIBS -lreadline -lcurses"
     fi
   fi