aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-09-03 14:40:17 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-09-03 14:40:17 +0000
commit625afa230c955936b243d17d23ead4be25c07c3a (patch)
tree3a5a65ed5fc1c1e9168d27f41dd6aa3d87677120 /configure
parentbda2b772170fcafd0adbcc1c022373f8247a7be7 (diff)
downloadgcc-625afa230c955936b243d17d23ead4be25c07c3a.zip
gcc-625afa230c955936b243d17d23ead4be25c07c3a.tar.gz
gcc-625afa230c955936b243d17d23ead4be25c07c3a.tar.bz2
re PR bootstrap/54138 (configuring --without-cloog but executable links against system cloog)
2012-09-03 Richard Guenther <rguenther@suse.de> PR bootstrap/54138 * configure.ac: Re-organize ISL / CLOOG checks to allow disabling with either --without-isl or --without-cloog. * configure: Regenerated. * config/cloog.m4: Adjust. * config/isl.m4: Adjust. From-SVN: r190895
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure70
1 files changed, 38 insertions, 32 deletions
diff --git a/configure b/configure
index dba9474..0f655b8 100755
--- a/configure
+++ b/configure
@@ -646,7 +646,6 @@ extra_host_libiberty_configure_flags
clooginc
clooglibs
islinc
-isllibs
poststage1_ldflags
poststage1_libs
stage1_libs
@@ -768,11 +767,11 @@ with_stage1_ldflags
with_stage1_libs
with_boot_libs
with_boot_ldflags
+with_cloog
with_isl
with_isl_include
with_isl_lib
enable_isl_version_check
-with_cloog
with_cloog_include
with_cloog_lib
enable_cloog_version_check
@@ -1521,16 +1520,16 @@ Optional Packages:
--with-boot-libs=LIBS libraries for stage2 and later
--with-boot-ldflags=FLAGS
linker flags for stage2 and later
+ --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
+ package. Equivalent to
+ --with-cloog-include=PATH/include plus
+ --with-cloog-lib=PATH/lib
--with-isl=PATH Specify prefix directory for the installed ISL
package. Equivalent to
--with-isl-include=PATH/include plus
--with-isl-lib=PATH/lib
--with-isl-include=PATH Specify directory for installed ISL include files
--with-isl-lib=PATH Specify the directory for the installed ISL library
- --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
- package. Equivalent to
- --with-cloog-include=PATH/include plus
- --with-cloog-lib=PATH/lib
--with-cloog-include=PATH
Specify directory for installed CLooG include files
--with-cloog-lib=PATH Specify the directory for the installed CLooG
@@ -5609,7 +5608,15 @@ fi
-# Check for ISL
+# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
+# Basic setup is inlined here, actual checks are in config/cloog.m4 and
+# config/isl.m4
+
+
+# Check whether --with-cloog was given.
+if test "${with_cloog+set}" = set; then :
+ withval=$with_cloog;
+fi
# Check whether --with-isl was given.
@@ -5618,6 +5625,13 @@ if test "${with_isl+set}" = set; then :
fi
+# Treat either --without-cloog or --without-isl as a request to disable
+# GRAPHITE support and skip all following checks.
+if test "x$with_isl" != "xno" &&
+ test "x$with_cloog" != "xno"; then
+ # Check for ISL
+
+
# Check whether --with-isl-include was given.
if test "${with_isl_include+set}" = set; then :
withval=$with_isl_include;
@@ -5664,14 +5678,8 @@ fi
ENABLE_ISL_CHECK=no
fi
- isllibs="${isllibs} -lisl"
-
-
-
-if test "x$with_isl" != "xno"; then
-
if test "${ENABLE_ISL_CHECK}" = yes ; then
_isl_saved_CFLAGS=$CFLAGS
_isl_saved_LDFLAGS=$LDFLAGS
@@ -5727,7 +5735,6 @@ $as_echo "$gcc_cv_isl" >&6; }
-
if test "x${with_isl}" = xno; then
graphite_requested=no
elif test "x${with_isl}" != x \
@@ -5753,15 +5760,9 @@ $as_echo "$gcc_cv_isl" >&6; }
fi
-fi
-
-# Check for CLOOG
-
-# Check whether --with-cloog was given.
-if test "${with_cloog+set}" = set; then :
- withval=$with_cloog;
-fi
+ if test "x$gcc_cv_isl" != "xno"; then
+ # Check for CLOOG
# Check whether --with-cloog-include was given.
@@ -5810,16 +5811,9 @@ fi
fi
clooginc="-DCLOOG_INT_GMP ${clooginc}"
- clooglibs="${clooglibs} -lcloog-isl ${isllibs}"
-
-
-
+ clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
-if test "x$isllibs" = x && test "x$islinc" = x; then
- clooglibs=
- clooginc=
-elif test "x$with_cloog" != "xno"; then
@@ -5891,18 +5885,30 @@ $as_echo "$gcc_cv_cloog" >&6; }
&& test "x${clooglibs}" = x \
&& test "x${clooginc}" = x ; then
- as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
+ as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
fi
+ fi
fi
# If either the ISL or the CLooG check failed, disable builds of in-tree
# variants of both
-if test "x$clooglibs" = x && test "x$clooginc" = x; then
+if test "x$with_isl" = xno ||
+ test "x$with_cloog" = xno ||
+ test "x$gcc_cv_cloog" = xno ||
+ test "x$gcc_cv_isl" = xno; then
noconfigdirs="$noconfigdirs cloog isl"
+ islinc=
+ clooginc=
+ clooglibs=
fi
+
+
+
+
+
# Check for LTO support.
# Check whether --enable-lto was given.
if test "${enable_lto+set}" = set; then :