IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#699 closed enhancement (fixed)

pslib should refuse to build with version of libxml2 < 2.6

Reported by: jhoblitt Owned by: David.Robbins@…
Priority: lowest Milestone:
Component: build Version: 0.9.0
Severity: minor Keywords:
Cc:

Description

libxml2 < 2.6 is missing functions that psLib uses. autoconf should check the
version being built against and bail out if a sufficient version isn't found.

Change History (4)

comment:1 by gusciora@…, 20 years ago

Owner: changed from gusciora@… to robert.desonia@…

comment:2 by jhoblitt, 20 years ago

blocked: 717

comment:3 by robert.desonia@…, 20 years ago

Owner: changed from robert.desonia@… to David.Robbins@…

comment:4 by Paul Price, 20 years ago

Resolution: fixed
Status: newclosed

This has been fixed by someone.

AC_MSG_CHECKING([xml2 version])
XML_VERSION=xml2-config --version
XML_VERSION_major=echo $XML_VERSION | ${PERL} -pe 's|^(\d+).*|\1|'
XML_VERSION_minor=echo $XML_VERSION | ${PERL} -pe 's|^(\d+)\.(\d+).*|\2|'
dnl First test the minimum version of 2.6

if test $XML_VERSION_major -lt 2
( test $XML_VERSION_major -eq 2 && test

$XML_VERSION_minor -lt 6 )
then

AC_MSG_ERROR([requires libxml2 2.6.0 or greater, found $XML_VERSION. Install

newer version or use --with-xml2-config to specify another location.])
else

AC_MSG_RESULT([$XML_VERSION... yes])

fi

Note: See TracTickets for help on using tickets.