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
|
70
|
81 #run_in_place='no'
|
0
|
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.
|
98
|
119 error_check_default='yes'
|
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.
|
70
|
153 test -n "$CPP" -a -d "$CPP" && CPP=
|
0
|
154
|
|
155 ############################################################################
|
|
156 # #
|
|
157 # Usage messages #
|
|
158 # #
|
|
159 ############################################################################
|
|
160
|
|
161 short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
|
|
162
|
|
163 Set compilation and installation parameters for XEmacs, and report.
|
|
164 CONFIGURATION specifies the machine and operating system to build for.
|
|
165
|
|
166 Note that for most of the following options, you can explicitly enable
|
|
167 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'.
|
|
168 This is especially useful for auto-detected options.
|
|
169
|
|
170 Options marked with a (*) are autodetected.
|
|
171
|
|
172
|
|
173 General options:
|
|
174
|
|
175 --help Issue this usage message.
|
|
176 --verbose Display the results of configure tests.
|
|
177 --extra-verbose Also display the output of any compiler invocation.
|
|
178 (Useful when feature tests are coming out wrong.)
|
|
179
|
|
180
|
|
181 Compiler options:
|
|
182
|
|
183 --compiler=XXXX Specify compiler.
|
|
184 --with-gcc (*) Use GCC to compile XEmacs.
|
|
185 --with-lcc Use Lucid's LCC to compile XEmacs.
|
|
186 --with-gcc=no Don't use GCC to compile XEmacs.
|
|
187 --with-gnu-make Write the Makefiles to take advantage of
|
|
188 special features of GNU Make. (GNU Make
|
|
189 works fine on the Makefiles even without this
|
|
190 option. This just allows for simultaneous
|
|
191 in-place and --srcdir building.)
|
|
192 --cflags=FLAGS Override the default values for CFLAGS.
|
|
193 --site-includes=DIR Other header file directories. Separate multiple
|
|
194 dirs with spaces and use quotes to enclose.
|
|
195 --site-libraries=DIR Other library directories.
|
|
196 --site-runtime-libraries=DIR
|
|
197 Paths to add with -R flag.
|
|
198 --dynamic=yes Link dynamically if supported by system.
|
|
199 --dynamic=no Force static linking on systems where dynamic
|
|
200 linking is the default.
|
|
201 --srcdir=DIR Look for the XEmacs source files in DIR.
|
|
202 See also --with-gnu-make.
|
|
203 --const-is-losing=no Allow the use of const in the source code.
|
|
204
|
|
205
|
|
206 Installation options:
|
|
207
|
|
208 --prefix=DIR Install files below DIR. Defaults to \`${prefix}'.
|
|
209
|
|
210
|
|
211 Window-system options:
|
|
212
|
|
213 --with-x (*) Support the X Window System.
|
|
214 --with-x=no Don't support X.
|
|
215 --x-includes=DIR Search for X header files in DIR.
|
|
216 --x-libraries=DIR Search for X libraries in DIR.
|
70
|
217 --with-ns Support NeXTstep windows (not yet implemented).
|
0
|
218 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid
|
|
219 widgets emulate Motif (mostly) but are faster.
|
|
220 *WARNING* The Motif menubar is currently broken.
|
82
|
221 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena,
|
|
222 athena3d, or no).
|
|
223 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, athena3d, or no).
|
0
|
224 (Lucid menubars and scrollbars are the default.
|
|
225 Motif dialog boxes will be used if Motif can be
|
|
226 found.)
|
|
227 --with-cde (*) Compile in support for CDE drag and drop.
|
2
|
228 --with-offix (*) Compile in support for OffiX drag and drop.
|
0
|
229 --with-xpm (*) Compile with support for XPM files.
|
|
230 It is highly recommended that you obtain XPM
|
|
231 (version 3.4g or better) if you don't already
|
|
232 have it. Get it from the XEmacs FTP site.
|
|
233 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu.
|
|
234
|
|
235
|
|
236 Additional features:
|
|
237
|
|
238 --with-toolbars=no Don't compile with any toolbar support.
|
|
239 --with-tooltalk Support the ToolTalk IPC protocol.
|
|
240 --with-sparcworks Support the Sun Sparcworks development environment.
|
|
241 --with-energize Support the Lucid Energize development environment.
|
|
242 This doesn't currently work.
|
|
243 --with-socks Compile with support for SOCKS (an Internet proxy).
|
|
244 --with-term Compile with support for TERM (a way to multiplex
|
|
245 serial lines and provide vaguely Internet-like
|
|
246 functionality over a simple dialup connection,
|
|
247 used on Linux and other systems. NOTE: We can't
|
|
248 guarantee that our TERM support coexists well
|
|
249 with standard Internet connections).
|
|
250 --with-xface (*) Compile with support for X-Face mail header
|
|
251 conversion. Requires the compface library.
|
|
252 Get it from the XEmacs FTP site.
|
|
253 --with-gif Compile with support for GIF image conversion.
|
|
254 This requires no special support and defaults to
|
|
255 \`yes'.
|
|
256 --with-jpeg (*) Compile with support for JPEG image conversion.
|
|
257 Requires libjpeg from the Independent JPEG Group.
|
|
258 Get it from the XEmacs FTP site.
|
|
259 --with-png (*) Compile with support for PNG image conversion.
|
|
260 Requires libpng. Get it from the XEmacs FTP site.
|
|
261 Accepted values are \`yes', \`no', and \`gnuz'
|
|
262 if you want to use -lgz instead of -lz.
|
|
263 --with-tiff Compile with support for TIFF image conversion
|
|
264 (not yet implemented).
|
|
265 --with-database=type (*) Compile with database support. Valid types are
|
|
266 \`no' or a comma-separated list of one or more
|
|
267 of \`dbm', \`gnudbm', or \`berkdb'.
|
|
268 --external-widget Compile with external widget support.
|
|
269 --with-sound=native (*) Compile with native sound support.
|
|
270 --with-sound=nas Compile with network sound support.
|
|
271 --with-sound=both Compile with native and network sound support.
|
|
272 --native-sound-lib=LIB Native sound support library. Needed on Suns
|
|
273 with --with-sound=both because both sound libraries
|
|
274 are called libaudio.
|
|
275 --with-epoch Compile with additional Epoch compatibility.
|
|
276 --with-mocklisp Compile with Mocklisp support. Don't do this
|
|
277 unless you have a Mocklisp program that you need
|
|
278 to run.
|
|
279 --usage-tracking Enable some Sun-internal code. If you don't
|
|
280 know what this is, you don't want it.
|
|
281
|
70
|
282 Internationalization options:
|
|
283
|
|
284 --with-mule Compile with Mule (MUlti-Lingual Emacs) support,
|
|
285 needed to suport non-Latin-1 (including Asian) languages.
|
|
286 --with-xim=xlib Compile with support for X input methods,
|
|
287 --with-xim=motif (*) Used in conjunction with Mule support.
|
|
288 Use either raw Xlib to provide XIM support, or
|
|
289 the Motif XmIm* routines (when available).
|
|
290 If the XmIm* routines are autodetected,
|
|
291 then the default is --with-xim=motif, else --with-xim=no.
|
98
|
292 --with-canna Compile with support for Canna (a Japanese input method
|
|
293 used in conjunction with Mule support).
|
|
294 --with-wnn Compile with support for WNN (a multi-language input method
|
70
|
295 used in conjunction with Mule support).
|
98
|
296 This is beta level code.
|
|
297 --with-wnn6 Compile with support for WNN version 6
|
|
298 This is alpha level code.
|
100
|
299 --wnn-includes=DIR Search for WNN header files in DIR.
|
|
300 --wnn-libraries=DIR Search for WNN libraries in DIR.
|
70
|
301 --with-i18n3 Compile with I18N level 3 (support for message
|
|
302 translation). This doesn't currently work.
|
110
|
303 --canna-includes=DIR Search for Canna header files in DIR.
|
|
304 --canna-libraries=DIR Search for Canna libraries in DIR.
|
70
|
305
|
0
|
306
|
|
307 Debugging options:
|
|
308
|
|
309 --debug Compile with support for debugging XEmacs.
|
70
|
310 (Causes code-size increase but no loss of speed.)
|
0
|
311 --error-checking=TYPE[,TYPE]...
|
|
312 Compile with internal error-checking added.
|
|
313 Causes noticeable loss of speed. Valid types
|
|
314 are extents, bufpos, malloc, gc, typecheck.
|
|
315 --error-checking=none Disable all internal error-checking (the default).
|
|
316 --error-checking=all Enable all internal error-checking.
|
|
317 --memory-usage-stats Compile with additional code to allow you to
|
|
318 determine what XEmacs's memory is being used
|
|
319 for. Causes a small code increase but no loss
|
|
320 of speed. Normally enabled when --debug is given.
|
|
321 --no-doc-file Don't rebuild the DOC file unless it's explicitly
|
|
322 deleted. Only use during development. (It speeds
|
|
323 up the compile-run-test cycle.)
|
|
324 --use-union-type Enable or disable use of a union, instead of an
|
|
325 int, for the fundamental Lisp_Object type; this
|
|
326 provides stricter type-checking. Only works with
|
|
327 some systems and compilers.
|
|
328
|
|
329
|
|
330 Other options:
|
|
331
|
|
332 --puresize=VALUE Override default amount of space for pure Lisp code.
|
|
333 --rel-alloc Use the relocating allocator (default for this option
|
|
334 is system-dependent).
|
|
335 --use-system-malloc Force use of the system malloc, rather than GNU
|
|
336 malloc.
|
|
337
|
|
338 You may also specify any of the \`path' variables found in
|
|
339 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and
|
|
340 so on. Note that we recommend against explicitly setting any of these
|
|
341 variables. See the INSTALL file for a complete list plus the reasons
|
70
|
342 we advise not changing them.
|
0
|
343
|
|
344 If successful, ${progname} leaves its status in config.status. If
|
|
345 unsuccessful after disturbing the status quo, it removes config.status."
|
|
346
|
|
347 ############################################################################
|
|
348 # #
|
|
349 # Options processing #
|
|
350 # #
|
|
351 ############################################################################
|
|
352
|
|
353 ### Record all the arguments, so we can save them in config.status.
|
|
354 arguments="$@"
|
|
355
|
|
356 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date,
|
|
357 ### in order to get the arguments back in $@, we have to do an
|
|
358 ### `eval set x "$quoted_arguments"; shift'.
|
|
359 quoted_arguments=
|
|
360 for i in "$@"; do
|
|
361 quoted_arguments="$quoted_arguments '$i'"
|
|
362 done
|
|
363
|
|
364 ### Don't use shift -- that destroys the argument list, which autoconf needs
|
|
365 ### to produce config.status. It turns out that "set - ${arguments}" doesn't
|
|
366 ### work portably.
|
|
367 ### However, it also turns out that many shells cannot expand ${10} at all.
|
|
368 ### So using an index variable doesn't work either. It is possible to use
|
|
369 ### some shell magic to make 'set x "$arguments"; shift' work portably.
|
70
|
370 while test $# != 0; do
|
0
|
371 arg="$1"; shift
|
|
372 case "${arg}" in
|
|
373
|
|
374 ## Anything starting with a hyphen we assume is an option.
|
|
375 -* )
|
|
376 ## Separate the switch name from the value it's being given.
|
|
377 case "${arg}" in
|
|
378 -*=*)
|
|
379 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
|
|
380 val=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
|
|
381 valomitted=no
|
|
382 ;;
|
|
383 # ## special case these strings since echo may
|
|
384 # ## silently eat them.
|
|
385 # --help ) opt=help val=yes valomitted=yes ;;
|
|
386 # --version ) opt=version val=yes valomitted=yes ;;
|
|
387 # -e ) opt=e val=yes valomitted=yes ;;
|
|
388 # -E ) opt=E val=yes valomitted=yes ;;
|
|
389 # -n ) opt=n val=yes valomitted=yes ;;
|
|
390 -*)
|
|
391 ## If FOO is a boolean argument, --FOO is equivalent to
|
|
392 ## --FOO=yes. Otherwise, the value comes from the next
|
|
393 ## argument - see below.
|
|
394 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
|
|
395 val="yes"
|
|
396 valomitted=yes
|
|
397 ;;
|
|
398 esac
|
|
399
|
|
400 ## Change `-' in the option name to `_'.
|
|
401 optname="${opt}"
|
|
402 opt="`echo '' ${opt} | sed -e 's:^ ::' | tr - _`"
|
|
403
|
|
404 ## Process the option.
|
|
405 case "${opt}" in
|
|
406
|
70
|
407 ## Process (many) boolean options
|
|
408 run_in_place | \
|
|
409 with_x | \
|
|
410 with_x11 | \
|
|
411 with_gcc | \
|
|
412 with_lcc | \
|
|
413 with_gnu_make | \
|
|
414 with_epoch | \
|
|
415 dynamic | \
|
|
416 with_term | \
|
|
417 with_cde | \
|
|
418 with_offix | \
|
|
419 with_xpm | \
|
|
420 with_gif | \
|
|
421 with_jpeg | \
|
|
422 with_tiff | \
|
|
423 with_socks | \
|
|
424 with_xface | \
|
|
425 with_xmu | \
|
|
426 quantify | \
|
|
427 with_ns | \
|
|
428 with_toolbars | \
|
|
429 with_tty | \
|
|
430 with_i18n3 | \
|
|
431 with_mule | \
|
|
432 with_canna | \
|
|
433 with_wnn | \
|
98
|
434 with_wnn6 | \
|
70
|
435 with_mocklisp | \
|
|
436 with_energize | \
|
|
437 with_sparcworks | \
|
|
438 with_tooltalk | \
|
|
439 external_widget | \
|
|
440 extra_verbose | \
|
|
441 const_is_losing | \
|
|
442 usage_tracking | \
|
|
443 use_union_type | \
|
|
444 debug | \
|
|
445 use_assertions | \
|
|
446 memory_usage_stats | \
|
|
447 no_doc_file )
|
0
|
448 ## Make sure the value given was either "yes" or "no".
|
|
449 case "${val}" in
|
|
450 y | ye | yes ) val=yes ;;
|
|
451 n | no ) val=no ;;
|
|
452 * )
|
|
453 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
454 Set it to either \`yes' or \`no'."
|
|
455 echo "${short_usage}") >&2
|
70
|
456 exit 1 ;;
|
0
|
457 esac
|
70
|
458 eval "${opt}=\"${val}\"" ;;
|
|
459
|
|
460
|
|
461 ## Options that take a user-supplied value, as in --puresize=8000000
|
|
462 srcdir | \
|
|
463 compiler | \
|
|
464 puresize | \
|
|
465 native_sound_lib | \
|
|
466 x_includes | \
|
|
467 x_libraries | \
|
100
|
468 wnn_includes | \
|
|
469 wnn_libraries | \
|
110
|
470 canna_includes | \
|
|
471 canna_libraries | \
|
70
|
472 site_includes | \
|
|
473 site_libraries | \
|
|
474 site_runtime_libraries )
|
0
|
475 ## If the value was omitted, get it from the next argument.
|
70
|
476 if test "${valomitted}" = "yes" ; then
|
0
|
477 ## Get the next argument from the argument list, if there is one.
|
70
|
478 if test $# = 0 ; then
|
0
|
479 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
480 \`--${optname}=FOO'."
|
|
481 echo "${short_usage}") >&2
|
|
482 exit 1
|
|
483 fi
|
|
484 val="$1"; shift
|
|
485 fi
|
70
|
486 eval "${opt}=\"${val}\""
|
0
|
487 ;;
|
|
488
|
70
|
489 ### Options that take "yes", "no", or "default" values
|
|
490 rel_alloc | \
|
|
491 use_system_malloc )
|
0
|
492 case "${val}" in
|
|
493 y | ye | yes ) val=yes ;;
|
|
494 n | no ) val=no ;;
|
70
|
495 d | de | def | defa | defau | defaul | default )
|
|
496 val=default ;;
|
0
|
497 * )
|
70
|
498 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value or \`default'.
|
|
499 Set it to either \`yes', \`no', or \`default'."
|
0
|
500 echo "${short_usage}") >&2
|
|
501 exit 1
|
|
502 ;;
|
|
503 esac
|
|
504 eval "${opt}=\"${val}\""
|
|
505 ;;
|
|
506
|
70
|
507 ## Has the user requested database support?
|
|
508 "with_database" )
|
|
509 if test "${val}" = "no" ; then
|
|
510 with_database_berkdb=no
|
|
511 with_database_dbm=no
|
|
512 with_database_gnudbm=no
|
|
513 else
|
|
514 ## Make sure the value given was berkdb, dbm, gnudbm, or a list
|
|
515 for x in `echo "${val}" | sed 's/,/ /'` ; do
|
|
516 case "${x}" in
|
|
517 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
|
|
518 d | db | dbm ) with_database_dbm=yes ;;
|
|
519 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
|
|
520 * )
|
|
521 (echo "${progname}: the \`--${optname}' option is supposed to be either \`no'
|
|
522 or a comma-separated list of one or more of \`berkdb', \`dbm', or \`gnudbm'."
|
|
523 echo "${short_usage}") >&2
|
|
524 exit 1
|
|
525 ;;
|
|
526 esac
|
|
527 done
|
|
528 if test "${with_database_dbm}" = "yes" -a "${with_database_gnudbm}" = "yes"
|
|
529 then
|
|
530 (echo "${progname}: only one of \`dbm' and \`gnudbm' should be specified.") >&2
|
0
|
531 exit 1
|
|
532 fi
|
|
533 fi
|
70
|
534 ;;
|
0
|
535
|
|
536 ## Has the user requested sound support?
|
|
537 "with_sound" )
|
|
538 ## value can be native, nas or both. yes is allowed
|
|
539 ## as a backwards compatible synonym for native
|
|
540 case "${val}" in
|
|
541 y | ye | yes ) val=native ;;
|
|
542 n | no | non | none ) val=no;;
|
|
543 na | nat | nati | nativ | native ) val=native ;;
|
|
544 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
|
|
545 b | bo | bot | both ) val=both;;
|
|
546 * )
|
70
|
547 (echo "${progname}: the \`--${optname}' option should have one of the values:"
|
|
548 echo "\`native', \`nas', \`both', or \`none'."
|
|
549 echo ""
|
|
550 echo "${short_usage}") >&2
|
2
|
551 exit 1
|
|
552 ;;
|
|
553 esac
|
|
554 eval "${opt}=\"${val}\""
|
|
555 ;;
|
|
556
|
70
|
557 ## Has the user requested XIM support?
|
|
558 "with_xim" )
|
|
559 ## value can be xlib or motif
|
|
560 ## as a backwards compatible synonym for native
|
0
|
561 case "${val}" in
|
70
|
562 y | ye | yes ) val=yes ;;
|
|
563 n | no | non | none ) val=no ;;
|
|
564 x | xl | xli | xlib ) val=xlib ;;
|
|
565 m | mo | mot | moti | motif ) val=motif ;;
|
0
|
566 * )
|
70
|
567 (echo "${progname}: the \`--${optname}' option should have one of the values:"
|
|
568 echo "\`motif', \`xlib', \`yes', or \`no'."
|
|
569 echo ""
|
|
570 echo "${short_usage}") >&2
|
0
|
571 exit 1
|
|
572 ;;
|
|
573 esac
|
|
574 eval "${opt}=\"${val}\""
|
|
575 ;;
|
|
576
|
|
577 ## Has the user requested PNG support?
|
|
578 "with_png" )
|
|
579 ## Make sure the value given was either "yes", "no", or "gnuz".
|
|
580 case "${val}" in
|
70
|
581 y | ye | yes ) val=yes ;;
|
|
582 n | no ) val=no ;;
|
0
|
583 g | gn | gnu | gnuz ) val=gnuz ;;
|
|
584 * )
|
|
585 (echo "${progname}: the \`--${optname}' option is supposed to
|
|
586 be either \`yes', \`no', or \`gnuz'."
|
|
587 echo "${short_usage}") >&2
|
|
588 exit 1
|
|
589 ;;
|
|
590 esac
|
|
591 eval "${opt}=\"${val}\""
|
|
592 ;;
|
|
593
|
|
594 ## Has the user requested error-checking?
|
|
595 "error_checking" )
|
|
596 ## value can be all, none, and/or a list of categories to check.
|
|
597 ## Example: --error-checking=all,noextents,nobufpos
|
|
598 ## Example: --error-checking=none,malloc,gc
|
|
599
|
|
600 for x in `echo "${val}" | sed 's/,/ /'` ; do
|
|
601 case "${x}" in
|
|
602 # all and none are only permitted as the first in the list.
|
|
603 n | no | non | none ) new_default=no ;;
|
|
604 a | al | all ) new_default=yes ;;
|
|
605
|
|
606 extents ) error_check_extents=yes ;;
|
|
607 noextents ) error_check_extents=no ;;
|
|
608
|
|
609 typecheck ) error_check_typecheck=yes ;;
|
|
610 notypecheck ) error_check_typecheck=no ;;
|
|
611
|
|
612 bufpos ) error_check_bufpos=yes ;;
|
|
613 nobufpos ) error_check_bufpos=no ;;
|
|
614
|
|
615 gc ) error_check_gc=yes ;;
|
|
616 nogc ) error_check_gc=no ;;
|
|
617
|
|
618 malloc ) error_check_malloc=yes ;;
|
|
619 nomalloc ) error_check_malloc=no ;;
|
|
620
|
|
621 * ) bogus_error_check=yes ;;
|
|
622 esac
|
70
|
623 if test "$bogus_error_check" -o \
|
|
624 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
|
0
|
625 ( echo "${progname}: Valid types for the \`--${optname}' option are:"
|
70
|
626 if test $error_check_default = yes ; then
|
0
|
627 echo "\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
|
|
628 else
|
|
629 echo "\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
|
|
630 fi
|
|
631 echo "${short_usage}" ) >&2
|
|
632 exit 1
|
70
|
633 elif test "$new_default" ; then
|
0
|
634 error_check_extents=$new_default
|
|
635 error_check_typecheck=$new_default
|
|
636 error_check_bufpos=$new_default
|
|
637 error_check_gc=$new_default
|
|
638 error_check_malloc=$new_default
|
|
639 new_default= # reset this
|
|
640 fi
|
|
641 echeck_notfirst=true
|
|
642 done
|
|
643 ;;
|
|
644
|
|
645 ## Has the user tried to tell us where the X files are?
|
|
646 ## I think these are dopey, but no less than three alpha
|
|
647 ## testers, at large sites, have said they have their X files
|
|
648 ## installed in odd places.
|
|
649
|
|
650 ## Has the user specified one of the path options?
|
|
651 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
|
|
652 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \
|
|
653 sitelispdir | docdir )
|
|
654 ## If the value was omitted, get it from the next argument.
|
70
|
655 if test "${valomitted}" = "yes" ; then
|
|
656 if test $# = 0 ; then
|
0
|
657 (echo \
|
|
658 "$progname: You must give a value for the \`--${optname}' option,";
|
|
659 echo \
|
|
660 "as in \`--${optname}=`eval echo '$'$optname`.'"
|
|
661 echo "$short_usage") >&2
|
|
662 exit 1
|
|
663 fi
|
|
664 val="$1"; shift
|
|
665 fi
|
|
666 eval "${opt}=\"${val}\""
|
|
667
|
|
668 ## Changing exec_prefix or libdir will change the default value
|
|
669 ## of archlibdir. Changing datadir will change the default value
|
|
670 ## of etcdir and lispdir. Changing statedir will change the
|
|
671 ## default value of lockdir.
|
70
|
672 if test "${opt}" = exec_prefix; then archlibdir_user_defined=yes
|
|
673 elif test "${opt}" = libdir ; then archlibdir_user_defined=yes
|
|
674 elif test "${opt}" = archlibdir ; then archlibdir_user_defined=yes
|
|
675 elif test "${opt}" = lispdir ; then lispdir_user_defined=yes
|
|
676 elif test "${opt}" = etcdir ; then etcdir_user_defined=yes
|
|
677 elif test "${opt}" = datadir ; then
|
|
678 lispdir_user_defined=yes
|
|
679 etcdir_user_defined=yes
|
|
680 elif test "${opt}" = statedir ; then lockdir_user_defined=yes
|
|
681 elif test "${opt}" = lockdir ; then lockdir_user_defined=yes
|
|
682 elif test "${opt}" = infodir ; then infodir_user_defined=yes
|
0
|
683 fi
|
|
684 ;;
|
|
685
|
|
686 ## Has the user specified values to override CFLAGS?
|
|
687 cflags )
|
|
688 ## If the value was omitted, get it from the next argument.
|
70
|
689 if test "${valomitted}" = "yes" ; then
|
|
690 if test $# = 0 ; then
|
0
|
691 (echo \
|
|
692 "$progname: You must give a value for the \`--${optname}' option,";
|
|
693 echo \
|
|
694 "as in \`--${optname}=`eval echo '$'$optname`-g -O'"
|
|
695 echo "$short_usage") >&2
|
|
696 exit 1
|
|
697 fi
|
|
698 val="$1"; shift
|
|
699 fi
|
|
700 eval "${opt}=\"${val}\""
|
|
701 eval "${opt}_specified=1"
|
|
702 ;;
|
|
703
|
|
704 ## Verbose flag, tested by autoconf macros.
|
|
705 "verbose" )
|
|
706 verbose=yes
|
|
707 ;;
|
|
708
|
|
709 ## --no-create added by autoconf for use by config.status
|
|
710 "no_create" )
|
|
711 ;;
|
|
712
|
|
713 ## Has the user asked for some help?
|
|
714 "usage" | "help" )
|
70
|
715 if test -z "$PAGER"
|
|
716 then echo "${short_usage}" | more
|
|
717 else echo "${short_usage}" | $PAGER
|
0
|
718 fi
|
|
719 exit
|
|
720 ;;
|
|
721
|
|
722 ## Has the user specified what toolkit to use for the menubars,
|
|
723 ## scrollbar or dialogs?
|
|
724 "with_menubars" | "with_scrollbars" | "with_dialogs" )
|
|
725 ## value can be lucid, motif, or athena.
|
|
726 case "${val}" in
|
|
727 l | lu | luc | luci | lucid ) val=lucid ;;
|
|
728 m | mo | mot | moti | motif ) val=motif ;;
|
82
|
729 athena3d | athena-3d ) val=athena3d ;;
|
0
|
730 a | at | ath | athe | athen | athena ) val=athena ;;
|
|
731 n | no | non | none ) val=no ;;
|
|
732 * )
|
70
|
733 (echo "${progname}: the \`--${optname}' option should have one of the values:"
|
|
734 echo "\`lucid', \`motif', \`athena', or \`no'."
|
|
735 echo ""
|
|
736 echo "${short_usage}") >&2
|
0
|
737 exit 1
|
|
738 ;;
|
|
739 esac
|
|
740 eval "${opt}=\"${val}\""
|
|
741 ;;
|
|
742
|
|
743 ## Fail on unrecognized arguments.
|
|
744 * )
|
70
|
745 (echo "${progname}: Error: unrecognized option: ${arg}"
|
0
|
746 echo ""
|
|
747 echo "${short_usage}") >& 2
|
|
748 exit 1
|
|
749 ;;
|
|
750
|
|
751 esac
|
|
752 ;;
|
|
753
|
|
754 ## Anything not starting with a hyphen we assume is a
|
|
755 ## configuration name.
|
|
756 *)
|
|
757 configuration=${arg}
|
|
758 ;;
|
|
759
|
|
760 esac
|
|
761 done
|
|
762
|
|
763 ############################################################################
|
|
764 # #
|
|
765 # Finish options processing #
|
|
766 # #
|
|
767 ############################################################################
|
|
768
|
|
769 ### Get the arguments back. See the diatribe on Shell Magic above.
|
|
770 eval set x "$quoted_arguments"; shift
|
|
771
|
70
|
772 ### Argument interdependencies
|
|
773 if test "${with_energize}" = "yes" ; then
|
|
774 with_menubars="lucid"
|
|
775 with_scrollbars="motif"
|
|
776 with_dialogs="motif"
|
|
777 with_tooltalk="yes"
|
|
778 internal_makefile_list="$internal_makefile_list lwlib/energize/Makefile.in"
|
|
779 fi
|
|
780
|
|
781 ### --extra-verbose implies --verbose
|
|
782 test "${extra_verbose}" = yes && verbose=yes
|
|
783
|
|
784 ### Sparcworks requires tooltalk
|
|
785 test "${with_sparcworks}" = yes && with_tooltalk=yes
|
|
786
|
|
787 ### debug implies other options
|
|
788 test "${debug}" = "yes" && use_assertions=yes memory_usage_stats=yes
|
|
789
|
|
790 ### with_x is a synonym for with_x11
|
|
791 test -n "${with_x}" && with_x11="${with_x}"
|
|
792
|
|
793 ### Can't specify 2 compilers
|
|
794 if test "${with_gcc}" = "yes" -a "${with_lcc}" = "yes"; then
|
|
795 (echo "${progname}: only one of --with-gcc and --with-lcc may be specified."
|
|
796 echo "${short_usage}") >&2
|
|
797 exit 1
|
|
798 fi
|
|
799
|
|
800 ### Ignore useless run-in-place flag
|
|
801 if test "${run_in_place}" = "yes"; then
|
|
802 ] AC_WARN(The --run-in-place option is ignored because it is unnecessary.) [
|
|
803 fi
|
|
804
|
|
805 ###########################################################################
|
|
806 if test "${configuration}" = "" ; then
|
0
|
807 echo '- You did not tell me what kind of host system you want to configure.
|
|
808 - I will attempt to guess the kind of system this is.' 1>&2
|
|
809 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
|
|
810 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then
|
|
811 echo "- Looks like this is a ${configuration}" 1>&2
|
|
812 else
|
|
813 echo '- Failed to guess the system type. You need to tell me.' 1>&2
|
|
814 echo "${short_usage}" >&2
|
|
815 exit 1
|
|
816 fi
|
|
817 fi
|
|
818
|
70
|
819 ### Find the source directory.
|
0
|
820 case "${srcdir}" in
|
|
821
|
|
822 ## If it's not specified, see if `.' or `..' might work.
|
|
823 "" )
|
70
|
824 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
|
|
825 if test -f "$dir/src/lisp.h" -a -f "$dir/lisp/version.el" ; then
|
|
826 srcdir="${dir}"
|
|
827 break
|
|
828 fi
|
|
829 done
|
|
830 if test -z "${srcdir}" ; then
|
|
831 echo "\
|
0
|
832 ${progname}: Neither the current directory nor its parent seem to
|
|
833 contain the XEmacs sources. If you do not want to build XEmacs in its
|
|
834 source tree, you should run \`${progname}' in the directory in which
|
|
835 you wish to build XEmacs, using its \`--srcdir' option to say where the
|
70
|
836 sources may be found.
|
|
837 ${short_usage}" >&2
|
|
838 exit 1
|
0
|
839 fi
|
|
840 ;;
|
|
841
|
|
842 ## Otherwise, check if the directory they specified is okay.
|
|
843 * )
|
70
|
844 if test ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ; then
|
0
|
845 (echo "\
|
|
846 ${progname}: The directory specified with the \`--srcdir' option,
|
|
847 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should
|
|
848 either run the \`${progname}' script at the top of the XEmacs source
|
|
849 tree, or use the \`--srcdir' option to specify where the XEmacs sources
|
|
850 are."
|
|
851 echo "${short_usage}") >&2
|
|
852 exit 1
|
|
853 fi
|
|
854 ;;
|
|
855 esac
|
|
856
|
|
857 ## We check for this now instead of later when we check for other
|
|
858 ## programs because we need to use its return value now.
|
|
859 ] AC_LN_S
|
|
860
|
|
861 AC_VERBOSE("setting LN_S to ${LN_S}")
|
70
|
862
|
0
|
863 #### Make symlinks for etc, lisp, and info directories while the path
|
|
864 #### is still relative. We don't symlink lock because someone may
|
|
865 #### have stuck the source on a read-only partition. Instead we'll
|
|
866 #### create it as an actual directory later on if it doesn't already
|
|
867 #### exist.
|
104
|
868 for dir in lisp etc man info site-lisp
|
0
|
869 do
|
70
|
870 if test ! -d $dir ; then
|
0
|
871 echo Making symbolic link to ${srcdir}/$dir
|
|
872 ${LN_S} ${srcdir}/$dir .
|
|
873 fi
|
|
874 done
|
104
|
875
|
70
|
876 [
|
0
|
877 #### Make srcdir absolute, if it isn't already. It's important to
|
|
878 #### avoid running the path through pwd unnecessary, since pwd can
|
|
879 #### give you automounter prefixes, which can go away.
|
|
880 case "${srcdir}" in
|
|
881 /* ) ;;
|
|
882 . )
|
|
883 ## We may be able to use the $PWD environment variable to make this
|
|
884 ## absolute. But sometimes PWD is inaccurate.
|
70
|
885 if test "${PWD}" != "" -a "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`"; then
|
0
|
886 srcdir="$PWD"
|
|
887 else
|
|
888 srcdir="`(cd ${srcdir}; pwd)`"
|
|
889 fi
|
|
890 ;;
|
|
891 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
|
|
892 esac
|
|
893
|
|
894 #### Check if the source directory already has a configured system in it.
|
70
|
895 if test `pwd` != `sh -c cd ${srcdir} && pwd` \
|
|
896 && test -f "${srcdir}/src/config.h"; then
|
0
|
897 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
|
|
898 echo " as a build directory right now; it has been configured in its own"
|
|
899 echo " right. To configure in another directory as well, you MUST"
|
|
900 echo " use GNU make. If you do not have GNU make, then you must"
|
|
901 echo " now do \`make distclean' in ${srcdir},"
|
|
902 echo " and then run ${progname} again.") >&2
|
|
903 extrasub='/^VPATH[ ]*=/c\
|
|
904 vpath %.c $(srcdir)\
|
|
905 vpath %.h $(srcdir)\
|
|
906 vpath %.y $(srcdir)\
|
|
907 vpath %.l $(srcdir)\
|
|
908 vpath %.s $(srcdir)\
|
|
909 vpath %.in $(srcdir)'
|
|
910 fi
|
|
911
|
|
912 ### Make the necessary directories, if they don't exist.
|
70
|
913 for dir in ./src ./lib-src ./dynodump ./lwlib ./lock ; do
|
|
914 if test ! -d ${dir} ; then
|
0
|
915 mkdir ${dir}
|
|
916 fi
|
|
917 done
|
70
|
918 if test "${with_energize}" = "yes" -a ! -d ./lwlib/energize; then
|
0
|
919 mkdir ./lwlib/energize
|
|
920 fi
|
|
921
|
|
922 ############################################################################
|
|
923 # #
|
|
924 # Determine the s&m files to use #
|
|
925 # #
|
|
926 ############################################################################
|
|
927
|
|
928 #### Given the configuration name, set machfile and opsysfile to the
|
|
929 #### names of the m/*.h and s/*.h files we should use.
|
|
930
|
|
931 ### Canonicalize the configuration name.
|
|
932 echo "checking the configuration name"
|
|
933 # allow -energize prefix on configuration name
|
|
934 internal_configuration=`echo ${configuration} | sed 's/-energize//'`
|
|
935 # allow --sparcworks prefix on configuration name
|
|
936 internal_configuration=`echo ${configuration} | sed 's/-sparcworks//'`
|
|
937 if canonical=`${srcdir}/config.sub "${internal_configuration}"` ; then : ; else
|
|
938 exit $?
|
|
939 fi
|
|
940
|
|
941 ### If you add support for a new configuration, add code to this
|
|
942 ### switch statement to recognize your configuration name and select
|
|
943 ### the appropriate operating system and machine description files.
|
|
944
|
|
945 ### You would hope that you could choose an m/*.h file pretty much
|
|
946 ### based on the machine portion of the configuration name, and an s-
|
|
947 ### file based on the operating system portion. However, it turns out
|
|
948 ### that each m/*.h file is pretty manufacturer-specific - for
|
|
949 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
|
|
950 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
|
|
951 ### machines. So we basically have to have a special case for each
|
|
952 ### configuration name.
|
|
953 ###
|
|
954 ### As far as handling version numbers on operating systems is
|
|
955 ### concerned, make sure things will fail in a fixable way. If
|
|
956 ### /etc/MACHINES doesn't say anything about version numbers, be
|
|
957 ### prepared to handle anything reasonably. If version numbers
|
|
958 ### matter, be sure /etc/MACHINES says something about it.
|
|
959 ###
|
|
960 ### Eric Raymond says we should accept strings like "sysvr4" to mean
|
|
961 ### "System V Release 4"; he writes, "The old convention encouraged
|
|
962 ### confusion between `system' and `release' levels'."
|
|
963
|
|
964 machine='' opsys='' unported=no need_dynodump=no
|
|
965 case "${canonical}" in
|
|
966
|
|
967 ## NetBSD ports
|
|
968 *-*-netbsd* )
|
|
969 opsys=netbsd
|
|
970 case "${canonical}" in
|
70
|
971 sparc-*-netbsd*) machine=sparc ;;
|
0
|
972 i[3-9]86-*-netbsd*) machine=intel386 ;;
|
|
973 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
|
|
974 # Yes, this is somewhat bogus.
|
|
975 machine=hp9000s300 ;;
|
70
|
976 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
|
|
977 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
|
0
|
978 esac
|
|
979 ;;
|
|
980
|
|
981 ## Acorn RISCiX:
|
70
|
982 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
|
|
983 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
|
0
|
984
|
|
985 ## Alliant machines
|
|
986 ## Strictly speaking, we need the version of the alliant operating
|
|
987 ## system to choose the right machine file, but currently the
|
|
988 ## configuration name doesn't tell us enough to choose the right
|
|
989 ## one; we need to give alliants their own operating system name to
|
|
990 ## do this right. When someone cares, they can help us.
|
70
|
991 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
|
|
992 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
|
0
|
993
|
|
994 ## Alpha (DEC) machines.
|
|
995 ## XEmacs change: split apart into numerous files.
|
70
|
996 alpha-dec-osf1.3 | alpha-dec-osf2* ) machine=alpha opsys=decosf1-3 ;;
|
|
997 alpha-dec-osf1.2 | alpha-dec-osf1* ) machine=alpha opsys=decosf1-2 ;;
|
0
|
998
|
|
999 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu)
|
|
1000 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu)
|
70
|
1001 alpha-dec-osf3.[2-9] ) machine=alpha opsys=decosf3-2 ;;
|
|
1002 alpha-dec-osf3* ) machine=alpha opsys=decosf3-1 ;;
|
|
1003 alpha-dec-osf4* ) machine=alpha opsys=decosf4-0 ;;
|
|
1004 alpha-*-linux* ) machine=alpha opsys=linux ;;
|
0
|
1005
|
|
1006 ## Altos 3068
|
70
|
1007 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
|
0
|
1008
|
|
1009 ## Amdahl UTS
|
70
|
1010 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
|
0
|
1011
|
|
1012 ## Apollo, Domain/OS
|
70
|
1013 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
|
0
|
1014
|
|
1015 ## AT&T 3b2, 3b5, 3b15, 3b20
|
70
|
1016 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
|
0
|
1017
|
|
1018 ## AT&T 3b1 - The Mighty Unix PC!
|
70
|
1019 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
|
0
|
1020
|
74
|
1021 ## Bull machines
|
|
1022 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
|
|
1023 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
|
|
1024 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
|
0
|
1025
|
|
1026 ## CCI 5/32, 6/32 -- see "Tahoe".
|
|
1027
|
|
1028 ## Celerity
|
|
1029 ## I don't know what configuration name to use for this; config.sub
|
|
1030 ## doesn't seem to know anything about it. Hey, Celerity users, get
|
|
1031 ## in touch with us!
|
70
|
1032 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
|
0
|
1033
|
|
1034 ## Clipper
|
|
1035 ## What operating systems does this chip run that XEmacs has been
|
|
1036 ## tested on?
|
70
|
1037 clipper-* ) machine=clipper
|
0
|
1038 ## We'll use the catch-all code at the bottom to guess the
|
|
1039 ## operating system.
|
|
1040 ;;
|
|
1041
|
|
1042 ## Convex
|
|
1043 *-convex-bsd* | *-convex-convexos* )
|
|
1044 machine=convex opsys=bsd4-3
|
|
1045 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
|
|
1046 NON_GNU_CPP="cc -E -P"
|
|
1047 ;;
|
|
1048
|
|
1049 ## Cubix QBx/386
|
70
|
1050 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
|
0
|
1051
|
|
1052 ## Cydra 5
|
70
|
1053 cydra*-cydrome-sysv* ) machine=cydra5 opsys=usg5-3 ;;
|
0
|
1054
|
|
1055 ## Data General AViiON Machines
|
82
|
1056 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
|
70
|
1057 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) machine=aviion opsys=dgux5-4r3 ;;
|
|
1058 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) machine=aviion opsys=dgux5-4r2 ;;
|
74
|
1059 m88k-dg-dgux* ) machine=aviion opsys=dgux ;;
|
70
|
1060
|
|
1061 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) machine=pmax opsys=bsd4-2 ;;
|
|
1062 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) machine=pmax opsys=bsd4-3 ;;
|
|
1063 mips-dec-ultrix* ) machine=pmax opsys=ultrix4-3 ;;
|
|
1064 mips-dec-osf* ) machine=pmax opsys=osf1 ;;
|
|
1065 mips-dec-mach_bsd4.3* ) machine=pmax opsys=mach-bsd4-3 ;;
|
0
|
1066
|
|
1067 ## Motorola Delta machines
|
|
1068 m68k-motorola-sysv* | m68000-motorola-sysv* )
|
|
1069 machine=delta opsys=usg5-3
|
|
1070 if test -z "`type gnucc | grep 'not found'`"
|
|
1071 then
|
|
1072 if test -s /etc/167config
|
|
1073 then CC="gnucc -m68040"
|
|
1074 else CC="gnucc -m68881"
|
|
1075 fi
|
|
1076 else
|
|
1077 if test -z "`type gcc | grep 'not found'`"
|
|
1078 then CC=gcc
|
|
1079 else CC=cc
|
|
1080 fi
|
|
1081 fi
|
|
1082 ;;
|
|
1083 m88k-motorola-sysv4* )
|
|
1084 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
|
|
1085 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
|
|
1086 # I hope there are not other 4.0 versions for this machine
|
|
1087 # which really need usg5-4 instead.
|
|
1088 machine=delta88k opsys=usg5-4-2
|
|
1089 ;;
|
70
|
1090 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
|
0
|
1091
|
|
1092 ## Dual machines
|
70
|
1093 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
|
|
1094 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
|
0
|
1095
|
|
1096 ## Elxsi 6400
|
70
|
1097 elxsi-elxsi-sysv* ) machine=elxsi opsys=usg5-2 ;;
|
0
|
1098
|
|
1099 ## Encore machines
|
70
|
1100 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
|
0
|
1101
|
|
1102 ## Gould Power Node and NP1
|
70
|
1103 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
|
|
1104 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
|
|
1105 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
|
0
|
1106
|
|
1107 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
|
|
1108 ## as far as XEmacs is concerned).
|
|
1109 m88k-harris-cxux* )
|
|
1110 # Build needs to be different on 7.0 and later releases
|
|
1111 case "`uname -r`" in
|
74
|
1112 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
|
70
|
1113 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
|
0
|
1114 esac
|
|
1115 NON_GNU_CPP="/lib/cpp"
|
|
1116 ;;
|
|
1117 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
|
70
|
1118 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
|
0
|
1119 ## Harris power pc NightHawk running Power UNIX (Series 6000)
|
|
1120 powerpc-harris-powerunix )
|
|
1121 machine=nh6000 opsys=powerunix
|
|
1122 NON_GNU_CPP="cc -Xo -E -P"
|
|
1123 ;;
|
|
1124
|
|
1125 ## Honeywell XPS100
|
70
|
1126 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
|
0
|
1127
|
|
1128 ## HP 9000 series 200 or 300
|
70
|
1129 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
|
|
1130
|
|
1131 ## HP-UX on HP's
|
|
1132 *-hp-hpux* )
|
0
|
1133 NON_GNU_CC="cc -Aa"
|
70
|
1134 NON_GNU_CPP="cc -Aa -E"
|
|
1135
|
|
1136 ### Figure out machine and opsys orthogonally
|
|
1137 case "${canonical}" in
|
|
1138 m68* ) machine=hp9000s300 ;;
|
|
1139 hppa* ) machine=hp800 ;;
|
|
1140 esac
|
|
1141
|
|
1142 case "${canonical}" in
|
74
|
1143 *-hp-hpux7* ) opsys=hpux ;;
|
|
1144 *-hp-hpux8* ) opsys=hpux8 ;;
|
|
1145 *-hp-hpux9* ) opsys=hpux9 ;;
|
|
1146 *-hp-hpux10* ) opsys=hpux10 ;;
|
70
|
1147 * )
|
|
1148 case "`uname -r`" in
|
|
1149 ## Someone's system reports A.B8.05 for this.
|
|
1150 ## I wonder what other possibilities there are.
|
|
1151 *.B8.* ) opsys=hpux8 ;;
|
|
1152 *.08.* ) opsys=hpux8 ;;
|
|
1153 *.09.* ) opsys=hpux9 ;;
|
|
1154 *.10.* ) opsys=hpux10 ;;
|
|
1155 * ) opsys=hpux ;;
|
|
1156 esac
|
|
1157 ;;
|
0
|
1158 esac
|
74
|
1159
|
92
|
1160 if test $opsys = hpux10 ; then
|
90
|
1161 NON_GNU_CC="cc -Ae"
|
|
1162 NON_GNU_CPP="cc -Ae -E"
|
|
1163 fi
|
|
1164
|
74
|
1165 case "${canonical}" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
|
0
|
1166 ;;
|
|
1167
|
70
|
1168 hppa-*-nextstep* ) machine=hp800 opsys=nextstep ;;
|
0
|
1169
|
|
1170 ## Orion machines
|
70
|
1171 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
|
|
1172 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
|
0
|
1173
|
|
1174 ## IBM machines
|
70
|
1175 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
|
|
1176 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
|
|
1177 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
|
|
1178 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) machine=ibmrs6000 opsys=aix3-1 ;;
|
|
1179 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) machine=ibmrs6000 opsys=aix3-2-5 ;;
|
88
|
1180 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) machine=ibmrs6000 opsys=aix4-2 ;;
|
70
|
1181 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) machine=ibmrs6000 opsys=aix4-1 ;;
|
|
1182 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) machine=ibmrs6000 opsys=aix4 ;;
|
|
1183 rs6000-ibm-aix* | powerpc-ibm-aix* ) machine=ibmrs6000 opsys=aix3-2 ;;
|
|
1184 romp-ibm-bsd4.3* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1185 romp-ibm-bsd4.2* ) machine=ibmrt opsys=bsd4-2 ;;
|
|
1186 romp-ibm-aos4.3* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1187 romp-ibm-aos4.2* ) machine=ibmrt opsys=bsd4-2 ;;
|
|
1188 romp-ibm-aos* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1189 romp-ibm-bsd* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1190 romp-ibm-aix* ) machine=ibmrt-aix opsys=usg5-2-2 ;;
|
|
1191 romp-ibm-mach* ) machine=ibmrt opsys=mach-bsd4-3 ;;
|
0
|
1192
|
|
1193 ## Integrated Solutions `Optimum V'
|
70
|
1194 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
|
|
1195 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
|
0
|
1196
|
|
1197 ## Intel 386 machines where we do care about the manufacturer
|
70
|
1198 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
|
0
|
1199
|
|
1200 ## Prime EXL
|
70
|
1201 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
|
0
|
1202
|
|
1203 ## Sequent Symmetry running Dynix
|
70
|
1204 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
|
0
|
1205
|
|
1206 ## Sequent Symmetry running DYNIX/ptx
|
|
1207 ## Use the old cpp rather than the newer ANSI one.
|
|
1208 i[3-9]86-sequent-ptx* )
|
|
1209 machine=sequent-ptx opsys=ptx
|
|
1210 NON_GNU_CPP="/lib/cpp"
|
|
1211 ;;
|
|
1212
|
|
1213 ## Unspecified sysv on an ncr machine defaults to svr4.2.
|
|
1214 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
|
70
|
1215 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
|
0
|
1216
|
|
1217 ## Intel Paragon OSF/1
|
70
|
1218 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
|
0
|
1219
|
|
1220 ## Intel 860
|
|
1221 i860-*-sysv4* )
|
|
1222 machine=i860 opsys=usg5-4
|
|
1223 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
|
|
1224 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
|
|
1225 ;;
|
|
1226
|
|
1227 ## Masscomp machines
|
70
|
1228 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
|
0
|
1229
|
|
1230 ## Megatest machines
|
70
|
1231 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
|
0
|
1232
|
|
1233 ## Workstations sold by MIPS
|
|
1234 ## This is not necessarily all workstations using the MIPS processor -
|
|
1235 ## Irises are produced by SGI, and DECstations by DEC.
|
|
1236
|
|
1237 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
|
|
1238 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
|
|
1239 ## it gives for choosing between the alternatives seems to be "Use
|
|
1240 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
|
|
1241 ## the BSD world." I'll assume that these are instructions for
|
|
1242 ## handling two odd situations, and that every other situation
|
|
1243 ## should use mips.h and usg5-2-2, they being listed first.
|
|
1244 mips-mips-usg* )
|
|
1245 machine=mips4
|
|
1246 ## Fall through to the general code at the bottom to decide on the OS.
|
|
1247 ;;
|
70
|
1248 mips-mips-riscos4 )
|
|
1249 machine=mips4
|
0
|
1250 NON_GNU_CC="cc -systype bsd43"
|
|
1251 NON_GNU_CPP="cc -systype bsd43 -E"
|
70
|
1252 case "${canonical}" in
|
|
1253 mips-mips-riscos4* ) opsys=bsd4-3 ;;
|
|
1254 mips-mips-riscos5* ) opsys=riscos5 ;;
|
|
1255 esac
|
0
|
1256 ;;
|
70
|
1257 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
|
|
1258 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
|
0
|
1259
|
|
1260 ## NeXT
|
70
|
1261 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
|
0
|
1262
|
|
1263 ## The complete machine from National Semiconductor
|
70
|
1264 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
|
0
|
1265
|
|
1266 ## NCR machines
|
70
|
1267 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
|
|
1268 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
|
0
|
1269
|
|
1270 ## Nixdorf Targon 31
|
70
|
1271 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
|
0
|
1272
|
|
1273 ## Nu (TI or LMI)
|
70
|
1274 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
|
0
|
1275
|
|
1276 ## Plexus
|
70
|
1277 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
|
0
|
1278
|
|
1279 ## Pyramid machines
|
|
1280 ## I don't really have any idea what sort of processor the Pyramid has,
|
|
1281 ## so I'm assuming it is its own architecture.
|
70
|
1282 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
|
0
|
1283
|
|
1284 ## Sequent Balance
|
70
|
1285 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
|
|
1286 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
|
0
|
1287
|
|
1288 ## Siemens Nixdorf
|
|
1289 mips-siemens-sysv* | mips-sni-sysv*)
|
|
1290 machine=mips-siemens opsys=usg5-4
|
|
1291 NON_GNU_CC=/usr/ccs/bin/cc
|
|
1292 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1293 ;;
|
|
1294
|
|
1295 ## Silicon Graphics machines
|
|
1296 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
|
70
|
1297 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
|
|
1298 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
|
0
|
1299 ## Iris 4D
|
70
|
1300 mips-sgi-irix3.* ) machine=iris4d opsys=irix3-3 ;;
|
|
1301 mips-sgi-irix4.* ) machine=iris4d opsys=irix4-0 ;;
|
82
|
1302 mips-sgi-irix6* ) machine=iris4d opsys=irix6-0 ;;
|
70
|
1303 mips-sgi-irix5.[3-9]* ) machine=iris4d opsys=irix5-3 ;;
|
|
1304 mips-sgi-irix5.2* ) machine=iris4d opsys=irix5-2 ;;
|
|
1305 mips-sgi-irix5.1* ) machine=iris4d opsys=irix5-1 ;;
|
|
1306 mips-sgi-irix* ) machine=iris4d opsys=irix5-0 ;;
|
0
|
1307
|
|
1308 ## SONY machines
|
70
|
1309 m68*-sony-bsd4.2* ) machine=news opsys=bsd4-2 ;;
|
|
1310 m68*-sony-bsd4.3* ) machine=news opsys=bsd4-3 ;;
|
|
1311 m68*-sony-newsos3* | m68*-sony-news3*) machine=news opsys=bsd4-3 ;;
|
|
1312 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) machine=news-risc opsys=bsd4-3 ;;
|
|
1313 mips-sony-news* ) machine=news-risc opsys=newsos5 ;;
|
0
|
1314
|
|
1315 ## Stride
|
70
|
1316 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
|
0
|
1317
|
|
1318 ## Suns
|
70
|
1319 sparc-*-linux* ) machine=sparc opsys=linux ;;
|
0
|
1320
|
|
1321 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
1322 # Hardware type
|
|
1323 case "${canonical}" in
|
|
1324 m68*-sunos1* ) machine=sun1 ;;
|
|
1325 m68*-sunos2* ) machine=sun2 ;;
|
|
1326 m68* ) machine=sun3 ;;
|
|
1327 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
1328 i[3-9]86-*-* ) machine=intel386 ;;
|
|
1329 rs6000* ) machine=rs6000 ;;
|
|
1330 sparc* ) machine=sparc ;;
|
|
1331 powerpc* ) machine=powerpc ;;
|
|
1332 * ) unported=yes ;;
|
|
1333 esac
|
|
1334
|
|
1335 # Make `canonical' even more so.
|
|
1336 case "${canonical}" in *-sunos5*)
|
70
|
1337 canonical="`echo \"${canonical}\" | sed -e s/sunos5/solaris2/`";;
|
0
|
1338 esac
|
|
1339
|
|
1340 # On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib
|
|
1341 # On SunOS 5, use /usr/ccs/lib/cpp, need dynodump, RANLIB not needed
|
|
1342 # But, SunOS 5.6 no longer needs dynodump because it has a similar
|
|
1343 # function integrated.
|
|
1344 case "${canonical}" in
|
|
1345 *-sunos4* )
|
70
|
1346 test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1347 *-solaris2* )
|
|
1348 test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
0
|
1349 RANLIB=':'
|
70
|
1350 case "${canonical}" in
|
|
1351 *-solaris2.[6-9]* ) need_dynodump=no ;;
|
|
1352 *-solaris2* ) need_dynodump=yes ;;
|
|
1353 esac
|
0
|
1354 esac
|
|
1355
|
|
1356 case "${canonical}" in
|
|
1357 ## The Sun386 didn't get past 4.0.
|
74
|
1358 i[3-9]86-*-sunos4* ) opsys=sunos4-0 ;;
|
|
1359 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
1360 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
110
|
1361 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
|
|
1362 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
|
74
|
1363 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
1364
|
|
1365 *-solaris2.3* ) opsys=sol2-3 ;;
|
|
1366 *-solaris2.4* ) opsys=sol2-4 ;;
|
|
1367 *-solaris2.5* ) opsys=sol2-5 ;;
|
|
1368 *-solaris2.[6-9]* ) opsys=sol2-6 ;;
|
|
1369 *-solaris* ) opsys=sol2 ;;
|
|
1370
|
|
1371 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1372 * ) opsys=bsd4-2 ;;
|
0
|
1373 esac
|
70
|
1374
|
74
|
1375 case "${canonical}" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
|
|
1376
|
70
|
1377 ## Watch out for a compiler that is guaranteed not to work.
|
0
|
1378 case "${canonical}" in
|
70
|
1379 *-solaris* ) test "$CC" = "/usr/ucb/cc" && unset CC ;;
|
0
|
1380 esac
|
|
1381 ;;
|
70
|
1382
|
|
1383 sparc-*-nextstep* ) machine=sparc opsys=nextstep ;;
|
0
|
1384
|
|
1385 ## Tadpole 68k
|
70
|
1386 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
|
0
|
1387
|
|
1388 ## Tahoe machines
|
70
|
1389 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
|
|
1390 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
|
0
|
1391
|
|
1392 ## Tandem Integrity S2
|
70
|
1393 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
|
0
|
1394
|
|
1395 ## Tektronix XD88
|
70
|
1396 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
|
0
|
1397
|
|
1398 ## Tektronix 16000 box (6130?)
|
70
|
1399 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
|
0
|
1400 ## Tektronix 4300
|
|
1401 ## src/m/tek4300.h hints that this is a m68k machine.
|
70
|
1402 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
|
0
|
1403
|
|
1404 ## Titan P2 or P3
|
|
1405 ## We seem to have lost the machine-description file titan.h!
|
70
|
1406 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
|
0
|
1407
|
|
1408 ## Ustation E30 (SS5E)
|
70
|
1409 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
|
0
|
1410
|
|
1411 ## Vaxen.
|
|
1412 vax-dec-* )
|
|
1413 machine=vax
|
|
1414 case "${canonical}" in
|
|
1415 *-bsd4.1* ) opsys=bsd4-1 ;;
|
|
1416 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
|
|
1417 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
|
|
1418 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
1419 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
1420 *-vms* ) opsys=vms ;;
|
|
1421 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1422 * ) unported=yes
|
|
1423 esac
|
|
1424 ;;
|
|
1425
|
|
1426 ## Whitechapel MG1
|
70
|
1427 ## We don't know what sort of OS runs on these; we'll let the
|
|
1428 ## operating system guessing code below try.
|
|
1429 ns16k-whitechapel-* ) machine=mg1 ;;
|
0
|
1430
|
|
1431 ## Wicat
|
70
|
1432 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
|
0
|
1433
|
|
1434 ## Intel 386 machines where we don't care about the manufacturer
|
|
1435 i[3-9]86-*-* )
|
|
1436 machine=intel386
|
|
1437 case "${canonical}" in
|
|
1438 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
|
1439 *-isc2.2* ) opsys=isc2-2 ;;
|
|
1440 *-isc4.0* ) opsys=isc4-0 ;;
|
|
1441 *-isc4.* ) opsys=isc4-1
|
|
1442 GCC_TEST_OPTIONS=-posix
|
|
1443 NON_GCC_TEST_OPTIONS=-Xp
|
|
1444 ;;
|
|
1445 *-isc* ) opsys=isc3-0 ;;
|
|
1446 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1447 *-esix* ) opsys=esix ;;
|
|
1448 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1449 *-xenix* ) opsys=xenix ;;
|
|
1450 *-linux* ) opsys=linux ;;
|
|
1451 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
|
|
1452 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
110
|
1453 *-bsdi3* ) opsys=bsdos3 ;;
|
0
|
1454 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
1455 *-bsdi2* ) opsys=bsdos2 ;;
|
|
1456 *-sco3.2v5* ) opsys=sco5 ;
|
70
|
1457 ## This is a pain. Like the current USL cc, SCO's cc -E
|
|
1458 ## tokenizes as it preprocesses, making configure very
|
|
1459 ## unhappy. Unfortunately, /lib/cpp doesn't understand
|
|
1460 ## flags like "-b elf", so we have to cheat in order to
|
|
1461 ## pick up the right defines for UNEXEC from the s-file.
|
|
1462 ## 01/05/95 robertl@dgii.com
|
|
1463 if test "${dynamic}" = "yes" ; then
|
|
1464 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
|
|
1465 else
|
|
1466 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
|
|
1467 fi ;;
|
|
1468 *-386bsd* ) opsys=386bsd ;;
|
|
1469 *-freebsd* ) opsys=freebsd ;;
|
0
|
1470 *-nextstep* ) opsys=nextstep ;;
|
|
1471 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
|
|
1472 esac
|
|
1473 ;;
|
|
1474
|
|
1475 ## Linux/68k
|
70
|
1476 m68k-*-linux* ) machine=m68k opsys=linux ;;
|
|
1477
|
|
1478 * ) unported=yes ;;
|
0
|
1479 esac
|
|
1480
|
|
1481 ### If the code above didn't choose an operating system, just choose
|
|
1482 ### an operating system based on the configuration name. You really
|
|
1483 ### only want to use this when you have no idea what the right
|
|
1484 ### operating system is; if you know what operating systems a machine
|
|
1485 ### runs, it's cleaner to make it explicit in the case statement
|
|
1486 ### above.
|
70
|
1487 if test -z "${opsys}" ; then
|
0
|
1488 case "${canonical}" in
|
70
|
1489 *-gnu* ) opsys=gnu ;;
|
|
1490 *-bsd4.[01] ) opsys=bsd4-1 ;;
|
|
1491 *-bsd4.2 ) opsys=bsd4-2 ;;
|
|
1492 *-bsd4.3 ) opsys=bsd4-3 ;;
|
74
|
1493 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
|
|
1494 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
|
|
1495 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
|
|
1496 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
|
|
1497 *-sysv4.1* | *-sysvr4.1* ) opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
|
0
|
1498 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
|
70
|
1499 if test -z "$NON_GNU_CPP" ; then
|
|
1500 if test -f /usr/ccs/lib/cpp
|
|
1501 then NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1502 else NON_GNU_CPP=/lib/cpp
|
0
|
1503 fi
|
|
1504 fi
|
|
1505 opsys=usg5-4-2 ;;
|
70
|
1506 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
|
|
1507 * ) unported=yes ;;
|
0
|
1508 esac
|
|
1509 fi
|
|
1510
|
70
|
1511 test -z "$RANLIB" && RANLIB=ranlib
|
0
|
1512
|
|
1513 if test ${unported} = yes; then
|
|
1514 (echo "${progname}: XEmacs hasn't been ported to \`${canonical}' systems."
|
|
1515 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
|
|
1516 ) >&2
|
|
1517 exit 1
|
|
1518 fi
|
|
1519
|
70
|
1520 if test "${dynamic}" = "yes" ; then
|
0
|
1521 case "${opsys}" in
|
74
|
1522 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
|
0
|
1523 esac
|
70
|
1524 elif test "${dynamic}" = "no" ; then
|
0
|
1525 case "${opsys}" in
|
74
|
1526 sol2* | decosf1-3 | decosf3-* | linux ) opsys="${opsys}-static" ;;
|
0
|
1527 esac
|
|
1528 fi
|
|
1529
|
|
1530 dynodump_arch=''
|
70
|
1531 if test "${need_dynodump}" = "yes" ; then
|
0
|
1532 case "${canonical}" in
|
|
1533 sparc* ) dynodump_arch=sparc ;;
|
|
1534 powerpc* ) dynodump_arch=ppc ;;
|
|
1535 i[3-9]86* ) dynodump_arch=i386 ;;
|
|
1536 esac
|
|
1537 fi
|
|
1538
|
|
1539 machfile="m/${machine}.h"
|
|
1540 opsysfile="s/${opsys}.h"
|
|
1541
|
|
1542
|
|
1543 ############################################################################
|
|
1544 # #
|
|
1545 # Determine the compiler, set up for feature testing #
|
|
1546 # #
|
|
1547 ############################################################################
|
|
1548
|
|
1549 ]
|
|
1550 dnl -----------------------------------------------------------------------
|
|
1551 dnl Let's do a couple of macro (re)definitions.
|
|
1552 dnl
|
|
1553 dnl First we redefine AC_TEST_CPP so that we can see the error output
|
|
1554 dnl from preprocessor runs. This definition is identical to the standard
|
|
1555 dnl one supplied by Autoconf 1.11 extra for the extra_verbose check.
|
|
1556 dnl
|
|
1557 dnl Note that we *must* include the brackets around the macro definition
|
|
1558 dnl name here. Autoconf has redefined the quoting characters to be brackets,
|
|
1559 dnl and if we don't supply them, the original definition will get
|
|
1560 dnl substituted in place of the macro name!
|
|
1561 dnl
|
70
|
1562
|
|
1563 dnl Following macro is useful shorthand
|
|
1564 define([IF_YES_AC_DEFINE],test "${$1}" = yes && [AC_DEFINE]($2))
|
|
1565
|
0
|
1566 define([AC_TEST_CPP],
|
|
1567 [AC_REQUIRE_CPP()dnl
|
|
1568 cat > conftest.${ac_ext} <<EOF
|
|
1569 #include "confdefs.h"
|
|
1570 [$1]
|
|
1571 EOF
|
70
|
1572 dnl # Some shells (Coherent) do redirections in the wrong order, so need
|
|
1573 dnl # the parens.
|
|
1574 dnl # The exec was added by Mly to make this work under BSDI
|
0
|
1575 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
70
|
1576 dnl # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
|
0
|
1577 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
1578 echo "$ac_err"
|
|
1579 fi
|
|
1580 if test -z "$ac_err"; then
|
|
1581 ifelse([$2], , :, [rm -rf conftest*
|
|
1582 $2
|
|
1583 ])
|
|
1584 ifelse([$3], , , [else
|
|
1585 rm -rf conftest*
|
|
1586 $3
|
|
1587 ])dnl
|
|
1588 fi
|
|
1589 rm -f conftest*])dnl
|
|
1590 dnl
|
|
1591 dnl Second, a macro of our own:
|
|
1592 dnl Subroutine to find version of X being used
|
|
1593 dnl It can't use xmkmf because the first version in the user's path
|
|
1594 dnl may not belong to the version of X that is being built with
|
|
1595 define(AC_FIND_X_VERSION,
|
|
1596 [AC_CHECKING(the version of X11 being used)
|
|
1597 cat > conftest.${ac_ext} <<EOF
|
|
1598 #include <X11/Intrinsic.h>
|
|
1599 int main() {
|
|
1600 #if (XlibSpecificationRelease == 4)
|
|
1601 printf ("X11R4\n");
|
|
1602 #elif (XlibSpecificationRelease == 5)
|
|
1603 printf ("X11R5\n");
|
|
1604 #elif (XlibSpecificationRelease == 6)
|
|
1605 printf ("X11R6\n");
|
|
1606 #elif (XtSpecificationRelease == 4)
|
|
1607 printf ("X11R4\n");
|
|
1608 #endif
|
|
1609 return 0;
|
|
1610 }
|
|
1611 EOF
|
|
1612 dnl We need to run this which will prevent cross-configuring. But since
|
|
1613 dnl we can't do that anyhow, oh darn.
|
|
1614 ac_save_LIBS="${LIBS}"
|
|
1615 LIBS="${LIBS} ${DEFS}"
|
|
1616 if eval $ac_compile; then
|
70
|
1617 case "`./conftest`" in
|
|
1618 X11R4 ) AC_DEFINE(THIS_IS_X11R4) ;;
|
|
1619 X11R5 ) AC_DEFINE(THIS_IS_X11R5) ;;
|
|
1620 X11R6 ) AC_DEFINE(THIS_IS_X11R6) ;;
|
|
1621 esac
|
0
|
1622 fi
|
|
1623 LIBS=$ac_save_LIBS
|
|
1624 rm -f conftest*]
|
|
1625 )dnl
|
|
1626 dnl -----------------------------------------------------------------------
|
|
1627 AC_LANG_C
|
|
1628 AC_PREPARE(lisp)
|
|
1629 AC_CONFIG_HEADER(src/config.h)
|
|
1630
|
70
|
1631 if test "${extra_verbose}" = "yes" ; then
|
0
|
1632 # This is identical to the version that A\C_LANG_C generates except that
|
|
1633 # it omits the redirection of all output to /dev/null.
|
|
1634 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS'
|
|
1635 fi
|
|
1636
|
|
1637 #### Choose a compiler.
|
92
|
1638 if test "x$CC" = x ; then
|
0
|
1639 cc_specified=1
|
|
1640 fi
|
|
1641
|
|
1642 # Save the value of CFLAGS that the user specified.
|
|
1643 SPECIFIED_CFLAGS="$CFLAGS"
|
|
1644
|
70
|
1645 if test "${with_gcc}" = "yes" ; then
|
0
|
1646 CC="${compiler-gcc}"
|
|
1647 GCC=1
|
70
|
1648 elif test "${with_lcc}" = "yes" ; then
|
0
|
1649 CC="${compiler-lcc}"
|
|
1650 dash_r_space=' ' # this bullshit is here because lcc for solaris
|
|
1651 # will not accept -Rargument.
|
|
1652 # It needs -R argument instead. Yuck yuck yuck.
|
70
|
1653 test -z "$NON_GNU_CPP" && NON_GNU_CPP="yes" # this is handled specially below...
|
|
1654 elif test "${compiler}" != "" ; then CC="${compiler}"
|
|
1655 elif test "${with_gcc}" = "no" ; then CC="cc"
|
|
1656 elif test "${with_lcc}" = "no" ; then
|
|
1657 test -z "$CC" && CC=cc
|
0
|
1658 else
|
|
1659 case "${canonical}" in
|
|
1660 * )
|
70
|
1661 AC_PROG_CC
|
|
1662 if test "${CC}" = "gcc" ; then
|
0
|
1663 with_gcc="yes"
|
|
1664 GCC=1
|
|
1665 fi
|
|
1666 ;;
|
|
1667 esac
|
|
1668 fi
|
|
1669
|
70
|
1670 [
|
0
|
1671
|
|
1672 #### Some systems specify a CPP to use unless we are using GCC.
|
|
1673 #### Now that we know whether we are using GCC, we can decide whether
|
|
1674 #### to use that one.
|
70
|
1675 if test "x$NON_GNU_CPP" = x -o x$GCC = x1
|
|
1676 then true
|
0
|
1677 else
|
70
|
1678 if test "x$CPP" = x ; then
|
|
1679 if test "${with_lcc}" = "yes" -a "${NON_GNU_CPP}" = "yes"; then
|
0
|
1680 CPP='gcc -E -traditional' # cross fingers and hope it's there....
|
|
1681 else
|
|
1682 CPP="$NON_GNU_CPP"
|
|
1683 fi
|
|
1684 fi
|
|
1685 fi
|
|
1686
|
|
1687 #### Some systems specify a CC to use unless we are using GCC.
|
|
1688 #### Now that we know whether we are using GCC, we can decide whether
|
|
1689 #### to use that one.
|
70
|
1690 if test "x$NON_GNU_CC" = x -o x$GCC = x1 -o x$cc_specified = x1
|
0
|
1691 then true
|
|
1692 else
|
|
1693 CC="$NON_GNU_CC"
|
|
1694 fi
|
|
1695
|
|
1696 ## Huh? I commented out the following because it always enabled
|
|
1697 ## the "test" options, whatever the hell those are supposed to be
|
|
1698 ## for, and the result is that SunOS builds were always static.
|
|
1699
|
70
|
1700 # test x$GCC = x1 -a "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
|
|
1701 # test x$GCC = x -a "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
|
0
|
1702
|
|
1703 ############################################################################
|
|
1704 # #
|
|
1705 # Do some misc autoconf-special tests #
|
|
1706 # #
|
|
1707 ############################################################################
|
|
1708
|
|
1709 #### Some other nice autoconf tests. If you add a test here which
|
|
1710 #### should make an entry in src/config.h, don't forget to add an
|
|
1711 #### #undef clause to src/config.h.in for autoconf to modify.
|
|
1712 ]
|
|
1713 dnl checks for programs
|
|
1714 AC_PROG_CPP
|
|
1715 [
|
|
1716 case "${canonical}" in
|
|
1717 *-sun-sunos* )
|
70
|
1718 if test "${CPP}" = "acc -E" ; then
|
0
|
1719 CPP="acc -E -Xs"
|
|
1720 fi
|
|
1721 ;;
|
|
1722 esac
|
|
1723 ]
|
|
1724 AC_PROG_RANLIB
|
|
1725 AC_PROG_INSTALL
|
|
1726 AC_PROG_YACC
|
|
1727
|
|
1728 dnl checks for UNIX variants
|
|
1729 AC_AIX
|
|
1730
|
|
1731 dnl checks for header files
|
70
|
1732 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 kstat.h sys/pstat.h)
|
0
|
1733 AC_STDC_HEADERS
|
|
1734 AC_TIME_WITH_SYS_TIME
|
|
1735 AC_SYS_SIGLIST_DECLARED
|
|
1736
|
|
1737 dnl Some systems have utime.h but don't declare the struct anyplace.
|
|
1738 AC_COMPILE_CHECK(struct utimbuf,
|
|
1739 [#ifdef TIME_WITH_SYS_TIME
|
|
1740 #include <sys/time.h>
|
|
1741 #include <time.h>
|
|
1742 #else
|
|
1743 #ifdef HAVE_SYS_TIME_H
|
|
1744 #include <sys/time.h>
|
|
1745 #else
|
|
1746 #include <time.h>
|
|
1747 #endif
|
|
1748 #endif
|
|
1749 #ifdef HAVE_UTIME_H
|
|
1750 #include <utime.h>
|
|
1751 #endif], [static struct utimbuf x; x.actime = x.modtime;],
|
|
1752 AC_DEFINE(HAVE_STRUCT_UTIMBUF))
|
|
1753
|
|
1754 dnl checks for typedefs
|
|
1755 AC_RETSIGTYPE
|
|
1756
|
|
1757 AC_COMPILE_CHECK(struct timeval,
|
|
1758 [#ifdef TIME_WITH_SYS_TIME
|
|
1759 #include <sys/time.h>
|
|
1760 #include <time.h>
|
|
1761 #else
|
|
1762 #ifdef HAVE_SYS_TIME_H
|
|
1763 #include <sys/time.h>
|
|
1764 #else
|
|
1765 #include <time.h>
|
|
1766 #endif
|
|
1767 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], [
|
|
1768 HAVE_TIMEVAL=yes
|
|
1769 AC_DEFINE(HAVE_TIMEVAL)],
|
|
1770 [HAVE_TIMEVAL=no])
|
|
1771
|
|
1772 dnl checks for structure members
|
|
1773 AC_STRUCT_TM
|
|
1774 AC_TIMEZONE
|
|
1775
|
|
1776 dnl checks for compiler characteristics
|
|
1777 AC_CONST
|
|
1778
|
|
1779 dnl check for Make feature
|
|
1780 AC_SET_MAKE
|
|
1781
|
|
1782 dnl check byte order
|
|
1783 AC_WORDS_BIGENDIAN
|
|
1784
|
|
1785 dnl check for long file names
|
|
1786 AC_LONG_FILE_NAMES
|
|
1787
|
|
1788 echo "checking for -xildoff compiler flag"
|
|
1789 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
1790 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
1791 :
|
|
1792 else
|
|
1793 AC_VERBOSE(defining NEED_XILDOFF)
|
|
1794 need_xildoff=yes
|
|
1795 fi
|
|
1796 fi
|
|
1797
|
|
1798 dnl other checks for UNIX variants
|
|
1799 [
|
|
1800 # What the hell was this doing here??????
|
|
1801 ### echo > confdefs.h # this gets nuked above...
|
|
1802
|
|
1803 ############################################################################
|
|
1804 # #
|
|
1805 # Choose a window system #
|
|
1806 # #
|
|
1807 ############################################################################
|
|
1808
|
|
1809 #### Choose a window system.
|
|
1810 echo "checking for specified window system"
|
|
1811
|
|
1812 window_system=''
|
70
|
1813 case "${with_x11}" in
|
|
1814 yes ) window_system=${window_system}x11 ;;
|
|
1815 no ) window_system=${window_system}none ;;
|
0
|
1816 esac
|
|
1817
|
|
1818 case "${window_system}" in
|
|
1819 "none" | "x11" ) ;;
|
|
1820 "" )
|
|
1821 # --x-includes or --x-libraries implies --with-x11.
|
70
|
1822 if test -n "${x_includes}" -o -n "${x_libraries}"; then
|
0
|
1823 window_system=x11
|
|
1824 else
|
|
1825 echo " No window system specified. Looking for X11."
|
|
1826 # If the user didn't specify a window system and we found X11, use it.
|
70
|
1827 if test -r /usr/lib/libX11.a \
|
0
|
1828 -o -d /usr/include/X11 \
|
|
1829 -o -d /usr/X386/include \
|
|
1830 -o -d /usr/X11R6/include \
|
70
|
1831 -o -d ${x_includes}/X11 ; then
|
0
|
1832 window_system=x11
|
|
1833 fi
|
|
1834 fi
|
|
1835 ;;
|
|
1836 * )
|
|
1837 echo "Don't specify a window system more than once." >&2
|
|
1838 exit 1
|
|
1839 ;;
|
|
1840 esac
|
|
1841
|
70
|
1842 ]
|
|
1843 case "${window_system}" in "" | "x11" )
|
0
|
1844 ### If the user hasn't specified where we should find X, try
|
|
1845 ### letting autoconf figure that out.
|
70
|
1846 if test -z "${x_includes}${x_libraries}" ; then
|
|
1847 AC_FIND_X
|
0
|
1848 fi
|
70
|
1849 if test -n "${x_includes}${x_libraries}" ; then window_system=x11 ; fi
|
0
|
1850 ;;
|
|
1851 esac
|
|
1852
|
70
|
1853 test -z "${window_system}" && window_system="none"
|
|
1854
|
|
1855 if test "${window_system}" = "none" ; then
|
|
1856 if test "${with_tty}" != "yes" ; then
|
0
|
1857 echo "No window system support, and no TTY support." >&2
|
|
1858 echo "Unable to proceed." >&2
|
|
1859 exit 1
|
|
1860 fi
|
70
|
1861 for feature in epoch cde offix menubars scrollbars toolbars dialogs xim tiff
|
|
1862 do
|
|
1863 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then
|
|
1864 AC_WARN(--with-$feature ignored: Not valid without X support)
|
|
1865 fi
|
74
|
1866 eval "with_$feature=no"
|
70
|
1867 done
|
|
1868 elif test -z "${with_toolbars}" ; then
|
0
|
1869 with_toolbars='yes'
|
|
1870 fi
|
70
|
1871 [
|
0
|
1872 case "${canonical}" in
|
|
1873 *-sun-solaris* | *-sun-sunos5* ) add_runtime_flag=yes ;;
|
|
1874 esac
|
|
1875
|
70
|
1876 if test -n "${x_libraries}" ; then
|
|
1877 if test "${add_runtime_flag}" ; then
|
|
1878 LD_SWITCH_X_SITE="-L${x_libraries} -R${dash_r_space}${x_libraries}"
|
74
|
1879 else
|
70
|
1880 LD_SWITCH_X_SITE="-L${x_libraries}"
|
|
1881 fi
|
0
|
1882 fi
|
|
1883 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h.
|
70
|
1884 # test -n "${x_libraries}" -a LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
|
|
1885 test -n "${x_includes}" && C_SWITCH_X_SITE="-I${x_includes}"
|
|
1886
|
|
1887 if test -n "${site_libraries}" ; then
|
0
|
1888 for arg in ${site_libraries}
|
|
1889 do
|
|
1890 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
|
|
1891 done
|
|
1892 fi
|
70
|
1893 if test -n "${site_runtime_libraries}" ; then
|
0
|
1894 for arg in ${site_runtime_libraries}
|
|
1895 do
|
|
1896 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
|
|
1897 LD_SWITCH_SITE="${LD_SWITCH_SITE} -R${dash_r_space}${arg}"
|
|
1898 done
|
|
1899 fi
|
70
|
1900 if test -n "${site_includes}" ; then
|
0
|
1901 for arg in ${site_includes}
|
|
1902 do
|
|
1903 C_SWITCH_SITE="${C_SWITCH_SITE} -I${arg}"
|
|
1904 CPP="${CPP} -I${arg}"
|
|
1905 done
|
|
1906 fi
|
|
1907
|
|
1908 # FSF 19.29 has some bitmapdir stuff here.
|
|
1909 bitmapdir=
|
|
1910
|
|
1911 # Avoid forcing the search of /usr/include before fixed include files.
|
70
|
1912 test "$C_SWITCH_X_SITE" = "-I/usr/include" && C_SWITCH_X_SITE=" "
|
0
|
1913
|
|
1914 # Need for check for audio/Xtutil.h.
|
|
1915 CPP="${CPP} ${C_SWITCH_X_SITE}"
|
|
1916
|
|
1917 case "${window_system}" in
|
70
|
1918 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
|
|
1919 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
|
0
|
1920 esac
|
|
1921
|
|
1922 if test "${opsys}" = "hpux9"; then
|
|
1923 case "${x_libraries}" in
|
70
|
1924 *X11R4* ) opsysfile="s/hpux9-x11r4.h" ;;
|
0
|
1925 esac
|
|
1926 fi
|
|
1927
|
74
|
1928 if test "${opsys}" = "hpux9-shr"; then
|
0
|
1929 case "${x_libraries}" in
|
70
|
1930 *X11R4* ) opsysfile="s/hpux9shxr4.h" ;;
|
0
|
1931 esac
|
|
1932 fi
|
|
1933
|
|
1934 ############################################################################
|
|
1935 # #
|
|
1936 # Extract some information from the operating system and machine files #
|
|
1937 # #
|
|
1938 ############################################################################
|
|
1939
|
|
1940 echo "examining the machine- and system-dependent files to find out"
|
|
1941 echo " - which libraries the lib-src programs will want, and"
|
|
1942 echo " - whether the GNU malloc routines are usable."
|
|
1943
|
|
1944 ### First figure out CFLAGS (which we use for running the compiler here)
|
|
1945 ### and REAL_CFLAGS (which we use for real compilation).
|
|
1946 ### The two are the same except on a few systems, where they are made
|
|
1947 ### different to work around various lossages. For example,
|
|
1948 ### GCC 2.5 on Linux needs them to be different because it treats -g
|
|
1949 ### as implying static linking.
|
|
1950
|
|
1951 ### If the CFLAGS env var is specified, we use that value
|
|
1952 ### instead of the default.
|
|
1953
|
|
1954 ### It's not important that this name contain the PID; you can't run
|
|
1955 ### two configures in the same directory and have anything work
|
|
1956 ### anyway.
|
|
1957 tempcname="conftest.c"
|
|
1958
|
|
1959 echo '
|
|
1960 #define NOT_C_CODE
|
|
1961 #include "'${srcdir}'/src/'${opsysfile}'"
|
|
1962 #include "'${srcdir}'/src/'${machfile}'"
|
|
1963 #ifndef LIBS_MACHINE
|
|
1964 #define LIBS_MACHINE
|
|
1965 #endif
|
|
1966 #ifndef LIBS_SYSTEM
|
|
1967 #define LIBS_SYSTEM
|
|
1968 #endif
|
|
1969 #ifndef C_SWITCH_SYSTEM
|
|
1970 #define C_SWITCH_SYSTEM
|
|
1971 #endif
|
|
1972 #ifndef C_SWITCH_X_SYSTEM
|
|
1973 #define C_SWITCH_X_SYSTEM
|
|
1974 #endif
|
|
1975 #ifndef C_SWITCH_MACHINE
|
|
1976 #define C_SWITCH_MACHINE
|
|
1977 #endif
|
|
1978 #ifndef LD_SWITCH_X_SYSTEM
|
|
1979 #define LD_SWITCH_X_SYSTEM
|
|
1980 #endif
|
|
1981 #ifndef LIB_STANDARD
|
|
1982 #define LIB_STANDARD
|
|
1983 #endif
|
|
1984 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM LIB_STANDARD
|
|
1985 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
1986 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM
|
|
1987 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM
|
|
1988 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
1989
|
|
1990 #ifndef LIB_X11_LIB
|
|
1991 #define LIB_X11_LIB -lX11
|
|
1992 #endif
|
|
1993
|
|
1994 #ifndef LIBX11_MACHINE
|
|
1995 #define LIBX11_MACHINE
|
|
1996 #endif
|
|
1997
|
|
1998 #ifndef LIBX11_SYSTEM
|
|
1999 #define LIBX11_SYSTEM
|
|
2000 #endif
|
|
2001 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
|
|
2002
|
|
2003 #ifdef UNEXEC
|
|
2004 configure___ unexec=UNEXEC
|
|
2005 #else
|
|
2006 configure___ unexec=unexec.o
|
|
2007 #endif
|
|
2008
|
|
2009 #ifdef SYSTEM_MALLOC
|
|
2010 configure___ system_malloc=yes
|
|
2011 #else
|
|
2012 configure___ system_malloc=no
|
|
2013 #endif
|
|
2014
|
|
2015 #ifndef C_DEBUG_SWITCH
|
|
2016 #define C_DEBUG_SWITCH -g
|
|
2017 #endif
|
|
2018
|
|
2019 #ifndef C_OPTIMIZE_SWITCH
|
|
2020 #define C_OPTIMIZE_SWITCH -O
|
|
2021 #endif
|
|
2022
|
|
2023 #ifdef THIS_IS_CONFIGURE
|
|
2024
|
|
2025 /* Get the CFLAGS for tests in configure. */
|
|
2026 #ifdef __GNUC__
|
|
2027 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2028 #else
|
|
2029 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2030 #endif
|
|
2031
|
|
2032 #else /* not THIS_IS_CONFIGURE */
|
|
2033
|
|
2034 /* Get the CFLAGS for real compilation. */
|
|
2035 #ifdef __GNUC__
|
|
2036 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2037 #else
|
|
2038 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2039 #endif
|
|
2040
|
|
2041 #endif /* not THIS_IS_CONFIGURE */
|
|
2042 ' > ${tempcname}
|
|
2043 # The value of CPP is a quoted variable reference, so we need to do this
|
|
2044 # to get its actual value...
|
|
2045 CPP=`eval "echo $CPP"`
|
|
2046 eval `${CPP} -Isrc ${tempcname} \
|
|
2047 | grep 'configure___' \
|
|
2048 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
|
70
|
2049 if test "x$SPECIFIED_CFLAGS" = x ; then
|
0
|
2050 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
|
|
2051 | grep 'configure___' \
|
|
2052 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
|
|
2053 else
|
|
2054 REAL_CFLAGS="$CFLAGS"
|
|
2055 fi
|
|
2056 rm ${tempcname}
|
|
2057
|
|
2058 # override CFLAGS if user wishes
|
70
|
2059 if test "${cflags}" != "NO_CFLAGS_DEFINED" ; then
|
0
|
2060 REAL_CFLAGS=${cflags}
|
|
2061 fi
|
|
2062
|
|
2063 ### Compute the unexec source name from the object name.
|
|
2064 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
|
|
2065
|
|
2066 # Do the opsystem or machine files prohibit the use of the GNU malloc?
|
|
2067 # Assume not, until told otherwise.
|
|
2068 GNU_MALLOC=yes
|
70
|
2069 if test "${system_malloc}" = "yes" ; then
|
0
|
2070 GNU_MALLOC=no
|
|
2071 GNU_MALLOC_reason="
|
|
2072 (The GNU allocators don't work with this system configuration.)"
|
70
|
2073 elif test "${use_system_malloc}" = "yes" ; then
|
0
|
2074 GNU_MALLOC=no
|
|
2075 GNU_MALLOC_reason="
|
|
2076 (User chose not to use GNU allocators.)"
|
|
2077 fi
|
|
2078
|
|
2079 LISP_FLOAT_TYPE=yes
|
|
2080
|
|
2081
|
|
2082 #### Add the libraries to LIBS and check for some functions.
|
|
2083
|
|
2084 ]
|
|
2085 CPPFLAGS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $CPPFLAGS"
|
|
2086 DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS"
|
|
2087 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS"
|
|
2088
|
|
2089 dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks,
|
|
2090 dnl and also adds -ldnet to LIBS, which Autoconf uses for checks.
|
|
2091 dnl FSF 19.29 also checks for function dnet_ntoa.
|
|
2092 AC_HAVE_LIBRARY(-ldnet)
|
|
2093 dnl This causes -lresolv to get used in subsequent tests,
|
|
2094 dnl which causes failures on some systems such as HPUX 9.
|
|
2095 dnl FSF 19.29 also checks for function gethostbyname.
|
|
2096 dnl AC_HAVE_LIBRARY(-lresolv)
|
|
2097
|
70
|
2098 dnl Alternative to getloadavg() that doesn't require root priveleges
|
|
2099 AC_HAVE_LIBRARY(-lkstat)
|
|
2100
|
0
|
2101 AC_HAVE_LIBRARY(-lXbsd, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd")
|
|
2102
|
|
2103 dnl FSF 19.29 also checks for function cma_open.
|
|
2104 AC_HAVE_LIBRARY(-lpthreads, HAVE_PTHREADS=yes)
|
|
2105 if test -n "${HAVE_PTHREADS}" ; then
|
|
2106 AC_DEFINE(HAVE_PTHREADS)
|
|
2107 case "${opsys}" in
|
|
2108 decosf* ) CFLAGS="${CFLAGS} -threads" ;;
|
|
2109 esac
|
|
2110 fi
|
|
2111
|
|
2112 if test "${window_system}" != "none" ; then
|
|
2113 AC_CHECKING(for XFree86)
|
|
2114 if test -d /usr/X386/include; then
|
|
2115 HAVE_XFREE386=yes
|
|
2116 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
|
80
|
2117 elif test -f /etc/XF86Config -o \
|
|
2118 -f /etc/X11/XF86Config -o \
|
|
2119 -f /usr/X11R6/lib/X11/XF86Config; then
|
0
|
2120 HAVE_XFREE386=yes
|
|
2121 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X11R6/include"
|
|
2122 else
|
|
2123 HAVE_XFREE386=no
|
|
2124 fi
|
|
2125 AC_VERBOSE(${HAVE_XFREE386})
|
|
2126 else
|
|
2127 HAVE_XFREE386=no
|
|
2128 fi
|
|
2129
|
|
2130 ############################################################################
|
|
2131 # #
|
|
2132 # Test for various X-specific features #
|
|
2133 # #
|
|
2134 ############################################################################
|
|
2135
|
|
2136 # Change CFLAGS temporarily for damn binutils 2.6.0.10 check.
|
|
2137 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
2138 case "${opsys}" in
|
|
2139 linux* )
|
|
2140 CFLAGS="-Wl,-rpath-link,/usr/X11R6/lib $CFLAGS"
|
|
2141 AC_COMPILE_CHECK(whether path-link option is needed, [],
|
|
2142 [;],
|
|
2143 [need_path_link=yes],
|
|
2144 [need_path_link=no])
|
|
2145 if test "${need_path_link}" = "no"; then
|
|
2146 CFLAGS="$REAL_CFLAGS"
|
|
2147 AC_VERBOSE(no)
|
|
2148 else
|
|
2149 AC_VERBOSE(yes)
|
|
2150 fi
|
|
2151 ;;
|
|
2152 esac
|
|
2153 fi
|
|
2154
|
|
2155 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
|
|
2156 # for the tests that follow. We set it back to REAL_CFLAGS later on.
|
|
2157
|
|
2158 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
2159 DEFS="$C_SWITCH_X_SITE $DEFS"
|
|
2160 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
|
|
2161 LIBS="$LIBX $LIBS"
|
|
2162 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
|
|
2163
|
|
2164 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
|
|
2165 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
|
|
2166 # but it's more convenient here to set LD_RUN_PATH
|
|
2167 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
|
|
2168 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
|
|
2169 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
|
|
2170 export LD_RUN_PATH
|
|
2171 fi
|
|
2172
|
|
2173 if test "${HAVE_XFREE386}" = "yes" ; then
|
|
2174 case "${opsys}" in
|
|
2175 linux* )
|
|
2176 AC_COMPILE_CHECK(whether XFree86 needs -b to link, [],
|
|
2177 [XOpenDisplay ("foo");],
|
|
2178 [xfree86_first_failure=no],
|
|
2179 [xfree86_first_failure=yes])
|
|
2180 if test "${xfree86_first_failure}" = "yes"; then
|
|
2181 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
|
|
2182 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
|
|
2183 OLD_CPPFLAGS="$CPPFLAGS"
|
|
2184 OLD_LIBS="$LIBS"
|
|
2185 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
|
|
2186 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
|
|
2187 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
|
|
2188 LIBS="$LIBS -b i486-linuxaout"
|
|
2189 AC_COMPILE_CHECK(,[],
|
|
2190 [XOpenDisplay ("foo");],
|
|
2191 [xfree86_second_failure=no],
|
|
2192 [xfree86_second_failure=yes])
|
|
2193 if test "${xfree86_second_failure}" = "yes"; then
|
|
2194 # If we get the same failure with -b, there is no use adding -b.
|
|
2195 # So take it out. This plays safe.
|
|
2196 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
|
|
2197 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
|
|
2198 CPPFLAGS="$OLD_CPPFLAGS"
|
|
2199 LIBS="$OLD_LIBS"
|
|
2200 AC_VERBOSE(no)
|
|
2201 else
|
|
2202 AC_VERBOSE(yes)
|
|
2203 fi
|
|
2204 else
|
|
2205 AC_VERBOSE(no)
|
|
2206 fi
|
|
2207 ;;
|
|
2208 esac
|
|
2209 fi
|
|
2210
|
|
2211 # A C_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
|
|
2212 #XScreenNumberOfScreen XSetWMProtocols)
|
|
2213 fi
|
|
2214
|
|
2215 #
|
|
2216 # make sure we can find libX11.*
|
|
2217 #
|
|
2218 if test "${window_system}" != "none" ; then
|
|
2219 internal_xlibs_found='no'
|
|
2220 AC_HAVE_LIBRARY(-lX11, internal_xlibs_found='yes')
|
|
2221 if test "${internal_xlibs_found}" = "no" ; then
|
|
2222 echo "Unable to find X11 libraries." >&2
|
|
2223 exit 1
|
|
2224 else
|
|
2225 AC_VERBOSE(yes)
|
|
2226 fi
|
|
2227 fi
|
|
2228
|
|
2229 #
|
|
2230 # make sure we can find Intrinsic.h
|
|
2231 #
|
|
2232 if test "${window_system}" != "none" ; then
|
|
2233 internal_xincludes_found='no'
|
|
2234 for arg in ${DEFS} /usr/include
|
|
2235 do
|
|
2236 if test -f `echo "${arg}/X11/Intrinsic.h" | sed 's/^\-I//'` ; then
|
|
2237 internal_xincludes_found='yes'
|
|
2238 fi
|
|
2239 done
|
|
2240 if test "${internal_xincludes_found}" = "no" ; then
|
|
2241 echo "Unable to find X11 header files." >&2
|
|
2242 exit 1
|
|
2243 fi
|
|
2244 fi
|
|
2245
|
|
2246 #
|
|
2247 # Sun OS 4 systems need the following kludge
|
|
2248 #
|
|
2249 if test "${window_system}" != "none" ; then
|
|
2250 case "${canonical}" in *-sunos4* )
|
|
2251 LIBS="$LIBS -u _XtToolkitInitialize -u _get_applicationShellWidgetClass" ;;
|
|
2252 esac
|
|
2253 fi
|
|
2254
|
|
2255 #
|
|
2256 # See if we can find Xauth.
|
|
2257 #
|
|
2258 with_xauth='no'
|
|
2259 if test "${window_system}" != "none" ; then
|
|
2260 internal_xauth_lib_found='no'
|
|
2261 AC_HAVE_LIBRARY(-lXau, internal_xauth_lib_found='yes')
|
|
2262 if test "${internal_xauth_lib_found}" = "yes" ; then
|
|
2263 internal_xauth_includes_found='no'
|
|
2264 for arg in ${DEFS} /usr/include
|
|
2265 do
|
|
2266 if test -f `echo "${arg}/X11/Xauth.h" | sed 's/^\-I//'` ; then
|
|
2267 internal_xauth_includes_found='yes'
|
|
2268 fi
|
|
2269 done
|
|
2270 if test "${internal_xauth_includes_found}" = "yes" ; then
|
|
2271 with_xauth='yes'
|
|
2272 fi
|
|
2273 fi
|
|
2274 fi
|
70
|
2275 IF_YES_AC_DEFINE(with_xauth, HAVE_XAUTH)
|
0
|
2276
|
|
2277 #
|
|
2278 # See if we can find CDE.
|
|
2279 #
|
70
|
2280 if test "${window_system}" != "none" -a \
|
|
2281 "${with_cde}" != "no" -a \
|
|
2282 "${with_cde}" != "yes" ; then
|
|
2283 internal_cde_lib_found='no'
|
|
2284 AC_HAVE_LIBRARY(-lDtSvc, internal_cde_lib_found='yes')
|
100
|
2285 if test "${internal_cde_lib_found}" = "no" -a -f "/usr/dt/lib/libDtSvc.a"; then
|
|
2286 internal_cde_lib_found="yes"
|
|
2287 fi
|
70
|
2288 if test "${internal_cde_lib_found}" = "yes" ; then
|
|
2289 internal_cde_includes_found='no'
|
100
|
2290 for arg in ${DEFS} /usr/include /usr/dt/include ; do
|
70
|
2291 if test -f `echo "${arg}/Dt/Dt.h" | sed 's/^\-I//'` ; then
|
|
2292 internal_cde_includes_found='yes'
|
0
|
2293 fi
|
70
|
2294 done
|
|
2295 if test "${internal_cde_includes_found}" = "yes" ; then
|
|
2296 with_cde='yes'
|
0
|
2297 fi
|
|
2298 fi
|
|
2299 fi
|
70
|
2300 IF_YES_AC_DEFINE(with_cde, HAVE_CDE)
|
0
|
2301
|
100
|
2302 # having CDE implies Tooltalk
|
|
2303 if test "${with_cde}" = "yes" -a \
|
|
2304 "${with_tooltalk}" != "no" -a \
|
|
2305 "${with_tooltalk}" != "none" ; then
|
|
2306 with_tooltalk='yes'
|
|
2307 fi
|
|
2308
|
114
|
2309 # having CDE requires Motif
|
|
2310 if test "${with_cde}" = "yes" ; then
|
|
2311 motif_libs="-lXm -lXt"
|
|
2312 fi
|
|
2313
|
0
|
2314 #
|
2
|
2315 # See if we can find OffiX.
|
|
2316 #
|
70
|
2317 if test "${window_system}" != "none" -a \
|
|
2318 "${with_offix}" != "no" -a \
|
|
2319 "${with_offix}" != "yes" ; then
|
|
2320 internal_offix_lib_found='no'
|
|
2321 AC_HAVE_LIBRARY(-lDnd, internal_offix_lib_found='yes')
|
|
2322 if test "${internal_offix_lib_found}" = "yes" ; then
|
|
2323 internal_offix_includes_found='no'
|
|
2324 for arg in ${DEFS} /usr/include ; do
|
|
2325 if test -f `echo "${arg}/OffiX/DragAndDrop.h" | sed 's/^\-I//'` ; then
|
|
2326 internal_offix_includes_found='yes'
|
2
|
2327 fi
|
70
|
2328 done
|
|
2329 test "${internal_offix_includes_found}" = "yes" && with_offix='yes'
|
2
|
2330 fi
|
|
2331 fi
|
70
|
2332 IF_YES_AC_DEFINE(with_offix, HAVE_OFFIX_DND)
|
|
2333
|
|
2334 # X window options
|
0
|
2335 if test "${window_system}" != "none" ; then
|
|
2336 AC_FIND_X_VERSION
|
|
2337 AC_HAVE_HEADERS(X11/Xlocale.h)
|
|
2338 fi
|
|
2339
|
|
2340 #
|
|
2341 # if Energize specified, make sure we can find its need libraries/headers
|
|
2342 #
|
|
2343 if test "${with_energize}" = "yes" ; then
|
|
2344 AC_HAVE_LIBRARY(-lenergize, energize_version='3.X')
|
|
2345 if test "${energize_version}" = "no" ; then
|
|
2346 AC_HAVE_LIBRARY(-lconn, energize_version='2.X')
|
|
2347 if test "${energize_version}" = "no" ; then
|
|
2348 echo "Unable to find Energize library." >&2
|
|
2349 exit 1
|
|
2350 fi
|
|
2351 fi
|
|
2352
|
|
2353 internal_eincludes_found='no'
|
|
2354 for arg in ${DEFS} /usr/include
|
|
2355 do
|
|
2356 if test -f `echo "${arg}/editorconn.h" | sed 's/^\-I//'` ; then
|
|
2357 internal_eincludes_found='yes'
|
|
2358 fi
|
|
2359 done
|
|
2360 if test "${internal_eincludes_found}" = "no" ; then
|
|
2361 echo "Unable to find Energize editorconn.h header file." >&2
|
|
2362 exit 1
|
|
2363 fi
|
|
2364 fi
|
|
2365
|
|
2366 #
|
|
2367 # logb and frexp are found in -lm on most systems.
|
|
2368 #
|
|
2369 AC_HAVE_LIBRARY(-lm)
|
|
2370
|
|
2371 #
|
|
2372 # see if XPM is hanging around somewhere
|
|
2373 #
|
70
|
2374 test "${window_system}" != "none" -a \
|
|
2375 "${with_xpm}" != "no" -a \
|
|
2376 "${with_xpm}" != "yes" && { AC_HAVE_LIBRARY(-lXpm, with_xpm="yes") }
|
|
2377
|
|
2378 IF_YES_AC_DEFINE(with_xpm, HAVE_XPM)
|
0
|
2379
|
|
2380 #
|
|
2381 # see if Xmu is hanging around somewhere
|
|
2382 #
|
|
2383 # FSF 19.31 has this:
|
|
2384 #dnl If using toolkit, check whether libXmu.a exists.
|
|
2385 #dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link.
|
|
2386 # OLDLIBS="$LIBS"
|
|
2387 # if test x$HAVE_X11XTR6 = xyes; then
|
|
2388 # LIBS="-lXt -lSM -lICE $LIBS"
|
|
2389 # else
|
|
2390 # LIBS="-lXt $LIBS"
|
|
2391 # fi
|
|
2392 # A C_CHECK_LIB(Xmu, XmuConvertStandardSelection)
|
|
2393 # LIBS="$OLDLIBS"
|
|
2394
|
|
2395 if test "${window_system}" != "none" ; then
|
|
2396 if test "${with_xmu}" != "no" ; then
|
70
|
2397 test "${with_xmu}" != "yes" && { AC_HAVE_LIBRARY(-lXmu, with_xmu="yes") }
|
100
|
2398 # On SunOS4 (and 5!) we must kludge harder to try to detect Xmu
|
0
|
2399 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
100
|
2400 if test "${with_xmu}" != "yes" ; then
|
0
|
2401 # begin expansion of ac_have_library
|
|
2402 ac_save_LIBS="${LIBS}"
|
|
2403 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm"
|
88
|
2404 if test ${machine} = sparc -a ${opsys} = linux; then
|
|
2405 LIBS="${LIBS} -lICE -lSM"
|
|
2406 fi
|
0
|
2407 ac_have_lib=""
|
|
2408 cat > conftest.${ac_ext} <<EOF
|
|
2409 int main() { return 0; }
|
|
2410 EOF
|
|
2411 if eval $ac_compile; then
|
|
2412 rm -rf conftest*
|
|
2413 ac_have_lib="1"
|
|
2414 fi
|
|
2415 rm -f conftest*
|
|
2416 LIBS="${ac_save_LIBS}"
|
|
2417 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
2418 # end expansion of ac_have_library
|
|
2419 fi
|
90
|
2420 # Sparc/Linux test - fp
|
|
2421 if test "${with_xmu}" != "yes" -a ${machine} = sparc -a ${opsys} = linux; then
|
|
2422 # begin expansion of ac_have_library
|
|
2423 ac_save_LIBS="${LIBS}"
|
|
2424 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm -lICE -lSM"
|
|
2425 ac_have_lib=""
|
|
2426 cat > conftest.${ac_ext} <<EOF
|
|
2427 int main() { return 0; }
|
|
2428 EOF
|
|
2429 if eval $ac_compile; then
|
|
2430 rm -rf conftest*
|
|
2431 ac_have_lib="1"
|
|
2432 fi
|
|
2433 rm -f conftest*
|
|
2434 LIBS="${ac_save_LIBS}"
|
|
2435 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
2436 # end expansion of ac_have_library
|
|
2437 fi
|
0
|
2438 # On UnixWare 2.1 we must kludge harder to try to detect Xmu
|
|
2439 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
|
2440 if test "${with_xmu}" != "yes" && test -f "/.UpgradeVer2.1" ; then
|
|
2441 # begin expansion of ac_have_library
|
|
2442 ac_save_LIBS="${LIBS}"
|
|
2443 if test x$HAVE_XFREE386 = xyes; then
|
|
2444 LIBS="-lXt -lSM -lICE ${LIBS}"
|
|
2445 else
|
|
2446 LIBS="${LIBS} -lXmu -lXt -lXext -lX11"
|
|
2447 fi
|
|
2448 ac_have_lib=""
|
|
2449 cat > conftest.${ac_ext} <<EOF
|
|
2450 int main() { return 0; }
|
|
2451 EOF
|
|
2452 if eval $ac_compile; then
|
|
2453 rm -rf conftest*
|
|
2454 ac_have_lib="1"
|
|
2455 fi
|
|
2456 rm -f conftest*
|
|
2457 LIBS="${ac_save_LIBS}"
|
|
2458 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
2459 # end expansion of ac_have_library
|
|
2460 fi
|
|
2461 fi
|
|
2462 fi
|
70
|
2463 IF_YES_AC_DEFINE(with_xmu, HAVE_XMU)
|
0
|
2464
|
|
2465 #
|
|
2466 # see if COMPFACE is hanging around somewhere
|
|
2467 #
|
70
|
2468 if test "${window_system}" != "none" -a \
|
|
2469 "${with_xface}" != "no" -a \
|
|
2470 "${with_xface}" != "yes" ; then
|
|
2471 AC_HEADER_CHECK(compface.h, compface_incl="yes", with_xface="no")
|
|
2472 if test "${compface_incl}" = "yes" ; then
|
|
2473 AC_HAVE_LIBRARY(-lcompface, with_xface="yes")
|
0
|
2474 fi
|
|
2475 fi
|
70
|
2476 IF_YES_AC_DEFINE(with_xface, HAVE_XFACE)
|
0
|
2477
|
|
2478 #
|
|
2479 # check whether we're using GIF support
|
|
2480 #
|
|
2481 if test "${window_system}" = "none" ; then
|
|
2482 if test -z "${with_gif}" ; then
|
|
2483 with_gif=no
|
|
2484 elif test "${with_gif}" != "no" ; then
|
|
2485 echo "GIF support cannot be specified without a window system."
|
|
2486 exit 1
|
|
2487 fi
|
|
2488 elif test -z "${with_gif}" ; then
|
|
2489 with_gif=yes
|
|
2490 fi
|
70
|
2491 IF_YES_AC_DEFINE(with_gif, HAVE_GIF)
|
|
2492
|
|
2493 dnl # autodetect JPEG
|
0
|
2494 if test "${window_system}" = "none" ; then
|
|
2495 if test -z "${with_jpeg}" ; then
|
|
2496 with_jpeg=no
|
|
2497 elif test "${with_jpeg}" != "no" ; then
|
|
2498 echo "JPEG support cannot be specified without a window system."
|
|
2499 exit 1
|
|
2500 fi
|
|
2501 else
|
70
|
2502 if test "${with_jpeg}" != "no" -a \
|
|
2503 "${with_jpeg}" != "yes" ; then
|
|
2504 AC_HEADER_CHECK(jpeglib.h, jpeglib_incl="yes", with_jpeg="no")
|
|
2505 test "${jpeglib_incl}" = "yes" && { AC_HAVE_LIBRARY(-ljpeg, with_jpeg="yes") }
|
0
|
2506 fi
|
|
2507 fi
|
70
|
2508 IF_YES_AC_DEFINE(with_jpeg, HAVE_JPEG)
|
|
2509
|
|
2510 dnl ### autodetect PNG
|
0
|
2511 if test "${window_system}" = "none" ; then
|
|
2512 if test -z "${with_png}" ; then
|
|
2513 with_png=no
|
|
2514 elif test "${with_png}" != "no" ; then
|
|
2515 echo "PNG support cannot be specified without a window system."
|
|
2516 exit 1
|
|
2517 fi
|
|
2518 fi
|
70
|
2519 test -z "${with_png}" && { AC_HEADER_CHECK(png.h, , with_png="no") }
|
84
|
2520 test -z "${with_png}" && { AC_FUNC_CHECK(pow, , with_png="no") }
|
|
2521 if test -z "${with_png}" ; then
|
|
2522 AC_HAVE_LIBRARY(-lz, with_png="yes")
|
|
2523 test -z "${with_png}" && { AC_HAVE_LIBRARY(-lgz, with_png="gnuz", with_png="no") }
|
|
2524 if test "${with_png}" != "no"; then
|
|
2525 png_save_libs="${LIBS}"
|
|
2526 case "${with_png}" in
|
|
2527 yes ) LIBS="${LIBS} -lz" ;;
|
|
2528 gnuz ) LIBS="${LIBS} -lgz" ;;
|
|
2529 esac
|
|
2530 AC_HAVE_LIBRARY(-lpng, , with_png="no")
|
|
2531 LIBS="$png_save_libs"
|
|
2532 fi
|
|
2533 fi
|
70
|
2534 case "${with_png}" in
|
|
2535 yes ) AC_DEFINE(HAVE_PNG) ;;
|
|
2536 gnuz ) AC_DEFINE(HAVE_PNG) AC_DEFINE(HAVE_PNG_GNUZ) ;;
|
|
2537 esac
|
|
2538
|
|
2539 dnl ### autodetect TIFF (not yet implemented)
|
|
2540 IF_YES_AC_DEFINE(with_tiff, HAVE_TIFF)
|
0
|
2541
|
|
2542 # We use Lucid toolkit defaults for the menubars and scrollbars, but
|
|
2543 # if Motif is available we use it for the dialog boxes.
|
|
2544 if test "${window_system}" != "none" ; then
|
70
|
2545 save_libs="${LIBS}"
|
0
|
2546 if test "x${with_dialogs}" = "x" ; then
|
|
2547 # We can't use ac_have_library because it simply appends -lXm to the
|
|
2548 # end of the link line which is insufficient since -lXm will generate
|
|
2549 # dependencies on -lXt
|
|
2550 # begin expansion of ac_have_library
|
|
2551 ac_save_LIBS="${LIBS}"
|
|
2552 LIBS="${LIBS} -lXm -lXt ${LIBS}"
|
|
2553 ac_have_lib=""
|
|
2554 test -n "$silent" || echo "checking for -lXm"
|
|
2555 cat > conftest.${ac_ext} <<EOF
|
|
2556 #include "confdefs.h"
|
|
2557
|
|
2558 int main() { return 0; }
|
|
2559 int t() { main();; return 0; }
|
|
2560 EOF
|
|
2561 if eval $ac_compile; then
|
|
2562 rm -rf conftest*
|
|
2563 ac_have_lib="1"
|
|
2564
|
|
2565 fi
|
|
2566 rm -f conftest*
|
|
2567 LIBS="${ac_save_LIBS}"
|
|
2568 if test -n "${ac_have_lib}"; then
|
70
|
2569 :; with_dialogs="motif" motif_libs="-lXm -lXt"
|
0
|
2570 else
|
|
2571 :;
|
|
2572 fi
|
|
2573 # end expansion of ac_have_library
|
|
2574 # Sigh. My Motif (MoTeeth) under Linux also depends on Xpm and Xext.
|
|
2575 if test "${with_dialogs}" != "motif" ; then
|
|
2576 # begin expansion of ac_have_library
|
|
2577 ac_save_LIBS="${LIBS}"
|
|
2578 LIBS="${LIBS} -lXm -lXt -lXpm -lXext ${LIBS}"
|
|
2579 ac_have_lib=""
|
|
2580 test -n "$silent" || echo "checking for -lXm in another way"
|
|
2581 cat > conftest.${ac_ext} <<EOF
|
|
2582 #include "confdefs.h"
|
|
2583
|
|
2584 int main() { return 0; }
|
|
2585 int t() { main();; return 0; }
|
|
2586 EOF
|
|
2587 if eval $ac_compile; then
|
|
2588 rm -rf conftest*
|
|
2589 ac_have_lib="1"
|
|
2590
|
|
2591 fi
|
|
2592 rm -f conftest*
|
|
2593 LIBS="${ac_save_LIBS}"
|
|
2594 if test -n "${ac_have_lib}"; then
|
70
|
2595 :; with_dialogs="motif" motif_libs="-lXm -lXt -lXpm -lXext"
|
0
|
2596 else
|
|
2597 :;
|
|
2598 fi
|
|
2599 # end expansion of ac_have_library
|
|
2600 fi
|
70
|
2601 test "${with_dialogs}" = "motif" && AC_VERBOSE(Found Motif)
|
0
|
2602 fi
|
|
2603 fi
|
|
2604
|
|
2605 # Finish ensuring that we have values for the various toolkit items.
|
70
|
2606
|
|
2607 test "${with_menubars}" = "motif" -o \
|
|
2608 "${with_scrollbars}" = "motif" -o \
|
|
2609 "${with_dialogs}" = "motif" && with_motif="yes"
|
82
|
2610 test "${with_menubars}" = "athena" -o \
|
|
2611 "${with_scrollbars}" = "athena" -o \
|
|
2612 "${with_dialogs}" = "athena" && with_athena="yes"
|
|
2613 test "${with_menubars}" = "athena3d" -o \
|
|
2614 "${with_scrollbars}" = "athena3d" -o \
|
|
2615 "${with_dialogs}" = "athena3d" && with_athena="yes"
|
70
|
2616 test "${with_menubars}" = "" && with_menubars="lucid"
|
|
2617 test "${with_menubars}" = "athena" && with_menubars="lucid"
|
|
2618 test "${with_scrollbars}" = "" && with_scrollbars="lucid"
|
|
2619 test "${with_dialogs}" = "" && with_dialogs="athena"
|
|
2620 test "${with_dialogs}" = "lucid" && with_dialogs="athena"
|
|
2621
|
|
2622 test "${with_menubars}" != "no" && AC_DEFINE(HAVE_MENUBARS)
|
|
2623 test "${with_scrollbars}" != "no" && AC_DEFINE(HAVE_SCROLLBARS)
|
72
|
2624 test "${with_dialogs}" != "no" && AC_DEFINE(HAVE_DIALOGS)
|
70
|
2625
|
|
2626 test "${with_menubars}" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID)
|
|
2627 test "${with_menubars}" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF)
|
|
2628 test "${with_scrollbars}" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID)
|
|
2629 test "${with_scrollbars}" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF)
|
|
2630 test "${with_scrollbars}" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA)
|
82
|
2631 if test "${with_scrollbars}" = "athena3d"; then
|
|
2632 AC_DEFINE(LWLIB_SCROLLBARS_ATHENA)
|
|
2633 AC_DEFINE(LWLIB_SCROLLBARS_ATHENA3D)
|
|
2634 fi
|
70
|
2635 test "${with_dialogs}" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF)
|
|
2636 test "${with_dialogs}" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA)
|
82
|
2637 if test "${with_dialogs}" = "athena3d"; then
|
|
2638 AC_DEFINE(LWLIB_DIALOGS_ATHENA)
|
|
2639 AC_DEFINE(LWLIB_DIALOGS_ATHENA3D)
|
|
2640 fi
|
0
|
2641
|
|
2642 ############################################################################
|
|
2643 # #
|
|
2644 # Misc other feature tests #
|
|
2645 # #
|
|
2646 ############################################################################
|
|
2647
|
70
|
2648 # Mule-dependent option processing
|
|
2649 if test "$with_mule" = "yes" ; then
|
|
2650 # Do we have the XmIm* routines? And if so, do we want to use them?
|
|
2651 test "$with_xim" != no && AC_CHECKING(for XIM)
|
|
2652 if test -z "$with_xim" -o "$with_xim" = "yes" ; then
|
|
2653 xim_save_libs="$LIBS"
|
|
2654 LIBS="${motif_libs} ${LIBS}"
|
|
2655 AC_FUNC_CHECK(XmImMbLookupString, have_XmIm=yes, have_XmIm=no)
|
|
2656 LIBS="$xim_save_libs"
|
|
2657 if test "$have_XmIm" = "yes"; then with_xim=motif
|
|
2658 elif test "$with_xim" = "yes"; then with_xim=xlib
|
|
2659 else with_xim=no
|
|
2660 fi
|
|
2661 fi
|
|
2662 if test "$with_xim" != "no" ; then
|
|
2663 AC_DEFINE(HAVE_XIM)
|
|
2664 test "$with_xim" = "xlib" && AC_DEFINE(XIM_XLIB)
|
|
2665 test "$with_xim" = "motif" && AC_DEFINE(XIM_MOTIF)
|
|
2666 fi
|
98
|
2667 # wnn6 implies wnn support
|
|
2668 if test "$with_wnn6" = "yes" ; then
|
|
2669 with_wnn=yes
|
|
2670 fi
|
70
|
2671 else # Other internationalization features depend on Mule
|
|
2672 with_mule="no"
|
98
|
2673 for feature in xim canna wnn wnn6 ; do
|
70
|
2674 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then
|
|
2675 AC_WARN(--with-$feature ignored: Not valid without Mule support)
|
|
2676 fi
|
|
2677 eval "with_$feature=no"
|
|
2678 done
|
|
2679 fi
|
|
2680
|
100
|
2681 #
|
|
2682 # set defaults for finding WNN includes and libs
|
|
2683 #
|
|
2684 if test "${with_wnn}" = "yes" ; then
|
114
|
2685 for arg in "-I${wnn_includes}" "-I/usr/X11R6/include/wnn" "-I/usr/include/wnn"
|
100
|
2686 do
|
|
2687 if test -f `echo "${arg}/wnnerror.h" | sed 's/^\-I//'` ; then
|
|
2688 C_SWITCH_SITE="${C_SWITCH_SITE} ${arg}"
|
|
2689 wnn_includes=${arg}
|
|
2690 fi
|
|
2691 done
|
114
|
2692 for arg in "-L${wnn_libraries}" "-L/usr/X11R6/lib" "-L/usr/lib"
|
100
|
2693 do
|
|
2694 if test -f `echo "${arg}/libwnn.a" | sed 's/^\-L//'` ; then
|
|
2695 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${arg}"
|
|
2696 wnn_libraries=${arg}
|
|
2697 fi
|
|
2698 done
|
|
2699 fi
|
|
2700
|
110
|
2701 #
|
|
2702 # set defaults for finding Canna includes and libs
|
|
2703 #
|
|
2704 if test "${with_canna}" = "yes" ; then
|
|
2705 for arg in "-I${canna_includes}" "-I/usr/X11R6/include"
|
|
2706 do
|
|
2707 if test -f `echo "${arg}/canna/RK.h" | sed 's/^\-I//'` ; then
|
|
2708 C_SWITCH_SITE="${C_SWITCH_SITE} ${arg}"
|
|
2709 canna_includes=${arg}
|
|
2710 fi
|
|
2711 done
|
114
|
2712 for arg in "-L${canna_libraries}" "-L/usr/X11R6/lib"
|
110
|
2713 do
|
|
2714 if test -f `echo "${arg}/libcanna.a" | sed 's/^\-L//'` ; then
|
|
2715 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${arg}"
|
|
2716 canna_libraries=${arg}
|
|
2717 fi
|
|
2718 done
|
|
2719 fi
|
|
2720
|
0
|
2721 # If netdb.h doesn't declare h_errno, we must declare it by hand.
|
|
2722 AC_COMPILE_CHECK(declaration of h_errno in netdb.h,
|
70
|
2723 [#include <netdb.h>],
|
|
2724 [int i = h_errno;],
|
|
2725 AC_DEFINE(HAVE_H_ERRNO))
|
0
|
2726
|
|
2727 AC_COMPILE_CHECK(sigsetjmp,
|
70
|
2728 [#include <setjmp.h>],
|
|
2729 [sigjmp_buf bar; sigsetjmp (bar, 0);],
|
|
2730 AC_DEFINE(HAVE_SIGSETJMP))
|
0
|
2731
|
|
2732 AC_CHECKING(whether localtime caches TZ)
|
|
2733 emacs_cv_localtime_cache=
|
|
2734 AC_TEST_PROGRAM([#include <time.h>
|
|
2735 #if 1 /* STDC_HEADERS */
|
|
2736 # include <stdlib.h>
|
|
2737 #endif
|
|
2738 extern char **environ;
|
|
2739 unset_TZ ()
|
|
2740 {
|
|
2741 char **from, **to;
|
|
2742 for (to = from = environ; (*to = *from); from++)
|
|
2743 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
2744 to++;
|
|
2745 }
|
|
2746 main()
|
|
2747 {
|
|
2748 time_t now = time ((time_t *) 0);
|
|
2749 int hour_GMT0, hour_unset;
|
|
2750 if (putenv ("TZ=GMT0") != 0)
|
|
2751 exit (1);
|
|
2752 hour_GMT0 = localtime (&now)->tm_hour;
|
|
2753 unset_TZ ();
|
|
2754 hour_unset = localtime (&now)->tm_hour;
|
|
2755 if (putenv ("TZ=PST8") != 0)
|
|
2756 exit (1);
|
|
2757 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
2758 exit (1);
|
|
2759 unset_TZ ();
|
|
2760 if (localtime (&now)->tm_hour != hour_unset)
|
|
2761 exit (1);
|
|
2762 exit (0);
|
|
2763 }], emacs_cv_localtime_cache=no, emacs_cv_localtime_cache=yes,
|
|
2764 [# If we have tzset, assume the worst when cross-compiling.
|
|
2765 emacs_cv_localtime_cache=yes])
|
|
2766 AC_VERBOSE("$emacs_cv_localtime_cache")
|
|
2767 if test x$emacs_cv_localtime_cache = xyes; then
|
|
2768 AC_DEFINE(LOCALTIME_CACHE)
|
|
2769 fi
|
|
2770
|
|
2771 if test "x$HAVE_TIMEVAL" = xyes; then
|
|
2772 AC_COMPILE_CHECK(whether gettimeofday can't accept two arguments,
|
|
2773 [
|
|
2774 #ifdef TIME_WITH_SYS_TIME
|
|
2775 #include <sys/time.h>
|
|
2776 #include <time.h>
|
|
2777 #else
|
|
2778 #ifdef HAVE_SYS_TIME_H
|
|
2779 #include <sys/time.h>
|
|
2780 #else
|
|
2781 #include <time.h>
|
|
2782 #endif
|
|
2783 #endif
|
|
2784 ],
|
|
2785 [
|
|
2786 struct timeval time;
|
|
2787 struct timezone dummy;
|
|
2788 gettimeofday (&time, &dummy);
|
|
2789 ],
|
|
2790 [AC_VERBOSE(no)],
|
|
2791 [AC_VERBOSE(yes)
|
|
2792 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)])
|
|
2793 fi
|
|
2794
|
|
2795 AC_COMPILE_CHECK(whether inline functions are supported,
|
|
2796 ,
|
|
2797 [
|
|
2798 inline int
|
|
2799 foo ()
|
|
2800 {
|
|
2801 return 0;
|
|
2802 }
|
|
2803 ],
|
70
|
2804 AC_DEFINE(HAVE_INLINE))
|
0
|
2805
|
|
2806 # This does all sorts of magic to make sure alloca() works OK.
|
|
2807 # It might even add some junk to the top of <config.h>.
|
|
2808 # (I don't understand what goes on here, but it seems to work.)
|
|
2809 AC_ALLOCA
|
|
2810
|
|
2811 # Check whether vfork exists and works correctly. (This does more
|
|
2812 # than just check for its existence.) If so, it defines HAVE_VFORK_H.
|
|
2813 # If not, it defines vfork to be fork.
|
|
2814 AC_VFORK
|
|
2815
|
|
2816 # Check whether mmap exists and works correctly. (This does more
|
|
2817 # than just check for its existence.) If so, it defines HAVE_MMAP.
|
|
2818 # Actually, this seems to rule out some cases where mmap() can
|
|
2819 # work fine for our purposes (e.g. HPUX). We get a big win out
|
|
2820 # of using mmap(), so let's go back to the old way.
|
|
2821 dnl AC_MMAP
|
|
2822
|
|
2823 # Check whether strcoll exists and works correctly. (This does more
|
|
2824 # than just check for its existence.) If so, it defines HAVE_STRCOLL.
|
|
2825 AC_STRCOLL
|
|
2826
|
|
2827 AC_SIZEOF_TYPE(short)
|
|
2828 AC_SIZEOF_TYPE(int)
|
|
2829 AC_SIZEOF_TYPE(long)
|
|
2830
|
|
2831 # FSF 19.29 does this:
|
|
2832 # # fmod, logb, and frexp are found in -lm on most systems.
|
|
2833 # # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
|
|
2834 # A C_CHECK_LIB(m, sqrt)
|
|
2835
|
72
|
2836 AC_HAVE_FUNCS(acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd 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)
|
0
|
2837
|
|
2838 # Check for mmap.
|
|
2839 found_mmap=true
|
|
2840 AC_FUNC_CHECK(mmap, , found_mmap=)
|
70
|
2841 test -n "$found_mmap" && AC_DEFINE(HAVE_MMAP)
|
|
2842
|
|
2843 dnl # rel_alloc requires either GNU malloc or system malloc with mmap
|
|
2844 dnl # We only turn rel_alloc on by default if mmap is available.
|
|
2845 test "${GNU_MALLOC}" != "yes" -a "${found_mmap}" != "true" && rel_alloc=no
|
|
2846 test "${rel_alloc}" = "default" -a "${found_mmap}" = "true" && rel_alloc=yes
|
0
|
2847
|
|
2848 # Check for Internet sockets.
|
|
2849
|
|
2850 ok_so_far=true
|
|
2851 AC_FUNC_CHECK(socket, , ok_so_far=)
|
70
|
2852 test -n "$ok_so_far" && { AC_HEADER_CHECK(netinet/in.h, , ok_so_far=) }
|
|
2853 test -n "$ok_so_far" && { AC_HEADER_CHECK(arpa/inet.h, , ok_so_far=) }
|
0
|
2854 if test -n "$ok_so_far"; then
|
|
2855 AC_DEFINE(HAVE_SOCKETS)
|
|
2856 # Check for the sun_len member in struct sockaddr_un.
|
|
2857
|
|
2858 AC_COMPILE_CHECK(sun_len member in struct sockaddr_un,
|
|
2859 [#include <sys/types.h>
|
|
2860 #include <sys/socket.h>
|
|
2861 #include <sys/un.h>], [static struct sockaddr_un x; x.sun_len = 1;],
|
|
2862 AC_DEFINE(HAVE_SOCKADDR_SUN_LEN))
|
|
2863 fi
|
|
2864
|
|
2865 # Check for SYS V IPC. (Inferior to sockets.)
|
|
2866
|
|
2867 if test -z "$ok_so_far"; then
|
|
2868 ok_so_far=true
|
|
2869 AC_FUNC_CHECK(msgget, , ok_so_far=)
|
70
|
2870 test -n "$ok_so_far" && { AC_HEADER_CHECK(sys/ipc.h, , ok_so_far=) }
|
|
2871 test -n "$ok_so_far" && { AC_HEADER_CHECK(sys/msg.h, , ok_so_far=) }
|
|
2872 test -n "$ok_so_far" && AC_DEFINE(HAVE_SYSVIPC)
|
0
|
2873 fi
|
|
2874
|
|
2875 # Check for directory variants
|
|
2876
|
|
2877 sysv_system_dir=
|
|
2878 nonsystem_dir_library=
|
|
2879 AC_HEADER_CHECK(dirent.h, sysv_system_dir=yes, )
|
70
|
2880 test -z "$sysv_system_dir" &&
|
|
2881 { AC_HEADER_CHECK(sys/dir.h, , nonsystem_dir_library=yes) }
|
|
2882 if test -n "$sysv_system_dir" ; then AC_DEFINE(SYSV_SYSTEM_DIR)
|
|
2883 elif test -n "$nonsystem_dir_library" ; then AC_DEFINE(NONSYSTEM_DIR_LIBRARY)
|
0
|
2884 fi
|
70
|
2885
|
|
2886 dnl # Check for terminal I/O variants
|
0
|
2887
|
|
2888 echo "checking how to do terminal I/O"
|
|
2889
|
|
2890 have_termios=
|
|
2891 have_termio=
|
|
2892 AC_HEADER_CHECK(termios.h, have_termios=yes, )
|
70
|
2893 dnl # TERMIOS systems may have termio.h, but not vice-versa, I think.
|
|
2894 test -z "$have_termios" && { AC_HEADER_CHECK(termio.h, have_termio=yes, ) }
|
|
2895 if test -n "$have_termios" ; then AC_DEFINE(HAVE_TERMIOS)
|
|
2896 elif test -n "$have_termio" ; then AC_DEFINE(HAVE_TERMIO)
|
0
|
2897 fi
|
|
2898
|
|
2899 # Check for nlist.h
|
|
2900 AC_HEADER_CHECK(nlist.h, AC_DEFINE(NLIST_STRUCT), )
|
|
2901
|
70
|
2902 # AIX export list
|
76
|
2903 if test -f /usr/lpp/X11/bin/smt.exp ; then
|
|
2904 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/lpp/X11/bin/smt.exp)
|
|
2905 elif test -f /usr/bin/X11/smt.exp ; then
|
|
2906 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/bin/X11/smt.exp)
|
|
2907 fi
|
70
|
2908
|
|
2909 dnl # Set up the CFLAGS for real compilation, so we can substitute it.
|
0
|
2910 CFLAGS="$REAL_CFLAGS"
|
|
2911
|
70
|
2912 dnl # Find out which version of XEmacs this is.
|
|
2913 file="${srcdir}/lisp/version.el"
|
|
2914 version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"`
|
|
2915 if test -z "${version}"; then
|
|
2916 echo "${progname}: can't find current emacs version in \"$file\"." >&2
|
0
|
2917 exit 1
|
|
2918 fi
|
70
|
2919 beta=`sed -ne 's/^.*XEmacs Lucid (beta\([[0-9]][[0-9]]*\)).*$/\1/p' "$file"`
|
|
2920 test -n "$beta" && version="${version}-b${beta}"
|
|
2921
|
|
2922
|
|
2923 dnl # Check for sound of various sorts.
|
0
|
2924
|
|
2925 # the following needs to be fixed for SGI.
|
70
|
2926 if test -z "${native_sound_lib}" ; then
|
|
2927 if test -r /usr/demo/SOUND/lib/libaudio.a; then
|
0
|
2928 native_sound_lib=/usr/demo/SOUND/lib/libaudio.a
|
70
|
2929 elif test -r /usr/demo/SOUND/libaudio.a ; then
|
0
|
2930 native_sound_lib=/usr/demo/SOUND/libaudio.a
|
|
2931 else
|
|
2932 case "${canonical}" in
|
70
|
2933 *-sgi-* ) AC_HAVE_LIBRARY(-laudio, native_sound_lib="-laudio") ;;
|
|
2934 hppa*-hp-hpux* ) AC_HAVE_LIBRARY(-lAlib, native_sound_lib="-lAlib") ;;
|
0
|
2935 esac
|
|
2936 fi
|
|
2937 fi
|
70
|
2938 test -z "${with_sound}" -a -n "${native_sound_lib}" && with_sound="native";
|
0
|
2939
|
|
2940 #### If the nas library doesn't contain the error jump point, then
|
|
2941 #### we force safer behaviour.
|
|
2942
|
70
|
2943 if test "${with_sound}" = "nas" -o \
|
|
2944 "${with_sound}" = "both"; then
|
|
2945 AC_HEADER_EGREP(AuXtErrorJump,audio/Xtutil.h, , old_nas=true)
|
0
|
2946 fi
|
|
2947
|
100
|
2948 if test "${with_cde}" = "yes" ; then
|
|
2949 if test -f "/usr/dt/include/Dt/Dt.h" ; then
|
|
2950 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} -I/usr/dt/include"
|
|
2951 fi
|
|
2952 if test -f "/usr/dt/lib/libDtSvc.a" ; then
|
|
2953 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} -L/usr/dt/lib"
|
|
2954 fi
|
|
2955 fi
|
|
2956
|
70
|
2957 if test "${with_tooltalk}" = "yes" ; then
|
100
|
2958 for arg in "-I/usr/include/desktop" "-I${OPENWINHOME-/usr/openwin}/include/desktop" "-I/usr/dt/include/Tt"
|
0
|
2959 do
|
100
|
2960 if test -f `echo "${arg}/tt_c.h" | sed 's/^\-I//'` ; then
|
|
2961 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}"
|
0
|
2962 fi
|
|
2963 done
|
100
|
2964 for arg in "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib" "-L/usr/dt/lib"
|
0
|
2965 do
|
|
2966 case "${arg}" in
|
70
|
2967 -L*) if test -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ; then
|
0
|
2968 dash_r=''
|
70
|
2969 if test -n "${add_runtime_flag}" ; then
|
0
|
2970 dash_r=`echo ${arg} | sed "s/^-L/-R${dash_r_space}/"`
|
|
2971 fi
|
|
2972 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
|
|
2973 fi
|
|
2974 ;;
|
|
2975 esac
|
|
2976 done
|
|
2977 fi
|
|
2978
|
70
|
2979 dnl Check for ncurses.
|
|
2980
|
|
2981 if test "${with_tty}" != "no" ; then
|
|
2982 AC_HAVE_LIBRARY(-lncurses, have_ncurses=yes, have_ncurses=no)
|
|
2983 if test "${have_ncurses}" = "yes" ; then
|
|
2984 AC_DEFINE(HAVE_NCURSES)
|
|
2985 AC_HEADER_CHECK(ncurses/term.h, have_ncurses_term_h=yes, have_ncurses_term_h=no)
|
|
2986 IF_YES_AC_DEFINE(have_ncurses_term_h, HAVE_NCURSES_TERM_H)
|
|
2987 AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no)
|
|
2988 if test "${have_ncurses_curses_h}" = "no" ; then
|
|
2989 dnl Try again, and check for the bogus ncurses/ include bug.
|
|
2990 dnl (i.e. ncurses/curses.h bogusly includes <unctrl.h> instead of
|
|
2991 dnl <ncurses/unctrl.h>)
|
0
|
2992 OLD_CPP="${CPP}"
|
|
2993 CPP="${CPP} -I/usr/include/ncurses"
|
70
|
2994 AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no)
|
|
2995 if test "${have_ncurses_curses_h}" = "yes" ; then
|
0
|
2996 site_includes="${site_includes} /usr/include/ncurses"
|
|
2997 C_SWITCH_SITE="${C_SWITCH_SITE} -I/usr/include/ncurses"
|
70
|
2998 AC_VERBOSE(Your system has the bogus ncurses include bug.)
|
0
|
2999 else
|
|
3000 CPP="${OLD_CPP}"
|
|
3001 fi
|
|
3002 fi
|
70
|
3003 IF_YES_AC_DEFINE(have_ncurses_curses_h, HAVE_NCURSES_CURSES_H)
|
0
|
3004 fi
|
|
3005 fi
|
|
3006
|
70
|
3007 dnl Check for database support.
|
|
3008
|
|
3009 dnl <mdiers@logware.de>
|
0
|
3010 dnl We don't necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support.
|
|
3011 dnl On FreeBSD, both DB and DBM are part of libc.
|
|
3012 dnl Note that unless support for DB/(G)DBM is explicitly disabled, we always
|
|
3013 dnl want to check for libdb/lib(g)dbm. Also note that libc will not be
|
|
3014 dnl checked if we have the libraries.
|
|
3015 dnl If support for DB/(G)DBM is requested, but we neither have libdb/lib(g)dbm,
|
|
3016 dnl nor does libc implement it, we are a bit lost :)
|
70
|
3017
|
|
3018 if test "${with_database_berkdb}" != "no" ; then
|
|
3019 AC_HAVE_LIBRARY(-ldb, have_libdb=yes, have_libdb=no)
|
|
3020 IF_YES_AC_DEFINE(have_libdb, HAVE_LIBDB)
|
|
3021 if test "${with_database_berkdb}" != "yes" ; then
|
|
3022 if test "${have_libdb}" = "yes" ; then
|
0
|
3023 with_database_berkdb=yes
|
|
3024 else
|
70
|
3025 AC_FUNC_CHECK(dbopen, with_database_berkdb=yes, with_database_berkdb=no)
|
0
|
3026 fi
|
|
3027 fi
|
|
3028 fi
|
70
|
3029 IF_YES_AC_DEFINE(with_database_berkdb, HAVE_BERKELEY_DB)
|
|
3030
|
|
3031 if test "${with_database_gnudbm}" != "no" ; then
|
|
3032 AC_HAVE_LIBRARY(-lgdbm, have_libgdbm=yes, have_libgdbm=no)
|
|
3033 IF_YES_AC_DEFINE(have_libgdbm, HAVE_LIBGDBM)
|
|
3034 test -z "${with_database_gnudbm}" && with_database_gnudbm="${have_libgdbm}"
|
0
|
3035 fi
|
70
|
3036 if test "${with_database_gnudbm}" = "yes" ; then
|
|
3037 AC_DEFINE(HAVE_DBM)
|
|
3038 AC_DEFINE(HAVE_GNU_DBM)
|
|
3039 with_database_dbm=no
|
|
3040 fi
|
|
3041
|
|
3042 if test "${with_database_dbm}" != "no" ; then
|
|
3043 AC_HAVE_LIBRARY(-ldbm, have_libdbm=yes, have_libdbm=no)
|
|
3044 IF_YES_AC_DEFINE(have_libdbm, HAVE_LIBDBM)
|
|
3045 if test "${with_database_dbm}" != "yes" ; then
|
|
3046 if test "${have_libdbm}" = "yes" ; then
|
|
3047 with_database_dbm=yes
|
0
|
3048 else
|
70
|
3049 AC_FUNC_CHECK(dbm_open, with_database_dbm=yes, with_database_dbm=no)
|
0
|
3050 fi
|
|
3051 fi
|
|
3052 fi
|
70
|
3053 IF_YES_AC_DEFINE(with_database_dbm, HAVE_DBM)
|
0
|
3054
|
|
3055
|
|
3056 ############################################################################
|
|
3057 # #
|
|
3058 # Substitute into Makefile and config.h #
|
|
3059 # #
|
|
3060 ############################################################################
|
|
3061
|
70
|
3062 dnl what sort of things we'll be editing into Makefile and config.h.
|
|
3063 dnl configuration here uncanonicalized to avoid exceeding size limits.
|
|
3064
|
0
|
3065 AC_SUBST(version)
|
|
3066 AC_SUBST(configuration)
|
|
3067 AC_SUBST(canonical)
|
|
3068 AC_SUBST(srcdir)
|
|
3069 AC_SUBST(prefix)
|
|
3070 AC_SUBST(exec_prefix)
|
|
3071 AC_SUBST(bindir)
|
|
3072 AC_SUBST(datadir)
|
|
3073 AC_SUBST(statedir)
|
|
3074 AC_SUBST(libdir)
|
|
3075 AC_SUBST(mandir)
|
|
3076 AC_SUBST(infodir)
|
|
3077 AC_SUBST(infodir_user_defined)
|
|
3078 AC_SUBST(lispdir)
|
|
3079 AC_SUBST(lispdir_user_defined)
|
|
3080 AC_SUBST(sitelispdir)
|
|
3081 AC_SUBST(etcdir)
|
|
3082 AC_SUBST(etcdir_user_defined)
|
|
3083 AC_SUBST(lockdir)
|
|
3084 AC_SUBST(lockdir_user_defined)
|
|
3085 AC_SUBST(archlibdir)
|
|
3086 AC_SUBST(archlibdir_user_defined)
|
|
3087 AC_SUBST(docdir)
|
|
3088 AC_SUBST(bitmapdir)
|
|
3089 AC_SUBST(c_switch_system)
|
|
3090 AC_SUBST(c_switch_machine)
|
|
3091 AC_SUBST(libsrc_libs)
|
|
3092 AC_SUBST(LD_SWITCH_X_SITE)
|
|
3093 AC_SUBST(LD_SWITCH_X_SITE_AUX)
|
|
3094 AC_SUBST(C_SWITCH_X_SITE)
|
|
3095 AC_SUBST(LD_SWITCH_SITE)
|
|
3096 AC_SUBST(C_SWITCH_SITE)
|
|
3097 AC_SUBST(CFLAGS)
|
|
3098 AC_SUBST(native_sound_lib)
|
|
3099 AC_SUBST(machfile)
|
|
3100 AC_SUBST(opsysfile)
|
|
3101 AC_SUBST(RANLIB)
|
|
3102 AC_SUBST(dynodump_arch)
|
|
3103
|
70
|
3104 AC_DEFINE_UNQUOTED(EMACS_VERSION, "${version}")
|
0
|
3105 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "\"${canonical}\"")
|
|
3106 AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
|
|
3107 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
|
|
3108 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
|
|
3109 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX})
|
|
3110 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE})
|
|
3111 AC_DEFINE_UNQUOTED(LD_SWITCH_SITE, ${LD_SWITCH_SITE})
|
|
3112 AC_DEFINE_UNQUOTED(C_SWITCH_SITE, ${C_SWITCH_SITE})
|
|
3113 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC})
|
|
3114
|
70
|
3115 dnl Note: as a general rule, *only* define things here that are not
|
|
3116 dnl autodetected. For things that are autodetected, define them
|
|
3117 dnl at the point where the autodetection occurs or would occur,
|
|
3118 dnl so that the user gets immediate feedback on the results of the
|
|
3119 dnl autodetection.
|
|
3120
|
104
|
3121 test -n "${puresize}" && AC_DEFINE_UNQUOTED(RAW_PURESIZE, ${puresize})
|
70
|
3122 IF_YES_AC_DEFINE(HAVE_X_WINDOWS,HAVE_X_WINDOWS)
|
|
3123 IF_YES_AC_DEFINE(HAVE_XFREE386, HAVE_XFREE386)
|
|
3124
|
|
3125 if test "${GNU_MALLOC}" = yes; then AC_DEFINE(GNU_MALLOC)
|
|
3126 elif test "${use_system_malloc}" = yes; then AC_DEFINE(USE_SYSTEM_MALLOC)
|
0
|
3127 fi
|
70
|
3128 IF_YES_AC_DEFINE(rel_alloc, REL_ALLOC)
|
|
3129 IF_YES_AC_DEFINE(LISP_FLOAT_TYPE, LISP_FLOAT_TYPE)
|
|
3130 IF_YES_AC_DEFINE(with_motif, LWLIB_USES_MOTIF)
|
82
|
3131 IF_YES_AC_DEFINE(with_athena, LWLIB_USES_ATHENA)
|
70
|
3132 IF_YES_AC_DEFINE(with_toolbars, HAVE_TOOLBARS)
|
|
3133 IF_YES_AC_DEFINE(with_tty, HAVE_TTY)
|
|
3134 IF_YES_AC_DEFINE(with_tooltalk, TOOLTALK)
|
|
3135 IF_YES_AC_DEFINE(with_i18n3, I18N3)
|
|
3136 IF_YES_AC_DEFINE(with_mule, MULE)
|
|
3137 IF_YES_AC_DEFINE(with_canna, HAVE_CANNA)
|
|
3138 IF_YES_AC_DEFINE(with_wnn, HAVE_WNN)
|
98
|
3139 IF_YES_AC_DEFINE(with_wnn6, WNN6)
|
70
|
3140 IF_YES_AC_DEFINE(with_mock, MOCKLISP_SUPPORT)
|
|
3141 IF_YES_AC_DEFINE(with_sparcworks,SUNPRO)
|
|
3142 IF_YES_AC_DEFINE(usage_tracking, USAGE_TRACKING)
|
|
3143 IF_YES_AC_DEFINE(need_dynodump, DYNODUMP)
|
|
3144 IF_YES_AC_DEFINE(need_xildoff, NEED_XILDOFF)
|
|
3145 IF_YES_AC_DEFINE(with_gcc, USE_GCC)
|
|
3146 IF_YES_AC_DEFINE(with_lcc, USE_LCC)
|
|
3147 IF_YES_AC_DEFINE(with_socks, HAVE_SOCKS)
|
|
3148 IF_YES_AC_DEFINE(with_term, HAVE_TERM)
|
|
3149 IF_YES_AC_DEFINE(with_epoch, EPOCH)
|
|
3150 IF_YES_AC_DEFINE(external_widget,EXTERNAL_WIDGET)
|
|
3151 IF_YES_AC_DEFINE(with_gnu_make, USE_GNU_MAKE)
|
|
3152 IF_YES_AC_DEFINE(no_doc_file, NO_DOC_FILE)
|
|
3153 IF_YES_AC_DEFINE(const_is_losing,CONST_IS_LOSING)
|
|
3154 IF_YES_AC_DEFINE(use_assertions, USE_ASSERTIONS)
|
|
3155 IF_YES_AC_DEFINE(debug, DEBUG_XEMACS)
|
|
3156 IF_YES_AC_DEFINE(quantify, QUANTIFY)
|
|
3157 IF_YES_AC_DEFINE(memory_usage_stats, MEMORY_USAGE_STATS)
|
|
3158
|
|
3159 IF_YES_AC_DEFINE(error_check_extents, ERROR_CHECK_EXTENTS)
|
|
3160 IF_YES_AC_DEFINE(error_check_typecheck, ERROR_CHECK_TYPECHECK)
|
|
3161 IF_YES_AC_DEFINE(error_check_bufpos, ERROR_CHECK_BUFPOS)
|
|
3162 IF_YES_AC_DEFINE(error_check_gc, ERROR_CHECK_GC)
|
|
3163 IF_YES_AC_DEFINE(error_check_malloc, ERROR_CHECK_MALLOC)
|
|
3164
|
|
3165 if test "${with_energize}" = yes; then
|
|
3166 AC_DEFINE(ENERGIZE)
|
|
3167 test "${energize_version}" = "2.X" && AC_DEFINE(ENERGIZE_2)
|
|
3168 test "${energize_version}" = "3.X" && AC_DEFINE(ENERGIZE_3)
|
0
|
3169 fi
|
|
3170
|
70
|
3171 test "${with_sound}" = "native" -o "${with_sound}" = "both" && AC_DEFINE(HAVE_NATIVE_SOUND)
|
|
3172 test "${with_sound}" = "nas" -o "${with_sound}" = "both" && AC_DEFINE(HAVE_NAS_SOUND)
|
|
3173 test "${old_nas}" = "true" && AC_DEFINE(NAS_NO_ERROR_JUMP)
|
|
3174
|
|
3175 test "${use_union_type}" != yes && AC_DEFINE(NO_UNION_TYPE)
|
|
3176
|
|
3177 dnl ############################################################################
|
|
3178 dnl # Report on what we decided to do #
|
|
3179 dnl ############################################################################
|
0
|
3180
|
|
3181 echo "
|
|
3182
|
|
3183 Configured for \`${canonical}'.
|
|
3184
|
|
3185 Where should the build process find the source code? ${srcdir}
|
|
3186 What installation prefix should install use? ${prefix}
|
|
3187 What operating system and machine description files should XEmacs use?
|
|
3188 \`${opsysfile}' and \`${machfile}'
|
|
3189 What compiler should XEmacs be built with? ${CC} ${CFLAGS}
|
|
3190 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
|
|
3191 Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
|
|
3192 What window system should XEmacs use? ${window_system}${x_includes+
|
|
3193 Where do we find X Windows header files? }${x_includes}${x_libraries+
|
112
|
3194 Where do we find X Windows libraries? }${x_libraries}" >> Installation
|
0
|
3195
|
70
|
3196 if test -n "$site_includes"; then
|
112
|
3197 echo " Additional header files: ${site_includes}" >> Installation
|
0
|
3198 fi
|
|
3199
|
70
|
3200 if test -n "$site_libraries" -a -n "$site_runtime_libraries"; then
|
112
|
3201 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}" >> Installation
|
70
|
3202 elif test -n "$site_libraries"; then
|
112
|
3203 echo " Additional libraries: ${site_libraries}" >> Installation
|
70
|
3204 elif test -n "$site_runtime_libraries"; then
|
112
|
3205 echo " Additional libraries: ${site_runtime_libraries}" >> Installation
|
0
|
3206 fi
|
100
|
3207 if test "$with_wnn"; then
|
112
|
3208 echo " Finding WNN includes with: ${wnn_includes}" >> Installation
|
|
3209 echo " Loading WNN libs with: ${wnn_libraries}" >> Installation
|
100
|
3210 fi
|
112
|
3211 test "$with_socks" = yes && echo " Compiling in support for SOCKS." >> Installation
|
|
3212 test "$with_term" = yes && echo " Compiling in support for TERM." >> Installation
|
|
3213 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." >> Installation
|
|
3214 test "$with_xpm" = yes && echo " Compiling in support for XPM." >> Installation
|
70
|
3215 if test "$with_xmu" != yes -a "$window_system" != none; then
|
112
|
3216 echo " No Xmu; substituting equivalent routines." >> Installation
|
0
|
3217 fi
|
112
|
3218 test "$with_xface" = yes && echo " Compiling in support for X-Face headers." >> Installation
|
|
3219 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion." >> Installation
|
|
3220 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion." >> Installation
|
70
|
3221 if test "$with_png" = yes -o "$with_png" = gnuz; then
|
112
|
3222 echo " Compiling in support for PNG image conversion." >> Installation
|
0
|
3223 fi
|
70
|
3224 if test "$with_png" = gnuz; then
|
112
|
3225 echo " (Using -lgz instead of -lz.)" >> Installation
|
0
|
3226 fi
|
112
|
3227 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)." >> Installation
|
|
3228 test "$with_epoch" = yes && echo " Compiling in extra Epoch compatibility." >> Installation
|
|
3229
|
|
3230 test "$with_sound" = nas && echo " Compiling in network sound support." >> Installation
|
|
3231 test "$with_sound" = native && echo " Compiling in native sound support." >> Installation
|
|
3232 test "$with_sound" = both && echo " Compiling in both network and native sound support." >> Installation
|
|
3233 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously" >> Installation
|
|
3234
|
|
3235 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." >> Installation
|
|
3236 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." >> Installation
|
|
3237 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM." >> Installation
|
|
3238
|
|
3239 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." >> Installation
|
|
3240 test "$with_socks" = yes && echo " Compiling in support for SOCKS." >> Installation
|
|
3241
|
|
3242 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." >> Installation
|
|
3243 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support." >> Installation
|
|
3244 test "$with_xim" = motif && echo " Using Motif to provide XIM support." >> Installation
|
|
3245 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." >> Installation
|
|
3246 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." >> Installation
|
|
3247 test "$with_wnn" = yes && echo " Compiling in support for WNN on Mule." >> Installation
|
|
3248 test "$with_wnn6" = yes && echo " WNN support for version 6." >> Installation
|
|
3249 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)." >> Installation
|
|
3250
|
|
3251 test "$with_cde" = yes && echo " Compiling in support for CDE." >> Installation
|
|
3252 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." >> Installation
|
|
3253 test "$with_offix" = yes && echo " Compiling in support for OffiX." >> Installation
|
|
3254 test "$with_mocklisp" = yes && echo " Compiling in support for Mocklisp." >> Installation
|
|
3255 test "$with_sparcworks" = yes && echo " Compiling in support for SparcWorks." >> Installation
|
|
3256 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)." >> Installation
|
|
3257 test "$with_menubars" = "lucid" && echo " Using the Lucid menubar." >> Installation
|
70
|
3258 if test "$with_menubars" = "motif"; then
|
112
|
3259 echo " Using the Motif menubar." >> Installation
|
|
3260 echo " *WARNING* The Motif menubar is currently buggy. We recommend" >> Installation
|
|
3261 echo " that you use the Lucid menubar instead. Re-run" >> Installation
|
|
3262 echo " configure with --with-menubars='lucid'." >> Installation
|
0
|
3263 fi
|
112
|
3264 test "$with_scrollbars" = lucid && echo " Using the Lucid scrollbar." >> Installation
|
|
3265 test "$with_scrollbars" = motif && echo " Using the Motif scrollbar." >> Installation
|
|
3266 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar." >> Installation
|
|
3267 test "$with_scrollbars" = athena3d && echo " Using the Athena-3d scrollbar." >> Installation
|
|
3268 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes." >> Installation
|
|
3269 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes." >> Installation
|
|
3270 test "$with_dialogs" = athena3d && echo " Using the Athena-3d dialog boxes." >> Installation
|
|
3271
|
|
3272 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects." >> Installation
|
|
3273 test "${debug}" = yes && echo " Compiling in extra code for debugging." >> Installation
|
|
3274 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage." >> Installation
|
|
3275 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." >> Installation
|
|
3276 echo " >> Installation
|
0
|
3277 "
|
|
3278
|
112
|
3279 test -r Installation && cat Installation
|
70
|
3280 dnl ############################################################################
|
|
3281 dnl # Now generate! #
|
|
3282 dnl ############################################################################
|
|
3283
|
|
3284 dnl This has to be called in order for this variable to get into config.status
|
|
3285 AC_SUBST(internal_makefile_list) [
|
0
|
3286 # Remove any trailing slashes in these variables.
|
|
3287 test -n "${prefix}" &&
|
|
3288 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
3289 test -n "${exec_prefix}" &&
|
|
3290 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
3291 ]
|
|
3292 AC_OUTPUT($internal_makefile_list) [
|
|
3293 # Build:
|
|
3294 # src/Makefile from ${srcdir}/src/Makefile.in
|
|
3295 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in
|
|
3296 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in
|
|
3297 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in
|
|
3298 # and possibly
|
|
3299 # lwlib/energize/Makefile from ${srcdir}/lwlib/energize/Makefile.in.
|
|
3300 # This must be done after src/config.h is built, since we rely on that
|
|
3301 # file. Only do the build if "config.status" is present, since its
|
|
3302 # non-presence indicates an error occured.
|
|
3303 status=$?
|
70
|
3304 if test ! -f ./config.status ; then
|
0
|
3305 exit $status
|
|
3306 fi
|
|
3307 topsrcdir=${srcdir}
|
|
3308 # We discard all lines in Makefile.in that start with `# Generated' or /**/#
|
|
3309 # because some cpps get confused by them.
|
|
3310 # Really we should preserve them somehow into Makefile,
|
|
3311 # but that is beyond my level of shell programming.
|
|
3312 makefile_command='echo "creating src/Makefile";
|
|
3313 topsrcdir='"${topsrcdir}"';
|
|
3314 ( cd ./src;
|
|
3315 rm -f junk.c;
|
|
3316 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
3317 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
3318 < junk.cpp '\
|
|
3319 ' sed -e '\''s/^#.*//'\'' '\
|
|
3320 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
3321 ' -e '\''s/^ / /'\'' '\
|
|
3322 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
3323 ' > Makefile.new;
|
|
3324 chmod 444 Makefile.new;
|
|
3325 mv -f Makefile.new Makefile;
|
|
3326 rm -f junk.c junk.cpp;
|
|
3327 )'
|
|
3328 eval `echo $makefile_command`
|
|
3329 lwlib_makefile_command='echo "creating lwlib/Makefile";
|
|
3330 topsrcdir='"${topsrcdir}"';
|
|
3331 ( cd ./lwlib;
|
|
3332 rm -f junk.c;
|
|
3333 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
3334 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
3335 < junk.cpp '\
|
|
3336 ' sed -e '\''s/^#.*//'\'' '\
|
|
3337 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
3338 ' -e '\''s/^ / /'\'' '\
|
|
3339 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
3340 ' > Makefile.new;
|
|
3341 chmod 444 Makefile.new;
|
|
3342 mv -f Makefile.new Makefile;
|
|
3343 rm -f junk.c junk.cpp;
|
|
3344 )'
|
|
3345 eval `echo $lwlib_makefile_command`
|
|
3346 lib_src_makefile_command='echo "creating lib-src/Makefile";
|
|
3347 topsrcdir='"${topsrcdir}"';
|
|
3348 ( cd ./lib-src;
|
|
3349 rm -f junk.c;
|
|
3350 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
3351 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
3352 < junk.cpp '\
|
|
3353 ' sed -e '\''s/^#.*//'\'' '\
|
|
3354 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
3355 ' -e '\''s/^ / /'\'' '\
|
|
3356 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
3357 ' > Makefile.new;
|
|
3358 chmod 444 Makefile.new;
|
|
3359 mv -f Makefile.new Makefile;
|
|
3360 rm -f junk.c junk.cpp;
|
|
3361 )'
|
|
3362 eval `echo $lib_src_makefile_command`
|
70
|
3363
|
|
3364 # Mule utilitity programs - currently disabled
|
|
3365 if test "${with_mule_util}" = "yes"; then
|
|
3366 lib_src_mule_makefile_command='echo "creating lib-src/mule/Makefile";
|
|
3367 topsrcdir='"${topsrcdir}"';
|
|
3368 ( cd ./lib-src/mule;
|
|
3369 rm -f junk.c;
|
|
3370 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
|
3371 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
|
3372 < junk.cpp '\
|
|
3373 ' sed -e '\''s/^#.*//'\'' '\
|
|
3374 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
3375 ' -e '\''s/^ / /'\'' '\
|
|
3376 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
3377 ' > Makefile.new;
|
|
3378 chmod 444 Makefile.new;
|
|
3379 mv -f Makefile.new Makefile;
|
|
3380 rm -f junk.c junk.cpp;
|
|
3381 )'
|
|
3382 eval `echo $lib_src_mule_makefile_command`
|
|
3383 fi # Mule
|
|
3384
|
0
|
3385 dynodump_makefile_command='echo "creating dynodump/Makefile";
|
|
3386 topsrcdir='"${topsrcdir}"';
|
|
3387 ( cd ./dynodump;
|
|
3388 rm -f junk.c;
|
|
3389 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
3390 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
3391 < junk.cpp '\
|
|
3392 ' sed -e '\''s/^#.*//'\'' '\
|
|
3393 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
3394 ' -e '\''s/^ / /'\'' '\
|
|
3395 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
3396 ' > Makefile.new;
|
|
3397 chmod 444 Makefile.new;
|
|
3398 mv -f Makefile.new Makefile;
|
|
3399 rm -f junk.c junk.cpp;
|
|
3400 )'
|
|
3401 eval `echo $dynodump_makefile_command`
|
70
|
3402 if test "${with_energize}" = "yes" ; then
|
0
|
3403 energize_makefile_command='echo "creating lwlib/energize/Makefile";
|
|
3404 topsrcdir='"${topsrcdir}"';
|
|
3405 ( cd ./lwlib/energize;
|
|
3406 rm -f junk.c;
|
|
3407 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
3408 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
3409 < junk.cpp '\
|
|
3410 ' sed -e '\''s/^#.*//'\'' '\
|
|
3411 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
3412 ' -e '\''s/^ / /'\'' '\
|
|
3413 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
3414 ' > Makefile.new;
|
|
3415 chmod 444 Makefile.new;
|
|
3416 mv -f Makefile.new Makefile;
|
|
3417 rm -f junk.c junk.cpp;
|
|
3418 )'
|
|
3419 eval `echo $energize_makefile_command`
|
|
3420 fi
|
|
3421 # AC-OUTPUT has created `config.status' already. We need to add the
|
|
3422 # above commands to re-create `src/Makefile', `lwlib/Makefile',
|
8
|
3423 # `lib-src/Makefile', `dynodump/Makefile', and possibly
|
0
|
3424 # `lwlib/energize/Makefile', and we need to insert them before the final
|
|
3425 # "exit 0" which appears at the end of `config.status'.
|
|
3426 <config.status sed -e 's/^exit 0$//' >config.new
|
|
3427 echo $makefile_command >>config.new
|
|
3428 echo $lwlib_makefile_command >>config.new
|
|
3429 echo $lib_src_makefile_command >>config.new
|
70
|
3430 if test "${with_mule_util}" = "yes"; then
|
|
3431 echo $lib_src_mule_makefile_command >>config.new
|
|
3432 fi
|
0
|
3433 echo $dynodump_makefile_command >>config.new
|
|
3434 echo $man_makefile_command >>config.new
|
70
|
3435 if test "${with_energize}" = "yes" ; then
|
0
|
3436 echo $energize_makefile_command >>config.new
|
|
3437 fi
|
|
3438 echo exit 0 >>config.new
|
|
3439 mv -f config.new config.status
|
|
3440 chmod +x config.status
|
|
3441 # Don't let the fact that we just rewrote config.status make Makefile think
|
|
3442 # that it is now newer. We have just rewritten all of the Makefiles as well.
|
70
|
3443 MFS="Makefile \
|
|
3444 src/Makefile src/Makefile.in \
|
|
3445 lib-src/Makefile lib-src/Makefile.in \
|
|
3446 dynodump/Makefile dynodump/Makefile.in \
|
|
3447 lwlib/Makefile lwlib/Makefile.in"
|
|
3448 chmod a+w $MFS
|
|
3449 touch $MFS
|
|
3450 chmod 444 $MFS
|
0
|
3451
|
|
3452 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then
|
|
3453 echo creating src/gdbinit
|
|
3454 echo source $topsrcdir/src/gdbinit > src/gdbinit
|
|
3455 fi
|
|
3456
|
|
3457 exit 0
|
|
3458 ]
|