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