diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-31 21:39:32 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-06-02 22:17:47 -0700 |
commit | 65fedb9ea217134a842b7b34cf425c24ca6ca3b7 (patch) | |
tree | a3d71824000a392e7b4dbf2291c636c0d504728a | |
parent | configure: Drop AM_MAINTAINER_MODE (diff) | |
download | xcman-65fedb9ea217134a842b7b34cf425c24ca6ca3b7.tar.gz xcman-65fedb9ea217134a842b7b34cf425c24ca6ca3b7.tar.bz2 xcman-65fedb9ea217134a842b7b34cf425c24ca6ca3b7.tar.xz |
autogen.sh: Honor NOCONFIGURE=1
See http://people.gnome.org/~walters/docs/build-api.txt
Also includes support for builds outside $srcdir as found in most
other X.Org autogen.sh files.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rwxr-xr-x | autogen.sh | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,3 +1,14 @@ #! /bin/sh + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + autoreconf -v --install || exit 1 -./configure "$@" +cd $ORIGDIR || exit $? + +if test -z "$NOCONFIGURE"; then + $srcdir/configure "$@" +fi |