configure.ac (xorriso-1.5.2) | : | configure.ac (xorriso-1.5.4) | ||
---|---|---|---|---|
# configure.ac stems from xorriso/configure_ac.txt and leads to ./configure | # configure.ac stems from xorriso/configure_ac.txt and leads to ./configure | |||
# Copyright (c) 2007 - 2019 Thomas Schmitt <scdbackup@gmx.net> | # Copyright (c) 2007 - 2021 Thomas Schmitt <scdbackup@gmx.net> | |||
# Provided under GPL version 2 or later. | # Provided under GPL version 2 or later. | |||
AC_INIT([xorriso], [1.5.2], [http://libburnia-project.org]) | AC_INIT([xorriso], [1.5.4], [http://libburnia-project.org]) | |||
AC_PREREQ([2.50]) | AC_PREREQ([2.50]) | |||
AC_CANONICAL_HOST | AC_CANONICAL_HOST | |||
AC_CANONICAL_TARGET | AC_CANONICAL_TARGET | |||
LIBBURNIA_SET_FLAGS | LIBBURNIA_SET_FLAGS | |||
AM_INIT_AUTOMAKE([subdir-objects]) | AM_INIT_AUTOMAKE([subdir-objects]) | |||
AC_CONFIG_MACRO_DIR([./]) | AC_CONFIG_MACRO_DIR([./]) | |||
dnl Let autoheader produce config.h.in and let configure produce config.h | dnl Let autoheader produce config.h.in and let configure produce config.h | |||
dnl This saves about 500 characters of compile message per source file. | dnl This saves about 500 characters of compile message per source file. | |||
AC_CONFIG_HEADER(config.h) | AC_CONFIG_HEADER(config.h) | |||
AH_TEMPLATE([Xorriso_standalonE], [Define to prepare sources for statically link ed xorriso]) | AH_TEMPLATE([Xorriso_standalonE], [Define to prepare sources for statically link ed xorriso]) | |||
AC_DEFINE([Xorriso_standalonE], []) | AC_DEFINE([Xorriso_standalonE], []) | |||
BURN_MAJOR_VERSION=1 | BURN_MAJOR_VERSION=1 | |||
BURN_MINOR_VERSION=5 | BURN_MINOR_VERSION=5 | |||
BURN_MICRO_VERSION=2 | BURN_MICRO_VERSION=4 | |||
AC_SUBST(BURN_MAJOR_VERSION) | AC_SUBST(BURN_MAJOR_VERSION) | |||
AC_SUBST(BURN_MINOR_VERSION) | AC_SUBST(BURN_MINOR_VERSION) | |||
AC_SUBST(BURN_MICRO_VERSION) | AC_SUBST(BURN_MICRO_VERSION) | |||
LIBISOFS_MAJOR_VERSION=1 | LIBISOFS_MAJOR_VERSION=1 | |||
LIBISOFS_MINOR_VERSION=5 | LIBISOFS_MINOR_VERSION=5 | |||
LIBISOFS_MICRO_VERSION=2 | LIBISOFS_MICRO_VERSION=4 | |||
AC_SUBST(LIBISOFS_MAJOR_VERSION) | AC_SUBST(LIBISOFS_MAJOR_VERSION) | |||
AC_SUBST(LIBISOFS_MINOR_VERSION) | AC_SUBST(LIBISOFS_MINOR_VERSION) | |||
AC_SUBST(LIBISOFS_MICRO_VERSION) | AC_SUBST(LIBISOFS_MICRO_VERSION) | |||
dnl The API version codes are defined in libisoburn/libisoburn.h | dnl The API version codes are defined in libisoburn/libisoburn.h | |||
dnl #define isoburn_header_version_* | dnl #define isoburn_header_version_* | |||
AC_PREFIX_DEFAULT([/usr/local]) | AC_PREFIX_DEFAULT([/usr/local]) | |||
test "$prefix" = "NONE" && prefix=$ac_default_prefix | test "$prefix" = "NONE" && prefix=$ac_default_prefix | |||
skipping to change at line 135 | skipping to change at line 135 | |||
dnl (sg-linux and sg-freebsd use statvfs() unconditionally) | dnl (sg-linux and sg-freebsd use statvfs() unconditionally) | |||
AH_TEMPLATE([Libburn_os_has_statvfS], [Define to use statvfs() with libburn stdi o]) | AH_TEMPLATE([Libburn_os_has_statvfS], [Define to use statvfs() with libburn stdi o]) | |||
STATVFS_DEF=-DLibburn_os_has_statvfS | STATVFS_DEF=-DLibburn_os_has_statvfS | |||
AC_CHECK_HEADER(sys/statvfs.h, X=, STATVFS_DEF=) | AC_CHECK_HEADER(sys/statvfs.h, X=, STATVFS_DEF=) | |||
AC_CHECK_FUNC([statvfs], X=, STATVFS_DEF=) | AC_CHECK_FUNC([statvfs], X=, STATVFS_DEF=) | |||
if test x$STATVFS_DEF = x-DLibburn_os_has_statvfS | if test x$STATVFS_DEF = x-DLibburn_os_has_statvfS | |||
then | then | |||
AC_DEFINE([Libburn_os_has_statvfS], []) | AC_DEFINE([Libburn_os_has_statvfS], []) | |||
fi | fi | |||
dnl xorriso-dd-target is addicted to the Linux kernel and util-linux lsblk | ||||
if uname -s | grep '^Linux' >/dev/null | ||||
then | ||||
XORRISO_DD_TARGET=xorriso-dd-target/xorriso-dd-target | ||||
XORRISO_DD_TARGET_MAN=xorriso-dd-target/xorriso-dd-target.1 | ||||
XORRISO_DD_TARGET_TEXI=xorriso-dd-target/xorriso-dd-target.texi | ||||
echo "enabled installation of xorriso-dd-target/xorriso-dd-target" | ||||
else | ||||
XORRISO_DD_TARGET= | ||||
XORRISO_DD_TARGET_MAN= | ||||
XORRISO_DD_TARGET_TEXI= | ||||
echo "disabled installation of xorriso-dd-target/xorriso-dd-target" | ||||
fi | ||||
AC_SUBST(XORRISO_DD_TARGET) | ||||
AC_SUBST(XORRISO_DD_TARGET_MAN) | ||||
AC_SUBST(XORRISO_DD_TARGET_TEXI) | ||||
dnl Add compiler-specific flags | dnl Add compiler-specific flags | |||
dnl See if the user wants aggressive optimizations of the code | dnl See if the user wants aggressive optimizations of the code | |||
AC_ARG_ENABLE(debug, | AC_ARG_ENABLE(debug, | |||
[ --enable-debug Disable aggressive optimizations [default=yes]], | [ --enable-debug Disable aggressive optimizations [default=yes]], | |||
, enable_debug=yes) | , enable_debug=yes) | |||
if test x$enable_debug != xyes; then | if test x$enable_debug != xyes; then | |||
if test x$GCC = xyes; then | if test x$GCC = xyes; then | |||
CFLAGS="-O3 $CFLAGS" | CFLAGS="-O3 $CFLAGS" | |||
CFLAGS="-fexpensive-optimizations $CFLAGS" | CFLAGS="-fexpensive-optimizations $CFLAGS" | |||
skipping to change at line 348 | skipping to change at line 365 | |||
, enable_zlib=yes) | , enable_zlib=yes) | |||
if test x$enable_zlib = xyes; then | if test x$enable_zlib = xyes; then | |||
dnl Check whether there is the header for zlib. | dnl Check whether there is the header for zlib. | |||
dnl If not, erase this macro which would enable use of compress2() and others. | dnl If not, erase this macro which would enable use of compress2() and others. | |||
dnl Linking fails on SuSE 9.0 because zlib has compress2() but lacks | dnl Linking fails on SuSE 9.0 because zlib has compress2() but lacks | |||
dnl compressBound(). So compressBound is the more modern thing to test. | dnl compressBound(). So compressBound is the more modern thing to test. | |||
dnl The empty parameter after "compressBound" causes -lz. | dnl The empty parameter after "compressBound" causes -lz. | |||
ZLIB_DEF=yes | ZLIB_DEF=yes | |||
AC_CHECK_HEADER(zlib.h, AC_CHECK_LIB(z, compressBound, , ZLIB_DEF= ), ZLIB_D EF= ) | AC_CHECK_HEADER(zlib.h, AC_CHECK_LIB(z, compressBound, , ZLIB_DEF= ), ZLIB_D EF= ) | |||
else | else | |||
echo "disabled use of zlib" | ||||
ZLIB_DEF= | ZLIB_DEF= | |||
fi | fi | |||
if test x$ZLIB_DEF = xyes | if test x$ZLIB_DEF = xyes | |||
then | then | |||
AC_DEFINE([Libisofs_with_zliB], []) | AC_DEFINE([Libisofs_with_zliB], []) | |||
AC_DEFINE([LIBJTE_WITH_ZLIB], []) | AC_DEFINE([LIBJTE_WITH_ZLIB], []) | |||
fi | fi | |||
# There are Linuxes with no public generic SCSI interface | # There are Linuxes with no public generic SCSI interface | |||
LIBBURNIA_CHECK_LINUX_SCSI | LIBBURNIA_CHECK_LINUX_SCSI | |||
End of changes. 6 change blocks. | ||||
4 lines changed or deleted | 22 lines changed or added |