sed1v2.inp 8.22 KB
Newer Older
Richard M. Stallman's avatar
Richard M. Stallman committed
1
# -sed1v2.inp-----------------------------------------------------------
2
# Configuration script for src/Makefile under DJGPP v2.x
Richard M. Stallman's avatar
Richard M. Stallman committed
3
# ----------------------------------------------------------------------
4
#
Paul Eggert's avatar
Paul Eggert committed
5
# Copyright (C) 1996-1997, 1999-2019 Free Software Foundation, Inc.
6 7 8 9 10 11 12 13 14 15 16 17
#
# This file is part of GNU Emacs.
#
# This file is free software; as a special exception, the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# ----------------------------------------------------------------------
Richard M. Stallman's avatar
Richard M. Stallman committed
18 19 20 21 22
s/^[ \f\t][ \f\t]*$//
s/^ /	/
s/\.h\.in/.h-in/
/^SHELL *=/s/^/# /
/^srcdir *=/s/@[^@\n]*@/./
Eli Zaretskii's avatar
Eli Zaretskii committed
23 24
/^top_srcdir *=/s/@[^@\n]*@/../
/^CC *=/s/@[^@\n]*@/gcc -std=gnu99/
25
/^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/
Eli Zaretskii's avatar
Eli Zaretskii committed
26
/^ALL_CFLAGS *=/s/@[^@\n]*@//g
27 28
/^ALL_CFLAGS *=/s/ -I\.//g
/^CPPFLAGS *=/s|@[^@\n]*@|-I../msdos|
29
/^LDFLAGS *=/s/@[^@\n]*@//
30
/^LIBOBJS *=/s/@[^@\n]*@//
31 32
/^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
/^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@//
33
/^GNUSTEP_CFLAGS *=/s/@GNUSTEP_CFLAGS@//
34
/^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@//
Eli Zaretskii's avatar
Eli Zaretskii committed
35
/^PNG_CFLAGS *=/s/@PNG_CFLAGS@//
36 37
/^WARN_CFLAGS *=/s/@WARN_CFLAGS@//
/^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@//
38
/^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@//
39
#/^LD_SWITCH_X_SITE *=/s/@LD_SWITCH_X_SITE@//
40 41 42
/^LD_SWITCH_SYSTEM_TEMACS *=/s/@LD_SWITCH_SYSTEM_TEMACS@//
/^LD_SWITCH_X_SITE_AUX *=/s/@LD_SWITCH_X_SITE_AUX@//
/^LD_SWITCH_X_SITE_AUX_RPATH *=/s/@LD_SWITCH_X_SITE_AUX_RPATH@//
Eli Zaretskii's avatar
Eli Zaretskii committed
43
/^LD_SWITCH_X_SITE_RPATH *=/s/@LD_SWITCH_X_SITE_RPATH@//
44
/^LD_SWITCH_SYSTEM *=/s/@LD_SWITCH_SYSTEM@//
45
/^LIBS_SYSTEM *=/s/@LIBS_SYSTEM@//
Eli Zaretskii's avatar
Eli Zaretskii committed
46
/^LIB_GCC *=/s/@LIB_GCC@//
47 48
/^LIB_STANDARD *=/s/@LIB_STANDARD@//
/^LIB_MATH *=/s/@LIB_MATH@/-lm/
Eli Zaretskii's avatar
Eli Zaretskii committed
49
/^LIB_PTHREAD *=/s/@LIB_PTHREAD@//
Eli Zaretskii's avatar
Eli Zaretskii committed
50 51 52
/^LIB_ACL *=/s/@LIB_ACL@//
/^LIB_EACCESS *=/s/@LIB_EACCESS@//
/^LIB_FDATASYNC *=/s/@LIB_FDATASYNC@//
53 54 55 56 57
s/ *@LIBTIFF@//
s/ *@LIBJPEG@//
s/ *@LIBPNG@//
s/ *@LIBGIF@//
s/ *@LIBXPM@//
58
/^XFT_LIBS *=/s/@XFT_LIBS@//
Eli Zaretskii's avatar
Eli Zaretskii committed
59
/^XCB_LIBS *=/s/@XCB_LIBS@//
60 61 62 63 64 65 66 67
/^FONTCONFIG_CFLAGS *=/s/@FONTCONFIG_CFLAGS@//
/^FONTCONFIG_LIBS *=/s/@FONTCONFIG_LIBS@//
/^FREETYPE_CFLAGS *=/s/@FREETYPE_CFLAGS@//
/^FREETYPE_LIBS *=/s/@FREETYPE_LIBS@//
/^LIBOTF_CFLAGS *=/s/@LIBOTF_CFLAGS@//
/^LIBOTF_LIBS *=/s/@LIBOTF_LIBS@//
/^M17N_FLT_CFLAGS *=/s/@M17N_FLT_CFLAGS@//
/^M17N_FLT_LIBS *=/s/@M17N_FLT_LIBS@//
68 69 70
/^DBUS_CFLAGS *=/s/@DBUS_CFLAGS@//
/^DBUS_LIBS *=/s/@DBUS_LIBS@//
/^DBUS_OBJ *=/s/@DBUS_OBJ@//
Eli Zaretskii's avatar
Eli Zaretskii committed
71
/^NOTIFY_OBJ *=/s/@NOTIFY_OBJ@//
Eli Zaretskii's avatar
Eli Zaretskii committed
72 73
/^SETTINGS_CFLAGS *=/s/@SETTINGS_CFLAGS@//
/^SETTINGS_LIBS *=/s/@SETTINGS_LIBS@//
Eli Zaretskii's avatar
Eli Zaretskii committed
74 75
/^NOTIFY_LIBS *=/s/@NOTIFY_LIBS@//
/^NOTIFY_CFLAGS *=/s/@NOTIFY_CFLAGS@//
76
/^GTK_OBJ *=/s/@GTK_OBJ@//
77
/^LIBS_TERMCAP *=/s/@LIBS_TERMCAP@//
Eli Zaretskii's avatar
Eli Zaretskii committed
78
/^TERMCAP_OBJ *=/s/@TERMCAP_OBJ@/termcap.o tparam.o/
79 80 81
/^LIBXMU *=/s/@LIBXMU@//
/^LIBXSM *=/s/@LIBXSM@//
/^LIBXTR6 *=/s/@LIBXTR6@//
82
/^LIBXT_OTHER *=/s/@LIBXT_OTHER@//
83
/^OLDXMENU_TARGET *=/s/@OLDXMENU_TARGET@//
84
/^OLDXMENU_DEPS *=/s/@OLDXMENU_DEPS@//
85
/^XOBJ *=/s/@XOBJ@//
Eli Zaretskii's avatar
Eli Zaretskii committed
86
/^XGSELOBJ *=/s/@XGSELOBJ@//
87
/^TOOLKIT_LIBW *=/s/@TOOLKIT_LIBW@//
88
/^LIBSOUND *=/s/@LIBSOUND@//
Eli Zaretskii's avatar
Eli Zaretskii committed
89
/^LIBS_GNUSTEP *=/s/=.*$/=/
Eli Zaretskii's avatar
Eli Zaretskii committed
90
/^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
91 92
/^RSVG_LIBS *=/s/@RSVG_LIBS@//
/^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
93 94
/^IMAGEMAGICK_LIBS *=/s/@IMAGEMAGICK_LIBS@//
/^IMAGEMAGICK_CFLAGS *=/s/@IMAGEMAGICK_CFLAGS@//
95 96
/^LIBXML2_LIBS *=/s/@LIBXML2_LIBS@//
/^LIBXML2_CFLAGS *=/s/@LIBXML2_CFLAGS@//
Eli Zaretskii's avatar
Eli Zaretskii committed
97 98
/^GETADDRINFO_A_LIBS *=/s/@GETADDRINFO_A_LIBS@//
/^LIBLCMS2 *=/s/@LIBLCMS2@//
99
/^WIDGET_OBJ *=/s/@WIDGET_OBJ@//
Eli Zaretskii's avatar
Eli Zaretskii committed
100 101 102 103 104 105 106
/^XWIDGETS_OBJ *=/s/@XWIDGETS_OBJ@//
/^WEBKIT_LIBS *=/s/@WEBKIT_LIBS@//
/^WEBKIT_CFLAGS *=/s/@WEBKIT_CFLAGS@//
/^CAIRO_LIBS *=/s/@CAIRO_LIBS@//
/^CAIRO_CFLAGS *=/s/@CAIRO_CFLAGS@//
/^XFIXES_LIBS *=/s/@XFIXES_LIBS@//
/^XFIXES_CFLAGS *=/s/@XFIXES_CFLAGS@//
Eli Zaretskii's avatar
Eli Zaretskii committed
107 108
/^XDBE_LIBS *=/s/@XDBE_LIBS@//
/^XDBE_CFLAGS *=/s/@XDBE_CFLAGS@//
109
/^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@//
110
/^WINDOW_SYSTEM_OBJ *=/s/@WINDOW_SYSTEM_OBJ@//
Eli Zaretskii's avatar
Eli Zaretskii committed
111
/^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/
112
/^NS_OBJ *=/s/@NS_OBJ@//
113
/^NS_OBJC_OBJ *=/s/@NS_OBJC_OBJ@//
Eli Zaretskii's avatar
Eli Zaretskii committed
114 115 116
/^GNU_OBJC_CFLAGS*=/s/=.*$/=/
/^LIBMODULES *=/s/@LIBMODULES@//
/^MODULES_OBJ *=/s/@MODULES_OBJ@//
117
/^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@//
Eli Zaretskii's avatar
Eli Zaretskii committed
118 119
/^LIBSYSTEMD_LIBS *=/s/@LIBSYSTEMD_LIBS@//
/^LIBSYSTEMD_CFLAGS *=/s/@LIBSYSTEMD_CFLAGS@//
120
/^LIB_CLOCK_GETTIME *=/s/@[^@\n]*@//g
121
/^LIB_TIMER_TIME *=/s/@[^@\n]*@//g
122
/^LIB_EXECINFO *=/s/@[^@\n]*@//g
123 124
/^LIBGNUTLS_LIBS *=/s/@[^@\n]*@//
/^LIBGNUTLS_CFLAGS *=/s/@[^@\n]*@//
125 126
/^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
/^START_FILES *=/s/@START_FILES@//
Eli Zaretskii's avatar
Eli Zaretskii committed
127
/^OTHER_FILES *=/s/@OTHER_FILES@//
128
/^XMENU_OBJ *=/s/@XMENU_OBJ@/xmenu.o/
129
/^FONT_OBJ *=/s/@FONT_OBJ@//
130
/^LIBGPM *=/s/@LIBGPM@//
Eli Zaretskii's avatar
Eli Zaretskii committed
131
/^LIBZ *=/s/@LIBZ@//
Eli Zaretskii's avatar
Eli Zaretskii committed
132
/^EXEEXT *=/s/@EXEEXT@/.exe/
Eli Zaretskii's avatar
Eli Zaretskii committed
133
/^MKDIR_P *=/s/@MKDIR_P@/gmkdir -p/
134
/^OLDXMENU *=/s/@OLDXMENU@/nothing/
135
/^LIBXMENU *=/s/@LIBXMENU@//
136
/^LIBX_OTHER *=/s/@LIBX_OTHER@//
Eli Zaretskii's avatar
Eli Zaretskii committed
137 138 139 140
/^XRANDR_LIBS *=/s/@XRANDR_LIBS@//
/^XRANDR_CFLAGS *=/s/@XRANDR_CFLAGS@//
/^XINERAMA_LIBS *=/s/@XINERAMA_LIBS@//
/^XINERAMA_CFLAGS *=/s/@XINERAMA_CFLAGS@//
Eli Zaretskii's avatar
Eli Zaretskii committed
141
/^HYBRID_MALLOC *=/s/@HYBRID_MALLOC@//
142 143
/^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/
/^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/
Eli Zaretskii's avatar
Eli Zaretskii committed
144
/^FIRSTFILE_OBJ *=/s/@FIRSTFILE_OBJ@//
145
/^RALLOC_OBJ *=/s/@RALLOC_OBJ@/ralloc.o/
146 147
/^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/
/^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/
148
/^UNEXEC_OBJ *=/s/@UNEXEC_OBJ@/unexcoff.o/
Eli Zaretskii's avatar
Eli Zaretskii committed
149
/^BUILD_DETAILS *=/s/@BUILD_DETAILS@//
150
/^CANNOT_DUMP *=/s/@CANNOT_DUMP@/no/
151 152
/^W32_OBJ *=/s/@W32_OBJ@//
/^W32_LIBS *=/s/@W32_LIBS@//
Eli Zaretskii's avatar
Eli Zaretskii committed
153
/^version *=/s/@[^@\n]*@//
Eli Zaretskii's avatar
Eli Zaretskii committed
154 155 156
/^EMACSRES *=/s/@EMACSRES@//
/^W32_RES_LINK *=/s/@W32_RES_LINK@//
/^CM_OBJ *=/s/@CM_OBJ@/cm.o/
Richard M. Stallman's avatar
Richard M. Stallman committed
157
/^@SET_MAKE@$/s/@SET_MAKE@//
Eli Zaretskii's avatar
Eli Zaretskii committed
158
/^ADDSECTION *=/s/@ADDSECTION@//
Eli Zaretskii's avatar
Eli Zaretskii committed
159 160 161 162
/^AM_DEFAULT_VERBOSITY *=/s/@AM_DEFAULT_VERBOSITY@/1/
/^[Aa][Mm]_/s/@AM_V@/$(V)/
/^[Aa][Mm]_/s/@AM_DEFAULT_V@/$(AM_DEFAULT_VERBOSITY)/
/^AUTO_DEPEND *=/s/@AUTO_DEPEND@/yes/
Eli Zaretskii's avatar
Eli Zaretskii committed
163 164
/^PAXCTL_dumped *=/s/=.*$/=/
/^PAXCTL_notdumped *=/s/=.*$/=/
Eli Zaretskii's avatar
Eli Zaretskii committed
165 166 167
/^lisp\.mk:/,/^$/c\
lisp.mk: $(lispsource)/loadup.el\
	@rm -f $@\
