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