0
|
1 #!/bin/sh
|
|
2 #### Configuration script for XEmacs.
|
|
3 #### Copyright (C) 1994 Free Software Foundation, Inc.
|
|
4 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
|
|
5 #### Copyright (C) 1995, 1996 Ben Wing.
|
|
6
|
|
7 ### Don't edit this script!
|
|
8 ### This script was automatically generated by the `autoconf' program
|
|
9 ### from the file `./configure.in'.
|
|
10 ### To rebuild it, execute the command
|
|
11 ### autoconf
|
|
12 ### in the this directory. You must have autoconf version 1.9 or later.
|
|
13
|
|
14 ### This file is part of XEmacs.
|
|
15
|
|
16 ### XEmacs is free software; you can redistribute it and/or modify it
|
|
17 ### under the terms of the GNU General Public License as published by
|
|
18 ### the Free Software Foundation; either version 2, or (at your
|
|
19 ### option) any later version.
|
|
20
|
|
21 ### XEmacs is distributed in the hope that it will be useful, but
|
|
22 ### WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
23 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
24 ### General Public License for more details.
|
|
25
|
|
26 ### You should have received a copy of the GNU General Public License
|
|
27 ### along with XEmacs; see the file COPYING. If not, write to the Free
|
|
28 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
29 ### 02111-1307, USA.
|
|
30
|
|
31 ### Since XEmacs has configuration requirements that autoconf can't
|
|
32 ### meet, this file is an unholy marriage of custom-baked
|
|
33 ### configuration code and autoconf macros.
|
|
34 ###
|
|
35 ### We use the m4 quoting characters [ ] (as established by the
|
|
36 ### autoconf system) to include large sections of raw sewage - Oops, I
|
|
37 ### mean, shell code - in the final configuration script.
|
|
38 ###
|
|
39 ### Usage: configure config_name
|
|
40 ###
|
|
41 ### If configure succeeds, it leaves its status in config.status.
|
|
42 ### If configure fails after disturbing the status quo,
|
|
43 ### config.status is removed.
|
|
44
|
|
45 ### Remove any more than one leading "." element from the path name.
|
|
46 ### If we don't remove them, then another "./" will be prepended to
|
|
47 ### the file name each time we use config.status, and the program name
|
|
48 ### will get larger and larger. This wouldn't be a problem, except
|
|
49 ### that since progname gets recorded in all the Makefiles this script
|
|
50 ### produces, move-if-change thinks they're different when they're
|
|
51 ### not.
|
|
52 ###
|
|
53 ### It would be nice if we could put the ./ in a \( \) group and then
|
|
54 ### apply the * operator to that, so we remove as many leading ./././'s
|
|
55 ### as are present, but some seds (like Ultrix's sed) don't allow you to
|
|
56 ### apply * to a \( \) group. Bleah.
|
|
57 progname="`echo $0 | sed 's:^\./\./:\./:'`"
|
|
58
|
|
59 ############################################################################
|
|
60 # #
|
|
61 # Establish some default values #
|
|
62 # #
|
|
63 ############################################################################
|
|
64
|
70
|
65 #run_in_place='no'
|
0
|
66 prefix='/usr/local'
|
|
67 exec_prefix='${prefix}'
|
|
68 bindir='${exec_prefix}/bin'
|
|
69 # FSF 19.29 changes to:
|
|
70 # datadir='${prefix}/share'
|
|
71 # sharedstatedir='${prefix}/com'
|
|
72 # libexecdir='${exec_prefix}/libexec'
|
|
73 datadir='${prefix}/lib'
|
|
74 statedir='${prefix}/lib'
|
|
75 libdir='${exec_prefix}/lib'
|
|
76 mandir='${prefix}/man/man1'
|
|
77 infodir='${prefix}/lib/xemacs-${version}/info'
|
|
78 infodir_user_defined='no'
|
|
79 lispdir='${datadir}/xemacs-${version}/lisp'
|
|
80 lispdir_user_defined='no'
|
|
81 sitelispdir='${datadir}/xemacs/site-lisp'
|
|
82 etcdir='${datadir}/xemacs-${version}/etc'
|
|
83 etcdir_user_defined='no'
|
|
84 lockdir='${statedir}/xemacs/lock'
|
|
85 lockdir_user_defined='no'
|
|
86 archlibdir='${libdir}/xemacs-${version}/${configuration}'
|
|
87 archlibdir_user_defined='no'
|
|
88 with_menubars=''
|
|
89 with_scrollbars=''
|
|
90 with_dialogs=''
|
|
91 const_is_losing='yes'
|
|
92 puresize=''
|
|
93 cflags='NO_CFLAGS_DEFINED'
|
|
94 dynamic=''
|
|
95 with_x11=''
|
|
96 rel_alloc='default'
|
|
97 use_system_malloc='default'
|
8
|
98 internal_makefile_list='Makefile lib-src/Makefile.in src/Makefile.in lwlib/Makefile.in dynodump/Makefile.in'
|
0
|
99 energize_version='no'
|
|
100 native_sound_lib=''
|
|
101 # make normal error-checking be the default in alpha and beta versions, so
|
|
102 # that bugs get noticed. Change this for released versions.
|
88
|
103 error_check_default='no'
|
0
|
104 error_check_extents=$error_check_default
|
|
105 error_check_typecheck=$error_check_default
|
|
106 error_check_bufpos=$error_check_default
|
|
107 error_check_gc=$error_check_default
|
|
108 error_check_malloc=$error_check_default
|
|
109 # debug=yes must be set when error checking is present. This should be
|
|
110 # fixed up.
|
|
111 debug=$error_check_default
|
|
112 quantify='no'
|
|
113 # use-assertions should be 'yes' by default. Too many people in this
|
|
114 # world have core dumps turned off by default or "can't find where the
|
|
115 # core file went". At least we should get some useful output ...
|
|
116 use_assertions='yes'
|
|
117 # the following is set to yes or no later.
|
|
118 with_gif=''
|
|
119 # the following is set to yes or no later.
|
|
120 with_toolbars=''
|
|
121 with_tty='yes'
|
|
122 use_union_type='no'
|
|
123
|
|
124 # # gnu echo silently eats `--help', `--version', `-n', `-e', `-E', `-n'.
|
|
125 # # other versions of echo eat any strings beginning with `-n'.
|
|
126 # # when parsing arguments, special case these strings and don't
|
|
127 # # pass them through echo
|
|
128 # echo=/bin/echo
|
|
129 #
|
|
130 # this approach abandoned in favor of
|
|
131 #
|
|
132 # echo "" ${stuff_to_filter} | sed -e 's:^ ::'
|
|
133
|
|
134 # On Sun systems, people sometimes set up the variable CPP
|
|
135 # with a value that is a directory, not an executable at all.
|
|
136 # Detect that case, and ignore that value.
|
70
|
137 test -n "$CPP" -a -d "$CPP" && CPP=
|
0
|
138
|
|
139 ############################################################################
|
|
140 # #
|
|
141 # Usage messages #
|
|
142 # #
|
|
143 ############################################################################
|
|
144
|
|
145 short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
|
|
146
|
|
147 Set compilation and installation parameters for XEmacs, and report.
|
|
148 CONFIGURATION specifies the machine and operating system to build for.
|
|
149
|
|
150 Note that for most of the following options, you can explicitly enable
|
|
151 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'.
|
|
152 This is especially useful for auto-detected options.
|
|
153
|
|
154 Options marked with a (*) are autodetected.
|
|
155
|
|
156
|
|
157 General options:
|
|
158
|
|
159 --help Issue this usage message.
|
|
160 --verbose Display the results of configure tests.
|
|
161 --extra-verbose Also display the output of any compiler invocation.
|
|
162 (Useful when feature tests are coming out wrong.)
|
|
163
|
|
164
|
|
165 Compiler options:
|
|
166
|
|
167 --compiler=XXXX Specify compiler.
|
|
168 --with-gcc (*) Use GCC to compile XEmacs.
|
|
169 --with-lcc Use Lucid's LCC to compile XEmacs.
|
|
170 --with-gcc=no Don't use GCC to compile XEmacs.
|
|
171 --with-gnu-make Write the Makefiles to take advantage of
|
|
172 special features of GNU Make. (GNU Make
|
|
173 works fine on the Makefiles even without this
|
|
174 option. This just allows for simultaneous
|
|
175 in-place and --srcdir building.)
|
|
176 --cflags=FLAGS Override the default values for CFLAGS.
|
|
177 --site-includes=DIR Other header file directories. Separate multiple
|
|
178 dirs with spaces and use quotes to enclose.
|
|
179 --site-libraries=DIR Other library directories.
|
|
180 --site-runtime-libraries=DIR
|
|
181 Paths to add with -R flag.
|
|
182 --dynamic=yes Link dynamically if supported by system.
|
|
183 --dynamic=no Force static linking on systems where dynamic
|
|
184 linking is the default.
|
|
185 --srcdir=DIR Look for the XEmacs source files in DIR.
|
|
186 See also --with-gnu-make.
|
|
187 --const-is-losing=no Allow the use of const in the source code.
|
|
188
|
|
189
|
|
190 Installation options:
|
|
191
|
|
192 --prefix=DIR Install files below DIR. Defaults to \`${prefix}'.
|
|
193
|
|
194
|
|
195 Window-system options:
|
|
196
|
|
197 --with-x (*) Support the X Window System.
|
|
198 --with-x=no Don't support X.
|
|
199 --x-includes=DIR Search for X header files in DIR.
|
|
200 --x-libraries=DIR Search for X libraries in DIR.
|
70
|
201 --with-ns Support NeXTstep windows (not yet implemented).
|
0
|
202 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid
|
|
203 widgets emulate Motif (mostly) but are faster.
|
|
204 *WARNING* The Motif menubar is currently broken.
|
82
|
205 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena,
|
|
206 athena3d, or no).
|
|
207 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, athena3d, or no).
|
0
|
208 (Lucid menubars and scrollbars are the default.
|
|
209 Motif dialog boxes will be used if Motif can be
|
|
210 found.)
|
|
211 --with-cde (*) Compile in support for CDE drag and drop.
|
2
|
212 --with-offix (*) Compile in support for OffiX drag and drop.
|
0
|
213 --with-xpm (*) Compile with support for XPM files.
|
|
214 It is highly recommended that you obtain XPM
|
|
215 (version 3.4g or better) if you don't already
|
|
216 have it. Get it from the XEmacs FTP site.
|
|
217 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu.
|
|
218
|
|
219
|
|
220 Additional features:
|
|
221
|
|
222 --with-toolbars=no Don't compile with any toolbar support.
|
|
223 --with-tooltalk Support the ToolTalk IPC protocol.
|
|
224 --with-sparcworks Support the Sun Sparcworks development environment.
|
|
225 --with-energize Support the Lucid Energize development environment.
|
|
226 This doesn't currently work.
|
|
227 --with-socks Compile with support for SOCKS (an Internet proxy).
|
|
228 --with-term Compile with support for TERM (a way to multiplex
|
|
229 serial lines and provide vaguely Internet-like
|
|
230 functionality over a simple dialup connection,
|
|
231 used on Linux and other systems. NOTE: We can't
|
|
232 guarantee that our TERM support coexists well
|
|
233 with standard Internet connections).
|
|
234 --with-xface (*) Compile with support for X-Face mail header
|
|
235 conversion. Requires the compface library.
|
|
236 Get it from the XEmacs FTP site.
|
|
237 --with-gif Compile with support for GIF image conversion.
|
|
238 This requires no special support and defaults to
|
|
239 \`yes'.
|
|
240 --with-jpeg (*) Compile with support for JPEG image conversion.
|
|
241 Requires libjpeg from the Independent JPEG Group.
|
|
242 Get it from the XEmacs FTP site.
|
|
243 --with-png (*) Compile with support for PNG image conversion.
|
|
244 Requires libpng. Get it from the XEmacs FTP site.
|
|
245 Accepted values are \`yes', \`no', and \`gnuz'
|
|
246 if you want to use -lgz instead of -lz.
|
|
247 --with-tiff Compile with support for TIFF image conversion
|
|
248 (not yet implemented).
|
|
249 --with-database=type (*) Compile with database support. Valid types are
|
|
250 \`no' or a comma-separated list of one or more
|
|
251 of \`dbm', \`gnudbm', or \`berkdb'.
|
|
252 --external-widget Compile with external widget support.
|
|
253 --with-sound=native (*) Compile with native sound support.
|
|
254 --with-sound=nas Compile with network sound support.
|
|
255 --with-sound=both Compile with native and network sound support.
|
|
256 --native-sound-lib=LIB Native sound support library. Needed on Suns
|
|
257 with --with-sound=both because both sound libraries
|
|
258 are called libaudio.
|
|
259 --with-epoch Compile with additional Epoch compatibility.
|
|
260 --with-mocklisp Compile with Mocklisp support. Don't do this
|
|
261 unless you have a Mocklisp program that you need
|
|
262 to run.
|
|
263 --usage-tracking Enable some Sun-internal code. If you don't
|
|
264 know what this is, you don't want it.
|
|
265
|
70
|
266 Internationalization options:
|
|
267
|
|
268 --with-mule Compile with Mule (MUlti-Lingual Emacs) support,
|
|
269 needed to suport non-Latin-1 (including Asian) languages.
|
|
270 --with-xim=xlib Compile with support for X input methods,
|
|
271 --with-xim=motif (*) Used in conjunction with Mule support.
|
|
272 Use either raw Xlib to provide XIM support, or
|
|
273 the Motif XmIm* routines (when available).
|
|
274 If the XmIm* routines are autodetected,
|
|
275 then the default is --with-xim=motif, else --with-xim=no.
|
|
276 --with-canna Compile with support for Canna (an input method
|
|
277 used in conjunction with Mule support).
|
|
278 --with-wnn Compile with support for WNN (an input method
|
|
279 used in conjunction with Mule support).
|
|
280 This doesn't work yet.
|
|
281 --with-i18n3 Compile with I18N level 3 (support for message
|
|
282 translation). This doesn't currently work.
|
|
283
|
0
|
284
|
|
285 Debugging options:
|
|
286
|
|
287 --debug Compile with support for debugging XEmacs.
|
70
|
288 (Causes code-size increase but no loss of speed.)
|
0
|
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
|
70
|
320 we advise not changing them.
|
0
|
321
|
|
322 If successful, ${progname} leaves its status in config.status. If
|
|
323 unsuccessful after disturbing the status quo, it removes config.status."
|
|
324
|
|
325 ############################################################################
|
|
326 # #
|
|
327 # Options processing #
|
|
328 # #
|
|
329 ############################################################################
|
|
330
|
|
331 ### Record all the arguments, so we can save them in config.status.
|
|
332 arguments="$@"
|
|
333
|
|
334 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date,
|
|
335 ### in order to get the arguments back in $@, we have to do an
|
|
336 ### `eval set x "$quoted_arguments"; shift'.
|
|
337 quoted_arguments=
|
|
338 for i in "$@"; do
|
|
339 quoted_arguments="$quoted_arguments '$i'"
|
|
340 done
|
|
341
|
|
342 ### Don't use shift -- that destroys the argument list, which autoconf needs
|
|
343 ### to produce config.status. It turns out that "set - ${arguments}" doesn't
|
|
344 ### work portably.
|
|
345 ### However, it also turns out that many shells cannot expand ${10} at all.
|
|
346 ### So using an index variable doesn't work either. It is possible to use
|
|
347 ### some shell magic to make 'set x "$arguments"; shift' work portably.
|
70
|
348 while test $# != 0; do
|
0
|
349 arg="$1"; shift
|
|
350 case "${arg}" in
|
|
351
|
|
352 ## Anything starting with a hyphen we assume is an option.
|
|
353 -* )
|
|
354 ## Separate the switch name from the value it's being given.
|
|
355 case "${arg}" in
|
|
356 -*=*)
|
|
357 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
|
|
358 val=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
|
|
359 valomitted=no
|
|
360 ;;
|
|
361 # ## special case these strings since echo may
|
|
362 # ## silently eat them.
|
|
363 # --help ) opt=help val=yes valomitted=yes ;;
|
|
364 # --version ) opt=version val=yes valomitted=yes ;;
|
|
365 # -e ) opt=e val=yes valomitted=yes ;;
|
|
366 # -E ) opt=E val=yes valomitted=yes ;;
|
|
367 # -n ) opt=n val=yes valomitted=yes ;;
|
|
368 -*)
|
|
369 ## If FOO is a boolean argument, --FOO is equivalent to
|
|
370 ## --FOO=yes. Otherwise, the value comes from the next
|
|
371 ## argument - see below.
|
|
372 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
|
|
373 val="yes"
|
|
374 valomitted=yes
|
|
375 ;;
|
|
376 esac
|
|
377
|
|
378 ## Change `-' in the option name to `_'.
|
|
379 optname="${opt}"
|
|
380 opt="`echo '' ${opt} | sed -e 's:^ ::' | tr - _`"
|
|
381
|
|
382 ## Process the option.
|
|
383 case "${opt}" in
|
|
384
|
70
|
385 ## Process (many) boolean options
|
|
386 run_in_place | \
|
|
387 with_x | \
|
|
388 with_x11 | \
|
|
389 with_gcc | \
|
|
390 with_lcc | \
|
|
391 with_gnu_make | \
|
|
392 with_epoch | \
|
|
393 dynamic | \
|
|
394 with_term | \
|
|
395 with_cde | \
|
|
396 with_offix | \
|
|
397 with_xpm | \
|
|
398 with_gif | \
|
|
399 with_jpeg | \
|
|
400 with_tiff | \
|
|
401 with_socks | \
|
|
402 with_xface | \
|
|
403 with_xmu | \
|
|
404 quantify | \
|
|
405 with_ns | \
|
|
406 with_toolbars | \
|
|
407 with_tty | \
|
|
408 with_i18n3 | \
|
|
409 with_mule | \
|
|
410 with_canna | \
|
|
411 with_wnn | \
|
|
412 with_mocklisp | \
|
|
413 with_energize | \
|
|
414 with_sparcworks | \
|
|
415 with_tooltalk | \
|
|
416 external_widget | \
|
|
417 extra_verbose | \
|
|
418 const_is_losing | \
|
|
419 usage_tracking | \
|
|
420 use_union_type | \
|
|
421 debug | \
|
|
422 use_assertions | \
|
|
423 memory_usage_stats | \
|
|
424 no_doc_file )
|
0
|
425 ## Make sure the value given was either "yes" or "no".
|
|
426 case "${val}" in
|
|
427 y | ye | yes ) val=yes ;;
|
|
428 n | no ) val=no ;;
|
|
429 * )
|
|
430 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
431 Set it to either \`yes' or \`no'."
|
|
432 echo "${short_usage}") >&2
|
70
|
433 exit 1 ;;
|
0
|
434 esac
|
70
|
435 eval "${opt}=\"${val}\"" ;;
|
|
436
|
|
437
|
|
438 ## Options that take a user-supplied value, as in --puresize=8000000
|
|
439 srcdir | \
|
|
440 compiler | \
|
|
441 puresize | \
|
|
442 native_sound_lib | \
|
|
443 x_includes | \
|
|
444 x_libraries | \
|
|
445 site_includes | \
|
|
446 site_libraries | \
|
|
447 site_runtime_libraries )
|
0
|
448 ## If the value was omitted, get it from the next argument.
|
70
|
449 if test "${valomitted}" = "yes" ; then
|
0
|
450 ## Get the next argument from the argument list, if there is one.
|
70
|
451 if test $# = 0 ; then
|
0
|
452 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
453 \`--${optname}=FOO'."
|
|
454 echo "${short_usage}") >&2
|
|
455 exit 1
|
|
456 fi
|
|
457 val="$1"; shift
|
|
458 fi
|
70
|
459 eval "${opt}=\"${val}\""
|
0
|
460 ;;
|
|
461
|
70
|
462 ### Options that take "yes", "no", or "default" values
|
|
463 rel_alloc | \
|
|
464 use_system_malloc )
|
0
|
465 case "${val}" in
|
|
466 y | ye | yes ) val=yes ;;
|
|
467 n | no ) val=no ;;
|
70
|
468 d | de | def | defa | defau | defaul | default )
|
|
469 val=default ;;
|
0
|
470 * )
|
70
|
471 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value or \`default'.
|
|
472 Set it to either \`yes', \`no', or \`default'."
|
0
|
473 echo "${short_usage}") >&2
|
|
474 exit 1
|
|
475 ;;
|
|
476 esac
|
|
477 eval "${opt}=\"${val}\""
|
|
478 ;;
|
|
479
|
70
|
480 ## Has the user requested database support?
|
|
481 "with_database" )
|
|
482 if test "${val}" = "no" ; then
|
|
483 with_database_berkdb=no
|
|
484 with_database_dbm=no
|
|
485 with_database_gnudbm=no
|
|
486 else
|
|
487 ## Make sure the value given was berkdb, dbm, gnudbm, or a list
|
|
488 for x in `echo "${val}" | sed 's/,/ /'` ; do
|
|
489 case "${x}" in
|
|
490 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
|
|
491 d | db | dbm ) with_database_dbm=yes ;;
|
|
492 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
|
|
493 * )
|
|
494 (echo "${progname}: the \`--${optname}' option is supposed to be either \`no'
|
|
495 or a comma-separated list of one or more of \`berkdb', \`dbm', or \`gnudbm'."
|
|
496 echo "${short_usage}") >&2
|
|
497 exit 1
|
|
498 ;;
|
|
499 esac
|
|
500 done
|
|
501 if test "${with_database_dbm}" = "yes" -a "${with_database_gnudbm}" = "yes"
|
|
502 then
|
|
503 (echo "${progname}: only one of \`dbm' and \`gnudbm' should be specified.") >&2
|
0
|
504 exit 1
|
|
505 fi
|
|
506 fi
|
70
|
507 ;;
|
0
|
508
|
|
509 ## Has the user requested sound support?
|
|
510 "with_sound" )
|
|
511 ## value can be native, nas or both. yes is allowed
|
|
512 ## as a backwards compatible synonym for native
|
|
513 case "${val}" in
|
|
514 y | ye | yes ) val=native ;;
|
|
515 n | no | non | none ) val=no;;
|
|
516 na | nat | nati | nativ | native ) val=native ;;
|
|
517 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
|
|
518 b | bo | bot | both ) val=both;;
|
|
519 * )
|
70
|
520 (echo "${progname}: the \`--${optname}' option should have one of the values:"
|
|
521 echo "\`native', \`nas', \`both', or \`none'."
|
|
522 echo ""
|
|
523 echo "${short_usage}") >&2
|
2
|
524 exit 1
|
|
525 ;;
|
|
526 esac
|
|
527 eval "${opt}=\"${val}\""
|
|
528 ;;
|
|
529
|
70
|
530 ## Has the user requested XIM support?
|
|
531 "with_xim" )
|
|
532 ## value can be xlib or motif
|
|
533 ## as a backwards compatible synonym for native
|
0
|
534 case "${val}" in
|
70
|
535 y | ye | yes ) val=yes ;;
|
|
536 n | no | non | none ) val=no ;;
|
|
537 x | xl | xli | xlib ) val=xlib ;;
|
|
538 m | mo | mot | moti | motif ) val=motif ;;
|
0
|
539 * )
|
70
|
540 (echo "${progname}: the \`--${optname}' option should have one of the values:"
|
|
541 echo "\`motif', \`xlib', \`yes', or \`no'."
|
|
542 echo ""
|
|
543 echo "${short_usage}") >&2
|
0
|
544 exit 1
|
|
545 ;;
|
|
546 esac
|
|
547 eval "${opt}=\"${val}\""
|
|
548 ;;
|
|
549
|
|
550 ## Has the user requested PNG support?
|
|
551 "with_png" )
|
|
552 ## Make sure the value given was either "yes", "no", or "gnuz".
|
|
553 case "${val}" in
|
70
|
554 y | ye | yes ) val=yes ;;
|
|
555 n | no ) val=no ;;
|
0
|
556 g | gn | gnu | gnuz ) val=gnuz ;;
|
|
557 * )
|
|
558 (echo "${progname}: the \`--${optname}' option is supposed to
|
|
559 be either \`yes', \`no', or \`gnuz'."
|
|
560 echo "${short_usage}") >&2
|
|
561 exit 1
|
|
562 ;;
|
|
563 esac
|
|
564 eval "${opt}=\"${val}\""
|
|
565 ;;
|
|
566
|
|
567 ## Has the user requested error-checking?
|
|
568 "error_checking" )
|
|
569 ## value can be all, none, and/or a list of categories to check.
|
|
570 ## Example: --error-checking=all,noextents,nobufpos
|
|
571 ## Example: --error-checking=none,malloc,gc
|
|
572
|
|
573 for x in `echo "${val}" | sed 's/,/ /'` ; do
|
|
574 case "${x}" in
|
|
575 # all and none are only permitted as the first in the list.
|
|
576 n | no | non | none ) new_default=no ;;
|
|
577 a | al | all ) new_default=yes ;;
|
|
578
|
|
579 extents ) error_check_extents=yes ;;
|
|
580 noextents ) error_check_extents=no ;;
|
|
581
|
|
582 typecheck ) error_check_typecheck=yes ;;
|
|
583 notypecheck ) error_check_typecheck=no ;;
|
|
584
|
|
585 bufpos ) error_check_bufpos=yes ;;
|
|
586 nobufpos ) error_check_bufpos=no ;;
|
|
587
|
|
588 gc ) error_check_gc=yes ;;
|
|
589 nogc ) error_check_gc=no ;;
|
|
590
|
|
591 malloc ) error_check_malloc=yes ;;
|
|
592 nomalloc ) error_check_malloc=no ;;
|
|
593
|
|
594 * ) bogus_error_check=yes ;;
|
|
595 esac
|
70
|
596 if test "$bogus_error_check" -o \
|
|
597 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
|
0
|
598 ( echo "${progname}: Valid types for the \`--${optname}' option are:"
|
70
|
599 if test $error_check_default = yes ; then
|
0
|
600 echo "\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
|
|
601 else
|
|
602 echo "\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
|
|
603 fi
|
|
604 echo "${short_usage}" ) >&2
|
|
605 exit 1
|
70
|
606 elif test "$new_default" ; then
|
0
|
607 error_check_extents=$new_default
|
|
608 error_check_typecheck=$new_default
|
|
609 error_check_bufpos=$new_default
|
|
610 error_check_gc=$new_default
|
|
611 error_check_malloc=$new_default
|
|
612 new_default= # reset this
|
|
613 fi
|
|
614 echeck_notfirst=true
|
|
615 done
|
|
616 ;;
|
|
617
|
|
618 ## Has the user tried to tell us where the X files are?
|
|
619 ## I think these are dopey, but no less than three alpha
|
|
620 ## testers, at large sites, have said they have their X files
|
|
621 ## installed in odd places.
|
|
622
|
|
623 ## Has the user specified one of the path options?
|
|
624 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
|
|
625 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \
|
|
626 sitelispdir | docdir )
|
|
627 ## If the value was omitted, get it from the next argument.
|
70
|
628 if test "${valomitted}" = "yes" ; then
|
|
629 if test $# = 0 ; then
|
0
|
630 (echo \
|
|
631 "$progname: You must give a value for the \`--${optname}' option,";
|
|
632 echo \
|
|
633 "as in \`--${optname}=`eval echo '$'$optname`.'"
|
|
634 echo "$short_usage") >&2
|
|
635 exit 1
|
|
636 fi
|
|
637 val="$1"; shift
|
|
638 fi
|
|
639 eval "${opt}=\"${val}\""
|
|
640
|
|
641 ## Changing exec_prefix or libdir will change the default value
|
|
642 ## of archlibdir. Changing datadir will change the default value
|
|
643 ## of etcdir and lispdir. Changing statedir will change the
|
|
644 ## default value of lockdir.
|
70
|
645 if test "${opt}" = exec_prefix; then archlibdir_user_defined=yes
|
|
646 elif test "${opt}" = libdir ; then archlibdir_user_defined=yes
|
|
647 elif test "${opt}" = archlibdir ; then archlibdir_user_defined=yes
|
|
648 elif test "${opt}" = lispdir ; then lispdir_user_defined=yes
|
|
649 elif test "${opt}" = etcdir ; then etcdir_user_defined=yes
|
|
650 elif test "${opt}" = datadir ; then
|
|
651 lispdir_user_defined=yes
|
|
652 etcdir_user_defined=yes
|
|
653 elif test "${opt}" = statedir ; then lockdir_user_defined=yes
|
|
654 elif test "${opt}" = lockdir ; then lockdir_user_defined=yes
|
|
655 elif test "${opt}" = infodir ; then infodir_user_defined=yes
|
0
|
656 fi
|
|
657 ;;
|
|
658
|
|
659 ## Has the user specified values to override CFLAGS?
|
|
660 cflags )
|
|
661 ## If the value was omitted, get it from the next argument.
|
70
|
662 if test "${valomitted}" = "yes" ; then
|
|
663 if test $# = 0 ; then
|
0
|
664 (echo \
|
|
665 "$progname: You must give a value for the \`--${optname}' option,";
|
|
666 echo \
|
|
667 "as in \`--${optname}=`eval echo '$'$optname`-g -O'"
|
|
668 echo "$short_usage") >&2
|
|
669 exit 1
|
|
670 fi
|
|
671 val="$1"; shift
|
|
672 fi
|
|
673 eval "${opt}=\"${val}\""
|
|
674 eval "${opt}_specified=1"
|
|
675 ;;
|
|
676
|
|
677 ## Verbose flag, tested by autoconf macros.
|
|
678 "verbose" )
|
|
679 verbose=yes
|
|
680 ;;
|
|
681
|
|
682 ## --no-create added by autoconf for use by config.status
|
|
683 "no_create" )
|
|
684 ;;
|
|
685
|
|
686 ## Has the user asked for some help?
|
|
687 "usage" | "help" )
|
70
|
688 if test -z "$PAGER"
|
|
689 then echo "${short_usage}" | more
|
|
690 else echo "${short_usage}" | $PAGER
|
0
|
691 fi
|
|
692 exit
|
|
693 ;;
|
|
694
|
|
695 ## Has the user specified what toolkit to use for the menubars,
|
|
696 ## scrollbar or dialogs?
|
|
697 "with_menubars" | "with_scrollbars" | "with_dialogs" )
|
|
698 ## value can be lucid, motif, or athena.
|
|
699 case "${val}" in
|
|
700 l | lu | luc | luci | lucid ) val=lucid ;;
|
|
701 m | mo | mot | moti | motif ) val=motif ;;
|
82
|
702 athena3d | athena-3d ) val=athena3d ;;
|
0
|
703 a | at | ath | athe | athen | athena ) val=athena ;;
|
|
704 n | no | non | none ) val=no ;;
|
|
705 * )
|
70
|
706 (echo "${progname}: the \`--${optname}' option should have one of the values:"
|
|
707 echo "\`lucid', \`motif', \`athena', or \`no'."
|
|
708 echo ""
|
|
709 echo "${short_usage}") >&2
|
0
|
710 exit 1
|
|
711 ;;
|
|
712 esac
|
|
713 eval "${opt}=\"${val}\""
|
|
714 ;;
|
|
715
|
|
716 ## Fail on unrecognized arguments.
|
|
717 * )
|
70
|
718 (echo "${progname}: Error: unrecognized option: ${arg}"
|
0
|
719 echo ""
|
|
720 echo "${short_usage}") >& 2
|
|
721 exit 1
|
|
722 ;;
|
|
723
|
|
724 esac
|
|
725 ;;
|
|
726
|
|
727 ## Anything not starting with a hyphen we assume is a
|
|
728 ## configuration name.
|
|
729 *)
|
|
730 configuration=${arg}
|
|
731 ;;
|
|
732
|
|
733 esac
|
|
734 done
|
|
735
|
|
736 ############################################################################
|
|
737 # #
|
|
738 # Finish options processing #
|
|
739 # #
|
|
740 ############################################################################
|
|
741
|
|
742 ### Get the arguments back. See the diatribe on Shell Magic above.
|
|
743 eval set x "$quoted_arguments"; shift
|
|
744
|
70
|
745 ### Argument interdependencies
|
|
746 if test "${with_energize}" = "yes" ; then
|
|
747 with_menubars="lucid"
|
|
748 with_scrollbars="motif"
|
|
749 with_dialogs="motif"
|
|
750 with_tooltalk="yes"
|
|
751 internal_makefile_list="$internal_makefile_list lwlib/energize/Makefile.in"
|
|
752 fi
|
|
753
|
|
754 ### --extra-verbose implies --verbose
|
|
755 test "${extra_verbose}" = yes && verbose=yes
|
|
756
|
|
757 ### Sparcworks requires tooltalk
|
|
758 test "${with_sparcworks}" = yes && with_tooltalk=yes
|
|
759
|
|
760 ### debug implies other options
|
|
761 test "${debug}" = "yes" && use_assertions=yes memory_usage_stats=yes
|
|
762
|
|
763 ### with_x is a synonym for with_x11
|
|
764 test -n "${with_x}" && with_x11="${with_x}"
|
|
765
|
|
766 ### Can't specify 2 compilers
|
|
767 if test "${with_gcc}" = "yes" -a "${with_lcc}" = "yes"; then
|
|
768 (echo "${progname}: only one of --with-gcc and --with-lcc may be specified."
|
|
769 echo "${short_usage}") >&2
|
|
770 exit 1
|
|
771 fi
|
|
772
|
|
773 ### Ignore useless run-in-place flag
|
|
774 if test "${run_in_place}" = "yes"; then
|
|
775 echo "configure: warning: The --run-in-place option is ignored because it is unnecessary." >&2
|
|
776 fi
|
|
777
|
|
778 ###########################################################################
|
|
779 if test "${configuration}" = "" ; then
|
0
|
780 echo '- You did not tell me what kind of host system you want to configure.
|
|
781 - I will attempt to guess the kind of system this is.' 1>&2
|
|
782 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
|
|
783 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then
|
|
784 echo "- Looks like this is a ${configuration}" 1>&2
|
|
785 else
|
|
786 echo '- Failed to guess the system type. You need to tell me.' 1>&2
|
|
787 echo "${short_usage}" >&2
|
|
788 exit 1
|
|
789 fi
|
|
790 fi
|
|
791
|
70
|
792 ### Find the source directory.
|
0
|
793 case "${srcdir}" in
|
|
794
|
|
795 ## If it's not specified, see if `.' or `..' might work.
|
|
796 "" )
|
70
|
797 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
|
|
798 if test -f "$dir/src/lisp.h" -a -f "$dir/lisp/version.el" ; then
|
|
799 srcdir="${dir}"
|
|
800 break
|
|
801 fi
|
|
802 done
|
|
803 if test -z "${srcdir}" ; then
|
|
804 echo "\
|
0
|
805 ${progname}: Neither the current directory nor its parent seem to
|
|
806 contain the XEmacs sources. If you do not want to build XEmacs in its
|
|
807 source tree, you should run \`${progname}' in the directory in which
|
|
808 you wish to build XEmacs, using its \`--srcdir' option to say where the
|
70
|
809 sources may be found.
|
|
810 ${short_usage}" >&2
|
|
811 exit 1
|
0
|
812 fi
|
|
813 ;;
|
|
814
|
|
815 ## Otherwise, check if the directory they specified is okay.
|
|
816 * )
|
70
|
817 if test ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ; then
|
0
|
818 (echo "\
|
|
819 ${progname}: The directory specified with the \`--srcdir' option,
|
|
820 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should
|
|
821 either run the \`${progname}' script at the top of the XEmacs source
|
|
822 tree, or use the \`--srcdir' option to specify where the XEmacs sources
|
|
823 are."
|
|
824 echo "${short_usage}") >&2
|
|
825 exit 1
|
|
826 fi
|
|
827 ;;
|
|
828 esac
|
|
829
|
|
830 ## We check for this now instead of later when we check for other
|
|
831 ## programs because we need to use its return value now.
|
|
832 test -n "$silent" || echo "checking for ln -s"
|
|
833 rm -f conftestdata
|
|
834 if ln -s X conftestdata 2>/dev/null
|
|
835 then
|
|
836 rm -f conftestdata
|
|
837 LN_S="ln -s"
|
|
838 else
|
|
839 LN_S=ln
|
|
840 fi
|
|
841
|
|
842
|
|
843
|
|
844 test -n "$verbose" && echo " "setting LN_S to ${LN_S}""
|
|
845
|
|
846 #### Make symlinks for etc, lisp, and info directories while the path
|
|
847 #### is still relative. We don't symlink lock because someone may
|
|
848 #### have stuck the source on a read-only partition. Instead we'll
|
|
849 #### create it as an actual directory later on if it doesn't already
|
|
850 #### exist.
|
70
|
851 for dir in etc lisp man info
|
0
|
852 do
|
70
|
853 if test ! -d $dir ; then
|
0
|
854 echo Making symbolic link to ${srcdir}/$dir
|
|
855 ${LN_S} ${srcdir}/$dir .
|
|
856 fi
|
|
857 done
|
|
858
|
|
859 #### Make srcdir absolute, if it isn't already. It's important to
|
|
860 #### avoid running the path through pwd unnecessary, since pwd can
|
|
861 #### give you automounter prefixes, which can go away.
|
|
862 case "${srcdir}" in
|
|
863 /* ) ;;
|
|
864 . )
|
|
865 ## We may be able to use the $PWD environment variable to make this
|
|
866 ## absolute. But sometimes PWD is inaccurate.
|
70
|
867 if test "${PWD}" != "" -a "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`"; then
|
0
|
868 srcdir="$PWD"
|
|
869 else
|
|
870 srcdir="`(cd ${srcdir}; pwd)`"
|
|
871 fi
|
|
872 ;;
|
|
873 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
|
|
874 esac
|
|
875
|
|
876 #### Check if the source directory already has a configured system in it.
|
70
|
877 if test `pwd` != `sh -c cd ${srcdir} && pwd` \
|
|
878 && test -f "${srcdir}/src/config.h"; then
|
0
|
879 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
|
|
880 echo " as a build directory right now; it has been configured in its own"
|
|
881 echo " right. To configure in another directory as well, you MUST"
|
|
882 echo " use GNU make. If you do not have GNU make, then you must"
|
|
883 echo " now do \`make distclean' in ${srcdir},"
|
|
884 echo " and then run ${progname} again.") >&2
|
|
885 extrasub='/^VPATH[ ]*=/c\
|
|
886 vpath %.c $(srcdir)\
|
|
887 vpath %.h $(srcdir)\
|
|
888 vpath %.y $(srcdir)\
|
|
889 vpath %.l $(srcdir)\
|
|
890 vpath %.s $(srcdir)\
|
|
891 vpath %.in $(srcdir)'
|
|
892 fi
|
|
893
|
|
894 ### Make the necessary directories, if they don't exist.
|
70
|
895 for dir in ./src ./lib-src ./dynodump ./lwlib ./lock ; do
|
|
896 if test ! -d ${dir} ; then
|
0
|
897 mkdir ${dir}
|
|
898 fi
|
|
899 done
|
70
|
900 if test "${with_energize}" = "yes" -a ! -d ./lwlib/energize; then
|
0
|
901 mkdir ./lwlib/energize
|
|
902 fi
|
|
903
|
|
904 ############################################################################
|
|
905 # #
|
|
906 # Determine the s&m files to use #
|
|
907 # #
|
|
908 ############################################################################
|
|
909
|
|
910 #### Given the configuration name, set machfile and opsysfile to the
|
|
911 #### names of the m/*.h and s/*.h files we should use.
|
|
912
|
|
913 ### Canonicalize the configuration name.
|
|
914 echo "checking the configuration name"
|
|
915 # allow -energize prefix on configuration name
|
|
916 internal_configuration=`echo ${configuration} | sed 's/-energize//'`
|
|
917 # allow --sparcworks prefix on configuration name
|
|
918 internal_configuration=`echo ${configuration} | sed 's/-sparcworks//'`
|
|
919 if canonical=`${srcdir}/config.sub "${internal_configuration}"` ; then : ; else
|
|
920 exit $?
|
|
921 fi
|
|
922
|
|
923 ### If you add support for a new configuration, add code to this
|
|
924 ### switch statement to recognize your configuration name and select
|
|
925 ### the appropriate operating system and machine description files.
|
|
926
|
|
927 ### You would hope that you could choose an m/*.h file pretty much
|
|
928 ### based on the machine portion of the configuration name, and an s-
|
|
929 ### file based on the operating system portion. However, it turns out
|
|
930 ### that each m/*.h file is pretty manufacturer-specific - for
|
|
931 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
|
|
932 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
|
|
933 ### machines. So we basically have to have a special case for each
|
|
934 ### configuration name.
|
|
935 ###
|
|
936 ### As far as handling version numbers on operating systems is
|
|
937 ### concerned, make sure things will fail in a fixable way. If
|
|
938 ### /etc/MACHINES doesn't say anything about version numbers, be
|
|
939 ### prepared to handle anything reasonably. If version numbers
|
|
940 ### matter, be sure /etc/MACHINES says something about it.
|
|
941 ###
|
|
942 ### Eric Raymond says we should accept strings like "sysvr4" to mean
|
|
943 ### "System V Release 4"; he writes, "The old convention encouraged
|
|
944 ### confusion between `system' and `release' levels'."
|
|
945
|
|
946 machine='' opsys='' unported=no need_dynodump=no
|
|
947 case "${canonical}" in
|
|
948
|
|
949 ## NetBSD ports
|
|
950 *-*-netbsd* )
|
|
951 opsys=netbsd
|
|
952 case "${canonical}" in
|
70
|
953 sparc-*-netbsd*) machine=sparc ;;
|
0
|
954 i[3-9]86-*-netbsd*) machine=intel386 ;;
|
|
955 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
|
|
956 # Yes, this is somewhat bogus.
|
|
957 machine=hp9000s300 ;;
|
70
|
958 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
|
|
959 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
|
0
|
960 esac
|
|
961 ;;
|
|
962
|
|
963 ## Acorn RISCiX:
|
70
|
964 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
|
|
965 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
|
0
|
966
|
|
967 ## Alliant machines
|
|
968 ## Strictly speaking, we need the version of the alliant operating
|
|
969 ## system to choose the right machine file, but currently the
|
|
970 ## configuration name doesn't tell us enough to choose the right
|
|
971 ## one; we need to give alliants their own operating system name to
|
|
972 ## do this right. When someone cares, they can help us.
|
70
|
973 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
|
|
974 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
|
0
|
975
|
|
976 ## Alpha (DEC) machines.
|
|
977 ## XEmacs change: split apart into numerous files.
|
70
|
978 alpha-dec-osf1.3 | alpha-dec-osf2* ) machine=alpha opsys=decosf1-3 ;;
|
|
979 alpha-dec-osf1.2 | alpha-dec-osf1* ) machine=alpha opsys=decosf1-2 ;;
|
0
|
980
|
|
981 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu)
|
|
982 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu)
|
70
|
983 alpha-dec-osf3.[2-9] ) machine=alpha opsys=decosf3-2 ;;
|
|
984 alpha-dec-osf3* ) machine=alpha opsys=decosf3-1 ;;
|
|
985 alpha-dec-osf4* ) machine=alpha opsys=decosf4-0 ;;
|
|
986 alpha-*-linux* ) machine=alpha opsys=linux ;;
|
0
|
987
|
|
988 ## Altos 3068
|
70
|
989 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
|
0
|
990
|
|
991 ## Amdahl UTS
|
70
|
992 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
|
0
|
993
|
|
994 ## Apollo, Domain/OS
|
70
|
995 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
|
0
|
996
|
|
997 ## AT&T 3b2, 3b5, 3b15, 3b20
|
70
|
998 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
|
0
|
999
|
|
1000 ## AT&T 3b1 - The Mighty Unix PC!
|
70
|
1001 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
|
0
|
1002
|
74
|
1003 ## Bull machines
|
|
1004 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
|
|
1005 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
|
|
1006 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
|
0
|
1007
|
|
1008 ## CCI 5/32, 6/32 -- see "Tahoe".
|
|
1009
|
|
1010 ## Celerity
|
|
1011 ## I don't know what configuration name to use for this; config.sub
|
|
1012 ## doesn't seem to know anything about it. Hey, Celerity users, get
|
|
1013 ## in touch with us!
|
70
|
1014 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
|
0
|
1015
|
|
1016 ## Clipper
|
|
1017 ## What operating systems does this chip run that XEmacs has been
|
|
1018 ## tested on?
|
70
|
1019 clipper-* ) machine=clipper
|
0
|
1020 ## We'll use the catch-all code at the bottom to guess the
|
|
1021 ## operating system.
|
|
1022 ;;
|
|
1023
|
|
1024 ## Convex
|
|
1025 *-convex-bsd* | *-convex-convexos* )
|
|
1026 machine=convex opsys=bsd4-3
|
|
1027 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
|
|
1028 NON_GNU_CPP="cc -E -P"
|
|
1029 ;;
|
|
1030
|
|
1031 ## Cubix QBx/386
|
70
|
1032 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
|
0
|
1033
|
|
1034 ## Cydra 5
|
70
|
1035 cydra*-cydrome-sysv* ) machine=cydra5 opsys=usg5-3 ;;
|
0
|
1036
|
|
1037 ## Data General AViiON Machines
|
82
|
1038 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
|
70
|
1039 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) machine=aviion opsys=dgux5-4r3 ;;
|
|
1040 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) machine=aviion opsys=dgux5-4r2 ;;
|
74
|
1041 m88k-dg-dgux* ) machine=aviion opsys=dgux ;;
|
70
|
1042
|
|
1043 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) machine=pmax opsys=bsd4-2 ;;
|
|
1044 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) machine=pmax opsys=bsd4-3 ;;
|
|
1045 mips-dec-ultrix* ) machine=pmax opsys=ultrix4-3 ;;
|
|
1046 mips-dec-osf* ) machine=pmax opsys=osf1 ;;
|
|
1047 mips-dec-mach_bsd4.3* ) machine=pmax opsys=mach-bsd4-3 ;;
|
0
|
1048
|
|
1049 ## Motorola Delta machines
|
|
1050 m68k-motorola-sysv* | m68000-motorola-sysv* )
|
|
1051 machine=delta opsys=usg5-3
|
|
1052 if test -z "`type gnucc | grep 'not found'`"
|
|
1053 then
|
|
1054 if test -s /etc/167config
|
|
1055 then CC="gnucc -m68040"
|
|
1056 else CC="gnucc -m68881"
|
|
1057 fi
|
|
1058 else
|
|
1059 if test -z "`type gcc | grep 'not found'`"
|
|
1060 then CC=gcc
|
|
1061 else CC=cc
|
|
1062 fi
|
|
1063 fi
|
|
1064 ;;
|
|
1065 m88k-motorola-sysv4* )
|
|
1066 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
|
|
1067 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
|
|
1068 # I hope there are not other 4.0 versions for this machine
|
|
1069 # which really need usg5-4 instead.
|
|
1070 machine=delta88k opsys=usg5-4-2
|
|
1071 ;;
|
70
|
1072 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
|
0
|
1073
|
|
1074 ## Dual machines
|
70
|
1075 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
|
|
1076 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
|
0
|
1077
|
|
1078 ## Elxsi 6400
|
70
|
1079 elxsi-elxsi-sysv* ) machine=elxsi opsys=usg5-2 ;;
|
0
|
1080
|
|
1081 ## Encore machines
|
70
|
1082 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
|
0
|
1083
|
|
1084 ## Gould Power Node and NP1
|
70
|
1085 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
|
|
1086 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
|
|
1087 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
|
0
|
1088
|
|
1089 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
|
|
1090 ## as far as XEmacs is concerned).
|
|
1091 m88k-harris-cxux* )
|
|
1092 # Build needs to be different on 7.0 and later releases
|
|
1093 case "`uname -r`" in
|
74
|
1094 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
|
70
|
1095 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
|
0
|
1096 esac
|
|
1097 NON_GNU_CPP="/lib/cpp"
|
|
1098 ;;
|
|
1099 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
|
70
|
1100 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
|
0
|
1101 ## Harris power pc NightHawk running Power UNIX (Series 6000)
|
|
1102 powerpc-harris-powerunix )
|
|
1103 machine=nh6000 opsys=powerunix
|
|
1104 NON_GNU_CPP="cc -Xo -E -P"
|
|
1105 ;;
|
|
1106
|
|
1107 ## Honeywell XPS100
|
70
|
1108 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
|
0
|
1109
|
|
1110 ## HP 9000 series 200 or 300
|
70
|
1111 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
|
|
1112
|
|
1113 ## HP-UX on HP's
|
|
1114 *-hp-hpux* )
|
0
|
1115 NON_GNU_CC="cc -Aa"
|
70
|
1116 NON_GNU_CPP="cc -Aa -E"
|
|
1117
|
|
1118 ### Figure out machine and opsys orthogonally
|
|
1119 case "${canonical}" in
|
|
1120 m68* ) machine=hp9000s300 ;;
|
|
1121 hppa* ) machine=hp800 ;;
|
|
1122 esac
|
|
1123
|
|
1124 case "${canonical}" in
|
74
|
1125 *-hp-hpux7* ) opsys=hpux ;;
|
|
1126 *-hp-hpux8* ) opsys=hpux8 ;;
|
|
1127 *-hp-hpux9* ) opsys=hpux9 ;;
|
|
1128 *-hp-hpux10* ) opsys=hpux10 ;;
|
70
|
1129 * )
|
|
1130 case "`uname -r`" in
|
|
1131 ## Someone's system reports A.B8.05 for this.
|
|
1132 ## I wonder what other possibilities there are.
|
|
1133 *.B8.* ) opsys=hpux8 ;;
|
|
1134 *.08.* ) opsys=hpux8 ;;
|
|
1135 *.09.* ) opsys=hpux9 ;;
|
|
1136 *.10.* ) opsys=hpux10 ;;
|
|
1137 * ) opsys=hpux ;;
|
|
1138 esac
|
|
1139 ;;
|
0
|
1140 esac
|
72
|
1141
|
90
|
1142 if [ $opsys = hpux10 ]; then
|
|
1143 NON_GNU_CC="cc -Ae"
|
|
1144 NON_GNU_CPP="cc -Ae -E"
|
|
1145 fi
|
|
1146
|
72
|
1147 case "${canonical}" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
|
0
|
1148 ;;
|
|
1149
|
70
|
1150 hppa-*-nextstep* ) machine=hp800 opsys=nextstep ;;
|
0
|
1151
|
|
1152 ## Orion machines
|
70
|
1153 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
|
|
1154 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
|
0
|
1155
|
|
1156 ## IBM machines
|
70
|
1157 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
|
|
1158 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
|
|
1159 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
|
|
1160 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) machine=ibmrs6000 opsys=aix3-1 ;;
|
|
1161 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) machine=ibmrs6000 opsys=aix3-2-5 ;;
|
88
|
1162 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) machine=ibmrs6000 opsys=aix4-2 ;;
|
70
|
1163 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) machine=ibmrs6000 opsys=aix4-1 ;;
|
|
1164 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) machine=ibmrs6000 opsys=aix4 ;;
|
|
1165 rs6000-ibm-aix* | powerpc-ibm-aix* ) machine=ibmrs6000 opsys=aix3-2 ;;
|
|
1166 romp-ibm-bsd4.3* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1167 romp-ibm-bsd4.2* ) machine=ibmrt opsys=bsd4-2 ;;
|
|
1168 romp-ibm-aos4.3* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1169 romp-ibm-aos4.2* ) machine=ibmrt opsys=bsd4-2 ;;
|
|
1170 romp-ibm-aos* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1171 romp-ibm-bsd* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1172 romp-ibm-aix* ) machine=ibmrt-aix opsys=usg5-2-2 ;;
|
|
1173 romp-ibm-mach* ) machine=ibmrt opsys=mach-bsd4-3 ;;
|
0
|
1174
|
|
1175 ## Integrated Solutions `Optimum V'
|
70
|
1176 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
|
|
1177 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
|
0
|
1178
|
|
1179 ## Intel 386 machines where we do care about the manufacturer
|
70
|
1180 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
|
0
|
1181
|
|
1182 ## Prime EXL
|
70
|
1183 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
|
0
|
1184
|
|
1185 ## Sequent Symmetry running Dynix
|
70
|
1186 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
|
0
|
1187
|
|
1188 ## Sequent Symmetry running DYNIX/ptx
|
|
1189 ## Use the old cpp rather than the newer ANSI one.
|
|
1190 i[3-9]86-sequent-ptx* )
|
|
1191 machine=sequent-ptx opsys=ptx
|
|
1192 NON_GNU_CPP="/lib/cpp"
|
|
1193 ;;
|
|
1194
|
|
1195 ## Unspecified sysv on an ncr machine defaults to svr4.2.
|
|
1196 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
|
70
|
1197 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
|
0
|
1198
|
|
1199 ## Intel Paragon OSF/1
|
70
|
1200 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
|
0
|
1201
|
|
1202 ## Intel 860
|
|
1203 i860-*-sysv4* )
|
|
1204 machine=i860 opsys=usg5-4
|
|
1205 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
|
|
1206 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
|
|
1207 ;;
|
|
1208
|
|
1209 ## Masscomp machines
|
70
|
1210 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
|
0
|
1211
|
|
1212 ## Megatest machines
|
70
|
1213 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
|
0
|
1214
|
|
1215 ## Workstations sold by MIPS
|
|
1216 ## This is not necessarily all workstations using the MIPS processor -
|
|
1217 ## Irises are produced by SGI, and DECstations by DEC.
|
|
1218
|
|
1219 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
|
|
1220 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
|
|
1221 ## it gives for choosing between the alternatives seems to be "Use
|
|
1222 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
|
|
1223 ## the BSD world." I'll assume that these are instructions for
|
|
1224 ## handling two odd situations, and that every other situation
|
|
1225 ## should use mips.h and usg5-2-2, they being listed first.
|
|
1226 mips-mips-usg* )
|
|
1227 machine=mips4
|
|
1228 ## Fall through to the general code at the bottom to decide on the OS.
|
|
1229 ;;
|
70
|
1230 mips-mips-riscos4 )
|
|
1231 machine=mips4
|
0
|
1232 NON_GNU_CC="cc -systype bsd43"
|
|
1233 NON_GNU_CPP="cc -systype bsd43 -E"
|
70
|
1234 case "${canonical}" in
|
|
1235 mips-mips-riscos4* ) opsys=bsd4-3 ;;
|
|
1236 mips-mips-riscos5* ) opsys=riscos5 ;;
|
|
1237 esac
|
0
|
1238 ;;
|
70
|
1239 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
|
|
1240 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
|
0
|
1241
|
|
1242 ## NeXT
|
70
|
1243 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
|
0
|
1244
|
|
1245 ## The complete machine from National Semiconductor
|
70
|
1246 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
|
0
|
1247
|
|
1248 ## NCR machines
|
70
|
1249 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
|
|
1250 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
|
0
|
1251
|
|
1252 ## Nixdorf Targon 31
|
70
|
1253 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
|
0
|
1254
|
|
1255 ## Nu (TI or LMI)
|
70
|
1256 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
|
0
|
1257
|
|
1258 ## Plexus
|
70
|
1259 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
|
0
|
1260
|
|
1261 ## Pyramid machines
|
|
1262 ## I don't really have any idea what sort of processor the Pyramid has,
|
|
1263 ## so I'm assuming it is its own architecture.
|
70
|
1264 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
|
0
|
1265
|
|
1266 ## Sequent Balance
|
70
|
1267 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
|
|
1268 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
|
0
|
1269
|
|
1270 ## Siemens Nixdorf
|
|
1271 mips-siemens-sysv* | mips-sni-sysv*)
|
|
1272 machine=mips-siemens opsys=usg5-4
|
|
1273 NON_GNU_CC=/usr/ccs/bin/cc
|
|
1274 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1275 ;;
|
|
1276
|
|
1277 ## Silicon Graphics machines
|
|
1278 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
|
70
|
1279 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
|
|
1280 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
|
0
|
1281 ## Iris 4D
|
70
|
1282 mips-sgi-irix3.* ) machine=iris4d opsys=irix3-3 ;;
|
|
1283 mips-sgi-irix4.* ) machine=iris4d opsys=irix4-0 ;;
|
82
|
1284 mips-sgi-irix6* ) machine=iris4d opsys=irix6-0 ;;
|
70
|
1285 mips-sgi-irix5.[3-9]* ) machine=iris4d opsys=irix5-3 ;;
|
|
1286 mips-sgi-irix5.2* ) machine=iris4d opsys=irix5-2 ;;
|
|
1287 mips-sgi-irix5.1* ) machine=iris4d opsys=irix5-1 ;;
|
|
1288 mips-sgi-irix* ) machine=iris4d opsys=irix5-0 ;;
|
0
|
1289
|
|
1290 ## SONY machines
|
70
|
1291 m68*-sony-bsd4.2* ) machine=news opsys=bsd4-2 ;;
|
|
1292 m68*-sony-bsd4.3* ) machine=news opsys=bsd4-3 ;;
|
|
1293 m68*-sony-newsos3* | m68*-sony-news3*) machine=news opsys=bsd4-3 ;;
|
|
1294 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) machine=news-risc opsys=bsd4-3 ;;
|
|
1295 mips-sony-news* ) machine=news-risc opsys=newsos5 ;;
|
0
|
1296
|
|
1297 ## Stride
|
70
|
1298 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
|
0
|
1299
|
|
1300 ## Suns
|
70
|
1301 sparc-*-linux* ) machine=sparc opsys=linux ;;
|
0
|
1302
|
|
1303 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
1304 # Hardware type
|
|
1305 case "${canonical}" in
|
|
1306 m68*-sunos1* ) machine=sun1 ;;
|
|
1307 m68*-sunos2* ) machine=sun2 ;;
|
|
1308 m68* ) machine=sun3 ;;
|
|
1309 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
1310 i[3-9]86-*-* ) machine=intel386 ;;
|
|
1311 rs6000* ) machine=rs6000 ;;
|
|
1312 sparc* ) machine=sparc ;;
|
|
1313 powerpc* ) machine=powerpc ;;
|
|
1314 * ) unported=yes ;;
|
|
1315 esac
|
|
1316
|
|
1317 # Make `canonical' even more so.
|
|
1318 case "${canonical}" in *-sunos5*)
|
70
|
1319 canonical="`echo \"${canonical}\" | sed -e s/sunos5/solaris2/`";;
|
0
|
1320 esac
|
|
1321
|
|
1322 # On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib
|
|
1323 # On SunOS 5, use /usr/ccs/lib/cpp, need dynodump, RANLIB not needed
|
|
1324 # But, SunOS 5.6 no longer needs dynodump because it has a similar
|
|
1325 # function integrated.
|
|
1326 case "${canonical}" in
|
|
1327 *-sunos4* )
|
70
|
1328 test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1329 *-solaris2* )
|
|
1330 test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
0
|
1331 RANLIB=':'
|
70
|
1332 case "${canonical}" in
|
|
1333 *-solaris2.[6-9]* ) need_dynodump=no ;;
|
|
1334 *-solaris2* ) need_dynodump=yes ;;
|
|
1335 esac
|
0
|
1336 esac
|
|
1337
|
|
1338 case "${canonical}" in
|
|
1339 ## The Sun386 didn't get past 4.0.
|
74
|
1340 i[3-9]86-*-sunos4* ) opsys=sunos4-0 ;;
|
|
1341 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
1342 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
|
1343 *-sunos4.1.[3-9]* ) opsys=sunos4-1-3 ;;
|
|
1344 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
1345
|
|
1346 *-solaris2.3* ) opsys=sol2-3 ;;
|
|
1347 *-solaris2.4* ) opsys=sol2-4 ;;
|
|
1348 *-solaris2.5* ) opsys=sol2-5 ;;
|
|
1349 *-solaris2.[6-9]* ) opsys=sol2-6 ;;
|
|
1350 *-solaris* ) opsys=sol2 ;;
|
|
1351
|
|
1352 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1353 * ) opsys=bsd4-2 ;;
|
0
|
1354 esac
|
70
|
1355
|
72
|
1356 case "${canonical}" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
|
|
1357
|
70
|
1358 ## Watch out for a compiler that is guaranteed not to work.
|
0
|
1359 case "${canonical}" in
|
70
|
1360 *-solaris* ) test "$CC" = "/usr/ucb/cc" && unset CC ;;
|
0
|
1361 esac
|
|
1362 ;;
|
70
|
1363
|
|
1364 sparc-*-nextstep* ) machine=sparc opsys=nextstep ;;
|
0
|
1365
|
|
1366 ## Tadpole 68k
|
70
|
1367 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
|
0
|
1368
|
|
1369 ## Tahoe machines
|
70
|
1370 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
|
|
1371 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
|
0
|
1372
|
|
1373 ## Tandem Integrity S2
|
70
|
1374 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
|
0
|
1375
|
|
1376 ## Tektronix XD88
|
70
|
1377 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
|
0
|
1378
|
|
1379 ## Tektronix 16000 box (6130?)
|
70
|
1380 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
|
0
|
1381 ## Tektronix 4300
|
|
1382 ## src/m/tek4300.h hints that this is a m68k machine.
|
70
|
1383 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
|
0
|
1384
|
|
1385 ## Titan P2 or P3
|
|
1386 ## We seem to have lost the machine-description file titan.h!
|
70
|
1387 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
|
0
|
1388
|
|
1389 ## Ustation E30 (SS5E)
|
70
|
1390 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
|
0
|
1391
|
|
1392 ## Vaxen.
|
|
1393 vax-dec-* )
|
|
1394 machine=vax
|
|
1395 case "${canonical}" in
|
|
1396 *-bsd4.1* ) opsys=bsd4-1 ;;
|
|
1397 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
|
|
1398 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
|
|
1399 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
1400 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
1401 *-vms* ) opsys=vms ;;
|
|
1402 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1403 * ) unported=yes
|
|
1404 esac
|
|
1405 ;;
|
|
1406
|
|
1407 ## Whitechapel MG1
|
70
|
1408 ## We don't know what sort of OS runs on these; we'll let the
|
|
1409 ## operating system guessing code below try.
|
|
1410 ns16k-whitechapel-* ) machine=mg1 ;;
|
0
|
1411
|
|
1412 ## Wicat
|
70
|
1413 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
|
0
|
1414
|
|
1415 ## Intel 386 machines where we don't care about the manufacturer
|
|
1416 i[3-9]86-*-* )
|
|
1417 machine=intel386
|
|
1418 case "${canonical}" in
|
|
1419 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
|
1420 *-isc2.2* ) opsys=isc2-2 ;;
|
|
1421 *-isc4.0* ) opsys=isc4-0 ;;
|
|
1422 *-isc4.* ) opsys=isc4-1
|
|
1423 GCC_TEST_OPTIONS=-posix
|
|
1424 NON_GCC_TEST_OPTIONS=-Xp
|
|
1425 ;;
|
|
1426 *-isc* ) opsys=isc3-0 ;;
|
|
1427 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1428 *-esix* ) opsys=esix ;;
|
|
1429 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1430 *-xenix* ) opsys=xenix ;;
|
|
1431 *-linux* ) opsys=linux ;;
|
|
1432 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
|
|
1433 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
|
1434 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
1435 *-bsdi2* ) opsys=bsdos2 ;;
|
|
1436 *-sco3.2v5* ) opsys=sco5 ;
|
70
|
1437 ## This is a pain. Like the current USL cc, SCO's cc -E
|
|
1438 ## tokenizes as it preprocesses, making configure very
|
|
1439 ## unhappy. Unfortunately, /lib/cpp doesn't understand
|
|
1440 ## flags like "-b elf", so we have to cheat in order to
|
|
1441 ## pick up the right defines for UNEXEC from the s-file.
|
|
1442 ## 01/05/95 robertl@dgii.com
|
|
1443 if test "${dynamic}" = "yes" ; then
|
|
1444 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
|
|
1445 else
|
|
1446 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
|
|
1447 fi ;;
|
|
1448 *-386bsd* ) opsys=386bsd ;;
|
|
1449 *-freebsd* ) opsys=freebsd ;;
|
0
|
1450 *-nextstep* ) opsys=nextstep ;;
|
|
1451 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
|
|
1452 esac
|
|
1453 ;;
|
|
1454
|
|
1455 ## Linux/68k
|
70
|
1456 m68k-*-linux* ) machine=m68k opsys=linux ;;
|
|
1457
|
|
1458 * ) unported=yes ;;
|
0
|
1459 esac
|
|
1460
|
|
1461 ### If the code above didn't choose an operating system, just choose
|
|
1462 ### an operating system based on the configuration name. You really
|
|
1463 ### only want to use this when you have no idea what the right
|
|
1464 ### operating system is; if you know what operating systems a machine
|
|
1465 ### runs, it's cleaner to make it explicit in the case statement
|
|
1466 ### above.
|
70
|
1467 if test -z "${opsys}" ; then
|
0
|
1468 case "${canonical}" in
|
70
|
1469 *-gnu* ) opsys=gnu ;;
|
|
1470 *-bsd4.[01] ) opsys=bsd4-1 ;;
|
|
1471 *-bsd4.2 ) opsys=bsd4-2 ;;
|
|
1472 *-bsd4.3 ) opsys=bsd4-3 ;;
|
74
|
1473 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
|
|
1474 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
|
|
1475 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
|
|
1476 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
|
|
1477 *-sysv4.1* | *-sysvr4.1* ) opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
|
0
|
1478 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
|
70
|
1479 if test -z "$NON_GNU_CPP" ; then
|
|
1480 if test -f /usr/ccs/lib/cpp
|
|
1481 then NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1482 else NON_GNU_CPP=/lib/cpp
|
0
|
1483 fi
|
|
1484 fi
|
|
1485 opsys=usg5-4-2 ;;
|
70
|
1486 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
|
|
1487 * ) unported=yes ;;
|
0
|
1488 esac
|
|
1489 fi
|
|
1490
|
70
|
1491 test -z "$RANLIB" && RANLIB=ranlib
|
0
|
1492
|
|
1493 if test ${unported} = yes; then
|
|
1494 (echo "${progname}: XEmacs hasn't been ported to \`${canonical}' systems."
|
|
1495 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
|
|
1496 ) >&2
|
|
1497 exit 1
|
|
1498 fi
|
|
1499
|
70
|
1500 if test "${dynamic}" = "yes" ; then
|
0
|
1501 case "${opsys}" in
|
72
|
1502 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
|
0
|
1503 esac
|
70
|
1504 elif test "${dynamic}" = "no" ; then
|
0
|
1505 case "${opsys}" in
|
72
|
1506 sol2* | decosf1-3 | decosf3-* | linux ) opsys="${opsys}-static" ;;
|
0
|
1507 esac
|
|
1508 fi
|
|
1509
|
|
1510 dynodump_arch=''
|
70
|
1511 if test "${need_dynodump}" = "yes" ; then
|
0
|
1512 case "${canonical}" in
|
|
1513 sparc* ) dynodump_arch=sparc ;;
|
|
1514 powerpc* ) dynodump_arch=ppc ;;
|
|
1515 i[3-9]86* ) dynodump_arch=i386 ;;
|
|
1516 esac
|
|
1517 fi
|
|
1518
|
|
1519 machfile="m/${machine}.h"
|
|
1520 opsysfile="s/${opsys}.h"
|
|
1521
|
|
1522
|
|
1523 ############################################################################
|
|
1524 # #
|
|
1525 # Determine the compiler, set up for feature testing #
|
|
1526 # #
|
|
1527 ############################################################################
|
|
1528
|
|
1529
|
70
|
1530
|
|
1531
|
|
1532
|
0
|
1533 ac_ext=c
|
|
1534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
1535 ac_cpp='${CPP}'
|
|
1536 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
|
|
1537
|
|
1538 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
|
|
1539 trap 'rm -fr confdefs* $ac_clean_files' 0
|
|
1540
|
|
1541 # Save the original args if we used an alternate arg parser.
|
|
1542 ac_configure_temp="${configure_args-$*}"
|
|
1543 # Strip out --no-create and --norecursion so they don't pile up.
|
|
1544 configure_args=
|
|
1545 for ac_arg in $ac_configure_temp; do
|
|
1546 case "$ac_arg" in
|
|
1547 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
1548 | --no-cr | --no-c) ;;
|
|
1549 -norecursion | --norecursion | --norecursio | --norecursi \
|
|
1550 | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
|
|
1551 *) configure_args="$configure_args $ac_arg" ;;
|
|
1552 esac
|
|
1553 done
|
|
1554
|
|
1555 # NLS nuisances.
|
|
1556 # These must not be set unconditionally because not all systems understand
|
|
1557 # e.g. LANG=C (notably SCO).
|
|
1558 if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
|
|
1559 if test "${LANG+set}" = 'set'; then LANG=C; export LANG; fi
|
|
1560
|
|
1561 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
1562 rm -rf conftest* confdefs.h
|
|
1563 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|
1564 echo > confdefs.h
|
|
1565
|
|
1566 # A filename unique to this package, relative to the directory that
|
|
1567 # configure is in, which we can look for to find out if srcdir is correct.
|
|
1568 ac_unique_file=lisp
|
|
1569
|
|
1570 # Find the source files, if location was not specified.
|
|
1571 if test -z "$srcdir"; then
|
|
1572 ac_srcdir_defaulted=yes
|
|
1573 # Try the directory containing this script, then `..'.
|
|
1574 ac_prog=$0
|
|
1575 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
1576 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
1577 srcdir=$ac_confdir
|
|
1578 if test ! -r $srcdir/$ac_unique_file; then
|
|
1579 srcdir=..
|
|
1580 fi
|
|
1581 fi
|
|
1582 if test ! -r $srcdir/$ac_unique_file; then
|
|
1583 if test x$ac_srcdir_defaulted = xyes; then
|
|
1584 echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
|
|
1585 else
|
|
1586 echo "configure: can not find sources in ${srcdir}" >&2; exit 1
|
|
1587 fi
|
|
1588 fi
|
|
1589 ac_ext=c
|
|
1590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
1591 ac_cpp='${CPP}'
|
|
1592 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
|
|
1593
|
|
1594
|
|
1595
|
|
1596
|
70
|
1597 if test "${extra_verbose}" = "yes" ; then
|
0
|
1598 # This is identical to the version that A\C_LANG_C generates except that
|
|
1599 # it omits the redirection of all output to /dev/null.
|
|
1600 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS'
|
|
1601 fi
|
|
1602
|
|
1603 #### Choose a compiler.
|
90
|
1604 if test "x$CC" != x ; then
|
0
|
1605 cc_specified=1
|
|
1606 fi
|
|
1607
|
|
1608 # Save the value of CFLAGS that the user specified.
|
|
1609 SPECIFIED_CFLAGS="$CFLAGS"
|
|
1610
|
70
|
1611 if test "${with_gcc}" = "yes" ; then
|
0
|
1612 CC="${compiler-gcc}"
|
|
1613 GCC=1
|
70
|
1614 elif test "${with_lcc}" = "yes" ; then
|
0
|
1615 CC="${compiler-lcc}"
|
|
1616 dash_r_space=' ' # this bullshit is here because lcc for solaris
|
|
1617 # will not accept -Rargument.
|
|
1618 # It needs -R argument instead. Yuck yuck yuck.
|
70
|
1619 test -z "$NON_GNU_CPP" && NON_GNU_CPP="yes" # this is handled specially below...
|
|
1620 elif test "${compiler}" != "" ; then CC="${compiler}"
|
|
1621 elif test "${with_gcc}" = "no" ; then CC="cc"
|
|
1622 elif test "${with_lcc}" = "no" ; then
|
|
1623 test -z "$CC" && CC=cc
|
0
|
1624 else
|
|
1625 case "${canonical}" in
|
|
1626 * )
|
70
|
1627 if test -z "$CC"; then
|
0
|
1628 # Extract the first word of `gcc', so it can be a program name with args.
|
|
1629 set ac_dummy gcc; ac_word=$2
|
|
1630 test -n "$silent" || echo "checking for $ac_word"
|
|
1631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
1632 for ac_dir in $PATH; do
|
|
1633 test -z "$ac_dir" && ac_dir=.
|
|
1634 if test -f $ac_dir/$ac_word; then
|
|
1635 CC="gcc"
|
|
1636 break
|
|
1637 fi
|
|
1638 done
|
|
1639 IFS="$ac_save_ifs"
|
|
1640 fi
|
|
1641 test -z "$CC" && CC="cc"
|
|
1642 test -n "$CC" && test -n "$verbose" && echo " setting CC to $CC"
|
|
1643
|
|
1644 # Find out if we are using GNU C, under whatever name.
|
|
1645 cat > conftest.c <<EOF
|
|
1646 #ifdef __GNUC__
|
|
1647 yes
|
|
1648 #endif
|
|
1649 EOF
|
|
1650 ${CC-cc} -E conftest.c > conftest.out 2>&1
|
|
1651 if egrep yes conftest.out >/dev/null 2>&1; then
|
|
1652 GCC=1 # For later tests.
|
|
1653 fi
|
|
1654 rm -f conftest*
|
70
|
1655
|
|
1656 if test "${CC}" = "gcc" ; then
|
0
|
1657 with_gcc="yes"
|
|
1658 GCC=1
|
|
1659 fi
|
|
1660 ;;
|
|
1661 esac
|
|
1662 fi
|
|
1663
|
70
|
1664
|
0
|
1665
|
|
1666 #### Some systems specify a CPP to use unless we are using GCC.
|
|
1667 #### Now that we know whether we are using GCC, we can decide whether
|
|
1668 #### to use that one.
|
70
|
1669 if test "x$NON_GNU_CPP" = x -o x$GCC = x1
|
|
1670 then true
|
0
|
1671 else
|
70
|
1672 if test "x$CPP" = x ; then
|
|
1673 if test "${with_lcc}" = "yes" -a "${NON_GNU_CPP}" = "yes"; then
|
0
|
1674 CPP='gcc -E -traditional' # cross fingers and hope it's there....
|
|
1675 else
|
|
1676 CPP="$NON_GNU_CPP"
|
|
1677 fi
|
|
1678 fi
|
|
1679 fi
|
|
1680
|
|
1681 #### Some systems specify a CC to use unless we are using GCC.
|
|
1682 #### Now that we know whether we are using GCC, we can decide whether
|
|
1683 #### to use that one.
|
70
|
1684 if test "x$NON_GNU_CC" = x -o x$GCC = x1 -o x$cc_specified = x1
|
0
|
1685 then true
|
|
1686 else
|
|
1687 CC="$NON_GNU_CC"
|
|
1688 fi
|
|
1689
|
|
1690 ## Huh? I commented out the following because it always enabled
|
|
1691 ## the "test" options, whatever the hell those are supposed to be
|
|
1692 ## for, and the result is that SunOS builds were always static.
|
|
1693
|
70
|
1694 # test x$GCC = x1 -a "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
|
|
1695 # test x$GCC = x -a "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
|
0
|
1696
|
|
1697 ############################################################################
|
|
1698 # #
|
|
1699 # Do some misc autoconf-special tests #
|
|
1700 # #
|
|
1701 ############################################################################
|
|
1702
|
|
1703 #### Some other nice autoconf tests. If you add a test here which
|
|
1704 #### should make an entry in src/config.h, don't forget to add an
|
|
1705 #### #undef clause to src/config.h.in for autoconf to modify.
|
|
1706
|
|
1707 test -n "$silent" || echo "checking how to run the C preprocessor"
|
|
1708 if test -z "$CPP"; then
|
|
1709 # This must be in double quotes, not single quotes, because CPP may get
|
|
1710 # substituted into the Makefile and ``${CC-cc}'' will simply confuse
|
|
1711 # make. It must be expanded now.
|
|
1712 CPP="${CC-cc} -E"
|
|
1713 cat > conftest.${ac_ext} <<EOF
|
|
1714 #include "confdefs.h"
|
|
1715 #include <stdio.h>
|
|
1716 Syntax Error
|
|
1717 EOF
|
|
1718 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
1719 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
1720 echo "$ac_err"
|
|
1721 fi
|
|
1722 if test -z "$ac_err"; then
|
|
1723 :
|
|
1724 else
|
|
1725 rm -rf conftest*
|
|
1726 CPP="${CC-cc} -E -traditional-cpp"
|
|
1727 cat > conftest.${ac_ext} <<EOF
|
|
1728 #include "confdefs.h"
|
|
1729 #include <stdio.h>
|
|
1730 Syntax Error
|
|
1731 EOF
|
|
1732 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
1733 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
1734 echo "$ac_err"
|
|
1735 fi
|
|
1736 if test -z "$ac_err"; then
|
|
1737 :
|
|
1738 else
|
|
1739 rm -rf conftest*
|
|
1740 CPP=/lib/cpp
|
|
1741 fi
|
|
1742 rm -f conftest*
|
|
1743 fi
|
|
1744 rm -f conftest*
|
|
1745 fi
|
|
1746 test -n "$verbose" && echo " setting CPP to $CPP"
|
|
1747
|
|
1748
|
|
1749 case "${canonical}" in
|
|
1750 *-sun-sunos* )
|
70
|
1751 if test "${CPP}" = "acc -E" ; then
|
0
|
1752 CPP="acc -E -Xs"
|
|
1753 fi
|
|
1754 ;;
|
|
1755 esac
|
|
1756
|
|
1757 if test -z "$RANLIB"; then
|
|
1758 # Extract the first word of `ranlib', so it can be a program name with args.
|
|
1759 set ac_dummy ranlib; ac_word=$2
|
|
1760 test -n "$silent" || echo "checking for $ac_word"
|
|
1761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
1762 for ac_dir in $PATH; do
|
|
1763 test -z "$ac_dir" && ac_dir=.
|
|
1764 if test -f $ac_dir/$ac_word; then
|
|
1765 RANLIB="ranlib"
|
|
1766 break
|
|
1767 fi
|
|
1768 done
|
|
1769 IFS="$ac_save_ifs"
|
|
1770 fi
|
|
1771 test -z "$RANLIB" && RANLIB=":"
|
|
1772 test -n "$RANLIB" && test -n "$verbose" && echo " setting RANLIB to $RANLIB"
|
|
1773
|
|
1774 # Make sure to not get the incompatible SysV /etc/install and
|
|
1775 # /usr/sbin/install, which might be in PATH before a BSD-like install,
|
|
1776 # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
|
|
1777 # or the AFS install, which mishandles nonexistent args, or
|
|
1778 # /usr/ucb/install on SVR4, which tries to use the nonexistent group
|
|
1779 # `staff', or /sbin/install on IRIX which has incompatible command-line
|
|
1780 # syntax. Sigh.
|
|
1781 #
|
|
1782 # On most BSDish systems install is in /usr/bin, not /usr/ucb
|
|
1783 # anyway.
|
|
1784 # This turns out not to be true, so the mere pathname isn't an indication
|
|
1785 # of whether the program works. What we really need is a set of tests for
|
|
1786 # the install program to see if it actually works in all the required ways.
|
|
1787 #
|
|
1788 # Avoid using ./install, which might have been erroneously created
|
|
1789 # by make from ./install.sh.
|
|
1790 if test -z "${INSTALL}"; then
|
|
1791 test -n "$silent" || echo "checking for a BSD compatible install"
|
|
1792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
1793 for ac_dir in $PATH; do
|
|
1794 case "$ac_dir" in
|
|
1795 ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
|
|
1796 *)
|
|
1797 # OSF1 and SCO ODT 3.0 have their own names for install.
|
|
1798 for ac_prog in installbsd scoinst install; do
|
|
1799 if test -f $ac_dir/$ac_prog; then
|
|
1800 if test $ac_prog = install &&
|
|
1801 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
1802 # AIX install. It has an incompatible calling convention.
|
|
1803 # OSF/1 installbsd also uses dspmsg, but is usable.
|
|
1804 :
|
|
1805 else
|
|
1806 INSTALL="$ac_dir/$ac_prog -c"
|
|
1807 break 2
|
|
1808 fi
|
|
1809 fi
|
|
1810 done
|
|
1811 ;;
|
|
1812 esac
|
|
1813 done
|
|
1814 IFS="$ac_save_ifs"
|
|
1815 fi
|
|
1816
|
|
1817 if test -z "$INSTALL"; then
|
|
1818 # As a last resort, use the slow shell script.
|
|
1819 for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
|
|
1820 if test -f $ac_dir/install.sh; then
|
|
1821 INSTALL="$ac_dir/install.sh -c"; break
|
|
1822 fi
|
|
1823 done
|
|
1824 fi
|
|
1825 if test -z "$INSTALL"; then
|
|
1826 echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
|
|
1827 fi
|
|
1828 test -n "$verbose" && echo " setting INSTALL to $INSTALL"
|
|
1829
|
|
1830 # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
|
|
1831 # It thinks the first close brace ends the variable substitution.
|
|
1832 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
1833 test -n "$verbose" && echo " setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
|
|
1834
|
|
1835 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
1836 test -n "$verbose" && echo " setting INSTALL_DATA to $INSTALL_DATA"
|
|
1837
|
|
1838 for ac_prog in 'bison -y' byacc
|
|
1839 do
|
|
1840 if test -z "$YACC"; then
|
|
1841 # Extract the first word of `$ac_prog', so it can be a program name with args.
|
|
1842 set ac_dummy $ac_prog; ac_word=$2
|
|
1843 test -n "$silent" || echo "checking for $ac_word"
|
|
1844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
1845 for ac_dir in $PATH; do
|
|
1846 test -z "$ac_dir" && ac_dir=.
|
|
1847 if test -f $ac_dir/$ac_word; then
|
|
1848 YACC="$ac_prog"
|
|
1849 break
|
|
1850 fi
|
|
1851 done
|
|
1852 IFS="$ac_save_ifs"
|
|
1853 fi
|
|
1854
|
|
1855 test -n "$YACC" && test -n "$verbose" && echo " setting YACC to $YACC"
|
|
1856
|
|
1857 test -n "$YACC" && break
|
|
1858 done
|
|
1859 test -n "$YACC" || YACC="yacc"
|
|
1860
|
|
1861
|
|
1862 test -n "$silent" || echo "checking for AIX"
|
|
1863 cat > conftest.${ac_ext} <<EOF
|
|
1864 #include "confdefs.h"
|
|
1865 #ifdef _AIX
|
|
1866 yes
|
|
1867 #endif
|
|
1868
|
|
1869 EOF
|
|
1870 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
|
|
1871 if egrep "yes" conftest.out >/dev/null 2>&1; then
|
|
1872 rm -rf conftest*
|
|
1873
|
|
1874 {
|
|
1875 test -n "$verbose" && \
|
|
1876 echo " defining _ALL_SOURCE"
|
|
1877 echo "#define" _ALL_SOURCE "1" >> confdefs.h
|
|
1878 DEFS="$DEFS -D_ALL_SOURCE=1"
|
|
1879 ac_sed_defs="${ac_sed_defs}\${ac_dA}_ALL_SOURCE\${ac_dB}_ALL_SOURCE\${ac_dC}1\${ac_dD}
|
|
1880 \${ac_uA}_ALL_SOURCE\${ac_uB}_ALL_SOURCE\${ac_uC}1\${ac_uD}
|
|
1881 \${ac_eA}_ALL_SOURCE\${ac_eB}_ALL_SOURCE\${ac_eC}1\${ac_eD}
|
|
1882 "
|
|
1883 }
|
|
1884
|
|
1885
|
|
1886 fi
|
|
1887 rm -f conftest*
|
|
1888
|
|
1889
|
|
1890
|
70
|
1891 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h utime.h sys/wait.h libintl.h locale.h libgen.h linux/version.h kstat.h sys/pstat.h
|
0
|
1892 do
|
|
1893 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
|
|
1894 test -n "$silent" || echo "checking for ${ac_hdr}"
|
|
1895 cat > conftest.${ac_ext} <<EOF
|
|
1896 #include "confdefs.h"
|
|
1897 #include <${ac_hdr}>
|
|
1898 EOF
|
|
1899 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
1900 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
1901 echo "$ac_err"
|
|
1902 fi
|
|
1903 if test -z "$ac_err"; then
|
|
1904 rm -rf conftest*
|
|
1905
|
|
1906 {
|
|
1907 test -n "$verbose" && \
|
|
1908 echo " defining ${ac_tr_hdr}"
|
|
1909 echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
|
|
1910 DEFS="$DEFS -D${ac_tr_hdr}=1"
|
|
1911 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
|
|
1912 \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
|
|
1913 \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
|
|
1914 "
|
|
1915 }
|
|
1916
|
|
1917
|
|
1918 fi
|
|
1919 rm -f conftest*
|
|
1920 done
|
|
1921
|
|
1922 test -n "$silent" || echo "checking for ANSI C header files"
|
|
1923 cat > conftest.${ac_ext} <<EOF
|
|
1924 #include "confdefs.h"
|
|
1925 #include <stdlib.h>
|
|
1926 #include <stdarg.h>
|
|
1927 #include <string.h>
|
|
1928 #include <float.h>
|
|
1929 EOF
|
|
1930 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
1931 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
1932 echo "$ac_err"
|
|
1933 fi
|
|
1934 if test -z "$ac_err"; then
|
|
1935 rm -rf conftest*
|
|
1936 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
1937 echo '#include "confdefs.h"
|
|
1938 #include <string.h>' > conftest.${ac_ext}
|
|
1939 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
|
|
1940 if egrep "memchr" conftest.out >/dev/null 2>&1; then
|
|
1941 rm -rf conftest*
|
|
1942 # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
1943 cat > conftest.${ac_ext} <<EOF
|
|
1944 #include "confdefs.h"
|
|
1945 #include <ctype.h>
|
|
1946 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
1947 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
1948 #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
|
|
1949 int main () { int i; for (i = 0; i < 256; i++)
|
|
1950 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
1951 exit (0); }
|
|
1952
|
|
1953 EOF
|
|
1954 eval $ac_compile
|
|
1955 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
1956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
1957 echo '#include "confdefs.h"
|
|
1958 #include <stdlib.h>' > conftest.${ac_ext}
|
|
1959 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
|
|
1960 if egrep "free" conftest.out >/dev/null 2>&1; then
|
|
1961 rm -rf conftest*
|
|
1962
|
|
1963 {
|
|
1964 test -n "$verbose" && \
|
|
1965 echo " defining STDC_HEADERS"
|
|
1966 echo "#define" STDC_HEADERS "1" >> confdefs.h
|
|
1967 DEFS="$DEFS -DSTDC_HEADERS=1"
|
|
1968 ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
|
|
1969 \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
|
|
1970 \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
|
|
1971 "
|
|
1972 }
|
|
1973
|
|
1974
|
|
1975 fi
|
|
1976 rm -f conftest*
|
|
1977
|
|
1978
|
|
1979 fi
|
|
1980 rm -fr conftest*
|
|
1981
|
|
1982 fi
|
|
1983 rm -f conftest*
|
|
1984
|
|
1985
|
|
1986 fi
|
|
1987 rm -f conftest*
|
|
1988
|
|
1989 test -n "$silent" || echo "checking for whether time.h and sys/time.h may both be included"
|
|
1990 cat > conftest.${ac_ext} <<EOF
|
|
1991 #include "confdefs.h"
|
|
1992 #include <sys/types.h>
|
|
1993 #include <sys/time.h>
|
|
1994 #include <time.h>
|
|
1995 int main() { return 0; }
|
|
1996 int t() { struct tm *tp;; return 0; }
|
|
1997 EOF
|
|
1998 if eval $ac_compile; then
|
|
1999 rm -rf conftest*
|
|
2000
|
|
2001 {
|
|
2002 test -n "$verbose" && \
|
|
2003 echo " defining TIME_WITH_SYS_TIME"
|
|
2004 echo "#define" TIME_WITH_SYS_TIME "1" >> confdefs.h
|
|
2005 DEFS="$DEFS -DTIME_WITH_SYS_TIME=1"
|
|
2006 ac_sed_defs="${ac_sed_defs}\${ac_dA}TIME_WITH_SYS_TIME\${ac_dB}TIME_WITH_SYS_TIME\${ac_dC}1\${ac_dD}
|
|
2007 \${ac_uA}TIME_WITH_SYS_TIME\${ac_uB}TIME_WITH_SYS_TIME\${ac_uC}1\${ac_uD}
|
|
2008 \${ac_eA}TIME_WITH_SYS_TIME\${ac_eB}TIME_WITH_SYS_TIME\${ac_eC}1\${ac_eD}
|
|
2009 "
|
|
2010 }
|
|
2011
|
|
2012
|
|
2013 fi
|
|
2014 rm -f conftest*
|
|
2015
|
|
2016 test -n "$silent" || echo "checking for sys_siglist declaration in signal.h or unistd.h"
|
|
2017 cat > conftest.${ac_ext} <<EOF
|
|
2018 #include "confdefs.h"
|
|
2019 #include <signal.h>
|
|
2020 /* NetBSD declares sys_siglist in <unistd.h>. */
|
|
2021 #ifdef HAVE_UNISTD_H
|
|
2022 #include <unistd.h>
|
|
2023 #endif
|
|
2024 int main() { return 0; }
|
|
2025 int t() { char *msg = *(sys_siglist + 1);; return 0; }
|
|
2026 EOF
|
|
2027 if eval $ac_compile; then
|
|
2028 rm -rf conftest*
|
|
2029
|
|
2030 {
|
|
2031 test -n "$verbose" && \
|
|
2032 echo " defining SYS_SIGLIST_DECLARED"
|
|
2033 echo "#define" SYS_SIGLIST_DECLARED "1" >> confdefs.h
|
|
2034 DEFS="$DEFS -DSYS_SIGLIST_DECLARED=1"
|
|
2035 ac_sed_defs="${ac_sed_defs}\${ac_dA}SYS_SIGLIST_DECLARED\${ac_dB}SYS_SIGLIST_DECLARED\${ac_dC}1\${ac_dD}
|
|
2036 \${ac_uA}SYS_SIGLIST_DECLARED\${ac_uB}SYS_SIGLIST_DECLARED\${ac_uC}1\${ac_uD}
|
|
2037 \${ac_eA}SYS_SIGLIST_DECLARED\${ac_eB}SYS_SIGLIST_DECLARED\${ac_eC}1\${ac_eD}
|
|
2038 "
|
|
2039 }
|
|
2040
|
|
2041
|
|
2042 fi
|
|
2043 rm -f conftest*
|
|
2044
|
|
2045
|
|
2046 test -n "$silent" || echo "checking for struct utimbuf"
|
|
2047 cat > conftest.${ac_ext} <<EOF
|
|
2048 #include "confdefs.h"
|
|
2049 #ifdef TIME_WITH_SYS_TIME
|
|
2050 #include <sys/time.h>
|
|
2051 #include <time.h>
|
|
2052 #else
|
|
2053 #ifdef HAVE_SYS_TIME_H
|
|
2054 #include <sys/time.h>
|
|
2055 #else
|
|
2056 #include <time.h>
|
|
2057 #endif
|
|
2058 #endif
|
|
2059 #ifdef HAVE_UTIME_H
|
|
2060 #include <utime.h>
|
|
2061 #endif
|
|
2062 int main() { return 0; }
|
|
2063 int t() { static struct utimbuf x; x.actime = x.modtime;; return 0; }
|
|
2064 EOF
|
|
2065 if eval $ac_compile; then
|
|
2066 rm -rf conftest*
|
|
2067
|
|
2068 {
|
|
2069 test -n "$verbose" && \
|
|
2070 echo " defining HAVE_STRUCT_UTIMBUF"
|
|
2071 echo "#define" HAVE_STRUCT_UTIMBUF "1" >> confdefs.h
|
|
2072 DEFS="$DEFS -DHAVE_STRUCT_UTIMBUF=1"
|
|
2073 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STRUCT_UTIMBUF\${ac_dB}HAVE_STRUCT_UTIMBUF\${ac_dC}1\${ac_dD}
|
|
2074 \${ac_uA}HAVE_STRUCT_UTIMBUF\${ac_uB}HAVE_STRUCT_UTIMBUF\${ac_uC}1\${ac_uD}
|
|
2075 \${ac_eA}HAVE_STRUCT_UTIMBUF\${ac_eB}HAVE_STRUCT_UTIMBUF\${ac_eC}1\${ac_eD}
|
|
2076 "
|
|
2077 }
|
|
2078
|
|
2079
|
|
2080 fi
|
|
2081 rm -f conftest*
|
|
2082
|
|
2083
|
|
2084 test -n "$silent" || echo "checking for return type of signal handlers"
|
|
2085 cat > conftest.${ac_ext} <<EOF
|
|
2086 #include "confdefs.h"
|
|
2087 #include <sys/types.h>
|
|
2088 #include <signal.h>
|
|
2089 #ifdef signal
|
|
2090 #undef signal
|
|
2091 #endif
|
|
2092 extern void (*signal ()) ();
|
|
2093 int main() { return 0; }
|
|
2094 int t() { int i;; return 0; }
|
|
2095 EOF
|
|
2096 if eval $ac_compile; then
|
|
2097 rm -rf conftest*
|
|
2098
|
|
2099 {
|
|
2100 test -n "$verbose" && \
|
|
2101 echo " defining" RETSIGTYPE to be "void"
|
|
2102 echo "#define" RETSIGTYPE "void" >> confdefs.h
|
|
2103 DEFS="$DEFS -DRETSIGTYPE=void"
|
|
2104 ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
|
|
2105 \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
|
|
2106 \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
|
|
2107 "
|
|
2108 }
|
|
2109
|
|
2110
|
|
2111 else
|
|
2112 rm -rf conftest*
|
|
2113
|
|
2114 {
|
|
2115 test -n "$verbose" && \
|
|
2116 echo " defining" RETSIGTYPE to be "int"
|
|
2117 echo "#define" RETSIGTYPE "int" >> confdefs.h
|
|
2118 DEFS="$DEFS -DRETSIGTYPE=int"
|
|
2119 ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
|
|
2120 \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
|
|
2121 \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
|
|
2122 "
|
|
2123 }
|
|
2124
|
|
2125 fi
|
|
2126 rm -f conftest*
|
|
2127
|
|
2128
|
|
2129
|
|
2130 test -n "$silent" || echo "checking for struct timeval"
|
|
2131 cat > conftest.${ac_ext} <<EOF
|
|
2132 #include "confdefs.h"
|
|
2133 #ifdef TIME_WITH_SYS_TIME
|
|
2134 #include <sys/time.h>
|
|
2135 #include <time.h>
|
|
2136 #else
|
|
2137 #ifdef HAVE_SYS_TIME_H
|
|
2138 #include <sys/time.h>
|
|
2139 #else
|
|
2140 #include <time.h>
|
|
2141 #endif
|
|
2142 #endif
|
|
2143 int main() { return 0; }
|
|
2144 int t() { static struct timeval x; x.tv_sec = x.tv_usec;; return 0; }
|
|
2145 EOF
|
|
2146 if eval $ac_compile; then
|
|
2147 rm -rf conftest*
|
|
2148
|
|
2149 HAVE_TIMEVAL=yes
|
|
2150
|
|
2151 {
|
|
2152 test -n "$verbose" && \
|
|
2153 echo " defining HAVE_TIMEVAL"
|
|
2154 echo "#define" HAVE_TIMEVAL "1" >> confdefs.h
|
|
2155 DEFS="$DEFS -DHAVE_TIMEVAL=1"
|
|
2156 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TIMEVAL\${ac_dB}HAVE_TIMEVAL\${ac_dC}1\${ac_dD}
|
|
2157 \${ac_uA}HAVE_TIMEVAL\${ac_uB}HAVE_TIMEVAL\${ac_uC}1\${ac_uD}
|
|
2158 \${ac_eA}HAVE_TIMEVAL\${ac_eB}HAVE_TIMEVAL\${ac_eC}1\${ac_eD}
|
|
2159 "
|
|
2160 }
|
|
2161
|
|
2162
|
|
2163 else
|
|
2164 rm -rf conftest*
|
|
2165 HAVE_TIMEVAL=no
|
|
2166 fi
|
|
2167 rm -f conftest*
|
|
2168
|
|
2169
|
|
2170 test -n "$silent" || echo "checking for struct tm in time.h"
|
|
2171 cat > conftest.${ac_ext} <<EOF
|
|
2172 #include "confdefs.h"
|
|
2173 #include <sys/types.h>
|
|
2174 #include <time.h>
|
|
2175 int main() { return 0; }
|
|
2176 int t() { struct tm *tp; tp->tm_sec;; return 0; }
|
|
2177 EOF
|
|
2178 if eval $ac_compile; then
|
|
2179 :
|
|
2180 else
|
|
2181 rm -rf conftest*
|
|
2182
|
|
2183 {
|
|
2184 test -n "$verbose" && \
|
|
2185 echo " defining TM_IN_SYS_TIME"
|
|
2186 echo "#define" TM_IN_SYS_TIME "1" >> confdefs.h
|
|
2187 DEFS="$DEFS -DTM_IN_SYS_TIME=1"
|
|
2188 ac_sed_defs="${ac_sed_defs}\${ac_dA}TM_IN_SYS_TIME\${ac_dB}TM_IN_SYS_TIME\${ac_dC}1\${ac_dD}
|
|
2189 \${ac_uA}TM_IN_SYS_TIME\${ac_uB}TM_IN_SYS_TIME\${ac_uC}1\${ac_uD}
|
|
2190 \${ac_eA}TM_IN_SYS_TIME\${ac_eB}TM_IN_SYS_TIME\${ac_eC}1\${ac_eD}
|
|
2191 "
|
|
2192 }
|
|
2193
|
|
2194 fi
|
|
2195 rm -f conftest*
|
|
2196
|
|
2197 ac_decl='#include <sys/types.h>
|
|
2198 '
|
|
2199 case "$DEFS" in
|
|
2200 *TM_IN_SYS_TIME*) ac_decl="$ac_decl
|
|
2201 #include <sys/time.h>
|
|
2202 " ;;
|
|
2203 *) ac_decl="$ac_decl
|
|
2204 #include <time.h>
|
|
2205 " ;;
|
|
2206 esac
|
|
2207 test -n "$silent" || echo "checking for tm_zone in struct tm"
|
|
2208 cat > conftest.${ac_ext} <<EOF
|
|
2209 #include "confdefs.h"
|
|
2210 $ac_decl
|
|
2211 int main() { return 0; }
|
|
2212 int t() { struct tm tm; tm.tm_zone;; return 0; }
|
|
2213 EOF
|
|
2214 if eval $ac_compile; then
|
|
2215 rm -rf conftest*
|
|
2216
|
|
2217 {
|
|
2218 test -n "$verbose" && \
|
|
2219 echo " defining HAVE_TM_ZONE"
|
|
2220 echo "#define" HAVE_TM_ZONE "1" >> confdefs.h
|
|
2221 DEFS="$DEFS -DHAVE_TM_ZONE=1"
|
|
2222 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TM_ZONE\${ac_dB}HAVE_TM_ZONE\${ac_dC}1\${ac_dD}
|
|
2223 \${ac_uA}HAVE_TM_ZONE\${ac_uB}HAVE_TM_ZONE\${ac_uC}1\${ac_uD}
|
|
2224 \${ac_eA}HAVE_TM_ZONE\${ac_eB}HAVE_TM_ZONE\${ac_eC}1\${ac_eD}
|
|
2225 "
|
|
2226 }
|
|
2227
|
|
2228
|
|
2229 else
|
|
2230 rm -rf conftest*
|
|
2231 ac_no_tm_zone=1
|
|
2232 fi
|
|
2233 rm -f conftest*
|
|
2234
|
|
2235 if test -n "$ac_no_tm_zone"; then
|
|
2236 test -n "$silent" || echo "checking for tzname"
|
|
2237 cat > conftest.${ac_ext} <<EOF
|
|
2238 #include "confdefs.h"
|
|
2239 #include <time.h>
|
|
2240 #ifndef tzname /* For SGI. */
|
|
2241 extern char *tzname[]; /* RS6000 and others want it this way. */
|
|
2242 #endif
|
|
2243 int main() { return 0; }
|
|
2244 int t() { atoi(*tzname);; return 0; }
|
|
2245 EOF
|
|
2246 if eval $ac_compile; then
|
|
2247 rm -rf conftest*
|
|
2248
|
|
2249 {
|
|
2250 test -n "$verbose" && \
|
|
2251 echo " defining HAVE_TZNAME"
|
|
2252 echo "#define" HAVE_TZNAME "1" >> confdefs.h
|
|
2253 DEFS="$DEFS -DHAVE_TZNAME=1"
|
|
2254 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TZNAME\${ac_dB}HAVE_TZNAME\${ac_dC}1\${ac_dD}
|
|
2255 \${ac_uA}HAVE_TZNAME\${ac_uB}HAVE_TZNAME\${ac_uC}1\${ac_uD}
|
|
2256 \${ac_eA}HAVE_TZNAME\${ac_eB}HAVE_TZNAME\${ac_eC}1\${ac_eD}
|
|
2257 "
|
|
2258 }
|
|
2259
|
|
2260
|
|
2261 fi
|
|
2262 rm -f conftest*
|
|
2263
|
|
2264 fi
|
|
2265
|
|
2266
|
|
2267 ac_prog='/* Ultrix mips cc rejects this. */
|
|
2268 typedef int charset[2]; const charset x;
|
|
2269 /* SunOS 4.1.1 cc rejects this. */
|
|
2270 char const *const *ccp;
|
|
2271 char **p;
|
|
2272 /* AIX XL C 1.02.0.0 rejects this.
|
|
2273 It does not let you subtract one const X* pointer from another in an arm
|
|
2274 of an if-expression whose if-part is not a constant expression */
|
|
2275 const char *g = "string";
|
|
2276 ccp = &g + (g ? g-g : 0);
|
|
2277 /* HPUX 7.0 cc rejects these. */
|
|
2278 ++ccp;
|
|
2279 p = (char**) ccp;
|
|
2280 ccp = (char const *const *) p;
|
|
2281 { /* SCO 3.2v4 cc rejects this. */
|
|
2282 char *t;
|
|
2283 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
2284
|
|
2285 *t++ = 0;
|
|
2286 }
|
|
2287 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
2288 int x[] = {25,17};
|
|
2289 const int *foo = &x[0];
|
|
2290 ++foo;
|
|
2291 }
|
|
2292 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
2293 typedef const int *iptr;
|
|
2294 iptr p = 0;
|
|
2295 ++p;
|
|
2296 }
|
|
2297 { /* AIX XL C 1.02.0.0 rejects this saying
|
|
2298 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
2299 struct s { int j; const int *ap[3]; };
|
|
2300 struct s *b; b->j = 5;
|
|
2301 }
|
|
2302 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
2303 const int foo = 10;
|
|
2304 }'
|
|
2305 test -n "$silent" || echo "checking for lack of working const"
|
|
2306 cat > conftest.${ac_ext} <<EOF
|
|
2307 #include "confdefs.h"
|
|
2308
|
|
2309 int main() { return 0; }
|
|
2310 int t() { $ac_prog; return 0; }
|
|
2311 EOF
|
|
2312 if eval $ac_compile; then
|
|
2313 :
|
|
2314 else
|
|
2315 rm -rf conftest*
|
|
2316
|
|
2317 {
|
|
2318 test -n "$verbose" && \
|
|
2319 echo " defining" const to be empty
|
|
2320 echo "#define" const "" >> confdefs.h
|
|
2321 DEFS="$DEFS -Dconst="
|
|
2322 ac_sed_defs="${ac_sed_defs}\${ac_dA}const\${ac_dB}const\${ac_dC}\${ac_dD}
|
|
2323 \${ac_uA}const\${ac_uB}const\${ac_uC}\${ac_uD}
|
|
2324 \${ac_eA}const\${ac_eB}const\${ac_eC}\${ac_eD}
|
|
2325 "
|
|
2326 }
|
|
2327
|
|
2328 fi
|
|
2329 rm -f conftest*
|
|
2330
|
|
2331
|
|
2332 cat > conftestmake <<'EOF'
|
|
2333 all:
|
|
2334 @echo 'ac_maketemp="${MAKE}"'
|
|
2335 EOF
|
|
2336 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
2337 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|
2338 if test -n "$ac_maketemp"; then SET_MAKE=
|
|
2339 else SET_MAKE="MAKE=${MAKE-make}"; fi
|
|
2340 rm -f conftestmake
|
|
2341
|
|
2342
|
|
2343 test -n "$silent" || echo "checking byte ordering"
|
|
2344 cat > conftest.${ac_ext} <<EOF
|
|
2345 #include "confdefs.h"
|
|
2346 main () {
|
|
2347 /* Are we little or big endian? From Harbison&Steele. */
|
|
2348 union
|
|
2349 {
|
|
2350 long l;
|
|
2351 char c[sizeof (long)];
|
|
2352 } u;
|
|
2353 u.l = 1;
|
|
2354 exit (u.c[sizeof (long) - 1] == 1);
|
|
2355 }
|
|
2356 EOF
|
|
2357 eval $ac_compile
|
|
2358 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
2359 :
|
|
2360 else
|
|
2361
|
|
2362 {
|
|
2363 test -n "$verbose" && \
|
|
2364 echo " defining WORDS_BIGENDIAN"
|
|
2365 echo "#define" WORDS_BIGENDIAN "1" >> confdefs.h
|
|
2366 DEFS="$DEFS -DWORDS_BIGENDIAN=1"
|
|
2367 ac_sed_defs="${ac_sed_defs}\${ac_dA}WORDS_BIGENDIAN\${ac_dB}WORDS_BIGENDIAN\${ac_dC}1\${ac_dD}
|
|
2368 \${ac_uA}WORDS_BIGENDIAN\${ac_uB}WORDS_BIGENDIAN\${ac_uC}1\${ac_uD}
|
|
2369 \${ac_eA}WORDS_BIGENDIAN\${ac_eB}WORDS_BIGENDIAN\${ac_eC}1\${ac_eD}
|
|
2370 "
|
|
2371 }
|
|
2372
|
|
2373 fi
|
|
2374 rm -fr conftest*
|
|
2375
|
|
2376
|
|
2377 test -n "$silent" || echo "checking for long file names"
|
|
2378 ac_some_dir_failed=false
|
|
2379 # Test for long file names in all the places we know might matter:
|
|
2380 # . the current directory, where building will happen
|
|
2381 # /tmp where it might want to write temporary files
|
|
2382 # /var/tmp likewise
|
|
2383 # /usr/tmp likewise
|
|
2384 # $prefix/lib where we will be installing things
|
|
2385 # $exec_prefix/lib likewise
|
|
2386 # eval it to expand exec_prefix.
|
|
2387 for ac_dir in `eval echo . /tmp /var/tmp /usr/tmp $prefix/lib $exec_prefix/lib` ; do
|
|
2388 test -d $ac_dir || continue
|
|
2389 test -w $ac_dir || continue # It's less confusing to not echo anything here.
|
|
2390 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
|
|
2391 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
|
|
2392 val=`cat $ac_dir/conftest9012345 2>/dev/null`
|
|
2393 test -f $ac_dir/conftest9012345 && test "$val" = 1 || ac_some_dir_failed=true
|
|
2394 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2> /dev/null
|
|
2395 done
|
|
2396 $ac_some_dir_failed ||
|
|
2397 {
|
|
2398 test -n "$verbose" && \
|
|
2399 echo " defining HAVE_LONG_FILE_NAMES"
|
|
2400 echo "#define" HAVE_LONG_FILE_NAMES "1" >> confdefs.h
|
|
2401 DEFS="$DEFS -DHAVE_LONG_FILE_NAMES=1"
|
|
2402 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LONG_FILE_NAMES\${ac_dB}HAVE_LONG_FILE_NAMES\${ac_dC}1\${ac_dD}
|
|
2403 \${ac_uA}HAVE_LONG_FILE_NAMES\${ac_uB}HAVE_LONG_FILE_NAMES\${ac_uC}1\${ac_uD}
|
|
2404 \${ac_eA}HAVE_LONG_FILE_NAMES\${ac_eB}HAVE_LONG_FILE_NAMES\${ac_eC}1\${ac_eD}
|
|
2405 "
|
|
2406 }
|
|
2407
|
|
2408
|
|
2409
|
|
2410 echo "checking for -xildoff compiler flag"
|
|
2411 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
2412 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
2413 :
|
|
2414 else
|
|
2415 test -n "$verbose" && echo " defining NEED_XILDOFF"
|
|
2416 need_xildoff=yes
|
|
2417 fi
|
|
2418 fi
|
|
2419
|
|
2420
|
|
2421 # What the hell was this doing here??????
|
|
2422 ### echo > confdefs.h # this gets nuked above...
|
|
2423
|
|
2424 ############################################################################
|
|
2425 # #
|
|
2426 # Choose a window system #
|
|
2427 # #
|
|
2428 ############################################################################
|
|
2429
|
|
2430 #### Choose a window system.
|
|
2431 echo "checking for specified window system"
|
|
2432
|
|
2433 window_system=''
|
70
|
2434 case "${with_x11}" in
|
|
2435 yes ) window_system=${window_system}x11 ;;
|
|
2436 no ) window_system=${window_system}none ;;
|
0
|
2437 esac
|
|
2438
|
|
2439 case "${window_system}" in
|
|
2440 "none" | "x11" ) ;;
|
|
2441 "" )
|
|
2442 # --x-includes or --x-libraries implies --with-x11.
|
70
|
2443 if test -n "${x_includes}" -o -n "${x_libraries}"; then
|
0
|
2444 window_system=x11
|
|
2445 else
|
|
2446 echo " No window system specified. Looking for X11."
|
|
2447 # If the user didn't specify a window system and we found X11, use it.
|
70
|
2448 if test -r /usr/lib/libX11.a \
|
0
|
2449 -o -d /usr/include/X11 \
|
|
2450 -o -d /usr/X386/include \
|
|
2451 -o -d /usr/X11R6/include \
|
70
|
2452 -o -d ${x_includes}/X11 ; then
|
0
|
2453 window_system=x11
|
|
2454 fi
|
|
2455 fi
|
|
2456 ;;
|
|
2457 * )
|
|
2458 echo "Don't specify a window system more than once." >&2
|
|
2459 exit 1
|
|
2460 ;;
|
|
2461 esac
|
|
2462
|
70
|
2463
|
|
2464 case "${window_system}" in "" | "x11" )
|
0
|
2465 ### If the user hasn't specified where we should find X, try
|
|
2466 ### letting autoconf figure that out.
|
70
|
2467 if test -z "${x_includes}${x_libraries}" ; then
|
|
2468 # If we find X, set shell vars x_includes and x_libraries to the paths.
|
0
|
2469 no_x=true
|
|
2470 if test "x$with_x" != xno; then
|
|
2471 test -n "$silent" || echo "checking for X include and library files with xmkmf"
|
|
2472 rm -fr conftestdir
|
|
2473 if mkdir conftestdir; then
|
|
2474 cd conftestdir
|
|
2475 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
|
2476 cat > Imakefile <<'EOF'
|
|
2477 acfindx:
|
|
2478 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
|
2479 EOF
|
|
2480 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
2481 no_x=
|
|
2482 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
2483 eval `make acfindx 2>/dev/null | grep -v make`
|
|
2484 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
|
2485 if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
|
|
2486 then
|
|
2487 ac_im_usrlibdir=$ac_im_libdir
|
|
2488 fi
|
|
2489 case "$ac_im_incroot" in
|
|
2490 /usr/include) ;;
|
|
2491 *) test -z "$x_includes" && x_includes="$ac_im_incroot" ;;
|
|
2492 esac
|
|
2493 case "$ac_im_usrlibdir" in
|
|
2494 /usr/lib | /lib) ;;
|
|
2495 *) test -z "$x_libraries" && x_libraries="$ac_im_usrlibdir" ;;
|
|
2496 esac
|
|
2497 fi
|
|
2498 cd ..
|
|
2499 rm -fr conftestdir
|
|
2500 fi
|
|
2501
|
|
2502 if test -z "$ac_im_usrlibdir"; then
|
|
2503 test -n "$silent" || echo "checking for X include and library files directly"
|
|
2504 if test ".$x_direct_test_library" = . ; then
|
|
2505 x_direct_test_library='Xt'
|
|
2506 fi
|
|
2507 if test ".$x_direct_test_include" = . ; then
|
|
2508 x_direct_test_include='X11/Intrinsic.h'
|
|
2509 fi
|
|
2510 cat > conftest.${ac_ext} <<EOF
|
|
2511 #include "confdefs.h"
|
|
2512 #include <$x_direct_test_include>
|
|
2513 EOF
|
|
2514 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
2515 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
2516 echo "$ac_err"
|
|
2517 fi
|
|
2518 if test -z "$ac_err"; then
|
|
2519 rm -rf conftest*
|
|
2520 no_x=
|
|
2521
|
|
2522 else
|
|
2523 rm -rf conftest*
|
|
2524 for ac_dir in \
|
|
2525 /usr/X11R6/include \
|
|
2526 /usr/X11R5/include \
|
|
2527 /usr/X11R4/include \
|
|
2528 \
|
|
2529 /usr/include/X11R6 \
|
|
2530 /usr/include/X11R5 \
|
|
2531 /usr/include/X11R4 \
|
|
2532 \
|
|
2533 /usr/local/X11R6/include \
|
|
2534 /usr/local/X11R5/include \
|
|
2535 /usr/local/X11R4/include \
|
|
2536 \
|
|
2537 /usr/local/include/X11R6 \
|
|
2538 /usr/local/include/X11R5 \
|
|
2539 /usr/local/include/X11R4 \
|
|
2540 \
|
|
2541 /usr/X11/include \
|
|
2542 /usr/include/X11 \
|
|
2543 /usr/local/X11/include \
|
|
2544 /usr/local/include/X11 \
|
|
2545 \
|
|
2546 /usr/X386/include \
|
|
2547 /usr/x386/include \
|
|
2548 /usr/XFree86/include/X11 \
|
|
2549 \
|
|
2550 /usr/include \
|
|
2551 /usr/local/include \
|
|
2552 /usr/unsupported/include \
|
|
2553 /usr/athena/include \
|
|
2554 /usr/local/x11r5/include \
|
|
2555 /usr/lpp/Xamples/include \
|
|
2556 \
|
|
2557 /usr/openwin/include \
|
|
2558 /usr/openwin/share/include \
|
|
2559 ; \
|
|
2560 do
|
|
2561 if test -r "$ac_dir/$x_direct_test_include"; then
|
|
2562 test -z "$x_includes" && x_includes=$ac_dir
|
|
2563 no_x=
|
|
2564 break
|
|
2565 fi
|
|
2566 done
|
|
2567 fi
|
|
2568 rm -f conftest*
|
|
2569
|
|
2570 # Check for the libraries. First see if replacing the `include' by
|
|
2571 # `lib' works.
|
|
2572 ac_save_LIBS="${LIBS}"
|
|
2573 LIBS="${LIBS} -l"$x_direct_test_library""
|
|
2574 ac_have_lib=""
|
|
2575 test -n "$silent" || echo "checking for -l"$x_direct_test_library""
|
|
2576 cat > conftest.${ac_ext} <<EOF
|
|
2577 #include "confdefs.h"
|
|
2578
|
|
2579 int main() { return 0; }
|
|
2580 int t() { main();; return 0; }
|
|
2581 EOF
|
|
2582 if eval $ac_compile; then
|
|
2583 rm -rf conftest*
|
|
2584 ac_have_lib="1"
|
|
2585
|
|
2586 fi
|
|
2587 rm -f conftest*
|
|
2588 LIBS="${ac_save_LIBS}"
|
|
2589 if test -n "${ac_have_lib}"; then
|
|
2590 :; no_x=
|
|
2591 else
|
|
2592 :; for ac_dir in `echo "$x_includes" | sed s/include/lib/` \
|
|
2593 /usr/X11R6/lib \
|
|
2594 /usr/X11R5/lib \
|
|
2595 /usr/X11R4/lib \
|
|
2596 \
|
|
2597 /usr/lib/X11R6 \
|
|
2598 /usr/lib/X11R5 \
|
|
2599 /usr/lib/X11R4 \
|
|
2600 \
|
|
2601 /usr/local/X11R6/lib \
|
|
2602 /usr/local/X11R5/lib \
|
|
2603 /usr/local/X11R4/lib \
|
|
2604 \
|
|
2605 /usr/local/lib/X11R6 \
|
|
2606 /usr/local/lib/X11R5 \
|
|
2607 /usr/local/lib/X11R4 \
|
|
2608 \
|
|
2609 /usr/X11/lib \
|
|
2610 /usr/lib/X11 \
|
|
2611 /usr/local/X11/lib \
|
|
2612 /usr/local/lib/X11 \
|
|
2613 \
|
|
2614 /usr/X386/lib \
|
|
2615 /usr/x386/lib \
|
|
2616 /usr/XFree86/lib/X11 \
|
|
2617 \
|
|
2618 /usr/lib \
|
|
2619 /usr/local/lib \
|
|
2620 /usr/unsupported/lib \
|
|
2621 /usr/athena/lib \
|
|
2622 /usr/local/x11r5/lib \
|
|
2623 /usr/lpp/Xamples/lib \
|
|
2624 \
|
|
2625 /usr/openwin/lib \
|
|
2626 /usr/openwin/share/lib \
|
|
2627 ; \
|
|
2628 do
|
|
2629 for ac_extension in a so sl; do
|
|
2630 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
|
2631 test -z "$x_libraries" && x_libraries=$ac_dir
|
|
2632 no_x=
|
|
2633 break 2
|
|
2634 fi
|
|
2635 done
|
|
2636 done
|
|
2637 fi
|
|
2638
|
|
2639 fi
|
|
2640 test -n "$x_includes" && test -n "$verbose" && echo " X11 headers are in $x_includes"
|
|
2641 test -n "$x_libraries" && test -n "$verbose" && echo " X11 libraries are in $x_libraries"
|
|
2642 fi
|
|
2643
|
|
2644 fi
|
70
|
2645 if test -n "${x_includes}${x_libraries}" ; then window_system=x11 ; fi
|
0
|
2646 ;;
|
|
2647 esac
|
|
2648
|
70
|
2649 test -z "${window_system}" && window_system="none"
|
|
2650
|
|
2651 if test "${window_system}" = "none" ; then
|
|
2652 if test "${with_tty}" != "yes" ; then
|
0
|
2653 echo "No window system support, and no TTY support." >&2
|
|
2654 echo "Unable to proceed." >&2
|
|
2655 exit 1
|
|
2656 fi
|
70
|
2657 for feature in epoch cde offix menubars scrollbars toolbars dialogs xim tiff
|
|
2658 do
|
|
2659 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then
|
|
2660 echo "configure: warning: --with-$feature ignored: Not valid without X support" >&2
|
|
2661 fi
|
74
|
2662 eval "with_$feature=no"
|
70
|
2663 done
|
|
2664 elif test -z "${with_toolbars}" ; then
|
0
|
2665 with_toolbars='yes'
|
|
2666 fi
|
|
2667
|
|
2668 case "${canonical}" in
|
|
2669 *-sun-solaris* | *-sun-sunos5* ) add_runtime_flag=yes ;;
|
|
2670 esac
|
|
2671
|
70
|
2672 if test -n "${x_libraries}" ; then
|
|
2673 if test "${add_runtime_flag}" ; then
|
|
2674 LD_SWITCH_X_SITE="-L${x_libraries} -R${dash_r_space}${x_libraries}"
|
74
|
2675 else
|
70
|
2676 LD_SWITCH_X_SITE="-L${x_libraries}"
|
|
2677 fi
|
0
|
2678 fi
|
|
2679 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h.
|
70
|
2680 # test -n "${x_libraries}" -a LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
|
|
2681 test -n "${x_includes}" && C_SWITCH_X_SITE="-I${x_includes}"
|
|
2682
|
|
2683 if test -n "${site_libraries}" ; then
|
0
|
2684 for arg in ${site_libraries}
|
|
2685 do
|
|
2686 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
|
|
2687 done
|
|
2688 fi
|
70
|
2689 if test -n "${site_runtime_libraries}" ; then
|
0
|
2690 for arg in ${site_runtime_libraries}
|
|
2691 do
|
|
2692 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
|
|
2693 LD_SWITCH_SITE="${LD_SWITCH_SITE} -R${dash_r_space}${arg}"
|
|
2694 done
|
|
2695 fi
|
70
|
2696 if test -n "${site_includes}" ; then
|
0
|
2697 for arg in ${site_includes}
|
|
2698 do
|
|
2699 C_SWITCH_SITE="${C_SWITCH_SITE} -I${arg}"
|
|
2700 CPP="${CPP} -I${arg}"
|
|
2701 done
|
|
2702 fi
|
|
2703
|
|
2704 # FSF 19.29 has some bitmapdir stuff here.
|
|
2705 bitmapdir=
|
|
2706
|
|
2707 # Avoid forcing the search of /usr/include before fixed include files.
|
70
|
2708 test "$C_SWITCH_X_SITE" = "-I/usr/include" && C_SWITCH_X_SITE=" "
|
0
|
2709
|
|
2710 # Need for check for audio/Xtutil.h.
|
|
2711 CPP="${CPP} ${C_SWITCH_X_SITE}"
|
|
2712
|
|
2713 case "${window_system}" in
|
70
|
2714 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
|
|
2715 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
|
0
|
2716 esac
|
|
2717
|
|
2718 if test "${opsys}" = "hpux9"; then
|
|
2719 case "${x_libraries}" in
|
70
|
2720 *X11R4* ) opsysfile="s/hpux9-x11r4.h" ;;
|
0
|
2721 esac
|
|
2722 fi
|
|
2723
|
74
|
2724 if test "${opsys}" = "hpux9-shr"; then
|
0
|
2725 case "${x_libraries}" in
|
70
|
2726 *X11R4* ) opsysfile="s/hpux9shxr4.h" ;;
|
0
|
2727 esac
|
|
2728 fi
|
|
2729
|
|
2730 ############################################################################
|
|
2731 # #
|
|
2732 # Extract some information from the operating system and machine files #
|
|
2733 # #
|
|
2734 ############################################################################
|
|
2735
|
|
2736 echo "examining the machine- and system-dependent files to find out"
|
|
2737 echo " - which libraries the lib-src programs will want, and"
|
|
2738 echo " - whether the GNU malloc routines are usable."
|
|
2739
|
|
2740 ### First figure out CFLAGS (which we use for running the compiler here)
|
|
2741 ### and REAL_CFLAGS (which we use for real compilation).
|
|
2742 ### The two are the same except on a few systems, where they are made
|
|
2743 ### different to work around various lossages. For example,
|
|
2744 ### GCC 2.5 on Linux needs them to be different because it treats -g
|
|
2745 ### as implying static linking.
|
|
2746
|
|
2747 ### If the CFLAGS env var is specified, we use that value
|
|
2748 ### instead of the default.
|
|
2749
|
|
2750 ### It's not important that this name contain the PID; you can't run
|
|
2751 ### two configures in the same directory and have anything work
|
|
2752 ### anyway.
|
|
2753 tempcname="conftest.c"
|
|
2754
|
|
2755 echo '
|
|
2756 #define NOT_C_CODE
|
|
2757 #include "'${srcdir}'/src/'${opsysfile}'"
|
|
2758 #include "'${srcdir}'/src/'${machfile}'"
|
|
2759 #ifndef LIBS_MACHINE
|
|
2760 #define LIBS_MACHINE
|
|
2761 #endif
|
|
2762 #ifndef LIBS_SYSTEM
|
|
2763 #define LIBS_SYSTEM
|
|
2764 #endif
|
|
2765 #ifndef C_SWITCH_SYSTEM
|
|
2766 #define C_SWITCH_SYSTEM
|
|
2767 #endif
|
|
2768 #ifndef C_SWITCH_X_SYSTEM
|
|
2769 #define C_SWITCH_X_SYSTEM
|
|
2770 #endif
|
|
2771 #ifndef C_SWITCH_MACHINE
|
|
2772 #define C_SWITCH_MACHINE
|
|
2773 #endif
|
|
2774 #ifndef LD_SWITCH_X_SYSTEM
|
|
2775 #define LD_SWITCH_X_SYSTEM
|
|
2776 #endif
|
|
2777 #ifndef LIB_STANDARD
|
|
2778 #define LIB_STANDARD
|
|
2779 #endif
|
|
2780 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM LIB_STANDARD
|
|
2781 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
2782 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM
|
|
2783 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM
|
|
2784 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
2785
|
|
2786 #ifndef LIB_X11_LIB
|
|
2787 #define LIB_X11_LIB -lX11
|
|
2788 #endif
|
|
2789
|
|
2790 #ifndef LIBX11_MACHINE
|
|
2791 #define LIBX11_MACHINE
|
|
2792 #endif
|
|
2793
|
|
2794 #ifndef LIBX11_SYSTEM
|
|
2795 #define LIBX11_SYSTEM
|
|
2796 #endif
|
|
2797 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
|
|
2798
|
|
2799 #ifdef UNEXEC
|
|
2800 configure___ unexec=UNEXEC
|
|
2801 #else
|
|
2802 configure___ unexec=unexec.o
|
|
2803 #endif
|
|
2804
|
|
2805 #ifdef SYSTEM_MALLOC
|
|
2806 configure___ system_malloc=yes
|
|
2807 #else
|
|
2808 configure___ system_malloc=no
|
|
2809 #endif
|
|
2810
|
|
2811 #ifndef C_DEBUG_SWITCH
|
|
2812 #define C_DEBUG_SWITCH -g
|
|
2813 #endif
|
|
2814
|
|
2815 #ifndef C_OPTIMIZE_SWITCH
|
|
2816 #define C_OPTIMIZE_SWITCH -O
|
|
2817 #endif
|
|
2818
|
|
2819 #ifdef THIS_IS_CONFIGURE
|
|
2820
|
|
2821 /* Get the CFLAGS for tests in configure. */
|
|
2822 #ifdef __GNUC__
|
|
2823 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2824 #else
|
|
2825 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2826 #endif
|
|
2827
|
|
2828 #else /* not THIS_IS_CONFIGURE */
|
|
2829
|
|
2830 /* Get the CFLAGS for real compilation. */
|
|
2831 #ifdef __GNUC__
|
|
2832 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2833 #else
|
|
2834 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2835 #endif
|
|
2836
|
|
2837 #endif /* not THIS_IS_CONFIGURE */
|
|
2838 ' > ${tempcname}
|
|
2839 # The value of CPP is a quoted variable reference, so we need to do this
|
|
2840 # to get its actual value...
|
|
2841 CPP=`eval "echo $CPP"`
|
|
2842 eval `${CPP} -Isrc ${tempcname} \
|
|
2843 | grep 'configure___' \
|
|
2844 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
|
70
|
2845 if test "x$SPECIFIED_CFLAGS" = x ; then
|
0
|
2846 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
|
|
2847 | grep 'configure___' \
|
|
2848 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
|
|
2849 else
|
|
2850 REAL_CFLAGS="$CFLAGS"
|
|
2851 fi
|
|
2852 rm ${tempcname}
|
|
2853
|
|
2854 # override CFLAGS if user wishes
|
70
|
2855 if test "${cflags}" != "NO_CFLAGS_DEFINED" ; then
|
0
|
2856 REAL_CFLAGS=${cflags}
|
|
2857 fi
|
|
2858
|
|
2859 ### Compute the unexec source name from the object name.
|
|
2860 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
|
|
2861
|
|
2862 # Do the opsystem or machine files prohibit the use of the GNU malloc?
|
|
2863 # Assume not, until told otherwise.
|
|
2864 GNU_MALLOC=yes
|
70
|
2865 if test "${system_malloc}" = "yes" ; then
|
0
|
2866 GNU_MALLOC=no
|
|
2867 GNU_MALLOC_reason="
|
|
2868 (The GNU allocators don't work with this system configuration.)"
|
70
|
2869 elif test "${use_system_malloc}" = "yes" ; then
|
0
|
2870 GNU_MALLOC=no
|
|
2871 GNU_MALLOC_reason="
|
|
2872 (User chose not to use GNU allocators.)"
|
|
2873 fi
|
|
2874
|
|
2875 LISP_FLOAT_TYPE=yes
|
|
2876
|
|
2877
|
|
2878 #### Add the libraries to LIBS and check for some functions.
|
|
2879
|
|
2880
|
|
2881 CPPFLAGS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $CPPFLAGS"
|
|
2882 DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS"
|
|
2883 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS"
|
|
2884
|
|
2885 ac_save_LIBS="${LIBS}"
|
|
2886 LIBS="${LIBS} -ldnet"
|
|
2887 ac_have_lib=""
|
|
2888 test -n "$silent" || echo "checking for -ldnet"
|
|
2889 cat > conftest.${ac_ext} <<EOF
|
|
2890 #include "confdefs.h"
|
|
2891
|
|
2892 int main() { return 0; }
|
|
2893 int t() { main();; return 0; }
|
|
2894 EOF
|
|
2895 if eval $ac_compile; then
|
|
2896 rm -rf conftest*
|
|
2897 ac_have_lib="1"
|
|
2898
|
|
2899 fi
|
|
2900 rm -f conftest*
|
|
2901 LIBS="${ac_save_LIBS}"
|
|
2902 if test -n "${ac_have_lib}"; then
|
|
2903
|
|
2904 {
|
|
2905 test -n "$verbose" && \
|
|
2906 echo " defining HAVE_LIBDNET"
|
|
2907 echo "#define" HAVE_LIBDNET "1" >> confdefs.h
|
|
2908 DEFS="$DEFS -DHAVE_LIBDNET=1"
|
|
2909 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDNET\${ac_dB}HAVE_LIBDNET\${ac_dC}1\${ac_dD}
|
|
2910 \${ac_uA}HAVE_LIBDNET\${ac_uB}HAVE_LIBDNET\${ac_uC}1\${ac_uD}
|
|
2911 \${ac_eA}HAVE_LIBDNET\${ac_eB}HAVE_LIBDNET\${ac_eC}1\${ac_eD}
|
|
2912 "
|
|
2913 }
|
|
2914
|
|
2915 LIBS="${LIBS} -ldnet"
|
|
2916 fi
|
|
2917
|
|
2918
|
|
2919 ac_save_LIBS="${LIBS}"
|
70
|
2920 LIBS="${LIBS} -lkstat"
|
|
2921 ac_have_lib=""
|
|
2922 test -n "$silent" || echo "checking for -lkstat"
|
|
2923 cat > conftest.${ac_ext} <<EOF
|
|
2924 #include "confdefs.h"
|
|
2925
|
|
2926 int main() { return 0; }
|
|
2927 int t() { main();; return 0; }
|
|
2928 EOF
|
|
2929 if eval $ac_compile; then
|
|
2930 rm -rf conftest*
|
|
2931 ac_have_lib="1"
|
|
2932
|
|
2933 fi
|
|
2934 rm -f conftest*
|
|
2935 LIBS="${ac_save_LIBS}"
|
|
2936 if test -n "${ac_have_lib}"; then
|
|
2937
|
|
2938 {
|
|
2939 test -n "$verbose" && \
|
|
2940 echo " defining HAVE_LIBKSTAT"
|
|
2941 echo "#define" HAVE_LIBKSTAT "1" >> confdefs.h
|
|
2942 DEFS="$DEFS -DHAVE_LIBKSTAT=1"
|
|
2943 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBKSTAT\${ac_dB}HAVE_LIBKSTAT\${ac_dC}1\${ac_dD}
|
|
2944 \${ac_uA}HAVE_LIBKSTAT\${ac_uB}HAVE_LIBKSTAT\${ac_uC}1\${ac_uD}
|
|
2945 \${ac_eA}HAVE_LIBKSTAT\${ac_eB}HAVE_LIBKSTAT\${ac_eC}1\${ac_eD}
|
|
2946 "
|
|
2947 }
|
|
2948
|
|
2949 LIBS="${LIBS} -lkstat"
|
|
2950 fi
|
|
2951
|
|
2952
|
|
2953 ac_save_LIBS="${LIBS}"
|
0
|
2954 LIBS="${LIBS} -lXbsd"
|
|
2955 ac_have_lib=""
|
|
2956 test -n "$silent" || echo "checking for -lXbsd"
|
|
2957 cat > conftest.${ac_ext} <<EOF
|
|
2958 #include "confdefs.h"
|
|
2959
|
|
2960 int main() { return 0; }
|
|
2961 int t() { main();; return 0; }
|
|
2962 EOF
|
|
2963 if eval $ac_compile; then
|
|
2964 rm -rf conftest*
|
|
2965 ac_have_lib="1"
|
|
2966
|
|
2967 fi
|
|
2968 rm -f conftest*
|
|
2969 LIBS="${ac_save_LIBS}"
|
|
2970 if test -n "${ac_have_lib}"; then
|
|
2971 :; LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
|
|
2972 else
|
|
2973 :;
|
|
2974 fi
|
|
2975
|
|
2976
|
|
2977 ac_save_LIBS="${LIBS}"
|
|
2978 LIBS="${LIBS} -lpthreads"
|
|
2979 ac_have_lib=""
|
|
2980 test -n "$silent" || echo "checking for -lpthreads"
|
|
2981 cat > conftest.${ac_ext} <<EOF
|
|
2982 #include "confdefs.h"
|
|
2983
|
|
2984 int main() { return 0; }
|
|
2985 int t() { main();; return 0; }
|
|
2986 EOF
|
|
2987 if eval $ac_compile; then
|
|
2988 rm -rf conftest*
|
|
2989 ac_have_lib="1"
|
|
2990
|
|
2991 fi
|
|
2992 rm -f conftest*
|
|
2993 LIBS="${ac_save_LIBS}"
|
|
2994 if test -n "${ac_have_lib}"; then
|
|
2995 :; HAVE_PTHREADS=yes
|
|
2996 else
|
|
2997 :;
|
|
2998 fi
|
|
2999
|
|
3000 if test -n "${HAVE_PTHREADS}" ; then
|
|
3001
|
|
3002 {
|
|
3003 test -n "$verbose" && \
|
|
3004 echo " defining HAVE_PTHREADS"
|
|
3005 echo "#define" HAVE_PTHREADS "1" >> confdefs.h
|
|
3006 DEFS="$DEFS -DHAVE_PTHREADS=1"
|
|
3007 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PTHREADS\${ac_dB}HAVE_PTHREADS\${ac_dC}1\${ac_dD}
|
|
3008 \${ac_uA}HAVE_PTHREADS\${ac_uB}HAVE_PTHREADS\${ac_uC}1\${ac_uD}
|
|
3009 \${ac_eA}HAVE_PTHREADS\${ac_eB}HAVE_PTHREADS\${ac_eC}1\${ac_eD}
|
|
3010 "
|
|
3011 }
|
|
3012
|
|
3013 case "${opsys}" in
|
|
3014 decosf* ) CFLAGS="${CFLAGS} -threads" ;;
|
|
3015 esac
|
|
3016 fi
|
|
3017
|
|
3018 if test "${window_system}" != "none" ; then
|
|
3019 test -n "$silent" || echo "checking for XFree86"
|
|
3020 if test -d /usr/X386/include; then
|
|
3021 HAVE_XFREE386=yes
|
|
3022 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
|
80
|
3023 elif test -f /etc/XF86Config -o \
|
|
3024 -f /etc/X11/XF86Config -o \
|
|
3025 -f /usr/X11R6/lib/X11/XF86Config; then
|
0
|
3026 HAVE_XFREE386=yes
|
|
3027 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X11R6/include"
|
|
3028 else
|
|
3029 HAVE_XFREE386=no
|
|
3030 fi
|
|
3031 test -n "$verbose" && echo " ${HAVE_XFREE386}"
|
|
3032 else
|
|
3033 HAVE_XFREE386=no
|
|
3034 fi
|
|
3035
|
|
3036 ############################################################################
|
|
3037 # #
|
|
3038 # Test for various X-specific features #
|
|
3039 # #
|
|
3040 ############################################################################
|
|
3041
|
|
3042 # Change CFLAGS temporarily for damn binutils 2.6.0.10 check.
|
|
3043 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
3044 case "${opsys}" in
|
|
3045 linux* )
|
|
3046 CFLAGS="-Wl,-rpath-link,/usr/X11R6/lib $CFLAGS"
|
|
3047 test -n "$silent" || echo "checking for whether path-link option is needed"
|
|
3048 cat > conftest.${ac_ext} <<EOF
|
|
3049 #include "confdefs.h"
|
|
3050
|
|
3051 int main() { return 0; }
|
|
3052 int t() { ;; return 0; }
|
|
3053 EOF
|
|
3054 if eval $ac_compile; then
|
|
3055 rm -rf conftest*
|
|
3056 need_path_link=yes
|
|
3057
|
|
3058 else
|
|
3059 rm -rf conftest*
|
|
3060 need_path_link=no
|
|
3061 fi
|
|
3062 rm -f conftest*
|
|
3063
|
|
3064 if test "${need_path_link}" = "no"; then
|
|
3065 CFLAGS="$REAL_CFLAGS"
|
|
3066 test -n "$verbose" && echo " no"
|
|
3067 else
|
|
3068 test -n "$verbose" && echo " yes"
|
|
3069 fi
|
|
3070 ;;
|
|
3071 esac
|
|
3072 fi
|
|
3073
|
|
3074 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
|
|
3075 # for the tests that follow. We set it back to REAL_CFLAGS later on.
|
|
3076
|
|
3077 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
3078 DEFS="$C_SWITCH_X_SITE $DEFS"
|
|
3079 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
|
|
3080 LIBS="$LIBX $LIBS"
|
|
3081 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
|
|
3082
|
|
3083 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
|
|
3084 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
|
|
3085 # but it's more convenient here to set LD_RUN_PATH
|
|
3086 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
|
|
3087 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
|
|
3088 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
|
|
3089 export LD_RUN_PATH
|
|
3090 fi
|
|
3091
|
|
3092 if test "${HAVE_XFREE386}" = "yes" ; then
|
|
3093 case "${opsys}" in
|
|
3094 linux* )
|
|
3095 test -n "$silent" || echo "checking for whether XFree86 needs -b to link"
|
|
3096 cat > conftest.${ac_ext} <<EOF
|
|
3097 #include "confdefs.h"
|
|
3098
|
|
3099 int main() { return 0; }
|
|
3100 int t() { XOpenDisplay ("foo");; return 0; }
|
|
3101 EOF
|
|
3102 if eval $ac_compile; then
|
|
3103 rm -rf conftest*
|
|
3104 xfree86_first_failure=no
|
|
3105
|
|
3106 else
|
|
3107 rm -rf conftest*
|
|
3108 xfree86_first_failure=yes
|
|
3109 fi
|
|
3110 rm -f conftest*
|
|
3111
|
|
3112 if test "${xfree86_first_failure}" = "yes"; then
|
|
3113 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
|
|
3114 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
|
|
3115 OLD_CPPFLAGS="$CPPFLAGS"
|
|
3116 OLD_LIBS="$LIBS"
|
|
3117 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
|
|
3118 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
|
|
3119 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
|
|
3120 LIBS="$LIBS -b i486-linuxaout"
|
|
3121 cat > conftest.${ac_ext} <<EOF
|
|
3122 #include "confdefs.h"
|
|
3123
|
|
3124 int main() { return 0; }
|
|
3125 int t() { XOpenDisplay ("foo");; return 0; }
|
|
3126 EOF
|
|
3127 if eval $ac_compile; then
|
|
3128 rm -rf conftest*
|
|
3129 xfree86_second_failure=no
|
|
3130
|
|
3131 else
|
|
3132 rm -rf conftest*
|
|
3133 xfree86_second_failure=yes
|
|
3134 fi
|
|
3135 rm -f conftest*
|
|
3136
|
|
3137 if test "${xfree86_second_failure}" = "yes"; then
|
|
3138 # If we get the same failure with -b, there is no use adding -b.
|
|
3139 # So take it out. This plays safe.
|
|
3140 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
|
|
3141 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
|
|
3142 CPPFLAGS="$OLD_CPPFLAGS"
|
|
3143 LIBS="$OLD_LIBS"
|
|
3144 test -n "$verbose" && echo " no"
|
|
3145 else
|
|
3146 test -n "$verbose" && echo " yes"
|
|
3147 fi
|
|
3148 else
|
|
3149 test -n "$verbose" && echo " no"
|
|
3150 fi
|
|
3151 ;;
|
|
3152 esac
|
|
3153 fi
|
|
3154
|
|
3155 # A C_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
|
|
3156 #XScreenNumberOfScreen XSetWMProtocols)
|
|
3157 fi
|
|
3158
|
|
3159 #
|
|
3160 # make sure we can find libX11.*
|
|
3161 #
|
|
3162 if test "${window_system}" != "none" ; then
|
|
3163 internal_xlibs_found='no'
|
|
3164 ac_save_LIBS="${LIBS}"
|
|
3165 LIBS="${LIBS} -lX11"
|
|
3166 ac_have_lib=""
|
|
3167 test -n "$silent" || echo "checking for -lX11"
|
|
3168 cat > conftest.${ac_ext} <<EOF
|
|
3169 #include "confdefs.h"
|
|
3170
|
|
3171 int main() { return 0; }
|
|
3172 int t() { main();; return 0; }
|
|
3173 EOF
|
|
3174 if eval $ac_compile; then
|
|
3175 rm -rf conftest*
|
|
3176 ac_have_lib="1"
|
|
3177
|
|
3178 fi
|
|
3179 rm -f conftest*
|
|
3180 LIBS="${ac_save_LIBS}"
|
|
3181 if test -n "${ac_have_lib}"; then
|
|
3182 :; internal_xlibs_found='yes'
|
|
3183 else
|
|
3184 :;
|
|
3185 fi
|
|
3186
|
|
3187 if test "${internal_xlibs_found}" = "no" ; then
|
|
3188 echo "Unable to find X11 libraries." >&2
|
|
3189 exit 1
|
|
3190 else
|
|
3191 test -n "$verbose" && echo " yes"
|
|
3192 fi
|
|
3193 fi
|
|
3194
|
|
3195 #
|
|
3196 # make sure we can find Intrinsic.h
|
|
3197 #
|
|
3198 if test "${window_system}" != "none" ; then
|
|
3199 internal_xincludes_found='no'
|
|
3200 for arg in ${DEFS} /usr/include
|
|
3201 do
|
|
3202 if test -f `echo "${arg}/X11/Intrinsic.h" | sed 's/^\-I//'` ; then
|
|
3203 internal_xincludes_found='yes'
|
|
3204 fi
|
|
3205 done
|
|
3206 if test "${internal_xincludes_found}" = "no" ; then
|
|
3207 echo "Unable to find X11 header files." >&2
|
|
3208 exit 1
|
|
3209 fi
|
|
3210 fi
|
|
3211
|
|
3212 #
|
|
3213 # Sun OS 4 systems need the following kludge
|
|
3214 #
|
|
3215 if test "${window_system}" != "none" ; then
|
|
3216 case "${canonical}" in *-sunos4* )
|
|
3217 LIBS="$LIBS -u _XtToolkitInitialize -u _get_applicationShellWidgetClass" ;;
|
|
3218 esac
|
|
3219 fi
|
|
3220
|
|
3221 #
|
|
3222 # See if we can find Xauth.
|
|
3223 #
|
|
3224 with_xauth='no'
|
|
3225 if test "${window_system}" != "none" ; then
|
|
3226 internal_xauth_lib_found='no'
|
|
3227 ac_save_LIBS="${LIBS}"
|
|
3228 LIBS="${LIBS} -lXau"
|
|
3229 ac_have_lib=""
|
|
3230 test -n "$silent" || echo "checking for -lXau"
|
|
3231 cat > conftest.${ac_ext} <<EOF
|
|
3232 #include "confdefs.h"
|
|
3233
|
|
3234 int main() { return 0; }
|
|
3235 int t() { main();; return 0; }
|
|
3236 EOF
|
|
3237 if eval $ac_compile; then
|
|
3238 rm -rf conftest*
|
|
3239 ac_have_lib="1"
|
|
3240
|
|
3241 fi
|
|
3242 rm -f conftest*
|
|
3243 LIBS="${ac_save_LIBS}"
|
|
3244 if test -n "${ac_have_lib}"; then
|
|
3245 :; internal_xauth_lib_found='yes'
|
|
3246 else
|
|
3247 :;
|
|
3248 fi
|
|
3249
|
|
3250 if test "${internal_xauth_lib_found}" = "yes" ; then
|
|
3251 internal_xauth_includes_found='no'
|
|
3252 for arg in ${DEFS} /usr/include
|
|
3253 do
|
|
3254 if test -f `echo "${arg}/X11/Xauth.h" | sed 's/^\-I//'` ; then
|
|
3255 internal_xauth_includes_found='yes'
|
|
3256 fi
|
|
3257 done
|
|
3258 if test "${internal_xauth_includes_found}" = "yes" ; then
|
|
3259 with_xauth='yes'
|
|
3260 fi
|
|
3261 fi
|
|
3262 fi
|
70
|
3263 test "${with_xauth}" = yes &&
|
0
|
3264 {
|
|
3265 test -n "$verbose" && \
|
|
3266 echo " defining HAVE_XAUTH"
|
|
3267 echo "#define" HAVE_XAUTH "1" >> confdefs.h
|
|
3268 DEFS="$DEFS -DHAVE_XAUTH=1"
|
|
3269 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XAUTH\${ac_dB}HAVE_XAUTH\${ac_dC}1\${ac_dD}
|
|
3270 \${ac_uA}HAVE_XAUTH\${ac_uB}HAVE_XAUTH\${ac_uC}1\${ac_uD}
|
|
3271 \${ac_eA}HAVE_XAUTH\${ac_eB}HAVE_XAUTH\${ac_eC}1\${ac_eD}
|
|
3272 "
|
|
3273 }
|
|
3274
|
|
3275
|
|
3276 #
|
|
3277 # See if we can find CDE.
|
|
3278 #
|
70
|
3279 if test "${window_system}" != "none" -a \
|
|
3280 "${with_cde}" != "no" -a \
|
|
3281 "${with_cde}" != "yes" ; then
|
|
3282 internal_cde_lib_found='no'
|
|
3283 ac_save_LIBS="${LIBS}"
|
0
|
3284 LIBS="${LIBS} -lDtSvc"
|
|
3285 ac_have_lib=""
|
|
3286 test -n "$silent" || echo "checking for -lDtSvc"
|
|
3287 cat > conftest.${ac_ext} <<EOF
|
|
3288 #include "confdefs.h"
|
|
3289
|
|
3290 int main() { return 0; }
|
|
3291 int t() { main();; return 0; }
|
|
3292 EOF
|
|
3293 if eval $ac_compile; then
|
|
3294 rm -rf conftest*
|
|
3295 ac_have_lib="1"
|
|
3296
|
|
3297 fi
|
|
3298 rm -f conftest*
|
|
3299 LIBS="${ac_save_LIBS}"
|
|
3300 if test -n "${ac_have_lib}"; then
|
|
3301 :; internal_cde_lib_found='yes'
|
|
3302 else
|
|
3303 :;
|
|
3304 fi
|
|
3305
|
70
|
3306 if test "${internal_cde_lib_found}" = "yes" ; then
|
|
3307 internal_cde_includes_found='no'
|
|
3308 for arg in ${DEFS} /usr/include ; do
|
|
3309 if test -f `echo "${arg}/Dt/Dt.h" | sed 's/^\-I//'` ; then
|
|
3310 internal_cde_includes_found='yes'
|
0
|
3311 fi
|
70
|
3312 done
|
|
3313 if test "${internal_cde_includes_found}" = "yes" ; then
|
|
3314 with_cde='yes'
|
0
|
3315 fi
|
|
3316 fi
|
|
3317 fi
|
70
|
3318 test "${with_cde}" = yes &&
|
0
|
3319 {
|
|
3320 test -n "$verbose" && \
|
|
3321 echo " defining HAVE_CDE"
|
|
3322 echo "#define" HAVE_CDE "1" >> confdefs.h
|
|
3323 DEFS="$DEFS -DHAVE_CDE=1"
|
|
3324 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_CDE\${ac_dB}HAVE_CDE\${ac_dC}1\${ac_dD}
|
|
3325 \${ac_uA}HAVE_CDE\${ac_uB}HAVE_CDE\${ac_uC}1\${ac_uD}
|
|
3326 \${ac_eA}HAVE_CDE\${ac_eB}HAVE_CDE\${ac_eC}1\${ac_eD}
|
|
3327 "
|
|
3328 }
|
|
3329
|
|
3330
|
|
3331 #
|
2
|
3332 # See if we can find OffiX.
|
|
3333 #
|
70
|
3334 if test "${window_system}" != "none" -a \
|
|
3335 "${with_offix}" != "no" -a \
|
|
3336 "${with_offix}" != "yes" ; then
|
|
3337 internal_offix_lib_found='no'
|
|
3338 ac_save_LIBS="${LIBS}"
|
2
|
3339 LIBS="${LIBS} -lDnd"
|
|
3340 ac_have_lib=""
|
|
3341 test -n "$silent" || echo "checking for -lDnd"
|
|
3342 cat > conftest.${ac_ext} <<EOF
|
|
3343 #include "confdefs.h"
|
|
3344
|
|
3345 int main() { return 0; }
|
|
3346 int t() { main();; return 0; }
|
|
3347 EOF
|
|
3348 if eval $ac_compile; then
|
|
3349 rm -rf conftest*
|
|
3350 ac_have_lib="1"
|
|
3351
|
|
3352 fi
|
|
3353 rm -f conftest*
|
|
3354 LIBS="${ac_save_LIBS}"
|
|
3355 if test -n "${ac_have_lib}"; then
|
|
3356 :; internal_offix_lib_found='yes'
|
|
3357 else
|
|
3358 :;
|
|
3359 fi
|
|
3360
|
70
|
3361 if test "${internal_offix_lib_found}" = "yes" ; then
|
|
3362 internal_offix_includes_found='no'
|
|
3363 for arg in ${DEFS} /usr/include ; do
|
|
3364 if test -f `echo "${arg}/OffiX/DragAndDrop.h" | sed 's/^\-I//'` ; then
|
|
3365 internal_offix_includes_found='yes'
|
2
|
3366 fi
|
70
|
3367 done
|
|
3368 test "${internal_offix_includes_found}" = "yes" && with_offix='yes'
|
2
|
3369 fi
|
|
3370 fi
|
70
|
3371 test "${with_offix}" = yes &&
|
2
|
3372 {
|
|
3373 test -n "$verbose" && \
|
|
3374 echo " defining HAVE_OFFIX_DND"
|
|
3375 echo "#define" HAVE_OFFIX_DND "1" >> confdefs.h
|
|
3376 DEFS="$DEFS -DHAVE_OFFIX_DND=1"
|
|
3377 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_OFFIX_DND\${ac_dB}HAVE_OFFIX_DND\${ac_dC}1\${ac_dD}
|
|
3378 \${ac_uA}HAVE_OFFIX_DND\${ac_uB}HAVE_OFFIX_DND\${ac_uC}1\${ac_uD}
|
|
3379 \${ac_eA}HAVE_OFFIX_DND\${ac_eB}HAVE_OFFIX_DND\${ac_eC}1\${ac_eD}
|
|
3380 "
|
|
3381 }
|
|
3382
|
70
|
3383
|
|
3384 # X window options
|
0
|
3385 if test "${window_system}" != "none" ; then
|
|
3386 test -n "$silent" || echo "checking the version of X11 being used"
|
|
3387 cat > conftest.${ac_ext} <<EOF
|
|
3388 #include <X11/Intrinsic.h>
|
|
3389 int main() {
|
|
3390 #if (XlibSpecificationRelease == 4)
|
|
3391 printf ("X11R4\n");
|
|
3392 #elif (XlibSpecificationRelease == 5)
|
|
3393 printf ("X11R5\n");
|
|
3394 #elif (XlibSpecificationRelease == 6)
|
|
3395 printf ("X11R6\n");
|
|
3396 #elif (XtSpecificationRelease == 4)
|
|
3397 printf ("X11R4\n");
|
|
3398 #endif
|
|
3399 return 0;
|
|
3400 }
|
|
3401 EOF
|
|
3402 ac_save_LIBS="${LIBS}"
|
|
3403 LIBS="${LIBS} ${DEFS}"
|
|
3404 if eval $ac_compile; then
|
70
|
3405 case "`./conftest`" in
|
|
3406 X11R4 )
|
0
|
3407 {
|
|
3408 test -n "$verbose" && \
|
|
3409 echo " defining THIS_IS_X11R4"
|
|
3410 echo "#define" THIS_IS_X11R4 "1" >> confdefs.h
|
|
3411 DEFS="$DEFS -DTHIS_IS_X11R4=1"
|
|
3412 ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R4\${ac_dB}THIS_IS_X11R4\${ac_dC}1\${ac_dD}
|
|
3413 \${ac_uA}THIS_IS_X11R4\${ac_uB}THIS_IS_X11R4\${ac_uC}1\${ac_uD}
|
|
3414 \${ac_eA}THIS_IS_X11R4\${ac_eB}THIS_IS_X11R4\${ac_eC}1\${ac_eD}
|
|
3415 "
|
|
3416 }
|
70
|
3417 ;;
|
|
3418 X11R5 )
|
0
|
3419 {
|
|
3420 test -n "$verbose" && \
|
|
3421 echo " defining THIS_IS_X11R5"
|
|
3422 echo "#define" THIS_IS_X11R5 "1" >> confdefs.h
|
|
3423 DEFS="$DEFS -DTHIS_IS_X11R5=1"
|
|
3424 ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R5\${ac_dB}THIS_IS_X11R5\${ac_dC}1\${ac_dD}
|
|
3425 \${ac_uA}THIS_IS_X11R5\${ac_uB}THIS_IS_X11R5\${ac_uC}1\${ac_uD}
|
|
3426 \${ac_eA}THIS_IS_X11R5\${ac_eB}THIS_IS_X11R5\${ac_eC}1\${ac_eD}
|
|
3427 "
|
|
3428 }
|
70
|
3429 ;;
|
|
3430 X11R6 )
|
0
|
3431 {
|
|
3432 test -n "$verbose" && \
|
|
3433 echo " defining THIS_IS_X11R6"
|
|
3434 echo "#define" THIS_IS_X11R6 "1" >> confdefs.h
|
|
3435 DEFS="$DEFS -DTHIS_IS_X11R6=1"
|
|
3436 ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R6\${ac_dB}THIS_IS_X11R6\${ac_dC}1\${ac_dD}
|
|
3437 \${ac_uA}THIS_IS_X11R6\${ac_uB}THIS_IS_X11R6\${ac_uC}1\${ac_uD}
|
|
3438 \${ac_eA}THIS_IS_X11R6\${ac_eB}THIS_IS_X11R6\${ac_eC}1\${ac_eD}
|
|
3439 "
|
|
3440 }
|
70
|
3441 ;;
|
|
3442 esac
|
0
|
3443 fi
|
|
3444 LIBS=$ac_save_LIBS
|
|
3445 rm -f conftest*
|
|
3446
|
|
3447 for ac_hdr in X11/Xlocale.h
|
|
3448 do
|
|
3449 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
|
|
3450 test -n "$silent" || echo "checking for ${ac_hdr}"
|
|
3451 cat > conftest.${ac_ext} <<EOF
|
|
3452 #include "confdefs.h"
|
|
3453 #include <${ac_hdr}>
|
|
3454 EOF
|
|
3455 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
3456 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
3457 echo "$ac_err"
|
|
3458 fi
|
|
3459 if test -z "$ac_err"; then
|
|
3460 rm -rf conftest*
|
|
3461
|
|
3462 {
|
|
3463 test -n "$verbose" && \
|
|
3464 echo " defining ${ac_tr_hdr}"
|
|
3465 echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
|
|
3466 DEFS="$DEFS -D${ac_tr_hdr}=1"
|
|
3467 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
|
|
3468 \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
|
|
3469 \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
|
|
3470 "
|
|
3471 }
|
|
3472
|
|
3473
|
|
3474 fi
|
|
3475 rm -f conftest*
|
|
3476 done
|
|
3477
|
|
3478 fi
|
|
3479
|
|
3480 #
|
|
3481 # if Energize specified, make sure we can find its need libraries/headers
|
|
3482 #
|
|
3483 if test "${with_energize}" = "yes" ; then
|
|
3484 ac_save_LIBS="${LIBS}"
|
|
3485 LIBS="${LIBS} -lenergize"
|
|
3486 ac_have_lib=""
|
|
3487 test -n "$silent" || echo "checking for -lenergize"
|
|
3488 cat > conftest.${ac_ext} <<EOF
|
|
3489 #include "confdefs.h"
|
|
3490
|
|
3491 int main() { return 0; }
|
|
3492 int t() { main();; return 0; }
|
|
3493 EOF
|
|
3494 if eval $ac_compile; then
|
|
3495 rm -rf conftest*
|
|
3496 ac_have_lib="1"
|
|
3497
|
|
3498 fi
|
|
3499 rm -f conftest*
|
|
3500 LIBS="${ac_save_LIBS}"
|
|
3501 if test -n "${ac_have_lib}"; then
|
|
3502 :; energize_version='3.X'
|
|
3503 else
|
|
3504 :;
|
|
3505 fi
|
|
3506
|
|
3507 if test "${energize_version}" = "no" ; then
|
|
3508 ac_save_LIBS="${LIBS}"
|
|
3509 LIBS="${LIBS} -lconn"
|
|
3510 ac_have_lib=""
|
|
3511 test -n "$silent" || echo "checking for -lconn"
|
|
3512 cat > conftest.${ac_ext} <<EOF
|
|
3513 #include "confdefs.h"
|
|
3514
|
|
3515 int main() { return 0; }
|
|
3516 int t() { main();; return 0; }
|
|
3517 EOF
|
|
3518 if eval $ac_compile; then
|
|
3519 rm -rf conftest*
|
|
3520 ac_have_lib="1"
|
|
3521
|
|
3522 fi
|
|
3523 rm -f conftest*
|
|
3524 LIBS="${ac_save_LIBS}"
|
|
3525 if test -n "${ac_have_lib}"; then
|
|
3526 :; energize_version='2.X'
|
|
3527 else
|
|
3528 :;
|
|
3529 fi
|
|
3530
|
|
3531 if test "${energize_version}" = "no" ; then
|
|
3532 echo "Unable to find Energize library." >&2
|
|
3533 exit 1
|
|
3534 fi
|
|
3535 fi
|
|
3536
|
|
3537 internal_eincludes_found='no'
|
|
3538 for arg in ${DEFS} /usr/include
|
|
3539 do
|
|
3540 if test -f `echo "${arg}/editorconn.h" | sed 's/^\-I//'` ; then
|
|
3541 internal_eincludes_found='yes'
|
|
3542 fi
|
|
3543 done
|
|
3544 if test "${internal_eincludes_found}" = "no" ; then
|
|
3545 echo "Unable to find Energize editorconn.h header file." >&2
|
|
3546 exit 1
|
|
3547 fi
|
|
3548 fi
|
|
3549
|
|
3550 #
|
|
3551 # logb and frexp are found in -lm on most systems.
|
|
3552 #
|
|
3553 ac_save_LIBS="${LIBS}"
|
|
3554 LIBS="${LIBS} -lm"
|
|
3555 ac_have_lib=""
|
|
3556 test -n "$silent" || echo "checking for -lm"
|
|
3557 cat > conftest.${ac_ext} <<EOF
|
|
3558 #include "confdefs.h"
|
|
3559
|
|
3560 int main() { return 0; }
|
|
3561 int t() { main();; return 0; }
|
|
3562 EOF
|
|
3563 if eval $ac_compile; then
|
|
3564 rm -rf conftest*
|
|
3565 ac_have_lib="1"
|
|
3566
|
|
3567 fi
|
|
3568 rm -f conftest*
|
|
3569 LIBS="${ac_save_LIBS}"
|
|
3570 if test -n "${ac_have_lib}"; then
|
|
3571
|
|
3572 {
|
|
3573 test -n "$verbose" && \
|
|
3574 echo " defining HAVE_LIBM"
|
|
3575 echo "#define" HAVE_LIBM "1" >> confdefs.h
|
|
3576 DEFS="$DEFS -DHAVE_LIBM=1"
|
|
3577 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBM\${ac_dB}HAVE_LIBM\${ac_dC}1\${ac_dD}
|
|
3578 \${ac_uA}HAVE_LIBM\${ac_uB}HAVE_LIBM\${ac_uC}1\${ac_uD}
|
|
3579 \${ac_eA}HAVE_LIBM\${ac_eB}HAVE_LIBM\${ac_eC}1\${ac_eD}
|
|
3580 "
|
|
3581 }
|
|
3582
|
|
3583 LIBS="${LIBS} -lm"
|
|
3584 fi
|
|
3585
|
|
3586
|
|
3587 #
|
|
3588 # see if XPM is hanging around somewhere
|
|
3589 #
|
70
|
3590 test "${window_system}" != "none" -a \
|
|
3591 "${with_xpm}" != "no" -a \
|
|
3592 "${with_xpm}" != "yes" && { ac_save_LIBS="${LIBS}"
|
0
|
3593 LIBS="${LIBS} -lXpm"
|
|
3594 ac_have_lib=""
|
|
3595 test -n "$silent" || echo "checking for -lXpm"
|
|
3596 cat > conftest.${ac_ext} <<EOF
|
|
3597 #include "confdefs.h"
|
|
3598
|
|
3599 int main() { return 0; }
|
|
3600 int t() { main();; return 0; }
|
|
3601 EOF
|
|
3602 if eval $ac_compile; then
|
|
3603 rm -rf conftest*
|
|
3604 ac_have_lib="1"
|
|
3605
|
|
3606 fi
|
|
3607 rm -f conftest*
|
|
3608 LIBS="${ac_save_LIBS}"
|
|
3609 if test -n "${ac_have_lib}"; then
|
|
3610 :; with_xpm="yes"
|
|
3611 else
|
|
3612 :;
|
|
3613 fi
|
70
|
3614 }
|
|
3615
|
|
3616 test "${with_xpm}" = yes &&
|
0
|
3617 {
|
|
3618 test -n "$verbose" && \
|
|
3619 echo " defining HAVE_XPM"
|
|
3620 echo "#define" HAVE_XPM "1" >> confdefs.h
|
|
3621 DEFS="$DEFS -DHAVE_XPM=1"
|
|
3622 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XPM\${ac_dB}HAVE_XPM\${ac_dC}1\${ac_dD}
|
|
3623 \${ac_uA}HAVE_XPM\${ac_uB}HAVE_XPM\${ac_uC}1\${ac_uD}
|
|
3624 \${ac_eA}HAVE_XPM\${ac_eB}HAVE_XPM\${ac_eC}1\${ac_eD}
|
|
3625 "
|
|
3626 }
|
|
3627
|
|
3628
|
|
3629 #
|
|
3630 # see if Xmu is hanging around somewhere
|
|
3631 #
|
|
3632 # FSF 19.31 has this:
|
|
3633 #dnl If using toolkit, check whether libXmu.a exists.
|
|
3634 #dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link.
|
|
3635 # OLDLIBS="$LIBS"
|
|
3636 # if test x$HAVE_X11XTR6 = xyes; then
|
|
3637 # LIBS="-lXt -lSM -lICE $LIBS"
|
|
3638 # else
|
|
3639 # LIBS="-lXt $LIBS"
|
|
3640 # fi
|
|
3641 # A C_CHECK_LIB(Xmu, XmuConvertStandardSelection)
|
|
3642 # LIBS="$OLDLIBS"
|
|
3643
|
|
3644 if test "${window_system}" != "none" ; then
|
|
3645 if test "${with_xmu}" != "no" ; then
|
70
|
3646 test "${with_xmu}" != "yes" && { ac_save_LIBS="${LIBS}"
|
0
|
3647 LIBS="${LIBS} -lXmu"
|
|
3648 ac_have_lib=""
|
|
3649 test -n "$silent" || echo "checking for -lXmu"
|
|
3650 cat > conftest.${ac_ext} <<EOF
|
|
3651 #include "confdefs.h"
|
|
3652
|
|
3653 int main() { return 0; }
|
|
3654 int t() { main();; return 0; }
|
|
3655 EOF
|
|
3656 if eval $ac_compile; then
|
|
3657 rm -rf conftest*
|
|
3658 ac_have_lib="1"
|
|
3659
|
|
3660 fi
|
|
3661 rm -f conftest*
|
|
3662 LIBS="${ac_save_LIBS}"
|
|
3663 if test -n "${ac_have_lib}"; then
|
|
3664 :; with_xmu="yes"
|
|
3665 else
|
|
3666 :;
|
|
3667 fi
|
70
|
3668 }
|
|
3669 # On SunOS4 we must kludge harder to try to detect Xmu
|
0
|
3670 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
70
|
3671 if test "${with_xmu}" != "yes" -a -n "$OPENWINHOME" ; then
|
0
|
3672 # begin expansion of ac_have_library
|
|
3673 ac_save_LIBS="${LIBS}"
|
|
3674 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm"
|
88
|
3675 if test ${machine} = sparc -a ${opsys} = linux; then
|
|
3676 LIBS="${LIBS} -lICE -lSM"
|
|
3677 fi
|
0
|
3678 ac_have_lib=""
|
|
3679 cat > conftest.${ac_ext} <<EOF
|
|
3680 int main() { return 0; }
|
|
3681 EOF
|
|
3682 if eval $ac_compile; then
|
|
3683 rm -rf conftest*
|
|
3684 ac_have_lib="1"
|
|
3685 fi
|
|
3686 rm -f conftest*
|
|
3687 LIBS="${ac_save_LIBS}"
|
|
3688 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3689 # end expansion of ac_have_library
|
|
3690 fi
|
90
|
3691 # Sparc/Linux test - fp
|
|
3692 if test "${with_xmu}" != "yes" -a ${machine} = sparc -a ${opsys} = linux; then
|
|
3693 # begin expansion of ac_have_library
|
|
3694 ac_save_LIBS="${LIBS}"
|
|
3695 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm -lICE -lSM"
|
|
3696 ac_have_lib=""
|
|
3697 cat > conftest.${ac_ext} <<EOF
|
|
3698 int main() { return 0; }
|
|
3699 EOF
|
|
3700 if eval $ac_compile; then
|
|
3701 rm -rf conftest*
|
|
3702 ac_have_lib="1"
|
|
3703 fi
|
|
3704 rm -f conftest*
|
|
3705 LIBS="${ac_save_LIBS}"
|
|
3706 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3707 # end expansion of ac_have_library
|
|
3708 fi
|
0
|
3709 # On UnixWare 2.1 we must kludge harder to try to detect Xmu
|
|
3710 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
|
3711 if test "${with_xmu}" != "yes" && test -f "/.UpgradeVer2.1" ; then
|
|
3712 # begin expansion of ac_have_library
|
|
3713 ac_save_LIBS="${LIBS}"
|
|
3714 if test x$HAVE_XFREE386 = xyes; then
|
|
3715 LIBS="-lXt -lSM -lICE ${LIBS}"
|
|
3716 else
|
|
3717 LIBS="${LIBS} -lXmu -lXt -lXext -lX11"
|
|
3718 fi
|
|
3719 ac_have_lib=""
|
|
3720 cat > conftest.${ac_ext} <<EOF
|
|
3721 int main() { return 0; }
|
|
3722 EOF
|
|
3723 if eval $ac_compile; then
|
|
3724 rm -rf conftest*
|
|
3725 ac_have_lib="1"
|
|
3726 fi
|
|
3727 rm -f conftest*
|
|
3728 LIBS="${ac_save_LIBS}"
|
|
3729 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3730 # end expansion of ac_have_library
|
|
3731 fi
|
|
3732 fi
|
|
3733 fi
|
70
|
3734 test "${with_xmu}" = yes &&
|
0
|
3735 {
|
|
3736 test -n "$verbose" && \
|
|
3737 echo " defining HAVE_XMU"
|
|
3738 echo "#define" HAVE_XMU "1" >> confdefs.h
|
|
3739 DEFS="$DEFS -DHAVE_XMU=1"
|
|
3740 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XMU\${ac_dB}HAVE_XMU\${ac_dC}1\${ac_dD}
|
|
3741 \${ac_uA}HAVE_XMU\${ac_uB}HAVE_XMU\${ac_uC}1\${ac_uD}
|
|
3742 \${ac_eA}HAVE_XMU\${ac_eB}HAVE_XMU\${ac_eC}1\${ac_eD}
|
|
3743 "
|
|
3744 }
|
|
3745
|
|
3746
|
|
3747 #
|
|
3748 # see if COMPFACE is hanging around somewhere
|
|
3749 #
|
70
|
3750 if test "${window_system}" != "none" -a \
|
|
3751 "${with_xface}" != "no" -a \
|
|
3752 "${with_xface}" != "yes" ; then
|
|
3753 test -n "$silent" || echo "checking for compface.h"
|
0
|
3754 cat > conftest.${ac_ext} <<EOF
|
|
3755 #include "confdefs.h"
|
|
3756 #include <compface.h>
|
|
3757 EOF
|
|
3758 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
3759 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
3760 echo "$ac_err"
|
|
3761 fi
|
|
3762 if test -z "$ac_err"; then
|
|
3763 rm -rf conftest*
|
|
3764 compface_incl="yes"
|
|
3765
|
|
3766 else
|
|
3767 rm -rf conftest*
|
|
3768 with_xface="no"
|
|
3769 fi
|
|
3770 rm -f conftest*
|
|
3771
|
70
|
3772 if test "${compface_incl}" = "yes" ; then
|
|
3773 ac_save_LIBS="${LIBS}"
|
0
|
3774 LIBS="${LIBS} -lcompface"
|
|
3775 ac_have_lib=""
|
|
3776 test -n "$silent" || echo "checking for -lcompface"
|
|
3777 cat > conftest.${ac_ext} <<EOF
|
|
3778 #include "confdefs.h"
|
|
3779
|
|
3780 int main() { return 0; }
|
|
3781 int t() { main();; return 0; }
|
|
3782 EOF
|
|
3783 if eval $ac_compile; then
|
|
3784 rm -rf conftest*
|
|
3785 ac_have_lib="1"
|
|
3786
|
|
3787 fi
|
|
3788 rm -f conftest*
|
|
3789 LIBS="${ac_save_LIBS}"
|
|
3790 if test -n "${ac_have_lib}"; then
|
|
3791 :; with_xface="yes"
|
|
3792 else
|
|
3793 :;
|
|
3794 fi
|
|
3795
|
|
3796 fi
|
|
3797 fi
|
70
|
3798 test "${with_xface}" = yes &&
|
0
|
3799 {
|
|
3800 test -n "$verbose" && \
|
|
3801 echo " defining HAVE_XFACE"
|
|
3802 echo "#define" HAVE_XFACE "1" >> confdefs.h
|
|
3803 DEFS="$DEFS -DHAVE_XFACE=1"
|
|
3804 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XFACE\${ac_dB}HAVE_XFACE\${ac_dC}1\${ac_dD}
|
|
3805 \${ac_uA}HAVE_XFACE\${ac_uB}HAVE_XFACE\${ac_uC}1\${ac_uD}
|
|
3806 \${ac_eA}HAVE_XFACE\${ac_eB}HAVE_XFACE\${ac_eC}1\${ac_eD}
|
|
3807 "
|
|
3808 }
|
|
3809
|
|
3810
|
|
3811 #
|
|
3812 # check whether we're using GIF support
|
|
3813 #
|
|
3814 if test "${window_system}" = "none" ; then
|
|
3815 if test -z "${with_gif}" ; then
|
|
3816 with_gif=no
|
|
3817 elif test "${with_gif}" != "no" ; then
|
|
3818 echo "GIF support cannot be specified without a window system."
|
|
3819 exit 1
|
|
3820 fi
|
|
3821 elif test -z "${with_gif}" ; then
|
|
3822 with_gif=yes
|
|
3823 fi
|
70
|
3824 test "${with_gif}" = yes &&
|
0
|
3825 {
|
|
3826 test -n "$verbose" && \
|
|
3827 echo " defining HAVE_GIF"
|
|
3828 echo "#define" HAVE_GIF "1" >> confdefs.h
|
|
3829 DEFS="$DEFS -DHAVE_GIF=1"
|
|
3830 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_GIF\${ac_dB}HAVE_GIF\${ac_dC}1\${ac_dD}
|
|
3831 \${ac_uA}HAVE_GIF\${ac_uB}HAVE_GIF\${ac_uC}1\${ac_uD}
|
|
3832 \${ac_eA}HAVE_GIF\${ac_eB}HAVE_GIF\${ac_eC}1\${ac_eD}
|
|
3833 "
|
|
3834 }
|
|
3835
|
70
|
3836
|
0
|
3837 if test "${window_system}" = "none" ; then
|
|
3838 if test -z "${with_jpeg}" ; then
|
|
3839 with_jpeg=no
|
|
3840 elif test "${with_jpeg}" != "no" ; then
|
|
3841 echo "JPEG support cannot be specified without a window system."
|
|
3842 exit 1
|
|
3843 fi
|
|
3844 else
|
70
|
3845 if test "${with_jpeg}" != "no" -a \
|
|
3846 "${with_jpeg}" != "yes" ; then
|
|
3847 test -n "$silent" || echo "checking for jpeglib.h"
|
0
|
3848 cat > conftest.${ac_ext} <<EOF
|
|
3849 #include "confdefs.h"
|
|
3850 #include <jpeglib.h>
|
|
3851 EOF
|
|
3852 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
3853 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
3854 echo "$ac_err"
|
|
3855 fi
|
|
3856 if test -z "$ac_err"; then
|
|
3857 rm -rf conftest*
|
|
3858 jpeglib_incl="yes"
|
|
3859
|
|
3860 else
|
|
3861 rm -rf conftest*
|
|
3862 with_jpeg="no"
|
|
3863 fi
|
|
3864 rm -f conftest*
|
|
3865
|
70
|
3866 test "${jpeglib_incl}" = "yes" && { ac_save_LIBS="${LIBS}"
|
0
|
3867 LIBS="${LIBS} -ljpeg"
|
|
3868 ac_have_lib=""
|
|
3869 test -n "$silent" || echo "checking for -ljpeg"
|
|
3870 cat > conftest.${ac_ext} <<EOF
|
|
3871 #include "confdefs.h"
|
|
3872
|
|
3873 int main() { return 0; }
|
|
3874 int t() { main();; return 0; }
|
|
3875 EOF
|
|
3876 if eval $ac_compile; then
|
|
3877 rm -rf conftest*
|
|
3878 ac_have_lib="1"
|
|
3879
|
|
3880 fi
|
|
3881 rm -f conftest*
|
|
3882 LIBS="${ac_save_LIBS}"
|
|
3883 if test -n "${ac_have_lib}"; then
|
|
3884 :; with_jpeg="yes"
|
|
3885 else
|
|
3886 :;
|
|
3887 fi
|
70
|
3888 }
|
0
|
3889 fi
|
|
3890 fi
|
70
|
3891 test "${with_jpeg}" = yes &&
|
0
|
3892 {
|
|
3893 test -n "$verbose" && \
|
|
3894 echo " defining HAVE_JPEG"
|
|
3895 echo "#define" HAVE_JPEG "1" >> confdefs.h
|
|
3896 DEFS="$DEFS -DHAVE_JPEG=1"
|
|
3897 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_JPEG\${ac_dB}HAVE_JPEG\${ac_dC}1\${ac_dD}
|
|
3898 \${ac_uA}HAVE_JPEG\${ac_uB}HAVE_JPEG\${ac_uC}1\${ac_uD}
|
|
3899 \${ac_eA}HAVE_JPEG\${ac_eB}HAVE_JPEG\${ac_eC}1\${ac_eD}
|
|
3900 "
|
|
3901 }
|
|
3902
|
70
|
3903
|
0
|
3904 if test "${window_system}" = "none" ; then
|
|
3905 if test -z "${with_png}" ; then
|
|
3906 with_png=no
|
|
3907 elif test "${with_png}" != "no" ; then
|
|
3908 echo "PNG support cannot be specified without a window system."
|
|
3909 exit 1
|
|
3910 fi
|
|
3911 fi
|
70
|
3912 test -z "${with_png}" && { test -n "$silent" || echo "checking for png.h"
|
0
|
3913 cat > conftest.${ac_ext} <<EOF
|
|
3914 #include "confdefs.h"
|
|
3915 #include <png.h>
|
|
3916 EOF
|
|
3917 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
3918 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
3919 echo "$ac_err"
|
|
3920 fi
|
|
3921 if test -z "$ac_err"; then
|
|
3922 :
|
|
3923 else
|
|
3924 rm -rf conftest*
|
|
3925 with_png="no"
|
|
3926 fi
|
|
3927 rm -f conftest*
|
70
|
3928 }
|
84
|
3929 test -z "${with_png}" && { test -n "$silent" || echo "checking for pow"
|
0
|
3930 cat > conftest.${ac_ext} <<EOF
|
|
3931 #include "confdefs.h"
|
84
|
3932 #include <ctype.h>
|
0
|
3933 int main() { return 0; }
|
84
|
3934 int t() {
|
|
3935 /* The GNU C library defines this for functions which it implements
|
|
3936 to always fail with ENOSYS. Some functions are actually named
|
|
3937 something starting with __ and the normal name is an alias. */
|
|
3938 #if defined (__stub_pow) || defined (__stub___pow)
|
|
3939 choke me
|
|
3940 #else
|
|
3941 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3942 extern char pow(); pow();
|
|
3943 #endif
|
|
3944 ; return 0; }
|
0
|
3945 EOF
|
|
3946 if eval $ac_compile; then
|
84
|
3947 :
|
|
3948 else
|
0
|
3949 rm -rf conftest*
|
84
|
3950 with_png="no"
|
0
|
3951 fi
|
|
3952 rm -f conftest*
|
70
|
3953 }
|
84
|
3954 if test -z "${with_png}" ; then
|
|
3955 ac_save_LIBS="${LIBS}"
|
0
|
3956 LIBS="${LIBS} -lz"
|
|
3957 ac_have_lib=""
|
|
3958 test -n "$silent" || echo "checking for -lz"
|
|
3959 cat > conftest.${ac_ext} <<EOF
|
|
3960 #include "confdefs.h"
|
|
3961
|
|
3962 int main() { return 0; }
|
|
3963 int t() { main();; return 0; }
|
|
3964 EOF
|
|
3965 if eval $ac_compile; then
|
|
3966 rm -rf conftest*
|
|
3967 ac_have_lib="1"
|
|
3968
|
|
3969 fi
|
|
3970 rm -f conftest*
|
|
3971 LIBS="${ac_save_LIBS}"
|
|
3972 if test -n "${ac_have_lib}"; then
|
|
3973 :; with_png="yes"
|
|
3974 else
|
|
3975 :;
|
|
3976 fi
|
84
|
3977
|
|
3978 test -z "${with_png}" && { ac_save_LIBS="${LIBS}"
|
0
|
3979 LIBS="${LIBS} -lgz"
|
|
3980 ac_have_lib=""
|
|
3981 test -n "$silent" || echo "checking for -lgz"
|
|
3982 cat > conftest.${ac_ext} <<EOF
|
|
3983 #include "confdefs.h"
|
|
3984
|
|
3985 int main() { return 0; }
|
|
3986 int t() { main();; return 0; }
|
|
3987 EOF
|
|
3988 if eval $ac_compile; then
|
|
3989 rm -rf conftest*
|
|
3990 ac_have_lib="1"
|
|
3991
|
|
3992 fi
|
|
3993 rm -f conftest*
|
|
3994 LIBS="${ac_save_LIBS}"
|
|
3995 if test -n "${ac_have_lib}"; then
|
|
3996 :; with_png="gnuz"
|
|
3997 else
|
|
3998 :; with_png="no"
|
|
3999 fi
|
70
|
4000 }
|
84
|
4001 if test "${with_png}" != "no"; then
|
|
4002 png_save_libs="${LIBS}"
|
|
4003 case "${with_png}" in
|
|
4004 yes ) LIBS="${LIBS} -lz" ;;
|
|
4005 gnuz ) LIBS="${LIBS} -lgz" ;;
|
|
4006 esac
|
|
4007 ac_save_LIBS="${LIBS}"
|
|
4008 LIBS="${LIBS} -lpng"
|
|
4009 ac_have_lib=""
|
|
4010 test -n "$silent" || echo "checking for -lpng"
|
|
4011 cat > conftest.${ac_ext} <<EOF
|
|
4012 #include "confdefs.h"
|
|
4013
|
|
4014 int main() { return 0; }
|
|
4015 int t() { main();; return 0; }
|
|
4016 EOF
|
|
4017 if eval $ac_compile; then
|
|
4018 rm -rf conftest*
|
|
4019 ac_have_lib="1"
|
|
4020
|
|
4021 fi
|
|
4022 rm -f conftest*
|
|
4023 LIBS="${ac_save_LIBS}"
|
|
4024 if test -n "${ac_have_lib}"; then
|
|
4025 :;
|
|
4026 else
|
|
4027 :; with_png="no"
|
|
4028 fi
|
|
4029
|
|
4030 LIBS="$png_save_libs"
|
|
4031 fi
|
|
4032 fi
|
70
|
4033 case "${with_png}" in
|
|
4034 yes )
|
0
|
4035 {
|
|
4036 test -n "$verbose" && \
|
|
4037 echo " defining HAVE_PNG"
|
|
4038 echo "#define" HAVE_PNG "1" >> confdefs.h
|
|
4039 DEFS="$DEFS -DHAVE_PNG=1"
|
|
4040 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG\${ac_dB}HAVE_PNG\${ac_dC}1\${ac_dD}
|
|
4041 \${ac_uA}HAVE_PNG\${ac_uB}HAVE_PNG\${ac_uC}1\${ac_uD}
|
|
4042 \${ac_eA}HAVE_PNG\${ac_eB}HAVE_PNG\${ac_eC}1\${ac_eD}
|
|
4043 "
|
|
4044 }
|
70
|
4045 ;;
|
|
4046 gnuz )
|
0
|
4047 {
|
|
4048 test -n "$verbose" && \
|
|
4049 echo " defining HAVE_PNG"
|
|
4050 echo "#define" HAVE_PNG "1" >> confdefs.h
|
|
4051 DEFS="$DEFS -DHAVE_PNG=1"
|
|
4052 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG\${ac_dB}HAVE_PNG\${ac_dC}1\${ac_dD}
|
|
4053 \${ac_uA}HAVE_PNG\${ac_uB}HAVE_PNG\${ac_uC}1\${ac_uD}
|
|
4054 \${ac_eA}HAVE_PNG\${ac_eB}HAVE_PNG\${ac_eC}1\${ac_eD}
|
|
4055 "
|
|
4056 }
|
70
|
4057
|
0
|
4058 {
|
|
4059 test -n "$verbose" && \
|
|
4060 echo " defining HAVE_PNG_GNUZ"
|
|
4061 echo "#define" HAVE_PNG_GNUZ "1" >> confdefs.h
|
|
4062 DEFS="$DEFS -DHAVE_PNG_GNUZ=1"
|
|
4063 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG_GNUZ\${ac_dB}HAVE_PNG_GNUZ\${ac_dC}1\${ac_dD}
|
|
4064 \${ac_uA}HAVE_PNG_GNUZ\${ac_uB}HAVE_PNG_GNUZ\${ac_uC}1\${ac_uD}
|
|
4065 \${ac_eA}HAVE_PNG_GNUZ\${ac_eB}HAVE_PNG_GNUZ\${ac_eC}1\${ac_eD}
|
|
4066 "
|
|
4067 }
|
70
|
4068 ;;
|
|
4069 esac
|
|
4070
|
|
4071 test "${with_tiff}" = yes &&
|
0
|
4072 {
|
|
4073 test -n "$verbose" && \
|
|
4074 echo " defining HAVE_TIFF"
|
|
4075 echo "#define" HAVE_TIFF "1" >> confdefs.h
|
|
4076 DEFS="$DEFS -DHAVE_TIFF=1"
|
|
4077 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TIFF\${ac_dB}HAVE_TIFF\${ac_dC}1\${ac_dD}
|
|
4078 \${ac_uA}HAVE_TIFF\${ac_uB}HAVE_TIFF\${ac_uC}1\${ac_uD}
|
|
4079 \${ac_eA}HAVE_TIFF\${ac_eB}HAVE_TIFF\${ac_eC}1\${ac_eD}
|
|
4080 "
|
|
4081 }
|
|
4082
|
|
4083
|
|
4084 # We use Lucid toolkit defaults for the menubars and scrollbars, but
|
|
4085 # if Motif is available we use it for the dialog boxes.
|
|
4086 if test "${window_system}" != "none" ; then
|
70
|
4087 save_libs="${LIBS}"
|
0
|
4088 if test "x${with_dialogs}" = "x" ; then
|
|
4089 # We can't use ac_have_library because it simply appends -lXm to the
|
|
4090 # end of the link line which is insufficient since -lXm will generate
|
|
4091 # dependencies on -lXt
|
|
4092 # begin expansion of ac_have_library
|
|
4093 ac_save_LIBS="${LIBS}"
|
|
4094 LIBS="${LIBS} -lXm -lXt ${LIBS}"
|
|
4095 ac_have_lib=""
|
|
4096 test -n "$silent" || echo "checking for -lXm"
|
|
4097 cat > conftest.${ac_ext} <<EOF
|
|
4098 #include "confdefs.h"
|
|
4099
|
|
4100 int main() { return 0; }
|
|
4101 int t() { main();; return 0; }
|
|
4102 EOF
|
|
4103 if eval $ac_compile; then
|
|
4104 rm -rf conftest*
|
|
4105 ac_have_lib="1"
|
|
4106
|
|
4107 fi
|
|
4108 rm -f conftest*
|
|
4109 LIBS="${ac_save_LIBS}"
|
|
4110 if test -n "${ac_have_lib}"; then
|
70
|
4111 :; with_dialogs="motif" motif_libs="-lXm -lXt"
|
0
|
4112 else
|
|
4113 :;
|
|
4114 fi
|
|
4115 # end expansion of ac_have_library
|
|
4116 # Sigh. My Motif (MoTeeth) under Linux also depends on Xpm and Xext.
|
|
4117 if test "${with_dialogs}" != "motif" ; then
|
|
4118 # begin expansion of ac_have_library
|
|
4119 ac_save_LIBS="${LIBS}"
|
|
4120 LIBS="${LIBS} -lXm -lXt -lXpm -lXext ${LIBS}"
|
|
4121 ac_have_lib=""
|
|
4122 test -n "$silent" || echo "checking for -lXm in another way"
|
|
4123 cat > conftest.${ac_ext} <<EOF
|
|
4124 #include "confdefs.h"
|
|
4125
|
|
4126 int main() { return 0; }
|
|
4127 int t() { main();; return 0; }
|
|
4128 EOF
|
|
4129 if eval $ac_compile; then
|
|
4130 rm -rf conftest*
|
|
4131 ac_have_lib="1"
|
|
4132
|
|
4133 fi
|
|
4134 rm -f conftest*
|
|
4135 LIBS="${ac_save_LIBS}"
|
|
4136 if test -n "${ac_have_lib}"; then
|
70
|
4137 :; with_dialogs="motif" motif_libs="-lXm -lXt -lXpm -lXext"
|
0
|
4138 else
|
|
4139 :;
|
|
4140 fi
|
|
4141 # end expansion of ac_have_library
|
|
4142 fi
|
70
|
4143 test "${with_dialogs}" = "motif" && test -n "$verbose" && echo " Found Motif"
|
0
|
4144 fi
|
|
4145 fi
|
|
4146
|
|
4147 # Finish ensuring that we have values for the various toolkit items.
|
70
|
4148
|
|
4149 test "${with_menubars}" = "motif" -o \
|
|
4150 "${with_scrollbars}" = "motif" -o \
|
|
4151 "${with_dialogs}" = "motif" && with_motif="yes"
|
82
|
4152 test "${with_menubars}" = "athena" -o \
|
|
4153 "${with_scrollbars}" = "athena" -o \
|
|
4154 "${with_dialogs}" = "athena" && with_athena="yes"
|
|
4155 test "${with_menubars}" = "athena3d" -o \
|
|
4156 "${with_scrollbars}" = "athena3d" -o \
|
|
4157 "${with_dialogs}" = "athena3d" && with_athena="yes"
|
70
|
4158 test "${with_menubars}" = "" && with_menubars="lucid"
|
|
4159 test "${with_menubars}" = "athena" && with_menubars="lucid"
|
|
4160 test "${with_scrollbars}" = "" && with_scrollbars="lucid"
|
|
4161 test "${with_dialogs}" = "" && with_dialogs="athena"
|
|
4162 test "${with_dialogs}" = "lucid" && with_dialogs="athena"
|
|
4163
|
|
4164 test "${with_menubars}" != "no" &&
|
|
4165 {
|
|
4166 test -n "$verbose" && \
|
|
4167 echo " defining HAVE_MENUBARS"
|
|
4168 echo "#define" HAVE_MENUBARS "1" >> confdefs.h
|
|
4169 DEFS="$DEFS -DHAVE_MENUBARS=1"
|
|
4170 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MENUBARS\${ac_dB}HAVE_MENUBARS\${ac_dC}1\${ac_dD}
|
|
4171 \${ac_uA}HAVE_MENUBARS\${ac_uB}HAVE_MENUBARS\${ac_uC}1\${ac_uD}
|
|
4172 \${ac_eA}HAVE_MENUBARS\${ac_eB}HAVE_MENUBARS\${ac_eC}1\${ac_eD}
|
|
4173 "
|
|
4174 }
|
|
4175
|
|
4176 test "${with_scrollbars}" != "no" &&
|
|
4177 {
|
|
4178 test -n "$verbose" && \
|
|
4179 echo " defining HAVE_SCROLLBARS"
|
|
4180 echo "#define" HAVE_SCROLLBARS "1" >> confdefs.h
|
|
4181 DEFS="$DEFS -DHAVE_SCROLLBARS=1"
|
|
4182 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SCROLLBARS\${ac_dB}HAVE_SCROLLBARS\${ac_dC}1\${ac_dD}
|
|
4183 \${ac_uA}HAVE_SCROLLBARS\${ac_uB}HAVE_SCROLLBARS\${ac_uC}1\${ac_uD}
|
|
4184 \${ac_eA}HAVE_SCROLLBARS\${ac_eB}HAVE_SCROLLBARS\${ac_eC}1\${ac_eD}
|
|
4185 "
|
|
4186 }
|
|
4187
|
74
|
4188 test "${with_dialogs}" != "no" &&
|
70
|
4189 {
|
|
4190 test -n "$verbose" && \
|
|
4191 echo " defining HAVE_DIALOGS"
|
|
4192 echo "#define" HAVE_DIALOGS "1" >> confdefs.h
|
|
4193 DEFS="$DEFS -DHAVE_DIALOGS=1"
|
|
4194 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DIALOGS\${ac_dB}HAVE_DIALOGS\${ac_dC}1\${ac_dD}
|
|
4195 \${ac_uA}HAVE_DIALOGS\${ac_uB}HAVE_DIALOGS\${ac_uC}1\${ac_uD}
|
|
4196 \${ac_eA}HAVE_DIALOGS\${ac_eB}HAVE_DIALOGS\${ac_eC}1\${ac_eD}
|
|
4197 "
|
|
4198 }
|
|
4199
|
|
4200
|
|
4201 test "${with_menubars}" = "lucid" &&
|
|
4202 {
|
|
4203 test -n "$verbose" && \
|
|
4204 echo " defining LWLIB_MENUBARS_LUCID"
|
|
4205 echo "#define" LWLIB_MENUBARS_LUCID "1" >> confdefs.h
|
|
4206 DEFS="$DEFS -DLWLIB_MENUBARS_LUCID=1"
|
|
4207 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_MENUBARS_LUCID\${ac_dB}LWLIB_MENUBARS_LUCID\${ac_dC}1\${ac_dD}
|
|
4208 \${ac_uA}LWLIB_MENUBARS_LUCID\${ac_uB}LWLIB_MENUBARS_LUCID\${ac_uC}1\${ac_uD}
|
|
4209 \${ac_eA}LWLIB_MENUBARS_LUCID\${ac_eB}LWLIB_MENUBARS_LUCID\${ac_eC}1\${ac_eD}
|
|
4210 "
|
|
4211 }
|
|
4212
|
|
4213 test "${with_menubars}" = "motif" &&
|
|
4214 {
|
|
4215 test -n "$verbose" && \
|
|
4216 echo " defining LWLIB_MENUBARS_MOTIF"
|
|
4217 echo "#define" LWLIB_MENUBARS_MOTIF "1" >> confdefs.h
|
|
4218 DEFS="$DEFS -DLWLIB_MENUBARS_MOTIF=1"
|
|
4219 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_MENUBARS_MOTIF\${ac_dB}LWLIB_MENUBARS_MOTIF\${ac_dC}1\${ac_dD}
|
|
4220 \${ac_uA}LWLIB_MENUBARS_MOTIF\${ac_uB}LWLIB_MENUBARS_MOTIF\${ac_uC}1\${ac_uD}
|
|
4221 \${ac_eA}LWLIB_MENUBARS_MOTIF\${ac_eB}LWLIB_MENUBARS_MOTIF\${ac_eC}1\${ac_eD}
|
|
4222 "
|
|
4223 }
|
|
4224
|
|
4225 test "${with_scrollbars}" = "lucid" &&
|
|
4226 {
|
|
4227 test -n "$verbose" && \
|
|
4228 echo " defining LWLIB_SCROLLBARS_LUCID"
|
|
4229 echo "#define" LWLIB_SCROLLBARS_LUCID "1" >> confdefs.h
|
|
4230 DEFS="$DEFS -DLWLIB_SCROLLBARS_LUCID=1"
|
|
4231 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_LUCID\${ac_dB}LWLIB_SCROLLBARS_LUCID\${ac_dC}1\${ac_dD}
|
|
4232 \${ac_uA}LWLIB_SCROLLBARS_LUCID\${ac_uB}LWLIB_SCROLLBARS_LUCID\${ac_uC}1\${ac_uD}
|
|
4233 \${ac_eA}LWLIB_SCROLLBARS_LUCID\${ac_eB}LWLIB_SCROLLBARS_LUCID\${ac_eC}1\${ac_eD}
|
|
4234 "
|
|
4235 }
|
|
4236
|
|
4237 test "${with_scrollbars}" = "motif" &&
|
|
4238 {
|
|
4239 test -n "$verbose" && \
|
|
4240 echo " defining LWLIB_SCROLLBARS_MOTIF"
|
|
4241 echo "#define" LWLIB_SCROLLBARS_MOTIF "1" >> confdefs.h
|
|
4242 DEFS="$DEFS -DLWLIB_SCROLLBARS_MOTIF=1"
|
|
4243 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_MOTIF\${ac_dB}LWLIB_SCROLLBARS_MOTIF\${ac_dC}1\${ac_dD}
|
|
4244 \${ac_uA}LWLIB_SCROLLBARS_MOTIF\${ac_uB}LWLIB_SCROLLBARS_MOTIF\${ac_uC}1\${ac_uD}
|
|
4245 \${ac_eA}LWLIB_SCROLLBARS_MOTIF\${ac_eB}LWLIB_SCROLLBARS_MOTIF\${ac_eC}1\${ac_eD}
|
|
4246 "
|
|
4247 }
|
|
4248
|
|
4249 test "${with_scrollbars}" = "athena" &&
|
|
4250 {
|
|
4251 test -n "$verbose" && \
|
|
4252 echo " defining LWLIB_SCROLLBARS_ATHENA"
|
|
4253 echo "#define" LWLIB_SCROLLBARS_ATHENA "1" >> confdefs.h
|
|
4254 DEFS="$DEFS -DLWLIB_SCROLLBARS_ATHENA=1"
|
|
4255 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_ATHENA\${ac_dB}LWLIB_SCROLLBARS_ATHENA\${ac_dC}1\${ac_dD}
|
|
4256 \${ac_uA}LWLIB_SCROLLBARS_ATHENA\${ac_uB}LWLIB_SCROLLBARS_ATHENA\${ac_uC}1\${ac_uD}
|
|
4257 \${ac_eA}LWLIB_SCROLLBARS_ATHENA\${ac_eB}LWLIB_SCROLLBARS_ATHENA\${ac_eC}1\${ac_eD}
|
|
4258 "
|
|
4259 }
|
|
4260
|
82
|
4261 if test "${with_scrollbars}" = "athena3d"; then
|
|
4262
|
|
4263 {
|
|
4264 test -n "$verbose" && \
|
|
4265 echo " defining LWLIB_SCROLLBARS_ATHENA"
|
|
4266 echo "#define" LWLIB_SCROLLBARS_ATHENA "1" >> confdefs.h
|
|
4267 DEFS="$DEFS -DLWLIB_SCROLLBARS_ATHENA=1"
|
|
4268 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_ATHENA\${ac_dB}LWLIB_SCROLLBARS_ATHENA\${ac_dC}1\${ac_dD}
|
|
4269 \${ac_uA}LWLIB_SCROLLBARS_ATHENA\${ac_uB}LWLIB_SCROLLBARS_ATHENA\${ac_uC}1\${ac_uD}
|
|
4270 \${ac_eA}LWLIB_SCROLLBARS_ATHENA\${ac_eB}LWLIB_SCROLLBARS_ATHENA\${ac_eC}1\${ac_eD}
|
|
4271 "
|
|
4272 }
|
|
4273
|
|
4274
|
|
4275 {
|
|
4276 test -n "$verbose" && \
|
|
4277 echo " defining LWLIB_SCROLLBARS_ATHENA3D"
|
|
4278 echo "#define" LWLIB_SCROLLBARS_ATHENA3D "1" >> confdefs.h
|
|
4279 DEFS="$DEFS -DLWLIB_SCROLLBARS_ATHENA3D=1"
|
|
4280 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_ATHENA3D\${ac_dB}LWLIB_SCROLLBARS_ATHENA3D\${ac_dC}1\${ac_dD}
|
|
4281 \${ac_uA}LWLIB_SCROLLBARS_ATHENA3D\${ac_uB}LWLIB_SCROLLBARS_ATHENA3D\${ac_uC}1\${ac_uD}
|
|
4282 \${ac_eA}LWLIB_SCROLLBARS_ATHENA3D\${ac_eB}LWLIB_SCROLLBARS_ATHENA3D\${ac_eC}1\${ac_eD}
|
|
4283 "
|
|
4284 }
|
|
4285
|
|
4286 fi
|
70
|
4287 test "${with_dialogs}" = "motif" &&
|
|
4288 {
|
|
4289 test -n "$verbose" && \
|
|
4290 echo " defining LWLIB_DIALOGS_MOTIF"
|
|
4291 echo "#define" LWLIB_DIALOGS_MOTIF "1" >> confdefs.h
|
|
4292 DEFS="$DEFS -DLWLIB_DIALOGS_MOTIF=1"
|
|
4293 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_MOTIF\${ac_dB}LWLIB_DIALOGS_MOTIF\${ac_dC}1\${ac_dD}
|
|
4294 \${ac_uA}LWLIB_DIALOGS_MOTIF\${ac_uB}LWLIB_DIALOGS_MOTIF\${ac_uC}1\${ac_uD}
|
|
4295 \${ac_eA}LWLIB_DIALOGS_MOTIF\${ac_eB}LWLIB_DIALOGS_MOTIF\${ac_eC}1\${ac_eD}
|
|
4296 "
|
|
4297 }
|
|
4298
|
|
4299 test "${with_dialogs}" = "athena" &&
|
|
4300 {
|
|
4301 test -n "$verbose" && \
|
|
4302 echo " defining LWLIB_DIALOGS_ATHENA"
|
|
4303 echo "#define" LWLIB_DIALOGS_ATHENA "1" >> confdefs.h
|
|
4304 DEFS="$DEFS -DLWLIB_DIALOGS_ATHENA=1"
|
|
4305 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_ATHENA\${ac_dB}LWLIB_DIALOGS_ATHENA\${ac_dC}1\${ac_dD}
|
|
4306 \${ac_uA}LWLIB_DIALOGS_ATHENA\${ac_uB}LWLIB_DIALOGS_ATHENA\${ac_uC}1\${ac_uD}
|
|
4307 \${ac_eA}LWLIB_DIALOGS_ATHENA\${ac_eB}LWLIB_DIALOGS_ATHENA\${ac_eC}1\${ac_eD}
|
|
4308 "
|
|
4309 }
|
0
|
4310
|
82
|
4311 if test "${with_dialogs}" = "athena3d"; then
|
|
4312
|
|
4313 {
|
|
4314 test -n "$verbose" && \
|
|
4315 echo " defining LWLIB_DIALOGS_ATHENA"
|
|
4316 echo "#define" LWLIB_DIALOGS_ATHENA "1" >> confdefs.h
|
|
4317 DEFS="$DEFS -DLWLIB_DIALOGS_ATHENA=1"
|
|
4318 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_ATHENA\${ac_dB}LWLIB_DIALOGS_ATHENA\${ac_dC}1\${ac_dD}
|
|
4319 \${ac_uA}LWLIB_DIALOGS_ATHENA\${ac_uB}LWLIB_DIALOGS_ATHENA\${ac_uC}1\${ac_uD}
|
|
4320 \${ac_eA}LWLIB_DIALOGS_ATHENA\${ac_eB}LWLIB_DIALOGS_ATHENA\${ac_eC}1\${ac_eD}
|
|
4321 "
|
|
4322 }
|
|
4323
|
|
4324
|
|
4325 {
|
|
4326 test -n "$verbose" && \
|
|
4327 echo " defining LWLIB_DIALOGS_ATHENA3D"
|
|
4328 echo "#define" LWLIB_DIALOGS_ATHENA3D "1" >> confdefs.h
|
|
4329 DEFS="$DEFS -DLWLIB_DIALOGS_ATHENA3D=1"
|
|
4330 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_ATHENA3D\${ac_dB}LWLIB_DIALOGS_ATHENA3D\${ac_dC}1\${ac_dD}
|
|
4331 \${ac_uA}LWLIB_DIALOGS_ATHENA3D\${ac_uB}LWLIB_DIALOGS_ATHENA3D\${ac_uC}1\${ac_uD}
|
|
4332 \${ac_eA}LWLIB_DIALOGS_ATHENA3D\${ac_eB}LWLIB_DIALOGS_ATHENA3D\${ac_eC}1\${ac_eD}
|
|
4333 "
|
|
4334 }
|
|
4335
|
|
4336 fi
|
0
|
4337
|
|
4338 ############################################################################
|
|
4339 # #
|
|
4340 # Misc other feature tests #
|
|
4341 # #
|
|
4342 ############################################################################
|
|
4343
|
70
|
4344 # Mule-dependent option processing
|
|
4345 if test "$with_mule" = "yes" ; then
|
|
4346 # Do we have the XmIm* routines? And if so, do we want to use them?
|
|
4347 test "$with_xim" != no && test -n "$silent" || echo "checking for XIM"
|
|
4348 if test -z "$with_xim" -o "$with_xim" = "yes" ; then
|
|
4349 xim_save_libs="$LIBS"
|
|
4350 LIBS="${motif_libs} ${LIBS}"
|
|
4351 test -n "$silent" || echo "checking for XmImMbLookupString"
|
|
4352 cat > conftest.${ac_ext} <<EOF
|
|
4353 #include "confdefs.h"
|
|
4354 #include <ctype.h>
|
|
4355 int main() { return 0; }
|
|
4356 int t() {
|
|
4357 /* The GNU C library defines this for functions which it implements
|
|
4358 to always fail with ENOSYS. Some functions are actually named
|
|
4359 something starting with __ and the normal name is an alias. */
|
|
4360 #if defined (__stub_XmImMbLookupString) || defined (__stub___XmImMbLookupString)
|
|
4361 choke me
|
|
4362 #else
|
|
4363 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4364 extern char XmImMbLookupString(); XmImMbLookupString();
|
|
4365 #endif
|
|
4366 ; return 0; }
|
|
4367 EOF
|
|
4368 if eval $ac_compile; then
|
|
4369 rm -rf conftest*
|
|
4370 have_XmIm=yes
|
|
4371
|
|
4372 else
|
|
4373 rm -rf conftest*
|
|
4374 have_XmIm=no
|
|
4375 fi
|
|
4376 rm -f conftest*
|
|
4377
|
|
4378 LIBS="$xim_save_libs"
|
|
4379 if test "$have_XmIm" = "yes"; then with_xim=motif
|
|
4380 elif test "$with_xim" = "yes"; then with_xim=xlib
|
|
4381 else with_xim=no
|
|
4382 fi
|
|
4383 fi
|
|
4384 if test "$with_xim" != "no" ; then
|
|
4385
|
|
4386 {
|
|
4387 test -n "$verbose" && \
|
|
4388 echo " defining HAVE_XIM"
|
|
4389 echo "#define" HAVE_XIM "1" >> confdefs.h
|
|
4390 DEFS="$DEFS -DHAVE_XIM=1"
|
|
4391 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XIM\${ac_dB}HAVE_XIM\${ac_dC}1\${ac_dD}
|
|
4392 \${ac_uA}HAVE_XIM\${ac_uB}HAVE_XIM\${ac_uC}1\${ac_uD}
|
|
4393 \${ac_eA}HAVE_XIM\${ac_eB}HAVE_XIM\${ac_eC}1\${ac_eD}
|
|
4394 "
|
|
4395 }
|
|
4396
|
|
4397 test "$with_xim" = "xlib" &&
|
|
4398 {
|
|
4399 test -n "$verbose" && \
|
|
4400 echo " defining XIM_XLIB"
|
|
4401 echo "#define" XIM_XLIB "1" >> confdefs.h
|
|
4402 DEFS="$DEFS -DXIM_XLIB=1"
|
|
4403 ac_sed_defs="${ac_sed_defs}\${ac_dA}XIM_XLIB\${ac_dB}XIM_XLIB\${ac_dC}1\${ac_dD}
|
|
4404 \${ac_uA}XIM_XLIB\${ac_uB}XIM_XLIB\${ac_uC}1\${ac_uD}
|
|
4405 \${ac_eA}XIM_XLIB\${ac_eB}XIM_XLIB\${ac_eC}1\${ac_eD}
|
|
4406 "
|
|
4407 }
|
|
4408
|
|
4409 test "$with_xim" = "motif" &&
|
|
4410 {
|
|
4411 test -n "$verbose" && \
|
|
4412 echo " defining XIM_MOTIF"
|
|
4413 echo "#define" XIM_MOTIF "1" >> confdefs.h
|
|
4414 DEFS="$DEFS -DXIM_MOTIF=1"
|
|
4415 ac_sed_defs="${ac_sed_defs}\${ac_dA}XIM_MOTIF\${ac_dB}XIM_MOTIF\${ac_dC}1\${ac_dD}
|
|
4416 \${ac_uA}XIM_MOTIF\${ac_uB}XIM_MOTIF\${ac_uC}1\${ac_uD}
|
|
4417 \${ac_eA}XIM_MOTIF\${ac_eB}XIM_MOTIF\${ac_eC}1\${ac_eD}
|
|
4418 "
|
|
4419 }
|
|
4420
|
|
4421 fi
|
|
4422 else # Other internationalization features depend on Mule
|
|
4423 with_mule="no"
|
|
4424 for feature in xim canna wnn ; do
|
|
4425 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then
|
|
4426 echo "configure: warning: --with-$feature ignored: Not valid without Mule support" >&2
|
|
4427 fi
|
|
4428 eval "with_$feature=no"
|
|
4429 done
|
|
4430 fi
|
|
4431
|
0
|
4432 # If netdb.h doesn't declare h_errno, we must declare it by hand.
|
|
4433 test -n "$silent" || echo "checking for declaration of h_errno in netdb.h"
|
|
4434 cat > conftest.${ac_ext} <<EOF
|
|
4435 #include "confdefs.h"
|
|
4436 #include <netdb.h>
|
|
4437 int main() { return 0; }
|
|
4438 int t() { int i = h_errno;; return 0; }
|
|
4439 EOF
|
|
4440 if eval $ac_compile; then
|
|
4441 rm -rf conftest*
|
|
4442
|
|
4443 {
|
|
4444 test -n "$verbose" && \
|
|
4445 echo " defining HAVE_H_ERRNO"
|
|
4446 echo "#define" HAVE_H_ERRNO "1" >> confdefs.h
|
|
4447 DEFS="$DEFS -DHAVE_H_ERRNO=1"
|
|
4448 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_H_ERRNO\${ac_dB}HAVE_H_ERRNO\${ac_dC}1\${ac_dD}
|
|
4449 \${ac_uA}HAVE_H_ERRNO\${ac_uB}HAVE_H_ERRNO\${ac_uC}1\${ac_uD}
|
|
4450 \${ac_eA}HAVE_H_ERRNO\${ac_eB}HAVE_H_ERRNO\${ac_eC}1\${ac_eD}
|
|
4451 "
|
|
4452 }
|
|
4453
|
|
4454
|
|
4455 fi
|
|
4456 rm -f conftest*
|
|
4457
|
|
4458
|
|
4459 test -n "$silent" || echo "checking for sigsetjmp"
|
|
4460 cat > conftest.${ac_ext} <<EOF
|
|
4461 #include "confdefs.h"
|
|
4462 #include <setjmp.h>
|
|
4463 int main() { return 0; }
|
|
4464 int t() { sigjmp_buf bar; sigsetjmp (bar, 0);; return 0; }
|
|
4465 EOF
|
|
4466 if eval $ac_compile; then
|
|
4467 rm -rf conftest*
|
|
4468
|
|
4469 {
|
|
4470 test -n "$verbose" && \
|
|
4471 echo " defining HAVE_SIGSETJMP"
|
|
4472 echo "#define" HAVE_SIGSETJMP "1" >> confdefs.h
|
|
4473 DEFS="$DEFS -DHAVE_SIGSETJMP=1"
|
|
4474 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SIGSETJMP\${ac_dB}HAVE_SIGSETJMP\${ac_dC}1\${ac_dD}
|
|
4475 \${ac_uA}HAVE_SIGSETJMP\${ac_uB}HAVE_SIGSETJMP\${ac_uC}1\${ac_uD}
|
|
4476 \${ac_eA}HAVE_SIGSETJMP\${ac_eB}HAVE_SIGSETJMP\${ac_eC}1\${ac_eD}
|
|
4477 "
|
|
4478 }
|
|
4479
|
|
4480
|
|
4481 fi
|
|
4482 rm -f conftest*
|
|
4483
|
|
4484
|
|
4485 test -n "$silent" || echo "checking whether localtime caches TZ"
|
|
4486 emacs_cv_localtime_cache=
|
|
4487 test -n "$silent" || echo "checking whether cross-compiling"
|
|
4488 # If we cannot run a trivial program, we must be cross compiling.
|
|
4489 cat > conftest.${ac_ext} <<EOF
|
|
4490 #include "confdefs.h"
|
|
4491 main(){exit(0);}
|
|
4492 EOF
|
|
4493 eval $ac_compile
|
|
4494 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
4495 :
|
|
4496 else
|
|
4497 cross_compiling=1
|
|
4498 fi
|
|
4499 rm -fr conftest*
|
|
4500
|
|
4501 if test -n "$cross_compiling"
|
|
4502 then
|
|
4503 # If we have tzset, assume the worst when cross-compiling.
|
|
4504 emacs_cv_localtime_cache=yes
|
|
4505 else
|
|
4506 cat > conftest.${ac_ext} <<EOF
|
|
4507 #include "confdefs.h"
|
|
4508 #include <time.h>
|
|
4509 #if 1 /* STDC_HEADERS */
|
|
4510 # include <stdlib.h>
|
|
4511 #endif
|
|
4512 extern char **environ;
|
|
4513 unset_TZ ()
|
|
4514 {
|
|
4515 char **from, **to;
|
|
4516 for (to = from = environ; (*to = *from); from++)
|
|
4517 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
4518 to++;
|
|
4519 }
|
|
4520 main()
|
|
4521 {
|
|
4522 time_t now = time ((time_t *) 0);
|
|
4523 int hour_GMT0, hour_unset;
|
|
4524 if (putenv ("TZ=GMT0") != 0)
|
|
4525 exit (1);
|
|
4526 hour_GMT0 = localtime (&now)->tm_hour;
|
|
4527 unset_TZ ();
|
|
4528 hour_unset = localtime (&now)->tm_hour;
|
|
4529 if (putenv ("TZ=PST8") != 0)
|
|
4530 exit (1);
|
|
4531 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
4532 exit (1);
|
|
4533 unset_TZ ();
|
|
4534 if (localtime (&now)->tm_hour != hour_unset)
|
|
4535 exit (1);
|
|
4536 exit (0);
|
|
4537 }
|
|
4538 EOF
|
|
4539 eval $ac_compile
|
|
4540 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
4541 emacs_cv_localtime_cache=no
|
|
4542
|
|
4543 else
|
|
4544 emacs_cv_localtime_cache=yes
|
|
4545 fi
|
|
4546 fi
|
|
4547 rm -fr conftest*
|
|
4548 test -n "$verbose" && echo " "$emacs_cv_localtime_cache""
|
|
4549 if test x$emacs_cv_localtime_cache = xyes; then
|
|
4550
|
|
4551 {
|
|
4552 test -n "$verbose" && \
|
|
4553 echo " defining LOCALTIME_CACHE"
|
|
4554 echo "#define" LOCALTIME_CACHE "1" >> confdefs.h
|
|
4555 DEFS="$DEFS -DLOCALTIME_CACHE=1"
|
|
4556 ac_sed_defs="${ac_sed_defs}\${ac_dA}LOCALTIME_CACHE\${ac_dB}LOCALTIME_CACHE\${ac_dC}1\${ac_dD}
|
|
4557 \${ac_uA}LOCALTIME_CACHE\${ac_uB}LOCALTIME_CACHE\${ac_uC}1\${ac_uD}
|
|
4558 \${ac_eA}LOCALTIME_CACHE\${ac_eB}LOCALTIME_CACHE\${ac_eC}1\${ac_eD}
|
|
4559 "
|
|
4560 }
|
|
4561
|
|
4562 fi
|
|
4563
|
|
4564 if test "x$HAVE_TIMEVAL" = xyes; then
|
|
4565 test -n "$silent" || echo "checking for whether gettimeofday can't accept two arguments"
|
|
4566 cat > conftest.${ac_ext} <<EOF
|
|
4567 #include "confdefs.h"
|
|
4568
|
|
4569 #ifdef TIME_WITH_SYS_TIME
|
|
4570 #include <sys/time.h>
|
|
4571 #include <time.h>
|
|
4572 #else
|
|
4573 #ifdef HAVE_SYS_TIME_H
|
|
4574 #include <sys/time.h>
|
|
4575 #else
|
|
4576 #include <time.h>
|
|
4577 #endif
|
|
4578 #endif
|
|
4579
|
|
4580 int main() { return 0; }
|
|
4581 int t() {
|
|
4582 struct timeval time;
|
|
4583 struct timezone dummy;
|
|
4584 gettimeofday (&time, &dummy);
|
|
4585 ; return 0; }
|
|
4586 EOF
|
|
4587 if eval $ac_compile; then
|
|
4588 rm -rf conftest*
|
|
4589 test -n "$verbose" && echo " no"
|
|
4590
|
|
4591 else
|
|
4592 rm -rf conftest*
|
|
4593 test -n "$verbose" && echo " yes"
|
|
4594
|
|
4595 {
|
|
4596 test -n "$verbose" && \
|
|
4597 echo " defining GETTIMEOFDAY_ONE_ARGUMENT"
|
|
4598 echo "#define" GETTIMEOFDAY_ONE_ARGUMENT "1" >> confdefs.h
|
|
4599 DEFS="$DEFS -DGETTIMEOFDAY_ONE_ARGUMENT=1"
|
|
4600 ac_sed_defs="${ac_sed_defs}\${ac_dA}GETTIMEOFDAY_ONE_ARGUMENT\${ac_dB}GETTIMEOFDAY_ONE_ARGUMENT\${ac_dC}1\${ac_dD}
|
|
4601 \${ac_uA}GETTIMEOFDAY_ONE_ARGUMENT\${ac_uB}GETTIMEOFDAY_ONE_ARGUMENT\${ac_uC}1\${ac_uD}
|
|
4602 \${ac_eA}GETTIMEOFDAY_ONE_ARGUMENT\${ac_eB}GETTIMEOFDAY_ONE_ARGUMENT\${ac_eC}1\${ac_eD}
|
|
4603 "
|
|
4604 }
|
|
4605
|
|
4606 fi
|
|
4607 rm -f conftest*
|
|
4608
|
|
4609 fi
|
|
4610
|
|
4611 test -n "$silent" || echo "checking for whether inline functions are supported"
|
|
4612 cat > conftest.${ac_ext} <<EOF
|
|
4613 #include "confdefs.h"
|
|
4614
|
|
4615 int main() { return 0; }
|
|
4616 int t() {
|
|
4617 inline int
|
|
4618 foo ()
|
|
4619 {
|
|
4620 return 0;
|
|
4621 }
|
|
4622 ; return 0; }
|
|
4623 EOF
|
|
4624 if eval $ac_compile; then
|
|
4625 rm -rf conftest*
|
|
4626
|
|
4627 {
|
|
4628 test -n "$verbose" && \
|
|
4629 echo " defining HAVE_INLINE"
|
|
4630 echo "#define" HAVE_INLINE "1" >> confdefs.h
|
|
4631 DEFS="$DEFS -DHAVE_INLINE=1"
|
|
4632 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_INLINE\${ac_dB}HAVE_INLINE\${ac_dC}1\${ac_dD}
|
|
4633 \${ac_uA}HAVE_INLINE\${ac_uB}HAVE_INLINE\${ac_uC}1\${ac_uD}
|
|
4634 \${ac_eA}HAVE_INLINE\${ac_eB}HAVE_INLINE\${ac_eC}1\${ac_eD}
|
|
4635 "
|
|
4636 }
|
|
4637
|
|
4638
|
|
4639 fi
|
|
4640 rm -f conftest*
|
|
4641
|
|
4642
|
|
4643 # This does all sorts of magic to make sure alloca() works OK.
|
|
4644 # It might even add some junk to the top of <config.h>.
|
|
4645 # (I don't understand what goes on here, but it seems to work.)
|
|
4646 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|
4647 # for constant arguments. Useless!
|
|
4648 test -n "$silent" || echo "checking for working alloca.h"
|
|
4649 cat > conftest.${ac_ext} <<EOF
|
|
4650 #include "confdefs.h"
|
|
4651 #include <alloca.h>
|
|
4652 int main() { return 0; }
|
|
4653 int t() { char *p = alloca(2 * sizeof(int));; return 0; }
|
|
4654 EOF
|
|
4655 if eval $ac_compile; then
|
|
4656 rm -rf conftest*
|
|
4657
|
|
4658 {
|
|
4659 test -n "$verbose" && \
|
|
4660 echo " defining HAVE_ALLOCA_H"
|
|
4661 echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
|
|
4662 DEFS="$DEFS -DHAVE_ALLOCA_H=1"
|
|
4663 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA_H\${ac_dB}HAVE_ALLOCA_H\${ac_dC}1\${ac_dD}
|
|
4664 \${ac_uA}HAVE_ALLOCA_H\${ac_uB}HAVE_ALLOCA_H\${ac_uC}1\${ac_uD}
|
|
4665 \${ac_eA}HAVE_ALLOCA_H\${ac_eB}HAVE_ALLOCA_H\${ac_eC}1\${ac_eD}
|
|
4666 "
|
|
4667 }
|
|
4668
|
|
4669
|
|
4670 fi
|
|
4671 rm -f conftest*
|
|
4672
|
|
4673 ac_decl="#ifdef __GNUC__
|
|
4674 #define alloca __builtin_alloca
|
|
4675 #else
|
|
4676 #if HAVE_ALLOCA_H
|
|
4677 #include <alloca.h>
|
|
4678 #else
|
|
4679 #ifdef _AIX
|
|
4680 #pragma alloca
|
|
4681 #else
|
|
4682 char *alloca ();
|
|
4683 #endif
|
|
4684 #endif
|
|
4685 #endif
|
|
4686 "
|
|
4687 test -n "$silent" || echo "checking for alloca"
|
|
4688 cat > conftest.${ac_ext} <<EOF
|
|
4689 #include "confdefs.h"
|
|
4690 $ac_decl
|
|
4691 int main() { return 0; }
|
|
4692 int t() { char *p = (char *) alloca(1);; return 0; }
|
|
4693 EOF
|
|
4694 if eval $ac_compile; then
|
|
4695 rm -rf conftest*
|
|
4696
|
|
4697 {
|
|
4698 test -n "$verbose" && \
|
|
4699 echo " defining HAVE_ALLOCA"
|
|
4700 echo "#define" HAVE_ALLOCA "1" >> confdefs.h
|
|
4701 DEFS="$DEFS -DHAVE_ALLOCA=1"
|
|
4702 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA\${ac_dB}HAVE_ALLOCA\${ac_dC}1\${ac_dD}
|
|
4703 \${ac_uA}HAVE_ALLOCA\${ac_uB}HAVE_ALLOCA\${ac_uC}1\${ac_uD}
|
|
4704 \${ac_eA}HAVE_ALLOCA\${ac_eB}HAVE_ALLOCA\${ac_eC}1\${ac_eD}
|
|
4705 "
|
|
4706 }
|
|
4707
|
|
4708
|
|
4709 else
|
|
4710 rm -rf conftest*
|
|
4711 ac_alloca_missing=1
|
|
4712 cat > conftest.${ac_ext} <<EOF
|
|
4713 #include "confdefs.h"
|
|
4714
|
|
4715 #if defined(CRAY) && ! defined(CRAY2)
|
|
4716 winnitude
|
|
4717 #else
|
|
4718 lossage
|
|
4719 #endif
|
|
4720
|
|
4721 EOF
|
|
4722 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
|
|
4723 if egrep "winnitude" conftest.out >/dev/null 2>&1; then
|
|
4724 rm -rf conftest*
|
|
4725 test -n "$silent" || echo "checking for _getb67"
|
|
4726 cat > conftest.${ac_ext} <<EOF
|
|
4727 #include "confdefs.h"
|
|
4728 #include <ctype.h>
|
|
4729 int main() { return 0; }
|
|
4730 int t() {
|
|
4731 /* The GNU C library defines this for functions which it implements
|
|
4732 to always fail with ENOSYS. Some functions are actually named
|
|
4733 something starting with __ and the normal name is an alias. */
|
|
4734 #if defined (__stub__getb67) || defined (__stub____getb67)
|
|
4735 choke me
|
|
4736 #else
|
|
4737 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4738 extern char _getb67(); _getb67();
|
|
4739 #endif
|
|
4740 ; return 0; }
|
|
4741 EOF
|
|
4742 if eval $ac_compile; then
|
|
4743 rm -rf conftest*
|
|
4744 {
|
|
4745 test -n "$verbose" && \
|
|
4746 echo " defining" CRAY_STACKSEG_END to be "_getb67"
|
|
4747 echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
|
|
4748 DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
|
|
4749 ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}_getb67\${ac_dD}
|
|
4750 \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}_getb67\${ac_uD}
|
|
4751 \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}_getb67\${ac_eD}
|
|
4752 "
|
|
4753 }
|
|
4754
|
|
4755
|
|
4756 else
|
|
4757 rm -rf conftest*
|
|
4758 test -n "$silent" || echo "checking for GETB67"
|
|
4759 cat > conftest.${ac_ext} <<EOF
|
|
4760 #include "confdefs.h"
|
|
4761 #include <ctype.h>
|
|
4762 int main() { return 0; }
|
|
4763 int t() {
|
|
4764 /* The GNU C library defines this for functions which it implements
|
|
4765 to always fail with ENOSYS. Some functions are actually named
|
|
4766 something starting with __ and the normal name is an alias. */
|
|
4767 #if defined (__stub_GETB67) || defined (__stub___GETB67)
|
|
4768 choke me
|
|
4769 #else
|
|
4770 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4771 extern char GETB67(); GETB67();
|
|
4772 #endif
|
|
4773 ; return 0; }
|
|
4774 EOF
|
|
4775 if eval $ac_compile; then
|
|
4776 rm -rf conftest*
|
|
4777 {
|
|
4778 test -n "$verbose" && \
|
|
4779 echo " defining" CRAY_STACKSEG_END to be "GETB67"
|
|
4780 echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
|
|
4781 DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
|
|
4782 ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}GETB67\${ac_dD}
|
|
4783 \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}GETB67\${ac_uD}
|
|
4784 \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}GETB67\${ac_eD}
|
|
4785 "
|
|
4786 }
|
|
4787
|
|
4788
|
|
4789 else
|
|
4790 rm -rf conftest*
|
|
4791 test -n "$silent" || echo "checking for getb67"
|
|
4792 cat > conftest.${ac_ext} <<EOF
|
|
4793 #include "confdefs.h"
|
|
4794 #include <ctype.h>
|
|
4795 int main() { return 0; }
|
|
4796 int t() {
|
|
4797 /* The GNU C library defines this for functions which it implements
|
|
4798 to always fail with ENOSYS. Some functions are actually named
|
|
4799 something starting with __ and the normal name is an alias. */
|
|
4800 #if defined (__stub_getb67) || defined (__stub___getb67)
|
|
4801 choke me
|
|
4802 #else
|
|
4803 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4804 extern char getb67(); getb67();
|
|
4805 #endif
|
|
4806 ; return 0; }
|
|
4807 EOF
|
|
4808 if eval $ac_compile; then
|
|
4809 rm -rf conftest*
|
|
4810 {
|
|
4811 test -n "$verbose" && \
|
|
4812 echo " defining" CRAY_STACKSEG_END to be "getb67"
|
|
4813 echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
|
|
4814 DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
|
|
4815 ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}getb67\${ac_dD}
|
|
4816 \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}getb67\${ac_uD}
|
|
4817 \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}getb67\${ac_eD}
|
|
4818 "
|
|
4819 }
|
|
4820
|
|
4821
|
|
4822 fi
|
|
4823 rm -f conftest*
|
|
4824
|
|
4825 fi
|
|
4826 rm -f conftest*
|
|
4827
|
|
4828 fi
|
|
4829 rm -f conftest*
|
|
4830
|
|
4831
|
|
4832 fi
|
|
4833 rm -f conftest*
|
|
4834
|
|
4835
|
|
4836 fi
|
|
4837 rm -f conftest*
|
|
4838
|
|
4839 if test -n "$ac_alloca_missing"; then
|
|
4840 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
4841 # that cause trouble. Some versions do not even contain alloca or
|
|
4842 # contain a buggy version. If you still want to use their alloca,
|
|
4843 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|
4844 ALLOCA=alloca.o
|
|
4845
|
|
4846 {
|
|
4847 test -n "$verbose" && \
|
|
4848 echo " defining C_ALLOCA"
|
|
4849 echo "#define" C_ALLOCA "1" >> confdefs.h
|
|
4850 DEFS="$DEFS -DC_ALLOCA=1"
|
|
4851 ac_sed_defs="${ac_sed_defs}\${ac_dA}C_ALLOCA\${ac_dB}C_ALLOCA\${ac_dC}1\${ac_dD}
|
|
4852 \${ac_uA}C_ALLOCA\${ac_uB}C_ALLOCA\${ac_uC}1\${ac_uD}
|
|
4853 \${ac_eA}C_ALLOCA\${ac_eB}C_ALLOCA\${ac_eC}1\${ac_eD}
|
|
4854 "
|
|
4855 }
|
|
4856
|
|
4857
|
|
4858 test -n "$silent" || echo "checking stack direction for C alloca"
|
|
4859 if test -n "$cross_compiling"
|
|
4860 then
|
|
4861
|
|
4862 {
|
|
4863 test -n "$verbose" && \
|
|
4864 echo " defining" STACK_DIRECTION to be "0"
|
|
4865 echo "#define" STACK_DIRECTION "0" >> confdefs.h
|
|
4866 DEFS="$DEFS -DSTACK_DIRECTION=0"
|
|
4867 ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}0\${ac_dD}
|
|
4868 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}0\${ac_uD}
|
|
4869 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}0\${ac_eD}
|
|
4870 "
|
|
4871 }
|
|
4872
|
|
4873 else
|
|
4874 cat > conftest.${ac_ext} <<EOF
|
|
4875 #include "confdefs.h"
|
|
4876 find_stack_direction ()
|
|
4877 {
|
|
4878 static char *addr = 0;
|
|
4879 auto char dummy;
|
|
4880 if (addr == 0)
|
|
4881 {
|
|
4882 addr = &dummy;
|
|
4883 return find_stack_direction ();
|
|
4884 }
|
|
4885 else
|
|
4886 return (&dummy > addr) ? 1 : -1;
|
|
4887 }
|
|
4888 main ()
|
|
4889 {
|
|
4890 exit (find_stack_direction() < 0);
|
|
4891 }
|
|
4892 EOF
|
|
4893 eval $ac_compile
|
|
4894 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
4895
|
|
4896 {
|
|
4897 test -n "$verbose" && \
|
|
4898 echo " defining" STACK_DIRECTION to be "1"
|
|
4899 echo "#define" STACK_DIRECTION "1" >> confdefs.h
|
|
4900 DEFS="$DEFS -DSTACK_DIRECTION=1"
|
|
4901 ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}1\${ac_dD}
|
|
4902 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}1\${ac_uD}
|
|
4903 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}1\${ac_eD}
|
|
4904 "
|
|
4905 }
|
|
4906
|
|
4907
|
|
4908 else
|
|
4909
|
|
4910 {
|
|
4911 test -n "$verbose" && \
|
|
4912 echo " defining" STACK_DIRECTION to be "-1"
|
|
4913 echo "#define" STACK_DIRECTION "-1" >> confdefs.h
|
|
4914 DEFS="$DEFS -DSTACK_DIRECTION=-1"
|
|
4915 ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}-1\${ac_dD}
|
|
4916 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}-1\${ac_uD}
|
|
4917 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}-1\${ac_eD}
|
|
4918 "
|
|
4919 }
|
|
4920
|
|
4921 fi
|
|
4922 fi
|
|
4923 rm -fr conftest*
|
|
4924 fi
|
|
4925
|
|
4926
|
|
4927 # Check whether vfork exists and works correctly. (This does more
|
|
4928 # than just check for its existence.) If so, it defines HAVE_VFORK_H.
|
|
4929 # If not, it defines vfork to be fork.
|
|
4930 test -n "$silent" || echo "checking for pid_t in sys/types.h"
|
|
4931 echo '#include "confdefs.h"
|
|
4932 #include <sys/types.h>' > conftest.${ac_ext}
|
|
4933 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
|
|
4934 if egrep "pid_t" conftest.out >/dev/null 2>&1; then
|
|
4935 :
|
|
4936 else
|
|
4937 rm -rf conftest*
|
|
4938
|
|
4939 {
|
|
4940 test -n "$verbose" && \
|
|
4941 echo " defining" pid_t to be "int"
|
|
4942 echo "#define" pid_t "int" >> confdefs.h
|
|
4943 DEFS="$DEFS -Dpid_t=int"
|
|
4944 ac_sed_defs="${ac_sed_defs}\${ac_dA}pid_t\${ac_dB}pid_t\${ac_dC}int\${ac_dD}
|
|
4945 \${ac_uA}pid_t\${ac_uB}pid_t\${ac_uC}int\${ac_uD}
|
|
4946 \${ac_eA}pid_t\${ac_eB}pid_t\${ac_eC}int\${ac_eD}
|
|
4947 "
|
|
4948 }
|
|
4949
|
|
4950 fi
|
|
4951 rm -f conftest*
|
|
4952
|
|
4953 test -n "$silent" || echo "checking for vfork.h"
|
|
4954 cat > conftest.${ac_ext} <<EOF
|
|
4955 #include "confdefs.h"
|
|
4956 #include <vfork.h>
|
|
4957 EOF
|
|
4958 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
4959 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
4960 echo "$ac_err"
|
|
4961 fi
|
|
4962 if test -z "$ac_err"; then
|
|
4963 rm -rf conftest*
|
|
4964
|
|
4965 {
|
|
4966 test -n "$verbose" && \
|
|
4967 echo " defining HAVE_VFORK_H"
|
|
4968 echo "#define" HAVE_VFORK_H "1" >> confdefs.h
|
|
4969 DEFS="$DEFS -DHAVE_VFORK_H=1"
|
|
4970 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_VFORK_H\${ac_dB}HAVE_VFORK_H\${ac_dC}1\${ac_dD}
|
|
4971 \${ac_uA}HAVE_VFORK_H\${ac_uB}HAVE_VFORK_H\${ac_uC}1\${ac_uD}
|
|
4972 \${ac_eA}HAVE_VFORK_H\${ac_eB}HAVE_VFORK_H\${ac_eC}1\${ac_eD}
|
|
4973 "
|
|
4974 }
|
|
4975
|
|
4976
|
|
4977 fi
|
|
4978 rm -f conftest*
|
|
4979
|
|
4980 test -n "$silent" || echo "checking for working vfork"
|
|
4981
|
|
4982 cat > conftest.${ac_ext} <<EOF
|
|
4983 #include "confdefs.h"
|
|
4984 /* Thanks to Paul Eggert for this test. */
|
|
4985 #include <stdio.h>
|
|
4986 #include <sys/types.h>
|
|
4987 #include <sys/stat.h>
|
|
4988 #include <signal.h>
|
|
4989 #ifdef HAVE_UNISTD_H
|
|
4990 #include <unistd.h>
|
|
4991 #endif
|
|
4992 #ifdef HAVE_VFORK_H
|
|
4993 #include <vfork.h>
|
|
4994 #endif
|
|
4995 static int signalled;
|
|
4996 static RETSIGTYPE catch (s) int s; { signalled = 1; }
|
|
4997 main() {
|
|
4998 pid_t parent = getpid ();
|
|
4999 pid_t child;
|
|
5000
|
|
5001 signal (SIGINT, catch);
|
|
5002
|
|
5003 child = vfork ();
|
|
5004
|
|
5005 if (child == 0) {
|
|
5006 /* On sparc systems, changes by the child to local and incoming
|
|
5007 argument registers are propagated back to the parent.
|
|
5008 The compiler is told about this with #include <vfork.h>,
|
|
5009 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
|
|
5010 Test for this by using lots of local variables, at least
|
|
5011 as many local variables as main has allocated so far
|
|
5012 including compiler temporaries. 4 locals are enough for
|
|
5013 gcc 1.40.3 on a sparc, but we use 8 to be safe.
|
|
5014 A buggy compiler should reuse the register of parent
|
|
5015 for one of the local variables, since it will think that
|
|
5016 parent can't possibly be used any more in this routine.
|
|
5017 Assigning to the local variable will thus munge parent
|
|
5018 in the parent process. */
|
|
5019 pid_t
|
|
5020 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
|
5021 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
|
5022 /* Convince the compiler that p..p7 are live; otherwise, it might
|
|
5023 use the same hardware register for all 8 local variables. */
|
|
5024 if (p != p1 || p != p2 || p != p3 || p != p4
|
|
5025 || p != p5 || p != p6 || p != p7)
|
|
5026 _exit(1);
|
|
5027
|
|
5028 /* On some systems (e.g. SunOS 5.2), if the parent is catching
|
|
5029 a signal, the child ignores the signal before execing,
|
|
5030 and the parent later receives that signal, the parent dumps core.
|
|
5031 Test for this by ignoring SIGINT in the child. */
|
|
5032 signal (SIGINT, SIG_IGN);
|
|
5033
|
|
5034 /* On some systems (e.g. IRIX 3.3),
|
|
5035 vfork doesn't separate parent from child file descriptors.
|
|
5036 If the child closes a descriptor before it execs or exits,
|
|
5037 this munges the parent's descriptor as well.
|
|
5038 Test for this by closing stdout in the child. */
|
|
5039 _exit(close(fileno(stdout)) != 0);
|
|
5040 } else {
|
|
5041 int status;
|
|
5042 struct stat st;
|
|
5043
|
|
5044 while (wait(&status) != child)
|
|
5045 ;
|
|
5046 exit(
|
|
5047 /* Was there some problem with vforking? */
|
|
5048 child < 0
|
|
5049
|
|
5050 /* Did the child fail? (This shouldn't happen.) */
|
|
5051 || status
|
|
5052
|
|
5053 /* Did the vfork/compiler bug occur? */
|
|
5054 || parent != getpid()
|
|
5055
|
|
5056 /* Did the signal handling bug occur? */
|
|
5057 || kill(parent, SIGINT) != 0
|
|
5058 || signalled != 1
|
|
5059
|
|
5060 /* Did the file descriptor bug occur? */
|
|
5061 || fstat(fileno(stdout), &st) != 0
|
|
5062 );
|
|
5063 }
|
|
5064 }
|
|
5065 EOF
|
|
5066 eval $ac_compile
|
|
5067 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
5068 :
|
|
5069 else
|
|
5070
|
|
5071 {
|
|
5072 test -n "$verbose" && \
|
|
5073 echo " defining" vfork to be "fork"
|
|
5074 echo "#define" vfork "fork" >> confdefs.h
|
|
5075 DEFS="$DEFS -Dvfork=fork"
|
|
5076 ac_sed_defs="${ac_sed_defs}\${ac_dA}vfork\${ac_dB}vfork\${ac_dC}fork\${ac_dD}
|
|
5077 \${ac_uA}vfork\${ac_uB}vfork\${ac_uC}fork\${ac_uD}
|
|
5078 \${ac_eA}vfork\${ac_eB}vfork\${ac_eC}fork\${ac_eD}
|
|
5079 "
|
|
5080 }
|
|
5081
|
|
5082 fi
|
|
5083 rm -fr conftest*
|
|
5084
|
|
5085
|
|
5086 # Check whether mmap exists and works correctly. (This does more
|
|
5087 # than just check for its existence.) If so, it defines HAVE_MMAP.
|
|
5088 # Actually, this seems to rule out some cases where mmap() can
|
|
5089 # work fine for our purposes (e.g. HPUX). We get a big win out
|
|
5090 # of using mmap(), so let's go back to the old way.
|
|
5091
|
|
5092 # Check whether strcoll exists and works correctly. (This does more
|
|
5093 # than just check for its existence.) If so, it defines HAVE_STRCOLL.
|
|
5094 test -n "$silent" || echo "checking for strcoll"
|
|
5095 cat > conftest.${ac_ext} <<EOF
|
|
5096 #include "confdefs.h"
|
|
5097 #include <string.h>
|
|
5098 main ()
|
|
5099 {
|
|
5100 exit (strcoll ("abc", "def") >= 0 ||
|
|
5101 strcoll ("ABC", "DEF") >= 0 ||
|
|
5102 strcoll ("123", "456") >= 0);
|
|
5103 }
|
|
5104 EOF
|
|
5105 eval $ac_compile
|
|
5106 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
5107
|
|
5108 {
|
|
5109 test -n "$verbose" && \
|
|
5110 echo " defining HAVE_STRCOLL"
|
|
5111 echo "#define" HAVE_STRCOLL "1" >> confdefs.h
|
|
5112 DEFS="$DEFS -DHAVE_STRCOLL=1"
|
|
5113 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STRCOLL\${ac_dB}HAVE_STRCOLL\${ac_dC}1\${ac_dD}
|
|
5114 \${ac_uA}HAVE_STRCOLL\${ac_uB}HAVE_STRCOLL\${ac_uC}1\${ac_uD}
|
|
5115 \${ac_eA}HAVE_STRCOLL\${ac_eB}HAVE_STRCOLL\${ac_eC}1\${ac_eD}
|
|
5116 "
|
|
5117 }
|
|
5118
|
|
5119
|
|
5120 fi
|
|
5121 rm -fr conftest*
|
|
5122
|
|
5123 test -n "$silent" || echo "checking size of short"
|
|
5124 cat > conftest.${ac_ext} <<EOF
|
|
5125 #include "confdefs.h"
|
|
5126 #include <stdio.h>
|
|
5127 main()
|
|
5128 {
|
|
5129 FILE *f=fopen("conftestval", "w");
|
|
5130 if (!f) exit(1);
|
|
5131 fprintf(f, "%d\n", sizeof(short));
|
|
5132 exit(0);
|
|
5133 }
|
|
5134 EOF
|
|
5135 eval $ac_compile
|
|
5136 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
5137 ac_size=`cat conftestval`
|
|
5138
|
|
5139 else
|
|
5140 echo "configure: can not determine size of short" >&2; exit 1
|
|
5141 fi
|
|
5142 rm -fr conftest*
|
|
5143
|
|
5144 {
|
|
5145 test -n "$verbose" && \
|
|
5146 echo " defining" SIZEOF_SHORT to be "$ac_size"
|
|
5147 echo "#define" SIZEOF_SHORT "$ac_size" >> confdefs.h
|
|
5148 DEFS="$DEFS -DSIZEOF_SHORT=$ac_size"
|
|
5149 ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_SHORT\${ac_dB}SIZEOF_SHORT\${ac_dC}$ac_size\${ac_dD}
|
|
5150 \${ac_uA}SIZEOF_SHORT\${ac_uB}SIZEOF_SHORT\${ac_uC}$ac_size\${ac_uD}
|
|
5151 \${ac_eA}SIZEOF_SHORT\${ac_eB}SIZEOF_SHORT\${ac_eC}$ac_size\${ac_eD}
|
|
5152 "
|
|
5153 }
|
|
5154
|
|
5155 test -n "$silent" || echo "checking size of int"
|
|
5156 cat > conftest.${ac_ext} <<EOF
|
|
5157 #include "confdefs.h"
|
|
5158 #include <stdio.h>
|
|
5159 main()
|
|
5160 {
|
|
5161 FILE *f=fopen("conftestval", "w");
|
|
5162 if (!f) exit(1);
|
|
5163 fprintf(f, "%d\n", sizeof(int));
|
|
5164 exit(0);
|
|
5165 }
|
|
5166 EOF
|
|
5167 eval $ac_compile
|
|
5168 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
5169 ac_size=`cat conftestval`
|
|
5170
|
|
5171 else
|
|
5172 echo "configure: can not determine size of int" >&2; exit 1
|
|
5173 fi
|
|
5174 rm -fr conftest*
|
|
5175
|
|
5176 {
|
|
5177 test -n "$verbose" && \
|
|
5178 echo " defining" SIZEOF_INT to be "$ac_size"
|
|
5179 echo "#define" SIZEOF_INT "$ac_size" >> confdefs.h
|
|
5180 DEFS="$DEFS -DSIZEOF_INT=$ac_size"
|
|
5181 ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_INT\${ac_dB}SIZEOF_INT\${ac_dC}$ac_size\${ac_dD}
|
|
5182 \${ac_uA}SIZEOF_INT\${ac_uB}SIZEOF_INT\${ac_uC}$ac_size\${ac_uD}
|
|
5183 \${ac_eA}SIZEOF_INT\${ac_eB}SIZEOF_INT\${ac_eC}$ac_size\${ac_eD}
|
|
5184 "
|
|
5185 }
|
|
5186
|
|
5187 test -n "$silent" || echo "checking size of long"
|
|
5188 cat > conftest.${ac_ext} <<EOF
|
|
5189 #include "confdefs.h"
|
|
5190 #include <stdio.h>
|
|
5191 main()
|
|
5192 {
|
|
5193 FILE *f=fopen("conftestval", "w");
|
|
5194 if (!f) exit(1);
|
|
5195 fprintf(f, "%d\n", sizeof(long));
|
|
5196 exit(0);
|
|
5197 }
|
|
5198 EOF
|
|
5199 eval $ac_compile
|
|
5200 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
5201 ac_size=`cat conftestval`
|
|
5202
|
|
5203 else
|
|
5204 echo "configure: can not determine size of long" >&2; exit 1
|
|
5205 fi
|
|
5206 rm -fr conftest*
|
|
5207
|
|
5208 {
|
|
5209 test -n "$verbose" && \
|
|
5210 echo " defining" SIZEOF_LONG to be "$ac_size"
|
|
5211 echo "#define" SIZEOF_LONG "$ac_size" >> confdefs.h
|
|
5212 DEFS="$DEFS -DSIZEOF_LONG=$ac_size"
|
|
5213 ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_LONG\${ac_dB}SIZEOF_LONG\${ac_dC}$ac_size\${ac_dD}
|
|
5214 \${ac_uA}SIZEOF_LONG\${ac_uB}SIZEOF_LONG\${ac_uC}$ac_size\${ac_uD}
|
|
5215 \${ac_eA}SIZEOF_LONG\${ac_eB}SIZEOF_LONG\${ac_eC}$ac_size\${ac_eD}
|
|
5216 "
|
|
5217 }
|
|
5218
|
|
5219
|
|
5220 # FSF 19.29 does this:
|
|
5221 # # fmod, logb, and frexp are found in -lm on most systems.
|
|
5222 # # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
|
|
5223 # A C_CHECK_LIB(m, sqrt)
|
|
5224
|
74
|
5225 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random realpath rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid
|
0
|
5226 do
|
|
5227 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
|
|
5228 test -n "$silent" || echo "checking for ${ac_func}"
|
|
5229 cat > conftest.${ac_ext} <<EOF
|
|
5230 #include "confdefs.h"
|
|
5231 #include <ctype.h>
|
|
5232 int main() { return 0; }
|
|
5233 int t() {
|
|
5234 /* The GNU C library defines this for functions which it implements
|
|
5235 to always fail with ENOSYS. Some functions are actually named
|
|
5236 something starting with __ and the normal name is an alias. */
|
|
5237 #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
|
|
5238 choke me
|
|
5239 #else
|
|
5240 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5241 extern char ${ac_func}(); ${ac_func}();
|
|
5242 #endif
|
|
5243 ; return 0; }
|
|
5244 EOF
|
|
5245 if eval $ac_compile; then
|
|
5246 rm -rf conftest*
|
|
5247 {
|
|
5248 test -n "$verbose" && \
|
|
5249 echo " defining ${ac_tr_func}"
|
|
5250 echo "#define" ${ac_tr_func} "1" >> confdefs.h
|
|
5251 DEFS="$DEFS -D${ac_tr_func}=1"
|
|
5252 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
|
|
5253 \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
|
|
5254 \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
|
|
5255 "
|
|
5256 }
|
|
5257
|
|
5258
|
|
5259 fi
|
|
5260 rm -f conftest*
|
|
5261 done
|
|
5262
|
|
5263
|
|
5264 # Check for mmap.
|
|
5265 found_mmap=true
|
|
5266 test -n "$silent" || echo "checking for mmap"
|
|
5267 cat > conftest.${ac_ext} <<EOF
|
|
5268 #include "confdefs.h"
|
|
5269 #include <ctype.h>
|
|
5270 int main() { return 0; }
|
|
5271 int t() {
|
|
5272 /* The GNU C library defines this for functions which it implements
|
|
5273 to always fail with ENOSYS. Some functions are actually named
|
|
5274 something starting with __ and the normal name is an alias. */
|
|
5275 #if defined (__stub_mmap) || defined (__stub___mmap)
|
|
5276 choke me
|
|
5277 #else
|
|
5278 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5279 extern char mmap(); mmap();
|
|
5280 #endif
|
|
5281 ; return 0; }
|
|
5282 EOF
|
|
5283 if eval $ac_compile; then
|
|
5284 :
|
|
5285 else
|
|
5286 rm -rf conftest*
|
|
5287 found_mmap=
|
|
5288 fi
|
|
5289 rm -f conftest*
|
|
5290
|
70
|
5291 test -n "$found_mmap" &&
|
0
|
5292 {
|
|
5293 test -n "$verbose" && \
|
|
5294 echo " defining HAVE_MMAP"
|
|
5295 echo "#define" HAVE_MMAP "1" >> confdefs.h
|
|
5296 DEFS="$DEFS -DHAVE_MMAP=1"
|
|
5297 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MMAP\${ac_dB}HAVE_MMAP\${ac_dC}1\${ac_dD}
|
|
5298 \${ac_uA}HAVE_MMAP\${ac_uB}HAVE_MMAP\${ac_uC}1\${ac_uD}
|
|
5299 \${ac_eA}HAVE_MMAP\${ac_eB}HAVE_MMAP\${ac_eC}1\${ac_eD}
|
|
5300 "
|
|
5301 }
|
|
5302
|
70
|
5303
|
|
5304 test "${GNU_MALLOC}" != "yes" -a "${found_mmap}" != "true" && rel_alloc=no
|
|
5305 test "${rel_alloc}" = "default" -a "${found_mmap}" = "true" && rel_alloc=yes
|
0
|
5306
|
|
5307 # Check for Internet sockets.
|
|
5308
|
|
5309 ok_so_far=true
|
|
5310 test -n "$silent" || echo "checking for socket"
|
|
5311 cat > conftest.${ac_ext} <<EOF
|
|
5312 #include "confdefs.h"
|
|
5313 #include <ctype.h>
|
|
5314 int main() { return 0; }
|
|
5315 int t() {
|
|
5316 /* The GNU C library defines this for functions which it implements
|
|
5317 to always fail with ENOSYS. Some functions are actually named
|
|
5318 something starting with __ and the normal name is an alias. */
|
|
5319 #if defined (__stub_socket) || defined (__stub___socket)
|
|
5320 choke me
|
|
5321 #else
|
|
5322 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5323 extern char socket(); socket();
|
|
5324 #endif
|
|
5325 ; return 0; }
|
|
5326 EOF
|
|
5327 if eval $ac_compile; then
|
|
5328 :
|
|
5329 else
|
|
5330 rm -rf conftest*
|
|
5331 ok_so_far=
|
|
5332 fi
|
|
5333 rm -f conftest*
|
|
5334
|
70
|
5335 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for netinet/in.h"
|
0
|
5336 cat > conftest.${ac_ext} <<EOF
|
|
5337 #include "confdefs.h"
|
|
5338 #include <netinet/in.h>
|
|
5339 EOF
|
|
5340 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5341 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5342 echo "$ac_err"
|
|
5343 fi
|
|
5344 if test -z "$ac_err"; then
|
|
5345 :
|
|
5346 else
|
|
5347 rm -rf conftest*
|
|
5348 ok_so_far=
|
|
5349 fi
|
|
5350 rm -f conftest*
|
70
|
5351 }
|
|
5352 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for arpa/inet.h"
|
0
|
5353 cat > conftest.${ac_ext} <<EOF
|
|
5354 #include "confdefs.h"
|
|
5355 #include <arpa/inet.h>
|
|
5356 EOF
|
|
5357 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5358 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5359 echo "$ac_err"
|
|
5360 fi
|
|
5361 if test -z "$ac_err"; then
|
|
5362 :
|
|
5363 else
|
|
5364 rm -rf conftest*
|
|
5365 ok_so_far=
|
|
5366 fi
|
|
5367 rm -f conftest*
|
70
|
5368 }
|
0
|
5369 if test -n "$ok_so_far"; then
|
|
5370
|
|
5371 {
|
|
5372 test -n "$verbose" && \
|
|
5373 echo " defining HAVE_SOCKETS"
|
|
5374 echo "#define" HAVE_SOCKETS "1" >> confdefs.h
|
|
5375 DEFS="$DEFS -DHAVE_SOCKETS=1"
|
|
5376 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKETS\${ac_dB}HAVE_SOCKETS\${ac_dC}1\${ac_dD}
|
|
5377 \${ac_uA}HAVE_SOCKETS\${ac_uB}HAVE_SOCKETS\${ac_uC}1\${ac_uD}
|
|
5378 \${ac_eA}HAVE_SOCKETS\${ac_eB}HAVE_SOCKETS\${ac_eC}1\${ac_eD}
|
|
5379 "
|
|
5380 }
|
|
5381
|
|
5382 # Check for the sun_len member in struct sockaddr_un.
|
|
5383
|
|
5384 test -n "$silent" || echo "checking for sun_len member in struct sockaddr_un"
|
|
5385 cat > conftest.${ac_ext} <<EOF
|
|
5386 #include "confdefs.h"
|
|
5387 #include <sys/types.h>
|
|
5388 #include <sys/socket.h>
|
|
5389 #include <sys/un.h>
|
|
5390 int main() { return 0; }
|
|
5391 int t() { static struct sockaddr_un x; x.sun_len = 1;; return 0; }
|
|
5392 EOF
|
|
5393 if eval $ac_compile; then
|
|
5394 rm -rf conftest*
|
|
5395
|
|
5396 {
|
|
5397 test -n "$verbose" && \
|
|
5398 echo " defining HAVE_SOCKADDR_SUN_LEN"
|
|
5399 echo "#define" HAVE_SOCKADDR_SUN_LEN "1" >> confdefs.h
|
|
5400 DEFS="$DEFS -DHAVE_SOCKADDR_SUN_LEN=1"
|
|
5401 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKADDR_SUN_LEN\${ac_dB}HAVE_SOCKADDR_SUN_LEN\${ac_dC}1\${ac_dD}
|
|
5402 \${ac_uA}HAVE_SOCKADDR_SUN_LEN\${ac_uB}HAVE_SOCKADDR_SUN_LEN\${ac_uC}1\${ac_uD}
|
|
5403 \${ac_eA}HAVE_SOCKADDR_SUN_LEN\${ac_eB}HAVE_SOCKADDR_SUN_LEN\${ac_eC}1\${ac_eD}
|
|
5404 "
|
|
5405 }
|
|
5406
|
|
5407
|
|
5408 fi
|
|
5409 rm -f conftest*
|
|
5410
|
|
5411 fi
|
|
5412
|
|
5413 # Check for SYS V IPC. (Inferior to sockets.)
|
|
5414
|
|
5415 if test -z "$ok_so_far"; then
|
|
5416 ok_so_far=true
|
|
5417 test -n "$silent" || echo "checking for msgget"
|
|
5418 cat > conftest.${ac_ext} <<EOF
|
|
5419 #include "confdefs.h"
|
|
5420 #include <ctype.h>
|
|
5421 int main() { return 0; }
|
|
5422 int t() {
|
|
5423 /* The GNU C library defines this for functions which it implements
|
|
5424 to always fail with ENOSYS. Some functions are actually named
|
|
5425 something starting with __ and the normal name is an alias. */
|
|
5426 #if defined (__stub_msgget) || defined (__stub___msgget)
|
|
5427 choke me
|
|
5428 #else
|
|
5429 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5430 extern char msgget(); msgget();
|
|
5431 #endif
|
|
5432 ; return 0; }
|
|
5433 EOF
|
|
5434 if eval $ac_compile; then
|
|
5435 :
|
|
5436 else
|
|
5437 rm -rf conftest*
|
|
5438 ok_so_far=
|
|
5439 fi
|
|
5440 rm -f conftest*
|
|
5441
|
70
|
5442 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for sys/ipc.h"
|
0
|
5443 cat > conftest.${ac_ext} <<EOF
|
|
5444 #include "confdefs.h"
|
|
5445 #include <sys/ipc.h>
|
|
5446 EOF
|
|
5447 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5448 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5449 echo "$ac_err"
|
|
5450 fi
|
|
5451 if test -z "$ac_err"; then
|
|
5452 :
|
|
5453 else
|
|
5454 rm -rf conftest*
|
|
5455 ok_so_far=
|
|
5456 fi
|
|
5457 rm -f conftest*
|
70
|
5458 }
|
|
5459 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for sys/msg.h"
|
0
|
5460 cat > conftest.${ac_ext} <<EOF
|
|
5461 #include "confdefs.h"
|
|
5462 #include <sys/msg.h>
|
|
5463 EOF
|
|
5464 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5465 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5466 echo "$ac_err"
|
|
5467 fi
|
|
5468 if test -z "$ac_err"; then
|
|
5469 :
|
|
5470 else
|
|
5471 rm -rf conftest*
|
|
5472 ok_so_far=
|
|
5473 fi
|
|
5474 rm -f conftest*
|
70
|
5475 }
|
|
5476 test -n "$ok_so_far" &&
|
0
|
5477 {
|
|
5478 test -n "$verbose" && \
|
|
5479 echo " defining HAVE_SYSVIPC"
|
|
5480 echo "#define" HAVE_SYSVIPC "1" >> confdefs.h
|
|
5481 DEFS="$DEFS -DHAVE_SYSVIPC=1"
|
|
5482 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SYSVIPC\${ac_dB}HAVE_SYSVIPC\${ac_dC}1\${ac_dD}
|
|
5483 \${ac_uA}HAVE_SYSVIPC\${ac_uB}HAVE_SYSVIPC\${ac_uC}1\${ac_uD}
|
|
5484 \${ac_eA}HAVE_SYSVIPC\${ac_eB}HAVE_SYSVIPC\${ac_eC}1\${ac_eD}
|
|
5485 "
|
|
5486 }
|
|
5487
|
|
5488 fi
|
|
5489
|
|
5490 # Check for directory variants
|
|
5491
|
|
5492 sysv_system_dir=
|
|
5493 nonsystem_dir_library=
|
|
5494 test -n "$silent" || echo "checking for dirent.h"
|
|
5495 cat > conftest.${ac_ext} <<EOF
|
|
5496 #include "confdefs.h"
|
|
5497 #include <dirent.h>
|
|
5498 EOF
|
|
5499 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5500 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5501 echo "$ac_err"
|
|
5502 fi
|
|
5503 if test -z "$ac_err"; then
|
|
5504 rm -rf conftest*
|
|
5505 sysv_system_dir=yes
|
|
5506
|
|
5507 fi
|
|
5508 rm -f conftest*
|
|
5509
|
70
|
5510 test -z "$sysv_system_dir" &&
|
|
5511 { test -n "$silent" || echo "checking for sys/dir.h"
|
0
|
5512 cat > conftest.${ac_ext} <<EOF
|
|
5513 #include "confdefs.h"
|
|
5514 #include <sys/dir.h>
|
|
5515 EOF
|
|
5516 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5517 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5518 echo "$ac_err"
|
|
5519 fi
|
|
5520 if test -z "$ac_err"; then
|
|
5521 :
|
|
5522 else
|
|
5523 rm -rf conftest*
|
|
5524 nonsystem_dir_library=yes
|
|
5525 fi
|
|
5526 rm -f conftest*
|
70
|
5527 }
|
|
5528 if test -n "$sysv_system_dir" ; then
|
0
|
5529 {
|
|
5530 test -n "$verbose" && \
|
|
5531 echo " defining SYSV_SYSTEM_DIR"
|
|
5532 echo "#define" SYSV_SYSTEM_DIR "1" >> confdefs.h
|
|
5533 DEFS="$DEFS -DSYSV_SYSTEM_DIR=1"
|
|
5534 ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSV_SYSTEM_DIR\${ac_dB}SYSV_SYSTEM_DIR\${ac_dC}1\${ac_dD}
|
|
5535 \${ac_uA}SYSV_SYSTEM_DIR\${ac_uB}SYSV_SYSTEM_DIR\${ac_uC}1\${ac_uD}
|
|
5536 \${ac_eA}SYSV_SYSTEM_DIR\${ac_eB}SYSV_SYSTEM_DIR\${ac_eC}1\${ac_eD}
|
|
5537 "
|
|
5538 }
|
|
5539
|
70
|
5540 elif test -n "$nonsystem_dir_library" ; then
|
0
|
5541 {
|
|
5542 test -n "$verbose" && \
|
|
5543 echo " defining NONSYSTEM_DIR_LIBRARY"
|
|
5544 echo "#define" NONSYSTEM_DIR_LIBRARY "1" >> confdefs.h
|
|
5545 DEFS="$DEFS -DNONSYSTEM_DIR_LIBRARY=1"
|
|
5546 ac_sed_defs="${ac_sed_defs}\${ac_dA}NONSYSTEM_DIR_LIBRARY\${ac_dB}NONSYSTEM_DIR_LIBRARY\${ac_dC}1\${ac_dD}
|
|
5547 \${ac_uA}NONSYSTEM_DIR_LIBRARY\${ac_uB}NONSYSTEM_DIR_LIBRARY\${ac_uC}1\${ac_uD}
|
|
5548 \${ac_eA}NONSYSTEM_DIR_LIBRARY\${ac_eB}NONSYSTEM_DIR_LIBRARY\${ac_eC}1\${ac_eD}
|
|
5549 "
|
|
5550 }
|
|
5551
|
|
5552 fi
|
|
5553
|
|
5554
|
|
5555 echo "checking how to do terminal I/O"
|
|
5556
|
|
5557 have_termios=
|
|
5558 have_termio=
|
|
5559 test -n "$silent" || echo "checking for termios.h"
|
|
5560 cat > conftest.${ac_ext} <<EOF
|
|
5561 #include "confdefs.h"
|
|
5562 #include <termios.h>
|
|
5563 EOF
|
|
5564 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5565 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5566 echo "$ac_err"
|
|
5567 fi
|
|
5568 if test -z "$ac_err"; then
|
|
5569 rm -rf conftest*
|
|
5570 have_termios=yes
|
|
5571
|
|
5572 fi
|
|
5573 rm -f conftest*
|
|
5574
|
70
|
5575 test -z "$have_termios" && { test -n "$silent" || echo "checking for termio.h"
|
0
|
5576 cat > conftest.${ac_ext} <<EOF
|
|
5577 #include "confdefs.h"
|
|
5578 #include <termio.h>
|
|
5579 EOF
|
|
5580 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5581 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5582 echo "$ac_err"
|
|
5583 fi
|
|
5584 if test -z "$ac_err"; then
|
|
5585 rm -rf conftest*
|
|
5586 have_termio=yes
|
|
5587
|
|
5588 fi
|
|
5589 rm -f conftest*
|
70
|
5590 }
|
|
5591 if test -n "$have_termios" ; then
|
0
|
5592 {
|
|
5593 test -n "$verbose" && \
|
|
5594 echo " defining HAVE_TERMIOS"
|
|
5595 echo "#define" HAVE_TERMIOS "1" >> confdefs.h
|
|
5596 DEFS="$DEFS -DHAVE_TERMIOS=1"
|
|
5597 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIOS\${ac_dB}HAVE_TERMIOS\${ac_dC}1\${ac_dD}
|
|
5598 \${ac_uA}HAVE_TERMIOS\${ac_uB}HAVE_TERMIOS\${ac_uC}1\${ac_uD}
|
|
5599 \${ac_eA}HAVE_TERMIOS\${ac_eB}HAVE_TERMIOS\${ac_eC}1\${ac_eD}
|
|
5600 "
|
|
5601 }
|
|
5602
|
70
|
5603 elif test -n "$have_termio" ; then
|
0
|
5604 {
|
|
5605 test -n "$verbose" && \
|
|
5606 echo " defining HAVE_TERMIO"
|
|
5607 echo "#define" HAVE_TERMIO "1" >> confdefs.h
|
|
5608 DEFS="$DEFS -DHAVE_TERMIO=1"
|
|
5609 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIO\${ac_dB}HAVE_TERMIO\${ac_dC}1\${ac_dD}
|
|
5610 \${ac_uA}HAVE_TERMIO\${ac_uB}HAVE_TERMIO\${ac_uC}1\${ac_uD}
|
|
5611 \${ac_eA}HAVE_TERMIO\${ac_eB}HAVE_TERMIO\${ac_eC}1\${ac_eD}
|
|
5612 "
|
|
5613 }
|
|
5614
|
|
5615 fi
|
|
5616
|
|
5617 # Check for nlist.h
|
|
5618 test -n "$silent" || echo "checking for nlist.h"
|
|
5619 cat > conftest.${ac_ext} <<EOF
|
|
5620 #include "confdefs.h"
|
|
5621 #include <nlist.h>
|
|
5622 EOF
|
|
5623 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5624 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5625 echo "$ac_err"
|
|
5626 fi
|
|
5627 if test -z "$ac_err"; then
|
|
5628 rm -rf conftest*
|
|
5629
|
|
5630 {
|
|
5631 test -n "$verbose" && \
|
|
5632 echo " defining NLIST_STRUCT"
|
|
5633 echo "#define" NLIST_STRUCT "1" >> confdefs.h
|
|
5634 DEFS="$DEFS -DNLIST_STRUCT=1"
|
|
5635 ac_sed_defs="${ac_sed_defs}\${ac_dA}NLIST_STRUCT\${ac_dB}NLIST_STRUCT\${ac_dC}1\${ac_dD}
|
|
5636 \${ac_uA}NLIST_STRUCT\${ac_uB}NLIST_STRUCT\${ac_uC}1\${ac_uD}
|
|
5637 \${ac_eA}NLIST_STRUCT\${ac_eB}NLIST_STRUCT\${ac_eC}1\${ac_eD}
|
|
5638 "
|
|
5639 }
|
|
5640
|
|
5641
|
|
5642 fi
|
|
5643 rm -f conftest*
|
|
5644
|
|
5645
|
70
|
5646 # AIX export list
|
80
|
5647 if test -f /usr/lpp/X11/bin/smt.exp ; then
|
|
5648
|
|
5649 {
|
|
5650 test -n "$verbose" && \
|
|
5651 echo " defining" AIX_SMT_EXP to be "-bI:/usr/lpp/X11/bin/smt.exp"
|
|
5652 echo "#define" AIX_SMT_EXP "-bI:/usr/lpp/X11/bin/smt.exp" >> confdefs.h
|
|
5653 DEFS="$DEFS -DAIX_SMT_EXP=-bI:/usr/lpp/X11/bin/smt.exp"
|
|
5654 ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX_SMT_EXP\${ac_dB}AIX_SMT_EXP\${ac_dC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_dD}
|
|
5655 \${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_uD}
|
|
5656 \${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_eD}
|
|
5657 "
|
|
5658 }
|
|
5659
|
|
5660 elif test -f /usr/bin/X11/smt.exp ; then
|
|
5661
|
|
5662 {
|
|
5663 test -n "$verbose" && \
|
|
5664 echo " defining" AIX_SMT_EXP to be "-bI:/usr/bin/X11/smt.exp"
|
|
5665 echo "#define" AIX_SMT_EXP "-bI:/usr/bin/X11/smt.exp" >> confdefs.h
|
|
5666 DEFS="$DEFS -DAIX_SMT_EXP=-bI:/usr/bin/X11/smt.exp"
|
|
5667 ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX_SMT_EXP\${ac_dB}AIX_SMT_EXP\${ac_dC}-bI:/usr/bin/X11/smt.exp\${ac_dD}
|
|
5668 \${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}-bI:/usr/bin/X11/smt.exp\${ac_uD}
|
|
5669 \${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}-bI:/usr/bin/X11/smt.exp\${ac_eD}
|
|
5670 "
|
|
5671 }
|
|
5672
|
|
5673 fi
|
70
|
5674
|
0
|
5675 CFLAGS="$REAL_CFLAGS"
|
|
5676
|
70
|
5677 file="${srcdir}/lisp/version.el"
|
|
5678 version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"`
|
|
5679 if test -z "${version}"; then
|
|
5680 echo "${progname}: can't find current emacs version in \"$file\"." >&2
|
0
|
5681 exit 1
|
|
5682 fi
|
70
|
5683 beta=`sed -ne 's/^.*XEmacs Lucid (beta\([0-9][0-9]*\)).*$/\1/p' "$file"`
|
|
5684 test -n "$beta" && version="${version}-b${beta}"
|
|
5685
|
|
5686
|
0
|
5687
|
|
5688 # the following needs to be fixed for SGI.
|
70
|
5689 if test -z "${native_sound_lib}" ; then
|
|
5690 if test -r /usr/demo/SOUND/lib/libaudio.a; then
|
0
|
5691 native_sound_lib=/usr/demo/SOUND/lib/libaudio.a
|
70
|
5692 elif test -r /usr/demo/SOUND/libaudio.a ; then
|
0
|
5693 native_sound_lib=/usr/demo/SOUND/libaudio.a
|
|
5694 else
|
|
5695 case "${canonical}" in
|
70
|
5696 *-sgi-* ) ac_save_LIBS="${LIBS}"
|
0
|
5697 LIBS="${LIBS} -laudio"
|
|
5698 ac_have_lib=""
|
|
5699 test -n "$silent" || echo "checking for -laudio"
|
|
5700 cat > conftest.${ac_ext} <<EOF
|
|
5701 #include "confdefs.h"
|
|
5702
|
|
5703 int main() { return 0; }
|
|
5704 int t() { main();; return 0; }
|
|
5705 EOF
|
|
5706 if eval $ac_compile; then
|
|
5707 rm -rf conftest*
|
|
5708 ac_have_lib="1"
|
|
5709
|
|
5710 fi
|
|
5711 rm -f conftest*
|
|
5712 LIBS="${ac_save_LIBS}"
|
|
5713 if test -n "${ac_have_lib}"; then
|
70
|
5714 :; native_sound_lib="-laudio"
|
0
|
5715 else
|
|
5716 :;
|
|
5717 fi
|
70
|
5718 ;;
|
|
5719 hppa*-hp-hpux* ) ac_save_LIBS="${LIBS}"
|
0
|
5720 LIBS="${LIBS} -lAlib"
|
|
5721 ac_have_lib=""
|
|
5722 test -n "$silent" || echo "checking for -lAlib"
|
|
5723 cat > conftest.${ac_ext} <<EOF
|
|
5724 #include "confdefs.h"
|
|
5725
|
|
5726 int main() { return 0; }
|
|
5727 int t() { main();; return 0; }
|
|
5728 EOF
|
|
5729 if eval $ac_compile; then
|
|
5730 rm -rf conftest*
|
|
5731 ac_have_lib="1"
|
|
5732
|
|
5733 fi
|
|
5734 rm -f conftest*
|
|
5735 LIBS="${ac_save_LIBS}"
|
|
5736 if test -n "${ac_have_lib}"; then
|
70
|
5737 :; native_sound_lib="-lAlib"
|
0
|
5738 else
|
|
5739 :;
|
|
5740 fi
|
70
|
5741 ;;
|
0
|
5742 esac
|
|
5743 fi
|
|
5744 fi
|
70
|
5745 test -z "${with_sound}" -a -n "${native_sound_lib}" && with_sound="native";
|
0
|
5746
|
|
5747 #### If the nas library doesn't contain the error jump point, then
|
|
5748 #### we force safer behaviour.
|
|
5749
|
70
|
5750 if test "${with_sound}" = "nas" -o \
|
|
5751 "${with_sound}" = "both"; then
|
|
5752 echo '#include "confdefs.h"
|
0
|
5753 #include <audio/Xtutil.h>' > conftest.${ac_ext}
|
|
5754 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
|
|
5755 if egrep "AuXtErrorJump" conftest.out >/dev/null 2>&1; then
|
|
5756 :
|
|
5757 else
|
|
5758 rm -rf conftest*
|
|
5759 old_nas=true
|
|
5760 fi
|
|
5761 rm -f conftest*
|
70
|
5762
|
|
5763 fi
|
|
5764
|
|
5765 if test "${with_tooltalk}" = "yes" ; then
|
0
|
5766 for arg in ${DEFS} "-I/usr/include" "-I${OPENWINHOME-/usr/openwin}/include"
|
|
5767 do
|
70
|
5768 if test -f `echo "${arg}/desktop/tt_c.h" | sed 's/^\-I//'` ; then
|
0
|
5769 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}/desktop"
|
|
5770 fi
|
|
5771 done
|
|
5772
|
|
5773 for arg in ${LIBS} "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib"
|
|
5774 do
|
|
5775 case "${arg}" in
|
70
|
5776 -L*) if test -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ; then
|
0
|
5777 dash_r=''
|
70
|
5778 if test -n "${add_runtime_flag}" ; then
|
0
|
5779 dash_r=`echo ${arg} | sed "s/^-L/-R${dash_r_space}/"`
|
|
5780 fi
|
|
5781 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
|
|
5782 fi
|
|
5783 ;;
|
|
5784 esac
|
|
5785 done
|
|
5786 fi
|
|
5787
|
70
|
5788
|
|
5789 if test "${with_tty}" != "no" ; then
|
|
5790 ac_save_LIBS="${LIBS}"
|
0
|
5791 LIBS="${LIBS} -lncurses"
|
|
5792 ac_have_lib=""
|
|
5793 test -n "$silent" || echo "checking for -lncurses"
|
|
5794 cat > conftest.${ac_ext} <<EOF
|
|
5795 #include "confdefs.h"
|
|
5796
|
|
5797 int main() { return 0; }
|
|
5798 int t() { main();; return 0; }
|
|
5799 EOF
|
|
5800 if eval $ac_compile; then
|
|
5801 rm -rf conftest*
|
|
5802 ac_have_lib="1"
|
|
5803
|
|
5804 fi
|
|
5805 rm -f conftest*
|
|
5806 LIBS="${ac_save_LIBS}"
|
|
5807 if test -n "${ac_have_lib}"; then
|
|
5808 :; have_ncurses=yes
|
|
5809 else
|
|
5810 :; have_ncurses=no
|
|
5811 fi
|
70
|
5812
|
|
5813 if test "${have_ncurses}" = "yes" ; then
|
|
5814
|
0
|
5815 {
|
|
5816 test -n "$verbose" && \
|
|
5817 echo " defining HAVE_NCURSES"
|
|
5818 echo "#define" HAVE_NCURSES "1" >> confdefs.h
|
|
5819 DEFS="$DEFS -DHAVE_NCURSES=1"
|
|
5820 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NCURSES\${ac_dB}HAVE_NCURSES\${ac_dC}1\${ac_dD}
|
|
5821 \${ac_uA}HAVE_NCURSES\${ac_uB}HAVE_NCURSES\${ac_uC}1\${ac_uD}
|
|
5822 \${ac_eA}HAVE_NCURSES\${ac_eB}HAVE_NCURSES\${ac_eC}1\${ac_eD}
|
|
5823 "
|
|
5824 }
|
70
|
5825
|
|
5826 test -n "$silent" || echo "checking for ncurses/term.h"
|
0
|
5827 cat > conftest.${ac_ext} <<EOF
|
|
5828 #include "confdefs.h"
|
|
5829 #include <ncurses/term.h>
|
|
5830 EOF
|
|
5831 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5832 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5833 echo "$ac_err"
|
|
5834 fi
|
|
5835 if test -z "$ac_err"; then
|
|
5836 rm -rf conftest*
|
|
5837 have_ncurses_term_h=yes
|
|
5838
|
|
5839 else
|
|
5840 rm -rf conftest*
|
|
5841 have_ncurses_term_h=no
|
|
5842 fi
|
|
5843 rm -f conftest*
|
70
|
5844
|
|
5845 test "${have_ncurses_term_h}" = yes &&
|
0
|
5846 {
|
|
5847 test -n "$verbose" && \
|
|
5848 echo " defining HAVE_NCURSES_TERM_H"
|
|
5849 echo "#define" HAVE_NCURSES_TERM_H "1" >> confdefs.h
|
|
5850 DEFS="$DEFS -DHAVE_NCURSES_TERM_H=1"
|
|
5851 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NCURSES_TERM_H\${ac_dB}HAVE_NCURSES_TERM_H\${ac_dC}1\${ac_dD}
|
|
5852 \${ac_uA}HAVE_NCURSES_TERM_H\${ac_uB}HAVE_NCURSES_TERM_H\${ac_uC}1\${ac_uD}
|
|
5853 \${ac_eA}HAVE_NCURSES_TERM_H\${ac_eB}HAVE_NCURSES_TERM_H\${ac_eC}1\${ac_eD}
|
|
5854 "
|
|
5855 }
|
70
|
5856
|
|
5857 test -n "$silent" || echo "checking for ncurses/curses.h"
|
0
|
5858 cat > conftest.${ac_ext} <<EOF
|
|
5859 #include "confdefs.h"
|
|
5860 #include <ncurses/curses.h>
|
|
5861 EOF
|
|
5862 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5863 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5864 echo "$ac_err"
|
|
5865 fi
|
|
5866 if test -z "$ac_err"; then
|
|
5867 rm -rf conftest*
|
|
5868 have_ncurses_curses_h=yes
|
|
5869
|
|
5870 else
|
|
5871 rm -rf conftest*
|
|
5872 have_ncurses_curses_h=no
|
|
5873 fi
|
|
5874 rm -f conftest*
|
70
|
5875
|
|
5876 if test "${have_ncurses_curses_h}" = "no" ; then
|
|
5877 OLD_CPP="${CPP}"
|
0
|
5878 CPP="${CPP} -I/usr/include/ncurses"
|
70
|
5879 test -n "$silent" || echo "checking for ncurses/curses.h"
|
0
|
5880 cat > conftest.${ac_ext} <<EOF
|
|
5881 #include "confdefs.h"
|
|
5882 #include <ncurses/curses.h>
|
|
5883 EOF
|
|
5884 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5885 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5886 echo "$ac_err"
|
|
5887 fi
|
|
5888 if test -z "$ac_err"; then
|
|
5889 rm -rf conftest*
|
|
5890 have_ncurses_curses_h=yes
|
|
5891
|
|
5892 else
|
|
5893 rm -rf conftest*
|
|
5894 have_ncurses_curses_h=no
|
|
5895 fi
|
|
5896 rm -f conftest*
|
70
|
5897
|
|
5898 if test "${have_ncurses_curses_h}" = "yes" ; then
|
0
|
5899 site_includes="${site_includes} /usr/include/ncurses"
|
|
5900 C_SWITCH_SITE="${C_SWITCH_SITE} -I/usr/include/ncurses"
|
70
|
5901 test -n "$verbose" && echo " Your system has the bogus ncurses include bug."
|
0
|
5902 else
|
|
5903 CPP="${OLD_CPP}"
|
|
5904 fi
|
|
5905 fi
|
70
|
5906 test "${have_ncurses_curses_h}" = yes &&
|
0
|
5907 {
|
|
5908 test -n "$verbose" && \
|
|
5909 echo " defining HAVE_NCURSES_CURSES_H"
|
|
5910 echo "#define" HAVE_NCURSES_CURSES_H "1" >> confdefs.h
|
|
5911 DEFS="$DEFS -DHAVE_NCURSES_CURSES_H=1"
|
|
5912 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NCURSES_CURSES_H\${ac_dB}HAVE_NCURSES_CURSES_H\${ac_dC}1\${ac_dD}
|
|
5913 \${ac_uA}HAVE_NCURSES_CURSES_H\${ac_uB}HAVE_NCURSES_CURSES_H\${ac_uC}1\${ac_uD}
|
|
5914 \${ac_eA}HAVE_NCURSES_CURSES_H\${ac_eB}HAVE_NCURSES_CURSES_H\${ac_eC}1\${ac_eD}
|
|
5915 "
|
|
5916 }
|
70
|
5917
|
0
|
5918 fi
|
|
5919 fi
|
|
5920
|
70
|
5921
|
|
5922
|
|
5923 if test "${with_database_berkdb}" != "no" ; then
|
|
5924 ac_save_LIBS="${LIBS}"
|
0
|
5925 LIBS="${LIBS} -ldb"
|
|
5926 ac_have_lib=""
|
|
5927 test -n "$silent" || echo "checking for -ldb"
|
|
5928 cat > conftest.${ac_ext} <<EOF
|
|
5929 #include "confdefs.h"
|
|
5930
|
|
5931 int main() { return 0; }
|
|
5932 int t() { main();; return 0; }
|
|
5933 EOF
|
|
5934 if eval $ac_compile; then
|
|
5935 rm -rf conftest*
|
|
5936 ac_have_lib="1"
|
|
5937
|
|
5938 fi
|
|
5939 rm -f conftest*
|
|
5940 LIBS="${ac_save_LIBS}"
|
|
5941 if test -n "${ac_have_lib}"; then
|
|
5942 :; have_libdb=yes
|
|
5943 else
|
|
5944 :; have_libdb=no
|
|
5945 fi
|
70
|
5946
|
|
5947 test "${have_libdb}" = yes &&
|
0
|
5948 {
|
|
5949 test -n "$verbose" && \
|
|
5950 echo " defining HAVE_LIBDB"
|
|
5951 echo "#define" HAVE_LIBDB "1" >> confdefs.h
|
|
5952 DEFS="$DEFS -DHAVE_LIBDB=1"
|
|
5953 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDB\${ac_dB}HAVE_LIBDB\${ac_dC}1\${ac_dD}
|
|
5954 \${ac_uA}HAVE_LIBDB\${ac_uB}HAVE_LIBDB\${ac_uC}1\${ac_uD}
|
|
5955 \${ac_eA}HAVE_LIBDB\${ac_eB}HAVE_LIBDB\${ac_eC}1\${ac_eD}
|
|
5956 "
|
|
5957 }
|
70
|
5958
|
|
5959 if test "${with_database_berkdb}" != "yes" ; then
|
|
5960 if test "${have_libdb}" = "yes" ; then
|
0
|
5961 with_database_berkdb=yes
|
|
5962 else
|
70
|
5963 test -n "$silent" || echo "checking for dbopen"
|
0
|
5964 cat > conftest.${ac_ext} <<EOF
|
|
5965 #include "confdefs.h"
|
|
5966 #include <ctype.h>
|
|
5967 int main() { return 0; }
|
|
5968 int t() {
|
|
5969 /* The GNU C library defines this for functions which it implements
|
|
5970 to always fail with ENOSYS. Some functions are actually named
|
|
5971 something starting with __ and the normal name is an alias. */
|
|
5972 #if defined (__stub_dbopen) || defined (__stub___dbopen)
|
|
5973 choke me
|
|
5974 #else
|
|
5975 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5976 extern char dbopen(); dbopen();
|
|
5977 #endif
|
|
5978 ; return 0; }
|
|
5979 EOF
|
|
5980 if eval $ac_compile; then
|
|
5981 rm -rf conftest*
|
70
|
5982 with_database_berkdb=yes
|
0
|
5983
|
|
5984 else
|
|
5985 rm -rf conftest*
|
70
|
5986 with_database_berkdb=no
|
0
|
5987 fi
|
|
5988 rm -f conftest*
|
70
|
5989
|
0
|
5990 fi
|
|
5991 fi
|
|
5992 fi
|
70
|
5993 test "${with_database_berkdb}" = yes &&
|
0
|
5994 {
|
|
5995 test -n "$verbose" && \
|
|
5996 echo " defining HAVE_BERKELEY_DB"
|
|
5997 echo "#define" HAVE_BERKELEY_DB "1" >> confdefs.h
|
|
5998 DEFS="$DEFS -DHAVE_BERKELEY_DB=1"
|
|
5999 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_BERKELEY_DB\${ac_dB}HAVE_BERKELEY_DB\${ac_dC}1\${ac_dD}
|
|
6000 \${ac_uA}HAVE_BERKELEY_DB\${ac_uB}HAVE_BERKELEY_DB\${ac_uC}1\${ac_uD}
|
|
6001 \${ac_eA}HAVE_BERKELEY_DB\${ac_eB}HAVE_BERKELEY_DB\${ac_eC}1\${ac_eD}
|
|
6002 "
|
|
6003 }
|
70
|
6004
|
|
6005
|
|
6006 if test "${with_database_gnudbm}" != "no" ; then
|
|
6007 ac_save_LIBS="${LIBS}"
|
0
|
6008 LIBS="${LIBS} -lgdbm"
|
|
6009 ac_have_lib=""
|
|
6010 test -n "$silent" || echo "checking for -lgdbm"
|
|
6011 cat > conftest.${ac_ext} <<EOF
|
|
6012 #include "confdefs.h"
|
|
6013
|
|
6014 int main() { return 0; }
|
|
6015 int t() { main();; return 0; }
|
|
6016 EOF
|
|
6017 if eval $ac_compile; then
|
|
6018 rm -rf conftest*
|
|
6019 ac_have_lib="1"
|
|
6020
|
|
6021 fi
|
|
6022 rm -f conftest*
|
|
6023 LIBS="${ac_save_LIBS}"
|
|
6024 if test -n "${ac_have_lib}"; then
|
|
6025 :; have_libgdbm=yes
|
|
6026 else
|
|
6027 :; have_libgdbm=no
|
|
6028 fi
|
70
|
6029
|
|
6030 test "${have_libgdbm}" = yes &&
|
0
|
6031 {
|
|
6032 test -n "$verbose" && \
|
|
6033 echo " defining HAVE_LIBGDBM"
|
|
6034 echo "#define" HAVE_LIBGDBM "1" >> confdefs.h
|
|
6035 DEFS="$DEFS -DHAVE_LIBGDBM=1"
|
|
6036 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBGDBM\${ac_dB}HAVE_LIBGDBM\${ac_dC}1\${ac_dD}
|
|
6037 \${ac_uA}HAVE_LIBGDBM\${ac_uB}HAVE_LIBGDBM\${ac_uC}1\${ac_uD}
|
|
6038 \${ac_eA}HAVE_LIBGDBM\${ac_eB}HAVE_LIBGDBM\${ac_eC}1\${ac_eD}
|
|
6039 "
|
|
6040 }
|
70
|
6041
|
|
6042 test -z "${with_database_gnudbm}" && with_database_gnudbm="${have_libgdbm}"
|
|
6043 fi
|
|
6044 if test "${with_database_gnudbm}" = "yes" ; then
|
|
6045
|
0
|
6046 {
|
|
6047 test -n "$verbose" && \
|
|
6048 echo " defining HAVE_DBM"
|
|
6049 echo "#define" HAVE_DBM "1" >> confdefs.h
|
|
6050 DEFS="$DEFS -DHAVE_DBM=1"
|
|
6051 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DBM\${ac_dB}HAVE_DBM\${ac_dC}1\${ac_dD}
|
|
6052 \${ac_uA}HAVE_DBM\${ac_uB}HAVE_DBM\${ac_uC}1\${ac_uD}
|
|
6053 \${ac_eA}HAVE_DBM\${ac_eB}HAVE_DBM\${ac_eC}1\${ac_eD}
|
|
6054 "
|
|
6055 }
|
70
|
6056
|
|
6057
|
0
|
6058 {
|
|
6059 test -n "$verbose" && \
|
|
6060 echo " defining HAVE_GNU_DBM"
|
|
6061 echo "#define" HAVE_GNU_DBM "1" >> confdefs.h
|
|
6062 DEFS="$DEFS -DHAVE_GNU_DBM=1"
|
|
6063 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_GNU_DBM\${ac_dB}HAVE_GNU_DBM\${ac_dC}1\${ac_dD}
|
|
6064 \${ac_uA}HAVE_GNU_DBM\${ac_uB}HAVE_GNU_DBM\${ac_uC}1\${ac_uD}
|
|
6065 \${ac_eA}HAVE_GNU_DBM\${ac_eB}HAVE_GNU_DBM\${ac_eC}1\${ac_eD}
|
|
6066 "
|
|
6067 }
|
70
|
6068
|
0
|
6069 with_database_dbm=no
|
|
6070 fi
|
|
6071
|
70
|
6072 if test "${with_database_dbm}" != "no" ; then
|
|
6073 ac_save_LIBS="${LIBS}"
|
0
|
6074 LIBS="${LIBS} -ldbm"
|
|
6075 ac_have_lib=""
|
|
6076 test -n "$silent" || echo "checking for -ldbm"
|
|
6077 cat > conftest.${ac_ext} <<EOF
|
|
6078 #include "confdefs.h"
|
|
6079
|
|
6080 int main() { return 0; }
|
|
6081 int t() { main();; return 0; }
|
|
6082 EOF
|
|
6083 if eval $ac_compile; then
|
|
6084 rm -rf conftest*
|
|
6085 ac_have_lib="1"
|
|
6086
|
|
6087 fi
|
|
6088 rm -f conftest*
|
|
6089 LIBS="${ac_save_LIBS}"
|
|
6090 if test -n "${ac_have_lib}"; then
|
|
6091 :; have_libdbm=yes
|
|
6092 else
|
|
6093 :; have_libdbm=no
|
|
6094 fi
|
70
|
6095
|
|
6096 test "${have_libdbm}" = yes &&
|
0
|
6097 {
|
|
6098 test -n "$verbose" && \
|
|
6099 echo " defining HAVE_LIBDBM"
|
|
6100 echo "#define" HAVE_LIBDBM "1" >> confdefs.h
|
|
6101 DEFS="$DEFS -DHAVE_LIBDBM=1"
|
|
6102 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDBM\${ac_dB}HAVE_LIBDBM\${ac_dC}1\${ac_dD}
|
|
6103 \${ac_uA}HAVE_LIBDBM\${ac_uB}HAVE_LIBDBM\${ac_uC}1\${ac_uD}
|
|
6104 \${ac_eA}HAVE_LIBDBM\${ac_eB}HAVE_LIBDBM\${ac_eC}1\${ac_eD}
|
|
6105 "
|
|
6106 }
|
70
|
6107
|
|
6108 if test "${with_database_dbm}" != "yes" ; then
|
|
6109 if test "${have_libdbm}" = "yes" ; then
|
0
|
6110 with_database_dbm=yes
|
|
6111 else
|
70
|
6112 test -n "$silent" || echo "checking for dbm_open"
|
0
|
6113 cat > conftest.${ac_ext} <<EOF
|
|
6114 #include "confdefs.h"
|
|
6115 #include <ctype.h>
|
|
6116 int main() { return 0; }
|
|
6117 int t() {
|
|
6118 /* The GNU C library defines this for functions which it implements
|
|
6119 to always fail with ENOSYS. Some functions are actually named
|
|
6120 something starting with __ and the normal name is an alias. */
|
|
6121 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
6122 choke me
|
|
6123 #else
|
|
6124 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6125 extern char dbm_open(); dbm_open();
|
|
6126 #endif
|
|
6127 ; return 0; }
|
|
6128 EOF
|
|
6129 if eval $ac_compile; then
|
|
6130 rm -rf conftest*
|
70
|
6131 with_database_dbm=yes
|
0
|
6132
|
|
6133 else
|
|
6134 rm -rf conftest*
|
70
|
6135 with_database_dbm=no
|
0
|
6136 fi
|
|
6137 rm -f conftest*
|
70
|
6138
|
0
|
6139 fi
|
|
6140 fi
|
|
6141 fi
|
70
|
6142 test "${with_database_dbm}" = yes &&
|
0
|
6143 {
|
|
6144 test -n "$verbose" && \
|
|
6145 echo " defining HAVE_DBM"
|
|
6146 echo "#define" HAVE_DBM "1" >> confdefs.h
|
|
6147 DEFS="$DEFS -DHAVE_DBM=1"
|
|
6148 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DBM\${ac_dB}HAVE_DBM\${ac_dC}1\${ac_dD}
|
|
6149 \${ac_uA}HAVE_DBM\${ac_uB}HAVE_DBM\${ac_uC}1\${ac_uD}
|
|
6150 \${ac_eA}HAVE_DBM\${ac_eB}HAVE_DBM\${ac_eC}1\${ac_eD}
|
|
6151 "
|
|
6152 }
|
70
|
6153
|
0
|
6154
|
|
6155
|
|
6156 ############################################################################
|
|
6157 # #
|
|
6158 # Substitute into Makefile and config.h #
|
|
6159 # #
|
|
6160 ############################################################################
|
|
6161
|
70
|
6162
|
|
6163
|
|
6164
|
|
6165
|
|
6166
|
|
6167
|
|
6168
|
|
6169
|
|
6170
|
|
6171
|
|
6172
|
|
6173
|
|
6174
|
|
6175
|
|
6176
|
|
6177
|
|
6178
|
|
6179
|
|
6180
|
|
6181
|
|
6182
|
|
6183
|
|
6184
|
|
6185
|
|
6186
|
|
6187
|
|
6188
|
|
6189
|
|
6190
|
|
6191
|
|
6192
|
|
6193
|
|
6194
|
|
6195
|
|
6196
|
|
6197
|
|
6198
|
|
6199
|
|
6200
|
|
6201
|
|
6202
|
|
6203 {
|
|
6204 test -n "$verbose" && \
|
|
6205 echo " defining" EMACS_VERSION to be ""${version}""
|
|
6206 echo "#define" EMACS_VERSION ""${version}"" >> confdefs.h
|
|
6207 DEFS="$DEFS -DEMACS_VERSION="${version}""
|
|
6208 ac_sed_defs="${ac_sed_defs}\${ac_dA}EMACS_VERSION\${ac_dB}EMACS_VERSION\${ac_dC}"${version}"\${ac_dD}
|
|
6209 \${ac_uA}EMACS_VERSION\${ac_uB}EMACS_VERSION\${ac_uC}"${version}"\${ac_uD}
|
|
6210 \${ac_eA}EMACS_VERSION\${ac_eB}EMACS_VERSION\${ac_eC}"${version}"\${ac_eD}
|
|
6211 "
|
|
6212 }
|
0
|
6213
|
|
6214
|
|
6215 {
|
|
6216 test -n "$verbose" && \
|
|
6217 echo " defining" EMACS_CONFIGURATION to be ""\"${canonical}\"""
|
|
6218 echo "#define" EMACS_CONFIGURATION ""\"${canonical}\""" >> confdefs.h
|
|
6219 DEFS="$DEFS -DEMACS_CONFIGURATION="\"${canonical}\"""
|
|
6220 ac_sed_defs="${ac_sed_defs}\${ac_dA}EMACS_CONFIGURATION\${ac_dB}EMACS_CONFIGURATION\${ac_dC}"\"${canonical}\""\${ac_dD}
|
|
6221 \${ac_uA}EMACS_CONFIGURATION\${ac_uB}EMACS_CONFIGURATION\${ac_uC}"\"${canonical}\""\${ac_uD}
|
|
6222 \${ac_eA}EMACS_CONFIGURATION\${ac_eB}EMACS_CONFIGURATION\${ac_eC}"\"${canonical}\""\${ac_eD}
|
|
6223 "
|
|
6224 }
|
|
6225
|
|
6226
|
|
6227 {
|
|
6228 test -n "$verbose" && \
|
|
6229 echo " defining" config_machfile to be ""\"${machfile}\"""
|
|
6230 echo "#define" config_machfile ""\"${machfile}\""" >> confdefs.h
|
|
6231 DEFS="$DEFS -Dconfig_machfile="\"${machfile}\"""
|
|
6232 ac_sed_defs="${ac_sed_defs}\${ac_dA}config_machfile\${ac_dB}config_machfile\${ac_dC}"\"${machfile}\""\${ac_dD}
|
|
6233 \${ac_uA}config_machfile\${ac_uB}config_machfile\${ac_uC}"\"${machfile}\""\${ac_uD}
|
|
6234 \${ac_eA}config_machfile\${ac_eB}config_machfile\${ac_eC}"\"${machfile}\""\${ac_eD}
|
|
6235 "
|
|
6236 }
|
|
6237
|
|
6238
|
|
6239 {
|
|
6240 test -n "$verbose" && \
|
|
6241 echo " defining" config_opsysfile to be ""\"${opsysfile}\"""
|
|
6242 echo "#define" config_opsysfile ""\"${opsysfile}\""" >> confdefs.h
|
|
6243 DEFS="$DEFS -Dconfig_opsysfile="\"${opsysfile}\"""
|
|
6244 ac_sed_defs="${ac_sed_defs}\${ac_dA}config_opsysfile\${ac_dB}config_opsysfile\${ac_dC}"\"${opsysfile}\""\${ac_dD}
|
|
6245 \${ac_uA}config_opsysfile\${ac_uB}config_opsysfile\${ac_uC}"\"${opsysfile}\""\${ac_uD}
|
|
6246 \${ac_eA}config_opsysfile\${ac_eB}config_opsysfile\${ac_eC}"\"${opsysfile}\""\${ac_eD}
|
|
6247 "
|
|
6248 }
|
|
6249
|
|
6250
|
|
6251 {
|
|
6252 test -n "$verbose" && \
|
|
6253 echo " defining" LD_SWITCH_X_SITE to be "${LD_SWITCH_X_SITE}"
|
|
6254 echo "#define" LD_SWITCH_X_SITE "${LD_SWITCH_X_SITE}" >> confdefs.h
|
|
6255 DEFS="$DEFS -DLD_SWITCH_X_SITE=${LD_SWITCH_X_SITE}"
|
|
6256 ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_X_SITE\${ac_dB}LD_SWITCH_X_SITE\${ac_dC}${LD_SWITCH_X_SITE}\${ac_dD}
|
|
6257 \${ac_uA}LD_SWITCH_X_SITE\${ac_uB}LD_SWITCH_X_SITE\${ac_uC}${LD_SWITCH_X_SITE}\${ac_uD}
|
|
6258 \${ac_eA}LD_SWITCH_X_SITE\${ac_eB}LD_SWITCH_X_SITE\${ac_eC}${LD_SWITCH_X_SITE}\${ac_eD}
|
|
6259 "
|
|
6260 }
|
|
6261
|
|
6262
|
|
6263 {
|
|
6264 test -n "$verbose" && \
|
|
6265 echo " defining" LD_SWITCH_X_SITE_AUX to be "${LD_SWITCH_X_SITE_AUX}"
|
|
6266 echo "#define" LD_SWITCH_X_SITE_AUX "${LD_SWITCH_X_SITE_AUX}" >> confdefs.h
|
|
6267 DEFS="$DEFS -DLD_SWITCH_X_SITE_AUX=${LD_SWITCH_X_SITE_AUX}"
|
|
6268 ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_X_SITE_AUX\${ac_dB}LD_SWITCH_X_SITE_AUX\${ac_dC}${LD_SWITCH_X_SITE_AUX}\${ac_dD}
|
|
6269 \${ac_uA}LD_SWITCH_X_SITE_AUX\${ac_uB}LD_SWITCH_X_SITE_AUX\${ac_uC}${LD_SWITCH_X_SITE_AUX}\${ac_uD}
|
|
6270 \${ac_eA}LD_SWITCH_X_SITE_AUX\${ac_eB}LD_SWITCH_X_SITE_AUX\${ac_eC}${LD_SWITCH_X_SITE_AUX}\${ac_eD}
|
|
6271 "
|
|
6272 }
|
|
6273
|
|
6274
|
|
6275 {
|
|
6276 test -n "$verbose" && \
|
|
6277 echo " defining" C_SWITCH_X_SITE to be "${C_SWITCH_X_SITE}"
|
|
6278 echo "#define" C_SWITCH_X_SITE "${C_SWITCH_X_SITE}" >> confdefs.h
|
|
6279 DEFS="$DEFS -DC_SWITCH_X_SITE=${C_SWITCH_X_SITE}"
|
|
6280 ac_sed_defs="${ac_sed_defs}\${ac_dA}C_SWITCH_X_SITE\${ac_dB}C_SWITCH_X_SITE\${ac_dC}${C_SWITCH_X_SITE}\${ac_dD}
|
|
6281 \${ac_uA}C_SWITCH_X_SITE\${ac_uB}C_SWITCH_X_SITE\${ac_uC}${C_SWITCH_X_SITE}\${ac_uD}
|
|
6282 \${ac_eA}C_SWITCH_X_SITE\${ac_eB}C_SWITCH_X_SITE\${ac_eC}${C_SWITCH_X_SITE}\${ac_eD}
|
|
6283 "
|
|
6284 }
|
|
6285
|
|
6286
|
|
6287 {
|
|
6288 test -n "$verbose" && \
|
|
6289 echo " defining" LD_SWITCH_SITE to be "${LD_SWITCH_SITE}"
|
|
6290 echo "#define" LD_SWITCH_SITE "${LD_SWITCH_SITE}" >> confdefs.h
|
|
6291 DEFS="$DEFS -DLD_SWITCH_SITE=${LD_SWITCH_SITE}"
|
|
6292 ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_SITE\${ac_dB}LD_SWITCH_SITE\${ac_dC}${LD_SWITCH_SITE}\${ac_dD}
|
|
6293 \${ac_uA}LD_SWITCH_SITE\${ac_uB}LD_SWITCH_SITE\${ac_uC}${LD_SWITCH_SITE}\${ac_uD}
|
|
6294 \${ac_eA}LD_SWITCH_SITE\${ac_eB}LD_SWITCH_SITE\${ac_eC}${LD_SWITCH_SITE}\${ac_eD}
|
|
6295 "
|
|
6296 }
|
|
6297
|
|
6298
|
|
6299 {
|
|
6300 test -n "$verbose" && \
|
|
6301 echo " defining" C_SWITCH_SITE to be "${C_SWITCH_SITE}"
|
|
6302 echo "#define" C_SWITCH_SITE "${C_SWITCH_SITE}" >> confdefs.h
|
|
6303 DEFS="$DEFS -DC_SWITCH_SITE=${C_SWITCH_SITE}"
|
|
6304 ac_sed_defs="${ac_sed_defs}\${ac_dA}C_SWITCH_SITE\${ac_dB}C_SWITCH_SITE\${ac_dC}${C_SWITCH_SITE}\${ac_dD}
|
|
6305 \${ac_uA}C_SWITCH_SITE\${ac_uB}C_SWITCH_SITE\${ac_uC}${C_SWITCH_SITE}\${ac_uD}
|
|
6306 \${ac_eA}C_SWITCH_SITE\${ac_eB}C_SWITCH_SITE\${ac_eC}${C_SWITCH_SITE}\${ac_eD}
|
|
6307 "
|
|
6308 }
|
|
6309
|
|
6310
|
|
6311 {
|
|
6312 test -n "$verbose" && \
|
|
6313 echo " defining" UNEXEC_SRC to be "${UNEXEC_SRC}"
|
|
6314 echo "#define" UNEXEC_SRC "${UNEXEC_SRC}" >> confdefs.h
|
|
6315 DEFS="$DEFS -DUNEXEC_SRC=${UNEXEC_SRC}"
|
|
6316 ac_sed_defs="${ac_sed_defs}\${ac_dA}UNEXEC_SRC\${ac_dB}UNEXEC_SRC\${ac_dC}${UNEXEC_SRC}\${ac_dD}
|
|
6317 \${ac_uA}UNEXEC_SRC\${ac_uB}UNEXEC_SRC\${ac_uC}${UNEXEC_SRC}\${ac_uD}
|
|
6318 \${ac_eA}UNEXEC_SRC\${ac_eB}UNEXEC_SRC\${ac_eC}${UNEXEC_SRC}\${ac_eD}
|
|
6319 "
|
|
6320 }
|
|
6321
|
|
6322
|
|
6323
|
70
|
6324 test -n "${puresize}" &&
|
|
6325 {
|
|
6326 test -n "$verbose" && \
|
|
6327 echo " defining" PURESIZE to be "${puresize}"
|
|
6328 echo "#define" PURESIZE "${puresize}" >> confdefs.h
|
|
6329 DEFS="$DEFS -DPURESIZE=${puresize}"
|
|
6330 ac_sed_defs="${ac_sed_defs}\${ac_dA}PURESIZE\${ac_dB}PURESIZE\${ac_dC}${puresize}\${ac_dD}
|
|
6331 \${ac_uA}PURESIZE\${ac_uB}PURESIZE\${ac_uC}${puresize}\${ac_uD}
|
|
6332 \${ac_eA}PURESIZE\${ac_eB}PURESIZE\${ac_eC}${puresize}\${ac_eD}
|
|
6333 "
|
|
6334 }
|
|
6335
|
|
6336 test "${HAVE_X_WINDOWS}" = yes &&
|
0
|
6337 {
|
|
6338 test -n "$verbose" && \
|
|
6339 echo " defining HAVE_X_WINDOWS"
|
|
6340 echo "#define" HAVE_X_WINDOWS "1" >> confdefs.h
|
|
6341 DEFS="$DEFS -DHAVE_X_WINDOWS=1"
|
|
6342 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_X_WINDOWS\${ac_dB}HAVE_X_WINDOWS\${ac_dC}1\${ac_dD}
|
|
6343 \${ac_uA}HAVE_X_WINDOWS\${ac_uB}HAVE_X_WINDOWS\${ac_uC}1\${ac_uD}
|
|
6344 \${ac_eA}HAVE_X_WINDOWS\${ac_eB}HAVE_X_WINDOWS\${ac_eC}1\${ac_eD}
|
|
6345 "
|
|
6346 }
|
70
|
6347
|
|
6348 test "${HAVE_XFREE386}" = yes &&
|
0
|
6349 {
|
|
6350 test -n "$verbose" && \
|
|
6351 echo " defining HAVE_XFREE386"
|
|
6352 echo "#define" HAVE_XFREE386 "1" >> confdefs.h
|
|
6353 DEFS="$DEFS -DHAVE_XFREE386=1"
|
|
6354 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XFREE386\${ac_dB}HAVE_XFREE386\${ac_dC}1\${ac_dD}
|
|
6355 \${ac_uA}HAVE_XFREE386\${ac_uB}HAVE_XFREE386\${ac_uC}1\${ac_uD}
|
|
6356 \${ac_eA}HAVE_XFREE386\${ac_eB}HAVE_XFREE386\${ac_eC}1\${ac_eD}
|
|
6357 "
|
|
6358 }
|
70
|
6359
|
|
6360
|
|
6361 if test "${GNU_MALLOC}" = yes; then
|
0
|
6362 {
|
|
6363 test -n "$verbose" && \
|
|
6364 echo " defining GNU_MALLOC"
|
|
6365 echo "#define" GNU_MALLOC "1" >> confdefs.h
|
|
6366 DEFS="$DEFS -DGNU_MALLOC=1"
|
|
6367 ac_sed_defs="${ac_sed_defs}\${ac_dA}GNU_MALLOC\${ac_dB}GNU_MALLOC\${ac_dC}1\${ac_dD}
|
|
6368 \${ac_uA}GNU_MALLOC\${ac_uB}GNU_MALLOC\${ac_uC}1\${ac_uD}
|
|
6369 \${ac_eA}GNU_MALLOC\${ac_eB}GNU_MALLOC\${ac_eC}1\${ac_eD}
|
|
6370 "
|
|
6371 }
|
70
|
6372
|
|
6373 elif test "${use_system_malloc}" = yes; then
|
0
|
6374 {
|
|
6375 test -n "$verbose" && \
|
|
6376 echo " defining USE_SYSTEM_MALLOC"
|
|
6377 echo "#define" USE_SYSTEM_MALLOC "1" >> confdefs.h
|
|
6378 DEFS="$DEFS -DUSE_SYSTEM_MALLOC=1"
|
|
6379 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_SYSTEM_MALLOC\${ac_dB}USE_SYSTEM_MALLOC\${ac_dC}1\${ac_dD}
|
|
6380 \${ac_uA}USE_SYSTEM_MALLOC\${ac_uB}USE_SYSTEM_MALLOC\${ac_uC}1\${ac_uD}
|
|
6381 \${ac_eA}USE_SYSTEM_MALLOC\${ac_eB}USE_SYSTEM_MALLOC\${ac_eC}1\${ac_eD}
|
|
6382 "
|
|
6383 }
|
70
|
6384
|
|
6385 fi
|
|
6386 test "${rel_alloc}" = yes &&
|
0
|
6387 {
|
|
6388 test -n "$verbose" && \
|
|
6389 echo " defining REL_ALLOC"
|
|
6390 echo "#define" REL_ALLOC "1" >> confdefs.h
|
|
6391 DEFS="$DEFS -DREL_ALLOC=1"
|
|
6392 ac_sed_defs="${ac_sed_defs}\${ac_dA}REL_ALLOC\${ac_dB}REL_ALLOC\${ac_dC}1\${ac_dD}
|
|
6393 \${ac_uA}REL_ALLOC\${ac_uB}REL_ALLOC\${ac_uC}1\${ac_uD}
|
|
6394 \${ac_eA}REL_ALLOC\${ac_eB}REL_ALLOC\${ac_eC}1\${ac_eD}
|
|
6395 "
|
|
6396 }
|
70
|
6397
|
|
6398 test "${LISP_FLOAT_TYPE}" = yes &&
|
0
|
6399 {
|
|
6400 test -n "$verbose" && \
|
|
6401 echo " defining LISP_FLOAT_TYPE"
|
|
6402 echo "#define" LISP_FLOAT_TYPE "1" >> confdefs.h
|
|
6403 DEFS="$DEFS -DLISP_FLOAT_TYPE=1"
|
|
6404 ac_sed_defs="${ac_sed_defs}\${ac_dA}LISP_FLOAT_TYPE\${ac_dB}LISP_FLOAT_TYPE\${ac_dC}1\${ac_dD}
|
|
6405 \${ac_uA}LISP_FLOAT_TYPE\${ac_uB}LISP_FLOAT_TYPE\${ac_uC}1\${ac_uD}
|
|
6406 \${ac_eA}LISP_FLOAT_TYPE\${ac_eB}LISP_FLOAT_TYPE\${ac_eC}1\${ac_eD}
|
|
6407 "
|
|
6408 }
|
70
|
6409
|
|
6410 test "${with_motif}" = yes &&
|
0
|
6411 {
|
|
6412 test -n "$verbose" && \
|
|
6413 echo " defining LWLIB_USES_MOTIF"
|
|
6414 echo "#define" LWLIB_USES_MOTIF "1" >> confdefs.h
|
|
6415 DEFS="$DEFS -DLWLIB_USES_MOTIF=1"
|
|
6416 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_USES_MOTIF\${ac_dB}LWLIB_USES_MOTIF\${ac_dC}1\${ac_dD}
|
|
6417 \${ac_uA}LWLIB_USES_MOTIF\${ac_uB}LWLIB_USES_MOTIF\${ac_uC}1\${ac_uD}
|
|
6418 \${ac_eA}LWLIB_USES_MOTIF\${ac_eB}LWLIB_USES_MOTIF\${ac_eC}1\${ac_eD}
|
|
6419 "
|
|
6420 }
|
70
|
6421
|
82
|
6422 test "${with_athena}" = yes &&
|
|
6423 {
|
|
6424 test -n "$verbose" && \
|
|
6425 echo " defining LWLIB_USES_ATHENA"
|
|
6426 echo "#define" LWLIB_USES_ATHENA "1" >> confdefs.h
|
|
6427 DEFS="$DEFS -DLWLIB_USES_ATHENA=1"
|
|
6428 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_USES_ATHENA\${ac_dB}LWLIB_USES_ATHENA\${ac_dC}1\${ac_dD}
|
|
6429 \${ac_uA}LWLIB_USES_ATHENA\${ac_uB}LWLIB_USES_ATHENA\${ac_uC}1\${ac_uD}
|
|
6430 \${ac_eA}LWLIB_USES_ATHENA\${ac_eB}LWLIB_USES_ATHENA\${ac_eC}1\${ac_eD}
|
|
6431 "
|
|
6432 }
|
|
6433
|
70
|
6434 test "${with_toolbars}" = yes &&
|
0
|
6435 {
|
|
6436 test -n "$verbose" && \
|
|
6437 echo " defining HAVE_TOOLBARS"
|
|
6438 echo "#define" HAVE_TOOLBARS "1" >> confdefs.h
|
|
6439 DEFS="$DEFS -DHAVE_TOOLBARS=1"
|
|
6440 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TOOLBARS\${ac_dB}HAVE_TOOLBARS\${ac_dC}1\${ac_dD}
|
|
6441 \${ac_uA}HAVE_TOOLBARS\${ac_uB}HAVE_TOOLBARS\${ac_uC}1\${ac_uD}
|
|
6442 \${ac_eA}HAVE_TOOLBARS\${ac_eB}HAVE_TOOLBARS\${ac_eC}1\${ac_eD}
|
|
6443 "
|
|
6444 }
|
70
|
6445
|
|
6446 test "${with_tty}" = yes &&
|
0
|
6447 {
|
|
6448 test -n "$verbose" && \
|
|
6449 echo " defining HAVE_TTY"
|
|
6450 echo "#define" HAVE_TTY "1" >> confdefs.h
|
|
6451 DEFS="$DEFS -DHAVE_TTY=1"
|
|
6452 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TTY\${ac_dB}HAVE_TTY\${ac_dC}1\${ac_dD}
|
|
6453 \${ac_uA}HAVE_TTY\${ac_uB}HAVE_TTY\${ac_uC}1\${ac_uD}
|
|
6454 \${ac_eA}HAVE_TTY\${ac_eB}HAVE_TTY\${ac_eC}1\${ac_eD}
|
|
6455 "
|
|
6456 }
|
70
|
6457
|
|
6458 test "${with_tooltalk}" = yes &&
|
0
|
6459 {
|
|
6460 test -n "$verbose" && \
|
|
6461 echo " defining TOOLTALK"
|
|
6462 echo "#define" TOOLTALK "1" >> confdefs.h
|
|
6463 DEFS="$DEFS -DTOOLTALK=1"
|
|
6464 ac_sed_defs="${ac_sed_defs}\${ac_dA}TOOLTALK\${ac_dB}TOOLTALK\${ac_dC}1\${ac_dD}
|
|
6465 \${ac_uA}TOOLTALK\${ac_uB}TOOLTALK\${ac_uC}1\${ac_uD}
|
|
6466 \${ac_eA}TOOLTALK\${ac_eB}TOOLTALK\${ac_eC}1\${ac_eD}
|
|
6467 "
|
|
6468 }
|
70
|
6469
|
|
6470 test "${with_i18n3}" = yes &&
|
|
6471 {
|
|
6472 test -n "$verbose" && \
|
|
6473 echo " defining I18N3"
|
|
6474 echo "#define" I18N3 "1" >> confdefs.h
|
|
6475 DEFS="$DEFS -DI18N3=1"
|
|
6476 ac_sed_defs="${ac_sed_defs}\${ac_dA}I18N3\${ac_dB}I18N3\${ac_dC}1\${ac_dD}
|
|
6477 \${ac_uA}I18N3\${ac_uB}I18N3\${ac_uC}1\${ac_uD}
|
|
6478 \${ac_eA}I18N3\${ac_eB}I18N3\${ac_eC}1\${ac_eD}
|
|
6479 "
|
|
6480 }
|
|
6481
|
|
6482 test "${with_mule}" = yes &&
|
|
6483 {
|
|
6484 test -n "$verbose" && \
|
|
6485 echo " defining MULE"
|
|
6486 echo "#define" MULE "1" >> confdefs.h
|
|
6487 DEFS="$DEFS -DMULE=1"
|
|
6488 ac_sed_defs="${ac_sed_defs}\${ac_dA}MULE\${ac_dB}MULE\${ac_dC}1\${ac_dD}
|
|
6489 \${ac_uA}MULE\${ac_uB}MULE\${ac_uC}1\${ac_uD}
|
|
6490 \${ac_eA}MULE\${ac_eB}MULE\${ac_eC}1\${ac_eD}
|
|
6491 "
|
|
6492 }
|
|
6493
|
|
6494 test "${with_canna}" = yes &&
|
|
6495 {
|
|
6496 test -n "$verbose" && \
|
|
6497 echo " defining HAVE_CANNA"
|
|
6498 echo "#define" HAVE_CANNA "1" >> confdefs.h
|
|
6499 DEFS="$DEFS -DHAVE_CANNA=1"
|
|
6500 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_CANNA\${ac_dB}HAVE_CANNA\${ac_dC}1\${ac_dD}
|
|
6501 \${ac_uA}HAVE_CANNA\${ac_uB}HAVE_CANNA\${ac_uC}1\${ac_uD}
|
|
6502 \${ac_eA}HAVE_CANNA\${ac_eB}HAVE_CANNA\${ac_eC}1\${ac_eD}
|
|
6503 "
|
|
6504 }
|
|
6505
|
|
6506 test "${with_wnn}" = yes &&
|
|
6507 {
|
|
6508 test -n "$verbose" && \
|
|
6509 echo " defining HAVE_WNN"
|
|
6510 echo "#define" HAVE_WNN "1" >> confdefs.h
|
|
6511 DEFS="$DEFS -DHAVE_WNN=1"
|
|
6512 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_WNN\${ac_dB}HAVE_WNN\${ac_dC}1\${ac_dD}
|
|
6513 \${ac_uA}HAVE_WNN\${ac_uB}HAVE_WNN\${ac_uC}1\${ac_uD}
|
|
6514 \${ac_eA}HAVE_WNN\${ac_eB}HAVE_WNN\${ac_eC}1\${ac_eD}
|
|
6515 "
|
|
6516 }
|
|
6517
|
|
6518 test "${with_mock}" = yes &&
|
0
|
6519 {
|
|
6520 test -n "$verbose" && \
|
|
6521 echo " defining MOCKLISP_SUPPORT"
|
|
6522 echo "#define" MOCKLISP_SUPPORT "1" >> confdefs.h
|
|
6523 DEFS="$DEFS -DMOCKLISP_SUPPORT=1"
|
|
6524 ac_sed_defs="${ac_sed_defs}\${ac_dA}MOCKLISP_SUPPORT\${ac_dB}MOCKLISP_SUPPORT\${ac_dC}1\${ac_dD}
|
|
6525 \${ac_uA}MOCKLISP_SUPPORT\${ac_uB}MOCKLISP_SUPPORT\${ac_uC}1\${ac_uD}
|
|
6526 \${ac_eA}MOCKLISP_SUPPORT\${ac_eB}MOCKLISP_SUPPORT\${ac_eC}1\${ac_eD}
|
|
6527 "
|
|
6528 }
|
70
|
6529
|
|
6530 test "${with_sparcworks}" = yes &&
|
0
|
6531 {
|
|
6532 test -n "$verbose" && \
|
|
6533 echo " defining SUNPRO"
|
|
6534 echo "#define" SUNPRO "1" >> confdefs.h
|
|
6535 DEFS="$DEFS -DSUNPRO=1"
|
|
6536 ac_sed_defs="${ac_sed_defs}\${ac_dA}SUNPRO\${ac_dB}SUNPRO\${ac_dC}1\${ac_dD}
|
|
6537 \${ac_uA}SUNPRO\${ac_uB}SUNPRO\${ac_uC}1\${ac_uD}
|
|
6538 \${ac_eA}SUNPRO\${ac_eB}SUNPRO\${ac_eC}1\${ac_eD}
|
|
6539 "
|
|
6540 }
|
70
|
6541
|
|
6542 test "${usage_tracking}" = yes &&
|
0
|
6543 {
|
|
6544 test -n "$verbose" && \
|
|
6545 echo " defining USAGE_TRACKING"
|
|
6546 echo "#define" USAGE_TRACKING "1" >> confdefs.h
|
|
6547 DEFS="$DEFS -DUSAGE_TRACKING=1"
|
|
6548 ac_sed_defs="${ac_sed_defs}\${ac_dA}USAGE_TRACKING\${ac_dB}USAGE_TRACKING\${ac_dC}1\${ac_dD}
|
|
6549 \${ac_uA}USAGE_TRACKING\${ac_uB}USAGE_TRACKING\${ac_uC}1\${ac_uD}
|
|
6550 \${ac_eA}USAGE_TRACKING\${ac_eB}USAGE_TRACKING\${ac_eC}1\${ac_eD}
|
|
6551 "
|
|
6552 }
|
70
|
6553
|
|
6554 test "${need_dynodump}" = yes &&
|
|
6555 {
|
|
6556 test -n "$verbose" && \
|
|
6557 echo " defining DYNODUMP"
|
|
6558 echo "#define" DYNODUMP "1" >> confdefs.h
|
|
6559 DEFS="$DEFS -DDYNODUMP=1"
|
|
6560 ac_sed_defs="${ac_sed_defs}\${ac_dA}DYNODUMP\${ac_dB}DYNODUMP\${ac_dC}1\${ac_dD}
|
|
6561 \${ac_uA}DYNODUMP\${ac_uB}DYNODUMP\${ac_uC}1\${ac_uD}
|
|
6562 \${ac_eA}DYNODUMP\${ac_eB}DYNODUMP\${ac_eC}1\${ac_eD}
|
|
6563 "
|
|
6564 }
|
|
6565
|
|
6566 test "${need_xildoff}" = yes &&
|
|
6567 {
|
|
6568 test -n "$verbose" && \
|
|
6569 echo " defining NEED_XILDOFF"
|
|
6570 echo "#define" NEED_XILDOFF "1" >> confdefs.h
|
|
6571 DEFS="$DEFS -DNEED_XILDOFF=1"
|
|
6572 ac_sed_defs="${ac_sed_defs}\${ac_dA}NEED_XILDOFF\${ac_dB}NEED_XILDOFF\${ac_dC}1\${ac_dD}
|
|
6573 \${ac_uA}NEED_XILDOFF\${ac_uB}NEED_XILDOFF\${ac_uC}1\${ac_uD}
|
|
6574 \${ac_eA}NEED_XILDOFF\${ac_eB}NEED_XILDOFF\${ac_eC}1\${ac_eD}
|
|
6575 "
|
|
6576 }
|
|
6577
|
|
6578 test "${with_gcc}" = yes &&
|
|
6579 {
|
|
6580 test -n "$verbose" && \
|
|
6581 echo " defining USE_GCC"
|
|
6582 echo "#define" USE_GCC "1" >> confdefs.h
|
|
6583 DEFS="$DEFS -DUSE_GCC=1"
|
|
6584 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_GCC\${ac_dB}USE_GCC\${ac_dC}1\${ac_dD}
|
|
6585 \${ac_uA}USE_GCC\${ac_uB}USE_GCC\${ac_uC}1\${ac_uD}
|
|
6586 \${ac_eA}USE_GCC\${ac_eB}USE_GCC\${ac_eC}1\${ac_eD}
|
|
6587 "
|
|
6588 }
|
|
6589
|
|
6590 test "${with_lcc}" = yes &&
|
|
6591 {
|
|
6592 test -n "$verbose" && \
|
|
6593 echo " defining USE_LCC"
|
|
6594 echo "#define" USE_LCC "1" >> confdefs.h
|
|
6595 DEFS="$DEFS -DUSE_LCC=1"
|
|
6596 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_LCC\${ac_dB}USE_LCC\${ac_dC}1\${ac_dD}
|
|
6597 \${ac_uA}USE_LCC\${ac_uB}USE_LCC\${ac_uC}1\${ac_uD}
|
|
6598 \${ac_eA}USE_LCC\${ac_eB}USE_LCC\${ac_eC}1\${ac_eD}
|
|
6599 "
|
|
6600 }
|
|
6601
|
|
6602 test "${with_socks}" = yes &&
|
|
6603 {
|
|
6604 test -n "$verbose" && \
|
|
6605 echo " defining HAVE_SOCKS"
|
|
6606 echo "#define" HAVE_SOCKS "1" >> confdefs.h
|
|
6607 DEFS="$DEFS -DHAVE_SOCKS=1"
|
|
6608 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKS\${ac_dB}HAVE_SOCKS\${ac_dC}1\${ac_dD}
|
|
6609 \${ac_uA}HAVE_SOCKS\${ac_uB}HAVE_SOCKS\${ac_uC}1\${ac_uD}
|
|
6610 \${ac_eA}HAVE_SOCKS\${ac_eB}HAVE_SOCKS\${ac_eC}1\${ac_eD}
|
|
6611 "
|
|
6612 }
|
|
6613
|
|
6614 test "${with_term}" = yes &&
|
|
6615 {
|
|
6616 test -n "$verbose" && \
|
|
6617 echo " defining HAVE_TERM"
|
|
6618 echo "#define" HAVE_TERM "1" >> confdefs.h
|
|
6619 DEFS="$DEFS -DHAVE_TERM=1"
|
|
6620 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERM\${ac_dB}HAVE_TERM\${ac_dC}1\${ac_dD}
|
|
6621 \${ac_uA}HAVE_TERM\${ac_uB}HAVE_TERM\${ac_uC}1\${ac_uD}
|
|
6622 \${ac_eA}HAVE_TERM\${ac_eB}HAVE_TERM\${ac_eC}1\${ac_eD}
|
|
6623 "
|
|
6624 }
|
|
6625
|
|
6626 test "${with_epoch}" = yes &&
|
|
6627 {
|
|
6628 test -n "$verbose" && \
|
|
6629 echo " defining EPOCH"
|
|
6630 echo "#define" EPOCH "1" >> confdefs.h
|
|
6631 DEFS="$DEFS -DEPOCH=1"
|
|
6632 ac_sed_defs="${ac_sed_defs}\${ac_dA}EPOCH\${ac_dB}EPOCH\${ac_dC}1\${ac_dD}
|
|
6633 \${ac_uA}EPOCH\${ac_uB}EPOCH\${ac_uC}1\${ac_uD}
|
|
6634 \${ac_eA}EPOCH\${ac_eB}EPOCH\${ac_eC}1\${ac_eD}
|
|
6635 "
|
|
6636 }
|
|
6637
|
|
6638 test "${external_widget}" = yes &&
|
|
6639 {
|
|
6640 test -n "$verbose" && \
|
|
6641 echo " defining EXTERNAL_WIDGET"
|
|
6642 echo "#define" EXTERNAL_WIDGET "1" >> confdefs.h
|
|
6643 DEFS="$DEFS -DEXTERNAL_WIDGET=1"
|
|
6644 ac_sed_defs="${ac_sed_defs}\${ac_dA}EXTERNAL_WIDGET\${ac_dB}EXTERNAL_WIDGET\${ac_dC}1\${ac_dD}
|
|
6645 \${ac_uA}EXTERNAL_WIDGET\${ac_uB}EXTERNAL_WIDGET\${ac_uC}1\${ac_uD}
|
|
6646 \${ac_eA}EXTERNAL_WIDGET\${ac_eB}EXTERNAL_WIDGET\${ac_eC}1\${ac_eD}
|
|
6647 "
|
|
6648 }
|
|
6649
|
|
6650 test "${with_gnu_make}" = yes &&
|
|
6651 {
|
|
6652 test -n "$verbose" && \
|
|
6653 echo " defining USE_GNU_MAKE"
|
|
6654 echo "#define" USE_GNU_MAKE "1" >> confdefs.h
|
|
6655 DEFS="$DEFS -DUSE_GNU_MAKE=1"
|
|
6656 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_GNU_MAKE\${ac_dB}USE_GNU_MAKE\${ac_dC}1\${ac_dD}
|
|
6657 \${ac_uA}USE_GNU_MAKE\${ac_uB}USE_GNU_MAKE\${ac_uC}1\${ac_uD}
|
|
6658 \${ac_eA}USE_GNU_MAKE\${ac_eB}USE_GNU_MAKE\${ac_eC}1\${ac_eD}
|
|
6659 "
|
|
6660 }
|
|
6661
|
|
6662 test "${no_doc_file}" = yes &&
|
|
6663 {
|
|
6664 test -n "$verbose" && \
|
|
6665 echo " defining NO_DOC_FILE"
|
|
6666 echo "#define" NO_DOC_FILE "1" >> confdefs.h
|
|
6667 DEFS="$DEFS -DNO_DOC_FILE=1"
|
|
6668 ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_DOC_FILE\${ac_dB}NO_DOC_FILE\${ac_dC}1\${ac_dD}
|
|
6669 \${ac_uA}NO_DOC_FILE\${ac_uB}NO_DOC_FILE\${ac_uC}1\${ac_uD}
|
|
6670 \${ac_eA}NO_DOC_FILE\${ac_eB}NO_DOC_FILE\${ac_eC}1\${ac_eD}
|
|
6671 "
|
|
6672 }
|
|
6673
|
|
6674 test "${const_is_losing}" = yes &&
|
|
6675 {
|
|
6676 test -n "$verbose" && \
|
|
6677 echo " defining CONST_IS_LOSING"
|
|
6678 echo "#define" CONST_IS_LOSING "1" >> confdefs.h
|
|
6679 DEFS="$DEFS -DCONST_IS_LOSING=1"
|
|
6680 ac_sed_defs="${ac_sed_defs}\${ac_dA}CONST_IS_LOSING\${ac_dB}CONST_IS_LOSING\${ac_dC}1\${ac_dD}
|
|
6681 \${ac_uA}CONST_IS_LOSING\${ac_uB}CONST_IS_LOSING\${ac_uC}1\${ac_uD}
|
|
6682 \${ac_eA}CONST_IS_LOSING\${ac_eB}CONST_IS_LOSING\${ac_eC}1\${ac_eD}
|
|
6683 "
|
|
6684 }
|
|
6685
|
|
6686 test "${use_assertions}" = yes &&
|
|
6687 {
|
|
6688 test -n "$verbose" && \
|
|
6689 echo " defining USE_ASSERTIONS"
|
|
6690 echo "#define" USE_ASSERTIONS "1" >> confdefs.h
|
|
6691 DEFS="$DEFS -DUSE_ASSERTIONS=1"
|
|
6692 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_ASSERTIONS\${ac_dB}USE_ASSERTIONS\${ac_dC}1\${ac_dD}
|
|
6693 \${ac_uA}USE_ASSERTIONS\${ac_uB}USE_ASSERTIONS\${ac_uC}1\${ac_uD}
|
|
6694 \${ac_eA}USE_ASSERTIONS\${ac_eB}USE_ASSERTIONS\${ac_eC}1\${ac_eD}
|
|
6695 "
|
|
6696 }
|
|
6697
|
|
6698 test "${debug}" = yes &&
|
|
6699 {
|
|
6700 test -n "$verbose" && \
|
|
6701 echo " defining DEBUG_XEMACS"
|
|
6702 echo "#define" DEBUG_XEMACS "1" >> confdefs.h
|
|
6703 DEFS="$DEFS -DDEBUG_XEMACS=1"
|
|
6704 ac_sed_defs="${ac_sed_defs}\${ac_dA}DEBUG_XEMACS\${ac_dB}DEBUG_XEMACS\${ac_dC}1\${ac_dD}
|
|
6705 \${ac_uA}DEBUG_XEMACS\${ac_uB}DEBUG_XEMACS\${ac_uC}1\${ac_uD}
|
|
6706 \${ac_eA}DEBUG_XEMACS\${ac_eB}DEBUG_XEMACS\${ac_eC}1\${ac_eD}
|
|
6707 "
|
|
6708 }
|
|
6709
|
|
6710 test "${quantify}" = yes &&
|
|
6711 {
|
|
6712 test -n "$verbose" && \
|
|
6713 echo " defining QUANTIFY"
|
|
6714 echo "#define" QUANTIFY "1" >> confdefs.h
|
|
6715 DEFS="$DEFS -DQUANTIFY=1"
|
|
6716 ac_sed_defs="${ac_sed_defs}\${ac_dA}QUANTIFY\${ac_dB}QUANTIFY\${ac_dC}1\${ac_dD}
|
|
6717 \${ac_uA}QUANTIFY\${ac_uB}QUANTIFY\${ac_uC}1\${ac_uD}
|
|
6718 \${ac_eA}QUANTIFY\${ac_eB}QUANTIFY\${ac_eC}1\${ac_eD}
|
|
6719 "
|
|
6720 }
|
|
6721
|
|
6722 test "${memory_usage_stats}" = yes &&
|
|
6723 {
|
|
6724 test -n "$verbose" && \
|
|
6725 echo " defining MEMORY_USAGE_STATS"
|
|
6726 echo "#define" MEMORY_USAGE_STATS "1" >> confdefs.h
|
|
6727 DEFS="$DEFS -DMEMORY_USAGE_STATS=1"
|
|
6728 ac_sed_defs="${ac_sed_defs}\${ac_dA}MEMORY_USAGE_STATS\${ac_dB}MEMORY_USAGE_STATS\${ac_dC}1\${ac_dD}
|
|
6729 \${ac_uA}MEMORY_USAGE_STATS\${ac_uB}MEMORY_USAGE_STATS\${ac_uC}1\${ac_uD}
|
|
6730 \${ac_eA}MEMORY_USAGE_STATS\${ac_eB}MEMORY_USAGE_STATS\${ac_eC}1\${ac_eD}
|
|
6731 "
|
|
6732 }
|
|
6733
|
|
6734
|
|
6735 test "${error_check_extents}" = yes &&
|
|
6736 {
|
|
6737 test -n "$verbose" && \
|
|
6738 echo " defining ERROR_CHECK_EXTENTS"
|
|
6739 echo "#define" ERROR_CHECK_EXTENTS "1" >> confdefs.h
|
|
6740 DEFS="$DEFS -DERROR_CHECK_EXTENTS=1"
|
|
6741 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_EXTENTS\${ac_dB}ERROR_CHECK_EXTENTS\${ac_dC}1\${ac_dD}
|
|
6742 \${ac_uA}ERROR_CHECK_EXTENTS\${ac_uB}ERROR_CHECK_EXTENTS\${ac_uC}1\${ac_uD}
|
|
6743 \${ac_eA}ERROR_CHECK_EXTENTS\${ac_eB}ERROR_CHECK_EXTENTS\${ac_eC}1\${ac_eD}
|
|
6744 "
|
|
6745 }
|
|
6746
|
|
6747 test "${error_check_typecheck}" = yes &&
|
|
6748 {
|
|
6749 test -n "$verbose" && \
|
|
6750 echo " defining ERROR_CHECK_TYPECHECK"
|
|
6751 echo "#define" ERROR_CHECK_TYPECHECK "1" >> confdefs.h
|
|
6752 DEFS="$DEFS -DERROR_CHECK_TYPECHECK=1"
|
|
6753 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_TYPECHECK\${ac_dB}ERROR_CHECK_TYPECHECK\${ac_dC}1\${ac_dD}
|
|
6754 \${ac_uA}ERROR_CHECK_TYPECHECK\${ac_uB}ERROR_CHECK_TYPECHECK\${ac_uC}1\${ac_uD}
|
|
6755 \${ac_eA}ERROR_CHECK_TYPECHECK\${ac_eB}ERROR_CHECK_TYPECHECK\${ac_eC}1\${ac_eD}
|
|
6756 "
|
|
6757 }
|
|
6758
|
|
6759 test "${error_check_bufpos}" = yes &&
|
|
6760 {
|
|
6761 test -n "$verbose" && \
|
|
6762 echo " defining ERROR_CHECK_BUFPOS"
|
|
6763 echo "#define" ERROR_CHECK_BUFPOS "1" >> confdefs.h
|
|
6764 DEFS="$DEFS -DERROR_CHECK_BUFPOS=1"
|
|
6765 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_BUFPOS\${ac_dB}ERROR_CHECK_BUFPOS\${ac_dC}1\${ac_dD}
|
|
6766 \${ac_uA}ERROR_CHECK_BUFPOS\${ac_uB}ERROR_CHECK_BUFPOS\${ac_uC}1\${ac_uD}
|
|
6767 \${ac_eA}ERROR_CHECK_BUFPOS\${ac_eB}ERROR_CHECK_BUFPOS\${ac_eC}1\${ac_eD}
|
|
6768 "
|
|
6769 }
|
|
6770
|
|
6771 test "${error_check_gc}" = yes &&
|
|
6772 {
|
|
6773 test -n "$verbose" && \
|
|
6774 echo " defining ERROR_CHECK_GC"
|
|
6775 echo "#define" ERROR_CHECK_GC "1" >> confdefs.h
|
|
6776 DEFS="$DEFS -DERROR_CHECK_GC=1"
|
|
6777 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_GC\${ac_dB}ERROR_CHECK_GC\${ac_dC}1\${ac_dD}
|
|
6778 \${ac_uA}ERROR_CHECK_GC\${ac_uB}ERROR_CHECK_GC\${ac_uC}1\${ac_uD}
|
|
6779 \${ac_eA}ERROR_CHECK_GC\${ac_eB}ERROR_CHECK_GC\${ac_eC}1\${ac_eD}
|
|
6780 "
|
|
6781 }
|
|
6782
|
|
6783 test "${error_check_malloc}" = yes &&
|
|
6784 {
|
|
6785 test -n "$verbose" && \
|
|
6786 echo " defining ERROR_CHECK_MALLOC"
|
|
6787 echo "#define" ERROR_CHECK_MALLOC "1" >> confdefs.h
|
|
6788 DEFS="$DEFS -DERROR_CHECK_MALLOC=1"
|
|
6789 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_MALLOC\${ac_dB}ERROR_CHECK_MALLOC\${ac_dC}1\${ac_dD}
|
|
6790 \${ac_uA}ERROR_CHECK_MALLOC\${ac_uB}ERROR_CHECK_MALLOC\${ac_uC}1\${ac_uD}
|
|
6791 \${ac_eA}ERROR_CHECK_MALLOC\${ac_eB}ERROR_CHECK_MALLOC\${ac_eC}1\${ac_eD}
|
|
6792 "
|
|
6793 }
|
|
6794
|
|
6795
|
|
6796 if test "${with_energize}" = yes; then
|
|
6797
|
0
|
6798 {
|
|
6799 test -n "$verbose" && \
|
|
6800 echo " defining ENERGIZE"
|
|
6801 echo "#define" ENERGIZE "1" >> confdefs.h
|
|
6802 DEFS="$DEFS -DENERGIZE=1"
|
|
6803 ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE\${ac_dB}ENERGIZE\${ac_dC}1\${ac_dD}
|
|
6804 \${ac_uA}ENERGIZE\${ac_uB}ENERGIZE\${ac_uC}1\${ac_uD}
|
|
6805 \${ac_eA}ENERGIZE\${ac_eB}ENERGIZE\${ac_eC}1\${ac_eD}
|
|
6806 "
|
|
6807 }
|
70
|
6808
|
|
6809 test "${energize_version}" = "2.X" &&
|
0
|
6810 {
|
|
6811 test -n "$verbose" && \
|
|
6812 echo " defining ENERGIZE_2"
|
|
6813 echo "#define" ENERGIZE_2 "1" >> confdefs.h
|
|
6814 DEFS="$DEFS -DENERGIZE_2=1"
|
|
6815 ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE_2\${ac_dB}ENERGIZE_2\${ac_dC}1\${ac_dD}
|
|
6816 \${ac_uA}ENERGIZE_2\${ac_uB}ENERGIZE_2\${ac_uC}1\${ac_uD}
|
|
6817 \${ac_eA}ENERGIZE_2\${ac_eB}ENERGIZE_2\${ac_eC}1\${ac_eD}
|
|
6818 "
|
|
6819 }
|
70
|
6820
|
|
6821 test "${energize_version}" = "3.X" &&
|
0
|
6822 {
|
|
6823 test -n "$verbose" && \
|
|
6824 echo " defining ENERGIZE_3"
|
|
6825 echo "#define" ENERGIZE_3 "1" >> confdefs.h
|
|
6826 DEFS="$DEFS -DENERGIZE_3=1"
|
|
6827 ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE_3\${ac_dB}ENERGIZE_3\${ac_dC}1\${ac_dD}
|
|
6828 \${ac_uA}ENERGIZE_3\${ac_uB}ENERGIZE_3\${ac_uC}1\${ac_uD}
|
|
6829 \${ac_eA}ENERGIZE_3\${ac_eB}ENERGIZE_3\${ac_eC}1\${ac_eD}
|
|
6830 "
|
|
6831 }
|
70
|
6832
|
|
6833 fi
|
|
6834
|
|
6835 test "${with_sound}" = "native" -o "${with_sound}" = "both" &&
|
0
|
6836 {
|
|
6837 test -n "$verbose" && \
|
|
6838 echo " defining HAVE_NATIVE_SOUND"
|
|
6839 echo "#define" HAVE_NATIVE_SOUND "1" >> confdefs.h
|
|
6840 DEFS="$DEFS -DHAVE_NATIVE_SOUND=1"
|
|
6841 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NATIVE_SOUND\${ac_dB}HAVE_NATIVE_SOUND\${ac_dC}1\${ac_dD}
|
|
6842 \${ac_uA}HAVE_NATIVE_SOUND\${ac_uB}HAVE_NATIVE_SOUND\${ac_uC}1\${ac_uD}
|
|
6843 \${ac_eA}HAVE_NATIVE_SOUND\${ac_eB}HAVE_NATIVE_SOUND\${ac_eC}1\${ac_eD}
|
|
6844 "
|
|
6845 }
|
70
|
6846
|
|
6847 test "${with_sound}" = "nas" -o "${with_sound}" = "both" &&
|
0
|
6848 {
|
|
6849 test -n "$verbose" && \
|
|
6850 echo " defining HAVE_NAS_SOUND"
|
|
6851 echo "#define" HAVE_NAS_SOUND "1" >> confdefs.h
|
|
6852 DEFS="$DEFS -DHAVE_NAS_SOUND=1"
|
|
6853 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NAS_SOUND\${ac_dB}HAVE_NAS_SOUND\${ac_dC}1\${ac_dD}
|
|
6854 \${ac_uA}HAVE_NAS_SOUND\${ac_uB}HAVE_NAS_SOUND\${ac_uC}1\${ac_uD}
|
|
6855 \${ac_eA}HAVE_NAS_SOUND\${ac_eB}HAVE_NAS_SOUND\${ac_eC}1\${ac_eD}
|
|
6856 "
|
|
6857 }
|
70
|
6858
|
|
6859 test "${old_nas}" = "true" &&
|
0
|
6860 {
|
|
6861 test -n "$verbose" && \
|
|
6862 echo " defining NAS_NO_ERROR_JUMP"
|
|
6863 echo "#define" NAS_NO_ERROR_JUMP "1" >> confdefs.h
|
|
6864 DEFS="$DEFS -DNAS_NO_ERROR_JUMP=1"
|
|
6865 ac_sed_defs="${ac_sed_defs}\${ac_dA}NAS_NO_ERROR_JUMP\${ac_dB}NAS_NO_ERROR_JUMP\${ac_dC}1\${ac_dD}
|
|
6866 \${ac_uA}NAS_NO_ERROR_JUMP\${ac_uB}NAS_NO_ERROR_JUMP\${ac_uC}1\${ac_uD}
|
|
6867 \${ac_eA}NAS_NO_ERROR_JUMP\${ac_eB}NAS_NO_ERROR_JUMP\${ac_eC}1\${ac_eD}
|
|
6868 "
|
|
6869 }
|
70
|
6870
|
|
6871
|
|
6872 test "${use_union_type}" != yes &&
|
0
|
6873 {
|
|
6874 test -n "$verbose" && \
|
|
6875 echo " defining NO_UNION_TYPE"
|
|
6876 echo "#define" NO_UNION_TYPE "1" >> confdefs.h
|
|
6877 DEFS="$DEFS -DNO_UNION_TYPE=1"
|
|
6878 ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_UNION_TYPE\${ac_dB}NO_UNION_TYPE\${ac_dC}1\${ac_dD}
|
|
6879 \${ac_uA}NO_UNION_TYPE\${ac_uB}NO_UNION_TYPE\${ac_uC}1\${ac_uD}
|
|
6880 \${ac_eA}NO_UNION_TYPE\${ac_eB}NO_UNION_TYPE\${ac_eC}1\${ac_eD}
|
|
6881 "
|
|
6882 }
|
70
|
6883
|
|
6884
|
0
|
6885
|
|
6886 echo "
|
|
6887
|
|
6888 Configured for \`${canonical}'.
|
|
6889
|
|
6890 Where should the build process find the source code? ${srcdir}
|
|
6891 What installation prefix should install use? ${prefix}
|
|
6892 What operating system and machine description files should XEmacs use?
|
|
6893 \`${opsysfile}' and \`${machfile}'
|
|
6894 What compiler should XEmacs be built with? ${CC} ${CFLAGS}
|
|
6895 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
|
|
6896 Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
|
|
6897 What window system should XEmacs use? ${window_system}${x_includes+
|
|
6898 Where do we find X Windows header files? }${x_includes}${x_libraries+
|
|
6899 Where do we find X Windows libraries? }${x_libraries}"
|
|
6900
|
70
|
6901 if test -n "$site_includes"; then
|
0
|
6902 echo " Additional header files: ${site_includes}"
|
|
6903 fi
|
|
6904
|
70
|
6905 if test -n "$site_libraries" -a -n "$site_runtime_libraries"; then
|
0
|
6906 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}"
|
70
|
6907 elif test -n "$site_libraries"; then
|
0
|
6908 echo " Additional libraries: ${site_libraries}"
|
70
|
6909 elif test -n "$site_runtime_libraries"; then
|
0
|
6910 echo " Additional libraries: ${site_runtime_libraries}"
|
|
6911 fi
|
|
6912
|
70
|
6913 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
6914 test "$with_term" = yes && echo " Compiling in support for TERM."
|
|
6915 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
|
|
6916 test "$with_xpm" = yes && echo " Compiling in support for XPM."
|
|
6917 if test "$with_xmu" != yes -a "$window_system" != none; then
|
0
|
6918 echo " No Xmu; substituting equivalent routines."
|
|
6919 fi
|
70
|
6920 test "$with_xface" = yes && echo " Compiling in support for X-Face headers."
|
|
6921 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion."
|
|
6922 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion."
|
|
6923 if test "$with_png" = yes -o "$with_png" = gnuz; then
|
0
|
6924 echo " Compiling in support for PNG image conversion."
|
|
6925 fi
|
70
|
6926 if test "$with_png" = gnuz; then
|
0
|
6927 echo " (Using -lgz instead of -lz.)"
|
|
6928 fi
|
70
|
6929 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)."
|
|
6930 test "$with_epoch" = yes && echo " Compiling in extra Epoch compatibility."
|
|
6931
|
|
6932 test "$with_sound" = nas && echo " Compiling in network sound support."
|
|
6933 test "$with_sound" = native && echo " Compiling in native sound support."
|
|
6934 test "$with_sound" = both && echo " Compiling in both network and native sound support."
|
|
6935 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously"
|
|
6936
|
|
6937 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
|
|
6938 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
|
|
6939 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
|
|
6940
|
|
6941 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
|
|
6942 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
6943 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
|
|
6944
|
|
6945 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
|
|
6946 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
|
|
6947 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
|
|
6948 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
|
|
6949 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
|
|
6950 test "$with_wnn" = yes && echo " Compiling in support for WNN on Mule (doesn't currently work)."
|
|
6951 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
|
|
6952
|
|
6953 test "$with_cde" = yes && echo " Compiling in support for CDE."
|
|
6954 test "$with_offix" = yes && echo " Compiling in support for OffiX."
|
|
6955 test "$with_mocklisp" = yes && echo " Compiling in support for Mocklisp."
|
|
6956 test "$with_sparcworks" = yes && echo " Compiling in support for SparcWorks."
|
|
6957 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)."
|
|
6958 test "$with_menubars" = "lucid" && echo " Using the Lucid menubar."
|
|
6959 if test "$with_menubars" = "motif"; then
|
0
|
6960 echo " Using the Motif menubar."
|
|
6961 echo " *WARNING* The Motif menubar is currently buggy. We recommend"
|
|
6962 echo " that you use the Lucid menubar instead. Re-run"
|
|
6963 echo " configure with --with-menubars='lucid'."
|
|
6964 fi
|
70
|
6965 test "$with_scrollbars" = lucid && echo " Using the Lucid scrollbar."
|
|
6966 test "$with_scrollbars" = motif && echo " Using the Motif scrollbar."
|
|
6967 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar."
|
82
|
6968 test "$with_scrollbars" = athena3d && echo " Using the Athena-3d scrollbar."
|
70
|
6969 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes."
|
|
6970 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes."
|
82
|
6971 test "$with_dialogs" = athena3d && echo " Using the Athena-3d dialog boxes."
|
70
|
6972
|
|
6973 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects."
|
|
6974 test "${debug}" = yes && echo " Compiling in extra code for debugging."
|
|
6975 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage."
|
|
6976 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
|
0
|
6977 echo "
|
|
6978 "
|
|
6979
|
70
|
6980
|
|
6981
|
0
|
6982 # Remove any trailing slashes in these variables.
|
|
6983 test -n "${prefix}" &&
|
|
6984 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
6985 test -n "${exec_prefix}" &&
|
|
6986 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
6987
|
|
6988
|
|
6989 # The preferred way to propogate these variables is regular @ substitutions.
|
|
6990 if test -n "$prefix"; then
|
|
6991 ac_prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%"
|
|
6992 else
|
|
6993 prefix=/usr/local
|
|
6994 fi
|
|
6995 if test -n "$exec_prefix"; then
|
|
6996 ac_prsub="$ac_prsub
|
|
6997 s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
|
|
6998 else
|
|
6999 exec_prefix='${prefix}' # Let make expand it.
|
|
7000 fi
|
|
7001
|
|
7002 # Any assignment to VPATH causes Sun make to only execute
|
|
7003 # the first set of double-colon rules, so remove it if not needed.
|
|
7004 # If there is a colon in the path, we need to keep it.
|
|
7005 if test "x$srcdir" = x.; then
|
|
7006 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
7007 fi
|
|
7008
|
|
7009 # Quote sed substitution magic chars in DEFS.
|
|
7010 cat >conftest.def <<EOF
|
|
7011 $DEFS
|
|
7012 EOF
|
|
7013 ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
|
|
7014 DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
|
|
7015 rm -f conftest.def
|
|
7016 # Substitute for predefined variables.
|
|
7017
|
|
7018 trap 'rm -f config.status; exit 1' 1 2 15
|
|
7019 echo creating config.status
|
|
7020 rm -f config.status
|
|
7021 cat > config.status <<EOF
|
|
7022 #!/bin/sh
|
|
7023 # Generated automatically by configure.
|
|
7024 # Run this file to recreate the current configuration.
|
|
7025 # This directory was configured as follows,
|
|
7026 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
7027 #
|
70
|
7028 # $0 $configure_args
|
|
7029
|
0
|
7030 ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
|
|
7031 for ac_option
|
|
7032 do
|
|
7033 case "\$ac_option" in
|
|
7034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
70
|
7035 echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
|
|
7036 exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
|
0
|
7037 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|
7038 echo "config.status generated by autoconf version 1.11"
|
|
7039 exit 0 ;;
|
|
7040 -help | --help | --hel | --he | --h)
|
|
7041 echo "\$ac_cs_usage"; exit 0 ;;
|
|
7042 *) echo "\$ac_cs_usage"; exit 1 ;;
|
|
7043 esac
|
|
7044 done
|
|
7045
|
|
7046 trap 'rm -fr $internal_makefile_list src/config.h conftest*; exit 1' 1 2 15
|
|
7047 LN_S='$LN_S'
|
|
7048 CC='$CC'
|
|
7049 CPP='$CPP'
|
|
7050 RANLIB='$RANLIB'
|
|
7051 INSTALL='$INSTALL'
|
|
7052 INSTALL_PROGRAM='$INSTALL_PROGRAM'
|
|
7053 INSTALL_DATA='$INSTALL_DATA'
|
|
7054 YACC='$YACC'
|
|
7055 SET_MAKE='$SET_MAKE'
|
|
7056 ALLOCA='$ALLOCA'
|
|
7057 version='$version'
|
|
7058 configuration='$configuration'
|
|
7059 canonical='$canonical'
|
|
7060 srcdir='$srcdir'
|
|
7061 prefix='$prefix'
|
|
7062 exec_prefix='$exec_prefix'
|
|
7063 bindir='$bindir'
|
|
7064 datadir='$datadir'
|
|
7065 statedir='$statedir'
|
|
7066 libdir='$libdir'
|
|
7067 mandir='$mandir'
|
|
7068 infodir='$infodir'
|
|
7069 infodir_user_defined='$infodir_user_defined'
|
|
7070 lispdir='$lispdir'
|
|
7071 lispdir_user_defined='$lispdir_user_defined'
|
|
7072 sitelispdir='$sitelispdir'
|
|
7073 etcdir='$etcdir'
|
|
7074 etcdir_user_defined='$etcdir_user_defined'
|
|
7075 lockdir='$lockdir'
|
|
7076 lockdir_user_defined='$lockdir_user_defined'
|
|
7077 archlibdir='$archlibdir'
|
|
7078 archlibdir_user_defined='$archlibdir_user_defined'
|
|
7079 docdir='$docdir'
|
|
7080 bitmapdir='$bitmapdir'
|
|
7081 c_switch_system='$c_switch_system'
|
|
7082 c_switch_machine='$c_switch_machine'
|
|
7083 libsrc_libs='$libsrc_libs'
|
|
7084 LD_SWITCH_X_SITE='$LD_SWITCH_X_SITE'
|
|
7085 LD_SWITCH_X_SITE_AUX='$LD_SWITCH_X_SITE_AUX'
|
|
7086 C_SWITCH_X_SITE='$C_SWITCH_X_SITE'
|
|
7087 LD_SWITCH_SITE='$LD_SWITCH_SITE'
|
|
7088 C_SWITCH_SITE='$C_SWITCH_SITE'
|
|
7089 CFLAGS='$CFLAGS'
|
|
7090 native_sound_lib='$native_sound_lib'
|
|
7091 machfile='$machfile'
|
|
7092 opsysfile='$opsysfile'
|
|
7093 dynodump_arch='$dynodump_arch'
|
|
7094 internal_makefile_list='$internal_makefile_list'
|
|
7095 LIBS='$LIBS'
|
|
7096 top_srcdir='$top_srcdir'
|
|
7097 ac_prsub='$ac_prsub'
|
|
7098 ac_vpsub='$ac_vpsub'
|
|
7099 extrasub='$extrasub'
|
|
7100 EOF
|
|
7101 cat >> config.status <<\EOF
|
|
7102
|
|
7103 ac_given_srcdir=$srcdir
|
|
7104
|
|
7105 CONFIG_FILES=${CONFIG_FILES-"$internal_makefile_list"}
|
|
7106 for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
|
|
7107 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
7108 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
7109 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
7110 # The file is in a subdirectory.
|
|
7111 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
7112 ac_dir_suffix="/$ac_dir"
|
|
7113 else
|
|
7114 ac_dir_suffix=
|
|
7115 fi
|
|
7116
|
|
7117 # A "../" for each directory in $ac_dir_suffix.
|
|
7118 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
7119 case "$ac_given_srcdir" in
|
|
7120 .) srcdir=.
|
|
7121 if test -z "$ac_dir_suffix"; then top_srcdir=.
|
|
7122 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
7123 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
7124 *) # Relative path.
|
|
7125 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
7126 top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
7127 esac
|
|
7128
|
|
7129 echo creating "$ac_file"
|
|
7130 rm -f "$ac_file"
|
|
7131 comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
|
|
7132 case "$ac_file" in
|
|
7133 *.c | *.h | *.C | *.cc | *.m ) echo "/* $comment_str */" > "$ac_file" ;;
|
|
7134 * ) echo "# $comment_str" > "$ac_file" ;;
|
|
7135 esac
|
|
7136 sed -e "
|
|
7137 $ac_prsub
|
|
7138 $ac_vpsub
|
|
7139 $extrasub
|
|
7140 s%@LN_S@%$LN_S%g
|
|
7141 s%@CC@%$CC%g
|
|
7142 s%@CPP@%$CPP%g
|
|
7143 s%@RANLIB@%$RANLIB%g
|
|
7144 s%@INSTALL@%$INSTALL%g
|
|
7145 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|
7146 s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
7147 s%@YACC@%$YACC%g
|
|
7148 s%@SET_MAKE@%$SET_MAKE%g
|
|
7149 s%@ALLOCA@%$ALLOCA%g
|
|
7150 s%@version@%$version%g
|
|
7151 s%@configuration@%$configuration%g
|
|
7152 s%@canonical@%$canonical%g
|
|
7153 s%@srcdir@%$srcdir%g
|
|
7154 s%@prefix@%$prefix%g
|
|
7155 s%@exec_prefix@%$exec_prefix%g
|
|
7156 s%@bindir@%$bindir%g
|
|
7157 s%@datadir@%$datadir%g
|
|
7158 s%@statedir@%$statedir%g
|
|
7159 s%@libdir@%$libdir%g
|
|
7160 s%@mandir@%$mandir%g
|
|
7161 s%@infodir@%$infodir%g
|
|
7162 s%@infodir_user_defined@%$infodir_user_defined%g
|
|
7163 s%@lispdir@%$lispdir%g
|
|
7164 s%@lispdir_user_defined@%$lispdir_user_defined%g
|
|
7165 s%@sitelispdir@%$sitelispdir%g
|
|
7166 s%@etcdir@%$etcdir%g
|
|
7167 s%@etcdir_user_defined@%$etcdir_user_defined%g
|
|
7168 s%@lockdir@%$lockdir%g
|
|
7169 s%@lockdir_user_defined@%$lockdir_user_defined%g
|
|
7170 s%@archlibdir@%$archlibdir%g
|
|
7171 s%@archlibdir_user_defined@%$archlibdir_user_defined%g
|
|
7172 s%@docdir@%$docdir%g
|
|
7173 s%@bitmapdir@%$bitmapdir%g
|
|
7174 s%@c_switch_system@%$c_switch_system%g
|
|
7175 s%@c_switch_machine@%$c_switch_machine%g
|
|
7176 s%@libsrc_libs@%$libsrc_libs%g
|
|
7177 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
|
|
7178 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
|
|
7179 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
|
|
7180 s%@LD_SWITCH_SITE@%$LD_SWITCH_SITE%g
|
|
7181 s%@C_SWITCH_SITE@%$C_SWITCH_SITE%g
|
|
7182 s%@CFLAGS@%$CFLAGS%g
|
|
7183 s%@native_sound_lib@%$native_sound_lib%g
|
|
7184 s%@machfile@%$machfile%g
|
|
7185 s%@opsysfile@%$opsysfile%g
|
|
7186 s%@dynodump_arch@%$dynodump_arch%g
|
|
7187 s%@internal_makefile_list@%$internal_makefile_list%g
|
|
7188 s%@LIBS@%$LIBS%g
|
|
7189 s%@top_srcdir@%$top_srcdir%g
|
|
7190 s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
|
|
7191 fi; done
|
|
7192
|
|
7193 # These sed commands are put into ac_sed_defs when defining a macro.
|
|
7194 # They are broken into pieces to make the sed script easier to manage.
|
|
7195 # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
|
|
7196 # is the cpp macro being defined and VALUE is the value it is being given.
|
|
7197 # Each defining turns into a single global substitution command.
|
|
7198 # Hopefully no one uses "!" as a variable value.
|
|
7199 # Other candidates for the sed separators, like , and @, do get used.
|
|
7200 #
|
|
7201 # ac_d sets the value in "#define NAME VALUE" lines.
|
|
7202 ac_dA='s!^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
7203 ac_dB='\([ ][ ]*\)[^ ]*!\1#\2'
|
|
7204 ac_dC='\3'
|
|
7205 ac_dD='!g'
|
|
7206 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|
7207 ac_uA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
7208 ac_uB='\([ ]\)!\1#\2define\3'
|
|
7209 ac_uC=' '
|
|
7210 ac_uD='\4!g'
|
|
7211 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|
7212 ac_eA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
7213 ac_eB='$!\1#\2define\3'
|
|
7214 ac_eC=' '
|
|
7215 ac_eD='!g'
|
|
7216 rm -f conftest.sed
|
|
7217 EOF
|
|
7218 # Turn off quoting long enough to insert the sed commands.
|
|
7219 rm -f conftest.sh
|
|
7220 cat > conftest.sh <<EOF
|
|
7221 $ac_sed_defs
|
|
7222 EOF
|
|
7223
|
|
7224 # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
|
|
7225 # on the size of here documents.
|
|
7226
|
|
7227 # Maximum number of lines to put in a single here document.
|
|
7228 ac_max_sh_lines=9
|
|
7229
|
|
7230 while :
|
|
7231 do
|
|
7232 # wc gives bogus results for an empty file on some AIX systems.
|
|
7233 ac_lines=`grep -c . conftest.sh`
|
|
7234 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|
7235 rm -f conftest.s1 conftest.s2
|
|
7236 sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
|
|
7237 sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
|
|
7238 # Write a limited-size here document to append to conftest.sed.
|
|
7239 echo 'cat >> conftest.sed <<CONFEOF' >> config.status
|
|
7240 cat conftest.s1 >> config.status
|
|
7241 echo 'CONFEOF' >> config.status
|
|
7242 rm -f conftest.s1 conftest.sh
|
|
7243 mv conftest.s2 conftest.sh
|
|
7244 done
|
|
7245 rm -f conftest.sh
|
|
7246
|
|
7247 # Now back to your regularly scheduled config.status.
|
|
7248 cat >> config.status <<\EOF
|
|
7249 # This sed command replaces #undef's with comments. This is necessary, for
|
|
7250 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
7251 # on some systems where configure will not decide to define it in
|
|
7252 # src/config.h.
|
|
7253 cat >> conftest.sed <<\CONFEOF
|
|
7254 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
|
7255 CONFEOF
|
|
7256 rm -f conftest.h
|
|
7257 # Break up the sed commands because old seds have small limits.
|
|
7258 ac_max_sed_lines=20
|
|
7259
|
|
7260 CONFIG_HEADERS=${CONFIG_HEADERS-"src/config.h"}
|
|
7261 for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
|
|
7262 echo creating $ac_file
|
|
7263
|
|
7264 cp $ac_given_srcdir/$ac_file.in conftest.h1
|
|
7265 cp conftest.sed conftest.stm
|
|
7266 while :
|
|
7267 do
|
|
7268 ac_lines=`grep -c . conftest.stm`
|
|
7269 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|
7270 rm -f conftest.s1 conftest.s2 conftest.h2
|
|
7271 sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
|
|
7272 sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
|
|
7273 sed -f conftest.s1 < conftest.h1 > conftest.h2
|
|
7274 rm -f conftest.s1 conftest.h1 conftest.stm
|
|
7275 mv conftest.h2 conftest.h1
|
|
7276 mv conftest.s2 conftest.stm
|
|
7277 done
|
|
7278 rm -f conftest.stm conftest.h
|
|
7279 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|
7280 cat conftest.h1 >> conftest.h
|
|
7281 rm -f conftest.h1
|
|
7282 if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
7283 # The file exists and we would not be changing it.
|
|
7284 echo "$ac_file is unchanged"
|
|
7285 rm -f conftest.h
|
|
7286 else
|
|
7287 rm -f $ac_file
|
|
7288 mv conftest.h $ac_file
|
|
7289 fi
|
|
7290 fi; done
|
|
7291 rm -f conftest.sed
|
|
7292
|
|
7293
|
|
7294
|
|
7295 exit 0
|
|
7296 EOF
|
|
7297 chmod +x config.status
|
|
7298 # Some shells look in PATH for config.status without the "./".
|
|
7299 test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
|
|
7300
|
|
7301 # Build:
|
|
7302 # src/Makefile from ${srcdir}/src/Makefile.in
|
|
7303 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in
|
|
7304 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in
|
|
7305 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in
|
|
7306 # and possibly
|
|
7307 # lwlib/energize/Makefile from ${srcdir}/lwlib/energize/Makefile.in.
|
|
7308 # This must be done after src/config.h is built, since we rely on that
|
|
7309 # file. Only do the build if "config.status" is present, since its
|
|
7310 # non-presence indicates an error occured.
|
|
7311 status=$?
|
70
|
7312 if test ! -f ./config.status ; then
|
0
|
7313 exit $status
|
|
7314 fi
|
|
7315 topsrcdir=${srcdir}
|
|
7316 # We discard all lines in Makefile.in that start with `# Generated' or /**/#
|
|
7317 # because some cpps get confused by them.
|
|
7318 # Really we should preserve them somehow into Makefile,
|
|
7319 # but that is beyond my level of shell programming.
|
|
7320 makefile_command='echo "creating src/Makefile";
|
|
7321 topsrcdir='"${topsrcdir}"';
|
|
7322 ( cd ./src;
|
|
7323 rm -f junk.c;
|
|
7324 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
7325 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
7326 < junk.cpp '\
|
|
7327 ' sed -e '\''s/^#.*//'\'' '\
|
|
7328 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7329 ' -e '\''s/^ / /'\'' '\
|
|
7330 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7331 ' > Makefile.new;
|
|
7332 chmod 444 Makefile.new;
|
|
7333 mv -f Makefile.new Makefile;
|
|
7334 rm -f junk.c junk.cpp;
|
|
7335 )'
|
|
7336 eval `echo $makefile_command`
|
|
7337 lwlib_makefile_command='echo "creating lwlib/Makefile";
|
|
7338 topsrcdir='"${topsrcdir}"';
|
|
7339 ( cd ./lwlib;
|
|
7340 rm -f junk.c;
|
|
7341 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
7342 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
7343 < junk.cpp '\
|
|
7344 ' sed -e '\''s/^#.*//'\'' '\
|
|
7345 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7346 ' -e '\''s/^ / /'\'' '\
|
|
7347 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7348 ' > Makefile.new;
|
|
7349 chmod 444 Makefile.new;
|
|
7350 mv -f Makefile.new Makefile;
|
|
7351 rm -f junk.c junk.cpp;
|
|
7352 )'
|
|
7353 eval `echo $lwlib_makefile_command`
|
|
7354 lib_src_makefile_command='echo "creating lib-src/Makefile";
|
|
7355 topsrcdir='"${topsrcdir}"';
|
|
7356 ( cd ./lib-src;
|
|
7357 rm -f junk.c;
|
|
7358 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
7359 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
7360 < junk.cpp '\
|
|
7361 ' sed -e '\''s/^#.*//'\'' '\
|
|
7362 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7363 ' -e '\''s/^ / /'\'' '\
|
|
7364 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7365 ' > Makefile.new;
|
|
7366 chmod 444 Makefile.new;
|
|
7367 mv -f Makefile.new Makefile;
|
|
7368 rm -f junk.c junk.cpp;
|
|
7369 )'
|
|
7370 eval `echo $lib_src_makefile_command`
|
70
|
7371
|
|
7372 # Mule utilitity programs - currently disabled
|
|
7373 if test "${with_mule_util}" = "yes"; then
|
|
7374 lib_src_mule_makefile_command='echo "creating lib-src/mule/Makefile";
|
|
7375 topsrcdir='"${topsrcdir}"';
|
|
7376 ( cd ./lib-src/mule;
|
|
7377 rm -f junk.c;
|
|
7378 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
|
7379 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
|
7380 < junk.cpp '\
|
|
7381 ' sed -e '\''s/^#.*//'\'' '\
|
|
7382 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7383 ' -e '\''s/^ / /'\'' '\
|
|
7384 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7385 ' > Makefile.new;
|
|
7386 chmod 444 Makefile.new;
|
|
7387 mv -f Makefile.new Makefile;
|
|
7388 rm -f junk.c junk.cpp;
|
|
7389 )'
|
|
7390 eval `echo $lib_src_mule_makefile_command`
|
|
7391 fi # Mule
|
|
7392
|
0
|
7393 dynodump_makefile_command='echo "creating dynodump/Makefile";
|
|
7394 topsrcdir='"${topsrcdir}"';
|
|
7395 ( cd ./dynodump;
|
|
7396 rm -f junk.c;
|
|
7397 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
7398 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
7399 < junk.cpp '\
|
|
7400 ' sed -e '\''s/^#.*//'\'' '\
|
|
7401 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7402 ' -e '\''s/^ / /'\'' '\
|
|
7403 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7404 ' > Makefile.new;
|
|
7405 chmod 444 Makefile.new;
|
|
7406 mv -f Makefile.new Makefile;
|
|
7407 rm -f junk.c junk.cpp;
|
|
7408 )'
|
|
7409 eval `echo $dynodump_makefile_command`
|
70
|
7410 if test "${with_energize}" = "yes" ; then
|
0
|
7411 energize_makefile_command='echo "creating lwlib/energize/Makefile";
|
|
7412 topsrcdir='"${topsrcdir}"';
|
|
7413 ( cd ./lwlib/energize;
|
|
7414 rm -f junk.c;
|
|
7415 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
7416 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
7417 < junk.cpp '\
|
|
7418 ' sed -e '\''s/^#.*//'\'' '\
|
|
7419 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7420 ' -e '\''s/^ / /'\'' '\
|
|
7421 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7422 ' > Makefile.new;
|
|
7423 chmod 444 Makefile.new;
|
|
7424 mv -f Makefile.new Makefile;
|
|
7425 rm -f junk.c junk.cpp;
|
|
7426 )'
|
|
7427 eval `echo $energize_makefile_command`
|
|
7428 fi
|
|
7429 # AC-OUTPUT has created `config.status' already. We need to add the
|
|
7430 # above commands to re-create `src/Makefile', `lwlib/Makefile',
|
8
|
7431 # `lib-src/Makefile', `dynodump/Makefile', and possibly
|
0
|
7432 # `lwlib/energize/Makefile', and we need to insert them before the final
|
|
7433 # "exit 0" which appears at the end of `config.status'.
|
|
7434 <config.status sed -e 's/^exit 0$//' >config.new
|
|
7435 echo $makefile_command >>config.new
|
|
7436 echo $lwlib_makefile_command >>config.new
|
|
7437 echo $lib_src_makefile_command >>config.new
|
70
|
7438 if test "${with_mule_util}" = "yes"; then
|
|
7439 echo $lib_src_mule_makefile_command >>config.new
|
|
7440 fi
|
0
|
7441 echo $dynodump_makefile_command >>config.new
|
|
7442 echo $man_makefile_command >>config.new
|
70
|
7443 if test "${with_energize}" = "yes" ; then
|
0
|
7444 echo $energize_makefile_command >>config.new
|
|
7445 fi
|
|
7446 echo exit 0 >>config.new
|
|
7447 mv -f config.new config.status
|
|
7448 chmod +x config.status
|
|
7449 # Don't let the fact that we just rewrote config.status make Makefile think
|
|
7450 # that it is now newer. We have just rewritten all of the Makefiles as well.
|
70
|
7451 MFS="Makefile \
|
|
7452 src/Makefile src/Makefile.in \
|
|
7453 lib-src/Makefile lib-src/Makefile.in \
|
|
7454 dynodump/Makefile dynodump/Makefile.in \
|
|
7455 lwlib/Makefile lwlib/Makefile.in"
|
|
7456 chmod a+w $MFS
|
|
7457 touch $MFS
|
|
7458 chmod 444 $MFS
|
0
|
7459
|
|
7460 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then
|
|
7461 echo creating src/gdbinit
|
|
7462 echo source $topsrcdir/src/gdbinit > src/gdbinit
|
|
7463 fi
|
|
7464
|
|
7465 exit 0
|
|
7466
|