]> git.draconx.ca Git - upkg.git/blobdiff - configure.ac
Initial UObject implementation plus a dumb music extractor.
[upkg.git] / configure.ac
index debf262d9d3f17ed199054266d429148981a5fbd..5b8dbf732cd89d423980ef6b94531eb55588bcaf 100644 (file)
@@ -8,6 +8,20 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 
 AC_PROG_CC_C99
 
+AC_ARG_WITH([gobject],
+       [AS_HELP_STRING([--with-gobject],
+               [build tools requiring libgobject [default=yes]]
+       )],
+       [],
+       [with_gobject=yes])
+
+have_gobject=no
+if test x$with_gobject = xyes; then
+AM_PATH_GLIB_2_0(, [have_gobject=yes], [have_gobject=no], [gobject])
+fi
+
+AM_CONDITIONAL([BUILD_UPKG], [test x$have_gobject = xyes])
+
 LT_INIT
 
 AC_CONFIG_FILES([