• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

Revisionbabe42305fba10f1df8f3abef2d7ec0fe88406b5 (tree)
Zeit2012-09-28 16:55:47
AutorGwenole Beauchesne <gwenole.beauchesne@inte...>
CommiterGwenole Beauchesne

Log Message

autogen: modernize configure script generator.

Make it possible to run autogen.sh from a different location from the
original source directory. Make execution of the configure' script
optional. i.e. don't run it by default if NO_CONFIGURE variable is set.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>

Ändern Zusammenfassung

Diff

--- a/autogen.sh
+++ b/autogen.sh
@@ -1,3 +1,4 @@
1+#!/bin/sh
12 # Copyright (c) 2007 Intel Corporation. All Rights Reserved.
23 #
34 # Permission is hereby granted, free of charge, to any person obtaining a
@@ -20,6 +21,31 @@
2021 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2122 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2223
23-#! /bin/sh
24-autoreconf -v --install
25-./configure "$@"
24+PROJECT="libva"
25+
26+test -n "$srcdir" || srcdir="`dirname \"$0\"`"
27+test -n "$srcdir" || srcdir=.
28+
29+if ! test -f "$srcdir/configure.ac"; then
30+ echo "Failed to find the top-level $PROJECT directory"
31+ exit 1
32+fi
33+
34+olddir="`pwd`"
35+cd "$srcdir"
36+
37+mkdir -p m4
38+
39+AUTORECONF=`which autoreconf`
40+if test -z $AUTORECONF; then
41+ echo "*** No autoreconf found ***"
42+ exit 1
43+else
44+ autoreconf -v --install || exit $?
45+fi
46+
47+cd "$olddir"
48+
49+if test -z "$NO_CONFIGURE"; then
50+ $srcdir/configure "$@" && echo "Now type 'make' to compile $PROJECT."
51+fi