]> granicus.if.org Git - php/commitdiff
YAZ 2.0 or later is required now.
authorfoobar <sniper@php.net>
Fri, 28 Feb 2003 07:17:47 +0000 (07:17 +0000)
committerfoobar <sniper@php.net>
Fri, 28 Feb 2003 07:17:47 +0000 (07:17 +0000)
ext/yaz/config.m4
ext/yaz/php_yaz.c

index 3b5c8b176fb97998d5029c18839ada46b381c410..1ca755c2b5e301023f52c1316a013d8648d1adfe 100644 (file)
@@ -23,13 +23,13 @@ if test "$PHP_YAZ" != "no"; then
     AC_DEFINE(HAVE_YAZ,1,[Whether you have YAZ])
     . $yazconfig
 
-    dnl Check version (1.9 or greater required)
+    dnl Check version (2.0 or greater required)
     AC_MSG_CHECKING([for YAZ version])
     yaz_version=`echo $YAZVERSION | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
-    if test "$yaz_version" -ge 1009000; then
+    if test "$yaz_version" -ge 2000000; then
       AC_MSG_RESULT([$YAZVERSION])
     else
-      AC_MSG_ERROR([YAZ version 1.9 or later required.])
+      AC_MSG_ERROR([YAZ version 2.0 or later required.])
     fi
 
     for c in $YAZLIB; do
index 17c2250156251f028a8821597a488689bac6a6a1..fc5d982508edcb2bba97100f82b1a426984234ae 100644 (file)
@@ -33,9 +33,9 @@
 #include <yaz/yaz-version.h>
 
 #ifndef YAZ_VERSIONL
-#error YAZ version 1.9 or later must be used.
-#elif YAZ_VERSIONL < 0x010900
-#error YAZ version 1.9 or later must be used.
+#error YAZ version 2.0 or later must be used.
+#elif YAZ_VERSIONL < 0x020000
+#error YAZ version 2.0 or later must be used.
 #endif
 
 #ifdef PHP_WIN32