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