Author: tkng
Date: Tue Dec 14 02:28:32 2004
New Revision: 36

Modified:
   trunk/configure.ac

Log:
* configure.ac: Added SCIM configure test.



Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac  (original)
+++ trunk/configure.ac  Tue Dec 14 02:28:32 2004
@@ -67,9 +67,25 @@
 
 AC_SUBST(M17NLIB_LIBS)
 
-dnl *************************
-dnl *** Tests for Canna ***
-dnl *************************
+
+AC_ARG_WITH(scim,
+  AC_HELP_STRING([--with-scim],
+                 [build against SCIM (experimental)]),
+  [
+    case $with_scim in
+      no)
+        use_scim="no"
+      ;;
+      yes|*)
+        PKG_CHECK_MODULES(SCIM, scim >= 1.0.0, use_scim="yes",use_scim="no")
+      ;;
+    esac
+  ],
+  [ PKG_CHECK_MODULES(SCIM, scim >= 1.0.0, use_scim="yes",use_scim="no") ])
+
+# *************************
+# *** Tests for Canna ***
+# *************************
 AC_ARG_WITH(canna,
        AS_HELP_STRING([--with-canna], [Build with libcanna]),
        [
@@ -241,6 +257,7 @@
 
 
 AM_CONDITIONAL(M17NLIB, test x$use_m17nlib = xyes)
+AM_CONDITIONAL(SCIM, test x$use_scim = xyes)
 AM_CONDITIONAL(CANNA, test x$use_canna = xyes)
 AM_CONDITIONAL(GTK2, test x$use_gtk2 = xyes)
 AM_CONDITIONAL(GNOME2, test x$use_gnome2 = xyes)
@@ -323,6 +340,7 @@
 
    Canna        : ${use_canna}
    m17n-lib     : ${use_m17nlib}
+   SCIM         : ${use_scim}
    Gtk+         : ${use_gtk2}
    Gnome        : ${use_gnome2}
    Gnome Applet : ${use_applet}

Reply via email to