Commit 26a7ebf2 authored by Tobias Grosser's avatar Tobias Grosser
Browse files

autoconf: isl depends on gmp include files

When libgmp header files are not installed in the default /usr/include location,
configure used to fail to find the gmp headers when testing for isl/ast.h.  This
patch adds the gmp include path to the compiler flags before testing for ISL.

Merged from https://llvm.org/svn/llvm-project/polly/trunk@168090

llvm-svn: 170725
parent 5b7209d3
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-

# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
# Inc.
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
+3 −0
Original line number Diff line number Diff line
@@ -78,7 +78,10 @@ dnl Find Gmp
find_lib_and_headers([gmp], [gmp.h], [gmp], [required])

dnl Find Isl
saved_CXXFLAGS=$CXXFLAGS
CXXFLAGS="$CXXFLAGS $gmp_inc"
find_lib_and_headers([isl], [isl/ast.h], [isl], [required])
CXXFLAGS=$saved_CXXFLAGS

dnl Check that we have cloog.
saved_CXXFLAGS=$CXXFLAGS
+162 −204

File changed.

Preview size limit exceeded, changes collapsed.