2007-08-10 20:38:57 +00:00
|
|
|
AC_INIT([libburn], [0.3.9], [http://libburnia-project.org])
|
2006-08-15 20:37:04 +00:00
|
|
|
AC_PREREQ([2.50])
|
|
|
|
dnl AC_CONFIG_HEADER([config.h])
|
|
|
|
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
AC_CANONICAL_TARGET
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE([subdir-objects])
|
|
|
|
|
|
|
|
dnl Making releases:
|
|
|
|
dnl BURN_MICRO_VERSION += 1;
|
|
|
|
dnl BURN_INTERFACE_AGE += 1;
|
|
|
|
dnl BURN_BINARY_AGE += 1;
|
|
|
|
dnl if any functions have been added, set BURN_INTERFACE_AGE to 0.
|
|
|
|
dnl if backwards compatibility has been broken,
|
|
|
|
dnl set BURN_BINARY_AGE and BURN_INTERFACE_AGE to 0.
|
|
|
|
dnl
|
|
|
|
dnl if MAJOR or MINOR version changes, be sure to change AC_INIT above to match
|
|
|
|
dnl
|
|
|
|
BURN_MAJOR_VERSION=0
|
2007-01-16 15:11:41 +00:00
|
|
|
BURN_MINOR_VERSION=3
|
2007-07-20 18:53:32 +00:00
|
|
|
BURN_MICRO_VERSION=9
|
2006-08-15 20:37:04 +00:00
|
|
|
BURN_INTERFACE_AGE=0
|
|
|
|
BURN_BINARY_AGE=0
|
|
|
|
BURN_VERSION=$BURN_MAJOR_VERSION.$BURN_MINOR_VERSION.$BURN_MICRO_VERSION
|
|
|
|
|
|
|
|
AC_SUBST(BURN_MAJOR_VERSION)
|
|
|
|
AC_SUBST(BURN_MINOR_VERSION)
|
|
|
|
AC_SUBST(BURN_MICRO_VERSION)
|
|
|
|
AC_SUBST(BURN_INTERFACE_AGE)
|
|
|
|
AC_SUBST(BURN_BINARY_AGE)
|
|
|
|
AC_SUBST(BURN_VERSION)
|
|
|
|
|
|
|
|
dnl Libtool versioning
|
|
|
|
LT_RELEASE=$BURN_MAJOR_VERSION.$BURN_MINOR_VERSION
|
|
|
|
LT_CURRENT=`expr $BURN_MICRO_VERSION - $BURN_INTERFACE_AGE`
|
|
|
|
LT_REVISION=$BURN_INTERFACE_AGE
|
|
|
|
LT_AGE=`expr $BURN_BINARY_AGE - $BURN_INTERFACE_AGE`
|
|
|
|
LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
|
|
|
|
|
|
|
|
AC_SUBST(LT_RELEASE)
|
|
|
|
AC_SUBST(LT_CURRENT)
|
|
|
|
AC_SUBST(LT_REVISION)
|
|
|
|
AC_SUBST(LT_AGE)
|
|
|
|
AC_SUBST(LT_CURRENT_MINUS_AGE)
|
|
|
|
|
|
|
|
AC_PREFIX_DEFAULT([/usr/local])
|
|
|
|
test "$prefix" = "NONE" && prefix=$ac_default_prefix
|
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
AM_PROG_CC_C_O
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
|
|
|
|
dnl Large file support
|
|
|
|
AC_SYS_LARGEFILE
|
|
|
|
AC_FUNC_FSEEKO
|
2006-12-04 22:01:21 +00:00
|
|
|
AC_CHECK_FUNC([fseeko])
|
2006-08-15 20:37:04 +00:00
|
|
|
if test ! $ac_cv_func_fseeko; then
|
|
|
|
AC_ERROR([Libburn requires largefile support.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
AC_SUBST(LIBTOOL_DEPS)
|
|
|
|
LIBTOOL="$LIBTOOL --silent"
|
|
|
|
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS()
|
|
|
|
|
|
|
|
THREAD_LIBS=-lpthread
|
|
|
|
AC_SUBST(THREAD_LIBS)
|
|
|
|
|
|
|
|
TARGET_SHIZZLE
|
2006-10-12 17:33:22 +00:00
|
|
|
AC_SUBST(ARCH)
|
|
|
|
AC_SUBST(LIBBURN_ARCH_LIBS)
|
2006-08-15 20:37:04 +00:00
|
|
|
|
|
|
|
dnl Add compiler-specific flags
|
|
|
|
|
|
|
|
dnl See if the user wants aggressive optimizations of the code
|
|
|
|
AC_ARG_ENABLE(debug,
|
|
|
|
[ --enable-debug Disable aggressive optimizations [default=yes]],
|
|
|
|
, enable_debug=yes)
|
|
|
|
if test x$enable_debug != xyes; then
|
|
|
|
if test x$GCC = xyes; then
|
|
|
|
CFLAGS="$CFLAGS -O3"
|
|
|
|
CFLAGS="$CFLAGS -fexpensive-optimizations"
|
|
|
|
fi
|
|
|
|
CFLAGS="$CFLAGS -DNDEBUG"
|
|
|
|
else
|
|
|
|
if test x$GCC = xyes; then
|
|
|
|
CFLAGS="$CFLAGS -g -pedantic -Wall"
|
|
|
|
fi
|
|
|
|
CFLAGS="$CFLAGS -DDEBUG"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
doc/doxygen.conf
|
|
|
|
version.h
|
2007-08-10 20:29:59 +00:00
|
|
|
libburn-5.pc
|
2006-08-15 20:37:04 +00:00
|
|
|
])
|
|
|
|
AC_OUTPUT
|