comparison configure.ac @ 3094:ad2f4ae9895b

[xemacs-hg @ 2005-11-26 11:45:47 by stephent] Xft merge. <87k6ev4p8q.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Sat, 26 Nov 2005 11:46:25 +0000
parents 141c2920ea48
children 859a2346db99
comparison
equal deleted inserted replaced
3093:769dc945b085 3094:ad2f4ae9895b
628 XE_MERGED_ARG([infopath], 628 XE_MERGED_ARG([infopath],
629 AC_HELP_STRING([--with-infopath=PATH],[Location of info directories]), 629 AC_HELP_STRING([--with-infopath=PATH],[Location of info directories]),
630 [AC_DEFINE(INFOPATH_USER_DEFINED)], []) 630 [AC_DEFINE(INFOPATH_USER_DEFINED)], [])
631 dnl 631 dnl
632 XE_HELP_SUBSECTION([Window-system options]) 632 XE_HELP_SUBSECTION([Window-system options])
633 dnl if you change defaults, make sure to fix arg 6 of the OPTION_HELP macro.
634 XE_COMPLEX_ARG([xft],
635 [XE_COMPLEX_OPTION_HELP_STRING([--with-xft],
636 [Xft client-side font rendering and anti-aliasing],
637 [Xft],
638 [`emacs' (buffers), `menubars', `tabs', and `gauges'],
639 [X11, Xft, Xrender, freetype, and fontconfig],
640 [`emacs,menubars,tabs,gauges'])],
641 [],[],
642 [XE_COMPLEX_OPTION([emacs],[yes]),
643 XE_COMPLEX_OPTION([menubars],[yes]),
644 XE_COMPLEX_OPTION([tabs],[yes]),
645 XE_COMPLEX_OPTION([gauges],[yes])])
646 [], [])
633 XE_MERGED_ARG([gtk], 647 XE_MERGED_ARG([gtk],
634 AC_HELP_STRING([--with-gtk],[Support GTK on the X Window System. (EXPERIMENTAL)]), 648 AC_HELP_STRING([--with-gtk],[Support GTK on the X Window System. (EXPERIMENTAL)]),
635 [true], [with_gtk=no]) 649 [true], [with_gtk=no])
636 XE_MERGED_ARG([gnome], 650 XE_MERGED_ARG([gnome],
637 AC_HELP_STRING([--with-gnome],[Support GNOME on the X Window System. (EXPERIMENTAL)]), 651 AC_HELP_STRING([--with-gnome],[Support GNOME on the X Window System. (EXPERIMENTAL)]),
775 AC_HELP_STRING([--with-wnn6],[Support the Wnn6 Asian language input 789 AC_HELP_STRING([--with-wnn6],[Support the Wnn6 Asian language input
776 method (proprietary). Requires Mule.]), 790 method (proprietary). Requires Mule.]),
777 [], []) 791 [], [])
778 XE_MERGED_ARG([xfs], 792 XE_MERGED_ARG([xfs],
779 AC_HELP_STRING([--with-xfs],[Enable XFontSet support for internationalized 793 AC_HELP_STRING([--with-xfs],[Enable XFontSet support for internationalized
780 menubar. Incompatible with `--with-xim=motif'. 794 menubar. Incompatible with `--with-xim=motif' and `--with-xft'.
781 `--enable-menubars=lucid' (the default) is desirable.]), 795 `--enable-menubars=lucid' (the default) is desirable.]),
782 [], []) 796 [], [])
783 dnl 797 dnl
784 XE_HELP_SUBSECTION([File-related options]) 798 XE_HELP_SUBSECTION([File-related options])
785 XE_MERGED_ARG([default-eol-detection], 799 XE_MERGED_ARG([default-eol-detection],
964 test "$with_system_malloc" = "default" && with_system_malloc=yes 978 test "$with_system_malloc" = "default" && with_system_malloc=yes
965 fi 979 fi
966 980
967 dnl CDE requires tooltalk 981 dnl CDE requires tooltalk
968 XE_CHECK_FEATURE_DEPENDENCY(cde, tooltalk) 982 XE_CHECK_FEATURE_DEPENDENCY(cde, tooltalk)
983
984 dnl Xft sanity checking
985 dnl #### Maybe we should XE_DIE here instead? Or fix the UI so that
986 dnl emacs is always implicit? (I worry that --without-xft would be weird.)
987 if test \( "$with_xft_menubars" = "yes" -o "$with_xft_tabs" = "yes" \
988 -o "$with_xft_gauges" = "yes" \) -a "$with_xft_emacs" = "no"; then
989 AC_MSG_WARN([Forcing --with-xft=emacs because Xft is enabled])
990 with_xft_emacs=yes
991 fi
992
993 dnl XFS and Xft in menubars conflict
994 if test "$with_xfs" = "yes" -a "$with_xft_menubars" = "yes"; then
995 USAGE_ERROR("XFS and Xft in the menubars are incompatible!")
996 fi
969 997
970 dnl ------------------------------------------------------------------------- 998 dnl -------------------------------------------------------------------------
971 dnl Local paths 999 dnl Local paths
972 test "x$prefix" = xNONE && prefix=$ac_default_prefix 1000 test "x$prefix" = xNONE && prefix=$ac_default_prefix
973 # Let make expand exec_prefix. 1001 # Let make expand exec_prefix.
3360 "cc" ) CC="cc_r" ;; 3388 "cc" ) CC="cc_r" ;;
3361 esac 3389 esac
3362 fi 3390 fi
3363 fi 3391 fi
3364 3392
3393 dnl include xft/AA support?
3394 dnl #### need to check for includes here (especially, freetype.h for v.2)
3395
3396 if test "$with_xft_emacs" = "yes"; then
3397 AC_CHECKING([for Xrender, fontconfig, and Xft])
3398 xft_includes_found=no
3399 AC_CHECK_HEADERS([freetype/config/ftheader.h],
3400 [xft_includes_found=yes],
3401 [
3402 dnl #### How about /sw/include, and /opt/local/include?
3403 dnl these directories need to be the parent of the freetype directory
3404 for freetype_include_top in "/usr/X11R6/include/freetype2" \
3405 "/usr/include/freetype2"
3406 do
3407 if test -d $freetype_include_top; then
3408 AC_CHECKING([in ${freetype_include_top}/freetype2])
3409 dnl disable autoconf's fucking cache; why these fuckheads think it
3410 dnl is better to be broken than to be slow, I don't know!
3411 dnl #### there's gotta be a better-looking way to do this!!
3412 unset "$as_ac_Header"
3413 save_c_switch_site="$c_switch_site"
3414 c_switch_site="$c_switch_site -I${freetype_include_top}"
3415 AC_CHECK_HEADERS([freetype/config/ftheader.h],
3416 [xft_includes_found=yes],
3417 [c_switch_site=$save_c_switch_site])
3418 fi
3419 done
3420 if test "$xft_includes_found" != "yes"; then
3421 XE_DIE(["Unable to find headers for --with-xft"])
3422 else
3423 AC_CHECK_LIB(Xrender, XRenderQueryExtension, XE_PREPEND(-lXrender, libs_x),
3424 [XE_DIE(["Unable to find libXrender for --with-xft"])])
3425 AC_CHECK_LIB(fontconfig, FcPatternCreate, XE_PREPEND(-lfontconfig, libs_x),
3426 [XE_DIE(["Unable to find libfontconfig for --with-xft"])])
3427 AC_CHECK_LIB(Xft, XftFontOpen, XE_PREPEND(-lXft, libs_x),
3428 [XE_DIE(["Unable to find libXft for --with-xft"])])
3429 AC_DEFINE(USE_XFT)
3430 dnl Due to interactions with other libraries, must postpone AC_DEFINE
3431 dnl of USE_XFT_MENUBARS, USE_XFT_TABS, and USE_XFT_GAUGE.
3432 unset xft_includes_found
3433 fi
3434 ])
3435 fi
3436
3365 fi dnl $with_x11 = yes 3437 fi dnl $with_x11 = yes
3366 3438
3367 if test "$with_msw" != "no"; then 3439 if test "$with_msw" != "no"; then
3368 AC_CHECKING([for MS-Windows]) 3440 AC_CHECKING([for MS-Windows])
3369 AC_CHECK_LIB(gdi32,main,with_msw=yes) 3441 AC_CHECK_LIB(gdi32,main,with_msw=yes)
4184 esac 4256 esac
4185 4257
4186 case "$enable_menubars" in "" | "yes" | "athena" ) 4258 case "$enable_menubars" in "" | "yes" | "athena" )
4187 enable_menubars="lucid" ;; 4259 enable_menubars="lucid" ;;
4188 esac 4260 esac
4261 dnl this is not in xft reloaded #3
4262 if test "$with_xft_menubars" != "no" ; then
4263 if test "$with_xft_emacs" = "yes" -a "$with_menubars" != "no" ; then
4264 with_xft_menubars="yes"
4265 else
4266 with_xft_menubars="no"
4267 fi
4268 fi
4189 case "$enable_dialogs" in "" | "yes" | "lucid" ) 4269 case "$enable_dialogs" in "" | "yes" | "lucid" )
4190 if test "$lucid_prefers_motif" = "yes"; then 4270 if test "$lucid_prefers_motif" = "yes"; then
4191 if test "$have_motif" = "yes"; then enable_dialogs="motif" 4271 if test "$have_motif" = "yes"; then enable_dialogs="motif"
4192 elif test "$have_xaw" = "yes"; then enable_dialogs="athena" 4272 elif test "$have_xaw" = "yes"; then enable_dialogs="athena"
4193 elif test "$with_msw" = "yes"; then enable_dialogs="msw" 4273 elif test "$with_msw" = "yes"; then enable_dialogs="msw"
4217 elif test "$with_msw" = "yes"; then enable_widgets="msw" 4297 elif test "$with_msw" = "yes"; then enable_widgets="msw"
4218 else enable_widgets=no 4298 else enable_widgets=no
4219 fi 4299 fi
4220 fi ;; 4300 fi ;;
4221 esac 4301 esac
4302 dnl this is not in xft reloaded #3
4303 if test "$with_xft_tabs" != "no" ; then
4304 if test "$with_xft_emacs" = "yes" -a "$enable_widgets" != "no" ; then
4305 with_xft_tabs="yes"
4306 else
4307 with_xft_tabs="no"
4308 fi
4309 fi
4310 dnl this is not in xft reloaded #3
4311 if test "$with_xft_gauge" != "no" ; then
4312 if test "$with_xft_emacs" = "yes" -a "$enable_widgets" != "no" ; then
4313 with_xft_gauge="yes"
4314 else
4315 with_xft_gauge="no"
4316 fi
4317 fi
4222 4318
4223 all_widgets="$enable_menubars $enable_scrollbars $enable_dialogs $enable_toolbars $enable_widgets" 4319 all_widgets="$enable_menubars $enable_scrollbars $enable_dialogs $enable_toolbars $enable_widgets"
4224 4320
4225 case "$all_widgets" in 4321 case "$all_widgets" in
4226 *athena* ) 4322 *athena* )
4304 4400
4305 test "$enable_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF) 4401 test "$enable_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF)
4306 test "$enable_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) 4402 test "$enable_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF)
4307 test "$enable_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF) 4403 test "$enable_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF)
4308 test "$enable_widgets" = "motif" && AC_DEFINE(LWLIB_WIDGETS_MOTIF) 4404 test "$enable_widgets" = "motif" && AC_DEFINE(LWLIB_WIDGETS_MOTIF)
4405
4406 dnl this is not in xft reloaded #3
4407 test "$with_xft_menubars" = "yes" && AC_DEFINE(USE_XFT_MENUBARS)
4408 dnl these are new in sjt-xft
4409 test "$with_xft_tabs" = "yes" && AC_DEFINE(USE_XFT_TABS)
4410 test "$with_xft_gauge" = "yes" && AC_DEFINE(USE_XFT_GAUGE)
4309 4411
4310 dnl ---------------------- 4412 dnl ----------------------
4311 dnl Mule-dependent options 4413 dnl Mule-dependent options
4312 dnl ---------------------- 4414 dnl ----------------------
4313 4415
5780 echo " - Xmu library not available; substituting equivalent routines." 5882 echo " - Xmu library not available; substituting equivalent routines."
5781 fi 5883 fi
5782 if test "$with_wmcommand" != no; then 5884 if test "$with_wmcommand" != no; then
5783 echo " - Handling WM_COMMAND properly." 5885 echo " - Handling WM_COMMAND properly."
5784 fi 5886 fi
5887 if test "$with_xft" = "yes"; then
5888 echo " - Compiling in support for Xft antialiased fonts (EXPERIMENTAL)."
5889 fi
5785 fi 5890 fi
5786 if test "$need_motif" = "yes" ; then 5891 if test "$need_motif" = "yes" ; then
5787 echo " Compiling in support for Motif." 5892 echo " Compiling in support for Motif."
5788 if test "$have_lesstif" = "yes"; then 5893 if test "$have_lesstif" = "yes"; then
5789 echo " - Using LessTif implementation." 5894 echo " - Using LessTif implementation."
5805 echo " *WARNING* The Motif menubar implementation is currently buggy." 5910 echo " *WARNING* The Motif menubar implementation is currently buggy."
5806 echo " We recommend using the Lucid menubar instead." 5911 echo " We recommend using the Lucid menubar instead."
5807 echo " Re-run configure with --enable-menubars='lucid'." ;; 5912 echo " Re-run configure with --enable-menubars='lucid'." ;;
5808 msw ) echo " Using MS-Windows menubars." ;; 5913 msw ) echo " Using MS-Windows menubars." ;;
5809 esac 5914 esac
5915 dnl this is not in xft reloaded #3
5916 if test "$with_xft_menubars" = "yes"; then
5917 echo " - Using Xft to render antialiased fonts in menubars."
5918 echo " WARNING: This feature will be replaced with a face."
5919 fi
5810 case "$enable_scrollbars" in 5920 case "$enable_scrollbars" in
5811 gtk ) echo " Using GTK scrollbars." ;; 5921 gtk ) echo " Using GTK scrollbars." ;;
5812 lucid ) echo " Using Lucid scrollbars." ;; 5922 lucid ) echo " Using Lucid scrollbars." ;;
5813 motif ) echo " Using Motif scrollbars." ;; 5923 motif ) echo " Using Motif scrollbars." ;;
5814 athena ) echo " Using Athena scrollbars." ;; 5924 athena ) echo " Using Athena scrollbars." ;;
5830 gtk ) echo " Using GTK native widgets." ;; 5940 gtk ) echo " Using GTK native widgets." ;;
5831 motif ) echo " Using Motif native widgets." ;; 5941 motif ) echo " Using Motif native widgets." ;;
5832 athena ) echo " Using Athena native widgets." ;; 5942 athena ) echo " Using Athena native widgets." ;;
5833 msw ) echo " Using MS-Windows native widgets." ;; 5943 msw ) echo " Using MS-Windows native widgets." ;;
5834 esac 5944 esac
5945 dnl this is not in xft reloaded #3
5946 if test "$with_xft_tabs" = "yes"; then
5947 echo " - Using Xft to render antialiased fonts in tab controls."
5948 echo " WARNING: This feature will be replaced with a face."
5949 fi
5950 dnl this is not in xft reloaded #3
5951 if test "$with_xft_gauge" = "yes"; then
5952 echo " - Using Xft to render antialiased fonts in progress bars."
5953 echo " WARNING: This feature will be replaced with a face."
5954 echo " WARNING: This feature not yet implemented; setting ignored."
5955 fi
5835 if test "$with_dragndrop" = yes; then 5956 if test "$with_dragndrop" = yes; then
5836 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)." 5957 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
5837 echo " - Drag'n'Drop prototype: $dragndrop_proto." 5958 echo " - Drag'n'Drop prototype: $dragndrop_proto."
5838 fi 5959 fi
5839 5960