[giggle] Use gnome-autogen.sh to fix builddir != srcdir builds.



commit a061069d45a1154c0c7e41fbf9efd43b4a07ddc5
Author: Andreas Köhler <andi5 py gmx net>
Date:   Fri Jan 22 00:22:36 2010 +0100

    Use gnome-autogen.sh to fix builddir != srcdir builds.
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=566158
    
    Signed-off-by: Javier Jardón <jjardon gnome org>

 autogen.sh |   23 +++++++++++++++++++----
 1 files changed, 19 insertions(+), 4 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 1eeb8bc..cc90dfe 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,6 +1,21 @@
-#!/bin/sh -e
+#!/bin/sh
 # Run this to generate all the initial makefiles, etc.
 
-autoreconf -i -f
-intltoolize -f
-./configure "$@"
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+PKG_NAME="giggle"
+REQUIRED_AUTOMAKE_VERSION=1.10
+
+(test -f $srcdir/configure.ac) || {
+    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
+    echo " top-level $PKG_NAME directory"
+    exit 1
+}
+
+which gnome-autogen.sh || {
+        echo "You need to install gnome-common"
+        exit 1
+}
+
+USE_GNOME2_MACROS=1 . gnome-autogen.sh



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]