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
#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