From 72ef6bf03d5e4725c22dc738ca8e8b92b6a6afaf Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Wed, 5 Oct 2011 11:41:20 +0200 Subject: [PATCH] Introduce --with-libxml2, to be able to set the right prefix. --- configure.ac | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index d8179d5..71a3ba7 100644 --- a/configure.ac +++ b/configure.ac @@ -42,6 +42,11 @@ AS_IF([test x"$GCC" = xyes], [ CXXFLAGS="$CXXFLAGS -Wall -pedantic" ]) +AC_ARG_WITH([libxml2], + [AS_HELP_STRING([--with-libxml2=PREFIX], [look for the xml2 library in + PREFIX/lib and headers in PREFIX/include])] +) + LIBCMIS_API_VERSION=libcmis_api_version AC_SUBST(LIBCMIS_API_VERSION) @@ -62,7 +67,7 @@ AC_SUBST(CURL_CFLAGS) AC_SUBST(LIBCURL) # Check for lixml2 -AC_PATH_PROGS([TOOL_XML2_CONFIG], [xml2-config]) +AC_PATH_PROGS([TOOL_XML2_CONFIG], [xml2-config],, [$with_libxml2/bin:$PATH]) AS_IF([test -n "$TOOL_XML2_CONFIG"], [XML2_CFLAGS=`$TOOL_XML2_CONFIG --cflags` XML2_LIBS=`$TOOL_XML2_CONFIG --libs`], -- 1.7.5.4