summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4519a3e)
raw | patch | inline | side by side (parent: 4519a3e)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 13 Sep 2009 20:20:48 +0000 (22:20 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 13 Sep 2009 20:20:48 +0000 (22:20 +0200) |
You can force the shipped version of libiptc using:
--with-libiptc=shipped
Apparently enough systems include broken versions of that library :/
--with-libiptc=shipped
Apparently enough systems include broken versions of that library :/
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index c46049a50efc122ab4cd2d196b7241c72b6ccf39..2471a2f15ce42c11b20d6146a69dba18aeba7872 100644 (file)
--- a/configure.in
+++ b/configure.in
with_own_libiptc="no"
AC_ARG_WITH(libiptc, [AS_HELP_STRING([--with-libiptc@<:@=PREFIX@:>@], [Path to libiptc.])],
[
- if test "x$withval" != "xno" && test "x$withval" != "xyes"
+ if test "x$withval" = "xshipped"
+ then
+ with_own_libiptc="yes"
+ with_libiptc="yes"
+ else if test "x$withval" != "xno" && test "x$withval" != "xyes"
then
LDFLAGS="$LDFLAGS -L$withval/lib"
CPPFLAGS="$CPPFLAGS -I$withval/include"
with_libiptc="yes"
else
with_libiptc="$withval"
- fi
+ fi; fi
],
[
if test "x$ac_system" = "xLinux"
@@ -1445,7 +1449,7 @@ AC_ARG_WITH(libiptc, [AS_HELP_STRING([--with-libiptc@<:@=PREFIX@:>@], [Path to l
with_libiptc="no (Linux only)"
fi
])
-if test "x$with_libiptc" = "xyes"
+if test "x$with_libiptc" = "xyes" && test "x$with_own_libiptc" = "xno"
then
AC_CHECK_LIB(iptc, iptc_init,
[
with_own_libiptc="yes"
])
fi
-if test "x$with_libiptc" = "xyes" -a "x$with_own_libiptc" != "xyes"
+if test "x$with_libiptc" = "xyes" && test "x$with_own_libiptc" = "xno"
then
AC_CHECK_HEADERS(libiptc/libiptc.h,
[