diff options
-rw-r--r-- | sys-devel/autoconf/autoconf-2.70-r1.ebuild (renamed from sys-devel/autoconf/autoconf-2.70.ebuild) | 4 | ||||
-rw-r--r-- | sys-devel/autoconf/files/autoconf-2.70-fix_c99_check.patch | 15 |
2 files changed, 19 insertions, 0 deletions
diff --git a/sys-devel/autoconf/autoconf-2.70.ebuild b/sys-devel/autoconf/autoconf-2.70-r1.ebuild index c2764bdae359..ce4adc5321b0 100644 --- a/sys-devel/autoconf/autoconf-2.70.ebuild +++ b/sys-devel/autoconf/autoconf-2.70-r1.ebuild @@ -35,6 +35,10 @@ RDEPEND="${BDEPEND} [[ ${PV} == "9999" ]] && BDEPEND+=" >=sys-apps/texinfo-4.3" PDEPEND="emacs? ( app-emacs/autoconf-mode )" +PATCHES=( + "${FILESDIR}/${P}-fix_c99_check.patch" +) + src_prepare() { # usr/bin/libtool is provided by binutils-apple, need gnu libtool if [[ ${CHOST} == *-darwin* ]] ; then diff --git a/sys-devel/autoconf/files/autoconf-2.70-fix_c99_check.patch b/sys-devel/autoconf/files/autoconf-2.70-fix_c99_check.patch new file mode 100644 index 000000000000..2174e75afebd --- /dev/null +++ b/sys-devel/autoconf/files/autoconf-2.70-fix_c99_check.patch @@ -0,0 +1,15 @@ +X-Git-Url: http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blobdiff_plain;f=lib%2Fautoconf%2Fc.m4;h=601c2df41bd4ee602065ce041a1173aca8a0f52e;hp=fe217cad679f2f4506c3e20dee64e7e3e3b83a24;hb=efc940dc82763b7b2d6e65f04d15d5972d829c0a;hpb=b693e208691c54fbe07cdf49b9a98358baadcfe2 + +diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 +index fe217ca..601c2df 100644 +--- a/lib/autoconf/c.m4 ++++ b/lib/autoconf/c.m4 +@@ -1559,7 +1559,7 @@ dnl SVR4 -Xc -D__EXTENSIONS__ + # option to output variable CC to make it so. + AC_DEFUN([_AC_PROG_CC_C99], + [AC_REQUIRE([_AC_C_C99_TEST_PROGRAM])]dnl +-[_AC_C_STD_TRY([c99], [ac_c_conftest_c89_program], ++[_AC_C_STD_TRY([c99], [ac_c_conftest_c99_program], + dnl Try + dnl GCC -std=gnu99 (unused restrictive modes: -std=c99 -std=iso9899:1999) + dnl IBM XL C -qlanglvl=extc1x (V12.1; does not pass C11 test) |