AC_INIT([difxio], [3.2.0], [Walter Brisken ]) AM_CONFIG_HEADER([config.h]) #shared library versioning LIBRARY_VERSION=0:0:0 # | | | # +------+ | +---+ # | | | # current:revision:age # | | | # | | +- increment if interfaces have been added # | | set to zero if interfaces have been removed # or changed # | +- increment if source code has changed # | set to zero if current is incremented # +- increment if interfaces have been added, removed or changed PACKAGE_VERSION=AC_PACKAGE_VERSION AC_SUBST([PACKAGE_VERSION]) AC_SUBST([LIBRARY_VERSION]) AM_INIT_AUTOMAKE([foreign]) AC_PROG_CC AC_PROG_LIBTOOL AM_SANITY_CHECK AC_ARG_WITH(spice-root, [ --with-spice-root=ROOT spice root is ROOT (optional).], spice_root="$withval", spice_root="$SPICE_ROOT") if test x"$spice_root" != "x"; then CFLAGS="$CFLAGS -I$spice_root/include" SPICE_LIBS="$spice_root/lib/cspice.a" spice_enabled=true echo "Spice enabled" AC_DEFINE([HAVE_SPICE], [1], [1=has spice library]) else SPICE_LIBS="" spice_enabled=false echo "Spice disabled" AC_DEFINE([HAVE_SPICE], [0], [1=has spice library]) fi AM_CONDITIONAL(HAVE_SPICE, $spice_enabled) spicelibs="$SPICE_LIBS" AC_SUBST(spicelibs) version=AC_PACKAGE_VERSION AC_SUBST(version) AC_OUTPUT([ Makefile \ difxio.pc \ difxio.spec \ difxio/Makefile \ tests/Makefile \ utils/Makefile \ ])