Replace LUCID_LIBW, MOTIF_LIBW with TOOLKIT_LIBW.
authorGlenn Morris <rgm@gnu.org>
Tue, 27 Apr 2010 07:33:35 +0000 (00:33 -0700)
committerGlenn Morris <rgm@gnu.org>
Tue, 27 Apr 2010 07:33:35 +0000 (00:33 -0700)
* configure.in (LUCID_LIBW, MOTIF_LIBW): No longer substitute in Makefiles.
(TOOLKIT_LIBW): New output variable, replacing LUCID_LIBW/MOTIF_LIBW.

* src/Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
(TOOLKIT_LIBW): New, set by configure.
(@X_TOOLKIT_TYPE@): No longer define it.

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

index c9f1d0a..aadc7a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2010-04-27  Glenn Morris  <rgm@gnu.org>
 
+       * configure.in (LUCID_LIBW, MOTIF_LIBW): No longer substitute
+       in Makefiles.
+       (TOOLKIT_LIBW): New output variable, replacing LUCID_LIBW/MOTIF_LIBW.
+
        * configure.in (HAVE_MOTIF_2_1): Remove unused variable.
        (LIBXP): No longer substitute in Makefiles.
        (MOTIF_LIBW): New output variable.  Move system-specific settings here
index aab5f6d..1c67713 100644 (file)
@@ -1830,7 +1830,6 @@ if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
     fi
   fi
 fi
-AC_SUBST(LUCID_LIBW)
 
 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
 
@@ -2767,6 +2766,7 @@ AC_SUBST(LD_SWITCH_X_SITE_AUX)
 AC_SUBST(C_SWITCH_X_SITE)
 AC_SUBST(C_SWITCH_X_SYSTEM)
 AC_SUBST(CFLAGS)
+## Used in lwlib/Makefile.in.
 AC_SUBST(X_TOOLKIT_TYPE)
 AC_SUBST(machfile)
 AC_SUBST(opsysfile)
@@ -2848,7 +2848,14 @@ if test "${USE_X_TOOLKIT}" != "none" ; then
   fi
 fi
 AC_SUBST(WIDGET_OBJ)
-AC_SUBST(MOTIF_LIBW)
+
+case "$USE_X_TOOLKIT" in
+  MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
+  LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
+  *) TOOLKIT_LIBW= ;;
+esac
+AC_SUBST(TOOLKIT_LIBW)
+
 if test "${HAVE_X11}" = "yes" ; then
   AC_DEFINE(HAVE_X11, 1,
            [Define to 1 if you want to use version 11 of X windows.
index 41d0fb4..cb9fefe 100644 (file)
@@ -1,5 +1,9 @@
 2010-04-27  Glenn Morris  <rgm@gnu.org>
 
+       * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
+       (TOOLKIT_LIBW): New, set by configure.
+       (@X_TOOLKIT_TYPE@): No longer define it.
+
        * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
        (MOTIF_LIBW): Set with configure, not cpp.
        * s/aix4-2.h (LIB_MOTIF):
index 5b44266..9c55ebb 100644 (file)
@@ -91,8 +91,7 @@ LIBXSM=@LIBXSM@
 XMENU_OBJ=@XMENU_OBJ@
 XOBJ=@XOBJ@
 
-LUCID_LIBW=@LUCID_LIBW@
-MOTIF_LIBW=@MOTIF_LIBW@
+TOOLKIT_LIBW=@TOOLKIT_LIBW@
 
 LIBSOUND= @LIBSOUND@
 CFLAGS_SOUND= @CFLAGS_SOUND@
@@ -255,8 +254,7 @@ LIBXMENU=
 #endif /* not HAVE_MENUS */
 
 #ifdef USE_X_TOOLKIT
-# define @X_TOOLKIT_TYPE@
-LIBW=$(@X_TOOLKIT_TYPE@_LIBW)
+LIBW=$(TOOLKIT_LIBW)
 
 #ifdef HAVE_X11XTR6
 #ifdef NEED_LIBW