aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/autogen.sh b/autogen.sh
index 8679db78fd5..cb2a9151afe 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -104,8 +104,7 @@ check_version ()
104} 104}
105 105
106do_check=true 106do_check=true
107do_autoconf=false 107do_autoconf=true
108test $# -eq 0 && do_autoconf=true
109do_git=false 108do_git=false
110 109
111for arg; do 110for arg; do
@@ -113,14 +112,13 @@ for arg; do
113 --help) 112 --help)
114 exec echo "$0: usage: $0 [all|autoconf|git]";; 113 exec echo "$0: usage: $0 [all|autoconf|git]";;
115 --no-check) 114 --no-check)
116 do_check=false 115 do_check=false;;
117 test $# -eq 1 && do_autoconf=true;;
118 all) 116 all)
119 do_autoconf=true
120 test -e .git && do_git=true;; 117 test -e .git && do_git=true;;
121 autoconf) 118 autoconf)
122 do_autoconf=true;; 119 true;;
123 git) 120 git)
121 do_autoconf=false
124 do_git=true;; 122 do_git=true;;
125 *) 123 *)
126 echo >&2 "$0: $arg: unknown argument"; exit 1;; 124 echo >&2 "$0: $arg: unknown argument"; exit 1;;