2002-04-30 Andrew Choi <akochoi@shaw.ca>
authorAndrew Choi <akochoi@shaw.ca>
Wed, 1 May 2002 04:30:59 +0000 (04:30 +0000)
committerAndrew Choi <akochoi@shaw.ca>
Wed, 1 May 2002 04:30:59 +0000 (04:30 +0000)
        * configure.in: Provide documentation string when defining
        variable HAVE_CARBON.  Also define HAVE_WINDOW_SYSTEM, HAVE_MOUSE,
        and HAVE_MENUS in AH_BOTTOM if HAVE_CARBON is defined.

ChangeLog
configure
configure.in
src/config.in

index fba9567..740644b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-04-30  Andrew Choi  <akochoi@shaw.ca>
+
+       * configure.in: Provide documentation string when defining
+       variable HAVE_CARBON.  Also define HAVE_WINDOW_SYSTEM, HAVE_MOUSE,
+       and HAVE_MENUS in AH_BOTTOM if HAVE_CARBON is defined.
+
 2002-04-28  Colin Walters  <walters@verbum.org>
 
        * configure.in: Delete configure check for access to the game
index 2d81a9c..ee57aa0 100755 (executable)
--- a/configure
+++ b/configure
@@ -9166,7 +9166,8 @@ fi
 fi
 
 if test "${HAVE_CARBON}" = "yes"; then
-  cat >>confdefs.h <<\_ACEOF
+
+cat >>confdefs.h <<\_ACEOF
 #define HAVE_CARBON 1
 _ACEOF
 
index 65d54ab..2d48555 100644 (file)
@@ -1994,7 +1994,7 @@ if test "${with_carbon}" != "no"; then
 fi
 
 if test "${HAVE_CARBON}" = "yes"; then
-  AC_DEFINE(HAVE_CARBON)
+  AC_DEFINE(HAVE_CARBON, 1, [Define to 1 if you are using the Carbon API on Mac OS X.])
 fi
 
 ### Use session management (-lSM -lICE) if available
@@ -2410,6 +2410,14 @@ AH_BOTTOM([
 #define HAVE_MOUSE
 #endif
 
+/* If we're using the Carbon API on Mac OS X, define a few more
+   variables as well.  */
+#ifdef HAVE_CARBON
+#define HAVE_WINDOW_SYSTEM
+#define HAVE_MOUSE
+#define HAVE_MENUS
+#endif
+
 /* Define USER_FULL_NAME to return a string
    that is the user's full name.
    It can assume that the variable `pw'
index e54ecc6..52ae705 100644 (file)
@@ -89,6 +89,9 @@ Boston, MA 02111-1307, USA.  */
 /* Define to 1 if you have the `bcopy' function. */
 #undef HAVE_BCOPY
 
+/* Define to 1 if you are using the Carbon API on Mac OS X. */
+#undef HAVE_CARBON
+
 /* Define to 1 if you have the `cbrt' function. */
 #undef HAVE_CBRT
 
@@ -717,18 +720,6 @@ Boston, MA 02111-1307, USA.  */
 /* Define as `fork' if `vfork' does not work. */
 #undef vfork
 
-/* Define if we should use the Carbon API on Mac OS X.  */
-#undef HAVE_CARBON
-
-#ifdef HAVE_CARBON
-#define HAVE_WINDOW_SYSTEM
-#define HAVE_MOUSE
-#define HAVE_MENUS
-#endif
-
-/* Define if we have the session management (SM) library.  */
-#undef HAVE_X_SM
-
 /* Define to empty if the keyword `volatile' does not work. Warning: valid
    code using `volatile' can become incorrect without. Disable with care. */
 #undef volatile
@@ -741,6 +732,14 @@ Boston, MA 02111-1307, USA.  */
 #define HAVE_MOUSE
 #endif
 
+/* If we're using the Carbon API on Mac OS X, define a few more
+   variables as well.  */
+#ifdef HAVE_CARBON
+#define HAVE_WINDOW_SYSTEM
+#define HAVE_MOUSE
+#define HAVE_MENUS
+#endif
+
 /* Define USER_FULL_NAME to return a string
    that is the user's full name.
    It can assume that the variable `pw'