168 169
	${AM_V_GEN}printf 'shortlisp = \\\\\\n' > $@\
	${AM_V_GEN}sed -n 's/^[ \t]*(load "\\([^"]*\\)".*/\\1/p' $< | sed -e "s/\$\$/.elc \\\\/" -e "s/\\.el\\.elc/.el/" >> $@\
Eli Zaretskii's avatar
Eli Zaretskii committed
170 171 172 173 174 175 176 177 178 179
	${AM_V_GEN}djecho ""  >> $@

#"

/^	[ 	]*\$(AM_V_at)\$(libsrc)\/make-docfile -d/s!make-docfile!make-docfile -o $(etc)/DOC!
/ > \$(etc)\/DOC *$/s/ >.*$//
/^	[ 	]*\$(AM_V_GLOBALS)\$(libsrc)\/make-docfile.*>.*globals.tmp/s!make-docfile!make-docfile -o globals.tmp!
/^	[ 	]*\$(AM_V_GLOBALS)\$(libsrc)\/make-doc/s!>.*$!!
/^\$(libsrc)\/make-docfile\$(EXEEXT): /i\
	cd ../src
180 181
/^	if test -f/,/^	fi$/c\
	command.com /c if exist .gdbinit rm -f _gdbinit
Eli Zaretskii's avatar
Eli Zaretskii committed
182 183
/^	 *ifneq (\$(PAXCTL_notdumped),)/,/^	 *endif/d
/^	 *ifneq (\$(PAXCTL_dumped),)/,/^	 *endif/d
Eli Zaretskii's avatar
Eli Zaretskii committed
184
/^	 *ln /s/ln /cp /
185
/^	fi/d
Eli Zaretskii's avatar
Eli Zaretskii committed
186 187
/^	 *\$(RUN_TEMACS) /i\
	stubedit temacs.exe minstack=1024k
