summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/gnome-autogen.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/gnome-autogen.sh b/bin/gnome-autogen.sh
index 831054be..c7e1b266 100755
--- a/bin/gnome-autogen.sh
+++ b/bin/gnome-autogen.sh
@@ -1,9 +1,13 @@
#!/bin/sh
+if test -z "$GNOME_DATADIR" ; then
+ GNOME_DATADIR=`gnome-config --datadir`
+fi
+
if test -n "$USE_GNOME2_MACROS" ; then
- export GNOME_COMMON_MACROS_DIR=`gnome-config --datadir`/aclocal/gnome2-macros
+ export GNOME_COMMON_MACROS_DIR="$GNOME_DATADIR/aclocal/gnome2-macros"
else
- export GNOME_COMMON_MACROS_DIR=`gnome-config --datadir`/aclocal/gnome-macros
+ export GNOME_COMMON_MACROS_DIR="$GNOME_DATADIR/aclocal/gnome-macros"
fi
export ACLOCAL_FLAGS="-I $GNOME_COMMON_MACROS_DIR $ACLOCAL_FLAGS"