Using yaz/test.h. Test for zebra without config
[idzebra-moved-to-github.git] / configure.in
index ea84476..c32ac27 100644 (file)
@@ -1,5 +1,5 @@
 dnl Zebra, Index Data ApS, 1995-2005
-dnl $Id: configure.in,v 1.129 2005-12-05 12:18:40 marc Exp $
+dnl $Id: configure.in,v 1.132 2006-02-17 14:06:06 marc Exp $
 dnl
 AC_INIT(include/idzebra/version.h)
 AM_INIT_AUTOMAKE(idzebra,1.4.0)
@@ -52,8 +52,8 @@ if test "$xsltdir" != "no"; then
                XSLT_VER=`$xsltdir/bin/xslt-config --version`
                AC_MSG_RESULT($XSLT_VER)
                have_xslt_version=`echo "$XSLT_VER" | awk 'BEGIN { FS = "."; } { printf "%d", ([$]1 * 1000 + [$]2) * 1000 + [$]3;}'`
-               if test $have_xslt_version -lt 1001012; then
-                       AC_MSG_WARN([libXSLT too old. Use 1.1.12 or later.])
+               if test $have_xslt_version -lt 1001011; then
+                       AC_MSG_WARN([libXSLT too old. Use 1.1.11 or later.])
                        XSLT_VER=""
                else
                        XSLT_LIBS=`$xsltdir/bin/xslt-config --libs`
@@ -106,6 +106,16 @@ if test -r ${tclconfig}/tclConfig.sh; then
         SHLIB_VERSION=$TCL_SHLIB_VERSION
         AC_MSG_RESULT($TCL_VERSION)
        AC_DEFINE(HAVE_TCL_H,1)
+
+       # The Mac OSX -framework causes problems with Libtool
+       # and dependancy libs.. so apply Tcl libs everywhere
+       # bug #461
+       case $host in
+       *-*-darwin*)
+               LIBS="$LIBS $TCL_LIB";
+                ;;
+       esac
+
 else
         AC_MSG_RESULT(Not found)
        AC_DEFINE(HAVE_TCL_H,0)
@@ -351,7 +361,7 @@ AC_OUTPUT([
   test/espec/Makefile
   test/filters/Makefile
   examples/Makefile examples/gils/Makefile examples/zthes/Makefile
-  examples/marc21/Makefile
+  examples/marc21/Makefile examples/alvis-oai/Makefile
   idzebra.spec
   idzebra-config
   Doxyfile