1 # configure.ac for libpcp -*- Autoconf -*-
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright 2009 Free Software Foundation, Inc.
6 # This file is part of GCC.
8 # GCC is free software; you can redistribute it and/or modify it under
9 # the terms of the GNU General Public License as published by the Free
10 # Software Foundation; either version 2, or (at your option) any
13 # GCC is distributed in the hope that it will be useful, but WITHOUT
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16 # License #for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with GCC; see the file COPYING. If not, write to the Free
20 # Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
24 AC_INIT(libpcp, [Polyhedral Compilation Package Library ], gcc-bugs@gcc.gnu.org, libpcp)
25 AC_CONFIG_SRCDIR(pcp.h)
26 AC_CONFIG_HEADER(auto-host.h:config.in)
28 # Checks for programs.
33 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
34 AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
35 AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
36 AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
38 # Figure out what compiler warnings we can enable.
39 # See config/warnings.m4 for details.
41 ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \
42 -Wmissing-prototypes -Wold-style-definition \
43 -Wmissing-format-attribute -Wcast-qual])
44 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long])
46 # Only enable with --enable-werror-always until existing warnings are
48 ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual])
50 # Checks for header files.
51 AC_CHECK_HEADERS(stddef.h string.h stdio.h)
52 GCC_HEADER_STDINT(gstdint.h)
54 AC_ARG_ENABLE(maintainer-mode,
55 [ --enable-maintainer-mode enable rules only needed by maintainers],,
56 enable_maintainer_mode=no)
58 if test "x$enable_maintainer_mode" = xno; then
66 # Checks for typedefs, structures, and compiler characteristics.
71 AC_CHECK_FUNCS([floor])
74 AC_ARG_VAR(GMPLIBS,[How to link GMP])
75 AC_ARG_VAR(GMPINC,[How to find GMP include files])
77 AC_ARG_VAR(PPLLIBS,[How to link PPL])
78 AC_ARG_VAR(PPLINC,[How to find PPL include files])
80 AC_ARG_VAR(CLOOGLIBS,[How to link CLOOG])
81 AC_ARG_VAR(CLOOGINC,[How to find CLOOG include files])
82 if test x${CLOOGLIBS} = x ; then
83 AC_MSG_ERROR([cannot build libPCP without CLooG])
88 AC_CONFIG_HEADERS(config.h:config.in, [echo timestamp > stamp-h1])
89 AC_CONFIG_FILES(Makefile)