comparison configure @ 0:376386a54a3c r19-14

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