From d1ce3f95509bd86c0aa850d6b58c8a065517c84f Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Thu, 24 May 2007 16:19:40 +0300 Subject: [PATCH] Use canonical autogen.sh Use the standard autogen.sh, which allows for srcdir != builddir. --- autogen.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/autogen.sh b/autogen.sh index dac4657..904cd67 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,5 +1,12 @@ -#!/bin/sh -# Run this to generate all the initial makefiles, etc. +#! /bin/sh -autoreconf --force -i -./configure $* +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + +autoreconf -v --install || exit 1 +cd $ORIGDIR || exit $? + +$srcdir/configure --enable-maintainer-mode "$@" -- 2.7.4