From: handa Date: Thu, 5 Nov 2009 03:42:14 +0000 (+0000) Subject: Check if the OTF library has OTF_drive_gpos2 (). X-Git-Tag: merge-to-XML~45 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44827be6c8c60df356cf526007c2e0cf23f9d41b;p=m17n%2Fm17n-lib.git Check if the OTF library has OTF_drive_gpos2 (). --- diff --git a/configure.ac b/configure.ac index 4b8160e..c376e19 100644 --- a/configure.ac +++ b/configure.ac @@ -171,6 +171,12 @@ if test "x$with_libotf" != "xno"; then AC_DEFINE(HAVE_OTF, 1, [Define to 1 if you have OTF library and header file.]) M17N_EXT_LIBS="$M17N_EXT_LIBS libotf" + AC_CHECK_LIB(otf, OTF_drive_gpos2, HAVE_OTF_DRIVE_GPOS2=yes, + HAVE_OTF_DRIVE_GPOS2=no) + if test "x$HAVE_OTF_DRIVE_GPOS2" = "xyes"; then + AC_DEFINE(HAVE_OTF_DRIVE_GPOS2, 1, + [Define to 1 if the OTF library has OTF_drive_gpos2().]) + fi else CPPFLAGS="$save_CPPFLAGS" OTF_LD_FLAGS=