188
/^	 *LC_ALL=C \$(RUN_TEMACS)/i\
189 190
	stubedit temacs.exe minstack=1024k
/^	 *LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
Eli Zaretskii's avatar
Eli Zaretskii committed
191
/-batch .* -l loadup/a\
192
	stubify emacs\
Eli Zaretskii's avatar
Eli Zaretskii committed
193
	stubedit emacs.exe minstack=3072k
194
s/ @true *$/ @rem/
195
s/^	[^ 	]*move-if-change /	update /
Eli Zaretskii's avatar
Eli Zaretskii committed
196
/^	[^ 	]*echo[ 	][ 	]*timestamp/s/echo /djecho /
197
/^	.*djecho timestamp/a\
Eli Zaretskii's avatar
Eli Zaretskii committed
198
	@rm -f globals.tmp
199
/^	mv \.\/\.gdbinit/d
200
/^	if test -f/,/^	fi$/c\
201
	command.com /c if exist .gdbinit rm -f _gdbinit
Richard M. Stallman's avatar
Richard M. Stallman committed
202
/^	#/d
Eli Zaretskii's avatar
Eli Zaretskii committed
203
/^	@: /d
204
/^	-\{0,1\} *ln /s/ln /cp /
Eli Zaretskii's avatar
Eli Zaretskii committed
205
/^[ 	]touch /s/touch/djecho $@ >/
Eli Zaretskii's avatar
Eli Zaretskii committed
206 207
s/bootstrap-emacs/b-emacs/
/rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/
208
s/echo.*buildobj.lst/dj&/
209 210
/ --load loadup bootstrap/a\
	stubify emacs
