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"
|
70
|
3014 elif test -d /usr/X11R6/include; then
|
0
|
3015 HAVE_XFREE386=yes
|
|
3016 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X11R6/include"
|
|
3017 else
|
|
3018 HAVE_XFREE386=no
|
|
3019 fi
|
|
3020 test -n "$verbose" && echo " ${HAVE_XFREE386}"
|
|
3021 else
|
|
3022 HAVE_XFREE386=no
|
|
3023 fi
|
|
3024
|
|
3025 ############################################################################
|
|
3026 # #
|
|
3027 # Test for various X-specific features #
|
|
3028 # #
|
|
3029 ############################################################################
|
|
3030
|
|
3031 # Change CFLAGS temporarily for damn binutils 2.6.0.10 check.
|
|
3032 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
3033 case "${opsys}" in
|
|
3034 linux* )
|
|
3035 CFLAGS="-Wl,-rpath-link,/usr/X11R6/lib $CFLAGS"
|
|
3036 test -n "$silent" || echo "checking for whether path-link option is needed"
|
|
3037 cat > conftest.${ac_ext} <<EOF
|
|
3038 #include "confdefs.h"
|
|
3039
|
|
3040 int main() { return 0; }
|
|
3041 int t() { ;; return 0; }
|
|
3042 EOF
|
|
3043 if eval $ac_compile; then
|
|
3044 rm -rf conftest*
|
|
3045 need_path_link=yes
|
|
3046
|
|
3047 else
|
|
3048 rm -rf conftest*
|
|
3049 need_path_link=no
|
|
3050 fi
|
|
3051 rm -f conftest*
|
|
3052
|
|
3053 if test "${need_path_link}" = "no"; then
|
|
3054 CFLAGS="$REAL_CFLAGS"
|
|
3055 test -n "$verbose" && echo " no"
|
|
3056 else
|
|
3057 test -n "$verbose" && echo " yes"
|
|
3058 fi
|
|
3059 ;;
|
|
3060 esac
|
|
3061 fi
|
|
3062
|
|
3063 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
|
|
3064 # for the tests that follow. We set it back to REAL_CFLAGS later on.
|
|
3065
|
|
3066 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
3067 DEFS="$C_SWITCH_X_SITE $DEFS"
|
|
3068 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
|
|
3069 LIBS="$LIBX $LIBS"
|
|
3070 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
|
|
3071
|
|
3072 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
|
|
3073 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
|
|
3074 # but it's more convenient here to set LD_RUN_PATH
|
|
3075 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
|
|
3076 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
|
|
3077 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
|
|
3078 export LD_RUN_PATH
|
|
3079 fi
|
|
3080
|
|
3081 if test "${HAVE_XFREE386}" = "yes" ; then
|
|
3082 case "${opsys}" in
|
|
3083 linux* )
|
|
3084 test -n "$silent" || echo "checking for whether XFree86 needs -b to link"
|
|
3085 cat > conftest.${ac_ext} <<EOF
|
|
3086 #include "confdefs.h"
|
|
3087
|
|
3088 int main() { return 0; }
|
|
3089 int t() { XOpenDisplay ("foo");; return 0; }
|
|
3090 EOF
|
|
3091 if eval $ac_compile; then
|
|
3092 rm -rf conftest*
|
|
3093 xfree86_first_failure=no
|
|
3094
|
|
3095 else
|
|
3096 rm -rf conftest*
|
|
3097 xfree86_first_failure=yes
|
|
3098 fi
|
|
3099 rm -f conftest*
|
|
3100
|
|
3101 if test "${xfree86_first_failure}" = "yes"; then
|
|
3102 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
|
|
3103 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
|
|
3104 OLD_CPPFLAGS="$CPPFLAGS"
|
|
3105 OLD_LIBS="$LIBS"
|
|
3106 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
|
|
3107 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
|
|
3108 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
|
|
3109 LIBS="$LIBS -b i486-linuxaout"
|
|
3110 cat > conftest.${ac_ext} <<EOF
|
|
3111 #include "confdefs.h"
|
|
3112
|
|
3113 int main() { return 0; }
|
|
3114 int t() { XOpenDisplay ("foo");; return 0; }
|
|
3115 EOF
|
|
3116 if eval $ac_compile; then
|
|
3117 rm -rf conftest*
|
|
3118 xfree86_second_failure=no
|
|
3119
|
|
3120 else
|
|
3121 rm -rf conftest*
|
|
3122 xfree86_second_failure=yes
|
|
3123 fi
|
|
3124 rm -f conftest*
|
|
3125
|
|
3126 if test "${xfree86_second_failure}" = "yes"; then
|
|
3127 # If we get the same failure with -b, there is no use adding -b.
|
|
3128 # So take it out. This plays safe.
|
|
3129 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
|
|
3130 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
|
|
3131 CPPFLAGS="$OLD_CPPFLAGS"
|
|
3132 LIBS="$OLD_LIBS"
|
|
3133 test -n "$verbose" && echo " no"
|
|
3134 else
|
|
3135 test -n "$verbose" && echo " yes"
|
|
3136 fi
|
|
3137 else
|
|
3138 test -n "$verbose" && echo " no"
|
|
3139 fi
|
|
3140 ;;
|
|
3141 esac
|
|
3142 fi
|
|
3143
|
|
3144 # A C_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
|
|
3145 #XScreenNumberOfScreen XSetWMProtocols)
|
|
3146 fi
|
|
3147
|
|
3148 #
|
|
3149 # make sure we can find libX11.*
|
|
3150 #
|
|
3151 if test "${window_system}" != "none" ; then
|
|
3152 internal_xlibs_found='no'
|
|
3153 ac_save_LIBS="${LIBS}"
|
|
3154 LIBS="${LIBS} -lX11"
|
|
3155 ac_have_lib=""
|
|
3156 test -n "$silent" || echo "checking for -lX11"
|
|
3157 cat > conftest.${ac_ext} <<EOF
|
|
3158 #include "confdefs.h"
|
|
3159
|
|
3160 int main() { return 0; }
|
|
3161 int t() { main();; return 0; }
|
|
3162 EOF
|
|
3163 if eval $ac_compile; then
|
|
3164 rm -rf conftest*
|
|
3165 ac_have_lib="1"
|
|
3166
|
|
3167 fi
|
|
3168 rm -f conftest*
|
|
3169 LIBS="${ac_save_LIBS}"
|
|
3170 if test -n "${ac_have_lib}"; then
|
|
3171 :; internal_xlibs_found='yes'
|
|
3172 else
|
|
3173 :;
|
|
3174 fi
|
|
3175
|
|
3176 if test "${internal_xlibs_found}" = "no" ; then
|
|
3177 echo "Unable to find X11 libraries." >&2
|
|
3178 exit 1
|
|
3179 else
|
|
3180 test -n "$verbose" && echo " yes"
|
|
3181 fi
|
|
3182 fi
|
|
3183
|
|
3184 #
|
|
3185 # make sure we can find Intrinsic.h
|
|
3186 #
|
|
3187 if test "${window_system}" != "none" ; then
|
|
3188 internal_xincludes_found='no'
|
|
3189 for arg in ${DEFS} /usr/include
|
|
3190 do
|
|
3191 if test -f `echo "${arg}/X11/Intrinsic.h" | sed 's/^\-I//'` ; then
|
|
3192 internal_xincludes_found='yes'
|
|
3193 fi
|
|
3194 done
|
|
3195 if test "${internal_xincludes_found}" = "no" ; then
|
|
3196 echo "Unable to find X11 header files." >&2
|
|
3197 exit 1
|
|
3198 fi
|
|
3199 fi
|
|
3200
|
|
3201 #
|
|
3202 # Sun OS 4 systems need the following kludge
|
|
3203 #
|
|
3204 if test "${window_system}" != "none" ; then
|
|
3205 case "${canonical}" in *-sunos4* )
|
|
3206 LIBS="$LIBS -u _XtToolkitInitialize -u _get_applicationShellWidgetClass" ;;
|
|
3207 esac
|
|
3208 fi
|
|
3209
|
|
3210 #
|
|
3211 # See if we can find Xauth.
|
|
3212 #
|
|
3213 with_xauth='no'
|
|
3214 if test "${window_system}" != "none" ; then
|
|
3215 internal_xauth_lib_found='no'
|
|
3216 ac_save_LIBS="${LIBS}"
|
|
3217 LIBS="${LIBS} -lXau"
|
|
3218 ac_have_lib=""
|
|
3219 test -n "$silent" || echo "checking for -lXau"
|
|
3220 cat > conftest.${ac_ext} <<EOF
|
|
3221 #include "confdefs.h"
|
|
3222
|
|
3223 int main() { return 0; }
|
|
3224 int t() { main();; return 0; }
|
|
3225 EOF
|
|
3226 if eval $ac_compile; then
|
|
3227 rm -rf conftest*
|
|
3228 ac_have_lib="1"
|
|
3229
|
|
3230 fi
|
|
3231 rm -f conftest*
|
|
3232 LIBS="${ac_save_LIBS}"
|
|
3233 if test -n "${ac_have_lib}"; then
|
|
3234 :; internal_xauth_lib_found='yes'
|
|
3235 else
|
|
3236 :;
|
|
3237 fi
|
|
3238
|
|
3239 if test "${internal_xauth_lib_found}" = "yes" ; then
|
|
3240 internal_xauth_includes_found='no'
|
|
3241 for arg in ${DEFS} /usr/include
|
|
3242 do
|
|
3243 if test -f `echo "${arg}/X11/Xauth.h" | sed 's/^\-I//'` ; then
|
|
3244 internal_xauth_includes_found='yes'
|
|
3245 fi
|
|
3246 done
|
|
3247 if test "${internal_xauth_includes_found}" = "yes" ; then
|
|
3248 with_xauth='yes'
|
|
3249 fi
|
|
3250 fi
|
|
3251 fi
|
70
|
3252 test "${with_xauth}" = yes &&
|
0
|
3253 {
|
|
3254 test -n "$verbose" && \
|
|
3255 echo " defining HAVE_XAUTH"
|
|
3256 echo "#define" HAVE_XAUTH "1" >> confdefs.h
|
|
3257 DEFS="$DEFS -DHAVE_XAUTH=1"
|
|
3258 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XAUTH\${ac_dB}HAVE_XAUTH\${ac_dC}1\${ac_dD}
|
|
3259 \${ac_uA}HAVE_XAUTH\${ac_uB}HAVE_XAUTH\${ac_uC}1\${ac_uD}
|
|
3260 \${ac_eA}HAVE_XAUTH\${ac_eB}HAVE_XAUTH\${ac_eC}1\${ac_eD}
|
|
3261 "
|
|
3262 }
|
|
3263
|
|
3264
|
|
3265 #
|
|
3266 # See if we can find CDE.
|
|
3267 #
|
70
|
3268 if test "${window_system}" != "none" -a \
|
|
3269 "${with_cde}" != "no" -a \
|
|
3270 "${with_cde}" != "yes" ; then
|
|
3271 internal_cde_lib_found='no'
|
|
3272 ac_save_LIBS="${LIBS}"
|
0
|
3273 LIBS="${LIBS} -lDtSvc"
|
|
3274 ac_have_lib=""
|
|
3275 test -n "$silent" || echo "checking for -lDtSvc"
|
|
3276 cat > conftest.${ac_ext} <<EOF
|
|
3277 #include "confdefs.h"
|
|
3278
|
|
3279 int main() { return 0; }
|
|
3280 int t() { main();; return 0; }
|
|
3281 EOF
|
|
3282 if eval $ac_compile; then
|
|
3283 rm -rf conftest*
|
|
3284 ac_have_lib="1"
|
|
3285
|
|
3286 fi
|
|
3287 rm -f conftest*
|
|
3288 LIBS="${ac_save_LIBS}"
|
|
3289 if test -n "${ac_have_lib}"; then
|
|
3290 :; internal_cde_lib_found='yes'
|
|
3291 else
|
|
3292 :;
|
|
3293 fi
|
|
3294
|
70
|
3295 if test "${internal_cde_lib_found}" = "yes" ; then
|
|
3296 internal_cde_includes_found='no'
|
|
3297 for arg in ${DEFS} /usr/include ; do
|
|
3298 if test -f `echo "${arg}/Dt/Dt.h" | sed 's/^\-I//'` ; then
|
|
3299 internal_cde_includes_found='yes'
|
0
|
3300 fi
|
70
|
3301 done
|
|
3302 if test "${internal_cde_includes_found}" = "yes" ; then
|
|
3303 with_cde='yes'
|
0
|
3304 fi
|
|
3305 fi
|
|
3306 fi
|
70
|
3307 test "${with_cde}" = yes &&
|
0
|
3308 {
|
|
3309 test -n "$verbose" && \
|
|
3310 echo " defining HAVE_CDE"
|
|
3311 echo "#define" HAVE_CDE "1" >> confdefs.h
|
|
3312 DEFS="$DEFS -DHAVE_CDE=1"
|
|
3313 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_CDE\${ac_dB}HAVE_CDE\${ac_dC}1\${ac_dD}
|
|
3314 \${ac_uA}HAVE_CDE\${ac_uB}HAVE_CDE\${ac_uC}1\${ac_uD}
|
|
3315 \${ac_eA}HAVE_CDE\${ac_eB}HAVE_CDE\${ac_eC}1\${ac_eD}
|
|
3316 "
|
|
3317 }
|
|
3318
|
|
3319
|
|
3320 #
|
2
|
3321 # See if we can find OffiX.
|
|
3322 #
|
70
|
3323 if test "${window_system}" != "none" -a \
|
|
3324 "${with_offix}" != "no" -a \
|
|
3325 "${with_offix}" != "yes" ; then
|
|
3326 internal_offix_lib_found='no'
|
|
3327 ac_save_LIBS="${LIBS}"
|
2
|
3328 LIBS="${LIBS} -lDnd"
|
|
3329 ac_have_lib=""
|
|
3330 test -n "$silent" || echo "checking for -lDnd"
|
|
3331 cat > conftest.${ac_ext} <<EOF
|
|
3332 #include "confdefs.h"
|
|
3333
|
|
3334 int main() { return 0; }
|
|
3335 int t() { main();; return 0; }
|
|
3336 EOF
|
|
3337 if eval $ac_compile; then
|
|
3338 rm -rf conftest*
|
|
3339 ac_have_lib="1"
|
|
3340
|
|
3341 fi
|
|
3342 rm -f conftest*
|
|
3343 LIBS="${ac_save_LIBS}"
|
|
3344 if test -n "${ac_have_lib}"; then
|
|
3345 :; internal_offix_lib_found='yes'
|
|
3346 else
|
|
3347 :;
|
|
3348 fi
|
|
3349
|
70
|
3350 if test "${internal_offix_lib_found}" = "yes" ; then
|
|
3351 internal_offix_includes_found='no'
|
|
3352 for arg in ${DEFS} /usr/include ; do
|
|
3353 if test -f `echo "${arg}/OffiX/DragAndDrop.h" | sed 's/^\-I//'` ; then
|
|
3354 internal_offix_includes_found='yes'
|
2
|
3355 fi
|
70
|
3356 done
|
|
3357 test "${internal_offix_includes_found}" = "yes" && with_offix='yes'
|
2
|
3358 fi
|
|
3359 fi
|
70
|
3360 test "${with_offix}" = yes &&
|
2
|
3361 {
|
|
3362 test -n "$verbose" && \
|
|
3363 echo " defining HAVE_OFFIX_DND"
|
|
3364 echo "#define" HAVE_OFFIX_DND "1" >> confdefs.h
|
|
3365 DEFS="$DEFS -DHAVE_OFFIX_DND=1"
|
|
3366 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_OFFIX_DND\${ac_dB}HAVE_OFFIX_DND\${ac_dC}1\${ac_dD}
|
|
3367 \${ac_uA}HAVE_OFFIX_DND\${ac_uB}HAVE_OFFIX_DND\${ac_uC}1\${ac_uD}
|
|
3368 \${ac_eA}HAVE_OFFIX_DND\${ac_eB}HAVE_OFFIX_DND\${ac_eC}1\${ac_eD}
|
|
3369 "
|
|
3370 }
|
|
3371
|
70
|
3372
|
|
3373 # X window options
|
0
|
3374 if test "${window_system}" != "none" ; then
|
|
3375 test -n "$silent" || echo "checking the version of X11 being used"
|
|
3376 cat > conftest.${ac_ext} <<EOF
|
|
3377 #include <X11/Intrinsic.h>
|
|
3378 int main() {
|
|
3379 #if (XlibSpecificationRelease == 4)
|
|
3380 printf ("X11R4\n");
|
|
3381 #elif (XlibSpecificationRelease == 5)
|
|
3382 printf ("X11R5\n");
|
|
3383 #elif (XlibSpecificationRelease == 6)
|
|
3384 printf ("X11R6\n");
|
|
3385 #elif (XtSpecificationRelease == 4)
|
|
3386 printf ("X11R4\n");
|
|
3387 #endif
|
|
3388 return 0;
|
|
3389 }
|
|
3390 EOF
|
|
3391 ac_save_LIBS="${LIBS}"
|
|
3392 LIBS="${LIBS} ${DEFS}"
|
|
3393 if eval $ac_compile; then
|
70
|
3394 case "`./conftest`" in
|
|
3395 X11R4 )
|
0
|
3396 {
|
|
3397 test -n "$verbose" && \
|
|
3398 echo " defining THIS_IS_X11R4"
|
|
3399 echo "#define" THIS_IS_X11R4 "1" >> confdefs.h
|
|
3400 DEFS="$DEFS -DTHIS_IS_X11R4=1"
|
|
3401 ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R4\${ac_dB}THIS_IS_X11R4\${ac_dC}1\${ac_dD}
|
|
3402 \${ac_uA}THIS_IS_X11R4\${ac_uB}THIS_IS_X11R4\${ac_uC}1\${ac_uD}
|
|
3403 \${ac_eA}THIS_IS_X11R4\${ac_eB}THIS_IS_X11R4\${ac_eC}1\${ac_eD}
|
|
3404 "
|
|
3405 }
|
70
|
3406 ;;
|
|
3407 X11R5 )
|
0
|
3408 {
|
|
3409 test -n "$verbose" && \
|
|
3410 echo " defining THIS_IS_X11R5"
|
|
3411 echo "#define" THIS_IS_X11R5 "1" >> confdefs.h
|
|
3412 DEFS="$DEFS -DTHIS_IS_X11R5=1"
|
|
3413 ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R5\${ac_dB}THIS_IS_X11R5\${ac_dC}1\${ac_dD}
|
|
3414 \${ac_uA}THIS_IS_X11R5\${ac_uB}THIS_IS_X11R5\${ac_uC}1\${ac_uD}
|
|
3415 \${ac_eA}THIS_IS_X11R5\${ac_eB}THIS_IS_X11R5\${ac_eC}1\${ac_eD}
|
|
3416 "
|
|
3417 }
|
70
|
3418 ;;
|
|
3419 X11R6 )
|
0
|
3420 {
|
|
3421 test -n "$verbose" && \
|
|
3422 echo " defining THIS_IS_X11R6"
|
|
3423 echo "#define" THIS_IS_X11R6 "1" >> confdefs.h
|
|
3424 DEFS="$DEFS -DTHIS_IS_X11R6=1"
|
|
3425 ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R6\${ac_dB}THIS_IS_X11R6\${ac_dC}1\${ac_dD}
|
|
3426 \${ac_uA}THIS_IS_X11R6\${ac_uB}THIS_IS_X11R6\${ac_uC}1\${ac_uD}
|
|
3427 \${ac_eA}THIS_IS_X11R6\${ac_eB}THIS_IS_X11R6\${ac_eC}1\${ac_eD}
|
|
3428 "
|
|
3429 }
|
70
|
3430 ;;
|
|
3431 esac
|
0
|
3432 fi
|
|
3433 LIBS=$ac_save_LIBS
|
|
3434 rm -f conftest*
|
|
3435
|
|
3436 for ac_hdr in X11/Xlocale.h
|
|
3437 do
|
|
3438 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
|
|
3439 test -n "$silent" || echo "checking for ${ac_hdr}"
|
|
3440 cat > conftest.${ac_ext} <<EOF
|
|
3441 #include "confdefs.h"
|
|
3442 #include <${ac_hdr}>
|
|
3443 EOF
|
|
3444 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
3445 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
3446 echo "$ac_err"
|
|
3447 fi
|
|
3448 if test -z "$ac_err"; then
|
|
3449 rm -rf conftest*
|
|
3450
|
|
3451 {
|
|
3452 test -n "$verbose" && \
|
|
3453 echo " defining ${ac_tr_hdr}"
|
|
3454 echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
|
|
3455 DEFS="$DEFS -D${ac_tr_hdr}=1"
|
|
3456 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
|
|
3457 \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
|
|
3458 \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
|
|
3459 "
|
|
3460 }
|
|
3461
|
|
3462
|
|
3463 fi
|
|
3464 rm -f conftest*
|
|
3465 done
|
|
3466
|
|
3467 fi
|
|
3468
|
|
3469 #
|
|
3470 # if Energize specified, make sure we can find its need libraries/headers
|
|
3471 #
|
|
3472 if test "${with_energize}" = "yes" ; then
|
|
3473 ac_save_LIBS="${LIBS}"
|
|
3474 LIBS="${LIBS} -lenergize"
|
|
3475 ac_have_lib=""
|
|
3476 test -n "$silent" || echo "checking for -lenergize"
|
|
3477 cat > conftest.${ac_ext} <<EOF
|
|
3478 #include "confdefs.h"
|
|
3479
|
|
3480 int main() { return 0; }
|
|
3481 int t() { main();; return 0; }
|
|
3482 EOF
|
|
3483 if eval $ac_compile; then
|
|
3484 rm -rf conftest*
|
|
3485 ac_have_lib="1"
|
|
3486
|
|
3487 fi
|
|
3488 rm -f conftest*
|
|
3489 LIBS="${ac_save_LIBS}"
|
|
3490 if test -n "${ac_have_lib}"; then
|
|
3491 :; energize_version='3.X'
|
|
3492 else
|
|
3493 :;
|
|
3494 fi
|
|
3495
|
|
3496 if test "${energize_version}" = "no" ; then
|
|
3497 ac_save_LIBS="${LIBS}"
|
|
3498 LIBS="${LIBS} -lconn"
|
|
3499 ac_have_lib=""
|
|
3500 test -n "$silent" || echo "checking for -lconn"
|
|
3501 cat > conftest.${ac_ext} <<EOF
|
|
3502 #include "confdefs.h"
|
|
3503
|
|
3504 int main() { return 0; }
|
|
3505 int t() { main();; return 0; }
|
|
3506 EOF
|
|
3507 if eval $ac_compile; then
|
|
3508 rm -rf conftest*
|
|
3509 ac_have_lib="1"
|
|
3510
|
|
3511 fi
|
|
3512 rm -f conftest*
|
|
3513 LIBS="${ac_save_LIBS}"
|
|
3514 if test -n "${ac_have_lib}"; then
|
|
3515 :; energize_version='2.X'
|
|
3516 else
|
|
3517 :;
|
|
3518 fi
|
|
3519
|
|
3520 if test "${energize_version}" = "no" ; then
|
|
3521 echo "Unable to find Energize library." >&2
|
|
3522 exit 1
|
|
3523 fi
|
|
3524 fi
|
|
3525
|
|
3526 internal_eincludes_found='no'
|
|
3527 for arg in ${DEFS} /usr/include
|
|
3528 do
|
|
3529 if test -f `echo "${arg}/editorconn.h" | sed 's/^\-I//'` ; then
|
|
3530 internal_eincludes_found='yes'
|
|
3531 fi
|
|
3532 done
|
|
3533 if test "${internal_eincludes_found}" = "no" ; then
|
|
3534 echo "Unable to find Energize editorconn.h header file." >&2
|
|
3535 exit 1
|
|
3536 fi
|
|
3537 fi
|
|
3538
|
|
3539 #
|
|
3540 # logb and frexp are found in -lm on most systems.
|
|
3541 #
|
|
3542 ac_save_LIBS="${LIBS}"
|
|
3543 LIBS="${LIBS} -lm"
|
|
3544 ac_have_lib=""
|
|
3545 test -n "$silent" || echo "checking for -lm"
|
|
3546 cat > conftest.${ac_ext} <<EOF
|
|
3547 #include "confdefs.h"
|
|
3548
|
|
3549 int main() { return 0; }
|
|
3550 int t() { main();; return 0; }
|
|
3551 EOF
|
|
3552 if eval $ac_compile; then
|
|
3553 rm -rf conftest*
|
|
3554 ac_have_lib="1"
|
|
3555
|
|
3556 fi
|
|
3557 rm -f conftest*
|
|
3558 LIBS="${ac_save_LIBS}"
|
|
3559 if test -n "${ac_have_lib}"; then
|
|
3560
|
|
3561 {
|
|
3562 test -n "$verbose" && \
|
|
3563 echo " defining HAVE_LIBM"
|
|
3564 echo "#define" HAVE_LIBM "1" >> confdefs.h
|
|
3565 DEFS="$DEFS -DHAVE_LIBM=1"
|
|
3566 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBM\${ac_dB}HAVE_LIBM\${ac_dC}1\${ac_dD}
|
|
3567 \${ac_uA}HAVE_LIBM\${ac_uB}HAVE_LIBM\${ac_uC}1\${ac_uD}
|
|
3568 \${ac_eA}HAVE_LIBM\${ac_eB}HAVE_LIBM\${ac_eC}1\${ac_eD}
|
|
3569 "
|
|
3570 }
|
|
3571
|
|
3572 LIBS="${LIBS} -lm"
|
|
3573 fi
|
|
3574
|
|
3575
|
|
3576 #
|
|
3577 # see if XPM is hanging around somewhere
|
|
3578 #
|
70
|
3579 test "${window_system}" != "none" -a \
|
|
3580 "${with_xpm}" != "no" -a \
|
|
3581 "${with_xpm}" != "yes" && { ac_save_LIBS="${LIBS}"
|
0
|
3582 LIBS="${LIBS} -lXpm"
|
|
3583 ac_have_lib=""
|
|
3584 test -n "$silent" || echo "checking for -lXpm"
|
|
3585 cat > conftest.${ac_ext} <<EOF
|
|
3586 #include "confdefs.h"
|
|
3587
|
|
3588 int main() { return 0; }
|
|
3589 int t() { main();; return 0; }
|
|
3590 EOF
|
|
3591 if eval $ac_compile; then
|
|
3592 rm -rf conftest*
|
|
3593 ac_have_lib="1"
|
|
3594
|
|
3595 fi
|
|
3596 rm -f conftest*
|
|
3597 LIBS="${ac_save_LIBS}"
|
|
3598 if test -n "${ac_have_lib}"; then
|
|
3599 :; with_xpm="yes"
|
|
3600 else
|
|
3601 :;
|
|
3602 fi
|
70
|
3603 }
|
|
3604
|
|
3605 test "${with_xpm}" = yes &&
|
0
|
3606 {
|
|
3607 test -n "$verbose" && \
|
|
3608 echo " defining HAVE_XPM"
|
|
3609 echo "#define" HAVE_XPM "1" >> confdefs.h
|
|
3610 DEFS="$DEFS -DHAVE_XPM=1"
|
|
3611 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XPM\${ac_dB}HAVE_XPM\${ac_dC}1\${ac_dD}
|
|
3612 \${ac_uA}HAVE_XPM\${ac_uB}HAVE_XPM\${ac_uC}1\${ac_uD}
|
|
3613 \${ac_eA}HAVE_XPM\${ac_eB}HAVE_XPM\${ac_eC}1\${ac_eD}
|
|
3614 "
|
|
3615 }
|
|
3616
|
|
3617
|
|
3618 #
|
|
3619 # see if Xmu is hanging around somewhere
|
|
3620 #
|
|
3621 # FSF 19.31 has this:
|
|
3622 #dnl If using toolkit, check whether libXmu.a exists.
|
|
3623 #dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link.
|
|
3624 # OLDLIBS="$LIBS"
|
|
3625 # if test x$HAVE_X11XTR6 = xyes; then
|
|
3626 # LIBS="-lXt -lSM -lICE $LIBS"
|
|
3627 # else
|
|
3628 # LIBS="-lXt $LIBS"
|
|
3629 # fi
|
|
3630 # A C_CHECK_LIB(Xmu, XmuConvertStandardSelection)
|
|
3631 # LIBS="$OLDLIBS"
|
|
3632
|
|
3633 if test "${window_system}" != "none" ; then
|
|
3634 if test "${with_xmu}" != "no" ; then
|
70
|
3635 test "${with_xmu}" != "yes" && { ac_save_LIBS="${LIBS}"
|
0
|
3636 LIBS="${LIBS} -lXmu"
|
|
3637 ac_have_lib=""
|
|
3638 test -n "$silent" || echo "checking for -lXmu"
|
|
3639 cat > conftest.${ac_ext} <<EOF
|
|
3640 #include "confdefs.h"
|
|
3641
|
|
3642 int main() { return 0; }
|
|
3643 int t() { main();; return 0; }
|
|
3644 EOF
|
|
3645 if eval $ac_compile; then
|
|
3646 rm -rf conftest*
|
|
3647 ac_have_lib="1"
|
|
3648
|
|
3649 fi
|
|
3650 rm -f conftest*
|
|
3651 LIBS="${ac_save_LIBS}"
|
|
3652 if test -n "${ac_have_lib}"; then
|
|
3653 :; with_xmu="yes"
|
|
3654 else
|
|
3655 :;
|
|
3656 fi
|
70
|
3657 }
|
|
3658 # On SunOS4 we must kludge harder to try to detect Xmu
|
0
|
3659 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
70
|
3660 if test "${with_xmu}" != "yes" -a -n "$OPENWINHOME" ; then
|
0
|
3661 # begin expansion of ac_have_library
|
|
3662 ac_save_LIBS="${LIBS}"
|
|
3663 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm"
|
|
3664 ac_have_lib=""
|
|
3665 cat > conftest.${ac_ext} <<EOF
|
|
3666 int main() { return 0; }
|
|
3667 EOF
|
|
3668 if eval $ac_compile; then
|
|
3669 rm -rf conftest*
|
|
3670 ac_have_lib="1"
|
|
3671 fi
|
|
3672 rm -f conftest*
|
|
3673 LIBS="${ac_save_LIBS}"
|
|
3674 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3675 # end expansion of ac_have_library
|
|
3676 fi
|
|
3677 # On UnixWare 2.1 we must kludge harder to try to detect Xmu
|
|
3678 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
|
3679 if test "${with_xmu}" != "yes" && test -f "/.UpgradeVer2.1" ; then
|
|
3680 # begin expansion of ac_have_library
|
|
3681 ac_save_LIBS="${LIBS}"
|
|
3682 if test x$HAVE_XFREE386 = xyes; then
|
|
3683 LIBS="-lXt -lSM -lICE ${LIBS}"
|
|
3684 else
|
|
3685 LIBS="${LIBS} -lXmu -lXt -lXext -lX11"
|
|
3686 fi
|
|
3687 ac_have_lib=""
|
|
3688 cat > conftest.${ac_ext} <<EOF
|
|
3689 int main() { return 0; }
|
|
3690 EOF
|
|
3691 if eval $ac_compile; then
|
|
3692 rm -rf conftest*
|
|
3693 ac_have_lib="1"
|
|
3694 fi
|
|
3695 rm -f conftest*
|
|
3696 LIBS="${ac_save_LIBS}"
|
|
3697 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3698 # end expansion of ac_have_library
|
|
3699 fi
|
|
3700 fi
|
|
3701 fi
|
70
|
3702 test "${with_xmu}" = yes &&
|
0
|
3703 {
|
|
3704 test -n "$verbose" && \
|
|
3705 echo " defining HAVE_XMU"
|
|
3706 echo "#define" HAVE_XMU "1" >> confdefs.h
|
|
3707 DEFS="$DEFS -DHAVE_XMU=1"
|
|
3708 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XMU\${ac_dB}HAVE_XMU\${ac_dC}1\${ac_dD}
|
|
3709 \${ac_uA}HAVE_XMU\${ac_uB}HAVE_XMU\${ac_uC}1\${ac_uD}
|
|
3710 \${ac_eA}HAVE_XMU\${ac_eB}HAVE_XMU\${ac_eC}1\${ac_eD}
|
|
3711 "
|
|
3712 }
|
|
3713
|
|
3714
|
|
3715 #
|
|
3716 # see if COMPFACE is hanging around somewhere
|
|
3717 #
|
70
|
3718 if test "${window_system}" != "none" -a \
|
|
3719 "${with_xface}" != "no" -a \
|
|
3720 "${with_xface}" != "yes" ; then
|
|
3721 test -n "$silent" || echo "checking for compface.h"
|
0
|
3722 cat > conftest.${ac_ext} <<EOF
|
|
3723 #include "confdefs.h"
|
|
3724 #include <compface.h>
|
|
3725 EOF
|
|
3726 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
3727 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
3728 echo "$ac_err"
|
|
3729 fi
|
|
3730 if test -z "$ac_err"; then
|
|
3731 rm -rf conftest*
|
|
3732 compface_incl="yes"
|
|
3733
|
|
3734 else
|
|
3735 rm -rf conftest*
|
|
3736 with_xface="no"
|
|
3737 fi
|
|
3738 rm -f conftest*
|
|
3739
|
70
|
3740 if test "${compface_incl}" = "yes" ; then
|
|
3741 ac_save_LIBS="${LIBS}"
|
0
|
3742 LIBS="${LIBS} -lcompface"
|
|
3743 ac_have_lib=""
|
|
3744 test -n "$silent" || echo "checking for -lcompface"
|
|
3745 cat > conftest.${ac_ext} <<EOF
|
|
3746 #include "confdefs.h"
|
|
3747
|
|
3748 int main() { return 0; }
|
|
3749 int t() { main();; return 0; }
|
|
3750 EOF
|
|
3751 if eval $ac_compile; then
|
|
3752 rm -rf conftest*
|
|
3753 ac_have_lib="1"
|
|
3754
|
|
3755 fi
|
|
3756 rm -f conftest*
|
|
3757 LIBS="${ac_save_LIBS}"
|
|
3758 if test -n "${ac_have_lib}"; then
|
|
3759 :; with_xface="yes"
|
|
3760 else
|
|
3761 :;
|
|
3762 fi
|
|
3763
|
|
3764 fi
|
|
3765 fi
|
70
|
3766 test "${with_xface}" = yes &&
|
0
|
3767 {
|
|
3768 test -n "$verbose" && \
|
|
3769 echo " defining HAVE_XFACE"
|
|
3770 echo "#define" HAVE_XFACE "1" >> confdefs.h
|
|
3771 DEFS="$DEFS -DHAVE_XFACE=1"
|
|
3772 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XFACE\${ac_dB}HAVE_XFACE\${ac_dC}1\${ac_dD}
|
|
3773 \${ac_uA}HAVE_XFACE\${ac_uB}HAVE_XFACE\${ac_uC}1\${ac_uD}
|
|
3774 \${ac_eA}HAVE_XFACE\${ac_eB}HAVE_XFACE\${ac_eC}1\${ac_eD}
|
|
3775 "
|
|
3776 }
|
|
3777
|
|
3778
|
|
3779 #
|
|
3780 # check whether we're using GIF support
|
|
3781 #
|
|
3782 if test "${window_system}" = "none" ; then
|
|
3783 if test -z "${with_gif}" ; then
|
|
3784 with_gif=no
|
|
3785 elif test "${with_gif}" != "no" ; then
|
|
3786 echo "GIF support cannot be specified without a window system."
|
|
3787 exit 1
|
|
3788 fi
|
|
3789 elif test -z "${with_gif}" ; then
|
|
3790 with_gif=yes
|
|
3791 fi
|
70
|
3792 test "${with_gif}" = yes &&
|
0
|
3793 {
|
|
3794 test -n "$verbose" && \
|
|
3795 echo " defining HAVE_GIF"
|
|
3796 echo "#define" HAVE_GIF "1" >> confdefs.h
|
|
3797 DEFS="$DEFS -DHAVE_GIF=1"
|
|
3798 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_GIF\${ac_dB}HAVE_GIF\${ac_dC}1\${ac_dD}
|
|
3799 \${ac_uA}HAVE_GIF\${ac_uB}HAVE_GIF\${ac_uC}1\${ac_uD}
|
|
3800 \${ac_eA}HAVE_GIF\${ac_eB}HAVE_GIF\${ac_eC}1\${ac_eD}
|
|
3801 "
|
|
3802 }
|
|
3803
|
70
|
3804
|
0
|
3805 if test "${window_system}" = "none" ; then
|
|
3806 if test -z "${with_jpeg}" ; then
|
|
3807 with_jpeg=no
|
|
3808 elif test "${with_jpeg}" != "no" ; then
|
|
3809 echo "JPEG support cannot be specified without a window system."
|
|
3810 exit 1
|
|
3811 fi
|
|
3812 else
|
70
|
3813 if test "${with_jpeg}" != "no" -a \
|
|
3814 "${with_jpeg}" != "yes" ; then
|
|
3815 test -n "$silent" || echo "checking for jpeglib.h"
|
0
|
3816 cat > conftest.${ac_ext} <<EOF
|
|
3817 #include "confdefs.h"
|
|
3818 #include <jpeglib.h>
|
|
3819 EOF
|
|
3820 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
3821 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
3822 echo "$ac_err"
|
|
3823 fi
|
|
3824 if test -z "$ac_err"; then
|
|
3825 rm -rf conftest*
|
|
3826 jpeglib_incl="yes"
|
|
3827
|
|
3828 else
|
|
3829 rm -rf conftest*
|
|
3830 with_jpeg="no"
|
|
3831 fi
|
|
3832 rm -f conftest*
|
|
3833
|
70
|
3834 test "${jpeglib_incl}" = "yes" && { ac_save_LIBS="${LIBS}"
|
0
|
3835 LIBS="${LIBS} -ljpeg"
|
|
3836 ac_have_lib=""
|
|
3837 test -n "$silent" || echo "checking for -ljpeg"
|
|
3838 cat > conftest.${ac_ext} <<EOF
|
|
3839 #include "confdefs.h"
|
|
3840
|
|
3841 int main() { return 0; }
|
|
3842 int t() { main();; return 0; }
|
|
3843 EOF
|
|
3844 if eval $ac_compile; then
|
|
3845 rm -rf conftest*
|
|
3846 ac_have_lib="1"
|
|
3847
|
|
3848 fi
|
|
3849 rm -f conftest*
|
|
3850 LIBS="${ac_save_LIBS}"
|
|
3851 if test -n "${ac_have_lib}"; then
|
|
3852 :; with_jpeg="yes"
|
|
3853 else
|
|
3854 :;
|
|
3855 fi
|
70
|
3856 }
|
0
|
3857 fi
|
|
3858 fi
|
70
|
3859 test "${with_jpeg}" = yes &&
|
0
|
3860 {
|
|
3861 test -n "$verbose" && \
|
|
3862 echo " defining HAVE_JPEG"
|
|
3863 echo "#define" HAVE_JPEG "1" >> confdefs.h
|
|
3864 DEFS="$DEFS -DHAVE_JPEG=1"
|
|
3865 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_JPEG\${ac_dB}HAVE_JPEG\${ac_dC}1\${ac_dD}
|
|
3866 \${ac_uA}HAVE_JPEG\${ac_uB}HAVE_JPEG\${ac_uC}1\${ac_uD}
|
|
3867 \${ac_eA}HAVE_JPEG\${ac_eB}HAVE_JPEG\${ac_eC}1\${ac_eD}
|
|
3868 "
|
|
3869 }
|
|
3870
|
70
|
3871
|
0
|
3872 if test "${window_system}" = "none" ; then
|
|
3873 if test -z "${with_png}" ; then
|
|
3874 with_png=no
|
|
3875 elif test "${with_png}" != "no" ; then
|
|
3876 echo "PNG support cannot be specified without a window system."
|
|
3877 exit 1
|
|
3878 fi
|
|
3879 fi
|
70
|
3880 test -z "${with_png}" && { test -n "$silent" || echo "checking for png.h"
|
0
|
3881 cat > conftest.${ac_ext} <<EOF
|
|
3882 #include "confdefs.h"
|
|
3883 #include <png.h>
|
|
3884 EOF
|
|
3885 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
3886 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
3887 echo "$ac_err"
|
|
3888 fi
|
|
3889 if test -z "$ac_err"; then
|
|
3890 :
|
|
3891 else
|
|
3892 rm -rf conftest*
|
|
3893 with_png="no"
|
|
3894 fi
|
|
3895 rm -f conftest*
|
70
|
3896 }
|
|
3897 test -z "${with_png}" && { ac_save_LIBS="${LIBS}"
|
0
|
3898 LIBS="${LIBS} -lpng"
|
|
3899 ac_have_lib=""
|
|
3900 test -n "$silent" || echo "checking for -lpng"
|
|
3901 cat > conftest.${ac_ext} <<EOF
|
|
3902 #include "confdefs.h"
|
|
3903
|
|
3904 int main() { return 0; }
|
|
3905 int t() { main();; return 0; }
|
|
3906 EOF
|
|
3907 if eval $ac_compile; then
|
|
3908 rm -rf conftest*
|
|
3909 ac_have_lib="1"
|
|
3910
|
|
3911 fi
|
|
3912 rm -f conftest*
|
|
3913 LIBS="${ac_save_LIBS}"
|
|
3914 if test -n "${ac_have_lib}"; then
|
|
3915 :;
|
|
3916 else
|
|
3917 :; with_png="no"
|
|
3918 fi
|
70
|
3919 }
|
|
3920 test -z "${with_png}" && { ac_save_LIBS="${LIBS}"
|
0
|
3921 LIBS="${LIBS} -lz"
|
|
3922 ac_have_lib=""
|
|
3923 test -n "$silent" || echo "checking for -lz"
|
|
3924 cat > conftest.${ac_ext} <<EOF
|
|
3925 #include "confdefs.h"
|
|
3926
|
|
3927 int main() { return 0; }
|
|
3928 int t() { main();; return 0; }
|
|
3929 EOF
|
|
3930 if eval $ac_compile; then
|
|
3931 rm -rf conftest*
|
|
3932 ac_have_lib="1"
|
|
3933
|
|
3934 fi
|
|
3935 rm -f conftest*
|
|
3936 LIBS="${ac_save_LIBS}"
|
|
3937 if test -n "${ac_have_lib}"; then
|
|
3938 :; with_png="yes"
|
|
3939 else
|
|
3940 :;
|
|
3941 fi
|
70
|
3942 }
|
|
3943 test -z "${with_png}" && { ac_save_LIBS="${LIBS}"
|
0
|
3944 LIBS="${LIBS} -lgz"
|
|
3945 ac_have_lib=""
|
|
3946 test -n "$silent" || echo "checking for -lgz"
|
|
3947 cat > conftest.${ac_ext} <<EOF
|
|
3948 #include "confdefs.h"
|
|
3949
|
|
3950 int main() { return 0; }
|
|
3951 int t() { main();; return 0; }
|
|
3952 EOF
|
|
3953 if eval $ac_compile; then
|
|
3954 rm -rf conftest*
|
|
3955 ac_have_lib="1"
|
|
3956
|
|
3957 fi
|
|
3958 rm -f conftest*
|
|
3959 LIBS="${ac_save_LIBS}"
|
|
3960 if test -n "${ac_have_lib}"; then
|
|
3961 :; with_png="gnuz"
|
|
3962 else
|
|
3963 :; with_png="no"
|
|
3964 fi
|
70
|
3965 }
|
|
3966 case "${with_png}" in
|
|
3967 yes )
|
0
|
3968 {
|
|
3969 test -n "$verbose" && \
|
|
3970 echo " defining HAVE_PNG"
|
|
3971 echo "#define" HAVE_PNG "1" >> confdefs.h
|
|
3972 DEFS="$DEFS -DHAVE_PNG=1"
|
|
3973 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG\${ac_dB}HAVE_PNG\${ac_dC}1\${ac_dD}
|
|
3974 \${ac_uA}HAVE_PNG\${ac_uB}HAVE_PNG\${ac_uC}1\${ac_uD}
|
|
3975 \${ac_eA}HAVE_PNG\${ac_eB}HAVE_PNG\${ac_eC}1\${ac_eD}
|
|
3976 "
|
|
3977 }
|
70
|
3978 ;;
|
|
3979 gnuz )
|
0
|
3980 {
|
|
3981 test -n "$verbose" && \
|
|
3982 echo " defining HAVE_PNG"
|
|
3983 echo "#define" HAVE_PNG "1" >> confdefs.h
|
|
3984 DEFS="$DEFS -DHAVE_PNG=1"
|
|
3985 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG\${ac_dB}HAVE_PNG\${ac_dC}1\${ac_dD}
|
|
3986 \${ac_uA}HAVE_PNG\${ac_uB}HAVE_PNG\${ac_uC}1\${ac_uD}
|
|
3987 \${ac_eA}HAVE_PNG\${ac_eB}HAVE_PNG\${ac_eC}1\${ac_eD}
|
|
3988 "
|
|
3989 }
|
70
|
3990
|
0
|
3991 {
|
|
3992 test -n "$verbose" && \
|
|
3993 echo " defining HAVE_PNG_GNUZ"
|
|
3994 echo "#define" HAVE_PNG_GNUZ "1" >> confdefs.h
|
|
3995 DEFS="$DEFS -DHAVE_PNG_GNUZ=1"
|
|
3996 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG_GNUZ\${ac_dB}HAVE_PNG_GNUZ\${ac_dC}1\${ac_dD}
|
|
3997 \${ac_uA}HAVE_PNG_GNUZ\${ac_uB}HAVE_PNG_GNUZ\${ac_uC}1\${ac_uD}
|
|
3998 \${ac_eA}HAVE_PNG_GNUZ\${ac_eB}HAVE_PNG_GNUZ\${ac_eC}1\${ac_eD}
|
|
3999 "
|
|
4000 }
|
70
|
4001 ;;
|
|
4002 esac
|
|
4003
|
|
4004 test "${with_tiff}" = yes &&
|
0
|
4005 {
|
|
4006 test -n "$verbose" && \
|
|
4007 echo " defining HAVE_TIFF"
|
|
4008 echo "#define" HAVE_TIFF "1" >> confdefs.h
|
|
4009 DEFS="$DEFS -DHAVE_TIFF=1"
|
|
4010 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TIFF\${ac_dB}HAVE_TIFF\${ac_dC}1\${ac_dD}
|
|
4011 \${ac_uA}HAVE_TIFF\${ac_uB}HAVE_TIFF\${ac_uC}1\${ac_uD}
|
|
4012 \${ac_eA}HAVE_TIFF\${ac_eB}HAVE_TIFF\${ac_eC}1\${ac_eD}
|
|
4013 "
|
|
4014 }
|
|
4015
|
|
4016
|
|
4017 # We use Lucid toolkit defaults for the menubars and scrollbars, but
|
|
4018 # if Motif is available we use it for the dialog boxes.
|
|
4019 if test "${window_system}" != "none" ; then
|
70
|
4020 save_libs="${LIBS}"
|
0
|
4021 if test "x${with_dialogs}" = "x" ; then
|
|
4022 # We can't use ac_have_library because it simply appends -lXm to the
|
|
4023 # end of the link line which is insufficient since -lXm will generate
|
|
4024 # dependencies on -lXt
|
|
4025 # begin expansion of ac_have_library
|
|
4026 ac_save_LIBS="${LIBS}"
|
|
4027 LIBS="${LIBS} -lXm -lXt ${LIBS}"
|
|
4028 ac_have_lib=""
|
|
4029 test -n "$silent" || echo "checking for -lXm"
|
|
4030 cat > conftest.${ac_ext} <<EOF
|
|
4031 #include "confdefs.h"
|
|
4032
|
|
4033 int main() { return 0; }
|
|
4034 int t() { main();; return 0; }
|
|
4035 EOF
|
|
4036 if eval $ac_compile; then
|
|
4037 rm -rf conftest*
|
|
4038 ac_have_lib="1"
|
|
4039
|
|
4040 fi
|
|
4041 rm -f conftest*
|
|
4042 LIBS="${ac_save_LIBS}"
|
|
4043 if test -n "${ac_have_lib}"; then
|
70
|
4044 :; with_dialogs="motif" motif_libs="-lXm -lXt"
|
0
|
4045 else
|
|
4046 :;
|
|
4047 fi
|
|
4048 # end expansion of ac_have_library
|
|
4049 # Sigh. My Motif (MoTeeth) under Linux also depends on Xpm and Xext.
|
|
4050 if test "${with_dialogs}" != "motif" ; then
|
|
4051 # begin expansion of ac_have_library
|
|
4052 ac_save_LIBS="${LIBS}"
|
|
4053 LIBS="${LIBS} -lXm -lXt -lXpm -lXext ${LIBS}"
|
|
4054 ac_have_lib=""
|
|
4055 test -n "$silent" || echo "checking for -lXm in another way"
|
|
4056 cat > conftest.${ac_ext} <<EOF
|
|
4057 #include "confdefs.h"
|
|
4058
|
|
4059 int main() { return 0; }
|
|
4060 int t() { main();; return 0; }
|
|
4061 EOF
|
|
4062 if eval $ac_compile; then
|
|
4063 rm -rf conftest*
|
|
4064 ac_have_lib="1"
|
|
4065
|
|
4066 fi
|
|
4067 rm -f conftest*
|
|
4068 LIBS="${ac_save_LIBS}"
|
|
4069 if test -n "${ac_have_lib}"; then
|
70
|
4070 :; with_dialogs="motif" motif_libs="-lXm -lXt -lXpm -lXext"
|
0
|
4071 else
|
|
4072 :;
|
|
4073 fi
|
|
4074 # end expansion of ac_have_library
|
|
4075 fi
|
70
|
4076 test "${with_dialogs}" = "motif" && test -n "$verbose" && echo " Found Motif"
|
0
|
4077 fi
|
|
4078 fi
|
|
4079
|
|
4080 # Finish ensuring that we have values for the various toolkit items.
|
70
|
4081
|
|
4082 test "${with_menubars}" = "motif" -o \
|
|
4083 "${with_scrollbars}" = "motif" -o \
|
|
4084 "${with_dialogs}" = "motif" && with_motif="yes"
|
|
4085 test "${with_menubars}" = "" && with_menubars="lucid"
|
|
4086 test "${with_menubars}" = "athena" && with_menubars="lucid"
|
|
4087 test "${with_scrollbars}" = "" && with_scrollbars="lucid"
|
|
4088 test "${with_dialogs}" = "" && with_dialogs="athena"
|
|
4089 test "${with_dialogs}" = "lucid" && with_dialogs="athena"
|
|
4090
|
|
4091 test "${with_menubars}" != "no" &&
|
|
4092 {
|
|
4093 test -n "$verbose" && \
|
|
4094 echo " defining HAVE_MENUBARS"
|
|
4095 echo "#define" HAVE_MENUBARS "1" >> confdefs.h
|
|
4096 DEFS="$DEFS -DHAVE_MENUBARS=1"
|
|
4097 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MENUBARS\${ac_dB}HAVE_MENUBARS\${ac_dC}1\${ac_dD}
|
|
4098 \${ac_uA}HAVE_MENUBARS\${ac_uB}HAVE_MENUBARS\${ac_uC}1\${ac_uD}
|
|
4099 \${ac_eA}HAVE_MENUBARS\${ac_eB}HAVE_MENUBARS\${ac_eC}1\${ac_eD}
|
|
4100 "
|
|
4101 }
|
|
4102
|
|
4103 test "${with_scrollbars}" != "no" &&
|
|
4104 {
|
|
4105 test -n "$verbose" && \
|
|
4106 echo " defining HAVE_SCROLLBARS"
|
|
4107 echo "#define" HAVE_SCROLLBARS "1" >> confdefs.h
|
|
4108 DEFS="$DEFS -DHAVE_SCROLLBARS=1"
|
|
4109 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SCROLLBARS\${ac_dB}HAVE_SCROLLBARS\${ac_dC}1\${ac_dD}
|
|
4110 \${ac_uA}HAVE_SCROLLBARS\${ac_uB}HAVE_SCROLLBARS\${ac_uC}1\${ac_uD}
|
|
4111 \${ac_eA}HAVE_SCROLLBARS\${ac_eB}HAVE_SCROLLBARS\${ac_eC}1\${ac_eD}
|
|
4112 "
|
|
4113 }
|
|
4114
|
74
|
4115 test "${with_dialogs}" != "no" &&
|
70
|
4116 {
|
|
4117 test -n "$verbose" && \
|
|
4118 echo " defining HAVE_DIALOGS"
|
|
4119 echo "#define" HAVE_DIALOGS "1" >> confdefs.h
|
|
4120 DEFS="$DEFS -DHAVE_DIALOGS=1"
|
|
4121 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DIALOGS\${ac_dB}HAVE_DIALOGS\${ac_dC}1\${ac_dD}
|
|
4122 \${ac_uA}HAVE_DIALOGS\${ac_uB}HAVE_DIALOGS\${ac_uC}1\${ac_uD}
|
|
4123 \${ac_eA}HAVE_DIALOGS\${ac_eB}HAVE_DIALOGS\${ac_eC}1\${ac_eD}
|
|
4124 "
|
|
4125 }
|
|
4126
|
|
4127
|
|
4128 test "${with_menubars}" = "lucid" &&
|
|
4129 {
|
|
4130 test -n "$verbose" && \
|
|
4131 echo " defining LWLIB_MENUBARS_LUCID"
|
|
4132 echo "#define" LWLIB_MENUBARS_LUCID "1" >> confdefs.h
|
|
4133 DEFS="$DEFS -DLWLIB_MENUBARS_LUCID=1"
|
|
4134 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_MENUBARS_LUCID\${ac_dB}LWLIB_MENUBARS_LUCID\${ac_dC}1\${ac_dD}
|
|
4135 \${ac_uA}LWLIB_MENUBARS_LUCID\${ac_uB}LWLIB_MENUBARS_LUCID\${ac_uC}1\${ac_uD}
|
|
4136 \${ac_eA}LWLIB_MENUBARS_LUCID\${ac_eB}LWLIB_MENUBARS_LUCID\${ac_eC}1\${ac_eD}
|
|
4137 "
|
|
4138 }
|
|
4139
|
|
4140 test "${with_menubars}" = "motif" &&
|
|
4141 {
|
|
4142 test -n "$verbose" && \
|
|
4143 echo " defining LWLIB_MENUBARS_MOTIF"
|
|
4144 echo "#define" LWLIB_MENUBARS_MOTIF "1" >> confdefs.h
|
|
4145 DEFS="$DEFS -DLWLIB_MENUBARS_MOTIF=1"
|
|
4146 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_MENUBARS_MOTIF\${ac_dB}LWLIB_MENUBARS_MOTIF\${ac_dC}1\${ac_dD}
|
|
4147 \${ac_uA}LWLIB_MENUBARS_MOTIF\${ac_uB}LWLIB_MENUBARS_MOTIF\${ac_uC}1\${ac_uD}
|
|
4148 \${ac_eA}LWLIB_MENUBARS_MOTIF\${ac_eB}LWLIB_MENUBARS_MOTIF\${ac_eC}1\${ac_eD}
|
|
4149 "
|
|
4150 }
|
|
4151
|
|
4152 test "${with_scrollbars}" = "lucid" &&
|
|
4153 {
|
|
4154 test -n "$verbose" && \
|
|
4155 echo " defining LWLIB_SCROLLBARS_LUCID"
|
|
4156 echo "#define" LWLIB_SCROLLBARS_LUCID "1" >> confdefs.h
|
|
4157 DEFS="$DEFS -DLWLIB_SCROLLBARS_LUCID=1"
|
|
4158 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_LUCID\${ac_dB}LWLIB_SCROLLBARS_LUCID\${ac_dC}1\${ac_dD}
|
|
4159 \${ac_uA}LWLIB_SCROLLBARS_LUCID\${ac_uB}LWLIB_SCROLLBARS_LUCID\${ac_uC}1\${ac_uD}
|
|
4160 \${ac_eA}LWLIB_SCROLLBARS_LUCID\${ac_eB}LWLIB_SCROLLBARS_LUCID\${ac_eC}1\${ac_eD}
|
|
4161 "
|
|
4162 }
|
|
4163
|
|
4164 test "${with_scrollbars}" = "motif" &&
|
|
4165 {
|
|
4166 test -n "$verbose" && \
|
|
4167 echo " defining LWLIB_SCROLLBARS_MOTIF"
|
|
4168 echo "#define" LWLIB_SCROLLBARS_MOTIF "1" >> confdefs.h
|
|
4169 DEFS="$DEFS -DLWLIB_SCROLLBARS_MOTIF=1"
|
|
4170 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_MOTIF\${ac_dB}LWLIB_SCROLLBARS_MOTIF\${ac_dC}1\${ac_dD}
|
|
4171 \${ac_uA}LWLIB_SCROLLBARS_MOTIF\${ac_uB}LWLIB_SCROLLBARS_MOTIF\${ac_uC}1\${ac_uD}
|
|
4172 \${ac_eA}LWLIB_SCROLLBARS_MOTIF\${ac_eB}LWLIB_SCROLLBARS_MOTIF\${ac_eC}1\${ac_eD}
|
|
4173 "
|
|
4174 }
|
|
4175
|
|
4176 test "${with_scrollbars}" = "athena" &&
|
|
4177 {
|
|
4178 test -n "$verbose" && \
|
|
4179 echo " defining LWLIB_SCROLLBARS_ATHENA"
|
|
4180 echo "#define" LWLIB_SCROLLBARS_ATHENA "1" >> confdefs.h
|
|
4181 DEFS="$DEFS -DLWLIB_SCROLLBARS_ATHENA=1"
|
|
4182 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_ATHENA\${ac_dB}LWLIB_SCROLLBARS_ATHENA\${ac_dC}1\${ac_dD}
|
|
4183 \${ac_uA}LWLIB_SCROLLBARS_ATHENA\${ac_uB}LWLIB_SCROLLBARS_ATHENA\${ac_uC}1\${ac_uD}
|
|
4184 \${ac_eA}LWLIB_SCROLLBARS_ATHENA\${ac_eB}LWLIB_SCROLLBARS_ATHENA\${ac_eC}1\${ac_eD}
|
|
4185 "
|
|
4186 }
|
|
4187
|
|
4188 test "${with_dialogs}" = "motif" &&
|
|
4189 {
|
|
4190 test -n "$verbose" && \
|
|
4191 echo " defining LWLIB_DIALOGS_MOTIF"
|
|
4192 echo "#define" LWLIB_DIALOGS_MOTIF "1" >> confdefs.h
|
|
4193 DEFS="$DEFS -DLWLIB_DIALOGS_MOTIF=1"
|
|
4194 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_MOTIF\${ac_dB}LWLIB_DIALOGS_MOTIF\${ac_dC}1\${ac_dD}
|
|
4195 \${ac_uA}LWLIB_DIALOGS_MOTIF\${ac_uB}LWLIB_DIALOGS_MOTIF\${ac_uC}1\${ac_uD}
|
|
4196 \${ac_eA}LWLIB_DIALOGS_MOTIF\${ac_eB}LWLIB_DIALOGS_MOTIF\${ac_eC}1\${ac_eD}
|
|
4197 "
|
|
4198 }
|
|
4199
|
|
4200 test "${with_dialogs}" = "athena" &&
|
|
4201 {
|
|
4202 test -n "$verbose" && \
|
|
4203 echo " defining LWLIB_DIALOGS_ATHENA"
|
|
4204 echo "#define" LWLIB_DIALOGS_ATHENA "1" >> confdefs.h
|
|
4205 DEFS="$DEFS -DLWLIB_DIALOGS_ATHENA=1"
|
|
4206 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_ATHENA\${ac_dB}LWLIB_DIALOGS_ATHENA\${ac_dC}1\${ac_dD}
|
|
4207 \${ac_uA}LWLIB_DIALOGS_ATHENA\${ac_uB}LWLIB_DIALOGS_ATHENA\${ac_uC}1\${ac_uD}
|
|
4208 \${ac_eA}LWLIB_DIALOGS_ATHENA\${ac_eB}LWLIB_DIALOGS_ATHENA\${ac_eC}1\${ac_eD}
|
|
4209 "
|
|
4210 }
|
0
|
4211
|
|
4212
|
|
4213 ############################################################################
|
|
4214 # #
|
|
4215 # Misc other feature tests #
|
|
4216 # #
|
|
4217 ############################################################################
|
|
4218
|
70
|
4219 # Mule-dependent option processing
|
|
4220 if test "$with_mule" = "yes" ; then
|
|
4221 # Do we have the XmIm* routines? And if so, do we want to use them?
|
|
4222 test "$with_xim" != no && test -n "$silent" || echo "checking for XIM"
|
|
4223 if test -z "$with_xim" -o "$with_xim" = "yes" ; then
|
|
4224 xim_save_libs="$LIBS"
|
|
4225 LIBS="${motif_libs} ${LIBS}"
|
|
4226 test -n "$silent" || echo "checking for XmImMbLookupString"
|
|
4227 cat > conftest.${ac_ext} <<EOF
|
|
4228 #include "confdefs.h"
|
|
4229 #include <ctype.h>
|
|
4230 int main() { return 0; }
|
|
4231 int t() {
|
|
4232 /* The GNU C library defines this for functions which it implements
|
|
4233 to always fail with ENOSYS. Some functions are actually named
|
|
4234 something starting with __ and the normal name is an alias. */
|
|
4235 #if defined (__stub_XmImMbLookupString) || defined (__stub___XmImMbLookupString)
|
|
4236 choke me
|
|
4237 #else
|
|
4238 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4239 extern char XmImMbLookupString(); XmImMbLookupString();
|
|
4240 #endif
|
|
4241 ; return 0; }
|
|
4242 EOF
|
|
4243 if eval $ac_compile; then
|
|
4244 rm -rf conftest*
|
|
4245 have_XmIm=yes
|
|
4246
|
|
4247 else
|
|
4248 rm -rf conftest*
|
|
4249 have_XmIm=no
|
|
4250 fi
|
|
4251 rm -f conftest*
|
|
4252
|
|
4253 LIBS="$xim_save_libs"
|
|
4254 if test "$have_XmIm" = "yes"; then with_xim=motif
|
|
4255 elif test "$with_xim" = "yes"; then with_xim=xlib
|
|
4256 else with_xim=no
|
|
4257 fi
|
|
4258 fi
|
|
4259 if test "$with_xim" != "no" ; then
|
|
4260
|
|
4261 {
|
|
4262 test -n "$verbose" && \
|
|
4263 echo " defining HAVE_XIM"
|
|
4264 echo "#define" HAVE_XIM "1" >> confdefs.h
|
|
4265 DEFS="$DEFS -DHAVE_XIM=1"
|
|
4266 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XIM\${ac_dB}HAVE_XIM\${ac_dC}1\${ac_dD}
|
|
4267 \${ac_uA}HAVE_XIM\${ac_uB}HAVE_XIM\${ac_uC}1\${ac_uD}
|
|
4268 \${ac_eA}HAVE_XIM\${ac_eB}HAVE_XIM\${ac_eC}1\${ac_eD}
|
|
4269 "
|
|
4270 }
|
|
4271
|
|
4272 test "$with_xim" = "xlib" &&
|
|
4273 {
|
|
4274 test -n "$verbose" && \
|
|
4275 echo " defining XIM_XLIB"
|
|
4276 echo "#define" XIM_XLIB "1" >> confdefs.h
|
|
4277 DEFS="$DEFS -DXIM_XLIB=1"
|
|
4278 ac_sed_defs="${ac_sed_defs}\${ac_dA}XIM_XLIB\${ac_dB}XIM_XLIB\${ac_dC}1\${ac_dD}
|
|
4279 \${ac_uA}XIM_XLIB\${ac_uB}XIM_XLIB\${ac_uC}1\${ac_uD}
|
|
4280 \${ac_eA}XIM_XLIB\${ac_eB}XIM_XLIB\${ac_eC}1\${ac_eD}
|
|
4281 "
|
|
4282 }
|
|
4283
|
|
4284 test "$with_xim" = "motif" &&
|
|
4285 {
|
|
4286 test -n "$verbose" && \
|
|
4287 echo " defining XIM_MOTIF"
|
|
4288 echo "#define" XIM_MOTIF "1" >> confdefs.h
|
|
4289 DEFS="$DEFS -DXIM_MOTIF=1"
|
|
4290 ac_sed_defs="${ac_sed_defs}\${ac_dA}XIM_MOTIF\${ac_dB}XIM_MOTIF\${ac_dC}1\${ac_dD}
|
|
4291 \${ac_uA}XIM_MOTIF\${ac_uB}XIM_MOTIF\${ac_uC}1\${ac_uD}
|
|
4292 \${ac_eA}XIM_MOTIF\${ac_eB}XIM_MOTIF\${ac_eC}1\${ac_eD}
|
|
4293 "
|
|
4294 }
|
|
4295
|
|
4296 fi
|
|
4297 else # Other internationalization features depend on Mule
|
|
4298 with_mule="no"
|
|
4299 for feature in xim canna wnn ; do
|
|
4300 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then
|
|
4301 echo "configure: warning: --with-$feature ignored: Not valid without Mule support" >&2
|
|
4302 fi
|
|
4303 eval "with_$feature=no"
|
|
4304 done
|
|
4305 fi
|
|
4306
|
0
|
4307 # If netdb.h doesn't declare h_errno, we must declare it by hand.
|
|
4308 test -n "$silent" || echo "checking for declaration of h_errno in netdb.h"
|
|
4309 cat > conftest.${ac_ext} <<EOF
|
|
4310 #include "confdefs.h"
|
|
4311 #include <netdb.h>
|
|
4312 int main() { return 0; }
|
|
4313 int t() { int i = h_errno;; return 0; }
|
|
4314 EOF
|
|
4315 if eval $ac_compile; then
|
|
4316 rm -rf conftest*
|
|
4317
|
|
4318 {
|
|
4319 test -n "$verbose" && \
|
|
4320 echo " defining HAVE_H_ERRNO"
|
|
4321 echo "#define" HAVE_H_ERRNO "1" >> confdefs.h
|
|
4322 DEFS="$DEFS -DHAVE_H_ERRNO=1"
|
|
4323 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_H_ERRNO\${ac_dB}HAVE_H_ERRNO\${ac_dC}1\${ac_dD}
|
|
4324 \${ac_uA}HAVE_H_ERRNO\${ac_uB}HAVE_H_ERRNO\${ac_uC}1\${ac_uD}
|
|
4325 \${ac_eA}HAVE_H_ERRNO\${ac_eB}HAVE_H_ERRNO\${ac_eC}1\${ac_eD}
|
|
4326 "
|
|
4327 }
|
|
4328
|
|
4329
|
|
4330 fi
|
|
4331 rm -f conftest*
|
|
4332
|
|
4333
|
|
4334 test -n "$silent" || echo "checking for sigsetjmp"
|
|
4335 cat > conftest.${ac_ext} <<EOF
|
|
4336 #include "confdefs.h"
|
|
4337 #include <setjmp.h>
|
|
4338 int main() { return 0; }
|
|
4339 int t() { sigjmp_buf bar; sigsetjmp (bar, 0);; return 0; }
|
|
4340 EOF
|
|
4341 if eval $ac_compile; then
|
|
4342 rm -rf conftest*
|
|
4343
|
|
4344 {
|
|
4345 test -n "$verbose" && \
|
|
4346 echo " defining HAVE_SIGSETJMP"
|
|
4347 echo "#define" HAVE_SIGSETJMP "1" >> confdefs.h
|
|
4348 DEFS="$DEFS -DHAVE_SIGSETJMP=1"
|
|
4349 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SIGSETJMP\${ac_dB}HAVE_SIGSETJMP\${ac_dC}1\${ac_dD}
|
|
4350 \${ac_uA}HAVE_SIGSETJMP\${ac_uB}HAVE_SIGSETJMP\${ac_uC}1\${ac_uD}
|
|
4351 \${ac_eA}HAVE_SIGSETJMP\${ac_eB}HAVE_SIGSETJMP\${ac_eC}1\${ac_eD}
|
|
4352 "
|
|
4353 }
|
|
4354
|
|
4355
|
|
4356 fi
|
|
4357 rm -f conftest*
|
|
4358
|
|
4359
|
|
4360 test -n "$silent" || echo "checking whether localtime caches TZ"
|
|
4361 emacs_cv_localtime_cache=
|
|
4362 test -n "$silent" || echo "checking whether cross-compiling"
|
|
4363 # If we cannot run a trivial program, we must be cross compiling.
|
|
4364 cat > conftest.${ac_ext} <<EOF
|
|
4365 #include "confdefs.h"
|
|
4366 main(){exit(0);}
|
|
4367 EOF
|
|
4368 eval $ac_compile
|
|
4369 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
4370 :
|
|
4371 else
|
|
4372 cross_compiling=1
|
|
4373 fi
|
|
4374 rm -fr conftest*
|
|
4375
|
|
4376 if test -n "$cross_compiling"
|
|
4377 then
|
|
4378 # If we have tzset, assume the worst when cross-compiling.
|
|
4379 emacs_cv_localtime_cache=yes
|
|
4380 else
|
|
4381 cat > conftest.${ac_ext} <<EOF
|
|
4382 #include "confdefs.h"
|
|
4383 #include <time.h>
|
|
4384 #if 1 /* STDC_HEADERS */
|
|
4385 # include <stdlib.h>
|
|
4386 #endif
|
|
4387 extern char **environ;
|
|
4388 unset_TZ ()
|
|
4389 {
|
|
4390 char **from, **to;
|
|
4391 for (to = from = environ; (*to = *from); from++)
|
|
4392 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
4393 to++;
|
|
4394 }
|
|
4395 main()
|
|
4396 {
|
|
4397 time_t now = time ((time_t *) 0);
|
|
4398 int hour_GMT0, hour_unset;
|
|
4399 if (putenv ("TZ=GMT0") != 0)
|
|
4400 exit (1);
|
|
4401 hour_GMT0 = localtime (&now)->tm_hour;
|
|
4402 unset_TZ ();
|
|
4403 hour_unset = localtime (&now)->tm_hour;
|
|
4404 if (putenv ("TZ=PST8") != 0)
|
|
4405 exit (1);
|
|
4406 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
4407 exit (1);
|
|
4408 unset_TZ ();
|
|
4409 if (localtime (&now)->tm_hour != hour_unset)
|
|
4410 exit (1);
|
|
4411 exit (0);
|
|
4412 }
|
|
4413 EOF
|
|
4414 eval $ac_compile
|
|
4415 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
4416 emacs_cv_localtime_cache=no
|
|
4417
|
|
4418 else
|
|
4419 emacs_cv_localtime_cache=yes
|
|
4420 fi
|
|
4421 fi
|
|
4422 rm -fr conftest*
|
|
4423 test -n "$verbose" && echo " "$emacs_cv_localtime_cache""
|
|
4424 if test x$emacs_cv_localtime_cache = xyes; then
|
|
4425
|
|
4426 {
|
|
4427 test -n "$verbose" && \
|
|
4428 echo " defining LOCALTIME_CACHE"
|
|
4429 echo "#define" LOCALTIME_CACHE "1" >> confdefs.h
|
|
4430 DEFS="$DEFS -DLOCALTIME_CACHE=1"
|
|
4431 ac_sed_defs="${ac_sed_defs}\${ac_dA}LOCALTIME_CACHE\${ac_dB}LOCALTIME_CACHE\${ac_dC}1\${ac_dD}
|
|
4432 \${ac_uA}LOCALTIME_CACHE\${ac_uB}LOCALTIME_CACHE\${ac_uC}1\${ac_uD}
|
|
4433 \${ac_eA}LOCALTIME_CACHE\${ac_eB}LOCALTIME_CACHE\${ac_eC}1\${ac_eD}
|
|
4434 "
|
|
4435 }
|
|
4436
|
|
4437 fi
|
|
4438
|
|
4439 if test "x$HAVE_TIMEVAL" = xyes; then
|
|
4440 test -n "$silent" || echo "checking for whether gettimeofday can't accept two arguments"
|
|
4441 cat > conftest.${ac_ext} <<EOF
|
|
4442 #include "confdefs.h"
|
|
4443
|
|
4444 #ifdef TIME_WITH_SYS_TIME
|
|
4445 #include <sys/time.h>
|
|
4446 #include <time.h>
|
|
4447 #else
|
|
4448 #ifdef HAVE_SYS_TIME_H
|
|
4449 #include <sys/time.h>
|
|
4450 #else
|
|
4451 #include <time.h>
|
|
4452 #endif
|
|
4453 #endif
|
|
4454
|
|
4455 int main() { return 0; }
|
|
4456 int t() {
|
|
4457 struct timeval time;
|
|
4458 struct timezone dummy;
|
|
4459 gettimeofday (&time, &dummy);
|
|
4460 ; return 0; }
|
|
4461 EOF
|
|
4462 if eval $ac_compile; then
|
|
4463 rm -rf conftest*
|
|
4464 test -n "$verbose" && echo " no"
|
|
4465
|
|
4466 else
|
|
4467 rm -rf conftest*
|
|
4468 test -n "$verbose" && echo " yes"
|
|
4469
|
|
4470 {
|
|
4471 test -n "$verbose" && \
|
|
4472 echo " defining GETTIMEOFDAY_ONE_ARGUMENT"
|
|
4473 echo "#define" GETTIMEOFDAY_ONE_ARGUMENT "1" >> confdefs.h
|
|
4474 DEFS="$DEFS -DGETTIMEOFDAY_ONE_ARGUMENT=1"
|
|
4475 ac_sed_defs="${ac_sed_defs}\${ac_dA}GETTIMEOFDAY_ONE_ARGUMENT\${ac_dB}GETTIMEOFDAY_ONE_ARGUMENT\${ac_dC}1\${ac_dD}
|
|
4476 \${ac_uA}GETTIMEOFDAY_ONE_ARGUMENT\${ac_uB}GETTIMEOFDAY_ONE_ARGUMENT\${ac_uC}1\${ac_uD}
|
|
4477 \${ac_eA}GETTIMEOFDAY_ONE_ARGUMENT\${ac_eB}GETTIMEOFDAY_ONE_ARGUMENT\${ac_eC}1\${ac_eD}
|
|
4478 "
|
|
4479 }
|
|
4480
|
|
4481 fi
|
|
4482 rm -f conftest*
|
|
4483
|
|
4484 fi
|
|
4485
|
|
4486 test -n "$silent" || echo "checking for whether inline functions are supported"
|
|
4487 cat > conftest.${ac_ext} <<EOF
|
|
4488 #include "confdefs.h"
|
|
4489
|
|
4490 int main() { return 0; }
|
|
4491 int t() {
|
|
4492 inline int
|
|
4493 foo ()
|
|
4494 {
|
|
4495 return 0;
|
|
4496 }
|
|
4497 ; return 0; }
|
|
4498 EOF
|
|
4499 if eval $ac_compile; then
|
|
4500 rm -rf conftest*
|
|
4501
|
|
4502 {
|
|
4503 test -n "$verbose" && \
|
|
4504 echo " defining HAVE_INLINE"
|
|
4505 echo "#define" HAVE_INLINE "1" >> confdefs.h
|
|
4506 DEFS="$DEFS -DHAVE_INLINE=1"
|
|
4507 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_INLINE\${ac_dB}HAVE_INLINE\${ac_dC}1\${ac_dD}
|
|
4508 \${ac_uA}HAVE_INLINE\${ac_uB}HAVE_INLINE\${ac_uC}1\${ac_uD}
|
|
4509 \${ac_eA}HAVE_INLINE\${ac_eB}HAVE_INLINE\${ac_eC}1\${ac_eD}
|
|
4510 "
|
|
4511 }
|
|
4512
|
|
4513
|
|
4514 fi
|
|
4515 rm -f conftest*
|
|
4516
|
|
4517
|
|
4518 # This does all sorts of magic to make sure alloca() works OK.
|
|
4519 # It might even add some junk to the top of <config.h>.
|
|
4520 # (I don't understand what goes on here, but it seems to work.)
|
|
4521 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|
4522 # for constant arguments. Useless!
|
|
4523 test -n "$silent" || echo "checking for working alloca.h"
|
|
4524 cat > conftest.${ac_ext} <<EOF
|
|
4525 #include "confdefs.h"
|
|
4526 #include <alloca.h>
|
|
4527 int main() { return 0; }
|
|
4528 int t() { char *p = alloca(2 * sizeof(int));; return 0; }
|
|
4529 EOF
|
|
4530 if eval $ac_compile; then
|
|
4531 rm -rf conftest*
|
|
4532
|
|
4533 {
|
|
4534 test -n "$verbose" && \
|
|
4535 echo " defining HAVE_ALLOCA_H"
|
|
4536 echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
|
|
4537 DEFS="$DEFS -DHAVE_ALLOCA_H=1"
|
|
4538 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA_H\${ac_dB}HAVE_ALLOCA_H\${ac_dC}1\${ac_dD}
|
|
4539 \${ac_uA}HAVE_ALLOCA_H\${ac_uB}HAVE_ALLOCA_H\${ac_uC}1\${ac_uD}
|
|
4540 \${ac_eA}HAVE_ALLOCA_H\${ac_eB}HAVE_ALLOCA_H\${ac_eC}1\${ac_eD}
|
|
4541 "
|
|
4542 }
|
|
4543
|
|
4544
|
|
4545 fi
|
|
4546 rm -f conftest*
|
|
4547
|
|
4548 ac_decl="#ifdef __GNUC__
|
|
4549 #define alloca __builtin_alloca
|
|
4550 #else
|
|
4551 #if HAVE_ALLOCA_H
|
|
4552 #include <alloca.h>
|
|
4553 #else
|
|
4554 #ifdef _AIX
|
|
4555 #pragma alloca
|
|
4556 #else
|
|
4557 char *alloca ();
|
|
4558 #endif
|
|
4559 #endif
|
|
4560 #endif
|
|
4561 "
|
|
4562 test -n "$silent" || echo "checking for alloca"
|
|
4563 cat > conftest.${ac_ext} <<EOF
|
|
4564 #include "confdefs.h"
|
|
4565 $ac_decl
|
|
4566 int main() { return 0; }
|
|
4567 int t() { char *p = (char *) alloca(1);; return 0; }
|
|
4568 EOF
|
|
4569 if eval $ac_compile; then
|
|
4570 rm -rf conftest*
|
|
4571
|
|
4572 {
|
|
4573 test -n "$verbose" && \
|
|
4574 echo " defining HAVE_ALLOCA"
|
|
4575 echo "#define" HAVE_ALLOCA "1" >> confdefs.h
|
|
4576 DEFS="$DEFS -DHAVE_ALLOCA=1"
|
|
4577 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA\${ac_dB}HAVE_ALLOCA\${ac_dC}1\${ac_dD}
|
|
4578 \${ac_uA}HAVE_ALLOCA\${ac_uB}HAVE_ALLOCA\${ac_uC}1\${ac_uD}
|
|
4579 \${ac_eA}HAVE_ALLOCA\${ac_eB}HAVE_ALLOCA\${ac_eC}1\${ac_eD}
|
|
4580 "
|
|
4581 }
|
|
4582
|
|
4583
|
|
4584 else
|
|
4585 rm -rf conftest*
|
|
4586 ac_alloca_missing=1
|
|
4587 cat > conftest.${ac_ext} <<EOF
|
|
4588 #include "confdefs.h"
|
|
4589
|
|
4590 #if defined(CRAY) && ! defined(CRAY2)
|
|
4591 winnitude
|
|
4592 #else
|
|
4593 lossage
|
|
4594 #endif
|
|
4595
|
|
4596 EOF
|
|
4597 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
|
|
4598 if egrep "winnitude" conftest.out >/dev/null 2>&1; then
|
|
4599 rm -rf conftest*
|
|
4600 test -n "$silent" || echo "checking for _getb67"
|
|
4601 cat > conftest.${ac_ext} <<EOF
|
|
4602 #include "confdefs.h"
|
|
4603 #include <ctype.h>
|
|
4604 int main() { return 0; }
|
|
4605 int t() {
|
|
4606 /* The GNU C library defines this for functions which it implements
|
|
4607 to always fail with ENOSYS. Some functions are actually named
|
|
4608 something starting with __ and the normal name is an alias. */
|
|
4609 #if defined (__stub__getb67) || defined (__stub____getb67)
|
|
4610 choke me
|
|
4611 #else
|
|
4612 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4613 extern char _getb67(); _getb67();
|
|
4614 #endif
|
|
4615 ; return 0; }
|
|
4616 EOF
|
|
4617 if eval $ac_compile; then
|
|
4618 rm -rf conftest*
|
|
4619 {
|
|
4620 test -n "$verbose" && \
|
|
4621 echo " defining" CRAY_STACKSEG_END to be "_getb67"
|
|
4622 echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
|
|
4623 DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
|
|
4624 ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}_getb67\${ac_dD}
|
|
4625 \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}_getb67\${ac_uD}
|
|
4626 \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}_getb67\${ac_eD}
|
|
4627 "
|
|
4628 }
|
|
4629
|
|
4630
|
|
4631 else
|
|
4632 rm -rf conftest*
|
|
4633 test -n "$silent" || echo "checking for GETB67"
|
|
4634 cat > conftest.${ac_ext} <<EOF
|
|
4635 #include "confdefs.h"
|
|
4636 #include <ctype.h>
|
|
4637 int main() { return 0; }
|
|
4638 int t() {
|
|
4639 /* The GNU C library defines this for functions which it implements
|
|
4640 to always fail with ENOSYS. Some functions are actually named
|
|
4641 something starting with __ and the normal name is an alias. */
|
|
4642 #if defined (__stub_GETB67) || defined (__stub___GETB67)
|
|
4643 choke me
|
|
4644 #else
|
|
4645 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4646 extern char GETB67(); GETB67();
|
|
4647 #endif
|
|
4648 ; return 0; }
|
|
4649 EOF
|
|
4650 if eval $ac_compile; then
|
|
4651 rm -rf conftest*
|
|
4652 {
|
|
4653 test -n "$verbose" && \
|
|
4654 echo " defining" CRAY_STACKSEG_END to be "GETB67"
|
|
4655 echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
|
|
4656 DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
|
|
4657 ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}GETB67\${ac_dD}
|
|
4658 \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}GETB67\${ac_uD}
|
|
4659 \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}GETB67\${ac_eD}
|
|
4660 "
|
|
4661 }
|
|
4662
|
|
4663
|
|
4664 else
|
|
4665 rm -rf conftest*
|
|
4666 test -n "$silent" || echo "checking for getb67"
|
|
4667 cat > conftest.${ac_ext} <<EOF
|
|
4668 #include "confdefs.h"
|
|
4669 #include <ctype.h>
|
|
4670 int main() { return 0; }
|
|
4671 int t() {
|
|
4672 /* The GNU C library defines this for functions which it implements
|
|
4673 to always fail with ENOSYS. Some functions are actually named
|
|
4674 something starting with __ and the normal name is an alias. */
|
|
4675 #if defined (__stub_getb67) || defined (__stub___getb67)
|
|
4676 choke me
|
|
4677 #else
|
|
4678 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4679 extern char getb67(); getb67();
|
|
4680 #endif
|
|
4681 ; return 0; }
|
|
4682 EOF
|
|
4683 if eval $ac_compile; then
|
|
4684 rm -rf conftest*
|
|
4685 {
|
|
4686 test -n "$verbose" && \
|
|
4687 echo " defining" CRAY_STACKSEG_END to be "getb67"
|
|
4688 echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
|
|
4689 DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
|
|
4690 ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}getb67\${ac_dD}
|
|
4691 \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}getb67\${ac_uD}
|
|
4692 \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}getb67\${ac_eD}
|
|
4693 "
|
|
4694 }
|
|
4695
|
|
4696
|
|
4697 fi
|
|
4698 rm -f conftest*
|
|
4699
|
|
4700 fi
|
|
4701 rm -f conftest*
|
|
4702
|
|
4703 fi
|
|
4704 rm -f conftest*
|
|
4705
|
|
4706
|
|
4707 fi
|
|
4708 rm -f conftest*
|
|
4709
|
|
4710
|
|
4711 fi
|
|
4712 rm -f conftest*
|
|
4713
|
|
4714 if test -n "$ac_alloca_missing"; then
|
|
4715 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
4716 # that cause trouble. Some versions do not even contain alloca or
|
|
4717 # contain a buggy version. If you still want to use their alloca,
|
|
4718 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|
4719 ALLOCA=alloca.o
|
|
4720
|
|
4721 {
|
|
4722 test -n "$verbose" && \
|
|
4723 echo " defining C_ALLOCA"
|
|
4724 echo "#define" C_ALLOCA "1" >> confdefs.h
|
|
4725 DEFS="$DEFS -DC_ALLOCA=1"
|
|
4726 ac_sed_defs="${ac_sed_defs}\${ac_dA}C_ALLOCA\${ac_dB}C_ALLOCA\${ac_dC}1\${ac_dD}
|
|
4727 \${ac_uA}C_ALLOCA\${ac_uB}C_ALLOCA\${ac_uC}1\${ac_uD}
|
|
4728 \${ac_eA}C_ALLOCA\${ac_eB}C_ALLOCA\${ac_eC}1\${ac_eD}
|
|
4729 "
|
|
4730 }
|
|
4731
|
|
4732
|
|
4733 test -n "$silent" || echo "checking stack direction for C alloca"
|
|
4734 if test -n "$cross_compiling"
|
|
4735 then
|
|
4736
|
|
4737 {
|
|
4738 test -n "$verbose" && \
|
|
4739 echo " defining" STACK_DIRECTION to be "0"
|
|
4740 echo "#define" STACK_DIRECTION "0" >> confdefs.h
|
|
4741 DEFS="$DEFS -DSTACK_DIRECTION=0"
|
|
4742 ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}0\${ac_dD}
|
|
4743 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}0\${ac_uD}
|
|
4744 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}0\${ac_eD}
|
|
4745 "
|
|
4746 }
|
|
4747
|
|
4748 else
|
|
4749 cat > conftest.${ac_ext} <<EOF
|
|
4750 #include "confdefs.h"
|
|
4751 find_stack_direction ()
|
|
4752 {
|
|
4753 static char *addr = 0;
|
|
4754 auto char dummy;
|
|
4755 if (addr == 0)
|
|
4756 {
|
|
4757 addr = &dummy;
|
|
4758 return find_stack_direction ();
|
|
4759 }
|
|
4760 else
|
|
4761 return (&dummy > addr) ? 1 : -1;
|
|
4762 }
|
|
4763 main ()
|
|
4764 {
|
|
4765 exit (find_stack_direction() < 0);
|
|
4766 }
|
|
4767 EOF
|
|
4768 eval $ac_compile
|
|
4769 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
4770
|
|
4771 {
|
|
4772 test -n "$verbose" && \
|
|
4773 echo " defining" STACK_DIRECTION to be "1"
|
|
4774 echo "#define" STACK_DIRECTION "1" >> confdefs.h
|
|
4775 DEFS="$DEFS -DSTACK_DIRECTION=1"
|
|
4776 ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}1\${ac_dD}
|
|
4777 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}1\${ac_uD}
|
|
4778 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}1\${ac_eD}
|
|
4779 "
|
|
4780 }
|
|
4781
|
|
4782
|
|
4783 else
|
|
4784
|
|
4785 {
|
|
4786 test -n "$verbose" && \
|
|
4787 echo " defining" STACK_DIRECTION to be "-1"
|
|
4788 echo "#define" STACK_DIRECTION "-1" >> confdefs.h
|
|
4789 DEFS="$DEFS -DSTACK_DIRECTION=-1"
|
|
4790 ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}-1\${ac_dD}
|
|
4791 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}-1\${ac_uD}
|
|
4792 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}-1\${ac_eD}
|
|
4793 "
|
|
4794 }
|
|
4795
|
|
4796 fi
|
|
4797 fi
|
|
4798 rm -fr conftest*
|
|
4799 fi
|
|
4800
|
|
4801
|
|
4802 # Check whether vfork exists and works correctly. (This does more
|
|
4803 # than just check for its existence.) If so, it defines HAVE_VFORK_H.
|
|
4804 # If not, it defines vfork to be fork.
|
|
4805 test -n "$silent" || echo "checking for pid_t in sys/types.h"
|
|
4806 echo '#include "confdefs.h"
|
|
4807 #include <sys/types.h>' > conftest.${ac_ext}
|
|
4808 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
|
|
4809 if egrep "pid_t" conftest.out >/dev/null 2>&1; then
|
|
4810 :
|
|
4811 else
|
|
4812 rm -rf conftest*
|
|
4813
|
|
4814 {
|
|
4815 test -n "$verbose" && \
|
|
4816 echo " defining" pid_t to be "int"
|
|
4817 echo "#define" pid_t "int" >> confdefs.h
|
|
4818 DEFS="$DEFS -Dpid_t=int"
|
|
4819 ac_sed_defs="${ac_sed_defs}\${ac_dA}pid_t\${ac_dB}pid_t\${ac_dC}int\${ac_dD}
|
|
4820 \${ac_uA}pid_t\${ac_uB}pid_t\${ac_uC}int\${ac_uD}
|
|
4821 \${ac_eA}pid_t\${ac_eB}pid_t\${ac_eC}int\${ac_eD}
|
|
4822 "
|
|
4823 }
|
|
4824
|
|
4825 fi
|
|
4826 rm -f conftest*
|
|
4827
|
|
4828 test -n "$silent" || echo "checking for vfork.h"
|
|
4829 cat > conftest.${ac_ext} <<EOF
|
|
4830 #include "confdefs.h"
|
|
4831 #include <vfork.h>
|
|
4832 EOF
|
|
4833 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
4834 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
4835 echo "$ac_err"
|
|
4836 fi
|
|
4837 if test -z "$ac_err"; then
|
|
4838 rm -rf conftest*
|
|
4839
|
|
4840 {
|
|
4841 test -n "$verbose" && \
|
|
4842 echo " defining HAVE_VFORK_H"
|
|
4843 echo "#define" HAVE_VFORK_H "1" >> confdefs.h
|
|
4844 DEFS="$DEFS -DHAVE_VFORK_H=1"
|
|
4845 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_VFORK_H\${ac_dB}HAVE_VFORK_H\${ac_dC}1\${ac_dD}
|
|
4846 \${ac_uA}HAVE_VFORK_H\${ac_uB}HAVE_VFORK_H\${ac_uC}1\${ac_uD}
|
|
4847 \${ac_eA}HAVE_VFORK_H\${ac_eB}HAVE_VFORK_H\${ac_eC}1\${ac_eD}
|
|
4848 "
|
|
4849 }
|
|
4850
|
|
4851
|
|
4852 fi
|
|
4853 rm -f conftest*
|
|
4854
|
|
4855 test -n "$silent" || echo "checking for working vfork"
|
|
4856
|
|
4857 cat > conftest.${ac_ext} <<EOF
|
|
4858 #include "confdefs.h"
|
|
4859 /* Thanks to Paul Eggert for this test. */
|
|
4860 #include <stdio.h>
|
|
4861 #include <sys/types.h>
|
|
4862 #include <sys/stat.h>
|
|
4863 #include <signal.h>
|
|
4864 #ifdef HAVE_UNISTD_H
|
|
4865 #include <unistd.h>
|
|
4866 #endif
|
|
4867 #ifdef HAVE_VFORK_H
|
|
4868 #include <vfork.h>
|
|
4869 #endif
|
|
4870 static int signalled;
|
|
4871 static RETSIGTYPE catch (s) int s; { signalled = 1; }
|
|
4872 main() {
|
|
4873 pid_t parent = getpid ();
|
|
4874 pid_t child;
|
|
4875
|
|
4876 signal (SIGINT, catch);
|
|
4877
|
|
4878 child = vfork ();
|
|
4879
|
|
4880 if (child == 0) {
|
|
4881 /* On sparc systems, changes by the child to local and incoming
|
|
4882 argument registers are propagated back to the parent.
|
|
4883 The compiler is told about this with #include <vfork.h>,
|
|
4884 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
|
|
4885 Test for this by using lots of local variables, at least
|
|
4886 as many local variables as main has allocated so far
|
|
4887 including compiler temporaries. 4 locals are enough for
|
|
4888 gcc 1.40.3 on a sparc, but we use 8 to be safe.
|
|
4889 A buggy compiler should reuse the register of parent
|
|
4890 for one of the local variables, since it will think that
|
|
4891 parent can't possibly be used any more in this routine.
|
|
4892 Assigning to the local variable will thus munge parent
|
|
4893 in the parent process. */
|
|
4894 pid_t
|
|
4895 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
|
4896 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
|
4897 /* Convince the compiler that p..p7 are live; otherwise, it might
|
|
4898 use the same hardware register for all 8 local variables. */
|
|
4899 if (p != p1 || p != p2 || p != p3 || p != p4
|
|
4900 || p != p5 || p != p6 || p != p7)
|
|
4901 _exit(1);
|
|
4902
|
|
4903 /* On some systems (e.g. SunOS 5.2), if the parent is catching
|
|
4904 a signal, the child ignores the signal before execing,
|
|
4905 and the parent later receives that signal, the parent dumps core.
|
|
4906 Test for this by ignoring SIGINT in the child. */
|
|
4907 signal (SIGINT, SIG_IGN);
|
|
4908
|
|
4909 /* On some systems (e.g. IRIX 3.3),
|
|
4910 vfork doesn't separate parent from child file descriptors.
|
|
4911 If the child closes a descriptor before it execs or exits,
|
|
4912 this munges the parent's descriptor as well.
|
|
4913 Test for this by closing stdout in the child. */
|
|
4914 _exit(close(fileno(stdout)) != 0);
|
|
4915 } else {
|
|
4916 int status;
|
|
4917 struct stat st;
|
|
4918
|
|
4919 while (wait(&status) != child)
|
|
4920 ;
|
|
4921 exit(
|
|
4922 /* Was there some problem with vforking? */
|
|
4923 child < 0
|
|
4924
|
|
4925 /* Did the child fail? (This shouldn't happen.) */
|
|
4926 || status
|
|
4927
|
|
4928 /* Did the vfork/compiler bug occur? */
|
|
4929 || parent != getpid()
|
|
4930
|
|
4931 /* Did the signal handling bug occur? */
|
|
4932 || kill(parent, SIGINT) != 0
|
|
4933 || signalled != 1
|
|
4934
|
|
4935 /* Did the file descriptor bug occur? */
|
|
4936 || fstat(fileno(stdout), &st) != 0
|
|
4937 );
|
|
4938 }
|
|
4939 }
|
|
4940 EOF
|
|
4941 eval $ac_compile
|
|
4942 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
4943 :
|
|
4944 else
|
|
4945
|
|
4946 {
|
|
4947 test -n "$verbose" && \
|
|
4948 echo " defining" vfork to be "fork"
|
|
4949 echo "#define" vfork "fork" >> confdefs.h
|
|
4950 DEFS="$DEFS -Dvfork=fork"
|
|
4951 ac_sed_defs="${ac_sed_defs}\${ac_dA}vfork\${ac_dB}vfork\${ac_dC}fork\${ac_dD}
|
|
4952 \${ac_uA}vfork\${ac_uB}vfork\${ac_uC}fork\${ac_uD}
|
|
4953 \${ac_eA}vfork\${ac_eB}vfork\${ac_eC}fork\${ac_eD}
|
|
4954 "
|
|
4955 }
|
|
4956
|
|
4957 fi
|
|
4958 rm -fr conftest*
|
|
4959
|
|
4960
|
|
4961 # Check whether mmap exists and works correctly. (This does more
|
|
4962 # than just check for its existence.) If so, it defines HAVE_MMAP.
|
|
4963 # Actually, this seems to rule out some cases where mmap() can
|
|
4964 # work fine for our purposes (e.g. HPUX). We get a big win out
|
|
4965 # of using mmap(), so let's go back to the old way.
|
|
4966
|
|
4967 # Check whether strcoll exists and works correctly. (This does more
|
|
4968 # than just check for its existence.) If so, it defines HAVE_STRCOLL.
|
|
4969 test -n "$silent" || echo "checking for strcoll"
|
|
4970 cat > conftest.${ac_ext} <<EOF
|
|
4971 #include "confdefs.h"
|
|
4972 #include <string.h>
|
|
4973 main ()
|
|
4974 {
|
|
4975 exit (strcoll ("abc", "def") >= 0 ||
|
|
4976 strcoll ("ABC", "DEF") >= 0 ||
|
|
4977 strcoll ("123", "456") >= 0);
|
|
4978 }
|
|
4979 EOF
|
|
4980 eval $ac_compile
|
|
4981 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
4982
|
|
4983 {
|
|
4984 test -n "$verbose" && \
|
|
4985 echo " defining HAVE_STRCOLL"
|
|
4986 echo "#define" HAVE_STRCOLL "1" >> confdefs.h
|
|
4987 DEFS="$DEFS -DHAVE_STRCOLL=1"
|
|
4988 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STRCOLL\${ac_dB}HAVE_STRCOLL\${ac_dC}1\${ac_dD}
|
|
4989 \${ac_uA}HAVE_STRCOLL\${ac_uB}HAVE_STRCOLL\${ac_uC}1\${ac_uD}
|
|
4990 \${ac_eA}HAVE_STRCOLL\${ac_eB}HAVE_STRCOLL\${ac_eC}1\${ac_eD}
|
|
4991 "
|
|
4992 }
|
|
4993
|
|
4994
|
|
4995 fi
|
|
4996 rm -fr conftest*
|
|
4997
|
|
4998 test -n "$silent" || echo "checking size of short"
|
|
4999 cat > conftest.${ac_ext} <<EOF
|
|
5000 #include "confdefs.h"
|
|
5001 #include <stdio.h>
|
|
5002 main()
|
|
5003 {
|
|
5004 FILE *f=fopen("conftestval", "w");
|
|
5005 if (!f) exit(1);
|
|
5006 fprintf(f, "%d\n", sizeof(short));
|
|
5007 exit(0);
|
|
5008 }
|
|
5009 EOF
|
|
5010 eval $ac_compile
|
|
5011 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
5012 ac_size=`cat conftestval`
|
|
5013
|
|
5014 else
|
|
5015 echo "configure: can not determine size of short" >&2; exit 1
|
|
5016 fi
|
|
5017 rm -fr conftest*
|
|
5018
|
|
5019 {
|
|
5020 test -n "$verbose" && \
|
|
5021 echo " defining" SIZEOF_SHORT to be "$ac_size"
|
|
5022 echo "#define" SIZEOF_SHORT "$ac_size" >> confdefs.h
|
|
5023 DEFS="$DEFS -DSIZEOF_SHORT=$ac_size"
|
|
5024 ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_SHORT\${ac_dB}SIZEOF_SHORT\${ac_dC}$ac_size\${ac_dD}
|
|
5025 \${ac_uA}SIZEOF_SHORT\${ac_uB}SIZEOF_SHORT\${ac_uC}$ac_size\${ac_uD}
|
|
5026 \${ac_eA}SIZEOF_SHORT\${ac_eB}SIZEOF_SHORT\${ac_eC}$ac_size\${ac_eD}
|
|
5027 "
|
|
5028 }
|
|
5029
|
|
5030 test -n "$silent" || echo "checking size of int"
|
|
5031 cat > conftest.${ac_ext} <<EOF
|
|
5032 #include "confdefs.h"
|
|
5033 #include <stdio.h>
|
|
5034 main()
|
|
5035 {
|
|
5036 FILE *f=fopen("conftestval", "w");
|
|
5037 if (!f) exit(1);
|
|
5038 fprintf(f, "%d\n", sizeof(int));
|
|
5039 exit(0);
|
|
5040 }
|
|
5041 EOF
|
|
5042 eval $ac_compile
|
|
5043 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
5044 ac_size=`cat conftestval`
|
|
5045
|
|
5046 else
|
|
5047 echo "configure: can not determine size of int" >&2; exit 1
|
|
5048 fi
|
|
5049 rm -fr conftest*
|
|
5050
|
|
5051 {
|
|
5052 test -n "$verbose" && \
|
|
5053 echo " defining" SIZEOF_INT to be "$ac_size"
|
|
5054 echo "#define" SIZEOF_INT "$ac_size" >> confdefs.h
|
|
5055 DEFS="$DEFS -DSIZEOF_INT=$ac_size"
|
|
5056 ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_INT\${ac_dB}SIZEOF_INT\${ac_dC}$ac_size\${ac_dD}
|
|
5057 \${ac_uA}SIZEOF_INT\${ac_uB}SIZEOF_INT\${ac_uC}$ac_size\${ac_uD}
|
|
5058 \${ac_eA}SIZEOF_INT\${ac_eB}SIZEOF_INT\${ac_eC}$ac_size\${ac_eD}
|
|
5059 "
|
|
5060 }
|
|
5061
|
|
5062 test -n "$silent" || echo "checking size of long"
|
|
5063 cat > conftest.${ac_ext} <<EOF
|
|
5064 #include "confdefs.h"
|
|
5065 #include <stdio.h>
|
|
5066 main()
|
|
5067 {
|
|
5068 FILE *f=fopen("conftestval", "w");
|
|
5069 if (!f) exit(1);
|
|
5070 fprintf(f, "%d\n", sizeof(long));
|
|
5071 exit(0);
|
|
5072 }
|
|
5073 EOF
|
|
5074 eval $ac_compile
|
|
5075 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
5076 ac_size=`cat conftestval`
|
|
5077
|
|
5078 else
|
|
5079 echo "configure: can not determine size of long" >&2; exit 1
|
|
5080 fi
|
|
5081 rm -fr conftest*
|
|
5082
|
|
5083 {
|
|
5084 test -n "$verbose" && \
|
|
5085 echo " defining" SIZEOF_LONG to be "$ac_size"
|
|
5086 echo "#define" SIZEOF_LONG "$ac_size" >> confdefs.h
|
|
5087 DEFS="$DEFS -DSIZEOF_LONG=$ac_size"
|
|
5088 ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_LONG\${ac_dB}SIZEOF_LONG\${ac_dC}$ac_size\${ac_dD}
|
|
5089 \${ac_uA}SIZEOF_LONG\${ac_uB}SIZEOF_LONG\${ac_uC}$ac_size\${ac_uD}
|
|
5090 \${ac_eA}SIZEOF_LONG\${ac_eB}SIZEOF_LONG\${ac_eC}$ac_size\${ac_eD}
|
|
5091 "
|
|
5092 }
|
|
5093
|
|
5094
|
|
5095 # FSF 19.29 does this:
|
|
5096 # # fmod, logb, and frexp are found in -lm on most systems.
|
|
5097 # # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
|
|
5098 # A C_CHECK_LIB(m, sqrt)
|
|
5099
|
74
|
5100 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
|
5101 do
|
|
5102 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
|
|
5103 test -n "$silent" || echo "checking for ${ac_func}"
|
|
5104 cat > conftest.${ac_ext} <<EOF
|
|
5105 #include "confdefs.h"
|
|
5106 #include <ctype.h>
|
|
5107 int main() { return 0; }
|
|
5108 int t() {
|
|
5109 /* The GNU C library defines this for functions which it implements
|
|
5110 to always fail with ENOSYS. Some functions are actually named
|
|
5111 something starting with __ and the normal name is an alias. */
|
|
5112 #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
|
|
5113 choke me
|
|
5114 #else
|
|
5115 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5116 extern char ${ac_func}(); ${ac_func}();
|
|
5117 #endif
|
|
5118 ; return 0; }
|
|
5119 EOF
|
|
5120 if eval $ac_compile; then
|
|
5121 rm -rf conftest*
|
|
5122 {
|
|
5123 test -n "$verbose" && \
|
|
5124 echo " defining ${ac_tr_func}"
|
|
5125 echo "#define" ${ac_tr_func} "1" >> confdefs.h
|
|
5126 DEFS="$DEFS -D${ac_tr_func}=1"
|
|
5127 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
|
|
5128 \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
|
|
5129 \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
|
|
5130 "
|
|
5131 }
|
|
5132
|
|
5133
|
|
5134 fi
|
|
5135 rm -f conftest*
|
|
5136 done
|
|
5137
|
|
5138
|
|
5139 # Check for mmap.
|
|
5140 found_mmap=true
|
|
5141 test -n "$silent" || echo "checking for mmap"
|
|
5142 cat > conftest.${ac_ext} <<EOF
|
|
5143 #include "confdefs.h"
|
|
5144 #include <ctype.h>
|
|
5145 int main() { return 0; }
|
|
5146 int t() {
|
|
5147 /* The GNU C library defines this for functions which it implements
|
|
5148 to always fail with ENOSYS. Some functions are actually named
|
|
5149 something starting with __ and the normal name is an alias. */
|
|
5150 #if defined (__stub_mmap) || defined (__stub___mmap)
|
|
5151 choke me
|
|
5152 #else
|
|
5153 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5154 extern char mmap(); mmap();
|
|
5155 #endif
|
|
5156 ; return 0; }
|
|
5157 EOF
|
|
5158 if eval $ac_compile; then
|
|
5159 :
|
|
5160 else
|
|
5161 rm -rf conftest*
|
|
5162 found_mmap=
|
|
5163 fi
|
|
5164 rm -f conftest*
|
|
5165
|
70
|
5166 test -n "$found_mmap" &&
|
0
|
5167 {
|
|
5168 test -n "$verbose" && \
|
|
5169 echo " defining HAVE_MMAP"
|
|
5170 echo "#define" HAVE_MMAP "1" >> confdefs.h
|
|
5171 DEFS="$DEFS -DHAVE_MMAP=1"
|
|
5172 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MMAP\${ac_dB}HAVE_MMAP\${ac_dC}1\${ac_dD}
|
|
5173 \${ac_uA}HAVE_MMAP\${ac_uB}HAVE_MMAP\${ac_uC}1\${ac_uD}
|
|
5174 \${ac_eA}HAVE_MMAP\${ac_eB}HAVE_MMAP\${ac_eC}1\${ac_eD}
|
|
5175 "
|
|
5176 }
|
|
5177
|
70
|
5178
|
|
5179 test "${GNU_MALLOC}" != "yes" -a "${found_mmap}" != "true" && rel_alloc=no
|
|
5180 test "${rel_alloc}" = "default" -a "${found_mmap}" = "true" && rel_alloc=yes
|
0
|
5181
|
|
5182 # Check for Internet sockets.
|
|
5183
|
|
5184 ok_so_far=true
|
|
5185 test -n "$silent" || echo "checking for socket"
|
|
5186 cat > conftest.${ac_ext} <<EOF
|
|
5187 #include "confdefs.h"
|
|
5188 #include <ctype.h>
|
|
5189 int main() { return 0; }
|
|
5190 int t() {
|
|
5191 /* The GNU C library defines this for functions which it implements
|
|
5192 to always fail with ENOSYS. Some functions are actually named
|
|
5193 something starting with __ and the normal name is an alias. */
|
|
5194 #if defined (__stub_socket) || defined (__stub___socket)
|
|
5195 choke me
|
|
5196 #else
|
|
5197 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5198 extern char socket(); socket();
|
|
5199 #endif
|
|
5200 ; return 0; }
|
|
5201 EOF
|
|
5202 if eval $ac_compile; then
|
|
5203 :
|
|
5204 else
|
|
5205 rm -rf conftest*
|
|
5206 ok_so_far=
|
|
5207 fi
|
|
5208 rm -f conftest*
|
|
5209
|
70
|
5210 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for netinet/in.h"
|
0
|
5211 cat > conftest.${ac_ext} <<EOF
|
|
5212 #include "confdefs.h"
|
|
5213 #include <netinet/in.h>
|
|
5214 EOF
|
|
5215 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5216 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5217 echo "$ac_err"
|
|
5218 fi
|
|
5219 if test -z "$ac_err"; then
|
|
5220 :
|
|
5221 else
|
|
5222 rm -rf conftest*
|
|
5223 ok_so_far=
|
|
5224 fi
|
|
5225 rm -f conftest*
|
70
|
5226 }
|
|
5227 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for arpa/inet.h"
|
0
|
5228 cat > conftest.${ac_ext} <<EOF
|
|
5229 #include "confdefs.h"
|
|
5230 #include <arpa/inet.h>
|
|
5231 EOF
|
|
5232 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5233 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5234 echo "$ac_err"
|
|
5235 fi
|
|
5236 if test -z "$ac_err"; then
|
|
5237 :
|
|
5238 else
|
|
5239 rm -rf conftest*
|
|
5240 ok_so_far=
|
|
5241 fi
|
|
5242 rm -f conftest*
|
70
|
5243 }
|
0
|
5244 if test -n "$ok_so_far"; then
|
|
5245
|
|
5246 {
|
|
5247 test -n "$verbose" && \
|
|
5248 echo " defining HAVE_SOCKETS"
|
|
5249 echo "#define" HAVE_SOCKETS "1" >> confdefs.h
|
|
5250 DEFS="$DEFS -DHAVE_SOCKETS=1"
|
|
5251 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKETS\${ac_dB}HAVE_SOCKETS\${ac_dC}1\${ac_dD}
|
|
5252 \${ac_uA}HAVE_SOCKETS\${ac_uB}HAVE_SOCKETS\${ac_uC}1\${ac_uD}
|
|
5253 \${ac_eA}HAVE_SOCKETS\${ac_eB}HAVE_SOCKETS\${ac_eC}1\${ac_eD}
|
|
5254 "
|
|
5255 }
|
|
5256
|
|
5257 # Check for the sun_len member in struct sockaddr_un.
|
|
5258
|
|
5259 test -n "$silent" || echo "checking for sun_len member in struct sockaddr_un"
|
|
5260 cat > conftest.${ac_ext} <<EOF
|
|
5261 #include "confdefs.h"
|
|
5262 #include <sys/types.h>
|
|
5263 #include <sys/socket.h>
|
|
5264 #include <sys/un.h>
|
|
5265 int main() { return 0; }
|
|
5266 int t() { static struct sockaddr_un x; x.sun_len = 1;; return 0; }
|
|
5267 EOF
|
|
5268 if eval $ac_compile; then
|
|
5269 rm -rf conftest*
|
|
5270
|
|
5271 {
|
|
5272 test -n "$verbose" && \
|
|
5273 echo " defining HAVE_SOCKADDR_SUN_LEN"
|
|
5274 echo "#define" HAVE_SOCKADDR_SUN_LEN "1" >> confdefs.h
|
|
5275 DEFS="$DEFS -DHAVE_SOCKADDR_SUN_LEN=1"
|
|
5276 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKADDR_SUN_LEN\${ac_dB}HAVE_SOCKADDR_SUN_LEN\${ac_dC}1\${ac_dD}
|
|
5277 \${ac_uA}HAVE_SOCKADDR_SUN_LEN\${ac_uB}HAVE_SOCKADDR_SUN_LEN\${ac_uC}1\${ac_uD}
|
|
5278 \${ac_eA}HAVE_SOCKADDR_SUN_LEN\${ac_eB}HAVE_SOCKADDR_SUN_LEN\${ac_eC}1\${ac_eD}
|
|
5279 "
|
|
5280 }
|
|
5281
|
|
5282
|
|
5283 fi
|
|
5284 rm -f conftest*
|
|
5285
|
|
5286 fi
|
|
5287
|
|
5288 # Check for SYS V IPC. (Inferior to sockets.)
|
|
5289
|
|
5290 if test -z "$ok_so_far"; then
|
|
5291 ok_so_far=true
|
|
5292 test -n "$silent" || echo "checking for msgget"
|
|
5293 cat > conftest.${ac_ext} <<EOF
|
|
5294 #include "confdefs.h"
|
|
5295 #include <ctype.h>
|
|
5296 int main() { return 0; }
|
|
5297 int t() {
|
|
5298 /* The GNU C library defines this for functions which it implements
|
|
5299 to always fail with ENOSYS. Some functions are actually named
|
|
5300 something starting with __ and the normal name is an alias. */
|
|
5301 #if defined (__stub_msgget) || defined (__stub___msgget)
|
|
5302 choke me
|
|
5303 #else
|
|
5304 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5305 extern char msgget(); msgget();
|
|
5306 #endif
|
|
5307 ; return 0; }
|
|
5308 EOF
|
|
5309 if eval $ac_compile; then
|
|
5310 :
|
|
5311 else
|
|
5312 rm -rf conftest*
|
|
5313 ok_so_far=
|
|
5314 fi
|
|
5315 rm -f conftest*
|
|
5316
|
70
|
5317 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for sys/ipc.h"
|
0
|
5318 cat > conftest.${ac_ext} <<EOF
|
|
5319 #include "confdefs.h"
|
|
5320 #include <sys/ipc.h>
|
|
5321 EOF
|
|
5322 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5323 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5324 echo "$ac_err"
|
|
5325 fi
|
|
5326 if test -z "$ac_err"; then
|
|
5327 :
|
|
5328 else
|
|
5329 rm -rf conftest*
|
|
5330 ok_so_far=
|
|
5331 fi
|
|
5332 rm -f conftest*
|
70
|
5333 }
|
|
5334 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for sys/msg.h"
|
0
|
5335 cat > conftest.${ac_ext} <<EOF
|
|
5336 #include "confdefs.h"
|
|
5337 #include <sys/msg.h>
|
|
5338 EOF
|
|
5339 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5340 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5341 echo "$ac_err"
|
|
5342 fi
|
|
5343 if test -z "$ac_err"; then
|
|
5344 :
|
|
5345 else
|
|
5346 rm -rf conftest*
|
|
5347 ok_so_far=
|
|
5348 fi
|
|
5349 rm -f conftest*
|
70
|
5350 }
|
|
5351 test -n "$ok_so_far" &&
|
0
|
5352 {
|
|
5353 test -n "$verbose" && \
|
|
5354 echo " defining HAVE_SYSVIPC"
|
|
5355 echo "#define" HAVE_SYSVIPC "1" >> confdefs.h
|
|
5356 DEFS="$DEFS -DHAVE_SYSVIPC=1"
|
|
5357 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SYSVIPC\${ac_dB}HAVE_SYSVIPC\${ac_dC}1\${ac_dD}
|
|
5358 \${ac_uA}HAVE_SYSVIPC\${ac_uB}HAVE_SYSVIPC\${ac_uC}1\${ac_uD}
|
|
5359 \${ac_eA}HAVE_SYSVIPC\${ac_eB}HAVE_SYSVIPC\${ac_eC}1\${ac_eD}
|
|
5360 "
|
|
5361 }
|
|
5362
|
|
5363 fi
|
|
5364
|
|
5365 # Check for directory variants
|
|
5366
|
|
5367 sysv_system_dir=
|
|
5368 nonsystem_dir_library=
|
|
5369 test -n "$silent" || echo "checking for dirent.h"
|
|
5370 cat > conftest.${ac_ext} <<EOF
|
|
5371 #include "confdefs.h"
|
|
5372 #include <dirent.h>
|
|
5373 EOF
|
|
5374 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5375 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5376 echo "$ac_err"
|
|
5377 fi
|
|
5378 if test -z "$ac_err"; then
|
|
5379 rm -rf conftest*
|
|
5380 sysv_system_dir=yes
|
|
5381
|
|
5382 fi
|
|
5383 rm -f conftest*
|
|
5384
|
70
|
5385 test -z "$sysv_system_dir" &&
|
|
5386 { test -n "$silent" || echo "checking for sys/dir.h"
|
0
|
5387 cat > conftest.${ac_ext} <<EOF
|
|
5388 #include "confdefs.h"
|
|
5389 #include <sys/dir.h>
|
|
5390 EOF
|
|
5391 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5392 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5393 echo "$ac_err"
|
|
5394 fi
|
|
5395 if test -z "$ac_err"; then
|
|
5396 :
|
|
5397 else
|
|
5398 rm -rf conftest*
|
|
5399 nonsystem_dir_library=yes
|
|
5400 fi
|
|
5401 rm -f conftest*
|
70
|
5402 }
|
|
5403 if test -n "$sysv_system_dir" ; then
|
0
|
5404 {
|
|
5405 test -n "$verbose" && \
|
|
5406 echo " defining SYSV_SYSTEM_DIR"
|
|
5407 echo "#define" SYSV_SYSTEM_DIR "1" >> confdefs.h
|
|
5408 DEFS="$DEFS -DSYSV_SYSTEM_DIR=1"
|
|
5409 ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSV_SYSTEM_DIR\${ac_dB}SYSV_SYSTEM_DIR\${ac_dC}1\${ac_dD}
|
|
5410 \${ac_uA}SYSV_SYSTEM_DIR\${ac_uB}SYSV_SYSTEM_DIR\${ac_uC}1\${ac_uD}
|
|
5411 \${ac_eA}SYSV_SYSTEM_DIR\${ac_eB}SYSV_SYSTEM_DIR\${ac_eC}1\${ac_eD}
|
|
5412 "
|
|
5413 }
|
|
5414
|
70
|
5415 elif test -n "$nonsystem_dir_library" ; then
|
0
|
5416 {
|
|
5417 test -n "$verbose" && \
|
|
5418 echo " defining NONSYSTEM_DIR_LIBRARY"
|
|
5419 echo "#define" NONSYSTEM_DIR_LIBRARY "1" >> confdefs.h
|
|
5420 DEFS="$DEFS -DNONSYSTEM_DIR_LIBRARY=1"
|
|
5421 ac_sed_defs="${ac_sed_defs}\${ac_dA}NONSYSTEM_DIR_LIBRARY\${ac_dB}NONSYSTEM_DIR_LIBRARY\${ac_dC}1\${ac_dD}
|
|
5422 \${ac_uA}NONSYSTEM_DIR_LIBRARY\${ac_uB}NONSYSTEM_DIR_LIBRARY\${ac_uC}1\${ac_uD}
|
|
5423 \${ac_eA}NONSYSTEM_DIR_LIBRARY\${ac_eB}NONSYSTEM_DIR_LIBRARY\${ac_eC}1\${ac_eD}
|
|
5424 "
|
|
5425 }
|
|
5426
|
|
5427 fi
|
|
5428
|
|
5429
|
|
5430 echo "checking how to do terminal I/O"
|
|
5431
|
|
5432 have_termios=
|
|
5433 have_termio=
|
|
5434 test -n "$silent" || echo "checking for termios.h"
|
|
5435 cat > conftest.${ac_ext} <<EOF
|
|
5436 #include "confdefs.h"
|
|
5437 #include <termios.h>
|
|
5438 EOF
|
|
5439 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5440 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5441 echo "$ac_err"
|
|
5442 fi
|
|
5443 if test -z "$ac_err"; then
|
|
5444 rm -rf conftest*
|
|
5445 have_termios=yes
|
|
5446
|
|
5447 fi
|
|
5448 rm -f conftest*
|
|
5449
|
70
|
5450 test -z "$have_termios" && { test -n "$silent" || echo "checking for termio.h"
|
0
|
5451 cat > conftest.${ac_ext} <<EOF
|
|
5452 #include "confdefs.h"
|
|
5453 #include <termio.h>
|
|
5454 EOF
|
|
5455 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5456 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5457 echo "$ac_err"
|
|
5458 fi
|
|
5459 if test -z "$ac_err"; then
|
|
5460 rm -rf conftest*
|
|
5461 have_termio=yes
|
|
5462
|
|
5463 fi
|
|
5464 rm -f conftest*
|
70
|
5465 }
|
|
5466 if test -n "$have_termios" ; then
|
0
|
5467 {
|
|
5468 test -n "$verbose" && \
|
|
5469 echo " defining HAVE_TERMIOS"
|
|
5470 echo "#define" HAVE_TERMIOS "1" >> confdefs.h
|
|
5471 DEFS="$DEFS -DHAVE_TERMIOS=1"
|
|
5472 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIOS\${ac_dB}HAVE_TERMIOS\${ac_dC}1\${ac_dD}
|
|
5473 \${ac_uA}HAVE_TERMIOS\${ac_uB}HAVE_TERMIOS\${ac_uC}1\${ac_uD}
|
|
5474 \${ac_eA}HAVE_TERMIOS\${ac_eB}HAVE_TERMIOS\${ac_eC}1\${ac_eD}
|
|
5475 "
|
|
5476 }
|
|
5477
|
70
|
5478 elif test -n "$have_termio" ; then
|
0
|
5479 {
|
|
5480 test -n "$verbose" && \
|
|
5481 echo " defining HAVE_TERMIO"
|
|
5482 echo "#define" HAVE_TERMIO "1" >> confdefs.h
|
|
5483 DEFS="$DEFS -DHAVE_TERMIO=1"
|
|
5484 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIO\${ac_dB}HAVE_TERMIO\${ac_dC}1\${ac_dD}
|
|
5485 \${ac_uA}HAVE_TERMIO\${ac_uB}HAVE_TERMIO\${ac_uC}1\${ac_uD}
|
|
5486 \${ac_eA}HAVE_TERMIO\${ac_eB}HAVE_TERMIO\${ac_eC}1\${ac_eD}
|
|
5487 "
|
|
5488 }
|
|
5489
|
|
5490 fi
|
|
5491
|
|
5492 # Check for nlist.h
|
|
5493 test -n "$silent" || echo "checking for nlist.h"
|
|
5494 cat > conftest.${ac_ext} <<EOF
|
|
5495 #include "confdefs.h"
|
|
5496 #include <nlist.h>
|
|
5497 EOF
|
|
5498 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5499 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5500 echo "$ac_err"
|
|
5501 fi
|
|
5502 if test -z "$ac_err"; then
|
|
5503 rm -rf conftest*
|
|
5504
|
|
5505 {
|
|
5506 test -n "$verbose" && \
|
|
5507 echo " defining NLIST_STRUCT"
|
|
5508 echo "#define" NLIST_STRUCT "1" >> confdefs.h
|
|
5509 DEFS="$DEFS -DNLIST_STRUCT=1"
|
|
5510 ac_sed_defs="${ac_sed_defs}\${ac_dA}NLIST_STRUCT\${ac_dB}NLIST_STRUCT\${ac_dC}1\${ac_dD}
|
|
5511 \${ac_uA}NLIST_STRUCT\${ac_uB}NLIST_STRUCT\${ac_uC}1\${ac_uD}
|
|
5512 \${ac_eA}NLIST_STRUCT\${ac_eB}NLIST_STRUCT\${ac_eC}1\${ac_eD}
|
|
5513 "
|
|
5514 }
|
|
5515
|
|
5516
|
|
5517 fi
|
|
5518 rm -f conftest*
|
|
5519
|
|
5520
|
70
|
5521 # AIX export list
|
|
5522 for export in /usr/lpp/X11/bin/smt.exp /usr/bin/X11/smt.exp ; do
|
|
5523 if test -f "$export" ; then
|
|
5524
|
|
5525 {
|
|
5526 test -n "$verbose" && \
|
|
5527 echo " defining" AIX_SMT_EXP to be "-bI:$export"
|
|
5528 echo "#define" AIX_SMT_EXP "-bI:$export" >> confdefs.h
|
|
5529 DEFS="$DEFS -DAIX_SMT_EXP=-bI:$export"
|
|
5530 ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX_SMT_EXP\${ac_dB}AIX_SMT_EXP\${ac_dC}-bI:\\\\\\\$export\${ac_dD}
|
|
5531 \${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}-bI:\\\\\\\$export\${ac_uD}
|
|
5532 \${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}-bI:\\\\\\\$export\${ac_eD}
|
|
5533 "
|
|
5534 }
|
|
5535
|
|
5536 break
|
|
5537 fi
|
|
5538 done
|
|
5539
|
0
|
5540 CFLAGS="$REAL_CFLAGS"
|
|
5541
|
70
|
5542 file="${srcdir}/lisp/version.el"
|
|
5543 version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"`
|
|
5544 if test -z "${version}"; then
|
|
5545 echo "${progname}: can't find current emacs version in \"$file\"." >&2
|
0
|
5546 exit 1
|
|
5547 fi
|
70
|
5548 beta=`sed -ne 's/^.*XEmacs Lucid (beta\([0-9][0-9]*\)).*$/\1/p' "$file"`
|
|
5549 test -n "$beta" && version="${version}-b${beta}"
|
|
5550
|
|
5551
|
0
|
5552
|
|
5553 # the following needs to be fixed for SGI.
|
70
|
5554 if test -z "${native_sound_lib}" ; then
|
|
5555 if test -r /usr/demo/SOUND/lib/libaudio.a; then
|
0
|
5556 native_sound_lib=/usr/demo/SOUND/lib/libaudio.a
|
70
|
5557 elif test -r /usr/demo/SOUND/libaudio.a ; then
|
0
|
5558 native_sound_lib=/usr/demo/SOUND/libaudio.a
|
|
5559 else
|
|
5560 case "${canonical}" in
|
70
|
5561 *-sgi-* ) ac_save_LIBS="${LIBS}"
|
0
|
5562 LIBS="${LIBS} -laudio"
|
|
5563 ac_have_lib=""
|
|
5564 test -n "$silent" || echo "checking for -laudio"
|
|
5565 cat > conftest.${ac_ext} <<EOF
|
|
5566 #include "confdefs.h"
|
|
5567
|
|
5568 int main() { return 0; }
|
|
5569 int t() { main();; return 0; }
|
|
5570 EOF
|
|
5571 if eval $ac_compile; then
|
|
5572 rm -rf conftest*
|
|
5573 ac_have_lib="1"
|
|
5574
|
|
5575 fi
|
|
5576 rm -f conftest*
|
|
5577 LIBS="${ac_save_LIBS}"
|
|
5578 if test -n "${ac_have_lib}"; then
|
70
|
5579 :; native_sound_lib="-laudio"
|
0
|
5580 else
|
|
5581 :;
|
|
5582 fi
|
70
|
5583 ;;
|
|
5584 hppa*-hp-hpux* ) ac_save_LIBS="${LIBS}"
|
0
|
5585 LIBS="${LIBS} -lAlib"
|
|
5586 ac_have_lib=""
|
|
5587 test -n "$silent" || echo "checking for -lAlib"
|
|
5588 cat > conftest.${ac_ext} <<EOF
|
|
5589 #include "confdefs.h"
|
|
5590
|
|
5591 int main() { return 0; }
|
|
5592 int t() { main();; return 0; }
|
|
5593 EOF
|
|
5594 if eval $ac_compile; then
|
|
5595 rm -rf conftest*
|
|
5596 ac_have_lib="1"
|
|
5597
|
|
5598 fi
|
|
5599 rm -f conftest*
|
|
5600 LIBS="${ac_save_LIBS}"
|
|
5601 if test -n "${ac_have_lib}"; then
|
70
|
5602 :; native_sound_lib="-lAlib"
|
0
|
5603 else
|
|
5604 :;
|
|
5605 fi
|
70
|
5606 ;;
|
0
|
5607 esac
|
|
5608 fi
|
|
5609 fi
|
70
|
5610 test -z "${with_sound}" -a -n "${native_sound_lib}" && with_sound="native";
|
0
|
5611
|
|
5612 #### If the nas library doesn't contain the error jump point, then
|
|
5613 #### we force safer behaviour.
|
|
5614
|
70
|
5615 if test "${with_sound}" = "nas" -o \
|
|
5616 "${with_sound}" = "both"; then
|
|
5617 echo '#include "confdefs.h"
|
0
|
5618 #include <audio/Xtutil.h>' > conftest.${ac_ext}
|
|
5619 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
|
|
5620 if egrep "AuXtErrorJump" conftest.out >/dev/null 2>&1; then
|
|
5621 :
|
|
5622 else
|
|
5623 rm -rf conftest*
|
|
5624 old_nas=true
|
|
5625 fi
|
|
5626 rm -f conftest*
|
70
|
5627
|
|
5628 fi
|
|
5629
|
|
5630 if test "${with_tooltalk}" = "yes" ; then
|
0
|
5631 for arg in ${DEFS} "-I/usr/include" "-I${OPENWINHOME-/usr/openwin}/include"
|
|
5632 do
|
70
|
5633 if test -f `echo "${arg}/desktop/tt_c.h" | sed 's/^\-I//'` ; then
|
0
|
5634 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}/desktop"
|
|
5635 fi
|
|
5636 done
|
|
5637
|
|
5638 for arg in ${LIBS} "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib"
|
|
5639 do
|
|
5640 case "${arg}" in
|
70
|
5641 -L*) if test -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ; then
|
0
|
5642 dash_r=''
|
70
|
5643 if test -n "${add_runtime_flag}" ; then
|
0
|
5644 dash_r=`echo ${arg} | sed "s/^-L/-R${dash_r_space}/"`
|
|
5645 fi
|
|
5646 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
|
|
5647 fi
|
|
5648 ;;
|
|
5649 esac
|
|
5650 done
|
|
5651 fi
|
|
5652
|
70
|
5653
|
|
5654 if test "${with_tty}" != "no" ; then
|
|
5655 ac_save_LIBS="${LIBS}"
|
0
|
5656 LIBS="${LIBS} -lncurses"
|
|
5657 ac_have_lib=""
|
|
5658 test -n "$silent" || echo "checking for -lncurses"
|
|
5659 cat > conftest.${ac_ext} <<EOF
|
|
5660 #include "confdefs.h"
|
|
5661
|
|
5662 int main() { return 0; }
|
|
5663 int t() { main();; return 0; }
|
|
5664 EOF
|
|
5665 if eval $ac_compile; then
|
|
5666 rm -rf conftest*
|
|
5667 ac_have_lib="1"
|
|
5668
|
|
5669 fi
|
|
5670 rm -f conftest*
|
|
5671 LIBS="${ac_save_LIBS}"
|
|
5672 if test -n "${ac_have_lib}"; then
|
|
5673 :; have_ncurses=yes
|
|
5674 else
|
|
5675 :; have_ncurses=no
|
|
5676 fi
|
70
|
5677
|
|
5678 if test "${have_ncurses}" = "yes" ; then
|
|
5679
|
0
|
5680 {
|
|
5681 test -n "$verbose" && \
|
|
5682 echo " defining HAVE_NCURSES"
|
|
5683 echo "#define" HAVE_NCURSES "1" >> confdefs.h
|
|
5684 DEFS="$DEFS -DHAVE_NCURSES=1"
|
|
5685 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NCURSES\${ac_dB}HAVE_NCURSES\${ac_dC}1\${ac_dD}
|
|
5686 \${ac_uA}HAVE_NCURSES\${ac_uB}HAVE_NCURSES\${ac_uC}1\${ac_uD}
|
|
5687 \${ac_eA}HAVE_NCURSES\${ac_eB}HAVE_NCURSES\${ac_eC}1\${ac_eD}
|
|
5688 "
|
|
5689 }
|
70
|
5690
|
|
5691 test -n "$silent" || echo "checking for ncurses/term.h"
|
0
|
5692 cat > conftest.${ac_ext} <<EOF
|
|
5693 #include "confdefs.h"
|
|
5694 #include <ncurses/term.h>
|
|
5695 EOF
|
|
5696 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5697 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5698 echo "$ac_err"
|
|
5699 fi
|
|
5700 if test -z "$ac_err"; then
|
|
5701 rm -rf conftest*
|
|
5702 have_ncurses_term_h=yes
|
|
5703
|
|
5704 else
|
|
5705 rm -rf conftest*
|
|
5706 have_ncurses_term_h=no
|
|
5707 fi
|
|
5708 rm -f conftest*
|
70
|
5709
|
|
5710 test "${have_ncurses_term_h}" = yes &&
|
0
|
5711 {
|
|
5712 test -n "$verbose" && \
|
|
5713 echo " defining HAVE_NCURSES_TERM_H"
|
|
5714 echo "#define" HAVE_NCURSES_TERM_H "1" >> confdefs.h
|
|
5715 DEFS="$DEFS -DHAVE_NCURSES_TERM_H=1"
|
|
5716 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NCURSES_TERM_H\${ac_dB}HAVE_NCURSES_TERM_H\${ac_dC}1\${ac_dD}
|
|
5717 \${ac_uA}HAVE_NCURSES_TERM_H\${ac_uB}HAVE_NCURSES_TERM_H\${ac_uC}1\${ac_uD}
|
|
5718 \${ac_eA}HAVE_NCURSES_TERM_H\${ac_eB}HAVE_NCURSES_TERM_H\${ac_eC}1\${ac_eD}
|
|
5719 "
|
|
5720 }
|
70
|
5721
|
|
5722 test -n "$silent" || echo "checking for ncurses/curses.h"
|
0
|
5723 cat > conftest.${ac_ext} <<EOF
|
|
5724 #include "confdefs.h"
|
|
5725 #include <ncurses/curses.h>
|
|
5726 EOF
|
|
5727 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5728 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5729 echo "$ac_err"
|
|
5730 fi
|
|
5731 if test -z "$ac_err"; then
|
|
5732 rm -rf conftest*
|
|
5733 have_ncurses_curses_h=yes
|
|
5734
|
|
5735 else
|
|
5736 rm -rf conftest*
|
|
5737 have_ncurses_curses_h=no
|
|
5738 fi
|
|
5739 rm -f conftest*
|
70
|
5740
|
|
5741 if test "${have_ncurses_curses_h}" = "no" ; then
|
|
5742 OLD_CPP="${CPP}"
|
0
|
5743 CPP="${CPP} -I/usr/include/ncurses"
|
70
|
5744 test -n "$silent" || echo "checking for ncurses/curses.h"
|
0
|
5745 cat > conftest.${ac_ext} <<EOF
|
|
5746 #include "confdefs.h"
|
|
5747 #include <ncurses/curses.h>
|
|
5748 EOF
|
|
5749 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5750 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5751 echo "$ac_err"
|
|
5752 fi
|
|
5753 if test -z "$ac_err"; then
|
|
5754 rm -rf conftest*
|
|
5755 have_ncurses_curses_h=yes
|
|
5756
|
|
5757 else
|
|
5758 rm -rf conftest*
|
|
5759 have_ncurses_curses_h=no
|
|
5760 fi
|
|
5761 rm -f conftest*
|
70
|
5762
|
|
5763 if test "${have_ncurses_curses_h}" = "yes" ; then
|
0
|
5764 site_includes="${site_includes} /usr/include/ncurses"
|
|
5765 C_SWITCH_SITE="${C_SWITCH_SITE} -I/usr/include/ncurses"
|
70
|
5766 test -n "$verbose" && echo " Your system has the bogus ncurses include bug."
|
0
|
5767 else
|
|
5768 CPP="${OLD_CPP}"
|
|
5769 fi
|
|
5770 fi
|
70
|
5771 test "${have_ncurses_curses_h}" = yes &&
|
0
|
5772 {
|
|
5773 test -n "$verbose" && \
|
|
5774 echo " defining HAVE_NCURSES_CURSES_H"
|
|
5775 echo "#define" HAVE_NCURSES_CURSES_H "1" >> confdefs.h
|
|
5776 DEFS="$DEFS -DHAVE_NCURSES_CURSES_H=1"
|
|
5777 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NCURSES_CURSES_H\${ac_dB}HAVE_NCURSES_CURSES_H\${ac_dC}1\${ac_dD}
|
|
5778 \${ac_uA}HAVE_NCURSES_CURSES_H\${ac_uB}HAVE_NCURSES_CURSES_H\${ac_uC}1\${ac_uD}
|
|
5779 \${ac_eA}HAVE_NCURSES_CURSES_H\${ac_eB}HAVE_NCURSES_CURSES_H\${ac_eC}1\${ac_eD}
|
|
5780 "
|
|
5781 }
|
70
|
5782
|
0
|
5783 fi
|
|
5784 fi
|
|
5785
|
70
|
5786
|
|
5787
|
|
5788 if test "${with_database_berkdb}" != "no" ; then
|
|
5789 ac_save_LIBS="${LIBS}"
|
0
|
5790 LIBS="${LIBS} -ldb"
|
|
5791 ac_have_lib=""
|
|
5792 test -n "$silent" || echo "checking for -ldb"
|
|
5793 cat > conftest.${ac_ext} <<EOF
|
|
5794 #include "confdefs.h"
|
|
5795
|
|
5796 int main() { return 0; }
|
|
5797 int t() { main();; return 0; }
|
|
5798 EOF
|
|
5799 if eval $ac_compile; then
|
|
5800 rm -rf conftest*
|
|
5801 ac_have_lib="1"
|
|
5802
|
|
5803 fi
|
|
5804 rm -f conftest*
|
|
5805 LIBS="${ac_save_LIBS}"
|
|
5806 if test -n "${ac_have_lib}"; then
|
|
5807 :; have_libdb=yes
|
|
5808 else
|
|
5809 :; have_libdb=no
|
|
5810 fi
|
70
|
5811
|
|
5812 test "${have_libdb}" = yes &&
|
0
|
5813 {
|
|
5814 test -n "$verbose" && \
|
|
5815 echo " defining HAVE_LIBDB"
|
|
5816 echo "#define" HAVE_LIBDB "1" >> confdefs.h
|
|
5817 DEFS="$DEFS -DHAVE_LIBDB=1"
|
|
5818 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDB\${ac_dB}HAVE_LIBDB\${ac_dC}1\${ac_dD}
|
|
5819 \${ac_uA}HAVE_LIBDB\${ac_uB}HAVE_LIBDB\${ac_uC}1\${ac_uD}
|
|
5820 \${ac_eA}HAVE_LIBDB\${ac_eB}HAVE_LIBDB\${ac_eC}1\${ac_eD}
|
|
5821 "
|
|
5822 }
|
70
|
5823
|
|
5824 if test "${with_database_berkdb}" != "yes" ; then
|
|
5825 if test "${have_libdb}" = "yes" ; then
|
0
|
5826 with_database_berkdb=yes
|
|
5827 else
|
70
|
5828 test -n "$silent" || echo "checking for dbopen"
|
0
|
5829 cat > conftest.${ac_ext} <<EOF
|
|
5830 #include "confdefs.h"
|
|
5831 #include <ctype.h>
|
|
5832 int main() { return 0; }
|
|
5833 int t() {
|
|
5834 /* The GNU C library defines this for functions which it implements
|
|
5835 to always fail with ENOSYS. Some functions are actually named
|
|
5836 something starting with __ and the normal name is an alias. */
|
|
5837 #if defined (__stub_dbopen) || defined (__stub___dbopen)
|
|
5838 choke me
|
|
5839 #else
|
|
5840 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5841 extern char dbopen(); dbopen();
|
|
5842 #endif
|
|
5843 ; return 0; }
|
|
5844 EOF
|
|
5845 if eval $ac_compile; then
|
|
5846 rm -rf conftest*
|
70
|
5847 with_database_berkdb=yes
|
0
|
5848
|
|
5849 else
|
|
5850 rm -rf conftest*
|
70
|
5851 with_database_berkdb=no
|
0
|
5852 fi
|
|
5853 rm -f conftest*
|
70
|
5854
|
0
|
5855 fi
|
|
5856 fi
|
|
5857 fi
|
70
|
5858 test "${with_database_berkdb}" = yes &&
|
0
|
5859 {
|
|
5860 test -n "$verbose" && \
|
|
5861 echo " defining HAVE_BERKELEY_DB"
|
|
5862 echo "#define" HAVE_BERKELEY_DB "1" >> confdefs.h
|
|
5863 DEFS="$DEFS -DHAVE_BERKELEY_DB=1"
|
|
5864 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_BERKELEY_DB\${ac_dB}HAVE_BERKELEY_DB\${ac_dC}1\${ac_dD}
|
|
5865 \${ac_uA}HAVE_BERKELEY_DB\${ac_uB}HAVE_BERKELEY_DB\${ac_uC}1\${ac_uD}
|
|
5866 \${ac_eA}HAVE_BERKELEY_DB\${ac_eB}HAVE_BERKELEY_DB\${ac_eC}1\${ac_eD}
|
|
5867 "
|
|
5868 }
|
70
|
5869
|
|
5870
|
|
5871 if test "${with_database_gnudbm}" != "no" ; then
|
|
5872 ac_save_LIBS="${LIBS}"
|
0
|
5873 LIBS="${LIBS} -lgdbm"
|
|
5874 ac_have_lib=""
|
|
5875 test -n "$silent" || echo "checking for -lgdbm"
|
|
5876 cat > conftest.${ac_ext} <<EOF
|
|
5877 #include "confdefs.h"
|
|
5878
|
|
5879 int main() { return 0; }
|
|
5880 int t() { main();; return 0; }
|
|
5881 EOF
|
|
5882 if eval $ac_compile; then
|
|
5883 rm -rf conftest*
|
|
5884 ac_have_lib="1"
|
|
5885
|
|
5886 fi
|
|
5887 rm -f conftest*
|
|
5888 LIBS="${ac_save_LIBS}"
|
|
5889 if test -n "${ac_have_lib}"; then
|
|
5890 :; have_libgdbm=yes
|
|
5891 else
|
|
5892 :; have_libgdbm=no
|
|
5893 fi
|
70
|
5894
|
|
5895 test "${have_libgdbm}" = yes &&
|
0
|
5896 {
|
|
5897 test -n "$verbose" && \
|
|
5898 echo " defining HAVE_LIBGDBM"
|
|
5899 echo "#define" HAVE_LIBGDBM "1" >> confdefs.h
|
|
5900 DEFS="$DEFS -DHAVE_LIBGDBM=1"
|
|
5901 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBGDBM\${ac_dB}HAVE_LIBGDBM\${ac_dC}1\${ac_dD}
|
|
5902 \${ac_uA}HAVE_LIBGDBM\${ac_uB}HAVE_LIBGDBM\${ac_uC}1\${ac_uD}
|
|
5903 \${ac_eA}HAVE_LIBGDBM\${ac_eB}HAVE_LIBGDBM\${ac_eC}1\${ac_eD}
|
|
5904 "
|
|
5905 }
|
70
|
5906
|
|
5907 test -z "${with_database_gnudbm}" && with_database_gnudbm="${have_libgdbm}"
|
|
5908 fi
|
|
5909 if test "${with_database_gnudbm}" = "yes" ; then
|
|
5910
|
0
|
5911 {
|
|
5912 test -n "$verbose" && \
|
|
5913 echo " defining HAVE_DBM"
|
|
5914 echo "#define" HAVE_DBM "1" >> confdefs.h
|
|
5915 DEFS="$DEFS -DHAVE_DBM=1"
|
|
5916 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DBM\${ac_dB}HAVE_DBM\${ac_dC}1\${ac_dD}
|
|
5917 \${ac_uA}HAVE_DBM\${ac_uB}HAVE_DBM\${ac_uC}1\${ac_uD}
|
|
5918 \${ac_eA}HAVE_DBM\${ac_eB}HAVE_DBM\${ac_eC}1\${ac_eD}
|
|
5919 "
|
|
5920 }
|
70
|
5921
|
|
5922
|
0
|
5923 {
|
|
5924 test -n "$verbose" && \
|
|
5925 echo " defining HAVE_GNU_DBM"
|
|
5926 echo "#define" HAVE_GNU_DBM "1" >> confdefs.h
|
|
5927 DEFS="$DEFS -DHAVE_GNU_DBM=1"
|
|
5928 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_GNU_DBM\${ac_dB}HAVE_GNU_DBM\${ac_dC}1\${ac_dD}
|
|
5929 \${ac_uA}HAVE_GNU_DBM\${ac_uB}HAVE_GNU_DBM\${ac_uC}1\${ac_uD}
|
|
5930 \${ac_eA}HAVE_GNU_DBM\${ac_eB}HAVE_GNU_DBM\${ac_eC}1\${ac_eD}
|
|
5931 "
|
|
5932 }
|
70
|
5933
|
0
|
5934 with_database_dbm=no
|
|
5935 fi
|
|
5936
|
70
|
5937 if test "${with_database_dbm}" != "no" ; then
|
|
5938 ac_save_LIBS="${LIBS}"
|
0
|
5939 LIBS="${LIBS} -ldbm"
|
|
5940 ac_have_lib=""
|
|
5941 test -n "$silent" || echo "checking for -ldbm"
|
|
5942 cat > conftest.${ac_ext} <<EOF
|
|
5943 #include "confdefs.h"
|
|
5944
|
|
5945 int main() { return 0; }
|
|
5946 int t() { main();; return 0; }
|
|
5947 EOF
|
|
5948 if eval $ac_compile; then
|
|
5949 rm -rf conftest*
|
|
5950 ac_have_lib="1"
|
|
5951
|
|
5952 fi
|
|
5953 rm -f conftest*
|
|
5954 LIBS="${ac_save_LIBS}"
|
|
5955 if test -n "${ac_have_lib}"; then
|
|
5956 :; have_libdbm=yes
|
|
5957 else
|
|
5958 :; have_libdbm=no
|
|
5959 fi
|
70
|
5960
|
|
5961 test "${have_libdbm}" = yes &&
|
0
|
5962 {
|
|
5963 test -n "$verbose" && \
|
|
5964 echo " defining HAVE_LIBDBM"
|
|
5965 echo "#define" HAVE_LIBDBM "1" >> confdefs.h
|
|
5966 DEFS="$DEFS -DHAVE_LIBDBM=1"
|
|
5967 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDBM\${ac_dB}HAVE_LIBDBM\${ac_dC}1\${ac_dD}
|
|
5968 \${ac_uA}HAVE_LIBDBM\${ac_uB}HAVE_LIBDBM\${ac_uC}1\${ac_uD}
|
|
5969 \${ac_eA}HAVE_LIBDBM\${ac_eB}HAVE_LIBDBM\${ac_eC}1\${ac_eD}
|
|
5970 "
|
|
5971 }
|
70
|
5972
|
|
5973 if test "${with_database_dbm}" != "yes" ; then
|
|
5974 if test "${have_libdbm}" = "yes" ; then
|
0
|
5975 with_database_dbm=yes
|
|
5976 else
|
70
|
5977 test -n "$silent" || echo "checking for dbm_open"
|
0
|
5978 cat > conftest.${ac_ext} <<EOF
|
|
5979 #include "confdefs.h"
|
|
5980 #include <ctype.h>
|
|
5981 int main() { return 0; }
|
|
5982 int t() {
|
|
5983 /* The GNU C library defines this for functions which it implements
|
|
5984 to always fail with ENOSYS. Some functions are actually named
|
|
5985 something starting with __ and the normal name is an alias. */
|
|
5986 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
5987 choke me
|
|
5988 #else
|
|
5989 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5990 extern char dbm_open(); dbm_open();
|
|
5991 #endif
|
|
5992 ; return 0; }
|
|
5993 EOF
|
|
5994 if eval $ac_compile; then
|
|
5995 rm -rf conftest*
|
70
|
5996 with_database_dbm=yes
|
0
|
5997
|
|
5998 else
|
|
5999 rm -rf conftest*
|
70
|
6000 with_database_dbm=no
|
0
|
6001 fi
|
|
6002 rm -f conftest*
|
70
|
6003
|
0
|
6004 fi
|
|
6005 fi
|
|
6006 fi
|
70
|
6007 test "${with_database_dbm}" = yes &&
|
0
|
6008 {
|
|
6009 test -n "$verbose" && \
|
|
6010 echo " defining HAVE_DBM"
|
|
6011 echo "#define" HAVE_DBM "1" >> confdefs.h
|
|
6012 DEFS="$DEFS -DHAVE_DBM=1"
|
|
6013 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DBM\${ac_dB}HAVE_DBM\${ac_dC}1\${ac_dD}
|
|
6014 \${ac_uA}HAVE_DBM\${ac_uB}HAVE_DBM\${ac_uC}1\${ac_uD}
|
|
6015 \${ac_eA}HAVE_DBM\${ac_eB}HAVE_DBM\${ac_eC}1\${ac_eD}
|
|
6016 "
|
|
6017 }
|
70
|
6018
|
0
|
6019
|
|
6020
|
|
6021 ############################################################################
|
|
6022 # #
|
|
6023 # Substitute into Makefile and config.h #
|
|
6024 # #
|
|
6025 ############################################################################
|
|
6026
|
70
|
6027
|
|
6028
|
|
6029
|
|
6030
|
|
6031
|
|
6032
|
|
6033
|
|
6034
|
|
6035
|
|
6036
|
|
6037
|
|
6038
|
|
6039
|
|
6040
|
|
6041
|
|
6042
|
|
6043
|
|
6044
|
|
6045
|
|
6046
|
|
6047
|
|
6048
|
|
6049
|
|
6050
|
|
6051
|
|
6052
|
|
6053
|
|
6054
|
|
6055
|
|
6056
|
|
6057
|
|
6058
|
|
6059
|
|
6060
|
|
6061
|
|
6062
|
|
6063
|
|
6064
|
|
6065
|
|
6066
|
|
6067
|
|
6068 {
|
|
6069 test -n "$verbose" && \
|
|
6070 echo " defining" EMACS_VERSION to be ""${version}""
|
|
6071 echo "#define" EMACS_VERSION ""${version}"" >> confdefs.h
|
|
6072 DEFS="$DEFS -DEMACS_VERSION="${version}""
|
|
6073 ac_sed_defs="${ac_sed_defs}\${ac_dA}EMACS_VERSION\${ac_dB}EMACS_VERSION\${ac_dC}"${version}"\${ac_dD}
|
|
6074 \${ac_uA}EMACS_VERSION\${ac_uB}EMACS_VERSION\${ac_uC}"${version}"\${ac_uD}
|
|
6075 \${ac_eA}EMACS_VERSION\${ac_eB}EMACS_VERSION\${ac_eC}"${version}"\${ac_eD}
|
|
6076 "
|
|
6077 }
|
0
|
6078
|
|
6079
|
|
6080 {
|
|
6081 test -n "$verbose" && \
|
|
6082 echo " defining" EMACS_CONFIGURATION to be ""\"${canonical}\"""
|
|
6083 echo "#define" EMACS_CONFIGURATION ""\"${canonical}\""" >> confdefs.h
|
|
6084 DEFS="$DEFS -DEMACS_CONFIGURATION="\"${canonical}\"""
|
|
6085 ac_sed_defs="${ac_sed_defs}\${ac_dA}EMACS_CONFIGURATION\${ac_dB}EMACS_CONFIGURATION\${ac_dC}"\"${canonical}\""\${ac_dD}
|
|
6086 \${ac_uA}EMACS_CONFIGURATION\${ac_uB}EMACS_CONFIGURATION\${ac_uC}"\"${canonical}\""\${ac_uD}
|
|
6087 \${ac_eA}EMACS_CONFIGURATION\${ac_eB}EMACS_CONFIGURATION\${ac_eC}"\"${canonical}\""\${ac_eD}
|
|
6088 "
|
|
6089 }
|
|
6090
|
|
6091
|
|
6092 {
|
|
6093 test -n "$verbose" && \
|
|
6094 echo " defining" config_machfile to be ""\"${machfile}\"""
|
|
6095 echo "#define" config_machfile ""\"${machfile}\""" >> confdefs.h
|
|
6096 DEFS="$DEFS -Dconfig_machfile="\"${machfile}\"""
|
|
6097 ac_sed_defs="${ac_sed_defs}\${ac_dA}config_machfile\${ac_dB}config_machfile\${ac_dC}"\"${machfile}\""\${ac_dD}
|
|
6098 \${ac_uA}config_machfile\${ac_uB}config_machfile\${ac_uC}"\"${machfile}\""\${ac_uD}
|
|
6099 \${ac_eA}config_machfile\${ac_eB}config_machfile\${ac_eC}"\"${machfile}\""\${ac_eD}
|
|
6100 "
|
|
6101 }
|
|
6102
|
|
6103
|
|
6104 {
|
|
6105 test -n "$verbose" && \
|
|
6106 echo " defining" config_opsysfile to be ""\"${opsysfile}\"""
|
|
6107 echo "#define" config_opsysfile ""\"${opsysfile}\""" >> confdefs.h
|
|
6108 DEFS="$DEFS -Dconfig_opsysfile="\"${opsysfile}\"""
|
|
6109 ac_sed_defs="${ac_sed_defs}\${ac_dA}config_opsysfile\${ac_dB}config_opsysfile\${ac_dC}"\"${opsysfile}\""\${ac_dD}
|
|
6110 \${ac_uA}config_opsysfile\${ac_uB}config_opsysfile\${ac_uC}"\"${opsysfile}\""\${ac_uD}
|
|
6111 \${ac_eA}config_opsysfile\${ac_eB}config_opsysfile\${ac_eC}"\"${opsysfile}\""\${ac_eD}
|
|
6112 "
|
|
6113 }
|
|
6114
|
|
6115
|
|
6116 {
|
|
6117 test -n "$verbose" && \
|
|
6118 echo " defining" LD_SWITCH_X_SITE to be "${LD_SWITCH_X_SITE}"
|
|
6119 echo "#define" LD_SWITCH_X_SITE "${LD_SWITCH_X_SITE}" >> confdefs.h
|
|
6120 DEFS="$DEFS -DLD_SWITCH_X_SITE=${LD_SWITCH_X_SITE}"
|
|
6121 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}
|
|
6122 \${ac_uA}LD_SWITCH_X_SITE\${ac_uB}LD_SWITCH_X_SITE\${ac_uC}${LD_SWITCH_X_SITE}\${ac_uD}
|
|
6123 \${ac_eA}LD_SWITCH_X_SITE\${ac_eB}LD_SWITCH_X_SITE\${ac_eC}${LD_SWITCH_X_SITE}\${ac_eD}
|
|
6124 "
|
|
6125 }
|
|
6126
|
|
6127
|
|
6128 {
|
|
6129 test -n "$verbose" && \
|
|
6130 echo " defining" LD_SWITCH_X_SITE_AUX to be "${LD_SWITCH_X_SITE_AUX}"
|
|
6131 echo "#define" LD_SWITCH_X_SITE_AUX "${LD_SWITCH_X_SITE_AUX}" >> confdefs.h
|
|
6132 DEFS="$DEFS -DLD_SWITCH_X_SITE_AUX=${LD_SWITCH_X_SITE_AUX}"
|
|
6133 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}
|
|
6134 \${ac_uA}LD_SWITCH_X_SITE_AUX\${ac_uB}LD_SWITCH_X_SITE_AUX\${ac_uC}${LD_SWITCH_X_SITE_AUX}\${ac_uD}
|
|
6135 \${ac_eA}LD_SWITCH_X_SITE_AUX\${ac_eB}LD_SWITCH_X_SITE_AUX\${ac_eC}${LD_SWITCH_X_SITE_AUX}\${ac_eD}
|
|
6136 "
|
|
6137 }
|
|
6138
|
|
6139
|
|
6140 {
|
|
6141 test -n "$verbose" && \
|
|
6142 echo " defining" C_SWITCH_X_SITE to be "${C_SWITCH_X_SITE}"
|
|
6143 echo "#define" C_SWITCH_X_SITE "${C_SWITCH_X_SITE}" >> confdefs.h
|
|
6144 DEFS="$DEFS -DC_SWITCH_X_SITE=${C_SWITCH_X_SITE}"
|
|
6145 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}
|
|
6146 \${ac_uA}C_SWITCH_X_SITE\${ac_uB}C_SWITCH_X_SITE\${ac_uC}${C_SWITCH_X_SITE}\${ac_uD}
|
|
6147 \${ac_eA}C_SWITCH_X_SITE\${ac_eB}C_SWITCH_X_SITE\${ac_eC}${C_SWITCH_X_SITE}\${ac_eD}
|
|
6148 "
|
|
6149 }
|
|
6150
|
|
6151
|
|
6152 {
|
|
6153 test -n "$verbose" && \
|
|
6154 echo " defining" LD_SWITCH_SITE to be "${LD_SWITCH_SITE}"
|
|
6155 echo "#define" LD_SWITCH_SITE "${LD_SWITCH_SITE}" >> confdefs.h
|
|
6156 DEFS="$DEFS -DLD_SWITCH_SITE=${LD_SWITCH_SITE}"
|
|
6157 ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_SITE\${ac_dB}LD_SWITCH_SITE\${ac_dC}${LD_SWITCH_SITE}\${ac_dD}
|
|
6158 \${ac_uA}LD_SWITCH_SITE\${ac_uB}LD_SWITCH_SITE\${ac_uC}${LD_SWITCH_SITE}\${ac_uD}
|
|
6159 \${ac_eA}LD_SWITCH_SITE\${ac_eB}LD_SWITCH_SITE\${ac_eC}${LD_SWITCH_SITE}\${ac_eD}
|
|
6160 "
|
|
6161 }
|
|
6162
|
|
6163
|
|
6164 {
|
|
6165 test -n "$verbose" && \
|
|
6166 echo " defining" C_SWITCH_SITE to be "${C_SWITCH_SITE}"
|
|
6167 echo "#define" C_SWITCH_SITE "${C_SWITCH_SITE}" >> confdefs.h
|
|
6168 DEFS="$DEFS -DC_SWITCH_SITE=${C_SWITCH_SITE}"
|
|
6169 ac_sed_defs="${ac_sed_defs}\${ac_dA}C_SWITCH_SITE\${ac_dB}C_SWITCH_SITE\${ac_dC}${C_SWITCH_SITE}\${ac_dD}
|
|
6170 \${ac_uA}C_SWITCH_SITE\${ac_uB}C_SWITCH_SITE\${ac_uC}${C_SWITCH_SITE}\${ac_uD}
|
|
6171 \${ac_eA}C_SWITCH_SITE\${ac_eB}C_SWITCH_SITE\${ac_eC}${C_SWITCH_SITE}\${ac_eD}
|
|
6172 "
|
|
6173 }
|
|
6174
|
|
6175
|
|
6176 {
|
|
6177 test -n "$verbose" && \
|
|
6178 echo " defining" UNEXEC_SRC to be "${UNEXEC_SRC}"
|
|
6179 echo "#define" UNEXEC_SRC "${UNEXEC_SRC}" >> confdefs.h
|
|
6180 DEFS="$DEFS -DUNEXEC_SRC=${UNEXEC_SRC}"
|
|
6181 ac_sed_defs="${ac_sed_defs}\${ac_dA}UNEXEC_SRC\${ac_dB}UNEXEC_SRC\${ac_dC}${UNEXEC_SRC}\${ac_dD}
|
|
6182 \${ac_uA}UNEXEC_SRC\${ac_uB}UNEXEC_SRC\${ac_uC}${UNEXEC_SRC}\${ac_uD}
|
|
6183 \${ac_eA}UNEXEC_SRC\${ac_eB}UNEXEC_SRC\${ac_eC}${UNEXEC_SRC}\${ac_eD}
|
|
6184 "
|
|
6185 }
|
|
6186
|
|
6187
|
|
6188
|
70
|
6189 test -n "${puresize}" &&
|
|
6190 {
|
|
6191 test -n "$verbose" && \
|
|
6192 echo " defining" PURESIZE to be "${puresize}"
|
|
6193 echo "#define" PURESIZE "${puresize}" >> confdefs.h
|
|
6194 DEFS="$DEFS -DPURESIZE=${puresize}"
|
|
6195 ac_sed_defs="${ac_sed_defs}\${ac_dA}PURESIZE\${ac_dB}PURESIZE\${ac_dC}${puresize}\${ac_dD}
|
|
6196 \${ac_uA}PURESIZE\${ac_uB}PURESIZE\${ac_uC}${puresize}\${ac_uD}
|
|
6197 \${ac_eA}PURESIZE\${ac_eB}PURESIZE\${ac_eC}${puresize}\${ac_eD}
|
|
6198 "
|
|
6199 }
|
|
6200
|
|
6201 test "${HAVE_X_WINDOWS}" = yes &&
|
0
|
6202 {
|
|
6203 test -n "$verbose" && \
|
|
6204 echo " defining HAVE_X_WINDOWS"
|
|
6205 echo "#define" HAVE_X_WINDOWS "1" >> confdefs.h
|
|
6206 DEFS="$DEFS -DHAVE_X_WINDOWS=1"
|
|
6207 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_X_WINDOWS\${ac_dB}HAVE_X_WINDOWS\${ac_dC}1\${ac_dD}
|
|
6208 \${ac_uA}HAVE_X_WINDOWS\${ac_uB}HAVE_X_WINDOWS\${ac_uC}1\${ac_uD}
|
|
6209 \${ac_eA}HAVE_X_WINDOWS\${ac_eB}HAVE_X_WINDOWS\${ac_eC}1\${ac_eD}
|
|
6210 "
|
|
6211 }
|
70
|
6212
|
|
6213 test "${HAVE_XFREE386}" = yes &&
|
0
|
6214 {
|
|
6215 test -n "$verbose" && \
|
|
6216 echo " defining HAVE_XFREE386"
|
|
6217 echo "#define" HAVE_XFREE386 "1" >> confdefs.h
|
|
6218 DEFS="$DEFS -DHAVE_XFREE386=1"
|
|
6219 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XFREE386\${ac_dB}HAVE_XFREE386\${ac_dC}1\${ac_dD}
|
|
6220 \${ac_uA}HAVE_XFREE386\${ac_uB}HAVE_XFREE386\${ac_uC}1\${ac_uD}
|
|
6221 \${ac_eA}HAVE_XFREE386\${ac_eB}HAVE_XFREE386\${ac_eC}1\${ac_eD}
|
|
6222 "
|
|
6223 }
|
70
|
6224
|
|
6225
|
|
6226 if test "${GNU_MALLOC}" = yes; then
|
0
|
6227 {
|
|
6228 test -n "$verbose" && \
|
|
6229 echo " defining GNU_MALLOC"
|
|
6230 echo "#define" GNU_MALLOC "1" >> confdefs.h
|
|
6231 DEFS="$DEFS -DGNU_MALLOC=1"
|
|
6232 ac_sed_defs="${ac_sed_defs}\${ac_dA}GNU_MALLOC\${ac_dB}GNU_MALLOC\${ac_dC}1\${ac_dD}
|
|
6233 \${ac_uA}GNU_MALLOC\${ac_uB}GNU_MALLOC\${ac_uC}1\${ac_uD}
|
|
6234 \${ac_eA}GNU_MALLOC\${ac_eB}GNU_MALLOC\${ac_eC}1\${ac_eD}
|
|
6235 "
|
|
6236 }
|
70
|
6237
|
|
6238 elif test "${use_system_malloc}" = yes; then
|
0
|
6239 {
|
|
6240 test -n "$verbose" && \
|
|
6241 echo " defining USE_SYSTEM_MALLOC"
|
|
6242 echo "#define" USE_SYSTEM_MALLOC "1" >> confdefs.h
|
|
6243 DEFS="$DEFS -DUSE_SYSTEM_MALLOC=1"
|
|
6244 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_SYSTEM_MALLOC\${ac_dB}USE_SYSTEM_MALLOC\${ac_dC}1\${ac_dD}
|
|
6245 \${ac_uA}USE_SYSTEM_MALLOC\${ac_uB}USE_SYSTEM_MALLOC\${ac_uC}1\${ac_uD}
|
|
6246 \${ac_eA}USE_SYSTEM_MALLOC\${ac_eB}USE_SYSTEM_MALLOC\${ac_eC}1\${ac_eD}
|
|
6247 "
|
|
6248 }
|
70
|
6249
|
|
6250 fi
|
|
6251 test "${rel_alloc}" = yes &&
|
0
|
6252 {
|
|
6253 test -n "$verbose" && \
|
|
6254 echo " defining REL_ALLOC"
|
|
6255 echo "#define" REL_ALLOC "1" >> confdefs.h
|
|
6256 DEFS="$DEFS -DREL_ALLOC=1"
|
|
6257 ac_sed_defs="${ac_sed_defs}\${ac_dA}REL_ALLOC\${ac_dB}REL_ALLOC\${ac_dC}1\${ac_dD}
|
|
6258 \${ac_uA}REL_ALLOC\${ac_uB}REL_ALLOC\${ac_uC}1\${ac_uD}
|
|
6259 \${ac_eA}REL_ALLOC\${ac_eB}REL_ALLOC\${ac_eC}1\${ac_eD}
|
|
6260 "
|
|
6261 }
|
70
|
6262
|
|
6263 test "${LISP_FLOAT_TYPE}" = yes &&
|
0
|
6264 {
|
|
6265 test -n "$verbose" && \
|
|
6266 echo " defining LISP_FLOAT_TYPE"
|
|
6267 echo "#define" LISP_FLOAT_TYPE "1" >> confdefs.h
|
|
6268 DEFS="$DEFS -DLISP_FLOAT_TYPE=1"
|
|
6269 ac_sed_defs="${ac_sed_defs}\${ac_dA}LISP_FLOAT_TYPE\${ac_dB}LISP_FLOAT_TYPE\${ac_dC}1\${ac_dD}
|
|
6270 \${ac_uA}LISP_FLOAT_TYPE\${ac_uB}LISP_FLOAT_TYPE\${ac_uC}1\${ac_uD}
|
|
6271 \${ac_eA}LISP_FLOAT_TYPE\${ac_eB}LISP_FLOAT_TYPE\${ac_eC}1\${ac_eD}
|
|
6272 "
|
|
6273 }
|
70
|
6274
|
|
6275 test "${with_motif}" = yes &&
|
0
|
6276 {
|
|
6277 test -n "$verbose" && \
|
|
6278 echo " defining LWLIB_USES_MOTIF"
|
|
6279 echo "#define" LWLIB_USES_MOTIF "1" >> confdefs.h
|
|
6280 DEFS="$DEFS -DLWLIB_USES_MOTIF=1"
|
|
6281 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_USES_MOTIF\${ac_dB}LWLIB_USES_MOTIF\${ac_dC}1\${ac_dD}
|
|
6282 \${ac_uA}LWLIB_USES_MOTIF\${ac_uB}LWLIB_USES_MOTIF\${ac_uC}1\${ac_uD}
|
|
6283 \${ac_eA}LWLIB_USES_MOTIF\${ac_eB}LWLIB_USES_MOTIF\${ac_eC}1\${ac_eD}
|
|
6284 "
|
|
6285 }
|
70
|
6286
|
|
6287 test "${with_toolbars}" = yes &&
|
0
|
6288 {
|
|
6289 test -n "$verbose" && \
|
|
6290 echo " defining HAVE_TOOLBARS"
|
|
6291 echo "#define" HAVE_TOOLBARS "1" >> confdefs.h
|
|
6292 DEFS="$DEFS -DHAVE_TOOLBARS=1"
|
|
6293 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TOOLBARS\${ac_dB}HAVE_TOOLBARS\${ac_dC}1\${ac_dD}
|
|
6294 \${ac_uA}HAVE_TOOLBARS\${ac_uB}HAVE_TOOLBARS\${ac_uC}1\${ac_uD}
|
|
6295 \${ac_eA}HAVE_TOOLBARS\${ac_eB}HAVE_TOOLBARS\${ac_eC}1\${ac_eD}
|
|
6296 "
|
|
6297 }
|
70
|
6298
|
|
6299 test "${with_tty}" = yes &&
|
0
|
6300 {
|
|
6301 test -n "$verbose" && \
|
|
6302 echo " defining HAVE_TTY"
|
|
6303 echo "#define" HAVE_TTY "1" >> confdefs.h
|
|
6304 DEFS="$DEFS -DHAVE_TTY=1"
|
|
6305 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TTY\${ac_dB}HAVE_TTY\${ac_dC}1\${ac_dD}
|
|
6306 \${ac_uA}HAVE_TTY\${ac_uB}HAVE_TTY\${ac_uC}1\${ac_uD}
|
|
6307 \${ac_eA}HAVE_TTY\${ac_eB}HAVE_TTY\${ac_eC}1\${ac_eD}
|
|
6308 "
|
|
6309 }
|
70
|
6310
|
|
6311 test "${with_tooltalk}" = yes &&
|
0
|
6312 {
|
|
6313 test -n "$verbose" && \
|
|
6314 echo " defining TOOLTALK"
|
|
6315 echo "#define" TOOLTALK "1" >> confdefs.h
|
|
6316 DEFS="$DEFS -DTOOLTALK=1"
|
|
6317 ac_sed_defs="${ac_sed_defs}\${ac_dA}TOOLTALK\${ac_dB}TOOLTALK\${ac_dC}1\${ac_dD}
|
|
6318 \${ac_uA}TOOLTALK\${ac_uB}TOOLTALK\${ac_uC}1\${ac_uD}
|
|
6319 \${ac_eA}TOOLTALK\${ac_eB}TOOLTALK\${ac_eC}1\${ac_eD}
|
|
6320 "
|
|
6321 }
|
70
|
6322
|
|
6323 test "${with_i18n3}" = yes &&
|
|
6324 {
|
|
6325 test -n "$verbose" && \
|
|
6326 echo " defining I18N3"
|
|
6327 echo "#define" I18N3 "1" >> confdefs.h
|
|
6328 DEFS="$DEFS -DI18N3=1"
|
|
6329 ac_sed_defs="${ac_sed_defs}\${ac_dA}I18N3\${ac_dB}I18N3\${ac_dC}1\${ac_dD}
|
|
6330 \${ac_uA}I18N3\${ac_uB}I18N3\${ac_uC}1\${ac_uD}
|
|
6331 \${ac_eA}I18N3\${ac_eB}I18N3\${ac_eC}1\${ac_eD}
|
|
6332 "
|
|
6333 }
|
|
6334
|
|
6335 test "${with_mule}" = yes &&
|
|
6336 {
|
|
6337 test -n "$verbose" && \
|
|
6338 echo " defining MULE"
|
|
6339 echo "#define" MULE "1" >> confdefs.h
|
|
6340 DEFS="$DEFS -DMULE=1"
|
|
6341 ac_sed_defs="${ac_sed_defs}\${ac_dA}MULE\${ac_dB}MULE\${ac_dC}1\${ac_dD}
|
|
6342 \${ac_uA}MULE\${ac_uB}MULE\${ac_uC}1\${ac_uD}
|
|
6343 \${ac_eA}MULE\${ac_eB}MULE\${ac_eC}1\${ac_eD}
|
|
6344 "
|
|
6345 }
|
|
6346
|
|
6347 test "${with_canna}" = yes &&
|
|
6348 {
|
|
6349 test -n "$verbose" && \
|
|
6350 echo " defining HAVE_CANNA"
|
|
6351 echo "#define" HAVE_CANNA "1" >> confdefs.h
|
|
6352 DEFS="$DEFS -DHAVE_CANNA=1"
|
|
6353 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_CANNA\${ac_dB}HAVE_CANNA\${ac_dC}1\${ac_dD}
|
|
6354 \${ac_uA}HAVE_CANNA\${ac_uB}HAVE_CANNA\${ac_uC}1\${ac_uD}
|
|
6355 \${ac_eA}HAVE_CANNA\${ac_eB}HAVE_CANNA\${ac_eC}1\${ac_eD}
|
|
6356 "
|
|
6357 }
|
|
6358
|
|
6359 test "${with_wnn}" = yes &&
|
|
6360 {
|
|
6361 test -n "$verbose" && \
|
|
6362 echo " defining HAVE_WNN"
|
|
6363 echo "#define" HAVE_WNN "1" >> confdefs.h
|
|
6364 DEFS="$DEFS -DHAVE_WNN=1"
|
|
6365 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_WNN\${ac_dB}HAVE_WNN\${ac_dC}1\${ac_dD}
|
|
6366 \${ac_uA}HAVE_WNN\${ac_uB}HAVE_WNN\${ac_uC}1\${ac_uD}
|
|
6367 \${ac_eA}HAVE_WNN\${ac_eB}HAVE_WNN\${ac_eC}1\${ac_eD}
|
|
6368 "
|
|
6369 }
|
|
6370
|
|
6371 test "${with_mock}" = yes &&
|
0
|
6372 {
|
|
6373 test -n "$verbose" && \
|
|
6374 echo " defining MOCKLISP_SUPPORT"
|
|
6375 echo "#define" MOCKLISP_SUPPORT "1" >> confdefs.h
|
|
6376 DEFS="$DEFS -DMOCKLISP_SUPPORT=1"
|
|
6377 ac_sed_defs="${ac_sed_defs}\${ac_dA}MOCKLISP_SUPPORT\${ac_dB}MOCKLISP_SUPPORT\${ac_dC}1\${ac_dD}
|
|
6378 \${ac_uA}MOCKLISP_SUPPORT\${ac_uB}MOCKLISP_SUPPORT\${ac_uC}1\${ac_uD}
|
|
6379 \${ac_eA}MOCKLISP_SUPPORT\${ac_eB}MOCKLISP_SUPPORT\${ac_eC}1\${ac_eD}
|
|
6380 "
|
|
6381 }
|
70
|
6382
|
|
6383 test "${with_sparcworks}" = yes &&
|
0
|
6384 {
|
|
6385 test -n "$verbose" && \
|
|
6386 echo " defining SUNPRO"
|
|
6387 echo "#define" SUNPRO "1" >> confdefs.h
|
|
6388 DEFS="$DEFS -DSUNPRO=1"
|
|
6389 ac_sed_defs="${ac_sed_defs}\${ac_dA}SUNPRO\${ac_dB}SUNPRO\${ac_dC}1\${ac_dD}
|
|
6390 \${ac_uA}SUNPRO\${ac_uB}SUNPRO\${ac_uC}1\${ac_uD}
|
|
6391 \${ac_eA}SUNPRO\${ac_eB}SUNPRO\${ac_eC}1\${ac_eD}
|
|
6392 "
|
|
6393 }
|
70
|
6394
|
|
6395 test "${usage_tracking}" = yes &&
|
0
|
6396 {
|
|
6397 test -n "$verbose" && \
|
|
6398 echo " defining USAGE_TRACKING"
|
|
6399 echo "#define" USAGE_TRACKING "1" >> confdefs.h
|
|
6400 DEFS="$DEFS -DUSAGE_TRACKING=1"
|
|
6401 ac_sed_defs="${ac_sed_defs}\${ac_dA}USAGE_TRACKING\${ac_dB}USAGE_TRACKING\${ac_dC}1\${ac_dD}
|
|
6402 \${ac_uA}USAGE_TRACKING\${ac_uB}USAGE_TRACKING\${ac_uC}1\${ac_uD}
|
|
6403 \${ac_eA}USAGE_TRACKING\${ac_eB}USAGE_TRACKING\${ac_eC}1\${ac_eD}
|
|
6404 "
|
|
6405 }
|
70
|
6406
|
|
6407 test "${need_dynodump}" = yes &&
|
|
6408 {
|
|
6409 test -n "$verbose" && \
|
|
6410 echo " defining DYNODUMP"
|
|
6411 echo "#define" DYNODUMP "1" >> confdefs.h
|
|
6412 DEFS="$DEFS -DDYNODUMP=1"
|
|
6413 ac_sed_defs="${ac_sed_defs}\${ac_dA}DYNODUMP\${ac_dB}DYNODUMP\${ac_dC}1\${ac_dD}
|
|
6414 \${ac_uA}DYNODUMP\${ac_uB}DYNODUMP\${ac_uC}1\${ac_uD}
|
|
6415 \${ac_eA}DYNODUMP\${ac_eB}DYNODUMP\${ac_eC}1\${ac_eD}
|
|
6416 "
|
|
6417 }
|
|
6418
|
|
6419 test "${need_xildoff}" = yes &&
|
|
6420 {
|
|
6421 test -n "$verbose" && \
|
|
6422 echo " defining NEED_XILDOFF"
|
|
6423 echo "#define" NEED_XILDOFF "1" >> confdefs.h
|
|
6424 DEFS="$DEFS -DNEED_XILDOFF=1"
|
|
6425 ac_sed_defs="${ac_sed_defs}\${ac_dA}NEED_XILDOFF\${ac_dB}NEED_XILDOFF\${ac_dC}1\${ac_dD}
|
|
6426 \${ac_uA}NEED_XILDOFF\${ac_uB}NEED_XILDOFF\${ac_uC}1\${ac_uD}
|
|
6427 \${ac_eA}NEED_XILDOFF\${ac_eB}NEED_XILDOFF\${ac_eC}1\${ac_eD}
|
|
6428 "
|
|
6429 }
|
|
6430
|
|
6431 test "${with_gcc}" = yes &&
|
|
6432 {
|
|
6433 test -n "$verbose" && \
|
|
6434 echo " defining USE_GCC"
|
|
6435 echo "#define" USE_GCC "1" >> confdefs.h
|
|
6436 DEFS="$DEFS -DUSE_GCC=1"
|
|
6437 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_GCC\${ac_dB}USE_GCC\${ac_dC}1\${ac_dD}
|
|
6438 \${ac_uA}USE_GCC\${ac_uB}USE_GCC\${ac_uC}1\${ac_uD}
|
|
6439 \${ac_eA}USE_GCC\${ac_eB}USE_GCC\${ac_eC}1\${ac_eD}
|
|
6440 "
|
|
6441 }
|
|
6442
|
|
6443 test "${with_lcc}" = yes &&
|
|
6444 {
|
|
6445 test -n "$verbose" && \
|
|
6446 echo " defining USE_LCC"
|
|
6447 echo "#define" USE_LCC "1" >> confdefs.h
|
|
6448 DEFS="$DEFS -DUSE_LCC=1"
|
|
6449 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_LCC\${ac_dB}USE_LCC\${ac_dC}1\${ac_dD}
|
|
6450 \${ac_uA}USE_LCC\${ac_uB}USE_LCC\${ac_uC}1\${ac_uD}
|
|
6451 \${ac_eA}USE_LCC\${ac_eB}USE_LCC\${ac_eC}1\${ac_eD}
|
|
6452 "
|
|
6453 }
|
|
6454
|
|
6455 test "${with_socks}" = yes &&
|
|
6456 {
|
|
6457 test -n "$verbose" && \
|
|
6458 echo " defining HAVE_SOCKS"
|
|
6459 echo "#define" HAVE_SOCKS "1" >> confdefs.h
|
|
6460 DEFS="$DEFS -DHAVE_SOCKS=1"
|
|
6461 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKS\${ac_dB}HAVE_SOCKS\${ac_dC}1\${ac_dD}
|
|
6462 \${ac_uA}HAVE_SOCKS\${ac_uB}HAVE_SOCKS\${ac_uC}1\${ac_uD}
|
|
6463 \${ac_eA}HAVE_SOCKS\${ac_eB}HAVE_SOCKS\${ac_eC}1\${ac_eD}
|
|
6464 "
|
|
6465 }
|
|
6466
|
|
6467 test "${with_term}" = yes &&
|
|
6468 {
|
|
6469 test -n "$verbose" && \
|
|
6470 echo " defining HAVE_TERM"
|
|
6471 echo "#define" HAVE_TERM "1" >> confdefs.h
|
|
6472 DEFS="$DEFS -DHAVE_TERM=1"
|
|
6473 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERM\${ac_dB}HAVE_TERM\${ac_dC}1\${ac_dD}
|
|
6474 \${ac_uA}HAVE_TERM\${ac_uB}HAVE_TERM\${ac_uC}1\${ac_uD}
|
|
6475 \${ac_eA}HAVE_TERM\${ac_eB}HAVE_TERM\${ac_eC}1\${ac_eD}
|
|
6476 "
|
|
6477 }
|
|
6478
|
|
6479 test "${with_epoch}" = yes &&
|
|
6480 {
|
|
6481 test -n "$verbose" && \
|
|
6482 echo " defining EPOCH"
|
|
6483 echo "#define" EPOCH "1" >> confdefs.h
|
|
6484 DEFS="$DEFS -DEPOCH=1"
|
|
6485 ac_sed_defs="${ac_sed_defs}\${ac_dA}EPOCH\${ac_dB}EPOCH\${ac_dC}1\${ac_dD}
|
|
6486 \${ac_uA}EPOCH\${ac_uB}EPOCH\${ac_uC}1\${ac_uD}
|
|
6487 \${ac_eA}EPOCH\${ac_eB}EPOCH\${ac_eC}1\${ac_eD}
|
|
6488 "
|
|
6489 }
|
|
6490
|
|
6491 test "${external_widget}" = yes &&
|
|
6492 {
|
|
6493 test -n "$verbose" && \
|
|
6494 echo " defining EXTERNAL_WIDGET"
|
|
6495 echo "#define" EXTERNAL_WIDGET "1" >> confdefs.h
|
|
6496 DEFS="$DEFS -DEXTERNAL_WIDGET=1"
|
|
6497 ac_sed_defs="${ac_sed_defs}\${ac_dA}EXTERNAL_WIDGET\${ac_dB}EXTERNAL_WIDGET\${ac_dC}1\${ac_dD}
|
|
6498 \${ac_uA}EXTERNAL_WIDGET\${ac_uB}EXTERNAL_WIDGET\${ac_uC}1\${ac_uD}
|
|
6499 \${ac_eA}EXTERNAL_WIDGET\${ac_eB}EXTERNAL_WIDGET\${ac_eC}1\${ac_eD}
|
|
6500 "
|
|
6501 }
|
|
6502
|
|
6503 test "${with_gnu_make}" = yes &&
|
|
6504 {
|
|
6505 test -n "$verbose" && \
|
|
6506 echo " defining USE_GNU_MAKE"
|
|
6507 echo "#define" USE_GNU_MAKE "1" >> confdefs.h
|
|
6508 DEFS="$DEFS -DUSE_GNU_MAKE=1"
|
|
6509 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_GNU_MAKE\${ac_dB}USE_GNU_MAKE\${ac_dC}1\${ac_dD}
|
|
6510 \${ac_uA}USE_GNU_MAKE\${ac_uB}USE_GNU_MAKE\${ac_uC}1\${ac_uD}
|
|
6511 \${ac_eA}USE_GNU_MAKE\${ac_eB}USE_GNU_MAKE\${ac_eC}1\${ac_eD}
|
|
6512 "
|
|
6513 }
|
|
6514
|
|
6515 test "${no_doc_file}" = yes &&
|
|
6516 {
|
|
6517 test -n "$verbose" && \
|
|
6518 echo " defining NO_DOC_FILE"
|
|
6519 echo "#define" NO_DOC_FILE "1" >> confdefs.h
|
|
6520 DEFS="$DEFS -DNO_DOC_FILE=1"
|
|
6521 ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_DOC_FILE\${ac_dB}NO_DOC_FILE\${ac_dC}1\${ac_dD}
|
|
6522 \${ac_uA}NO_DOC_FILE\${ac_uB}NO_DOC_FILE\${ac_uC}1\${ac_uD}
|
|
6523 \${ac_eA}NO_DOC_FILE\${ac_eB}NO_DOC_FILE\${ac_eC}1\${ac_eD}
|
|
6524 "
|
|
6525 }
|
|
6526
|
|
6527 test "${const_is_losing}" = yes &&
|
|
6528 {
|
|
6529 test -n "$verbose" && \
|
|
6530 echo " defining CONST_IS_LOSING"
|
|
6531 echo "#define" CONST_IS_LOSING "1" >> confdefs.h
|
|
6532 DEFS="$DEFS -DCONST_IS_LOSING=1"
|
|
6533 ac_sed_defs="${ac_sed_defs}\${ac_dA}CONST_IS_LOSING\${ac_dB}CONST_IS_LOSING\${ac_dC}1\${ac_dD}
|
|
6534 \${ac_uA}CONST_IS_LOSING\${ac_uB}CONST_IS_LOSING\${ac_uC}1\${ac_uD}
|
|
6535 \${ac_eA}CONST_IS_LOSING\${ac_eB}CONST_IS_LOSING\${ac_eC}1\${ac_eD}
|
|
6536 "
|
|
6537 }
|
|
6538
|
|
6539 test "${use_assertions}" = yes &&
|
|
6540 {
|
|
6541 test -n "$verbose" && \
|
|
6542 echo " defining USE_ASSERTIONS"
|
|
6543 echo "#define" USE_ASSERTIONS "1" >> confdefs.h
|
|
6544 DEFS="$DEFS -DUSE_ASSERTIONS=1"
|
|
6545 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_ASSERTIONS\${ac_dB}USE_ASSERTIONS\${ac_dC}1\${ac_dD}
|
|
6546 \${ac_uA}USE_ASSERTIONS\${ac_uB}USE_ASSERTIONS\${ac_uC}1\${ac_uD}
|
|
6547 \${ac_eA}USE_ASSERTIONS\${ac_eB}USE_ASSERTIONS\${ac_eC}1\${ac_eD}
|
|
6548 "
|
|
6549 }
|
|
6550
|
|
6551 test "${debug}" = yes &&
|
|
6552 {
|
|
6553 test -n "$verbose" && \
|
|
6554 echo " defining DEBUG_XEMACS"
|
|
6555 echo "#define" DEBUG_XEMACS "1" >> confdefs.h
|
|
6556 DEFS="$DEFS -DDEBUG_XEMACS=1"
|
|
6557 ac_sed_defs="${ac_sed_defs}\${ac_dA}DEBUG_XEMACS\${ac_dB}DEBUG_XEMACS\${ac_dC}1\${ac_dD}
|
|
6558 \${ac_uA}DEBUG_XEMACS\${ac_uB}DEBUG_XEMACS\${ac_uC}1\${ac_uD}
|
|
6559 \${ac_eA}DEBUG_XEMACS\${ac_eB}DEBUG_XEMACS\${ac_eC}1\${ac_eD}
|
|
6560 "
|
|
6561 }
|
|
6562
|
|
6563 test "${quantify}" = yes &&
|
|
6564 {
|
|
6565 test -n "$verbose" && \
|
|
6566 echo " defining QUANTIFY"
|
|
6567 echo "#define" QUANTIFY "1" >> confdefs.h
|
|
6568 DEFS="$DEFS -DQUANTIFY=1"
|
|
6569 ac_sed_defs="${ac_sed_defs}\${ac_dA}QUANTIFY\${ac_dB}QUANTIFY\${ac_dC}1\${ac_dD}
|
|
6570 \${ac_uA}QUANTIFY\${ac_uB}QUANTIFY\${ac_uC}1\${ac_uD}
|
|
6571 \${ac_eA}QUANTIFY\${ac_eB}QUANTIFY\${ac_eC}1\${ac_eD}
|
|
6572 "
|
|
6573 }
|
|
6574
|
|
6575 test "${memory_usage_stats}" = yes &&
|
|
6576 {
|
|
6577 test -n "$verbose" && \
|
|
6578 echo " defining MEMORY_USAGE_STATS"
|
|
6579 echo "#define" MEMORY_USAGE_STATS "1" >> confdefs.h
|
|
6580 DEFS="$DEFS -DMEMORY_USAGE_STATS=1"
|
|
6581 ac_sed_defs="${ac_sed_defs}\${ac_dA}MEMORY_USAGE_STATS\${ac_dB}MEMORY_USAGE_STATS\${ac_dC}1\${ac_dD}
|
|
6582 \${ac_uA}MEMORY_USAGE_STATS\${ac_uB}MEMORY_USAGE_STATS\${ac_uC}1\${ac_uD}
|
|
6583 \${ac_eA}MEMORY_USAGE_STATS\${ac_eB}MEMORY_USAGE_STATS\${ac_eC}1\${ac_eD}
|
|
6584 "
|
|
6585 }
|
|
6586
|
|
6587
|
|
6588 test "${error_check_extents}" = yes &&
|
|
6589 {
|
|
6590 test -n "$verbose" && \
|
|
6591 echo " defining ERROR_CHECK_EXTENTS"
|
|
6592 echo "#define" ERROR_CHECK_EXTENTS "1" >> confdefs.h
|
|
6593 DEFS="$DEFS -DERROR_CHECK_EXTENTS=1"
|
|
6594 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_EXTENTS\${ac_dB}ERROR_CHECK_EXTENTS\${ac_dC}1\${ac_dD}
|
|
6595 \${ac_uA}ERROR_CHECK_EXTENTS\${ac_uB}ERROR_CHECK_EXTENTS\${ac_uC}1\${ac_uD}
|
|
6596 \${ac_eA}ERROR_CHECK_EXTENTS\${ac_eB}ERROR_CHECK_EXTENTS\${ac_eC}1\${ac_eD}
|
|
6597 "
|
|
6598 }
|
|
6599
|
|
6600 test "${error_check_typecheck}" = yes &&
|
|
6601 {
|
|
6602 test -n "$verbose" && \
|
|
6603 echo " defining ERROR_CHECK_TYPECHECK"
|
|
6604 echo "#define" ERROR_CHECK_TYPECHECK "1" >> confdefs.h
|
|
6605 DEFS="$DEFS -DERROR_CHECK_TYPECHECK=1"
|
|
6606 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_TYPECHECK\${ac_dB}ERROR_CHECK_TYPECHECK\${ac_dC}1\${ac_dD}
|
|
6607 \${ac_uA}ERROR_CHECK_TYPECHECK\${ac_uB}ERROR_CHECK_TYPECHECK\${ac_uC}1\${ac_uD}
|
|
6608 \${ac_eA}ERROR_CHECK_TYPECHECK\${ac_eB}ERROR_CHECK_TYPECHECK\${ac_eC}1\${ac_eD}
|
|
6609 "
|
|
6610 }
|
|
6611
|
|
6612 test "${error_check_bufpos}" = yes &&
|
|
6613 {
|
|
6614 test -n "$verbose" && \
|
|
6615 echo " defining ERROR_CHECK_BUFPOS"
|
|
6616 echo "#define" ERROR_CHECK_BUFPOS "1" >> confdefs.h
|
|
6617 DEFS="$DEFS -DERROR_CHECK_BUFPOS=1"
|
|
6618 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_BUFPOS\${ac_dB}ERROR_CHECK_BUFPOS\${ac_dC}1\${ac_dD}
|
|
6619 \${ac_uA}ERROR_CHECK_BUFPOS\${ac_uB}ERROR_CHECK_BUFPOS\${ac_uC}1\${ac_uD}
|
|
6620 \${ac_eA}ERROR_CHECK_BUFPOS\${ac_eB}ERROR_CHECK_BUFPOS\${ac_eC}1\${ac_eD}
|
|
6621 "
|
|
6622 }
|
|
6623
|
|
6624 test "${error_check_gc}" = yes &&
|
|
6625 {
|
|
6626 test -n "$verbose" && \
|
|
6627 echo " defining ERROR_CHECK_GC"
|
|
6628 echo "#define" ERROR_CHECK_GC "1" >> confdefs.h
|
|
6629 DEFS="$DEFS -DERROR_CHECK_GC=1"
|
|
6630 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_GC\${ac_dB}ERROR_CHECK_GC\${ac_dC}1\${ac_dD}
|
|
6631 \${ac_uA}ERROR_CHECK_GC\${ac_uB}ERROR_CHECK_GC\${ac_uC}1\${ac_uD}
|
|
6632 \${ac_eA}ERROR_CHECK_GC\${ac_eB}ERROR_CHECK_GC\${ac_eC}1\${ac_eD}
|
|
6633 "
|
|
6634 }
|
|
6635
|
|
6636 test "${error_check_malloc}" = yes &&
|
|
6637 {
|
|
6638 test -n "$verbose" && \
|
|
6639 echo " defining ERROR_CHECK_MALLOC"
|
|
6640 echo "#define" ERROR_CHECK_MALLOC "1" >> confdefs.h
|
|
6641 DEFS="$DEFS -DERROR_CHECK_MALLOC=1"
|
|
6642 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_MALLOC\${ac_dB}ERROR_CHECK_MALLOC\${ac_dC}1\${ac_dD}
|
|
6643 \${ac_uA}ERROR_CHECK_MALLOC\${ac_uB}ERROR_CHECK_MALLOC\${ac_uC}1\${ac_uD}
|
|
6644 \${ac_eA}ERROR_CHECK_MALLOC\${ac_eB}ERROR_CHECK_MALLOC\${ac_eC}1\${ac_eD}
|
|
6645 "
|
|
6646 }
|
|
6647
|
|
6648
|
|
6649 if test "${with_energize}" = yes; then
|
|
6650
|
0
|
6651 {
|
|
6652 test -n "$verbose" && \
|
|
6653 echo " defining ENERGIZE"
|
|
6654 echo "#define" ENERGIZE "1" >> confdefs.h
|
|
6655 DEFS="$DEFS -DENERGIZE=1"
|
|
6656 ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE\${ac_dB}ENERGIZE\${ac_dC}1\${ac_dD}
|
|
6657 \${ac_uA}ENERGIZE\${ac_uB}ENERGIZE\${ac_uC}1\${ac_uD}
|
|
6658 \${ac_eA}ENERGIZE\${ac_eB}ENERGIZE\${ac_eC}1\${ac_eD}
|
|
6659 "
|
|
6660 }
|
70
|
6661
|
|
6662 test "${energize_version}" = "2.X" &&
|
0
|
6663 {
|
|
6664 test -n "$verbose" && \
|
|
6665 echo " defining ENERGIZE_2"
|
|
6666 echo "#define" ENERGIZE_2 "1" >> confdefs.h
|
|
6667 DEFS="$DEFS -DENERGIZE_2=1"
|
|
6668 ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE_2\${ac_dB}ENERGIZE_2\${ac_dC}1\${ac_dD}
|
|
6669 \${ac_uA}ENERGIZE_2\${ac_uB}ENERGIZE_2\${ac_uC}1\${ac_uD}
|
|
6670 \${ac_eA}ENERGIZE_2\${ac_eB}ENERGIZE_2\${ac_eC}1\${ac_eD}
|
|
6671 "
|
|
6672 }
|
70
|
6673
|
|
6674 test "${energize_version}" = "3.X" &&
|
0
|
6675 {
|
|
6676 test -n "$verbose" && \
|
|
6677 echo " defining ENERGIZE_3"
|
|
6678 echo "#define" ENERGIZE_3 "1" >> confdefs.h
|
|
6679 DEFS="$DEFS -DENERGIZE_3=1"
|
|
6680 ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE_3\${ac_dB}ENERGIZE_3\${ac_dC}1\${ac_dD}
|
|
6681 \${ac_uA}ENERGIZE_3\${ac_uB}ENERGIZE_3\${ac_uC}1\${ac_uD}
|
|
6682 \${ac_eA}ENERGIZE_3\${ac_eB}ENERGIZE_3\${ac_eC}1\${ac_eD}
|
|
6683 "
|
|
6684 }
|
70
|
6685
|
|
6686 fi
|
|
6687
|
|
6688 test "${with_sound}" = "native" -o "${with_sound}" = "both" &&
|
0
|
6689 {
|
|
6690 test -n "$verbose" && \
|
|
6691 echo " defining HAVE_NATIVE_SOUND"
|
|
6692 echo "#define" HAVE_NATIVE_SOUND "1" >> confdefs.h
|
|
6693 DEFS="$DEFS -DHAVE_NATIVE_SOUND=1"
|
|
6694 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NATIVE_SOUND\${ac_dB}HAVE_NATIVE_SOUND\${ac_dC}1\${ac_dD}
|
|
6695 \${ac_uA}HAVE_NATIVE_SOUND\${ac_uB}HAVE_NATIVE_SOUND\${ac_uC}1\${ac_uD}
|
|
6696 \${ac_eA}HAVE_NATIVE_SOUND\${ac_eB}HAVE_NATIVE_SOUND\${ac_eC}1\${ac_eD}
|
|
6697 "
|
|
6698 }
|
70
|
6699
|
|
6700 test "${with_sound}" = "nas" -o "${with_sound}" = "both" &&
|
0
|
6701 {
|
|
6702 test -n "$verbose" && \
|
|
6703 echo " defining HAVE_NAS_SOUND"
|
|
6704 echo "#define" HAVE_NAS_SOUND "1" >> confdefs.h
|
|
6705 DEFS="$DEFS -DHAVE_NAS_SOUND=1"
|
|
6706 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NAS_SOUND\${ac_dB}HAVE_NAS_SOUND\${ac_dC}1\${ac_dD}
|
|
6707 \${ac_uA}HAVE_NAS_SOUND\${ac_uB}HAVE_NAS_SOUND\${ac_uC}1\${ac_uD}
|
|
6708 \${ac_eA}HAVE_NAS_SOUND\${ac_eB}HAVE_NAS_SOUND\${ac_eC}1\${ac_eD}
|
|
6709 "
|
|
6710 }
|
70
|
6711
|
|
6712 test "${old_nas}" = "true" &&
|
0
|
6713 {
|
|
6714 test -n "$verbose" && \
|
|
6715 echo " defining NAS_NO_ERROR_JUMP"
|
|
6716 echo "#define" NAS_NO_ERROR_JUMP "1" >> confdefs.h
|
|
6717 DEFS="$DEFS -DNAS_NO_ERROR_JUMP=1"
|
|
6718 ac_sed_defs="${ac_sed_defs}\${ac_dA}NAS_NO_ERROR_JUMP\${ac_dB}NAS_NO_ERROR_JUMP\${ac_dC}1\${ac_dD}
|
|
6719 \${ac_uA}NAS_NO_ERROR_JUMP\${ac_uB}NAS_NO_ERROR_JUMP\${ac_uC}1\${ac_uD}
|
|
6720 \${ac_eA}NAS_NO_ERROR_JUMP\${ac_eB}NAS_NO_ERROR_JUMP\${ac_eC}1\${ac_eD}
|
|
6721 "
|
|
6722 }
|
70
|
6723
|
|
6724
|
|
6725 test "${use_union_type}" != yes &&
|
0
|
6726 {
|
|
6727 test -n "$verbose" && \
|
|
6728 echo " defining NO_UNION_TYPE"
|
|
6729 echo "#define" NO_UNION_TYPE "1" >> confdefs.h
|
|
6730 DEFS="$DEFS -DNO_UNION_TYPE=1"
|
|
6731 ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_UNION_TYPE\${ac_dB}NO_UNION_TYPE\${ac_dC}1\${ac_dD}
|
|
6732 \${ac_uA}NO_UNION_TYPE\${ac_uB}NO_UNION_TYPE\${ac_uC}1\${ac_uD}
|
|
6733 \${ac_eA}NO_UNION_TYPE\${ac_eB}NO_UNION_TYPE\${ac_eC}1\${ac_eD}
|
|
6734 "
|
|
6735 }
|
70
|
6736
|
|
6737
|
0
|
6738
|
|
6739 echo "
|
|
6740
|
|
6741 Configured for \`${canonical}'.
|
|
6742
|
|
6743 Where should the build process find the source code? ${srcdir}
|
|
6744 What installation prefix should install use? ${prefix}
|
|
6745 What operating system and machine description files should XEmacs use?
|
|
6746 \`${opsysfile}' and \`${machfile}'
|
|
6747 What compiler should XEmacs be built with? ${CC} ${CFLAGS}
|
|
6748 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
|
|
6749 Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
|
|
6750 What window system should XEmacs use? ${window_system}${x_includes+
|
|
6751 Where do we find X Windows header files? }${x_includes}${x_libraries+
|
|
6752 Where do we find X Windows libraries? }${x_libraries}"
|
|
6753
|
70
|
6754 if test -n "$site_includes"; then
|
0
|
6755 echo " Additional header files: ${site_includes}"
|
|
6756 fi
|
|
6757
|
70
|
6758 if test -n "$site_libraries" -a -n "$site_runtime_libraries"; then
|
0
|
6759 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}"
|
70
|
6760 elif test -n "$site_libraries"; then
|
0
|
6761 echo " Additional libraries: ${site_libraries}"
|
70
|
6762 elif test -n "$site_runtime_libraries"; then
|
0
|
6763 echo " Additional libraries: ${site_runtime_libraries}"
|
|
6764 fi
|
|
6765
|
70
|
6766 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
6767 test "$with_term" = yes && echo " Compiling in support for TERM."
|
|
6768 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
|
|
6769 test "$with_xpm" = yes && echo " Compiling in support for XPM."
|
|
6770 if test "$with_xmu" != yes -a "$window_system" != none; then
|
0
|
6771 echo " No Xmu; substituting equivalent routines."
|
|
6772 fi
|
70
|
6773 test "$with_xface" = yes && echo " Compiling in support for X-Face headers."
|
|
6774 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion."
|
|
6775 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion."
|
|
6776 if test "$with_png" = yes -o "$with_png" = gnuz; then
|
0
|
6777 echo " Compiling in support for PNG image conversion."
|
|
6778 fi
|
70
|
6779 if test "$with_png" = gnuz; then
|
0
|
6780 echo " (Using -lgz instead of -lz.)"
|
|
6781 fi
|
70
|
6782 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)."
|
|
6783 test "$with_epoch" = yes && echo " Compiling in extra Epoch compatibility."
|
|
6784
|
|
6785 test "$with_sound" = nas && echo " Compiling in network sound support."
|
|
6786 test "$with_sound" = native && echo " Compiling in native sound support."
|
|
6787 test "$with_sound" = both && echo " Compiling in both network and native sound support."
|
|
6788 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously"
|
|
6789
|
|
6790 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
|
|
6791 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
|
|
6792 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
|
|
6793
|
|
6794 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
|
|
6795 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
6796 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
|
|
6797
|
|
6798 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
|
|
6799 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
|
|
6800 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
|
|
6801 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
|
|
6802 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
|
|
6803 test "$with_wnn" = yes && echo " Compiling in support for WNN on Mule (doesn't currently work)."
|
|
6804 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
|
|
6805
|
|
6806 test "$with_cde" = yes && echo " Compiling in support for CDE."
|
|
6807 test "$with_offix" = yes && echo " Compiling in support for OffiX."
|
|
6808 test "$with_mocklisp" = yes && echo " Compiling in support for Mocklisp."
|
|
6809 test "$with_sparcworks" = yes && echo " Compiling in support for SparcWorks."
|
|
6810 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)."
|
|
6811 test "$with_menubars" = "lucid" && echo " Using the Lucid menubar."
|
|
6812 if test "$with_menubars" = "motif"; then
|
0
|
6813 echo " Using the Motif menubar."
|
|
6814 echo " *WARNING* The Motif menubar is currently buggy. We recommend"
|
|
6815 echo " that you use the Lucid menubar instead. Re-run"
|
|
6816 echo " configure with --with-menubars='lucid'."
|
|
6817 fi
|
70
|
6818 test "$with_scrollbars" = lucid && echo " Using the Lucid scrollbar."
|
|
6819 test "$with_scrollbars" = motif && echo " Using the Motif scrollbar."
|
|
6820 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar."
|
|
6821 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes."
|
|
6822 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes."
|
|
6823
|
|
6824 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects."
|
|
6825 test "${debug}" = yes && echo " Compiling in extra code for debugging."
|
|
6826 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage."
|
|
6827 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
|
0
|
6828 echo "
|
|
6829 "
|
|
6830
|
70
|
6831
|
|
6832
|
0
|
6833 # Remove any trailing slashes in these variables.
|
|
6834 test -n "${prefix}" &&
|
|
6835 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
6836 test -n "${exec_prefix}" &&
|
|
6837 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
6838
|
|
6839
|
|
6840 # The preferred way to propogate these variables is regular @ substitutions.
|
|
6841 if test -n "$prefix"; then
|
|
6842 ac_prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%"
|
|
6843 else
|
|
6844 prefix=/usr/local
|
|
6845 fi
|
|
6846 if test -n "$exec_prefix"; then
|
|
6847 ac_prsub="$ac_prsub
|
|
6848 s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
|
|
6849 else
|
|
6850 exec_prefix='${prefix}' # Let make expand it.
|
|
6851 fi
|
|
6852
|
|
6853 # Any assignment to VPATH causes Sun make to only execute
|
|
6854 # the first set of double-colon rules, so remove it if not needed.
|
|
6855 # If there is a colon in the path, we need to keep it.
|
|
6856 if test "x$srcdir" = x.; then
|
|
6857 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
6858 fi
|
|
6859
|
|
6860 # Quote sed substitution magic chars in DEFS.
|
|
6861 cat >conftest.def <<EOF
|
|
6862 $DEFS
|
|
6863 EOF
|
|
6864 ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
|
|
6865 DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
|
|
6866 rm -f conftest.def
|
|
6867 # Substitute for predefined variables.
|
|
6868
|
|
6869 trap 'rm -f config.status; exit 1' 1 2 15
|
|
6870 echo creating config.status
|
|
6871 rm -f config.status
|
|
6872 cat > config.status <<EOF
|
|
6873 #!/bin/sh
|
|
6874 # Generated automatically by configure.
|
|
6875 # Run this file to recreate the current configuration.
|
|
6876 # This directory was configured as follows,
|
|
6877 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
6878 #
|
70
|
6879 # $0 $configure_args
|
|
6880
|
0
|
6881 ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
|
|
6882 for ac_option
|
|
6883 do
|
|
6884 case "\$ac_option" in
|
|
6885 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
70
|
6886 echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
|
|
6887 exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
|
0
|
6888 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|
6889 echo "config.status generated by autoconf version 1.11"
|
|
6890 exit 0 ;;
|
|
6891 -help | --help | --hel | --he | --h)
|
|
6892 echo "\$ac_cs_usage"; exit 0 ;;
|
|
6893 *) echo "\$ac_cs_usage"; exit 1 ;;
|
|
6894 esac
|
|
6895 done
|
|
6896
|
|
6897 trap 'rm -fr $internal_makefile_list src/config.h conftest*; exit 1' 1 2 15
|
|
6898 LN_S='$LN_S'
|
|
6899 CC='$CC'
|
|
6900 CPP='$CPP'
|
|
6901 RANLIB='$RANLIB'
|
|
6902 INSTALL='$INSTALL'
|
|
6903 INSTALL_PROGRAM='$INSTALL_PROGRAM'
|
|
6904 INSTALL_DATA='$INSTALL_DATA'
|
|
6905 YACC='$YACC'
|
|
6906 SET_MAKE='$SET_MAKE'
|
|
6907 ALLOCA='$ALLOCA'
|
|
6908 version='$version'
|
|
6909 configuration='$configuration'
|
|
6910 canonical='$canonical'
|
|
6911 srcdir='$srcdir'
|
|
6912 prefix='$prefix'
|
|
6913 exec_prefix='$exec_prefix'
|
|
6914 bindir='$bindir'
|
|
6915 datadir='$datadir'
|
|
6916 statedir='$statedir'
|
|
6917 libdir='$libdir'
|
|
6918 mandir='$mandir'
|
|
6919 infodir='$infodir'
|
|
6920 infodir_user_defined='$infodir_user_defined'
|
|
6921 lispdir='$lispdir'
|
|
6922 lispdir_user_defined='$lispdir_user_defined'
|
|
6923 sitelispdir='$sitelispdir'
|
|
6924 etcdir='$etcdir'
|
|
6925 etcdir_user_defined='$etcdir_user_defined'
|
|
6926 lockdir='$lockdir'
|
|
6927 lockdir_user_defined='$lockdir_user_defined'
|
|
6928 archlibdir='$archlibdir'
|
|
6929 archlibdir_user_defined='$archlibdir_user_defined'
|
|
6930 docdir='$docdir'
|
|
6931 bitmapdir='$bitmapdir'
|
|
6932 c_switch_system='$c_switch_system'
|
|
6933 c_switch_machine='$c_switch_machine'
|
|
6934 libsrc_libs='$libsrc_libs'
|
|
6935 LD_SWITCH_X_SITE='$LD_SWITCH_X_SITE'
|
|
6936 LD_SWITCH_X_SITE_AUX='$LD_SWITCH_X_SITE_AUX'
|
|
6937 C_SWITCH_X_SITE='$C_SWITCH_X_SITE'
|
|
6938 LD_SWITCH_SITE='$LD_SWITCH_SITE'
|
|
6939 C_SWITCH_SITE='$C_SWITCH_SITE'
|
|
6940 CFLAGS='$CFLAGS'
|
|
6941 native_sound_lib='$native_sound_lib'
|
|
6942 machfile='$machfile'
|
|
6943 opsysfile='$opsysfile'
|
|
6944 dynodump_arch='$dynodump_arch'
|
|
6945 internal_makefile_list='$internal_makefile_list'
|
|
6946 LIBS='$LIBS'
|
|
6947 top_srcdir='$top_srcdir'
|
|
6948 ac_prsub='$ac_prsub'
|
|
6949 ac_vpsub='$ac_vpsub'
|
|
6950 extrasub='$extrasub'
|
|
6951 EOF
|
|
6952 cat >> config.status <<\EOF
|
|
6953
|
|
6954 ac_given_srcdir=$srcdir
|
|
6955
|
|
6956 CONFIG_FILES=${CONFIG_FILES-"$internal_makefile_list"}
|
|
6957 for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
|
|
6958 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
6959 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
6960 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
6961 # The file is in a subdirectory.
|
|
6962 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
6963 ac_dir_suffix="/$ac_dir"
|
|
6964 else
|
|
6965 ac_dir_suffix=
|
|
6966 fi
|
|
6967
|
|
6968 # A "../" for each directory in $ac_dir_suffix.
|
|
6969 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
6970 case "$ac_given_srcdir" in
|
|
6971 .) srcdir=.
|
|
6972 if test -z "$ac_dir_suffix"; then top_srcdir=.
|
|
6973 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
6974 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
6975 *) # Relative path.
|
|
6976 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
6977 top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
6978 esac
|
|
6979
|
|
6980 echo creating "$ac_file"
|
|
6981 rm -f "$ac_file"
|
|
6982 comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
|
|
6983 case "$ac_file" in
|
|
6984 *.c | *.h | *.C | *.cc | *.m ) echo "/* $comment_str */" > "$ac_file" ;;
|
|
6985 * ) echo "# $comment_str" > "$ac_file" ;;
|
|
6986 esac
|
|
6987 sed -e "
|
|
6988 $ac_prsub
|
|
6989 $ac_vpsub
|
|
6990 $extrasub
|
|
6991 s%@LN_S@%$LN_S%g
|
|
6992 s%@CC@%$CC%g
|
|
6993 s%@CPP@%$CPP%g
|
|
6994 s%@RANLIB@%$RANLIB%g
|
|
6995 s%@INSTALL@%$INSTALL%g
|
|
6996 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|
6997 s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
6998 s%@YACC@%$YACC%g
|
|
6999 s%@SET_MAKE@%$SET_MAKE%g
|
|
7000 s%@ALLOCA@%$ALLOCA%g
|
|
7001 s%@version@%$version%g
|
|
7002 s%@configuration@%$configuration%g
|
|
7003 s%@canonical@%$canonical%g
|
|
7004 s%@srcdir@%$srcdir%g
|
|
7005 s%@prefix@%$prefix%g
|
|
7006 s%@exec_prefix@%$exec_prefix%g
|
|
7007 s%@bindir@%$bindir%g
|
|
7008 s%@datadir@%$datadir%g
|
|
7009 s%@statedir@%$statedir%g
|
|
7010 s%@libdir@%$libdir%g
|
|
7011 s%@mandir@%$mandir%g
|
|
7012 s%@infodir@%$infodir%g
|
|
7013 s%@infodir_user_defined@%$infodir_user_defined%g
|
|
7014 s%@lispdir@%$lispdir%g
|
|
7015 s%@lispdir_user_defined@%$lispdir_user_defined%g
|
|
7016 s%@sitelispdir@%$sitelispdir%g
|
|
7017 s%@etcdir@%$etcdir%g
|
|
7018 s%@etcdir_user_defined@%$etcdir_user_defined%g
|
|
7019 s%@lockdir@%$lockdir%g
|
|
7020 s%@lockdir_user_defined@%$lockdir_user_defined%g
|
|
7021 s%@archlibdir@%$archlibdir%g
|
|
7022 s%@archlibdir_user_defined@%$archlibdir_user_defined%g
|
|
7023 s%@docdir@%$docdir%g
|
|
7024 s%@bitmapdir@%$bitmapdir%g
|
|
7025 s%@c_switch_system@%$c_switch_system%g
|
|
7026 s%@c_switch_machine@%$c_switch_machine%g
|
|
7027 s%@libsrc_libs@%$libsrc_libs%g
|
|
7028 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
|
|
7029 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
|
|
7030 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
|
|
7031 s%@LD_SWITCH_SITE@%$LD_SWITCH_SITE%g
|
|
7032 s%@C_SWITCH_SITE@%$C_SWITCH_SITE%g
|
|
7033 s%@CFLAGS@%$CFLAGS%g
|
|
7034 s%@native_sound_lib@%$native_sound_lib%g
|
|
7035 s%@machfile@%$machfile%g
|
|
7036 s%@opsysfile@%$opsysfile%g
|
|
7037 s%@dynodump_arch@%$dynodump_arch%g
|
|
7038 s%@internal_makefile_list@%$internal_makefile_list%g
|
|
7039 s%@LIBS@%$LIBS%g
|
|
7040 s%@top_srcdir@%$top_srcdir%g
|
|
7041 s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
|
|
7042 fi; done
|
|
7043
|
|
7044 # These sed commands are put into ac_sed_defs when defining a macro.
|
|
7045 # They are broken into pieces to make the sed script easier to manage.
|
|
7046 # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
|
|
7047 # is the cpp macro being defined and VALUE is the value it is being given.
|
|
7048 # Each defining turns into a single global substitution command.
|
|
7049 # Hopefully no one uses "!" as a variable value.
|
|
7050 # Other candidates for the sed separators, like , and @, do get used.
|
|
7051 #
|
|
7052 # ac_d sets the value in "#define NAME VALUE" lines.
|
|
7053 ac_dA='s!^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
7054 ac_dB='\([ ][ ]*\)[^ ]*!\1#\2'
|
|
7055 ac_dC='\3'
|
|
7056 ac_dD='!g'
|
|
7057 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|
7058 ac_uA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
7059 ac_uB='\([ ]\)!\1#\2define\3'
|
|
7060 ac_uC=' '
|
|
7061 ac_uD='\4!g'
|
|
7062 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|
7063 ac_eA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
7064 ac_eB='$!\1#\2define\3'
|
|
7065 ac_eC=' '
|
|
7066 ac_eD='!g'
|
|
7067 rm -f conftest.sed
|
|
7068 EOF
|
|
7069 # Turn off quoting long enough to insert the sed commands.
|
|
7070 rm -f conftest.sh
|
|
7071 cat > conftest.sh <<EOF
|
|
7072 $ac_sed_defs
|
|
7073 EOF
|
|
7074
|
|
7075 # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
|
|
7076 # on the size of here documents.
|
|
7077
|
|
7078 # Maximum number of lines to put in a single here document.
|
|
7079 ac_max_sh_lines=9
|
|
7080
|
|
7081 while :
|
|
7082 do
|
|
7083 # wc gives bogus results for an empty file on some AIX systems.
|
|
7084 ac_lines=`grep -c . conftest.sh`
|
|
7085 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|
7086 rm -f conftest.s1 conftest.s2
|
|
7087 sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
|
|
7088 sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
|
|
7089 # Write a limited-size here document to append to conftest.sed.
|
|
7090 echo 'cat >> conftest.sed <<CONFEOF' >> config.status
|
|
7091 cat conftest.s1 >> config.status
|
|
7092 echo 'CONFEOF' >> config.status
|
|
7093 rm -f conftest.s1 conftest.sh
|
|
7094 mv conftest.s2 conftest.sh
|
|
7095 done
|
|
7096 rm -f conftest.sh
|
|
7097
|
|
7098 # Now back to your regularly scheduled config.status.
|
|
7099 cat >> config.status <<\EOF
|
|
7100 # This sed command replaces #undef's with comments. This is necessary, for
|
|
7101 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
7102 # on some systems where configure will not decide to define it in
|
|
7103 # src/config.h.
|
|
7104 cat >> conftest.sed <<\CONFEOF
|
|
7105 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
|
7106 CONFEOF
|
|
7107 rm -f conftest.h
|
|
7108 # Break up the sed commands because old seds have small limits.
|
|
7109 ac_max_sed_lines=20
|
|
7110
|
|
7111 CONFIG_HEADERS=${CONFIG_HEADERS-"src/config.h"}
|
|
7112 for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
|
|
7113 echo creating $ac_file
|
|
7114
|
|
7115 cp $ac_given_srcdir/$ac_file.in conftest.h1
|
|
7116 cp conftest.sed conftest.stm
|
|
7117 while :
|
|
7118 do
|
|
7119 ac_lines=`grep -c . conftest.stm`
|
|
7120 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|
7121 rm -f conftest.s1 conftest.s2 conftest.h2
|
|
7122 sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
|
|
7123 sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
|
|
7124 sed -f conftest.s1 < conftest.h1 > conftest.h2
|
|
7125 rm -f conftest.s1 conftest.h1 conftest.stm
|
|
7126 mv conftest.h2 conftest.h1
|
|
7127 mv conftest.s2 conftest.stm
|
|
7128 done
|
|
7129 rm -f conftest.stm conftest.h
|
|
7130 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|
7131 cat conftest.h1 >> conftest.h
|
|
7132 rm -f conftest.h1
|
|
7133 if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
7134 # The file exists and we would not be changing it.
|
|
7135 echo "$ac_file is unchanged"
|
|
7136 rm -f conftest.h
|
|
7137 else
|
|
7138 rm -f $ac_file
|
|
7139 mv conftest.h $ac_file
|
|
7140 fi
|
|
7141 fi; done
|
|
7142 rm -f conftest.sed
|
|
7143
|
|
7144
|
|
7145
|
|
7146 exit 0
|
|
7147 EOF
|
|
7148 chmod +x config.status
|
|
7149 # Some shells look in PATH for config.status without the "./".
|
|
7150 test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
|
|
7151
|
|
7152 # Build:
|
|
7153 # src/Makefile from ${srcdir}/src/Makefile.in
|
|
7154 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in
|
|
7155 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in
|
|
7156 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in
|
|
7157 # and possibly
|
|
7158 # lwlib/energize/Makefile from ${srcdir}/lwlib/energize/Makefile.in.
|
|
7159 # This must be done after src/config.h is built, since we rely on that
|
|
7160 # file. Only do the build if "config.status" is present, since its
|
|
7161 # non-presence indicates an error occured.
|
|
7162 status=$?
|
70
|
7163 if test ! -f ./config.status ; then
|
0
|
7164 exit $status
|
|
7165 fi
|
|
7166 topsrcdir=${srcdir}
|
|
7167 # We discard all lines in Makefile.in that start with `# Generated' or /**/#
|
|
7168 # because some cpps get confused by them.
|
|
7169 # Really we should preserve them somehow into Makefile,
|
|
7170 # but that is beyond my level of shell programming.
|
|
7171 makefile_command='echo "creating src/Makefile";
|
|
7172 topsrcdir='"${topsrcdir}"';
|
|
7173 ( cd ./src;
|
|
7174 rm -f junk.c;
|
|
7175 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
7176 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
7177 < junk.cpp '\
|
|
7178 ' sed -e '\''s/^#.*//'\'' '\
|
|
7179 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7180 ' -e '\''s/^ / /'\'' '\
|
|
7181 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7182 ' > Makefile.new;
|
|
7183 chmod 444 Makefile.new;
|
|
7184 mv -f Makefile.new Makefile;
|
|
7185 rm -f junk.c junk.cpp;
|
|
7186 )'
|
|
7187 eval `echo $makefile_command`
|
|
7188 lwlib_makefile_command='echo "creating lwlib/Makefile";
|
|
7189 topsrcdir='"${topsrcdir}"';
|
|
7190 ( cd ./lwlib;
|
|
7191 rm -f junk.c;
|
|
7192 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
7193 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
7194 < junk.cpp '\
|
|
7195 ' sed -e '\''s/^#.*//'\'' '\
|
|
7196 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7197 ' -e '\''s/^ / /'\'' '\
|
|
7198 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7199 ' > Makefile.new;
|
|
7200 chmod 444 Makefile.new;
|
|
7201 mv -f Makefile.new Makefile;
|
|
7202 rm -f junk.c junk.cpp;
|
|
7203 )'
|
|
7204 eval `echo $lwlib_makefile_command`
|
|
7205 lib_src_makefile_command='echo "creating lib-src/Makefile";
|
|
7206 topsrcdir='"${topsrcdir}"';
|
|
7207 ( cd ./lib-src;
|
|
7208 rm -f junk.c;
|
|
7209 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
7210 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
7211 < junk.cpp '\
|
|
7212 ' sed -e '\''s/^#.*//'\'' '\
|
|
7213 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7214 ' -e '\''s/^ / /'\'' '\
|
|
7215 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7216 ' > Makefile.new;
|
|
7217 chmod 444 Makefile.new;
|
|
7218 mv -f Makefile.new Makefile;
|
|
7219 rm -f junk.c junk.cpp;
|
|
7220 )'
|
|
7221 eval `echo $lib_src_makefile_command`
|
70
|
7222
|
|
7223 # Mule utilitity programs - currently disabled
|
|
7224 if test "${with_mule_util}" = "yes"; then
|
|
7225 lib_src_mule_makefile_command='echo "creating lib-src/mule/Makefile";
|
|
7226 topsrcdir='"${topsrcdir}"';
|
|
7227 ( cd ./lib-src/mule;
|
|
7228 rm -f junk.c;
|
|
7229 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
|
7230 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
|
7231 < junk.cpp '\
|
|
7232 ' sed -e '\''s/^#.*//'\'' '\
|
|
7233 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7234 ' -e '\''s/^ / /'\'' '\
|
|
7235 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7236 ' > Makefile.new;
|
|
7237 chmod 444 Makefile.new;
|
|
7238 mv -f Makefile.new Makefile;
|
|
7239 rm -f junk.c junk.cpp;
|
|
7240 )'
|
|
7241 eval `echo $lib_src_mule_makefile_command`
|
|
7242 fi # Mule
|
|
7243
|
0
|
7244 dynodump_makefile_command='echo "creating dynodump/Makefile";
|
|
7245 topsrcdir='"${topsrcdir}"';
|
|
7246 ( cd ./dynodump;
|
|
7247 rm -f junk.c;
|
|
7248 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
7249 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
7250 < junk.cpp '\
|
|
7251 ' sed -e '\''s/^#.*//'\'' '\
|
|
7252 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7253 ' -e '\''s/^ / /'\'' '\
|
|
7254 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7255 ' > Makefile.new;
|
|
7256 chmod 444 Makefile.new;
|
|
7257 mv -f Makefile.new Makefile;
|
|
7258 rm -f junk.c junk.cpp;
|
|
7259 )'
|
|
7260 eval `echo $dynodump_makefile_command`
|
70
|
7261 if test "${with_energize}" = "yes" ; then
|
0
|
7262 energize_makefile_command='echo "creating lwlib/energize/Makefile";
|
|
7263 topsrcdir='"${topsrcdir}"';
|
|
7264 ( cd ./lwlib/energize;
|
|
7265 rm -f junk.c;
|
|
7266 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
7267 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
7268 < junk.cpp '\
|
|
7269 ' sed -e '\''s/^#.*//'\'' '\
|
|
7270 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7271 ' -e '\''s/^ / /'\'' '\
|
|
7272 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7273 ' > Makefile.new;
|
|
7274 chmod 444 Makefile.new;
|
|
7275 mv -f Makefile.new Makefile;
|
|
7276 rm -f junk.c junk.cpp;
|
|
7277 )'
|
|
7278 eval `echo $energize_makefile_command`
|
|
7279 fi
|
|
7280 # AC-OUTPUT has created `config.status' already. We need to add the
|
|
7281 # above commands to re-create `src/Makefile', `lwlib/Makefile',
|
8
|
7282 # `lib-src/Makefile', `dynodump/Makefile', and possibly
|
0
|
7283 # `lwlib/energize/Makefile', and we need to insert them before the final
|
|
7284 # "exit 0" which appears at the end of `config.status'.
|
|
7285 <config.status sed -e 's/^exit 0$//' >config.new
|
|
7286 echo $makefile_command >>config.new
|
|
7287 echo $lwlib_makefile_command >>config.new
|
|
7288 echo $lib_src_makefile_command >>config.new
|
70
|
7289 if test "${with_mule_util}" = "yes"; then
|
|
7290 echo $lib_src_mule_makefile_command >>config.new
|
|
7291 fi
|
0
|
7292 echo $dynodump_makefile_command >>config.new
|
|
7293 echo $man_makefile_command >>config.new
|
70
|
7294 if test "${with_energize}" = "yes" ; then
|
0
|
7295 echo $energize_makefile_command >>config.new
|
|
7296 fi
|
|
7297 echo exit 0 >>config.new
|
|
7298 mv -f config.new config.status
|
|
7299 chmod +x config.status
|
|
7300 # Don't let the fact that we just rewrote config.status make Makefile think
|
|
7301 # that it is now newer. We have just rewritten all of the Makefiles as well.
|
70
|
7302 MFS="Makefile \
|
|
7303 src/Makefile src/Makefile.in \
|
|
7304 lib-src/Makefile lib-src/Makefile.in \
|
|
7305 dynodump/Makefile dynodump/Makefile.in \
|
|
7306 lwlib/Makefile lwlib/Makefile.in"
|
|
7307 chmod a+w $MFS
|
|
7308 touch $MFS
|
|
7309 chmod 444 $MFS
|
0
|
7310
|
|
7311 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then
|
|
7312 echo creating src/gdbinit
|
|
7313 echo source $topsrcdir/src/gdbinit > src/gdbinit
|
|
7314 fi
|
|
7315
|
|
7316 exit 0
|
|
7317
|