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