build: autogen.sh can now configure from another directory
authorPavel Šimerda <psimerda@redhat.com>
Tue, 13 Nov 2012 20:11:50 +0000 (21:11 +0100)
committerPavel Šimerda <psimerda@redhat.com>
Tue, 13 Nov 2012 20:11:50 +0000 (21:11 +0100)
Example:

$ mkdir -p _build
$ cd _build
$ ../autogen.sh ...configure-options...
$ make

autogen.sh

index c019402..cc9a4f4 100755 (executable)
@@ -17,8 +17,8 @@ PKG_NAME=NetworkManager
     gtkdocize || exit 1
     autopoint --force
     AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
-    if test -z "$NOCONFIGURE"; then
-        ./configure --enable-maintainer-mode $@
-    fi
 )
 
+if test -z "$NOCONFIGURE"; then
+       $srcdir/configure --enable-maintainer-mode $@
+fi