Fix setting of automake ISTHR to reflect POSIX thread availability
[idzebra-moved-to-github.git] / configure.in
index 0080459..1b8765f 100644 (file)
@@ -1,8 +1,8 @@
 dnl Zebra, Index Data Aps, 1995-2003
-dnl $Id: configure.in,v 1.76 2003-04-24 09:09:20 adam Exp $
+dnl $Id: configure.in,v 1.79 2003-05-26 20:07:40 adam Exp $
 dnl
 AC_INIT(include/zebraver.h)
-AM_INIT_AUTOMAKE(idzebra,1.3.10)
+AM_INIT_AUTOMAKE(idzebra,1.3.11)
 dnl ------ Substitutions
 AC_SUBST(TCL_INCLUDE)
 AC_SUBST(TCL_LIB)
@@ -76,7 +76,11 @@ else
        yazflag=""
 fi
 YAZ_INIT($yazflag)
-
+if echo "$YAZINC"|grep YAZ_POSIX_THREADS=1 >/dev/null; then
+       AM_CONDITIONAL(ISTHR,true)
+else
+       AM_CONDITIONAL(ISTHR,false)
+fi     
 dnl ------ Look for Tcl
 dnl See if user has specified location of tclConfig.sh; otherwise
 dnl see if tclConfig.sh exists in same prefix lcoation as tclsh; otherwise
@@ -393,7 +397,11 @@ AC_OUTPUT([
   examples/Makefile examples/gils/Makefile examples/zthes/Makefile
   idzebra.spec
 ])
-
 if test -x "$perlbin"; then
-  res=`cd perl ; $perlbin Makefile.PL ; cd .. ;`;
+       res=`cd perl ; $perlbin Makefile.PL ; cd .. ;`;
 fi
+if test  -z "$YAZLIB"; then
+       echo "YAZ was not found. Use --with-yazconfig=DIR to specify location."
+       test -f /etc/debian_version && echo "Debian package libyaz-dev is required."
+fi
+