Mercurial > hg > xemacs-beta
comparison configure.in @ 398:74fd4e045ea6 r21-2-29
Import from CVS: tag r21-2-29
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:13:30 +0200 |
parents | 7d59cb494b73 |
children | a86b2b5e0111 |
comparison
equal
deleted
inserted
replaced
397:f4aeb21a5bad | 398:74fd4e045ea6 |
---|---|
343 dnl libexecdir='${exec_prefix}/libexec' | 343 dnl libexecdir='${exec_prefix}/libexec' |
344 datadir='${prefix}/lib' | 344 datadir='${prefix}/lib' |
345 statedir='${prefix}/lib' | 345 statedir='${prefix}/lib' |
346 libdir='${exec_prefix}/lib' | 346 libdir='${exec_prefix}/lib' |
347 mandir='${prefix}/man/man1' | 347 mandir='${prefix}/man/man1' |
348 infodir='${datadir}/${PROGNAME}-${version}/info' | 348 inststaticdir='${PROGNAME}' |
349 instvardir='${PROGNAME}-${version}' | |
350 infodir='${datadir}/${instvardir}/info' | |
349 infopath='' | 351 infopath='' |
350 install_pp='' | 352 install_pp='' |
351 lispdir='${datadir}/${PROGNAME}-${version}/lisp' | 353 lispdir='${datadir}/${instvardir}/lisp' |
352 moduledir='${datadir}/${PROGNAME}-${version}/${configuration}/modules' | 354 moduledir='${datadir}/${instvardir}/${configuration}/modules' |
353 sitelispdir='${datadir}/xemacs/site-lisp' | 355 sitelispdir='${datadir}/${inststaticdir}/site-lisp' |
354 sitemoduledir='${datadir}/xemacs/site-modules' | 356 sitemoduledir='${datadir}/${inststaticdir}/site-modules' |
355 pkgdir='${datadir}/${PROGNAME}-${version}/lisp' | 357 pkgdir='${datadir}/${instvardir}/lisp' |
356 package_path='' | 358 package_path='' |
357 etcdir='${datadir}/${PROGNAME}-${version}/etc' | 359 etcdir='${datadir}/${instvardir}/etc' |
358 lockdir='${statedir}/${PROGNAME}/lock' | 360 lockdir='${statedir}/${inststaticdir}/lock' |
359 archlibdir='${datadir}/${PROGNAME}-${version}/${configuration}' | 361 archlibdir='${datadir}/${instvardir}/${configuration}' |
362 docdir='${archlibdir}' | |
363 with_prefix='yes' | |
360 with_site_lisp='no' | 364 with_site_lisp='no' |
361 with_site_modules='yes' | 365 with_site_modules='yes' |
362 with_menubars='' | 366 with_menubars='' |
363 with_scrollbars='' | 367 with_scrollbars='' |
368 with_widgets='' | |
364 with_dialogs='' | 369 with_dialogs='' |
365 with_file_coding='' | 370 with_file_coding='' |
366 dnl const_is_losing is removed - we rely on AC_C_CONST instead. | |
367 dnl We accept (and ignore) the --const-is-losing option for compatibility. | |
368 dnl const_is_losing='yes' | |
369 puresize='' | |
370 cpp='' cppflags='' libs='' ldflags='' | 371 cpp='' cppflags='' libs='' ldflags='' |
371 dynamic='' | 372 dynamic='' |
372 with_x11='' | 373 with_x11='' |
373 with_msw='' | 374 with_msw='' |
374 rel_alloc='default' | 375 rel_alloc='default' |
382 dnl the following is set to yes or no later. | 383 dnl the following is set to yes or no later. |
383 with_toolbars="" | 384 with_toolbars="" |
384 with_tty="" | 385 with_tty="" |
385 use_union_type="no" | 386 use_union_type="no" |
386 with_dnet="" | 387 with_dnet="" |
388 pdump="no" | |
389 dnl dragndrop is still experimental. When it is stable, comment out the following line: | |
390 with_dragndrop="no" | |
387 | 391 |
388 dnl ------------------ | 392 dnl ------------------ |
389 dnl Options Processing | 393 dnl Options Processing |
390 dnl ------------------ | 394 dnl ------------------ |
391 | 395 |
462 dnl Process the option. | 466 dnl Process the option. |
463 case "$opt" in | 467 case "$opt" in |
464 | 468 |
465 dnl Process (many) boolean options | 469 dnl Process (many) boolean options |
466 with_site_lisp | \ | 470 with_site_lisp | \ |
467 with_site_modules | \ | 471 with_prefix | \ |
472 with_site_modules | \ | |
468 with_x | \ | 473 with_x | \ |
469 with_x11 | \ | 474 with_x11 | \ |
470 with_msw | \ | 475 with_msw | \ |
471 with_gcc | \ | 476 with_gcc | \ |
472 dynamic | \ | 477 dynamic | \ |
481 with_xface | \ | 486 with_xface | \ |
482 with_gif | \ | 487 with_gif | \ |
483 with_jpeg | \ | 488 with_jpeg | \ |
484 with_png | \ | 489 with_png | \ |
485 with_tiff | \ | 490 with_tiff | \ |
486 with_session | \ | 491 with_wmcommand | \ |
487 with_xmu | \ | 492 with_xmu | \ |
488 with_purify | \ | 493 with_purify | \ |
489 with_quantify | \ | 494 with_quantify | \ |
490 with_toolbars | \ | 495 with_toolbars | \ |
491 with_tty | \ | 496 with_tty | \ |
506 with_dnet | \ | 511 with_dnet | \ |
507 with_infodock | \ | 512 with_infodock | \ |
508 external_widget | \ | 513 external_widget | \ |
509 verbose | \ | 514 verbose | \ |
510 extra_verbose | \ | 515 extra_verbose | \ |
511 const_is_losing | \ | |
512 usage_tracking | \ | 516 usage_tracking | \ |
513 use_union_type | \ | 517 use_union_type | \ |
518 pdump | \ | |
514 debug | \ | 519 debug | \ |
515 use_assertions | \ | 520 use_assertions | \ |
516 gung_ho | \ | |
517 use_minimal_tagbits | \ | |
518 use_indexed_lrecord_implementation | \ | |
519 memory_usage_stats | \ | 521 memory_usage_stats | \ |
520 with_clash_detection | \ | 522 with_clash_detection | \ |
521 with_shlib | \ | 523 with_modules | \ |
522 no_doc_file ) | 524 no_doc_file ) |
523 dnl Make sure the value given was either "yes" or "no". | 525 dnl Make sure the value given was either "yes" or "no". |
524 case "$val" in | 526 case "$val" in |
525 y | ye | yes ) val=yes ;; | 527 y | ye | yes ) val=yes ;; |
526 n | no ) val=no ;; | 528 n | no ) val=no ;; |
527 * ) USAGE_ERROR("The \`--$optname' option requires a boolean value: \`yes' or \`no'.") ;; | 529 * ) USAGE_ERROR("The \`--$optname' option requires a boolean value: \`yes' or \`no'.") ;; |
528 esac | 530 esac |
529 eval "$opt=\"$val\"" ;; | 531 eval "$opt=\"$val\"" ;; |
530 | 532 |
531 | 533 |
532 dnl Options that take a user-supplied value, as in --puresize=8000000 | 534 dnl Options that take a user-supplied value, as in --x-includes=/usr/X11R6/include |
533 dnl The cache-file option is ignored (for compatibility with other configures) | 535 dnl The cache-file option is ignored (for compatibility with other configures) |
534 srcdir | \ | 536 srcdir | \ |
535 compiler | \ | 537 compiler | \ |
536 cflags | \ | 538 cflags | \ |
537 cpp | \ | 539 cpp | \ |
538 cppflags | \ | 540 cppflags | \ |
539 libs | \ | 541 libs | \ |
540 ldflags | \ | 542 ldflags | \ |
541 puresize | \ | |
542 cache_file | \ | 543 cache_file | \ |
543 native_sound_lib| \ | 544 native_sound_lib| \ |
544 site_lisp | \ | 545 site_lisp | \ |
545 x_includes | \ | 546 x_includes | \ |
546 x_libraries | \ | 547 x_libraries | \ |
577 | 578 |
578 dnl Has the user requested database support? | 579 dnl Has the user requested database support? |
579 "with_database" ) | 580 "with_database" ) |
580 with_database_berkdb=no | 581 with_database_berkdb=no |
581 with_database_dbm=no | 582 with_database_dbm=no |
582 with_database_gnudbm=no | 583 with_database_gdbm=no |
583 for x in `echo "$val" | sed -e 's/,/ /g'` ; do | 584 for x in `echo "$val" | sed -e 's/,/ /g'` ; do |
584 case "$x" in | 585 case "$x" in |
585 no ) ;; | 586 no ) ;; |
586 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; | 587 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; |
587 d | db | dbm ) with_database_dbm=yes ;; | 588 d | db | dbm ) with_database_dbm=yes ;; |
588 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;; | 589 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;; |
589 * ) USAGE_ERROR(["The \`--$optname' option value | 590 * ) USAGE_ERROR(["The \`--$optname' option value |
590 must be either \`no' or a comma-separated list | 591 must be either \`no' or a comma-separated list |
591 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."]) ;; | 592 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."]) ;; |
592 esac | 593 esac |
593 done | 594 done |
594 if test "$with_database_dbm" = "yes" -a \ | 595 if test "$with_database_dbm" = "yes" -a \ |
595 "$with_database_gnudbm" = "yes"; then | 596 "$with_database_gdbm" = "yes"; then |
596 USAGE_ERROR("Only one of \`dbm' and \`gnudbm' may be specified | 597 USAGE_ERROR("Only one of \`dbm' and \`gnudbm' may be specified |
597 with the \`--$optname' option.") | 598 with the \`--$optname' option.") |
598 fi | 599 fi |
599 ;; | 600 ;; |
600 | 601 |
601 dnl Has the user requested sound support? | 602 dnl Has the user requested sound support? |
602 "with_sound" ) | 603 "with_sound" ) |
603 dnl value can be native, nas or both. yes is allowed | 604 dnl values is a subset of all,native,nas,esd |
604 dnl as a backwards compatible synonym for native | 605 dnl or their negatives: none,nonative,nonas,noesd |
606 for x in `echo "$val" | sed -e 's/,/ /g'` ; do | |
607 case "$x" in | |
608 dnl all and none are only permitted as the first in the list. | |
609 n | no | non | none ) new_sdefault=no ;; | |
610 a | al | all | both ) new_sdefault=yes ;; | |
611 | |
612 native ) with_native_sound=yes ;; | |
613 nonative ) with_native_sound=no ;; | |
614 | |
615 nas ) with_nas_sound=yes ;; | |
616 nonas ) with_nas_sound=no ;; | |
617 | |
618 esd ) with_esd_sound=yes ;; | |
619 noesd ) with_esd_sound=no ;; | |
620 | |
621 * ) bogus_sound=yes ;; | |
622 esac | |
623 if test "$bogus_sound" -o \ | |
624 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then | |
625 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'." | |
626 USAGE_ERROR(["Valid types for the \`--$optname' option are: | |
627 $types. | |
628 The default is to autodetect all sound support."]) | |
629 elif test -n "$new_sdefault" ; then | |
630 with_native_sound=$new_sdefault | |
631 with_nas_sound=$new_sdefault | |
632 with_esd_sound=$new_sdefault | |
633 new_sdefault= # reset this | |
634 fi | |
635 sound_notfirst=true | |
636 done | |
637 ;; | |
638 | |
639 dnl Has the user specified a prefered Athena widget set? | |
640 dnl This bit expands any alias names out for us... | |
641 "with_athena" ) | |
605 case "$val" in | 642 case "$val" in |
606 y | ye | yes ) val=native ;; | 643 xa | xaw ) val=xaw ;; |
607 n | no | non | none ) val=no;; | 644 3 | 3d | xaw3d ) val=3d ;; |
608 na | nat | nati | nativ | native ) val=native ;; | 645 dnl No `n' for next, someone may try `no' |
609 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;; | 646 ne | nex | next | naxtaw) val=next ;; |
610 b | bo | bot | both ) val=both;; | 647 dnl Have not tested the next two... |
648 9 | 95 | xaw95 ) val=95 ;; | |
649 xp | xpm | xawxpm ) val=xpm ;; | |
611 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: | 650 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: |
612 \`native', \`nas', \`both', or \`none'."]) ;; | 651 \`xaw', \`3d', \`next', \`95', or \`xpm'."]) ;; |
613 esac | 652 esac |
614 eval "$opt=\"$val\"" | 653 eval "$opt=\"$val\"" |
615 ;; | 654 ;; |
616 | 655 |
617 dnl Has the user requested XIM support? | 656 dnl Has the user requested XIM support? |
630 dnl Mail locking specification | 669 dnl Mail locking specification |
631 "mail_locking" ) | 670 "mail_locking" ) |
632 case "$val" in | 671 case "$val" in |
633 lockf ) val=lockf ;; | 672 lockf ) val=lockf ;; |
634 flock ) val=flock ;; | 673 flock ) val=flock ;; |
635 file ) val=file ;; | 674 file | dot ) val=file ;; |
675 locking ) val=locking ;; | |
636 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: | 676 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: |
637 \`lockf', \`flock', or \`file'."]) ;; | 677 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."]) ;; |
638 esac | 678 esac |
639 eval "$opt=\"$val\"" | 679 eval "$opt=\"$val\"" |
640 ;; | 680 ;; |
641 | 681 |
642 dnl Has the user requested error-checking? | 682 dnl Has the user requested error-checking? |
664 nogc ) error_check_gc=no ;; | 704 nogc ) error_check_gc=no ;; |
665 | 705 |
666 malloc ) error_check_malloc=yes ;; | 706 malloc ) error_check_malloc=yes ;; |
667 nomalloc ) error_check_malloc=no ;; | 707 nomalloc ) error_check_malloc=no ;; |
668 | 708 |
709 byte_code ) error_check_byte_code=yes ;; | |
710 nobyte_code ) error_check_byte_code=no ;; | |
711 | |
669 * ) bogus_error_check=yes ;; | 712 * ) bogus_error_check=yes ;; |
670 esac | 713 esac |
671 if test "$bogus_error_check" -o \ | 714 if test "$bogus_error_check" -o \ |
672 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then | 715 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then |
673 if test "$error_check_default" = yes ; then | 716 if test "$error_check_default" = yes ; then |
674 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'." | 717 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'." |
675 else | 718 else |
676 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'." | 719 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'." |
677 fi | 720 fi |
678 USAGE_ERROR(["Valid types for the \`--$optname' option are: | 721 USAGE_ERROR(["Valid types for the \`--$optname' option are: |
679 $types."]) | 722 $types."]) |
680 elif test -n "$new_default" ; then | 723 elif test -n "$new_default" ; then |
681 error_check_extents=$new_default | 724 error_check_extents=$new_default |
682 error_check_typecheck=$new_default | 725 error_check_typecheck=$new_default |
683 error_check_bufpos=$new_default | 726 error_check_bufpos=$new_default |
684 error_check_gc=$new_default | 727 error_check_gc=$new_default |
685 error_check_malloc=$new_default | 728 error_check_malloc=$new_default |
729 error_check_byte_code=$new_default | |
686 new_default= # reset this | 730 new_default= # reset this |
687 fi | 731 fi |
688 echeck_notfirst=true | 732 echeck_notfirst=true |
689 done | 733 done |
690 ;; | 734 ;; |
708 eval "$opt=\"$val\"" | 752 eval "$opt=\"$val\"" |
709 | 753 |
710 dnl You need to synchronize this with the way the | 754 dnl You need to synchronize this with the way the |
711 dnl default values are built. | 755 dnl default values are built. |
712 case "$opt" in | 756 case "$opt" in |
757 dnl prefix is taken care of by --with-prefix | |
758 exec_prefix ) AC_DEFINE(EXEC_PREFIX_USER_DEFINED) ;; | |
713 lispdir ) AC_DEFINE(LISPDIR_USER_DEFINED) ;; | 759 lispdir ) AC_DEFINE(LISPDIR_USER_DEFINED) ;; |
714 sitelispdir ) AC_DEFINE(SITELISPDIR_USER_DEFINED) ;; | 760 sitelispdir ) AC_DEFINE(SITELISPDIR_USER_DEFINED) ;; |
715 moduledir ) AC_DEFINE(MODULEDIR_USER_DEFINED) ;; | 761 moduledir ) AC_DEFINE(MODULEDIR_USER_DEFINED) ;; |
716 etcdir ) AC_DEFINE(ETCDIR_USER_DEFINED) ;; | 762 etcdir ) AC_DEFINE(ETCDIR_USER_DEFINED) ;; |
717 infodir ) AC_DEFINE(INFODIR_USER_DEFINED) ;; | 763 infodir ) AC_DEFINE(INFODIR_USER_DEFINED) ;; |
721 AC_DEFINE(INFODIR_USER_DEFINED) | 767 AC_DEFINE(INFODIR_USER_DEFINED) |
722 AC_DEFINE(LISPDIR_USER_DEFINED) | 768 AC_DEFINE(LISPDIR_USER_DEFINED) |
723 AC_DEFINE(MODULEDIR_USER_DEFINED) | 769 AC_DEFINE(MODULEDIR_USER_DEFINED) |
724 AC_DEFINE(ETCDIR_USER_DEFINED) ;; | 770 AC_DEFINE(ETCDIR_USER_DEFINED) ;; |
725 statedir | lockdir ) AC_DEFINE(LOCKDIR_USER_DEFINED) ;; | 771 statedir | lockdir ) AC_DEFINE(LOCKDIR_USER_DEFINED) ;; |
772 docdir ) AC_DEFINE(DOCDIR_USER_DEFINED) ;; | |
726 exec_prefix | libdir | archlibdir ) AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;; | 773 exec_prefix | libdir | archlibdir ) AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;; |
727 esac | 774 esac |
728 ;; | 775 ;; |
729 | 776 |
730 dnl --no-create added by autoconf for use by config.status | 777 dnl --no-create added by autoconf for use by config.status |
734 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;; | 781 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;; |
735 | 782 |
736 dnl Has the user specified the toolkit(s) to use for GUI elements? | 783 dnl Has the user specified the toolkit(s) to use for GUI elements? |
737 "with_menubars" | \ | 784 "with_menubars" | \ |
738 "with_scrollbars" | \ | 785 "with_scrollbars" | \ |
739 "with_dialogs" ) | 786 "with_dialogs" | \ |
787 "with_widgets" ) | |
740 case "$val" in | 788 case "$val" in |
741 l | lu | luc | luci | lucid ) val=lucid ;; | 789 l | lu | luc | luci | lucid ) val=lucid ;; |
742 m | mo | mot | moti | motif ) val=motif ;; | 790 m | mo | mot | moti | motif ) val=motif ;; |
743 athena3d | athena-3d ) val=athena3d ;; | |
744 a | at | ath | athe | athen | athena ) val=athena ;; | 791 a | at | ath | athe | athen | athena ) val=athena ;; |
745 n | no | non | none ) val=no ;; | 792 n | no | non | none ) val=no ;; |
746 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: | 793 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: |
747 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."]) ;; | 794 \`lucid', \`motif', \`athena', or \`no'."]) ;; |
748 esac | 795 esac |
749 eval "$opt=\"$val\"" | 796 eval "$opt=\"$val\"" |
750 ;; | 797 ;; |
751 | 798 |
752 dnl Obsolete legacy argument? Warn, but otherwise ignore. | 799 dnl Obsolete legacy argument? Warn, but otherwise ignore. |
800 "use_minimal_tagbits" | \ | |
801 "use_indexed_lrecord_implementation" | \ | |
753 "run_in_place" | \ | 802 "run_in_place" | \ |
803 "const_is_losing" | \ | |
754 "with_gnu_make" ) | 804 "with_gnu_make" ) |
755 AC_MSG_WARN([Obsolete option \`--$optname' ignored.]) | 805 AC_MSG_WARN([Obsolete option \`--$optname' ignored.]) |
756 ;; | 806 ;; |
757 | 807 |
758 dnl Unrecognized option? No mercy for user errors. | 808 dnl Unrecognized option? No mercy for user errors. |
790 test -n "$with_x" && with_x11="$with_x" | 840 test -n "$with_x" && with_x11="$with_x" |
791 | 841 |
792 dnl --with-quantify or --with-purify imply --use-system-malloc | 842 dnl --with-quantify or --with-purify imply --use-system-malloc |
793 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then | 843 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then |
794 test "$with_system_malloc" = "default" && with_system_malloc=yes | 844 test "$with_system_malloc" = "default" && with_system_malloc=yes |
795 fi | |
796 | |
797 dnl --gung-ho=val is a synonym for | |
798 dnl --use-minimal-tagbits=val --use-indexed-lrecord-implementation=val | |
799 if test -n "$gung_ho"; then | |
800 test -z "$use_minimal_tagbits" && use_minimal_tagbits="$gung_ho" | |
801 test -z "$use_indexed_lrecord_implementation" && \ | |
802 use_indexed_lrecord_implementation="$gung_ho" | |
803 fi | |
804 if test "$use_minimal_tagbits" = "no"; then | |
805 test "$with_dlmalloc" = "yes" && \ | |
806 USAGE_ERROR("--with-dlmalloc requires --use-minimal-tagbits") | |
807 with_dlmalloc=no | |
808 fi | 845 fi |
809 | 846 |
810 dnl XE_CHECK_FEATURE_DEPENDENCY(feature1, feature2) | 847 dnl XE_CHECK_FEATURE_DEPENDENCY(feature1, feature2) |
811 define([XE_CHECK_FEATURE_DEPENDENCY], | 848 define([XE_CHECK_FEATURE_DEPENDENCY], |
812 [if test "$with_$1 $with_$2" = "yes no"; then | 849 [if test "$with_$1 $with_$2" = "yes no"; then |
867 dnl Make symlinks for etc, lisp, and info directories while the path | 904 dnl Make symlinks for etc, lisp, and info directories while the path |
868 dnl is still relative. We do not symlink lock because someone may | 905 dnl is still relative. We do not symlink lock because someone may |
869 dnl have stuck the source on a read-only partition. Instead we | 906 dnl have stuck the source on a read-only partition. Instead we |
870 dnl create it as an actual directory later on if it does not already | 907 dnl create it as an actual directory later on if it does not already |
871 dnl exist. | 908 dnl exist. |
872 for dir in lisp etc man info; do | 909 for dir in lisp etc man info tests; do |
873 if test ! -d "$dir" ; then | 910 if test ! -d "$dir" ; then |
874 echo Making symbolic link to "$srcdir/$dir" | 911 echo Making symbolic link to "$srcdir/$dir" |
875 ${LN_S} "$srcdir/$dir" "$dir" | 912 ${LN_S} "$srcdir/$dir" "$dir" |
876 fi | 913 fi |
877 done | 914 done |
925 dnl ---------------------------------------- | 962 dnl ---------------------------------------- |
926 dnl Find out which version of XEmacs this is | 963 dnl Find out which version of XEmacs this is |
927 dnl ---------------------------------------- | 964 dnl ---------------------------------------- |
928 . "$srcdir/version.sh" || exit 1; | 965 . "$srcdir/version.sh" || exit 1; |
929 dnl Must do the following first to determine verbosity for AC_DEFINE | 966 dnl Must do the following first to determine verbosity for AC_DEFINE |
930 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi | 967 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi |
931 : "${extra_verbose=$beta}" | 968 : "${extra_verbose=$beta}" |
932 version="${emacs_major_version}.${emacs_minor_version}" | 969 version="${emacs_major_version}.${emacs_minor_version}" |
933 AC_DEFINE_UNQUOTED(EMACS_MAJOR_VERSION, $emacs_major_version) | 970 AC_DEFINE_UNQUOTED(EMACS_MAJOR_VERSION, $emacs_major_version) |
934 AC_DEFINE_UNQUOTED(EMACS_MINOR_VERSION, $emacs_minor_version) | 971 AC_DEFINE_UNQUOTED(EMACS_MINOR_VERSION, $emacs_minor_version) |
935 if test -n "$emacs_beta_version"; then | 972 if test -n "$emacs_beta_version" ; then |
936 version="${version}-b${emacs_beta_version}" | 973 if test "$beta" = "yes"; then |
937 AC_DEFINE_UNQUOTED(EMACS_BETA_VERSION, $emacs_beta_version) | 974 version="${version}-b${emacs_beta_version}" |
975 AC_DEFINE_UNQUOTED(EMACS_BETA_VERSION, $emacs_beta_version) | |
976 else | |
977 version="${version}.${emacs_beta_version}" | |
978 AC_DEFINE_UNQUOTED(EMACS_PATCH_LEVEL, $emacs_beta_version) | |
979 fi | |
938 fi | 980 fi |
939 AC_DEFINE_UNQUOTED(XEMACS_CODENAME, "$xemacs_codename") | 981 AC_DEFINE_UNQUOTED(XEMACS_CODENAME, "$xemacs_codename") |
940 AC_DEFINE_UNQUOTED(EMACS_VERSION, "$version") | 982 AC_DEFINE_UNQUOTED(EMACS_VERSION, "$version") |
941 | 983 |
942 if test "$with_infodock" = "yes"; then | 984 if test "$with_infodock" = "yes"; then |
943 if test ! -f ../ID-INSTALL; then | 985 if test ! -f ../../ID-INSTALL; then |
944 echo "Cannot build InfoDock without InfoDock sources" | 986 echo "Cannot build InfoDock without InfoDock sources" |
945 with_infodock=no | 987 with_infodock=no |
946 fi | 988 fi |
947 fi | 989 fi |
948 | 990 |
962 dnl ---------------------------------- | 1004 dnl ---------------------------------- |
963 dnl Error checking and debugging flags | 1005 dnl Error checking and debugging flags |
964 dnl ---------------------------------- | 1006 dnl ---------------------------------- |
965 dnl Error checking default to "yes" in beta versions, to "no" in releases. | 1007 dnl Error checking default to "yes" in beta versions, to "no" in releases. |
966 dnl Same goes for --debug and --extra-verbosity. | 1008 dnl Same goes for --debug and --extra-verbosity. |
967 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi | 1009 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi |
968 test "${error_check_extents=$beta}" = yes && AC_DEFINE(ERROR_CHECK_EXTENTS) | 1010 test "${error_check_extents=$beta}" = yes && AC_DEFINE(ERROR_CHECK_EXTENTS) |
969 test "${error_check_typecheck=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TYPECHECK) | 1011 test "${error_check_typecheck=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TYPECHECK) |
970 test "${error_check_bufpos=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BUFPOS) | 1012 test "${error_check_bufpos=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BUFPOS) |
971 test "${error_check_gc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GC) | 1013 test "${error_check_gc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GC) |
972 test "${error_check_malloc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_MALLOC) | 1014 test "${error_check_malloc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_MALLOC) |
1015 test "${error_check_byte_code=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BYTE_CODE) | |
973 dnl debug=yes must be set when error checking is present. This should be | 1016 dnl debug=yes must be set when error checking is present. This should be |
974 dnl fixed up. | 1017 dnl fixed up. |
975 dnl debug implies other options | 1018 dnl debug implies other options |
976 if test "${debug:=$beta}" = "yes"; then | 1019 if test "${debug:=$beta}" = "yes"; then |
977 use_assertions=yes memory_usage_stats=yes | 1020 use_assertions=yes memory_usage_stats=yes |
978 XE_ADD_OBJS(debug.o) | 1021 XE_ADD_OBJS(debug.o) |
1022 XE_ADD_OBJS(tests.o) | |
979 AC_DEFINE(DEBUG_XEMACS) | 1023 AC_DEFINE(DEBUG_XEMACS) |
980 fi | 1024 fi |
981 test "$use_assertions" = "yes" && AC_DEFINE(USE_ASSERTIONS) | 1025 test "$use_assertions" = "yes" && AC_DEFINE(USE_ASSERTIONS) |
982 test "$memory_usage_stats" = "yes" && AC_DEFINE(MEMORY_USAGE_STATS) | 1026 test "$memory_usage_stats" = "yes" && AC_DEFINE(MEMORY_USAGE_STATS) |
983 | 1027 |
1025 case "$canonical" in | 1069 case "$canonical" in |
1026 sparc-*-* ) machine=sparc ;; | 1070 sparc-*-* ) machine=sparc ;; |
1027 alpha*-*-* ) machine=alpha ;; | 1071 alpha*-*-* ) machine=alpha ;; |
1028 vax-*-* ) machine=vax ;; | 1072 vax-*-* ) machine=vax ;; |
1029 mips-dec-* ) machine=pmax ;; | 1073 mips-dec-* ) machine=pmax ;; |
1074 mips-sgi-irix6* ) machine=iris6d ;; | |
1030 mips-sgi-* ) machine=iris4d ;; | 1075 mips-sgi-* ) machine=iris4d ;; |
1076 mips*-linux ) machine=mips ;; | |
1031 romp-ibm-* ) machine=ibmrt ;; | 1077 romp-ibm-* ) machine=ibmrt ;; |
1032 rs6000-ibm-aix* ) machine=ibmrs6000 ;; | 1078 rs6000-ibm-aix* ) machine=ibmrs6000 ;; |
1033 powerpc-ibm-aix* ) machine=ibmrs6000 ;; | 1079 powerpc-ibm-aix* ) machine=ibmrs6000 ;; |
1034 powerpc*-* ) machine=powerpc ;; | 1080 powerpc*-* ) machine=powerpc ;; |
1035 hppa-*-* ) machine=hp800 ;; | 1081 hppa-*-* ) machine=hp800 ;; |
1036 m88k-dg-* ) machine=aviion ;; | 1082 m88k-dg-* ) machine=aviion ;; |
1037 m68*-sony-* ) machine=news ;; | 1083 m68*-sony-* ) machine=news ;; |
1038 mips-sony-* ) machine=news-risc ;; | 1084 mips-sony-* ) machine=news-risc ;; |
1039 clipper-* ) machine=clipper ;; | 1085 clipper-* ) machine=clipper ;; |
1040 arm-* ) machine=arm ;; | 1086 arm-* ) machine=arm ;; |
1087 armv[34][lb]-* ) machine=arm ;; | |
1041 ns32k-* ) machine=ns32000 ;; | 1088 ns32k-* ) machine=ns32000 ;; |
1042 esac | 1089 esac |
1043 | 1090 |
1044 dnl Straightforward OS determination | 1091 dnl Straightforward OS determination |
1045 case "$canonical" in | 1092 case "$canonical" in |
1479 if test "$dynamic" = "yes" ; then | 1526 if test "$dynamic" = "yes" ; then |
1480 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ; | 1527 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ; |
1481 else | 1528 else |
1482 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ; | 1529 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ; |
1483 fi ;; | 1530 fi ;; |
1531 *-sysv5* ) opsys=sco7 ;; | |
1484 *-386bsd* ) opsys=386bsd ;; | 1532 *-386bsd* ) opsys=386bsd ;; |
1485 *-freebsd* ) opsys=freebsd ;; | 1533 *-freebsd* ) opsys=freebsd ;; |
1486 *-nextstep* ) opsys=nextstep ;; | 1534 *-nextstep* ) opsys=nextstep ;; |
1487 *-pc-cygwin32 ) opsys=cygwin32 ;; | 1535 *-pc-cygwin* ) opsys=cygwin32 ;; |
1536 *-pc-mingw* ) opsys=mingw32 ; | |
1537 test -z "$with_tty" && with_tty="no";; | |
1488 dnl Otherwise, we fall through to the generic opsys code at the bottom. | 1538 dnl Otherwise, we fall through to the generic opsys code at the bottom. |
1489 esac | 1539 esac |
1490 ;; | 1540 ;; |
1491 | 1541 |
1492 dnl Linux/68k | 1542 dnl Linux/68k |
1589 | 1639 |
1590 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" | 1640 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" |
1591 | 1641 |
1592 AC_PROG_CPP | 1642 AC_PROG_CPP |
1593 | 1643 |
1594 AC_AIX | 1644 dnl -------------------------------------------------------------------- |
1645 dnl Compiler feature macros | |
1646 dnl -------------------------------------------------------------------- | |
1647 | |
1648 dnl We want feature macros defined here and in config.h.in, so that | |
1649 dnl the compilation environment at configure time and compile time agree. | |
1650 | |
1651 AC_AIX dnl Defines _ALL_SOURCE on AIX. | |
1595 | 1652 |
1596 AC_MSG_CHECKING(for GNU libc) | 1653 AC_MSG_CHECKING(for GNU libc) |
1597 AC_TRY_COMPILE([#include <features.h>],[ | 1654 AC_TRY_COMPILE([#include <features.h>],[ |
1598 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) | 1655 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) |
1599 #error Not a GNU libc system :-( | 1656 #error Not a GNU libc system :-( |
1603 AC_MSG_RESULT($have_glibc) | 1660 AC_MSG_RESULT($have_glibc) |
1604 dnl I'm tired of pop being broken with GLIBC -slb | 1661 dnl I'm tired of pop being broken with GLIBC -slb |
1605 dnl Well. then why not fix fucking pop? | 1662 dnl Well. then why not fix fucking pop? |
1606 test "$have_glibc" = "yes" && AC_DEFINE(_GNU_SOURCE) | 1663 test "$have_glibc" = "yes" && AC_DEFINE(_GNU_SOURCE) |
1607 | 1664 |
1665 dnl We'd like to use vendor extensions, where available. | |
1666 dnl We'd like to use functions from the latest Unix98 standards. | |
1667 dnl See http://www.opengroup.org/onlinepubs/007908799/xsh/compilation.html | |
1668 case "$opsys" in | |
1669 sol2) | |
1670 AC_DEFINE(__EXTENSIONS__) | |
1671 dnl Solaris 2 before 2.5 had some bugs with feature test macro interaction. | |
1672 if test "$os_release" -ge 55; then | |
1673 AC_DEFINE(_XOPEN_SOURCE,500) | |
1674 AC_DEFINE(_XOPEN_SOURCE_EXTENDED) | |
1675 fi ;; | |
1676 linux) | |
1677 AC_DEFINE(_POSIX_C_SOURCE,199506L) | |
1678 AC_DEFINE(_XOPEN_SOURCE,500) | |
1679 AC_DEFINE(_XOPEN_SOURCE_EXTENDED) | |
1680 ;; | |
1681 esac | |
1608 | 1682 |
1609 dnl Identify compilers to enable compiler-specific hacks. | 1683 dnl Identify compilers to enable compiler-specific hacks. |
1610 dnl Add support for other compilers HERE! | 1684 dnl Add support for other compilers HERE! |
1611 dnl GCC is already identified elsewhere. | 1685 dnl GCC is already identified elsewhere. |
1612 AC_TRY_RUN([int main () { | 1686 AC_TRY_RUN([int main () { |
1720 configure___ start_files=START_FILES | 1794 configure___ start_files=START_FILES |
1721 | 1795 |
1722 CPP_boolean_to_sh(ORDINARY_LINK, ordinary_link) | 1796 CPP_boolean_to_sh(ORDINARY_LINK, ordinary_link) |
1723 CPP_boolean_to_sh(SYSTEM_MALLOC, system_malloc) | 1797 CPP_boolean_to_sh(SYSTEM_MALLOC, system_malloc) |
1724 CPP_boolean_to_sh(TERMINFO, have_terminfo) | 1798 CPP_boolean_to_sh(TERMINFO, have_terminfo) |
1799 dnl The MAIL_USE_xxx variables come from the s&m headers | |
1725 CPP_boolean_to_sh(MAIL_USE_FLOCK, mail_use_flock) | 1800 CPP_boolean_to_sh(MAIL_USE_FLOCK, mail_use_flock) |
1726 CPP_boolean_to_sh(MAIL_USE_LOCKF, mail_use_lockf) | 1801 CPP_boolean_to_sh(MAIL_USE_LOCKF, mail_use_lockf) |
1802 CPP_boolean_to_sh(MAIL_USE_LOCKING, mail_use_locking) | |
1803 CPP_boolean_to_sh(HAVE_WIN32_PROCESSES, win32_processes) | |
1727 EOF | 1804 EOF |
1728 | 1805 |
1729 dnl The value of CPP is a quoted variable reference, so we need to do this | 1806 dnl The value of CPP is a quoted variable reference, so we need to do this |
1730 dnl to get its actual value... | 1807 dnl to get its actual value... |
1731 CPP=`eval "echo $CPP $CPPFLAGS"` | 1808 CPP=`eval "echo $CPP $CPPFLAGS"` |
1743 objects_machine objects_system c_switch_machine c_switch_system | 1820 objects_machine objects_system c_switch_machine c_switch_system |
1744 ld_switch_machine ld_switch_system unexec ld_switch_shared | 1821 ld_switch_machine ld_switch_system unexec ld_switch_shared |
1745 ld lib_gcc ld_text_start_addr start_files ordinary_link | 1822 ld lib_gcc ld_text_start_addr start_files ordinary_link |
1746 have_terminfo mail_use_flock mail_use_lockf) && echo "" | 1823 have_terminfo mail_use_flock mail_use_lockf) && echo "" |
1747 | 1824 |
1825 dnl Pick up mingw32 include path | |
1826 case "$opsys" in mingw*) mingw_include=`eval "gcc -print-file-name=libc.a"` ; | |
1827 mingw_include=`eval "dirname $mingw_include"` ; | |
1828 mingw_include="-I$mingw_include/../include/mingw32" ; | |
1829 XE_APPEND($mingw_include, c_switch_system) ;; | |
1830 esac | |
1831 | |
1748 dnl Non-ordinary link usually requires -lc | 1832 dnl Non-ordinary link usually requires -lc |
1749 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" | 1833 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" |
1750 | 1834 |
1751 dnl Compiler-specific hacks | 1835 dnl Compiler-specific hacks |
1752 dnl DEC C requires -std | 1836 dnl DEC C requires -std |
1756 dnl Use either command line flag, environment var, or autodetection | 1840 dnl Use either command line flag, environment var, or autodetection |
1757 if test "$cflags_specified" = "no"; then | 1841 if test "$cflags_specified" = "no"; then |
1758 dnl Following values of CFLAGS are known to work well. | 1842 dnl Following values of CFLAGS are known to work well. |
1759 dnl Should we take debugging options into consideration? | 1843 dnl Should we take debugging options into consideration? |
1760 if test "$GCC" = "yes"; then | 1844 if test "$GCC" = "yes"; then |
1761 CFLAGS="-g -O3 -Wall -Wno-switch" | 1845 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow" |
1762 dnl I'm not convinced this is a good idea any more. -sb | 1846 dnl I'm not convinced this is a good idea any more. -sb |
1763 dnl test "$opsys $machine" = "linux intel386" && \ | 1847 dnl test "$opsys $machine" = "linux intel386" && \ |
1764 dnl CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2" | 1848 dnl CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2" |
1765 dnl cygwin b19 can't cope with -O3, but most people use 20.1 or egcs now. | |
1766 dnl test "$opsys $machine" = "cygwin32 intel386" && \ | |
1767 dnl CFLAGS="-g -O2 -Wall -Wno-switch" | |
1768 elif test "$__SUNPRO_C" = "yes"; then | 1849 elif test "$__SUNPRO_C" = "yes"; then |
1769 case "$opsys" in | 1850 case "$opsys" in |
1770 sol2 ) CFLAGS="-v -xO4" ;; | 1851 sol2 ) CFLAGS="-v -xO4" ;; |
1771 sunos4* ) CFLAGS="-xO2";; | 1852 sunos4* ) CFLAGS="-xO2";; |
1772 esac | 1853 esac |
1898 dnl Site prefixes take precedence over the standard places, but not over | 1979 dnl Site prefixes take precedence over the standard places, but not over |
1899 dnl site-includes and site-libraries. | 1980 dnl site-includes and site-libraries. |
1900 COLON_TO_SPACE(site_prefixes) | 1981 COLON_TO_SPACE(site_prefixes) |
1901 if test -n "$site_prefixes"; then | 1982 if test -n "$site_prefixes"; then |
1902 for dir in $site_prefixes; do | 1983 for dir in $site_prefixes; do |
1984 lib_dir="${dir}/lib" | |
1903 inc_dir="${dir}/include" | 1985 inc_dir="${dir}/include" |
1904 lib_dir="${dir}/lib" | |
1905 if test ! -d "$dir"; then | 1986 if test ! -d "$dir"; then |
1906 XE_DIE("Invalid site prefix \`$dir': no such directory") | 1987 XE_DIE("Invalid site prefix \`$dir': no such directory") |
1907 elif test ! -d "$inc_dir"; then | |
1908 XE_DIE("Invalid site prefix \`$dir': no such directory \`$inc_dir'") | |
1909 elif test ! -d "$lib_dir"; then | 1988 elif test ! -d "$lib_dir"; then |
1910 XE_DIE("Invalid site prefix \`$dir': no such directory \`$lib_dir'") | 1989 XE_DIE("Invalid site prefix \`$dir': no such directory \`$lib_dir'") |
1911 else | 1990 else |
1912 XE_APPEND("-I$inc_dir", c_switch_site) | 1991 if test -d "$inc_dir"; then |
1992 XE_APPEND("-I$inc_dir", c_switch_site) | |
1993 fi | |
1913 XE_APPEND("-L$lib_dir", ld_switch_site) | 1994 XE_APPEND("-L$lib_dir", ld_switch_site) |
1914 fi | 1995 fi |
1915 done | 1996 done |
1916 fi | 1997 fi |
1917 | 1998 |
1921 dnl XE_APPEND("-I/usr/local/include", c_switch_site) | 2002 dnl XE_APPEND("-I/usr/local/include", c_switch_site) |
1922 dnl fi | 2003 dnl fi |
1923 | 2004 |
1924 dnl Extra system-specific library directories - please add to list | 2005 dnl Extra system-specific library directories - please add to list |
1925 for dir in "/usr/ccs/lib"; do | 2006 for dir in "/usr/ccs/lib"; do |
1926 test -d "$dir" && XE_APPEND(-L${dir}, ld_switch_site) | 2007 test -d "$dir" && XE_APPEND(-L${dir}, ld_switch_system) |
1927 done | 2008 done |
1928 | 2009 |
1929 dnl --site-runtime-libraries (multiple dirs) | 2010 dnl --site-runtime-libraries (multiple dirs) |
1930 COLON_TO_SPACE(site_runtime_libraries) | 2011 COLON_TO_SPACE(site_runtime_libraries) |
1931 if test -n "$site_runtime_libraries"; then | 2012 if test -n "$site_runtime_libraries"; then |
1932 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`" | 2013 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`" |
1933 export LD_RUN_PATH | 2014 export LD_RUN_PATH |
1934 fi | 2015 fi |
1935 | 2016 |
2017 dnl Linux systems have dynamic runtime library directories listed in | |
2018 dnl /etc/ld.so.conf. Since those are used at run time, it seems pretty | |
2019 dnl safe to use them at link time, and less controversial than forcing | |
2020 dnl the run-time to use the link-time libraries. This also helps avoid | |
2021 dnl mismatches between the link-time and run-time libraries. | |
2022 | |
2023 dnl #### Unfortunately, there are horrible libc4 and libc5 libraries | |
2024 dnl listed in /etc/ld.so.conf on some systems, and including them on | |
2025 dnl the link path leads to linking in utterly broken libc's. | |
2026 dnl There are many clever ways of approaching this problem, | |
2027 dnl but finding out that actually works... | |
2028 | |
2029 dnl if test -z "$LD_RUN_PATH" -a -r "/etc/ld.so.conf"; then | |
2030 dnl for dir in `cat /etc/ld.so.conf`; do | |
2031 dnl test -d "$dir" && XE_APPEND(-L${dir}, ld_switch_system) | |
2032 dnl done | |
2033 dnl add_runtime_path=no | |
2034 dnl fi | |
2035 | |
1936 dnl ------------------------------------- | 2036 dnl ------------------------------------- |
1937 dnl Compute runtime library path | 2037 dnl Compute runtime library path |
1938 dnl ------------------------------------- | 2038 dnl ------------------------------------- |
1939 | 2039 |
1940 if test "$dynamic" = "no"; then add_runtime_path=no | 2040 if test -n "$add_runtime_path"; then :; |
2041 elif test "$dynamic" = "no"; then add_runtime_path=no | |
1941 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes | 2042 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes |
1942 else case "$opsys" in | 2043 else case "$opsys" in |
1943 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;; | 2044 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;; |
1944 * ) add_runtime_path=no ;; | 2045 * ) add_runtime_path=no ;; |
1945 esac | 2046 esac |
2148 AC_TYPE_SIZE_T | 2249 AC_TYPE_SIZE_T |
2149 AC_TYPE_PID_T | 2250 AC_TYPE_PID_T |
2150 AC_TYPE_UID_T | 2251 AC_TYPE_UID_T |
2151 AC_TYPE_MODE_T | 2252 AC_TYPE_MODE_T |
2152 AC_TYPE_OFF_T | 2253 AC_TYPE_OFF_T |
2254 AC_CHECK_TYPE(ssize_t, int) | |
2153 | 2255 |
2154 AC_MSG_CHECKING(for struct timeval) | 2256 AC_MSG_CHECKING(for struct timeval) |
2155 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME | 2257 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME |
2156 #include <sys/time.h> | 2258 #include <sys/time.h> |
2157 #include <time.h> | 2259 #include <time.h> |
2196 | 2298 |
2197 dnl check for long file names | 2299 dnl check for long file names |
2198 AC_SYS_LONG_FILE_NAMES | 2300 AC_SYS_LONG_FILE_NAMES |
2199 | 2301 |
2200 dnl -lm is required by LISP_FLOAT_TYPE, among other things | 2302 dnl -lm is required by LISP_FLOAT_TYPE, among other things |
2201 AC_CHECK_LIB(m, sin) | 2303 AC_CHECK_FUNC(sin, ,AC_CHECK_LIB(m, sin)) |
2202 | 2304 |
2203 dnl Floating operation support is now unconditional | 2305 dnl Floating operation support is now unconditional |
2204 AC_DEFINE(LISP_FLOAT_TYPE) | 2306 AC_DEFINE(LISP_FLOAT_TYPE) |
2205 | 2307 |
2206 AC_TRY_LINK([#include <math.h>], | 2308 AC_TRY_LINK([#include <math.h>], |
2207 [return atanh(1.0) + asinh(1.0) + acosh(1.0); ], | 2309 [return atanh(1.0) + asinh(1.0) + acosh(1.0); ], |
2208 AC_DEFINE(HAVE_INVERSE_HYPERBOLIC)) | 2310 AC_DEFINE(HAVE_INVERSE_HYPERBOLIC)) |
2209 | 2311 |
2210 dnl Determine type of mail locking from configure args and s&m headers | 2312 dnl Determine type of mail locking from configure args and s&m headers |
2211 AC_CHECKING(type of mail spool file locking) | 2313 AC_CHECKING(type of mail spool file locking) |
2314 AC_CHECK_FUNCS(lockf flock) | |
2315 dnl The mail_use_xxx variables are set according to the s&m headers. | |
2212 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock | 2316 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock |
2213 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf | 2317 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf |
2214 if test "$mail_locking" = "lockf"; then AC_DEFINE(REAL_MAIL_USE_LOCKF) | 2318 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking |
2215 elif test "$mail_locking" = "flock"; then AC_DEFINE(REAL_MAIL_USE_FLOCK) | 2319 if test "$mail_locking" = "lockf"; then AC_DEFINE(MAIL_LOCK_LOCKF) |
2216 else mail_locking="dot-locking" | 2320 elif test "$mail_locking" = "flock"; then AC_DEFINE(MAIL_LOCK_FLOCK) |
2217 fi | 2321 elif test "$mail_locking" = "locking"; then AC_DEFINE(MAIL_LOCK_LOCKING) |
2218 | 2322 else mail_locking="dot-locking"; AC_DEFINE(MAIL_LOCK_DOT) |
2219 dnl Used by getloadavg() - does not require root priveleges | 2323 fi |
2220 AC_CHECK_LIB(kstat, kstat_open) | 2324 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \ |
2221 | 2325 XE_DIE("lockf mail locking requested but not available.") |
2222 dnl Another way to get the load average | 2326 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \ |
2223 AC_CHECK_LIB(kvm, kvm_read) | 2327 XE_DIE("flock mail locking requested but not available.") |
2328 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \ | |
2329 XE_DIE("locking mail locking requested but not available.") | |
2224 | 2330 |
2225 case "$opsys" in decosf*) | 2331 case "$opsys" in decosf*) |
2226 AC_CHECK_LIB(pthreads, cma_open) | 2332 AC_CHECK_LIB(pthreads, cma_open) |
2227 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ | 2333 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ |
2228 c_switch_site="$c_switch_site -threads" ;; | 2334 c_switch_site="$c_switch_site -threads" ;; |
2236 fi | 2342 fi |
2237 else AC_MSG_RESULT(no) | 2343 else AC_MSG_RESULT(no) |
2238 fi | 2344 fi |
2239 | 2345 |
2240 dnl Link with "-z ignore" on Solaris if supported | 2346 dnl Link with "-z ignore" on Solaris if supported |
2241 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then | 2347 if test "$opsys" = "sol2" -a "$os_release" -ge 56; then |
2242 AC_MSG_CHECKING(for \"-z ignore\" linker flag) | 2348 AC_MSG_CHECKING(for \"-z ignore\" linker flag) |
2243 case "`ld -h 2>&1`" in | 2349 case "`ld -h 2>&1`" in |
2244 *-z\ ignore\|record* ) AC_MSG_RESULT(yes) | 2350 *-z\ ignore\|record* ) AC_MSG_RESULT(yes) |
2245 XE_PREPEND(-z ignore, ld_switch_site) ;; | 2351 XE_PREPEND(-z ignore, ld_switch_site) ;; |
2246 *) AC_MSG_RESULT(no) ;; | 2352 *) AC_MSG_RESULT(no) ;; |
2424 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }], | 2530 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }], |
2425 [./conftest foobar; x11_release=$?],[x11_release=4],[x11_release=4]) | 2531 [./conftest foobar; x11_release=$?],[x11_release=4],[x11_release=4]) |
2426 AC_MSG_RESULT(R${x11_release}) | 2532 AC_MSG_RESULT(R${x11_release}) |
2427 AC_DEFINE_UNQUOTED(THIS_IS_X11R${x11_release}) | 2533 AC_DEFINE_UNQUOTED(THIS_IS_X11R${x11_release}) |
2428 | 2534 |
2535 AC_CHECK_FUNCS(XConvertCase) | |
2536 | |
2429 AC_CHECK_HEADERS(X11/Xlocale.h) | 2537 AC_CHECK_HEADERS(X11/Xlocale.h) |
2430 | 2538 |
2431 dnl remove this - we should avoid checking for specific OS | 2539 dnl remove this - we should avoid checking for specific OS |
2432 AC_MSG_CHECKING(for XFree86) | 2540 AC_MSG_CHECKING(for XFree86) |
2433 if test -d "/usr/X386/include" -o \ | 2541 if test -d "/usr/X386/include" -o \ |
2475 AC_CHECKING(for MS-Windows) | 2583 AC_CHECKING(for MS-Windows) |
2476 AC_CHECK_LIB(gdi32,main,with_msw=yes) | 2584 AC_CHECK_LIB(gdi32,main,with_msw=yes) |
2477 if test "$with_msw" = "yes"; then | 2585 if test "$with_msw" = "yes"; then |
2478 AC_DEFINE(HAVE_MS_WINDOWS) | 2586 AC_DEFINE(HAVE_MS_WINDOWS) |
2479 install_pp="$blddir/lib-src/installexe.sh" | 2587 install_pp="$blddir/lib-src/installexe.sh" |
2480 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomctl32, libs_system) | 2588 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool, libs_system) |
2481 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto) | 2589 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto) |
2482 if test "$window_system" != x11; then | 2590 if test "$window_system" != x11; then |
2483 window_system=msw | 2591 window_system=msw |
2484 test "$with_scrollbars" != "no" && with_scrollbars=msw \ | 2592 test "$with_scrollbars" != "no" && with_scrollbars=msw \ |
2485 && XE_ADD_OBJS(scrollbar-msw.o) | 2593 && XE_ADD_OBJS(scrollbar-msw.o) |
2487 && XE_ADD_OBJS(menubar-msw.o) | 2595 && XE_ADD_OBJS(menubar-msw.o) |
2488 test "$with_toolbars" != "no" && with_toolbars=msw \ | 2596 test "$with_toolbars" != "no" && with_toolbars=msw \ |
2489 && XE_ADD_OBJS(toolbar-msw.o) | 2597 && XE_ADD_OBJS(toolbar-msw.o) |
2490 test "$with_dialogs" != "no" && with_dialogs=msw \ | 2598 test "$with_dialogs" != "no" && with_dialogs=msw \ |
2491 && XE_ADD_OBJS(dialog-msw.o) | 2599 && XE_ADD_OBJS(dialog-msw.o) |
2600 test "$with_widgets" != "no" && with_widgets=msw | |
2492 else | 2601 else |
2493 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-msw.o) | 2602 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-msw.o) |
2494 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-msw.o) | 2603 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-msw.o) |
2495 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-msw.o) | 2604 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-msw.o) |
2496 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-msw.o) | 2605 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-msw.o) |
2497 fi | 2606 fi |
2498 dnl check for our special version of select | 2607 dnl check for our special version of select |
2499 AC_TRY_RUN([#include <fcntl.h> | 2608 AC_TRY_RUN([#include <fcntl.h> |
2500 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }], | 2609 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }], |
2501 [AC_DEFINE(HAVE_MSG_SELECT)]) | 2610 [AC_DEFINE(HAVE_MSG_SELECT)]) |
2502 const_is_losing=no | |
2503 with_file_coding=yes | 2611 with_file_coding=yes |
2504 use_minimal_tagbits=yes | |
2505 use_indexed_lrecord_implementation=yes | |
2506 XE_ADD_OBJS(console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o) | 2612 XE_ADD_OBJS(console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o) |
2507 fi | 2613 fi |
2508 fi | 2614 fi |
2509 | 2615 |
2510 AC_SUBST(install_pp) | 2616 AC_SUBST(install_pp) |
2543 dnl It ought to be reasonable to have no output device at all, and only use | 2649 dnl It ought to be reasonable to have no output device at all, and only use |
2544 dnl XEmacs in --batch mode. | 2650 dnl XEmacs in --batch mode. |
2545 dnl if test "$with_tty" = "no" ; then | 2651 dnl if test "$with_tty" = "no" ; then |
2546 dnl AC_MSG_ERROR([No window system support and no TTY support - Unable to proceed.]) | 2652 dnl AC_MSG_ERROR([No window system support and no TTY support - Unable to proceed.]) |
2547 dnl fi | 2653 dnl fi |
2548 for feature in tooltalk cde offix session xim xmu | 2654 for feature in tooltalk cde offix wmcommand xim xmu nas_sound |
2549 do | 2655 do |
2550 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then | 2656 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then |
2551 AC_MSG_WARN([--with-$feature ignored: Not valid without X support]) | 2657 AC_MSG_WARN([--with-$feature ignored: Not valid without X support]) |
2552 fi | 2658 fi |
2553 eval "with_${feature}=no" | 2659 eval "with_${feature}=no" |
2566 case "$x_libraries" in *X11R4* ) | 2672 case "$x_libraries" in *X11R4* ) |
2567 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" | 2673 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" |
2568 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" | 2674 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" |
2569 esac | 2675 esac |
2570 | 2676 |
2571 dnl Enable or disable proper session-management | 2677 dnl Enable or disable proper handling of WM_COMMAND |
2572 AC_CHECKING(for session-management option); | 2678 AC_CHECKING(for WM_COMMAND option); |
2573 dnl if test "$with_session" = "yes"; then | 2679 dnl if test "$with_wmcommand" = "yes"; then |
2574 if test "$with_session" != "no"; then | 2680 if test "$with_wmcommand" != "no"; then |
2575 AC_DEFINE(HAVE_SESSION) | 2681 AC_DEFINE(HAVE_WMCOMMAND) |
2576 fi | 2682 fi |
2577 | 2683 |
2578 dnl Autodetect Xauth | 2684 dnl Autodetect Xauth |
2579 dnl -lXau is only used by gnuclient, so use a special variable for Xauth X libs | 2685 dnl -lXau is only used by gnuclient, so use a special variable for Xauth X libs |
2580 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no | 2686 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no |
2684 dnl Autodetect LDAP | 2790 dnl Autodetect LDAP |
2685 AC_CHECKING(for LDAP) | 2791 AC_CHECKING(for LDAP) |
2686 test -z "$with_ldap" && { AC_CHECK_HEADER(ldap.h, ,with_ldap=no) } | 2792 test -z "$with_ldap" && { AC_CHECK_HEADER(ldap.h, ,with_ldap=no) } |
2687 test -z "$with_ldap" && { AC_CHECK_HEADER(lber.h, ,with_ldap=no) } | 2793 test -z "$with_ldap" && { AC_CHECK_HEADER(lber.h, ,with_ldap=no) } |
2688 if test "$with_ldap" != "no"; then | 2794 if test "$with_ldap" != "no"; then |
2689 test -z "$with_umich_ldap" && { AC_CHECK_LIB(ldap, ldap_open, with_umich_ldap=yes, with_umich_ldap=no, -llber) } | 2795 AC_CHECK_LIB(ldap, ldap_search, with_ldap_nolber=yes, with_ldap_nolber=no) |
2690 test "$with_umich_ldap" = "no" && { AC_CHECK_LIB(ldap10, ldap_set_option, with_ns_ldap=yes, with_ns_ldap=no) } | 2796 test "$with_ldap_nolber" = "no" && { AC_CHECK_LIB(ldap, ldap_open, with_ldap_lber=yes, with_ldap_lber=no, -llber) } |
2691 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes | 2797 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { AC_CHECK_LIB(ldap, ldap_open, with_ldap_krb=yes, with_ldap_krb=no, -llber -lkrb) } |
2798 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { AC_CHECK_LIB(ldap, ldap_open, with_ldap_krbdes=yes, with_ldap_krbdes=no, -llber -lkrb -ldes) } | |
2799 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes | |
2692 fi | 2800 fi |
2693 if test "$with_ldap" = "yes"; then | 2801 if test "$with_ldap" = "yes"; then |
2694 AC_DEFINE(HAVE_LDAP) | 2802 AC_DEFINE(HAVE_LDAP) |
2695 XE_ADD_OBJS(eldap.o) | 2803 XE_ADD_OBJS(eldap.o) |
2696 if test "$with_umich_ldap" = "yes" ; then | 2804 if test "$with_ldap_nolber" = "yes" ; then |
2697 AC_DEFINE(HAVE_UMICH_LDAP) | 2805 XE_PREPEND(-lldap, LIBS) |
2806 else | |
2807 if test "$with_ldap_krb" = "yes" ; then | |
2808 XE_PREPEND(-lkrb, LIBS) | |
2809 fi | |
2810 if test "$with_ldap_krbdes" = "yes" ; then | |
2811 XE_PREPEND(-ldes, LIBS) | |
2812 XE_PREPEND(-lkrb, LIBS) | |
2813 fi | |
2698 XE_PREPEND(-llber, LIBS) | 2814 XE_PREPEND(-llber, LIBS) |
2699 XE_PREPEND(-lldap, LIBS) | 2815 XE_PREPEND(-lldap, LIBS) |
2700 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then | 2816 fi |
2701 AC_DEFINE(HAVE_NS_LDAP) | 2817 AC_CHECK_FUNCS(ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result) |
2702 XE_PREPEND(-lldap10, LIBS) | |
2703 elif test "$with_ldap" = "yes" ; then | |
2704 XE_PREPEND(-lldap, LIBS) | |
2705 fi | |
2706 fi | 2818 fi |
2707 | 2819 |
2708 dnl ---------------------- | 2820 dnl ---------------------- |
2709 dnl Graphics libraries | 2821 dnl Graphics libraries |
2710 dnl ---------------------- | 2822 dnl ---------------------- |
2715 dnl Autodetect Xpm | 2827 dnl Autodetect Xpm |
2716 xpm_problem="" | 2828 xpm_problem="" |
2717 if test -z "$with_xpm"; then | 2829 if test -z "$with_xpm"; then |
2718 AC_MSG_CHECKING(for Xpm - no older than 3.4f) | 2830 AC_MSG_CHECKING(for Xpm - no older than 3.4f) |
2719 xe_check_libs=-lXpm | 2831 xe_check_libs=-lXpm |
2720 AC_TRY_RUN([#include <X11/xpm.h> | 2832 AC_TRY_RUN([#define XPM_NUMBERS |
2833 #include <X11/xpm.h> | |
2721 int main(int c, char **v) { | 2834 int main(int c, char **v) { |
2722 return c == 1 ? 0 : | 2835 return c == 1 ? 0 : |
2723 XpmIncludeVersion != XpmLibraryVersion() ? 1 : | 2836 XpmIncludeVersion != XpmLibraryVersion() ? 1 : |
2724 XpmIncludeVersion < 30406 ? 2 : 0 ;}], | 2837 XpmIncludeVersion < 30406 ? 2 : 0 ;}], |
2725 [./conftest dummy_arg; xpm_status=$?; | 2838 [./conftest dummy_arg; xpm_status=$?; |
2848 | 2961 |
2849 if test "$with_x11" = "yes"; then | 2962 if test "$with_x11" = "yes"; then |
2850 | 2963 |
2851 AC_CHECKING(for X11 graphics libraries) | 2964 AC_CHECKING(for X11 graphics libraries) |
2852 | 2965 |
2853 dnl Autodetect -lXaw | 2966 AC_CHECKING(for the Athena widgets) |
2854 AC_CHECK_LIB(Xaw, XawScrollbarSetThumb, have_xaw=yes, have_xaw=no) | 2967 |
2855 dnl if test "$have_xaw" = "yes"; then | 2968 dnl What in heck did the user actually want? |
2856 dnl AC_CHECK_HEADER(X11/Xaw/Reports.h, [ | 2969 case "$with_athena" in |
2857 dnl XE_APPEND(pkg-src/tree-x, MAKE_SUBDIR) | 2970 dnl This is the default, old fashioned flat Athena. |
2858 dnl XE_APPEND(pkg-src/tree-x, INSTALL_ARCH_DEP_SUBDIR)]) | 2971 "xaw" | "") athena_variant=Xaw athena_3d=no ;; |
2859 dnl fi | 2972 "3d") athena_variant=Xaw3d athena_3d=yes ;; |
2973 "next") athena_variant=neXtaw athena_3d=yes ;; | |
2974 "95") athena_variant=Xaw95 athena_3d=yes ;; | |
2975 "xpm") athena_variant=XawXpm athena_3d=yes ;; | |
2976 *) XE_DIE("Unknown Athena widget set \`$with_athena'. This should not happen.") ;; | |
2977 esac | |
2978 | |
2979 dnl Search for the Athena library... | |
2980 if test "$athena_3d" = "no"; then | |
2981 AC_CHECK_LIB($athena_variant, XawScrollbarSetThumb, | |
2982 [ | |
2983 dnl Must not be a 3d library... | |
2984 AC_CHECK_LIB($athena_variant, threeDClassRec, | |
2985 AC_MSG_WARN("Could not find a non-3d Athena widget library."), | |
2986 athena_lib=$athena_variant) | |
2987 ], | |
2988 AC_MSG_WARN("Could not find an Athena widget library.")) | |
2989 else | |
2990 dnl The real configuration, need 3d library | |
2991 AC_CHECK_LIB($athena_variant, threeDClassRec, athena_lib=$athena_variant, | |
2992 dnl OK, couldn't find it with a proper name, try the standard Athena lib | |
2993 dnl If that is 3d, presume the user asked for what they have installed. | |
2994 AC_CHECK_LIB(Xaw, threeDClassRec, | |
2995 [ | |
2996 athena_lib=Xaw; | |
2997 AC_MSG_WARN("Assuming that libXaw is actually $athena_variant."); | |
2998 ], | |
2999 AC_MSG_WARN("Could not find a 3d Athena widget library that looked like $athena_variant."))) | |
3000 fi | |
3001 | |
3002 dnl Now we locate the Athena headers that we need. | |
3003 if test "$athena_3d" = "no"; then | |
3004 AC_CHECK_HEADER(X11/Xaw/ThreeD.h, | |
3005 AC_MSG_WARN("Could not find a non-3d Athena header set."), | |
3006 AC_CHECK_HEADER(X11/Xaw/XawInit.h, | |
3007 athena_h_path=X11/Xaw, | |
3008 AC_MSG_WARN("Could not find a non-3d Athena header set."))) | |
3009 else | |
3010 dnl The three-d Athena headers are so much more slippery. | |
3011 dnl Curse this `Lets replace standard libraries' thing that they did. :/ | |
3012 AC_CHECK_HEADER(X11/$athena_variant/XawInit.h, | |
3013 AC_CHECK_HEADER(X11/$athena_variant/ThreeD.h, | |
3014 athena_h_path=X11/$athena_variant,)) | |
3015 | |
3016 dnl Is the variant specific header directory directly under include? | |
3017 if test -z "$athena_h_path"; then | |
3018 AC_CHECK_HEADER($athena_variant/XawInit.h, | |
3019 AC_CHECK_HEADER($athena_variant/ThreeD.h, | |
3020 athena_h_path=$athena_variant,)) | |
3021 fi | |
3022 | |
3023 dnl If we couldn't find the specific variant, try the generic Athena 3d headers | |
3024 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then | |
3025 AC_CHECK_HEADER(X11/Xaw3d/XawInit.h, | |
3026 AC_CHECK_HEADER(X11/Xaw3d/ThreeD.h, | |
3027 [ | |
3028 AC_MSG_WARN("Assuming that X11/Xaw3d headers are suitable for $athena_variant.") | |
3029 athena_h_path=X11/Xaw3d | |
3030 ],)) | |
3031 fi | |
3032 | |
3033 dnl Also generic 3d headers directly under include dir | |
3034 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then | |
3035 AC_CHECK_HEADER(Xaw3d/XawInit.h, | |
3036 AC_CHECK_HEADER(Xaw3d/ThreeD.h, | |
3037 [ | |
3038 AC_MSG_WARN("Assuming that Xaw3d headers are suitable for $athena_variant.") | |
3039 athena_h_path=Xaw3d | |
3040 ],)) | |
3041 fi | |
3042 | |
3043 dnl If nothing yet found, see if Xaw is a 3d header set... | |
3044 dnl We AC_MSG_WARN if we fail because I am all out of ideas... | |
3045 if test -z "$athena_h_path"; then | |
3046 AC_CHECK_HEADER(X11/Xaw/ThreeD.h, | |
3047 [ | |
3048 AC_MSG_WARN("Assuming that X11/Xaw headers are suitable for $athena_variant.") | |
3049 athena_h_path=X11/Xaw | |
3050 ], | |
3051 AC_MSG_WARN("Could not find a suitable 3d Athena header set.")) | |
3052 fi | |
3053 fi | |
3054 | |
3055 dnl Do we actually have a usable Athena widget set? Please? | |
3056 if test -n "$athena_lib" -a -n "$athena_h_path"; then | |
3057 have_xaw=yes | |
3058 else | |
3059 have_xaw=no | |
3060 fi | |
2860 | 3061 |
2861 dnl autodetect Motif - but only add to libs_x later (if necessary) | 3062 dnl autodetect Motif - but only add to libs_x later (if necessary) |
2862 AC_CHECK_HEADER(Xm/Xm.h, | 3063 AC_CHECK_HEADER(Xm/Xm.h, |
2863 [AC_CHECK_LIB(Xm, XmStringFree, have_motif=yes, have_motif=no)], | 3064 [AC_CHECK_LIB(Xm, XmStringFree, have_motif=yes, have_motif=no)], |
2864 have_motif=no) | 3065 have_motif=no) |
2879 | 3080 |
2880 dnl Finish ensuring that we have values for the various toolkit items. | 3081 dnl Finish ensuring that we have values for the various toolkit items. |
2881 dnl Not all toolkits support all widgets | 3082 dnl Not all toolkits support all widgets |
2882 dnl if Motif is available we use it for the dialog boxes. | 3083 dnl if Motif is available we use it for the dialog boxes. |
2883 | 3084 |
2884 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" ) | 3085 case "$with_menubars" in "" | "yes" | "athena" ) |
2885 with_menubars="lucid" ;; | 3086 with_menubars="lucid" ;; |
2886 esac | 3087 esac |
2887 case "$with_dialogs" in "" | "yes" | "lucid" ) | 3088 case "$with_dialogs" in "" | "yes" | "lucid" ) |
2888 if test "$have_motif" = "yes"; then with_dialogs="motif" | 3089 if test "$have_motif" = "yes"; then with_dialogs="motif" |
2889 elif test "$have_xaw" = "yes"; then with_dialogs="athena" | 3090 elif test "$have_xaw" = "yes"; then with_dialogs="athena" |
2890 else with_dialogs=no | 3091 else with_dialogs=no |
2891 fi ;; | 3092 fi ;; |
2892 esac | 3093 esac |
2893 case "$with_scrollbars" in "" | "yes" ) | 3094 case "$with_scrollbars" in "" | "yes" ) |
2894 with_scrollbars="lucid" ;; | 3095 with_scrollbars="lucid" ;; |
2895 esac | 3096 esac |
2896 | 3097 case "$with_widgets" in "" | "yes" | "lucid") |
2897 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars" | 3098 if test "$have_motif" = "yes"; then with_widgets="motif" |
2898 | 3099 elif test "$have_xaw" = "yes"; then with_widgets="athena" |
2899 case "$all_widgets" in *athena* ) | 3100 else with_widgets=no |
2900 AC_DEFINE(LWLIB_USES_ATHENA) | 3101 fi ;; |
2901 AC_DEFINE(NEED_ATHENA) | 3102 esac |
2902 XE_APPEND(lwlib-Xaw.o, lwlib_objs) | 3103 |
2903 XE_PREPEND(-lXaw, libs_x) ;; | 3104 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets" |
3105 | |
3106 case "$all_widgets" in | |
3107 *athena* ) | |
3108 if test "$have_xaw" != "yes"; then | |
3109 XE_DIE("Could not find a suitable Athena library to build with.") | |
3110 fi | |
3111 | |
3112 dnl Add the Lucid widget Athena code | |
3113 XE_APPEND(lwlib-Xaw.o, lwlib_objs) | |
3114 | |
3115 dnl Add the Athena widget library we located earlier | |
3116 XE_PREPEND(-l$athena_lib, libs_x) | |
3117 | |
3118 dnl Export the path for lwlib, used to build and include the headers | |
3119 dnl from the right place later on. | |
3120 AC_DEFINE_UNQUOTED(ATHENA_H_PATH, $athena_h_path) | |
3121 | |
3122 AC_DEFINE(LWLIB_USES_ATHENA) | |
3123 AC_DEFINE(NEED_ATHENA) | |
3124 | |
3125 if test "$athena_3d" = "yes"; then | |
3126 AC_DEFINE(HAVE_ATHENA_3D) | |
3127 fi | |
3128 ;; | |
2904 esac | 3129 esac |
2905 | 3130 |
2906 case "$all_widgets" in *motif* ) | 3131 case "$all_widgets" in *motif* ) |
2907 AC_DEFINE(LWLIB_USES_MOTIF) | 3132 AC_DEFINE(LWLIB_USES_MOTIF) |
2908 AC_DEFINE(NEED_MOTIF) | 3133 AC_DEFINE(NEED_MOTIF) |
2911 esac | 3136 esac |
2912 | 3137 |
2913 test "$with_menubars" = "lucid" && XE_APPEND(xlwmenu.o, lwlib_objs) | 3138 test "$with_menubars" = "lucid" && XE_APPEND(xlwmenu.o, lwlib_objs) |
2914 test "$with_menubars" = "motif" && XE_APPEND(xlwmenu.o, lwlib_objs) | 3139 test "$with_menubars" = "motif" && XE_APPEND(xlwmenu.o, lwlib_objs) |
2915 test "$with_scrollbars" = "lucid" && XE_APPEND(xlwscrollbar.o, lwlib_objs) | 3140 test "$with_scrollbars" = "lucid" && XE_APPEND(xlwscrollbar.o, lwlib_objs) |
3141 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \ | |
3142 XE_APPEND(xlwtabs.o xlwgcs.o, lwlib_objs) | |
3143 case "$with_widgets" in athena* ) | |
3144 XE_APPEND(xlwradio.o xlwcheckbox.o xlwgauge.o, lwlib_objs);; | |
3145 esac | |
2916 case "$all_widgets" in *lucid* ) | 3146 case "$all_widgets" in *lucid* ) |
2917 AC_DEFINE(NEED_LUCID) | 3147 AC_DEFINE(NEED_LUCID) |
2918 XE_APPEND(lwlib-Xlw.o, lwlib_objs) ;; | 3148 XE_APPEND(lwlib-Xlw.o, lwlib_objs) ;; |
2919 esac | 3149 esac |
2920 | 3150 |
2921 AC_SUBST(lwlib_objs) | 3151 AC_SUBST(lwlib_objs) |
2922 | 3152 |
2923 case "$with_scrollbars" in athena* ) AC_DEFINE(LWLIB_SCROLLBARS_ATHENA);; esac | 3153 test "$with_scrollbars" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA) |
2924 case "$with_dialogs" in athena* ) AC_DEFINE(LWLIB_DIALOGS_ATHENA) ;; esac | 3154 test "$with_dialogs" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA) |
2925 test "$with_scrollbars" = "athena3d" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA3D) | 3155 |
2926 test "$with_dialogs" = "athena3d" && AC_DEFINE(LWLIB_DIALOGS_ATHENA3D) | 3156 if test "$athena_3d" = "yes"; then |
3157 test "$with_scrollbars" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA3D) | |
3158 test "$with_dialogs" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA3D) | |
3159 fi | |
3160 | |
3161 case "$with_widgets" in athena* ) AC_DEFINE(LWLIB_WIDGETS_ATHENA);; esac | |
3162 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \ | |
3163 AC_DEFINE(LWLIB_TABS_LUCID) | |
2927 | 3164 |
2928 test "$with_menubars" != "no" && AC_DEFINE(HAVE_MENUBARS) | 3165 test "$with_menubars" != "no" && AC_DEFINE(HAVE_MENUBARS) |
2929 test "$with_scrollbars" != "no" && AC_DEFINE(HAVE_SCROLLBARS) | 3166 test "$with_scrollbars" != "no" && AC_DEFINE(HAVE_SCROLLBARS) |
2930 test "$with_dialogs" != "no" && AC_DEFINE(HAVE_DIALOGS) | 3167 test "$with_dialogs" != "no" && AC_DEFINE(HAVE_DIALOGS) |
2931 test "$with_toolbars" != "no" && AC_DEFINE(HAVE_TOOLBARS) | 3168 test "$with_toolbars" != "no" && AC_DEFINE(HAVE_TOOLBARS) |
3169 test "$with_widgets" != "no" && AC_DEFINE(HAVE_WIDGETS) | |
2932 | 3170 |
2933 test "$with_menubars" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID) | 3171 test "$with_menubars" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID) |
2934 test "$with_scrollbars" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID) | 3172 test "$with_scrollbars" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID) |
2935 | 3173 |
2936 test "$with_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF) | 3174 test "$with_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF) |
2937 test "$with_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) | 3175 test "$with_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) |
2938 test "$with_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF) | 3176 test "$with_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF) |
2939 | 3177 test "$with_widgets" = "motif" && AC_DEFINE(LWLIB_WIDGETS_MOTIF) |
2940 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar.o) | 3178 |
2941 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar.o) | 3179 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar.o) |
2942 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog.o) | 3180 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar.o) |
2943 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar.o) | 3181 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog.o) |
3182 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar.o) | |
2944 | 3183 |
2945 if test "$with_x11" = "yes"; then | 3184 if test "$with_x11" = "yes"; then |
2946 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-x.o) | 3185 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-x.o) |
2947 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-x.o) | 3186 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-x.o) |
2948 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-x.o) | 3187 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-x.o) |
2949 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-x.o) | 3188 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-x.o) |
2950 test "$all_widgets" != "no no no no" && XE_ADD_OBJS(gui-x.o) | 3189 test "$all_widgets" != "no no no no no" && XE_ADD_OBJS(gui-x.o) |
2951 else | 3190 fi |
2952 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then | |
2953 echo "Attempt to Build NAS sound without X" | |
2954 echo "Please remove NAS configuration or build with X" | |
2955 exit 1 | |
2956 fi | |
2957 fi | |
2958 | |
2959 test "$use_minimal_tagbits" = "yes" && AC_DEFINE(USE_MINIMAL_TAGBITS) | |
2960 test "$use_indexed_lrecord_implementation" = "yes" && \ | |
2961 AC_DEFINE(USE_INDEXED_LRECORD_IMPLEMENTATION) | |
2962 | 3191 |
2963 dnl ---------------------- | 3192 dnl ---------------------- |
2964 dnl Mule-dependent options | 3193 dnl Mule-dependent options |
2965 dnl ---------------------- | 3194 dnl ---------------------- |
2966 | 3195 |
2981 | 3210 |
2982 if test "$with_mule" = "yes" ; then | 3211 if test "$with_mule" = "yes" ; then |
2983 AC_CHECKING(for Mule-related features) | 3212 AC_CHECKING(for Mule-related features) |
2984 AC_DEFINE(MULE) | 3213 AC_DEFINE(MULE) |
2985 AC_DEFINE(FILE_CODING) | 3214 AC_DEFINE(FILE_CODING) |
2986 XE_ADD_OBJS(mule.o mule-ccl.o mule-charset.o mule-coding.o file-coding.o) | 3215 XE_ADD_OBJS(mule.o mule-ccl.o mule-charset.o file-coding.o) |
2987 | 3216 |
2988 dnl Use -lintl to get internationalized strerror for Mule | 3217 dnl Use -lintl to get internationalized strerror for Mule |
2989 AC_CHECK_HEADERS(libintl.h) | 3218 AC_CHECK_HEADERS(libintl.h) |
2990 AC_CHECK_LIB(intl, strerror) | 3219 AC_CHECK_LIB(intl, strerror) |
2991 | 3220 |
3097 dnl AIX needs the following library for use with Motif | 3326 dnl AIX needs the following library for use with Motif |
3098 AC_CHECK_LIB(i18n, layout_object_getvalue, [XE_PREPEND(-li18n, libs_x)]) | 3327 AC_CHECK_LIB(i18n, layout_object_getvalue, [XE_PREPEND(-li18n, libs_x)]) |
3099 XE_COMPUTE_RUNPATH() | 3328 XE_COMPUTE_RUNPATH() |
3100 fi | 3329 fi |
3101 | 3330 |
3102 AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf) | 3331 AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask) |
3103 | 3332 |
3104 dnl realpath is buggy on linux, decosf and aix4 | 3333 dnl Use our own realpath always. |
3105 | 3334 XE_ADD_OBJS(realpath.o) |
3106 dnl The realpath() in linux libc (4.6.27) sometimes fails with ELOOP. | 3335 |
3107 dnl The realpath in ELF linux libc's is O.K. | 3336 dnl Check whether the system provides getloadavg (Solaris 7 has it) |
3108 dnl For example, call realpath on a file thirty-five or so directories deep | 3337 AC_CHECK_FUNCS(getloadavg) |
3109 dnl and you get ELOOP even if no symlinks at all are involved. | 3338 |
3110 dnl Reports as of 11/1997 indicate BSDi has problems too. | 3339 if test "$ac_cv_func_getloadavg" != "yes" |
3111 dnl The realpath() in UnixWare2.1.3 could not get any pathname fragment in error condition. | 3340 then |
3112 case "$opsys" in | 3341 XE_ADD_OBJS(getloadavg.o) |
3113 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) XE_ADD_OBJS(realpath.o) ;; | 3342 |
3114 * ) | 3343 dnl Used by getloadavg() - does not require root priveleges |
3115 case "$canonical" in | 3344 AC_CHECK_LIB(kstat, kstat_open) |
3116 *-*-sysv4.2uw2* ) XE_ADD_OBJS(realpath.o) ;; | 3345 |
3117 * ) AC_CHECK_FUNCS(realpath) | 3346 dnl Another way to get the load average |
3118 test "$ac_cv_func_realpath" != "yes" && XE_ADD_OBJS(realpath.o) ;; | 3347 AC_CHECK_LIB(kvm, kvm_read) |
3119 esac ;; | 3348 fi |
3120 esac | |
3121 | 3349 |
3122 dnl If netdb.h does not declare h_errno, we must declare it by hand. | 3350 dnl If netdb.h does not declare h_errno, we must declare it by hand. |
3123 AC_MSG_CHECKING(whether netdb declares h_errno) | 3351 AC_MSG_CHECKING(whether netdb declares h_errno) |
3124 AC_TRY_LINK([#include <netdb.h>], | 3352 AC_TRY_LINK([#include <netdb.h>], |
3125 [return h_errno;], | 3353 [return h_errno;], |
3195 #endif | 3423 #endif |
3196 #endif | 3424 #endif |
3197 ], | 3425 ], |
3198 [ | 3426 [ |
3199 struct timeval time; | 3427 struct timeval time; |
3200 struct timezone dummy; | 3428 gettimeofday (&time, 0); |
3201 gettimeofday (&time, &dummy); | |
3202 ], | 3429 ], |
3203 [AC_MSG_RESULT(two)], | 3430 [AC_MSG_RESULT(two)], |
3204 [AC_MSG_RESULT(one) | 3431 [AC_MSG_RESULT(one) |
3205 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)]) | 3432 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)]) |
3206 fi | 3433 fi |
3270 return 1; | 3497 return 1; |
3271 }], have_mmap=yes, have_mmap=no) ;; | 3498 }], have_mmap=yes, have_mmap=no) ;; |
3272 esac | 3499 esac |
3273 AC_MSG_RESULT($have_mmap) | 3500 AC_MSG_RESULT($have_mmap) |
3274 test "$have_mmap" = "yes" && AC_DEFINE(HAVE_MMAP) | 3501 test "$have_mmap" = "yes" && AC_DEFINE(HAVE_MMAP) |
3275 AC_FUNC_MMAP | |
3276 | 3502 |
3277 dnl rel_alloc requires either GNU malloc or system malloc with mmap | 3503 dnl rel_alloc requires either GNU malloc or system malloc with mmap |
3278 dnl We only turn rel_alloc on by default if mmap is available. | 3504 dnl We only turn rel_alloc on by default if mmap is available. |
3279 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no | 3505 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no |
3280 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes | 3506 if test "$rel_alloc $have_mmap" = "default yes"; then |
3507 if test "$doug_lea_malloc" = "yes"; then | |
3508 dnl Check if malloc() calls mmap(), making rel_alloc pointless. | |
3509 AC_MSG_CHECKING(for M_MMAP_THRESHOLD) | |
3510 AC_TRY_COMPILE([#include <malloc.h>],[ | |
3511 #ifndef M_MMAP_THRESHOLD | |
3512 #error No M_MMAP_THRESHOLD :-( | |
3513 !@+$%^&*_)(_ - unlikely to compile... | |
3514 #endif | |
3515 ], [rel_alloc=no; AC_MSG_RESULT(yes);], [rel_alloc=yes; AC_MSG_RESULT(no);]) | |
3516 else | |
3517 rel_alloc=yes | |
3518 fi | |
3519 fi | |
3281 test "$rel_alloc" = "yes" && AC_DEFINE(REL_ALLOC) | 3520 test "$rel_alloc" = "yes" && AC_DEFINE(REL_ALLOC) |
3282 | 3521 |
3283 dnl Check for terminal I/O variants | 3522 dnl Check for terminal I/O variants |
3284 dnl TERMIOS systems may have termio.h, but not vice-versa, I think. | 3523 dnl TERMIOS systems may have termio.h, but not vice-versa, I think. |
3285 AC_CHECK_HEADER(termios.h, | 3524 AC_CHECK_HEADER(termios.h, |
3327 | 3566 |
3328 dnl Check for sound of various sorts. | 3567 dnl Check for sound of various sorts. |
3329 | 3568 |
3330 dnl Autodetect native sound | 3569 dnl Autodetect native sound |
3331 AC_CHECKING("for sound support") | 3570 AC_CHECKING("for sound support") |
3332 case "$with_sound" in | |
3333 native | both ) with_native_sound=yes;; | |
3334 nas | no ) with_native_sound=no;; | |
3335 esac | |
3336 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes | 3571 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes |
3337 | 3572 |
3338 if test "$with_native_sound" != "no"; then | 3573 if test "$with_native_sound" != "no"; then |
3339 dnl Maybe sound is already on include path... | 3574 dnl Maybe sound is already on include path... |
3340 if test -n "$native_sound_lib"; then | 3575 if test -n "$native_sound_lib"; then |
3388 dnl Check for Linux/BSD native sound | 3623 dnl Check for Linux/BSD native sound |
3389 if test -z "$sound_found"; then | 3624 if test -z "$sound_found"; then |
3390 for dir in "machine" "sys" "linux"; do | 3625 for dir in "machine" "sys" "linux"; do |
3391 AC_CHECK_HEADER(${dir}/soundcard.h, | 3626 AC_CHECK_HEADER(${dir}/soundcard.h, |
3392 sound_found=yes | 3627 sound_found=yes |
3628 need_miscplay=yes | |
3393 XE_ADD_OBJS(linuxplay.o) | 3629 XE_ADD_OBJS(linuxplay.o) |
3394 [AC_DEFINE_UNQUOTED(SOUNDCARD_H_PATH, "${dir}/soundcard.h")] | 3630 [AC_DEFINE_UNQUOTED(SOUNDCARD_H_PATH, "${dir}/soundcard.h")] |
3395 break) | 3631 break) |
3396 done | 3632 done |
3397 fi | 3633 fi |
3398 | 3634 |
3399 test "$sound_found" = "yes" && with_native_sound=yes | 3635 test "$sound_found" = "yes" && with_native_sound=yes |
3400 fi | 3636 fi |
3401 | 3637 |
3402 if test -z "$with_sound"; then | |
3403 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then | |
3404 with_sound=native | |
3405 fi | |
3406 fi | |
3407 | |
3408 if test "$with_native_sound" = "yes"; then | 3638 if test "$with_native_sound" = "yes"; then |
3409 AC_DEFINE(HAVE_NATIVE_SOUND) | 3639 AC_DEFINE(HAVE_NATIVE_SOUND) |
3410 test -n "$native_sound_lib" && XE_PREPEND($native_sound_lib, LIBS) | 3640 test -n "$native_sound_lib" && XE_PREPEND($native_sound_lib, LIBS) |
3411 fi | 3641 fi |
3412 | 3642 |
3413 case "$with_sound" in both | nas ) | 3643 dnl NAS Sound support |
3414 AC_DEFINE(HAVE_NAS_SOUND) | 3644 if test "$with_nas_sound" != "no"; then |
3415 XE_ADD_OBJS(nas.o) | 3645 AC_CHECK_HEADER(audio/audiolib.h, [ |
3416 XE_PREPEND(-laudio, libs_x) | 3646 AC_CHECK_LIB(audio, AuOpenServer, have_nas_sound=yes)]) |
3417 dnl If the nas library does not contain the error jump point, | 3647 if test "$have_nas_sound" = "yes"; then |
3418 dnl then we force safer behavior. | 3648 with_nas_sound=yes |
3419 AC_EGREP_HEADER(AuXtErrorJump,audio/Xtutil.h,,[AC_DEFINE(NAS_NO_ERROR_JUMP)]) | 3649 AC_DEFINE(HAVE_NAS_SOUND) |
3420 esac | 3650 XE_ADD_OBJS(nas.o) |
3651 XE_PREPEND(-laudio, libs_x) | |
3652 dnl If the nas library does not contain the error jump point, | |
3653 dnl then we force safer behavior. | |
3654 AC_EGREP_HEADER(AuXtErrorJump,audio/Xtutil.h,,[old_nas=yes; AC_DEFINE(NAS_NO_ERROR_JUMP)]) | |
3655 else | |
3656 test "$with_nas_sound" = "yes" && \ | |
3657 XE_DIE("Required NAS sound support cannot be provided.") | |
3658 with_nas_sound=no | |
3659 fi | |
3660 fi | |
3661 | |
3662 dnl ESD Sound support | |
3663 if test "$with_esd_sound" != "no"; then | |
3664 AC_CHECK_PROG(have_esd_config, esd-config, yes, no) | |
3665 if test "$have_esd_config" = "yes"; then | |
3666 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" | |
3667 XE_APPEND(`esd-config --cflags`, c_switch_site) | |
3668 XE_PREPEND(`esd-config --libs`, LIBS) | |
3669 AC_CHECK_FUNC(esd_play_stream, | |
3670 have_esd_sound=yes, | |
3671 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS") | |
3672 fi | |
3673 | |
3674 if test "$have_esd_sound" = "yes"; then | |
3675 with_esd_sound=yes | |
3676 need_miscplay=yes | |
3677 XE_ADD_OBJS(esd.o) | |
3678 AC_DEFINE(HAVE_ESD_SOUND) | |
3679 else | |
3680 test "$with_esd_sound" = "yes" && \ | |
3681 XE_DIE("Required ESD sound support cannot be provided.") | |
3682 with_esd_sound=no | |
3683 fi | |
3684 fi | |
3685 | |
3686 test "$need_miscplay" = "yes" && XE_ADD_OBJS(miscplay.o) | |
3421 | 3687 |
3422 dnl --------------------- | 3688 dnl --------------------- |
3423 dnl TTY-dependent options | 3689 dnl TTY-dependent options |
3424 dnl --------------------- | 3690 dnl --------------------- |
3425 | 3691 |
3506 dnl Database support | 3772 dnl Database support |
3507 dnl We do not necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support. | 3773 dnl We do not necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support. |
3508 dnl On FreeBSD, both DB and DBM are part of libc. | 3774 dnl On FreeBSD, both DB and DBM are part of libc. |
3509 dnl By default, we check for DBM support in libgdbm, then libc, then libdbm. | 3775 dnl By default, we check for DBM support in libgdbm, then libc, then libdbm. |
3510 | 3776 |
3511 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \ | 3777 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ |
3512 != "no no no" && AC_CHECKING(for database support) | 3778 != "no no no" && AC_CHECKING(for database support) |
3513 | 3779 |
3514 dnl Check for ndbm.h, required for either kind of DBM support. | 3780 dnl Check for ndbm.h, required for either kind of DBM support. |
3515 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then | 3781 if test "$with_database_gdbm $with_database_dbm" != "no no"; then |
3516 AC_CHECK_HEADER(ndbm.h, [:], [ | 3782 AC_CHECK_HEADER(ndbm.h, [:], [ |
3517 test "$with_database_gnudbm" = "yes" -o \ | 3783 test "$with_database_gdbm" = "yes" -o \ |
3518 "$with_database_dbm" = "yes" && \ | 3784 "$with_database_dbm" = "yes" && \ |
3519 XE_DIE("Required DBM support cannot be provided.") | 3785 XE_DIE("Required DBM support cannot be provided.") |
3520 with_database_gnudbm=no with_database_dbm=no]) | 3786 with_database_gdbm=no with_database_dbm=no]) |
3521 fi | 3787 fi |
3522 | 3788 |
3523 dnl Check for DBM support in libgdbm. | 3789 dnl Check for DBM support in libgdbm. |
3524 if test "$with_database_gnudbm" != "no"; then | 3790 if test "$with_database_gdbm" != "no"; then |
3525 AC_CHECK_LIB(gdbm, dbm_open, [ | 3791 AC_CHECK_LIB(gdbm, dbm_open, [ |
3526 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm], [ | 3792 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm], [ |
3527 if test "$with_database_gnudbm" = "yes"; then | 3793 if test "$with_database_gdbm" = "yes"; then |
3528 XE_DIE("Required GNU DBM support cannot be provided.") | 3794 XE_DIE("Required GNU DBM support cannot be provided.") |
3529 fi | 3795 fi |
3530 with_database_gnudbm=no]) | 3796 with_database_gdbm=no]) |
3531 fi | 3797 fi |
3532 | 3798 |
3533 dnl Check for DBM support in libc and libdbm. | 3799 dnl Check for DBM support in libc and libdbm. |
3534 if test "$with_database_dbm" != "no"; then | 3800 if test "$with_database_dbm" != "no"; then |
3535 AC_CHECK_FUNC(dbm_open, [with_database_dbm=yes libdbm=], [ | 3801 AC_CHECK_FUNC(dbm_open, [with_database_dbm=yes libdbm=], [ |
3539 with_database_dbm=no])]) | 3805 with_database_dbm=no])]) |
3540 fi | 3806 fi |
3541 | 3807 |
3542 dnl Tell make about the DBM support we detected. | 3808 dnl Tell make about the DBM support we detected. |
3543 test -n "$libdbm" && XE_PREPEND("$libdbm", LIBS) | 3809 test -n "$libdbm" && XE_PREPEND("$libdbm", LIBS) |
3544 test "$with_database_gnudbm" = "yes" -o \ | 3810 test "$with_database_gdbm" = "yes" -o \ |
3545 "$with_database_dbm" = "yes" && \ | 3811 "$with_database_dbm" = "yes" && \ |
3546 AC_DEFINE(HAVE_DBM) | 3812 AC_DEFINE(HAVE_DBM) |
3547 | 3813 |
3548 dnl Check for Berkeley DB. | 3814 dnl Check for Berkeley DB. |
3549 if test "$with_database_berkdb" != "no"; then | 3815 if test "$with_database_berkdb" != "no"; then |
3550 AC_MSG_CHECKING(for Berkeley db.h) | 3816 AC_MSG_CHECKING(for Berkeley db.h) |
3551 for path in "db/db.h" "db.h"; do | 3817 for path in "db/db.h" "db.h"; do |
3552 AC_TRY_COMPILE([#ifdef HAVE_INTTYPES_H | 3818 AC_TRY_COMPILE([ |
3819 #include <stdlib.h> | |
3820 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) | |
3821 #ifdef HAVE_INTTYPES_H | |
3553 #define __BIT_TYPES_DEFINED__ | 3822 #define __BIT_TYPES_DEFINED__ |
3554 #include <inttypes.h> | 3823 #include <inttypes.h> |
3555 typedef uint8_t u_int8_t; | 3824 typedef uint8_t u_int8_t; |
3556 typedef uint16_t u_int16_t; | 3825 typedef uint16_t u_int16_t; |
3557 typedef uint32_t u_int32_t; | 3826 typedef uint32_t u_int32_t; |
3558 #ifdef WE_DONT_NEED_QUADS | 3827 #ifdef WE_DONT_NEED_QUADS |
3559 typedef uint64_t u_int64_t; | 3828 typedef uint64_t u_int64_t; |
3829 #endif | |
3560 #endif | 3830 #endif |
3561 #endif | 3831 #endif |
3562 #include <$path> | 3832 #include <$path> |
3563 ],[], db_h_path="$path"; break) | 3833 ],[], db_h_path="$path"; break) |
3564 done | 3834 done |
3585 test "$need_libdb" = "yes" && XE_PREPEND(-ldb, LIBS) | 3855 test "$need_libdb" = "yes" && XE_PREPEND(-ldb, LIBS) |
3586 else with_database_berkdb=no | 3856 else with_database_berkdb=no |
3587 fi | 3857 fi |
3588 fi | 3858 fi |
3589 | 3859 |
3590 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \ | 3860 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ |
3591 != "no no no"; then | 3861 != "no no no"; then |
3592 AC_DEFINE(HAVE_DATABASE) | 3862 AC_DEFINE(HAVE_DATABASE) |
3593 XE_ADD_OBJS(database.o) | 3863 XE_ADD_OBJS(database.o) |
3594 fi | 3864 fi |
3595 | 3865 |
3604 AC_DEFINE(USAGE_TRACKING) | 3874 AC_DEFINE(USAGE_TRACKING) |
3605 XE_PREPEND(-Bstatic -lut -Bdynamic, LIBS) | 3875 XE_PREPEND(-Bstatic -lut -Bdynamic, LIBS) |
3606 fi | 3876 fi |
3607 | 3877 |
3608 dnl autodetect dll support | 3878 dnl autodetect dll support |
3609 AC_CHECK_HEADERS(dlfcn.h, [have_dlfcn=yes | 3879 if test "$with_modules" != "no"; then |
3610 AC_DEFINE(HAVE_DLFCN_H)]) | 3880 AC_CHECKING(for module support) |
3611 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { AC_CHECK_LIB(dl, dlopen, [ AC_DEFINE(HAVE_DLOPEN) DLL_LIB=dl; with_shlib=yes]) } | 3881 |
3612 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { AC_CHECK_LIB(c, _dlopen, [ AC_DEFINE(HAVE_DLOPEN) DLL_LIB=; with_shlib=yes]) } | 3882 dnl Find headers and libraries |
3613 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { AC_CHECK_LIB(c, dlopen, [ AC_DEFINE(HAVE_DLOPEN) DLL_LIB=; with_shlib=yes]) } | 3883 AC_CHECK_HEADER(dlfcn.h, [ |
3614 test -z "$with_shlib" && { AC_CHECK_LIB(dld, shl_load, [ AC_DEFINE(HAVE_SHL_LOAD) DLL_LIB=dld; with_shlib=yes]) } | 3884 AC_CHECK_LIB(dl, dlopen, [ have_dl=yes libdl=dl], [ |
3615 test -z "$with_shlib" && { AC_CHECK_LIB(dld, dld_init, [ AC_DEFINE(HAVE_DLD_INIT) DLL_LIB=dld; with_shlib=yes]) } | 3885 AC_CHECK_LIB(c, dlopen, [ have_dl=yes ])])]) |
3616 if test "$with_shlib" = "yes"; then | 3886 if test -n "$have_dl"; then |
3617 XE_SHLIB_STUFF | 3887 AC_DEFINE(HAVE_DLOPEN) |
3888 else | |
3889 AC_CHECK_LIB(dld, shl_load, [ | |
3890 libdl=dld have_dl=yes; | |
3891 AC_DEFINE(HAVE_SHL_LOAD)], [ | |
3892 AC_CHECK_LIB(dld, dld_init, [ | |
3893 libdl=dld have_dl=yes; | |
3894 AC_DEFINE(HAVE_DLD_INIT)])]) | |
3895 fi | |
3896 | |
3897 if test -n "$have_dl"; then | |
3898 dnl XE_SHLIB_STUFF (in aclocal.m4) defines $can_build_shared | |
3899 XE_SHLIB_STUFF | |
3900 fi | |
3901 | |
3618 if test "$can_build_shared" = "yes"; then | 3902 if test "$can_build_shared" = "yes"; then |
3619 AC_DEFINE(HAVE_SHLIB) | 3903 AC_DEFINE(HAVE_SHLIB) |
3620 XE_ADD_OBJS(sysdll.o) | 3904 XE_ADD_OBJS(sysdll.o emodules.o) |
3621 XE_ADD_OBJS(emodules.o) | |
3622 XE_APPEND(src, INSTALL_ARCH_DEP_SUBDIR) | 3905 XE_APPEND(src, INSTALL_ARCH_DEP_SUBDIR) |
3623 test ! -z "$DLL_LIB" && XE_PREPEND(-l${DLL_LIB}, LIBS) | 3906 test -n "$libdl" && XE_PREPEND(-l${libdl}, LIBS) |
3624 AC_CHECK_FUNCS(dlerror _dlerror) | 3907 AC_CHECK_FUNCS(dlerror _dlerror) |
3908 with_modules=yes | |
3625 else | 3909 else |
3626 AC_MSG_WARN(disabling shared library support) | 3910 if test "$with_modules" = "yes"; then |
3627 with_shlib=no | 3911 XE_DIE("Required module support cannot be provided.") |
3912 else | |
3913 AC_MSG_WARN("Module support cannot be provided.") | |
3914 fi | |
3915 with_modules=no | |
3628 fi | 3916 fi |
3629 fi | 3917 fi |
3630 | 3918 |
3631 dnl Unfortunately, just because we can link doesn't mean we can run. | 3919 dnl Unfortunately, just because we can link doesn't mean we can run. |
3632 dnl One of the above link tests may have succeeded but caused resulting | 3920 dnl One of the above link tests may have succeeded but caused resulting |
3647 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify" | 3935 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify" |
3648 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed" | 3936 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed" |
3649 echo "*** PANIC *** on your system. Don't do that." | 3937 echo "*** PANIC *** on your system. Don't do that." |
3650 exit 1]) | 3938 exit 1]) |
3651 | 3939 |
3652 dnl Process support (hardcoded) | 3940 dnl Process support |
3653 dnl every system that supports this runs configure, the others don't | 3941 if test "$win32_processes" = "yes"; then |
3654 | 3942 XE_ADD_OBJS(process-nt.o) |
3655 dnl We're not ready for this yet. | 3943 else |
3656 AC_DEFINE(HAVE_UNIX_PROCESSES) | 3944 AC_DEFINE(HAVE_UNIX_PROCESSES) |
3657 XE_ADD_OBJS(process-unix.o) | 3945 XE_ADD_OBJS(process-unix.o) |
3946 fi | |
3658 | 3947 |
3659 dnl -------------------------------- | 3948 dnl -------------------------------- |
3660 dnl Compute SUBST-itutable variables | 3949 dnl Compute SUBST-itutable variables |
3661 dnl -------------------------------- | 3950 dnl -------------------------------- |
3662 | 3951 |
3709 ld_switch_general ld_switch_window_system ld_switch_all | 3998 ld_switch_general ld_switch_window_system ld_switch_all |
3710 ld_libs_general ld_libs_window_system ld_libs_all) | 3999 ld_libs_general ld_libs_window_system ld_libs_all) |
3711 echo "" | 4000 echo "" |
3712 fi | 4001 fi |
3713 | 4002 |
3714 dnl Create some auxiliary files | 4003 dnl ---------------------------------------------- |
3715 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then | 4004 dnl Create some auxiliary files for developers. |
3716 echo "creating src/gdbinit"; echo "" | 4005 dnl ---------------------------------------------- |
3717 echo "source $srcdir/src/gdbinit" > src/gdbinit | 4006 |
4007 dnl Create a .gdbinit useful for debugging XEmacs | |
4008 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then | |
4009 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit" | |
4010 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit" | |
4011 fi | |
4012 | |
4013 dnl Create a .dbxrc useful for debugging XEmacs | |
4014 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then | |
4015 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc" | |
4016 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc" | |
4017 fi | |
4018 | |
4019 dnl Create a useful TAGS file | |
4020 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then | |
4021 test "$extra_verbose" = "yes" && echo "creating TAGS" | |
4022 echo " | |
4023 $srcdir/TAGS,include" > "TAGS" | |
3718 fi | 4024 fi |
3719 | 4025 |
3720 dnl Create top level .sbinit for Sun compilers | 4026 dnl Create top level .sbinit for Sun compilers |
3721 if test "$__SUNPRO_C" = "yes"; then | 4027 if test "$__SUNPRO_C" = "yes"; then |
3722 echo "creating .sbinit"; echo "" | 4028 test "$extra_verbose" = "yes" && echo "creating .sbinit" |
3723 ( echo "# For use with Sun WorkShop's Source browser." | 4029 ( echo "# For use with Sun WorkShop's Source browser." |
3724 echo "# See sbquery(1) and sbinit(4) for more information" | 4030 echo "# See sbquery(1) and sbinit(4) for more information" |
3725 for dir in $MAKE_SUBDIR; do echo "import $dir"; done | 4031 for dir in $MAKE_SUBDIR; do echo "import $dir"; done |
3726 ) > .sbinit | 4032 ) > .sbinit |
3727 fi | 4033 fi |
3738 | 4044 |
3739 AC_SUBST(PROGNAME) | 4045 AC_SUBST(PROGNAME) |
3740 AC_SUBST(version) | 4046 AC_SUBST(version) |
3741 AC_SUBST(configuration) | 4047 AC_SUBST(configuration) |
3742 AC_SUBST(canonical) | 4048 AC_SUBST(canonical) |
4049 AC_SUBST(inststaticdir) | |
4050 AC_SUBST(instvardir) | |
3743 AC_SUBST(srcdir) | 4051 AC_SUBST(srcdir) |
3744 AC_SUBST(bindir) | 4052 AC_SUBST(bindir) |
3745 AC_SUBST(datadir) | 4053 AC_SUBST(datadir) |
3746 AC_SUBST(pkgdir) | 4054 AC_SUBST(pkgdir) |
3747 AC_SUBST(statedir) | 4055 AC_SUBST(statedir) |
3748 AC_SUBST(libdir) | 4056 AC_SUBST(libdir) |
3749 AC_SUBST(mandir) | 4057 AC_SUBST(mandir) |
3750 | 4058 |
3751 AC_SUBST(prefix) | 4059 AC_SUBST(prefix) |
4060 AC_SUBST(PREFIX_USER_DEFINED) | |
3752 dnl Yo, Stephen Bourne! I want to marry you! | 4061 dnl Yo, Stephen Bourne! I want to marry you! |
3753 PREFIX=$prefix | 4062 PREFIX=$prefix |
3754 while true; do | 4063 while true; do |
3755 case "$PREFIX" in | 4064 case "$PREFIX" in |
3756 *\$* ) eval "PREFIX=$PREFIX" ;; | 4065 *\$* ) eval "PREFIX=$PREFIX" ;; |
3758 esac | 4067 esac |
3759 done | 4068 done |
3760 AC_SUBST(PREFIX) | 4069 AC_SUBST(PREFIX) |
3761 | 4070 |
3762 AC_SUBST(exec_prefix) | 4071 AC_SUBST(exec_prefix) |
4072 AC_SUBST(EXEC_PREFIX_USER_DEFINED) | |
3763 EXEC_PREFIX=$exec_prefix | 4073 EXEC_PREFIX=$exec_prefix |
3764 while true; do | 4074 while true; do |
3765 case "$EXEC_PREFIX" in | 4075 case "$EXEC_PREFIX" in |
3766 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;; | 4076 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;; |
3767 *) break ;; | 4077 *) break ;; |
3865 *\$* ) eval "LOCKDIR=$LOCKDIR" ;; | 4175 *\$* ) eval "LOCKDIR=$LOCKDIR" ;; |
3866 *) break ;; | 4176 *) break ;; |
3867 esac | 4177 esac |
3868 done | 4178 done |
3869 AC_SUBST(LOCKDIR) | 4179 AC_SUBST(LOCKDIR) |
4180 | |
4181 AC_SUBST(docdir) | |
4182 AC_SUBST(DOCDIR_USER_DEFINED) | |
4183 DOCDIR=$docdir | |
4184 while true; do | |
4185 case "$DOCDIR" in | |
4186 *\$* ) eval "DOCDIR=$DOCDIR" ;; | |
4187 *) break ;; | |
4188 esac | |
4189 done | |
4190 AC_SUBST(DOCDIR) | |
3870 | 4191 |
3871 AC_SUBST(archlibdir) | 4192 AC_SUBST(archlibdir) |
3872 AC_SUBST(ARCHLIBDIR_USER_DEFINED) | 4193 AC_SUBST(ARCHLIBDIR_USER_DEFINED) |
3873 ARCHLIBDIR=$archlibdir | 4194 ARCHLIBDIR=$archlibdir |
3874 while true; do | 4195 while true; do |
3913 dnl Preliminary support for using a different compiler for xemacs itself. | 4234 dnl Preliminary support for using a different compiler for xemacs itself. |
3914 dnl Useful for building XEmacs with a C++ or 64-bit compiler. | 4235 dnl Useful for building XEmacs with a C++ or 64-bit compiler. |
3915 : ${XEMACS_CC:=$CC} | 4236 : ${XEMACS_CC:=$CC} |
3916 AC_SUBST(XEMACS_CC) | 4237 AC_SUBST(XEMACS_CC) |
3917 | 4238 |
4239 dnl The default is yes | |
4240 if test "$with_prefix" = "yes"; then | |
4241 AC_DEFINE(PREFIX_USER_DEFINED) | |
4242 fi | |
3918 | 4243 |
3919 dnl The default is no | 4244 dnl The default is no |
3920 if test "$with_site_lisp" = "no"; then | 4245 if test "$with_site_lisp" = "no"; then |
3921 AC_DEFINE(INHIBIT_SITE_LISP) | 4246 AC_DEFINE(INHIBIT_SITE_LISP) |
3922 fi | 4247 fi |
3924 if test "$with_site_modules" = "no"; then | 4249 if test "$with_site_modules" = "no"; then |
3925 AC_DEFINE(INHIBIT_SITE_MODULES) | 4250 AC_DEFINE(INHIBIT_SITE_MODULES) |
3926 fi | 4251 fi |
3927 | 4252 |
3928 XE_SPACE(ac_configure_args, $ac_configure_args) | 4253 XE_SPACE(ac_configure_args, $ac_configure_args) |
3929 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "$canonical") | 4254 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "$configuration") |
3930 AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "$ac_configure_args") | 4255 AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "$ac_configure_args") |
3931 AC_DEFINE_UNQUOTED(config_machfile, "$machfile") | 4256 AC_DEFINE_UNQUOTED(config_machfile, "$machfile") |
3932 AC_DEFINE_UNQUOTED(config_opsysfile, "$opsysfile") | 4257 AC_DEFINE_UNQUOTED(config_opsysfile, "$opsysfile") |
3933 | 4258 |
3934 dnl Following are deprecated | 4259 dnl Following are deprecated |
3944 dnl autodetected. For things that are autodetected, define them | 4269 dnl autodetected. For things that are autodetected, define them |
3945 dnl at the point where the autodetection occurs or would occur, | 4270 dnl at the point where the autodetection occurs or would occur, |
3946 dnl so that the user gets immediate feedback on the results of the | 4271 dnl so that the user gets immediate feedback on the results of the |
3947 dnl autodetection. | 4272 dnl autodetection. |
3948 | 4273 |
3949 test -n "$puresize" && AC_DEFINE_UNQUOTED(RAW_PURESIZE, $puresize) | |
3950 | |
3951 if test "$GNU_MALLOC" = "yes"; then AC_DEFINE(GNU_MALLOC) | 4274 if test "$GNU_MALLOC" = "yes"; then AC_DEFINE(GNU_MALLOC) |
3952 elif test "$with_system_malloc" = "yes"; then AC_DEFINE(USE_SYSTEM_MALLOC) | 4275 elif test "$with_system_malloc" = "yes"; then AC_DEFINE(USE_SYSTEM_MALLOC) |
3953 elif test "$with_debug_malloc" = "yes"; then AC_DEFINE(USE_DEBUG_MALLOC) | 4276 elif test "$with_debug_malloc" = "yes"; then AC_DEFINE(USE_DEBUG_MALLOC) |
3954 AC_DEFINE(USE_SYSTEM_MALLOC) | 4277 AC_DEFINE(USE_SYSTEM_MALLOC) |
3955 fi | 4278 fi |
3956 test "$with_i18n3" = "yes" && AC_DEFINE(I18N3) | 4279 test "$with_i18n3" = "yes" && AC_DEFINE(I18N3) |
3957 test "$GCC" = "yes" && AC_DEFINE(USE_GCC) | 4280 test "$GCC" = "yes" && AC_DEFINE(USE_GCC) |
3958 test "$external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET) | 4281 test "$external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET) |
3959 test "$no_doc_file" = "yes" && AC_DEFINE(NO_DOC_FILE) | 4282 test "$no_doc_file" = "yes" && AC_DEFINE(NO_DOC_FILE) |
3960 dnl test "$const_is_losing" = "yes" && AC_DEFINE(CONST_IS_LOSING) | |
3961 test "$with_purify" = "yes" && AC_DEFINE(PURIFY) | 4283 test "$with_purify" = "yes" && AC_DEFINE(PURIFY) |
3962 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY) | 4284 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY) |
3963 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP) | 4285 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP) |
3964 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS) | 4286 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS) |
3965 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD) | 4287 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD) |
3966 test "$use_union_type" = "yes" && AC_DEFINE(USE_UNION_TYPE) | 4288 test "$use_union_type" = "yes" && AC_DEFINE(USE_UNION_TYPE) |
4289 test "$pdump" = "yes" && AC_DEFINE(PDUMP) | |
3967 | 4290 |
3968 dnl ------------------------------- | 4291 dnl ------------------------------- |
3969 dnl Report on what we decided to do | 4292 dnl Report on what we decided to do |
3970 dnl ------------------------------- | 4293 dnl ------------------------------- |
3971 | 4294 |
3978 fi | 4301 fi |
3979 echo "" | 4302 echo "" |
3980 echo "$0 $quoted_arguments" | 4303 echo "$0 $quoted_arguments" |
3981 ) > Installation | 4304 ) > Installation |
3982 | 4305 |
3983 xemacs_betaname="" | 4306 if test ! -z ${emacs_beta_version} ; then |
3984 test ! -z "${emacs_beta_version}" && xemacs_betaname="-b${emacs_beta_version}" | 4307 if test -z "${emacs_is_beta}" ; then |
4308 xemacs_betaname=".${emacs_beta_version}" | |
4309 else | |
4310 xemacs_betaname="-b${emacs_beta_version}" | |
4311 fi | |
4312 else | |
4313 xemacs_betaname="" | |
4314 fi | |
3985 | 4315 |
3986 dnl Start stdout redirection to '| tee -a Installation' | 4316 dnl Start stdout redirection to '| tee -a Installation' |
3987 ( | 4317 ( |
3988 echo " | 4318 echo " |
3989 | 4319 |
4011 echo " Additional prefixes: $site_prefixes" | 4341 echo " Additional prefixes: $site_prefixes" |
4012 fi | 4342 fi |
4013 if test -n "$runpath"; then | 4343 if test -n "$runpath"; then |
4014 echo " Runtime library search path: $runpath" | 4344 echo " Runtime library search path: $runpath" |
4015 fi | 4345 fi |
4346 if test "$have_xaw" = "yes"; then | |
4347 echo " Athena library to link: $athena_lib" | |
4348 echo " Athena header include path: $athena_h_path" | |
4349 fi | |
4016 test "$with_dnet" = yes && echo " Compiling in support for DNET." | 4350 test "$with_dnet" = yes && echo " Compiling in support for DNET." |
4017 test "$with_socks" = yes && echo " Compiling in support for SOCKS." | 4351 test "$with_socks" = yes && echo " Compiling in support for SOCKS." |
4018 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." | 4352 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." |
4019 if test "$with_xmu" != yes -a "$with_x11" = yes; then | 4353 if test "$with_xmu" != yes -a "$with_x11" = yes; then |
4020 echo " No Xmu; substituting equivalent routines." | 4354 echo " No Xmu; substituting equivalent routines." |
4048 fi | 4382 fi |
4049 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling." | 4383 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling." |
4050 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling." | 4384 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling." |
4051 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling." | 4385 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling." |
4052 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." | 4386 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." |
4053 case "$with_sound" in | 4387 |
4054 nas ) echo " Compiling in network sound (NAS) support." ;; | 4388 test "$with_native_sound" = yes && echo " Compiling in native sound support." |
4055 native ) echo " Compiling in native sound support." ;; | 4389 test "$with_nas_sound" = yes && echo " Compiling in network sound (NAS) support." |
4056 both ) echo " Compiling in both network and native sound support." ;; | 4390 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously." |
4057 esac | 4391 test "$with_esd_sound" = yes && echo " Compiling in support for Enlightened Sound Daemon (ESD)." |
4058 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously." | |
4059 | 4392 |
4060 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." | 4393 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." |
4061 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." | 4394 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." |
4062 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM." | 4395 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM." |
4063 | 4396 |
4064 test "$with_umich_ldap" = yes && echo " Compiling in support for LDAP (UMich libs)." | 4397 test "$with_ldap" = yes && echo " Compiling in support for LDAP." |
4065 test "$with_ns_ldap" = yes && echo " Compiling in support for LDAP (Netscape SDK)." | |
4066 test "$with_ldap" = yes -a "$with_umich_ldap" = no -a "$with_ns_ldap" = no && echo " Compiling in support for LDAP (Generic)." | |
4067 | 4398 |
4068 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." | 4399 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." |
4069 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." | 4400 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." |
4070 | 4401 |
4071 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." | 4402 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." |
4084 test "$with_cde" = yes && echo " Compiling in support for CDE." | 4415 test "$with_cde" = yes && echo " Compiling in support for CDE." |
4085 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." | 4416 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." |
4086 test "$with_offix" = yes && echo " Compiling in support for OffiX." | 4417 test "$with_offix" = yes && echo " Compiling in support for OffiX." |
4087 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )." | 4418 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )." |
4088 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." | 4419 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." |
4089 test "$with_session" != no && echo " Compiling in support for proper session-management." | 4420 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling." |
4090 case "$with_menubars" in | 4421 case "$with_menubars" in |
4091 lucid ) echo " Using Lucid menubars." ;; | 4422 lucid ) echo " Using Lucid menubars." ;; |
4092 motif ) echo " Using Motif menubars." | 4423 motif ) echo " Using Motif menubars." |
4093 echo " *WARNING* The Motif menubar implementation is currently buggy." | 4424 echo " *WARNING* The Motif menubar implementation is currently buggy." |
4094 echo " We recommend using the Lucid menubar instead." | 4425 echo " We recommend using the Lucid menubar instead." |
4095 echo " Re-run configure with --with-menubars='lucid'." ;; | 4426 echo " Re-run configure with --with-menubars='lucid'." ;; |
4427 msw ) echo " Using MS-Windows menubars." ;; | |
4096 esac | 4428 esac |
4097 case "$with_scrollbars" in | 4429 case "$with_scrollbars" in |
4098 lucid ) echo " Using Lucid scrollbars." ;; | 4430 lucid ) echo " Using Lucid scrollbars." ;; |
4099 motif ) echo " Using Motif scrollbars." ;; | 4431 motif ) echo " Using Motif scrollbars." ;; |
4100 athena ) echo " Using Athena scrollbars." ;; | 4432 athena ) echo " Using Athena scrollbars." ;; |
4101 athena3d ) echo " Using Athena-3d scrollbars." ;; | 4433 msw ) echo " Using MS-Windows scrollbars." ;; |
4434 esac | |
4435 case "$with_widgets" in | |
4436 motif ) echo " Using Motif native widgets." ;; | |
4437 athena ) echo " Using Athena native widgets." ;; | |
4438 msw ) echo " Using MS-Windows native widgets." ;; | |
4102 esac | 4439 esac |
4103 case "$with_dialogs" in | 4440 case "$with_dialogs" in |
4104 motif ) | 4441 motif ) |
4105 echo " Using Motif dialog boxes." | 4442 echo " Using Motif dialog boxes." |
4106 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then | 4443 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then |
4109 echo " Install libXaw and re-run configure with --with-dialogs='athena'." | 4446 echo " Install libXaw and re-run configure with --with-dialogs='athena'." |
4110 echo " Read the PROBLEMS file for more information." | 4447 echo " Read the PROBLEMS file for more information." |
4111 fi; fi | 4448 fi; fi |
4112 ;; | 4449 ;; |
4113 athena ) echo " Using Athena dialog boxes." ;; | 4450 athena ) echo " Using Athena dialog boxes." ;; |
4114 athena3d ) echo " Using Athena-3d dialog boxes." ;; | 4451 msw ) echo " Using MS-Windows dialog boxes." ;; |
4115 esac | 4452 esac |
4116 test "$with_shlib" = "yes" && echo " Compiling in DLL support." | 4453 test "$with_modules" = "yes" && echo " Compiling in dynamic shared object module support." |
4117 test "$with_clash_detection" = yes && \ | 4454 test "$with_clash_detection" = yes && \ |
4118 echo " Clash detection will use \"$lockdir\" for locking files." | 4455 echo " Clash detection will use \"$lockdir\" for locking files." |
4119 echo " movemail will use \"$mail_locking\" for locking mail spool files." | 4456 echo " movemail will use \"$mail_locking\" for locking mail spool files." |
4120 test "$with_pop" = yes && echo " Using POP for mail access." | 4457 test "$with_pop" = yes && echo " Using POP for mail access." |
4121 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication." | 4458 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication." |
4122 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host." | 4459 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host." |
4123 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." | 4460 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." |
4124 test "$use_minimal_tagbits" = yes && echo " Using Lisp_Objects with minimal tagbits." | 4461 test "$pdump" = yes && echo " Using the new portable dumper (wishful thinking)." |
4125 test "$use_indexed_lrecord_implementation" = yes && echo " Using indexed lrecord implementation." | 4462 test "$debug" = yes && echo " Compiling in extra code for debugging." |
4126 test "$debug" = yes && echo " Compiling in extra code for debugging." | 4463 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." |
4127 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage." | |
4128 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." | |
4129 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \ | 4464 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \ |
4130 != "no no no no no"; then | 4465 != "no no no no no"; then |
4131 echo " WARNING: ---------------------------------------------------------" | 4466 echo " WARNING: ---------------------------------------------------------" |
4132 echo " WARNING: Compiling in support for runtime error checking." | 4467 echo " WARNING: Compiling in support for runtime error checking." |
4133 echo " WARNING: XEmacs will run noticeably more slowly as a result." | 4468 echo " WARNING: XEmacs will run noticeably more slowly as a result." |
4136 fi | 4471 fi |
4137 echo "" | 4472 echo "" |
4138 ) | tee -a Installation | 4473 ) | tee -a Installation |
4139 dnl echo "The above configure report is appended to \"Installation\" file." | 4474 dnl echo "The above configure report is appended to \"Installation\" file." |
4140 echo "" | 4475 echo "" |
4141 | |
4142 dnl Generate Installation.el | |
4143 echo '(setq Installation-string "' > Installation.el | |
4144 sed 's/"/\\"/g' Installation >> Installation.el | |
4145 echo '")' >> Installation.el | |
4146 | 4476 |
4147 dnl ----------------------------------- | 4477 dnl ----------------------------------- |
4148 dnl Now generate config.h and Makefiles | 4478 dnl Now generate config.h and Makefiles |
4149 dnl ----------------------------------- | 4479 dnl ----------------------------------- |
4150 dnl This has to be called in order for this variable to get into config.status | 4480 dnl This has to be called in order for this variable to get into config.status |
4159 dnl except ./Makefile from $srcdir/Makefile.in | 4489 dnl except ./Makefile from $srcdir/Makefile.in |
4160 | 4490 |
4161 for file in $internal_makefile_list; do | 4491 for file in $internal_makefile_list; do |
4162 test "$file" = src/Makefile.in && \ | 4492 test "$file" = src/Makefile.in && \ |
4163 file="src/Makefile.in:src/Makefile.in.in:src/depend" | 4493 file="src/Makefile.in:src/Makefile.in.in:src/depend" |
4164 ac_output_files="${ac_output_files+$ac_output_files }$file" | 4494 XE_APPEND($file, ac_output_files) |
4165 done | 4495 done |
4166 ac_output_files="$ac_output_files src/paths.h lib-src/config.values" | 4496 ac_output_files="$ac_output_files src/paths.h lib-src/config.values" |
4167 if test "$with_shlib" = "yes"; then | 4497 test "$with_modules" = "yes" && XE_APPEND(lib-src/ellcc.h, ac_output_files) |
4168 ac_output_files="$ac_output_files lib-src/ellcc.h" | |
4169 fi | |
4170 | 4498 |
4171 AC_OUTPUT($ac_output_files, | 4499 AC_OUTPUT($ac_output_files, |
4172 [for dir in . $MAKE_SUBDIR; do | 4500 [for dir in . $MAKE_SUBDIR; do |
4173 ( | 4501 ( |
4174 cd $dir | 4502 cd $dir |