diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-11-15 12:34:28 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2013-11-15 12:34:28 +0000 |
commit | 75a2bcc07f19c1bc6439e6dab6c1b99281e675a0 (patch) | |
tree | 4fca6cbfcd130cd1d5edfd0854230d19945c43c1 /gcc/acinclude.m4 | |
parent | 9f13879ee894334867240f087b699232395bc36c (diff) | |
download | gcc-75a2bcc07f19c1bc6439e6dab6c1b99281e675a0.tar.gz |
acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
* acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure
macro.
* configure.ac: Determine target_header_dir earlier.
(--with-glibc-version): New configure option.
Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
* configure: Regenerate.
* doc/install.texi (--enable-gnu-unique-object): Don't refer to
native toolchains for default.
(--with-glibc-version): Document.
From-SVN: r204841
Diffstat (limited to 'gcc/acinclude.m4')
-rw-r--r-- | gcc/acinclude.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/acinclude.m4 b/gcc/acinclude.m4 index 6798d6fbc6a..34de2075bf2 100644 --- a/gcc/acinclude.m4 +++ b/gcc/acinclude.m4 @@ -561,3 +561,12 @@ dnl Make sure that build_exeext is looked for AC_DEFUN([gcc_AC_BUILD_EXEEXT], [ ac_executable_extensions="$build_exeext"]) +dnl GCC_GLIBC_VERSION_GTE_IFELSE(MAJOR, MINOR, IF-TRUE, IF-FALSE) +dnl ------------------------------------------------------------- +dnl If the target glibc version ($glibc_version_major.$glibc_version_minor) +dnl is at least MAJOR.MINOR, call IF-TRUE, otherwise call IF-FALSE. +AC_DEFUN([GCC_GLIBC_VERSION_GTE_IFELSE], +[ +AS_IF([test $glibc_version_major -gt $1 \ + || ( test $glibc_version_major -eq $1 && test $glibc_version_minor -ge $2 )], +[$3], [$4])]) |