gpu.c: avoid use of isl_map_plain_is_fixed
[ppcg.git] / configure.ac
bloba8ddf55cacf71102cd7d412a9fbba0948ae4ba02
1 AC_INIT([ppcg], [0.00])
2 AC_CONFIG_AUX_DIR([.])
3 AC_CONFIG_MACRO_DIR([m4])
4 AM_INIT_AUTOMAKE([foreign])
5 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
7 AC_PROG_CC
8 AC_PROG_LIBTOOL
9 PKG_PROG_PKG_CONFIG
11 AX_SUBMODULE(gmp,system,system)
13 if test "x$with_gmp_prefix" != "x"; then
14         GMP_CPPFLAGS="-I$with_gmp_prefix/include"
17 AX_SUBMODULE(isl,build|bundled|system,bundled)
18 AM_CONDITIONAL(BUNDLED_ISL, test $with_isl = bundled)
20 AC_SUBST(ISL_CFLAGS)
21 AC_SUBST(ISL_LIBS)
22 case "$with_isl" in
23 bundled)
24         ISL_CFLAGS="-I\$(top_srcdir)/isl/include -I\$(top_builddir)/isl/include"
25         ISL_CFLAGS="$ISL_CFLAGS $GMP_CPPFLAGS"
26         ppcg_configure_args="$ppcg_configure_args --with-isl-builddir=../isl"
27         ppcg_configure_args="$ppcg_configure_args --with-isl=build"
28         ;;
29 build)
30         ISL_BUILDDIR=`echo @abs_builddir@ | $with_isl_builddir/config.status --file=-`
31         ppcg_configure_args="$ppcg_configure_args --with-isl-builddir=$ISL_BUILDDIR"
32         ISL_CFLAGS="-I$isl_srcdir/include -I$ISL_BUILDDIR/include"
33         ISL_CFLAGS="$ISL_CFLAGS $GMP_CPPFLAGS"
34         ISL_LIBS="$with_isl_builddir/libisl.la -lgmp"
35         ;;
36 system)
37         PKG_CHECK_MODULES([ISL], [isl])
38 esac
40 AX_SUBMODULE(pet,bundled|system,bundled)
41 AM_CONDITIONAL(BUNDLED_PET, test $with_pet = bundled)
43 AC_SUBST(PET_CFLAGS)
44 AC_SUBST(PET_LIBS)
45 case "$with_pet" in
46 bundled)
47         PET_CFLAGS="$PET_CFLAGS -I\$(top_srcdir)/pet/include"
48         ;;
49 system)
50         PKG_CHECK_MODULES([PET], [pet])
51         ;;
52 esac
54 AC_SUBST(POLYBENCH_DIR)
55 AC_SUBST(extra_tests)
56 AC_ARG_WITH([polybench],
57         [AS_HELP_STRING([--with-polybench=DIR], [PolyBench location])],
58         [
59         if test -f "$with_polybench/utilities/benchmark_list"; then
60                 POLYBENCH_DIR=$with_polybench
61                 extra_tests="$extra_tests polybench_test.sh"
62         fi
63         ])
65 AX_DETECT_GIT_HEAD
66 echo '#define GIT_HEAD_ID "'$GIT_HEAD_ID'"' > gitversion.h
68 AC_CONFIG_FILES(Makefile)
69 AC_CONFIG_FILES([polybench_test.sh], [chmod +x polybench_test.sh])
70 if test $with_isl = bundled; then
71         AC_CONFIG_SUBDIRS(isl)
73 if test $with_pet = bundled; then
74         AC_CONFIG_SUBDIRS(pet)
76 AC_CONFIG_COMMANDS_POST([
77         dnl pass on arguments to subdir configures, but don't
78         dnl add them to config.status
79         ac_configure_args="$ac_configure_args $ppcg_configure_args"
81 AC_OUTPUT