Eli Zaretskii's avatar
Eli Zaretskii committed
211
/^	mv -f emacs/a\
212 213
	stubedit b-emacs.exe minstack=3072k\
	djecho bootlisp > bootlisp
Eli Zaretskii's avatar
Eli Zaretskii committed
214
/^	-\{0,1\}rm -f/s/\\#/#/
215
/^	echo.* buildobj.h/s|echo |djecho |
Eli Zaretskii's avatar
Eli Zaretskii committed
216 217
/^buildobj\.h:/,/^	 *\$(AM_V_at)mv /{
  /^	 *\$(AM_V_GEN)for /,/^	 *done /c\
Eli Zaretskii's avatar
Eli Zaretskii committed
218 219
	djecho "$(ALLOBJS)" | sed -e 's/^ */"/' -e 's/ *$$/"/' -e 's/  */", "/g' >>$@.tmp
}
Eli Zaretskii's avatar
Eli Zaretskii committed
220 221
# Remove or replace dependencies we cannot have
/^\.PRECIOUS: /s!\.\./config.status !!
Eli Zaretskii's avatar
Eli Zaretskii committed
222
/^\.\.\/config.status: /,/^	/d
Eli Zaretskii's avatar
Eli Zaretskii committed
223
/^Makefile: /s!\.\./config.status !!
224
# Make the GCC command line fit one screen line
225
/^[ 	][ 	]*\$(GNUSTEP_CFLAGS)/d
226
/^[ 	][ 	]*\$(LIBGNUTLS_CFLAGS)/d
Eli Zaretskii's avatar
Eli Zaretskii committed
227 228 229 230 231
/^[ 	][ 	]*\$(LIBSYSTEMD_CFLAGS)/d
/^[ 	][ 	]*\$(XRANDR_CFLAGS)/d
/^[ 	][ 	]*\$(WEBKIT_CFLAGS)/d
/^[ 	][ 	]*\$(SETTINGS_CFLAGS)/d
s/\$(LIBOTF_CFLAGS) \$(M17N_FLT_CFLAGS) //
232 233
s/ \$(C_SWITCH_X_SITE)//
s/ \$(DBUS_CFLAGS)//
Eli Zaretskii's avatar
Eli Zaretskii committed
234 235 236
s/ \$(PNG_CFLAGS) //
s| -I\$(srcdir)/\.\./lib||
s| -I\$(top_srcdir)/lib||
Eli Zaretskii's avatar
Eli Zaretskii committed
237
s| -I\. -I\$(srcdir)| -I.|
238
/^	 *test "X/d