aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2007-05-01 05:10:26 +0000
committerKenichi Handa2007-05-01 05:10:26 +0000
commita40d6d51dbf47c7cf7cb73e04269180c10c6033b (patch)
tree23d844aa242df360a7054c86f5829fd565504383
parent79cec53536936fba491cf3ab9b35a22a7075a6db (diff)
downloademacs-a40d6d51dbf47c7cf7cb73e04269180c10c6033b.tar.gz
emacs-a40d6d51dbf47c7cf7cb73e04269180c10c6033b.zip
Don't define HAVE_LIBOTF if OTF_get_features is
not available.
-rw-r--r--configure.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 46d574171e0..b1f3d84d7c8 100644
--- a/configure.in
+++ b/configure.in
@@ -2455,10 +2455,13 @@ if test "${HAVE_FREETYPE}" = "yes"; then
2455 [Define to 1 if you have freetype and fontconfig libraries.]) 2455 [Define to 1 if you have freetype and fontconfig libraries.])
2456 AC_CHECK_PROG(HAVE_LIBOTF, libotf-config, yes, no) 2456 AC_CHECK_PROG(HAVE_LIBOTF, libotf-config, yes, no)
2457 if test "${HAVE_LIBOTF}" = "yes"; then 2457 if test "${HAVE_LIBOTF}" = "yes"; then
2458 AC_DEFINE(HAVE_LIBOTF, 1, 2458 AC_CHECK_LIB(otf, OTF_get_features, , HAVE_LIBOTF=no)
2459 [Define to 1 if you have libotf library.]) 2459 if test "${HAVE_LIBOTF}" = "yes"; then
2460 LIBOTF_CFLAGS=`libotf-config --cflags` 2460 AC_DEFINE(HAVE_LIBOTF, 1,
2461 LIBOTF_LIBS=`libotf-config --libs` 2461 [Define to 1 if you have libotf library.])
2462 LIBOTF_CFLAGS=`libotf-config --cflags`
2463 LIBOTF_LIBS=`libotf-config --libs`
2464 fi
2462 fi 2465 fi
2463fi 2466fi
2464AC_SUBST(FREETYPE_CFLAGS) 2467AC_SUBST(FREETYPE_CFLAGS)