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