aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-02-13 21:00:03 +0000
committerMans Rullgard <mans@mansr.com>2011-02-13 21:00:03 +0000
commit3ad464bfc7df6d0f68c7df9c907089b84d92ab75 (patch)
tree5ce8a434d593da4f9d1395c8dd68f1b379b3ba87
parent7a4abe5912405474039198823d451b2a38361c48 (diff)
downloadffmpeg-3ad464bfc7df6d0f68c7df9c907089b84d92ab75.tar.gz
configure: fix non-standard regex used with expr
The colon operator of expr always anchors the pattern at the start of the string. An explicit ^ in the pattern has unspecified behaviour, so remove it. Signed-off-by: Mans Rullgard <mans@mansr.com>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 8cf6d4c796..90eeaa0b66 100755
--- a/configure
+++ b/configure
@@ -1867,7 +1867,7 @@ elif $cc -v 2>&1 | grep -qi ^gcc; then
cc_version=__VERSION__
gcc_version=$($cc --version | head -n1)
gcc_basever=$($cc -dumpversion)
- gcc_pkg_ver=$(expr "$gcc_version" : '^[^ ]* \(([^)]*)\)')
+ gcc_pkg_ver=$(expr "$gcc_version" : '[^ ]* \(([^)]*)\)')
gcc_ext_ver=$(expr "$gcc_version" : ".*$gcc_pkg_ver $gcc_basever \\(.*\\)")
cc_ident=$(cleanws "gcc $gcc_basever $gcc_pkg_ver $gcc_ext_ver")
if ! $cc -dumpversion | grep -q '^2\.'; then