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