(syms_of_keyboard): Add a DEFVAR for command-hook-internal.
[bpt/emacs.git] / configure1.in
1 dnl This is an autoconf script.
2 dnl To rebuild the `configure' script from this, execute the command
3 dnl autoconf
4 dnl in the directory containing this script. You must have autoconf
5 dnl version 1.7 or later.
6 dnl
7 dnl The following text appears in the resulting `configure' script,
8 dnl explaining how to rebuild it.
9 [#!/bin/sh
10 #### Configuration script for GNU Emacs
11 #### Copyright (C) 1992, 1994 Free Software Foundation, Inc.
12
13 ### Don't edit this script!
14 ### This script was automatically generated by the `autoconf' program
15 ### from the file `./configure.in'.
16 ### To rebuild it, execute the command
17 ### autoconf
18 ### in the this directory. You must have autoconf version 1.7 or later.
19
20 ### This file is part of GNU Emacs.
21
22 ### GNU Emacs is free software; you can redistribute it and/or modify
23 ### it under the terms of the GNU General Public License as published by
24 ### the Free Software Foundation; either version 2, or (at your option)
25 ### any later version.
26
27 ### GNU Emacs is distributed in the hope that it will be useful,
28 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
29 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 ### GNU General Public License for more details.
31
32 ### You should have received a copy of the GNU General Public License
33 ### along with GNU Emacs; see the file COPYING. If not, write to
34 ### the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
35
36 ### Since Emacs has configuration requirements that autoconf can't
37 ### meet, this file is an unholy marriage of custom-baked
38 ### configuration code and autoconf macros.
39 ###
40 ### We use the m4 quoting characters [ ] (as established by the
41 ### autoconf system) to include large sections of raw sewage - Oops, I
42 ### mean, shell code - in the final configuration script.
43 ###
44 ### Usage: configure config_name
45 ###
46 ### If configure succeeds, it leaves its status in config.status.
47 ### If configure fails after disturbing the status quo,
48 ### config.status is removed.
49
50 ### Remove any more than one leading "." element from the path name.
51 ### If we don't remove them, then another "./" will be prepended to
52 ### the file name each time we use config.status, and the program name
53 ### will get larger and larger. This wouldn't be a problem, except
54 ### that since progname gets recorded in all the Makefiles this script
55 ### produces, move-if-change thinks they're different when they're
56 ### not.
57 ###
58 ### It would be nice if we could put the ./ in a \( \) group and then
59 ### apply the * operator to that, so we remove as many leading ./././'s
60 ### as are present, but some seds (like Ultrix's sed) don't allow you to
61 ### apply * to a \( \) group. Bleah.
62 progname="`echo $0 | sed 's:^\./\./:\./:'`"
63
64
65 ### Establish some default values.
66 run_in_place=
67 single_tree=
68 prefix='/usr/local'
69 exec_prefix='${prefix}'
70 bindir='${exec_prefix}/bin'
71 datadir='${prefix}/lib'
72 statedir='${prefix}/lib'
73 libdir='${exec_prefix}/lib'
74 mandir='${prefix}/man/man1'
75 infodir='${prefix}/info'
76 lispdir='${datadir}/emacs/${version}/lisp'
77 locallisppath='${datadir}/emacs/site-lisp'
78 lisppath='${locallisppath}:${lispdir}'
79 etcdir='${datadir}/emacs/${version}/etc'
80 lockdir='${statedir}/emacs/lock'
81 archlibdir='${libdir}/emacs/${version}/${configuration}'
82 CC=
83
84 # On Sun systems, people sometimes set up the variable CPP
85 # with a value that is a directory, not an executable at all.
86 # Detect that case, and ignore that value.
87 if [ "x$CPP" != x ] && [ -d "$CPP" ];
88 then
89 CPP=
90 fi
91
92 # We cannot use this variable in the case statement below, because many
93 # /bin/sh's have broken semantics for "case". Unfortunately, you must
94 # actually edit the clause itself.
95 # path_options="prefix | exec_prefix | bindir | libdir | etcdir | datadir"
96 # path_options="$path_options | archlibdir | statedir | mandir | infodir"
97 # path_options="$path_options | lispdir | lockdir | lisppath | locallisppath"
98
99 #### Usage messages.
100
101 short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
102
103 Set compilation and installation parameters for GNU Emacs, and report.
104 CONFIGURATION specifies the machine and operating system to build for.
105 --with-x Support the X Window System.
106 --with-x=no Don't support X.
107 --with-x-toolkit Use an X toolkit.
108 --with-x-toolkit=no Don't use an X toolkit.
109 --with-gcc Use GCC to compile Emacs.
110 --with-gcc=no Don't use GCC to compile Emacs.
111 --x-includes=DIR Search for X header files in DIR.
112 --x-libraries=DIR Search for X libraries in DIR.
113 --run-in-place Use libraries and data files directly out of the
114 source tree.
115 --single-tree=DIR Has the effect of creating a directory tree at DIR
116 which looks like:
117 .../DIR/bin/CONFIGNAME (emacs, etags, etc.)
118 .../DIR/bin/CONFIGNAME/etc (movemail, etc.)
119 .../DIR/common/lisp (emacs' lisp files)
120 .../DIR/common/site-lisp (local lisp files)
121 .../DIR/common/lib (DOC, TUTORIAL, etc.)
122 .../DIR/common/lock (lockfiles)
123 --srcdir=DIR Look for the Emacs source files in DIR.
124 --prefix=DIR Install files below DIR. Defaults to \`${prefix}'.
125
126 You may also specify any of the \`path' variables found in Makefile.in,
127 including --bindir, --libdir, --etcdir, --infodir, and so on. This allows
128 you to override a single default location when configuring.
129
130 If successful, ${progname} leaves its status in config.status. If
131 unsuccessful after disturbing the status quo, it removes config.status."
132
133
134 #### Option processing.
135
136 ### Record all the arguments, so we can save them in config.status.
137 arguments="$@"
138
139 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date,
140 ### in order to get the arguments back in $@, we have to do an
141 ### `eval set x "$quoted_arguments"; shift'.
142 quoted_arguments=
143 for i in "$@"; do
144 quoted_arguments="$quoted_arguments '$i'"
145 done
146
147 ### Don't use shift -- that destroys the argument list, which autoconf needs
148 ### to produce config.status. It turns out that "set - ${arguments}" doesn't
149 ### work portably.
150 ### However, it also turns out that many shells cannot expand ${10} at all.
151 ### So using an index variable doesn't work either. It is possible to use
152 ### some shell magic to make 'set x "$arguments"; shift' work portably.
153 while [ $# != 0 ]; do
154 arg="$1"; shift
155 case "${arg}" in
156
157 ## Anything starting with a hyphen we assume is an option.
158 -* )
159 ## Separate the switch name from the value it's being given.
160 case "${arg}" in
161 -*=*)
162 opt=`echo ${arg} | sed 's:^-*\([^=]*\)=.*$:\1:'`
163 val=`echo ${arg} | sed 's:^-*[^=]*=\(.*\)$:\1:'`
164 valomitted=no
165 ;;
166 -*)
167 ## If FOO is a boolean argument, --FOO is equivalent to
168 ## --FOO=yes. Otherwise, the value comes from the next
169 ## argument - see below.
170 opt=`echo ${arg} | sed 's:^-*\(.*\)$:\1:'`
171 val="yes"
172 valomitted=yes
173 ;;
174 esac
175
176 ## Change `-' in the option name to `_'.
177 optname="${opt}"
178 opt="`echo ${opt} | tr - _`"
179
180 ## Process the option.
181 case "${opt}" in
182
183 ## Has the user specified which window systems they want to support?
184 "with_x" | "with_x11" | "with_x10" )
185 ## Make sure the value given was either "yes" or "no".
186 case "${val}" in
187 y | ye | yes ) val=yes ;;
188 n | no ) val=no ;;
189 * )
190 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
191 Set it to either \`yes' or \`no'."
192 echo "${short_usage}") >&2
193 exit 1
194 ;;
195 esac
196 eval "${opt}=\"${val}\""
197 ;;
198
199 ## Has the user specified which toolkit they want to support?
200 "with_x_toolkit" )
201 ## Make sure the value given was either "yes" or "no".
202 case "${val}" in
203 y | ye | yes ) val=athena ;;
204 n | no ) val=no ;;
205 l | lu | luc | luci | lucid ) val=lucid ;;
206 a | at | ath | athe | athena ) val=athena ;;
207 m | mo | mot | moti | motif ) val=motif ;;
208 o | op | ope | open | open- | open-l | open-lo \
209 | open-loo | open-look ) val=open-look ;;
210 * )
211 (echo "${progname}: the \`--${optname}' option is supposed to have a value
212 which is \`yes', \`no', \`lucid', \`athena', \`motif' or \`open-look'."
213 echo "${short_usage}") >&2
214 exit 1
215 ;;
216 esac
217 eval "${opt}=\"${val}\""
218 ;;
219
220 ## Has the user specified whether or not they want GCC?
221 "with_gcc" | "with_gnu_cc" )
222 ## Make sure the value given was either "yes" or "no".
223 case "${val}" in
224 y | ye | yes ) val=yes ;;
225 n | no ) val=no ;;
226 * )
227 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
228 Set it to either \`yes' or \`no'."
229 echo "${short_usage}") >&2
230 exit 1
231 ;;
232 esac
233 eval "${opt}=\"${val}\""
234 ;;
235
236 ## Has the user specified a source directory?
237 "srcdir" )
238 ## If the value was omitted, get it from the next argument.
239 if [ "${valomitted}" = "yes" ]; then
240 ## Get the next argument from the argument list, if there is one.
241 if [ $# = 0 ]; then
242 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
243 \`--${optname}=FOO'."
244 echo "${short_usage}") >&2
245 exit 1
246 fi
247 val="$1"; shift
248 fi
249 srcdir="${val}"
250 ;;
251
252 ## Has the user tried to tell us where the X files are?
253 ## I think these are dopey, but no less than three alpha
254 ## testers, at large sites, have said they have their X files
255 ## installed in odd places.
256 "x_includes" )
257 ## If the value was omitted, get it from the next argument.
258 if [ "${valomitted}" = "yes" ]; then
259 ## Get the next argument from the argument list, if there is one.
260 if [ $# = 0 ]; then
261 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
262 \`--${optname}=/usr/local/X11/include'."
263 echo "${short_usage}") >&2
264 exit 1
265 fi
266 val="$1"; shift
267 fi
268 x_includes="${val}"
269 ;;
270 "x_libraries" )
271 ## If the value was omitted, get it from the next argument.
272 if [ "${valomitted}" = "yes" ]; then
273 ## Get the next argument from the argument list, if there is one.
274 if [ $# = 0 ]; then
275 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
276 \`--${optname}=/usr/local/X11/lib'."
277 echo "${short_usage}") >&2
278 exit 1
279 fi
280 val="$1"; shift
281 fi
282 x_libraries="${val}"
283 ;;
284
285 ## Should this use the "development configuration"?
286 "run_in_place" )
287 single_tree=
288 run_in_place=1
289 ;;
290
291 ## Should this use the "single tree" configuration?
292 "single_tree" )
293 run_in_place=
294 single_tree=1
295 ;;
296
297 ## Has the user specified one of the path options?
298 prefix | exec_prefix | bindir | libdir | etcdir | datadir | \
299 archlibdir | statedir | mandir | infodir | lispdir | lockdir | \
300 lisppath | locallisppath )
301 ## If the value was omitted, get it from the next argument.
302 if [ "${valomitted}" = "yes" ]; then
303 if [ $# = 0 ]; then
304 (echo \
305 "$progname: You must give a value for the \`--${optname}' option,";
306 echo \
307 "as in \`--${optname}=`eval echo '$'$optname`.'"
308 echo "$short_usage") >&2
309 exit 1
310 fi
311 val="$1"; shift
312 fi
313 eval "${opt}=\"${val}\""
314 eval "${opt}_specified=1"
315 ;;
316
317 ## Verbose flag, tested by autoconf macros.
318 "verbose" )
319 verbose=yes
320 ;;
321
322 ## Has the user asked for some help?
323 "usage" | "help" )
324 if [ "x$PAGER" = x ]
325 then
326 echo "${short_usage}" | more
327 else
328 echo "${short_usage}" | $PAGER
329 fi
330 exit
331 ;;
332
333 ## We ignore all other options silently.
334 esac
335 ;;
336
337 ## Anything not starting with a hyphen we assume is a
338 ## configuration name.
339 *)
340 configuration=${arg}
341 ;;
342
343 esac
344 done
345
346 ### Get the arguments back. See the diatribe on Shell Magic above.
347 eval set x "$quoted_arguments"; shift
348
349 if [ "${configuration}" = "" ]; then
350 echo '- You did not tell me what kind of host system you want to configure.
351 - I will attempt to guess the kind of system this is.' 1>&2
352 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
353 if configuration=`${guesssys}` ; then
354 echo "- Looks like this is a ${configuration}" 1>&2
355 else
356 echo '- Failed to guess the system type. You need to tell me.' 1>&2
357 echo "${short_usage}" >&2
358 exit 1
359 fi
360 fi
361
362 #### Decide where the source is.
363 case "${srcdir}" in
364
365 ## If it's not specified, see if `.' or `..' might work.
366 "" )
367 confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
368 if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then
369 srcdir="${confdir}"
370 else
371 if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
372 srcdir='.'
373 else
374 if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then
375 srcdir='..'
376 else
377 (echo "\
378 ${progname}: Neither the current directory nor its parent seem to
379 contain the Emacs sources. If you do not want to build Emacs in its
380 source tree, you should run \`${progname}' in the directory in which
381 you wish to build Emacs, using its \`--srcdir' option to say where the
382 sources may be found."
383 echo "${short_usage}") >&2
384 exit 1
385 fi
386 fi
387 fi
388 ;;
389
390 ## Otherwise, check if the directory they specified is okay.
391 * )
392 if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then
393 (echo "\
394 ${progname}: The directory specified with the \`--srcdir' option,
395 \`${srcdir}', doesn't seem to contain the Emacs sources. You should
396 either run the \`${progname}' script at the top of the Emacs source
397 tree, or use the \`--srcdir' option to specify where the Emacs sources
398 are."
399 echo "${short_usage}") >&2
400 exit 1
401 fi
402 ;;
403 esac
404
405 #### Make srcdir absolute, if it isn't already. It's important to
406 #### avoid running the path through pwd unnecessary, since pwd can
407 #### give you automounter prefixes, which can go away.
408 case "${srcdir}" in
409 /* ) ;;
410 . )
411 ## We may be able to use the $PWD environment variable to make this
412 ## absolute. But sometimes PWD is inaccurate.
413 if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ] ; then
414 srcdir="$PWD"
415 else
416 srcdir="`(cd ${srcdir}; pwd)`"
417 fi
418 ;;
419 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
420 esac
421
422 #### Check if the source directory already has a configured system in it.
423 if [ `pwd` != `(cd ${srcdir} && pwd)` ] \
424 && [ -f "${srcdir}/src/config.h" ] ; then
425 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
426 echo " as a build directory right now; it has been configured in its own"
427 echo " right. To configure in another directory as well, you MUST"
428 echo " use GNU make. If you do not have GNU make, then you must"
429 echo " now do \`make distclean' in ${srcdir},"
430 echo " and then run ${progname} again.") >&2
431 extrasub='/^VPATH[ ]*=/c\
432 vpath %.c $(srcdir)\
433 vpath %.h $(srcdir)\
434 vpath %.y $(srcdir)\
435 vpath %.l $(srcdir)\
436 vpath %.s $(srcdir)\
437 vpath %.in $(srcdir)'
438 fi
439
440 ### Make the necessary directories, if they don't exist.
441 for dir in ./src ./lib-src ./cpp ./oldXMenu ./lwlib ./etc ; do
442 if [ ! -d ${dir} ]; then
443 mkdir ${dir}
444 fi
445 done
446
447 #### Given the configuration name, set machfile and opsysfile to the
448 #### names of the m/*.h and s/*.h files we should use.
449
450 ### Canonicalize the configuration name.
451 echo "Checking the configuration name."
452 if canonical=`${srcdir}/config.sub "${configuration}"` ; then : ; else
453 exit $?
454 fi
455
456 ### If you add support for a new configuration, add code to this
457 ### switch statement to recognize your configuration name and select
458 ### the appropriate operating system and machine description files.
459
460 ### You would hope that you could choose an m/*.h file pretty much
461 ### based on the machine portion of the configuration name, and an s-
462 ### file based on the operating system portion. However, it turns out
463 ### that each m/*.h file is pretty manufacturer-specific - for
464 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
465 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
466 ### machines. So we basically have to have a special case for each
467 ### configuration name.
468 ###
469 ### As far as handling version numbers on operating systems is
470 ### concerned, make sure things will fail in a fixable way. If
471 ### /etc/MACHINES doesn't say anything about version numbers, be
472 ### prepared to handle anything reasonably. If version numbers
473 ### matter, be sure /etc/MACHINES says something about it.
474 ###
475 ### Eric Raymond says we should accept strings like "sysvr4" to mean
476 ### "System V Release 4"; he writes, "The old convention encouraged
477 ### confusion between `system' and `release' levels'."
478
479 machine='' opsys='' unported='false'
480 case "${canonical}" in
481
482 ## Alliant machines
483 ## Strictly speaking, we need the version of the alliant operating
484 ## system to choose the right machine file, but currently the
485 ## configuration name doesn't tell us enough to choose the right
486 ## one; we need to give alliants their own operating system name to
487 ## do this right. When someone cares, they can help us.
488 fx80-alliant-* )
489 machine=alliant4 opsys=bsd4-2
490 ;;
491 i860-alliant-* )
492 machine=alliant-2800 opsys=bsd4-3
493 ;;
494
495 ## Altos 3068
496 m68*-altos-sysv* )
497 machine=altos opsys=usg5-2
498 ;;
499
500 ## Amdahl UTS
501 580-amdahl-sysv* )
502 machine=amdahl opsys=usg5-2-2
503 ;;
504
505 ## Appallings - I mean, Apollos - running Domain
506 m68*-apollo* )
507 machine=apollo opsys=bsd4-2
508 ;;
509
510 ## AT&T 3b2, 3b5, 3b15, 3b20
511 we32k-att-sysv* )
512 machine=att3b opsys=usg5-2-2
513 ;;
514
515 ## AT&T 3b1 - The Mighty Unix PC!
516 m68*-att-sysv* )
517 machine=7300 opsys=usg5-2-2
518 ;;
519
520 ## Bull dpx2
521 m68*-bull-sysv3* )
522 machine=dpx2 opsys=usg5-3
523 ;;
524
525 ## Bull sps7
526 m68*-bull-sysv2* )
527 machine=sps7 opsys=usg5-2
528 ;;
529
530 ## CCI 5/32, 6/32 -- see "Tahoe".
531
532 ## Celerity
533 ## I don't know what configuration name to use for this; config.sub
534 ## doesn't seem to know anything about it. Hey, Celerity users, get
535 ## in touch with us!
536 celerity-celerity-bsd* )
537 machine=celerity opsys=bsd4-2
538 ;;
539
540 ## Clipper
541 ## What operating systems does this chip run that Emacs has been
542 ## tested on?
543 clipper-* )
544 machine=clipper
545 ## We'll use the catch-all code at the bottom to guess the
546 ## operating system.
547 ;;
548
549 ## Convex
550 *-convex-bsd* )
551 machine=convex opsys=bsd4-3
552 ;;
553
554 ## Cubix QBx/386
555 i386-cubix-sysv* )
556 machine=intel386 opsys=usg5-3
557 ;;
558
559 ## Cydra 5
560 cydra*-cydrome-sysv* )
561 machine=cydra5 opsys=usg5-3
562 ;;
563
564 ## Data General AViiON Machines
565 m88k-dg-dgux* )
566 machine=aviion opsys=dgux
567 ;;
568
569 ## DECstations
570 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
571 machine=pmax opsys=bsd4-2
572 ;;
573 mips-dec-ultrix* | mips-dec-bsd* )
574 machine=pmax opsys=bsd4-3
575 ;;
576 mips-dec-osf* )
577 machine=pmax opsys=osf1
578 ;;
579
580 ## Motorola Delta machines
581 m68k-motorola-sysv* | m68000-motorola-sysv* )
582 machine=delta opsys=usg5-3
583 CC=gnucc
584 ;;
585 m88k-motorola-sysv4* )
586 machine=delta88k opsys=usg5-4
587 ;;
588 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
589 machine=delta88k opsys=usg5-3
590 ;;
591
592 ## Dual machines
593 m68*-dual-sysv* )
594 machine=dual opsys=usg5-2
595 ;;
596 m68*-dual-uniplus* )
597 machine=dual opsys=unipl5-2
598 ;;
599
600 ## Elxsi 6400
601 elxsi-elxsi-sysv* )
602 machine=elxsi opsys=usg5-2
603 ;;
604
605 ## Encore machines
606 ns16k-encore-bsd* )
607 machine=ns16000 opsys=umax
608 ;;
609
610 ## The GEC 93 - apparently, this port isn't really finished yet.
611
612 ## Gould Power Node and NP1
613 pn-gould-bsd4.2* )
614 machine=gould opsys=bsd4-2
615 ;;
616 pn-gould-bsd4.3* )
617 machine=gould opsys=bsd4-3
618 ;;
619 np1-gould-bsd* )
620 machine=gould-np1 opsys=bsd4-3
621 ;;
622
623 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
624 ## as far as Emacs is concerned).
625 m88k-harris-cxux* )
626 # Build needs to be different on 7.0 and later releases
627 case "`uname -r`" in
628 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
629 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
630 esac
631 ;;
632 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
633 m68k-harris-cxux* )
634 machine=nh3000 opsys=cxux
635 ;;
636
637 ## Honeywell XPS100
638 xps*-honeywell-sysv* )
639 machine=xps100 opsys=usg5-2
640 ;;
641
642 ## HP 9000 series 200 or 300
643 m68*-hp-bsd* )
644 machine=hp9000s300 opsys=bsd4-3
645 ;;
646 m68*-hp-netbsd* )
647 machine=hp9000s300 opsys=netbsd
648 ;;
649 ## HP/UX 7, 8 and 9 are supported on these machines.
650 m68*-hp-hpux* )
651 case "`uname -r`" in
652 ## Someone's system reports A.B8.05 for this.
653 ## I wonder what other possibilities there are.
654 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
655 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
656 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
657 *) machine=hp9000s300 opsys=hpux ;;
658 esac
659 ;;
660
661 ## HP 9000 series 700 and 800, running HP/UX
662 hppa*-hp-hpux7* )
663 machine=hp9000s800 opsys=hpux
664 ;;
665 hppa*-hp-hpux8* )
666 machine=hp9000s800 opsys=hpux8
667 ;;
668 hppa*-hp-hpux9* )
669 machine=hp9000s800 opsys=hpux9
670 ;;
671
672 ## HP 9000 series 700 and 800, running HP/UX
673 hppa*-hp-hpux* )
674 ## Cross-compilation? Nah!
675 case "`uname -r`" in
676 ## Someone's system reports A.B8.05 for this.
677 ## I wonder what other possibilities there are.
678 *.B8.* ) machine=hp9000s800 opsys=hpux8 ;;
679 *.08.* ) machine=hp9000s800 opsys=hpux8 ;;
680 *.09.* ) machine=hp9000s800 opsys=hpux9 ;;
681 *) machine=hp9000s800 opsys=hpux ;;
682 esac
683 ;;
684
685 ## Orion machines
686 orion-orion-bsd* )
687 machine=orion opsys=bsd4-2
688 ;;
689 clipper-orion-bsd* )
690 machine=orion105 opsys=bsd4-2
691 ;;
692
693 ## IBM machines
694 i386-ibm-aix1.1* )
695 machine=ibmps2-aix opsys=usg5-2-2
696 ;;
697 i386-ibm-aix1.[23]* | i386-ibm-aix* )
698 machine=ibmps2-aix opsys=usg5-3
699 ;;
700 i370-ibm-aix*)
701 machine=ibm370aix opsys=usg5-3
702 ;;
703 rs6000-ibm-aix3.1* )
704 machine=ibmrs6000 opsys=aix3-1
705 ;;
706 rs6000-ibm-aix3.2* | rs6000-ibm-aix* )
707 machine=ibmrs6000 opsys=aix3-2
708 ;;
709 romp-ibm-bsd4.3* )
710 machine=ibmrt opsys=bsd4-3
711 ;;
712 romp-ibm-bsd4.2* )
713 machine=ibmrt opsys=bsd4-2
714 ;;
715 romp-ibm-aos4.3* )
716 machine=ibmrt opsys=bsd4-3
717 ;;
718 romp-ibm-aos4.2* )
719 machine=ibmrt opsys=bsd4-2
720 ;;
721 romp-ibm-aos* )
722 machine=ibmrt opsys=bsd4-3
723 ;;
724 romp-ibm-bsd* )
725 machine=ibmrt opsys=bsd4-3
726 ;;
727 romp-ibm-aix* )
728 machine=ibmrt-aix opsys=usg5-2-2
729 ;;
730
731 ## Integrated Solutions `Optimum V'
732 m68*-isi-bsd4.2* )
733 machine=isi-ov opsys=bsd4-2
734 ;;
735 m68*-isi-bsd4.3* )
736 machine=isi-ov opsys=bsd4-3
737 ;;
738
739 ## Intel 386 machines where we do care about the manufacturer
740 i[34]86-intsys-sysv* )
741 machine=is386 opsys=usg5-2-2
742 ;;
743
744 ## Prime EXL
745 i386-prime-sysv* )
746 machine=i386 opsys=usg5-3
747 ;;
748
749 ## Sequent Symmetry
750 i386-sequent-bsd* )
751 machine=symmetry opsys=bsd4-3
752 ;;
753
754 ## Unspecified sysv on an ncr machine defaults to svr4.
755 i[34]86-ncr-sysv* )
756 machine=intel386 opsys=usg5-4
757 ;;
758
759 ## Intel 860
760 i860-*-sysv4* )
761 machine=i860 opsys=usg5-4
762 ;;
763
764 ## Silicon Graphics machines
765 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
766 m68*-sgi-iris3.5* )
767 machine=irist opsys=iris3-5
768 ;;
769 m68*-sgi-iris3.6* | m68*-sgi-iris*)
770 machine=irist opsys=iris3-6
771 ;;
772 ## Iris 4D
773 mips-sgi-irix3.* )
774 machine=iris4d opsys=irix3-3
775 ;;
776 mips-sgi-irix5.* )
777 machine=iris4d opsys=irix5-0
778 ;;
779 mips-sgi-irix4.* | mips-sgi-irix* )
780 machine=iris4d opsys=irix4-0
781 ;;
782
783 ## Masscomp machines
784 m68*-masscomp-rtu* )
785 machine=masscomp opsys=rtu
786 ;;
787
788 ## Megatest machines
789 m68*-megatest-bsd* )
790 machine=mega68 opsys=bsd4-2
791 ;;
792
793 ## Workstations sold by MIPS
794 ## This is not necessarily all workstations using the MIPS processor -
795 ## Irises are produced by SGI, and DECstations by DEC.
796
797 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
798 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
799 ## it gives for choosing between the alternatives seems to be "Use
800 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
801 ## the BSD world." I'll assume that these are instructions for
802 ## handling two odd situations, and that every other situation
803 ## should use mips.h and usg5-2-2, they being listed first.
804 mips-mips-usg* )
805 machine=mips4
806 ## Fall through to the general code at the bottom to decide on the OS.
807 ;;
808 mips-mips-riscos4* )
809 machine=mips4 opsys=bsd4-3
810 NON_GNU_CC="cc -systype bsd43"
811 NON_GNU_CPP="cc -systype bsd43 -E"
812 ;;
813 mips-mips-bsd* )
814 machine=mips opsys=bsd4-3
815 ;;
816 mips-mips-* )
817 machine=mips opsys=usg5-2-2
818 ;;
819
820 ## NeXT
821 m68*-next-* )
822 machine=next opsys=mach2
823 ;;
824
825 ## The complete machine from National Semiconductor
826 ns32k-ns-genix* )
827 machine=ns32000 opsys=usg5-2
828 ;;
829
830 ## NCR machines
831 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
832 machine=tower32 opsys=usg5-2-2
833 ;;
834 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
835 machine=tower32v3 opsys=usg5-3
836 ;;
837
838 ## Nixdorf Targon 31
839 m68*-nixdorf-sysv* )
840 machine=targon31 opsys=usg5-2-2
841 ;;
842
843 ## Nu (TI or LMI)
844 m68*-nu-sysv* )
845 machine=nu opsys=usg5-2
846 ;;
847
848 ## Plexus
849 m68*-plexus-sysv* )
850 machine=plexus opsys=usg5-2
851 ;;
852
853 ## Pyramid machines
854 ## I don't really have any idea what sort of processor the Pyramid has,
855 ## so I'm assuming it is its own architecture.
856 pyramid-pyramid-bsd* )
857 machine=pyramid opsys=bsd4-2
858 ;;
859
860 ## Sequent Balance
861 ns32k-sequent-bsd4.2* )
862 machine=sequent opsys=bsd4-2
863 ;;
864 ns32k-sequent-bsd4.3* )
865 machine=sequent opsys=bsd4-3
866 ;;
867
868 ## SONY machines
869 m68*-sony-bsd4.2* )
870 machine=news opsys=bsd4-2
871 ;;
872 m68*-sony-bsd4.3* )
873 machine=news opsys=bsd4-3
874 ;;
875 m68*-sony-newsos3*)
876 machine=news opsys=bsd4-3
877 ;;
878 mips-sony-bsd* )
879 machine=news-risc opsys=bsd4-3
880 ;;
881
882 ## Stride
883 m68*-stride-sysv* )
884 machine=stride opsys=usg5-2
885 ;;
886
887 ## Suns
888 *-sun-sunos* | *-sun-bsd* | *-sun-solaris* )
889 case "${canonical}" in
890 m68*-sunos1* ) machine=sun1 ;;
891 m68*-sunos2* ) machine=sun2 ;;
892 m68* ) machine=sun3 ;;
893 i[34]86* ) machine=sun386 ;;
894 sparc* ) machine=sparc ;;
895 * ) unported=true ;;
896 esac
897 case "${canonical}" in
898 ## The Sun386 didn't get past 4.0.
899 i386-*-sunos4 ) opsys=sunos4-0 ;;
900 *-sunos4.0* ) opsys=sunos4-0 ;;
901 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
902 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
903 *-sunos5.3* | *-solaris2.3* )
904 opsys=sol2-3
905 NON_GNU_CPP=/usr/ccs/lib/cpp
906 ;;
907 *-sunos5* | *-solaris* )
908 opsys=sol2
909 NON_GNU_CPP=/usr/ccs/lib/cpp
910 ;;
911 * ) opsys=bsd4-2 ;;
912 esac
913 ;;
914
915 ## Tadpole 68k
916 m68*-tadpole-sysv* )
917 machine=tad68k opsys=usg5-3
918 ;;
919
920 ## Tahoe machines
921 tahoe-tahoe-bsd4.2* )
922 machine=tahoe opsys=bsd4-2
923 ;;
924 tahoe-tahoe-bsd4.3* )
925 machine=tahoe opsys=bsd4-3
926 ;;
927
928 ## Tandem Integrity S2
929 mips-tandem-sysv* )
930 machine=tandem-s2 opsys=usg5-3
931 ;;
932
933 ## Tektronix XD88
934 m88k-tektronix-sysv3* )
935 machine=tekxd88 opsys=usg5-3
936 ;;
937
938 ## Tektronix 16000 box (6130?)
939 ns16k-tektronix-bsd* )
940 machine=ns16000 opsys=bsd4-2
941 ;;
942 ## Tektronix 4300
943 ## src/m/tek4300.h hints that this is a m68k machine.
944 m68*-tektronix-bsd* )
945 machine=tek4300 opsys=bsd4-3
946 ;;
947
948 ## Titan P2 or P3
949 ## We seem to have lost the machine-description file titan.h!
950 titan-titan-sysv* )
951 machine=titan opsys=usg5-3
952 ;;
953
954 ## Ustation E30 (SS5E)
955 m68*-unisys-uniplus* )
956 machine=ustation opsystem=unipl5-2
957 ;;
958
959 ## Vaxen.
960 vax-dec-* )
961 machine=vax
962 case "${canonical}" in
963 *-bsd4.1* ) opsys=bsd4-1 ;;
964 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
965 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
966 *-bsd386* ) opsys=bsd386 ;;
967 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
968 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
969 *-vms* ) opsys=vms ;;
970 * ) unported=true
971 esac
972 ;;
973
974 ## Whitechapel MG1
975 ns16k-whitechapel-* )
976 machine=mg1
977 ## We don't know what sort of OS runs on these; we'll let the
978 ## operating system guessing code below try.
979 ;;
980
981 ## Wicat
982 m68*-wicat-sysv* )
983 machine=wicat opsys=usg5-2
984 ;;
985
986 ## Intel 386 machines where we don't care about the manufacturer
987 i[34]86-*-* )
988 machine=intel386
989 case "${canonical}" in
990 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
991 *-isc2.2* ) opsys=isc2-2 ;;
992 *-isc* ) opsys=isc3-0 ;;
993 *-esix5* ) opsys=esix5r4 ;;
994 *-esix* ) opsys=esix ;;
995 *-xenix* ) opsys=xenix ;;
996 *-linux* ) opsys=linux ;;
997 *-sco3.2v4* ) opsys=sco4 ;;
998 *-bsd386* ) opsys=bsd386 ;;
999 *-386bsd* ) opsys=386bsd ;;
1000 *-netbsd* ) opsys=netbsd ;;
1001 *-nextstep* ) opsys=mach2 ;;
1002 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
1003 esac
1004 ;;
1005
1006 * )
1007 unported=true
1008 ;;
1009 esac
1010
1011 ### If the code above didn't choose an operating system, just choose
1012 ### an operating system based on the configuration name. You really
1013 ### only want to use this when you have no idea what the right
1014 ### operating system is; if you know what operating systems a machine
1015 ### runs, it's cleaner to make it explicit in the case statement
1016 ### above.
1017 if [ x"${opsys}" = x ]; then
1018 case "${canonical}" in
1019 *-bsd4.[01] ) opsys=bsd4-1 ;;
1020 *-bsd4.2 ) opsys=bsd4-2 ;;
1021 *-bsd4.3 ) opsys=bsd4-3 ;;
1022 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
1023 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
1024 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
1025 *-sysv3 | *-sysvr3 ) opsys=usg5-3 ;;
1026 *-sysv4 | *-sysvr4 ) opsys=usg5-4 ;;
1027 *-sysv4.2 | *-sysvr4.2 ) opsys=usg5-4-2 ;;
1028 * )
1029 unported=true
1030 ;;
1031 esac
1032 fi
1033
1034 if $unported ; then
1035 (echo "${progname}: Emacs hasn't been ported to \`${canonical}' systems."
1036 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
1037 ) >&2
1038 exit 1
1039 fi
1040
1041 machfile="m/${machine}.h"
1042 opsysfile="s/${opsys}.h"
1043
1044 ]
1045 AC_PREPARE(lisp)
1046 AC_CONFIG_HEADER(src/config.h)
1047 [
1048
1049 #### Choose a compiler.
1050 if [ "x$CC" = x ]
1051 then cc_specified=1
1052 fi
1053
1054 case ${with_gcc} in
1055 "yes" ) CC="gcc" GCC=1 ;;
1056 "no" )
1057 if [ "x$CC" = x ]
1058 then true;
1059 else CC=cc;
1060 fi
1061 ;;
1062 * )
1063 ] AC_PROG_CC [
1064 esac
1065
1066 #### Some systems specify a CPP to use unless we are using GCC.
1067 #### Now that we know whether we are using GCC, we can decide whether
1068 #### to use that one.
1069 if [ "x$NON_GNU_CPP" = x ] || [ x$GCC = x1 ] || [ "x$CPP" = x ]
1070 then true
1071 else
1072 CPP="$NON_GNU_CPP"
1073 fi
1074
1075 #### Some systems specify a CC to use unless we are using GCC.
1076 #### Now that we know whether we are using GCC, we can decide whether
1077 #### to use that one.
1078 if [ "x$NON_GNU_CC" = x ] || [ x$GCC = x1 ] || [ x$cc_specified = x1 ]
1079 then true
1080 else
1081 CC="$NON_GNU_CC"
1082 fi
1083
1084 #### Some other nice autoconf tests. If you add a test here which
1085 #### should make an entry in src/config.h, don't forget to add an
1086 #### #undef clause to src/config.h.in for autoconf to modify.
1087 ]
1088 dnl checks for programs
1089 AC_LN_S
1090 AC_PROG_CPP
1091 AC_PROG_INSTALL
1092 AC_PROG_YACC
1093
1094 dnl checks for UNIX variants that set `DEFS'
1095
1096 dnl checks for header files
1097 AC_HAVE_HEADERS(sys/timeb.h sys/time.h unistd.h)
1098 AC_STDC_HEADERS
1099 AC_TIME_WITH_SYS_TIME
1100
1101 dnl checks for typedefs
1102 AC_RETSIGTYPE
1103
1104 dnl checks for structure members
1105 AC_STRUCT_TM
1106 AC_TIMEZONE
1107
1108 dnl checks for compiler characteristics
1109 AC_CONST
1110
1111 dnl checks for operating system services
1112 AC_LONG_FILE_NAMES
1113
1114 dnl other checks for UNIX variants
1115 [
1116
1117 #### Choose a window system.
1118 echo "Checking window system."
1119
1120 window_system=''
1121 case "${with_x}" in
1122 yes )
1123 window_system=${window_system}x11
1124 ;;
1125 no )
1126 window_system=${window_system}none
1127 esac
1128 case "${with_x11}" in
1129 yes )
1130 window_system=${window_system}x11
1131 ;;
1132 esac
1133 case "${with_x10}" in
1134 yes )
1135 window_system=${window_system}x10
1136 ;;
1137 esac
1138
1139 case "${window_system}" in
1140 "none" | "x11" | "x10" ) ;;
1141 "" )
1142 # --x-includes or --x-libraries implies --with-x11.
1143 if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
1144 window_system=x11
1145 else
1146 echo " No window system specified. Looking for X11."
1147 # If the user didn't specify a window system and we found X11, use it.
1148 if [ -r /usr/lib/libX11.a \
1149 -o -d /usr/include/X11 \
1150 -o -d /usr/X386/include \
1151 -o -d ${x_includes}/X11 ]; then
1152 window_system=x11
1153 fi
1154 fi
1155 ;;
1156 * )
1157 echo "Don't specify a window system more than once." >&2
1158 exit 1
1159 ;;
1160 esac
1161
1162 [ -z "${window_system}" ] && window_system=none
1163
1164 [ -n "${x_libraries}" ] && LD_SWITCH_X_SITE="-L${x_libraries}"
1165 [ -n "${x_libraries}" ] && LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
1166 [ -n "${x_includes}" ] && C_SWITCH_X_SITE="-I${x_includes}"
1167
1168 # Avoid forcing the search of /usr/include before fixed include files.
1169 if [ "$C_SWITCH_X_SITE" = "-I/usr/include" ]; then
1170 C_SWITCH_X_SITE=" "
1171 fi
1172
1173 case "${window_system}" in
1174 x11 )
1175 HAVE_X_WINDOWS=yes
1176 HAVE_X11=yes
1177 echo " Using X11."
1178 case "${with_x_toolkit}" in
1179 athena | lucid )
1180 USE_X_TOOLKIT=LUCID
1181 echo " Using Xt toolkit."
1182 ;;
1183 motif )
1184 USE_X_TOOLKIT=MOTIF
1185 echo " Using Motif toolkit."
1186 ;;
1187 open-look )
1188 USE_X_TOOLKIT=OPEN_LOOK
1189 echo " Using Open-Look toolkit."
1190 ;;
1191 * )
1192 USE_X_TOOLKIT=no
1193 echo " Using Xlib directly."
1194 ;;
1195 esac
1196 ;;
1197 x10 )
1198 HAVE_X_WINDOWS=yes
1199 HAVE_X11=no
1200 USE_X_TOOLKIT=no
1201 echo " Using X10."
1202 ;;
1203 none )
1204 HAVE_X_WINDOWS=no
1205 HAVE_X11=no
1206 echo " Using no window system."
1207 ;;
1208 esac
1209 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
1210
1211 ### If we're using X11, we should use the X menu package.
1212 HAVE_X_MENU=no
1213 case ${HAVE_X11} in
1214 yes )
1215 HAVE_X_MENU=yes
1216 ;;
1217 esac
1218
1219 #### Extract some information from the operating system and machine files.
1220
1221 echo "Examining the machine- and system-dependent files to find out"
1222 echo " - which libraries the lib-src programs will want, and"
1223 echo " - whether the GNU malloc routines are usable."
1224
1225 ### It's not important that this name contain the PID; you can't run
1226 ### two configures in the same directory and have anything work
1227 ### anyway.
1228 tempcname="conftest.c"
1229
1230 echo '
1231 #include "'${srcdir}'/src/'${opsysfile}'"
1232 #include "'${srcdir}'/src/'${machfile}'"
1233 #ifndef LIBS_MACHINE
1234 #define LIBS_MACHINE
1235 #endif
1236 #ifndef LIBS_SYSTEM
1237 #define LIBS_SYSTEM
1238 #endif
1239 #ifndef C_SWITCH_SYSTEM
1240 #define C_SWITCH_SYSTEM
1241 #endif
1242 #ifndef C_SWITCH_MACHINE
1243 #define C_SWITCH_MACHINE
1244 #endif
1245 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
1246 configure___ c_switch_system=C_SWITCH_SYSTEM
1247 configure___ c_switch_machine=C_SWITCH_MACHINE
1248
1249 #ifndef LIB_X11_LIB
1250 #define LIB_X11_LIB -lX11
1251 #endif
1252
1253 #ifndef LIBX11_MACHINE
1254 #define LIBX11_MACHINE
1255 #endif
1256
1257 #ifndef LIBX11_SYSTEM
1258 #define LIBX11_SYSTEM
1259 #endif
1260 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
1261
1262 #ifdef UNEXEC
1263 configure___ unexec=UNEXEC
1264 #else
1265 configure___ unexec=unexec.o
1266 #endif
1267
1268 #ifdef SYSTEM_MALLOC
1269 configure___ system_malloc=yes
1270 #else
1271 configure___ system_malloc=no
1272 #endif
1273
1274 #ifndef C_DEBUG_SWITCH
1275 #define C_DEBUG_SWITCH -g
1276 #endif
1277
1278 #ifndef C_OPTIMIZE_SWITCH
1279 #define C_OPTIMIZE_SWITCH -O
1280 #endif
1281
1282 #ifdef __GNUC__
1283 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH
1284 #else
1285 configure___ CFLAGS=C_DEBUG_SWITCH
1286 #endif
1287 ' > ${tempcname}
1288 # The value of CPP is a quoted variable reference, so we need to do this
1289 # to get its actual value...
1290 CPP=`eval "echo $CPP"`
1291 eval `${CPP} -Isrc ${tempcname} \
1292 | grep 'configure___' \
1293 | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/'`
1294 rm ${tempcname}
1295
1296 ### Compute the unexec source name from the object name.
1297 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
1298
1299 # Do the opsystem or machine files prohibit the use of the GNU malloc?
1300 # Assume not, until told otherwise.
1301 GNU_MALLOC=yes
1302 if [ "${system_malloc}" = "yes" ]; then
1303 GNU_MALLOC=no
1304 GNU_MALLOC_reason="
1305 (The GNU allocators don't work with this system configuration.)"
1306 fi
1307
1308 if [ x"${REL_ALLOC}" = x ]; then
1309 REL_ALLOC=${GNU_MALLOC}
1310 fi
1311
1312 LISP_FLOAT_TYPE=yes
1313
1314
1315 #### Add the libraries to LIBS and check for some functions.
1316
1317 ]
1318 DEFS="$c_switch_system $c_switch_machine $DEFS"
1319 LIBS="$libsrc_libs"
1320
1321 dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks,
1322 dnl and also adds -ldnet to LIBS, which Autoconf uses for checks.
1323 AC_HAVE_LIBRARY(-ldnet)
1324
1325 AC_HAVE_LIBRARY(-lXbsd, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd")
1326
1327 echo checking for XFree86
1328 if test -d /usr/X386/include; then
1329 HAVE_XFREE386=yes
1330 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
1331 fi
1332
1333 if test "${HAVE_X11}" = "yes"; then
1334 DEFS="$C_SWITCH_X_SITE $DEFS"
1335 LIBS="$LD_SWITCH_X_SITE $LIBX $LIBS"
1336 AC_HAVE_FUNCS(XrmSetDatabase XScreenResourceString XScreenNumberOfScreen XSetWMProtocols)
1337 fi
1338
1339 AC_ALLOCA
1340
1341 # logb and frexp are found in -lm on most systems.
1342 AC_HAVE_LIBRARY(-lm)
1343 AC_HAVE_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \
1344 random bcopy bcmp logb frexp fmod drem ftime res_init setsid strerror)
1345
1346 ok_so_far=true
1347 AC_FUNC_CHECK(socket, , ok_so_far=)
1348 if test -n "$ok_so_far"; then
1349 AC_HEADER_CHECK(netinet/in.h, , ok_so_far=)
1350 fi
1351 if test -n "$ok_so_far"; then
1352 AC_HEADER_CHECK(arpa/inet.h, , ok_so_far=)
1353 fi
1354 if test -n "$ok_so_far"; then
1355 AC_DEFINE(HAVE_INET_SOCKETS)
1356 fi
1357 [
1358 #### Find out which version of Emacs this is.
1359 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
1360 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\)[."].*$/\1/'`
1361 if [ x"${version}" = x ]; then
1362 echo "${progname}: can't find current emacs version in
1363 \`${srcdir}/lisp/version.el'." >&2
1364 exit 1
1365 fi
1366
1367 if [ -f /usr/lpp/X11/bin/smt.exp ]; then
1368 ]
1369 AC_DEFINE(HAVE_AIX_SMT_EXP)
1370 [
1371 fi
1372
1373
1374 #### Specify what sort of things we'll be editing into Makefile and config.h.
1375 ### Use configuration here uncanonicalized to avoid exceeding size limits.
1376 ]
1377 AC_SUBST(configuration)
1378 AC_SUBST(version)
1379 AC_SUBST(srcdir)
1380 AC_SUBST(prefix)
1381 AC_SUBST(exec_prefix)
1382 AC_SUBST(bindir)
1383 AC_SUBST(datadir)
1384 AC_SUBST(statedir)
1385 AC_SUBST(libdir)
1386 AC_SUBST(mandir)
1387 AC_SUBST(infodir)
1388 AC_SUBST(lispdir)
1389 AC_SUBST(locallisppath)
1390 AC_SUBST(lisppath)
1391 AC_SUBST(etcdir)
1392 AC_SUBST(lockdir)
1393 AC_SUBST(archlibdir)
1394 AC_SUBST(c_switch_system)
1395 AC_SUBST(c_switch_machine)
1396 AC_SUBST(libsrc_libs)
1397 AC_SUBST(LD_SWITCH_X_SITE)
1398 AC_SUBST(LD_SWITCH_X_SITE_AUX)
1399 AC_SUBST(C_SWITCH_X_SITE)
1400 AC_SUBST(CFLAGS)
1401 AC_SUBST(X_TOOLKIT_TYPE)
1402
1403 AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
1404 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
1405 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
1406 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE_AUX})
1407 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE})
1408 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC})
1409
1410 [
1411 if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then
1412 ] AC_DEFINE(HAVE_X_WINDOWS) [
1413 fi
1414 if [ "${USE_X_TOOLKIT}" != "no" ] ; then
1415 ] AC_DEFINE(USE_X_TOOLKIT) [
1416 fi
1417 if [ "${HAVE_X11}" = "yes" ] ; then
1418 ] AC_DEFINE(HAVE_X11) [
1419 fi
1420 if [ "${HAVE_XFREE386}" = "yes" ] ; then
1421 ] AC_DEFINE(HAVE_XFREE386) [
1422 fi
1423 if [ "${HAVE_X_MENU}" = "yes" ] ; then
1424 ] AC_DEFINE(HAVE_X_MENU) [
1425 fi
1426 if [ "${GNU_MALLOC}" = "yes" ] ; then
1427 ] AC_DEFINE(GNU_MALLOC) [
1428 fi
1429 if [ "${REL_ALLOC}" = "yes" ] ; then
1430 ] AC_DEFINE(REL_ALLOC) [
1431 fi
1432 if [ "${LISP_FLOAT_TYPE}" = "yes" ] ; then
1433 ] AC_DEFINE(LISP_FLOAT_TYPE) [
1434 fi
1435
1436 # ====================== Developer's configuration =======================
1437
1438 # The following assignments make sense if you're running Emacs on a single
1439 # machine, one version at a time, and you want changes to the lisp and etc
1440 # directories in the source tree to show up immediately in your working
1441 # environment. It saves a great deal of disk space by not duplicating the
1442 # lisp and etc directories.
1443
1444 if [ "$run_in_place" = "1" ]; then
1445 lispdir='${srcdir}/lisp'
1446 locallisppath='${srcdir}/site-lisp'
1447 etcdir='${srcdir}/etc'
1448 lockdir='${srcdir}/lock'
1449 archlibdir='${srcdir}/lib-src'
1450 infodir='${srcdir}/info'
1451 elif [ "$single_tree" = "1" ]; then
1452 if [ "$exec_prefix_specified" = "" ]; then
1453 exec_prefix='${prefix}'
1454 fi
1455 if [ "$bindir_specified" = "" ]; then
1456 bindir='${exec_prefix}/bin/${configuration}'
1457 fi
1458 if [ "$datadir_specified" = "" ]; then
1459 datadir='${prefix}/common'
1460 fi
1461 if [ "$statedir_specified" = "" ]; then
1462 statedir='${prefix}/common'
1463 fi
1464 if [ "$libdir_specified" = "" ]; then
1465 libdir='${bindir}'
1466 fi
1467 if [ "$lispdir_specified" = "" ]; then
1468 lispdir='${prefix}/common/lisp'
1469 fi
1470 if [ "$locallisppath_specified" = "" ]; then
1471 locallisppath='${prefix}/common/site-lisp'
1472 fi
1473 if [ "$lockdir_specified" = "" ]; then
1474 lockdir='${prefix}/common/lock'
1475 fi
1476 if [ "$archlibdir_specified" = "" ]; then
1477 archlibdir='${libdir}/etc'
1478 fi
1479 if [ "$etcdir_specified" = "" ]; then
1480 etcdir='${prefix}/common/data'
1481 fi
1482 fi
1483
1484 #### Report on what we decided to do.
1485 echo "
1486
1487 Configured for \`${canonical}'.
1488
1489 Where should the build process find the source code? ${srcdir}
1490 What operating system and machine description files should Emacs use?
1491 \`${opsysfile}' and \`${machfile}'
1492 What compiler should emacs be built with? ${CC} ${CFLAGS}
1493 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
1494 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC}
1495 What window system should Emacs use? ${window_system}${x_includes+
1496 Where do we find X Windows header files? }${x_includes}${x_libraries+
1497 Where do we find X Windows libraries? }${x_libraries}
1498
1499 "
1500
1501 # Remove any trailing slashes in these variables.
1502 test -n "${prefix}" &&
1503 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
1504 test -n "${exec_prefix}" &&
1505 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
1506 ]
1507 AC_OUTPUT(Makefile lib-src/Makefile oldXMenu/Makefile lwlib/Makefile src/Makefile.in, [
1508 # Build src/Makefile from ${srcdir}/src/Makefile.in. This must be done
1509 # after src/config.h is built, since we rely on that file.
1510
1511 changequote(,)dnl The horror, the horror.
1512 # Now get this: Some word that is part of the ${srcdir} directory name might,
1513 # just might, happen to be an identifier like `sun4' or `i386' or something,
1514 # and be predefined by the C preprocessor to some helpful value like 1, or
1515 # maybe the empty string. Needless to say consequent macro substitutions are
1516 # less than conducive to the makefile finding the correct directory.
1517 srcdir_undefs="`echo $top_srcdir |
1518 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/ */ -U/g' \
1519 -e 's/ -U$//' -e 's/^[^ ]/-U/' \
1520 -e 's/-U[0-9][^ ]*//g' \
1521 `"
1522 changequote([,])dnl
1523
1524 echo creating src/Makefile
1525 ( cd src
1526 rm -f junk.c
1527 sed -e 's@^# \(Generated.*\)$@/* \1 */@' \
1528 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
1529 < Makefile.in > junk.c
1530 $CPP $srcdir_undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c |
1531 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ][ ]*$/d' > Makefile.new
1532 rm -f junk.c
1533 chmod 444 Makefile.new;
1534 mv -f Makefile.new Makefile;
1535 )])