X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/67988e9de2e9002064d52b4a1c5b5c4f8e6e665f..0b66ccda847802bdc7ba4755743031c323df4b7e:/configure.ac diff --git a/configure.ac b/configure.ac index debf262..5b8dbf7 100644 --- a/configure.ac +++ b/configure.ac @@ -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([