summaryrefslogtreecommitdiff
path: root/config.bat
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2010-05-10 19:51:08 -0700
committerGlenn Morris <rgm@gnu.org>2010-05-10 19:51:08 -0700
commitacddf8aec716be7810edc29e1a7eeb396fc755c3 (patch)
treea117eb6eaa9dc16ec1e74ff4844f3e1e7944899c /config.bat
parent4e2af7825fa13782c5579f55b3e2d8dec23bdbf3 (diff)
downloademacs-acddf8aec716be7810edc29e1a7eeb396fc755c3.tar.gz
On msdos, set LIBS_SYSTEM with config.bat, not cpp.
* config.bat [HAVE_X11]: Run sed3x.inp on lib-src/Makefile. * src/Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset. * src/s/msdos.h (MSDOS_LIBS_SYSTEM): Remove. * msdos/sed1x.inp (LIBS_SYSTEM): Edit to -lxext -lsys. * msdos/sed3x.inp: New file. * lib-src/Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset. (config.h) [MSDOS]: Do not include.
Diffstat (limited to 'config.bat')
-rw-r--r--config.bat5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.bat b/config.bat
index 271673bc302..e2e57bb5ef9 100644
--- a/config.bat
+++ b/config.bat
@@ -231,6 +231,11 @@ Goto libsrc2
sed -f ../msdos/sed3v2.inp <makefile.new >Makefile
:libsrc2
rm -f makefile.new junk.c
+if "%X11%" == "" goto libsrc2a
+mv Makefile makefile.tmp
+sed -f ../msdos/sed3x.inp <makefile.tmp >Makefile
+rm -f makefile.tmp
+:libsrc2a
if "%nodebug%" == "" goto libsrc3
sed -e "/^CFLAGS *=/s/ *-gcoff//" <Makefile >makefile.tmp
sed -e "/^ALL_CFLAGS *=/s/=/= -s/" <makefile.tmp >Makefile