1 dnl This is an autoconf script.
2 dnl To rebuild the `configure' script from this, execute the command
4 dnl in the directory containing this script.
6 #### Configuration script for GNU Emacs
7 #### Copyright (C) 1992, 1994 Free Software Foundation, Inc.
8 #### This script requires autoconf version 1.9 or later.
10 ### Don't edit this script!
11 ### This script was automatically generated by the `autoconf' program
12 ### from the file `./configure.in'.
13 ### To rebuild it, execute the command
15 ### in the this directory.
17 ### This file is part of GNU Emacs.
19 ### GNU Emacs is free software; you can redistribute it and/or modify
20 ### it under the terms of the GNU General Public License as published by
21 ### the Free Software Foundation; either version 2, or (at your option)
22 ### any later version.
24 ### GNU Emacs is distributed in the hope that it will be useful,
25 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
26 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 ### GNU General Public License for more details.
29 ### You should have received a copy of the GNU General Public License
30 ### along with GNU Emacs; see the file COPYING. If not, write to
31 ### the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
33 ### Since Emacs has configuration requirements that autoconf can't
34 ### meet, this file is an unholy marriage of custom-baked
35 ### configuration code and autoconf macros.
37 ### We use the m4 quoting characters [ ] (as established by the
38 ### autoconf system) to include large sections of raw sewage - Oops, I
39 ### mean, shell code - in the final configuration script.
41 ### Usage: configure config_name
43 ### If configure succeeds, it leaves its status in config.status.
44 ### If configure fails after disturbing the status quo,
45 ### config.status is removed.
47 ### Remove any more than one leading "." element from the path name.
48 ### If we don't remove them, then another "./" will be prepended to
49 ### the file name each time we use config.status, and the program name
50 ### will get larger and larger. This wouldn't be a problem, except
51 ### that since progname gets recorded in all the Makefiles this script
52 ### produces, move-if-change thinks they're different when they're
55 ### It would be nice if we could put the ./ in a \( \) group and then
56 ### apply the * operator to that, so we remove as many leading ./././'s
57 ### as are present, but some seds (like Ultrix's sed) don't allow you to
58 ### apply * to a \( \) group. Bleah.
59 progname="`echo $0 | sed 's:^\./\./:\./:'`"
62 ### Establish some default values.
66 exec_prefix='${prefix}'
67 bindir='${exec_prefix}/bin'
68 datadir='${prefix}/lib'
69 statedir='${prefix}/lib'
70 libdir='${exec_prefix}/lib'
71 mandir='${prefix}/man/man1'
72 infodir='${prefix}/info'
73 lispdir='${datadir}/emacs/${version}/lisp'
74 locallisppath='${datadir}/emacs/site-lisp'
75 lisppath='${locallisppath}:${lispdir}'
76 etcdir='${datadir}/emacs/${version}/etc'
77 lockdir='${statedir}/emacs/lock'
78 archlibdir='${libdir}/emacs/${version}/${configuration}'
79 docdir='${datadir}/emacs/${version}/etc'
81 # On Sun systems, people sometimes set up the variable CPP
82 # with a value that is a directory, not an executable at all.
83 # Detect that case, and ignore that value.
84 if [ "x$CPP" != x ] && [ -d "$CPP" ];
89 # We cannot use this variable in the case statement below, because many
90 # /bin/sh's have broken semantics for "case". Unfortunately, you must
91 # actually edit the clause itself.
92 # path_options="prefix | exec_prefix | bindir | libdir | etcdir | datadir"
93 # path_options="$path_options | archlibdir | statedir | mandir | infodir"
94 # path_options="$path_options | lispdir | lockdir | lisppath | locallisppath"
98 short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
100 Set compilation and installation parameters for GNU Emacs, and report.
101 CONFIGURATION specifies the machine and operating system to build for.
102 --with-x Support the X Window System.
103 --with-x=no Don't support X.
104 --with-x-toolkit Use an X toolkit.
105 --with-x-toolkit=no Don't use an X toolkit.
106 --with-gcc Use GCC to compile Emacs.
107 --with-gcc=no Don't use GCC to compile Emacs.
108 --x-includes=DIR Search for X header files in DIR.
109 --x-libraries=DIR Search for X libraries in DIR.
110 --run-in-place Use libraries and data files directly out of the
112 --single-tree=DIR Has the effect of creating a directory tree at DIR
114 .../DIR/bin/CONFIGNAME (emacs, etags, etc.)
115 .../DIR/bin/CONFIGNAME/etc (movemail, etc.)
116 .../DIR/common/lisp (emacs' lisp files)
117 .../DIR/common/site-lisp (local lisp files)
118 .../DIR/common/lib (DOC, TUTORIAL, etc.)
119 .../DIR/common/lock (lockfiles)
120 --srcdir=DIR Look for the Emacs source files in DIR.
121 --prefix=DIR Install files below DIR. Defaults to \`${prefix}'.
123 You may also specify any of the \`path' variables found in Makefile.in,
124 including --bindir, --libdir, --etcdir, --infodir, and so on. This allows
125 you to override a single default location when configuring.
127 If successful, ${progname} leaves its status in config.status. If
128 unsuccessful after disturbing the status quo, it removes config.status."
131 #### Option processing.
133 ### Record all the arguments, so we can save them in config.status.
136 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date,
137 ### in order to get the arguments back in $@, we have to do an
138 ### `eval set x "$quoted_arguments"; shift'.
141 quoted_arguments="$quoted_arguments '$i'"
144 ### Don't use shift -- that destroys the argument list, which autoconf needs
145 ### to produce config.status. It turns out that "set - ${arguments}" doesn't
147 ### However, it also turns out that many shells cannot expand ${10} at all.
148 ### So using an index variable doesn't work either. It is possible to use
149 ### some shell magic to make 'set x "$arguments"; shift' work portably.
150 while [ $# != 0 ]; do
154 ## Anything starting with a hyphen we assume is an option.
156 ## Separate the switch name from the value it's being given.
159 opt=`echo ${arg} | sed 's:^-*\([^=]*\)=.*$:\1:'`
160 val=`echo ${arg} | sed 's:^-*[^=]*=\(.*\)$:\1:'`
164 ## If FOO is a boolean argument, --FOO is equivalent to
165 ## --FOO=yes. Otherwise, the value comes from the next
166 ## argument - see below.
167 opt=`echo ${arg} | sed 's:^-*\(.*\)$:\1:'`
173 ## Change `-' in the option name to `_'.
175 opt="`echo ${opt} | tr - _`"
177 ## Process the option.
180 ## Has the user specified which window systems they want to support?
181 "with_x" | "with_x11" | "with_x10" )
182 ## Make sure the value given was either "yes" or "no".
184 y | ye | yes ) val=yes ;;
187 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
188 Set it to either \`yes' or \`no'."
189 echo "${short_usage}") >&2
193 eval "${opt}=\"${val}\""
196 ## Has the user specified which toolkit they want to support?
199 y | ye | yes ) val=athena ;;
201 l | lu | luc | luci | lucid ) val=lucid ;;
202 a | at | ath | athe | athena ) val=athena ;;
203 # These don't currently work.
204 # m | mo | mot | moti | motif ) val=motif ;;
205 # o | op | ope | open | open- | open-l | open-lo \
206 # | open-loo | open-look ) val=open-look ;;
209 #echo "${progname}: the \`--${optname}' option is supposed to have a value
210 #which is \`yes', \`no', \`lucid', \`athena', \`motif' or \`open-look'."
211 echo "${progname}: the \`--${optname}' option is supposed to have a value
212 which is \`yes', \`no', \`lucid', or \`athena'.
213 Currently, \`yes', \`athena' and \`lucid' are synonyms."
214 echo "${short_usage}") >&2
218 eval "${opt}=\"${val}\""
221 ## Has the user specified whether or not they want GCC?
222 "with_gcc" | "with_gnu_cc" )
223 ## Make sure the value given was either "yes" or "no".
225 y | ye | yes ) val=yes ;;
228 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
229 Set it to either \`yes' or \`no'."
230 echo "${short_usage}") >&2
234 eval "${opt}=\"${val}\""
237 ## Has the user specified a source directory?
239 ## If the value was omitted, get it from the next argument.
240 if [ "${valomitted}" = "yes" ]; then
241 ## Get the next argument from the argument list, if there is one.
243 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
244 \`--${optname}=FOO'."
245 echo "${short_usage}") >&2
253 ## Has the user tried to tell us where the X files are?
254 ## I think these are dopey, but no less than three alpha
255 ## testers, at large sites, have said they have their X files
256 ## installed in odd places.
258 ## If the value was omitted, get it from the next argument.
259 if [ "${valomitted}" = "yes" ]; then
260 ## Get the next argument from the argument list, if there is one.
262 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
263 \`--${optname}=/usr/local/X11/include'."
264 echo "${short_usage}") >&2
272 ## If the value was omitted, get it from the next argument.
273 if [ "${valomitted}" = "yes" ]; then
274 ## Get the next argument from the argument list, if there is one.
276 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
277 \`--${optname}=/usr/local/X11/lib'."
278 echo "${short_usage}") >&2
286 ## Should this use the "development" file organization?
292 ## Should this use the "single tree" file organization?
298 ## Has the user specified one of the path options?
299 prefix | exec_prefix | bindir | libdir | etcdir | datadir | \
300 archlibdir | statedir | mandir | infodir | lispdir | lockdir | \
301 lisppath | locallisppath | docdir )
302 ## If the value was omitted, get it from the next argument.
303 if [ "${valomitted}" = "yes" ]; then
306 "$progname: You must give a value for the \`--${optname}' option,";
308 "as in \`--${optname}=`eval echo '$'$optname`.'"
309 echo "$short_usage") >&2
314 eval "${opt}=\"${val}\""
315 eval "${opt}_specified=1"
318 ## Verbose flag, tested by autoconf macros.
323 ## Has the user asked for some help?
327 echo "${short_usage}" | more
329 echo "${short_usage}" | $PAGER
334 ## We ignore all other options silently.
338 ## Anything not starting with a hyphen we assume is a
339 ## configuration name.
347 ### Get the arguments back. See the diatribe on Shell Magic above.
348 eval set x "$quoted_arguments"; shift
350 if [ "${configuration}" = "" ]; then
351 echo '- You did not tell me what kind of host system you want to configure.
352 - I will attempt to guess the kind of system this is.' 1>&2
353 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
354 if configuration=`${guesssys}` ; then
355 echo "- Looks like this is a ${configuration}" 1>&2
357 echo '- Failed to guess the system type. You need to tell me.' 1>&2
358 echo "${short_usage}" >&2
363 #### Decide where the source is.
366 ## If it's not specified, see if `.' or `..' might work.
368 confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
369 if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then
372 if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
375 if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then
379 ${progname}: Neither the current directory nor its parent seem to
380 contain the Emacs sources. If you do not want to build Emacs in its
381 source tree, you should run \`${progname}' in the directory in which
382 you wish to build Emacs, using its \`--srcdir' option to say where the
383 sources may be found."
384 echo "${short_usage}") >&2
391 ## Otherwise, check if the directory they specified is okay.
393 if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then
395 ${progname}: The directory specified with the \`--srcdir' option,
396 \`${srcdir}', doesn't seem to contain the Emacs sources. You should
397 either run the \`${progname}' script at the top of the Emacs source
398 tree, or use the \`--srcdir' option to specify where the Emacs sources
400 echo "${short_usage}") >&2
406 #### Make srcdir absolute, if it isn't already. It's important to
407 #### avoid running the path through pwd unnecessary, since pwd can
408 #### give you automounter prefixes, which can go away.
412 ## We may be able to use the $PWD environment variable to make this
413 ## absolute. But sometimes PWD is inaccurate.
414 if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ] ; then
417 srcdir="`(cd ${srcdir}; pwd)`"
420 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
423 #### Check if the source directory already has a configured system in it.
424 if [ `pwd` != `(cd ${srcdir} && pwd)` ] \
425 && [ -f "${srcdir}/src/config.h" ] ; then
426 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
427 echo " as a build directory right now; it has been configured in its own"
428 echo " right. To configure in another directory as well, you MUST"
429 echo " use GNU make. If you do not have GNU make, then you must"
430 echo " now do \`make distclean' in ${srcdir},"
431 echo " and then run ${progname} again.") >&2
432 extrasub='/^VPATH[ ]*=/c\
438 vpath %.in $(srcdir)'
441 ### Make the necessary directories, if they don't exist.
442 for dir in ./src ./lib-src ./cpp ./oldXMenu ./lwlib ./etc ; do
443 if [ ! -d ${dir} ]; then
448 #### Given the configuration name, set machfile and opsysfile to the
449 #### names of the m/*.h and s/*.h files we should use.
451 ### Canonicalize the configuration name.
452 echo "Checking the configuration name."
453 if canonical=`${srcdir}/config.sub "${configuration}"` ; then : ; else
457 ### If you add support for a new configuration, add code to this
458 ### switch statement to recognize your configuration name and select
459 ### the appropriate operating system and machine description files.
461 ### You would hope that you could choose an m/*.h file pretty much
462 ### based on the machine portion of the configuration name, and an s-
463 ### file based on the operating system portion. However, it turns out
464 ### that each m/*.h file is pretty manufacturer-specific - for
465 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
466 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
467 ### machines. So we basically have to have a special case for each
468 ### configuration name.
470 ### As far as handling version numbers on operating systems is
471 ### concerned, make sure things will fail in a fixable way. If
472 ### /etc/MACHINES doesn't say anything about version numbers, be
473 ### prepared to handle anything reasonably. If version numbers
474 ### matter, be sure /etc/MACHINES says something about it.
476 ### Eric Raymond says we should accept strings like "sysvr4" to mean
477 ### "System V Release 4"; he writes, "The old convention encouraged
478 ### confusion between `system' and `release' levels'."
480 machine='' opsys='' unported='false'
481 case "${canonical}" in
484 ## Strictly speaking, we need the version of the alliant operating
485 ## system to choose the right machine file, but currently the
486 ## configuration name doesn't tell us enough to choose the right
487 ## one; we need to give alliants their own operating system name to
488 ## do this right. When someone cares, they can help us.
490 machine=alliant4 opsys=bsd4-2
493 machine=alliant-2800 opsys=bsd4-3
498 machine=altos opsys=usg5-2
503 machine=amdahl opsys=usg5-2-2
506 ## Appallings - I mean, Apollos - running Domain
508 machine=apollo opsys=bsd4-2
511 ## AT&T 3b2, 3b5, 3b15, 3b20
513 machine=att3b opsys=usg5-2-2
516 ## AT&T 3b1 - The Mighty Unix PC!
518 machine=7300 opsys=usg5-2-2
523 machine=ibmrs6000 opsys=aix3-2
528 machine=dpx2 opsys=usg5-3
533 machine=sps7 opsys=usg5-2
536 ## CCI 5/32, 6/32 -- see "Tahoe".
539 ## I don't know what configuration name to use for this; config.sub
540 ## doesn't seem to know anything about it. Hey, Celerity users, get
542 celerity-celerity-bsd* )
543 machine=celerity opsys=bsd4-2
547 ## What operating systems does this chip run that Emacs has been
551 ## We'll use the catch-all code at the bottom to guess the
556 *-convex-bsd* | *-convex-convexos* )
557 machine=convex opsys=bsd4-3
558 ## Prevents suprious white space in makefiles - d.m.cooke@larc.nasa.gov
559 NON_GNU_CPP="cc -E -P"
564 machine=intel386 opsys=usg5-3
568 cydra*-cydrome-sysv* )
569 machine=cydra5 opsys=usg5-3
572 ## Data General AViiON Machines
573 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
574 machine=aviion opsys=dgux5-4r3
576 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
577 machine=aviion opsys=dgux5-4r2
580 machine=aviion opsys=dgux
584 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
585 machine=pmax opsys=bsd4-2
587 mips-dec-ultrix* | mips-dec-bsd* )
588 machine=pmax opsys=bsd4-3
591 machine=pmax opsys=osf1
594 ## Motorola Delta machines
595 m68k-motorola-sysv* | m68000-motorola-sysv* )
596 machine=delta opsys=usg5-3
597 if [ -z "`type gnucc | grep 'not found'`" ]
600 if [ -z "`type gcc | grep 'not found'`" ]
606 m88k-motorola-sysv4* )
607 machine=delta88k opsys=usg5-4
609 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
610 machine=delta88k opsys=usg5-3
615 machine=dual opsys=usg5-2
618 machine=dual opsys=unipl5-2
623 machine=elxsi opsys=usg5-2
628 machine=ns16000 opsys=umax
631 ## The GEC 93 - apparently, this port isn't really finished yet.
633 ## Gould Power Node and NP1
635 machine=gould opsys=bsd4-2
638 machine=gould opsys=bsd4-3
641 machine=gould-np1 opsys=bsd4-3
644 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
645 ## as far as Emacs is concerned).
647 # Build needs to be different on 7.0 and later releases
649 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
650 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
653 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
655 machine=nh3000 opsys=cxux
659 xps*-honeywell-sysv* )
660 machine=xps100 opsys=usg5-2
663 ## HP 9000 series 200 or 300
665 machine=hp9000s300 opsys=bsd4-3
668 machine=hp9000s300 opsys=netbsd
670 ## HP/UX 7, 8 and 9 are supported on these machines.
673 ## Someone's system reports A.B8.05 for this.
674 ## I wonder what other possibilities there are.
675 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
676 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
677 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
678 *) machine=hp9000s300 opsys=hpux ;;
682 ## HP 9000 series 700 and 800, running HP/UX
684 machine=hp800 opsys=hpux
687 machine=hp800 opsys=hpux8
690 machine=hp800 opsys=hpux9shr
693 machine=hp800 opsys=hpux9
696 ## HP 9000 series 700 and 800, running HP/UX
698 ## Cross-compilation? Nah!
700 ## Someone's system reports A.B8.05 for this.
701 ## I wonder what other possibilities there are.
702 *.B8.* ) machine=hp800 opsys=hpux8 ;;
703 *.08.* ) machine=hp800 opsys=hpux8 ;;
704 *.09.* ) machine=hp800 opsys=hpux9 ;;
705 *) machine=hp800 opsys=hpux ;;
711 machine=orion opsys=bsd4-2
714 machine=orion105 opsys=bsd4-2
719 machine=ibmps2-aix opsys=usg5-2-2
721 i386-ibm-aix1.[23]* | i386-ibm-aix* )
722 machine=ibmps2-aix opsys=usg5-3
725 machine=ibm370aix opsys=usg5-3
728 machine=ibmrs6000 opsys=aix3-1
731 machine=ibmrs6000 opsys=aix3-2-5
733 rs6000-ibm-aix3.2* | rs6000-ibm-aix* )
734 machine=ibmrs6000 opsys=aix3-2
737 machine=ibmrt opsys=bsd4-3
740 machine=ibmrt opsys=bsd4-2
743 machine=ibmrt opsys=bsd4-3
746 machine=ibmrt opsys=bsd4-2
749 machine=ibmrt opsys=bsd4-3
752 machine=ibmrt opsys=bsd4-3
755 machine=ibmrt-aix opsys=usg5-2-2
758 ## Integrated Solutions `Optimum V'
760 machine=isi-ov opsys=bsd4-2
763 machine=isi-ov opsys=bsd4-3
766 ## Intel 386 machines where we do care about the manufacturer
767 i[34]86-intsys-sysv* )
768 machine=is386 opsys=usg5-2-2
773 machine=i386 opsys=usg5-3
778 machine=symmetry opsys=bsd4-3
781 ## Unspecified sysv on an ncr machine defaults to svr4.2.
782 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
784 machine=intel386 opsys=usg5-4-2
789 machine=i860 opsys=usg5-4
794 machine=masscomp opsys=rtu
799 machine=mega68 opsys=bsd4-2
802 ## Workstations sold by MIPS
803 ## This is not necessarily all workstations using the MIPS processor -
804 ## Irises are produced by SGI, and DECstations by DEC.
806 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
807 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
808 ## it gives for choosing between the alternatives seems to be "Use
809 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
810 ## the BSD world." I'll assume that these are instructions for
811 ## handling two odd situations, and that every other situation
812 ## should use mips.h and usg5-2-2, they being listed first.
815 ## Fall through to the general code at the bottom to decide on the OS.
818 machine=mips4 opsys=bsd4-3
819 NON_GNU_CC="cc -systype bsd43"
820 NON_GNU_CPP="cc -systype bsd43 -E"
823 machine=mips opsys=bsd4-3
826 machine=mips opsys=usg5-2-2
830 m68*-next-* | i[34]86-next-* )
831 machine=next opsys=mach2
834 ## The complete machine from National Semiconductor
836 machine=ns32000 opsys=usg5-2
840 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
841 machine=tower32 opsys=usg5-2-2
843 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
844 machine=tower32v3 opsys=usg5-3
849 machine=targon31 opsys=usg5-2-2
854 machine=nu opsys=usg5-2
859 machine=plexus opsys=usg5-2
863 ## I don't really have any idea what sort of processor the Pyramid has,
864 ## so I'm assuming it is its own architecture.
865 pyramid-pyramid-bsd* )
866 machine=pyramid opsys=bsd4-2
870 ns32k-sequent-bsd4.2* )
871 machine=sequent opsys=bsd4-2
873 ns32k-sequent-bsd4.3* )
874 machine=sequent opsys=bsd4-3
879 machine=mips-siemens opsys=usg5-4
880 NON_GNU_CC=/usr/ccs/bin/cc
881 NON_GNU_CPP=/usr/ccs/lib/cpp
884 ## Silicon Graphics machines
885 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
887 machine=irist opsys=iris3-5
889 m68*-sgi-iris3.6* | m68*-sgi-iris*)
890 machine=irist opsys=iris3-6
894 machine=iris4d opsys=irix3-3
897 machine=iris4d opsys=irix5-0
899 mips-sgi-irix4* | mips-sgi-irix* )
900 machine=iris4d opsys=irix4-0
905 machine=news opsys=bsd4-2
908 machine=news opsys=bsd4-3
911 machine=news opsys=bsd4-3
913 mips-sony-bsd* | mips-sony-newsos4* )
914 machine=news-risc opsys=bsd4-3
917 machine=news-risc opsys=newsos5
922 machine=stride opsys=usg5-2
926 *-sun-sunos* | *-sun-bsd* | *-sun-solaris* | i[34]86-*-solaris2* | i[34]86-*-sunos5* )
927 case "${canonical}" in
928 m68*-sunos1* ) machine=sun1 ;;
929 m68*-sunos2* ) machine=sun2 ;;
930 m68* ) machine=sun3 ;;
931 i[34]86-sun-* ) machine=sun386 ;;
932 i[34]86-*-* ) machine=intel386 ;;
933 sparc* ) machine=sparc ;;
936 case "${canonical}" in
937 ## The Sun386 didn't get past 4.0.
938 i386-*-sunos4 ) opsys=sunos4-0 ;;
939 *-sunos4.0* ) opsys=sunos4-0 ;;
940 *-sunos4.1.3* ) opsys=sunos4-1-3
941 NON_GCC_TEST_OPTIONS=-Bstatic
942 GCC_TEST_OPTIONS=-static
944 *-sunos4shr* ) opsys=sunos4shr ;;
945 *-sunos4* | *-sunos ) opsys=sunos4-1
946 NON_GCC_TEST_OPTIONS=-Bstatic
947 GCC_TEST_OPTIONS=-static
949 *-sunos5.3* | *-solaris2.3* )
951 NON_GNU_CPP=/usr/ccs/lib/cpp
953 *-sunos5* | *-solaris* )
955 NON_GNU_CPP=/usr/ccs/lib/cpp
963 machine=tad68k opsys=usg5-3
967 tahoe-tahoe-bsd4.2* )
968 machine=tahoe opsys=bsd4-2
970 tahoe-tahoe-bsd4.3* )
971 machine=tahoe opsys=bsd4-3
974 ## Tandem Integrity S2
976 machine=tandem-s2 opsys=usg5-3
980 m88k-tektronix-sysv3* )
981 machine=tekxd88 opsys=usg5-3
984 ## Tektronix 16000 box (6130?)
985 ns16k-tektronix-bsd* )
986 machine=ns16000 opsys=bsd4-2
989 ## src/m/tek4300.h hints that this is a m68k machine.
990 m68*-tektronix-bsd* )
991 machine=tek4300 opsys=bsd4-3
995 ## We seem to have lost the machine-description file titan.h!
997 machine=titan opsys=usg5-3
1000 ## Ustation E30 (SS5E)
1001 m68*-unisys-uniplus* )
1002 machine=ustation opsystem=unipl5-2
1008 case "${canonical}" in
1009 *-bsd4.1* ) opsys=bsd4-1 ;;
1010 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
1011 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
1012 *-bsd386* | *-bsdi* ) opsys=bsd386 ;;
1013 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1014 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1015 *-vms* ) opsys=vms ;;
1021 ns16k-whitechapel-* )
1023 ## We don't know what sort of OS runs on these; we'll let the
1024 ## operating system guessing code below try.
1029 machine=wicat opsys=usg5-2
1032 ## Intel 386 machines where we don't care about the manufacturer
1035 case "${canonical}" in
1036 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1037 *-isc2.2* ) opsys=isc2-2 ;;
1038 *-isc4.0* ) opsys=isc4-0 ;;
1039 *-isc* ) opsys=isc3-0 ;;
1040 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
1041 *-esix* ) opsys=esix ;;
1042 *-xenix* ) opsys=xenix ;;
1043 *-linux* ) opsys=linux ;;
1044 *-sco3.2v4* ) opsys=sco4 ;;
1045 *-bsd386* | *-bsdi* ) opsys=bsd386 ;;
1046 *-386bsd* ) opsys=386bsd ;;
1047 *-freebsd* ) opsys=freebsd ;;
1048 *-netbsd* ) opsys=netbsd ;;
1049 *-nextstep* ) opsys=mach2 ;;
1050 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
1059 ### If the code above didn't choose an operating system, just choose
1060 ### an operating system based on the configuration name. You really
1061 ### only want to use this when you have no idea what the right
1062 ### operating system is; if you know what operating systems a machine
1063 ### runs, it's cleaner to make it explicit in the case statement
1065 if [ x"${opsys}" = x ]; then
1066 case "${canonical}" in
1067 *-gnu* ) opsys=gnu ;;
1068 *-bsd4.[01] ) opsys=bsd4-1 ;;
1069 *-bsd4.2 ) opsys=bsd4-2 ;;
1070 *-bsd4.3 ) opsys=bsd4-3 ;;
1071 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
1072 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
1073 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
1074 *-sysv3 | *-sysvr3 ) opsys=usg5-3 ;;
1075 *-sysv4 | *-sysvr4 ) opsys=usg5-4 ;;
1076 *-sysv4.1 | *-sysvr4.1 )
1077 NON_GNU_CPP=/usr/lib/cpp
1079 *-sysv4.2 | *-sysvr4.2 ) opsys=usg5-4-2 ;;
1087 (echo "${progname}: Emacs hasn't been ported to \`${canonical}' systems."
1088 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
1093 machfile="m/${machine}.h"
1094 opsysfile="s/${opsys}.h"
1098 AC_CONFIG_HEADER(src/config.h)
1101 #### Choose a compiler.
1108 "yes" ) CC="gcc" GCC=1 ;;
1119 #### Some systems specify a CPP to use unless we are using GCC.
1120 #### Now that we know whether we are using GCC, we can decide whether
1121 #### to use that one.
1122 if [ "x$NON_GNU_CPP" = x ] || [ x$GCC = x1 ] || [ "x$CPP" != x ]
1128 #### Some systems specify a CC to use unless we are using GCC.
1129 #### Now that we know whether we are using GCC, we can decide whether
1130 #### to use that one.
1131 if [ "x$NON_GNU_CC" = x ] || [ x$GCC = x1 ] || [ x$cc_specified = x1 ]
1137 if [ x$GCC = x1 ] && [ "x$GCC_TEST_OPTIONS" != x ]
1139 CC="$CC $GCC_TEST_OPTIONS"
1142 if [ x$GCC = x ] && [ "x$NON_GCC_TEST_OPTIONS" != x ]
1144 CC="$CC $NON_GCC_TEST_OPTIONS"
1147 #### Some other nice autoconf tests. If you add a test here which
1148 #### should make an entry in src/config.h, don't forget to add an
1149 #### #undef clause to src/config.h.in for autoconf to modify.
1151 dnl checks for programs
1157 dnl checks for UNIX variants that set `DEFS'
1159 dnl checks for header files
1160 AC_HAVE_HEADERS(sys/timeb.h sys/time.h unistd.h)
1162 AC_TIME_WITH_SYS_TIME
1163 dnl In Autoconf 1.8 use AC_SYS_SIGLIST_DECLARED instead of this.
1164 AC_COMPILE_CHECK(sys_siglist declaration in signal.h or unistd.h,
1165 [#include <signal.h>
1166 /* NetBSD declares sys_siglist in <unistd.h>. */
1167 #ifdef HAVE_UNISTD_H
1169 #endif], [char *msg = *(sys_siglist + 1);],
1170 AC_DEFINE(SYS_SIGLIST_DECLARED))
1172 dnl checks for typedefs
1175 dnl checks for structure members
1179 dnl checks for compiler characteristics
1182 dnl check for Make feature
1185 dnl checks for operating system services
1188 dnl other checks for UNIX variants
1191 #### Choose a window system.
1192 echo "Checking window system."
1197 window_system=${window_system}x11
1200 window_system=${window_system}none
1203 case "${window_system}" in
1207 case "${with_x11}" in
1215 case "${with_x10}" in
1226 case "${window_system}" in
1227 "none" | "x11" | "x10" ) ;;
1229 # --x-includes or --x-libraries implies --with-x11.
1230 if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
1233 echo " No window system specified. Looking for X11."
1234 # If the user didn't specify a window system and we found X11, use it.
1235 if [ -r /usr/lib/libX11.a \
1236 -o -d /usr/include/X11 \
1237 -o -d /usr/X386/include \
1238 -o -d ${x_includes}/X11 ]; then
1244 echo "Don't specify a window system more than once." >&2
1249 case "${window_system}" in
1251 ### If the user hasn't specified where we should find X, try
1252 ### letting autoconf figure that out.
1253 if [ -z "${x_includes}" ] && [ -z "${x_libraries}" ]; then
1258 if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
1264 [ -z "${window_system}" ] && window_system=none
1266 [ -n "${x_libraries}" ] && LD_SWITCH_X_SITE="-L${x_libraries}"
1267 [ -n "${x_libraries}" ] && LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
1268 [ -n "${x_includes}" ] && C_SWITCH_X_SITE="-I${x_includes}"
1270 # Avoid forcing the search of /usr/include before fixed include files.
1271 if [ "$C_SWITCH_X_SITE" = "-I/usr/include" ]; then
1275 case "${window_system}" in
1280 case "${with_x_toolkit}" in
1283 echo " Using Xt toolkit."
1287 echo " Using Motif toolkit."
1290 USE_X_TOOLKIT=OPEN_LOOK
1291 echo " Using Open-Look toolkit."
1295 echo " Using Xlib directly."
1309 echo " Using no window system."
1312 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
1314 ### If we're using X11, we should use the X menu package.
1322 #### Extract some information from the operating system and machine files.
1324 echo "Examining the machine- and system-dependent files to find out"
1325 echo " - which libraries the lib-src programs will want, and"
1326 echo " - whether the GNU malloc routines are usable."
1328 ### First figure out CFLAGS (which we use for running the compiler here)
1329 ### and REAL_CFLAGS (which we use for real compilation).
1330 ### The two are the same except on a few systems, where they are made
1331 ### different to work around various lossages. For example,
1332 ### GCC 2.5 on Linux needs them to be different because it treats -g
1333 ### as implying static linking.
1335 ### If the CFLAGS env var is specified, we use that value
1336 ### instead of the default.
1338 ### It's not important that this name contain the PID; you can't run
1339 ### two configures in the same directory and have anything work
1341 tempcname="conftest.c"
1344 #include "'${srcdir}'/src/'${opsysfile}'"
1345 #include "'${srcdir}'/src/'${machfile}'"
1346 #ifndef LIBS_MACHINE
1347 #define LIBS_MACHINE
1352 #ifndef C_SWITCH_SYSTEM
1353 #define C_SWITCH_SYSTEM
1355 #ifndef C_SWITCH_MACHINE
1356 #define C_SWITCH_MACHINE
1358 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
1359 configure___ c_switch_system=C_SWITCH_SYSTEM
1360 configure___ c_switch_machine=C_SWITCH_MACHINE
1363 #define LIB_X11_LIB -lX11
1366 #ifndef LIBX11_MACHINE
1367 #define LIBX11_MACHINE
1370 #ifndef LIBX11_SYSTEM
1371 #define LIBX11_SYSTEM
1373 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
1376 configure___ unexec=UNEXEC
1378 configure___ unexec=unexec.o
1381 #ifdef SYSTEM_MALLOC
1382 configure___ system_malloc=yes
1384 configure___ system_malloc=no
1387 #ifndef C_DEBUG_SWITCH
1388 #define C_DEBUG_SWITCH -g
1391 #ifndef C_OPTIMIZE_SWITCH
1392 #define C_OPTIMIZE_SWITCH -O
1395 #ifdef THIS_IS_CONFIGURE
1397 /* Get the CFLAGS for tests in configure. */
1399 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${CFLAGS}'
1401 configure___ CFLAGS=C_DEBUG_SWITCH '${CFLAGS}'
1404 #else /* not THIS_IS_CONFIGURE */
1406 /* Get the CFLAGS for real compilation. */
1408 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${CFLAGS}'
1410 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${CFLAGS}'
1413 #endif /* not THIS_IS_CONFIGURE */
1415 # The value of CPP is a quoted variable reference, so we need to do this
1416 # to get its actual value...
1417 CPP=`eval "echo $CPP"`
1418 if [ "x$CFLAGS" = x ]; then
1419 eval `${CPP} -Isrc ${tempcname} \
1420 | grep 'configure___' \
1421 | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/'`
1422 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
1423 | grep 'configure___' \
1424 | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/'`
1426 REAL_CFLAGS="$CFLAGS"
1430 ### Compute the unexec source name from the object name.
1431 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
1433 # Do the opsystem or machine files prohibit the use of the GNU malloc?
1434 # Assume not, until told otherwise.
1436 if [ "${system_malloc}" = "yes" ]; then
1439 (The GNU allocators don't work with this system configuration.)"
1442 if [ x"${REL_ALLOC}" = x ]; then
1443 REL_ALLOC=${GNU_MALLOC}
1449 #### Add the libraries to LIBS and check for some functions.
1452 DEFS="$c_switch_system $c_switch_machine $DEFS"
1455 dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks,
1456 dnl and also adds -ldnet to LIBS, which Autoconf uses for checks.
1457 AC_HAVE_LIBRARY(-ldnet)
1458 dnl This causes -lresolv to get used in subsequent tests,
1459 dnl which causes failures on some systems such as HPUX 9.
1460 dnl AC_HAVE_LIBRARY(-lresolv)
1462 AC_HAVE_LIBRARY(-lXbsd, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd")
1464 echo checking for XFree86
1465 if test -d /usr/X386/include; then
1467 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
1470 # We change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
1471 # for the tests that follow.
1473 if test "${HAVE_X11}" = "yes"; then
1474 DEFS="$C_SWITCH_X_SITE $DEFS"
1475 LIBS="$LD_SWITCH_X_SITE $LIBX $LIBS"
1476 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
1477 AC_HAVE_FUNCS(XrmSetDatabase XScreenResourceString \
1478 XScreenNumberOfScreen XSetWMProtocols)
1481 if test "${USE_X_TOOLKIT}" != "none"; then
1482 AC_COMPILE_CHECK(X11 toolkit version,
1483 [#include <X11/Intrinsic.h>],
1485 #if XtSpecificationRelease < 6
1489 AC_DEFINE(HAVE_X11XTR6))
1494 # logb and frexp are found in -lm on most systems.
1495 AC_HAVE_LIBRARY(-lm)
1496 AC_HAVE_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \
1497 random bcopy bcmp logb frexp fmod drem ftime res_init setsid strerror \
1501 AC_FUNC_CHECK(socket, , ok_so_far=)
1502 if test -n "$ok_so_far"; then
1503 AC_HEADER_CHECK(netinet/in.h, , ok_so_far=)
1505 if test -n "$ok_so_far"; then
1506 AC_HEADER_CHECK(arpa/inet.h, , ok_so_far=)
1508 if test -n "$ok_so_far"; then
1509 AC_DEFINE(HAVE_INET_SOCKETS)
1512 # Set up the CFLAGS for real compilation, so we can substitute it.
1513 CFLAGS="$REAL_CFLAGS"
1516 #### Find out which version of Emacs this is.
1517 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
1518 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
1519 if [ x"${version}" = x ]; then
1520 echo "${progname}: can't find current emacs version in
1521 \`${srcdir}/lisp/version.el'." >&2
1525 if [ -f /usr/lpp/X11/bin/smt.exp ]; then
1527 AC_DEFINE(HAVE_AIX_SMT_EXP)
1531 #### Specify what sort of things we'll be editing into Makefile and config.h.
1532 ### Use configuration here uncanonicalized to avoid exceeding size limits.
1535 AC_SUBST(configuration)
1538 AC_SUBST(exec_prefix)
1546 AC_SUBST(locallisppath)
1550 AC_SUBST(archlibdir)
1552 AC_SUBST(c_switch_system)
1553 AC_SUBST(c_switch_machine)
1554 AC_SUBST(LD_SWITCH_X_SITE)
1555 AC_SUBST(LD_SWITCH_X_SITE_AUX)
1556 AC_SUBST(C_SWITCH_X_SITE)
1558 AC_SUBST(X_TOOLKIT_TYPE)
1562 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "\"${configuration}\"")
1563 AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
1564 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
1565 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
1566 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX})
1567 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE})
1568 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC})
1571 if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then
1572 ] AC_DEFINE(HAVE_X_WINDOWS) [
1574 if [ "${USE_X_TOOLKIT}" != "none" ] ; then
1575 ] AC_DEFINE(USE_X_TOOLKIT) [
1577 if [ "${HAVE_X11}" = "yes" ] ; then
1578 ] AC_DEFINE(HAVE_X11) [
1580 if [ "${HAVE_XFREE386}" = "yes" ] ; then
1581 ] AC_DEFINE(HAVE_XFREE386) [
1583 if [ "${HAVE_X_MENU}" = "yes" ] ; then
1584 ] AC_DEFINE(HAVE_X_MENU) [
1586 if [ "${GNU_MALLOC}" = "yes" ] ; then
1587 ] AC_DEFINE(GNU_MALLOC) [
1589 if [ "${REL_ALLOC}" = "yes" ] ; then
1590 ] AC_DEFINE(REL_ALLOC) [
1592 if [ "${LISP_FLOAT_TYPE}" = "yes" ] ; then
1593 ] AC_DEFINE(LISP_FLOAT_TYPE) [
1596 # ====================== Developer's configuration =======================
1598 # The following assignments make sense if you're running Emacs on a single
1599 # machine, one version at a time, and you want changes to the lisp and etc
1600 # directories in the source tree to show up immediately in your working
1601 # environment. It saves a great deal of disk space by not duplicating the
1602 # lisp and etc directories.
1604 if [ "$run_in_place" = "1" ]; then
1605 lispdir='${srcdir}/lisp'
1606 locallisppath='${srcdir}/site-lisp'
1607 etcdir='${srcdir}/etc'
1608 lockdir='${srcdir}/lock'
1609 # We used to make archlibdir and docdir absolute,
1610 # but that caused trouble with automounters.
1611 archlibdir='${srcdir}/lib-src'
1612 docdir='${srcdir}/etc'
1613 infodir='${srcdir}/info'
1614 elif [ "$single_tree" = "1" ]; then
1615 if [ "$exec_prefix_specified" = "" ]; then
1616 exec_prefix='${prefix}'
1618 if [ "$bindir_specified" = "" ]; then
1619 bindir='${exec_prefix}/bin/${configuration}'
1621 if [ "$datadir_specified" = "" ]; then
1622 datadir='${prefix}/common'
1624 if [ "$statedir_specified" = "" ]; then
1625 statedir='${prefix}/common'
1627 if [ "$libdir_specified" = "" ]; then
1630 if [ "$lispdir_specified" = "" ]; then
1631 lispdir='${prefix}/common/lisp'
1633 if [ "$locallisppath_specified" = "" ]; then
1634 locallisppath='${prefix}/common/site-lisp'
1636 if [ "$lockdir_specified" = "" ]; then
1637 lockdir='${prefix}/common/lock'
1639 if [ "$archlibdir_specified" = "" ]; then
1640 archlibdir='${libdir}/etc'
1642 if [ "$etcdir_specified" = "" ]; then
1643 etcdir='${prefix}/common/data'
1645 if [ "$docdir_specified" = "" ]; then
1646 docdir='${prefix}/common/data'
1650 #### Report on what we decided to do.
1653 Configured for \`${canonical}'.
1655 Where should the build process find the source code? ${srcdir}
1656 What operating system and machine description files should Emacs use?
1657 \`${opsysfile}' and \`${machfile}'
1658 What compiler should emacs be built with? ${CC} ${CFLAGS}
1659 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
1660 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC}
1661 What window system should Emacs use? ${window_system}
1662 What toolkit should Emacs use? ${USE_X_TOOLKIT}${x_includes+
1663 Where do we find X Windows header files? }${x_includes}${x_libraries+
1664 Where do we find X Windows libraries? }${x_libraries}
1668 # Remove any trailing slashes in these variables.
1669 test -n "${prefix}" &&
1670 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
1671 test -n "${exec_prefix}" &&
1672 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
1674 AC_OUTPUT(Makefile lib-src/Makefile.in oldXMenu/Makefile lwlib/Makefile src/Makefile.in, [
1676 # Build src/Makefile from ${srcdir}/src/Makefile.in. This must be done
1677 # after src/config.h is built, since we rely on that file.
1679 changequote(,)dnl The horror, the horror.
1680 # Now get this: Some word that is part of the ${srcdir} directory name
1681 # or the ${configuration} value might, just might, happen to be an
1682 # identifier like `sun4' or `i386' or something, and be predefined by
1683 # the C preprocessor to some helpful value like 1, or maybe the empty
1684 # string. Needless to say consequent macro substitutions are less
1685 # than conducive to the makefile finding the correct directory.
1686 undefs="`echo $top_srcdir $configuration $canonical |
1687 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
1688 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
1692 echo creating lib-src/Makefile
1694 rm -f junk.c junk1.c junk2.c
1695 sed -e '/start of cpp stuff/q' \
1696 < Makefile.in > junk1.c
1697 sed -e '1,/start of cpp stuff/d'\
1698 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
1699 < Makefile.in > junk.c
1700 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
1701 sed -e 's/^ / /' -e '/^#/d' -e '/^[
\f]*$/d' > junk2.c
1702 cat junk1.c junk2.c > Makefile.new
1703 rm -f junk.c junk1.c junk2.c
1704 chmod 444 Makefile.new
1705 mv -f Makefile.new Makefile
1708 echo creating src/Makefile
1710 rm -f junk.c junk1.c junk2.c
1711 sed -e '/start of cpp stuff/q' \
1712 < Makefile.in > junk1.c
1713 sed -e '1,/start of cpp stuff/d'\
1714 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
1715 < Makefile.in > junk.c
1716 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
1717 sed -e 's/^ / /' -e '/^#/d' -e '/^[
\f]*$/d' > junk2.c
1718 cat junk1.c junk2.c > Makefile.new
1719 rm -f junk.c junk1.c junk2.c
1720 chmod 444 Makefile.new
1721 mv -f Makefile.new Makefile