Don't use gnome-config if GNOME_DATADIR is set.
authorMartin Baulig <martin@src.gnome.org>
Mon, 24 Jul 2000 15:55:43 +0000 (15:55 +0000)
committerMartin Baulig <martin@src.gnome.org>
Mon, 24 Jul 2000 15:55:43 +0000 (15:55 +0000)
svn path=/trunk/; revision=1317

bin/gnome-autogen.sh

index 831054b..c7e1b26 100755 (executable)
@@ -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"