Enabled build of dynamically linked xorriso, joined -1.pc club

This commit is contained in:
2008-02-01 19:59:12 +00:00
parent 33b236523a
commit 3610e864af
5 changed files with 61 additions and 6 deletions

View File

@ -72,6 +72,24 @@ TARGET_SHIZZLE
AC_SUBST(ARCH)
AC_SUBST(LIBBURN_ARCH_LIBS)
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)
dnl >>> How to check for proper library versions ?
dnl >>> would need libburn-0.4.2 or higher .so.4
dnl >>> would need libisofs-0.6.1 or higher .so.6
AC_CHECK_HEADER(libburn/libburn.h)
AC_CHECK_HEADER(libisofs/libisofs.h)
dnl Add compiler-specific flags
dnl See if the user wants aggressive optimizations of the code
@ -95,6 +113,6 @@ AC_CONFIG_FILES([
Makefile
doc/doxygen.conf
version.h
libisoburn.pc
libisoburn-1.pc
])
AC_OUTPUT