comparison configure.in @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents 0b7f3b634cf2
children b9518feda344
comparison
equal deleted inserted replaced
69:804d1389bcd6 70:131b0175ea99
76 # # 76 # #
77 # Establish some default values # 77 # Establish some default values #
78 # # 78 # #
79 ############################################################################ 79 ############################################################################
80 80
81 run_in_place='no' 81 #run_in_place='no'
82 prefix='/usr/local' 82 prefix='/usr/local'
83 exec_prefix='${prefix}' 83 exec_prefix='${prefix}'
84 bindir='${exec_prefix}/bin' 84 bindir='${exec_prefix}/bin'
85 # FSF 19.29 changes to: 85 # FSF 19.29 changes to:
86 # datadir='${prefix}/share' 86 # datadir='${prefix}/share'
114 internal_makefile_list='Makefile lib-src/Makefile.in src/Makefile.in lwlib/Makefile.in dynodump/Makefile.in' 114 internal_makefile_list='Makefile lib-src/Makefile.in src/Makefile.in lwlib/Makefile.in dynodump/Makefile.in'
115 energize_version='no' 115 energize_version='no'
116 native_sound_lib='' 116 native_sound_lib=''
117 # make normal error-checking be the default in alpha and beta versions, so 117 # make normal error-checking be the default in alpha and beta versions, so
118 # that bugs get noticed. Change this for released versions. 118 # that bugs get noticed. Change this for released versions.
119 error_check_default='no' 119 error_check_default='yes'
120 error_check_extents=$error_check_default 120 error_check_extents=$error_check_default
121 error_check_typecheck=$error_check_default 121 error_check_typecheck=$error_check_default
122 error_check_bufpos=$error_check_default 122 error_check_bufpos=$error_check_default
123 error_check_gc=$error_check_default 123 error_check_gc=$error_check_default
124 error_check_malloc=$error_check_default 124 error_check_malloc=$error_check_default
148 # echo "" ${stuff_to_filter} | sed -e 's:^ ::' 148 # echo "" ${stuff_to_filter} | sed -e 's:^ ::'
149 149
150 # On Sun systems, people sometimes set up the variable CPP 150 # On Sun systems, people sometimes set up the variable CPP
151 # with a value that is a directory, not an executable at all. 151 # with a value that is a directory, not an executable at all.
152 # Detect that case, and ignore that value. 152 # Detect that case, and ignore that value.
153 if [ "x$CPP" != x ] && [ -d "$CPP" ] ; then 153 test -n "$CPP" -a -d "$CPP" && CPP=
154 CPP=
155 fi
156 154
157 ############################################################################ 155 ############################################################################
158 # # 156 # #
159 # Usage messages # 157 # Usage messages #
160 # # 158 # #
206 204
207 205
208 Installation options: 206 Installation options:
209 207
210 --prefix=DIR Install files below DIR. Defaults to \`${prefix}'. 208 --prefix=DIR Install files below DIR. Defaults to \`${prefix}'.
211 --run-in-place Use the source tree for installation.
212 209
213 210
214 Window-system options: 211 Window-system options:
215 212
216 --with-x (*) Support the X Window System. 213 --with-x (*) Support the X Window System.
217 --with-x=no Don't support X. 214 --with-x=no Don't support X.
218 --x-includes=DIR Search for X header files in DIR. 215 --x-includes=DIR Search for X header files in DIR.
219 --x-libraries=DIR Search for X libraries in DIR. 216 --x-libraries=DIR Search for X libraries in DIR.
220 --with-ns Support NeXTstep windows (Doesn't work, option 217 --with-ns Support NeXTstep windows (not yet implemented).
221 removed in 20.3)
222 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid 218 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid
223 widgets emulate Motif (mostly) but are faster. 219 widgets emulate Motif (mostly) but are faster.
224 *WARNING* The Motif menubar is currently broken. 220 *WARNING* The Motif menubar is currently broken.
225 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena, or no). 221 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena, or no).
226 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, or no). 222 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, or no).
274 --with-sound=both Compile with native and network sound support. 270 --with-sound=both Compile with native and network sound support.
275 --native-sound-lib=LIB Native sound support library. Needed on Suns 271 --native-sound-lib=LIB Native sound support library. Needed on Suns
276 with --with-sound=both because both sound libraries 272 with --with-sound=both because both sound libraries
277 are called libaudio. 273 are called libaudio.
278 --with-epoch Compile with additional Epoch compatibility. 274 --with-epoch Compile with additional Epoch compatibility.
279 This doesn't work yet.
280 --with-mocklisp Compile with Mocklisp support. Don't do this 275 --with-mocklisp Compile with Mocklisp support. Don't do this
281 unless you have a Mocklisp program that you need 276 unless you have a Mocklisp program that you need
282 to run. 277 to run.
283 --usage-tracking Enable some Sun-internal code. If you don't 278 --usage-tracking Enable some Sun-internal code. If you don't
284 know what this is, you don't want it. 279 know what this is, you don't want it.
285 280
281 Internationalization options:
282
283 --with-mule Compile with Mule (MUlti-Lingual Emacs) support,
284 needed to suport non-Latin-1 (including Asian) languages.
285 --with-xim=xlib Compile with support for X input methods,
286 --with-xim=motif (*) Used in conjunction with Mule support.
287 Use either raw Xlib to provide XIM support, or
288 the Motif XmIm* routines (when available).
289 If the XmIm* routines are autodetected,
290 then the default is --with-xim=motif, else --with-xim=no.
291 --with-canna Compile with support for Canna (an input method
292 used in conjunction with Mule support).
293 --with-wnn Compile with support for WNN (an input method
294 used in conjunction with Mule support).
295 This doesn't work yet.
296 --with-i18n3 Compile with I18N level 3 (support for message
297 translation). This doesn't currently work.
298
286 299
287 Debugging options: 300 Debugging options:
288 301
289 --debug Compile with support for debugging XEmacs. 302 --debug Compile with support for debugging XEmacs.
290 (Causes code-size increase and little loss of speed.) 303 (Causes code-size increase but no loss of speed.)
291 --error-checking=TYPE[,TYPE]... 304 --error-checking=TYPE[,TYPE]...
292 Compile with internal error-checking added. 305 Compile with internal error-checking added.
293 Causes noticeable loss of speed. Valid types 306 Causes noticeable loss of speed. Valid types
294 are extents, bufpos, malloc, gc, typecheck. 307 are extents, bufpos, malloc, gc, typecheck.
295 --error-checking=none Disable all internal error-checking (the default). 308 --error-checking=none Disable all internal error-checking (the default).
317 330
318 You may also specify any of the \`path' variables found in 331 You may also specify any of the \`path' variables found in
319 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and 332 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and
320 so on. Note that we recommend against explicitly setting any of these 333 so on. Note that we recommend against explicitly setting any of these
321 variables. See the INSTALL file for a complete list plus the reasons 334 variables. See the INSTALL file for a complete list plus the reasons
322 we advise not changing them. Specifying a \'path' variable will override 335 we advise not changing them.
323 the --run-in-place value.
324 336
325 If successful, ${progname} leaves its status in config.status. If 337 If successful, ${progname} leaves its status in config.status. If
326 unsuccessful after disturbing the status quo, it removes config.status." 338 unsuccessful after disturbing the status quo, it removes config.status."
327
328 339
329 ############################################################################ 340 ############################################################################
330 # # 341 # #
331 # Options processing # 342 # Options processing #
332 # # 343 # #
347 ### to produce config.status. It turns out that "set - ${arguments}" doesn't 358 ### to produce config.status. It turns out that "set - ${arguments}" doesn't
348 ### work portably. 359 ### work portably.
349 ### However, it also turns out that many shells cannot expand ${10} at all. 360 ### However, it also turns out that many shells cannot expand ${10} at all.
350 ### So using an index variable doesn't work either. It is possible to use 361 ### So using an index variable doesn't work either. It is possible to use
351 ### some shell magic to make 'set x "$arguments"; shift' work portably. 362 ### some shell magic to make 'set x "$arguments"; shift' work portably.
352 while [ $# != 0 ]; do 363 while test $# != 0; do
353 arg="$1"; shift 364 arg="$1"; shift
354 case "${arg}" in 365 case "${arg}" in
355 366
356 ## Anything starting with a hyphen we assume is an option. 367 ## Anything starting with a hyphen we assume is an option.
357 -* ) 368 -* )
384 opt="`echo '' ${opt} | sed -e 's:^ ::' | tr - _`" 395 opt="`echo '' ${opt} | sed -e 's:^ ::' | tr - _`"
385 396
386 ## Process the option. 397 ## Process the option.
387 case "${opt}" in 398 case "${opt}" in
388 399
389 ## Has the user specified which window systems they want to support? 400 ## Process (many) boolean options
390 "with_x" | "with_x11" ) 401 run_in_place | \
402 with_x | \
403 with_x11 | \
404 with_gcc | \
405 with_lcc | \
406 with_gnu_make | \
407 with_epoch | \
408 dynamic | \
409 with_term | \
410 with_cde | \
411 with_offix | \
412 with_xpm | \
413 with_gif | \
414 with_jpeg | \
415 with_tiff | \
416 with_socks | \
417 with_xface | \
418 with_xmu | \
419 quantify | \
420 with_ns | \
421 with_toolbars | \
422 with_tty | \
423 with_i18n3 | \
424 with_mule | \
425 with_canna | \
426 with_wnn | \
427 with_mocklisp | \
428 with_energize | \
429 with_sparcworks | \
430 with_tooltalk | \
431 external_widget | \
432 extra_verbose | \
433 const_is_losing | \
434 usage_tracking | \
435 use_union_type | \
436 debug | \
437 use_assertions | \
438 memory_usage_stats | \
439 no_doc_file )
391 ## Make sure the value given was either "yes" or "no". 440 ## Make sure the value given was either "yes" or "no".
392 case "${val}" in 441 case "${val}" in
393 y | ye | yes ) val=yes ;; 442 y | ye | yes ) val=yes ;;
394 n | no ) val=no ;; 443 n | no ) val=no ;;
395 * ) 444 * )
396 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value. 445 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
397 Set it to either \`yes' or \`no'." 446 Set it to either \`yes' or \`no'."
398 echo "${short_usage}") >&2 447 echo "${short_usage}") >&2
399 exit 1 448 exit 1 ;;
400 ;;
401 esac 449 esac
402 eval "with_x11=\"${val}\"" 450 eval "${opt}=\"${val}\"" ;;
403 ;; 451
404 452
405 ## Has the user specified whether or not they want GCC or LCC? 453 ## Options that take a user-supplied value, as in --puresize=8000000
406 "with_gcc" | "with_lcc" ) 454 srcdir | \
407 ## Make sure the value given was either "yes" or "no". 455 compiler | \
408 case "${val}" in 456 puresize | \
409 y | ye | yes ) val=yes ;; 457 native_sound_lib | \
410 n | no ) val=no ;; 458 x_includes | \
411 * ) 459 x_libraries | \
412 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value. 460 site_includes | \
413 Set it to either \`yes' or \`no'." 461 site_libraries | \
414 echo "${short_usage}") >&2 462 site_runtime_libraries )
415 exit 1
416 ;;
417 esac
418 eval "${opt}=\"${val}\""
419 if [ "${with_gcc}" = "yes" ] && [ "${with_lcc}" = "yes" ] ; then
420 (echo "${progname}: only one of --with-gcc and --with-lcc may be specified."
421 echo "${short_usage}") >&2
422 exit 1
423 fi
424 ;;
425
426 ## Has the user specified a compiler to use?
427 "compiler" )
428 ## If the value was omitted, get it from the next argument. 463 ## If the value was omitted, get it from the next argument.
429 if [ "${valomitted}" = "yes" ]; then 464 if test "${valomitted}" = "yes" ; then
430 ## Get the next argument from the argument list, if there is one. 465 ## Get the next argument from the argument list, if there is one.
431 if [ $# = 0 ]; then 466 if test $# = 0 ; then
432 (echo "${progname}: You must give a value for the \`--${optname}' option, as in 467 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
433 \`--${optname}=FOO'." 468 \`--${optname}=FOO'."
434 echo "${short_usage}") >&2 469 echo "${short_usage}") >&2
435 exit 1 470 exit 1
436 fi 471 fi
437 val="$1"; shift 472 val="$1"; shift
438 fi 473 fi
439 compiler="${val}" 474 eval "${opt}=\"${val}\""
440 ;; 475 ;;
441 476
442 ## Has the user specified special GNU Make support? 477 ### Options that take "yes", "no", or "default" values
443 "with_gnu_make" ) 478 rel_alloc | \
444 ## Make sure the value given was either "yes" or "no". 479 use_system_malloc )
445 case "${val}" in
446 y | ye | yes ) val=yes ;;
447 n | no ) val=no ;;
448 * )
449 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
450 Set it to either \`yes' or \`no'."
451 echo "${short_usage}") >&2
452 exit 1
453 ;;
454 esac
455 eval "${opt}=\"${val}\""
456 ;;
457
458 ## This option will not force a rebuild of the DOC
459 ## file each time that a source or Lisp file has changed.
460 ## If you want the DOC file rebuilt, remove it. A side
461 ## effect of this is that you may get complaints about
462 ## "doc lost for function foobar" or "strange doc for
463 ## function foobar", but in general these should not cause
464 ## problems.
465 "no_doc_file" )
466 ## Make sure the value given was either "yes" or "no".
467 case "${val}" in
468 y | ye | yes ) val=yes ;;
469 n | no ) val=no ;;
470 * )
471 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
472 Set it to either \`yes' or \`no'."
473 echo "${short_usage}") >&2
474 exit 1
475 ;;
476 esac
477 eval "${opt}=\"${val}\""
478 ;;
479
480 # Enable use of the union type for Lisp_Objects.
481 # mly, eat your heart out ...
482 "use_union_type" )
483 ## Make sure the value given was either "yes" or "no".
484 case "${val}" in
485 y | ye | yes ) val=yes ;;
486 n | no ) val=no ;;
487 * )
488 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
489 Set it to either \`yes' or \`no'."
490 echo "${short_usage}") >&2
491 exit 1
492 ;;
493 esac
494 eval "${opt}=\"${val}\""
495 ;;
496
497 ## Has the user specified a source directory?
498 "srcdir" )
499 ## If the value was omitted, get it from the next argument.
500 if [ "${valomitted}" = "yes" ]; then
501 ## Get the next argument from the argument list, if there is one.
502 if [ $# = 0 ]; then
503 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
504 \`--${optname}=FOO'."
505 echo "${short_usage}") >&2
506 exit 1
507 fi
508 val="$1"; shift
509 fi
510 srcdir="${val}"
511 ;;
512
513 ## Has the user requested sound support?
514 "with_sound" )
515 ## value can be native, nas or both. yes is allowed
516 ## as a backwards compatible synonym for native
517 case "${val}" in
518 y | ye | yes ) val=native ;;
519 n | no | non | none ) val=no;;
520 na | nat | nati | nativ | native ) val=native ;;
521 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
522 b | bo | bot | both ) val=both;;
523 * )
524 (echo "${progname}: the \`--${optname}' option should have one of the values \`native', \`nas', \`both', or \`none'."
525 echo "${short_usage}") >&2
526 exit 1
527 ;;
528 esac
529 eval "${opt}=\"${val}\""
530 ;;
531
532 ## Has the user specified a native sound library?
533 ## (the reason for this flag is that, under Suns, both NAS sound
534 ## and native sound call their library libaudio.a)
535 "native_sound_lib" )
536 ## If the value was omitted, get it from the next argument.
537 if [ "${valomitted}" = "yes" ]; then
538 ## Get the next argument from the argument list, if there is one.
539 if [ $# = 0 ]; then
540 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
541 \`--${optname}=FOO'."
542 echo "${short_usage}") >&2
543 exit 1
544 fi
545 val="$1"; shift
546 fi
547 native_sound_lib="${val}"
548 ;;
549
550 ## Has the user requested extra Epoch compatibility?
551 "with_epoch" )
552 ## Make sure the value given was either "yes" or "no".
553 case "${val}" in
554 y | ye | yes ) val=yes ;;
555 n | no ) val=no ;;
556 * )
557 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
558 Set it to either \`yes' or \`no'."
559 echo "${short_usage}") >&2
560 exit 1
561 ;;
562 esac
563 eval "${opt}=\"${val}\""
564 ;;
565
566 ## Has the user specified a change to the default linking?
567 "dynamic" )
568 ## Make sure the value given was either "yes" or "no".
569 case "${val}" in
570 y | ye | yes ) val=yes ;;
571 n | no ) val=no ;;
572 * )
573 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
574 Set it to either \`yes' or \`no'."
575 echo "${short_usage}") >&2
576 exit 1
577 ;;
578 esac
579 eval "${opt}=\"${val}\""
580 ;;
581
582 ## Has the user specified Quantify support?
583 "quantify" )
584 ## Make sure the value given was either "yes" or "no".
585 case "${val}" in
586 y | ye | yes ) val=yes ;;
587 n | no ) val=no ;;
588 * )
589 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
590 Set it to either \`yes' or \`no'."
591 echo "${short_usage}") >&2
592 exit 1
593 ;;
594 esac
595 eval "${opt}=\"${val}\""
596 ;;
597
598 ## Has the user requested SOCKS support?
599 "with_socks" )
600 ## Make sure the value given was either "yes" or "no".
601 case "${val}" in
602 y | ye | yes ) val=yes ;;
603 n | no ) val=no ;;
604 * )
605 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
606 Set it to either \`yes' or \`no'."
607 echo "${short_usage}") >&2
608 exit 1
609 ;;
610 esac
611 eval "${opt}=\"${val}\""
612 ;;
613
614 ## Has the user requested TERM support?
615 "with_term" )
616 ## Make sure the value given was either "yes" or "no".
617 case "${val}" in
618 y | ye | yes ) val=yes ;;
619 n | no ) val=no ;;
620 * )
621 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
622 Set it to either \`yes' or \`no'."
623 echo "${short_usage}") >&2
624 exit 1
625 ;;
626 esac
627 eval "${opt}=\"${val}\""
628 ;;
629
630 ## Has the user requested CDE support?
631 "with_cde" )
632 ## Make sure the value given was either "yes" or "no".
633 case "${val}" in
634 y | ye | yes ) val=yes ;;
635 n | no ) val=no ;;
636 * )
637 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
638 Set it to either \`yes' or \`no'."
639 echo "${short_usage}") >&2
640 exit 1
641 ;;
642 esac
643 eval "${opt}=\"${val}\""
644 ;;
645
646 ## Has the user requested OffiX support?
647 "with_offix" )
648 ## Make sure the value given was either "yes" or "no".
649 case "${val}" in
650 y | ye | yes ) val=yes ;;
651 n | no ) val=no ;;
652 * )
653 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
654 Set it to either \`yes' or \`no'."
655 echo "${short_usage}") >&2
656 exit 1
657 ;;
658 esac
659 eval "${opt}=\"${val}\""
660 ;;
661
662 ## Has the user requested XPM support?
663 "with_xpm" )
664 ## Make sure the value given was either "yes" or "no".
665 case "${val}" in
666 y | ye | yes ) val=yes ;;
667 n | no ) val=no ;;
668 * )
669 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
670 Set it to either \`yes' or \`no'."
671 echo "${short_usage}") >&2
672 exit 1
673 ;;
674 esac
675 eval "${opt}=\"${val}\""
676 ;;
677
678 ## Has the user requested XFACE support?
679 "with_xface" )
680 ## Make sure the value given was either "yes" or "no".
681 case "${val}" in
682 y | ye | yes ) val=yes ;;
683 n | no ) val=no ;;
684 * )
685 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
686 Set it to either \`yes' or \`no'."
687 echo "${short_usage}") >&2
688 exit 1
689 ;;
690 esac
691 eval "${opt}=\"${val}\""
692 ;;
693
694 ## Has the user requested GIF support?
695 "with_gif" )
696 ## Make sure the value given was either "yes" or "no".
697 case "${val}" in
698 y | ye | yes ) val=yes ;;
699 n | no ) val=no ;;
700 * )
701 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
702 Set it to either \`yes' or \`no'."
703 echo "${short_usage}") >&2
704 exit 1
705 ;;
706 esac
707 eval "${opt}=\"${val}\""
708 ;;
709
710 ## Has the user requested JPEG support?
711 "with_jpeg" )
712 ## Make sure the value given was either "yes" or "no".
713 case "${val}" in
714 y | ye | yes ) val=yes ;;
715 n | no ) val=no ;;
716 * )
717 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
718 Set it to either \`yes' or \`no'."
719 echo "${short_usage}") >&2
720 exit 1
721 ;;
722 esac
723 eval "${opt}=\"${val}\""
724 ;;
725
726 ## Has the user requested database support?
727 "with_database" )
728 if [ "${val}" = "no" ] ; then
729 with_database_berkdb=no
730 with_database_dbm=no
731 with_database_gnudbm=no
732 else
733 ## Make sure the value given was berkdb, dbm, gnudbm, or a list
734 for x in `echo "${val}" | sed 's/,/ /'` ; do
735 case "${x}" in
736 b | be | ber | berk | berkd | berkdb )
737 with_database_berkdb=yes ;;
738 d | db | dbm )
739 with_database_dbm=yes ;;
740 g | gn | gnu | gnud | gnudb | gnudbm )
741 with_database_gnudbm=yes ;;
742 * )
743 (echo "${progname}: the \`--${optname}' option is supposed to be either \`no'
744 or a comma-separated list of one or more of \`berkdb', \`dbm', or \`gnudbm'."
745 echo "${short_usage}") >&2
746 exit 1
747 ;;
748 esac
749 done
750 if [ "${with_database_dbm}" = "yes" ] && [ "${with_database_gnudbm}" = "yes" ]
751 then
752 (echo "${progname}: only one of \`dbm' and \`gnudbm' should be specified.") >&2
753 exit 1
754 fi
755 fi
756 ;;
757
758 ## Has the user requested PNG support?
759 "with_png" )
760 ## Make sure the value given was either "yes", "no", or "gnuz".
761 case "${val}" in
762 y | ye | yes ) val=yes ;;
763 n | no ) val=no ;;
764 g | gn | gnu | gnuz ) val=gnuz ;;
765 * )
766 (echo "${progname}: the \`--${optname}' option is supposed to
767 be either \`yes', \`no', or \`gnuz'."
768 echo "${short_usage}") >&2
769 exit 1
770 ;;
771 esac
772 eval "${opt}=\"${val}\""
773 ;;
774
775 ## Has the user requested TIFF support?
776 "with_tiff" )
777 ## Make sure the value given was either "yes" or "no".
778 case "${val}" in
779 y | ye | yes ) val=yes ;;
780 n | no ) val=no ;;
781 * )
782 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
783 Set it to either \`yes' or \`no'."
784 echo "${short_usage}") >&2
785 exit 1
786 ;;
787 esac
788 eval "${opt}=\"${val}\""
789 ;;
790
791 ## Has the user requested NeXTstep support?
792 "with_ns" )
793 ## Make sure the value given was either "yes" or "no".
794 case "${val}" in
795 y | ye | yes ) val=yes ;;
796 n | no ) val=no ;;
797 * )
798 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
799 Set it to either \`yes' or \`no'."
800 echo "${short_usage}") >&2
801 exit 1
802 ;;
803 esac
804 eval "${opt}=\"${val}\""
805 ;;
806
807 ## Has the user requested that assertions be used?
808 "use_assertions" )
809 ## Make sure the value given was either "yes" or "no".
810 case "${val}" in
811 y | ye | yes ) val=yes ;;
812 n | no ) val=no ;;
813 * )
814 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
815 Set it to either \`yes' or \`no'."
816 echo "${short_usage}") >&2
817 exit 1
818 ;;
819 esac
820 eval "${opt}=\"${val}\""
821 ;;
822
823 ## Has the user requested error-checking?
824 "error_checking" )
825 ## value can be all, none, and/or a list of categories to check.
826 ## Example: --error-checking=all,noextents,nobufpos
827 ## Example: --error-checking=none,malloc,gc
828
829 for x in `echo "${val}" | sed 's/,/ /'` ; do
830 case "${x}" in
831 # all and none are only permitted as the first in the list.
832 n | no | non | none ) new_default=no ;;
833 a | al | all ) new_default=yes ;;
834
835 extents ) error_check_extents=yes ;;
836 noextents ) error_check_extents=no ;;
837
838 typecheck ) error_check_typecheck=yes ;;
839 notypecheck ) error_check_typecheck=no ;;
840
841 bufpos ) error_check_bufpos=yes ;;
842 nobufpos ) error_check_bufpos=no ;;
843
844 gc ) error_check_gc=yes ;;
845 nogc ) error_check_gc=no ;;
846
847 malloc ) error_check_malloc=yes ;;
848 nomalloc ) error_check_malloc=no ;;
849
850 * ) bogus_error_check=yes ;;
851 esac
852 if [ "$bogus_error_check" -o \
853 \( -n "$new_default" -a -n "$echeck_notfirst" \) ]; then
854 ( echo "${progname}: Valid types for the \`--${optname}' option are:"
855 if [ $error_check_default = yes ]; then
856 echo "\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
857 else
858 echo "\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
859 fi
860 echo "${short_usage}" ) >&2
861 exit 1
862 elif [ "$new_default" ]; then
863 error_check_extents=$new_default
864 error_check_typecheck=$new_default
865 error_check_bufpos=$new_default
866 error_check_gc=$new_default
867 error_check_malloc=$new_default
868 new_default= # reset this
869 fi
870 echeck_notfirst=true
871 done
872 ;;
873
874 ## Has the user requested external widget support?
875 "external_widget" )
876 ## Make sure the value given was either "yes" or "no".
877 case "${val}" in
878 y | ye | yes ) val=yes ;;
879 n | no ) val=no ;;
880 * )
881 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
882 Set it to either \`yes' or \`no'."
883 echo "${short_usage}") >&2
884 exit 1
885 ;;
886 esac
887 eval "${opt}=\"${val}\""
888 ;;
889
890 ## Has the user requested that const be used?
891 "const_is_losing" )
892 ## Make sure the value given was either "yes" or "no".
893 case "${val}" in
894 y | ye | yes ) val=yes ;;
895 n | no ) val=no ;;
896 * )
897 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
898 Set it to either \`yes' or \`no'."
899 echo "${short_usage}") >&2
900 exit 1
901 ;;
902 esac
903 eval "${opt}=\"${val}\""
904 ;;
905
906 ## Has the user mentioned that they don't have Xmu?
907 "with_xmu" )
908 ## Make sure the value given was either "yes" or "no".
909 case "${val}" in
910 y | ye | yes ) val=yes ;;
911 n | no ) val=no ;;
912 * )
913 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
914 Set it to either \`yes' or \`no'."
915 echo "${short_usage}") >&2
916 exit 1
917 ;;
918 esac
919 eval "${opt}=\"${val}\""
920 ;;
921
922 ## Has the user specified a value for RAW_PURESIZE?
923 "puresize" )
924 ## If the value was omitted, get it from the next argument.
925 if [ "${valomitted}" = "yes" ]; then
926 ## Get the next argument from the argument list, if there is one.
927 if [ $# = 0 ]; then
928 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
929 \`--${optname}=FOO'."
930 echo "${short_usage}") >&2
931 exit 1
932 fi
933 val="$1"; shift
934 fi
935 puresize="${val}"
936 ;;
937
938 ## Has the user specified explicit instructions for rel_alloc?
939 "rel_alloc" )
940 ## Make sure the value given was either "yes", "no", or "default".
941 case "${val}" in 480 case "${val}" in
942 y | ye | yes ) val=yes ;; 481 y | ye | yes ) val=yes ;;
943 n | no ) val=no ;; 482 n | no ) val=no ;;
944 d | de | def | defa | defau | defaul | default ) 483 d | de | def | defa | defau | defaul | default )
945 val=default ;; 484 val=default ;;
951 ;; 490 ;;
952 esac 491 esac
953 eval "${opt}=\"${val}\"" 492 eval "${opt}=\"${val}\""
954 ;; 493 ;;
955 494
956 ## Has the user specified explicit instructions for system_malloc? 495 ## Has the user requested database support?
957 "use_system_malloc" ) 496 "with_database" )
958 ## Make sure the value given was either "yes", "no", or "default". 497 if test "${val}" = "no" ; then
498 with_database_berkdb=no
499 with_database_dbm=no
500 with_database_gnudbm=no
501 else
502 ## Make sure the value given was berkdb, dbm, gnudbm, or a list
503 for x in `echo "${val}" | sed 's/,/ /'` ; do
504 case "${x}" in
505 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
506 d | db | dbm ) with_database_dbm=yes ;;
507 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
508 * )
509 (echo "${progname}: the \`--${optname}' option is supposed to be either \`no'
510 or a comma-separated list of one or more of \`berkdb', \`dbm', or \`gnudbm'."
511 echo "${short_usage}") >&2
512 exit 1
513 ;;
514 esac
515 done
516 if test "${with_database_dbm}" = "yes" -a "${with_database_gnudbm}" = "yes"
517 then
518 (echo "${progname}: only one of \`dbm' and \`gnudbm' should be specified.") >&2
519 exit 1
520 fi
521 fi
522 ;;
523
524 ## Has the user requested sound support?
525 "with_sound" )
526 ## value can be native, nas or both. yes is allowed
527 ## as a backwards compatible synonym for native
959 case "${val}" in 528 case "${val}" in
960 y | ye | yes ) val=yes ;; 529 y | ye | yes ) val=native ;;
961 n | no ) val=no ;; 530 n | no | non | none ) val=no;;
962 d | de | def | defa | defau | defaul | default ) 531 na | nat | nati | nativ | native ) val=native ;;
963 val=default ;; 532 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
533 b | bo | bot | both ) val=both;;
964 * ) 534 * )
965 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value or \`default'. 535 (echo "${progname}: the \`--${optname}' option should have one of the values:"
966 Set it to either \`yes', \`no', or \`default'." 536 echo "\`native', \`nas', \`both', or \`none'."
537 echo ""
538 echo "${short_usage}") >&2
539 exit 1
540 ;;
541 esac
542 eval "${opt}=\"${val}\""
543 ;;
544
545 ## Has the user requested XIM support?
546 "with_xim" )
547 ## value can be xlib or motif
548 ## as a backwards compatible synonym for native
549 case "${val}" in
550 y | ye | yes ) val=yes ;;
551 n | no | non | none ) val=no ;;
552 x | xl | xli | xlib ) val=xlib ;;
553 m | mo | mot | moti | motif ) val=motif ;;
554 * )
555 (echo "${progname}: the \`--${optname}' option should have one of the values:"
556 echo "\`motif', \`xlib', \`yes', or \`no'."
557 echo ""
558 echo "${short_usage}") >&2
559 exit 1
560 ;;
561 esac
562 eval "${opt}=\"${val}\""
563 ;;
564
565 ## Has the user requested PNG support?
566 "with_png" )
567 ## Make sure the value given was either "yes", "no", or "gnuz".
568 case "${val}" in
569 y | ye | yes ) val=yes ;;
570 n | no ) val=no ;;
571 g | gn | gnu | gnuz ) val=gnuz ;;
572 * )
573 (echo "${progname}: the \`--${optname}' option is supposed to
574 be either \`yes', \`no', or \`gnuz'."
967 echo "${short_usage}") >&2 575 echo "${short_usage}") >&2
968 exit 1 576 exit 1
969 ;; 577 ;;
970 esac 578 esac
971 eval "${opt}=\"${val}\"" 579 eval "${opt}=\"${val}\""
972 ;; 580 ;;
973 581
582 ## Has the user requested error-checking?
583 "error_checking" )
584 ## value can be all, none, and/or a list of categories to check.
585 ## Example: --error-checking=all,noextents,nobufpos
586 ## Example: --error-checking=none,malloc,gc
587
588 for x in `echo "${val}" | sed 's/,/ /'` ; do
589 case "${x}" in
590 # all and none are only permitted as the first in the list.
591 n | no | non | none ) new_default=no ;;
592 a | al | all ) new_default=yes ;;
593
594 extents ) error_check_extents=yes ;;
595 noextents ) error_check_extents=no ;;
596
597 typecheck ) error_check_typecheck=yes ;;
598 notypecheck ) error_check_typecheck=no ;;
599
600 bufpos ) error_check_bufpos=yes ;;
601 nobufpos ) error_check_bufpos=no ;;
602
603 gc ) error_check_gc=yes ;;
604 nogc ) error_check_gc=no ;;
605
606 malloc ) error_check_malloc=yes ;;
607 nomalloc ) error_check_malloc=no ;;
608
609 * ) bogus_error_check=yes ;;
610 esac
611 if test "$bogus_error_check" -o \
612 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
613 ( echo "${progname}: Valid types for the \`--${optname}' option are:"
614 if test $error_check_default = yes ; then
615 echo "\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
616 else
617 echo "\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
618 fi
619 echo "${short_usage}" ) >&2
620 exit 1
621 elif test "$new_default" ; then
622 error_check_extents=$new_default
623 error_check_typecheck=$new_default
624 error_check_bufpos=$new_default
625 error_check_gc=$new_default
626 error_check_malloc=$new_default
627 new_default= # reset this
628 fi
629 echeck_notfirst=true
630 done
631 ;;
632
974 ## Has the user tried to tell us where the X files are? 633 ## Has the user tried to tell us where the X files are?
975 ## I think these are dopey, but no less than three alpha 634 ## I think these are dopey, but no less than three alpha
976 ## testers, at large sites, have said they have their X files 635 ## testers, at large sites, have said they have their X files
977 ## installed in odd places. 636 ## installed in odd places.
978 "x_includes" )
979 ## If the value was omitted, get it from the next argument.
980 if [ "${valomitted}" = "yes" ]; then
981 ## Get the next argument from the argument list, if there is one.
982 if [ $# = 0 ]; then
983 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
984 \`--${optname}=/usr/local/X11/include'."
985 echo "${short_usage}") >&2
986 exit 1
987 fi
988 val="$1"; shift
989 fi
990 x_includes="${val}"
991 ;;
992 "x_libraries" )
993 ## If the value was omitted, get it from the next argument.
994 if [ "${valomitted}" = "yes" ]; then
995 ## Get the next argument from the argument list, if there is one.
996 if [ $# = 0 ]; then
997 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
998 \`--${optname}=/usr/local/X11/lib'."
999 echo "${short_usage}") >&2
1000 exit 1
1001 fi
1002 val="$1"; shift
1003 fi
1004 x_libraries="${val}"
1005 ;;
1006
1007 "site_includes" )
1008 ## If the value was omitted, get it from the next argument.
1009 if [ "${valomitted}" = "yes" ]; then
1010 ## Get the next argument from the argument list, if there is one.
1011 if [ $# = 0 ]; then
1012 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
1013 \`--${optname}=/usr/local/X11/include'."
1014 echo "${short_usage}") >&2
1015 exit 1
1016 fi
1017 val="$1"; shift
1018 fi
1019 site_includes="${val}"
1020 ;;
1021
1022 "site_libraries" )
1023 ## If the value was omitted, get it from the next argument.
1024 if [ "${valomitted}" = "yes" ]; then
1025 ## Get the next argument from the argument list, if there is one.
1026 if [ $# = 0 ]; then
1027 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
1028 \`--${optname}=/usr/local/X11/lib'."
1029 echo "${short_usage}") >&2
1030 exit 1
1031 fi
1032 val="$1"; shift
1033 fi
1034 site_libraries="${val}"
1035 ;;
1036
1037 "site_runtime_libraries" )
1038 ## If the value was omitted, get it from the next argument.
1039 if [ "${valomitted}" = "yes" ]; then
1040 ## Get the next argument from the argument list, if there is one.
1041 if [ $# = 0 ]; then
1042 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
1043 \`--${optname}=/usr/local/X11/lib'."
1044 echo "${short_usage}") >&2
1045 exit 1
1046 fi
1047 val="$1"; shift
1048 fi
1049 site_runtime_libraries="${val}"
1050 ;;
1051
1052 ## Has the user specified the developer configuration?
1053 ## Note that the user still has the option of explicitly setting
1054 ## a path option.
1055 "run_in_place" )
1056 ## Make sure the value given was either "yes" or "no".
1057 case "${val}" in
1058 y | ye | yes ) val=yes ;;
1059 n | no ) val=no ;;
1060 * )
1061 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
1062 Set it to either \`yes' or \`no'."
1063 echo "${short_usage}") >&2
1064 exit 1
1065 ;;
1066 esac
1067 eval "${opt}=\"${val}\""
1068 ;;
1069 637
1070 ## Has the user specified one of the path options? 638 ## Has the user specified one of the path options?
1071 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ 639 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
1072 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \ 640 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \
1073 sitelispdir | docdir ) 641 sitelispdir | docdir )
1074 ## If the value was omitted, get it from the next argument. 642 ## If the value was omitted, get it from the next argument.
1075 if [ "${valomitted}" = "yes" ]; then 643 if test "${valomitted}" = "yes" ; then
1076 if [ $# = 0 ]; then 644 if test $# = 0 ; then
1077 (echo \ 645 (echo \
1078 "$progname: You must give a value for the \`--${optname}' option,"; 646 "$progname: You must give a value for the \`--${optname}' option,";
1079 echo \ 647 echo \
1080 "as in \`--${optname}=`eval echo '$'$optname`.'" 648 "as in \`--${optname}=`eval echo '$'$optname`.'"
1081 echo "$short_usage") >&2 649 echo "$short_usage") >&2
1087 655
1088 ## Changing exec_prefix or libdir will change the default value 656 ## Changing exec_prefix or libdir will change the default value
1089 ## of archlibdir. Changing datadir will change the default value 657 ## of archlibdir. Changing datadir will change the default value
1090 ## of etcdir and lispdir. Changing statedir will change the 658 ## of etcdir and lispdir. Changing statedir will change the
1091 ## default value of lockdir. 659 ## default value of lockdir.
1092 if [ "${opt}" = "exec_prefix" ]; then 660 if test "${opt}" = exec_prefix; then archlibdir_user_defined=yes
1093 archlibdir_user_defined='yes' 661 elif test "${opt}" = libdir ; then archlibdir_user_defined=yes
1094 elif [ "${opt}" = "libdir" ]; then 662 elif test "${opt}" = archlibdir ; then archlibdir_user_defined=yes
1095 archlibdir_user_defined='yes' 663 elif test "${opt}" = lispdir ; then lispdir_user_defined=yes
1096 elif [ "${opt}" = "archlibdir" ]; then 664 elif test "${opt}" = etcdir ; then etcdir_user_defined=yes
1097 archlibdir_user_defined='yes' 665 elif test "${opt}" = datadir ; then
1098 elif [ "${opt}" = "lispdir" ]; then 666 lispdir_user_defined=yes
1099 lispdir_user_defined='yes' 667 etcdir_user_defined=yes
1100 elif [ "${opt}" = "etcdir" ]; then 668 elif test "${opt}" = statedir ; then lockdir_user_defined=yes
1101 etcdir_user_defined='yes' 669 elif test "${opt}" = lockdir ; then lockdir_user_defined=yes
1102 elif [ "${opt}" = "datadir" ]; then 670 elif test "${opt}" = infodir ; then infodir_user_defined=yes
1103 lispdir_user_defined='yes'
1104 etcdir_user_defined='yes'
1105 elif [ "${opt}" = "statedir" ]; then
1106 lockdir_user_defined='yes'
1107 elif [ "${opt}" = "lockdir" ]; then
1108 lockdir_user_defined='yes'
1109 elif [ "${opt}" = "infodir" ]; then
1110 infodir_user_defined='yes'
1111 fi 671 fi
1112 ;; 672 ;;
1113 673
1114 ## Has the user specified values to override CFLAGS? 674 ## Has the user specified values to override CFLAGS?
1115 cflags ) 675 cflags )
1116 ## If the value was omitted, get it from the next argument. 676 ## If the value was omitted, get it from the next argument.
1117 if [ "${valomitted}" = "yes" ]; then 677 if test "${valomitted}" = "yes" ; then
1118 if [ $# = 0 ]; then 678 if test $# = 0 ; then
1119 (echo \ 679 (echo \
1120 "$progname: You must give a value for the \`--${optname}' option,"; 680 "$progname: You must give a value for the \`--${optname}' option,";
1121 echo \ 681 echo \
1122 "as in \`--${optname}=`eval echo '$'$optname`-g -O'" 682 "as in \`--${optname}=`eval echo '$'$optname`-g -O'"
1123 echo "$short_usage") >&2 683 echo "$short_usage") >&2
1132 ## Verbose flag, tested by autoconf macros. 692 ## Verbose flag, tested by autoconf macros.
1133 "verbose" ) 693 "verbose" )
1134 verbose=yes 694 verbose=yes
1135 ;; 695 ;;
1136 696
1137 ## Does the user want to see the compiler output for feature tests?
1138 "extra_verbose" )
1139 ## Make sure the value given was either "yes" or "no".
1140 case "${val}" in
1141 y | ye | yes ) val=yes ;;
1142 n | no ) val=no ;;
1143 * )
1144 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
1145 Set it to either \`yes' or \`no'."
1146 echo "${short_usage}") >&2
1147 exit 1
1148 ;;
1149 esac
1150 eval "${opt}=\"${val}\""
1151 ## --extra-verbose implies --verbose
1152 verbose=yes
1153 ;;
1154
1155 ## --no-create added by autoconf for use by config.status 697 ## --no-create added by autoconf for use by config.status
1156 "no_create" ) 698 "no_create" )
1157 ;; 699 ;;
1158 700
1159 ## Has the user asked for some help? 701 ## Has the user asked for some help?
1160 "usage" | "help" ) 702 "usage" | "help" )
1161 if [ "x$PAGER" = x ] 703 if test -z "$PAGER"
1162 then 704 then echo "${short_usage}" | more
1163 echo "${short_usage}" | more 705 else echo "${short_usage}" | $PAGER
1164 else
1165 echo "${short_usage}" | $PAGER
1166 fi 706 fi
1167 exit 707 exit
1168 ;; 708 ;;
1169 709
1170 ## Has the user specified what toolkit to use for the menubars, 710 ## Has the user specified what toolkit to use for the menubars,
1175 l | lu | luc | luci | lucid ) val=lucid ;; 715 l | lu | luc | luci | lucid ) val=lucid ;;
1176 m | mo | mot | moti | motif ) val=motif ;; 716 m | mo | mot | moti | motif ) val=motif ;;
1177 a | at | ath | athe | athen | athena ) val=athena ;; 717 a | at | ath | athe | athen | athena ) val=athena ;;
1178 n | no | non | none ) val=no ;; 718 n | no | non | none ) val=no ;;
1179 * ) 719 * )
1180 (echo "${progname}: the \`--${optname}' option should have one of the values \`lucid', \`motif', \`athena', or \`no'." 720 (echo "${progname}: the \`--${optname}' option should have one of the values:"
1181 echo "${short_usage}") >&2 721 echo "\`lucid', \`motif', \`athena', or \`no'."
722 echo ""
723 echo "${short_usage}") >&2
1182 exit 1 724 exit 1
1183 ;; 725 ;;
1184 esac 726 esac
1185 eval "${opt}=\"${val}\"" 727 eval "${opt}=\"${val}\""
1186 ;; 728 ;;
1187 729
1188 ## Has the user disabled toolbar support?
1189 "with_toolbars" )
1190 ## Make sure the value given was either "yes" or "no".
1191 case "${val}" in
1192 y | ye | yes ) val=yes ;;
1193 n | no ) val=no ;;
1194 * )
1195 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
1196 Set it to either \`yes' or \`no'."
1197 echo "${short_usage}") >&2
1198 exit 1
1199 ;;
1200 esac
1201 eval "${opt}=\"${val}\""
1202 ;;
1203
1204 ## Has the user disabled TTY support?
1205 "with_tty" )
1206 ## Make sure the value given was either "yes" or "no".
1207 case "${val}" in
1208 y | ye | yes ) val=yes ;;
1209 n | no ) val=no ;;
1210 * )
1211 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
1212 Set it to either \`yes' or \`no'."
1213 echo "${short_usage}") >&2
1214 exit 1
1215 ;;
1216 esac
1217 eval "${opt}=\"${val}\""
1218 ;;
1219
1220 ## Has the user specified whether or not they want to use ToolTalk?
1221 "with_tooltalk" )
1222 ## Make sure the value given was either "yes" or "no".
1223 case "${val}" in
1224 y | ye | yes ) val=yes ;;
1225 n | no ) val=no ;;
1226 * )
1227 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
1228 Set it to either \`yes' or \`no'."
1229 echo "${short_usage}") >&2
1230 exit 1
1231 ;;
1232 esac
1233 eval "${opt}=\"${val}\""
1234 ;;
1235
1236 ## Has the user specified whether or not they want Mocklisp support?
1237 "with_mocklisp" )
1238 ## Make sure the value given was either "yes" or "no".
1239 case "${val}" in
1240 y | ye | yes ) val=yes ;;
1241 n | no ) val=no ;;
1242 * )
1243 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
1244 Set it to either \`yes' or \`no'."
1245 echo "${short_usage}") >&2
1246 exit 1
1247 ;;
1248 esac
1249 eval "${opt}=\"${val}\""
1250 ;;
1251
1252 ## Has the user specified whether or not they want to use SparcWorks?
1253 "with_sparcworks" )
1254 ## Make sure the value given was either "yes" or "no".
1255 case "${val}" in
1256 y | ye | yes ) val=yes ;;
1257 n | no ) val=no ;;
1258 * )
1259 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
1260 Set it to either \`yes' or \`no'."
1261 echo "${short_usage}") >&2
1262 exit 1
1263 ;;
1264 esac
1265 eval "${opt}=\"${val}\""
1266 if [ "${with_sparcworks}" = "yes" ]; then
1267 with_tooltalk='yes'
1268 fi
1269 ;;
1270
1271 ## Does the user want usage tracking?
1272 "usage_tracking" )
1273 ## Make sure the value given was either "yes" or "no".
1274 case "${val}" in
1275 y | ye | yes ) val=yes ;;
1276 n | no ) val=no ;;
1277 * )
1278 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
1279 Set it to either \`yes' or \`no'."
1280 echo "${short_usage}") >&2
1281 exit 1
1282 ;;
1283 esac
1284 eval "${opt}=\"${val}\""
1285 ;;
1286
1287 ## Does the user want additional debugging capability?
1288 "debug" )
1289 ## Make sure the value given was either "yes" or "no".
1290 case "${val}" in
1291 y | ye | yes ) val=yes ;;
1292 n | no ) val=no ;;
1293 * )
1294 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
1295 Set it to either \`yes' or \`no'."
1296 echo "${short_usage}") >&2
1297 exit 1
1298 ;;
1299 esac
1300 eval "${opt}=\"${val}\""
1301 if [ "${debug}" = "yes" ]; then
1302 use_assertions='yes'
1303 memory_usage_stats='yes'
1304 fi
1305 ;;
1306
1307 ## Does the user want code for memory usage stats?
1308 "memory_usage_stats" )
1309 ## Make sure the value given was either "yes" or "no".
1310 case "${val}" in
1311 y | ye | yes ) val=yes ;;
1312 n | no ) val=no ;;
1313 * )
1314 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
1315 Set it to either \`yes' or \`no'."
1316 echo "${short_usage}") >&2
1317 exit 1
1318 ;;
1319 esac
1320 eval "${opt}=\"${val}\""
1321 ;;
1322
1323 ## Has the user specified whether or not they want to use Energize?
1324 "with_energize" )
1325 ## Make sure the value given was either "yes" or "no".
1326 case "${val}" in
1327 y | ye | yes ) val=yes ;;
1328 n | no ) val=no ;;
1329 * )
1330 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
1331 Set it to either \`yes' or \`no'."
1332 echo "${short_usage}") >&2
1333 exit 1
1334 ;;
1335 esac
1336 eval "${opt}=\"${val}\""
1337 if [ "${with_energize}" = "yes" ]; then
1338 with_menubars='lucid'
1339 with_scrollbars='motif'
1340 with_dialogs='motif'
1341 with_tooltalk='yes'
1342 internal_makefile_list="$internal_makefile_list lwlib/energize/Makefile.in"
1343 fi
1344 ;;
1345
1346 ## Fail on unrecognized arguments. 730 ## Fail on unrecognized arguments.
1347 * ) 731 * )
1348 (echo "${progname}: Error: unrecognized option ${arg}" 732 (echo "${progname}: Error: unrecognized option: ${arg}"
1349 echo "" 733 echo ""
1350 echo "${short_usage}") >& 2 734 echo "${short_usage}") >& 2
1351 exit 1 735 exit 1
1352 ;; 736 ;;
1353 737
1370 ############################################################################ 754 ############################################################################
1371 755
1372 ### Get the arguments back. See the diatribe on Shell Magic above. 756 ### Get the arguments back. See the diatribe on Shell Magic above.
1373 eval set x "$quoted_arguments"; shift 757 eval set x "$quoted_arguments"; shift
1374 758
1375 if [ "${configuration}" = "" ]; then 759 ### Argument interdependencies
760 if test "${with_energize}" = "yes" ; then
761 with_menubars="lucid"
762 with_scrollbars="motif"
763 with_dialogs="motif"
764 with_tooltalk="yes"
765 internal_makefile_list="$internal_makefile_list lwlib/energize/Makefile.in"
766 fi
767
768 ### --extra-verbose implies --verbose
769 test "${extra_verbose}" = yes && verbose=yes
770
771 ### Sparcworks requires tooltalk
772 test "${with_sparcworks}" = yes && with_tooltalk=yes
773
774 ### debug implies other options
775 test "${debug}" = "yes" && use_assertions=yes memory_usage_stats=yes
776
777 ### with_x is a synonym for with_x11
778 test -n "${with_x}" && with_x11="${with_x}"
779
780 ### Can't specify 2 compilers
781 if test "${with_gcc}" = "yes" -a "${with_lcc}" = "yes"; then
782 (echo "${progname}: only one of --with-gcc and --with-lcc may be specified."
783 echo "${short_usage}") >&2
784 exit 1
785 fi
786
787 ### Ignore useless run-in-place flag
788 if test "${run_in_place}" = "yes"; then
789 ] AC_WARN(The --run-in-place option is ignored because it is unnecessary.) [
790 fi
791
792 ###########################################################################
793 if test "${configuration}" = "" ; then
1376 echo '- You did not tell me what kind of host system you want to configure. 794 echo '- You did not tell me what kind of host system you want to configure.
1377 - I will attempt to guess the kind of system this is.' 1>&2 795 - I will attempt to guess the kind of system this is.' 1>&2
1378 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'` 796 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
1379 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then 797 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then
1380 echo "- Looks like this is a ${configuration}" 1>&2 798 echo "- Looks like this is a ${configuration}" 1>&2
1383 echo "${short_usage}" >&2 801 echo "${short_usage}" >&2
1384 exit 1 802 exit 1
1385 fi 803 fi
1386 fi 804 fi
1387 805
1388 ############################################################################ 806 ### Find the source directory.
1389 # #
1390 # Handle --srcdir #
1391 # #
1392 ############################################################################
1393
1394 #### Decide where the source is.
1395 case "${srcdir}" in 807 case "${srcdir}" in
1396 808
1397 ## If it's not specified, see if `.' or `..' might work. 809 ## If it's not specified, see if `.' or `..' might work.
1398 "" ) 810 "" )
1399 confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'` 811 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
1400 if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then 812 if test -f "$dir/src/lisp.h" -a -f "$dir/lisp/version.el" ; then
1401 srcdir="${confdir}" 813 srcdir="${dir}"
1402 else 814 break
1403 if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then 815 fi
1404 srcdir='.' 816 done
1405 else 817 if test -z "${srcdir}" ; then
1406 if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then 818 echo "\
1407 srcdir='..'
1408 else
1409 (echo "\
1410 ${progname}: Neither the current directory nor its parent seem to 819 ${progname}: Neither the current directory nor its parent seem to
1411 contain the XEmacs sources. If you do not want to build XEmacs in its 820 contain the XEmacs sources. If you do not want to build XEmacs in its
1412 source tree, you should run \`${progname}' in the directory in which 821 source tree, you should run \`${progname}' in the directory in which
1413 you wish to build XEmacs, using its \`--srcdir' option to say where the 822 you wish to build XEmacs, using its \`--srcdir' option to say where the
1414 sources may be found." 823 sources may be found.
1415 echo "${short_usage}") >&2 824 ${short_usage}" >&2
1416 exit 1 825 exit 1
1417 fi
1418 fi 826 fi
1419 fi
1420 ;; 827 ;;
1421 828
1422 ## Otherwise, check if the directory they specified is okay. 829 ## Otherwise, check if the directory they specified is okay.
1423 * ) 830 * )
1424 if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then 831 if test ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ; then
1425 (echo "\ 832 (echo "\
1426 ${progname}: The directory specified with the \`--srcdir' option, 833 ${progname}: The directory specified with the \`--srcdir' option,
1427 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should 834 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should
1428 either run the \`${progname}' script at the top of the XEmacs source 835 either run the \`${progname}' script at the top of the XEmacs source
1429 tree, or use the \`--srcdir' option to specify where the XEmacs sources 836 tree, or use the \`--srcdir' option to specify where the XEmacs sources
1437 ## We check for this now instead of later when we check for other 844 ## We check for this now instead of later when we check for other
1438 ## programs because we need to use its return value now. 845 ## programs because we need to use its return value now.
1439 ] AC_LN_S 846 ] AC_LN_S
1440 847
1441 AC_VERBOSE("setting LN_S to ${LN_S}") 848 AC_VERBOSE("setting LN_S to ${LN_S}")
1442 [ 849
1443 #### Make symlinks for etc, lisp, and info directories while the path 850 #### Make symlinks for etc, lisp, and info directories while the path
1444 #### is still relative. We don't symlink lock because someone may 851 #### is still relative. We don't symlink lock because someone may
1445 #### have stuck the source on a read-only partition. Instead we'll 852 #### have stuck the source on a read-only partition. Instead we'll
1446 #### create it as an actual directory later on if it doesn't already 853 #### create it as an actual directory later on if it doesn't already
1447 #### exist. 854 #### exist.
1448 for dir in lisp etc man info site-lisp 855 for dir in etc lisp man info
1449 do 856 do
1450 if [ ! -d $dir ]; then 857 if test ! -d $dir ; then
1451 echo Making symbolic link to ${srcdir}/$dir 858 echo Making symbolic link to ${srcdir}/$dir
1452 ${LN_S} ${srcdir}/$dir . 859 ${LN_S} ${srcdir}/$dir .
1453 fi 860 fi
1454 done 861 done
1455 862 [
1456 #### Make srcdir absolute, if it isn't already. It's important to 863 #### Make srcdir absolute, if it isn't already. It's important to
1457 #### avoid running the path through pwd unnecessary, since pwd can 864 #### avoid running the path through pwd unnecessary, since pwd can
1458 #### give you automounter prefixes, which can go away. 865 #### give you automounter prefixes, which can go away.
1459 case "${srcdir}" in 866 case "${srcdir}" in
1460 /* ) ;; 867 /* ) ;;
1461 . ) 868 . )
1462 ## We may be able to use the $PWD environment variable to make this 869 ## We may be able to use the $PWD environment variable to make this
1463 ## absolute. But sometimes PWD is inaccurate. 870 ## absolute. But sometimes PWD is inaccurate.
1464 if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ] ; then 871 if test "${PWD}" != "" -a "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`"; then
1465 srcdir="$PWD" 872 srcdir="$PWD"
1466 else 873 else
1467 srcdir="`(cd ${srcdir}; pwd)`" 874 srcdir="`(cd ${srcdir}; pwd)`"
1468 fi 875 fi
1469 ;; 876 ;;
1470 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; 877 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1471 esac 878 esac
1472 879
1473 #### Check if the source directory already has a configured system in it. 880 #### Check if the source directory already has a configured system in it.
1474 if [ `pwd` != `sh -c cd ${srcdir} && pwd` ] \ 881 if test `pwd` != `sh -c cd ${srcdir} && pwd` \
1475 && [ -f "${srcdir}/src/config.h" ] ; then 882 && test -f "${srcdir}/src/config.h"; then
1476 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used" 883 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
1477 echo " as a build directory right now; it has been configured in its own" 884 echo " as a build directory right now; it has been configured in its own"
1478 echo " right. To configure in another directory as well, you MUST" 885 echo " right. To configure in another directory as well, you MUST"
1479 echo " use GNU make. If you do not have GNU make, then you must" 886 echo " use GNU make. If you do not have GNU make, then you must"
1480 echo " now do \`make distclean' in ${srcdir}," 887 echo " now do \`make distclean' in ${srcdir},"
1487 vpath %.s $(srcdir)\ 894 vpath %.s $(srcdir)\
1488 vpath %.in $(srcdir)' 895 vpath %.in $(srcdir)'
1489 fi 896 fi
1490 897
1491 ### Make the necessary directories, if they don't exist. 898 ### Make the necessary directories, if they don't exist.
1492 for dir in ./src ./lib-src ./dynodump ./man ./lwlib ./lock ; do 899 for dir in ./src ./lib-src ./dynodump ./lwlib ./lock ; do
1493 if [ ! -d ${dir} ]; then 900 if test ! -d ${dir} ; then
1494 mkdir ${dir} 901 mkdir ${dir}
1495 fi 902 fi
1496 done 903 done
1497 if [ "${with_energize}" = "yes" ] && [ ! -d ./lwlib/energize ] ; then 904 if test "${with_energize}" = "yes" -a ! -d ./lwlib/energize; then
1498 mkdir ./lwlib/energize 905 mkdir ./lwlib/energize
1499 fi 906 fi
1500 907
1501 ############################################################################ 908 ############################################################################
1502 # # 909 # #
1537 ### matter, be sure /etc/MACHINES says something about it. 944 ### matter, be sure /etc/MACHINES says something about it.
1538 ### 945 ###
1539 ### Eric Raymond says we should accept strings like "sysvr4" to mean 946 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1540 ### "System V Release 4"; he writes, "The old convention encouraged 947 ### "System V Release 4"; he writes, "The old convention encouraged
1541 ### confusion between `system' and `release' levels'." 948 ### confusion between `system' and `release' levels'."
1542 ###
1543 ### We rely on cpp to generate makefiles from Makefile.in.in templates.
1544 ### There is at least one drawback to that. Since cpp generally has
1545 ### built-in macro definitions like `#define unix' or `#define i386',
1546 ### we must be careful to prevent it from substituting these occurences
1547 ### in certain places in the makefiles. Pathnames for architecture-
1548 ### specific files come to mind.
1549 ### This is where CPPFLAGS_MAKEFILEGEN comes in. We try to selectively
1550 ### disable (potentially) predefined macros that we find to be part of
1551 ### the configuration string.
1552 ### This is but a poor method to help us fight off cpp, but it covers
1553 ### those cases that used to bite me. <mdiers@logware.de>
1554
1555 CPPFLAGS_MAKEFILEGEN="" # we normally do not need any extra flags
1556 949
1557 machine='' opsys='' unported=no need_dynodump=no 950 machine='' opsys='' unported=no need_dynodump=no
1558 case "${canonical}" in 951 case "${canonical}" in
1559 952
1560 ## NetBSD ports 953 ## NetBSD ports
1561 *-*-netbsd* ) 954 *-*-netbsd* )
1562 opsys=netbsd 955 opsys=netbsd
1563 case "${canonical}" in 956 case "${canonical}" in
1564 sparc-*-netbsd*) machine=sparc ;; 957 sparc-*-netbsd*) machine=sparc ;;
1565 i[3-9]86-*-netbsd*) machine=intel386 ;; 958 i[3-9]86-*-netbsd*) machine=intel386 ;;
1566 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* ) 959 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1567 # Yes, this is somewhat bogus. 960 # Yes, this is somewhat bogus.
1568 machine=hp9000s300 ;; 961 machine=hp9000s300 ;;
1569 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;; 962 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1570 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;; 963 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1571 esac 964 esac
1572 ;; 965 ;;
1573 966
1574 ## Acorn RISCiX: 967 ## Acorn RISCiX:
1575 arm-acorn-riscix1.1* ) 968 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1576 machine=acorn opsys=riscix1-1 969 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1577 ;;
1578 arm-acorn-riscix1.2* | arm-acorn-riscix )
1579 machine=acorn opsys=riscix1-2
1580 ;;
1581 970
1582 ## Alliant machines 971 ## Alliant machines
1583 ## Strictly speaking, we need the version of the alliant operating 972 ## Strictly speaking, we need the version of the alliant operating
1584 ## system to choose the right machine file, but currently the 973 ## system to choose the right machine file, but currently the
1585 ## configuration name doesn't tell us enough to choose the right 974 ## configuration name doesn't tell us enough to choose the right
1586 ## one; we need to give alliants their own operating system name to 975 ## one; we need to give alliants their own operating system name to
1587 ## do this right. When someone cares, they can help us. 976 ## do this right. When someone cares, they can help us.
1588 fx80-alliant-* ) 977 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1589 machine=alliant4 opsys=bsd4-2 978 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1590 ;;
1591 i860-alliant-* )
1592 machine=alliant-2800 opsys=bsd4-3
1593 ;;
1594 979
1595 ## Alpha (DEC) machines. 980 ## Alpha (DEC) machines.
1596 ## XEmacs change: split apart into numerous files. 981 ## XEmacs change: split apart into numerous files.
1597 alpha-dec-osf1.3 | alpha-dec-osf2* ) 982 alpha-dec-osf1.3 | alpha-dec-osf2* ) machine=alpha opsys=decosf1-3 ;;
1598 machine=alpha opsys=decosf1-3 983 alpha-dec-osf1.2 | alpha-dec-osf1* ) machine=alpha opsys=decosf1-2 ;;
1599 ;;
1600 alpha-dec-osf1.2 | alpha-dec-osf1* )
1601 machine=alpha opsys=decosf1-2
1602 ;;
1603 984
1604 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu) 985 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu)
1605 alpha-dec-osf3.[2-9] )
1606 machine=alpha opsys=decosf3-2
1607 ;;
1608 alpha-dec-osf3* )
1609 machine=alpha opsys=decosf3-1
1610 ;;
1611
1612 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu) 986 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu)
1613 alpha-dec-osf4* ) 987 alpha-dec-osf3.[2-9] ) machine=alpha opsys=decosf3-2 ;;
1614 machine=alpha opsys=decosf4-0 988 alpha-dec-osf3* ) machine=alpha opsys=decosf3-1 ;;
1615 NON_GNU_CPP="/lib/cpp" 989 alpha-dec-osf4* ) machine=alpha opsys=decosf4-0 ;;
1616 ;; 990 alpha-*-linux* ) machine=alpha opsys=linux ;;
1617
1618 alpha-*-linux* )
1619 machine=alpha opsys=linux
1620 ;;
1621 991
1622 ## Altos 3068 992 ## Altos 3068
1623 m68*-altos-sysv* ) 993 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1624 machine=altos opsys=usg5-2
1625 ;;
1626 994
1627 ## Amdahl UTS 995 ## Amdahl UTS
1628 580-amdahl-sysv* ) 996 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1629 machine=amdahl opsys=usg5-2-2
1630 ;;
1631 997
1632 ## Apollo, Domain/OS 998 ## Apollo, Domain/OS
1633 m68*-apollo-* ) 999 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1634 machine=apollo opsys=bsd4-3
1635 ;;
1636 1000
1637 ## AT&T 3b2, 3b5, 3b15, 3b20 1001 ## AT&T 3b2, 3b5, 3b15, 3b20
1638 we32k-att-sysv* ) 1002 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1639 machine=att3b opsys=usg5-2-2
1640 ;;
1641 1003
1642 ## AT&T 3b1 - The Mighty Unix PC! 1004 ## AT&T 3b1 - The Mighty Unix PC!
1643 m68*-att-sysv* ) 1005 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1644 machine=7300 opsys=usg5-2-2
1645 ;;
1646 1006
1647 ## Bull dpx20 1007 ## Bull dpx20
1648 rs6000-bull-bosx* ) 1008 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;;
1649 machine=ibmrs6000 opsys=aix3-2
1650 ;;
1651 1009
1652 ## Bull dpx2 1010 ## Bull dpx2
1653 m68*-bull-sysv3* ) 1011 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;;
1654 machine=dpx2 opsys=usg5-3
1655 ;;
1656 1012
1657 ## Bull sps7 1013 ## Bull sps7
1658 m68*-bull-sysv2* ) 1014 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;;
1659 machine=sps7 opsys=usg5-2
1660 ;;
1661 1015
1662 ## CCI 5/32, 6/32 -- see "Tahoe". 1016 ## CCI 5/32, 6/32 -- see "Tahoe".
1663 1017
1664 ## Celerity 1018 ## Celerity
1665 ## I don't know what configuration name to use for this; config.sub 1019 ## I don't know what configuration name to use for this; config.sub
1666 ## doesn't seem to know anything about it. Hey, Celerity users, get 1020 ## doesn't seem to know anything about it. Hey, Celerity users, get
1667 ## in touch with us! 1021 ## in touch with us!
1668 celerity-celerity-bsd* ) 1022 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1669 machine=celerity opsys=bsd4-2
1670 ;;
1671 1023
1672 ## Clipper 1024 ## Clipper
1673 ## What operating systems does this chip run that XEmacs has been 1025 ## What operating systems does this chip run that XEmacs has been
1674 ## tested on? 1026 ## tested on?
1675 clipper-* ) 1027 clipper-* ) machine=clipper
1676 machine=clipper
1677 ## We'll use the catch-all code at the bottom to guess the 1028 ## We'll use the catch-all code at the bottom to guess the
1678 ## operating system. 1029 ## operating system.
1679 ;; 1030 ;;
1680 1031
1681 ## Convex 1032 ## Convex
1684 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov 1035 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1685 NON_GNU_CPP="cc -E -P" 1036 NON_GNU_CPP="cc -E -P"
1686 ;; 1037 ;;
1687 1038
1688 ## Cubix QBx/386 1039 ## Cubix QBx/386
1689 i[3-9]86-cubix-sysv* ) 1040 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1690 machine=intel386 opsys=usg5-3
1691 ;;
1692 1041
1693 ## Cydra 5 1042 ## Cydra 5
1694 cydra*-cydrome-sysv* ) 1043 cydra*-cydrome-sysv* ) machine=cydra5 opsys=usg5-3 ;;
1695 machine=cydra5 opsys=usg5-3
1696 ;;
1697 1044
1698 ## Data General AViiON Machines 1045 ## Data General AViiON Machines
1699 i586-dg-dgux5.4R4* | i586-dg-dgux5.4.4* ) 1046 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) machine=aviion opsys=dgux5-4r3 ;;
1700 machine=aviion opsys=dgux5-4r4 1047 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) machine=aviion opsys=dgux5-4r2 ;;
1701 ;; 1048 m88k-dg-dgux* ) machine=aviion opsys=dgux ;;
1702 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) 1049
1703 machine=aviion opsys=dgux5-4r3 1050 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) machine=pmax opsys=bsd4-2 ;;
1704 ;; 1051 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) machine=pmax opsys=bsd4-3 ;;
1705 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) 1052 mips-dec-ultrix* ) machine=pmax opsys=ultrix4-3 ;;
1706 machine=aviion opsys=dgux5-4r2 1053 mips-dec-osf* ) machine=pmax opsys=osf1 ;;
1707 ;; 1054 mips-dec-mach_bsd4.3* ) machine=pmax opsys=mach-bsd4-3 ;;
1708 m88k-dg-dgux* )
1709 machine=aviion opsys=dgux
1710 ;;
1711
1712 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1713 machine=pmax opsys=bsd4-2
1714 ;;
1715 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1716 machine=pmax opsys=bsd4-3
1717 ;;
1718 mips-dec-ultrix* )
1719 machine=pmax opsys=ultrix4-3
1720 ;;
1721 mips-dec-osf* )
1722 machine=pmax opsys=osf1
1723 ;;
1724 mips-dec-mach_bsd4.3* )
1725 machine=pmax opsys=mach-bsd4-3
1726 ;;
1727 1055
1728 ## Motorola Delta machines 1056 ## Motorola Delta machines
1729 m68k-motorola-sysv* | m68000-motorola-sysv* ) 1057 m68k-motorola-sysv* | m68000-motorola-sysv* )
1730 machine=delta opsys=usg5-3 1058 machine=delta opsys=usg5-3
1731 if test -z "`type gnucc | grep 'not found'`" 1059 if test -z "`type gnucc | grep 'not found'`"
1746 # needs POSIX_SIGNALS and therefore needs usg5-4-2. 1074 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1747 # I hope there are not other 4.0 versions for this machine 1075 # I hope there are not other 4.0 versions for this machine
1748 # which really need usg5-4 instead. 1076 # which really need usg5-4 instead.
1749 machine=delta88k opsys=usg5-4-2 1077 machine=delta88k opsys=usg5-4-2
1750 ;; 1078 ;;
1751 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) 1079 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1752 machine=delta88k opsys=usg5-3
1753 ;;
1754 1080
1755 ## Dual machines 1081 ## Dual machines
1756 m68*-dual-sysv* ) 1082 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1757 machine=dual opsys=usg5-2 1083 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1758 ;;
1759 m68*-dual-uniplus* )
1760 machine=dual opsys=unipl5-2
1761 ;;
1762 1084
1763 ## Elxsi 6400 1085 ## Elxsi 6400
1764 elxsi-elxsi-sysv* ) 1086 elxsi-elxsi-sysv* ) machine=elxsi opsys=usg5-2 ;;
1765 machine=elxsi opsys=usg5-2
1766 ;;
1767 1087
1768 ## Encore machines 1088 ## Encore machines
1769 ns16k-encore-bsd* ) 1089 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1770 machine=ns16000 opsys=umax
1771 ;;
1772
1773 ## The GEC 93 - apparently, this port isn't really finished yet.
1774 1090
1775 ## Gould Power Node and NP1 1091 ## Gould Power Node and NP1
1776 pn-gould-bsd4.2* ) 1092 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1777 machine=gould opsys=bsd4-2 1093 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1778 ;; 1094 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1779 pn-gould-bsd4.3* )
1780 machine=gould opsys=bsd4-3
1781 ;;
1782 np1-gould-bsd* )
1783 machine=gould-np1 opsys=bsd4-3
1784 ;;
1785 1095
1786 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 1096 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1787 ## as far as XEmacs is concerned). 1097 ## as far as XEmacs is concerned).
1788 m88k-harris-cxux* ) 1098 m88k-harris-cxux* )
1789 # Build needs to be different on 7.0 and later releases 1099 # Build needs to be different on 7.0 and later releases
1790 case "`uname -r`" in 1100 case "`uname -r`" in
1791 [56].[0-9] ) machine=nh4000 opsys=cxux ;; 1101 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1792 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; 1102 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1793 esac 1103 esac
1794 NON_GNU_CPP="/lib/cpp" 1104 NON_GNU_CPP="/lib/cpp"
1795 ;; 1105 ;;
1796 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) 1106 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1797 m68k-harris-cxux* ) 1107 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1798 machine=nh3000 opsys=cxux
1799 ;;
1800 ## Harris power pc NightHawk running Power UNIX (Series 6000) 1108 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1801 powerpc-harris-powerunix ) 1109 powerpc-harris-powerunix )
1802 machine=nh6000 opsys=powerunix 1110 machine=nh6000 opsys=powerunix
1803 NON_GNU_CPP="cc -Xo -E -P" 1111 NON_GNU_CPP="cc -Xo -E -P"
1804 ;; 1112 ;;
1805 1113
1806 ## Honeywell XPS100 1114 ## Honeywell XPS100
1807 xps*-honeywell-sysv* ) 1115 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1808 machine=xps100 opsys=usg5-2
1809 ;;
1810 1116
1811 ## HP 9000 series 200 or 300 1117 ## HP 9000 series 200 or 300
1812 m68*-hp-bsd* ) 1118 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1813 machine=hp9000s300 opsys=bsd4-3 1119
1814 ;; 1120 ## HP-UX on HP's
1815 ## HP/UX 7, 8, 9, and 10 are supported on these machines. 1121 *-hp-hpux* )
1816 m68*-hp-hpux* ) 1122 NON_GNU_CC="cc -Aa"
1817 NON_GNU_CPP="cc -Aa -E" 1123 NON_GNU_CPP="cc -Aa -E"
1818 NON_GNU_CC="cc -Aa" 1124
1819 case "`uname -r`" in 1125 ### Figure out machine and opsys orthogonally
1820 ## Someone's system reports A.B8.05 for this. 1126 case "${canonical}" in
1821 ## I wonder what other possibilities there are. 1127 m68* ) machine=hp9000s300 ;;
1822 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; 1128 hppa* ) machine=hp800 ;;
1823 *.08.* ) machine=hp9000s300 opsys=hpux8 ;; 1129 esac
1824 *.09.* ) machine=hp9000s300 opsys=hpux9 ;; 1130
1825 *.10.* ) machine=hp9000s300 opsys=hpux10 ;; 1131 case "${canonical}" in
1826 *) machine=hp9000s300 opsys=hpux ;; 1132 *-hp-hpux7* ) opsys=hpux ;;
1133 *-hp-hpux8shr* ) opsys=hpux8shr ;;
1134 *-hp-hpux8* ) opsys=hpux8 ;;
1135 *-hp-hpux9shr* ) opsys=hpux9shr ;;
1136 *-hp-hpux9* ) opsys=hpux9 ;;
1137 *-hp-hpux10shr* ) opsys=hpux10shr ;;
1138 *-hp-hpux10* ) opsys=hpux10 ;;
1139 * )
1140 case "`uname -r`" in
1141 ## Someone's system reports A.B8.05 for this.
1142 ## I wonder what other possibilities there are.
1143 *.B8.* ) opsys=hpux8 ;;
1144 *.08.* ) opsys=hpux8 ;;
1145 *.09.* ) opsys=hpux9 ;;
1146 *.10.* ) opsys=hpux10 ;;
1147 * ) opsys=hpux ;;
1148 esac
1149 ;;
1827 esac 1150 esac
1828 ;; 1151 ;;
1829 1152
1830 ## HP 9000 series 700 and 800, running HP/UX 1153 hppa-*-nextstep* ) machine=hp800 opsys=nextstep ;;
1831 ## XEmacs changes here for shared.
1832 hppa*-hp-hpux7* )
1833 machine=hp800 opsys=hpux NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
1834 ;;
1835 hppa*-hp-hpux8*shr* )
1836 machine=hp800 opsys=hpux8*shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
1837 ;;
1838 hppa*-hp-hpux8* )
1839 machine=hp800 opsys=hpux8 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
1840 ;;
1841 hppa*-hp-hpux9*shr* )
1842 machine=hp800 opsys=hpux9*shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
1843 ;;
1844 hppa*-hp-hpux9* )
1845 machine=hp800 opsys=hpux9 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
1846 ;;
1847 hppa*-hp-hpux10*shr* )
1848 machine=hp800 opsys=hpux10*shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
1849 ;;
1850 hppa*-hp-hpux10* )
1851 machine=hp800 opsys=hpux10 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
1852 ;;
1853
1854 ## HP 9000 series 700 and 800, running HP/UX
1855 hppa*-hp-hpux* )
1856 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
1857 ## Cross-compilation? Nah!
1858 case "`uname -r`" in
1859 ## Someone's system reports A.B8.05 for this.
1860 ## I wonder what other possibilities there are.
1861 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1862 *.08.* ) machine=hp800 opsys=hpux8 ;;
1863 *.09.* ) machine=hp800 opsys=hpux9 ;;
1864 *.10.* ) machine=hp800 opsys=hpux10 ;;
1865 *) machine=hp800 opsys=hpux ;;
1866 esac
1867 ;;
1868 hppa-*-nextstep* )
1869 machine=hp800 opsys=nextstep
1870 ;;
1871 1154
1872 ## Orion machines 1155 ## Orion machines
1873 orion-orion-bsd* ) 1156 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1874 machine=orion opsys=bsd4-2 1157 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1875 ;;
1876 clipper-orion-bsd* )
1877 machine=orion105 opsys=bsd4-2
1878 ;;
1879 1158
1880 ## IBM machines 1159 ## IBM machines
1881 i[3-9]86-ibm-aix1.1* ) 1160 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1882 machine=ibmps2-aix opsys=usg5-2-2 1161 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1883 ;; 1162 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1884 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) 1163 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) machine=ibmrs6000 opsys=aix3-1 ;;
1885 machine=ibmps2-aix opsys=usg5-3 1164 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) machine=ibmrs6000 opsys=aix3-2-5 ;;
1886 ;; 1165 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) machine=ibmrs6000 opsys=aix4-1 ;;
1887 i370-ibm-aix*) 1166 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) machine=ibmrs6000 opsys=aix4 ;;
1888 machine=ibm370aix opsys=usg5-3 1167 rs6000-ibm-aix* | powerpc-ibm-aix* ) machine=ibmrs6000 opsys=aix3-2 ;;
1889 ;; 1168 romp-ibm-bsd4.3* ) machine=ibmrt opsys=bsd4-3 ;;
1890 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) 1169 romp-ibm-bsd4.2* ) machine=ibmrt opsys=bsd4-2 ;;
1891 machine=ibmrs6000 opsys=aix3-1 1170 romp-ibm-aos4.3* ) machine=ibmrt opsys=bsd4-3 ;;
1892 ;; 1171 romp-ibm-aos4.2* ) machine=ibmrt opsys=bsd4-2 ;;
1893 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) 1172 romp-ibm-aos* ) machine=ibmrt opsys=bsd4-3 ;;
1894 machine=ibmrs6000 opsys=aix3-2-5 1173 romp-ibm-bsd* ) machine=ibmrt opsys=bsd4-3 ;;
1895 ;; 1174 romp-ibm-aix* ) machine=ibmrt-aix opsys=usg5-2-2 ;;
1896 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) 1175 romp-ibm-mach* ) machine=ibmrt opsys=mach-bsd4-3 ;;
1897 machine=ibmrs6000 opsys=aix4-1
1898 ;;
1899 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
1900 machine=ibmrs6000 opsys=aix4
1901 ;;
1902 rs6000-ibm-aix* | powerpc-ibm-aix* )
1903 machine=ibmrs6000 opsys=aix3-2
1904 ;;
1905 romp-ibm-bsd4.3* )
1906 machine=ibmrt opsys=bsd4-3
1907 ;;
1908 romp-ibm-bsd4.2* )
1909 machine=ibmrt opsys=bsd4-2
1910 ;;
1911 romp-ibm-aos4.3* )
1912 machine=ibmrt opsys=bsd4-3
1913 ;;
1914 romp-ibm-aos4.2* )
1915 machine=ibmrt opsys=bsd4-2
1916 ;;
1917 romp-ibm-aos* )
1918 machine=ibmrt opsys=bsd4-3
1919 ;;
1920 romp-ibm-bsd* )
1921 machine=ibmrt opsys=bsd4-3
1922 ;;
1923 romp-ibm-aix* )
1924 machine=ibmrt-aix opsys=usg5-2-2
1925 ;;
1926 romp-ibm-mach* )
1927 machine=ibmrt opsys=mach-bsd4-3
1928 ;;
1929 1176
1930 ## Integrated Solutions `Optimum V' 1177 ## Integrated Solutions `Optimum V'
1931 m68*-isi-bsd4.2* ) 1178 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1932 machine=isi-ov opsys=bsd4-2 1179 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1933 ;;
1934 m68*-isi-bsd4.3* )
1935 machine=isi-ov opsys=bsd4-3
1936 ;;
1937 1180
1938 ## Intel 386 machines where we do care about the manufacturer 1181 ## Intel 386 machines where we do care about the manufacturer
1939 i[3-9]86-intsys-sysv* ) 1182 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1940 machine=is386 opsys=usg5-2-2
1941 ;;
1942 1183
1943 ## Prime EXL 1184 ## Prime EXL
1944 i[3-9]86-prime-sysv* ) 1185 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1945 machine=i386 opsys=usg5-3
1946 ;;
1947 1186
1948 ## Sequent Symmetry running Dynix 1187 ## Sequent Symmetry running Dynix
1949 i[3-9]86-sequent-bsd* ) 1188 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1950 machine=symmetry opsys=bsd4-3
1951 ;;
1952 1189
1953 ## Sequent Symmetry running DYNIX/ptx 1190 ## Sequent Symmetry running DYNIX/ptx
1954 ## Use the old cpp rather than the newer ANSI one. 1191 ## Use the old cpp rather than the newer ANSI one.
1955 i[3-9]86-sequent-ptx* ) 1192 i[3-9]86-sequent-ptx* )
1956 machine=sequent-ptx opsys=ptx 1193 machine=sequent-ptx opsys=ptx
1957 NON_GNU_CPP="/lib/cpp" 1194 NON_GNU_CPP="/lib/cpp"
1958 ;; 1195 ;;
1959 1196
1960 ## Unspecified sysv on an ncr machine defaults to svr4.2. 1197 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1961 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) 1198 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1962 i[3-9]86-ncr-sysv* ) 1199 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1963 machine=ncr386 opsys=usg5-4-2
1964 ;;
1965 1200
1966 ## Intel Paragon OSF/1 1201 ## Intel Paragon OSF/1
1967 i860-intel-osf1* ) 1202 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1968 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
1969 ;;
1970 1203
1971 ## Intel 860 1204 ## Intel 860
1972 i860-*-sysv4* ) 1205 i860-*-sysv4* )
1973 machine=i860 opsys=usg5-4 1206 machine=i860 opsys=usg5-4
1974 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. 1207 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1975 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. 1208 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1976 ;; 1209 ;;
1977 1210
1978 ## Masscomp machines 1211 ## Masscomp machines
1979 m68*-masscomp-rtu* ) 1212 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1980 machine=masscomp opsys=rtu
1981 ;;
1982 1213
1983 ## Megatest machines 1214 ## Megatest machines
1984 m68*-megatest-bsd* ) 1215 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1985 machine=mega68 opsys=bsd4-2
1986 ;;
1987 1216
1988 ## Workstations sold by MIPS 1217 ## Workstations sold by MIPS
1989 ## This is not necessarily all workstations using the MIPS processor - 1218 ## This is not necessarily all workstations using the MIPS processor -
1990 ## Irises are produced by SGI, and DECstations by DEC. 1219 ## Irises are produced by SGI, and DECstations by DEC.
1991 1220
1998 ## should use mips.h and usg5-2-2, they being listed first. 1227 ## should use mips.h and usg5-2-2, they being listed first.
1999 mips-mips-usg* ) 1228 mips-mips-usg* )
2000 machine=mips4 1229 machine=mips4
2001 ## Fall through to the general code at the bottom to decide on the OS. 1230 ## Fall through to the general code at the bottom to decide on the OS.
2002 ;; 1231 ;;
2003 mips-mips-riscos4* ) 1232 mips-mips-riscos4 )
2004 machine=mips4 opsys=bsd4-3 1233 machine=mips4
2005 NON_GNU_CC="cc -systype bsd43" 1234 NON_GNU_CC="cc -systype bsd43"
2006 NON_GNU_CPP="cc -systype bsd43 -E" 1235 NON_GNU_CPP="cc -systype bsd43 -E"
1236 case "${canonical}" in
1237 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1238 mips-mips-riscos5* ) opsys=riscos5 ;;
1239 esac
2007 ;; 1240 ;;
2008 mips-mips-riscos5* ) 1241 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
2009 machine=mips4 opsys=riscos5 1242 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
2010 NON_GNU_CC="cc -systype bsd43"
2011 NON_GNU_CPP="cc -systype bsd43 -E"
2012 ;;
2013 mips-mips-bsd* )
2014 machine=mips opsys=bsd4-3
2015 ;;
2016 mips-mips-* )
2017 machine=mips opsys=usg5-2-2
2018 ;;
2019 1243
2020 ## NeXT 1244 ## NeXT
2021 m68*-next-* | m68k-*-nextstep* ) 1245 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
2022 machine=m68k opsys=nextstep
2023 ;;
2024 1246
2025 ## The complete machine from National Semiconductor 1247 ## The complete machine from National Semiconductor
2026 ns32k-ns-genix* ) 1248 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
2027 machine=ns32000 opsys=usg5-2
2028 ;;
2029 1249
2030 ## NCR machines 1250 ## NCR machines
2031 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) 1251 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
2032 machine=tower32 opsys=usg5-2-2 1252 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
2033 ;;
2034 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2035 machine=tower32v3 opsys=usg5-3
2036 ;;
2037 1253
2038 ## Nixdorf Targon 31 1254 ## Nixdorf Targon 31
2039 m68*-nixdorf-sysv* ) 1255 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
2040 machine=targon31 opsys=usg5-2-2
2041 ;;
2042 1256
2043 ## Nu (TI or LMI) 1257 ## Nu (TI or LMI)
2044 m68*-nu-sysv* ) 1258 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
2045 machine=nu opsys=usg5-2
2046 ;;
2047 1259
2048 ## Plexus 1260 ## Plexus
2049 m68*-plexus-sysv* ) 1261 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
2050 machine=plexus opsys=usg5-2
2051 ;;
2052 1262
2053 ## Pyramid machines 1263 ## Pyramid machines
2054 ## I don't really have any idea what sort of processor the Pyramid has, 1264 ## I don't really have any idea what sort of processor the Pyramid has,
2055 ## so I'm assuming it is its own architecture. 1265 ## so I'm assuming it is its own architecture.
2056 pyramid-pyramid-bsd* ) 1266 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
2057 machine=pyramid opsys=bsd4-2
2058 ;;
2059 1267
2060 ## Sequent Balance 1268 ## Sequent Balance
2061 ns32k-sequent-bsd4.2* ) 1269 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
2062 machine=sequent opsys=bsd4-2 1270 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
2063 ;;
2064 ns32k-sequent-bsd4.3* )
2065 machine=sequent opsys=bsd4-3
2066 ;;
2067 1271
2068 ## Siemens Nixdorf 1272 ## Siemens Nixdorf
2069 mips-siemens-sysv* | mips-sni-sysv*) 1273 mips-siemens-sysv* | mips-sni-sysv*)
2070 machine=mips-siemens opsys=usg5-4 1274 machine=mips-siemens opsys=usg5-4
2071 NON_GNU_CC=/usr/ccs/bin/cc 1275 NON_GNU_CC=/usr/ccs/bin/cc
2072 NON_GNU_CPP=/usr/ccs/lib/cpp 1276 NON_GNU_CPP=/usr/ccs/lib/cpp
2073 ;; 1277 ;;
2074 1278
2075 ## Silicon Graphics machines 1279 ## Silicon Graphics machines
2076 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) 1280 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2077 m68*-sgi-iris3.5* ) 1281 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
2078 machine=irist opsys=iris3-5 1282 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
2079 ;;
2080 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2081 machine=irist opsys=iris3-6
2082 ;;
2083 ## Iris 4D 1283 ## Iris 4D
2084 mips-sgi-irix3.* ) 1284 mips-sgi-irix3.* ) machine=iris4d opsys=irix3-3 ;;
2085 machine=iris4d opsys=irix3-3 1285 mips-sgi-irix4.* ) machine=iris4d opsys=irix4-0 ;;
2086 ;; 1286 mips-sgi-irix6* ) machine=iris4d opsys=irix6-0 NON_GNU_CPP=/lib/cpp ;;
2087 mips-sgi-irix4.* ) 1287 mips-sgi-irix5.[3-9]* ) machine=iris4d opsys=irix5-3 ;;
2088 machine=iris4d opsys=irix4-0 1288 mips-sgi-irix5.2* ) machine=iris4d opsys=irix5-2 ;;
2089 ;; 1289 mips-sgi-irix5.1* ) machine=iris4d opsys=irix5-1 ;;
2090 mips-sgi-irix6* ) 1290 mips-sgi-irix* ) machine=iris4d opsys=irix5-0 ;;
2091 machine=iris4d opsys=irix6-0
2092 NON_GNU_CPP="cc -cckr -E"
2093 ;;
2094 mips-sgi-irix5.[3-9]* )
2095 machine=iris4d opsys=irix5-3
2096 ;;
2097 mips-sgi-irix5.2* )
2098 machine=iris4d opsys=irix5-2
2099 ;;
2100 mips-sgi-irix5.1* )
2101 machine=iris4d opsys=irix5-1
2102 ;;
2103 mips-sgi-irix5.* | mips-sgi-irix* )
2104 machine=iris4d opsys=irix5-0
2105 ;;
2106 1291
2107 ## SONY machines 1292 ## SONY machines
2108 m68*-sony-bsd4.2* ) 1293 m68*-sony-bsd4.2* ) machine=news opsys=bsd4-2 ;;
2109 machine=news opsys=bsd4-2 1294 m68*-sony-bsd4.3* ) machine=news opsys=bsd4-3 ;;
2110 ;; 1295 m68*-sony-newsos3* | m68*-sony-news3*) machine=news opsys=bsd4-3 ;;
2111 m68*-sony-bsd4.3* ) 1296 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) machine=news-risc opsys=bsd4-3 ;;
2112 machine=news opsys=bsd4-3 1297 mips-sony-news* ) machine=news-risc opsys=newsos5 ;;
2113 ;;
2114 m68*-sony-newsos3* | m68*-sony-news3*)
2115 machine=news opsys=bsd4-3
2116 ;;
2117 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2118 machine=news-risc opsys=bsd4-3
2119 ;;
2120 mips-sony-news* )
2121 machine=news-risc opsys=newsos5
2122 ;;
2123 1298
2124 ## Stride 1299 ## Stride
2125 m68*-stride-sysv* ) 1300 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
2126 machine=stride opsys=usg5-2
2127 ;;
2128 1301
2129 ## Suns 1302 ## Suns
2130 sparc-*-linux* ) 1303 sparc-*-linux* ) machine=sparc opsys=linux ;;
2131 machine=sparc opsys=linux
2132 ;;
2133 1304
2134 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* ) 1305 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
2135 # Hardware type 1306 # Hardware type
2136 case "${canonical}" in 1307 case "${canonical}" in
2137 m68*-sunos1* ) machine=sun1 ;; 1308 m68*-sunos1* ) machine=sun1 ;;
2145 * ) unported=yes ;; 1316 * ) unported=yes ;;
2146 esac 1317 esac
2147 1318
2148 # Make `canonical' even more so. 1319 # Make `canonical' even more so.
2149 case "${canonical}" in *-sunos5*) 1320 case "${canonical}" in *-sunos5*)
2150 canonical="`echo \"${canonical}\" | sed -e s/sunos5/solaris2/`"; 1321 canonical="`echo \"${canonical}\" | sed -e s/sunos5/solaris2/`";;
2151 esac 1322 esac
2152 1323
2153 # On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib 1324 # On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib
2154 # On SunOS 5, use /usr/ccs/lib/cpp, need dynodump, RANLIB not needed 1325 # On SunOS 5, use /usr/ccs/lib/cpp, need dynodump, RANLIB not needed
2155 # But, SunOS 5.6 no longer needs dynodump because it has a similar 1326 # But, SunOS 5.6 no longer needs dynodump because it has a similar
2156 # function integrated. 1327 # function integrated.
2157 case "${canonical}" in 1328 case "${canonical}" in
2158 *-sunos4* ) 1329 *-sunos4* )
2159 test -x /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;; 1330 test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
2160 *-solaris2.6* ) 1331 *-solaris2* )
2161 test -x /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp 1332 test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
2162 RANLIB=':' 1333 RANLIB=':'
2163 need_dynodump=no ;; 1334 case "${canonical}" in
2164 *-solaris2* ) 1335 *-solaris2.[6-9]* ) need_dynodump=no ;;
2165 test -x /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp 1336 *-solaris2* ) need_dynodump=yes ;;
2166 RANLIB=':' 1337 esac
2167 need_dynodump=yes ;;
2168 esac 1338 esac
2169 1339
2170 # (NON)?_GCC_TEST_OPTIONS variables are unused.
2171 # What were they supposed to do, exactly?
2172 # case "${canonical}" in
2173 # *-sunos4* ) GCC_TEST_OPTIONS=-static NON_GCC_TEST_OPTIONS=-bstatic ;;
2174 # esac
2175
2176 # FSF 19.31 has NON_GNU_CPP=/usr/lib/cpp for SunOS 4.x.
2177
2178 case "${canonical}" in 1340 case "${canonical}" in
2179 ## The Sun386 didn't get past 4.0. 1341 ## The Sun386 didn't get past 4.0.
2180 i[3-9]86-*-sunos4 ) opsys=sunos4-0 ;; 1342 i[3-9]86-*-sunos4 ) opsys=sunos4-0 ;;
2181 *-sunos4*shr* ) opsys=sunos4-0-shr ;; 1343 *-sunos4shr* ) opsys=sunos4-0shr ;;
2182 *-sunos4-0*shr* ) opsys=sunos4-0-shr ;; 1344 *-sunos4-0shr* ) opsys=sunos4-0shr ;;
2183 *-sunos4-1*shr* ) opsys=sunos4-1-shr ;; 1345 *-sunos4-1shr* ) opsys=sunos4-1shr ;;
2184 *-sunos4-1-2*shr* ) opsys=sunos4-1-2-shr ;; 1346 *-sunos4-1-2shr* ) opsys=sunos4-1-2shr ;;
2185 *-sunos4-1-3*shr* ) opsys=sunos4-1-3-shr ;; 1347 *-sunos4-1-[3-9]shr* ) opsys=sunos4-1-3shr ;;
2186 *-sunos4-1-[4-9]*shr* ) opsys=sunos4-1-4-shr ;;
2187 *-sunos4.0* ) opsys=sunos4-0 ;; 1348 *-sunos4.0* ) opsys=sunos4-0 ;;
2188 *-sunos4.1.2* ) opsys=sunos4-1-2 ;; 1349 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
2189 *-sunos4.1.3* ) opsys=sunos4-1-3 ;; 1350 *-sunos4.1.[3-9]* ) opsys=sunos4-1-3 ;;
2190 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
2191 *-sunos4* | *-sunos ) opsys=sunos4-1 ;; 1351 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
2192 1352
2193 *-solaris2.3* ) opsys=sol2-3 ;; 1353 *-solaris2.3* ) opsys=sol2-3 ;;
2194 *-solaris2.4* ) opsys=sol2-4 ;; 1354 *-solaris2.4* ) opsys=sol2-4 ;;
2195 *-solaris2.5* ) opsys=sol2-5 ;; 1355 *-solaris2.5* ) opsys=sol2-5 ;;
2196 *-solaris2.[6-9]* ) opsys=sol2-6 ;; 1356 *-solaris2.[6-9]* ) opsys=sol2-6 ;;
2197 *-solaris* ) opsys=sol2 ;; 1357 *-solaris* ) opsys=sol2 ;;
2198 *-mach* ) opsys=mach-bsd4-3 ;; 1358 *-mach* ) opsys=mach-bsd4-3 ;;
2199 * ) opsys=bsd4-2 ;; 1359 * ) opsys=bsd4-2 ;;
2200 esac 1360 esac
2201 ## Watch out for a compiler that we know will not work. 1361
1362 ## Watch out for a compiler that is guaranteed not to work.
2202 case "${canonical}" in 1363 case "${canonical}" in
2203 *-solaris* | *-sunos5* ) 1364 *-solaris* ) test "$CC" = "/usr/ucb/cc" && unset CC ;;
2204 if [ "x$CC" = x/usr/ucb/cc ]; then
2205 ## /usr/ucb/cc doesn't work;
2206 ## we should find some other compiler that does work.
2207 unset CC
2208 fi
2209 ;;
2210 *) ;;
2211 esac 1365 esac
2212 ;; 1366 ;;
2213 sparc-*-nextstep* ) 1367
2214 machine=sparc opsys=nextstep 1368 sparc-*-nextstep* ) machine=sparc opsys=nextstep ;;
2215 ;;
2216 1369
2217 ## Tadpole 68k 1370 ## Tadpole 68k
2218 m68*-tadpole-sysv* ) 1371 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
2219 machine=tad68k opsys=usg5-3
2220 ;;
2221 1372
2222 ## Tahoe machines 1373 ## Tahoe machines
2223 tahoe-tahoe-bsd4.2* ) 1374 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
2224 machine=tahoe opsys=bsd4-2 1375 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
2225 ;;
2226 tahoe-tahoe-bsd4.3* )
2227 machine=tahoe opsys=bsd4-3
2228 ;;
2229 1376
2230 ## Tandem Integrity S2 1377 ## Tandem Integrity S2
2231 mips-tandem-sysv* ) 1378 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
2232 machine=tandem-s2 opsys=usg5-3
2233 ;;
2234 1379
2235 ## Tektronix XD88 1380 ## Tektronix XD88
2236 m88k-tektronix-sysv3* ) 1381 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
2237 machine=tekxd88 opsys=usg5-3
2238 ;;
2239 1382
2240 ## Tektronix 16000 box (6130?) 1383 ## Tektronix 16000 box (6130?)
2241 ns16k-tektronix-bsd* ) 1384 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
2242 machine=ns16000 opsys=bsd4-2
2243 ;;
2244 ## Tektronix 4300 1385 ## Tektronix 4300
2245 ## src/m/tek4300.h hints that this is a m68k machine. 1386 ## src/m/tek4300.h hints that this is a m68k machine.
2246 m68*-tektronix-bsd* ) 1387 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
2247 machine=tek4300 opsys=bsd4-3
2248 ;;
2249 1388
2250 ## Titan P2 or P3 1389 ## Titan P2 or P3
2251 ## We seem to have lost the machine-description file titan.h! 1390 ## We seem to have lost the machine-description file titan.h!
2252 titan-titan-sysv* ) 1391 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
2253 machine=titan opsys=usg5-3
2254 ;;
2255 1392
2256 ## Ustation E30 (SS5E) 1393 ## Ustation E30 (SS5E)
2257 m68*-unisys-uniplus* ) 1394 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
2258 machine=ustation opsystem=unipl5-2
2259 ;;
2260 1395
2261 ## Vaxen. 1396 ## Vaxen.
2262 vax-dec-* ) 1397 vax-dec-* )
2263 machine=vax 1398 machine=vax
2264 case "${canonical}" in 1399 case "${canonical}" in
2272 * ) unported=yes 1407 * ) unported=yes
2273 esac 1408 esac
2274 ;; 1409 ;;
2275 1410
2276 ## Whitechapel MG1 1411 ## Whitechapel MG1
2277 ns16k-whitechapel-* ) 1412 ## We don't know what sort of OS runs on these; we'll let the
2278 machine=mg1 1413 ## operating system guessing code below try.
2279 ## We don't know what sort of OS runs on these; we'll let the 1414 ns16k-whitechapel-* ) machine=mg1 ;;
2280 ## operating system guessing code below try.
2281 ;;
2282 1415
2283 ## Wicat 1416 ## Wicat
2284 m68*-wicat-sysv* ) 1417 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
2285 machine=wicat opsys=usg5-2
2286 ;;
2287 1418
2288 ## Intel 386 machines where we don't care about the manufacturer 1419 ## Intel 386 machines where we don't care about the manufacturer
2289 i[3-9]86-*-* ) 1420 i[3-9]86-*-* )
2290 machine=intel386 1421 machine=intel386
2291 CPPFLAGS_MAKEFILEGEN="${CPPFLAGS_MAKEFILEGEN} -Ui386"
2292 case "${canonical}" in 1422 case "${canonical}" in
2293 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; 1423 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2294 *-isc2.2* ) opsys=isc2-2 ;; 1424 *-isc2.2* ) opsys=isc2-2 ;;
2295 *-isc4.0* ) opsys=isc4-0 ;; 1425 *-isc4.0* ) opsys=isc4-0 ;;
2296 *-isc4.* ) opsys=isc4-1 1426 *-isc4.* ) opsys=isc4-1
2303 *-mach* ) opsys=mach-bsd4-3 ;; 1433 *-mach* ) opsys=mach-bsd4-3 ;;
2304 *-xenix* ) opsys=xenix ;; 1434 *-xenix* ) opsys=xenix ;;
2305 *-linux* ) opsys=linux ;; 1435 *-linux* ) opsys=linux ;;
2306 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; 1436 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2307 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;; 1437 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
2308 *-bsdi3* ) opsys=bsdos3 ;;
2309 *-bsdi2.1* ) opsys=bsdos2-1 ;; 1438 *-bsdi2.1* ) opsys=bsdos2-1 ;;
2310 *-bsdi2* ) opsys=bsdos2 ;; 1439 *-bsdi2* ) opsys=bsdos2 ;;
2311 *-sco3.2v5* ) opsys=sco5 ; 1440 *-sco3.2v5* ) opsys=sco5 ;
2312 ## This is a pain. Like the current USL cc, SCO's cc -E 1441 ## This is a pain. Like the current USL cc, SCO's cc -E
2313 ## tokenizes as it preprocesses, making configure very 1442 ## tokenizes as it preprocesses, making configure very
2314 ## unhappy. Unfortunately, /lib/cpp doesn't understand 1443 ## unhappy. Unfortunately, /lib/cpp doesn't understand
2315 ## flags like "-b elf", so we have to cheat in order to 1444 ## flags like "-b elf", so we have to cheat in order to
2316 ## pick up the right defines for UNEXEC from the s-file. 1445 ## pick up the right defines for UNEXEC from the s-file.
2317 ## 01/05/95 robertl@dgii.com 1446 ## 01/05/95 robertl@dgii.com
2318 if [ "${dynamic}" = "yes" ]; then 1447 if test "${dynamic}" = "yes" ; then
2319 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ; 1448 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
2320 else 1449 else
2321 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ; 1450 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
2322 fi ;; 1451 fi ;;
2323 *-386bsd* ) opsys=386bsd ;; 1452 *-386bsd* ) opsys=386bsd ;;
2324 *-freebsd* ) opsys=freebsd ;; 1453 *-freebsd* ) opsys=freebsd ;;
2325 *-nextstep* ) opsys=nextstep ;; 1454 *-nextstep* ) opsys=nextstep ;;
2326 ## Otherwise, we'll fall through to the generic opsys code at the bottom. 1455 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2327 esac 1456 esac
2328 ;; 1457 ;;
2329 1458
2330 ## Linux/68k 1459 ## Linux/68k
2331 m68k-*-linux* ) 1460 m68k-*-linux* ) machine=m68k opsys=linux ;;
2332 machine=m68k opsys=linux 1461
2333 ;; 1462 * ) unported=yes ;;
2334
2335 * )
2336 unported=yes
2337 ;;
2338 esac 1463 esac
2339 1464
2340 ### If the code above didn't choose an operating system, just choose 1465 ### If the code above didn't choose an operating system, just choose
2341 ### an operating system based on the configuration name. You really 1466 ### an operating system based on the configuration name. You really
2342 ### only want to use this when you have no idea what the right 1467 ### only want to use this when you have no idea what the right
2343 ### operating system is; if you know what operating systems a machine 1468 ### operating system is; if you know what operating systems a machine
2344 ### runs, it's cleaner to make it explicit in the case statement 1469 ### runs, it's cleaner to make it explicit in the case statement
2345 ### above. 1470 ### above.
2346 if [ x"${opsys}" = x ]; then 1471 if test -z "${opsys}" ; then
2347 case "${canonical}" in 1472 case "${canonical}" in
2348 *-gnu* ) opsys=gnu ;; 1473 *-gnu* ) opsys=gnu ;;
2349 *-bsd4.[01] ) opsys=bsd4-1 ;; 1474 *-bsd4.[01] ) opsys=bsd4-1 ;;
2350 *-bsd4.2 ) opsys=bsd4-2 ;; 1475 *-bsd4.2 ) opsys=bsd4-2 ;;
2351 *-bsd4.3 ) opsys=bsd4-3 ;; 1476 *-bsd4.3 ) opsys=bsd4-3 ;;
2352 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; 1477 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2353 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; 1478 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2354 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; 1479 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2355 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; 1480 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2356 *-sysv4.1* | *-sysvr4.1* ) 1481 *-sysv4.1* | *-sysvr4.1* )
2357 NON_GNU_CPP=/usr/lib/cpp 1482 NON_GNU_CPP=/usr/lib/cpp
2358 opsys=usg5-4 ;; 1483 opsys=usg5-4 ;;
2359 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) 1484 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2360 if [ x$NON_GNU_CPP = x ]; then 1485 if test -z "$NON_GNU_CPP" ; then
2361 if [ -f /usr/ccs/lib/cpp ]; then 1486 if test -f /usr/ccs/lib/cpp
2362 NON_GNU_CPP=/usr/ccs/lib/cpp 1487 then NON_GNU_CPP=/usr/ccs/lib/cpp
2363 else 1488 else NON_GNU_CPP=/lib/cpp
2364 NON_GNU_CPP=/lib/cpp
2365 fi 1489 fi
2366 fi 1490 fi
2367 opsys=usg5-4-2 ;; 1491 opsys=usg5-4-2 ;;
2368 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; 1492 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2369 * ) 1493 * ) unported=yes ;;
2370 unported=yes
2371 ;;
2372 esac 1494 esac
2373 fi 1495 fi
2374 1496
2375 if test "x$RANLIB" = x; then 1497 test -z "$RANLIB" && RANLIB=ranlib
2376 RANLIB=ranlib
2377 fi
2378 1498
2379 if test ${unported} = yes; then 1499 if test ${unported} = yes; then
2380 (echo "${progname}: XEmacs hasn't been ported to \`${canonical}' systems." 1500 (echo "${progname}: XEmacs hasn't been ported to \`${canonical}' systems."
2381 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names." 1501 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
2382 ) >&2 1502 ) >&2
2383 exit 1 1503 exit 1
2384 fi 1504 fi
2385 1505
2386 if [ "${dynamic}" = "yes" ]; then 1506 if test "${dynamic}" = "yes" ; then
2387 case "${opsys}" in 1507 case "${opsys}" in
2388 hpux8 ) opsys=hpux8-shr ;; 1508 hpux8 | hpux9 | hpux10 | sunos4-0 | sunos4-1 | sunos4-1-2 | sunos4-1-3 | sco5 )
2389 hpux9 ) opsys=hpux9-shr ;; 1509 opsys="${opsys}-shr" ;;
2390 hpux10 ) opsys=hpux10-shr ;;
2391 sunos4-0 ) opsys=sunos4-0-shr ;;
2392 sunos4-1 ) opsys=sunos4-1-shr ;;
2393 sunos4-1-2 ) opsys=sunos4-1-2-shr ;;
2394 sunos4-1-3 ) opsys=sunos4-1-3-shr ;;
2395 sunos4-1-4 ) opsys=sunos4-1-4-shr ;;
2396 sco5 ) opsys=sco5-shr ;;
2397 esac 1510 esac
2398 elif [ "${dynamic}" = "no" ]; then 1511 elif test "${dynamic}" = "no" ; then
2399 case "${opsys}" in 1512 case "${opsys}" in
2400 sol2 ) opsys=sol2-static ;; 1513 sol2 | sol2-3 | sol2-4 | decosf1-3 | decosf3-1 | decosf3-2 | linux )
2401 sol2-3 ) opsys=sol2-3-static ;; 1514 opsys="${opsys}-static" ;;
2402 sol2-4 ) opsys=sol2-4-static ;;
2403 decosf1-3 ) opsys=decosf1-3-static ;;
2404 decosf3-1 ) opsys=decosf3-1-static ;;
2405 decosf3-2 ) opsys=decosf3-2-static ;;
2406 decosf4-0 ) opsys=decosf4-0-static ;;
2407 linux ) opsys=linux-static ;;
2408 esac 1515 esac
2409 fi 1516 fi
2410 1517
2411 dynodump_arch='' 1518 dynodump_arch=''
2412 if [ "${need_dynodump}" = "yes" ]; then 1519 if test "${need_dynodump}" = "yes" ; then
2413 case "${canonical}" in 1520 case "${canonical}" in
2414 sparc* ) dynodump_arch=sparc ;; 1521 sparc* ) dynodump_arch=sparc ;;
2415 powerpc* ) dynodump_arch=ppc ;; 1522 powerpc* ) dynodump_arch=ppc ;;
2416 i[3-9]86* ) dynodump_arch=i386 ;; 1523 i[3-9]86* ) dynodump_arch=i386 ;;
2417 esac 1524 esac
2438 dnl Note that we *must* include the brackets around the macro definition 1545 dnl Note that we *must* include the brackets around the macro definition
2439 dnl name here. Autoconf has redefined the quoting characters to be brackets, 1546 dnl name here. Autoconf has redefined the quoting characters to be brackets,
2440 dnl and if we don't supply them, the original definition will get 1547 dnl and if we don't supply them, the original definition will get
2441 dnl substituted in place of the macro name! 1548 dnl substituted in place of the macro name!
2442 dnl 1549 dnl
1550
1551 dnl Following macro is useful shorthand
1552 define([IF_YES_AC_DEFINE],test "${$1}" = yes && [AC_DEFINE]($2))
1553
2443 define([AC_TEST_CPP], 1554 define([AC_TEST_CPP],
2444 [AC_REQUIRE_CPP()dnl 1555 [AC_REQUIRE_CPP()dnl
2445 cat > conftest.${ac_ext} <<EOF 1556 cat > conftest.${ac_ext} <<EOF
2446 #include "confdefs.h" 1557 #include "confdefs.h"
2447 [$1] 1558 [$1]
2448 EOF 1559 EOF
2449 # Some shells (Coherent) do redirections in the wrong order, so need 1560 dnl # Some shells (Coherent) do redirections in the wrong order, so need
2450 # the parens. 1561 dnl # the parens.
2451 # The exec was added by Mly to make this work under BSDI 1562 dnl # The exec was added by Mly to make this work under BSDI
2452 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` 1563 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
2453 # Use test here, not brackets, to avoid strange autoconf-quoting lossage. 1564 dnl # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
2454 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then 1565 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
2455 echo "$ac_err" 1566 echo "$ac_err"
2456 fi 1567 fi
2457 if test -z "$ac_err"; then 1568 if test -z "$ac_err"; then
2458 ifelse([$2], , :, [rm -rf conftest* 1569 ifelse([$2], , :, [rm -rf conftest*
2489 dnl We need to run this which will prevent cross-configuring. But since 1600 dnl We need to run this which will prevent cross-configuring. But since
2490 dnl we can't do that anyhow, oh darn. 1601 dnl we can't do that anyhow, oh darn.
2491 ac_save_LIBS="${LIBS}" 1602 ac_save_LIBS="${LIBS}"
2492 LIBS="${LIBS} ${DEFS}" 1603 LIBS="${LIBS} ${DEFS}"
2493 if eval $ac_compile; then 1604 if eval $ac_compile; then
2494 ac_find_x_version=`./conftest` 1605 case "`./conftest`" in
2495 [ 1606 X11R4 ) AC_DEFINE(THIS_IS_X11R4) ;;
2496 if [ "$ac_find_x_version" = "X11R4" ]; then 1607 X11R5 ) AC_DEFINE(THIS_IS_X11R5) ;;
2497 ] AC_DEFINE(THIS_IS_X11R4) [ 1608 X11R6 ) AC_DEFINE(THIS_IS_X11R6) ;;
2498 elif [ "$ac_find_x_version" = "X11R5" ]; then 1609 esac
2499 ] AC_DEFINE(THIS_IS_X11R5) [
2500 elif [ "$ac_find_x_version" = "X11R6" ]; then
2501 ] AC_DEFINE(THIS_IS_X11R6) [
2502 fi
2503 ]
2504 fi 1610 fi
2505 LIBS=$ac_save_LIBS 1611 LIBS=$ac_save_LIBS
2506 rm -f conftest*] 1612 rm -f conftest*]
2507 )dnl 1613 )dnl
2508 dnl ----------------------------------------------------------------------- 1614 dnl -----------------------------------------------------------------------
2509 AC_LANG_C 1615 AC_LANG_C
2510 AC_PREPARE(lisp) 1616 AC_PREPARE(lisp)
2511 AC_CONFIG_HEADER(src/config.h) 1617 AC_CONFIG_HEADER(src/config.h)
2512 1618
2513 [ 1619 if test "${extra_verbose}" = "yes" ; then
2514
2515 if [ "${extra_verbose}" = "yes" ] ; then
2516 # This is identical to the version that A\C_LANG_C generates except that 1620 # This is identical to the version that A\C_LANG_C generates except that
2517 # it omits the redirection of all output to /dev/null. 1621 # it omits the redirection of all output to /dev/null.
2518 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS' 1622 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS'
2519 fi 1623 fi
2520 1624
2521 #### Choose a compiler. 1625 #### Choose a compiler.
2522 if [ "x$CC" = x ] ; then 1626 if test "x$CC" = x ; then
2523 cc_specified=1 1627 cc_specified=1
2524 fi 1628 fi
2525 1629
2526 # Save the value of CFLAGS that the user specified. 1630 # Save the value of CFLAGS that the user specified.
2527 SPECIFIED_CFLAGS="$CFLAGS" 1631 SPECIFIED_CFLAGS="$CFLAGS"
2528 1632
2529 if [ "${with_gcc}" = "yes" ] ; then 1633 if test "${with_gcc}" = "yes" ; then
2530 CC="${compiler-gcc}" 1634 CC="${compiler-gcc}"
2531 GCC=1 1635 GCC=1
2532 elif [ "${with_lcc}" = "yes" ] ; then 1636 elif test "${with_lcc}" = "yes" ; then
2533 CC="${compiler-lcc}" 1637 CC="${compiler-lcc}"
2534 dash_r_space=' ' # this bullshit is here because lcc for solaris 1638 dash_r_space=' ' # this bullshit is here because lcc for solaris
2535 # will not accept -Rargument. 1639 # will not accept -Rargument.
2536 # It needs -R argument instead. Yuck yuck yuck. 1640 # It needs -R argument instead. Yuck yuck yuck.
2537 if [ "x$NON_GNU_CPP" = x ] ; then 1641 test -z "$NON_GNU_CPP" && NON_GNU_CPP="yes" # this is handled specially below...
2538 NON_GNU_CPP="yes" # this is handled specially below... 1642 elif test "${compiler}" != "" ; then CC="${compiler}"
2539 fi 1643 elif test "${with_gcc}" = "no" ; then CC="cc"
2540 elif [ "${compiler}" != "" ] ; then 1644 elif test "${with_lcc}" = "no" ; then
2541 CC="${compiler}" 1645 test -z "$CC" && CC=cc
2542 elif [ "${with_gcc}" = "no" ] ; then
2543 CC="cc"
2544 elif [ "${with_lcc}" = "no" ] ; then
2545 if [ "x$CC" = x ]
2546 then CC=cc;
2547 else true;
2548 fi
2549 else 1646 else
2550 case "${canonical}" in 1647 case "${canonical}" in
2551 * ) 1648 * )
2552 ] AC_PROG_CC [ 1649 AC_PROG_CC
2553 if [ "${CC}" = "gcc" ] ; then 1650 if test "${CC}" = "gcc" ; then
2554 with_gcc="yes" 1651 with_gcc="yes"
2555 GCC=1 1652 GCC=1
2556 fi 1653 fi
2557 ;; 1654 ;;
2558 esac 1655 esac
2559 fi 1656 fi
2560 1657
2561 # On Suns, sometimes $CPP names a directory. 1658 [
2562 if [ -n "$CPP" ] && [ -d "$CPP" ] ; then
2563 CPP=
2564 fi
2565 1659
2566 #### Some systems specify a CPP to use unless we are using GCC. 1660 #### Some systems specify a CPP to use unless we are using GCC.
2567 #### Now that we know whether we are using GCC, we can decide whether 1661 #### Now that we know whether we are using GCC, we can decide whether
2568 #### to use that one. 1662 #### to use that one.
2569 1663 if test "x$NON_GNU_CPP" = x -o x$GCC = x1
2570 if [ "x$GCC" = x1 ] || [ "x$NON_GNU_CPP" = x ] ; then 1664 then true
2571 true
2572 else 1665 else
2573 if [ "x$CPP" = x ]; then 1666 if test "x$CPP" = x ; then
2574 if [ "${with_lcc}" = "yes" ] && [ "${NON_GNU_CPP}" = "yes" ] ; then 1667 if test "${with_lcc}" = "yes" -a "${NON_GNU_CPP}" = "yes"; then
2575 CPP='gcc -E -traditional' # cross fingers and hope it's there.... 1668 CPP='gcc -E -traditional' # cross fingers and hope it's there....
2576 else 1669 else
2577 CPP="$NON_GNU_CPP" 1670 CPP="$NON_GNU_CPP"
2578 fi 1671 fi
2579 fi 1672 fi
2580 fi 1673 fi
2581 1674
2582 #### Some systems specify a CC to use unless we are using GCC. 1675 #### Some systems specify a CC to use unless we are using GCC.
2583 #### Now that we know whether we are using GCC, we can decide whether 1676 #### Now that we know whether we are using GCC, we can decide whether
2584 #### to use that one. 1677 #### to use that one.
2585 if [ "x$NON_GNU_CC" = x ] || [ x$GCC = x1 ] || [ x$cc_specified = x1 ] 1678 if test "x$NON_GNU_CC" = x -o x$GCC = x1 -o x$cc_specified = x1
2586 then true 1679 then true
2587 else 1680 else
2588 CC="$NON_GNU_CC" 1681 CC="$NON_GNU_CC"
2589 fi 1682 fi
2590 1683
2591 ## Huh? I commented out the following because it always enabled 1684 ## Huh? I commented out the following because it always enabled
2592 ## the "test" options, whatever the hell those are supposed to be 1685 ## the "test" options, whatever the hell those are supposed to be
2593 ## for, and the result is that SunOS builds were always static. 1686 ## for, and the result is that SunOS builds were always static.
2594 1687
2595 #if [ x$GCC = x1 ] && [ "x$GCC_TEST_OPTIONS" != x ] 1688 # test x$GCC = x1 -a "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
2596 #then 1689 # test x$GCC = x -a "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
2597 # CC="$CC $GCC_TEST_OPTIONS"
2598 #fi
2599 #
2600 #if [ x$GCC = x ] && [ "x$NON_GCC_TEST_OPTIONS" != x ]
2601 #then
2602 # CC="$CC $NON_GCC_TEST_OPTIONS"
2603 #fi
2604 1690
2605 ############################################################################ 1691 ############################################################################
2606 # # 1692 # #
2607 # Do some misc autoconf-special tests # 1693 # Do some misc autoconf-special tests #
2608 # # 1694 # #
2615 dnl checks for programs 1701 dnl checks for programs
2616 AC_PROG_CPP 1702 AC_PROG_CPP
2617 [ 1703 [
2618 case "${canonical}" in 1704 case "${canonical}" in
2619 *-sun-sunos* ) 1705 *-sun-sunos* )
2620 if [ "${CPP}" = "acc -E" ] ; then 1706 if test "${CPP}" = "acc -E" ; then
2621 CPP="acc -E -Xs" 1707 CPP="acc -E -Xs"
2622 fi 1708 fi
2623 ;; 1709 ;;
2624 esac 1710 esac
2625 ] 1711 ]
2629 1715
2630 dnl checks for UNIX variants 1716 dnl checks for UNIX variants
2631 AC_AIX 1717 AC_AIX
2632 1718
2633 dnl checks for header files 1719 dnl checks for header files
2634 AC_HAVE_HEADERS(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) 1720 AC_HAVE_HEADERS(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 kstat.h sys/pstat.h)
2635 AC_STDC_HEADERS 1721 AC_STDC_HEADERS
2636 AC_TIME_WITH_SYS_TIME 1722 AC_TIME_WITH_SYS_TIME
2637 AC_SYS_SIGLIST_DECLARED 1723 AC_SYS_SIGLIST_DECLARED
2638 1724
2639 dnl Some systems have utime.h but don't declare the struct anyplace. 1725 dnl Some systems have utime.h but don't declare the struct anyplace.
2710 1796
2711 #### Choose a window system. 1797 #### Choose a window system.
2712 echo "checking for specified window system" 1798 echo "checking for specified window system"
2713 1799
2714 window_system='' 1800 window_system=''
2715 case "${with_x11}" in 1801 case "${with_x11}" in
2716 yes ) 1802 yes ) window_system=${window_system}x11 ;;
2717 window_system=${window_system}x11 1803 no ) window_system=${window_system}none ;;
2718 ;;
2719 no )
2720 window_system=${window_system}none
2721 esac 1804 esac
2722 1805
2723 case "${window_system}" in 1806 case "${window_system}" in
2724 "none" | "x11" ) ;; 1807 "none" | "x11" ) ;;
2725 "" ) 1808 "" )
2726 # --x-includes or --x-libraries implies --with-x11. 1809 # --x-includes or --x-libraries implies --with-x11.
2727 if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then 1810 if test -n "${x_includes}" -o -n "${x_libraries}"; then
2728 window_system=x11 1811 window_system=x11
2729 else 1812 else
2730 echo " No window system specified. Looking for X11." 1813 echo " No window system specified. Looking for X11."
2731 # If the user didn't specify a window system and we found X11, use it. 1814 # If the user didn't specify a window system and we found X11, use it.
2732 if [ -r /usr/lib/libX11.a \ 1815 if test -r /usr/lib/libX11.a \
2733 -o -d /usr/include/X11 \ 1816 -o -d /usr/include/X11 \
2734 -o -d /usr/X386/include \ 1817 -o -d /usr/X386/include \
2735 -o -d /usr/X11R6/include \ 1818 -o -d /usr/X11R6/include \
2736 -o -d ${x_includes}/X11 ]; then 1819 -o -d ${x_includes}/X11 ; then
2737 window_system=x11 1820 window_system=x11
2738 fi 1821 fi
2739 fi 1822 fi
2740 ;; 1823 ;;
2741 * ) 1824 * )
2742 echo "Don't specify a window system more than once." >&2 1825 echo "Don't specify a window system more than once." >&2
2743 exit 1 1826 exit 1
2744 ;; 1827 ;;
2745 esac 1828 esac
2746 1829
2747 case "${window_system}" in 1830 ]
2748 "" | "x11" ) 1831 case "${window_system}" in "" | "x11" )
2749 ### If the user hasn't specified where we should find X, try 1832 ### If the user hasn't specified where we should find X, try
2750 ### letting autoconf figure that out. 1833 ### letting autoconf figure that out.
2751 if [ -z "${x_includes}" ] && [ -z "${x_libraries}" ]; then 1834 if test -z "${x_includes}${x_libraries}" ; then
2752 ] 1835 AC_FIND_X
2753 AC_FIND_X
2754 [
2755 fi 1836 fi
2756 if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then 1837 if test -n "${x_includes}${x_libraries}" ; then window_system=x11 ; fi
2757 window_system=x11
2758 fi
2759 ;; 1838 ;;
2760 esac 1839 esac
2761 1840
2762 [ -z "${window_system}" ] && window_system=none 1841 test -z "${window_system}" && window_system="none"
2763 1842
2764 if [ "${window_system}" = "none" ]; then 1843 if test "${window_system}" = "none" ; then
2765 if [ "${with_tty}" != "yes" ]; then 1844 if test "${with_tty}" != "yes" ; then
2766 echo "No window system support, and no TTY support." >&2 1845 echo "No window system support, and no TTY support." >&2
2767 echo "Unable to proceed." >&2 1846 echo "Unable to proceed." >&2
2768 exit 1 1847 exit 1
2769 fi 1848 fi
2770 if [ "${with_epoch}" = "yes" ]; then 1849 for feature in epoch cde offix menubars scrollbars toolbars dialogs xim tiff
2771 ] AC_WARN(--with-epoch ignored: Not valid without X support) [ 1850 do
2772 with_epoch='no' 1851 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then
2773 fi 1852 AC_WARN(--with-$feature ignored: Not valid without X support)
2774 if [ "x${with_cde}" != x ]; then 1853 fi
2775 ] AC_WARN(--with-cde ignored: Not valid without X support) [ 1854 eval "with_$feature=no"
2776 with_menubars='no' 1855 done
2777 fi 1856 elif test -z "${with_toolbars}" ; then
2778 if [ "x${with_offix}" != x ]; then
2779 ] AC_WARN(--with-offix ignored: Not valid without X support) [
2780 with_offix='no'
2781 fi
2782 if [ "x${with_menubars}" != x ]; then
2783 ] AC_WARN(--with-menubars ignored: Not valid without X support) [
2784 with_menubars='no'
2785 fi
2786 if [ "x${with_scrollbars}" != x ]; then
2787 ] AC_WARN(--with-scrollbars ignored: Not valid without X support) [
2788 with_scrollbars='no'
2789 fi
2790 if [ "x${with_dialogs}" != x ]; then
2791 ] AC_WARN(--with-dialogs ignored: Not valid without X support) [
2792 with_dialogs='no'
2793 fi
2794 if [ "x${with_toolbars}" != x ]; then
2795 ] AC_WARN(--with-toolbars ignored: Not valid without X support) [
2796 with_toolbars='no'
2797 fi
2798 with_cde='no'
2799 with_offix='no'
2800 with_menubars='no'
2801 with_scrollbars='no'
2802 with_dialogs='no'
2803 with_toolbars='no'
2804 elif [ -z "${with_toolbars}" ] ; then
2805 with_toolbars='yes' 1857 with_toolbars='yes'
2806 fi 1858 fi
2807 1859 [
2808 case "${canonical}" in 1860 case "${canonical}" in
2809 *-sun-solaris* | *-sun-sunos5* ) add_runtime_flag=yes ;; 1861 *-sun-solaris* | *-sun-sunos5* ) add_runtime_flag=yes ;;
2810 esac 1862 esac
2811 1863
2812 if [ -n "${x_libraries}" ]; then 1864 if test -n "${x_libraries}" ; then
2813 if [ "${add_runtime_flag}" ]; then 1865 if test "${add_runtime_flag}" ; then
2814 LD_SWITCH_X_SITE="-L${x_libraries} -R${dash_r_space}${x_libraries}" 1866 LD_SWITCH_X_SITE="-L${x_libraries} -R${dash_r_space}${x_libraries}"
2815 else 1867 else
2816 LD_SWITCH_X_SITE="-L${x_libraries}" 1868 LD_SWITCH_X_SITE="-L${x_libraries}"
2817 fi 1869 fi
2818 fi 1870 fi
2819 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h. 1871 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h.
2820 # [ -n "${x_libraries}" ] && LD_SWITCH_X_SITE_AUX="-R${x_libraries}" 1872 # test -n "${x_libraries}" -a LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
2821 [ -n "${x_includes}" ] && C_SWITCH_X_SITE="-I${x_includes}" 1873 test -n "${x_includes}" && C_SWITCH_X_SITE="-I${x_includes}"
2822 1874
2823 if [ -n "${site_libraries}" ]; then 1875 if test -n "${site_libraries}" ; then
2824 for arg in ${site_libraries} 1876 for arg in ${site_libraries}
2825 do 1877 do
2826 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}" 1878 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
2827 done 1879 done
2828 fi 1880 fi
2829 if [ -n "${site_runtime_libraries}" ]; then 1881 if test -n "${site_runtime_libraries}" ; then
2830 for arg in ${site_runtime_libraries} 1882 for arg in ${site_runtime_libraries}
2831 do 1883 do
2832 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}" 1884 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
2833 LD_SWITCH_SITE="${LD_SWITCH_SITE} -R${dash_r_space}${arg}" 1885 LD_SWITCH_SITE="${LD_SWITCH_SITE} -R${dash_r_space}${arg}"
2834 done 1886 done
2835 fi 1887 fi
2836 if [ -n "${site_includes}" ]; then 1888 if test -n "${site_includes}" ; then
2837 for arg in ${site_includes} 1889 for arg in ${site_includes}
2838 do 1890 do
2839 C_SWITCH_SITE="${C_SWITCH_SITE} -I${arg}" 1891 C_SWITCH_SITE="${C_SWITCH_SITE} -I${arg}"
2840 CPP="${CPP} -I${arg}" 1892 CPP="${CPP} -I${arg}"
2841 done 1893 done
2843 1895
2844 # FSF 19.29 has some bitmapdir stuff here. 1896 # FSF 19.29 has some bitmapdir stuff here.
2845 bitmapdir= 1897 bitmapdir=
2846 1898
2847 # Avoid forcing the search of /usr/include before fixed include files. 1899 # Avoid forcing the search of /usr/include before fixed include files.
2848 if [ "$C_SWITCH_X_SITE" = "-I/usr/include" ]; then 1900 test "$C_SWITCH_X_SITE" = "-I/usr/include" && C_SWITCH_X_SITE=" "
2849 C_SWITCH_X_SITE=" "
2850 fi
2851 1901
2852 # Need for check for audio/Xtutil.h. 1902 # Need for check for audio/Xtutil.h.
2853 CPP="${CPP} ${C_SWITCH_X_SITE}" 1903 CPP="${CPP} ${C_SWITCH_X_SITE}"
2854 1904
2855 case "${window_system}" in 1905 case "${window_system}" in
2856 x11 ) 1906 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
2857 HAVE_X_WINDOWS=yes 1907 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
2858 echo " Using X11."
2859 ;;
2860 none )
2861 HAVE_X_WINDOWS=no
2862 echo " Using no window system."
2863 ;;
2864 esac 1908 esac
2865 1909
2866 if test "${opsys}" = "hpux9"; then 1910 if test "${opsys}" = "hpux9"; then
2867 case "${x_libraries}" in 1911 case "${x_libraries}" in
2868 *X11R4* ) 1912 *X11R4* ) opsysfile="s/hpux9-x11r4.h" ;;
2869 opsysfile="s/hpux9-x11r4.h"
2870 ;;
2871 esac 1913 esac
2872 fi 1914 fi
2873 1915
2874 if test "${opsys}" = "hpux9-shr"; then 1916 if test "${opsys}" = "hpux9shr"; then
2875 case "${x_libraries}" in 1917 case "${x_libraries}" in
2876 *X11R4* ) 1918 *X11R4* ) opsysfile="s/hpux9shxr4.h" ;;
2877 opsysfile="s/hpux9shxr4.h"
2878 ;;
2879 esac 1919 esac
2880 fi 1920 fi
2881 1921
2882 ############################################################################ 1922 ############################################################################
2883 # # 1923 # #
2992 # to get its actual value... 2032 # to get its actual value...
2993 CPP=`eval "echo $CPP"` 2033 CPP=`eval "echo $CPP"`
2994 eval `${CPP} -Isrc ${tempcname} \ 2034 eval `${CPP} -Isrc ${tempcname} \
2995 | grep 'configure___' \ 2035 | grep 'configure___' \
2996 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` 2036 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
2997 if [ "x$SPECIFIED_CFLAGS" = x ]; then 2037 if test "x$SPECIFIED_CFLAGS" = x ; then
2998 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ 2038 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
2999 | grep 'configure___' \ 2039 | grep 'configure___' \
3000 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` 2040 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3001 else 2041 else
3002 REAL_CFLAGS="$CFLAGS" 2042 REAL_CFLAGS="$CFLAGS"
3003 fi 2043 fi
3004 rm ${tempcname} 2044 rm ${tempcname}
3005 2045
3006 # override CFLAGS if user wishes 2046 # override CFLAGS if user wishes
3007 if [ "${cflags}" != "NO_CFLAGS_DEFINED" ]; then 2047 if test "${cflags}" != "NO_CFLAGS_DEFINED" ; then
3008 REAL_CFLAGS=${cflags} 2048 REAL_CFLAGS=${cflags}
3009 fi 2049 fi
3010 2050
3011 ### Compute the unexec source name from the object name. 2051 ### Compute the unexec source name from the object name.
3012 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" 2052 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
3013 2053
3014 # Do the opsystem or machine files prohibit the use of the GNU malloc? 2054 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3015 # Assume not, until told otherwise. 2055 # Assume not, until told otherwise.
3016 GNU_MALLOC=yes 2056 GNU_MALLOC=yes
3017 if [ "${system_malloc}" = "yes" ]; then 2057 if test "${system_malloc}" = "yes" ; then
3018 GNU_MALLOC=no 2058 GNU_MALLOC=no
3019 GNU_MALLOC_reason=" 2059 GNU_MALLOC_reason="
3020 (The GNU allocators don't work with this system configuration.)" 2060 (The GNU allocators don't work with this system configuration.)"
3021 elif [ "${use_system_malloc}" = "yes" ]; then 2061 elif test "${use_system_malloc}" = "yes" ; then
3022 GNU_MALLOC=no 2062 GNU_MALLOC=no
3023 GNU_MALLOC_reason=" 2063 GNU_MALLOC_reason="
3024 (User chose not to use GNU allocators.)" 2064 (User chose not to use GNU allocators.)"
3025 fi 2065 fi
3026 2066
3041 dnl This causes -lresolv to get used in subsequent tests, 2081 dnl This causes -lresolv to get used in subsequent tests,
3042 dnl which causes failures on some systems such as HPUX 9. 2082 dnl which causes failures on some systems such as HPUX 9.
3043 dnl FSF 19.29 also checks for function gethostbyname. 2083 dnl FSF 19.29 also checks for function gethostbyname.
3044 dnl AC_HAVE_LIBRARY(-lresolv) 2084 dnl AC_HAVE_LIBRARY(-lresolv)
3045 2085
2086 dnl Alternative to getloadavg() that doesn't require root priveleges
2087 AC_HAVE_LIBRARY(-lkstat)
2088
3046 AC_HAVE_LIBRARY(-lXbsd, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd") 2089 AC_HAVE_LIBRARY(-lXbsd, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd")
3047 2090
3048 dnl FSF 19.29 also checks for function cma_open. 2091 dnl FSF 19.29 also checks for function cma_open.
3049 AC_HAVE_LIBRARY(-lpthreads, HAVE_PTHREADS=yes) 2092 AC_HAVE_LIBRARY(-lpthreads, HAVE_PTHREADS=yes)
3050 if test -n "${HAVE_PTHREADS}" ; then 2093 if test -n "${HAVE_PTHREADS}" ; then
3057 if test "${window_system}" != "none" ; then 2100 if test "${window_system}" != "none" ; then
3058 AC_CHECKING(for XFree86) 2101 AC_CHECKING(for XFree86)
3059 if test -d /usr/X386/include; then 2102 if test -d /usr/X386/include; then
3060 HAVE_XFREE386=yes 2103 HAVE_XFREE386=yes
3061 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include" 2104 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
3062 elif test -f /etc/XF86Config -o \ 2105 elif test -d /usr/X11R6/include; then
3063 -f /etc/X11/XF86Config -o \
3064 -f /usr/X11R6/lib/X11/XF86Config; then
3065 HAVE_XFREE386=yes 2106 HAVE_XFREE386=yes
3066 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X11R6/include" 2107 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X11R6/include"
3067 else 2108 else
3068 HAVE_XFREE386=no 2109 HAVE_XFREE386=no
3069 fi 2110 fi
3215 if test "${internal_xauth_includes_found}" = "yes" ; then 2256 if test "${internal_xauth_includes_found}" = "yes" ; then
3216 with_xauth='yes' 2257 with_xauth='yes'
3217 fi 2258 fi
3218 fi 2259 fi
3219 fi 2260 fi
3220 if test "${with_xauth}" = "yes" ; then 2261 IF_YES_AC_DEFINE(with_xauth, HAVE_XAUTH)
3221 AC_DEFINE(HAVE_XAUTH)
3222 fi
3223 2262
3224 # 2263 #
3225 # See if we can find CDE. 2264 # See if we can find CDE.
3226 # 2265 #
3227 if test "${window_system}" != "none" ; then 2266 if test "${window_system}" != "none" -a \
3228 if test "${with_cde}" != "no" ; then 2267 "${with_cde}" != "no" -a \
3229 if test "${with_cde}" != "yes" ; then 2268 "${with_cde}" != "yes" ; then
3230 internal_cde_lib_found='no' 2269 internal_cde_lib_found='no'
3231 AC_HAVE_LIBRARY(-lDtSvc, internal_cde_lib_found='yes') 2270 AC_HAVE_LIBRARY(-lDtSvc, internal_cde_lib_found='yes')
3232 if test "${internal_cde_lib_found}" = "yes" ; then 2271 if test "${internal_cde_lib_found}" = "yes" ; then
3233 internal_cde_includes_found='no' 2272 internal_cde_includes_found='no'
3234 for arg in ${DEFS} /usr/include 2273 for arg in ${DEFS} /usr/include ; do
3235 do 2274 if test -f `echo "${arg}/Dt/Dt.h" | sed 's/^\-I//'` ; then
3236 if test -f `echo "${arg}/Dt/Dt.h" | sed 's/^\-I//'` ; then 2275 internal_cde_includes_found='yes'
3237 internal_cde_includes_found='yes'
3238 fi
3239 done
3240 if test "${internal_cde_includes_found}" = "yes" ; then
3241 with_cde='yes'
3242 fi
3243 fi 2276 fi
2277 done
2278 if test "${internal_cde_includes_found}" = "yes" ; then
2279 with_cde='yes'
3244 fi 2280 fi
3245 fi 2281 fi
3246 fi 2282 fi
3247 if test "${with_cde}" = "yes" ; then 2283 IF_YES_AC_DEFINE(with_cde, HAVE_CDE)
3248 AC_DEFINE(HAVE_CDE)
3249 fi
3250 2284
3251 # 2285 #
3252 # See if we can find OffiX. 2286 # See if we can find OffiX.
3253 # 2287 #
3254 if test "${window_system}" != "none" ; then 2288 if test "${window_system}" != "none" -a \
3255 if test "${with_offix}" != "no" ; then 2289 "${with_offix}" != "no" -a \
3256 if test "${with_offix}" != "yes" ; then 2290 "${with_offix}" != "yes" ; then
3257 internal_offix_lib_found='no' 2291 internal_offix_lib_found='no'
3258 AC_HAVE_LIBRARY(-lDnd, internal_offix_lib_found='yes') 2292 AC_HAVE_LIBRARY(-lDnd, internal_offix_lib_found='yes')
3259 if test "${internal_offix_lib_found}" = "yes" ; then 2293 if test "${internal_offix_lib_found}" = "yes" ; then
3260 internal_offix_includes_found='no' 2294 internal_offix_includes_found='no'
3261 for arg in ${DEFS} /usr/include 2295 for arg in ${DEFS} /usr/include ; do
3262 do 2296 if test -f `echo "${arg}/OffiX/DragAndDrop.h" | sed 's/^\-I//'` ; then
3263 if test -f `echo "${arg}/OffiX/DragAndDrop.h" | sed 's/^\-I//'` ; then 2297 internal_offix_includes_found='yes'
3264 internal_offix_includes_found='yes'
3265 fi
3266 done
3267 if test "${internal_offix_includes_found}" = "yes" ; then
3268 with_offix='yes'
3269 fi
3270 fi 2298 fi
3271 fi 2299 done
2300 test "${internal_offix_includes_found}" = "yes" && with_offix='yes'
3272 fi 2301 fi
3273 fi 2302 fi
3274 if test "${with_offix}" = "yes" ; then 2303 IF_YES_AC_DEFINE(with_offix, HAVE_OFFIX_DND)
3275 AC_DEFINE(HAVE_OFFIX_DND) 2304
3276 fi 2305 # X window options
3277
3278 #
3279 # See if we can find Xlocale.h.
3280 #
3281 with_xlocale_h='no'
3282 if test "${window_system}" != "none" ; then
3283 for arg in ${DEFS} /usr/include
3284 do
3285 if test -f `echo "${arg}/X11/Xlocale.h" | sed 's/^\-I//'` ; then
3286 with_xlocale_h='yes'
3287 fi
3288 done
3289 fi
3290 if test "${with_xlocale_h}" = "yes" ; then
3291 AC_DEFINE(HAVE_XLOCALE_H)
3292 fi
3293
3294 if test "${window_system}" != "none" ; then 2306 if test "${window_system}" != "none" ; then
3295 AC_FIND_X_VERSION 2307 AC_FIND_X_VERSION
3296 AC_HAVE_HEADERS(X11/Xlocale.h) 2308 AC_HAVE_HEADERS(X11/Xlocale.h)
3297 fi 2309 fi
3298 2310
3328 AC_HAVE_LIBRARY(-lm) 2340 AC_HAVE_LIBRARY(-lm)
3329 2341
3330 # 2342 #
3331 # see if XPM is hanging around somewhere 2343 # see if XPM is hanging around somewhere
3332 # 2344 #
3333 if test "${window_system}" != "none" ; then 2345 test "${window_system}" != "none" -a \
3334 if test "${with_xpm}" != "no" ; then 2346 "${with_xpm}" != "no" -a \
3335 if test "${with_xpm}" != "yes" ; then 2347 "${with_xpm}" != "yes" && { AC_HAVE_LIBRARY(-lXpm, with_xpm="yes") }
3336 AC_HAVE_LIBRARY(-lXpm, with_xpm="yes") 2348
3337 fi 2349 IF_YES_AC_DEFINE(with_xpm, HAVE_XPM)
3338 fi
3339 fi
3340 if test "${with_xpm}" = "yes" ; then
3341 AC_DEFINE(HAVE_XPM)
3342 fi
3343 2350
3344 # 2351 #
3345 # see if Xmu is hanging around somewhere 2352 # see if Xmu is hanging around somewhere
3346 # 2353 #
3347 # FSF 19.31 has this: 2354 # FSF 19.31 has this:
3356 # A C_CHECK_LIB(Xmu, XmuConvertStandardSelection) 2363 # A C_CHECK_LIB(Xmu, XmuConvertStandardSelection)
3357 # LIBS="$OLDLIBS" 2364 # LIBS="$OLDLIBS"
3358 2365
3359 if test "${window_system}" != "none" ; then 2366 if test "${window_system}" != "none" ; then
3360 if test "${with_xmu}" != "no" ; then 2367 if test "${with_xmu}" != "no" ; then
3361 if test "${with_xmu}" != "yes" ; then 2368 test "${with_xmu}" != "yes" && { AC_HAVE_LIBRARY(-lXmu, with_xmu="yes") }
3362 AC_HAVE_LIBRARY(-lXmu, with_xmu="yes") 2369 # On SunOS4 we must kludge harder to try to detect Xmu
3363 fi
3364 # On SunOS4 (and 5!) we must kludge harder to try to detect Xmu
3365 # Upgrade to autoconf 2 and use ac_check_lib - mrb 2370 # Upgrade to autoconf 2 and use ac_check_lib - mrb
3366 if test "${with_xmu}" != "yes" ; then 2371 if test "${with_xmu}" != "yes" -a -n "$OPENWINHOME" ; then
3367 # begin expansion of ac_have_library 2372 # begin expansion of ac_have_library
3368 ac_save_LIBS="${LIBS}" 2373 ac_save_LIBS="${LIBS}"
3369 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm" 2374 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm"
3370 ac_have_lib=""
3371 cat > conftest.${ac_ext} <<EOF
3372 int main() { return 0; }
3373 EOF
3374 if eval $ac_compile; then
3375 rm -rf conftest*
3376 ac_have_lib="1"
3377 fi
3378 rm -f conftest*
3379 LIBS="${ac_save_LIBS}"
3380 test -n "${ac_have_lib}" && with_xmu="yes"
3381 # end expansion of ac_have_library
3382 fi
3383 # Sparc/Linux test - fp
3384 if test "${with_xmu}" != "yes" -a ${machine} = sparc -a ${opsys} = linux; then
3385 # begin expansion of ac_have_library
3386 ac_save_LIBS="${LIBS}"
3387 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm -lICE -lSM"
3388 ac_have_lib="" 2375 ac_have_lib=""
3389 cat > conftest.${ac_ext} <<EOF 2376 cat > conftest.${ac_ext} <<EOF
3390 int main() { return 0; } 2377 int main() { return 0; }
3391 EOF 2378 EOF
3392 if eval $ac_compile; then 2379 if eval $ac_compile; then
3421 test -n "${ac_have_lib}" && with_xmu="yes" 2408 test -n "${ac_have_lib}" && with_xmu="yes"
3422 # end expansion of ac_have_library 2409 # end expansion of ac_have_library
3423 fi 2410 fi
3424 fi 2411 fi
3425 fi 2412 fi
3426 if test "${with_xmu}" = "yes" ; then 2413 IF_YES_AC_DEFINE(with_xmu, HAVE_XMU)
3427 AC_DEFINE(HAVE_XMU)
3428 fi
3429 2414
3430 # 2415 #
3431 # see if COMPFACE is hanging around somewhere 2416 # see if COMPFACE is hanging around somewhere
3432 # 2417 #
3433 if test "${window_system}" != "none" ; then 2418 if test "${window_system}" != "none" -a \
3434 if test "${with_xface}" != "no" ; then 2419 "${with_xface}" != "no" -a \
3435 if test "${with_xface}" != "yes" ; then 2420 "${with_xface}" != "yes" ; then
3436 AC_HEADER_CHECK(compface.h, compface_incl="yes", with_xface="no") 2421 AC_HEADER_CHECK(compface.h, compface_incl="yes", with_xface="no")
3437 if test "${compface_incl}" = "yes" ; then 2422 if test "${compface_incl}" = "yes" ; then
3438 AC_HAVE_LIBRARY(-lcompface, with_xface="yes") 2423 AC_HAVE_LIBRARY(-lcompface, with_xface="yes")
3439 fi
3440 fi
3441 fi 2424 fi
3442 fi 2425 fi
3443 if test "${with_xface}" = "yes" ; then 2426 IF_YES_AC_DEFINE(with_xface, HAVE_XFACE)
3444 AC_DEFINE(HAVE_XFACE)
3445 fi
3446 2427
3447 # 2428 #
3448 # check whether we're using GIF support 2429 # check whether we're using GIF support
3449 # 2430 #
3450 if test "${window_system}" = "none" ; then 2431 if test "${window_system}" = "none" ; then
3455 exit 1 2436 exit 1
3456 fi 2437 fi
3457 elif test -z "${with_gif}" ; then 2438 elif test -z "${with_gif}" ; then
3458 with_gif=yes 2439 with_gif=yes
3459 fi 2440 fi
3460 if test "${with_gif}" = "yes" ; then 2441 IF_YES_AC_DEFINE(with_gif, HAVE_GIF)
3461 AC_DEFINE(HAVE_GIF) 2442
3462 fi 2443 dnl # autodetect JPEG
3463
3464 #
3465 # autodetect JPEG
3466 #
3467 if test "${window_system}" = "none" ; then 2444 if test "${window_system}" = "none" ; then
3468 if test -z "${with_jpeg}" ; then 2445 if test -z "${with_jpeg}" ; then
3469 with_jpeg=no 2446 with_jpeg=no
3470 elif test "${with_jpeg}" != "no" ; then 2447 elif test "${with_jpeg}" != "no" ; then
3471 echo "JPEG support cannot be specified without a window system." 2448 echo "JPEG support cannot be specified without a window system."
3472 exit 1 2449 exit 1
3473 fi 2450 fi
3474 else 2451 else
3475 if test "${with_jpeg}" != "no" ; then 2452 if test "${with_jpeg}" != "no" -a \
3476 if test "${with_jpeg}" != "yes" ; then 2453 "${with_jpeg}" != "yes" ; then
3477 AC_HEADER_CHECK(jpeglib.h, jpeglib_incl="yes", with_jpeg="no") 2454 AC_HEADER_CHECK(jpeglib.h, jpeglib_incl="yes", with_jpeg="no")
3478 if test "${jpeglib_incl}" = "yes" ; then 2455 test "${jpeglib_incl}" = "yes" && { AC_HAVE_LIBRARY(-ljpeg, with_jpeg="yes") }
3479 AC_HAVE_LIBRARY(-ljpeg, with_jpeg="yes")
3480 fi
3481 fi
3482 fi 2456 fi
3483 fi 2457 fi
3484 if test "${with_jpeg}" = "yes" ; then 2458 IF_YES_AC_DEFINE(with_jpeg, HAVE_JPEG)
3485 AC_DEFINE(HAVE_JPEG) 2459
3486 fi 2460 dnl ### autodetect PNG
3487
3488 #
3489 # autodetect PNG
3490 #
3491 if test "${window_system}" = "none" ; then 2461 if test "${window_system}" = "none" ; then
3492 if test -z "${with_png}" ; then 2462 if test -z "${with_png}" ; then
3493 with_png=no 2463 with_png=no
3494 elif test "${with_png}" != "no" ; then 2464 elif test "${with_png}" != "no" ; then
3495 echo "PNG support cannot be specified without a window system." 2465 echo "PNG support cannot be specified without a window system."
3496 exit 1 2466 exit 1
3497 fi 2467 fi
3498 fi 2468 fi
3499 if test -z "${with_png}" ; then 2469 test -z "${with_png}" && { AC_HEADER_CHECK(png.h, , with_png="no") }
3500 AC_HEADER_CHECK(png.h, , with_png="no") 2470 test -z "${with_png}" && { AC_HAVE_LIBRARY(-lpng, , with_png="no") }
3501 fi 2471 test -z "${with_png}" && { AC_HAVE_LIBRARY(-lz, with_png="yes") }
3502 if test -z "${with_png}" ; then 2472 test -z "${with_png}" && { AC_HAVE_LIBRARY(-lgz, with_png="gnuz", with_png="no") }
3503 AC_HAVE_LIBRARY(-lpng, , with_png="no") 2473 case "${with_png}" in
3504 fi 2474 yes ) AC_DEFINE(HAVE_PNG) ;;
3505 if test -z "${with_png}" ; then 2475 gnuz ) AC_DEFINE(HAVE_PNG) AC_DEFINE(HAVE_PNG_GNUZ) ;;
3506 AC_HAVE_LIBRARY(-lz, with_png="yes") 2476 esac
3507 fi 2477
3508 if test -z "${with_png}" ; then 2478 dnl ### autodetect TIFF (not yet implemented)
3509 AC_HAVE_LIBRARY(-lgz, with_png="gnuz", with_png="no") 2479 IF_YES_AC_DEFINE(with_tiff, HAVE_TIFF)
3510 fi
3511 if test "${with_png}" = "yes" ; then
3512 AC_DEFINE(HAVE_PNG)
3513 fi
3514 if test "${with_png}" = "gnuz" ; then
3515 AC_DEFINE(HAVE_PNG)
3516 AC_DEFINE(HAVE_PNG_GNUZ)
3517 fi
3518
3519 #
3520 # autodetect TIFF (not yet implemented)
3521 #
3522 if test "${window_system}" = "none" ; then
3523 if test -z "${with_tiff}" ; then
3524 with_tiff=no
3525 elif test "${with_tiff}" != "no" ; then
3526 echo "TIFF support cannot be specified without a window system."
3527 exit 1
3528 fi
3529 fi
3530 if test "${with_tiff}" = "yes" ; then
3531 AC_DEFINE(HAVE_TIFF)
3532 fi
3533 2480
3534 # We use Lucid toolkit defaults for the menubars and scrollbars, but 2481 # We use Lucid toolkit defaults for the menubars and scrollbars, but
3535 # if Motif is available we use it for the dialog boxes. 2482 # if Motif is available we use it for the dialog boxes.
3536 if test "${window_system}" != "none" ; then 2483 if test "${window_system}" != "none" ; then
2484 save_libs="${LIBS}"
3537 if test "x${with_dialogs}" = "x" ; then 2485 if test "x${with_dialogs}" = "x" ; then
3538 # We can't use ac_have_library because it simply appends -lXm to the 2486 # We can't use ac_have_library because it simply appends -lXm to the
3539 # end of the link line which is insufficient since -lXm will generate 2487 # end of the link line which is insufficient since -lXm will generate
3540 # dependencies on -lXt 2488 # dependencies on -lXt
3541 # begin expansion of ac_have_library 2489 # begin expansion of ac_have_library
3555 2503
3556 fi 2504 fi
3557 rm -f conftest* 2505 rm -f conftest*
3558 LIBS="${ac_save_LIBS}" 2506 LIBS="${ac_save_LIBS}"
3559 if test -n "${ac_have_lib}"; then 2507 if test -n "${ac_have_lib}"; then
3560 :; with_dialogs="motif" 2508 :; with_dialogs="motif" motif_libs="-lXm -lXt"
3561 else 2509 else
3562 :; 2510 :;
3563 fi 2511 fi
3564 # end expansion of ac_have_library 2512 # end expansion of ac_have_library
3565 # Sigh. My Motif (MoTeeth) under Linux also depends on Xpm and Xext. 2513 # Sigh. My Motif (MoTeeth) under Linux also depends on Xpm and Xext.
3581 2529
3582 fi 2530 fi
3583 rm -f conftest* 2531 rm -f conftest*
3584 LIBS="${ac_save_LIBS}" 2532 LIBS="${ac_save_LIBS}"
3585 if test -n "${ac_have_lib}"; then 2533 if test -n "${ac_have_lib}"; then
3586 :; with_dialogs="motif" 2534 :; with_dialogs="motif" motif_libs="-lXm -lXt -lXpm -lXext"
3587 else 2535 else
3588 :; 2536 :;
3589 fi 2537 fi
3590 # end expansion of ac_have_library 2538 # end expansion of ac_have_library
3591 fi 2539 fi
3592 if test "${with_dialogs}" = "motif" ; then 2540 test "${with_dialogs}" = "motif" && AC_VERBOSE(Found Motif)
3593 AC_VERBOSE(Found Motif)
3594 fi
3595 fi 2541 fi
3596 fi 2542 fi
3597 2543
3598 [
3599 if [ "${with_menubars}" = "motif" ] || [ "${with_scrollbars}" = "motif" ] \
3600 || [ "${with_dialogs}" = "motif" ]; then
3601 with_motif='yes'
3602 fi
3603 if [ "${with_menubars}" = "athena" ] || [ "${with_scrollbars}" = "athena" ] \
3604 || [ "${with_dialogs}" = "athena" ]; then
3605 with_athena='yes'
3606 fi
3607 if [ "${with_menubars}" = "athena3d" ] || [ "${with_scrollbars}" = "athena3d" ] \
3608 || [ "${with_dialogs}" = "athena3d" ]; then
3609 with_athena='yes'
3610 fi
3611
3612 # Finish ensuring that we have values for the various toolkit items. 2544 # Finish ensuring that we have values for the various toolkit items.
3613 if [ "x${with_menubars}" = "x" ] || [ "${with_menubars}" = "athena" ]; then 2545
3614 with_menubars='lucid' 2546 test "${with_menubars}" = "motif" -o \
3615 fi 2547 "${with_scrollbars}" = "motif" -o \
3616 if [ "x${with_scrollbars}" = "x" ]; then 2548 "${with_dialogs}" = "motif" && with_motif="yes"
3617 with_scrollbars='lucid' 2549 test "${with_menubars}" = "" && with_menubars="lucid"
3618 fi 2550 test "${with_menubars}" = "athena" && with_menubars="lucid"
3619 if [ "x${with_dialogs}" = "x" ] || [ "${with_dialogs}" = "lucid" ]; then 2551 test "${with_scrollbars}" = "" && with_scrollbars="lucid"
3620 with_dialogs='athena' 2552 test "${with_dialogs}" = "" && with_dialogs="athena"
3621 fi 2553 test "${with_dialogs}" = "lucid" && with_dialogs="athena"
3622 ] 2554
2555 test "${with_menubars}" != "no" && AC_DEFINE(HAVE_MENUBARS)
2556 test "${with_scrollbars}" != "no" && AC_DEFINE(HAVE_SCROLLBARS)
2557 test "${with_scrollbars}" != "no" && AC_DEFINE(HAVE_DIALOGS)
2558
2559 test "${with_menubars}" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID)
2560 test "${with_menubars}" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF)
2561 test "${with_scrollbars}" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID)
2562 test "${with_scrollbars}" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF)
2563 test "${with_scrollbars}" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA)
2564 test "${with_dialogs}" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF)
2565 test "${with_dialogs}" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA)
3623 2566
3624 ############################################################################ 2567 ############################################################################
3625 # # 2568 # #
3626 # Misc other feature tests # 2569 # Misc other feature tests #
3627 # # 2570 # #
3628 ############################################################################ 2571 ############################################################################
3629 2572
2573 # Mule-dependent option processing
2574 if test "$with_mule" = "yes" ; then
2575 # Do we have the XmIm* routines? And if so, do we want to use them?
2576 test "$with_xim" != no && AC_CHECKING(for XIM)
2577 if test -z "$with_xim" -o "$with_xim" = "yes" ; then
2578 xim_save_libs="$LIBS"
2579 LIBS="${motif_libs} ${LIBS}"
2580 AC_FUNC_CHECK(XmImMbLookupString, have_XmIm=yes, have_XmIm=no)
2581 LIBS="$xim_save_libs"
2582 if test "$have_XmIm" = "yes"; then with_xim=motif
2583 elif test "$with_xim" = "yes"; then with_xim=xlib
2584 else with_xim=no
2585 fi
2586 fi
2587 if test "$with_xim" != "no" ; then
2588 AC_DEFINE(HAVE_XIM)
2589 test "$with_xim" = "xlib" && AC_DEFINE(XIM_XLIB)
2590 test "$with_xim" = "motif" && AC_DEFINE(XIM_MOTIF)
2591 fi
2592 else # Other internationalization features depend on Mule
2593 with_mule="no"
2594 for feature in xim canna wnn ; do
2595 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then
2596 AC_WARN(--with-$feature ignored: Not valid without Mule support)
2597 fi
2598 eval "with_$feature=no"
2599 done
2600 fi
2601
3630 # If netdb.h doesn't declare h_errno, we must declare it by hand. 2602 # If netdb.h doesn't declare h_errno, we must declare it by hand.
3631 AC_COMPILE_CHECK(declaration of h_errno in netdb.h, 2603 AC_COMPILE_CHECK(declaration of h_errno in netdb.h,
3632 [#include <netdb.h>], 2604 [#include <netdb.h>],
3633 [int i = h_errno;], 2605 [int i = h_errno;],
3634 AC_DEFINE(HAVE_H_ERRNO)) 2606 AC_DEFINE(HAVE_H_ERRNO))
3635 2607
3636 AC_COMPILE_CHECK(sigsetjmp, 2608 AC_COMPILE_CHECK(sigsetjmp,
3637 [#include <setjmp.h>], 2609 [#include <setjmp.h>],
3638 [sigjmp_buf bar; sigsetjmp (bar, 0);], 2610 [sigjmp_buf bar; sigsetjmp (bar, 0);],
3639 AC_DEFINE(HAVE_SIGSETJMP)) 2611 AC_DEFINE(HAVE_SIGSETJMP))
3640 2612
3641 AC_CHECKING(whether localtime caches TZ) 2613 AC_CHECKING(whether localtime caches TZ)
3642 emacs_cv_localtime_cache= 2614 emacs_cv_localtime_cache=
3643 AC_TEST_PROGRAM([#include <time.h> 2615 AC_TEST_PROGRAM([#include <time.h>
3644 #if 1 /* STDC_HEADERS */ 2616 #if 1 /* STDC_HEADERS */
3708 foo () 2680 foo ()
3709 { 2681 {
3710 return 0; 2682 return 0;
3711 } 2683 }
3712 ], 2684 ],
3713 AC_DEFINE(HAVE_INLINE)) 2685 AC_DEFINE(HAVE_INLINE))
3714 2686
3715 # This does all sorts of magic to make sure alloca() works OK. 2687 # This does all sorts of magic to make sure alloca() works OK.
3716 # It might even add some junk to the top of <config.h>. 2688 # It might even add some junk to the top of <config.h>.
3717 # (I don't understand what goes on here, but it seems to work.) 2689 # (I don't understand what goes on here, but it seems to work.)
3718 AC_ALLOCA 2690 AC_ALLOCA
3745 AC_HAVE_FUNCS(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) 2717 AC_HAVE_FUNCS(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)
3746 2718
3747 # Check for mmap. 2719 # Check for mmap.
3748 found_mmap=true 2720 found_mmap=true
3749 AC_FUNC_CHECK(mmap, , found_mmap=) 2721 AC_FUNC_CHECK(mmap, , found_mmap=)
3750 if test -n "$found_mmap"; then 2722 test -n "$found_mmap" && AC_DEFINE(HAVE_MMAP)
3751 AC_DEFINE(HAVE_MMAP) 2723
3752 fi 2724 dnl # rel_alloc requires either GNU malloc or system malloc with mmap
3753 2725 dnl # We only turn rel_alloc on by default if mmap is available.
3754 [ 2726 test "${GNU_MALLOC}" != "yes" -a "${found_mmap}" != "true" && rel_alloc=no
3755 # rel_alloc requires either GNU malloc or system malloc with mmap 2727 test "${rel_alloc}" = "default" -a "${found_mmap}" = "true" && rel_alloc=yes
3756 if [ "${GNU_MALLOC}" != "yes" ]; then
3757 if [ "${found_mmap}" != "true" ]; then
3758 rel_alloc=no
3759 fi
3760 fi
3761
3762 # We only turn rel_alloc on by default if mmap is available.
3763 if [ "${rel_alloc}" = "default" ]; then
3764 if [ "${found_mmap}" = "true" ]; then
3765 rel_alloc=yes
3766 fi
3767 fi
3768 ]
3769
3770 2728
3771 # Check for Internet sockets. 2729 # Check for Internet sockets.
3772 2730
3773 ok_so_far=true 2731 ok_so_far=true
3774 AC_FUNC_CHECK(socket, , ok_so_far=) 2732 AC_FUNC_CHECK(socket, , ok_so_far=)
3775 if test -n "$ok_so_far"; then 2733 test -n "$ok_so_far" && { AC_HEADER_CHECK(netinet/in.h, , ok_so_far=) }
3776 AC_HEADER_CHECK(netinet/in.h, , ok_so_far=) 2734 test -n "$ok_so_far" && { AC_HEADER_CHECK(arpa/inet.h, , ok_so_far=) }
3777 fi
3778 if test -n "$ok_so_far"; then
3779 AC_HEADER_CHECK(arpa/inet.h, , ok_so_far=)
3780 fi
3781 if test -n "$ok_so_far"; then 2735 if test -n "$ok_so_far"; then
3782 AC_DEFINE(HAVE_SOCKETS) 2736 AC_DEFINE(HAVE_SOCKETS)
3783 # Check for the sun_len member in struct sockaddr_un. 2737 # Check for the sun_len member in struct sockaddr_un.
3784 2738
3785 AC_COMPILE_CHECK(sun_len member in struct sockaddr_un, 2739 AC_COMPILE_CHECK(sun_len member in struct sockaddr_un,
3792 # Check for SYS V IPC. (Inferior to sockets.) 2746 # Check for SYS V IPC. (Inferior to sockets.)
3793 2747
3794 if test -z "$ok_so_far"; then 2748 if test -z "$ok_so_far"; then
3795 ok_so_far=true 2749 ok_so_far=true
3796 AC_FUNC_CHECK(msgget, , ok_so_far=) 2750 AC_FUNC_CHECK(msgget, , ok_so_far=)
3797 if test -n "$ok_so_far"; then 2751 test -n "$ok_so_far" && { AC_HEADER_CHECK(sys/ipc.h, , ok_so_far=) }
3798 AC_HEADER_CHECK(sys/ipc.h, , ok_so_far=) 2752 test -n "$ok_so_far" && { AC_HEADER_CHECK(sys/msg.h, , ok_so_far=) }
3799 fi 2753 test -n "$ok_so_far" && AC_DEFINE(HAVE_SYSVIPC)
3800 if test -n "$ok_so_far"; then
3801 AC_HEADER_CHECK(sys/msg.h, , ok_so_far=)
3802 fi
3803 if test -n "$ok_so_far"; then
3804 AC_DEFINE(HAVE_SYSVIPC)
3805 fi
3806 fi 2754 fi
3807 2755
3808 # Check for directory variants 2756 # Check for directory variants
3809 2757
3810 sysv_system_dir= 2758 sysv_system_dir=
3811 nonsystem_dir_library= 2759 nonsystem_dir_library=
3812 AC_HEADER_CHECK(dirent.h, sysv_system_dir=yes, ) 2760 AC_HEADER_CHECK(dirent.h, sysv_system_dir=yes, )
3813 if test -z "$sysv_system_dir" ; then 2761 test -z "$sysv_system_dir" &&
3814 AC_HEADER_CHECK(sys/dir.h, , nonsystem_dir_library=yes) 2762 { AC_HEADER_CHECK(sys/dir.h, , nonsystem_dir_library=yes) }
3815 fi 2763 if test -n "$sysv_system_dir" ; then AC_DEFINE(SYSV_SYSTEM_DIR)
3816 if test -n "$sysv_system_dir" ; then 2764 elif test -n "$nonsystem_dir_library" ; then AC_DEFINE(NONSYSTEM_DIR_LIBRARY)
3817 AC_DEFINE(SYSV_SYSTEM_DIR) 2765 fi
3818 elif test -n "$nonsystem_dir_library" ; then 2766
3819 AC_DEFINE(NONSYSTEM_DIR_LIBRARY) 2767 dnl # Check for terminal I/O variants
3820 fi
3821
3822 # Check for terminal I/O variants
3823 2768
3824 echo "checking how to do terminal I/O" 2769 echo "checking how to do terminal I/O"
3825 2770
3826 have_termios= 2771 have_termios=
3827 have_termio= 2772 have_termio=
3828 AC_HEADER_CHECK(termios.h, have_termios=yes, ) 2773 AC_HEADER_CHECK(termios.h, have_termios=yes, )
3829 # TERMIOS systems may have termio.h, but not vice-versa, I think. 2774 dnl # TERMIOS systems may have termio.h, but not vice-versa, I think.
3830 if test -z "$have_termios" ; then 2775 test -z "$have_termios" && { AC_HEADER_CHECK(termio.h, have_termio=yes, ) }
3831 AC_HEADER_CHECK(termio.h, have_termio=yes, ) 2776 if test -n "$have_termios" ; then AC_DEFINE(HAVE_TERMIOS)
3832 fi 2777 elif test -n "$have_termio" ; then AC_DEFINE(HAVE_TERMIO)
3833 if test -n "$have_termios" ; then
3834 AC_DEFINE(HAVE_TERMIOS)
3835 elif test -n "$have_termio" ; then
3836 AC_DEFINE(HAVE_TERMIO)
3837 fi 2778 fi
3838 2779
3839 # Check for nlist.h 2780 # Check for nlist.h
3840 AC_HEADER_CHECK(nlist.h, AC_DEFINE(NLIST_STRUCT), ) 2781 AC_HEADER_CHECK(nlist.h, AC_DEFINE(NLIST_STRUCT), )
3841 2782
3842 if test -f /usr/lpp/X11/bin/smt.exp ; then 2783 # AIX export list
3843 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/lpp/X11/bin/smt.exp) 2784 for export in /usr/lpp/X11/bin/smt.exp /usr/bin/X11/smt.exp ; do
3844 elif test -f /usr/bin/X11/smt.exp ; then 2785 if test -f "$export" ; then
3845 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/bin/X11/smt.exp) 2786 AC_DEFINE(AIX_SMT_EXP, -bI:$export)
3846 fi 2787 break
3847 2788 fi
3848 # Set up the CFLAGS for real compilation, so we can substitute it. 2789 done
2790
2791 dnl # Set up the CFLAGS for real compilation, so we can substitute it.
3849 CFLAGS="$REAL_CFLAGS" 2792 CFLAGS="$REAL_CFLAGS"
3850 2793
3851 [ 2794 dnl # Find out which version of XEmacs this is.
3852 #### Find out which version of XEmacs this is. 2795 file="${srcdir}/lisp/version.el"
3853 version="19.16" 2796 version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"`
3854 beta="" 2797 if test -z "${version}"; then
3855 alpha="" 2798 echo "${progname}: can't find current emacs version in \"$file\"." >&2
3856 if [ "X$beta" != "X" ]; then
3857 version=${version}-b${beta}
3858 fi
3859 if [ "X$alpha" != "X" ]; then
3860 version=${version}-a${alpha}
3861 fi
3862 if [ x"${version}" = x ]; then
3863 echo "${progname}: can't find current emacs version in
3864 \`${srcdir}/lisp/version.el'." >&2
3865 exit 1 2799 exit 1
3866 fi 2800 fi
3867 2801 beta=`sed -ne 's/^.*XEmacs Lucid (beta\([[0-9]][[0-9]]*\)).*$/\1/p' "$file"`
3868 # 2802 test -n "$beta" && version="${version}-b${beta}"
3869 # Check for sound of various sorts. 2803
3870 # 2804
2805 dnl # Check for sound of various sorts.
3871 2806
3872 # the following needs to be fixed for SGI. 2807 # the following needs to be fixed for SGI.
3873 if [ -z "${native_sound_lib}" ]; then 2808 if test -z "${native_sound_lib}" ; then
3874 if [ -r /usr/demo/SOUND/lib/libaudio.a ]; then 2809 if test -r /usr/demo/SOUND/lib/libaudio.a; then
3875 native_sound_lib=/usr/demo/SOUND/lib/libaudio.a 2810 native_sound_lib=/usr/demo/SOUND/lib/libaudio.a
3876 elif [ -r /usr/demo/SOUND/libaudio.a ]; then 2811 elif test -r /usr/demo/SOUND/libaudio.a ; then
3877 native_sound_lib=/usr/demo/SOUND/libaudio.a 2812 native_sound_lib=/usr/demo/SOUND/libaudio.a
3878 else 2813 else
3879 case "${canonical}" in 2814 case "${canonical}" in
3880 *-sgi-* ) native_sound_lib=-laudio ;; 2815 *-sgi-* ) AC_HAVE_LIBRARY(-laudio, native_sound_lib="-laudio") ;;
3881 hppa*-hp-hpux* ) native_sound_lib=-lAlib ;; 2816 hppa*-hp-hpux* ) AC_HAVE_LIBRARY(-lAlib, native_sound_lib="-lAlib") ;;
3882 esac 2817 esac
3883 fi 2818 fi
3884 fi 2819 fi
3885 2820 test -z "${with_sound}" -a -n "${native_sound_lib}" && with_sound="native";
3886 if [ "${with_sound}" != "native" ] && [ "${with_sound}" != "nas" ] && [ "${with_sound}" != "both" ] && [ "${with_sound}" != "no" ] ; then
3887 if [ -d /usr/demo/SOUND/multimedia -o -d /usr/demo/SOUND/include/multimedia ]; then
3888 with_sound="native"
3889 else
3890 case "${canonical}" in
3891 *-sgi-* )
3892 ] AC_HAVE_LIBRARY(-laudio, with_sound="native") [
3893 ;;
3894 hppa*-hp-hpux* )
3895 ] AC_HAVE_LIBRARY(-lAlib, with_sound="native") [
3896 ;;
3897 esac
3898 fi
3899 fi
3900 2821
3901 #### If the nas library doesn't contain the error jump point, then 2822 #### If the nas library doesn't contain the error jump point, then
3902 #### we force safer behaviour. 2823 #### we force safer behaviour.
3903 2824
3904 if [ "${with_sound}" = "nas" ] || [ "${with_sound}" = "both" ] ; then 2825 if test "${with_sound}" = "nas" -o \
3905 ] AC_HEADER_EGREP(AuXtErrorJump,audio/Xtutil.h, , old_nas=true) [ 2826 "${with_sound}" = "both"; then
3906 fi 2827 AC_HEADER_EGREP(AuXtErrorJump,audio/Xtutil.h, , old_nas=true)
3907 2828 fi
3908 if [ "${with_tooltalk}" = "yes" ]; then 2829
2830 if test "${with_tooltalk}" = "yes" ; then
3909 for arg in ${DEFS} "-I/usr/include" "-I${OPENWINHOME-/usr/openwin}/include" 2831 for arg in ${DEFS} "-I/usr/include" "-I${OPENWINHOME-/usr/openwin}/include"
3910 do 2832 do
3911 if [ -f `echo "${arg}/desktop/tt_c.h" | sed 's/^\-I//'` ]; then 2833 if test -f `echo "${arg}/desktop/tt_c.h" | sed 's/^\-I//'` ; then
3912 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}/desktop" 2834 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}/desktop"
3913 fi 2835 fi
3914 done 2836 done
3915 2837
3916 for arg in ${LIBS} "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib" 2838 for arg in ${LIBS} "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib"
3917 do 2839 do
3918 case "${arg}" in 2840 case "${arg}" in
3919 -L*) if [ -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ]; then 2841 -L*) if test -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ; then
3920 dash_r='' 2842 dash_r=''
3921 if [ -n "${add_runtime_flag}" ]; then 2843 if test -n "${add_runtime_flag}" ; then
3922 dash_r=`echo ${arg} | sed "s/^-L/-R${dash_r_space}/"` 2844 dash_r=`echo ${arg} | sed "s/^-L/-R${dash_r_space}/"`
3923 fi 2845 fi
3924 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}" 2846 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
3925 fi 2847 fi
3926 ;; 2848 ;;
3927 esac 2849 esac
3928 done 2850 done
3929 fi 2851 fi
3930 2852
3931 # 2853 dnl Check for ncurses.
3932 # Check for ncurses. 2854
3933 # 2855 if test "${with_tty}" != "no" ; then
3934 2856 AC_HAVE_LIBRARY(-lncurses, have_ncurses=yes, have_ncurses=no)
3935 if [ "${with_tty}" != "no" ] ; then 2857 if test "${have_ncurses}" = "yes" ; then
3936 ] AC_HAVE_LIBRARY(-lncurses, have_ncurses=yes, have_ncurses=no) [ 2858 AC_DEFINE(HAVE_NCURSES)
3937 if [ "${have_ncurses}" = "yes" ] ; then 2859 AC_HEADER_CHECK(ncurses/term.h, have_ncurses_term_h=yes, have_ncurses_term_h=no)
3938 ] AC_DEFINE(HAVE_NCURSES) [ 2860 IF_YES_AC_DEFINE(have_ncurses_term_h, HAVE_NCURSES_TERM_H)
3939 ] AC_HEADER_CHECK(ncurses/term.h, have_ncurses_term_h=yes, have_ncurses_term_h=no) [ 2861 AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no)
3940 if [ "${have_ncurses_term_h}" = "yes" ] ; then 2862 if test "${have_ncurses_curses_h}" = "no" ; then
3941 ] AC_DEFINE(HAVE_NCURSES_TERM_H) [ 2863 dnl Try again, and check for the bogus ncurses/ include bug.
3942 fi 2864 dnl (i.e. ncurses/curses.h bogusly includes <unctrl.h> instead of
3943 ] AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no) [ 2865 dnl <ncurses/unctrl.h>)
3944 if [ "${have_ncurses_curses_h}" = "no" ] ; then
3945 # Try again, and check for the bogus ncurses/ include bug.
3946 # (i.e. ncurses/curses.h bogusly includes <unctrl.h> instead of
3947 # <ncurses/unctrl.h>)
3948 OLD_CPP="${CPP}" 2866 OLD_CPP="${CPP}"
3949 CPP="${CPP} -I/usr/include/ncurses" 2867 CPP="${CPP} -I/usr/include/ncurses"
3950 ] AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no) [ 2868 AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no)
3951 if [ "${have_ncurses_curses_h}" = "yes" ] ; then 2869 if test "${have_ncurses_curses_h}" = "yes" ; then
3952 site_includes="${site_includes} /usr/include/ncurses" 2870 site_includes="${site_includes} /usr/include/ncurses"
3953 C_SWITCH_SITE="${C_SWITCH_SITE} -I/usr/include/ncurses" 2871 C_SWITCH_SITE="${C_SWITCH_SITE} -I/usr/include/ncurses"
3954 ] AC_VERBOSE(Your system has the bogus ncurses include bug.) [ 2872 AC_VERBOSE(Your system has the bogus ncurses include bug.)
3955 else 2873 else
3956 CPP="${OLD_CPP}" 2874 CPP="${OLD_CPP}"
3957 fi 2875 fi
3958 fi 2876 fi
3959 if [ "${have_ncurses_curses_h}" = "yes" ] ; then 2877 IF_YES_AC_DEFINE(have_ncurses_curses_h, HAVE_NCURSES_CURSES_H)
3960 ] AC_DEFINE(HAVE_NCURSES_CURSES_H) [
3961 fi
3962 fi 2878 fi
3963 fi 2879 fi
3964 2880
3965 # 2881 dnl Check for database support.
3966 # Check for database support. 2882
3967 # 2883 dnl <mdiers@logware.de>
3968
3969 ]dnl <mdiers@logware.de>
3970 dnl We don't necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support. 2884 dnl We don't necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support.
3971 dnl On FreeBSD, both DB and DBM are part of libc. 2885 dnl On FreeBSD, both DB and DBM are part of libc.
3972 dnl Note that unless support for DB/(G)DBM is explicitly disabled, we always 2886 dnl Note that unless support for DB/(G)DBM is explicitly disabled, we always
3973 dnl want to check for libdb/lib(g)dbm. Also note that libc will not be 2887 dnl want to check for libdb/lib(g)dbm. Also note that libc will not be
3974 dnl checked if we have the libraries. 2888 dnl checked if we have the libraries.
3975 dnl If support for DB/(G)DBM is requested, but we neither have libdb/lib(g)dbm, 2889 dnl If support for DB/(G)DBM is requested, but we neither have libdb/lib(g)dbm,
3976 dnl nor does libc implement it, we are a bit lost :) 2890 dnl nor does libc implement it, we are a bit lost :)
3977 dnl But wait: one still could define DATABASE_DB_LIBS and DATABASE_DBM_LIBS 2891
3978 dnl in the system description file to read -lthisiswhereitsat and 2892 if test "${with_database_berkdb}" != "no" ; then
3979 dnl have --site-libraries point there. 2893 AC_HAVE_LIBRARY(-ldb, have_libdb=yes, have_libdb=no)
3980 dnl (Does this make sense? My head hurts...) 2894 IF_YES_AC_DEFINE(have_libdb, HAVE_LIBDB)
3981 [ 2895 if test "${with_database_berkdb}" != "yes" ; then
3982 if [ "${with_database_berkdb}" != "no" ] ; then 2896 if test "${have_libdb}" = "yes" ; then
3983 ] AC_HAVE_LIBRARY(-ldb, have_libdb=yes, have_libdb=no) [
3984 if [ "${have_libdb}" = "yes" ] ; then
3985 ] AC_DEFINE(HAVE_LIBDB) [
3986 fi
3987 if [ "${with_database_berkdb}" != "yes" ] ; then
3988 if [ "${have_libdb}" = "yes" ] ; then
3989 with_database_berkdb=yes 2897 with_database_berkdb=yes
3990 else 2898 else
3991 ] AC_FUNC_CHECK(dbopen, have_dbopen=yes, have_dbopen=no) [ 2899 AC_FUNC_CHECK(dbopen, with_database_berkdb=yes, with_database_berkdb=no)
3992 if [ "${have_dbopen}" = "yes" ] ; then
3993 with_database_berkdb=yes
3994 else
3995 with_database_berkdb=no
3996 fi
3997 fi 2900 fi
3998 fi 2901 fi
3999 fi 2902 fi
4000 if [ "${with_database_berkdb}" = "yes" ]; then 2903 IF_YES_AC_DEFINE(with_database_berkdb, HAVE_BERKELEY_DB)
4001 ] AC_DEFINE(HAVE_BERKELEY_DB) [ 2904
4002 fi 2905 if test "${with_database_gnudbm}" != "no" ; then
4003 2906 AC_HAVE_LIBRARY(-lgdbm, have_libgdbm=yes, have_libgdbm=no)
4004 if [ "${with_database_gnudbm}" != "no" ] ; then 2907 IF_YES_AC_DEFINE(have_libgdbm, HAVE_LIBGDBM)
4005 ] AC_HAVE_LIBRARY(-lgdbm, have_libgdbm=yes, have_libgdbm=no) [ 2908 test -z "${with_database_gnudbm}" && with_database_gnudbm="${have_libgdbm}"
4006 if [ "${have_libgdbm}" = "yes" ] ; then 2909 fi
4007 ] AC_DEFINE(HAVE_LIBGDBM) [ 2910 if test "${with_database_gnudbm}" = "yes" ; then
4008 fi 2911 AC_DEFINE(HAVE_DBM)
4009 if [ "${with_database_gnudbm}" != "yes" ] ; then 2912 AC_DEFINE(HAVE_GNU_DBM)
4010 if [ "${have_libgdbm}" = "yes" ] ; then 2913 with_database_dbm=no
4011 with_database_gnudbm=yes 2914 fi
2915
2916 if test "${with_database_dbm}" != "no" ; then
2917 AC_HAVE_LIBRARY(-ldbm, have_libdbm=yes, have_libdbm=no)
2918 IF_YES_AC_DEFINE(have_libdbm, HAVE_LIBDBM)
2919 if test "${with_database_dbm}" != "yes" ; then
2920 if test "${have_libdbm}" = "yes" ; then
2921 with_database_dbm=yes
4012 else 2922 else
4013 with_database_gnudbm=no 2923 AC_FUNC_CHECK(dbm_open, with_database_dbm=yes, with_database_dbm=no)
4014 fi 2924 fi
4015 fi 2925 fi
4016 fi 2926 fi
4017 if [ "${with_database_gnudbm}" = "yes" ]; then 2927 IF_YES_AC_DEFINE(with_database_dbm, HAVE_DBM)
4018 ] AC_DEFINE(HAVE_DBM) [
4019 ] AC_DEFINE(HAVE_GNU_DBM) [
4020 with_database_dbm=no
4021 fi
4022
4023 if [ "${with_database_dbm}" != "no" ] ; then
4024 ] AC_HAVE_LIBRARY(-ldbm, have_libdbm=yes, have_libdbm=no) [
4025 if [ "${have_libdbm}" = "yes" ] ; then
4026 ] AC_DEFINE(HAVE_LIBDBM) [
4027 fi
4028 if [ "${with_database_dbm}" != "yes" ] ; then
4029 if [ "${have_libdbm}" = "yes" ] ; then
4030 with_database_dbm=yes
4031 else
4032 ] AC_FUNC_CHECK(dbm_open, have_dbm_open=yes, have_dbm_open=no) [
4033 if [ "${have_dbm_open}" = "yes" ] ; then
4034 with_database_dbm=yes
4035 else
4036 with_database_dbm=no
4037 fi
4038 fi
4039 fi
4040 fi
4041 if [ "${with_database_dbm}" = "yes" ]; then
4042 ] AC_DEFINE(HAVE_DBM) [
4043 fi
4044 2928
4045 2929
4046 ############################################################################ 2930 ############################################################################
4047 # # 2931 # #
4048 # Substitute into Makefile and config.h # 2932 # Substitute into Makefile and config.h #
4049 # # 2933 # #
4050 ############################################################################ 2934 ############################################################################
4051 2935
4052 ### Specify what sort of things we'll be editing into Makefile and config.h. 2936 dnl what sort of things we'll be editing into Makefile and config.h.
4053 ### Use configuration here uncanonicalized to avoid exceeding size limits. 2937 dnl configuration here uncanonicalized to avoid exceeding size limits.
4054 ] 2938
4055 AC_SUBST(version) 2939 AC_SUBST(version)
4056 AC_SUBST(configuration) 2940 AC_SUBST(configuration)
4057 AC_SUBST(canonical) 2941 AC_SUBST(canonical)
4058 AC_SUBST(srcdir) 2942 AC_SUBST(srcdir)
4059 AC_SUBST(prefix) 2943 AC_SUBST(prefix)
4089 AC_SUBST(machfile) 2973 AC_SUBST(machfile)
4090 AC_SUBST(opsysfile) 2974 AC_SUBST(opsysfile)
4091 AC_SUBST(RANLIB) 2975 AC_SUBST(RANLIB)
4092 AC_SUBST(dynodump_arch) 2976 AC_SUBST(dynodump_arch)
4093 2977
2978 AC_DEFINE_UNQUOTED(EMACS_VERSION, "${version}")
4094 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "\"${canonical}\"") 2979 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "\"${canonical}\"")
4095 AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"") 2980 AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
4096 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"") 2981 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
4097 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE}) 2982 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
4098 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX}) 2983 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX})
4099 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE}) 2984 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE})
4100 AC_DEFINE_UNQUOTED(LD_SWITCH_SITE, ${LD_SWITCH_SITE}) 2985 AC_DEFINE_UNQUOTED(LD_SWITCH_SITE, ${LD_SWITCH_SITE})
4101 AC_DEFINE_UNQUOTED(C_SWITCH_SITE, ${C_SWITCH_SITE}) 2986 AC_DEFINE_UNQUOTED(C_SWITCH_SITE, ${C_SWITCH_SITE})
4102 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC}) 2987 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC})
4103 2988
4104 [ 2989 dnl Note: as a general rule, *only* define things here that are not
4105 2990 dnl autodetected. For things that are autodetected, define them
4106 # Note: as a general rule, *only* define things here that are not 2991 dnl at the point where the autodetection occurs or would occur,
4107 # autodetected. For things that are autodetected, define them 2992 dnl so that the user gets immediate feedback on the results of the
4108 # at the point where the autodetection occurs or would occur, 2993 dnl autodetection.
4109 # so that the user gets immediate feedback on the results of the 2994
4110 # autodetection. 2995 test -n "${puresize}" && AC_DEFINE_UNQUOTED(PURESIZE, ${puresize})
4111 2996 IF_YES_AC_DEFINE(HAVE_X_WINDOWS,HAVE_X_WINDOWS)
4112 if [ x"${puresize}" != x ] ; then 2997 IF_YES_AC_DEFINE(HAVE_XFREE386, HAVE_XFREE386)
4113 ] AC_DEFINE_UNQUOTED(RAW_PURESIZE, ${puresize}) [ 2998
4114 fi 2999 if test "${GNU_MALLOC}" = yes; then AC_DEFINE(GNU_MALLOC)
4115 if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then 3000 elif test "${use_system_malloc}" = yes; then AC_DEFINE(USE_SYSTEM_MALLOC)
4116 ] AC_DEFINE(HAVE_X_WINDOWS) [ 3001 fi
4117 fi 3002 IF_YES_AC_DEFINE(rel_alloc, REL_ALLOC)
4118 if [ "${HAVE_XFREE386}" = "yes" ] ; then 3003 IF_YES_AC_DEFINE(LISP_FLOAT_TYPE, LISP_FLOAT_TYPE)
4119 ] AC_DEFINE(HAVE_XFREE386) [ 3004 IF_YES_AC_DEFINE(with_motif, LWLIB_USES_MOTIF)
4120 fi 3005 IF_YES_AC_DEFINE(with_toolbars, HAVE_TOOLBARS)
4121 if [ "${GNU_MALLOC}" = "yes" ] ; then 3006 IF_YES_AC_DEFINE(with_tty, HAVE_TTY)
4122 ] AC_DEFINE(GNU_MALLOC) [ 3007 IF_YES_AC_DEFINE(with_tooltalk, TOOLTALK)
4123 elif [ "${use_system_malloc}" = "yes" ]; then 3008 IF_YES_AC_DEFINE(with_i18n3, I18N3)
4124 ] AC_DEFINE(USE_SYSTEM_MALLOC) [ 3009 IF_YES_AC_DEFINE(with_mule, MULE)
4125 fi 3010 IF_YES_AC_DEFINE(with_canna, HAVE_CANNA)
4126 if [ "${rel_alloc}" = "yes" ] ; then 3011 IF_YES_AC_DEFINE(with_wnn, HAVE_WNN)
4127 ] AC_DEFINE(REL_ALLOC) [ 3012 IF_YES_AC_DEFINE(with_mock, MOCKLISP_SUPPORT)
4128 fi 3013 IF_YES_AC_DEFINE(with_sparcworks,SUNPRO)
4129 if [ "${LISP_FLOAT_TYPE}" = "yes" ] ; then 3014 IF_YES_AC_DEFINE(usage_tracking, USAGE_TRACKING)
4130 ] AC_DEFINE(LISP_FLOAT_TYPE) [ 3015 IF_YES_AC_DEFINE(need_dynodump, DYNODUMP)
4131 fi 3016 IF_YES_AC_DEFINE(need_xildoff, NEED_XILDOFF)
4132 if [ "${with_motif}" = "yes" ] ; then 3017 IF_YES_AC_DEFINE(with_gcc, USE_GCC)
4133 ] AC_DEFINE(LWLIB_USES_MOTIF) [ 3018 IF_YES_AC_DEFINE(with_lcc, USE_LCC)
4134 fi 3019 IF_YES_AC_DEFINE(with_socks, HAVE_SOCKS)
4135 if [ "${with_athena}" = "yes" ] ; then 3020 IF_YES_AC_DEFINE(with_term, HAVE_TERM)
4136 ] AC_DEFINE(LWLIB_USES_ATHENA) [ 3021 IF_YES_AC_DEFINE(with_epoch, EPOCH)
4137 fi 3022 IF_YES_AC_DEFINE(external_widget,EXTERNAL_WIDGET)
4138 if [ "${with_menubars}" = "lucid" ] ; then 3023 IF_YES_AC_DEFINE(with_gnu_make, USE_GNU_MAKE)
4139 ] AC_DEFINE(LWLIB_MENUBARS_LUCID) [ 3024 IF_YES_AC_DEFINE(no_doc_file, NO_DOC_FILE)
4140 ] AC_DEFINE(HAVE_MENUBARS) [ 3025 IF_YES_AC_DEFINE(const_is_losing,CONST_IS_LOSING)
4141 fi 3026 IF_YES_AC_DEFINE(use_assertions, USE_ASSERTIONS)
4142 if [ "${with_menubars}" = "motif" ]; then 3027 IF_YES_AC_DEFINE(debug, DEBUG_XEMACS)
4143 ] AC_DEFINE(LWLIB_MENUBARS_MOTIF) [ 3028 IF_YES_AC_DEFINE(quantify, QUANTIFY)
4144 ] AC_DEFINE(HAVE_MENUBARS) [ 3029 IF_YES_AC_DEFINE(memory_usage_stats, MEMORY_USAGE_STATS)
4145 fi 3030
4146 if [ "${with_scrollbars}" = "lucid" ] ; then 3031 IF_YES_AC_DEFINE(error_check_extents, ERROR_CHECK_EXTENTS)
4147 ] AC_DEFINE(LWLIB_SCROLLBARS_LUCID) [ 3032 IF_YES_AC_DEFINE(error_check_typecheck, ERROR_CHECK_TYPECHECK)
4148 ] AC_DEFINE(HAVE_SCROLLBARS) [ 3033 IF_YES_AC_DEFINE(error_check_bufpos, ERROR_CHECK_BUFPOS)
4149 fi 3034 IF_YES_AC_DEFINE(error_check_gc, ERROR_CHECK_GC)
4150 if [ "${with_scrollbars}" = "motif" ] ; then 3035 IF_YES_AC_DEFINE(error_check_malloc, ERROR_CHECK_MALLOC)
4151 ] AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) [ 3036
4152 ] AC_DEFINE(HAVE_SCROLLBARS) [ 3037 if test "${with_energize}" = yes; then
4153 fi 3038 AC_DEFINE(ENERGIZE)
4154 if [ "${with_scrollbars}" = "athena" ] ; then 3039 test "${energize_version}" = "2.X" && AC_DEFINE(ENERGIZE_2)
4155 ] AC_DEFINE(LWLIB_SCROLLBARS_ATHENA) [ 3040 test "${energize_version}" = "3.X" && AC_DEFINE(ENERGIZE_3)
4156 ] AC_DEFINE(HAVE_SCROLLBARS) [ 3041 fi
4157 fi 3042
4158 if [ "${with_dialogs}" = "motif" ] ; then 3043 test "${with_sound}" = "native" -o "${with_sound}" = "both" && AC_DEFINE(HAVE_NATIVE_SOUND)
4159 ] AC_DEFINE(LWLIB_DIALOGS_MOTIF) [ 3044 test "${with_sound}" = "nas" -o "${with_sound}" = "both" && AC_DEFINE(HAVE_NAS_SOUND)
4160 ] AC_DEFINE(HAVE_DIALOGS) [ 3045 test "${old_nas}" = "true" && AC_DEFINE(NAS_NO_ERROR_JUMP)
4161 fi 3046
4162 if [ "${with_dialogs}" = "athena" ] ; then 3047 test "${use_union_type}" != yes && AC_DEFINE(NO_UNION_TYPE)
4163 ] AC_DEFINE(LWLIB_DIALOGS_ATHENA) [ 3048
4164 ] AC_DEFINE(HAVE_DIALOGS) [ 3049 dnl ############################################################################
4165 fi 3050 dnl # Report on what we decided to do #
4166 if [ "${with_toolbars}" = "yes" ] ; then 3051 dnl ############################################################################
4167 ] AC_DEFINE(HAVE_TOOLBARS) [
4168 fi
4169 if [ "${with_tty}" = "yes" ] ; then
4170 ] AC_DEFINE(HAVE_TTY) [
4171 fi
4172 if [ "${with_tooltalk}" = "yes" ] ; then
4173 ] AC_DEFINE(TOOLTALK) [
4174 fi
4175 if [ "$with_mocklisp" = "yes" ]; then
4176 ] AC_DEFINE(MOCKLISP_SUPPORT) [
4177 fi
4178 if [ "${with_sparcworks}" = "yes" ] ; then
4179 ] AC_DEFINE(SUNPRO) [
4180 fi
4181 if [ "${usage_tracking}" = "yes" ] ; then
4182 ] AC_DEFINE(USAGE_TRACKING) [
4183 fi
4184 if [ "${with_energize}" = "yes" ] ; then
4185 ] AC_DEFINE(ENERGIZE) [
4186 if [ "${energize_version}" = "2.X" ] ; then
4187 ] AC_DEFINE(ENERGIZE_2) [
4188 elif [ "${energize_version}" = "3.X" ] ; then
4189 ] AC_DEFINE(ENERGIZE_3) [
4190 fi
4191 fi
4192 if [ "${need_dynodump}" = "yes" ] ; then
4193 ] AC_DEFINE(DYNODUMP) [
4194 fi
4195 if [ "${need_xildoff}" = "yes" ] ; then
4196 ] AC_DEFINE(NEED_XILDOFF) [
4197 fi
4198 if [ "${with_gcc}" = "yes" ] ; then
4199 ] AC_DEFINE(USE_GCC) [
4200 fi
4201 if [ "${with_lcc}" = "yes" ] ; then
4202 ] AC_DEFINE(USE_LCC) [
4203 fi
4204 if [ "${with_socks}" = "yes" ]; then
4205 ] AC_DEFINE(HAVE_SOCKS) [
4206 fi
4207 if [ "${with_term}" = "yes" ]; then
4208 ] AC_DEFINE(HAVE_TERM) [
4209 fi
4210 if [ "${with_epoch}" = "yes" ]; then
4211 ] AC_DEFINE(EPOCH) [
4212 fi
4213 if [ "${with_sound}" = "native" -o "${with_sound}" = "both" ]; then
4214 ] AC_DEFINE(HAVE_NATIVE_SOUND) [
4215 fi
4216 if [ "${with_sound}" = "nas" -o "${with_sound}" = "both" ]; then
4217 ] AC_DEFINE(HAVE_NAS_SOUND) [
4218 fi
4219 if [ "${old_nas}" = "true" ] ; then
4220 ] AC_DEFINE(NAS_NO_ERROR_JUMP) [
4221 fi
4222 if [ "${external_widget}" = "yes" ]; then
4223 ] AC_DEFINE(EXTERNAL_WIDGET) [
4224 fi
4225 if [ "${with_gnu_make}" = "yes" ]; then
4226 ] AC_DEFINE(USE_GNU_MAKE) [
4227 fi
4228 if [ "${no_doc_file}" = "yes" ]; then
4229 ] AC_DEFINE(NO_DOC_FILE) [
4230 fi
4231 if [ "${const_is_losing}" = "yes" ]; then
4232 ] AC_DEFINE(CONST_IS_LOSING) [
4233 fi
4234 if [ "${use_assertions}" = "yes" ]; then
4235 ] AC_DEFINE(USE_ASSERTIONS) [
4236 fi
4237 if [ "${error_check_extents}" = "yes" ]; then
4238 ] AC_DEFINE(ERROR_CHECK_EXTENTS) [
4239 fi
4240 if [ "${error_check_typecheck}" = "yes" ]; then
4241 ] AC_DEFINE(ERROR_CHECK_TYPECHECK) [
4242 fi
4243 if [ "${error_check_bufpos}" = "yes" ]; then
4244 ] AC_DEFINE(ERROR_CHECK_BUFPOS) [
4245 fi
4246 if [ "${error_check_gc}" = "yes" ]; then
4247 ] AC_DEFINE(ERROR_CHECK_GC) [
4248 fi
4249 if [ "${error_check_malloc}" = "yes" ]; then
4250 ] AC_DEFINE(ERROR_CHECK_MALLOC) [
4251 fi
4252 if [ "${debug}" = "yes" ]; then
4253 ] AC_DEFINE(DEBUG_XEMACS) [
4254 fi
4255 if [ "${memory_usage_stats}" = "yes" ]; then
4256 ] AC_DEFINE(MEMORY_USAGE_STATS) [
4257 fi
4258 if [ "${use_union_type}" != "yes" ]; then
4259 ] AC_DEFINE(NO_UNION_TYPE) [
4260 fi
4261 if [ "${quantify}" = "yes" ]; then
4262 ] AC_DEFINE(QUANTIFY) [
4263 fi
4264
4265 # ====================== Developer's configuration =======================
4266
4267 # The following assignments make sense if you're running XEmacs on a single
4268 # machine, one version at a time, and you want changes to the lisp and etc
4269 # directories in the source tree to show up immediately in your working
4270 # environment. It saves a great deal of disk space by not duplicating the
4271 # lisp and etc directories.
4272
4273 if [ "$run_in_place" = "yes" ]; then
4274 prefix='${srcdir}'
4275 exec_prefix='${srcdir}'
4276 bindir='${exec_prefix}/bin/${configuration}'
4277 lispdir='${srcdir}/lisp'
4278 sitelispdir='${lispdir}/site-lisp'
4279 etcdir='${srcdir}/etc'
4280 lockdir='${srcdir}/lock'
4281 archlibdir='${srcdir}/lib-src/${configuration}'
4282 infodir='${srcdir}/info'
4283 fi
4284 #elif [ "$single_tree" = "1" ]; then
4285 # if [ "$exec_prefix_specified" = "" ]; then
4286 # exec_prefix='${prefix}'
4287 # fi
4288 # if [ "$bindir_specified" = "" ]; then
4289 # bindir='${exec_prefix}/bin/${configuration}'
4290 # fi
4291 # if [ "$datadir_specified" = "" ]; then
4292 # datadir='${prefix}/common'
4293 # fi
4294 # if [ "$statedir_specified" = "" ]; then
4295 # statedir='${prefix}/common'
4296 # fi
4297 # if [ "$libdir_specified" = "" ]; then
4298 # libdir='${bindir}'
4299 # fi
4300 # if [ "$lispdir_specified" = "" ]; then
4301 # lispdir='${prefix}/common/lisp'
4302 # fi
4303 # if [ "$locallisppath_specified" = "" ]; then
4304 # locallisppath='${prefix}/common/site-lisp'
4305 # fi
4306 # if [ "$lockdir_specified" = "" ]; then
4307 # lockdir='${prefix}/common/lock'
4308 # fi
4309 # if [ "$archlibdir_specified" = "" ]; then
4310 # archlibdir='${libdir}/etc'
4311 # fi
4312 # if [ "$etcdir_specified" = "" ]; then
4313 # etcdir='${prefix}/common/data'
4314 # fi
4315 # if [ "$docdir_specified" = "" ]; then
4316 # docdir='${prefix}/common/data'
4317 # fi
4318 #fi
4319
4320 ############################################################################
4321 # #
4322 # Report on what we decided to do #
4323 # #
4324 ############################################################################
4325 3052
4326 echo " 3053 echo "
4327 3054
4328 Configured for \`${canonical}'. 3055 Configured for \`${canonical}'.
4329 3056
4336 Should XEmacs use the relocating allocator for buffers? ${rel_alloc} 3063 Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
4337 What window system should XEmacs use? ${window_system}${x_includes+ 3064 What window system should XEmacs use? ${window_system}${x_includes+
4338 Where do we find X Windows header files? }${x_includes}${x_libraries+ 3065 Where do we find X Windows header files? }${x_includes}${x_libraries+
4339 Where do we find X Windows libraries? }${x_libraries}" 3066 Where do we find X Windows libraries? }${x_libraries}"
4340 3067
4341 if [ -n "$site_includes" ]; then 3068 if test -n "$site_includes"; then
4342 echo " Additional header files: ${site_includes}" 3069 echo " Additional header files: ${site_includes}"
4343 fi 3070 fi
4344 3071
4345 if [ -n "$site_libraries" ] && [ -n "$site_runtime_libraries" ]; then 3072 if test -n "$site_libraries" -a -n "$site_runtime_libraries"; then
4346 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}" 3073 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}"
4347 elif [ -n "$site_libraries" ]; then 3074 elif test -n "$site_libraries"; then
4348 echo " Additional libraries: ${site_libraries}" 3075 echo " Additional libraries: ${site_libraries}"
4349 elif [ -n "$site_runtime_libraries" ]; then 3076 elif test -n "$site_runtime_libraries"; then
4350 echo " Additional libraries: ${site_runtime_libraries}" 3077 echo " Additional libraries: ${site_runtime_libraries}"
4351 fi 3078 fi
4352 3079
4353 3080 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
4354 if [ "$with_socks" = "yes" ]; then 3081 test "$with_term" = yes && echo " Compiling in support for TERM."
4355 echo " Compiling in support for SOCKS." 3082 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
4356 fi 3083 test "$with_xpm" = yes && echo " Compiling in support for XPM."
4357 if [ "$with_term" = "yes" ]; then 3084 if test "$with_xmu" != yes -a "$window_system" != none; then
4358 echo " Compiling in support for TERM."
4359 fi
4360 if [ "$with_xauth" = "yes" ]; then
4361 echo " Compiling in support for XAUTH."
4362 fi
4363 if [ "$with_xpm" = "yes" ]; then
4364 echo " Compiling in support for XPM."
4365 fi
4366 if [ "$with_xmu" != "yes" ] && [ "$window_system" != "none" ]; then
4367 echo " No Xmu; substituting equivalent routines." 3085 echo " No Xmu; substituting equivalent routines."
4368 fi 3086 fi
4369 if [ "$with_xface" = "yes" ]; then 3087 test "$with_xface" = yes && echo " Compiling in support for X-Face headers."
4370 echo " Compiling in support for X-Face headers." 3088 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion."
4371 fi 3089 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion."
4372 if [ "$with_gif" = "yes" ]; then 3090 if test "$with_png" = yes -o "$with_png" = gnuz; then
4373 echo " Compiling in support for GIF image conversion."
4374 fi
4375 if [ "$with_jpeg" = "yes" ]; then
4376 echo " Compiling in support for JPEG image conversion."
4377 fi
4378 if [ "$with_png" = "yes" ] || [ "$with_png" = "gnuz" ]; then
4379 echo " Compiling in support for PNG image conversion." 3091 echo " Compiling in support for PNG image conversion."
4380 fi 3092 fi
4381 if [ "$with_png" = "gnuz" ]; then 3093 if test "$with_png" = gnuz; then
4382 echo " (Using -lgz instead of -lz.)" 3094 echo " (Using -lgz instead of -lz.)"
4383 fi 3095 fi
4384 if [ "$with_tiff" = "yes" ]; then 3096 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)."
4385 echo " Compiling in support for TIFF image conversion (not implemented)." 3097 test "$with_epoch" = yes && echo " Compiling in extra Epoch compatibility."
4386 fi 3098
4387 if [ "$with_epoch" = "yes" ]; then 3099 test "$with_sound" = nas && echo " Compiling in network sound support."
4388 echo " Compiling in extra Epoch compatibility." 3100 test "$with_sound" = native && echo " Compiling in native sound support."
4389 fi 3101 test "$with_sound" = both && echo " Compiling in both network and native sound support."
4390 if [ "$with_sound" = "nas" ]; then 3102 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously"
4391 echo " Compiling in network sound support." 3103
4392 fi 3104 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
4393 if [ "$with_sound" = "native" ]; then 3105 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
4394 echo " Compiling in native sound support." 3106 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
4395 fi 3107
4396 if [ "$with_sound" = "both" ]; then 3108 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
4397 echo " Compiling in both network and native sound support." 3109 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
4398 fi 3110 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
4399 if [ "$old_nas" = true ]; then 3111
4400 echo " nas library lacks error trapping, will play synchronously" 3112 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
4401 fi 3113 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
4402 if [ "$with_database_berkdb" = "yes" ]; then 3114 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
4403 echo " Compiling in support for Berkeley DB." 3115 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
4404 fi 3116 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
4405 if [ "$with_database_dbm" = "yes" ]; then 3117 test "$with_wnn" = yes && echo " Compiling in support for WNN on Mule (doesn't currently work)."
4406 echo " Compiling in support for DBM." 3118 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
4407 fi 3119
4408 if [ "$with_database_gnudbm" = "yes" ]; then 3120 test "$with_cde" = yes && echo " Compiling in support for CDE."
4409 echo " Compiling in support for GNU DBM." 3121 test "$with_offix" = yes && echo " Compiling in support for OffiX."
4410 fi 3122 test "$with_mocklisp" = yes && echo " Compiling in support for Mocklisp."
4411 if [ "$with_ncurses" = "yes" ]; then 3123 test "$with_sparcworks" = yes && echo " Compiling in support for SparcWorks."
4412 echo " Compiling in support for ncurses." 3124 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)."
4413 fi 3125 test "$with_menubars" = "lucid" && echo " Using the Lucid menubar."
4414 if [ "$with_socks" = "yes" ]; then 3126 if test "$with_menubars" = "motif"; then
4415 echo " Compiling in support for SOCKS."
4416 fi
4417 if [ "$with_tooltalk" = "yes" ]; then
4418 echo " Compiling in support for ToolTalk."
4419 fi
4420 if [ "$with_cde" = "yes" ]; then
4421 echo " Compiling in support for CDE."
4422 fi
4423 if [ "$with_offix" = "yes" ]; then
4424 echo " Compiling in support for OffiX."
4425 fi
4426 if [ "$with_mocklisp" = "yes" ]; then
4427 echo " Compiling in support for Mocklisp."
4428 fi
4429 if [ "$with_sparcworks" = "yes" ]; then
4430 echo " Compiling in support for SparcWorks."
4431 fi
4432 if [ "$with_energize" = "yes" ]; then
4433 echo " Compiling in support for Lucid Energize (doesn't currently work)."
4434 fi
4435 if [ "$with_menubars" = "lucid" ]; then
4436 echo " Using the Lucid menubar."
4437 fi
4438 if [ "$with_menubars" = "motif" ]; then
4439 echo " Using the Motif menubar." 3127 echo " Using the Motif menubar."
4440 echo " *WARNING* The Motif menubar is currently buggy. We recommend" 3128 echo " *WARNING* The Motif menubar is currently buggy. We recommend"
4441 echo " that you use the Lucid menubar instead. Re-run" 3129 echo " that you use the Lucid menubar instead. Re-run"
4442 echo " configure with --with-menubars='lucid'." 3130 echo " configure with --with-menubars='lucid'."
4443 fi 3131 fi
4444 if [ "$with_scrollbars" = "lucid" ]; then 3132 test "$with_scrollbars" = lucid && echo " Using the Lucid scrollbar."
4445 echo " Using the Lucid scrollbar." 3133 test "$with_scrollbars" = motif && echo " Using the Motif scrollbar."
4446 fi 3134 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar."
4447 if [ "$with_scrollbars" = "motif" ]; then 3135 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes."
4448 echo " Using the Motif scrollbar." 3136 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes."
4449 fi 3137
4450 if [ "$with_scrollbars" = "athena" ]; then 3138 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects."
4451 echo " Using the Athena scrollbar." 3139 test "${debug}" = yes && echo " Compiling in extra code for debugging."
4452 fi 3140 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage."
4453 if [ "$with_dialogs" = "motif" ]; then 3141 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
4454 echo " Using the Motif dialog boxes."
4455 fi
4456 if [ "$with_dialogs" = "athena" ]; then
4457 echo " Using the Athena dialog boxes."
4458 fi
4459 if [ "${use_union_type}" = "yes" ]; then
4460 echo " Using the union type for Lisp_Objects."
4461 fi
4462 if [ "${debug}" = "yes" ]; then
4463 echo " Compiling in extra code for debugging."
4464 fi
4465 if [ "${memory_usage_stats}" = "yes" ]; then
4466 echo " Compiling in code for checking XEmacs memory usage."
4467 fi
4468 if [ "$usage_tracking" = "yes" ]; then
4469 echo " Compiling with usage tracking active (Sun internal)."
4470 fi
4471 echo " 3142 echo "
4472 " 3143 "
4473 3144
4474 ############################################################################ 3145 dnl ############################################################################
4475 # # 3146 dnl # Now generate! #
4476 # Now generate! # 3147 dnl ############################################################################
4477 # # 3148
4478 ############################################################################ 3149 dnl This has to be called in order for this variable to get into config.status
4479 3150 AC_SUBST(internal_makefile_list) [
4480 # This has to be called in order for this variable to get into config.status
4481 ] AC_SUBST(internal_makefile_list) [
4482 # Remove any trailing slashes in these variables. 3151 # Remove any trailing slashes in these variables.
4483 test -n "${prefix}" && 3152 test -n "${prefix}" &&
4484 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` 3153 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
4485 test -n "${exec_prefix}" && 3154 test -n "${exec_prefix}" &&
4486 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` 3155 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
4488 AC_OUTPUT($internal_makefile_list) [ 3157 AC_OUTPUT($internal_makefile_list) [
4489 # Build: 3158 # Build:
4490 # src/Makefile from ${srcdir}/src/Makefile.in 3159 # src/Makefile from ${srcdir}/src/Makefile.in
4491 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in 3160 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in
4492 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in 3161 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in
4493 # man/*/Makefile from ${srcdir}/man/*/Makefile.in
4494 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in 3162 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in
4495 # and possibly 3163 # and possibly
4496 # lwlib/energize/Makefile from ${srcdir}/lwlib/energize/Makefile.in. 3164 # lwlib/energize/Makefile from ${srcdir}/lwlib/energize/Makefile.in.
4497 # This must be done after src/config.h is built, since we rely on that 3165 # This must be done after src/config.h is built, since we rely on that
4498 # file. Only do the build if "config.status" is present, since its 3166 # file. Only do the build if "config.status" is present, since its
4499 # non-presence indicates an error occured. 3167 # non-presence indicates an error occured.
4500 status=$? 3168 status=$?
4501 if [ ! -f ./config.status ]; then 3169 if test ! -f ./config.status ; then
4502 exit $status 3170 exit $status
4503 fi 3171 fi
4504 topsrcdir=${srcdir} 3172 topsrcdir=${srcdir}
4505 # We discard all lines in Makefile.in that start with `# Generated' or /**/# 3173 # We discard all lines in Makefile.in that start with `# Generated' or /**/#
4506 # because some cpps get confused by them. 3174 # because some cpps get confused by them.
4509 makefile_command='echo "creating src/Makefile"; 3177 makefile_command='echo "creating src/Makefile";
4510 topsrcdir='"${topsrcdir}"'; 3178 topsrcdir='"${topsrcdir}"';
4511 ( cd ./src; 3179 ( cd ./src;
4512 rm -f junk.c; 3180 rm -f junk.c;
4513 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; 3181 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
4514 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; 3182 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
4515 < junk.cpp '\ 3183 < junk.cpp '\
4516 ' sed -e '\''s/^#.*//'\'' '\ 3184 ' sed -e '\''s/^#.*//'\'' '\
4517 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ 3185 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
4518 ' -e '\''s/^ / /'\'' '\ 3186 ' -e '\''s/^ / /'\'' '\
4519 ' | sed -n -e '\''/^..*$/p'\'' '\ 3187 ' | sed -n -e '\''/^..*$/p'\'' '\
4526 lwlib_makefile_command='echo "creating lwlib/Makefile"; 3194 lwlib_makefile_command='echo "creating lwlib/Makefile";
4527 topsrcdir='"${topsrcdir}"'; 3195 topsrcdir='"${topsrcdir}"';
4528 ( cd ./lwlib; 3196 ( cd ./lwlib;
4529 rm -f junk.c; 3197 rm -f junk.c;
4530 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; 3198 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
4531 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; 3199 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
4532 < junk.cpp '\ 3200 < junk.cpp '\
4533 ' sed -e '\''s/^#.*//'\'' '\ 3201 ' sed -e '\''s/^#.*//'\'' '\
4534 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ 3202 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
4535 ' -e '\''s/^ / /'\'' '\ 3203 ' -e '\''s/^ / /'\'' '\
4536 ' | sed -n -e '\''/^..*$/p'\'' '\ 3204 ' | sed -n -e '\''/^..*$/p'\'' '\
4543 lib_src_makefile_command='echo "creating lib-src/Makefile"; 3211 lib_src_makefile_command='echo "creating lib-src/Makefile";
4544 topsrcdir='"${topsrcdir}"'; 3212 topsrcdir='"${topsrcdir}"';
4545 ( cd ./lib-src; 3213 ( cd ./lib-src;
4546 rm -f junk.c; 3214 rm -f junk.c;
4547 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; 3215 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
4548 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; 3216 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
4549 < junk.cpp '\ 3217 < junk.cpp '\
4550 ' sed -e '\''s/^#.*//'\'' '\ 3218 ' sed -e '\''s/^#.*//'\'' '\
4551 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ 3219 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
4552 ' -e '\''s/^ / /'\'' '\ 3220 ' -e '\''s/^ / /'\'' '\
4553 ' | sed -n -e '\''/^..*$/p'\'' '\ 3221 ' | sed -n -e '\''/^..*$/p'\'' '\
4555 chmod 444 Makefile.new; 3223 chmod 444 Makefile.new;
4556 mv -f Makefile.new Makefile; 3224 mv -f Makefile.new Makefile;
4557 rm -f junk.c junk.cpp; 3225 rm -f junk.c junk.cpp;
4558 )' 3226 )'
4559 eval `echo $lib_src_makefile_command` 3227 eval `echo $lib_src_makefile_command`
3228
3229 # Mule utilitity programs - currently disabled
3230 if test "${with_mule_util}" = "yes"; then
3231 lib_src_mule_makefile_command='echo "creating lib-src/mule/Makefile";
3232 topsrcdir='"${topsrcdir}"';
3233 ( cd ./lib-src/mule;
3234 rm -f junk.c;
3235 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
3236 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
3237 < junk.cpp '\
3238 ' sed -e '\''s/^#.*//'\'' '\
3239 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
3240 ' -e '\''s/^ / /'\'' '\
3241 ' | sed -n -e '\''/^..*$/p'\'' '\
3242 ' > Makefile.new;
3243 chmod 444 Makefile.new;
3244 mv -f Makefile.new Makefile;
3245 rm -f junk.c junk.cpp;
3246 )'
3247 eval `echo $lib_src_mule_makefile_command`
3248 fi # Mule
3249
4560 dynodump_makefile_command='echo "creating dynodump/Makefile"; 3250 dynodump_makefile_command='echo "creating dynodump/Makefile";
4561 topsrcdir='"${topsrcdir}"'; 3251 topsrcdir='"${topsrcdir}"';
4562 ( cd ./dynodump; 3252 ( cd ./dynodump;
4563 rm -f junk.c; 3253 rm -f junk.c;
4564 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; 3254 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
4565 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; 3255 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
4566 < junk.cpp '\ 3256 < junk.cpp '\
4567 ' sed -e '\''s/^#.*//'\'' '\ 3257 ' sed -e '\''s/^#.*//'\'' '\
4568 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ 3258 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
4569 ' -e '\''s/^ / /'\'' '\ 3259 ' -e '\''s/^ / /'\'' '\
4570 ' | sed -n -e '\''/^..*$/p'\'' '\ 3260 ' | sed -n -e '\''/^..*$/p'\'' '\
4572 chmod 444 Makefile.new; 3262 chmod 444 Makefile.new;
4573 mv -f Makefile.new Makefile; 3263 mv -f Makefile.new Makefile;
4574 rm -f junk.c junk.cpp; 3264 rm -f junk.c junk.cpp;
4575 )' 3265 )'
4576 eval `echo $dynodump_makefile_command` 3266 eval `echo $dynodump_makefile_command`
4577 if [ "${with_energize}" = "yes" ]; then 3267 if test "${with_energize}" = "yes" ; then
4578 energize_makefile_command='echo "creating lwlib/energize/Makefile"; 3268 energize_makefile_command='echo "creating lwlib/energize/Makefile";
4579 topsrcdir='"${topsrcdir}"'; 3269 topsrcdir='"${topsrcdir}"';
4580 ( cd ./lwlib/energize; 3270 ( cd ./lwlib/energize;
4581 rm -f junk.c; 3271 rm -f junk.c;
4582 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; 3272 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
4583 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; 3273 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
4584 < junk.cpp '\ 3274 < junk.cpp '\
4585 ' sed -e '\''s/^#.*//'\'' '\ 3275 ' sed -e '\''s/^#.*//'\'' '\
4586 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ 3276 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
4587 ' -e '\''s/^ / /'\'' '\ 3277 ' -e '\''s/^ / /'\'' '\
4588 ' | sed -n -e '\''/^..*$/p'\'' '\ 3278 ' | sed -n -e '\''/^..*$/p'\'' '\
4600 # "exit 0" which appears at the end of `config.status'. 3290 # "exit 0" which appears at the end of `config.status'.
4601 <config.status sed -e 's/^exit 0$//' >config.new 3291 <config.status sed -e 's/^exit 0$//' >config.new
4602 echo $makefile_command >>config.new 3292 echo $makefile_command >>config.new
4603 echo $lwlib_makefile_command >>config.new 3293 echo $lwlib_makefile_command >>config.new
4604 echo $lib_src_makefile_command >>config.new 3294 echo $lib_src_makefile_command >>config.new
3295 if test "${with_mule_util}" = "yes"; then
3296 echo $lib_src_mule_makefile_command >>config.new
3297 fi
4605 echo $dynodump_makefile_command >>config.new 3298 echo $dynodump_makefile_command >>config.new
4606 echo $man_makefile_command >>config.new 3299 echo $man_makefile_command >>config.new
4607 if [ "${with_energize}" = "yes" ]; then 3300 if test "${with_energize}" = "yes" ; then
4608 echo $energize_makefile_command >>config.new 3301 echo $energize_makefile_command >>config.new
4609 fi 3302 fi
4610 echo exit 0 >>config.new 3303 echo exit 0 >>config.new
4611 mv -f config.new config.status 3304 mv -f config.new config.status
4612 chmod +x config.status 3305 chmod +x config.status
4613 # Don't let the fact that we just rewrote config.status make Makefile think 3306 # Don't let the fact that we just rewrote config.status make Makefile think
4614 # that it is now newer. We have just rewritten all of the Makefiles as well. 3307 # that it is now newer. We have just rewritten all of the Makefiles as well.
4615 MFS="Makefile src/Makefile src/Makefile.in lib-src/Makefile lib-src/Makefile.in dynodump/Makefile dynodump/Makefile.in lwlib/Makefile lwlib/Makefile.in" 3308 MFS="Makefile \
4616 for file in $MFS; do 3309 src/Makefile src/Makefile.in \
4617 chmod a+w $file; touch $file; chmod 444 $file 3310 lib-src/Makefile lib-src/Makefile.in \
4618 done 3311 dynodump/Makefile dynodump/Makefile.in \
3312 lwlib/Makefile lwlib/Makefile.in"
3313 chmod a+w $MFS
3314 touch $MFS
3315 chmod 444 $MFS
4619 3316
4620 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then 3317 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then
4621 echo creating src/gdbinit 3318 echo creating src/gdbinit
4622 echo source $topsrcdir/src/gdbinit > src/gdbinit 3319 echo source $topsrcdir/src/gdbinit > src/gdbinit
4623 fi 3320 fi
4624 3321
4625 exit 0 3322 exit 0
4626
4627 # I've removed "mode: ksh" from the following. ksh mode sucks for
4628 # editing this file. (It seems that ksh mode sucks in general.
4629 # I wonder if the new 19.29 shell-script mode is better.)
4630
4631 # Local Variables:
4632 # compile-command: "autoconf"
4633 # End:
4634 ] 3323 ]