comparison configure.in @ 177:6075d714658b r20-3b15

Import from CVS: tag r20-3b15
author cvs
date Mon, 13 Aug 2007 09:51:16 +0200
parents 2d532a89d707
children 9ad43877534d
comparison
equal deleted inserted replaced
176:6866abce6aaf 177:6075d714658b
416 --with-x (*) Support the X Window System. 416 --with-x (*) Support the X Window System.
417 --with-x=no Don't support X. 417 --with-x=no Don't support X.
418 --x-includes=DIR Search for X header files in DIR. 418 --x-includes=DIR Search for X header files in DIR.
419 --x-libraries=DIR Search for X libraries in DIR. 419 --x-libraries=DIR Search for X libraries in DIR.
420 --with-toolbars=no Don't compile with any toolbar support. 420 --with-toolbars=no Don't compile with any toolbar support.
421 --with-wm Compile with realized leader window for proper
422 creation of the ApplicationIcon with the
423 WindowMaker windowmanager (SESSION MANAGEMENT).
421 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid 424 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid
422 widgets emulate Motif (mostly) but are faster. 425 widgets emulate Motif (mostly) but are faster.
423 *WARNING* The Motif menubar is currently broken. 426 *WARNING* The Motif menubar is currently broken.
424 --with-scrollbars=TYPE Use TYPE scrollbars 427 --with-scrollbars=TYPE Use TYPE scrollbars
425 (lucid, motif, athena, athena3d, or no). 428 (lucid, motif, athena, athena3d, or no).
506 This is beta level code. 509 This is beta level code.
507 --with-wnn6 (*) Compile with support for WNN version 6 510 --with-wnn6 (*) Compile with support for WNN version 6
508 This is alpha level code. 511 This is alpha level code.
509 --with-i18n3 Compile with I18N level 3 (support for message 512 --with-i18n3 Compile with I18N level 3 (support for message
510 translation). This doesn't currently work. 513 translation). This doesn't currently work.
514 --with-xfs Compile with XFontSet support for bilingual menubar.
515 Can't use this option with --with-xim=motif or xlib.
516 And should have --with-menubars=lucid.
511 517
512 518
513 Debugging options: 519 Debugging options:
514 520
515 --debug Compile with support for debugging XEmacs. 521 --debug Compile with support for debugging XEmacs.
540 is system-dependent). 546 is system-dependent).
541 --with-clash-detection Use lock files to detect multiple edits of the same file. 547 --with-clash-detection Use lock files to detect multiple edits of the same file.
542 The default is to not do clash detection. 548 The default is to not do clash detection.
543 --use-system-malloc Force use of the system malloc, rather than GNU 549 --use-system-malloc Force use of the system malloc, rather than GNU
544 malloc. 550 malloc.
551 --use-debug-malloc Use the debugging malloc package.
545 552
546 You may also specify any of the \`path' variables found in 553 You may also specify any of the \`path' variables found in
547 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and 554 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and
548 so on. Note that we recommend against explicitly setting any of these 555 so on. Note that we recommend against explicitly setting any of these
549 variables. See the INSTALL file for a complete list plus the reasons 556 variables. See the INSTALL file for a complete list plus the reasons
653 with_xpm | \ 660 with_xpm | \
654 with_xface | \ 661 with_xface | \
655 with_jpeg | \ 662 with_jpeg | \
656 with_png | \ 663 with_png | \
657 with_tiff | \ 664 with_tiff | \
665 with_wm | \
658 with_xmu | \ 666 with_xmu | \
659 with_quantify | \ 667 with_quantify | \
660 with_toolbars | \ 668 with_toolbars | \
661 with_tty | \ 669 with_tty | \
662 with_i18n3 | \ 670 with_i18n3 | \
717 eval "$opt=\"$val\"" 725 eval "$opt=\"$val\""
718 ;; 726 ;;
719 727
720 dnl Options that take "yes", "no", or "default" values 728 dnl Options that take "yes", "no", or "default" values
721 rel_alloc | \ 729 rel_alloc | \
730 use_debug_malloc | \
722 use_system_malloc ) 731 use_system_malloc )
723 case "$val" in 732 case "$val" in
724 y | ye | yes ) val=yes ;; 733 y | ye | yes ) val=yes ;;
725 n | no ) val=no ;; 734 n | no ) val=no ;;
726 d | de | def | defa | defau | defaul | default ) 735 d | de | def | defa | defau | defaul | default )
780 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: 789 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
781 \`motif', \`xlib', \`yes', or \`no'."]) ;; 790 \`motif', \`xlib', \`yes', or \`no'."]) ;;
782 esac 791 esac
783 eval "$opt=\"$val\"" 792 eval "$opt=\"$val\""
784 ;; 793 ;;
794
795 dnl XFontSet support?
796 "with_xfs" )
797 case "$val" in
798 y | ye | yes ) val=yes ;;
799 n | no | non | none ) val=no ;;
800 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
801 \`yes', or \`no'."]) ;;
802 esac
803 eval "$opt=\"$val\""
804 ;;
785 805
786 dnl Mail locking specification 806 dnl Mail locking specification
787 "mail_locking" ) 807 "mail_locking" )
788 case "$val" in 808 case "$val" in
789 lockf ) val=lockf ;; 809 lockf ) val=lockf ;;
1594 linux ) ld_call_shared="-Bstatic" ;; 1614 linux ) ld_call_shared="-Bstatic" ;;
1595 decosf* ) ld_call_shared="-non_shared" ;; 1615 decosf* ) ld_call_shared="-non_shared" ;;
1596 esac 1616 esac
1597 fi 1617 fi
1598 1618
1599 canonical_version=`echo ${version}_${canonical} | sed 'y/.-/__/'` 1619 stack_trace_eye_catcher=`echo xemacs_${version}_${canonical} | sed 'y/.-/__/'`
1600 AC_DEFINE_UNQUOTED(CANONICAL_VERSION, $canonical_version) 1620 AC_DEFINE_UNQUOTED(STACK_TRACE_EYE_CATCHER, $stack_trace_eye_catcher)
1601 1621
1602 machfile="m/${machine}.h" 1622 machfile="m/${machine}.h"
1603 opsysfile="s/${opsys}.h" 1623 opsysfile="s/${opsys}.h"
1604 1624
1605 dnl -------------------------------------------------- 1625 dnl --------------------------------------------------
2038 dnl Assume not, until told otherwise. 2058 dnl Assume not, until told otherwise.
2039 GNU_MALLOC=yes 2059 GNU_MALLOC=yes
2040 if test "$system_malloc" = "yes" ; then 2060 if test "$system_malloc" = "yes" ; then
2041 GNU_MALLOC=no 2061 GNU_MALLOC=no
2042 GNU_MALLOC_reason=" 2062 GNU_MALLOC_reason="
2043 (The GNU allocators don't work with this system configuration.)" 2063 (The GNU allocators don't work with this system configuration)."
2044 elif test "$use_system_malloc" = "yes" ; then 2064 elif test "$use_system_malloc" = "yes" ; then
2045 GNU_MALLOC=no 2065 GNU_MALLOC=no
2046 GNU_MALLOC_reason=" 2066 GNU_MALLOC_reason="
2047 (User chose not to use GNU allocators.)" 2067 (User chose not to use GNU allocators)."
2068 elif test "$use_debug_malloc" = "yes" ; then
2069 GNU_MALLOC=no
2070 GNU_MALLOC_reason="
2071 (User chose to use Debugging Malloc)."
2048 fi 2072 fi
2049 2073
2050 dnl Some other nice autoconf tests. If you add a test here which 2074 dnl Some other nice autoconf tests. If you add a test here which
2051 dnl should make an entry in src/config.h, do not forget to add an 2075 dnl should make an entry in src/config.h, do not forget to add an
2052 dnl #undef clause to src/config.h.in for autoconf to modify. 2076 dnl #undef clause to src/config.h.in for autoconf to modify.
2137 dnl check for long file names 2161 dnl check for long file names
2138 AC_SYS_LONG_FILE_NAMES 2162 AC_SYS_LONG_FILE_NAMES
2139 2163
2140 dnl -lm is required by LISP_FLOAT_TYPE, among other things 2164 dnl -lm is required by LISP_FLOAT_TYPE, among other things
2141 AC_CHECK_LIB(m, sqrt) 2165 AC_CHECK_LIB(m, sqrt)
2142
2143 dnl -lPW might be needed on some systems
2144 dnl But they break more other systems.
2145 dnl AC_CHECK_LIB(PW, main)
2146 2166
2147 dnl Floating operation support is now unconditional 2167 dnl Floating operation support is now unconditional
2148 AC_DEFINE(LISP_FLOAT_TYPE) 2168 AC_DEFINE(LISP_FLOAT_TYPE)
2149 2169
2150 dnl Determine type of mail locking from configure args and s&m headers 2170 dnl Determine type of mail locking from configure args and s&m headers
2363 2383
2364 if test "$window_system" = "none" ; then 2384 if test "$window_system" = "none" ; then
2365 if test "$with_tty" = "no" ; then 2385 if test "$with_tty" = "no" ; then
2366 AC_MSG_ERROR([No window system support and no TTY support - Unable to proceed.]) 2386 AC_MSG_ERROR([No window system support and no TTY support - Unable to proceed.])
2367 fi 2387 fi
2368 for feature in tooltalk cde offix \ 2388 for feature in tooltalk cde offix wm \
2369 menubars scrollbars toolbars dialogs xim xmu \ 2389 menubars scrollbars toolbars dialogs xim xmu \
2370 tiff png jpeg gif compface xpm 2390 tiff png jpeg gif compface xpm
2371 do 2391 do
2372 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then 2392 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
2373 AC_MSG_WARN([--with-$feature ignored: Not valid without X support]) 2393 AC_MSG_WARN([--with-$feature ignored: Not valid without X support])
2388 2408
2389 case "$x_libraries" in *X11R4* ) 2409 case "$x_libraries" in *X11R4* )
2390 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 2410 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
2391 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 2411 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
2392 esac 2412 esac
2413
2414 dnl Check for WindowMaker
2415 AC_CHECKING(for WindowMaker option);
2416 if test "$with_wm" = "yes"; then
2417 AC_DEFINE(HAVE_WINDOWMAKER)
2418 fi
2393 2419
2394 dnl Autodetect Xauth 2420 dnl Autodetect Xauth
2395 dnl -lXau is only used by gnuclient, so use a special variable for Xauth X libs 2421 dnl -lXau is only used by gnuclient, so use a special variable for Xauth X libs
2396 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 2422 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
2397 test -z "$with_xauth" && { AC_CHECK_HEADER(X11/Xauth.h, ,with_xauth=no) } 2423 test -z "$with_xauth" && { AC_CHECK_HEADER(X11/Xauth.h, ,with_xauth=no) }
2658 fi 2684 fi
2659 if test "$with_xim" = "motif"; then 2685 if test "$with_xim" = "motif"; then
2660 AC_DEFINE(XIM_MOTIF) 2686 AC_DEFINE(XIM_MOTIF)
2661 need_motif=yes 2687 need_motif=yes
2662 XE_ADD_OBJS(input-method-motif.o) 2688 XE_ADD_OBJS(input-method-motif.o)
2689 fi
2690 if test "$with_xfs" = "yes"; then
2691 with_xfs=no
2692 fi
2693 else dnl "with_xim" = "no"
2694 case "$with_xfs" in "yes" )
2695 AC_CHECKING(for XFontSet)
2696 AC_CHECK_LIB(X11, XmbDrawString, [:], with_xfs=no)
2697 esac
2698 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
2699 AC_DEFINE(USE_XFONTSET)
2700 XE_ADD_OBJS(input-method-xfs.o)
2663 fi 2701 fi
2664 fi dnl with_xim 2702 fi dnl with_xim
2665 2703
2666 dnl Autodetect WNN 2704 dnl Autodetect WNN
2667 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 2705 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
2815 AC_DEFINE(HAVE_INLINE) 2853 AC_DEFINE(HAVE_INLINE)
2816 test "$GCC" = "yes" && XE_ADD_OBJS(inline.o) 2854 test "$GCC" = "yes" && XE_ADD_OBJS(inline.o)
2817 fi 2855 fi
2818 2856
2819 dnl HP-UX has a working alloca in libPW. 2857 dnl HP-UX has a working alloca in libPW.
2820 case "$opsys" in hpux* ) 2858 dnl case "${GCC}${opsys}" in hpux* )
2821 AC_CHECK_FUNC(alloca, [:], [AC_CHECK_LIB(PW, alloca)]) 2859 dnl AC_CHECK_FUNC(alloca, [:], [AC_CHECK_LIB(PW, alloca)])
2822 esac 2860 dnl esac
2823 2861
2824 AC_FUNC_ALLOCA 2862 AC_FUNC_ALLOCA
2825 test -n "$ALLOCA" && XE_ADD_OBJS($ALLOCA) 2863 test -n "$ALLOCA" && XE_ADD_OBJS($ALLOCA)
2826 2864
2827 dnl Check whether vfork exists and works correctly. (This does more 2865 dnl Check whether vfork exists and works correctly. (This does more
3352 3390
3353 test -n "$puresize" && AC_DEFINE_UNQUOTED(RAW_PURESIZE, $puresize) 3391 test -n "$puresize" && AC_DEFINE_UNQUOTED(RAW_PURESIZE, $puresize)
3354 3392
3355 if test "$GNU_MALLOC" = "yes"; then AC_DEFINE(GNU_MALLOC) 3393 if test "$GNU_MALLOC" = "yes"; then AC_DEFINE(GNU_MALLOC)
3356 elif test "$use_system_malloc" = "yes"; then AC_DEFINE(USE_SYSTEM_MALLOC) 3394 elif test "$use_system_malloc" = "yes"; then AC_DEFINE(USE_SYSTEM_MALLOC)
3395 elif test "$use_debug_malloc" = "yes"; then AC_DEFINE(USE_DEBUG_MALLOC)
3396 AC_DEFINE(USE_SYSTEM_MALLOC)
3357 fi 3397 fi
3358 test "$with_i18n3" = "yes" && AC_DEFINE(I18N3) 3398 test "$with_i18n3" = "yes" && AC_DEFINE(I18N3)
3359 test "$GCC" = "yes" && AC_DEFINE(USE_GCC) 3399 test "$GCC" = "yes" && AC_DEFINE(USE_GCC)
3360 test "$with_term" = "yes" && AC_DEFINE(HAVE_TERM) 3400 test "$with_term" = "yes" && AC_DEFINE(HAVE_TERM)
3361 test "$external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET) 3401 test "$external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET)
3449 3489
3450 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." 3490 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
3451 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support." 3491 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
3452 test "$with_xim" = motif && echo " Using Motif to provide XIM support." 3492 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
3453 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." 3493 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
3494 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
3454 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." 3495 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
3455 if test "$with_wnn" = yes; then 3496 if test "$with_wnn" = yes; then
3456 echo " Compiling in support for the WNN input method on Mule." 3497 echo " Compiling in support for the WNN input method on Mule."
3457 test "$with_wnn6" = yes && echo " Using WNN version 6." 3498 test "$with_wnn6" = yes && echo " Using WNN version 6."
3458 fi 3499 fi
3461 test "$with_cde" = yes && echo " Compiling in support for CDE." 3502 test "$with_cde" = yes && echo " Compiling in support for CDE."
3462 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." 3503 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
3463 test "$with_offix" = yes && echo " Compiling in support for OffiX." 3504 test "$with_offix" = yes && echo " Compiling in support for OffiX."
3464 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." 3505 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
3465 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)." 3506 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)."
3507 test "$with_wm" = yes && echo " Compiling in support for WindowMaker."
3466 case "$with_menubars" in 3508 case "$with_menubars" in
3467 lucid ) echo " Using Lucid menubars." ;; 3509 lucid ) echo " Using Lucid menubars." ;;
3468 motif ) echo " Using Motif menubars." 3510 motif ) echo " Using Motif menubars."
3469 echo " *WARNING* The Motif menubar implementation is currently buggy." 3511 echo " *WARNING* The Motif menubar implementation is currently buggy."
3470 echo " We recommend using the Lucid menubar instead." 3512 echo " We recommend using the Lucid menubar instead."