/usr/share/aclocal/idzebra-2.0.m4 is in libidzebra-2.0-dev 2.0.44-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | # Use this m4 function for autoconf if you use ID Zebra in your own
# configure script.
AC_DEFUN([IDZEBRA_2_0_INIT],
[
AC_SUBST(IDZEBRA_LIBS)
AC_SUBST(IDZEBRA_LALIBS)
AC_SUBST(IDZEBRA_CFLAGS)
AC_SUBST(IDZEBRA_VERSION)
idzebraconfig=NONE
idzebrapath=NONE
AC_ARG_WITH(idzebra, [ --with-idzebra=DIR use idzebra-config in DIR (example /home/idzebra-2.0.0)], [idzebrapath=$withval])
if test "x$idzebrapath" != "xNONE"; then
idzebraconfig=$idzebrapath/idzebra-config-2.0
else
if test "x$srcdir" = "x"; then
idzebrasrcdir=.
else
idzebrasrcdir=$srcdir
fi
for dir in ${idzebrasrcdir}/../idzebra* ${idzebrasrcdir}/../idzebra ../idzebra* ../zebra; do
if test -d $dir; then
conf=$dir/idzebra-config-2.0
if test -r $conf; then
idzebraconfig=$conf
fi
fi
done
if test "x$idzebraconfig" = "xNONE"; then
AC_PATH_PROG(idzebraconfig, idzebra-config-2.0, NONE)
fi
fi
AC_MSG_CHECKING(for idzebra)
if $idzebraconfig --version >/dev/null 2>&1; then
IDZEBRA_LIBS=`$idzebraconfig --libs`
IDZEBRA_LALIBS=`$idzebraconfig --lalibs`
IDZEBRA_CFLAGS=`$idzebraconfig --cflags`
IDZEBRA_VERSION=`$idzebraconfig --version`
AC_MSG_RESULT([$idzebraconfig])
else
AC_MSG_RESULT(Not found)
IDZEBRA_VERSION=NONE
fi
if test "X$IDZEBRA_VERSION" != "XNONE"; then
AC_MSG_CHECKING([for idzebra version])
AC_MSG_RESULT([$IDZEBRA_VERSION])
if test "$1"; then
have_idzebra_version=`echo "$IDZEBRA_VERSION" | awk 'BEGIN { FS = "."; } { printf "%d", ([$]1 * 1000 + [$]2) * 1000 + [$]3;}'`
req_idzebra_version=`echo "$1" | awk 'BEGIN { FS = "."; } { printf "%d", ([$]1 * 1000 + [$]2) * 1000 + [$]3;}'`
if test "$have_idzebra_version" -lt "$req_idzebra_version"; then
AC_MSG_ERROR([$IDZEBRA_VERSION. Requires idzebra $1 or later])
fi
fi
fi
])
|