ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure.ac
(Generate patch)

Comparing rxvt-unicode/configure.ac (file contents):
Revision 1.147 by sf-exg, Sat Dec 29 14:23:35 2012 UTC vs.
Revision 1.150 by sf-exg, Sat Nov 8 13:00:55 2014 UTC

525dnl# -------------------------------------------------------------------------- 525dnl# --------------------------------------------------------------------------
526dnl# -------------------------------------------------------------------------- 526dnl# --------------------------------------------------------------------------
527 527
528dnl# this is a really hack test for some basic Xlocale stuff 528dnl# this is a really hack test for some basic Xlocale stuff
529save_LIBS=$LIBS 529save_LIBS=$LIBS
530save_CFLAGS=$CFLAGS 530save_CXXFLAGS=$CXXFLAGS
531CFLAGS="$CFLAGS $X_CFLAGS" 531CXXFLAGS="$CXXFLAGS $X_CFLAGS"
532LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 532LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
533if test x$support_xim = xyes; then 533if test x$support_xim = xyes; then
534 AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, 534 AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale,
535 [AC_RUN_IFELSE([AC_LANG_SOURCE([[ 535 [AC_RUN_IFELSE([AC_LANG_SOURCE([[
536 #include <X11/Xlib.h> 536 #include <X11/Xlib.h>
568#include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])]) 568#include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])])
569if test x$rxvt_cv_func_xsetlocale = xyes; then 569if test x$rxvt_cv_func_xsetlocale = xyes; then
570 AC_DEFINE(HAVE_XSETLOCALE, 1, Define if setlocale (defined to Xsetlocale) works) 570 AC_DEFINE(HAVE_XSETLOCALE, 1, Define if setlocale (defined to Xsetlocale) works)
571fi 571fi
572LIBS=$save_LIBS 572LIBS=$save_LIBS
573CFLAGS=$save_CFLAGS 573CXXFLAGS=$save_CXXFLAGS
574 574
575AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo, 575AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo,
576[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) 576[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])])
577if test x$rxvt_cv_func_nl_langinfo = xyes; then 577if test x$rxvt_cv_func_nl_langinfo = xyes; then
578 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) 578 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works)
625 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" 625 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
626 fi 626 fi
627 627
628 save_LIBS="$LIBS" 628 save_LIBS="$LIBS"
629 LIBS="$LIBS $X_LIBS" 629 LIBS="$LIBS $X_LIBS"
630 AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no])
631 AC_CHECK_LIB(Xft,XftDrawString32,:,[support_xft=no])
632 AC_CHECK_HEADERS(fontconfig/fontconfig.h,,[support_xft=no]) 630 AC_CHECK_HEADERS(X11/Xft/Xft.h fontconfig/fontconfig.h,,[support_xft=no])
633 AC_CHECK_LIB(fontconfig,FcPatternGet,:,[support_xft=no]) 631 AC_CHECK_FUNCS(XftDrawString32 FcPatternGet,,[support_xft=no])
634 LIBS="$save_LIBS" 632 LIBS="$save_LIBS"
635 633
636 if test x$support_xft = xyes; then 634 if test x$support_xft = xyes; then
637 AC_DEFINE(XFT, 1, Define to enable xft support) 635 AC_DEFINE(XFT, 1, Define to enable xft support)
638 fi 636 fi
639fi 637fi
640 638
641if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then 639if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then
640 AC_MSG_CHECKING(for Render >= 0.11)
641 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
642#include <X11/extensions/Xrender.h>
643#if RENDER_MAJOR == 0 && RENDER_MINOR <= 10
644error
645#endif
646]])],[],[support_image=no])
647 if test x$support_image = xyes; then
648 AC_MSG_RESULT(ok)
642 LIBS="$LIBS -lm" 649 LIBS="$LIBS -lm"
643 AC_DEFINE(XRENDER, 1, Define to enable xrender support) 650 AC_DEFINE(XRENDER, 1, Define to enable xrender support)
644 651
645 if test x$support_inheritpixmap = xyes; then 652 if test x$support_inheritpixmap = xyes; then
646 AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background) 653 AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background)
654 fi
655 else
656 AC_MSG_RESULT(no)
647 fi 657 fi
648fi 658fi
649 659
650if test x$support_styles = xyes; then 660if test x$support_styles = xyes; then
651 AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support) 661 AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines