1 ## $Id: yazpp.m4,v 1.1 2004-04-11 11:36:46 adam Exp $
10 AC_ARG_WITH(yazppconfig, [ --with-yazppconfig=DIR yaz++-config in DIR (example /home/yaz++-0.5)], [yazpppath=$withval])
11 if test "x$yazpppath" != "xNONE"; then
12 yazppconfig=$yazpppath/yaz++-config
14 if test "x$srcdir" = "x"; then
19 for i in ${yazppsrcdir}/../yaz++-* ${yazppsrcdir}/../yaz++; do
21 if test -r $i/yaz++-config; then
22 yazppconfig=$i/yaz++-config
26 if test "x$yazppconfig" = "xNONE"; then
27 AC_PATH_PROG(yazppconfig, yaz-config, NONE)
30 AC_MSG_CHECKING(for YAZ++)
31 if $yazppconfig --version >/dev/null 2>&1; then
32 YAZPPLIB=`$yazppconfig --libs $1`
33 YAZPPLALIB=`$yazppconfig --lalibs $1`
34 YAZPPINC=`$yazppconfig --cflags $1`
35 YAZPPVERSION=`$yazppconfig --version`
36 AC_MSG_RESULT($yazppconfig)
38 AC_MSG_RESULT(Not found)