summaryrefslogtreecommitdiff
path: root/macros2
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 /macros2
parent3b0e95bc750a42b4b38cc94a12c50b3d11da1693 (diff)
downloadshared-mime-info-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
Diffstat (limited to 'macros2')
-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 316e9235..1e0c9b12 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 628cdcec..976ed53e 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
])