2008-04-28 12:34:39 +00:00
|
|
|
AC_INIT([libisoburn], [0.1.5], [http://libburnia-project.org])
|
2007-09-14 04:32:05 +00:00
|
|
|
AC_PREREQ([2.50])
|
|
|
|
dnl AC_CONFIG_HEADER([config.h])
|
|
|
|
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
AC_CANONICAL_TARGET
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE([subdir-objects])
|
|
|
|
|
2008-04-28 12:34:39 +00:00
|
|
|
dnl Hint: Search list for version code aspects:
|
|
|
|
dnl /AC_INT(
|
|
|
|
dnl /ISOBURN_.*_VERSION
|
|
|
|
dnl /LT_.*
|
|
|
|
dnl /LIB.*_REQUIRED
|
|
|
|
|
2008-01-29 18:44:54 +00:00
|
|
|
dnl The API version codes are now defined in libisoburn/libisoburn.h
|
|
|
|
dnl #define isoburn_header_version_*
|
|
|
|
dnl configure.ac only rules the libtool revision numbering about
|
|
|
|
dnl LT_CURREN, LT_AGE, LT_REVISION where SONAME becomes LT_CURRENT - LT_AGE
|
|
|
|
dnl
|
|
|
|
dnl These three are only copies to provide libtool with unused LT_RELEASE
|
2008-01-26 12:06:26 +00:00
|
|
|
ISOBURN_MAJOR_VERSION=0
|
2008-02-15 21:19:24 +00:00
|
|
|
ISOBURN_MINOR_VERSION=1
|
2008-04-28 12:34:39 +00:00
|
|
|
ISOBURN_MICRO_VERSION=5
|
2008-01-29 18:44:54 +00:00
|
|
|
dnl ISOBURN_VERSION=$ISOBURN_MAJOR_VERSION.$ISOBURN_MINOR_VERSION.$ISOBURN_MICRO_VERSION
|
|
|
|
|
2008-01-26 12:06:26 +00:00
|
|
|
AC_SUBST(ISOBURN_MAJOR_VERSION)
|
|
|
|
AC_SUBST(ISOBURN_MINOR_VERSION)
|
|
|
|
AC_SUBST(ISOBURN_MICRO_VERSION)
|
2008-01-29 18:44:54 +00:00
|
|
|
dnl AC_SUBST(ISOBURN_VERSION)
|
2007-09-14 04:32:05 +00:00
|
|
|
|
|
|
|
dnl Libtool versioning
|
2008-02-15 21:19:24 +00:00
|
|
|
dnl Generate libisoburn.so.1.x.y
|
2008-01-29 18:44:54 +00:00
|
|
|
dnl SONAME will become LT_CURRENT - LT_AGE
|
2008-02-15 21:19:24 +00:00
|
|
|
dnl
|
2008-04-28 12:34:39 +00:00
|
|
|
dnl ts A80428
|
|
|
|
dnl ### This was the release version 0.1.4 = libisoburn.so.1.3.0
|
|
|
|
dnl This is the development version after stable release libisoburn.so.1.3.0
|
|
|
|
dnl LT_CURRENT++, LT_AGE++ have not happened yet.
|
2008-01-29 18:44:54 +00:00
|
|
|
dnl
|
2008-04-28 12:34:39 +00:00
|
|
|
dnl SONAME = 4 - 3 = 1 . Library name = libburn.so.1.3.0
|
2008-01-26 12:06:26 +00:00
|
|
|
LT_RELEASE=$ISOBURN_MAJOR_VERSION.$ISOBURN_MINOR_VERSION
|
2008-04-28 12:34:39 +00:00
|
|
|
LT_CURRENT=4
|
|
|
|
LT_AGE=3
|
2008-03-12 13:19:10 +00:00
|
|
|
LT_REVISION=0
|
2007-09-14 04:32:05 +00:00
|
|
|
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
|
|
|
|
AC_CHECK_FUNC([fseeko])
|
|
|
|
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
|
|
|
|
AC_SUBST(ARCH)
|
|
|
|
AC_SUBST(LIBBURN_ARCH_LIBS)
|
|
|
|
|
2008-02-01 19:59:12 +00:00
|
|
|
|
|
|
|
dnl Check whether there is readline-devel and readline-runtime.
|
|
|
|
dnl If not, erase this macro which would enable use of readline(),add_history()
|
|
|
|
READLINE_DEF="-DXorriso_with_readlinE"
|
|
|
|
dnl The empty yes case obviously causes -lreadline to be linked
|
|
|
|
AC_CHECK_HEADER(readline/readline.h, AC_CHECK_LIB(readline, readline, , READLINE_DEF= ), READLINE_DEF= )
|
|
|
|
dnl The X= in the yes case prevents that -lreadline gets linked twice
|
|
|
|
AC_CHECK_HEADER(readline/history.h, AC_CHECK_LIB(readline, add_history, X= , READLINE_DEF= ), READLINE_DEF= )
|
|
|
|
AC_SUBST(READLINE_DEF)
|
|
|
|
|
|
|
|
|
|
|
|
AC_CHECK_HEADER(libburn/libburn.h)
|
|
|
|
AC_CHECK_HEADER(libisofs/libisofs.h)
|
|
|
|
|
2008-02-02 13:11:38 +00:00
|
|
|
dnl Check for proper library versions
|
2008-04-28 12:34:39 +00:00
|
|
|
LIBBURN_REQUIRED=0.4.4
|
|
|
|
LIBISOFS_REQUIRED=0.6.4
|
2008-02-02 13:11:38 +00:00
|
|
|
PKG_CHECK_MODULES(LIBBURN, libburn-1 >= $LIBBURN_REQUIRED)
|
|
|
|
PKG_CHECK_MODULES(LIBISOFS, libisofs-1 >= $LIBISOFS_REQUIRED)
|
2008-02-01 19:59:12 +00:00
|
|
|
|
2007-09-14 04:32:05 +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
|
2008-02-01 19:59:12 +00:00
|
|
|
libisoburn-1.pc
|
2007-09-14 04:32:05 +00:00
|
|
|
])
|
|
|
|
AC_OUTPUT
|