]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't define HAVE_LIBOTF if OTF_get_features is
authorKenichi Handa <handa@m17n.org>
Tue, 1 May 2007 05:10:26 +0000 (05:10 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 1 May 2007 05:10:26 +0000 (05:10 +0000)
not available.

configure.in

index 46d574171e0555d7fa9b1e5b5799fd75cffb9fff..b1f3d84d7c812b3e08728fd4516f2c3ed4b9472e 100644 (file)
@@ -2455,10 +2455,13 @@ if test "${HAVE_FREETYPE}" = "yes"; then
            [Define to 1 if you have freetype and fontconfig libraries.])
   AC_CHECK_PROG(HAVE_LIBOTF, libotf-config, yes, no)
   if test "${HAVE_LIBOTF}" = "yes"; then
-    AC_DEFINE(HAVE_LIBOTF, 1,
-             [Define to 1 if you have libotf library.])
-    LIBOTF_CFLAGS=`libotf-config --cflags`
-    LIBOTF_LIBS=`libotf-config --libs`
+    AC_CHECK_LIB(otf, OTF_get_features, , HAVE_LIBOTF=no)
+    if test "${HAVE_LIBOTF}" = "yes"; then
+      AC_DEFINE(HAVE_LIBOTF, 1,
+               [Define to 1 if you have libotf library.])
+      LIBOTF_CFLAGS=`libotf-config --cflags`
+      LIBOTF_LIBS=`libotf-config --libs`
+    fi
   fi
 fi
 AC_SUBST(FREETYPE_CFLAGS)