1
# This file is part of Link Monitor Applet
3
# Copyright (C) 2006 Jean-Yves Lefort.
5
# As a special exception to the Link Monitor Applet licensing terms,
6
# Jean-Yves Lefort gives unlimited permission to copy, distribute and
9
dnl AM_PATH_GNOME_PREFIX([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
11
AC_DEFUN([AM_PATH_GNOME_PREFIX],
12
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
14
AC_MSG_CHECKING([for the GNOME installation prefix])
17
if test -n "$PKG_CONFIG"; then
18
gnome_prefix=`$PKG_CONFIG --variable prefix libgnome-2.0 2>/dev/null`
21
if test -n "$gnome_prefix"; then
22
AC_MSG_RESULT([$gnome_prefix])
23
ifelse([$1],, :, [$1])
25
AC_MSG_RESULT([not found])
26
ifelse([$2],, :, [$2])
29
AC_SUBST(gnome_prefix)])