Skip to content

Commit

Permalink
make installed header files independent of configure options
Browse files Browse the repository at this point in the history
We want to share most of the header files among the different
CLooG instantiations.  In particular, we don't want an install
of a non-gmp cloog-polylib to render any cloog-isl unusable,
or vice versa.

The down-side is that we require users of CLooG to specify
the integer type used inside the CLooG library they want to use
by defining one of CLOOG_INT_INT, CLOOG_INT_LONG, CLOOG_INT_LONG_LONG or
CLOOG_INT_GMP, but we will somewhat alleviate this in the next commit.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
  • Loading branch information
Sven Verdoolaege committed Jan 26, 2010
1 parent 0cfa918 commit 5bacff0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 14 deletions.
3 changes: 1 addition & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ pkginclude_HEADERS = \
include/cloog/block.h \
include/cloog/clast.h \
include/cloog/cloog.h \
include/cloog/int.h \
include/cloog/matrix.h \
include/cloog/state.h \
include/cloog/domain.h \
Expand All @@ -113,8 +114,6 @@ pkginclude_HEADERS = \
include/cloog/program.h \
include/cloog/statement.h \
include/cloog/version.h
nodist_pkginclude_HEADERS = \
include/cloog/int.h

pkgmatrixincludedir = $(pkgincludedir)/matrix
pkgmatrixinclude_HEADERS = \
Expand Down
1 change: 0 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
libtoolize -c --force
aclocal -I m4
autoheader
automake -a -c --foreign
autoconf
if test -f isl/autogen.sh; then
Expand Down
7 changes: 4 additions & 3 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ case "$BITS" in
done
;;
esac
AH_TEMPLATE(CLOOG_INT_INT)
AH_TEMPLATE(CLOOG_INT_LONG)
AH_TEMPLATE(CLOOG_INT_LONG_LONG)
AH_TEMPLATE(CLOOG_INT_GMP)
AC_DEFINE_UNQUOTED(AS_TR_CPP(CLOOG_INT_$cl_cv_int_type))

AC_SUBST(GIT_INDEX)
Expand All @@ -296,9 +300,6 @@ AC_SUBST(INSTALL)

AC_SUBST(BITS)

AC_CONFIG_HEADERS(config.h)
AC_CONFIG_HEADERS(include/cloog/int.h)
AC_CONFIG_HEADERS(include/cloog/options.h)
AC_CONFIG_FILES(Makefile test/Makefile include/cloog/polylib/backend.h)
AC_CONFIG_FILES(autoconf/Doxyfile)
AC_CONFIG_FILES(doc/Makefile)
Expand Down
5 changes: 0 additions & 5 deletions include/cloog/int.h.in → include/cloog/int.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#ifndef CLOOG_INT_H
#define CLOOG_INT_H

#undef CLOOG_INT_INT
#undef CLOOG_INT_LONG
#undef CLOOG_INT_LONG_LONG
#undef CLOOG_INT_GMP

#include <assert.h>
#include <stdio.h>
#if defined(CLOOG_INT_GMP)
Expand Down
4 changes: 4 additions & 0 deletions include/cloog/isl/cloog.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#ifndef CLOOG_ISL_H
#define CLOOG_ISL_H

#ifndef CLOOG_INT_GMP
#define CLOOG_INT_GMP
#endif

#include <cloog/cloog.h>
#include <cloog/isl/constraintset.h>
#include <cloog/isl/domain.h>
Expand Down
3 changes: 0 additions & 3 deletions include/cloog/options.h.in → include/cloog/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ extern "C"
#define CLOOG_MEMORY
*/
#define CLOOG_SCALARS
#undef CLOOG_RUSAGE

struct cloogoptions;
typedef struct cloogoptions CloogOptions;
Expand Down Expand Up @@ -91,9 +90,7 @@ struct cloogoptions

/* MISC OPTIONS */
char * name ; /* Name of the input file. */
#ifdef CLOOG_RUSAGE
float time ; /* Time spent for code generation in seconds. */
#endif
#ifdef CLOOG_MEMORY
int memory ; /* Memory spent for code generation in kilobytes. */
#endif
Expand Down

0 comments on commit 5bacff0

Please sign in to comment.