aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'macros/gnome-autogen.sh')
-rwxr-xr-xmacros/gnome-autogen.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/macros/gnome-autogen.sh b/macros/gnome-autogen.sh
index 33d98a62f0..c667827a0f 100755
--- a/macros/gnome-autogen.sh
+++ b/macros/gnome-autogen.sh
@@ -1,6 +1,11 @@
#!/bin/sh
-export GNOME_COMMON_MACROS_DIR=`gnome-config --datadir`/aclocal/gnome-macros
+if test -n "$USE_GNOME_2_MACROS" ; then
+ export GNOME_COMMON_MACROS_DIR=`gnome-config --datadir`/aclocal/gnome2-macros
+else
+ export GNOME_COMMON_MACROS_DIR=`gnome-config --datadir`/aclocal/gnome-macros
+fi
+
export ACLOCAL_FLAGS="-I $GNOME_COMMON_MACROS_DIR $ACLOCAL_FLAGS"
. $GNOME_COMMON_MACROS_DIR/autogen.sh