This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix libelf configure
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 19 Apr 2010 17:11:51 +0200 (CEST)
- Subject: [PATCH] Fix libelf configure
Bootstrapped and tested on x86_64-unknown-linux-gnu, committed as
obvious.
Richard.
2010-04-19 Richard Guenther <rguenther@suse.de>
* configure.ac: Fix quoting around elf_getshstrndx ABI check.
* configure: Re-generated.
Index: configure.ac
===================================================================
--- configure.ac (revision 158516)
+++ configure.ac (working copy)
@@ -1034,8 +1034,8 @@ AC_CHECK_FUNCS(elf_getshdrstrndx,,
int main()
{
return elf_getshstrndx (NULL, 0) == 0;
-}]]), AC_DEFINE(HAVE_ELF_GETSHSTRNDX_GABI, 1,
- [Define if elf_getshstrndx has gABI conformant return values.])])])]
+}]])], AC_DEFINE(HAVE_ELF_GETSHSTRNDX_GABI, 1,
+ [Define if elf_getshstrndx has gABI conformant return values.]))])]
)
LIBS="$save_LIBS"
CPPFLAGS="$save_CPPFLAGS"
Index: configure
===================================================================
--- configure (revision 158516)
+++ configure (working copy)
@@ -8458,12 +8458,12 @@ else
int main()
{
return elf_getshstrndx (NULL, 0) == 0;
-},
-$as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
-
+}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
+$as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
+
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext