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