From 9c28a95257ae13762557b430c55bba12898aabe8 Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Fri, 23 Mar 2012 23:32:55 +0100 Subject: [PATCH] build: do not hang if GObject introspection if not found Instead fail gracefully by building the project without introspection support. --- configure.ac | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 6e5d553d..898a63b8 100644 --- a/configure.ac +++ b/configure.ac @@ -207,8 +207,7 @@ AC_ARG_WITH(girdir, AS_IF([test "x${with_girdir}" = "xcheck"], [NTD_UNEXPAND([gobject-introspection-1.0], [girdir], - [with_girdir="${NTD_UNEXPANDED}"], - [AC_MSG_ERROR([invalid GObject introspection pkg-config file])])]) + [with_girdir="${NTD_UNEXPANDED}"])]) AC_SUBST([GIRDIR],${with_girdir}) AC_ARG_WITH(typelibdir, [AC_HELP_STRING([--with-typelibdir=DIR], @@ -217,8 +216,7 @@ AC_ARG_WITH(typelibdir, AS_IF([test "x${with_typelibdir}" = "xcheck"], [NTD_UNEXPAND([gobject-introspection-1.0], [typelibdir], - [with_typelibdir="${NTD_UNEXPANDED}"], - [AC_MSG_ERROR([invalid GObject introspection pkg-config file])])]) + [with_typelibdir="${NTD_UNEXPANDED}"])]) AC_SUBST([TYPELIBDIR],${with_typelibdir}) AM_COND_IF([HAVE_INTROSPECTION], [enable_introspection='yes' -- 2.11.4.GIT