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