[uim-commit] r722 - trunk

tkng at freedesktop.org tkng at freedesktop.org
Fri Feb 25 10:13:41 PST 2005


Author: tkng
Date: 2005-02-25 10:13:38 -0800 (Fri, 25 Feb 2005)
New Revision: 722

Modified:
   trunk/configure.ac
Log:
* configure.ac: Require m17n-lib 1.2.0 or higher for m17n-lib module.


Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2005-02-25 01:17:57 UTC (rev 721)
+++ trunk/configure.ac	2005-02-25 18:13:38 UTC (rev 722)
@@ -44,29 +44,11 @@
                  [Don't build against m17nlib]),
   [
   if test "x$with_m17nlib" = "xyes"; then
-    AC_CHECK_LIB(m17n, m17n_init, HAVE_M17NLIB=yes, HAVE_M17NLIB=no)
-    if test "x$HAVE_M17NLIB" = "xyes"; then
-      AC_CHECK_HEADER(m17n.h, HAVE_M17NLIB=yes, HAVE_M17NLIB=no)
-      if test "x$HAVE_M17NLIB" = "xyes"; then
-        AC_DEFINE(HAVE_M17NLIB, 1,
-           [Define to 1 if you have m17nlib library and header file])
-        M17NLIB_LIBS="-lm17n"
-        use_m17nlib="yes"
-      fi
-    fi
+    PKG_CHECK_MODULES(M17NLIB, m17n-core >= 1.2.0, use_m17nlib="yes",use_m17nlib="no")
   fi
   ],
   [
-  AC_CHECK_LIB(m17n, m17n_init, HAVE_M17NLIB=yes, HAVE_M17NLIB=no)
-  if test "x$HAVE_M17NLIB" = "xyes"; then
-    AC_CHECK_HEADER(m17n.h, HAVE_M17NLIB=yes, HAVE_M17NLIB=no)
-    if test "x$HAVE_M17NLIB" = "xyes"; then
-      AC_DEFINE(HAVE_M17NLIB, 1,
-         [Define to 1 if you have m17nlib library and header file])
-      M17NLIB_LIBS="-lm17n"
-      use_m17nlib="yes"
-    fi
-  fi
+    PKG_CHECK_MODULES(M17NLIB, m17n-core >= 1.2.0, use_m17nlib="yes",use_m17nlib="no")
 ])
 
 AC_SUBST(M17NLIB_LIBS)



More information about the Uim-commit mailing list