26
|
1 dnl -*- mode: m4; m4-mode-hook : (lambda () (modify-syntax-entry ?\" "\"\"")) ; -*-
|
0
|
2 dnl Synched up with: FSF 19.31.
|
|
3 dnl (19.29 -- 19.31 use Autoconf 2.x instead of Autoconf 1.x.
|
|
4 dnl Some stuff related to this change has not been synched because
|
|
5 dnl it can't be until we switch to Autoconf 2.x.)
|
|
6 dnl
|
|
7 dnl This is an autoconf script.
|
|
8 dnl To rebuild the `configure' script from this, execute the command
|
|
9 dnl autoconf
|
|
10 dnl in the directory containing this script. You must have autoconf
|
|
11 dnl version 1.9 or later.
|
|
12 dnl
|
|
13 dnl The following text appears in the resulting `configure' script,
|
|
14 dnl explaining how to rebuild it.
|
|
15 dnl
|
|
16 AC_PREREQ(1.9)dnl means 'delete newline' and this one needs to be here
|
|
17 [#!/bin/sh
|
|
18 #### Configuration script for XEmacs.
|
|
19 #### Copyright (C) 1994 Free Software Foundation, Inc.
|
|
20 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
|
|
21 #### Copyright (C) 1995, 1996 Ben Wing.
|
|
22
|
|
23 ### Don't edit this script!
|
|
24 ### This script was automatically generated by the `autoconf' program
|
|
25 ### from the file `./configure.in'.
|
|
26 ### To rebuild it, execute the command
|
|
27 ### autoconf
|
|
28 ### in the this directory. You must have autoconf version 1.9 or later.
|
|
29
|
|
30 ### This file is part of XEmacs.
|
|
31
|
|
32 ### XEmacs is free software; you can redistribute it and/or modify it
|
|
33 ### under the terms of the GNU General Public License as published by
|
|
34 ### the Free Software Foundation; either version 2, or (at your
|
|
35 ### option) any later version.
|
|
36
|
|
37 ### XEmacs is distributed in the hope that it will be useful, but
|
|
38 ### WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
39 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
40 ### General Public License for more details.
|
|
41
|
|
42 ### You should have received a copy of the GNU General Public License
|
|
43 ### along with XEmacs; see the file COPYING. If not, write to the Free
|
|
44 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
45 ### 02111-1307, USA.
|
|
46
|
|
47 ### Since XEmacs has configuration requirements that autoconf can't
|
|
48 ### meet, this file is an unholy marriage of custom-baked
|
|
49 ### configuration code and autoconf macros.
|
|
50 ###
|
|
51 ### We use the m4 quoting characters [ ] (as established by the
|
|
52 ### autoconf system) to include large sections of raw sewage - Oops, I
|
|
53 ### mean, shell code - in the final configuration script.
|
|
54 ###
|
|
55 ### Usage: configure config_name
|
|
56 ###
|
|
57 ### If configure succeeds, it leaves its status in config.status.
|
|
58 ### If configure fails after disturbing the status quo,
|
|
59 ### config.status is removed.
|
|
60
|
|
61 ### Remove any more than one leading "." element from the path name.
|
|
62 ### If we don't remove them, then another "./" will be prepended to
|
|
63 ### the file name each time we use config.status, and the program name
|
|
64 ### will get larger and larger. This wouldn't be a problem, except
|
|
65 ### that since progname gets recorded in all the Makefiles this script
|
|
66 ### produces, move-if-change thinks they're different when they're
|
|
67 ### not.
|
|
68 ###
|
|
69 ### It would be nice if we could put the ./ in a \( \) group and then
|
|
70 ### apply the * operator to that, so we remove as many leading ./././'s
|
|
71 ### as are present, but some seds (like Ultrix's sed) don't allow you to
|
|
72 ### apply * to a \( \) group. Bleah.
|
|
73 progname="`echo $0 | sed 's:^\./\./:\./:'`"
|
|
74
|
|
75 ############################################################################
|
|
76 # #
|
|
77 # Establish some default values #
|
|
78 # #
|
|
79 ############################################################################
|
|
80
|
|
81 run_in_place='no'
|
|
82 prefix='/usr/local'
|
|
83 exec_prefix='${prefix}'
|
|
84 bindir='${exec_prefix}/bin'
|
|
85 # FSF 19.29 changes to:
|
|
86 # datadir='${prefix}/share'
|
|
87 # sharedstatedir='${prefix}/com'
|
|
88 # libexecdir='${exec_prefix}/libexec'
|
|
89 datadir='${prefix}/lib'
|
|
90 statedir='${prefix}/lib'
|
|
91 libdir='${exec_prefix}/lib'
|
|
92 mandir='${prefix}/man/man1'
|
|
93 infodir='${prefix}/lib/xemacs-${version}/info'
|
|
94 infodir_user_defined='no'
|
|
95 lispdir='${datadir}/xemacs-${version}/lisp'
|
|
96 lispdir_user_defined='no'
|
|
97 sitelispdir='${datadir}/xemacs/site-lisp'
|
|
98 etcdir='${datadir}/xemacs-${version}/etc'
|
|
99 etcdir_user_defined='no'
|
|
100 lockdir='${statedir}/xemacs/lock'
|
|
101 lockdir_user_defined='no'
|
|
102 archlibdir='${libdir}/xemacs-${version}/${configuration}'
|
|
103 archlibdir_user_defined='no'
|
|
104 with_menubars=''
|
|
105 with_scrollbars=''
|
|
106 with_dialogs=''
|
|
107 const_is_losing='yes'
|
|
108 puresize=''
|
|
109 cflags='NO_CFLAGS_DEFINED'
|
|
110 dynamic=''
|
|
111 with_x11=''
|
|
112 rel_alloc='default'
|
|
113 use_system_malloc='default'
|
8
|
114 internal_makefile_list='Makefile lib-src/Makefile.in src/Makefile.in lwlib/Makefile.in dynodump/Makefile.in'
|
0
|
115 energize_version='no'
|
|
116 native_sound_lib=''
|
|
117 # make normal error-checking be the default in alpha and beta versions, so
|
|
118 # that bugs get noticed. Change this for released versions.
|
44
|
119 error_check_default='no'
|
0
|
120 error_check_extents=$error_check_default
|
|
121 error_check_typecheck=$error_check_default
|
|
122 error_check_bufpos=$error_check_default
|
|
123 error_check_gc=$error_check_default
|
|
124 error_check_malloc=$error_check_default
|
|
125 # debug=yes must be set when error checking is present. This should be
|
|
126 # fixed up.
|
|
127 debug=$error_check_default
|
|
128 quantify='no'
|
|
129 # use-assertions should be 'yes' by default. Too many people in this
|
|
130 # world have core dumps turned off by default or "can't find where the
|
|
131 # core file went". At least we should get some useful output ...
|
|
132 use_assertions='yes'
|
|
133 # the following is set to yes or no later.
|
|
134 with_gif=''
|
|
135 # the following is set to yes or no later.
|
|
136 with_toolbars=''
|
|
137 with_tty='yes'
|
|
138 use_union_type='no'
|
|
139
|
|
140 # # gnu echo silently eats `--help', `--version', `-n', `-e', `-E', `-n'.
|
|
141 # # other versions of echo eat any strings beginning with `-n'.
|
|
142 # # when parsing arguments, special case these strings and don't
|
|
143 # # pass them through echo
|
|
144 # echo=/bin/echo
|
|
145 #
|
|
146 # this approach abandoned in favor of
|
|
147 #
|
|
148 # echo "" ${stuff_to_filter} | sed -e 's:^ ::'
|
|
149
|
|
150 # On Sun systems, people sometimes set up the variable CPP
|
|
151 # with a value that is a directory, not an executable at all.
|
|
152 # Detect that case, and ignore that value.
|
|
153 if [ "x$CPP" != x ] && [ -d "$CPP" ] ; then
|
|
154 CPP=
|
|
155 fi
|
|
156
|
|
157 ############################################################################
|
|
158 # #
|
|
159 # Usage messages #
|
|
160 # #
|
|
161 ############################################################################
|
|
162
|
|
163 short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
|
|
164
|
|
165 Set compilation and installation parameters for XEmacs, and report.
|
|
166 CONFIGURATION specifies the machine and operating system to build for.
|
|
167
|
|
168 Note that for most of the following options, you can explicitly enable
|
|
169 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'.
|
|
170 This is especially useful for auto-detected options.
|
|
171
|
|
172 Options marked with a (*) are autodetected.
|
|
173
|
|
174
|
|
175 General options:
|
|
176
|
|
177 --help Issue this usage message.
|
|
178 --verbose Display the results of configure tests.
|
|
179 --extra-verbose Also display the output of any compiler invocation.
|
|
180 (Useful when feature tests are coming out wrong.)
|
|
181
|
|
182
|
|
183 Compiler options:
|
|
184
|
|
185 --compiler=XXXX Specify compiler.
|
|
186 --with-gcc (*) Use GCC to compile XEmacs.
|
|
187 --with-lcc Use Lucid's LCC to compile XEmacs.
|
|
188 --with-gcc=no Don't use GCC to compile XEmacs.
|
|
189 --with-gnu-make Write the Makefiles to take advantage of
|
|
190 special features of GNU Make. (GNU Make
|
|
191 works fine on the Makefiles even without this
|
|
192 option. This just allows for simultaneous
|
|
193 in-place and --srcdir building.)
|
|
194 --cflags=FLAGS Override the default values for CFLAGS.
|
|
195 --site-includes=DIR Other header file directories. Separate multiple
|
|
196 dirs with spaces and use quotes to enclose.
|
|
197 --site-libraries=DIR Other library directories.
|
|
198 --site-runtime-libraries=DIR
|
|
199 Paths to add with -R flag.
|
|
200 --dynamic=yes Link dynamically if supported by system.
|
|
201 --dynamic=no Force static linking on systems where dynamic
|
|
202 linking is the default.
|
|
203 --srcdir=DIR Look for the XEmacs source files in DIR.
|
|
204 See also --with-gnu-make.
|
|
205 --const-is-losing=no Allow the use of const in the source code.
|
|
206
|
|
207
|
|
208 Installation options:
|
|
209
|
|
210 --prefix=DIR Install files below DIR. Defaults to \`${prefix}'.
|
|
211 --run-in-place Use the source tree for installation.
|
|
212
|
|
213
|
|
214 Window-system options:
|
|
215
|
|
216 --with-x (*) Support the X Window System.
|
|
217 --with-x=no Don't support X.
|
|
218 --x-includes=DIR Search for X header files in DIR.
|
|
219 --x-libraries=DIR Search for X libraries in DIR.
|
|
220 --with-ns Support NeXTstep windows (not yet implemented).
|
|
221 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid
|
|
222 widgets emulate Motif (mostly) but are faster.
|
|
223 *WARNING* The Motif menubar is currently broken.
|
|
224 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena, or no).
|
|
225 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, or no).
|
|
226 (Lucid menubars and scrollbars are the default.
|
|
227 Motif dialog boxes will be used if Motif can be
|
|
228 found.)
|
|
229 --with-cde (*) Compile in support for CDE drag and drop.
|
2
|
230 --with-offix (*) Compile in support for OffiX drag and drop.
|
0
|
231 --with-xpm (*) Compile with support for XPM files.
|
|
232 It is highly recommended that you obtain XPM
|
|
233 (version 3.4g or better) if you don't already
|
|
234 have it. Get it from the XEmacs FTP site.
|
|
235 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu.
|
|
236
|
|
237
|
|
238 Additional features:
|
|
239
|
|
240 --with-toolbars=no Don't compile with any toolbar support.
|
|
241 --with-tooltalk Support the ToolTalk IPC protocol.
|
|
242 --with-sparcworks Support the Sun Sparcworks development environment.
|
|
243 --with-energize Support the Lucid Energize development environment.
|
|
244 This doesn't currently work.
|
|
245 --with-socks Compile with support for SOCKS (an Internet proxy).
|
|
246 --with-term Compile with support for TERM (a way to multiplex
|
|
247 serial lines and provide vaguely Internet-like
|
|
248 functionality over a simple dialup connection,
|
|
249 used on Linux and other systems. NOTE: We can't
|
|
250 guarantee that our TERM support coexists well
|
|
251 with standard Internet connections).
|
|
252 --with-xface (*) Compile with support for X-Face mail header
|
|
253 conversion. Requires the compface library.
|
|
254 Get it from the XEmacs FTP site.
|
|
255 --with-gif Compile with support for GIF image conversion.
|
|
256 This requires no special support and defaults to
|
|
257 \`yes'.
|
|
258 --with-jpeg (*) Compile with support for JPEG image conversion.
|
|
259 Requires libjpeg from the Independent JPEG Group.
|
|
260 Get it from the XEmacs FTP site.
|
|
261 --with-png (*) Compile with support for PNG image conversion.
|
|
262 Requires libpng. Get it from the XEmacs FTP site.
|
|
263 Accepted values are \`yes', \`no', and \`gnuz'
|
|
264 if you want to use -lgz instead of -lz.
|
|
265 --with-tiff Compile with support for TIFF image conversion
|
|
266 (not yet implemented).
|
|
267 --with-database=type (*) Compile with database support. Valid types are
|
|
268 \`no' or a comma-separated list of one or more
|
|
269 of \`dbm', \`gnudbm', or \`berkdb'.
|
|
270 --external-widget Compile with external widget support.
|
|
271 --with-sound=native (*) Compile with native sound support.
|
|
272 --with-sound=nas Compile with network sound support.
|
|
273 --with-sound=both Compile with native and network sound support.
|
|
274 --native-sound-lib=LIB Native sound support library. Needed on Suns
|
|
275 with --with-sound=both because both sound libraries
|
|
276 are called libaudio.
|
|
277 --with-epoch Compile with additional Epoch compatibility.
|
|
278 This doesn't work yet.
|
|
279 --with-mocklisp Compile with Mocklisp support. Don't do this
|
|
280 unless you have a Mocklisp program that you need
|
|
281 to run.
|
|
282 --usage-tracking Enable some Sun-internal code. If you don't
|
|
283 know what this is, you don't want it.
|
|
284
|
|
285
|
|
286 Debugging options:
|
|
287
|
|
288 --debug Compile with support for debugging XEmacs.
|
44
|
289 (Causes code-size increase and little loss of speed.)
|
0
|
290 --error-checking=TYPE[,TYPE]...
|
|
291 Compile with internal error-checking added.
|
|
292 Causes noticeable loss of speed. Valid types
|
|
293 are extents, bufpos, malloc, gc, typecheck.
|
|
294 --error-checking=none Disable all internal error-checking (the default).
|
|
295 --error-checking=all Enable all internal error-checking.
|
|
296 --memory-usage-stats Compile with additional code to allow you to
|
|
297 determine what XEmacs's memory is being used
|
|
298 for. Causes a small code increase but no loss
|
|
299 of speed. Normally enabled when --debug is given.
|
|
300 --no-doc-file Don't rebuild the DOC file unless it's explicitly
|
|
301 deleted. Only use during development. (It speeds
|
|
302 up the compile-run-test cycle.)
|
|
303 --use-union-type Enable or disable use of a union, instead of an
|
|
304 int, for the fundamental Lisp_Object type; this
|
|
305 provides stricter type-checking. Only works with
|
|
306 some systems and compilers.
|
|
307
|
|
308
|
|
309 Other options:
|
|
310
|
|
311 --puresize=VALUE Override default amount of space for pure Lisp code.
|
|
312 --rel-alloc Use the relocating allocator (default for this option
|
|
313 is system-dependent).
|
|
314 --use-system-malloc Force use of the system malloc, rather than GNU
|
|
315 malloc.
|
|
316
|
|
317 You may also specify any of the \`path' variables found in
|
|
318 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and
|
|
319 so on. Note that we recommend against explicitly setting any of these
|
|
320 variables. See the INSTALL file for a complete list plus the reasons
|
|
321 we advise not changing them. Specifying a \'path' variable will override
|
|
322 the --run-in-place value.
|
|
323
|
|
324 If successful, ${progname} leaves its status in config.status. If
|
|
325 unsuccessful after disturbing the status quo, it removes config.status."
|
|
326
|
|
327
|
|
328 ############################################################################
|
|
329 # #
|
|
330 # Options processing #
|
|
331 # #
|
|
332 ############################################################################
|
|
333
|
|
334 ### Record all the arguments, so we can save them in config.status.
|
|
335 arguments="$@"
|
|
336
|
|
337 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date,
|
|
338 ### in order to get the arguments back in $@, we have to do an
|
|
339 ### `eval set x "$quoted_arguments"; shift'.
|
|
340 quoted_arguments=
|
|
341 for i in "$@"; do
|
|
342 quoted_arguments="$quoted_arguments '$i'"
|
|
343 done
|
|
344
|
|
345 ### Don't use shift -- that destroys the argument list, which autoconf needs
|
|
346 ### to produce config.status. It turns out that "set - ${arguments}" doesn't
|
|
347 ### work portably.
|
|
348 ### However, it also turns out that many shells cannot expand ${10} at all.
|
|
349 ### So using an index variable doesn't work either. It is possible to use
|
|
350 ### some shell magic to make 'set x "$arguments"; shift' work portably.
|
|
351 while [ $# != 0 ]; do
|
|
352 arg="$1"; shift
|
|
353 case "${arg}" in
|
|
354
|
|
355 ## Anything starting with a hyphen we assume is an option.
|
|
356 -* )
|
|
357 ## Separate the switch name from the value it's being given.
|
|
358 case "${arg}" in
|
|
359 -*=*)
|
|
360 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
|
|
361 val=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
|
|
362 valomitted=no
|
|
363 ;;
|
|
364 # ## special case these strings since echo may
|
|
365 # ## silently eat them.
|
|
366 # --help ) opt=help val=yes valomitted=yes ;;
|
|
367 # --version ) opt=version val=yes valomitted=yes ;;
|
|
368 # -e ) opt=e val=yes valomitted=yes ;;
|
|
369 # -E ) opt=E val=yes valomitted=yes ;;
|
|
370 # -n ) opt=n val=yes valomitted=yes ;;
|
|
371 -*)
|
|
372 ## If FOO is a boolean argument, --FOO is equivalent to
|
|
373 ## --FOO=yes. Otherwise, the value comes from the next
|
|
374 ## argument - see below.
|
|
375 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
|
|
376 val="yes"
|
|
377 valomitted=yes
|
|
378 ;;
|
|
379 esac
|
|
380
|
|
381 ## Change `-' in the option name to `_'.
|
|
382 optname="${opt}"
|
|
383 opt="`echo '' ${opt} | sed -e 's:^ ::' | tr - _`"
|
|
384
|
|
385 ## Process the option.
|
|
386 case "${opt}" in
|
|
387
|
|
388 ## Has the user specified which window systems they want to support?
|
|
389 "with_x" | "with_x11" )
|
|
390 ## Make sure the value given was either "yes" or "no".
|
|
391 case "${val}" in
|
|
392 y | ye | yes ) val=yes ;;
|
|
393 n | no ) val=no ;;
|
|
394 * )
|
|
395 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
396 Set it to either \`yes' or \`no'."
|
|
397 echo "${short_usage}") >&2
|
|
398 exit 1
|
|
399 ;;
|
|
400 esac
|
|
401 eval "with_x11=\"${val}\""
|
|
402 ;;
|
|
403
|
|
404 ## Has the user specified whether or not they want GCC or LCC?
|
|
405 "with_gcc" | "with_lcc" )
|
|
406 ## Make sure the value given was either "yes" or "no".
|
|
407 case "${val}" in
|
|
408 y | ye | yes ) val=yes ;;
|
|
409 n | no ) val=no ;;
|
|
410 * )
|
|
411 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
412 Set it to either \`yes' or \`no'."
|
|
413 echo "${short_usage}") >&2
|
|
414 exit 1
|
|
415 ;;
|
|
416 esac
|
|
417 eval "${opt}=\"${val}\""
|
|
418 if [ "${with_gcc}" = "yes" ] && [ "${with_lcc}" = "yes" ] ; then
|
|
419 (echo "${progname}: only one of --with-gcc and --with-lcc may be specified."
|
|
420 echo "${short_usage}") >&2
|
|
421 exit 1
|
|
422 fi
|
|
423 ;;
|
|
424
|
|
425 ## Has the user specified a compiler to use?
|
|
426 "compiler" )
|
|
427 ## If the value was omitted, get it from the next argument.
|
|
428 if [ "${valomitted}" = "yes" ]; then
|
|
429 ## Get the next argument from the argument list, if there is one.
|
|
430 if [ $# = 0 ]; then
|
|
431 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
432 \`--${optname}=FOO'."
|
|
433 echo "${short_usage}") >&2
|
|
434 exit 1
|
|
435 fi
|
|
436 val="$1"; shift
|
|
437 fi
|
|
438 compiler="${val}"
|
|
439 ;;
|
|
440
|
|
441 ## Has the user specified special GNU Make support?
|
|
442 "with_gnu_make" )
|
|
443 ## Make sure the value given was either "yes" or "no".
|
|
444 case "${val}" in
|
|
445 y | ye | yes ) val=yes ;;
|
|
446 n | no ) val=no ;;
|
|
447 * )
|
|
448 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
449 Set it to either \`yes' or \`no'."
|
|
450 echo "${short_usage}") >&2
|
|
451 exit 1
|
|
452 ;;
|
|
453 esac
|
|
454 eval "${opt}=\"${val}\""
|
|
455 ;;
|
|
456
|
|
457 ## This option will not force a rebuild of the DOC
|
|
458 ## file each time that a source or Lisp file has changed.
|
|
459 ## If you want the DOC file rebuilt, remove it. A side
|
|
460 ## effect of this is that you may get complaints about
|
|
461 ## "doc lost for function foobar" or "strange doc for
|
|
462 ## function foobar", but in general these should not cause
|
|
463 ## problems.
|
|
464 "no_doc_file" )
|
|
465 ## Make sure the value given was either "yes" or "no".
|
|
466 case "${val}" in
|
|
467 y | ye | yes ) val=yes ;;
|
|
468 n | no ) val=no ;;
|
|
469 * )
|
|
470 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
471 Set it to either \`yes' or \`no'."
|
|
472 echo "${short_usage}") >&2
|
|
473 exit 1
|
|
474 ;;
|
|
475 esac
|
|
476 eval "${opt}=\"${val}\""
|
|
477 ;;
|
|
478
|
|
479 # Enable use of the union type for Lisp_Objects.
|
|
480 # mly, eat your heart out ...
|
|
481 "use_union_type" )
|
|
482 ## Make sure the value given was either "yes" or "no".
|
|
483 case "${val}" in
|
|
484 y | ye | yes ) val=yes ;;
|
|
485 n | no ) val=no ;;
|
|
486 * )
|
|
487 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
488 Set it to either \`yes' or \`no'."
|
|
489 echo "${short_usage}") >&2
|
|
490 exit 1
|
|
491 ;;
|
|
492 esac
|
|
493 eval "${opt}=\"${val}\""
|
|
494 ;;
|
|
495
|
|
496 ## Has the user specified a source directory?
|
|
497 "srcdir" )
|
|
498 ## If the value was omitted, get it from the next argument.
|
|
499 if [ "${valomitted}" = "yes" ]; then
|
|
500 ## Get the next argument from the argument list, if there is one.
|
|
501 if [ $# = 0 ]; then
|
|
502 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
503 \`--${optname}=FOO'."
|
|
504 echo "${short_usage}") >&2
|
|
505 exit 1
|
|
506 fi
|
|
507 val="$1"; shift
|
|
508 fi
|
|
509 srcdir="${val}"
|
|
510 ;;
|
|
511
|
|
512 ## Has the user requested sound support?
|
|
513 "with_sound" )
|
|
514 ## value can be native, nas or both. yes is allowed
|
|
515 ## as a backwards compatible synonym for native
|
|
516 case "${val}" in
|
|
517 y | ye | yes ) val=native ;;
|
|
518 n | no | non | none ) val=no;;
|
|
519 na | nat | nati | nativ | native ) val=native ;;
|
|
520 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
|
|
521 b | bo | bot | both ) val=both;;
|
|
522 * )
|
|
523 (echo "${progname}: the \`--${optname}' option should have one of the values \`native', \`nas', \`both', or \`none'."
|
|
524 echo "${short_usage}") >&2
|
|
525 exit 1
|
|
526 ;;
|
|
527 esac
|
|
528 eval "${opt}=\"${val}\""
|
|
529 ;;
|
|
530
|
|
531 ## Has the user specified a native sound library?
|
|
532 ## (the reason for this flag is that, under Suns, both NAS sound
|
|
533 ## and native sound call their library libaudio.a)
|
|
534 "native_sound_lib" )
|
|
535 ## If the value was omitted, get it from the next argument.
|
|
536 if [ "${valomitted}" = "yes" ]; then
|
|
537 ## Get the next argument from the argument list, if there is one.
|
|
538 if [ $# = 0 ]; then
|
|
539 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
540 \`--${optname}=FOO'."
|
|
541 echo "${short_usage}") >&2
|
|
542 exit 1
|
|
543 fi
|
|
544 val="$1"; shift
|
|
545 fi
|
|
546 native_sound_lib="${val}"
|
|
547 ;;
|
|
548
|
|
549 ## Has the user requested extra Epoch compatibility?
|
|
550 "with_epoch" )
|
|
551 ## Make sure the value given was either "yes" or "no".
|
|
552 case "${val}" in
|
|
553 y | ye | yes ) val=yes ;;
|
|
554 n | no ) val=no ;;
|
|
555 * )
|
|
556 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
557 Set it to either \`yes' or \`no'."
|
|
558 echo "${short_usage}") >&2
|
|
559 exit 1
|
|
560 ;;
|
|
561 esac
|
|
562 eval "${opt}=\"${val}\""
|
|
563 ;;
|
|
564
|
|
565 ## Has the user specified a change to the default linking?
|
|
566 "dynamic" )
|
|
567 ## Make sure the value given was either "yes" or "no".
|
|
568 case "${val}" in
|
|
569 y | ye | yes ) val=yes ;;
|
|
570 n | no ) val=no ;;
|
|
571 * )
|
|
572 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
573 Set it to either \`yes' or \`no'."
|
|
574 echo "${short_usage}") >&2
|
|
575 exit 1
|
|
576 ;;
|
|
577 esac
|
|
578 eval "${opt}=\"${val}\""
|
|
579 ;;
|
|
580
|
|
581 ## Has the user specified Quantify support?
|
|
582 "quantify" )
|
|
583 ## Make sure the value given was either "yes" or "no".
|
|
584 case "${val}" in
|
|
585 y | ye | yes ) val=yes ;;
|
|
586 n | no ) val=no ;;
|
|
587 * )
|
|
588 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
589 Set it to either \`yes' or \`no'."
|
|
590 echo "${short_usage}") >&2
|
|
591 exit 1
|
|
592 ;;
|
|
593 esac
|
|
594 eval "${opt}=\"${val}\""
|
|
595 ;;
|
|
596
|
|
597 ## Has the user requested SOCKS support?
|
|
598 "with_socks" )
|
|
599 ## Make sure the value given was either "yes" or "no".
|
|
600 case "${val}" in
|
|
601 y | ye | yes ) val=yes ;;
|
|
602 n | no ) val=no ;;
|
|
603 * )
|
|
604 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
605 Set it to either \`yes' or \`no'."
|
|
606 echo "${short_usage}") >&2
|
|
607 exit 1
|
|
608 ;;
|
|
609 esac
|
|
610 eval "${opt}=\"${val}\""
|
|
611 ;;
|
|
612
|
|
613 ## Has the user requested TERM support?
|
|
614 "with_term" )
|
|
615 ## Make sure the value given was either "yes" or "no".
|
|
616 case "${val}" in
|
|
617 y | ye | yes ) val=yes ;;
|
|
618 n | no ) val=no ;;
|
|
619 * )
|
|
620 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
621 Set it to either \`yes' or \`no'."
|
|
622 echo "${short_usage}") >&2
|
|
623 exit 1
|
|
624 ;;
|
|
625 esac
|
|
626 eval "${opt}=\"${val}\""
|
|
627 ;;
|
|
628
|
|
629 ## Has the user requested CDE support?
|
|
630 "with_cde" )
|
|
631 ## Make sure the value given was either "yes" or "no".
|
|
632 case "${val}" in
|
|
633 y | ye | yes ) val=yes ;;
|
|
634 n | no ) val=no ;;
|
|
635 * )
|
|
636 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
637 Set it to either \`yes' or \`no'."
|
|
638 echo "${short_usage}") >&2
|
|
639 exit 1
|
|
640 ;;
|
|
641 esac
|
|
642 eval "${opt}=\"${val}\""
|
|
643 ;;
|
|
644
|
2
|
645 ## Has the user requested OffiX support?
|
|
646 "with_offix" )
|
|
647 ## Make sure the value given was either "yes" or "no".
|
|
648 case "${val}" in
|
|
649 y | ye | yes ) val=yes ;;
|
|
650 n | no ) val=no ;;
|
|
651 * )
|
|
652 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
653 Set it to either \`yes' or \`no'."
|
|
654 echo "${short_usage}") >&2
|
|
655 exit 1
|
|
656 ;;
|
|
657 esac
|
|
658 eval "${opt}=\"${val}\""
|
|
659 ;;
|
|
660
|
0
|
661 ## Has the user requested XPM support?
|
|
662 "with_xpm" )
|
|
663 ## Make sure the value given was either "yes" or "no".
|
|
664 case "${val}" in
|
|
665 y | ye | yes ) val=yes ;;
|
|
666 n | no ) val=no ;;
|
|
667 * )
|
|
668 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
669 Set it to either \`yes' or \`no'."
|
|
670 echo "${short_usage}") >&2
|
|
671 exit 1
|
|
672 ;;
|
|
673 esac
|
|
674 eval "${opt}=\"${val}\""
|
|
675 ;;
|
|
676
|
|
677 ## Has the user requested XFACE support?
|
|
678 "with_xface" )
|
|
679 ## Make sure the value given was either "yes" or "no".
|
|
680 case "${val}" in
|
|
681 y | ye | yes ) val=yes ;;
|
|
682 n | no ) val=no ;;
|
|
683 * )
|
|
684 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
685 Set it to either \`yes' or \`no'."
|
|
686 echo "${short_usage}") >&2
|
|
687 exit 1
|
|
688 ;;
|
|
689 esac
|
|
690 eval "${opt}=\"${val}\""
|
|
691 ;;
|
|
692
|
|
693 ## Has the user requested GIF support?
|
|
694 "with_gif" )
|
|
695 ## Make sure the value given was either "yes" or "no".
|
|
696 case "${val}" in
|
|
697 y | ye | yes ) val=yes ;;
|
|
698 n | no ) val=no ;;
|
|
699 * )
|
|
700 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
701 Set it to either \`yes' or \`no'."
|
|
702 echo "${short_usage}") >&2
|
|
703 exit 1
|
|
704 ;;
|
|
705 esac
|
|
706 eval "${opt}=\"${val}\""
|
|
707 ;;
|
|
708
|
|
709 ## Has the user requested JPEG support?
|
|
710 "with_jpeg" )
|
|
711 ## Make sure the value given was either "yes" or "no".
|
|
712 case "${val}" in
|
|
713 y | ye | yes ) val=yes ;;
|
|
714 n | no ) val=no ;;
|
|
715 * )
|
|
716 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
717 Set it to either \`yes' or \`no'."
|
|
718 echo "${short_usage}") >&2
|
|
719 exit 1
|
|
720 ;;
|
|
721 esac
|
|
722 eval "${opt}=\"${val}\""
|
|
723 ;;
|
|
724
|
|
725 ## Has the user requested database support?
|
|
726 "with_database" )
|
|
727 if [ "${val}" = "no" ] ; then
|
|
728 with_database_berkdb=no
|
|
729 with_database_dbm=no
|
|
730 with_database_gnudbm=no
|
|
731 else
|
|
732 ## Make sure the value given was berkdb, dbm, gnudbm, or a list
|
|
733 for x in `echo "${val}" | sed 's/,/ /'` ; do
|
|
734 case "${x}" in
|
|
735 b | be | ber | berk | berkd | berkdb )
|
|
736 with_database_berkdb=yes ;;
|
|
737 d | db | dbm )
|
|
738 with_database_dbm=yes ;;
|
|
739 g | gn | gnu | gnud | gnudb | gnudbm )
|
|
740 with_database_gnudbm=yes ;;
|
|
741 * )
|
|
742 (echo "${progname}: the \`--${optname}' option is supposed to be either \`no'
|
|
743 or a comma-separated list of one or more of \`berkdb', \`dbm', or \`gnudbm'."
|
|
744 echo "${short_usage}") >&2
|
|
745 exit 1
|
|
746 ;;
|
|
747 esac
|
|
748 done
|
|
749 if [ "${with_database_dbm}" = "yes" ] && [ "${with_database_gnudbm}" = "yes" ]
|
|
750 then
|
|
751 (echo "${progname}: only one of \`dbm' and \`gnudbm' should be specified.") >&2
|
|
752 exit 1
|
|
753 fi
|
|
754 fi
|
|
755 ;;
|
|
756
|
|
757 ## Has the user requested PNG support?
|
|
758 "with_png" )
|
|
759 ## Make sure the value given was either "yes", "no", or "gnuz".
|
|
760 case "${val}" in
|
|
761 y | ye | yes ) val=yes ;;
|
|
762 n | no ) val=no ;;
|
|
763 g | gn | gnu | gnuz ) val=gnuz ;;
|
|
764 * )
|
|
765 (echo "${progname}: the \`--${optname}' option is supposed to
|
|
766 be either \`yes', \`no', or \`gnuz'."
|
|
767 echo "${short_usage}") >&2
|
|
768 exit 1
|
|
769 ;;
|
|
770 esac
|
|
771 eval "${opt}=\"${val}\""
|
|
772 ;;
|
|
773
|
|
774 ## Has the user requested TIFF support?
|
|
775 "with_tiff" )
|
|
776 ## Make sure the value given was either "yes" or "no".
|
|
777 case "${val}" in
|
|
778 y | ye | yes ) val=yes ;;
|
|
779 n | no ) val=no ;;
|
|
780 * )
|
|
781 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
782 Set it to either \`yes' or \`no'."
|
|
783 echo "${short_usage}") >&2
|
|
784 exit 1
|
|
785 ;;
|
|
786 esac
|
|
787 eval "${opt}=\"${val}\""
|
|
788 ;;
|
|
789
|
|
790 ## Has the user requested NeXTstep support?
|
|
791 "with_ns" )
|
|
792 ## Make sure the value given was either "yes" or "no".
|
|
793 case "${val}" in
|
|
794 y | ye | yes ) val=yes ;;
|
|
795 n | no ) val=no ;;
|
|
796 * )
|
|
797 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
798 Set it to either \`yes' or \`no'."
|
|
799 echo "${short_usage}") >&2
|
|
800 exit 1
|
|
801 ;;
|
|
802 esac
|
|
803 eval "${opt}=\"${val}\""
|
|
804 ;;
|
|
805
|
|
806 ## Has the user requested that assertions be used?
|
|
807 "use_assertions" )
|
|
808 ## Make sure the value given was either "yes" or "no".
|
|
809 case "${val}" in
|
|
810 y | ye | yes ) val=yes ;;
|
|
811 n | no ) val=no ;;
|
|
812 * )
|
|
813 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
814 Set it to either \`yes' or \`no'."
|
|
815 echo "${short_usage}") >&2
|
|
816 exit 1
|
|
817 ;;
|
|
818 esac
|
|
819 eval "${opt}=\"${val}\""
|
|
820 ;;
|
|
821
|
|
822 ## Has the user requested error-checking?
|
|
823 "error_checking" )
|
|
824 ## value can be all, none, and/or a list of categories to check.
|
|
825 ## Example: --error-checking=all,noextents,nobufpos
|
|
826 ## Example: --error-checking=none,malloc,gc
|
|
827
|
|
828 for x in `echo "${val}" | sed 's/,/ /'` ; do
|
|
829 case "${x}" in
|
|
830 # all and none are only permitted as the first in the list.
|
|
831 n | no | non | none ) new_default=no ;;
|
|
832 a | al | all ) new_default=yes ;;
|
|
833
|
|
834 extents ) error_check_extents=yes ;;
|
|
835 noextents ) error_check_extents=no ;;
|
|
836
|
|
837 typecheck ) error_check_typecheck=yes ;;
|
|
838 notypecheck ) error_check_typecheck=no ;;
|
|
839
|
|
840 bufpos ) error_check_bufpos=yes ;;
|
|
841 nobufpos ) error_check_bufpos=no ;;
|
|
842
|
|
843 gc ) error_check_gc=yes ;;
|
|
844 nogc ) error_check_gc=no ;;
|
|
845
|
|
846 malloc ) error_check_malloc=yes ;;
|
|
847 nomalloc ) error_check_malloc=no ;;
|
|
848
|
|
849 * ) bogus_error_check=yes ;;
|
|
850 esac
|
|
851 if [ "$bogus_error_check" -o \
|
|
852 \( -n "$new_default" -a -n "$echeck_notfirst" \) ]; then
|
|
853 ( echo "${progname}: Valid types for the \`--${optname}' option are:"
|
|
854 if [ $error_check_default = yes ]; then
|
|
855 echo "\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
|
|
856 else
|
|
857 echo "\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
|
|
858 fi
|
|
859 echo "${short_usage}" ) >&2
|
|
860 exit 1
|
|
861 elif [ "$new_default" ]; then
|
|
862 error_check_extents=$new_default
|
|
863 error_check_typecheck=$new_default
|
|
864 error_check_bufpos=$new_default
|
|
865 error_check_gc=$new_default
|
|
866 error_check_malloc=$new_default
|
|
867 new_default= # reset this
|
|
868 fi
|
|
869 echeck_notfirst=true
|
|
870 done
|
|
871 ;;
|
|
872
|
|
873 ## Has the user requested external widget support?
|
|
874 "external_widget" )
|
|
875 ## Make sure the value given was either "yes" or "no".
|
|
876 case "${val}" in
|
|
877 y | ye | yes ) val=yes ;;
|
|
878 n | no ) val=no ;;
|
|
879 * )
|
|
880 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
881 Set it to either \`yes' or \`no'."
|
|
882 echo "${short_usage}") >&2
|
|
883 exit 1
|
|
884 ;;
|
|
885 esac
|
|
886 eval "${opt}=\"${val}\""
|
|
887 ;;
|
|
888
|
|
889 ## Has the user requested that const be used?
|
|
890 "const_is_losing" )
|
|
891 ## Make sure the value given was either "yes" or "no".
|
|
892 case "${val}" in
|
|
893 y | ye | yes ) val=yes ;;
|
|
894 n | no ) val=no ;;
|
|
895 * )
|
|
896 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
897 Set it to either \`yes' or \`no'."
|
|
898 echo "${short_usage}") >&2
|
|
899 exit 1
|
|
900 ;;
|
|
901 esac
|
|
902 eval "${opt}=\"${val}\""
|
|
903 ;;
|
|
904
|
|
905 ## Has the user mentioned that they don't have Xmu?
|
|
906 "with_xmu" )
|
|
907 ## Make sure the value given was either "yes" or "no".
|
|
908 case "${val}" in
|
|
909 y | ye | yes ) val=yes ;;
|
|
910 n | no ) val=no ;;
|
|
911 * )
|
|
912 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
913 Set it to either \`yes' or \`no'."
|
|
914 echo "${short_usage}") >&2
|
|
915 exit 1
|
|
916 ;;
|
|
917 esac
|
|
918 eval "${opt}=\"${val}\""
|
|
919 ;;
|
|
920
|
28
|
921 ## Has the user specified a value for RAW_PURESIZE?
|
0
|
922 "puresize" )
|
|
923 ## If the value was omitted, get it from the next argument.
|
|
924 if [ "${valomitted}" = "yes" ]; then
|
|
925 ## Get the next argument from the argument list, if there is one.
|
|
926 if [ $# = 0 ]; then
|
|
927 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
928 \`--${optname}=FOO'."
|
|
929 echo "${short_usage}") >&2
|
|
930 exit 1
|
|
931 fi
|
|
932 val="$1"; shift
|
|
933 fi
|
|
934 puresize="${val}"
|
|
935 ;;
|
|
936
|
|
937 ## Has the user specified explicit instructions for rel_alloc?
|
|
938 "rel_alloc" )
|
|
939 ## Make sure the value given was either "yes", "no", or "default".
|
|
940 case "${val}" in
|
|
941 y | ye | yes ) val=yes ;;
|
|
942 n | no ) val=no ;;
|
|
943 d | de | def | defa | defau | defaul | default )
|
|
944 val=default ;;
|
|
945 * )
|
|
946 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value or \`default'.
|
|
947 Set it to either \`yes', \`no', or \`default'."
|
|
948 echo "${short_usage}") >&2
|
|
949 exit 1
|
|
950 ;;
|
|
951 esac
|
|
952 eval "${opt}=\"${val}\""
|
|
953 ;;
|
|
954
|
|
955 ## Has the user specified explicit instructions for system_malloc?
|
|
956 "use_system_malloc" )
|
|
957 ## Make sure the value given was either "yes", "no", or "default".
|
|
958 case "${val}" in
|
|
959 y | ye | yes ) val=yes ;;
|
|
960 n | no ) val=no ;;
|
|
961 d | de | def | defa | defau | defaul | default )
|
|
962 val=default ;;
|
|
963 * )
|
|
964 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value or \`default'.
|
|
965 Set it to either \`yes', \`no', or \`default'."
|
|
966 echo "${short_usage}") >&2
|
|
967 exit 1
|
|
968 ;;
|
|
969 esac
|
|
970 eval "${opt}=\"${val}\""
|
|
971 ;;
|
|
972
|
|
973 ## Has the user tried to tell us where the X files are?
|
|
974 ## I think these are dopey, but no less than three alpha
|
|
975 ## testers, at large sites, have said they have their X files
|
|
976 ## installed in odd places.
|
|
977 "x_includes" )
|
|
978 ## If the value was omitted, get it from the next argument.
|
|
979 if [ "${valomitted}" = "yes" ]; then
|
|
980 ## Get the next argument from the argument list, if there is one.
|
|
981 if [ $# = 0 ]; then
|
|
982 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
983 \`--${optname}=/usr/local/X11/include'."
|
|
984 echo "${short_usage}") >&2
|
|
985 exit 1
|
|
986 fi
|
|
987 val="$1"; shift
|
|
988 fi
|
|
989 x_includes="${val}"
|
|
990 ;;
|
|
991 "x_libraries" )
|
|
992 ## If the value was omitted, get it from the next argument.
|
|
993 if [ "${valomitted}" = "yes" ]; then
|
|
994 ## Get the next argument from the argument list, if there is one.
|
|
995 if [ $# = 0 ]; then
|
|
996 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
997 \`--${optname}=/usr/local/X11/lib'."
|
|
998 echo "${short_usage}") >&2
|
|
999 exit 1
|
|
1000 fi
|
|
1001 val="$1"; shift
|
|
1002 fi
|
|
1003 x_libraries="${val}"
|
|
1004 ;;
|
|
1005
|
|
1006 "site_includes" )
|
|
1007 ## If the value was omitted, get it from the next argument.
|
|
1008 if [ "${valomitted}" = "yes" ]; then
|
|
1009 ## Get the next argument from the argument list, if there is one.
|
|
1010 if [ $# = 0 ]; then
|
|
1011 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
1012 \`--${optname}=/usr/local/X11/include'."
|
|
1013 echo "${short_usage}") >&2
|
|
1014 exit 1
|
|
1015 fi
|
|
1016 val="$1"; shift
|
|
1017 fi
|
|
1018 site_includes="${val}"
|
|
1019 ;;
|
|
1020
|
|
1021 "site_libraries" )
|
|
1022 ## If the value was omitted, get it from the next argument.
|
|
1023 if [ "${valomitted}" = "yes" ]; then
|
|
1024 ## Get the next argument from the argument list, if there is one.
|
|
1025 if [ $# = 0 ]; then
|
|
1026 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
1027 \`--${optname}=/usr/local/X11/lib'."
|
|
1028 echo "${short_usage}") >&2
|
|
1029 exit 1
|
|
1030 fi
|
|
1031 val="$1"; shift
|
|
1032 fi
|
|
1033 site_libraries="${val}"
|
|
1034 ;;
|
|
1035
|
|
1036 "site_runtime_libraries" )
|
|
1037 ## If the value was omitted, get it from the next argument.
|
|
1038 if [ "${valomitted}" = "yes" ]; then
|
|
1039 ## Get the next argument from the argument list, if there is one.
|
|
1040 if [ $# = 0 ]; then
|
|
1041 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
1042 \`--${optname}=/usr/local/X11/lib'."
|
|
1043 echo "${short_usage}") >&2
|
|
1044 exit 1
|
|
1045 fi
|
|
1046 val="$1"; shift
|
|
1047 fi
|
|
1048 site_runtime_libraries="${val}"
|
|
1049 ;;
|
|
1050
|
|
1051 ## Has the user specified the developer configuration?
|
|
1052 ## Note that the user still has the option of explicitly setting
|
|
1053 ## a path option.
|
|
1054 "run_in_place" )
|
|
1055 ## Make sure the value given was either "yes" or "no".
|
|
1056 case "${val}" in
|
|
1057 y | ye | yes ) val=yes ;;
|
|
1058 n | no ) val=no ;;
|
|
1059 * )
|
|
1060 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1061 Set it to either \`yes' or \`no'."
|
|
1062 echo "${short_usage}") >&2
|
|
1063 exit 1
|
|
1064 ;;
|
|
1065 esac
|
|
1066 eval "${opt}=\"${val}\""
|
|
1067 ;;
|
|
1068
|
|
1069 ## Has the user specified one of the path options?
|
|
1070 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
|
|
1071 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \
|
|
1072 sitelispdir | docdir )
|
|
1073 ## If the value was omitted, get it from the next argument.
|
|
1074 if [ "${valomitted}" = "yes" ]; then
|
|
1075 if [ $# = 0 ]; then
|
|
1076 (echo \
|
|
1077 "$progname: You must give a value for the \`--${optname}' option,";
|
|
1078 echo \
|
|
1079 "as in \`--${optname}=`eval echo '$'$optname`.'"
|
|
1080 echo "$short_usage") >&2
|
|
1081 exit 1
|
|
1082 fi
|
|
1083 val="$1"; shift
|
|
1084 fi
|
|
1085 eval "${opt}=\"${val}\""
|
|
1086
|
|
1087 ## Changing exec_prefix or libdir will change the default value
|
|
1088 ## of archlibdir. Changing datadir will change the default value
|
|
1089 ## of etcdir and lispdir. Changing statedir will change the
|
|
1090 ## default value of lockdir.
|
|
1091 if [ "${opt}" = "exec_prefix" ]; then
|
|
1092 archlibdir_user_defined='yes'
|
|
1093 elif [ "${opt}" = "libdir" ]; then
|
|
1094 archlibdir_user_defined='yes'
|
|
1095 elif [ "${opt}" = "archlibdir" ]; then
|
|
1096 archlibdir_user_defined='yes'
|
|
1097 elif [ "${opt}" = "lispdir" ]; then
|
|
1098 lispdir_user_defined='yes'
|
|
1099 elif [ "${opt}" = "etcdir" ]; then
|
|
1100 etcdir_user_defined='yes'
|
|
1101 elif [ "${opt}" = "datadir" ]; then
|
|
1102 lispdir_user_defined='yes'
|
|
1103 etcdir_user_defined='yes'
|
|
1104 elif [ "${opt}" = "statedir" ]; then
|
|
1105 lockdir_user_defined='yes'
|
|
1106 elif [ "${opt}" = "lockdir" ]; then
|
|
1107 lockdir_user_defined='yes'
|
|
1108 elif [ "${opt}" = "infodir" ]; then
|
|
1109 infodir_user_defined='yes'
|
|
1110 fi
|
|
1111 ;;
|
|
1112
|
|
1113 ## Has the user specified values to override CFLAGS?
|
|
1114 cflags )
|
|
1115 ## If the value was omitted, get it from the next argument.
|
|
1116 if [ "${valomitted}" = "yes" ]; then
|
|
1117 if [ $# = 0 ]; then
|
|
1118 (echo \
|
|
1119 "$progname: You must give a value for the \`--${optname}' option,";
|
|
1120 echo \
|
|
1121 "as in \`--${optname}=`eval echo '$'$optname`-g -O'"
|
|
1122 echo "$short_usage") >&2
|
|
1123 exit 1
|
|
1124 fi
|
|
1125 val="$1"; shift
|
|
1126 fi
|
|
1127 eval "${opt}=\"${val}\""
|
|
1128 eval "${opt}_specified=1"
|
|
1129 ;;
|
|
1130
|
|
1131 ## Verbose flag, tested by autoconf macros.
|
|
1132 "verbose" )
|
|
1133 verbose=yes
|
|
1134 ;;
|
|
1135
|
|
1136 ## Does the user want to see the compiler output for feature tests?
|
|
1137 "extra_verbose" )
|
|
1138 ## Make sure the value given was either "yes" or "no".
|
|
1139 case "${val}" in
|
|
1140 y | ye | yes ) val=yes ;;
|
|
1141 n | no ) val=no ;;
|
|
1142 * )
|
|
1143 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1144 Set it to either \`yes' or \`no'."
|
|
1145 echo "${short_usage}") >&2
|
|
1146 exit 1
|
|
1147 ;;
|
|
1148 esac
|
|
1149 eval "${opt}=\"${val}\""
|
|
1150 ## --extra-verbose implies --verbose
|
|
1151 verbose=yes
|
|
1152 ;;
|
|
1153
|
|
1154 ## --no-create added by autoconf for use by config.status
|
|
1155 "no_create" )
|
|
1156 ;;
|
|
1157
|
|
1158 ## Has the user asked for some help?
|
|
1159 "usage" | "help" )
|
|
1160 if [ "x$PAGER" = x ]
|
|
1161 then
|
|
1162 echo "${short_usage}" | more
|
|
1163 else
|
|
1164 echo "${short_usage}" | $PAGER
|
|
1165 fi
|
|
1166 exit
|
|
1167 ;;
|
|
1168
|
|
1169 ## Has the user specified what toolkit to use for the menubars,
|
|
1170 ## scrollbar or dialogs?
|
|
1171 "with_menubars" | "with_scrollbars" | "with_dialogs" )
|
|
1172 ## value can be lucid, motif, or athena.
|
|
1173 case "${val}" in
|
|
1174 l | lu | luc | luci | lucid ) val=lucid ;;
|
|
1175 m | mo | mot | moti | motif ) val=motif ;;
|
|
1176 a | at | ath | athe | athen | athena ) val=athena ;;
|
|
1177 n | no | non | none ) val=no ;;
|
|
1178 * )
|
|
1179 (echo "${progname}: the \`--${optname}' option should have one of the values \`lucid', \`motif', \`athena', or \`no'."
|
|
1180 echo "${short_usage}") >&2
|
|
1181 exit 1
|
|
1182 ;;
|
|
1183 esac
|
|
1184 eval "${opt}=\"${val}\""
|
|
1185 ;;
|
|
1186
|
|
1187 ## Has the user disabled toolbar support?
|
|
1188 "with_toolbars" )
|
|
1189 ## Make sure the value given was either "yes" or "no".
|
|
1190 case "${val}" in
|
|
1191 y | ye | yes ) val=yes ;;
|
|
1192 n | no ) val=no ;;
|
|
1193 * )
|
|
1194 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1195 Set it to either \`yes' or \`no'."
|
|
1196 echo "${short_usage}") >&2
|
|
1197 exit 1
|
|
1198 ;;
|
|
1199 esac
|
|
1200 eval "${opt}=\"${val}\""
|
|
1201 ;;
|
|
1202
|
|
1203 ## Has the user disabled TTY support?
|
|
1204 "with_tty" )
|
|
1205 ## Make sure the value given was either "yes" or "no".
|
|
1206 case "${val}" in
|
|
1207 y | ye | yes ) val=yes ;;
|
|
1208 n | no ) val=no ;;
|
|
1209 * )
|
|
1210 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1211 Set it to either \`yes' or \`no'."
|
|
1212 echo "${short_usage}") >&2
|
|
1213 exit 1
|
|
1214 ;;
|
|
1215 esac
|
|
1216 eval "${opt}=\"${val}\""
|
|
1217 ;;
|
|
1218
|
|
1219 ## Has the user specified whether or not they want to use ToolTalk?
|
|
1220 "with_tooltalk" )
|
|
1221 ## Make sure the value given was either "yes" or "no".
|
|
1222 case "${val}" in
|
|
1223 y | ye | yes ) val=yes ;;
|
|
1224 n | no ) val=no ;;
|
|
1225 * )
|
|
1226 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1227 Set it to either \`yes' or \`no'."
|
|
1228 echo "${short_usage}") >&2
|
|
1229 exit 1
|
|
1230 ;;
|
|
1231 esac
|
|
1232 eval "${opt}=\"${val}\""
|
|
1233 ;;
|
|
1234
|
|
1235 ## Has the user specified whether or not they want Mocklisp support?
|
|
1236 "with_mocklisp" )
|
|
1237 ## Make sure the value given was either "yes" or "no".
|
|
1238 case "${val}" in
|
|
1239 y | ye | yes ) val=yes ;;
|
|
1240 n | no ) val=no ;;
|
|
1241 * )
|
|
1242 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1243 Set it to either \`yes' or \`no'."
|
|
1244 echo "${short_usage}") >&2
|
|
1245 exit 1
|
|
1246 ;;
|
|
1247 esac
|
|
1248 eval "${opt}=\"${val}\""
|
|
1249 ;;
|
|
1250
|
|
1251 ## Has the user specified whether or not they want to use SparcWorks?
|
|
1252 "with_sparcworks" )
|
|
1253 ## Make sure the value given was either "yes" or "no".
|
|
1254 case "${val}" in
|
|
1255 y | ye | yes ) val=yes ;;
|
|
1256 n | no ) val=no ;;
|
|
1257 * )
|
|
1258 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1259 Set it to either \`yes' or \`no'."
|
|
1260 echo "${short_usage}") >&2
|
|
1261 exit 1
|
|
1262 ;;
|
|
1263 esac
|
|
1264 eval "${opt}=\"${val}\""
|
|
1265 if [ "${with_sparcworks}" = "yes" ]; then
|
|
1266 with_tooltalk='yes'
|
|
1267 fi
|
|
1268 ;;
|
|
1269
|
|
1270 ## Does the user want usage tracking?
|
|
1271 "usage_tracking" )
|
|
1272 ## Make sure the value given was either "yes" or "no".
|
|
1273 case "${val}" in
|
|
1274 y | ye | yes ) val=yes ;;
|
|
1275 n | no ) val=no ;;
|
|
1276 * )
|
|
1277 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1278 Set it to either \`yes' or \`no'."
|
|
1279 echo "${short_usage}") >&2
|
|
1280 exit 1
|
|
1281 ;;
|
|
1282 esac
|
|
1283 eval "${opt}=\"${val}\""
|
|
1284 ;;
|
|
1285
|
|
1286 ## Does the user want additional debugging capability?
|
|
1287 "debug" )
|
|
1288 ## Make sure the value given was either "yes" or "no".
|
|
1289 case "${val}" in
|
|
1290 y | ye | yes ) val=yes ;;
|
|
1291 n | no ) val=no ;;
|
|
1292 * )
|
|
1293 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1294 Set it to either \`yes' or \`no'."
|
|
1295 echo "${short_usage}") >&2
|
|
1296 exit 1
|
|
1297 ;;
|
|
1298 esac
|
|
1299 eval "${opt}=\"${val}\""
|
|
1300 if [ "${debug}" = "yes" ]; then
|
|
1301 use_assertions='yes'
|
|
1302 memory_usage_stats='yes'
|
|
1303 fi
|
|
1304 ;;
|
|
1305
|
|
1306 ## Does the user want code for memory usage stats?
|
|
1307 "memory_usage_stats" )
|
|
1308 ## Make sure the value given was either "yes" or "no".
|
|
1309 case "${val}" in
|
|
1310 y | ye | yes ) val=yes ;;
|
|
1311 n | no ) val=no ;;
|
|
1312 * )
|
|
1313 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1314 Set it to either \`yes' or \`no'."
|
|
1315 echo "${short_usage}") >&2
|
|
1316 exit 1
|
|
1317 ;;
|
|
1318 esac
|
|
1319 eval "${opt}=\"${val}\""
|
|
1320 ;;
|
|
1321
|
|
1322 ## Has the user specified whether or not they want to use Energize?
|
|
1323 "with_energize" )
|
|
1324 ## Make sure the value given was either "yes" or "no".
|
|
1325 case "${val}" in
|
|
1326 y | ye | yes ) val=yes ;;
|
|
1327 n | no ) val=no ;;
|
|
1328 * )
|
|
1329 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1330 Set it to either \`yes' or \`no'."
|
|
1331 echo "${short_usage}") >&2
|
|
1332 exit 1
|
|
1333 ;;
|
|
1334 esac
|
|
1335 eval "${opt}=\"${val}\""
|
|
1336 if [ "${with_energize}" = "yes" ]; then
|
|
1337 with_menubars='lucid'
|
|
1338 with_scrollbars='motif'
|
|
1339 with_dialogs='motif'
|
|
1340 with_tooltalk='yes'
|
|
1341 internal_makefile_list="$internal_makefile_list lwlib/energize/Makefile.in"
|
|
1342 fi
|
|
1343 ;;
|
|
1344
|
|
1345 ## Fail on unrecognized arguments.
|
|
1346 * )
|
|
1347 (echo "${progname}: Error: unrecognized option ${arg}"
|
|
1348 echo ""
|
|
1349 echo "${short_usage}") >& 2
|
|
1350 exit 1
|
|
1351 ;;
|
|
1352
|
|
1353 esac
|
|
1354 ;;
|
|
1355
|
|
1356 ## Anything not starting with a hyphen we assume is a
|
|
1357 ## configuration name.
|
|
1358 *)
|
|
1359 configuration=${arg}
|
|
1360 ;;
|
|
1361
|
|
1362 esac
|
|
1363 done
|
|
1364
|
|
1365 ############################################################################
|
|
1366 # #
|
|
1367 # Finish options processing #
|
|
1368 # #
|
|
1369 ############################################################################
|
|
1370
|
|
1371 ### Get the arguments back. See the diatribe on Shell Magic above.
|
|
1372 eval set x "$quoted_arguments"; shift
|
|
1373
|
|
1374 if [ "${configuration}" = "" ]; then
|
|
1375 echo '- You did not tell me what kind of host system you want to configure.
|
|
1376 - I will attempt to guess the kind of system this is.' 1>&2
|
|
1377 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
|
|
1378 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then
|
|
1379 echo "- Looks like this is a ${configuration}" 1>&2
|
|
1380 else
|
|
1381 echo '- Failed to guess the system type. You need to tell me.' 1>&2
|
|
1382 echo "${short_usage}" >&2
|
|
1383 exit 1
|
|
1384 fi
|
|
1385 fi
|
|
1386
|
|
1387 ############################################################################
|
|
1388 # #
|
|
1389 # Handle --srcdir #
|
|
1390 # #
|
|
1391 ############################################################################
|
|
1392
|
|
1393 #### Decide where the source is.
|
|
1394 case "${srcdir}" in
|
|
1395
|
|
1396 ## If it's not specified, see if `.' or `..' might work.
|
|
1397 "" )
|
|
1398 confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
|
|
1399 if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then
|
|
1400 srcdir="${confdir}"
|
|
1401 else
|
|
1402 if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
|
|
1403 srcdir='.'
|
|
1404 else
|
|
1405 if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then
|
|
1406 srcdir='..'
|
|
1407 else
|
|
1408 (echo "\
|
|
1409 ${progname}: Neither the current directory nor its parent seem to
|
|
1410 contain the XEmacs sources. If you do not want to build XEmacs in its
|
|
1411 source tree, you should run \`${progname}' in the directory in which
|
|
1412 you wish to build XEmacs, using its \`--srcdir' option to say where the
|
|
1413 sources may be found."
|
|
1414 echo "${short_usage}") >&2
|
|
1415 exit 1
|
|
1416 fi
|
|
1417 fi
|
|
1418 fi
|
|
1419 ;;
|
|
1420
|
|
1421 ## Otherwise, check if the directory they specified is okay.
|
|
1422 * )
|
|
1423 if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then
|
|
1424 (echo "\
|
|
1425 ${progname}: The directory specified with the \`--srcdir' option,
|
|
1426 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should
|
|
1427 either run the \`${progname}' script at the top of the XEmacs source
|
|
1428 tree, or use the \`--srcdir' option to specify where the XEmacs sources
|
|
1429 are."
|
|
1430 echo "${short_usage}") >&2
|
|
1431 exit 1
|
|
1432 fi
|
|
1433 ;;
|
|
1434 esac
|
|
1435
|
|
1436 ## We check for this now instead of later when we check for other
|
|
1437 ## programs because we need to use its return value now.
|
|
1438 ] AC_LN_S
|
|
1439
|
|
1440 AC_VERBOSE("setting LN_S to ${LN_S}")
|
|
1441 [
|
|
1442 #### Make symlinks for etc, lisp, and info directories while the path
|
|
1443 #### is still relative. We don't symlink lock because someone may
|
|
1444 #### have stuck the source on a read-only partition. Instead we'll
|
|
1445 #### create it as an actual directory later on if it doesn't already
|
|
1446 #### exist.
|
28
|
1447 for dir in lisp etc man info site-lisp
|
0
|
1448 do
|
|
1449 if [ ! -d $dir ]; then
|
|
1450 echo Making symbolic link to ${srcdir}/$dir
|
|
1451 ${LN_S} ${srcdir}/$dir .
|
|
1452 fi
|
|
1453 done
|
|
1454
|
|
1455 #### Make srcdir absolute, if it isn't already. It's important to
|
|
1456 #### avoid running the path through pwd unnecessary, since pwd can
|
|
1457 #### give you automounter prefixes, which can go away.
|
|
1458 case "${srcdir}" in
|
|
1459 /* ) ;;
|
|
1460 . )
|
|
1461 ## We may be able to use the $PWD environment variable to make this
|
|
1462 ## absolute. But sometimes PWD is inaccurate.
|
|
1463 if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ] ; then
|
|
1464 srcdir="$PWD"
|
|
1465 else
|
|
1466 srcdir="`(cd ${srcdir}; pwd)`"
|
|
1467 fi
|
|
1468 ;;
|
|
1469 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
|
|
1470 esac
|
|
1471
|
|
1472 #### Check if the source directory already has a configured system in it.
|
|
1473 if [ `pwd` != `sh -c cd ${srcdir} && pwd` ] \
|
|
1474 && [ -f "${srcdir}/src/config.h" ] ; then
|
|
1475 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
|
|
1476 echo " as a build directory right now; it has been configured in its own"
|
|
1477 echo " right. To configure in another directory as well, you MUST"
|
|
1478 echo " use GNU make. If you do not have GNU make, then you must"
|
|
1479 echo " now do \`make distclean' in ${srcdir},"
|
|
1480 echo " and then run ${progname} again.") >&2
|
|
1481 extrasub='/^VPATH[ ]*=/c\
|
|
1482 vpath %.c $(srcdir)\
|
|
1483 vpath %.h $(srcdir)\
|
|
1484 vpath %.y $(srcdir)\
|
|
1485 vpath %.l $(srcdir)\
|
|
1486 vpath %.s $(srcdir)\
|
|
1487 vpath %.in $(srcdir)'
|
|
1488 fi
|
|
1489
|
|
1490 ### Make the necessary directories, if they don't exist.
|
|
1491 for dir in ./src ./lib-src ./dynodump ./man ./lwlib ./lock ; do
|
|
1492 if [ ! -d ${dir} ]; then
|
|
1493 mkdir ${dir}
|
|
1494 fi
|
|
1495 done
|
|
1496 if [ "${with_energize}" = "yes" ] && [ ! -d ./lwlib/energize ] ; then
|
|
1497 mkdir ./lwlib/energize
|
|
1498 fi
|
|
1499
|
|
1500 ############################################################################
|
|
1501 # #
|
|
1502 # Determine the s&m files to use #
|
|
1503 # #
|
|
1504 ############################################################################
|
|
1505
|
|
1506 #### Given the configuration name, set machfile and opsysfile to the
|
|
1507 #### names of the m/*.h and s/*.h files we should use.
|
|
1508
|
|
1509 ### Canonicalize the configuration name.
|
|
1510 echo "checking the configuration name"
|
|
1511 # allow -energize prefix on configuration name
|
|
1512 internal_configuration=`echo ${configuration} | sed 's/-energize//'`
|
|
1513 # allow --sparcworks prefix on configuration name
|
|
1514 internal_configuration=`echo ${configuration} | sed 's/-sparcworks//'`
|
|
1515 if canonical=`${srcdir}/config.sub "${internal_configuration}"` ; then : ; else
|
|
1516 exit $?
|
|
1517 fi
|
|
1518
|
|
1519 ### If you add support for a new configuration, add code to this
|
|
1520 ### switch statement to recognize your configuration name and select
|
|
1521 ### the appropriate operating system and machine description files.
|
|
1522
|
|
1523 ### You would hope that you could choose an m/*.h file pretty much
|
|
1524 ### based on the machine portion of the configuration name, and an s-
|
|
1525 ### file based on the operating system portion. However, it turns out
|
|
1526 ### that each m/*.h file is pretty manufacturer-specific - for
|
|
1527 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
|
|
1528 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
|
|
1529 ### machines. So we basically have to have a special case for each
|
|
1530 ### configuration name.
|
|
1531 ###
|
|
1532 ### As far as handling version numbers on operating systems is
|
|
1533 ### concerned, make sure things will fail in a fixable way. If
|
|
1534 ### /etc/MACHINES doesn't say anything about version numbers, be
|
|
1535 ### prepared to handle anything reasonably. If version numbers
|
|
1536 ### matter, be sure /etc/MACHINES says something about it.
|
|
1537 ###
|
|
1538 ### Eric Raymond says we should accept strings like "sysvr4" to mean
|
|
1539 ### "System V Release 4"; he writes, "The old convention encouraged
|
|
1540 ### confusion between `system' and `release' levels'."
|
8
|
1541 ###
|
|
1542 ### We rely on cpp to generate makefiles from Makefile.in.in templates.
|
|
1543 ### There is at least one drawback to that. Since cpp generally has
|
|
1544 ### built-in macro definitions like `#define unix' or `#define i386',
|
|
1545 ### we must be careful to prevent it from substituting these occurences
|
|
1546 ### in certain places in the makefiles. Pathnames for architecture-
|
|
1547 ### specific files come to mind.
|
|
1548 ### This is where CPPFLAGS_MAKEFILEGEN comes in. We try to selectively
|
|
1549 ### disable (potentially) predefined macros that we find to be part of
|
|
1550 ### the configuration string.
|
|
1551 ### This is but a poor method to help us fight off cpp, but it covers
|
|
1552 ### those cases that used to bite me. <mdiers@logware.de>
|
|
1553
|
|
1554 CPPFLAGS_MAKEFILEGEN="" # we normally do not need any extra flags
|
0
|
1555
|
|
1556 machine='' opsys='' unported=no need_dynodump=no
|
|
1557 case "${canonical}" in
|
|
1558
|
|
1559 ## NetBSD ports
|
|
1560 *-*-netbsd* )
|
|
1561 opsys=netbsd
|
|
1562 case "${canonical}" in
|
|
1563 sparc-*-netbsd*) machine=sparc ;;
|
|
1564 i[3-9]86-*-netbsd*) machine=intel386 ;;
|
|
1565 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
|
|
1566 # Yes, this is somewhat bogus.
|
|
1567 machine=hp9000s300 ;;
|
|
1568 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
|
|
1569 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
|
|
1570 esac
|
|
1571 ;;
|
|
1572
|
|
1573 ## Acorn RISCiX:
|
|
1574 arm-acorn-riscix1.1* )
|
|
1575 machine=acorn opsys=riscix1-1
|
|
1576 ;;
|
|
1577 arm-acorn-riscix1.2* | arm-acorn-riscix )
|
|
1578 machine=acorn opsys=riscix1-2
|
|
1579 ;;
|
|
1580
|
|
1581 ## Alliant machines
|
|
1582 ## Strictly speaking, we need the version of the alliant operating
|
|
1583 ## system to choose the right machine file, but currently the
|
|
1584 ## configuration name doesn't tell us enough to choose the right
|
|
1585 ## one; we need to give alliants their own operating system name to
|
|
1586 ## do this right. When someone cares, they can help us.
|
|
1587 fx80-alliant-* )
|
|
1588 machine=alliant4 opsys=bsd4-2
|
|
1589 ;;
|
|
1590 i860-alliant-* )
|
|
1591 machine=alliant-2800 opsys=bsd4-3
|
|
1592 ;;
|
|
1593
|
|
1594 ## Alpha (DEC) machines.
|
|
1595 ## XEmacs change: split apart into numerous files.
|
|
1596 alpha-dec-osf1.3 | alpha-dec-osf2* )
|
|
1597 machine=alpha opsys=decosf1-3
|
|
1598 ;;
|
|
1599 alpha-dec-osf1.2 | alpha-dec-osf1* )
|
|
1600 machine=alpha opsys=decosf1-2
|
|
1601 ;;
|
|
1602
|
|
1603 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu)
|
|
1604 alpha-dec-osf3.[2-9] )
|
|
1605 machine=alpha opsys=decosf3-2
|
|
1606 ;;
|
|
1607 alpha-dec-osf3* )
|
|
1608 machine=alpha opsys=decosf3-1
|
|
1609 ;;
|
|
1610
|
|
1611 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu)
|
|
1612 alpha-dec-osf4* )
|
|
1613 machine=alpha opsys=decosf4-0
|
|
1614 ;;
|
|
1615
|
|
1616 alpha-*-linux* )
|
|
1617 machine=alpha opsys=linux
|
|
1618 ;;
|
|
1619
|
|
1620 ## Altos 3068
|
|
1621 m68*-altos-sysv* )
|
|
1622 machine=altos opsys=usg5-2
|
|
1623 ;;
|
|
1624
|
|
1625 ## Amdahl UTS
|
|
1626 580-amdahl-sysv* )
|
|
1627 machine=amdahl opsys=usg5-2-2
|
|
1628 ;;
|
|
1629
|
|
1630 ## Apollo, Domain/OS
|
|
1631 m68*-apollo-* )
|
|
1632 machine=apollo opsys=bsd4-3
|
|
1633 ;;
|
|
1634
|
|
1635 ## AT&T 3b2, 3b5, 3b15, 3b20
|
|
1636 we32k-att-sysv* )
|
|
1637 machine=att3b opsys=usg5-2-2
|
|
1638 ;;
|
|
1639
|
|
1640 ## AT&T 3b1 - The Mighty Unix PC!
|
|
1641 m68*-att-sysv* )
|
|
1642 machine=7300 opsys=usg5-2-2
|
|
1643 ;;
|
|
1644
|
|
1645 ## Bull dpx20
|
|
1646 rs6000-bull-bosx* )
|
|
1647 machine=ibmrs6000 opsys=aix3-2
|
|
1648 ;;
|
|
1649
|
|
1650 ## Bull dpx2
|
|
1651 m68*-bull-sysv3* )
|
|
1652 machine=dpx2 opsys=usg5-3
|
|
1653 ;;
|
|
1654
|
|
1655 ## Bull sps7
|
|
1656 m68*-bull-sysv2* )
|
|
1657 machine=sps7 opsys=usg5-2
|
|
1658 ;;
|
|
1659
|
|
1660 ## CCI 5/32, 6/32 -- see "Tahoe".
|
|
1661
|
|
1662 ## Celerity
|
|
1663 ## I don't know what configuration name to use for this; config.sub
|
|
1664 ## doesn't seem to know anything about it. Hey, Celerity users, get
|
|
1665 ## in touch with us!
|
|
1666 celerity-celerity-bsd* )
|
|
1667 machine=celerity opsys=bsd4-2
|
|
1668 ;;
|
|
1669
|
|
1670 ## Clipper
|
|
1671 ## What operating systems does this chip run that XEmacs has been
|
|
1672 ## tested on?
|
|
1673 clipper-* )
|
|
1674 machine=clipper
|
|
1675 ## We'll use the catch-all code at the bottom to guess the
|
|
1676 ## operating system.
|
|
1677 ;;
|
|
1678
|
|
1679 ## Convex
|
|
1680 *-convex-bsd* | *-convex-convexos* )
|
|
1681 machine=convex opsys=bsd4-3
|
|
1682 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
|
|
1683 NON_GNU_CPP="cc -E -P"
|
|
1684 ;;
|
|
1685
|
|
1686 ## Cubix QBx/386
|
|
1687 i[3-9]86-cubix-sysv* )
|
|
1688 machine=intel386 opsys=usg5-3
|
|
1689 ;;
|
|
1690
|
|
1691 ## Cydra 5
|
|
1692 cydra*-cydrome-sysv* )
|
|
1693 machine=cydra5 opsys=usg5-3
|
|
1694 ;;
|
|
1695
|
|
1696 ## Data General AViiON Machines
|
16
|
1697 i586-dg-dgux5.4R4* | i586-dg-dgux5.4.4* )
|
|
1698 machine=aviion opsys=dgux5-4r4
|
|
1699 ;;
|
0
|
1700 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
|
|
1701 machine=aviion opsys=dgux5-4r3
|
|
1702 ;;
|
|
1703 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
|
|
1704 machine=aviion opsys=dgux5-4r2
|
|
1705 ;;
|
|
1706 m88k-dg-dgux* )
|
|
1707 machine=aviion opsys=dgux
|
|
1708 ;;
|
|
1709
|
|
1710 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
|
|
1711 machine=pmax opsys=bsd4-2
|
|
1712 ;;
|
|
1713 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
|
|
1714 machine=pmax opsys=bsd4-3
|
|
1715 ;;
|
|
1716 mips-dec-ultrix* )
|
|
1717 machine=pmax opsys=ultrix4-3
|
|
1718 ;;
|
|
1719 mips-dec-osf* )
|
|
1720 machine=pmax opsys=osf1
|
|
1721 ;;
|
|
1722 mips-dec-mach_bsd4.3* )
|
|
1723 machine=pmax opsys=mach-bsd4-3
|
|
1724 ;;
|
|
1725
|
|
1726 ## Motorola Delta machines
|
|
1727 m68k-motorola-sysv* | m68000-motorola-sysv* )
|
|
1728 machine=delta opsys=usg5-3
|
|
1729 if test -z "`type gnucc | grep 'not found'`"
|
|
1730 then
|
|
1731 if test -s /etc/167config
|
|
1732 then CC="gnucc -m68040"
|
|
1733 else CC="gnucc -m68881"
|
|
1734 fi
|
|
1735 else
|
|
1736 if test -z "`type gcc | grep 'not found'`"
|
|
1737 then CC=gcc
|
|
1738 else CC=cc
|
|
1739 fi
|
|
1740 fi
|
|
1741 ;;
|
|
1742 m88k-motorola-sysv4* )
|
|
1743 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
|
|
1744 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
|
|
1745 # I hope there are not other 4.0 versions for this machine
|
|
1746 # which really need usg5-4 instead.
|
|
1747 machine=delta88k opsys=usg5-4-2
|
|
1748 ;;
|
|
1749 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
|
|
1750 machine=delta88k opsys=usg5-3
|
|
1751 ;;
|
|
1752
|
|
1753 ## Dual machines
|
|
1754 m68*-dual-sysv* )
|
|
1755 machine=dual opsys=usg5-2
|
|
1756 ;;
|
|
1757 m68*-dual-uniplus* )
|
|
1758 machine=dual opsys=unipl5-2
|
|
1759 ;;
|
|
1760
|
|
1761 ## Elxsi 6400
|
|
1762 elxsi-elxsi-sysv* )
|
|
1763 machine=elxsi opsys=usg5-2
|
|
1764 ;;
|
|
1765
|
|
1766 ## Encore machines
|
|
1767 ns16k-encore-bsd* )
|
|
1768 machine=ns16000 opsys=umax
|
|
1769 ;;
|
|
1770
|
|
1771 ## The GEC 93 - apparently, this port isn't really finished yet.
|
|
1772
|
|
1773 ## Gould Power Node and NP1
|
|
1774 pn-gould-bsd4.2* )
|
|
1775 machine=gould opsys=bsd4-2
|
|
1776 ;;
|
|
1777 pn-gould-bsd4.3* )
|
|
1778 machine=gould opsys=bsd4-3
|
|
1779 ;;
|
|
1780 np1-gould-bsd* )
|
|
1781 machine=gould-np1 opsys=bsd4-3
|
|
1782 ;;
|
|
1783
|
|
1784 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
|
|
1785 ## as far as XEmacs is concerned).
|
|
1786 m88k-harris-cxux* )
|
|
1787 # Build needs to be different on 7.0 and later releases
|
|
1788 case "`uname -r`" in
|
|
1789 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
|
|
1790 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
|
|
1791 esac
|
|
1792 NON_GNU_CPP="/lib/cpp"
|
|
1793 ;;
|
|
1794 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
|
|
1795 m68k-harris-cxux* )
|
|
1796 machine=nh3000 opsys=cxux
|
|
1797 ;;
|
|
1798 ## Harris power pc NightHawk running Power UNIX (Series 6000)
|
|
1799 powerpc-harris-powerunix )
|
|
1800 machine=nh6000 opsys=powerunix
|
|
1801 NON_GNU_CPP="cc -Xo -E -P"
|
|
1802 ;;
|
|
1803
|
|
1804 ## Honeywell XPS100
|
|
1805 xps*-honeywell-sysv* )
|
|
1806 machine=xps100 opsys=usg5-2
|
|
1807 ;;
|
|
1808
|
|
1809 ## HP 9000 series 200 or 300
|
|
1810 m68*-hp-bsd* )
|
|
1811 machine=hp9000s300 opsys=bsd4-3
|
|
1812 ;;
|
|
1813 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
|
|
1814 m68*-hp-hpux* )
|
|
1815 NON_GNU_CPP="cc -Aa -E"
|
|
1816 NON_GNU_CC="cc -Aa"
|
|
1817 case "`uname -r`" in
|
|
1818 ## Someone's system reports A.B8.05 for this.
|
|
1819 ## I wonder what other possibilities there are.
|
|
1820 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
|
|
1821 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
|
|
1822 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
|
|
1823 *.10.* ) machine=hp9000s300 opsys=hpux10 ;;
|
|
1824 *) machine=hp9000s300 opsys=hpux ;;
|
|
1825 esac
|
|
1826 ;;
|
|
1827
|
|
1828 ## HP 9000 series 700 and 800, running HP/UX
|
|
1829 ## XEmacs changes here for shared.
|
|
1830 hppa*-hp-hpux7* )
|
|
1831 machine=hp800 opsys=hpux NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1832 ;;
|
10
|
1833 hppa*-hp-hpux8*shr* )
|
|
1834 machine=hp800 opsys=hpux8*shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
0
|
1835 ;;
|
|
1836 hppa*-hp-hpux8* )
|
|
1837 machine=hp800 opsys=hpux8 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1838 ;;
|
10
|
1839 hppa*-hp-hpux9*shr* )
|
|
1840 machine=hp800 opsys=hpux9*shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
0
|
1841 ;;
|
|
1842 hppa*-hp-hpux9* )
|
|
1843 machine=hp800 opsys=hpux9 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1844 ;;
|
10
|
1845 hppa*-hp-hpux10*shr* )
|
|
1846 machine=hp800 opsys=hpux10*shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
0
|
1847 ;;
|
|
1848 hppa*-hp-hpux10* )
|
|
1849 machine=hp800 opsys=hpux10 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1850 ;;
|
|
1851
|
|
1852 ## HP 9000 series 700 and 800, running HP/UX
|
|
1853 hppa*-hp-hpux* )
|
|
1854 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1855 ## Cross-compilation? Nah!
|
|
1856 case "`uname -r`" in
|
|
1857 ## Someone's system reports A.B8.05 for this.
|
|
1858 ## I wonder what other possibilities there are.
|
|
1859 *.B8.* ) machine=hp800 opsys=hpux8 ;;
|
|
1860 *.08.* ) machine=hp800 opsys=hpux8 ;;
|
|
1861 *.09.* ) machine=hp800 opsys=hpux9 ;;
|
|
1862 *.10.* ) machine=hp800 opsys=hpux10 ;;
|
|
1863 *) machine=hp800 opsys=hpux ;;
|
|
1864 esac
|
|
1865 ;;
|
|
1866 hppa-*-nextstep* )
|
|
1867 machine=hp800 opsys=nextstep
|
|
1868 ;;
|
|
1869
|
|
1870 ## Orion machines
|
|
1871 orion-orion-bsd* )
|
|
1872 machine=orion opsys=bsd4-2
|
|
1873 ;;
|
|
1874 clipper-orion-bsd* )
|
|
1875 machine=orion105 opsys=bsd4-2
|
|
1876 ;;
|
|
1877
|
|
1878 ## IBM machines
|
|
1879 i[3-9]86-ibm-aix1.1* )
|
|
1880 machine=ibmps2-aix opsys=usg5-2-2
|
|
1881 ;;
|
|
1882 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* )
|
|
1883 machine=ibmps2-aix opsys=usg5-3
|
|
1884 ;;
|
|
1885 i370-ibm-aix*)
|
|
1886 machine=ibm370aix opsys=usg5-3
|
|
1887 ;;
|
|
1888 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
|
|
1889 machine=ibmrs6000 opsys=aix3-1
|
|
1890 ;;
|
|
1891 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
|
|
1892 machine=ibmrs6000 opsys=aix3-2-5
|
|
1893 ;;
|
|
1894 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
|
|
1895 machine=ibmrs6000 opsys=aix4-1
|
|
1896 ;;
|
|
1897 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
|
|
1898 machine=ibmrs6000 opsys=aix4
|
|
1899 ;;
|
|
1900 rs6000-ibm-aix* | powerpc-ibm-aix* )
|
|
1901 machine=ibmrs6000 opsys=aix3-2
|
|
1902 ;;
|
|
1903 romp-ibm-bsd4.3* )
|
|
1904 machine=ibmrt opsys=bsd4-3
|
|
1905 ;;
|
|
1906 romp-ibm-bsd4.2* )
|
|
1907 machine=ibmrt opsys=bsd4-2
|
|
1908 ;;
|
|
1909 romp-ibm-aos4.3* )
|
|
1910 machine=ibmrt opsys=bsd4-3
|
|
1911 ;;
|
|
1912 romp-ibm-aos4.2* )
|
|
1913 machine=ibmrt opsys=bsd4-2
|
|
1914 ;;
|
|
1915 romp-ibm-aos* )
|
|
1916 machine=ibmrt opsys=bsd4-3
|
|
1917 ;;
|
|
1918 romp-ibm-bsd* )
|
|
1919 machine=ibmrt opsys=bsd4-3
|
|
1920 ;;
|
|
1921 romp-ibm-aix* )
|
|
1922 machine=ibmrt-aix opsys=usg5-2-2
|
|
1923 ;;
|
|
1924 romp-ibm-mach* )
|
|
1925 machine=ibmrt opsys=mach-bsd4-3
|
|
1926 ;;
|
|
1927
|
|
1928 ## Integrated Solutions `Optimum V'
|
|
1929 m68*-isi-bsd4.2* )
|
|
1930 machine=isi-ov opsys=bsd4-2
|
|
1931 ;;
|
|
1932 m68*-isi-bsd4.3* )
|
|
1933 machine=isi-ov opsys=bsd4-3
|
|
1934 ;;
|
|
1935
|
|
1936 ## Intel 386 machines where we do care about the manufacturer
|
|
1937 i[3-9]86-intsys-sysv* )
|
|
1938 machine=is386 opsys=usg5-2-2
|
|
1939 ;;
|
|
1940
|
|
1941 ## Prime EXL
|
|
1942 i[3-9]86-prime-sysv* )
|
|
1943 machine=i386 opsys=usg5-3
|
|
1944 ;;
|
|
1945
|
|
1946 ## Sequent Symmetry running Dynix
|
|
1947 i[3-9]86-sequent-bsd* )
|
|
1948 machine=symmetry opsys=bsd4-3
|
|
1949 ;;
|
|
1950
|
|
1951 ## Sequent Symmetry running DYNIX/ptx
|
|
1952 ## Use the old cpp rather than the newer ANSI one.
|
|
1953 i[3-9]86-sequent-ptx* )
|
|
1954 machine=sequent-ptx opsys=ptx
|
|
1955 NON_GNU_CPP="/lib/cpp"
|
|
1956 ;;
|
|
1957
|
|
1958 ## Unspecified sysv on an ncr machine defaults to svr4.2.
|
|
1959 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
|
|
1960 i[3-9]86-ncr-sysv* )
|
|
1961 machine=ncr386 opsys=usg5-4-2
|
|
1962 ;;
|
|
1963
|
|
1964 ## Intel Paragon OSF/1
|
|
1965 i860-intel-osf1* )
|
|
1966 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
|
|
1967 ;;
|
|
1968
|
|
1969 ## Intel 860
|
|
1970 i860-*-sysv4* )
|
|
1971 machine=i860 opsys=usg5-4
|
|
1972 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
|
|
1973 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
|
|
1974 ;;
|
|
1975
|
|
1976 ## Masscomp machines
|
|
1977 m68*-masscomp-rtu* )
|
|
1978 machine=masscomp opsys=rtu
|
|
1979 ;;
|
|
1980
|
|
1981 ## Megatest machines
|
|
1982 m68*-megatest-bsd* )
|
|
1983 machine=mega68 opsys=bsd4-2
|
|
1984 ;;
|
|
1985
|
|
1986 ## Workstations sold by MIPS
|
|
1987 ## This is not necessarily all workstations using the MIPS processor -
|
|
1988 ## Irises are produced by SGI, and DECstations by DEC.
|
|
1989
|
|
1990 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
|
|
1991 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
|
|
1992 ## it gives for choosing between the alternatives seems to be "Use
|
|
1993 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
|
|
1994 ## the BSD world." I'll assume that these are instructions for
|
|
1995 ## handling two odd situations, and that every other situation
|
|
1996 ## should use mips.h and usg5-2-2, they being listed first.
|
|
1997 mips-mips-usg* )
|
|
1998 machine=mips4
|
|
1999 ## Fall through to the general code at the bottom to decide on the OS.
|
|
2000 ;;
|
|
2001 mips-mips-riscos4* )
|
|
2002 machine=mips4 opsys=bsd4-3
|
|
2003 NON_GNU_CC="cc -systype bsd43"
|
|
2004 NON_GNU_CPP="cc -systype bsd43 -E"
|
|
2005 ;;
|
|
2006 mips-mips-riscos5* )
|
|
2007 machine=mips4 opsys=riscos5
|
|
2008 NON_GNU_CC="cc -systype bsd43"
|
|
2009 NON_GNU_CPP="cc -systype bsd43 -E"
|
|
2010 ;;
|
|
2011 mips-mips-bsd* )
|
|
2012 machine=mips opsys=bsd4-3
|
|
2013 ;;
|
|
2014 mips-mips-* )
|
|
2015 machine=mips opsys=usg5-2-2
|
|
2016 ;;
|
|
2017
|
|
2018 ## NeXT
|
|
2019 m68*-next-* | m68k-*-nextstep* )
|
|
2020 machine=m68k opsys=nextstep
|
|
2021 ;;
|
|
2022
|
|
2023 ## The complete machine from National Semiconductor
|
|
2024 ns32k-ns-genix* )
|
|
2025 machine=ns32000 opsys=usg5-2
|
|
2026 ;;
|
|
2027
|
|
2028 ## NCR machines
|
|
2029 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
|
|
2030 machine=tower32 opsys=usg5-2-2
|
|
2031 ;;
|
|
2032 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
|
|
2033 machine=tower32v3 opsys=usg5-3
|
|
2034 ;;
|
|
2035
|
|
2036 ## Nixdorf Targon 31
|
|
2037 m68*-nixdorf-sysv* )
|
|
2038 machine=targon31 opsys=usg5-2-2
|
|
2039 ;;
|
|
2040
|
|
2041 ## Nu (TI or LMI)
|
|
2042 m68*-nu-sysv* )
|
|
2043 machine=nu opsys=usg5-2
|
|
2044 ;;
|
|
2045
|
|
2046 ## Plexus
|
|
2047 m68*-plexus-sysv* )
|
|
2048 machine=plexus opsys=usg5-2
|
|
2049 ;;
|
|
2050
|
|
2051 ## Pyramid machines
|
|
2052 ## I don't really have any idea what sort of processor the Pyramid has,
|
|
2053 ## so I'm assuming it is its own architecture.
|
|
2054 pyramid-pyramid-bsd* )
|
|
2055 machine=pyramid opsys=bsd4-2
|
|
2056 ;;
|
|
2057
|
|
2058 ## Sequent Balance
|
|
2059 ns32k-sequent-bsd4.2* )
|
|
2060 machine=sequent opsys=bsd4-2
|
|
2061 ;;
|
|
2062 ns32k-sequent-bsd4.3* )
|
|
2063 machine=sequent opsys=bsd4-3
|
|
2064 ;;
|
|
2065
|
|
2066 ## Siemens Nixdorf
|
|
2067 mips-siemens-sysv* | mips-sni-sysv*)
|
|
2068 machine=mips-siemens opsys=usg5-4
|
|
2069 NON_GNU_CC=/usr/ccs/bin/cc
|
|
2070 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
2071 ;;
|
|
2072
|
|
2073 ## Silicon Graphics machines
|
|
2074 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
|
|
2075 m68*-sgi-iris3.5* )
|
|
2076 machine=irist opsys=iris3-5
|
|
2077 ;;
|
|
2078 m68*-sgi-iris3.6* | m68*-sgi-iris*)
|
|
2079 machine=irist opsys=iris3-6
|
|
2080 ;;
|
|
2081 ## Iris 4D
|
|
2082 mips-sgi-irix3.* )
|
|
2083 machine=iris4d opsys=irix3-3
|
|
2084 ;;
|
|
2085 mips-sgi-irix4.* )
|
|
2086 machine=iris4d opsys=irix4-0
|
|
2087 ;;
|
|
2088 mips-sgi-irix6* )
|
16
|
2089 machine=iris4d opsys=irix6-0
|
0
|
2090 ;;
|
|
2091 mips-sgi-irix5.[3-9]* )
|
|
2092 machine=iris4d opsys=irix5-3
|
|
2093 ;;
|
|
2094 mips-sgi-irix5.2* )
|
|
2095 machine=iris4d opsys=irix5-2
|
|
2096 ;;
|
|
2097 mips-sgi-irix5.1* )
|
|
2098 machine=iris4d opsys=irix5-1
|
|
2099 ;;
|
|
2100 mips-sgi-irix5.* | mips-sgi-irix* )
|
|
2101 machine=iris4d opsys=irix5-0
|
|
2102 ;;
|
|
2103
|
|
2104 ## SONY machines
|
|
2105 m68*-sony-bsd4.2* )
|
|
2106 machine=news opsys=bsd4-2
|
|
2107 ;;
|
|
2108 m68*-sony-bsd4.3* )
|
|
2109 machine=news opsys=bsd4-3
|
|
2110 ;;
|
|
2111 m68*-sony-newsos3* | m68*-sony-news3*)
|
|
2112 machine=news opsys=bsd4-3
|
|
2113 ;;
|
|
2114 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
|
|
2115 machine=news-risc opsys=bsd4-3
|
|
2116 ;;
|
|
2117 mips-sony-news* )
|
|
2118 machine=news-risc opsys=newsos5
|
|
2119 ;;
|
|
2120
|
|
2121 ## Stride
|
|
2122 m68*-stride-sysv* )
|
|
2123 machine=stride opsys=usg5-2
|
|
2124 ;;
|
|
2125
|
|
2126 ## Suns
|
|
2127 sparc-*-linux* )
|
|
2128 machine=sparc opsys=linux
|
|
2129 ;;
|
|
2130
|
|
2131 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
2132 # Hardware type
|
|
2133 case "${canonical}" in
|
|
2134 m68*-sunos1* ) machine=sun1 ;;
|
|
2135 m68*-sunos2* ) machine=sun2 ;;
|
|
2136 m68* ) machine=sun3 ;;
|
|
2137 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
2138 i[3-9]86-*-* ) machine=intel386 ;;
|
|
2139 rs6000* ) machine=rs6000 ;;
|
|
2140 sparc* ) machine=sparc ;;
|
|
2141 powerpc* ) machine=powerpc ;;
|
|
2142 * ) unported=yes ;;
|
|
2143 esac
|
|
2144
|
|
2145 # Make `canonical' even more so.
|
|
2146 case "${canonical}" in *-sunos5*)
|
|
2147 canonical="`echo \"${canonical}\" | sed -e s/sunos5/solaris2/`";
|
|
2148 esac
|
|
2149
|
|
2150 # On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib
|
|
2151 # On SunOS 5, use /usr/ccs/lib/cpp, need dynodump, RANLIB not needed
|
|
2152 # But, SunOS 5.6 no longer needs dynodump because it has a similar
|
|
2153 # function integrated.
|
|
2154 case "${canonical}" in
|
|
2155 *-sunos4* )
|
|
2156 test -x /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
2157 *-solaris2.6* )
|
|
2158 test -x /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
2159 RANLIB=':'
|
|
2160 need_dynodump=no ;;
|
|
2161 *-solaris2* )
|
|
2162 test -x /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
2163 RANLIB=':'
|
|
2164 need_dynodump=yes ;;
|
|
2165 esac
|
|
2166
|
|
2167 # (NON)?_GCC_TEST_OPTIONS variables are unused.
|
|
2168 # What were they supposed to do, exactly?
|
|
2169 # case "${canonical}" in
|
|
2170 # *-sunos4* ) GCC_TEST_OPTIONS=-static NON_GCC_TEST_OPTIONS=-bstatic ;;
|
|
2171 # esac
|
|
2172
|
|
2173 # FSF 19.31 has NON_GNU_CPP=/usr/lib/cpp for SunOS 4.x.
|
|
2174
|
|
2175 case "${canonical}" in
|
|
2176 ## The Sun386 didn't get past 4.0.
|
|
2177 i[3-9]86-*-sunos4 ) opsys=sunos4-0 ;;
|
10
|
2178 *-sunos4*shr* ) opsys=sunos4-0-shr ;;
|
|
2179 *-sunos4-0*shr* ) opsys=sunos4-0-shr ;;
|
|
2180 *-sunos4-1*shr* ) opsys=sunos4-1-shr ;;
|
|
2181 *-sunos4-1-2*shr* ) opsys=sunos4-1-2-shr ;;
|
32
|
2182 *-sunos4-1-3*shr* ) opsys=sunos4-1-3-shr ;;
|
|
2183 *-sunos4-1-[4-9]*shr* ) opsys=sunos4-1-4-shr ;;
|
2
|
2184 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
2185 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
32
|
2186 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
|
|
2187 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
|
0
|
2188 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
2189
|
|
2190 *-solaris2.3* ) opsys=sol2-3 ;;
|
|
2191 *-solaris2.4* ) opsys=sol2-4 ;;
|
|
2192 *-solaris2.5* ) opsys=sol2-5 ;;
|
|
2193 *-solaris2.[6-9]* ) opsys=sol2-6 ;;
|
|
2194 *-solaris* ) opsys=sol2 ;;
|
|
2195 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
2196 * ) opsys=bsd4-2 ;;
|
|
2197 esac
|
|
2198 ## Watch out for a compiler that we know will not work.
|
|
2199 case "${canonical}" in
|
|
2200 *-solaris* | *-sunos5* )
|
|
2201 if [ "x$CC" = x/usr/ucb/cc ]; then
|
|
2202 ## /usr/ucb/cc doesn't work;
|
|
2203 ## we should find some other compiler that does work.
|
|
2204 unset CC
|
|
2205 fi
|
|
2206 ;;
|
|
2207 *) ;;
|
|
2208 esac
|
|
2209 ;;
|
|
2210 sparc-*-nextstep* )
|
|
2211 machine=sparc opsys=nextstep
|
|
2212 ;;
|
|
2213
|
|
2214 ## Tadpole 68k
|
|
2215 m68*-tadpole-sysv* )
|
|
2216 machine=tad68k opsys=usg5-3
|
|
2217 ;;
|
|
2218
|
|
2219 ## Tahoe machines
|
|
2220 tahoe-tahoe-bsd4.2* )
|
|
2221 machine=tahoe opsys=bsd4-2
|
|
2222 ;;
|
|
2223 tahoe-tahoe-bsd4.3* )
|
|
2224 machine=tahoe opsys=bsd4-3
|
|
2225 ;;
|
|
2226
|
|
2227 ## Tandem Integrity S2
|
|
2228 mips-tandem-sysv* )
|
|
2229 machine=tandem-s2 opsys=usg5-3
|
|
2230 ;;
|
|
2231
|
|
2232 ## Tektronix XD88
|
|
2233 m88k-tektronix-sysv3* )
|
|
2234 machine=tekxd88 opsys=usg5-3
|
|
2235 ;;
|
|
2236
|
|
2237 ## Tektronix 16000 box (6130?)
|
|
2238 ns16k-tektronix-bsd* )
|
|
2239 machine=ns16000 opsys=bsd4-2
|
|
2240 ;;
|
|
2241 ## Tektronix 4300
|
|
2242 ## src/m/tek4300.h hints that this is a m68k machine.
|
|
2243 m68*-tektronix-bsd* )
|
|
2244 machine=tek4300 opsys=bsd4-3
|
|
2245 ;;
|
|
2246
|
|
2247 ## Titan P2 or P3
|
|
2248 ## We seem to have lost the machine-description file titan.h!
|
|
2249 titan-titan-sysv* )
|
|
2250 machine=titan opsys=usg5-3
|
|
2251 ;;
|
|
2252
|
|
2253 ## Ustation E30 (SS5E)
|
|
2254 m68*-unisys-uniplus* )
|
|
2255 machine=ustation opsystem=unipl5-2
|
|
2256 ;;
|
|
2257
|
|
2258 ## Vaxen.
|
|
2259 vax-dec-* )
|
|
2260 machine=vax
|
|
2261 case "${canonical}" in
|
|
2262 *-bsd4.1* ) opsys=bsd4-1 ;;
|
|
2263 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
|
|
2264 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
|
|
2265 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
2266 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
2267 *-vms* ) opsys=vms ;;
|
|
2268 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
2269 * ) unported=yes
|
|
2270 esac
|
|
2271 ;;
|
|
2272
|
|
2273 ## Whitechapel MG1
|
|
2274 ns16k-whitechapel-* )
|
|
2275 machine=mg1
|
|
2276 ## We don't know what sort of OS runs on these; we'll let the
|
|
2277 ## operating system guessing code below try.
|
|
2278 ;;
|
|
2279
|
|
2280 ## Wicat
|
|
2281 m68*-wicat-sysv* )
|
|
2282 machine=wicat opsys=usg5-2
|
|
2283 ;;
|
|
2284
|
|
2285 ## Intel 386 machines where we don't care about the manufacturer
|
|
2286 i[3-9]86-*-* )
|
|
2287 machine=intel386
|
8
|
2288 CPPFLAGS_MAKEFILEGEN="${CPPFLAGS_MAKEFILEGEN} -Ui386"
|
0
|
2289 case "${canonical}" in
|
|
2290 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
|
2291 *-isc2.2* ) opsys=isc2-2 ;;
|
|
2292 *-isc4.0* ) opsys=isc4-0 ;;
|
|
2293 *-isc4.* ) opsys=isc4-1
|
|
2294 GCC_TEST_OPTIONS=-posix
|
|
2295 NON_GCC_TEST_OPTIONS=-Xp
|
|
2296 ;;
|
|
2297 *-isc* ) opsys=isc3-0 ;;
|
|
2298 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
|
|
2299 *-esix* ) opsys=esix ;;
|
|
2300 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
2301 *-xenix* ) opsys=xenix ;;
|
|
2302 *-linux* ) opsys=linux ;;
|
|
2303 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
|
|
2304 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
32
|
2305 *-bsdi3* ) opsys=bsdos3 ;;
|
0
|
2306 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
2307 *-bsdi2* ) opsys=bsdos2 ;;
|
|
2308 *-sco3.2v5* ) opsys=sco5 ;
|
|
2309 ## This is a pain. Like the current USL cc, SCO's cc -E
|
|
2310 ## tokenizes as it preprocesses, making configure very
|
|
2311 ## unhappy. Unfortunately, /lib/cpp doesn't understand
|
|
2312 ## flags like "-b elf", so we have to cheat in order to
|
|
2313 ## pick up the right defines for UNEXEC from the s-file.
|
|
2314 ## 01/05/95 robertl@dgii.com
|
|
2315 if [ "${dynamic}" = "yes" ]; then
|
|
2316 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
|
|
2317 else
|
|
2318 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
|
|
2319 fi ;;
|
8
|
2320 *-386bsd* ) opsys=386bsd ;;
|
|
2321 *-freebsd* ) opsys=freebsd ;;
|
0
|
2322 *-nextstep* ) opsys=nextstep ;;
|
|
2323 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
|
|
2324 esac
|
|
2325 ;;
|
|
2326
|
|
2327 ## Linux/68k
|
|
2328 m68k-*-linux* )
|
|
2329 machine=m68k opsys=linux
|
|
2330 ;;
|
|
2331
|
|
2332 * )
|
|
2333 unported=yes
|
|
2334 ;;
|
|
2335 esac
|
|
2336
|
|
2337 ### If the code above didn't choose an operating system, just choose
|
|
2338 ### an operating system based on the configuration name. You really
|
|
2339 ### only want to use this when you have no idea what the right
|
|
2340 ### operating system is; if you know what operating systems a machine
|
|
2341 ### runs, it's cleaner to make it explicit in the case statement
|
|
2342 ### above.
|
|
2343 if [ x"${opsys}" = x ]; then
|
|
2344 case "${canonical}" in
|
|
2345 *-gnu* ) opsys=gnu ;;
|
|
2346 *-bsd4.[01] ) opsys=bsd4-1 ;;
|
|
2347 *-bsd4.2 ) opsys=bsd4-2 ;;
|
|
2348 *-bsd4.3 ) opsys=bsd4-3 ;;
|
|
2349 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
|
|
2350 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
|
|
2351 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
|
|
2352 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
|
|
2353 *-sysv4.1* | *-sysvr4.1* )
|
|
2354 NON_GNU_CPP=/usr/lib/cpp
|
|
2355 opsys=usg5-4 ;;
|
|
2356 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
|
|
2357 if [ x$NON_GNU_CPP = x ]; then
|
|
2358 if [ -f /usr/ccs/lib/cpp ]; then
|
|
2359 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
2360 else
|
|
2361 NON_GNU_CPP=/lib/cpp
|
|
2362 fi
|
|
2363 fi
|
|
2364 opsys=usg5-4-2 ;;
|
|
2365 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
|
|
2366 * )
|
|
2367 unported=yes
|
|
2368 ;;
|
|
2369 esac
|
|
2370 fi
|
|
2371
|
|
2372 if test "x$RANLIB" = x; then
|
|
2373 RANLIB=ranlib
|
|
2374 fi
|
|
2375
|
|
2376 if test ${unported} = yes; then
|
|
2377 (echo "${progname}: XEmacs hasn't been ported to \`${canonical}' systems."
|
|
2378 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
|
|
2379 ) >&2
|
|
2380 exit 1
|
|
2381 fi
|
|
2382
|
|
2383 if [ "${dynamic}" = "yes" ]; then
|
|
2384 case "${opsys}" in
|
6
|
2385 hpux8 ) opsys=hpux8-shr ;;
|
|
2386 hpux9 ) opsys=hpux9-shr ;;
|
|
2387 hpux10 ) opsys=hpux10-shr ;;
|
|
2388 sunos4-0 ) opsys=sunos4-0-shr ;;
|
|
2389 sunos4-1 ) opsys=sunos4-1-shr ;;
|
|
2390 sunos4-1-2 ) opsys=sunos4-1-2-shr ;;
|
|
2391 sunos4-1-3 ) opsys=sunos4-1-3-shr ;;
|
32
|
2392 sunos4-1-4 ) opsys=sunos4-1-4-shr ;;
|
0
|
2393 sco5 ) opsys=sco5-shr ;;
|
|
2394 esac
|
|
2395 elif [ "${dynamic}" = "no" ]; then
|
|
2396 case "${opsys}" in
|
|
2397 sol2 ) opsys=sol2-static ;;
|
|
2398 sol2-3 ) opsys=sol2-3-static ;;
|
|
2399 sol2-4 ) opsys=sol2-4-static ;;
|
|
2400 decosf1-3 ) opsys=decosf1-3-static ;;
|
|
2401 decosf3-1 ) opsys=decosf3-1-static ;;
|
|
2402 decosf3-2 ) opsys=decosf3-2-static ;;
|
48
|
2403 decosf4-0 ) opsys=decosf4-0-static ;;
|
0
|
2404 linux ) opsys=linux-static ;;
|
|
2405 esac
|
|
2406 fi
|
|
2407
|
|
2408 dynodump_arch=''
|
|
2409 if [ "${need_dynodump}" = "yes" ]; then
|
|
2410 case "${canonical}" in
|
|
2411 sparc* ) dynodump_arch=sparc ;;
|
|
2412 powerpc* ) dynodump_arch=ppc ;;
|
|
2413 i[3-9]86* ) dynodump_arch=i386 ;;
|
|
2414 esac
|
|
2415 fi
|
|
2416
|
|
2417 machfile="m/${machine}.h"
|
|
2418 opsysfile="s/${opsys}.h"
|
|
2419
|
|
2420
|
|
2421 ############################################################################
|
|
2422 # #
|
|
2423 # Determine the compiler, set up for feature testing #
|
|
2424 # #
|
|
2425 ############################################################################
|
|
2426
|
|
2427 ]
|
|
2428 dnl -----------------------------------------------------------------------
|
|
2429 dnl Let's do a couple of macro (re)definitions.
|
|
2430 dnl
|
|
2431 dnl First we redefine AC_TEST_CPP so that we can see the error output
|
|
2432 dnl from preprocessor runs. This definition is identical to the standard
|
|
2433 dnl one supplied by Autoconf 1.11 extra for the extra_verbose check.
|
|
2434 dnl
|
|
2435 dnl Note that we *must* include the brackets around the macro definition
|
|
2436 dnl name here. Autoconf has redefined the quoting characters to be brackets,
|
|
2437 dnl and if we don't supply them, the original definition will get
|
|
2438 dnl substituted in place of the macro name!
|
|
2439 dnl
|
|
2440 define([AC_TEST_CPP],
|
|
2441 [AC_REQUIRE_CPP()dnl
|
|
2442 cat > conftest.${ac_ext} <<EOF
|
|
2443 #include "confdefs.h"
|
|
2444 [$1]
|
|
2445 EOF
|
|
2446 # Some shells (Coherent) do redirections in the wrong order, so need
|
|
2447 # the parens.
|
|
2448 # The exec was added by Mly to make this work under BSDI
|
|
2449 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
2450 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
|
|
2451 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
2452 echo "$ac_err"
|
|
2453 fi
|
|
2454 if test -z "$ac_err"; then
|
|
2455 ifelse([$2], , :, [rm -rf conftest*
|
|
2456 $2
|
|
2457 ])
|
|
2458 ifelse([$3], , , [else
|
|
2459 rm -rf conftest*
|
|
2460 $3
|
|
2461 ])dnl
|
|
2462 fi
|
|
2463 rm -f conftest*])dnl
|
|
2464 dnl
|
|
2465 dnl Second, a macro of our own:
|
|
2466 dnl Subroutine to find version of X being used
|
|
2467 dnl It can't use xmkmf because the first version in the user's path
|
|
2468 dnl may not belong to the version of X that is being built with
|
|
2469 define(AC_FIND_X_VERSION,
|
|
2470 [AC_CHECKING(the version of X11 being used)
|
|
2471 cat > conftest.${ac_ext} <<EOF
|
|
2472 #include <X11/Intrinsic.h>
|
|
2473 int main() {
|
|
2474 #if (XlibSpecificationRelease == 4)
|
|
2475 printf ("X11R4\n");
|
|
2476 #elif (XlibSpecificationRelease == 5)
|
|
2477 printf ("X11R5\n");
|
|
2478 #elif (XlibSpecificationRelease == 6)
|
|
2479 printf ("X11R6\n");
|
|
2480 #elif (XtSpecificationRelease == 4)
|
|
2481 printf ("X11R4\n");
|
|
2482 #endif
|
|
2483 return 0;
|
|
2484 }
|
|
2485 EOF
|
|
2486 dnl We need to run this which will prevent cross-configuring. But since
|
|
2487 dnl we can't do that anyhow, oh darn.
|
|
2488 ac_save_LIBS="${LIBS}"
|
|
2489 LIBS="${LIBS} ${DEFS}"
|
|
2490 if eval $ac_compile; then
|
|
2491 ac_find_x_version=`./conftest`
|
|
2492 [
|
|
2493 if [ "$ac_find_x_version" = "X11R4" ]; then
|
|
2494 ] AC_DEFINE(THIS_IS_X11R4) [
|
|
2495 elif [ "$ac_find_x_version" = "X11R5" ]; then
|
|
2496 ] AC_DEFINE(THIS_IS_X11R5) [
|
|
2497 elif [ "$ac_find_x_version" = "X11R6" ]; then
|
|
2498 ] AC_DEFINE(THIS_IS_X11R6) [
|
|
2499 fi
|
|
2500 ]
|
|
2501 fi
|
|
2502 LIBS=$ac_save_LIBS
|
|
2503 rm -f conftest*]
|
|
2504 )dnl
|
|
2505 dnl -----------------------------------------------------------------------
|
|
2506 AC_LANG_C
|
|
2507 AC_PREPARE(lisp)
|
|
2508 AC_CONFIG_HEADER(src/config.h)
|
|
2509
|
|
2510 [
|
|
2511
|
|
2512 if [ "${extra_verbose}" = "yes" ] ; then
|
|
2513 # This is identical to the version that A\C_LANG_C generates except that
|
|
2514 # it omits the redirection of all output to /dev/null.
|
|
2515 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS'
|
|
2516 fi
|
|
2517
|
|
2518 #### Choose a compiler.
|
|
2519 if [ "x$CC" = x ] ; then
|
|
2520 cc_specified=1
|
|
2521 fi
|
|
2522
|
|
2523 # Save the value of CFLAGS that the user specified.
|
|
2524 SPECIFIED_CFLAGS="$CFLAGS"
|
|
2525
|
|
2526 if [ "${with_gcc}" = "yes" ] ; then
|
|
2527 CC="${compiler-gcc}"
|
|
2528 GCC=1
|
|
2529 elif [ "${with_lcc}" = "yes" ] ; then
|
|
2530 CC="${compiler-lcc}"
|
|
2531 dash_r_space=' ' # this bullshit is here because lcc for solaris
|
|
2532 # will not accept -Rargument.
|
|
2533 # It needs -R argument instead. Yuck yuck yuck.
|
|
2534 if [ "x$NON_GNU_CPP" = x ] ; then
|
|
2535 NON_GNU_CPP="yes" # this is handled specially below...
|
|
2536 fi
|
|
2537 elif [ "${compiler}" != "" ] ; then
|
|
2538 CC="${compiler}"
|
|
2539 elif [ "${with_gcc}" = "no" ] ; then
|
|
2540 CC="cc"
|
|
2541 elif [ "${with_lcc}" = "no" ] ; then
|
|
2542 if [ "x$CC" = x ]
|
|
2543 then CC=cc;
|
|
2544 else true;
|
|
2545 fi
|
|
2546 else
|
|
2547 case "${canonical}" in
|
|
2548 * )
|
|
2549 ] AC_PROG_CC [
|
|
2550 if [ "${CC}" = "gcc" ] ; then
|
|
2551 with_gcc="yes"
|
|
2552 GCC=1
|
|
2553 fi
|
|
2554 ;;
|
|
2555 esac
|
|
2556 fi
|
|
2557
|
|
2558 # On Suns, sometimes $CPP names a directory.
|
|
2559 if [ -n "$CPP" ] && [ -d "$CPP" ] ; then
|
|
2560 CPP=
|
|
2561 fi
|
|
2562
|
|
2563 #### Some systems specify a CPP to use unless we are using GCC.
|
|
2564 #### Now that we know whether we are using GCC, we can decide whether
|
|
2565 #### to use that one.
|
6
|
2566
|
8
|
2567 if [ "x$GCC" = x1 ] || [ "x$NON_GNU_CPP" = x ] ; then
|
6
|
2568 true
|
0
|
2569 else
|
|
2570 if [ "x$CPP" = x ]; then
|
|
2571 if [ "${with_lcc}" = "yes" ] && [ "${NON_GNU_CPP}" = "yes" ] ; then
|
|
2572 CPP='gcc -E -traditional' # cross fingers and hope it's there....
|
|
2573 else
|
|
2574 CPP="$NON_GNU_CPP"
|
|
2575 fi
|
|
2576 fi
|
|
2577 fi
|
|
2578
|
|
2579 #### Some systems specify a CC to use unless we are using GCC.
|
|
2580 #### Now that we know whether we are using GCC, we can decide whether
|
|
2581 #### to use that one.
|
|
2582 if [ "x$NON_GNU_CC" = x ] || [ x$GCC = x1 ] || [ x$cc_specified = x1 ]
|
|
2583 then true
|
|
2584 else
|
|
2585 CC="$NON_GNU_CC"
|
|
2586 fi
|
|
2587
|
|
2588 ## Huh? I commented out the following because it always enabled
|
|
2589 ## the "test" options, whatever the hell those are supposed to be
|
|
2590 ## for, and the result is that SunOS builds were always static.
|
|
2591
|
|
2592 #if [ x$GCC = x1 ] && [ "x$GCC_TEST_OPTIONS" != x ]
|
|
2593 #then
|
|
2594 # CC="$CC $GCC_TEST_OPTIONS"
|
|
2595 #fi
|
|
2596 #
|
|
2597 #if [ x$GCC = x ] && [ "x$NON_GCC_TEST_OPTIONS" != x ]
|
|
2598 #then
|
|
2599 # CC="$CC $NON_GCC_TEST_OPTIONS"
|
|
2600 #fi
|
|
2601
|
|
2602 ############################################################################
|
|
2603 # #
|
|
2604 # Do some misc autoconf-special tests #
|
|
2605 # #
|
|
2606 ############################################################################
|
|
2607
|
|
2608 #### Some other nice autoconf tests. If you add a test here which
|
|
2609 #### should make an entry in src/config.h, don't forget to add an
|
|
2610 #### #undef clause to src/config.h.in for autoconf to modify.
|
|
2611 ]
|
|
2612 dnl checks for programs
|
|
2613 AC_PROG_CPP
|
|
2614 [
|
|
2615 case "${canonical}" in
|
|
2616 *-sun-sunos* )
|
|
2617 if [ "${CPP}" = "acc -E" ] ; then
|
|
2618 CPP="acc -E -Xs"
|
|
2619 fi
|
|
2620 ;;
|
|
2621 esac
|
|
2622 ]
|
|
2623 AC_PROG_RANLIB
|
|
2624 AC_PROG_INSTALL
|
|
2625 AC_PROG_YACC
|
|
2626
|
|
2627 dnl checks for UNIX variants
|
|
2628 AC_AIX
|
|
2629
|
|
2630 dnl checks for header files
|
|
2631 AC_HAVE_HEADERS(mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h utime.h sys/wait.h libintl.h locale.h libgen.h linux/version.h)
|
|
2632 AC_STDC_HEADERS
|
|
2633 AC_TIME_WITH_SYS_TIME
|
|
2634 AC_SYS_SIGLIST_DECLARED
|
|
2635
|
|
2636 dnl Some systems have utime.h but don't declare the struct anyplace.
|
|
2637 AC_COMPILE_CHECK(struct utimbuf,
|
|
2638 [#ifdef TIME_WITH_SYS_TIME
|
|
2639 #include <sys/time.h>
|
|
2640 #include <time.h>
|
|
2641 #else
|
|
2642 #ifdef HAVE_SYS_TIME_H
|
|
2643 #include <sys/time.h>
|
|
2644 #else
|
|
2645 #include <time.h>
|
|
2646 #endif
|
|
2647 #endif
|
|
2648 #ifdef HAVE_UTIME_H
|
|
2649 #include <utime.h>
|
|
2650 #endif], [static struct utimbuf x; x.actime = x.modtime;],
|
|
2651 AC_DEFINE(HAVE_STRUCT_UTIMBUF))
|
|
2652
|
|
2653 dnl checks for typedefs
|
|
2654 AC_RETSIGTYPE
|
|
2655
|
|
2656 AC_COMPILE_CHECK(struct timeval,
|
|
2657 [#ifdef TIME_WITH_SYS_TIME
|
|
2658 #include <sys/time.h>
|
|
2659 #include <time.h>
|
|
2660 #else
|
|
2661 #ifdef HAVE_SYS_TIME_H
|
|
2662 #include <sys/time.h>
|
|
2663 #else
|
|
2664 #include <time.h>
|
|
2665 #endif
|
|
2666 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], [
|
|
2667 HAVE_TIMEVAL=yes
|
|
2668 AC_DEFINE(HAVE_TIMEVAL)],
|
|
2669 [HAVE_TIMEVAL=no])
|
|
2670
|
|
2671 dnl checks for structure members
|
|
2672 AC_STRUCT_TM
|
|
2673 AC_TIMEZONE
|
|
2674
|
|
2675 dnl checks for compiler characteristics
|
|
2676 AC_CONST
|
|
2677
|
|
2678 dnl check for Make feature
|
|
2679 AC_SET_MAKE
|
|
2680
|
|
2681 dnl check byte order
|
|
2682 AC_WORDS_BIGENDIAN
|
|
2683
|
|
2684 dnl check for long file names
|
|
2685 AC_LONG_FILE_NAMES
|
|
2686
|
|
2687 echo "checking for -xildoff compiler flag"
|
|
2688 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
2689 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
2690 :
|
|
2691 else
|
|
2692 AC_VERBOSE(defining NEED_XILDOFF)
|
|
2693 need_xildoff=yes
|
|
2694 fi
|
|
2695 fi
|
|
2696
|
|
2697 dnl other checks for UNIX variants
|
|
2698 [
|
|
2699 # What the hell was this doing here??????
|
|
2700 ### echo > confdefs.h # this gets nuked above...
|
|
2701
|
|
2702 ############################################################################
|
|
2703 # #
|
|
2704 # Choose a window system #
|
|
2705 # #
|
|
2706 ############################################################################
|
|
2707
|
|
2708 #### Choose a window system.
|
|
2709 echo "checking for specified window system"
|
|
2710
|
|
2711 window_system=''
|
|
2712 case "${with_x11}" in
|
|
2713 yes )
|
|
2714 window_system=${window_system}x11
|
|
2715 ;;
|
|
2716 no )
|
|
2717 window_system=${window_system}none
|
|
2718 esac
|
|
2719
|
|
2720 case "${window_system}" in
|
|
2721 "none" | "x11" ) ;;
|
|
2722 "" )
|
|
2723 # --x-includes or --x-libraries implies --with-x11.
|
|
2724 if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
|
|
2725 window_system=x11
|
|
2726 else
|
|
2727 echo " No window system specified. Looking for X11."
|
|
2728 # If the user didn't specify a window system and we found X11, use it.
|
|
2729 if [ -r /usr/lib/libX11.a \
|
|
2730 -o -d /usr/include/X11 \
|
|
2731 -o -d /usr/X386/include \
|
|
2732 -o -d /usr/X11R6/include \
|
|
2733 -o -d ${x_includes}/X11 ]; then
|
|
2734 window_system=x11
|
|
2735 fi
|
|
2736 fi
|
|
2737 ;;
|
|
2738 * )
|
|
2739 echo "Don't specify a window system more than once." >&2
|
|
2740 exit 1
|
|
2741 ;;
|
|
2742 esac
|
|
2743
|
|
2744 case "${window_system}" in
|
|
2745 "" | "x11" )
|
|
2746 ### If the user hasn't specified where we should find X, try
|
|
2747 ### letting autoconf figure that out.
|
|
2748 if [ -z "${x_includes}" ] && [ -z "${x_libraries}" ]; then
|
|
2749 ]
|
|
2750 AC_FIND_X
|
|
2751 [
|
|
2752 fi
|
|
2753 if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
|
|
2754 window_system=x11
|
|
2755 fi
|
|
2756 ;;
|
|
2757 esac
|
|
2758
|
|
2759 [ -z "${window_system}" ] && window_system=none
|
|
2760
|
|
2761 if [ "${window_system}" = "none" ]; then
|
|
2762 if [ "${with_tty}" != "yes" ]; then
|
|
2763 echo "No window system support, and no TTY support." >&2
|
|
2764 echo "Unable to proceed." >&2
|
|
2765 exit 1
|
|
2766 fi
|
|
2767 if [ "${with_epoch}" = "yes" ]; then
|
|
2768 ] AC_WARN(--with-epoch ignored: Not valid without X support) [
|
|
2769 with_epoch='no'
|
|
2770 fi
|
|
2771 if [ "x${with_cde}" != x ]; then
|
|
2772 ] AC_WARN(--with-cde ignored: Not valid without X support) [
|
|
2773 with_menubars='no'
|
|
2774 fi
|
2
|
2775 if [ "x${with_offix}" != x ]; then
|
|
2776 ] AC_WARN(--with-offix ignored: Not valid without X support) [
|
|
2777 with_offix='no'
|
|
2778 fi
|
0
|
2779 if [ "x${with_menubars}" != x ]; then
|
|
2780 ] AC_WARN(--with-menubars ignored: Not valid without X support) [
|
|
2781 with_menubars='no'
|
|
2782 fi
|
|
2783 if [ "x${with_scrollbars}" != x ]; then
|
|
2784 ] AC_WARN(--with-scrollbars ignored: Not valid without X support) [
|
|
2785 with_scrollbars='no'
|
|
2786 fi
|
|
2787 if [ "x${with_dialogs}" != x ]; then
|
|
2788 ] AC_WARN(--with-dialogs ignored: Not valid without X support) [
|
|
2789 with_dialogs='no'
|
|
2790 fi
|
|
2791 if [ "x${with_toolbars}" != x ]; then
|
|
2792 ] AC_WARN(--with-toolbars ignored: Not valid without X support) [
|
|
2793 with_toolbars='no'
|
|
2794 fi
|
|
2795 with_cde='no'
|
2
|
2796 with_offix='no'
|
0
|
2797 with_menubars='no'
|
|
2798 with_scrollbars='no'
|
|
2799 with_dialogs='no'
|
|
2800 with_toolbars='no'
|
|
2801 elif [ -z "${with_toolbars}" ] ; then
|
|
2802 with_toolbars='yes'
|
|
2803 fi
|
|
2804
|
|
2805 case "${canonical}" in
|
|
2806 *-sun-solaris* | *-sun-sunos5* ) add_runtime_flag=yes ;;
|
|
2807 esac
|
|
2808
|
|
2809 if [ -n "${x_libraries}" ]; then
|
|
2810 if [ "${add_runtime_flag}" ]; then
|
|
2811 LD_SWITCH_X_SITE="-L${x_libraries} -R${dash_r_space}${x_libraries}"
|
|
2812 else
|
|
2813 LD_SWITCH_X_SITE="-L${x_libraries}"
|
|
2814 fi
|
|
2815 fi
|
|
2816 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h.
|
|
2817 # [ -n "${x_libraries}" ] && LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
|
|
2818 [ -n "${x_includes}" ] && C_SWITCH_X_SITE="-I${x_includes}"
|
|
2819
|
|
2820 if [ -n "${site_libraries}" ]; then
|
|
2821 for arg in ${site_libraries}
|
|
2822 do
|
|
2823 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
|
|
2824 done
|
|
2825 fi
|
|
2826 if [ -n "${site_runtime_libraries}" ]; then
|
|
2827 for arg in ${site_runtime_libraries}
|
|
2828 do
|
|
2829 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
|
|
2830 LD_SWITCH_SITE="${LD_SWITCH_SITE} -R${dash_r_space}${arg}"
|
|
2831 done
|
|
2832 fi
|
|
2833 if [ -n "${site_includes}" ]; then
|
|
2834 for arg in ${site_includes}
|
|
2835 do
|
|
2836 C_SWITCH_SITE="${C_SWITCH_SITE} -I${arg}"
|
|
2837 CPP="${CPP} -I${arg}"
|
|
2838 done
|
|
2839 fi
|
|
2840
|
|
2841 # FSF 19.29 has some bitmapdir stuff here.
|
|
2842 bitmapdir=
|
|
2843
|
|
2844 # Avoid forcing the search of /usr/include before fixed include files.
|
|
2845 if [ "$C_SWITCH_X_SITE" = "-I/usr/include" ]; then
|
|
2846 C_SWITCH_X_SITE=" "
|
|
2847 fi
|
|
2848
|
|
2849 # Need for check for audio/Xtutil.h.
|
|
2850 CPP="${CPP} ${C_SWITCH_X_SITE}"
|
|
2851
|
|
2852 case "${window_system}" in
|
|
2853 x11 )
|
|
2854 HAVE_X_WINDOWS=yes
|
|
2855 echo " Using X11."
|
|
2856 ;;
|
|
2857 none )
|
|
2858 HAVE_X_WINDOWS=no
|
|
2859 echo " Using no window system."
|
|
2860 ;;
|
|
2861 esac
|
|
2862
|
|
2863 if test "${opsys}" = "hpux9"; then
|
|
2864 case "${x_libraries}" in
|
|
2865 *X11R4* )
|
|
2866 opsysfile="s/hpux9-x11r4.h"
|
|
2867 ;;
|
|
2868 esac
|
|
2869 fi
|
|
2870
|
10
|
2871 if test "${opsys}" = "hpux9-shr"; then
|
0
|
2872 case "${x_libraries}" in
|
|
2873 *X11R4* )
|
|
2874 opsysfile="s/hpux9shxr4.h"
|
|
2875 ;;
|
|
2876 esac
|
|
2877 fi
|
|
2878
|
|
2879 ############################################################################
|
|
2880 # #
|
|
2881 # Extract some information from the operating system and machine files #
|
|
2882 # #
|
|
2883 ############################################################################
|
|
2884
|
|
2885 echo "examining the machine- and system-dependent files to find out"
|
|
2886 echo " - which libraries the lib-src programs will want, and"
|
|
2887 echo " - whether the GNU malloc routines are usable."
|
|
2888
|
|
2889 ### First figure out CFLAGS (which we use for running the compiler here)
|
|
2890 ### and REAL_CFLAGS (which we use for real compilation).
|
|
2891 ### The two are the same except on a few systems, where they are made
|
|
2892 ### different to work around various lossages. For example,
|
|
2893 ### GCC 2.5 on Linux needs them to be different because it treats -g
|
|
2894 ### as implying static linking.
|
|
2895
|
|
2896 ### If the CFLAGS env var is specified, we use that value
|
|
2897 ### instead of the default.
|
|
2898
|
|
2899 ### It's not important that this name contain the PID; you can't run
|
|
2900 ### two configures in the same directory and have anything work
|
|
2901 ### anyway.
|
|
2902 tempcname="conftest.c"
|
|
2903
|
|
2904 echo '
|
|
2905 #define NOT_C_CODE
|
|
2906 #include "'${srcdir}'/src/'${opsysfile}'"
|
|
2907 #include "'${srcdir}'/src/'${machfile}'"
|
|
2908 #ifndef LIBS_MACHINE
|
|
2909 #define LIBS_MACHINE
|
|
2910 #endif
|
|
2911 #ifndef LIBS_SYSTEM
|
|
2912 #define LIBS_SYSTEM
|
|
2913 #endif
|
|
2914 #ifndef C_SWITCH_SYSTEM
|
|
2915 #define C_SWITCH_SYSTEM
|
|
2916 #endif
|
|
2917 #ifndef C_SWITCH_X_SYSTEM
|
|
2918 #define C_SWITCH_X_SYSTEM
|
|
2919 #endif
|
|
2920 #ifndef C_SWITCH_MACHINE
|
|
2921 #define C_SWITCH_MACHINE
|
|
2922 #endif
|
|
2923 #ifndef LD_SWITCH_X_SYSTEM
|
|
2924 #define LD_SWITCH_X_SYSTEM
|
|
2925 #endif
|
|
2926 #ifndef LIB_STANDARD
|
|
2927 #define LIB_STANDARD
|
|
2928 #endif
|
|
2929 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM LIB_STANDARD
|
|
2930 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
2931 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM
|
|
2932 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM
|
|
2933 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
2934
|
|
2935 #ifndef LIB_X11_LIB
|
|
2936 #define LIB_X11_LIB -lX11
|
|
2937 #endif
|
|
2938
|
|
2939 #ifndef LIBX11_MACHINE
|
|
2940 #define LIBX11_MACHINE
|
|
2941 #endif
|
|
2942
|
|
2943 #ifndef LIBX11_SYSTEM
|
|
2944 #define LIBX11_SYSTEM
|
|
2945 #endif
|
|
2946 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
|
|
2947
|
|
2948 #ifdef UNEXEC
|
|
2949 configure___ unexec=UNEXEC
|
|
2950 #else
|
|
2951 configure___ unexec=unexec.o
|
|
2952 #endif
|
|
2953
|
|
2954 #ifdef SYSTEM_MALLOC
|
|
2955 configure___ system_malloc=yes
|
|
2956 #else
|
|
2957 configure___ system_malloc=no
|
|
2958 #endif
|
|
2959
|
|
2960 #ifndef C_DEBUG_SWITCH
|
|
2961 #define C_DEBUG_SWITCH -g
|
|
2962 #endif
|
|
2963
|
|
2964 #ifndef C_OPTIMIZE_SWITCH
|
|
2965 #define C_OPTIMIZE_SWITCH -O
|
|
2966 #endif
|
|
2967
|
|
2968 #ifdef THIS_IS_CONFIGURE
|
|
2969
|
|
2970 /* Get the CFLAGS for tests in configure. */
|
|
2971 #ifdef __GNUC__
|
|
2972 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2973 #else
|
|
2974 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2975 #endif
|
|
2976
|
|
2977 #else /* not THIS_IS_CONFIGURE */
|
|
2978
|
|
2979 /* Get the CFLAGS for real compilation. */
|
|
2980 #ifdef __GNUC__
|
|
2981 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2982 #else
|
|
2983 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2984 #endif
|
|
2985
|
|
2986 #endif /* not THIS_IS_CONFIGURE */
|
|
2987 ' > ${tempcname}
|
|
2988 # The value of CPP is a quoted variable reference, so we need to do this
|
|
2989 # to get its actual value...
|
|
2990 CPP=`eval "echo $CPP"`
|
|
2991 eval `${CPP} -Isrc ${tempcname} \
|
|
2992 | grep 'configure___' \
|
|
2993 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
|
|
2994 if [ "x$SPECIFIED_CFLAGS" = x ]; then
|
|
2995 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
|
|
2996 | grep 'configure___' \
|
|
2997 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
|
|
2998 else
|
|
2999 REAL_CFLAGS="$CFLAGS"
|
|
3000 fi
|
|
3001 rm ${tempcname}
|
|
3002
|
|
3003 # override CFLAGS if user wishes
|
|
3004 if [ "${cflags}" != "NO_CFLAGS_DEFINED" ]; then
|
|
3005 REAL_CFLAGS=${cflags}
|
|
3006 fi
|
|
3007
|
|
3008 ### Compute the unexec source name from the object name.
|
|
3009 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
|
|
3010
|
|
3011 # Do the opsystem or machine files prohibit the use of the GNU malloc?
|
|
3012 # Assume not, until told otherwise.
|
|
3013 GNU_MALLOC=yes
|
|
3014 if [ "${system_malloc}" = "yes" ]; then
|
|
3015 GNU_MALLOC=no
|
|
3016 GNU_MALLOC_reason="
|
|
3017 (The GNU allocators don't work with this system configuration.)"
|
|
3018 elif [ "${use_system_malloc}" = "yes" ]; then
|
|
3019 GNU_MALLOC=no
|
|
3020 GNU_MALLOC_reason="
|
|
3021 (User chose not to use GNU allocators.)"
|
|
3022 fi
|
|
3023
|
|
3024 LISP_FLOAT_TYPE=yes
|
|
3025
|
|
3026
|
|
3027 #### Add the libraries to LIBS and check for some functions.
|
|
3028
|
|
3029 ]
|
|
3030 CPPFLAGS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $CPPFLAGS"
|
|
3031 DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS"
|
|
3032 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS"
|
|
3033
|
|
3034 dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks,
|
|
3035 dnl and also adds -ldnet to LIBS, which Autoconf uses for checks.
|
|
3036 dnl FSF 19.29 also checks for function dnet_ntoa.
|
|
3037 AC_HAVE_LIBRARY(-ldnet)
|
|
3038 dnl This causes -lresolv to get used in subsequent tests,
|
|
3039 dnl which causes failures on some systems such as HPUX 9.
|
|
3040 dnl FSF 19.29 also checks for function gethostbyname.
|
|
3041 dnl AC_HAVE_LIBRARY(-lresolv)
|
|
3042
|
|
3043 AC_HAVE_LIBRARY(-lXbsd, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd")
|
|
3044
|
|
3045 dnl FSF 19.29 also checks for function cma_open.
|
|
3046 AC_HAVE_LIBRARY(-lpthreads, HAVE_PTHREADS=yes)
|
|
3047 if test -n "${HAVE_PTHREADS}" ; then
|
|
3048 AC_DEFINE(HAVE_PTHREADS)
|
|
3049 case "${opsys}" in
|
|
3050 decosf* ) CFLAGS="${CFLAGS} -threads" ;;
|
|
3051 esac
|
|
3052 fi
|
|
3053
|
|
3054 if test "${window_system}" != "none" ; then
|
|
3055 AC_CHECKING(for XFree86)
|
|
3056 if test -d /usr/X386/include; then
|
|
3057 HAVE_XFREE386=yes
|
|
3058 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
|
14
|
3059 elif test -f /etc/XF86Config -o \
|
|
3060 -f /etc/X11/XF86Config -o \
|
|
3061 -f /usr/X11R6/lib/X11/XF86Config; then
|
0
|
3062 HAVE_XFREE386=yes
|
|
3063 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X11R6/include"
|
|
3064 else
|
|
3065 HAVE_XFREE386=no
|
|
3066 fi
|
|
3067 AC_VERBOSE(${HAVE_XFREE386})
|
|
3068 else
|
|
3069 HAVE_XFREE386=no
|
|
3070 fi
|
|
3071
|
|
3072 ############################################################################
|
|
3073 # #
|
|
3074 # Test for various X-specific features #
|
|
3075 # #
|
|
3076 ############################################################################
|
|
3077
|
|
3078 # Change CFLAGS temporarily for damn binutils 2.6.0.10 check.
|
|
3079 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
3080 case "${opsys}" in
|
|
3081 linux* )
|
|
3082 CFLAGS="-Wl,-rpath-link,/usr/X11R6/lib $CFLAGS"
|
|
3083 AC_COMPILE_CHECK(whether path-link option is needed, [],
|
|
3084 [;],
|
|
3085 [need_path_link=yes],
|
|
3086 [need_path_link=no])
|
|
3087 if test "${need_path_link}" = "no"; then
|
|
3088 CFLAGS="$REAL_CFLAGS"
|
|
3089 AC_VERBOSE(no)
|
|
3090 else
|
|
3091 AC_VERBOSE(yes)
|
|
3092 fi
|
|
3093 ;;
|
|
3094 esac
|
|
3095 fi
|
|
3096
|
|
3097 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
|
|
3098 # for the tests that follow. We set it back to REAL_CFLAGS later on.
|
|
3099
|
|
3100 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
3101 DEFS="$C_SWITCH_X_SITE $DEFS"
|
|
3102 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
|
|
3103 LIBS="$LIBX $LIBS"
|
|
3104 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
|
|
3105
|
|
3106 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
|
|
3107 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
|
|
3108 # but it's more convenient here to set LD_RUN_PATH
|
|
3109 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
|
|
3110 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
|
|
3111 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
|
|
3112 export LD_RUN_PATH
|
|
3113 fi
|
|
3114
|
|
3115 if test "${HAVE_XFREE386}" = "yes" ; then
|
|
3116 case "${opsys}" in
|
|
3117 linux* )
|
|
3118 AC_COMPILE_CHECK(whether XFree86 needs -b to link, [],
|
|
3119 [XOpenDisplay ("foo");],
|
|
3120 [xfree86_first_failure=no],
|
|
3121 [xfree86_first_failure=yes])
|
|
3122 if test "${xfree86_first_failure}" = "yes"; then
|
|
3123 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
|
|
3124 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
|
|
3125 OLD_CPPFLAGS="$CPPFLAGS"
|
|
3126 OLD_LIBS="$LIBS"
|
|
3127 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
|
|
3128 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
|
|
3129 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
|
|
3130 LIBS="$LIBS -b i486-linuxaout"
|
|
3131 AC_COMPILE_CHECK(,[],
|
|
3132 [XOpenDisplay ("foo");],
|
|
3133 [xfree86_second_failure=no],
|
|
3134 [xfree86_second_failure=yes])
|
|
3135 if test "${xfree86_second_failure}" = "yes"; then
|
|
3136 # If we get the same failure with -b, there is no use adding -b.
|
|
3137 # So take it out. This plays safe.
|
|
3138 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
|
|
3139 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
|
|
3140 CPPFLAGS="$OLD_CPPFLAGS"
|
|
3141 LIBS="$OLD_LIBS"
|
|
3142 AC_VERBOSE(no)
|
|
3143 else
|
|
3144 AC_VERBOSE(yes)
|
|
3145 fi
|
|
3146 else
|
|
3147 AC_VERBOSE(no)
|
|
3148 fi
|
|
3149 ;;
|
|
3150 esac
|
|
3151 fi
|
|
3152
|
|
3153 # A C_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
|
|
3154 #XScreenNumberOfScreen XSetWMProtocols)
|
|
3155 fi
|
|
3156
|
|
3157 #
|
|
3158 # make sure we can find libX11.*
|
|
3159 #
|
|
3160 if test "${window_system}" != "none" ; then
|
|
3161 internal_xlibs_found='no'
|
|
3162 AC_HAVE_LIBRARY(-lX11, internal_xlibs_found='yes')
|
|
3163 if test "${internal_xlibs_found}" = "no" ; then
|
|
3164 echo "Unable to find X11 libraries." >&2
|
|
3165 exit 1
|
|
3166 else
|
|
3167 AC_VERBOSE(yes)
|
|
3168 fi
|
|
3169 fi
|
|
3170
|
|
3171 #
|
|
3172 # make sure we can find Intrinsic.h
|
|
3173 #
|
|
3174 if test "${window_system}" != "none" ; then
|
|
3175 internal_xincludes_found='no'
|
|
3176 for arg in ${DEFS} /usr/include
|
|
3177 do
|
|
3178 if test -f `echo "${arg}/X11/Intrinsic.h" | sed 's/^\-I//'` ; then
|
|
3179 internal_xincludes_found='yes'
|
|
3180 fi
|
|
3181 done
|
|
3182 if test "${internal_xincludes_found}" = "no" ; then
|
|
3183 echo "Unable to find X11 header files." >&2
|
|
3184 exit 1
|
|
3185 fi
|
|
3186 fi
|
|
3187
|
|
3188 #
|
|
3189 # Sun OS 4 systems need the following kludge
|
|
3190 #
|
|
3191 if test "${window_system}" != "none" ; then
|
|
3192 case "${canonical}" in *-sunos4* )
|
|
3193 LIBS="$LIBS -u _XtToolkitInitialize -u _get_applicationShellWidgetClass" ;;
|
|
3194 esac
|
|
3195 fi
|
|
3196
|
|
3197 #
|
|
3198 # See if we can find Xauth.
|
|
3199 #
|
|
3200 with_xauth='no'
|
|
3201 if test "${window_system}" != "none" ; then
|
|
3202 internal_xauth_lib_found='no'
|
|
3203 AC_HAVE_LIBRARY(-lXau, internal_xauth_lib_found='yes')
|
|
3204 if test "${internal_xauth_lib_found}" = "yes" ; then
|
|
3205 internal_xauth_includes_found='no'
|
|
3206 for arg in ${DEFS} /usr/include
|
|
3207 do
|
|
3208 if test -f `echo "${arg}/X11/Xauth.h" | sed 's/^\-I//'` ; then
|
|
3209 internal_xauth_includes_found='yes'
|
|
3210 fi
|
|
3211 done
|
|
3212 if test "${internal_xauth_includes_found}" = "yes" ; then
|
|
3213 with_xauth='yes'
|
|
3214 fi
|
|
3215 fi
|
|
3216 fi
|
|
3217 if test "${with_xauth}" = "yes" ; then
|
|
3218 AC_DEFINE(HAVE_XAUTH)
|
|
3219 fi
|
|
3220
|
|
3221 #
|
|
3222 # See if we can find CDE.
|
|
3223 #
|
|
3224 if test "${window_system}" != "none" ; then
|
|
3225 if test "${with_cde}" != "no" ; then
|
|
3226 if test "${with_cde}" != "yes" ; then
|
|
3227 internal_cde_lib_found='no'
|
|
3228 AC_HAVE_LIBRARY(-lDtSvc, internal_cde_lib_found='yes')
|
|
3229 if test "${internal_cde_lib_found}" = "yes" ; then
|
|
3230 internal_cde_includes_found='no'
|
|
3231 for arg in ${DEFS} /usr/include
|
|
3232 do
|
|
3233 if test -f `echo "${arg}/Dt/Dt.h" | sed 's/^\-I//'` ; then
|
|
3234 internal_cde_includes_found='yes'
|
|
3235 fi
|
|
3236 done
|
|
3237 if test "${internal_cde_includes_found}" = "yes" ; then
|
|
3238 with_cde='yes'
|
|
3239 fi
|
|
3240 fi
|
|
3241 fi
|
|
3242 fi
|
|
3243 fi
|
|
3244 if test "${with_cde}" = "yes" ; then
|
|
3245 AC_DEFINE(HAVE_CDE)
|
|
3246 fi
|
|
3247
|
|
3248 #
|
2
|
3249 # See if we can find OffiX.
|
|
3250 #
|
|
3251 if test "${window_system}" != "none" ; then
|
|
3252 if test "${with_offix}" != "no" ; then
|
|
3253 if test "${with_offix}" != "yes" ; then
|
|
3254 internal_offix_lib_found='no'
|
|
3255 AC_HAVE_LIBRARY(-lDnd, internal_offix_lib_found='yes')
|
|
3256 if test "${internal_offix_lib_found}" = "yes" ; then
|
|
3257 internal_offix_includes_found='no'
|
|
3258 for arg in ${DEFS} /usr/include
|
|
3259 do
|
|
3260 if test -f `echo "${arg}/OffiX/DragAndDrop.h" | sed 's/^\-I//'` ; then
|
|
3261 internal_offix_includes_found='yes'
|
|
3262 fi
|
|
3263 done
|
|
3264 if test "${internal_offix_includes_found}" = "yes" ; then
|
|
3265 with_offix='yes'
|
|
3266 fi
|
|
3267 fi
|
|
3268 fi
|
|
3269 fi
|
|
3270 fi
|
|
3271 if test "${with_offix}" = "yes" ; then
|
|
3272 AC_DEFINE(HAVE_OFFIX_DND)
|
|
3273 fi
|
|
3274
|
|
3275 #
|
0
|
3276 # See if we can find Xlocale.h.
|
|
3277 #
|
|
3278 with_xlocale_h='no'
|
|
3279 if test "${window_system}" != "none" ; then
|
|
3280 for arg in ${DEFS} /usr/include
|
|
3281 do
|
|
3282 if test -f `echo "${arg}/X11/Xlocale.h" | sed 's/^\-I//'` ; then
|
|
3283 with_xlocale_h='yes'
|
|
3284 fi
|
|
3285 done
|
|
3286 fi
|
|
3287 if test "${with_xlocale_h}" = "yes" ; then
|
|
3288 AC_DEFINE(HAVE_XLOCALE_H)
|
|
3289 fi
|
|
3290
|
|
3291 if test "${window_system}" != "none" ; then
|
|
3292 AC_FIND_X_VERSION
|
|
3293 AC_HAVE_HEADERS(X11/Xlocale.h)
|
|
3294 fi
|
|
3295
|
|
3296 #
|
|
3297 # if Energize specified, make sure we can find its need libraries/headers
|
|
3298 #
|
|
3299 if test "${with_energize}" = "yes" ; then
|
|
3300 AC_HAVE_LIBRARY(-lenergize, energize_version='3.X')
|
|
3301 if test "${energize_version}" = "no" ; then
|
|
3302 AC_HAVE_LIBRARY(-lconn, energize_version='2.X')
|
|
3303 if test "${energize_version}" = "no" ; then
|
|
3304 echo "Unable to find Energize library." >&2
|
|
3305 exit 1
|
|
3306 fi
|
|
3307 fi
|
|
3308
|
|
3309 internal_eincludes_found='no'
|
|
3310 for arg in ${DEFS} /usr/include
|
|
3311 do
|
|
3312 if test -f `echo "${arg}/editorconn.h" | sed 's/^\-I//'` ; then
|
|
3313 internal_eincludes_found='yes'
|
|
3314 fi
|
|
3315 done
|
|
3316 if test "${internal_eincludes_found}" = "no" ; then
|
|
3317 echo "Unable to find Energize editorconn.h header file." >&2
|
|
3318 exit 1
|
|
3319 fi
|
|
3320 fi
|
|
3321
|
|
3322 #
|
|
3323 # logb and frexp are found in -lm on most systems.
|
|
3324 #
|
|
3325 AC_HAVE_LIBRARY(-lm)
|
|
3326
|
|
3327 #
|
|
3328 # see if XPM is hanging around somewhere
|
|
3329 #
|
|
3330 if test "${window_system}" != "none" ; then
|
|
3331 if test "${with_xpm}" != "no" ; then
|
|
3332 if test "${with_xpm}" != "yes" ; then
|
|
3333 AC_HAVE_LIBRARY(-lXpm, with_xpm="yes")
|
|
3334 fi
|
|
3335 fi
|
|
3336 fi
|
|
3337 if test "${with_xpm}" = "yes" ; then
|
|
3338 AC_DEFINE(HAVE_XPM)
|
|
3339 fi
|
|
3340
|
|
3341 #
|
|
3342 # see if Xmu is hanging around somewhere
|
|
3343 #
|
|
3344 # FSF 19.31 has this:
|
|
3345 #dnl If using toolkit, check whether libXmu.a exists.
|
|
3346 #dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link.
|
|
3347 # OLDLIBS="$LIBS"
|
|
3348 # if test x$HAVE_X11XTR6 = xyes; then
|
|
3349 # LIBS="-lXt -lSM -lICE $LIBS"
|
|
3350 # else
|
|
3351 # LIBS="-lXt $LIBS"
|
|
3352 # fi
|
|
3353 # A C_CHECK_LIB(Xmu, XmuConvertStandardSelection)
|
|
3354 # LIBS="$OLDLIBS"
|
|
3355
|
|
3356 if test "${window_system}" != "none" ; then
|
|
3357 if test "${with_xmu}" != "no" ; then
|
|
3358 if test "${with_xmu}" != "yes" ; then
|
|
3359 AC_HAVE_LIBRARY(-lXmu, with_xmu="yes")
|
|
3360 fi
|
24
|
3361 # On SunOS4 (and 5!) we must kludge harder to try to detect Xmu
|
0
|
3362 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
24
|
3363 if test "${with_xmu}" != "yes" ; then
|
0
|
3364 # begin expansion of ac_have_library
|
|
3365 ac_save_LIBS="${LIBS}"
|
|
3366 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm"
|
|
3367 ac_have_lib=""
|
|
3368 cat > conftest.${ac_ext} <<EOF
|
|
3369 int main() { return 0; }
|
|
3370 EOF
|
|
3371 if eval $ac_compile; then
|
|
3372 rm -rf conftest*
|
|
3373 ac_have_lib="1"
|
|
3374 fi
|
|
3375 rm -f conftest*
|
|
3376 LIBS="${ac_save_LIBS}"
|
|
3377 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3378 # end expansion of ac_have_library
|
|
3379 fi
|
38
|
3380 # Sparc/Linux test - fp
|
|
3381 if test "${with_xmu}" != "yes" -a ${machine} = sparc -a ${opsys} = linux; then
|
|
3382 # begin expansion of ac_have_library
|
|
3383 ac_save_LIBS="${LIBS}"
|
|
3384 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm -lICE -lSM"
|
|
3385 ac_have_lib=""
|
|
3386 cat > conftest.${ac_ext} <<EOF
|
|
3387 int main() { return 0; }
|
|
3388 EOF
|
|
3389 if eval $ac_compile; then
|
|
3390 rm -rf conftest*
|
|
3391 ac_have_lib="1"
|
|
3392 fi
|
|
3393 rm -f conftest*
|
|
3394 LIBS="${ac_save_LIBS}"
|
|
3395 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3396 # end expansion of ac_have_library
|
|
3397 fi
|
0
|
3398 # On UnixWare 2.1 we must kludge harder to try to detect Xmu
|
|
3399 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
|
3400 if test "${with_xmu}" != "yes" && test -f "/.UpgradeVer2.1" ; then
|
|
3401 # begin expansion of ac_have_library
|
|
3402 ac_save_LIBS="${LIBS}"
|
|
3403 if test x$HAVE_XFREE386 = xyes; then
|
|
3404 LIBS="-lXt -lSM -lICE ${LIBS}"
|
|
3405 else
|
|
3406 LIBS="${LIBS} -lXmu -lXt -lXext -lX11"
|
|
3407 fi
|
|
3408 ac_have_lib=""
|
|
3409 cat > conftest.${ac_ext} <<EOF
|
|
3410 int main() { return 0; }
|
|
3411 EOF
|
|
3412 if eval $ac_compile; then
|
|
3413 rm -rf conftest*
|
|
3414 ac_have_lib="1"
|
|
3415 fi
|
|
3416 rm -f conftest*
|
|
3417 LIBS="${ac_save_LIBS}"
|
|
3418 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3419 # end expansion of ac_have_library
|
|
3420 fi
|
|
3421 fi
|
|
3422 fi
|
|
3423 if test "${with_xmu}" = "yes" ; then
|
|
3424 AC_DEFINE(HAVE_XMU)
|
|
3425 fi
|
|
3426
|
|
3427 #
|
|
3428 # see if COMPFACE is hanging around somewhere
|
|
3429 #
|
|
3430 if test "${window_system}" != "none" ; then
|
|
3431 if test "${with_xface}" != "no" ; then
|
|
3432 if test "${with_xface}" != "yes" ; then
|
|
3433 AC_HEADER_CHECK(compface.h, compface_incl="yes", with_xface="no")
|
|
3434 if test "${compface_incl}" = "yes" ; then
|
|
3435 AC_HAVE_LIBRARY(-lcompface, with_xface="yes")
|
|
3436 fi
|
|
3437 fi
|
|
3438 fi
|
|
3439 fi
|
|
3440 if test "${with_xface}" = "yes" ; then
|
|
3441 AC_DEFINE(HAVE_XFACE)
|
|
3442 fi
|
|
3443
|
|
3444 #
|
|
3445 # check whether we're using GIF support
|
|
3446 #
|
|
3447 if test "${window_system}" = "none" ; then
|
|
3448 if test -z "${with_gif}" ; then
|
|
3449 with_gif=no
|
|
3450 elif test "${with_gif}" != "no" ; then
|
|
3451 echo "GIF support cannot be specified without a window system."
|
|
3452 exit 1
|
|
3453 fi
|
|
3454 elif test -z "${with_gif}" ; then
|
|
3455 with_gif=yes
|
|
3456 fi
|
|
3457 if test "${with_gif}" = "yes" ; then
|
|
3458 AC_DEFINE(HAVE_GIF)
|
|
3459 fi
|
|
3460
|
|
3461 #
|
|
3462 # autodetect JPEG
|
|
3463 #
|
|
3464 if test "${window_system}" = "none" ; then
|
|
3465 if test -z "${with_jpeg}" ; then
|
|
3466 with_jpeg=no
|
|
3467 elif test "${with_jpeg}" != "no" ; then
|
|
3468 echo "JPEG support cannot be specified without a window system."
|
|
3469 exit 1
|
|
3470 fi
|
|
3471 else
|
|
3472 if test "${with_jpeg}" != "no" ; then
|
|
3473 if test "${with_jpeg}" != "yes" ; then
|
|
3474 AC_HEADER_CHECK(jpeglib.h, jpeglib_incl="yes", with_jpeg="no")
|
|
3475 if test "${jpeglib_incl}" = "yes" ; then
|
|
3476 AC_HAVE_LIBRARY(-ljpeg, with_jpeg="yes")
|
|
3477 fi
|
|
3478 fi
|
|
3479 fi
|
|
3480 fi
|
|
3481 if test "${with_jpeg}" = "yes" ; then
|
|
3482 AC_DEFINE(HAVE_JPEG)
|
|
3483 fi
|
|
3484
|
|
3485 #
|
|
3486 # autodetect PNG
|
|
3487 #
|
|
3488 if test "${window_system}" = "none" ; then
|
|
3489 if test -z "${with_png}" ; then
|
|
3490 with_png=no
|
|
3491 elif test "${with_png}" != "no" ; then
|
|
3492 echo "PNG support cannot be specified without a window system."
|
|
3493 exit 1
|
|
3494 fi
|
|
3495 fi
|
|
3496 if test -z "${with_png}" ; then
|
|
3497 AC_HEADER_CHECK(png.h, , with_png="no")
|
|
3498 fi
|
|
3499 if test -z "${with_png}" ; then
|
|
3500 AC_HAVE_LIBRARY(-lpng, , with_png="no")
|
|
3501 fi
|
|
3502 if test -z "${with_png}" ; then
|
|
3503 AC_HAVE_LIBRARY(-lz, with_png="yes")
|
|
3504 fi
|
|
3505 if test -z "${with_png}" ; then
|
|
3506 AC_HAVE_LIBRARY(-lgz, with_png="gnuz", with_png="no")
|
|
3507 fi
|
|
3508 if test "${with_png}" = "yes" ; then
|
|
3509 AC_DEFINE(HAVE_PNG)
|
|
3510 fi
|
|
3511 if test "${with_png}" = "gnuz" ; then
|
|
3512 AC_DEFINE(HAVE_PNG)
|
|
3513 AC_DEFINE(HAVE_PNG_GNUZ)
|
|
3514 fi
|
|
3515
|
|
3516 #
|
|
3517 # autodetect TIFF (not yet implemented)
|
|
3518 #
|
|
3519 if test "${window_system}" = "none" ; then
|
|
3520 if test -z "${with_tiff}" ; then
|
|
3521 with_tiff=no
|
|
3522 elif test "${with_tiff}" != "no" ; then
|
|
3523 echo "TIFF support cannot be specified without a window system."
|
|
3524 exit 1
|
|
3525 fi
|
|
3526 fi
|
|
3527 if test "${with_tiff}" = "yes" ; then
|
|
3528 AC_DEFINE(HAVE_TIFF)
|
|
3529 fi
|
|
3530
|
|
3531 # We use Lucid toolkit defaults for the menubars and scrollbars, but
|
|
3532 # if Motif is available we use it for the dialog boxes.
|
|
3533 if test "${window_system}" != "none" ; then
|
|
3534 if test "x${with_dialogs}" = "x" ; then
|
|
3535 # We can't use ac_have_library because it simply appends -lXm to the
|
|
3536 # end of the link line which is insufficient since -lXm will generate
|
|
3537 # dependencies on -lXt
|
|
3538 # begin expansion of ac_have_library
|
|
3539 ac_save_LIBS="${LIBS}"
|
|
3540 LIBS="${LIBS} -lXm -lXt ${LIBS}"
|
|
3541 ac_have_lib=""
|
|
3542 test -n "$silent" || echo "checking for -lXm"
|
|
3543 cat > conftest.${ac_ext} <<EOF
|
|
3544 #include "confdefs.h"
|
|
3545
|
|
3546 int main() { return 0; }
|
|
3547 int t() { main();; return 0; }
|
|
3548 EOF
|
|
3549 if eval $ac_compile; then
|
|
3550 rm -rf conftest*
|
|
3551 ac_have_lib="1"
|
|
3552
|
|
3553 fi
|
|
3554 rm -f conftest*
|
|
3555 LIBS="${ac_save_LIBS}"
|
|
3556 if test -n "${ac_have_lib}"; then
|
|
3557 :; with_dialogs="motif"
|
|
3558 else
|
|
3559 :;
|
|
3560 fi
|
|
3561 # end expansion of ac_have_library
|
|
3562 # Sigh. My Motif (MoTeeth) under Linux also depends on Xpm and Xext.
|
|
3563 if test "${with_dialogs}" != "motif" ; then
|
|
3564 # begin expansion of ac_have_library
|
|
3565 ac_save_LIBS="${LIBS}"
|
|
3566 LIBS="${LIBS} -lXm -lXt -lXpm -lXext ${LIBS}"
|
|
3567 ac_have_lib=""
|
|
3568 test -n "$silent" || echo "checking for -lXm in another way"
|
|
3569 cat > conftest.${ac_ext} <<EOF
|
|
3570 #include "confdefs.h"
|
|
3571
|
|
3572 int main() { return 0; }
|
|
3573 int t() { main();; return 0; }
|
|
3574 EOF
|
|
3575 if eval $ac_compile; then
|
|
3576 rm -rf conftest*
|
|
3577 ac_have_lib="1"
|
|
3578
|
|
3579 fi
|
|
3580 rm -f conftest*
|
|
3581 LIBS="${ac_save_LIBS}"
|
|
3582 if test -n "${ac_have_lib}"; then
|
|
3583 :; with_dialogs="motif"
|
|
3584 else
|
|
3585 :;
|
|
3586 fi
|
|
3587 # end expansion of ac_have_library
|
|
3588 fi
|
|
3589 if test "${with_dialogs}" = "motif" ; then
|
|
3590 AC_VERBOSE(Found Motif)
|
|
3591 fi
|
|
3592 fi
|
|
3593 fi
|
|
3594
|
|
3595 [
|
|
3596 if [ "${with_menubars}" = "motif" ] || [ "${with_scrollbars}" = "motif" ] \
|
|
3597 || [ "${with_dialogs}" = "motif" ]; then
|
|
3598 with_motif='yes'
|
|
3599 fi
|
16
|
3600 if [ "${with_menubars}" = "athena" ] || [ "${with_scrollbars}" = "athena" ] \
|
|
3601 || [ "${with_dialogs}" = "athena" ]; then
|
|
3602 with_athena='yes'
|
|
3603 fi
|
|
3604 if [ "${with_menubars}" = "athena3d" ] || [ "${with_scrollbars}" = "athena3d" ] \
|
|
3605 || [ "${with_dialogs}" = "athena3d" ]; then
|
|
3606 with_athena='yes'
|
|
3607 fi
|
0
|
3608
|
|
3609 # Finish ensuring that we have values for the various toolkit items.
|
|
3610 if [ "x${with_menubars}" = "x" ] || [ "${with_menubars}" = "athena" ]; then
|
|
3611 with_menubars='lucid'
|
|
3612 fi
|
|
3613 if [ "x${with_scrollbars}" = "x" ]; then
|
|
3614 with_scrollbars='lucid'
|
|
3615 fi
|
|
3616 if [ "x${with_dialogs}" = "x" ] || [ "${with_dialogs}" = "lucid" ]; then
|
|
3617 with_dialogs='athena'
|
|
3618 fi
|
|
3619 ]
|
|
3620
|
|
3621 ############################################################################
|
|
3622 # #
|
|
3623 # Misc other feature tests #
|
|
3624 # #
|
|
3625 ############################################################################
|
|
3626
|
|
3627 # If netdb.h doesn't declare h_errno, we must declare it by hand.
|
|
3628 AC_COMPILE_CHECK(declaration of h_errno in netdb.h,
|
|
3629 [#include <netdb.h>],
|
|
3630 [int i = h_errno;],
|
|
3631 AC_DEFINE(HAVE_H_ERRNO))
|
|
3632
|
|
3633 AC_COMPILE_CHECK(sigsetjmp,
|
|
3634 [#include <setjmp.h>],
|
|
3635 [sigjmp_buf bar; sigsetjmp (bar, 0);],
|
|
3636 AC_DEFINE(HAVE_SIGSETJMP))
|
|
3637
|
|
3638 AC_CHECKING(whether localtime caches TZ)
|
|
3639 emacs_cv_localtime_cache=
|
|
3640 AC_TEST_PROGRAM([#include <time.h>
|
|
3641 #if 1 /* STDC_HEADERS */
|
|
3642 # include <stdlib.h>
|
|
3643 #endif
|
|
3644 extern char **environ;
|
|
3645 unset_TZ ()
|
|
3646 {
|
|
3647 char **from, **to;
|
|
3648 for (to = from = environ; (*to = *from); from++)
|
|
3649 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
3650 to++;
|
|
3651 }
|
|
3652 main()
|
|
3653 {
|
|
3654 time_t now = time ((time_t *) 0);
|
|
3655 int hour_GMT0, hour_unset;
|
|
3656 if (putenv ("TZ=GMT0") != 0)
|
|
3657 exit (1);
|
|
3658 hour_GMT0 = localtime (&now)->tm_hour;
|
|
3659 unset_TZ ();
|
|
3660 hour_unset = localtime (&now)->tm_hour;
|
|
3661 if (putenv ("TZ=PST8") != 0)
|
|
3662 exit (1);
|
|
3663 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
3664 exit (1);
|
|
3665 unset_TZ ();
|
|
3666 if (localtime (&now)->tm_hour != hour_unset)
|
|
3667 exit (1);
|
|
3668 exit (0);
|
|
3669 }], emacs_cv_localtime_cache=no, emacs_cv_localtime_cache=yes,
|
|
3670 [# If we have tzset, assume the worst when cross-compiling.
|
|
3671 emacs_cv_localtime_cache=yes])
|
|
3672 AC_VERBOSE("$emacs_cv_localtime_cache")
|
|
3673 if test x$emacs_cv_localtime_cache = xyes; then
|
|
3674 AC_DEFINE(LOCALTIME_CACHE)
|
|
3675 fi
|
|
3676
|
|
3677 if test "x$HAVE_TIMEVAL" = xyes; then
|
|
3678 AC_COMPILE_CHECK(whether gettimeofday can't accept two arguments,
|
|
3679 [
|
|
3680 #ifdef TIME_WITH_SYS_TIME
|
|
3681 #include <sys/time.h>
|
|
3682 #include <time.h>
|
|
3683 #else
|
|
3684 #ifdef HAVE_SYS_TIME_H
|
|
3685 #include <sys/time.h>
|
|
3686 #else
|
|
3687 #include <time.h>
|
|
3688 #endif
|
|
3689 #endif
|
|
3690 ],
|
|
3691 [
|
|
3692 struct timeval time;
|
|
3693 struct timezone dummy;
|
|
3694 gettimeofday (&time, &dummy);
|
|
3695 ],
|
|
3696 [AC_VERBOSE(no)],
|
|
3697 [AC_VERBOSE(yes)
|
|
3698 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)])
|
|
3699 fi
|
|
3700
|
|
3701 AC_COMPILE_CHECK(whether inline functions are supported,
|
|
3702 ,
|
|
3703 [
|
|
3704 inline int
|
|
3705 foo ()
|
|
3706 {
|
|
3707 return 0;
|
|
3708 }
|
|
3709 ],
|
|
3710 AC_DEFINE(HAVE_INLINE))
|
|
3711
|
|
3712 # This does all sorts of magic to make sure alloca() works OK.
|
|
3713 # It might even add some junk to the top of <config.h>.
|
|
3714 # (I don't understand what goes on here, but it seems to work.)
|
|
3715 AC_ALLOCA
|
|
3716
|
|
3717 # Check whether vfork exists and works correctly. (This does more
|
|
3718 # than just check for its existence.) If so, it defines HAVE_VFORK_H.
|
|
3719 # If not, it defines vfork to be fork.
|
|
3720 AC_VFORK
|
|
3721
|
|
3722 # Check whether mmap exists and works correctly. (This does more
|
|
3723 # than just check for its existence.) If so, it defines HAVE_MMAP.
|
|
3724 # Actually, this seems to rule out some cases where mmap() can
|
|
3725 # work fine for our purposes (e.g. HPUX). We get a big win out
|
|
3726 # of using mmap(), so let's go back to the old way.
|
|
3727 dnl AC_MMAP
|
|
3728
|
|
3729 # Check whether strcoll exists and works correctly. (This does more
|
|
3730 # than just check for its existence.) If so, it defines HAVE_STRCOLL.
|
|
3731 AC_STRCOLL
|
|
3732
|
|
3733 AC_SIZEOF_TYPE(short)
|
|
3734 AC_SIZEOF_TYPE(int)
|
|
3735 AC_SIZEOF_TYPE(long)
|
|
3736
|
|
3737 # FSF 19.29 does this:
|
|
3738 # # fmod, logb, and frexp are found in -lm on most systems.
|
|
3739 # # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
|
|
3740 # A C_CHECK_LIB(m, sqrt)
|
|
3741
|
|
3742 AC_HAVE_FUNCS(acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getwd logb lrand48 matherr mkdir mktime perror poll random realpath rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid)
|
|
3743
|
|
3744 # Check for mmap.
|
|
3745 found_mmap=true
|
|
3746 AC_FUNC_CHECK(mmap, , found_mmap=)
|
|
3747 if test -n "$found_mmap"; then
|
|
3748 AC_DEFINE(HAVE_MMAP)
|
|
3749 fi
|
|
3750
|
|
3751 [
|
|
3752 # rel_alloc requires either GNU malloc or system malloc with mmap
|
|
3753 if [ "${GNU_MALLOC}" != "yes" ]; then
|
|
3754 if [ "${found_mmap}" != "true" ]; then
|
|
3755 rel_alloc=no
|
|
3756 fi
|
|
3757 fi
|
|
3758
|
|
3759 # We only turn rel_alloc on by default if mmap is available.
|
|
3760 if [ "${rel_alloc}" = "default" ]; then
|
|
3761 if [ "${found_mmap}" = "true" ]; then
|
|
3762 rel_alloc=yes
|
|
3763 fi
|
|
3764 fi
|
|
3765 ]
|
|
3766
|
|
3767
|
|
3768 # Check for Internet sockets.
|
|
3769
|
|
3770 ok_so_far=true
|
|
3771 AC_FUNC_CHECK(socket, , ok_so_far=)
|
|
3772 if test -n "$ok_so_far"; then
|
|
3773 AC_HEADER_CHECK(netinet/in.h, , ok_so_far=)
|
|
3774 fi
|
|
3775 if test -n "$ok_so_far"; then
|
|
3776 AC_HEADER_CHECK(arpa/inet.h, , ok_so_far=)
|
|
3777 fi
|
|
3778 if test -n "$ok_so_far"; then
|
|
3779 AC_DEFINE(HAVE_SOCKETS)
|
|
3780 # Check for the sun_len member in struct sockaddr_un.
|
|
3781
|
|
3782 AC_COMPILE_CHECK(sun_len member in struct sockaddr_un,
|
|
3783 [#include <sys/types.h>
|
|
3784 #include <sys/socket.h>
|
|
3785 #include <sys/un.h>], [static struct sockaddr_un x; x.sun_len = 1;],
|
|
3786 AC_DEFINE(HAVE_SOCKADDR_SUN_LEN))
|
|
3787 fi
|
|
3788
|
|
3789 # Check for SYS V IPC. (Inferior to sockets.)
|
|
3790
|
|
3791 if test -z "$ok_so_far"; then
|
|
3792 ok_so_far=true
|
|
3793 AC_FUNC_CHECK(msgget, , ok_so_far=)
|
|
3794 if test -n "$ok_so_far"; then
|
|
3795 AC_HEADER_CHECK(sys/ipc.h, , ok_so_far=)
|
|
3796 fi
|
|
3797 if test -n "$ok_so_far"; then
|
|
3798 AC_HEADER_CHECK(sys/msg.h, , ok_so_far=)
|
|
3799 fi
|
|
3800 if test -n "$ok_so_far"; then
|
|
3801 AC_DEFINE(HAVE_SYSVIPC)
|
|
3802 fi
|
|
3803 fi
|
|
3804
|
|
3805 # Check for directory variants
|
|
3806
|
|
3807 sysv_system_dir=
|
|
3808 nonsystem_dir_library=
|
|
3809 AC_HEADER_CHECK(dirent.h, sysv_system_dir=yes, )
|
|
3810 if test -z "$sysv_system_dir" ; then
|
|
3811 AC_HEADER_CHECK(sys/dir.h, , nonsystem_dir_library=yes)
|
|
3812 fi
|
|
3813 if test -n "$sysv_system_dir" ; then
|
|
3814 AC_DEFINE(SYSV_SYSTEM_DIR)
|
|
3815 elif test -n "$nonsystem_dir_library" ; then
|
|
3816 AC_DEFINE(NONSYSTEM_DIR_LIBRARY)
|
|
3817 fi
|
|
3818
|
|
3819 # Check for terminal I/O variants
|
|
3820
|
|
3821 echo "checking how to do terminal I/O"
|
|
3822
|
|
3823 have_termios=
|
|
3824 have_termio=
|
|
3825 AC_HEADER_CHECK(termios.h, have_termios=yes, )
|
|
3826 # TERMIOS systems may have termio.h, but not vice-versa, I think.
|
|
3827 if test -z "$have_termios" ; then
|
|
3828 AC_HEADER_CHECK(termio.h, have_termio=yes, )
|
|
3829 fi
|
|
3830 if test -n "$have_termios" ; then
|
|
3831 AC_DEFINE(HAVE_TERMIOS)
|
|
3832 elif test -n "$have_termio" ; then
|
|
3833 AC_DEFINE(HAVE_TERMIO)
|
|
3834 fi
|
|
3835
|
|
3836 # Check for nlist.h
|
|
3837 AC_HEADER_CHECK(nlist.h, AC_DEFINE(NLIST_STRUCT), )
|
|
3838
|
|
3839 if test -f /usr/lpp/X11/bin/smt.exp ; then
|
|
3840 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/lpp/X11/bin/smt.exp)
|
|
3841 elif test -f /usr/bin/X11/smt.exp ; then
|
|
3842 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/bin/X11/smt.exp)
|
|
3843 fi
|
|
3844
|
|
3845 # Set up the CFLAGS for real compilation, so we can substitute it.
|
|
3846 CFLAGS="$REAL_CFLAGS"
|
|
3847
|
|
3848 [
|
|
3849 #### Find out which version of XEmacs this is.
|
|
3850 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
|
|
3851 | sed -ne 's/^(defconst emacs-version "\([0-9][0-9]\.[0-9]*\).*/\1/p'`
|
|
3852 beta=`grep '" XEmacs Lucid' ${srcdir}/lisp/version.el \
|
|
3853 | sed -ne 's/^.*" XEmacs Lucid (beta\([^)]*\)).*/\1/p'`
|
|
3854 alpha=`grep '" XEmacs Lucid' ${srcdir}/lisp/version.el \
|
|
3855 | sed -ne 's/^.*" XEmacs Lucid (alpha\([^)]*\)).*/\1/p'`
|
|
3856 if [ "X$beta" != "X" ]; then
|
|
3857 version=${version}-b${beta}
|
|
3858 fi
|
|
3859 if [ "X$alpha" != "X" ]; then
|
|
3860 version=${version}-a${alpha}
|
|
3861 fi
|
|
3862 if [ x"${version}" = x ]; then
|
|
3863 echo "${progname}: can't find current emacs version in
|
|
3864 \`${srcdir}/lisp/version.el'." >&2
|
|
3865 exit 1
|
|
3866 fi
|
|
3867
|
|
3868 #
|
|
3869 # Check for sound of various sorts.
|
|
3870 #
|
|
3871
|
|
3872 # the following needs to be fixed for SGI.
|
|
3873 if [ -z "${native_sound_lib}" ]; then
|
|
3874 if [ -r /usr/demo/SOUND/lib/libaudio.a ]; then
|
|
3875 native_sound_lib=/usr/demo/SOUND/lib/libaudio.a
|
|
3876 elif [ -r /usr/demo/SOUND/libaudio.a ]; then
|
|
3877 native_sound_lib=/usr/demo/SOUND/libaudio.a
|
|
3878 else
|
|
3879 case "${canonical}" in
|
|
3880 *-sgi-* ) native_sound_lib=-laudio ;;
|
|
3881 hppa*-hp-hpux* ) native_sound_lib=-lAlib ;;
|
|
3882 esac
|
|
3883 fi
|
|
3884 fi
|
|
3885
|
|
3886 if [ "${with_sound}" != "native" ] && [ "${with_sound}" != "nas" ] && [ "${with_sound}" != "both" ] && [ "${with_sound}" != "no" ] ; then
|
|
3887 if [ -d /usr/demo/SOUND/multimedia -o -d /usr/demo/SOUND/include/multimedia ]; then
|
|
3888 with_sound="native"
|
|
3889 else
|
|
3890 case "${canonical}" in
|
|
3891 *-sgi-* )
|
|
3892 ] AC_HAVE_LIBRARY(-laudio, with_sound="native") [
|
|
3893 ;;
|
|
3894 hppa*-hp-hpux* )
|
|
3895 ] AC_HAVE_LIBRARY(-lAlib, with_sound="native") [
|
|
3896 ;;
|
|
3897 esac
|
|
3898 fi
|
|
3899 fi
|
|
3900
|
|
3901 #### If the nas library doesn't contain the error jump point, then
|
|
3902 #### we force safer behaviour.
|
|
3903
|
|
3904 if [ "${with_sound}" = "nas" ] || [ "${with_sound}" = "both" ] ; then
|
|
3905 ] AC_HEADER_EGREP(AuXtErrorJump,audio/Xtutil.h, , old_nas=true) [
|
|
3906 fi
|
|
3907
|
|
3908 if [ "${with_tooltalk}" = "yes" ]; then
|
|
3909 for arg in ${DEFS} "-I/usr/include" "-I${OPENWINHOME-/usr/openwin}/include"
|
|
3910 do
|
|
3911 if [ -f `echo "${arg}/desktop/tt_c.h" | sed 's/^\-I//'` ]; then
|
|
3912 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}/desktop"
|
|
3913 fi
|
|
3914 done
|
|
3915
|
|
3916 for arg in ${LIBS} "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib"
|
|
3917 do
|
|
3918 case "${arg}" in
|
|
3919 -L*) if [ -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ]; then
|
|
3920 dash_r=''
|
|
3921 if [ -n "${add_runtime_flag}" ]; then
|
|
3922 dash_r=`echo ${arg} | sed "s/^-L/-R${dash_r_space}/"`
|
|
3923 fi
|
|
3924 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
|
|
3925 fi
|
|
3926 ;;
|
|
3927 esac
|
|
3928 done
|
|
3929 fi
|
|
3930
|
|
3931 #
|
|
3932 # Check for ncurses.
|
|
3933 #
|
|
3934
|
|
3935 if [ "${with_tty}" != "no" ] ; then
|
|
3936 ] AC_HAVE_LIBRARY(-lncurses, have_ncurses=yes, have_ncurses=no) [
|
|
3937 if [ "${have_ncurses}" = "yes" ] ; then
|
|
3938 ] AC_DEFINE(HAVE_NCURSES) [
|
|
3939 ] AC_HEADER_CHECK(ncurses/term.h, have_ncurses_term_h=yes, have_ncurses_term_h=no) [
|
|
3940 if [ "${have_ncurses_term_h}" = "yes" ] ; then
|
|
3941 ] AC_DEFINE(HAVE_NCURSES_TERM_H) [
|
|
3942 fi
|
|
3943 ] AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no) [
|
|
3944 if [ "${have_ncurses_curses_h}" = "no" ] ; then
|
|
3945 # Try again, and check for the bogus ncurses/ include bug.
|
|
3946 # (i.e. ncurses/curses.h bogusly includes <unctrl.h> instead of
|
|
3947 # <ncurses/unctrl.h>)
|
|
3948 OLD_CPP="${CPP}"
|
|
3949 CPP="${CPP} -I/usr/include/ncurses"
|
|
3950 ] AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no) [
|
|
3951 if [ "${have_ncurses_curses_h}" = "yes" ] ; then
|
|
3952 site_includes="${site_includes} /usr/include/ncurses"
|
|
3953 C_SWITCH_SITE="${C_SWITCH_SITE} -I/usr/include/ncurses"
|
|
3954 ] AC_VERBOSE(Your system has the bogus ncurses include bug.) [
|
|
3955 else
|
|
3956 CPP="${OLD_CPP}"
|
|
3957 fi
|
|
3958 fi
|
|
3959 if [ "${have_ncurses_curses_h}" = "yes" ] ; then
|
|
3960 ] AC_DEFINE(HAVE_NCURSES_CURSES_H) [
|
|
3961 fi
|
|
3962 fi
|
|
3963 fi
|
|
3964
|
|
3965 #
|
|
3966 # Check for database support.
|
|
3967 #
|
|
3968
|
|
3969 ]dnl <mdiers@logware.de>
|
|
3970 dnl We don't necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support.
|
|
3971 dnl On FreeBSD, both DB and DBM are part of libc.
|
|
3972 dnl Note that unless support for DB/(G)DBM is explicitly disabled, we always
|
|
3973 dnl want to check for libdb/lib(g)dbm. Also note that libc will not be
|
|
3974 dnl checked if we have the libraries.
|
|
3975 dnl If support for DB/(G)DBM is requested, but we neither have libdb/lib(g)dbm,
|
|
3976 dnl nor does libc implement it, we are a bit lost :)
|
|
3977 dnl But wait: one still could define DATABASE_DB_LIBS and DATABASE_DBM_LIBS
|
|
3978 dnl in the system description file to read -lthisiswhereitsat and
|
|
3979 dnl have --site-libraries point there.
|
|
3980 dnl (Does this make sense? My head hurts...)
|
|
3981 [
|
|
3982 if [ "${with_database_berkdb}" != "no" ] ; then
|
|
3983 ] AC_HAVE_LIBRARY(-ldb, have_libdb=yes, have_libdb=no) [
|
|
3984 if [ "${have_libdb}" = "yes" ] ; then
|
|
3985 ] AC_DEFINE(HAVE_LIBDB) [
|
|
3986 fi
|
|
3987 if [ "${with_database_berkdb}" != "yes" ] ; then
|
|
3988 if [ "${have_libdb}" = "yes" ] ; then
|
|
3989 with_database_berkdb=yes
|
|
3990 else
|
|
3991 ] AC_FUNC_CHECK(dbopen, have_dbopen=yes, have_dbopen=no) [
|
|
3992 if [ "${have_dbopen}" = "yes" ] ; then
|
|
3993 with_database_berkdb=yes
|
|
3994 else
|
|
3995 with_database_berkdb=no
|
|
3996 fi
|
|
3997 fi
|
|
3998 fi
|
|
3999 fi
|
|
4000 if [ "${with_database_berkdb}" = "yes" ]; then
|
|
4001 ] AC_DEFINE(HAVE_BERKELEY_DB) [
|
|
4002 fi
|
|
4003
|
|
4004 if [ "${with_database_gnudbm}" != "no" ] ; then
|
|
4005 ] AC_HAVE_LIBRARY(-lgdbm, have_libgdbm=yes, have_libgdbm=no) [
|
|
4006 if [ "${have_libgdbm}" = "yes" ] ; then
|
|
4007 ] AC_DEFINE(HAVE_LIBGDBM) [
|
|
4008 fi
|
|
4009 if [ "${with_database_gnudbm}" != "yes" ] ; then
|
|
4010 if [ "${have_libgdbm}" = "yes" ] ; then
|
|
4011 with_database_gnudbm=yes
|
|
4012 else
|
|
4013 with_database_gnudbm=no
|
|
4014 fi
|
|
4015 fi
|
|
4016 fi
|
|
4017 if [ "${with_database_gnudbm}" = "yes" ]; then
|
|
4018 ] AC_DEFINE(HAVE_DBM) [
|
|
4019 ] AC_DEFINE(HAVE_GNU_DBM) [
|
|
4020 with_database_dbm=no
|
|
4021 fi
|
|
4022
|
|
4023 if [ "${with_database_dbm}" != "no" ] ; then
|
|
4024 ] AC_HAVE_LIBRARY(-ldbm, have_libdbm=yes, have_libdbm=no) [
|
|
4025 if [ "${have_libdbm}" = "yes" ] ; then
|
|
4026 ] AC_DEFINE(HAVE_LIBDBM) [
|
|
4027 fi
|
|
4028 if [ "${with_database_dbm}" != "yes" ] ; then
|
|
4029 if [ "${have_libdbm}" = "yes" ] ; then
|
|
4030 with_database_dbm=yes
|
|
4031 else
|
|
4032 ] AC_FUNC_CHECK(dbm_open, have_dbm_open=yes, have_dbm_open=no) [
|
|
4033 if [ "${have_dbm_open}" = "yes" ] ; then
|
|
4034 with_database_dbm=yes
|
|
4035 else
|
|
4036 with_database_dbm=no
|
|
4037 fi
|
|
4038 fi
|
|
4039 fi
|
|
4040 fi
|
|
4041 if [ "${with_database_dbm}" = "yes" ]; then
|
|
4042 ] AC_DEFINE(HAVE_DBM) [
|
|
4043 fi
|
|
4044
|
|
4045
|
|
4046 ############################################################################
|
|
4047 # #
|
|
4048 # Substitute into Makefile and config.h #
|
|
4049 # #
|
|
4050 ############################################################################
|
|
4051
|
|
4052 ### Specify what sort of things we'll be editing into Makefile and config.h.
|
|
4053 ### Use configuration here uncanonicalized to avoid exceeding size limits.
|
|
4054 ]
|
|
4055 AC_SUBST(version)
|
|
4056 AC_SUBST(configuration)
|
|
4057 AC_SUBST(canonical)
|
|
4058 AC_SUBST(srcdir)
|
|
4059 AC_SUBST(prefix)
|
|
4060 AC_SUBST(exec_prefix)
|
|
4061 AC_SUBST(bindir)
|
|
4062 AC_SUBST(datadir)
|
|
4063 AC_SUBST(statedir)
|
|
4064 AC_SUBST(libdir)
|
|
4065 AC_SUBST(mandir)
|
|
4066 AC_SUBST(infodir)
|
|
4067 AC_SUBST(infodir_user_defined)
|
|
4068 AC_SUBST(lispdir)
|
|
4069 AC_SUBST(lispdir_user_defined)
|
|
4070 AC_SUBST(sitelispdir)
|
|
4071 AC_SUBST(etcdir)
|
|
4072 AC_SUBST(etcdir_user_defined)
|
|
4073 AC_SUBST(lockdir)
|
|
4074 AC_SUBST(lockdir_user_defined)
|
|
4075 AC_SUBST(archlibdir)
|
|
4076 AC_SUBST(archlibdir_user_defined)
|
|
4077 AC_SUBST(docdir)
|
|
4078 AC_SUBST(bitmapdir)
|
|
4079 AC_SUBST(c_switch_system)
|
|
4080 AC_SUBST(c_switch_machine)
|
|
4081 AC_SUBST(libsrc_libs)
|
|
4082 AC_SUBST(LD_SWITCH_X_SITE)
|
|
4083 AC_SUBST(LD_SWITCH_X_SITE_AUX)
|
|
4084 AC_SUBST(C_SWITCH_X_SITE)
|
|
4085 AC_SUBST(LD_SWITCH_SITE)
|
|
4086 AC_SUBST(C_SWITCH_SITE)
|
|
4087 AC_SUBST(CFLAGS)
|
|
4088 AC_SUBST(native_sound_lib)
|
|
4089 AC_SUBST(machfile)
|
|
4090 AC_SUBST(opsysfile)
|
|
4091 AC_SUBST(RANLIB)
|
|
4092 AC_SUBST(dynodump_arch)
|
|
4093
|
|
4094 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "\"${canonical}\"")
|
|
4095 AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
|
|
4096 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
|
|
4097 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
|
|
4098 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX})
|
|
4099 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE})
|
|
4100 AC_DEFINE_UNQUOTED(LD_SWITCH_SITE, ${LD_SWITCH_SITE})
|
|
4101 AC_DEFINE_UNQUOTED(C_SWITCH_SITE, ${C_SWITCH_SITE})
|
|
4102 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC})
|
|
4103
|
|
4104 [
|
|
4105
|
|
4106 # Note: as a general rule, *only* define things here that are not
|
|
4107 # autodetected. For things that are autodetected, define them
|
|
4108 # at the point where the autodetection occurs or would occur,
|
|
4109 # so that the user gets immediate feedback on the results of the
|
|
4110 # autodetection.
|
|
4111
|
|
4112 if [ x"${puresize}" != x ] ; then
|
28
|
4113 ] AC_DEFINE_UNQUOTED(RAW_PURESIZE, ${puresize}) [
|
0
|
4114 fi
|
|
4115 if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then
|
|
4116 ] AC_DEFINE(HAVE_X_WINDOWS) [
|
|
4117 fi
|
|
4118 if [ "${HAVE_XFREE386}" = "yes" ] ; then
|
|
4119 ] AC_DEFINE(HAVE_XFREE386) [
|
|
4120 fi
|
|
4121 if [ "${GNU_MALLOC}" = "yes" ] ; then
|
|
4122 ] AC_DEFINE(GNU_MALLOC) [
|
|
4123 elif [ "${use_system_malloc}" = "yes" ]; then
|
|
4124 ] AC_DEFINE(USE_SYSTEM_MALLOC) [
|
|
4125 fi
|
|
4126 if [ "${rel_alloc}" = "yes" ] ; then
|
|
4127 ] AC_DEFINE(REL_ALLOC) [
|
|
4128 fi
|
|
4129 if [ "${LISP_FLOAT_TYPE}" = "yes" ] ; then
|
|
4130 ] AC_DEFINE(LISP_FLOAT_TYPE) [
|
|
4131 fi
|
|
4132 if [ "${with_motif}" = "yes" ] ; then
|
|
4133 ] AC_DEFINE(LWLIB_USES_MOTIF) [
|
|
4134 fi
|
16
|
4135 if [ "${with_athena}" = "yes" ] ; then
|
|
4136 ] AC_DEFINE(LWLIB_USES_ATHENA) [
|
|
4137 fi
|
0
|
4138 if [ "${with_menubars}" = "lucid" ] ; then
|
|
4139 ] AC_DEFINE(LWLIB_MENUBARS_LUCID) [
|
|
4140 ] AC_DEFINE(HAVE_MENUBARS) [
|
|
4141 fi
|
|
4142 if [ "${with_menubars}" = "motif" ]; then
|
|
4143 ] AC_DEFINE(LWLIB_MENUBARS_MOTIF) [
|
|
4144 ] AC_DEFINE(HAVE_MENUBARS) [
|
|
4145 fi
|
|
4146 if [ "${with_scrollbars}" = "lucid" ] ; then
|
|
4147 ] AC_DEFINE(LWLIB_SCROLLBARS_LUCID) [
|
|
4148 ] AC_DEFINE(HAVE_SCROLLBARS) [
|
|
4149 fi
|
|
4150 if [ "${with_scrollbars}" = "motif" ] ; then
|
|
4151 ] AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) [
|
|
4152 ] AC_DEFINE(HAVE_SCROLLBARS) [
|
|
4153 fi
|
|
4154 if [ "${with_scrollbars}" = "athena" ] ; then
|
|
4155 ] AC_DEFINE(LWLIB_SCROLLBARS_ATHENA) [
|
|
4156 ] AC_DEFINE(HAVE_SCROLLBARS) [
|
|
4157 fi
|
|
4158 if [ "${with_dialogs}" = "motif" ] ; then
|
|
4159 ] AC_DEFINE(LWLIB_DIALOGS_MOTIF) [
|
|
4160 ] AC_DEFINE(HAVE_DIALOGS) [
|
|
4161 fi
|
|
4162 if [ "${with_dialogs}" = "athena" ] ; then
|
|
4163 ] AC_DEFINE(LWLIB_DIALOGS_ATHENA) [
|
|
4164 ] AC_DEFINE(HAVE_DIALOGS) [
|
|
4165 fi
|
|
4166 if [ "${with_toolbars}" = "yes" ] ; then
|
|
4167 ] AC_DEFINE(HAVE_TOOLBARS) [
|
|
4168 fi
|
|
4169 if [ "${with_tty}" = "yes" ] ; then
|
|
4170 ] AC_DEFINE(HAVE_TTY) [
|
|
4171 fi
|
|
4172 if [ "${with_tooltalk}" = "yes" ] ; then
|
|
4173 ] AC_DEFINE(TOOLTALK) [
|
|
4174 fi
|
|
4175 if [ "$with_mocklisp" = "yes" ]; then
|
|
4176 ] AC_DEFINE(MOCKLISP_SUPPORT) [
|
|
4177 fi
|
|
4178 if [ "${with_sparcworks}" = "yes" ] ; then
|
|
4179 ] AC_DEFINE(SUNPRO) [
|
|
4180 fi
|
|
4181 if [ "${usage_tracking}" = "yes" ] ; then
|
|
4182 ] AC_DEFINE(USAGE_TRACKING) [
|
|
4183 fi
|
|
4184 if [ "${with_energize}" = "yes" ] ; then
|
|
4185 ] AC_DEFINE(ENERGIZE) [
|
|
4186 if [ "${energize_version}" = "2.X" ] ; then
|
|
4187 ] AC_DEFINE(ENERGIZE_2) [
|
|
4188 elif [ "${energize_version}" = "3.X" ] ; then
|
|
4189 ] AC_DEFINE(ENERGIZE_3) [
|
|
4190 fi
|
|
4191 fi
|
|
4192 if [ "${need_dynodump}" = "yes" ] ; then
|
|
4193 ] AC_DEFINE(DYNODUMP) [
|
|
4194 fi
|
|
4195 if [ "${need_xildoff}" = "yes" ] ; then
|
|
4196 ] AC_DEFINE(NEED_XILDOFF) [
|
|
4197 fi
|
|
4198 if [ "${with_gcc}" = "yes" ] ; then
|
|
4199 ] AC_DEFINE(USE_GCC) [
|
|
4200 fi
|
|
4201 if [ "${with_lcc}" = "yes" ] ; then
|
|
4202 ] AC_DEFINE(USE_LCC) [
|
|
4203 fi
|
|
4204 if [ "${with_socks}" = "yes" ]; then
|
|
4205 ] AC_DEFINE(HAVE_SOCKS) [
|
|
4206 fi
|
|
4207 if [ "${with_term}" = "yes" ]; then
|
|
4208 ] AC_DEFINE(HAVE_TERM) [
|
|
4209 fi
|
|
4210 if [ "${with_epoch}" = "yes" ]; then
|
|
4211 ] AC_DEFINE(EPOCH) [
|
|
4212 fi
|
|
4213 if [ "${with_sound}" = "native" -o "${with_sound}" = "both" ]; then
|
|
4214 ] AC_DEFINE(HAVE_NATIVE_SOUND) [
|
|
4215 fi
|
|
4216 if [ "${with_sound}" = "nas" -o "${with_sound}" = "both" ]; then
|
|
4217 ] AC_DEFINE(HAVE_NAS_SOUND) [
|
|
4218 fi
|
|
4219 if [ "${old_nas}" = "true" ] ; then
|
|
4220 ] AC_DEFINE(NAS_NO_ERROR_JUMP) [
|
|
4221 fi
|
|
4222 if [ "${external_widget}" = "yes" ]; then
|
|
4223 ] AC_DEFINE(EXTERNAL_WIDGET) [
|
|
4224 fi
|
|
4225 if [ "${with_gnu_make}" = "yes" ]; then
|
|
4226 ] AC_DEFINE(USE_GNU_MAKE) [
|
|
4227 fi
|
|
4228 if [ "${no_doc_file}" = "yes" ]; then
|
|
4229 ] AC_DEFINE(NO_DOC_FILE) [
|
|
4230 fi
|
|
4231 if [ "${const_is_losing}" = "yes" ]; then
|
|
4232 ] AC_DEFINE(CONST_IS_LOSING) [
|
|
4233 fi
|
|
4234 if [ "${use_assertions}" = "yes" ]; then
|
|
4235 ] AC_DEFINE(USE_ASSERTIONS) [
|
|
4236 fi
|
|
4237 if [ "${error_check_extents}" = "yes" ]; then
|
|
4238 ] AC_DEFINE(ERROR_CHECK_EXTENTS) [
|
|
4239 fi
|
|
4240 if [ "${error_check_typecheck}" = "yes" ]; then
|
|
4241 ] AC_DEFINE(ERROR_CHECK_TYPECHECK) [
|
|
4242 fi
|
|
4243 if [ "${error_check_bufpos}" = "yes" ]; then
|
|
4244 ] AC_DEFINE(ERROR_CHECK_BUFPOS) [
|
|
4245 fi
|
|
4246 if [ "${error_check_gc}" = "yes" ]; then
|
|
4247 ] AC_DEFINE(ERROR_CHECK_GC) [
|
|
4248 fi
|
|
4249 if [ "${error_check_malloc}" = "yes" ]; then
|
|
4250 ] AC_DEFINE(ERROR_CHECK_MALLOC) [
|
|
4251 fi
|
|
4252 if [ "${debug}" = "yes" ]; then
|
|
4253 ] AC_DEFINE(DEBUG_XEMACS) [
|
|
4254 fi
|
|
4255 if [ "${memory_usage_stats}" = "yes" ]; then
|
|
4256 ] AC_DEFINE(MEMORY_USAGE_STATS) [
|
|
4257 fi
|
|
4258 if [ "${use_union_type}" != "yes" ]; then
|
|
4259 ] AC_DEFINE(NO_UNION_TYPE) [
|
|
4260 fi
|
|
4261 if [ "${quantify}" = "yes" ]; then
|
|
4262 ] AC_DEFINE(QUANTIFY) [
|
|
4263 fi
|
|
4264
|
|
4265 # ====================== Developer's configuration =======================
|
|
4266
|
|
4267 # The following assignments make sense if you're running XEmacs on a single
|
|
4268 # machine, one version at a time, and you want changes to the lisp and etc
|
|
4269 # directories in the source tree to show up immediately in your working
|
|
4270 # environment. It saves a great deal of disk space by not duplicating the
|
|
4271 # lisp and etc directories.
|
|
4272
|
|
4273 if [ "$run_in_place" = "yes" ]; then
|
|
4274 prefix='${srcdir}'
|
|
4275 exec_prefix='${srcdir}'
|
|
4276 bindir='${exec_prefix}/bin/${configuration}'
|
|
4277 lispdir='${srcdir}/lisp'
|
|
4278 sitelispdir='${lispdir}/site-lisp'
|
|
4279 etcdir='${srcdir}/etc'
|
|
4280 lockdir='${srcdir}/lock'
|
|
4281 archlibdir='${srcdir}/lib-src/${configuration}'
|
|
4282 infodir='${srcdir}/info'
|
|
4283 fi
|
|
4284 #elif [ "$single_tree" = "1" ]; then
|
|
4285 # if [ "$exec_prefix_specified" = "" ]; then
|
|
4286 # exec_prefix='${prefix}'
|
|
4287 # fi
|
|
4288 # if [ "$bindir_specified" = "" ]; then
|
|
4289 # bindir='${exec_prefix}/bin/${configuration}'
|
|
4290 # fi
|
|
4291 # if [ "$datadir_specified" = "" ]; then
|
|
4292 # datadir='${prefix}/common'
|
|
4293 # fi
|
|
4294 # if [ "$statedir_specified" = "" ]; then
|
|
4295 # statedir='${prefix}/common'
|
|
4296 # fi
|
|
4297 # if [ "$libdir_specified" = "" ]; then
|
|
4298 # libdir='${bindir}'
|
|
4299 # fi
|
|
4300 # if [ "$lispdir_specified" = "" ]; then
|
|
4301 # lispdir='${prefix}/common/lisp'
|
|
4302 # fi
|
|
4303 # if [ "$locallisppath_specified" = "" ]; then
|
|
4304 # locallisppath='${prefix}/common/site-lisp'
|
|
4305 # fi
|
|
4306 # if [ "$lockdir_specified" = "" ]; then
|
|
4307 # lockdir='${prefix}/common/lock'
|
|
4308 # fi
|
|
4309 # if [ "$archlibdir_specified" = "" ]; then
|
|
4310 # archlibdir='${libdir}/etc'
|
|
4311 # fi
|
|
4312 # if [ "$etcdir_specified" = "" ]; then
|
|
4313 # etcdir='${prefix}/common/data'
|
|
4314 # fi
|
|
4315 # if [ "$docdir_specified" = "" ]; then
|
|
4316 # docdir='${prefix}/common/data'
|
|
4317 # fi
|
|
4318 #fi
|
|
4319
|
|
4320 ############################################################################
|
|
4321 # #
|
|
4322 # Report on what we decided to do #
|
|
4323 # #
|
|
4324 ############################################################################
|
|
4325
|
|
4326 echo "
|
|
4327
|
|
4328 Configured for \`${canonical}'.
|
|
4329
|
|
4330 Where should the build process find the source code? ${srcdir}
|
|
4331 What installation prefix should install use? ${prefix}
|
|
4332 What operating system and machine description files should XEmacs use?
|
|
4333 \`${opsysfile}' and \`${machfile}'
|
|
4334 What compiler should XEmacs be built with? ${CC} ${CFLAGS}
|
|
4335 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
|
|
4336 Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
|
|
4337 What window system should XEmacs use? ${window_system}${x_includes+
|
|
4338 Where do we find X Windows header files? }${x_includes}${x_libraries+
|
|
4339 Where do we find X Windows libraries? }${x_libraries}"
|
|
4340
|
|
4341 if [ -n "$site_includes" ]; then
|
|
4342 echo " Additional header files: ${site_includes}"
|
|
4343 fi
|
|
4344
|
|
4345 if [ -n "$site_libraries" ] && [ -n "$site_runtime_libraries" ]; then
|
|
4346 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}"
|
|
4347 elif [ -n "$site_libraries" ]; then
|
|
4348 echo " Additional libraries: ${site_libraries}"
|
|
4349 elif [ -n "$site_runtime_libraries" ]; then
|
|
4350 echo " Additional libraries: ${site_runtime_libraries}"
|
|
4351 fi
|
|
4352
|
|
4353
|
|
4354 if [ "$with_socks" = "yes" ]; then
|
|
4355 echo " Compiling in support for SOCKS."
|
|
4356 fi
|
|
4357 if [ "$with_term" = "yes" ]; then
|
|
4358 echo " Compiling in support for TERM."
|
|
4359 fi
|
|
4360 if [ "$with_xauth" = "yes" ]; then
|
|
4361 echo " Compiling in support for XAUTH."
|
|
4362 fi
|
|
4363 if [ "$with_xpm" = "yes" ]; then
|
|
4364 echo " Compiling in support for XPM."
|
|
4365 fi
|
|
4366 if [ "$with_xmu" != "yes" ] && [ "$window_system" != "none" ]; then
|
|
4367 echo " No Xmu; substituting equivalent routines."
|
|
4368 fi
|
|
4369 if [ "$with_xface" = "yes" ]; then
|
|
4370 echo " Compiling in support for X-Face headers."
|
|
4371 fi
|
|
4372 if [ "$with_gif" = "yes" ]; then
|
|
4373 echo " Compiling in support for GIF image conversion."
|
|
4374 fi
|
|
4375 if [ "$with_jpeg" = "yes" ]; then
|
|
4376 echo " Compiling in support for JPEG image conversion."
|
|
4377 fi
|
|
4378 if [ "$with_png" = "yes" ] || [ "$with_png" = "gnuz" ]; then
|
|
4379 echo " Compiling in support for PNG image conversion."
|
|
4380 fi
|
|
4381 if [ "$with_png" = "gnuz" ]; then
|
|
4382 echo " (Using -lgz instead of -lz.)"
|
|
4383 fi
|
|
4384 if [ "$with_tiff" = "yes" ]; then
|
|
4385 echo " Compiling in support for TIFF image conversion (not implemented)."
|
|
4386 fi
|
|
4387 if [ "$with_epoch" = "yes" ]; then
|
|
4388 echo " Compiling in extra Epoch compatibility."
|
|
4389 fi
|
|
4390 if [ "$with_sound" = "nas" ]; then
|
|
4391 echo " Compiling in network sound support."
|
|
4392 fi
|
|
4393 if [ "$with_sound" = "native" ]; then
|
|
4394 echo " Compiling in native sound support."
|
|
4395 fi
|
|
4396 if [ "$with_sound" = "both" ]; then
|
|
4397 echo " Compiling in both network and native sound support."
|
|
4398 fi
|
|
4399 if [ "$old_nas" = true ]; then
|
|
4400 echo " nas library lacks error trapping, will play synchronously"
|
|
4401 fi
|
|
4402 if [ "$with_database_berkdb" = "yes" ]; then
|
|
4403 echo " Compiling in support for Berkeley DB."
|
|
4404 fi
|
|
4405 if [ "$with_database_dbm" = "yes" ]; then
|
|
4406 echo " Compiling in support for DBM."
|
|
4407 fi
|
|
4408 if [ "$with_database_gnudbm" = "yes" ]; then
|
|
4409 echo " Compiling in support for GNU DBM."
|
|
4410 fi
|
|
4411 if [ "$with_ncurses" = "yes" ]; then
|
|
4412 echo " Compiling in support for ncurses."
|
|
4413 fi
|
|
4414 if [ "$with_socks" = "yes" ]; then
|
|
4415 echo " Compiling in support for SOCKS."
|
|
4416 fi
|
|
4417 if [ "$with_tooltalk" = "yes" ]; then
|
|
4418 echo " Compiling in support for ToolTalk."
|
|
4419 fi
|
|
4420 if [ "$with_cde" = "yes" ]; then
|
|
4421 echo " Compiling in support for CDE."
|
|
4422 fi
|
2
|
4423 if [ "$with_offix" = "yes" ]; then
|
|
4424 echo " Compiling in support for OffiX."
|
|
4425 fi
|
0
|
4426 if [ "$with_mocklisp" = "yes" ]; then
|
|
4427 echo " Compiling in support for Mocklisp."
|
|
4428 fi
|
|
4429 if [ "$with_sparcworks" = "yes" ]; then
|
|
4430 echo " Compiling in support for SparcWorks."
|
|
4431 fi
|
|
4432 if [ "$with_energize" = "yes" ]; then
|
|
4433 echo " Compiling in support for Lucid Energize (doesn't currently work)."
|
|
4434 fi
|
|
4435 if [ "$with_menubars" = "lucid" ]; then
|
|
4436 echo " Using the Lucid menubar."
|
|
4437 fi
|
|
4438 if [ "$with_menubars" = "motif" ]; then
|
|
4439 echo " Using the Motif menubar."
|
|
4440 echo " *WARNING* The Motif menubar is currently buggy. We recommend"
|
|
4441 echo " that you use the Lucid menubar instead. Re-run"
|
|
4442 echo " configure with --with-menubars='lucid'."
|
|
4443 fi
|
|
4444 if [ "$with_scrollbars" = "lucid" ]; then
|
|
4445 echo " Using the Lucid scrollbar."
|
|
4446 fi
|
|
4447 if [ "$with_scrollbars" = "motif" ]; then
|
|
4448 echo " Using the Motif scrollbar."
|
|
4449 fi
|
|
4450 if [ "$with_scrollbars" = "athena" ]; then
|
|
4451 echo " Using the Athena scrollbar."
|
|
4452 fi
|
|
4453 if [ "$with_dialogs" = "motif" ]; then
|
|
4454 echo " Using the Motif dialog boxes."
|
|
4455 fi
|
|
4456 if [ "$with_dialogs" = "athena" ]; then
|
|
4457 echo " Using the Athena dialog boxes."
|
|
4458 fi
|
|
4459 if [ "${use_union_type}" = "yes" ]; then
|
|
4460 echo " Using the union type for Lisp_Objects."
|
|
4461 fi
|
|
4462 if [ "${debug}" = "yes" ]; then
|
|
4463 echo " Compiling in extra code for debugging."
|
|
4464 fi
|
|
4465 if [ "${memory_usage_stats}" = "yes" ]; then
|
|
4466 echo " Compiling in code for checking XEmacs memory usage."
|
|
4467 fi
|
|
4468 if [ "$usage_tracking" = "yes" ]; then
|
|
4469 echo " Compiling with usage tracking active (Sun internal)."
|
|
4470 fi
|
|
4471 echo "
|
|
4472 "
|
|
4473
|
|
4474 ############################################################################
|
|
4475 # #
|
|
4476 # Now generate! #
|
|
4477 # #
|
|
4478 ############################################################################
|
|
4479
|
|
4480 # This has to be called in order for this variable to get into config.status
|
|
4481 ] AC_SUBST(internal_makefile_list) [
|
|
4482 # Remove any trailing slashes in these variables.
|
|
4483 test -n "${prefix}" &&
|
|
4484 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
4485 test -n "${exec_prefix}" &&
|
|
4486 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
4487 ]
|
|
4488 AC_OUTPUT($internal_makefile_list) [
|
|
4489 # Build:
|
|
4490 # src/Makefile from ${srcdir}/src/Makefile.in
|
|
4491 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in
|
|
4492 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in
|
|
4493 # man/*/Makefile from ${srcdir}/man/*/Makefile.in
|
|
4494 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in
|
|
4495 # and possibly
|
|
4496 # lwlib/energize/Makefile from ${srcdir}/lwlib/energize/Makefile.in.
|
|
4497 # This must be done after src/config.h is built, since we rely on that
|
|
4498 # file. Only do the build if "config.status" is present, since its
|
|
4499 # non-presence indicates an error occured.
|
|
4500 status=$?
|
|
4501 if [ ! -f ./config.status ]; then
|
|
4502 exit $status
|
|
4503 fi
|
|
4504 topsrcdir=${srcdir}
|
|
4505 # We discard all lines in Makefile.in that start with `# Generated' or /**/#
|
|
4506 # because some cpps get confused by them.
|
|
4507 # Really we should preserve them somehow into Makefile,
|
|
4508 # but that is beyond my level of shell programming.
|
|
4509 makefile_command='echo "creating src/Makefile";
|
|
4510 topsrcdir='"${topsrcdir}"';
|
|
4511 ( cd ./src;
|
|
4512 rm -f junk.c;
|
|
4513 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4514 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4515 < junk.cpp '\
|
|
4516 ' sed -e '\''s/^#.*//'\'' '\
|
|
4517 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4518 ' -e '\''s/^ / /'\'' '\
|
|
4519 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4520 ' > Makefile.new;
|
|
4521 chmod 444 Makefile.new;
|
|
4522 mv -f Makefile.new Makefile;
|
|
4523 rm -f junk.c junk.cpp;
|
|
4524 )'
|
|
4525 eval `echo $makefile_command`
|
|
4526 lwlib_makefile_command='echo "creating lwlib/Makefile";
|
|
4527 topsrcdir='"${topsrcdir}"';
|
|
4528 ( cd ./lwlib;
|
|
4529 rm -f junk.c;
|
|
4530 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4531 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4532 < junk.cpp '\
|
|
4533 ' sed -e '\''s/^#.*//'\'' '\
|
|
4534 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4535 ' -e '\''s/^ / /'\'' '\
|
|
4536 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4537 ' > Makefile.new;
|
|
4538 chmod 444 Makefile.new;
|
|
4539 mv -f Makefile.new Makefile;
|
|
4540 rm -f junk.c junk.cpp;
|
|
4541 )'
|
|
4542 eval `echo $lwlib_makefile_command`
|
|
4543 lib_src_makefile_command='echo "creating lib-src/Makefile";
|
|
4544 topsrcdir='"${topsrcdir}"';
|
|
4545 ( cd ./lib-src;
|
|
4546 rm -f junk.c;
|
|
4547 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4548 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4549 < junk.cpp '\
|
|
4550 ' sed -e '\''s/^#.*//'\'' '\
|
|
4551 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4552 ' -e '\''s/^ / /'\'' '\
|
|
4553 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4554 ' > Makefile.new;
|
|
4555 chmod 444 Makefile.new;
|
|
4556 mv -f Makefile.new Makefile;
|
|
4557 rm -f junk.c junk.cpp;
|
|
4558 )'
|
|
4559 eval `echo $lib_src_makefile_command`
|
|
4560 dynodump_makefile_command='echo "creating dynodump/Makefile";
|
|
4561 topsrcdir='"${topsrcdir}"';
|
|
4562 ( cd ./dynodump;
|
|
4563 rm -f junk.c;
|
|
4564 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4565 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4566 < junk.cpp '\
|
|
4567 ' sed -e '\''s/^#.*//'\'' '\
|
|
4568 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4569 ' -e '\''s/^ / /'\'' '\
|
|
4570 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4571 ' > Makefile.new;
|
|
4572 chmod 444 Makefile.new;
|
|
4573 mv -f Makefile.new Makefile;
|
|
4574 rm -f junk.c junk.cpp;
|
|
4575 )'
|
|
4576 eval `echo $dynodump_makefile_command`
|
|
4577 if [ "${with_energize}" = "yes" ]; then
|
|
4578 energize_makefile_command='echo "creating lwlib/energize/Makefile";
|
|
4579 topsrcdir='"${topsrcdir}"';
|
|
4580 ( cd ./lwlib/energize;
|
|
4581 rm -f junk.c;
|
|
4582 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4583 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4584 < junk.cpp '\
|
|
4585 ' sed -e '\''s/^#.*//'\'' '\
|
|
4586 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4587 ' -e '\''s/^ / /'\'' '\
|
|
4588 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4589 ' > Makefile.new;
|
|
4590 chmod 444 Makefile.new;
|
|
4591 mv -f Makefile.new Makefile;
|
|
4592 rm -f junk.c junk.cpp;
|
|
4593 )'
|
|
4594 eval `echo $energize_makefile_command`
|
|
4595 fi
|
|
4596 # AC-OUTPUT has created `config.status' already. We need to add the
|
|
4597 # above commands to re-create `src/Makefile', `lwlib/Makefile',
|
8
|
4598 # `lib-src/Makefile', `dynodump/Makefile', and possibly
|
0
|
4599 # `lwlib/energize/Makefile', and we need to insert them before the final
|
|
4600 # "exit 0" which appears at the end of `config.status'.
|
|
4601 <config.status sed -e 's/^exit 0$//' >config.new
|
|
4602 echo $makefile_command >>config.new
|
|
4603 echo $lwlib_makefile_command >>config.new
|
|
4604 echo $lib_src_makefile_command >>config.new
|
|
4605 echo $dynodump_makefile_command >>config.new
|
|
4606 echo $man_makefile_command >>config.new
|
|
4607 if [ "${with_energize}" = "yes" ]; then
|
|
4608 echo $energize_makefile_command >>config.new
|
|
4609 fi
|
|
4610 echo exit 0 >>config.new
|
|
4611 mv -f config.new config.status
|
|
4612 chmod +x config.status
|
|
4613 # Don't let the fact that we just rewrote config.status make Makefile think
|
|
4614 # that it is now newer. We have just rewritten all of the Makefiles as well.
|
8
|
4615 MFS="Makefile src/Makefile src/Makefile.in lib-src/Makefile lib-src/Makefile.in dynodump/Makefile dynodump/Makefile.in lwlib/Makefile lwlib/Makefile.in"
|
0
|
4616 for file in $MFS; do
|
|
4617 chmod a+w $file; touch $file; chmod 444 $file
|
|
4618 done
|
|
4619
|
|
4620 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then
|
|
4621 echo creating src/gdbinit
|
|
4622 echo source $topsrcdir/src/gdbinit > src/gdbinit
|
|
4623 fi
|
|
4624
|
|
4625 exit 0
|
|
4626
|
|
4627 # I've removed "mode: ksh" from the following. ksh mode sucks for
|
|
4628 # editing this file. (It seems that ksh mode sucks in general.
|
|
4629 # I wonder if the new 19.29 shell-script mode is better.)
|
|
4630
|
|
4631 # Local Variables:
|
|
4632 # compile-command: "autoconf"
|
|
4633 # End:
|
|
4634 ]
|