Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
Ensure we use a working version of libxml2.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.pgadmin.org/trunk@5558 a7884b65-44f6-0310-8a51-81a127f17b15
  • Loading branch information
dpage committed Oct 27, 2006
1 parent a7ffe1f commit 585cec5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions acinclude.m4
Expand Up @@ -114,6 +114,29 @@ AC_DEFUN([LOCATE_LIBXML2],
])
])

#########################
# Check libxml2 version #
#########################
AC_DEFUN([CHECK_LIBXML2],
[
XML2_VERSION=`${XML2_CONFIG} --version`
changequote(<<. >>)dnl
XML2_MAJOR=`expr ${XML2_VERSION} : '\([0-9]*\)'`
XML2_MINOR=`expr ${XML2_VERSION} : '[0-9]*\.\([0-9]*\)'`
XML2_REVISION=`expr ${XML2_VERSION} : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
changequote([, ])dnl
if test "$XML2_MAJOR" -lt 2; then
AC_MSG_ERROR([libxml2 2.6.18 or newer is require to build pgAdmin])
fi
if test "$XML2_MAJOR" -eq 2 && test "$XML2_MINOR" -lt 6; then
AC_MSG_ERROR([libxml2 2.6.18 or newer is require to build pgAdmin])
fi
if test "$XML2_MAJOR" -eq 2 && test "$XML2_MINOR" -eq 6 && test "$XML2_REVISION" -lt 18; then
AC_MSG_ERROR([libxml2 2.6.18 or newer is require to build pgAdmin])
fi
])


#####################
# Locate libxslt #
#####################
Expand Down
1 change: 1 addition & 0 deletions configure.ac.in
Expand Up @@ -45,6 +45,7 @@ SETUP_WXWIDGETS

LOCATE_LIBXML2
SETUP_LIBXML2
CHECK_LIBXML2

LOCATE_LIBXSLT
SETUP_LIBXSLT
Expand Down

0 comments on commit 585cec5

Please sign in to comment.