dnl @(#) $Id$ dnl Copyright (c) 2005, 2008 Mo McRoberts. dnl 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 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 names of the author(s) of this software may not be used to endorse dnl or promote products derived from this software without specific prior dnl written permission. dnl dnl THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY dnl AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL dnl AUTHORS OF THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, dnl SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED dnl TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR dnl PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF dnl LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING dnl NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS dnl SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. AC_INIT(libiri, 2.0) #AC_CONFIG_SRCDIR([include/iri.h]) AC_CONFIG_SRCDIR([libiri.pc.in]) AM_INIT_AUTOMAKE([foreign]) AM_MAINTAINER_MODE CPPFLAGS="$CPPFLAGS -W -Wall -D_REENTRANT -I\${top_srcdir}/include" export CPPFLAGS CFLAGS="$CFLAGS -g -O0" export CFLAGS AC_PROG_CC AC_PROG_LIBTOOL spfx="${prefix}" sepfx="${exec_prefix}" test x"${prefix}" = x"NONE" && prefix="${ac_default_prefix}" test x"${exec_prefix}" = x"NONE" && exec_prefix="${prefix}" IRI_VERSION="${VERSION}" AC_SUBST([IRI_VERSION]) IRI_CFLAGS="-I`eval echo $includedir`" AC_SUBST([IRI_CFLAGS]) IRI_INCLUDES="-I`eval echo $includedir`" AC_SUBST([IRI_INCLUDES]) IRI_LIBS="-L`eval echo $libdir` -liri" AC_SUBST([IRI_LIBS]) prefix="${spfx}" exec_prefix="${sepfx}" AC_CONFIG_HEADER([config.h]) AC_CONFIG_FILES([Makefile include/Makefile libiri/Makefile iri-config/iri-config.c iri-config/Makefile tests/Makefile libiri.pc ]) AC_OUTPUT