]> git.eshelyaron.com Git - emacs.git/commitdiff
Let configure set OLDXMENU, LIBXMENU if !HAVE_MENUS.
authorGlenn Morris <rgm@gnu.org>
Thu, 13 May 2010 03:52:07 +0000 (20:52 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 13 May 2010 03:52:07 +0000 (20:52 -0700)
* configure.in (OLDXMENU, LIBXMENU): Set to empty if !HAVE_MENUS.

* src/Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
Let configure set these variables (to empty) in this case as well.

ChangeLog
configure.in
src/ChangeLog
src/Makefile.in

index ebd2bb2ac6ca5d90b9852403da5f001d10afabe9..aa27b7772b35f2f1b781339b66c03e790cd7ae54 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2010-05-13  Glenn Morris  <rgm@gnu.org>
 
+       * configure.in (OLDXMENU, LIBXMENU): Set to empty if !HAVE_MENUS.
+
        * configure.in (LD_SWITCH_X_SITE, C_SWITCH_X_SITE): Do not define.
 
 2010-05-12  Glenn Morris  <rgm@gnu.org>
index 4d7e2d6ab3ffa2d62c8ffb1320274d4b8acf4c0f..8fe864e7925f6df84596409069a252dd723ff065 100644 (file)
@@ -3144,7 +3144,7 @@ else
   LIBX_OTHER=
 fi
 
-if test "$HAVE_GTK" = "yes"; then
+if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
   OLDXMENU=
   LIBXMENU=
 fi
index 0afd7265922e378e28d0a424a31e9cf3bd759585..a95c5b06f091b0d3a2cbe3b8e126dda01162f70c 100644 (file)
@@ -1,5 +1,8 @@
 2010-05-13  Glenn Morris  <rgm@gnu.org>
 
+       * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
+       Let configure set these variables (to empty) in this case as well.
+
        * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
        (LIBX_BASE): Use $LD_SWITCH_X_SITE.
 
index 1df4d562551196c2d6937d5a92ed0856dc1e9bd2..bbc598c33912f3ff64b5973add245ff1e93617d0 100644 (file)
@@ -289,20 +289,12 @@ ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS)
        $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $<
 
 #ifdef HAVE_X_WINDOWS
-/* This test needs to say in cpp for the time being, since s/msdos.h
-   defines HAVE_MENUS, and does not use the configure script.  */
-#ifdef HAVE_MENUS
 OLDXMENU=@OLDXMENU@
 LIBXMENU=@LIBXMENU@
-#else /* not HAVE_MENUS */
-OLDXMENU=
-LIBXMENU=
-#endif /* not HAVE_MENUS */
-
 LIBXT=$(TOOLKIT_LIBW) $(LIBXT_OTHER)
 LIBX_BASE=$(LIBXMENU) $(LD_SWITCH_X_SITE)
 LIBX_OTHER=@LIBX_OTHER@
-#endif /* not HAVE_X_WINDOWS */
+#endif /* HAVE_X_WINDOWS */
 
 
 /* A macro which other sections of Makefile can redefine to munge the