summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-10-26 20:40:19 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-10-26 20:40:19 +0000
commit6a970e783db95e6a8248f49fb405a2d4dbcae694 (patch)
treed85e647b4804193e862a16841caf777563fa1446 /configure
parentaf848272ca37d3902534bebbc4f59dee1b0159d0 (diff)
downloadmpv-6a970e783db95e6a8248f49fb405a2d4dbcae694.tar.bz2
mpv-6a970e783db95e6a8248f49fb405a2d4dbcae694.tar.xz
gcc -dumpmachine outputs x86_64-something on some machines and
amd64-something on others. Handle both cases. Fixes bug #325. patch by Pawel Sakowski < pawel __ dot __ sakowski __ dot __ pl > git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16868 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 2187cb0e28..9beb1f4c62 100755
--- a/configure
+++ b/configure
@@ -516,7 +516,7 @@ if test -z "$_target" ; then
i[3-9]86*|x86|x86pc|k5|k6|k6_2|k6_3|k6-2|k6-3|pentium*|athlon*|i586_i686|i586-i686|BePC) host_arch=i386 ;;
ia64) host_arch=ia64 ;;
x86_64|amd64)
- if [ "`$_cc -dumpmachine | grep x86_64 | cut -d- -f1`" = "x86_64" -a \
+ if [ -n "`$_cc -dumpmachine | sed -n '/^x86_64-/p;/^amd64-/p'`" -a \
-z "`echo $CFLAGS | grep -- -m32`" ]; then
host_arch=x86_64
else