… | |
… | |
7626 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
7626 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
7627 | fi |
7627 | fi |
7628 | |
7628 | |
7629 | save_LIBS="$LIBS" |
7629 | save_LIBS="$LIBS" |
7630 | LIBS="$LIBS $X_LIBS" |
7630 | LIBS="$LIBS $X_LIBS" |
7631 | for ac_header in X11/Xft/Xft.h |
7631 | for ac_header in X11/Xft/Xft.h fontconfig/fontconfig.h |
7632 | do : |
7632 | do : |
|
|
7633 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7633 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" |
7634 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
7634 | if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then : |
7635 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7635 | cat >>confdefs.h <<_ACEOF |
7636 | cat >>confdefs.h <<_ACEOF |
7636 | #define HAVE_X11_XFT_XFT_H 1 |
7637 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7637 | _ACEOF |
7638 | _ACEOF |
7638 | |
7639 | |
7639 | else |
7640 | else |
7640 | support_xft=no |
7641 | support_xft=no |
7641 | fi |
7642 | fi |
7642 | |
7643 | |
7643 | done |
7644 | done |
7644 | |
7645 | |
7645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5 |
7646 | for ac_func in XftDrawString32 FcPatternGet |
7646 | $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; } |
7647 | do : |
7647 | if ${ac_cv_lib_Xft_XftDrawString32+:} false; then : |
7648 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7648 | $as_echo_n "(cached) " >&6 |
7649 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
7649 | else |
7650 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7650 | ac_check_lib_save_LIBS=$LIBS |
7651 | cat >>confdefs.h <<_ACEOF |
7651 | LIBS="-lXft $LIBS" |
7652 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7653 | /* end confdefs.h. */ |
|
|
7654 | |
|
|
7655 | /* Override any GCC internal prototype to avoid an error. |
|
|
7656 | Use char because int might match the return type of a GCC |
|
|
7657 | builtin and then its argument prototype would still apply. */ |
|
|
7658 | #ifdef __cplusplus |
|
|
7659 | extern "C" |
|
|
7660 | #endif |
|
|
7661 | char XftDrawString32 (); |
|
|
7662 | int |
|
|
7663 | main () |
|
|
7664 | { |
|
|
7665 | return XftDrawString32 (); |
|
|
7666 | ; |
|
|
7667 | return 0; |
|
|
7668 | } |
|
|
7669 | _ACEOF |
7653 | _ACEOF |
7670 | if ac_fn_cxx_try_link "$LINENO"; then : |
7654 | |
7671 | ac_cv_lib_Xft_XftDrawString32=yes |
|
|
7672 | else |
|
|
7673 | ac_cv_lib_Xft_XftDrawString32=no |
|
|
7674 | fi |
|
|
7675 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7676 | conftest$ac_exeext conftest.$ac_ext |
|
|
7677 | LIBS=$ac_check_lib_save_LIBS |
|
|
7678 | fi |
|
|
7679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
|
|
7680 | $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; } |
|
|
7681 | if test "x$ac_cv_lib_Xft_XftDrawString32" = xyes; then : |
|
|
7682 | : |
|
|
7683 | else |
7655 | else |
7684 | support_xft=no |
7656 | support_xft=no |
7685 | fi |
7657 | fi |
7686 | |
|
|
7687 | for ac_header in fontconfig/fontconfig.h |
|
|
7688 | do : |
|
|
7689 | ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" |
|
|
7690 | if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then : |
|
|
7691 | cat >>confdefs.h <<_ACEOF |
|
|
7692 | #define HAVE_FONTCONFIG_FONTCONFIG_H 1 |
|
|
7693 | _ACEOF |
|
|
7694 | |
|
|
7695 | else |
|
|
7696 | support_xft=no |
|
|
7697 | fi |
|
|
7698 | |
|
|
7699 | done |
7658 | done |
7700 | |
|
|
7701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5 |
|
|
7702 | $as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; } |
|
|
7703 | if ${ac_cv_lib_fontconfig_FcPatternGet+:} false; then : |
|
|
7704 | $as_echo_n "(cached) " >&6 |
|
|
7705 | else |
|
|
7706 | ac_check_lib_save_LIBS=$LIBS |
|
|
7707 | LIBS="-lfontconfig $LIBS" |
|
|
7708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7709 | /* end confdefs.h. */ |
|
|
7710 | |
|
|
7711 | /* Override any GCC internal prototype to avoid an error. |
|
|
7712 | Use char because int might match the return type of a GCC |
|
|
7713 | builtin and then its argument prototype would still apply. */ |
|
|
7714 | #ifdef __cplusplus |
|
|
7715 | extern "C" |
|
|
7716 | #endif |
|
|
7717 | char FcPatternGet (); |
|
|
7718 | int |
|
|
7719 | main () |
|
|
7720 | { |
|
|
7721 | return FcPatternGet (); |
|
|
7722 | ; |
|
|
7723 | return 0; |
|
|
7724 | } |
|
|
7725 | _ACEOF |
|
|
7726 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7727 | ac_cv_lib_fontconfig_FcPatternGet=yes |
|
|
7728 | else |
|
|
7729 | ac_cv_lib_fontconfig_FcPatternGet=no |
|
|
7730 | fi |
|
|
7731 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7732 | conftest$ac_exeext conftest.$ac_ext |
|
|
7733 | LIBS=$ac_check_lib_save_LIBS |
|
|
7734 | fi |
|
|
7735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5 |
|
|
7736 | $as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; } |
|
|
7737 | if test "x$ac_cv_lib_fontconfig_FcPatternGet" = xyes; then : |
|
|
7738 | : |
|
|
7739 | else |
|
|
7740 | support_xft=no |
|
|
7741 | fi |
|
|
7742 | |
7659 | |
7743 | LIBS="$save_LIBS" |
7660 | LIBS="$save_LIBS" |
7744 | |
7661 | |
7745 | if test x$support_xft = xyes; then |
7662 | if test x$support_xft = xyes; then |
7746 | |
7663 | |