diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2019-07-01 15:40:11 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2019-07-01 15:40:11 +0000 |
commit | fe862ac8da48e134179089b5e2e7bfd284dd6a2f (patch) | |
tree | aca099fb8e469f13f48bfa3d5f527405e8d47db7 /configure.ac | |
parent | d2929949747da92dcfed5fc7165869638b76d936 (diff) | |
download | mpfr-fe862ac8da48e134179089b5e2e7bfd284dd6a2f.tar.gz |
[acinclude.m4,configure.ac] MPFR_C_LONG_DOUBLE_FORMAT: also detect
clang's LTO.
Note: no longer use $FGREP (see r13513) as its status is unclear on
non-POSIX systems (though very probably available when $EGREP is).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13514 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 12e6129e5..40c3f986c 100644 --- a/configure.ac +++ b/configure.ac @@ -62,7 +62,6 @@ dnl choose a compiler because of the CC and CFLAGS setup from gmp.h! AC_CANONICAL_HOST AC_PROG_EGREP -AC_PROG_FGREP AC_PROG_SED dnl To use a separate config header. @@ -363,13 +362,13 @@ if test -z "$GMP_CC$GMP_CFLAGS" ; then echo "MPFR_OPTION __GMP_CC" >> conftest.c $cpp $CPPFLAGS conftest.c 2> /dev/null > conftest.txt test $? -ne 0 && continue - GMP_CC=`$FGREP MPFR_OPTION conftest.txt | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'` + GMP_CC=`$EGREP MPFR_OPTION conftest.txt | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'` # Get CFLAGS echo "#include \"gmp.h\"" > conftest.c echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c $cpp $CPPFLAGS conftest.c 2> /dev/null > conftest.txt test $? -ne 0 && continue - [GMP_CFLAGS=`$FGREP MPFR_OPTION conftest.txt | $SED -e 's/[ "]-pedantic[ "]/ /g;s/MPFR_OPTION //g;s/ *" *//g'`] + [GMP_CFLAGS=`$EGREP MPFR_OPTION conftest.txt | $SED -e 's/[ "]-pedantic[ "]/ /g;s/MPFR_OPTION //g;s/ *" *//g'`] break done rm -f conftest* |