1 dnl aclocal.m4 generated automatically by aclocal 1.4-p4
3 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 dnl This program is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 dnl PARTICULAR PURPOSE.
13 # Use this m4 funciton for autoconf if you use YAZ in your own
25 AC_ARG_WITH(yazconfig, [ --with-yazconfig=DIR yaz-config in DIR (example /home/yaz-1.7)], [yazpath=$withval])
26 if test "x$yazpath" != "xNONE"; then
27 yazconfig=$yazpath/yaz-config
29 if test "x$srcdir" = "x"; then
34 for i in ${yazsrcdir}/../yaz* ${yazsrcdir}/../yaz ../yaz* ../yaz; do
36 if test -r $i/yaz-config; then
37 yazconfig=$i/yaz-config
41 if test "x$yazconfig" = "xNONE"; then
42 AC_PATH_PROG(yazconfig, yaz-config, NONE)
45 AC_MSG_CHECKING(for YAZ)
46 if $yazconfig --version >/dev/null 2>&1; then
47 YAZLIB=`$yazconfig --libs $1`
48 # if this is empty, it's a simple version YAZ 1.6 script
49 # so we have to source it instead...
50 if test "X$YAZLIB" = "X"; then
53 YAZLALIB=`$yazconfig --lalibs $1`
54 YAZINC=`$yazconfig --cflags $1`
55 YAZVERSION=`$yazconfig --version`
57 AC_MSG_RESULT($yazconfig)
59 AC_MSG_RESULT(Not found)