Change BSD-2.0 to BSD-3-Clause
[platform/upstream/libiri.git] / configure.ac
1 dnl @(#) $Id$
2
3 dnl Copyright (c) 2005, 2008 Mo McRoberts.
4 dnl
5 dnl Redistribution and use in source and binary forms, with or without
6 dnl modification, are permitted provided that the following conditions
7 dnl are met:
8 dnl 1. Redistributions of source code must retain the above copyright
9 dnl    notice, this list of conditions and the following disclaimer.
10 dnl 2. Redistributions in binary form must reproduce the above copyright
11 dnl    notice, this list of conditions and the following disclaimer in the
12 dnl    documentation and/or other materials provided with the distribution.
13 dnl 3. The names of the author(s) of this software may not be used to endorse
14 dnl    or promote products derived from this software without specific prior
15 dnl    written permission.
16 dnl
17 dnl THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 
18 dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 
19 dnl AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
20 dnl AUTHORS OF THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 dnl SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
22 dnl TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23 dnl PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 
24 dnl LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 dnl NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 dnl SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28 AC_INIT(libiri, 2.0)
29 AC_CONFIG_SRCDIR([include/iri.h])
30 AM_INIT_AUTOMAKE([foreign])
31 AM_MAINTAINER_MODE
32
33 CPPFLAGS="$CPPFLAGS -W -Wall -D_REENTRANT -I\${top_srcdir}/include"
34 export CPPFLAGS
35
36 CFLAGS="$CFLAGS -g -O0"
37 export CFLAGS
38
39 AC_PROG_CC
40 AC_PROG_LIBTOOL
41
42 spfx="${prefix}"
43 sepfx="${exec_prefix}"
44 test x"${prefix}" = x"NONE" && prefix="${ac_default_prefix}"
45 test x"${exec_prefix}" = x"NONE" && exec_prefix="${prefix}"
46
47 IRI_VERSION="${VERSION}"
48 AC_SUBST([IRI_VERSION])
49
50 IRI_CFLAGS="-I`eval echo $includedir`"
51 AC_SUBST([IRI_CFLAGS])
52
53 IRI_INCLUDES="-I`eval echo $includedir`"
54 AC_SUBST([IRI_INCLUDES])
55
56 IRI_LIBS="-L`eval echo $libdir` -liri"
57 AC_SUBST([IRI_LIBS])
58
59 prefix="${spfx}"
60 exec_prefix="${sepfx}"
61
62 AC_CONFIG_HEADER([config.h])
63
64 AC_CONFIG_FILES([Makefile
65 include/Makefile
66 libiri/Makefile
67 iri-config/iri-config.c
68 iri-config/Makefile
69 tests/Makefile
70 libiri.pc
71 ])
72
73 AC_OUTPUT
74