Replace LUCID_LIBW, MOTIF_LIBW with TOOLKIT_LIBW.

* 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.
This commit is contained in:
Glenn Morris 2010-04-27 00:33:35 -07:00
parent c6ea2936cc
commit 986fb647cc
4 changed files with 19 additions and 6 deletions

View file

@ -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

View 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.

View 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):

View 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