Mercurial > emacs
changeset 108584:3c49e77f15b7
Choose dependency of oldxmenu using configure.
* configure.in (OLDXMENU_TARGET): New output variable.
* src/Makefile.in (OLDXMENU_TARGET): New, set by configure.
(really-lwlib, really-oldXMenu): Always define.
($OLDXMENU): Depend on $OLDXMENU_TARGET.
* msdos/sed1v2.inp (OLDXMENU_TARGET): Edit to empty.
* msdos/sed1x.inp (OLDXMENU_TARGET): Edit to really-oldxmenu.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Fri, 14 May 2010 18:55:24 -0700 |
parents | 5cad893a12e2 |
children | 5846f66dc9a2 |
files | ChangeLog configure.in msdos/ChangeLog msdos/sed1v2.inp msdos/sed1x.inp src/ChangeLog src/Makefile.in |
diffstat | 7 files changed, 36 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri May 14 18:45:18 2010 -0700 +++ b/ChangeLog Fri May 14 18:55:24 2010 -0700 @@ -1,5 +1,7 @@ 2010-05-15 Glenn Morris <rgm@gnu.org> + * configure.in (OLDXMENU_TARGET): New output variable. + * Makefile.in (install-arch-dep): Update odd NS rule for Emacs version. * Makefile.in (install-arch-indep): Remove references to RCS, CVS,
--- a/configure.in Fri May 14 18:45:18 2010 -0700 +++ b/configure.in Fri May 14 18:55:24 2010 -0700 @@ -3126,10 +3126,13 @@ if test "$USE_X_TOOLKIT" = "none"; then LIBXT_OTHER="\$(LIBXSM)" + OLDXMENU_TARGET="really-oldXMenu" else LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext" + OLDXMENU_TARGET="really-lwlib" fi AC_SUBST(LIBXT_OTHER) +AC_SUBST(OLDXMENU_TARGET) ## The X Menu stuff is present in the X10 distribution, but missing ## from X11. If we have X10, just use the installed library;
--- a/msdos/ChangeLog Fri May 14 18:45:18 2010 -0700 +++ b/msdos/ChangeLog Fri May 14 18:55:24 2010 -0700 @@ -1,5 +1,8 @@ 2010-05-15 Glenn Morris <rgm@gnu.org> + * sed1v2.inp (OLDXMENU_TARGET): Edit to empty. + * sed1x.inp (OLDXMENU_TARGET): Edit to really-oldxmenu. + * sed1v2.inp (LIBXT_OTHER): Exit to empty. 2010-05-14 Glenn Morris <rgm@gnu.org>
--- a/msdos/sed1v2.inp Fri May 14 18:45:18 2010 -0700 +++ b/msdos/sed1v2.inp Fri May 14 18:55:24 2010 -0700 @@ -82,6 +82,7 @@ /^LIBXSM *=/s/@LIBXSM@// /^LIBXTR6 *=/s/@LIBXTR6@// /^LIBXT_OTHER *=/s/@LIBXT_OTHER@// +/^OLDXMENU_TARGET *=/s/@OLDXMENU_TARGET@// /^XOBJ *=/s/@XOBJ@// /^TOOLKIT_LIBW *=/s/@TOOLKIT_LIBW@// /^LIBSOUND *=/s/@LIBSOUND@//
--- a/msdos/sed1x.inp Fri May 14 18:45:18 2010 -0700 +++ b/msdos/sed1x.inp Fri May 14 18:55:24 2010 -0700 @@ -7,6 +7,7 @@ /^OLDXMENU *=/s!@OLDXMENU@!${oldXMenudir}libXMenu11.a! /^LIBXMENU *=/s!@LIBXMENU@!${OLDXMENU}! /^LIBX_OTHER *=/s!@LIBX_OTHER@!${LIBXT} ${LIBX_EXTRA}! +/^OLDXMENU_TARGET *=/s!= *!= really-oldxmenu! /^LIBS_SYSTEM *=/s!= *!= -lxext -lsys! /^MSDOS_X_OBJ *=/s!= *!= w16select.o termcap.o! /^TOOLTIP_SUPPORT *=/s!= *!= ${lispsource}tooltip.elc!
--- a/src/ChangeLog Fri May 14 18:45:18 2010 -0700 +++ b/src/ChangeLog Fri May 14 18:55:24 2010 -0700 @@ -1,5 +1,9 @@ 2010-05-15 Glenn Morris <rgm@gnu.org> + * Makefile.in (OLDXMENU_TARGET): New, set by configure. + (really-lwlib, really-oldXMenu): Always define. + ($OLDXMENU): Depend on $OLDXMENU_TARGET. + * Makefile.in: Simplify cpp conditional. * Makefile.in (${ns_appdir}): Simplify using umask.
--- a/src/Makefile.in Fri May 14 18:45:18 2010 -0700 +++ b/src/Makefile.in Fri May 14 18:55:24 2010 -0700 @@ -65,6 +65,7 @@ bootstrap_exe = ${abs_builddir}/bootstrap-emacs${EXEEXT} +## ns-app if HAVE_NS, else empty. OTHER_FILES = @OTHER_FILES@ CRT_DIR=@CRT_DIR@ @@ -167,6 +168,10 @@ ## Only used if HAVE_X_WINDOWS. LIBXT_OTHER=@LIBXT_OTHER@ +## Only used if HAVE_X11 && !USE_GTK. +## really-lwlib if USE_X_TOOLKIT, else really-oldxmenu. +OLDXMENU_TARGET=@OLDXMENU_TARGET@ + XMENU_OBJ=@XMENU_OBJ@ XOBJ=@XOBJ@ @@ -665,6 +670,21 @@ prefix-args${EXEEXT}: prefix-args.o $(config_h) $(CC) $(LDFLAGS) prefix-args.o -o prefix-args + +/* Only (possibly) used if HAVE_X11 && !USE_GTK, but no harm in always + defining. */ +really-lwlib: + cd ${lwlibdir}; ${MAKE} ${MFLAGS} \ + CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' + @true /* make -t should not create really-lwlib. */ +.PHONY: really-lwlib + +really-oldXMenu: + cd ${oldXMenudir}; ${MAKE} ${MFLAGS} \ + CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' + @true /* make -t should not create really-oldXMenu. */ +.PHONY: really-oldXMenu + /* HAVE_X11 implies HAVE_X_WINDOWS and HAVE_MENUS. */ #if defined (HAVE_X11) && ! defined (USE_GTK) /* We use stamp-xmenu with these two deps to both ensure that lwlib @@ -675,25 +695,9 @@ /* Supply an ordering for parallel make. */ ../src/$(OLDXMENU): ${OLDXMENU} -#ifdef USE_X_TOOLKIT -$(OLDXMENU): really-lwlib +$(OLDXMENU): $(OLDXMENU_TARGET) -really-lwlib: - cd ${lwlibdir}; ${MAKE} ${MFLAGS} \ - CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' - @true /* make -t should not create really-lwlib. */ -.PHONY: really-lwlib -#else /* not USE_X_TOOLKIT */ -$(OLDXMENU): really-oldXMenu - -really-oldXMenu: - cd ${oldXMenudir}; ${MAKE} ${MFLAGS} \ - CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' - @true /* make -t should not create really-oldXMenu. */ -.PHONY: really-oldXMenu -#endif /* not USE_X_TOOLKIT */ -#else /* !HAVE_X11 || USE_GTK */ - +#else /* !HAVE_X11 || USE_GTK */ /* We don''t really need this, but satisfy the dependency. */ stamp-oldxmenu: touch stamp-oldxmenu