From: Rico Tzschichholz Date: Thu, 13 Oct 2016 20:25:56 +0000 (+0200) Subject: build: Conditionally adjust VALAFLAGS in case of proper bootsrapped builds X-Git-Tag: 0.35.1~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbc749bd4ec84673ace5b311ec468c75ab049e1f;p=thirdparty%2Fvala.git build: Conditionally adjust VALAFLAGS in case of proper bootsrapped builds This adds --hide-internal to VALAFLAGS to allow symbols to be marked 'internal' in Vala source files and not appear in the dynamic symbol table of libvala. The build system checks for minimum valac version to fullfill required support of needed VALAFLAGS. https://bugzilla.gnome.org/show_bug.cgi?id=771920 --- diff --git a/configure.ac b/configure.ac index f12d4efbc..540d4a2bd 100644 --- a/configure.ac +++ b/configure.ac @@ -43,7 +43,16 @@ fi AC_PATH_PROG(VALAC, valac, valac) AC_SUBST(VALAC) +VALAC_BOOTSTRAP_REQUIRED=0.25.1 + +AS_IF([test "$VALAC" != valac], [FOUND_VALAC_VERION=`$VALAC --version | sed 's/Vala *//'` + AS_VERSION_COMPARE(["$VALAC_BOOTSTRAP_REQUIRED"], ["$FOUND_VALAC_VERION"], + [enable_boostrap=yes], [enable_boostrap=yes], [enable_boostrap=no])]) + VALAFLAGS="$VALAFLAGS --disable-version-header" +if test x$enable_boostrap = xyes; then + VALAFLAGS="$VALAFLAGS --hide-internal" +fi AC_SUBST(VALAFLAGS) AC_SUBST(CFLAGS)