changeset 91146:b02d8e52ce68

Check the availability of m17n-flt library.
author Kenichi Handa <handa@m17n.org>
date Sat, 01 Dec 2007 02:43:33 +0000
parents bc935454570f
children 6d4d49b30716
files configure.in
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Sat Dec 01 02:42:37 2007 +0000
+++ b/configure.in	Sat Dec 01 02:43:33 2007 +0000
@@ -2542,6 +2542,23 @@
 AC_SUBST(LIBOTF_CFLAGS)
 AC_SUBST(LIBOTF_LIBS)
 
+dnl Check if --with-pkg-config-prog has been given.
+if test "X${with_pkg_config_prog}" != X; then
+  PKG_CONFIG="${with_pkg_config_prog}"
+fi
+dnl Checks for libraries.
+PKG_CHECK_MODULES(M17N_FLT, m17n-flt, pkg_check_m17n_flt=yes, 
+		  pkg_check_m17n_flt=no)
+if test "$pkg_check_m17n_flt" = "yes"; then
+  AC_DEFINE(HAVE_M17N_FLT, 1,
+            [Define to 1 if you have m17n-flt library.])
+  AC_SUBST(M17N_FLT_CFLAGS)
+  AC_SUBST(M17N_FLT_LIBS)
+  C_SWITCH_X_SITE="$C_SWITCH_X_SITE $M17N_FLT_CFLAGS"
+  CFLAGS="$CFLAGS $M17N_FLT_CFLAGS"
+  LIBS="$LIBS $M17N_FLT_LIBS"
+fi
+
 fi
 
 ### Use -lXpm if available, unless `--with-xpm=no'.