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