summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <baulig@suse.de>2001-04-13 17:05:18 +0000
committerMartin Baulig <martin@src.gnome.org>2001-04-13 17:05:18 +0000
commita8eff2c2860b677e15b2e24cede9a437484b1daa (patch)
tree989301b958b6456f8c323eaef597fdf085adfb7c
parent3b0e95bc750a42b4b38cc94a12c50b3d11da1693 (diff)
downloadgnome-common-a8eff2c2860b677e15b2e24cede9a437484b1daa.tar.gz
Set variable `have_<name>' to yes or no depending on whether the module
2001-04-13 Martin Baulig <baulig@suse.de> * gnome-pkgconfig.m4 (GNOME_PKGCONFIG_CHECK_OPTIONAL_MODULES): Set variable `have_<name>' to yes or no depending on whether the module was found or not; allows you to define automake conditionals for optional modules. svn path=/trunk/; revision=1659
-rw-r--r--macros2/ChangeLog7
-rw-r--r--macros2/gnome-pkgconfig.m43
2 files changed, 10 insertions, 0 deletions
diff --git a/macros2/ChangeLog b/macros2/ChangeLog
index 316e923..1e0c9b1 100644
--- a/macros2/ChangeLog
+++ b/macros2/ChangeLog
@@ -1,3 +1,10 @@
+2001-04-13 Martin Baulig <baulig@suse.de>
+
+ * gnome-pkgconfig.m4 (GNOME_PKGCONFIG_CHECK_OPTIONAL_MODULES):
+ Set variable `have_<name>' to yes or no depending on whether the
+ module was found or not; allows you to define automake conditionals
+ for optional modules.
+
2001-03-24 Martin Baulig <baulig@suse.de>
* autogen.sh: Add the xml-i18n-tools stuff here.
diff --git a/macros2/gnome-pkgconfig.m4 b/macros2/gnome-pkgconfig.m4
index 628cdce..976ed53 100644
--- a/macros2/gnome-pkgconfig.m4
+++ b/macros2/gnome-pkgconfig.m4
@@ -178,6 +178,9 @@ AC_DEFUN([GNOME_PKGCONFIG_CHECK_OPTIONAL_MODULES],
if test -z "$4" ; then
eval 'HAVE_'$name=yes
fi
+ eval 'have_'$name=yes
+ else
+ eval 'have_'$name=no
fi
])