-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathconfigure.ac
More file actions
191 lines (164 loc) · 8.44 KB
/
Copy pathconfigure.ac
File metadata and controls
191 lines (164 loc) · 8.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
dnl
dnl /*+------------------------------------------------------------------**
dnl ** OpenScop Library **
dnl **------------------------------------------------------------------**
dnl ** configure.in **
dnl **------------------------------------------------------------------**
dnl ** First version: 30/04/2008 **
dnl **------------------------------------------------------------------**
dnl
dnl
dnl **************************************************************************
dnl * OpenScop: Structures and formats for polyhedral tools to talk together *
dnl **************************************************************************
dnl * ,___,,_,__,,__,,__,,__,,_,__,,_,__,,__,,___,_,__,,_,__, *
dnl * / / / // // // // / / / // // / / // / /|,_, *
dnl * / / / // // // // / / / // // / / // / / / /\ *
dnl * |~~~|~|~~~|~~~|~~~|~~~|~|~~~|~|~~~|~~~|~~~|~|~~~|~|~~~|/_/ \ *
dnl * | G |C| P | = | L | P |=| = |C| = | = | = |=| = |=| C |\ \ /\ *
dnl * | R |l| o | = | e | l |=| = |a| = | = | = |=| = |=| L | \# \ /\ *
dnl * | A |a| l | = | t | u |=| = |n| = | = | = |=| = |=| o | |\# \ \ *
dnl * | P |n| l | = | s | t |=| = |d| = | = | = | | |=| o | | \# \ \ *
dnl * | H | | y | | e | o | | = |l| | | = | | | | G | | \ \ \ *
dnl * | I | | | | e | | | | | | | | | | | | | \ \ \ *
dnl * | T | | | | | | | | | | | | | | | | | \ \ \ *
dnl * | E | | | | | | | | | | | | | | | | | \ \ \ *
dnl * | * |*| * | * | * | * |*| * |*| * | * | * |*| * |*| * | / \* \ \ *
dnl * | O |p| e | n | S | c |o| p |-| L | i | b |r| a |r| y |/ \ \ / *
dnl * '---'-'---'---'---'---'-'---'-'---'---'---'-'---'-'---' '--' *
dnl * *
dnl * Copyright (C) 2008 University Paris-Sud 11 and INRIA *
dnl * *
dnl * (3-clause BSD license) *
dnl * Redistribution and use in source and binary forms, with or without *
dnl * modification, are permitted provided that the following conditions *
dnl * are met: *
dnl * *
dnl * 1. Redistributions of source code must retain the above copyright *
dnl * notice, this list of conditions and the following disclaimer. *
dnl * 2. Redistributions in binary form must reproduce the above copyright *
dnl * notice, this list of conditions and the following disclaimer in the *
dnl * documentation and/or other materials provided with the distribution.*
dnl * 3. The name of the author may not be used to endorse or promote *
dnl * products derived from this software without specific prior written *
dnl * permission. *
dnl * *
dnl * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR *
dnl * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *
dnl * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
dnl * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, *
dnl * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
dnl * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR *
dnl * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) *
dnl * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, *
dnl * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING *
dnl * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE *
dnl * POSSIBILITY OF SUCH DAMAGE. *
dnl * *
dnl * OpenScop Library, a library to manipulate OpenScop formats and data *
dnl * structures. Written by: *
dnl * Cedric Bastoul <Cedric.Bastoul@u-psud.fr> and *
dnl * Louis-Noel Pouchet <Louis-Noel.pouchet@inria.fr> *
dnl * *
dnl **************************************************************************/
dnl
dnl Input file for autoconf to build a configuration shellscript.
m4_define([version_major], [0])
m4_define([version_minor], [9])
m4_define([version_revision], [7])
AC_PREREQ(2.53)
dnl Fill here the @bug email adress.
AC_INIT([osl], [version_major.version_minor.version_revision],
[cedric.bastoul@u-psud.fr,pouchet@cse.ohio-state.edu])
dnl A common file, which serve as a test.
AC_CONFIG_SRCDIR([include/osl/macros.h])
dnl Put as most as possible configuration files to an auxialiry
dnl directory.
AC_CONFIG_AUX_DIR([autoconf])
AC_CONFIG_MACRO_DIR([m4])
dnl Initialize automake.
AM_INIT_AUTOMAKE([-Wall foreign])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
dnl /**************************************************************************
dnl * Checking *
dnl **************************************************************************/
dnl Checks for programs.
AC_PROG_CC
AM_PROG_AR
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_CHECK_PROG(CD, cd)
AC_PROG_INSTALL
LT_INIT
AC_CHECK_PROGS(DOXYGEN, doxygen, doxygen, [])
AC_CHECK_PROGS(TEXI2PDF, texi2pdf, texi2pdf, [])
AM_CONDITIONAL(GENERATE_DOC, test -n "$TEXI2PDF" -a -n "$DOXYGEN")
AX_CC_MAXOPT
AC_SUBST(CFLAGS_WARN)
AX_CFLAGS_WARN_ALL(CFLAGS_WARN)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
dnl Checks for header files.
AC_CHECK_HEADERS([errno.h stddef.h stdlib.h string.h strings.h unistd.h])
dnl Checks for library functions.
AC_CHECK_FUNCS(strtol)
dnl /**************************************************************************
dnl * Option setting *
dnl **************************************************************************/
dnl /**************************************************************************
dnl * Where is GMP? *
dnl **************************************************************************/
gmp_flag="OSL_GMP_IS_HERE"
AX_SUBMODULE(gmp,no|system|build,system)
case "$with_gmp" in
build)
CPPFLAGS="-D$gmp_flag -I$gmp_srcdir -I$with_gmp_builddir $CPPFLAGS"
LIBS="$with_gmp_builddir/libgmp.la $LIBS"
LDFLAGS="-L$with_gmp_builddir $LDFLAGS"
;;
system)
CPPFLAGS="-D$gmp_flag $CPPFLAGS"
LIBS="-lgmp $LIBS"
if test "x$with_gmp_prefix" != "x"; then
CPPFLAGS="-I$with_gmp_prefix/include $CPPFLAGS"
LDFLAGS="-L$with_gmp_prefix/lib $LDFLAGS"
fi
dnl AC_CHECK_LIB doesn't use LDFLAGS --> not suitable for the build case.
AC_CHECK_LIB(gmp,
__gmpz_init,
[],
[AC_MSG_ERROR("Can't find gmp library.")])
;;
esac
case "$with_gmp" in
build|system)
AC_CHECK_HEADER(gmp.h,
[],
[AC_MSG_ERROR("Can't find gmp headers.")])
;;
esac
dnl /**************************************************************************
dnl * Substitutions *
dnl **************************************************************************/
dnl Substitutions to do.
AC_SUBST(ac_aux_dir)
AC_SUBST(abs_top_srcdir)
AC_SUBST(VERSION_MAJOR)
AC_SUBST(VERSION_MINOR)
AC_SUBST(VERSION_REVISION)
AX_CREATE_PKGCONFIG_INFO
dnl Configure Makefiles.
AC_CONFIG_FILES([
Makefile
doc/Doxyfile
include/osl/scop.h
],
[test -z "$CONFIG_HEADERS" || echo timestamp > source/stamp-h.in])
AC_OUTPUT
echo " /*-----------------------------------------------*"
echo " * OpenScop Library configuration is OK *"
echo " *-----------------------------------------------*/"
echo "It appears that your system is OK to start the OpenScop Library compilation."
echo "You need now to type \"make\". Then type \"make install\" to install it on your"
echo "system (log as root if necessary)."