1 # -sed1v2.inp-----------------------------------------------------------
2 # Configuration script for src/Makefile under DJGPP v2.x
3 # ----------------------------------------------------------------------
5 # Copyright (C) 1996-1997, 1999-2017 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 # ----------------------------------------------------------------------
22 /^srcdir *=/s/@[^@\n]*@/./
23 /^top_srcdir *=/s/@[^@\n]*@/../
24 /^CC *=/s/@[^@\n]*@/gcc -std=gnu99/
25 /^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/
26 /^ALL_CFLAGS *=/s/@[^@\n]*@//g
27 /^ALL_CFLAGS *=/s/ -I\.//g
28 /^CPPFLAGS *=/s|@[^@\n]*@|-I../msdos|
29 /^LDFLAGS *=/s/@[^@\n]*@//
30 /^LIBOBJS *=/s/@[^@\n]*@//
31 /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
32 /^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@//
33 /^GNUSTEP_CFLAGS *=/s/@GNUSTEP_CFLAGS@//
34 /^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@//
35 /^PNG_CFLAGS *=/s/@PNG_CFLAGS@//
36 /^WARN_CFLAGS *=/s/@WARN_CFLAGS@//
37 /^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@//
38 /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@//
39 #/^LD_SWITCH_X_SITE *=/s/@LD_SWITCH_X_SITE@//
40 /^LD_SWITCH_SYSTEM_TEMACS *=/s/@LD_SWITCH_SYSTEM_TEMACS@//
41 /^LD_SWITCH_X_SITE_AUX *=/s/@LD_SWITCH_X_SITE_AUX@//
42 /^LD_SWITCH_X_SITE_AUX_RPATH *=/s/@LD_SWITCH_X_SITE_AUX_RPATH@//
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@//
46 /^LIB_GCC *=/s/@LIB_GCC@//
47 /^LIB_STANDARD *=/s/@LIB_STANDARD@//
48 /^LIB_MATH *=/s/@LIB_MATH@/-lm/
49 /^LIB_PTHREAD *=/s/@LIB_PTHREAD@//
50 /^LIB_ACL *=/s/@LIB_ACL@//
51 /^LIB_EACCESS *=/s/@LIB_EACCESS@//
52 /^LIB_FDATASYNC *=/s/@LIB_FDATASYNC@//
58 /^XFT_LIBS *=/s/@XFT_LIBS@//
59 /^XCB_LIBS *=/s/@XCB_LIBS@//
60 /^FONTCONFIG_CFLAGS *=/s/@FONTCONFIG_CFLAGS@//
61 /^FONTCONFIG_LIBS *=/s/@FONTCONFIG_LIBS@//
62 /^FREETYPE_CFLAGS *=/s/@FREETYPE_CFLAGS@//
63 /^FREETYPE_LIBS *=/s/@FREETYPE_LIBS@//
64 /^LIBOTF_CFLAGS *=/s/@LIBOTF_CFLAGS@//
65 /^LIBOTF_LIBS *=/s/@LIBOTF_LIBS@//
66 /^M17N_FLT_CFLAGS *=/s/@M17N_FLT_CFLAGS@//
67 /^M17N_FLT_LIBS *=/s/@M17N_FLT_LIBS@//
68 /^DBUS_CFLAGS *=/s/@DBUS_CFLAGS@//
69 /^DBUS_LIBS *=/s/@DBUS_LIBS@//
70 /^DBUS_OBJ *=/s/@DBUS_OBJ@//
71 /^NOTIFY_OBJ *=/s/@NOTIFY_OBJ@//
72 /^SETTINGS_CFLAGS *=/s/@SETTINGS_CFLAGS@//
73 /^SETTINGS_LIBS *=/s/@SETTINGS_LIBS@//
74 /^NOTIFY_LIBS *=/s/@NOTIFY_LIBS@//
75 /^NOTIFY_CFLAGS *=/s/@NOTIFY_CFLAGS@//
76 /^GTK_OBJ *=/s/@GTK_OBJ@//
77 /^LIBS_TERMCAP *=/s/@LIBS_TERMCAP@//
78 /^TERMCAP_OBJ *=/s/@TERMCAP_OBJ@/termcap.o tparam.o/
79 /^LIBXMU *=/s/@LIBXMU@//
80 /^LIBXSM *=/s/@LIBXSM@//
81 /^LIBXTR6 *=/s/@LIBXTR6@//
82 /^LIBXT_OTHER *=/s/@LIBXT_OTHER@//
83 /^OLDXMENU_TARGET *=/s/@OLDXMENU_TARGET@//
84 /^OLDXMENU_DEPS *=/s/@OLDXMENU_DEPS@//
86 /^XGSELOBJ *=/s/@XGSELOBJ@//
87 /^TOOLKIT_LIBW *=/s/@TOOLKIT_LIBW@//
88 /^LIBSOUND *=/s/@LIBSOUND@//
89 /^LIBS_GNUSTEP *=/s/=.*$/=/
90 /^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
91 /^RSVG_LIBS *=/s/@RSVG_LIBS@//
92 /^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
93 /^IMAGEMAGICK_LIBS *=/s/@IMAGEMAGICK_LIBS@//
94 /^IMAGEMAGICK_CFLAGS *=/s/@IMAGEMAGICK_CFLAGS@//
95 /^LIBXML2_LIBS *=/s/@LIBXML2_LIBS@//
96 /^LIBXML2_CFLAGS *=/s/@LIBXML2_CFLAGS@//
97 /^GETADDRINFO_A_LIBS *=/s/@GETADDRINFO_A_LIBS@//
98 /^LIBLCMS2 *=/s/@LIBLCMS2@//
99 /^WIDGET_OBJ *=/s/@WIDGET_OBJ@//
100 /^XWIDGETS_OBJ *=/s/@XWIDGETS_OBJ@//
101 /^WEBKIT_LIBS *=/s/@WEBKIT_LIBS@//
102 /^WEBKIT_CFLAGS *=/s/@WEBKIT_CFLAGS@//
103 /^CAIRO_LIBS *=/s/@CAIRO_LIBS@//
104 /^CAIRO_CFLAGS *=/s/@CAIRO_CFLAGS@//
105 /^XFIXES_LIBS *=/s/@XFIXES_LIBS@//
106 /^XFIXES_CFLAGS *=/s/@XFIXES_CFLAGS@//
107 /^XDBE_LIBS *=/s/@XDBE_LIBS@//
108 /^XDBE_CFLAGS *=/s/@XDBE_CFLAGS@//
109 /^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@//
110 /^WINDOW_SYSTEM_OBJ *=/s/@WINDOW_SYSTEM_OBJ@//
111 /^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/
112 /^NS_OBJ *=/s/@NS_OBJ@//
113 /^NS_OBJC_OBJ *=/s/@NS_OBJC_OBJ@//
114 /^GNU_OBJC_CFLAGS*=/s/=.*$/=/
115 /^LIBMODULES *=/s/@LIBMODULES@//
116 /^MODULES_OBJ *=/s/@MODULES_OBJ@//
117 /^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@//
118 /^LIBSYSTEMD_LIBS *=/s/@LIBSYSTEMD_LIBS@//
119 /^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 /^LIBGNUTLS_LIBS *=/s/@[^@\n]*@//
124 /^LIBGNUTLS_CFLAGS *=/s/@[^@\n]*@//
125 /^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
126 /^START_FILES *=/s/@START_FILES@//
127 /^OTHER_FILES *=/s/@OTHER_FILES@//
128 /^XMENU_OBJ *=/s/@XMENU_OBJ@/xmenu.o/
129 /^FONT_OBJ *=/s/@FONT_OBJ@//
130 /^LIBGPM *=/s/@LIBGPM@//
132 /^EXEEXT *=/s/@EXEEXT@/.exe/
133 /^MKDIR_P *=/s/@MKDIR_P@/gmkdir -p/
134 /^OLDXMENU *=/s/@OLDXMENU@/nothing/
135 /^LIBXMENU *=/s/@LIBXMENU@//
136 /^LIBX_OTHER *=/s/@LIBX_OTHER@//
137 /^XRANDR_LIBS *=/s/@XRANDR_LIBS@//
138 /^XRANDR_CFLAGS *=/s/@XRANDR_CFLAGS@//
139 /^XINERAMA_LIBS *=/s/@XINERAMA_LIBS@//
140 /^XINERAMA_CFLAGS *=/s/@XINERAMA_CFLAGS@//
141 /^HYBRID_MALLOC *=/s/@HYBRID_MALLOC@//
142 /^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/
143 /^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/
144 /^FIRSTFILE_OBJ *=/s/@FIRSTFILE_OBJ@//
145 /^RALLOC_OBJ *=/s/@RALLOC_OBJ@/ralloc.o/
146 /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/
147 /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/
148 /^UNEXEC_OBJ *=/s/@UNEXEC_OBJ@/unexcoff.o/
149 /^BUILD_DETAILS *=/s/@BUILD_DETAILS@//
150 /^CANNOT_DUMP *=/s/@CANNOT_DUMP@/no/
151 /^W32_OBJ *=/s/@W32_OBJ@//
152 /^W32_LIBS *=/s/@W32_LIBS@//
153 /^version *=/s/@[^@\n]*@//
154 /^EMACSRES *=/s/@EMACSRES@//
155 /^W32_RES_LINK *=/s/@W32_RES_LINK@//
156 /^CM_OBJ *=/s/@CM_OBJ@/cm.o/
157 /^@SET_MAKE@$/s/@SET_MAKE@//
158 /^ADDSECTION *=/s/@ADDSECTION@//
159 /^AM_DEFAULT_VERBOSITY *=/s/@AM_DEFAULT_VERBOSITY@/1/
160 /^[Aa][Mm]_/s/@AM_V@/$(V)/
161 /^[Aa][Mm]_/s/@AM_DEFAULT_V@/$(AM_DEFAULT_VERBOSITY)/
162 /^AUTO_DEPEND *=/s/@AUTO_DEPEND@/yes/
163 /^PAXCTL_dumped *=/s/=.*$/=/
164 /^PAXCTL_notdumped *=/s/=.*$/=/
166 lisp.mk: $(lispsource)/loadup.el\
168 ${AM_V_GEN}printf 'shortlisp = \\n' > $@\
169 ${AM_V_GEN}sed -n 's/^[ \t]*(load "\([^"]*\)".*/\1/p' $< | sed -e "s/$/.elc \/" -e "s/\.el\.elc/.el/" >> $@\
170 ${AM_V_GEN}djecho "" >> $@
174 /^ [ ]*\$(AM_V_at)\$(libsrc)\/make-docfile -d/s!make-docfile!make-docfile -o $(etc)/DOC!
175 / > \$(etc)\/DOC *$/s/ >.*$//
176 /^ [ ]*\$(AM_V_GLOBALS)\$(libsrc)\/make-docfile.*>.*globals.tmp/s!make-docfile!make-docfile -o globals.tmp!
177 /^ [ ]*\$(AM_V_GLOBALS)\$(libsrc)\/make-doc/s!>.*$!!
178 /^\$(libsrc)\/make-docfile\$(EXEEXT): /i\
180 /^ if test -f/,/^ fi$/c\
181 command.com /c if exist .gdbinit rm -f _gdbinit
182 /^ *ifneq (\$(PAXCTL_notdumped),)/,/^ *endif/d
183 /^ *ifneq (\$(PAXCTL_dumped),)/,/^ *endif/d
186 /^ *\$(RUN_TEMACS) /i\
187 stubedit temacs.exe minstack=1024k
188 /^ *LC_ALL=C \$(RUN_TEMACS)/i\
189 stubedit temacs.exe minstack=1024k
190 /^ *LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
191 /-batch .* -l loadup/a\
193 stubedit emacs.exe minstack=3072k
195 s/^ [^ ]*move-if-change / update /
196 /^ [^ ]*echo[ ][ ]*timestamp/s/echo /djecho /
197 /^ .*djecho timestamp/a\
199 /^ mv \.\/\.gdbinit/d
200 /^ if test -f/,/^ fi$/c\
201 command.com /c if exist .gdbinit rm -f _gdbinit
204 /^ -\{0,1\} *ln /s/ln /cp /
205 /^[ ]touch /s/touch/djecho $@ >/
206 s/bootstrap-emacs/b-emacs/
207 /rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/
208 s/echo.*buildobj.lst/dj&/
209 / --load loadup bootstrap/a\
212 stubedit b-emacs.exe minstack=3072k\
213 djecho bootlisp > bootlisp
214 /^ -\{0,1\}rm -f/s/\\#/#/
215 /^ echo.* buildobj.h/s|echo |djecho |
216 /^buildobj\.h:/,/^ *\$(AM_V_at)mv /{
217 /^ *\$(AM_V_GEN)for /,/^ *done /c\
218 djecho "$(ALLOBJS)" | sed -e 's/^ */"/' -e 's/ *$$/"/' -e 's/ */", "/g' >>$@.tmp
220 # Remove or replace dependencies we cannot have
221 /^\.PRECIOUS: /s!\.\./config.status !!
222 /^\.\.\/config.status: /,/^ /d
223 /^Makefile: /s!\.\./config.status !!
224 # Make the GCC command line fit one screen line
225 /^[ ][ ]*\$(GNUSTEP_CFLAGS)/d
226 /^[ ][ ]*\$(LIBGNUTLS_CFLAGS)/d
227 /^[ ][ ]*\$(LIBSYSTEMD_CFLAGS)/d
228 /^[ ][ ]*\$(XRANDR_CFLAGS)/d
229 /^[ ][ ]*\$(WEBKIT_CFLAGS)/d
230 /^[ ][ ]*\$(SETTINGS_CFLAGS)/d
231 s/\$(LIBOTF_CFLAGS) \$(M17N_FLT_CFLAGS) //
232 s/ \$(C_SWITCH_X_SITE)//
235 s| -I\$(srcdir)/\.\./lib||
236 s| -I\$(top_srcdir)/lib||
237 s| -I\. -I\$(srcdir)| -I.|