Add brackets around AC_TRY_COMPILE alternative.
2010-04-02 Sebastian Pop <sebastian.pop@amd.com> * configure.ac: Add brackets around AC_TRY_COMPILE alternative. * configure: Regenerated. From-SVN: r157946
This commit is contained in:
parent
0333b9a65d
commit
e8fd69bbcf
6
configure
vendored
6
configure
vendored
@ -5473,7 +5473,8 @@ if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
|
||||
# Check for the recommended and required versions of GMP.
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
|
||||
$as_echo_n "checking for the correct version of gmp.h... " >&6; }
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
#include "gmp.h"
|
||||
int
|
||||
@ -5491,8 +5492,7 @@ main ()
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_compile "$LINENO"; then :
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
#include <gmp.h>
|
||||
int
|
||||
|
16
configure.ac
16
configure.ac
@ -1354,13 +1354,13 @@ if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
|
||||
#if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
|
||||
choke me
|
||||
#endif
|
||||
], AC_TRY_COMPILE([#include <gmp.h>],[
|
||||
], [AC_TRY_COMPILE([#include <gmp.h>],[
|
||||
#define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
|
||||
#define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
|
||||
#if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
|
||||
choke me
|
||||
#endif
|
||||
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])]),
|
||||
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])])],
|
||||
[AC_MSG_RESULT([no]); have_gmp=no])
|
||||
|
||||
# If we have GMP, check the MPFR version.
|
||||
@ -1372,12 +1372,12 @@ if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
|
||||
#if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
|
||||
choke me
|
||||
#endif
|
||||
], AC_TRY_COMPILE([#include <gmp.h>
|
||||
], [AC_TRY_COMPILE([#include <gmp.h>
|
||||
#include <mpfr.h>],[
|
||||
#if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
|
||||
choke me
|
||||
#endif
|
||||
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])]),
|
||||
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])])],
|
||||
[AC_MSG_RESULT([no]); have_gmp=no])
|
||||
fi
|
||||
|
||||
@ -1389,11 +1389,11 @@ if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
|
||||
#if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
|
||||
choke me
|
||||
#endif
|
||||
], AC_TRY_COMPILE([#include <mpc.h>],[
|
||||
], [AC_TRY_COMPILE([#include <mpc.h>],[
|
||||
#if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
|
||||
choke me
|
||||
#endif
|
||||
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])]),
|
||||
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])])],
|
||||
[AC_MSG_RESULT([no]); have_gmp=no])
|
||||
fi
|
||||
|
||||
@ -1617,11 +1617,11 @@ if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
|
||||
#if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5
|
||||
choke me
|
||||
#endif
|
||||
], AC_TRY_COMPILE([#include "cloog/cloog.h"],[
|
||||
], [AC_TRY_COMPILE([#include "cloog/cloog.h"],[
|
||||
#if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 9
|
||||
choke me
|
||||
#endif
|
||||
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])]),
|
||||
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])])],
|
||||
[AC_MSG_RESULT([no]); clooglibs= ; clooginc= ])
|
||||
CFLAGS="$saved_CFLAGS"
|
||||
fi
|
||||
|
@ -1,3 +1,8 @@
|
||||
2010-04-02 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
* configure.ac: Add brackets around AC_TRY_COMPILE alternative.
|
||||
* configure: Regenerated.
|
||||
|
||||
2010-04-02 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
* configure.ac: Print "buggy but acceptable" when CLooG
|
||||
|
Loading…
Reference in New Issue
Block a user