yet another compatibility fix

Tue, 13 Aug 2019 21:55:10 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 13 Aug 2019 21:55:10 +0200
changeset 208
fedd0f957c31
parent 207
27f8a41882a7
child 209
a6d8181a8127

yet another compatibility fix

configure file | annotate | diff | comparison | revisions
make/configure.vm file | annotate | diff | comparison | revisions
--- a/configure	Tue Aug 13 21:50:16 2019 +0200
+++ b/configure	Tue Aug 13 21:55:10 2019 +0200
@@ -259,7 +259,8 @@
         if [ -z "$PKG_CONFIG" ]; then
         	break
         fi
-        if ! $PKG_CONFIG libpq ; then
+		$PKG_CONFIG libpq
+        if [ $? -ne 0 ] ; then
             break
         fi
         CFLAGS="$CFLAGS `$PKG_CONFIG --cflags libpq`"
@@ -280,7 +281,8 @@
         if [ -z "$PKG_CONFIG" ]; then
         	break
         fi
-        if ! $PKG_CONFIG openssl ; then
+		$PKG_CONFIG openssl
+        if [ $? -ne 0 ] ; then
             break
         fi
         CFLAGS="$CFLAGS `$PKG_CONFIG --cflags openssl`"
@@ -301,7 +303,8 @@
         if [ -z "$PKG_CONFIG" ]; then
         	break
         fi
-        if ! $PKG_CONFIG libxml-2.0 ; then
+		$PKG_CONFIG libxml-2.0
+        if [ $? -ne 0 ] ; then
             break
         fi
         CFLAGS="$CFLAGS `$PKG_CONFIG --cflags libxml-2.0`"
--- a/make/configure.vm	Tue Aug 13 21:50:16 2019 +0200
+++ b/make/configure.vm	Tue Aug 13 21:55:10 2019 +0200
@@ -359,7 +359,8 @@
         fi
         #end
         #foreach( $pkg in $sub.pkgconfig )
-        if ! $PKG_CONFIG $pkg.getPkgConfigParam() ; then
+		$PKG_CONFIG $pkg.getPkgConfigParam()
+        if [ $? -ne 0 ] ; then
             break
         fi
         CFLAGS="$CFLAGS `$PKG_CONFIG --cflags $pkg.getPkgConfigParam()`"
@@ -428,7 +429,8 @@
         #end
         #foreach( $pkg in $dependency.pkgconfig )
         printf "checking for pkg-config package $pkg.getPkgConfigParam()... "
-        if ! $PKG_CONFIG $pkg.getPkgConfigParam() ; then
+		$PKG_CONFIG $pkg.getPkgConfigParam()
+        if [ $? -ne 0 ]; then
             echo no
             ERROR=1
             break

mercurial