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