Check gtk2 too if configure with --enable-xim
authorPeng Huang <shawn.p.huang@gmail.com>
Fri, 18 Jun 2010 01:14:18 +0000 (09:14 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Fri, 18 Jun 2010 01:14:18 +0000 (09:14 +0800)
configure.ac

index 05d7ad4309b8265620554664fd059b689982e19f..975ef3936c3904ac893a3d7841a0134ea869cf5f 100644 (file)
@@ -123,12 +123,15 @@ if test x"$enable_vala" != x"yes"; then
     enable_vala="no (disabled, use --enable-vala to enable)"
 fi
 
-if test x"$enable_gtk2" = x"yes"; then
-    # check for gtk2, gdk2
+if test x"$enable_gtk2" = x"yes" -o x"$enable_xim" = x"yes" ; then
+    # check for gtk2
     PKG_CHECK_MODULES(GTK2, [
         gtk+-2.0
     ])
+fi
 
+if test x"$enable_gtk2" = x"yes"; then
+    # check for gdk2
     gtk2_binary_version=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
     GTK2_IM_MODULEDIR="$libdir"/gtk-2.0/$gtk2_binary_version/immodules