Fix handling of Proxy class and authentication thread. The destruction
[yazproxy-moved-to-github.git] / yaz.m4
diff --git a/yaz.m4 b/yaz.m4
index 8690686..9626319 100644 (file)
--- a/yaz.m4
+++ b/yaz.m4
@@ -92,7 +92,7 @@ AC_DEFUN([YAZ_INIT],
                else
                        yazsrcdir=$srcdir
                fi
-               for i in ${yazsrcdir}/../yaz* ${yazsrcdir}/../yaz ../yaz* ../yaz; do
+               for i in ${yazsrcdir}/../../yaz ${yazsrcdir}/../yaz* ${yazsrcdir}/../yaz; do
                        if test -d $i; then
                                if test -r $i/yaz-config; then
                                        yazconfig=$i/yaz-config
@@ -129,6 +129,9 @@ AC_DEFUN([YAZ_INIT],
                        if test "$have_yaz_version" -lt "$req_yaz_version"; then
                                AC_MSG_ERROR([$YAZVERSION. Requires $2 or later])
                        fi
+                       if test "$req_yaz_version" -gt "2000028"; then
+                               YAZINC="$YAZINC -DYAZ_USE_NEW_LOG=1"
+                       fi
                fi
        fi
 ])