sys-devel/autogen: override *_cv_* fro corss-case, bug #425174
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 24 Aug 2019 09:48:40 +0000 (10:48 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 24 Aug 2019 09:48:52 +0000 (10:48 +0100)
A few autogen configure tests require running the program on machine:
    export ag_cv_run_strcspn=no
    export libopts_cv_with_libregex=yes

Pass these to get past ./configure. Autogen still reexecutes itself
at build time. Will need more fixes if feasible at all.

Reported-by: Thomas Sachau
Bug: https://bugs.gentoo.org/425174
Package-Manager: Portage-2.3.72, Repoman-2.3.17
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
sys-devel/autogen/autogen-5.18.16-r1.ebuild

index d69abe1e265bfaebc9eeb49c203dd609c34614b4..b2f45d68237bfb3de103cedc97c37e5e8d953154 100644 (file)
@@ -43,6 +43,13 @@ src_configure() {
        # suppress possibly incorrect -R flag
        export ag_cv_test_ldflags=
 
+       # autogen requires run-time sanity of regex and string functions.
+       # Use defaults of linux-glibc until we need somethig more advanced.
+       if tc-is-cross-compiler ; then
+               export ag_cv_run_strcspn=no
+               export libopts_cv_with_libregex=yes
+       fi
+
        econf $(use_enable static-libs static)
 }