When running under emacs -q, always refuse to save the customisations, even if the...
[emacs.git] / msdos / sed1v2.inp
blob623f5cacbc96baac7a89f905e6b689c3168839bc
1 # -sed1v2.inp-----------------------------------------------------------
2 # Configuration script for src/Makefile under DJGPP v2.x
3 # ----------------------------------------------------------------------
5 # Copyright (C) 1996-1997, 1999-2011  Free Software Foundation, Inc.
7 # This file is part of GNU Emacs.
9 # This file is free software; as a special exception, the author gives
10 # unlimited permission to copy and/or distribute it, with or without
11 # modifications, as long as this notice is preserved.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 # ----------------------------------------------------------------------
18 s/^#.*//
19 s/^[ \f\t][ \f\t]*$//
20 s/^ /   /
21 s/\.h\.in/.h-in/
22 /^MAKE *=/s/^/# /
23 /^SHELL *=/s/^/# /
24 /^srcdir *=/s/@[^@\n]*@/./
25 /^abs_builddir *=/s|@abs_builddir@|../src|
26 /^VPATH *=/s/@[^@\n]*@/./
27 /^CC *=/s/@[^@\n]*@/gcc/
28 /^CPP *=/s/@[^@\n]*@/gcc -e/
29 /^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/
30 /^ALL_CFLAGS *=/s/@[^@\n]*@//g
31 /^ALL_CFLAGS *=/s/ -I\.//g
32 /^CPPFLAGS *=/s|@[^@\n]*@|-I../msdos|
33 /^LDFLAGS *=/s/@[^@\n]*@//
34 /^LD_FIRSTFLAG *=/s/@[^@\n]*@//
35 /^LIBS *=/s/@[^@\n]*@//
36 /^LIBES *=/,/^ *$/ {
37   s/@[^@\n]*@//g
39 /^LIBOBJS *=/s/@[^@\n]*@//
40 /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
41 /^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@//
42 /^C_SWITCH_X_SYSTEM *=/s/@C_SWITCH_X_SYSTEM@//
43 /^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@//
44 /^C_WARNINGS_SWITCH *=/s/@C_WARNINGS_SWITCH@//
45 /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@//
46 #/^LD_SWITCH_X_SITE *=/s/@LD_SWITCH_X_SITE@//
47 /^LD_SWITCH_SYSTEM_TEMACS *=/s/@LD_SWITCH_SYSTEM_TEMACS@//
48 /^LD_SWITCH_X_SITE_AUX *=/s/@LD_SWITCH_X_SITE_AUX@//
49 /^LD_SWITCH_X_SITE_AUX_RPATH *=/s/@LD_SWITCH_X_SITE_AUX_RPATH@//
50 /^LD_SWITCH_SYSTEM *=/s/@LD_SWITCH_SYSTEM@//
51 /^TEMACS_LDFLAGS2 *=/s/@TEMACS_LDFLAGS2@/$(LDFLAGS)/
52 /^LIBS_SYSTEM *=/s/@LIBS_SYSTEM@//
53 /^LIB_GCC *=/s/@LIB_GCC@//
54 /^LIB_STANDARD *=/s/@LIB_STANDARD@//
55 /^LIB_MATH *=/s/@LIB_MATH@/-lm/
56 /^LIBTIFF *=/s/@LIBTIFF@//
57 /^LIBJPEG *=/s/@LIBJPEG@//
58 /^LIBPNG *=/s/@LIBPNG@//
59 /^LIBGIF *=/s/@LIBGIF@//
60 /^LIBXPM *=/s/@LIBXPM@//
61 /^XFT_LIBS *=/s/@XFT_LIBS@//
62 /^FONTCONFIG_CFLAGS *=/s/@FONTCONFIG_CFLAGS@//
63 /^FONTCONFIG_LIBS *=/s/@FONTCONFIG_LIBS@//
64 /^FREETYPE_CFLAGS *=/s/@FREETYPE_CFLAGS@//
65 /^FREETYPE_LIBS *=/s/@FREETYPE_LIBS@//
66 /^LIBOTF_CFLAGS *=/s/@LIBOTF_CFLAGS@//
67 /^LIBOTF_LIBS *=/s/@LIBOTF_LIBS@//
68 /^M17N_FLT_CFLAGS *=/s/@M17N_FLT_CFLAGS@//
69 /^M17N_FLT_LIBS *=/s/@M17N_FLT_LIBS@//
70 /^DBUS_CFLAGS *=/s/@DBUS_CFLAGS@//
71 /^DBUS_LIBS *=/s/@DBUS_LIBS@//
72 /^DBUS_OBJ *=/s/@DBUS_OBJ@//
73 /^GCONF_CFLAGS *=/s/@GCONF_CFLAGS@//
74 /^GCONF_LIBS *=/s/@GCONF_LIBS@//
75 /^GTK_OBJ *=/s/@GTK_OBJ@//
76 /^LIBS_TERMCAP *=/s/@LIBS_TERMCAP@//
77 /^TERMCAP_OBJ *=/s/@TERMCAP_OBJ@/termcap.o tparam.o/
78 /^LIBXMU *=/s/@LIBXMU@//
79 /^LIBXSM *=/s/@LIBXSM@//
80 /^LIBXTR6 *=/s/@LIBXTR6@//
81 /^LIBXT_OTHER *=/s/@LIBXT_OTHER@//
82 /^OLDXMENU_TARGET *=/s/@OLDXMENU_TARGET@//
83 /^OLDXMENU_DEPS *=/s/@OLDXMENU_DEPS@//
84 /^XOBJ *=/s/@XOBJ@//
85 /^TOOLKIT_LIBW *=/s/@TOOLKIT_LIBW@//
86 /^LIBSOUND *=/s/@LIBSOUND@//
87 /^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
88 /^RSVG_LIBS *=/s/@RSVG_LIBS@//
89 /^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
90 /^IMAGEMAGICK_LIBS *=/s/@IMAGEMAGICK_LIBS@//
91 /^IMAGEMAGICK_CFLAGS *=/s/@IMAGEMAGICK_CFLAGS@//
92 /^LIBXML2_LIBS *=/s/@LIBXML2_LIBS@//
93 /^LIBXML2_CFLAGS *=/s/@LIBXML2_CFLAGS@//
94 /^WIDGET_OBJ *=/s/@WIDGET_OBJ@//
95 /^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@//
96 /^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/
97 /^ns_appdir *=/s/@ns_appdir@//
98 /^ns_appbindir *=/s/@ns_appbindir@//
99 /^ns_appsrc *=/s/@ns_appsrc@//
100 /^NS_OBJ *=/s/@NS_OBJ@//
101 /^NS_OBJC_OBJ *=/s/@NS_OBJC_OBJ@//
102 /^GNU_OBJC_CFLAGS*=/s/@GNU_OBJC_CFLAGS@//
103 /^LIBRESOLV *=/s/@LIBRESOLV@//
104 /^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@//
105 /^LIBGNUTLS_LIBS *=/s/@[^@\n]*@//
106 /^LIBGNUTLS_CFLAGS *=/s/@[^@\n]*@//
107 /^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
108 /^START_FILES *=/s/@START_FILES@//
109 /^OTHER_FILES *=/s/@OTHER_FILES@//
110 /^XMENU_OBJ *=/s/@XMENU_OBJ@/xmenu.o/
111 /^FONT_OBJ *=/s/@FONT_OBJ@//
112 /^LIBGPM *=/s/@LIBGPM@//
113 /^EXEEXT *=/s/@EXEEXT@/.exe/
114 /^OLDXMENU *=/s/@OLDXMENU@/nothing/
115 /^LIBXMENU *=/s/@LIBXMENU@//
116 /^LIBX_OTHER *=/s/@LIBX_OTHER@//
117 /^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/
118 /^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/
119 /^RALLOC_OBJ *=/s/@RALLOC_OBJ@/ralloc.o/
120 /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/
121 /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/
122 /^UNEXEC_OBJ *=/s/@UNEXEC_OBJ@/unexcoff.o/
123 /^CANNOT_DUMP *=/s/@CANNOT_DUMP@/no/
124 /^DEPFLAGS *=/s/@DEPFLAGS@//
125 /^MKDEPDIR *=/s/@MKDEPDIR@//
126 /^version *=/s/@[^@\n]*@//
127 /^M_FILE *=/s!@M_FILE@!$(srcdir)/m/intel386.h!
128 /^S_FILE *=/s!@S_FILE@!$(srcdir)/s/msdos.h!
129 /^@SET_MAKE@$/s/@SET_MAKE@//
130 /^      [       ]*\$(libsrc)\/make-docfile.*>.*\/DOC/s!make-docfile!make-docfile -o $(etc)/DOC!
131 /^      [       ]*\$(libsrc)\/make-docfile.*>.*gl-tmp/s!make-docfile!make-docfile -o gl-tmp!
132 /^.\$(libsrc)\/make-doc/s!>.*$!!
133 /^      [       ]*\$(libsrc)\/make-docfile /s!`[^`]*`!$(lisp); cd ../src!
134 /^[\f    ]*$/d
135 /^      if test -f/,/^  fi$/c\
136         command.com /c if exist .gdbinit rm -f _gdbinit
137 /^      if test "\$(CANNOT_DUMP)" =/,/^ else /d
138 /^      fi/d
139 /^       *LC_ALL=C \$(RUN_TEMACS)/i\
140         stubedit temacs.exe minstack=1024k
141 /^       *LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
142 /-batch -l loadup/a\
143         stubify emacs\
144         stubedit emacs.exe minstack=2048k
145 s/ || exit 1\; \\$//
146 s/ || true\; \\$//
147 s/ @true *$/ @rem/
148 s/^     [^      ]*move-if-change /      update /
149 /^      echo[   ][      ]*timestamp/s/echo /djecho /
150 /^      .*djecho timestamp/a\
151         @rm -f gl-tmp
152 /^      cd \$(lib) && \$(MAKE)/c\
153         $(MAKE) $(MFLAGS) -C $(lib) libgnu.a
154 /^RUN_TEMACS *=/s|`/bin/pwd`|.|
155 /^       *@\$(MKDEPDIR) *$/d
156 /^      mv \.\/\.gdbinit/d
157 /^      if test -f/,/^  fi$/c\
158         command.com /c if exist .gdbinit rm -f _gdbinit
159 /^      #/d
160 /^      cd.*make-docfile/s!$!; cd ../src!
161 /^      @: /d
162 /^      -\{0,1\} *ln -/s/ln -f/cp -pf/
163 /^[     ]touch /s/touch/djecho $@ >/
164 s/@YMF_PASS_LDFLAGS@/flags/
165 s/@lisp_frag@//
166 s/@deps_frag@//
167 s/@ns_frag@//
168 s/@PRE_EDIT_LDFLAGS@//
169 s/@POST_EDIT_LDFLAGS@//
170 s/bootstrap-emacs/b-emacs/
171 s/bootstrap-temacs/b-temacs/
172 s/bootstrap-doc/b-doc/
173 /rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/
174 s/echo.*buildobj.lst/dj&/
175 / --load loadup bootstrap/i\
176         stubedit temacs.exe minstack=1024k
177 / --load loadup bootstrap/a\
178         stubify emacs
179 /^      mv -f emacs/a\
180         stubedit b-emacs.exe minstack=3072k\
181         djecho bootlisp > bootlisp
182 /^      -\{0,1\}rm -f/s/\\#/#/
183 /^      @\{0,1\}cd ..\/lisp;.*[^\]$/s|$|\; cd ../src|
184 /^       *THEFILE=/s|$|\; cd ../src|
185 /^      echo.* buildobj.h/s|echo |djecho |
186 # Make the GCC command line fit one screen line
187 /^[     ][      ]*\$(C_SWITCH_X_SYSTEM)/d
188 /^[     ][      ]*\$(GCONF_CFLAGS)/d
189 /^[     ][      ]*\$(LIBGNUTLS_CFLAGS)/d
190 s/\$(LIBOTF_CFLAGS) \$(M17N_FLT_CFLAGS) \$(DEPFLAGS) //
191 s/ \$(C_SWITCH_X_SITE)//
192 s/ \$(DBUS_CFLAGS)//
193 s| -I\$(srcdir)/../lib||
194 # Add our local inttypes.h to prerequisites where needed
195 /^lread\.o:/s|lread\.c|& ../msdos/inttypes.h|