])
dnl
+AC_ARG_ENABLE(zoom,[ --disable-zoom disable ZOOM (for old C++ compilers)],[enable_zoom=$enableval],[enable_zoom=yes])
+AM_CONDITIONAL(ZOOM, test $enable_zoom = "yes")
AC_SUBST(YAZPP_SRC_ROOT)
AC_SUBST(YAZPP_BUILD_ROOT)
-## $Id: Makefile.am,v 1.1 2002-10-09 16:17:26 adam Exp $
+## $Id: Makefile.am,v 1.2 2003-06-10 07:16:38 adam Exp $
LDFLAGS=-version-info 1:0:0
lib_LTLIBRARIES = libyaz++.la
-libyaz___la_LIBADD=../zoom/libzoomcpp.la ../src/libyazcpp.la
+if ZOOM
+libzoom=../zoom/libzoomcpp.la
+else
+libzoom=
+endif
+
+libyaz___la_LIBADD=$(libzoom) ../src/libyazcpp.la
libyaz___la_SOURCES=
EXTRA_libyaz___la_SOURCES=x.c
-# $Header: /home/cvsroot/yaz++/zoom/Makefile.am,v 1.7 2002-11-04 23:08:49 mike Exp $
+# $Header: /home/cvsroot/yaz++/zoom/Makefile.am,v 1.8 2003-06-10 07:16:38 adam Exp $
AM_CXXFLAGS= $(YAZINC)
+if ZOOM
noinst_LTLIBRARIES = libzoomcpp.la
+noinst_PROGRAMS = zclient
+endif
+
LDADD=libzoomcpp.la $(YAZLALIB)
mirk_XXX_SOURCES = zexcept.cpp zconn.cpp zquery.cpp zrs.cpp zrec.cpp
libzoomcpp_la_SOURCES = $(mirk_XXX_SOURCES) interface.h
pkginclude_HEADERS=zoom.h
-noinst_PROGRAMS = zclient
-
zclient_SOURCES=zclient.cpp
EXTRA_DIST=master-header Changes README
-all: interface.h zclient
-
test: zclient
./zclient bagel.indexdata.dk 210 gils '@and mineral epicenter'