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