Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Use the proper $srcdir method instead of the $OBJ_DIR hack for allowing
Browse files Browse the repository at this point in the history
Use the proper $srcdir method instead of the $OBJ_DIR hack for allowing
separate build dirs.
  • Loading branch information
Elliot Lee committed Nov 25, 1998
1 parent 61bdacf commit 8c25d98
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions autogen.sh
@@ -1,6 +1,10 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

pushd $srcdir
PROJECT=GLib
TEST_TYPE=-f
FILE=glib.h
Expand Down Expand Up @@ -56,14 +60,9 @@ aclocal $ACLOCAL_FLAGS

automake $am_opt
autoconf
popd

if [ -z "$OBJ_DIR" ]; then
./configure "$@"
else
mkdir -p "$OBJ_DIR"
cd "$OBJ_DIR"
../configure "$@"
fi
$srcdir/configure "$@"

echo
echo "Now type 'make' to compile $PROJECT."

0 comments on commit 8c25d98

Please sign in to comment.