[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pdf-devel] Task 88 - dependencies in configure.ac
From: |
Sylvain Beucler |
Subject: |
[pdf-devel] Task 88 - dependencies in configure.ac |
Date: |
Tue, 10 Feb 2009 00:19:04 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hi,
Here's some progress with task #88 "Dependencies detection in
configuration time".
The system imports Gnulib's "havelib" module and configure.ac uses
AC_LIB_HAVE_LINKFLAGS to:
- test the library presence
- define $HAVE_LIBMYLIB variables (library detection)
- add --with-libmylib-prefix= to specify alternate locations
- add --without-libmylib-prefix= to avoid trying some locations
It's enhanced by AC_ARG_WITH to:
- define $with_lib variables (library specification)
- add --with-lib and --without-lib options in ./configure
(more on AC_LIB_HAVE_LINKFLAGS:
http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00016.html)
At the end of the script there's a set of tests to tell the users
everything he needs to fix (all the errors are mentioned in a row, so
the user doesn't have to configure / fix 1 lib / configure / fix 1 lib
/ etc.). In particular tests such as:
if test "x$HAVE_LIBJBIG2DEC" = "xno" -a "x$with_jbig2dec" != "xno"; then
verify if the library specification (even if it's the default
specification) matches the library detection.
If there's any error AC_OUTPUT is not executed.
If this sounds good to you I can polish configure.ac some more.
(Incidentally the script also uses AM_ICONV from the "iconv" module
but that's another story :))
--
Sylvain
configure.ac
Description: Text document
- [pdf-devel] Task 88 - dependencies in configure.ac,
Sylvain Beucler <=