603
|
1 #!/bin/sh
|
|
2 # Configuration script for GNU Emacs
|
|
3 # Copyright (C) 1992 Free Software Foundation, Inc.
|
|
4
|
|
5 #This file is part of GNU Emacs.
|
|
6
|
|
7 #GNU Emacs is free software; you can redistribute it and/or modify
|
|
8 #it under the terms of the GNU General Public License as published by
|
|
9 #the Free Software Foundation; either version 1, or (at your option)
|
|
10 #any later version.
|
|
11
|
|
12 #GNU Emacs is distributed in the hope that it will be useful,
|
|
13 #but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15 #GNU General Public License for more details.
|
|
16
|
|
17 #You should have received a copy of the GNU General Public License
|
|
18 #along with GNU Emacs; see the file COPYING. If not, write to
|
|
19 #the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
20
|
|
21 # Shell script to edit files and make symlinks in preparation for
|
|
22 # compiling Emacs.
|
617
|
23 #
|
603
|
24 # Usage: configure machine
|
|
25 #
|
|
26 # If configure succeeds, it leaves its status in config.status.
|
617
|
27 # If configure fails after disturbing the status quo,
|
603
|
28 # config.status is removed.
|
|
29 #
|
|
30
|
|
31 progname=$0
|
|
32
|
|
33 short_usage="Type \`${progname} -usage' for more information about options."
|
|
34
|
|
35 usage_message="Usage: ${progname} MACHINENAME [-OPTION[=VALUE] ...]
|
621
|
36
|
|
37 This message needs to be updated.
|
|
38
|
603
|
39 Set compilation and installation parameters for GNU Emacs, and report.
|
|
40 MACHINENAME is the machine to build for. See \`etc/MACHINES'.
|
|
41 Options are:
|
|
42 -opsystem=SYSTEM - operating system to build for; see \`etc/MACHINES'.
|
621
|
43 -prefix=DIR - where to install Emacs's library files
|
603
|
44 These options have reasonable defaults (in []s), and may not be needed:
|
|
45 -g, -O - Passed to the compiler. If omitted, use -O only.
|
|
46 -cc=COMPILER - Which compiler to use. Defaults to gcc if available.
|
|
47 -libdir=DIR - where to look for arch-dependent library files
|
|
48 -datadir=DIR - where to look for architecture-independent library files
|
605
|
49 -bindir=DIR - where to install the Emacs executable, and some friends
|
603
|
50 -lisppath=PATH - colon-separated list of Elisp directories
|
|
51 -lockdir=DIR - where Emacs should do its file-locking stuff
|
|
52 -window_system=none or [x11, if it is installed] - what window system to use
|
|
53 -have_x_menu=yes or [no] - include menu support under X11
|
|
54 -gnu_malloc=[yes] or no - use the GNU memory allocator
|
|
55 -rel_alloc=[yes] or no - use compacting allocator for buffers
|
|
56 -highpri=N - run at N points higher-than-normal priority
|
605
|
57 -lisp_float_type=[yes] or no - Support native floating point in Elisp
|
603
|
58 If successful, ${progname} leaves its status in config.status. If
|
|
59 unsuccessful after disturbing the status quo, config.status is removed."
|
|
60
|
|
61 if [ ! -r ./src/lisp.h ]; then
|
|
62 echo "${progname}: Can't find Emacs sources in \`./src'.
|
|
63 Run this config script in the top directory of the Emacs source tree." 1>&2
|
|
64 exit 1
|
|
65 fi
|
|
66
|
|
67 options=":\
|
|
68 usage:help:\
|
|
69 machine:opsystem:\
|
|
70 g:O:cc:\
|
621
|
71 prefix:bindir:emacsdir:datadir:lispdir:locallisppath:\
|
|
72 lisppath:buildlisppath:statedir:lockdir:libdir:mandir:infodir:\
|
603
|
73 gnu_malloc:rel_alloc:highpri:lisp_float_type:\
|
|
74 window_system:have_x_menu:\
|
|
75 "
|
|
76
|
|
77 boolean_opts=":\
|
|
78 g:O:\
|
|
79 gnu_malloc:rel_alloc:lisp_float_type:have_x_menu:\
|
|
80 "
|
|
81
|
|
82 config_h_opts=":\
|
|
83 highpri:gnu_malloc:rel_alloc:lisp_float_type:\
|
|
84 have_x_windows:have_x11:have_x_menu:\
|
|
85 c_switch_site:sigtype:\
|
|
86 "
|
|
87
|
621
|
88 prefix=
|
605
|
89 bindir=/usr/local/bin
|
603
|
90 gnu_malloc=yes
|
|
91 lisp_float_type=yes
|
|
92
|
|
93 # The default values for the following options are guessed at after other
|
|
94 # options have been checked and given values, so we set them to null here.
|
|
95 lisppath=""
|
|
96 datadir=""
|
|
97 libdir=""
|
|
98 lockdir=""
|
|
99 window_system=""
|
|
100 have_x_menu=""
|
|
101
|
617
|
102 echo "Examining options."
|
621
|
103 while [ $# != 0 ]; do
|
|
104 arg="$1"
|
603
|
105 case "${arg}" in
|
|
106 -*)
|
|
107 # Separate the switch name from the value it's being given.
|
|
108 case "${arg}" in
|
|
109 -*=* )
|
|
110 opt=`echo ${arg} | sed 's:^-\([^=]*\)=.*$:\1:'`
|
|
111 val=`echo ${arg} | sed 's:^-[^=]*=\(.*\)$:\1:'`
|
|
112 valomitted=no
|
|
113 ;;
|
|
114 -* )
|
621
|
115 # If FOO is a boolean argument, -FOO is equivalent to
|
|
116 # -FOO=yes. Otherwise, the value comes from the next
|
|
117 # argument - see below.
|
603
|
118 opt=`echo ${arg} | sed 's:^-\(.*\)$:\1:'`
|
|
119 val="yes"
|
|
120 valomitted=yes
|
|
121 ;;
|
|
122 esac
|
|
123
|
|
124 # Make sure the argument is valid and unambiguous.
|
|
125 case ${options} in
|
|
126 *:${opt}:* ) # Exact match.
|
|
127 optvar=${opt}
|
|
128 ;;
|
|
129 *:${opt}*:${opt}*:* ) # Ambiguous prefix.
|
|
130 echo "\`-${opt}' is an ambiguous switch; it could be any of the following:"
|
|
131 echo `echo ${options} | tr ':' '\012' | grep '^'${opt}`
|
|
132 echo ${short_usage}
|
|
133 exit 1
|
|
134 ;;
|
|
135 *:${opt}*:* ) # Unambigous prefix.
|
|
136 optvar=`echo ${options} | sed 's/^.*:\('${opt}'[^:]*\):.*$/\1/'`
|
|
137 ;;
|
|
138 * )
|
|
139 (echo "\`-${opt}' is not a valid option."
|
|
140 echo "${short_usage}") | more
|
|
141 exit 1
|
|
142 ;;
|
|
143 esac
|
|
144
|
|
145 case "${optvar}" in
|
|
146 usage | help)
|
|
147 echo "${usage_message}" | more
|
|
148 exit 1
|
|
149 ;;
|
|
150 esac
|
|
151
|
|
152 # If the variable is supposed to be boolean, make sure the value
|
|
153 # given is either "yes" or "no". If not, make sure some value
|
|
154 # was given.
|
|
155 case "${boolean_opts}" in
|
|
156 *:${optvar}:* )
|
|
157 case "${val}" in
|
|
158 y | ye | yes ) val=yes ;;
|
|
159 n | no ) val=no ;;
|
|
160 * )
|
|
161 echo "The \`-${optvar}' option (\`-${opt}') is supposed to have a boolean
|
|
162 value - set it to either \`yes' or \`no'." 1>&2
|
|
163 exit 1
|
|
164 ;;
|
|
165 esac
|
|
166 ;;
|
|
167 *)
|
|
168 if [ "${valomitted}" = "yes" ]; then
|
621
|
169 if [ $# = 1 ]; then
|
|
170 (echo "${progname}: You must give a value for the \`-${opt}' option, as in
|
|
171 \`-${opt}=FOO'."
|
|
172 echo "${short_usage}") | more
|
|
173 exit 1
|
|
174 fi
|
|
175 shift; val="$1"
|
603
|
176 fi
|
|
177 ;;
|
|
178 esac
|
|
179
|
|
180 eval "${optvar}=\"${val}\""
|
|
181 ;;
|
|
182 *)
|
|
183 machine=${arg}
|
|
184 ;;
|
|
185 esac
|
621
|
186 shift
|
603
|
187 done
|
|
188
|
|
189 if [ "${machine}" = "" ]; then
|
|
190 (echo "You must specify a machine name as an argument to ${progname}."
|
|
191 echo "${short_usage}") | more
|
|
192 exit 1
|
|
193 fi
|
|
194
|
617
|
195 echo "Checking the machine."
|
603
|
196 machfile="m/${machine}.h"
|
|
197 if [ ! -r src/${machfile} ]; then
|
|
198 echo "${progname}: Emacs has no configuration info for the machine called
|
|
199 \`${machine}'. Look at etc/MACHINES for the names of machines
|
|
200 that Emacs has been ported to." 1>&2
|
|
201 exit 1
|
|
202 fi
|
|
203
|
617
|
204 echo "Checking the operating system."
|
603
|
205 if [ "${opsystem}" = "" ]; then
|
|
206
|
|
207 echo " No operating system explicitly specified."
|
617
|
208 echo " Guessing, based on machine."
|
603
|
209 # Get the default operating system to go with the specified machine.
|
|
210 opsystem=`grep 'USUAL-OPSYS="' src/${machfile} \
|
|
211 | sed 's/^.*USUAL-OPSYS="\([^"]*\)".*$/\1/'`
|
|
212
|
|
213 if [ "${opsystem}" = "" ]; then
|
|
214 echo "${progname}: Emacs's configuration files don't suggest what operating
|
|
215 system a \`${machine}' machine might run. Try specifying the
|
|
216 operating system explicitly by passing ${progname} an
|
|
217 \`-opsystem=SYSTEM-NAME' flag. Look at etc/MACHINES for the
|
|
218 names of operating systems that Emacs has been ported to." 1>&2
|
|
219 exit 1
|
|
220 fi
|
|
221
|
|
222 if [ "${opsystem}" = "note" ]; then
|
|
223 echo "The \`${machine}' machine can be used with more than one operating
|
|
224 system, and Emacs's configuration info isn't clever enough to figure
|
|
225 out which one you're running. Run ${progname} with -machine and
|
|
226 -opsystem arguments as specified below for the appropriate system.
|
|
227 (This information comes from the file \`etc/MACHINES' - see that
|
|
228 file for more detail.)
|
|
229
|
|
230 " 1>&2
|
|
231 sed < src/${machfile} -e '1,/NOTE-START/d' -e '/NOTE-END/,$d' | more
|
|
232 echo
|
|
233 exit 1
|
|
234 fi
|
|
235
|
|
236 opsysfile="s/${opsystem}.h"
|
|
237 if [ ! -r src/${opsysfile} ]; then
|
|
238 echo "${progname}: Emacs's configuration files say that the default
|
|
239 operating system for the machine \`${machine}' is \`${opsystem}',
|
|
240 but there is no configuration file for \`${opsystem}', so Emacs's
|
|
241 default info is screwed up. Try specifying the operating system
|
|
242 explicitly by passing ${progname} an \`-opsystem=SYSTEM-NAME' flag." 1>&2
|
|
243 exit 1
|
|
244 fi
|
|
245 else
|
|
246 opsysfile="s/${opsystem}.h"
|
|
247 if [ ! -r src/${opsysfile} ]; then
|
|
248 echo "${progname}: Emacs has no configuration info for the operating system
|
|
249 \`${opsystem}'. Look at etc/MACHINES for the names of operating
|
|
250 systems that Emacs has been ported to." 1>&2
|
|
251 exit 1
|
|
252 fi
|
|
253 fi
|
|
254
|
621
|
255 if [ ! "${prefix}" ]; then
|
|
256 prefix="/usr/local"
|
|
257 fi
|
|
258
|
|
259 if [ ! "${emacsdir}" ]; then
|
|
260 emacsdir="${prefix}/emacs-19.0"
|
|
261 fi
|
|
262
|
|
263 if [ ! "${datadir}" ]; then
|
|
264 datadir="${emacsdir}/etc"
|
|
265 fi
|
|
266
|
|
267 if [ ! "${lispdir}" ]; then
|
|
268 lispdir="${emacsdir}/lisp"
|
|
269 fi
|
|
270
|
|
271 if [ ! "${locallisppath}" ]; then
|
|
272 locallisppath="${emacsdir}/local-lisp"
|
|
273 fi
|
|
274
|
|
275 if [ ! "${lisppath}" ]; then
|
|
276 lisppath="${locallisppath}:${lispdir}"
|
|
277 fi
|
|
278
|
|
279 if [ ! "${buildlisppath}" ]; then
|
|
280 buildlisppath=../lisp
|
|
281 fi
|
|
282
|
|
283 if [ ! "${statedir}" ]; then
|
|
284 statedir="${emacsdir}"
|
|
285 fi
|
|
286
|
|
287 if [ ! "${lockdir}" ]; then
|
|
288 lockdir="${statedir}/lock"
|
|
289 fi
|
|
290
|
|
291 if [ "${libdir}" = "" ]; then
|
|
292 libdir="${emacsdir}/arch-lib"
|
|
293 fi
|
|
294
|
|
295 if [ ! "${mandir}" ]; then
|
|
296 mandir="/usr/man/man1"
|
|
297 fi
|
|
298
|
|
299 if [ ! "${infodir}" ]; then
|
|
300 infodir="${prefix}/info"
|
603
|
301 fi
|
|
302
|
617
|
303 echo "Checking window system."
|
603
|
304 window_system="`echo ${window_system} | tr A-Z a-z`"
|
|
305 case "${window_system}" in
|
|
306 "none" | "x11" | "x10" ) ;;
|
|
307 "x" ) window_system=x11 ;;
|
|
308 "" )
|
617
|
309 echo " No window system specifed. Looking for X Windows."
|
603
|
310 window_system=none
|
|
311 if [ -r /usr/lib/libX11.a -a -d /usr/include/X11 ]; then
|
|
312 window_system=x11
|
617
|
313 fi
|
603
|
314 ;;
|
|
315 * )
|
|
316 echo "The \`-window_system' option must be set to \`none' or \`X11'." 1>&2
|
|
317 exit 1
|
|
318 ;;
|
|
319 esac
|
|
320
|
|
321 case "${window_system}" in
|
|
322 x11 )
|
|
323 have_x_windows=yes
|
|
324 have_x11=yes
|
|
325 ;;
|
|
326 x10 )
|
|
327 have_x_windows=yes
|
|
328 have_x11=no
|
|
329 ;;
|
|
330 none )
|
|
331 have_x_windows=no
|
|
332 have_x11=no
|
|
333 ;;
|
|
334 esac
|
|
335
|
|
336 if [ "${have_x_menu}" = "" ]; then
|
|
337 have_x_menu=no
|
|
338 fi
|
|
339
|
617
|
340 echo "Checking for GCC."
|
603
|
341 case "${cc}" in
|
|
342 "" )
|
|
343 temppath=`echo $PATH | sed 's/^:/.:/
|
|
344 s/::/:.:/g
|
|
345 s/:$/:./
|
|
346 s/:/ /g'`
|
|
347 cc=`(
|
|
348 for dir in ${temppath}; do
|
|
349 if [ -f ${dir}/gcc ]; then echo gcc; exit 0; fi
|
|
350 done
|
|
351 echo cc
|
|
352 )`
|
|
353 ;;
|
|
354 esac
|
|
355
|
621
|
356 case "${cc}" in
|
|
357 "gcc" )
|
|
358 # With GCC, both O and g should default to yes, no matter what
|
|
359 # the other is.
|
|
360 case "${O},${g}" in
|
|
361 , ) O=yes; g=yes ;;
|
|
362 ,* ) O=yes; ;;
|
|
363 *, ) g=yes ;;
|
|
364 esac
|
|
365 ;;
|
|
366 "*" )
|
|
367 # With other compilers, treat them as mutually exclusive,
|
|
368 # defaulting to debug.
|
|
369 case "${O},${g}" in
|
|
370 , ) O=no ; g=yes ;;
|
|
371 ,no ) O=yes; ;;
|
|
372 ,yes ) O=no ; ;;
|
|
373 no, ) g=yes ;;
|
|
374 yes, ) g=no ;;
|
|
375 esac
|
|
376 ;;
|
603
|
377 esac
|
|
378
|
621
|
379 # What is the return type of a signal handler? We run
|
|
380 # /usr/include/signal.h through cpp and grep for the declaration of
|
|
381 # the signal function. Yuck.
|
|
382 echo "Looking for return type of signal handler functions."
|
|
383 signal_h_file=''
|
|
384 if [ -r /usr/include/signal.h ]; then
|
|
385 signal_h_file=/usr/include/signal.h
|
|
386 elif [ -r /usr/include/sys/signal.h ]; then
|
|
387 signal_h_file=/usr/include/sys/signal.h
|
|
388 fi
|
|
389 sigtype=void
|
|
390 if [ "${signal_h_file}" ]; then
|
|
391 sigpattern='[ ]*([ ]*\*[ ]*signal[ ]*('
|
|
392
|
|
393 # We make a symbolic link whose name ends in .c, so the compiler
|
|
394 # won't complain about having only been given a .h file.
|
|
395 tempcname="configure.tmp.$$.c"
|
|
396 ln -s ${signal_h_file} ${tempcname}
|
|
397 if ${cc} -E ${tempcname} | grep "int${sigpattern}" > /dev/null; then
|
|
398 sigtype=int
|
|
399 fi
|
|
400 rm ${tempcname}
|
|
401 fi
|
|
402
|
617
|
403 echo "Examining the machine- and system-dependent files to find out"
|
|
404 echo " - which libraries the lib-src programs will want, and"
|
|
405 echo " - whether the GNU malloc routines are usable."
|
|
406 tempcname="configure.tmp.$$.c"
|
603
|
407 echo '#include "src/'${machfile}'"
|
|
408 #include "src/'${opsysfile}'"
|
|
409 #ifndef LIBS_MACHINE
|
|
410 #define LIBS_MACHINE
|
|
411 #endif
|
|
412 #ifndef LIBS_SYSTEM
|
|
413 #define LIBS_SYSTEM
|
|
414 #endif
|
621
|
415 @configure@ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
|
617
|
416 #ifdef SYSTEM_MALLOC
|
621
|
417 @configure@ system_malloc=yes
|
617
|
418 #else
|
621
|
419 @configure@ system_malloc=no
|
617
|
420 #endif
|
|
421 ' > ${tempcname}
|
621
|
422 eval `${cc} -E ${tempcname} \
|
|
423 | grep '@configure@' \
|
|
424 | sed -e 's/^@configure@//'`
|
617
|
425 rm ${tempcname}
|
|
426
|
|
427 # Do the opsystem or machine files prohibit the use of the GNU malloc?
|
|
428 if [ "${system_malloc}" = "yes" ]; then
|
|
429 gnu_malloc=no
|
|
430 gnu_malloc_reason="
|
|
431 (The GNU allocators don't work with this machine and/or operating system.)"
|
|
432 fi
|
|
433
|
|
434 if [ ! "${rel_alloc}" ]; then
|
|
435 rel_alloc=${gnu_malloc}
|
|
436 fi
|
603
|
437
|
|
438 rm -f config.status
|
|
439 set -e
|
|
440
|
|
441 # Make the proper settings in the config file.
|
617
|
442 echo "Making src/config.h from src/config.h.in"
|
603
|
443 if [ "${highpri}" != "" ]; then
|
|
444 highpri="(-${highpri})"
|
|
445 fi
|
|
446 case "${g}" in
|
|
447 "yes" ) c_switch_site="${c_switch_site} -g" ;;
|
|
448 esac
|
|
449 case "${O}" in
|
|
450 "yes" ) c_switch_site="${c_switch_site} -O" ;;
|
|
451 esac
|
|
452 sed_flags="-e 's:@machine@:${machfile}:'"
|
|
453 sed_flags="${sed_flags} -e 's:@opsystem@:${opsysfile}:'"
|
|
454 for flag in `echo ${config_h_opts} | tr ':' ' '`; do
|
621
|
455 cflagname=`echo ${flag} \
|
|
456 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
|
603
|
457 val=`eval echo '$'${flag}`
|
|
458 case ${val} in
|
|
459 no | "")
|
|
460 f="-e 's:.*#define ${cflagname}.*:/\\* #define ${cflagname} \\*/:'"
|
|
461 ;;
|
|
462 yes)
|
|
463 f="-e 's:.*#define ${cflagname}.*:#define ${cflagname}:'"
|
|
464 ;;
|
|
465 *)
|
|
466 f="-e 's:.*#define ${cflagname}.*:#define ${cflagname} ${val}:'"
|
|
467 ;;
|
|
468 esac
|
|
469 sed_flags="${sed_flags} ${f}"
|
|
470 done
|
617
|
471 rm -f src/config.h
|
|
472 eval '/bin/sed '${sed_flags}' < src/config.h.in > src/config.h'
|
|
473 # Remind people not to edit this.
|
|
474 chmod -w src/config.h
|
603
|
475
|
|
476 # Modify the parameters in the top makefile.
|
617
|
477 echo "Producing ./Makefile from ./Makefile.in."
|
|
478 rm -f ./Makefile
|
|
479 (echo "# This file is generated by \`${progname}' from \`./Makefile.in'.
|
|
480 # If you are thinking about editing it, you should seriously consider
|
|
481 # editing \`./Makefile.in' itself, or running \`${progname}' instead."
|
|
482 /bin/sed < Makefile.in \
|
|
483 -e '/^# DIST: /d' \
|
621
|
484 -e 's;^\(prefix=\).*$;\1'"${prefix};" \
|
617
|
485 -e 's;^\(bindir=\).*$;\1'"${bindir};" \
|
621
|
486 -e 's;^\(emacsdir=\).*$;\1'"${emacsdir};" \
|
|
487 -e 's;^\(datadir=\).*$;\1'"${datadir};" \
|
|
488 -e 's;^\(lispdir=\).*$;\1'"${lispdir};" \
|
|
489 -e 's;^\(locallisppath=\).*$;\1'"${locallisppath};" \
|
617
|
490 -e 's;^\(lisppath=\).*$;\1'"${lisppath};" \
|
621
|
491 -e 's;^\(buildlisppath=\).*$;\1'"${buildlisppath};" \
|
|
492 -e 's;^\(statedir=\).*$;\1'"${statedir};" \
|
617
|
493 -e 's;^\(lockdir=\).*$;\1'"${lockdir};" \
|
621
|
494 -e 's;^\(libdir=\).*$;\1'"${libdir};" \
|
|
495 -e 's;^\(mandir=\).*$;\1'"${mandir};" \
|
|
496 -e 's;^\(infodir=\).*$;\1'"${infodir};" \
|
|
497 ) > ./Makefile
|
617
|
498 # Remind people not to edit this.
|
|
499 chmod -w ./Makefile
|
603
|
500
|
|
501 # Modify the parameters in the `build-install' script.
|
617
|
502 echo "Producing ./build-install from ./build-install.in."
|
|
503 rm -f ./build-install
|
|
504 (echo "# This file is generated by \`${progname}' from \`./build-install.in'.
|
|
505 # If you are thinking about editing it, you should seriously consider
|
|
506 # editing \`./build-install.in' itself, or running \`${progname}' instead."
|
|
507 /bin/sed < build-install.in \
|
621
|
508 -e 's;^\(prefix=\).*$;\1'"${prefix};" \
|
|
509 -e 's;^\(bindir=\).*$;\1'"${bindir};" \
|
|
510 -e 's;^\(lisppath=\).*$;\1'"${lisppath};" \
|
|
511 -e 's;^\(datadir=\).*$;\1'"${datadir};" \
|
|
512 -e 's;^\(lockdir=\).*$;\1'"${lockdir};" \
|
|
513 -e 's;^\(libdir=\).*$;\1'"${libdir};") > ./build-install
|
617
|
514 # Remind people not to edit this.
|
|
515 chmod -w build-install
|
|
516 chmod +x build-install
|
603
|
517
|
|
518 # Modify the parameters in the src makefile.
|
617
|
519 echo "Producing src/Makefile from src/Makefile.in."
|
|
520 rm -f src/Makefile
|
|
521 (echo "# This file is generated by \`${progname}' from \`Makefile.in'.
|
|
522 # If you are thinking about editing it, you should seriously consider
|
|
523 # editing \`Makefile.in' itself, or running \`${progname}' instead."
|
|
524 /bin/sed < src/Makefile.in \
|
|
525 -e 's;^\(CC[ ]*=\).*$;\1'"${cc};") > src/Makefile
|
|
526 # Remind people not to edit this.
|
|
527 chmod -w src/Makefile
|
603
|
528
|
|
529 # Modify the parameters in the lib-src makefile.
|
617
|
530 echo "Producing lib-src/Makefile from lib-src/Makefile.in."
|
|
531 rm -f lib-src/Makefile
|
|
532 (echo "# This file is generated by \`${progname}' from \`Makefile.in'.
|
|
533 # If you are thinking about editing it, you should seriously consider
|
|
534 # editing \`Makefile.in' itself, or running \`${progname}' instead."
|
|
535 /bin/sed < lib-src/Makefile.in \
|
|
536 -e 's;^\(CFLAGS=\).*$;\1'"${c_switch_site};" \
|
|
537 -e 's;^\(LOADLIBES=\).*$;\1'"${libsrc_libs};" \
|
|
538 -e 's;^\(CC=\).*$;\1'"${cc};") > lib-src/Makefile
|
|
539 # Remind people not to edit this.
|
|
540 chmod -w lib-src/Makefile
|
|
541
|
603
|
542
|
605
|
543 # Create a verbal description of what we have done.
|
621
|
544 if [ "${highpri}" ]; then
|
|
545 desc_highpri="${highpri}"
|
|
546 else
|
|
547 desc_highpri="none"
|
|
548 fi
|
605
|
549 message="# Configured for machine \`${machine}' running \`${opsystem}'.
|
|
550 # The following values have been set in ./Makefile and ./build-install:
|
|
551 # Executables will be placed in
|
|
552 # ${bindir}.
|
|
553 # Emacs's lisp search path will be
|
|
554 # \`${lisppath}'.
|
|
555 # Emacs will look for its architecture-independent data in
|
|
556 # ${datadir}.
|
|
557 # Emacs will look for its utility programs and other architecture-
|
|
558 # dependent data in
|
|
559 # ${libdir}.
|
|
560 # Emacs will keep track of file-locking in
|
|
561 # ${lockdir}.
|
|
562 # The following values have been set in src/config.h:
|
621
|
563 # At how much higher than normal priority should Emacs run? ${desc_highpri}
|
605
|
564 # Should Emacs use the GNU version of malloc? ${gnu_malloc}${gnu_malloc_reason}
|
|
565 # Should Emacs use the relocating allocator for buffers? ${rel_alloc}
|
|
566 # Should Emacs support a floating point Elisp type? ${lisp_float_type}
|
|
567 # What window system should Emacs use? ${window_system}
|
|
568 # Should Emacs support mouse menus, which require X11? ${have_x_menu}
|
|
569 # What compiler should emacs be built with? ${cc}
|
|
570 # Should the compilation use \`-g' and/or \`-O'? ${c_switch_site- neither}"
|
|
571
|
|
572 # Document the damage we have done by writing config.status.
|
|
573
|
|
574 echo '#!/bin/sh' > config.status
|
|
575
|
|
576 echo "# This file is generated by \`${progname}.'
|
|
577 # If you are thinking about editing it, you should seriously consider
|
|
578 # running \`${progname}' instead.
|
|
579 " >> config.status
|
|
580 echo "${message}" >> config.status
|
|
581 echo "'${progname}' \\
|
617
|
582 -machine='${machine}' \\
|
605
|
583 -opsystem='${opsystem}' \\
|
|
584 -g=${g} \\
|
|
585 -O=${O} \\
|
|
586 -cc=${cc} \\
|
|
587 -libdir='${libdir}' \\
|
|
588 -datadir='${datadir}' \\
|
|
589 -bindir='${bindir}' \\
|
|
590 -lisppath='${lisppath}' \\
|
|
591 -lockdir='${lockdir}' \\
|
|
592 -window_system='${window_system}' \\
|
|
593 -have_x_menu='${have_x_menu}' \\
|
617
|
594 -gnu_malloc='${gnu_malloc}' \\
|
|
595 -rel_alloc='${rel_alloc}' \\
|
605
|
596 -highpri='${highpri}' \\
|
621
|
597 -lisp_float_type='${lisp_float_type}' \\
|
|
598 $@" >> config.status
|
617
|
599 # Remind people not to edit this.
|
|
600 chmod -w config.status
|
605
|
601 chmod +x config.status
|
|
602
|
|
603 # Print the description.
|
603
|
604 echo
|
605
|
605 echo "${message}" | sed -e 's/^# //'
|
603
|
606
|
|
607 exit 0
|