# HG changeset patch # User Glenn Morris # Date 1273888524 25200 # Node ID 3c49e77f15b7d835ecd9612b01a24a5e1e76eb9c # Parent 5cad893a12e2345895622f896dd5723a5c6caed9 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. diff -r 5cad893a12e2 -r 3c49e77f15b7 ChangeLog --- 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 + * 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, diff -r 5cad893a12e2 -r 3c49e77f15b7 configure.in --- 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; diff -r 5cad893a12e2 -r 3c49e77f15b7 msdos/ChangeLog --- 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 + * 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 diff -r 5cad893a12e2 -r 3c49e77f15b7 msdos/sed1v2.inp --- 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@// diff -r 5cad893a12e2 -r 3c49e77f15b7 msdos/sed1x.inp --- 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! diff -r 5cad893a12e2 -r 3c49e77f15b7 src/ChangeLog --- 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 + * 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. diff -r 5cad893a12e2 -r 3c49e77f15b7 src/Makefile.in --- 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