aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-02-17 18:45:00 +0000
committerMåns Rullgård <mans@mansr.com>2007-02-17 18:45:00 +0000
commit270739bb9001068e727e8981c3094c7eaa0085ad (patch)
tree6c7990cd7035bd0d090401d824d5fad513ee113d
parent4ec9ec81227b1c0dd83487a851e3a2c7db0335e8 (diff)
downloadffmpeg-270739bb9001068e727e8981c3094c7eaa0085ad.tar.gz
move arch processing after command line loop
Originally committed as revision 8008 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure110
1 files changed, 55 insertions, 55 deletions
diff --git a/configure b/configure
index 5afd35c56a..7b08310639 100755
--- a/configure
+++ b/configure
@@ -677,61 +677,6 @@ dcbzl="no"
mmi="default"
bigendian="no"
-case "$arch" in
- i386|i486|i586|i686|i86pc|BePC)
- arch="x86_32"
- ;;
- x86_64|amd64)
- arch="x86_32"
- canon_arch="`$cc -dumpmachine | sed -e 's,\([^-]*\)-.*,\1,'`"
- if [ x"$canon_arch" = x"x86_64" -o x"$canon_arch" = x"amd64" ]; then
- if [ -z "`echo $CFLAGS | grep -- -m32`" ]; then
- arch="x86_64"
- fi
- fi
- ;;
- # armv4l is a subset of armv[567]*l
- arm|armv[4567]*l)
- arch="armv4l"
- ;;
- alpha)
- arch="alpha"
- ;;
- "Power Macintosh"|ppc|ppc64|powerpc)
- arch="powerpc"
- ;;
- mips|mipsel|IP*)
- arch="mips"
- ;;
- sun4u|sparc64)
- arch="sparc64"
- ;;
- sparc)
- arch="sparc"
- ;;
- sh4)
- arch="sh4"
- ;;
- parisc|parisc64)
- arch="parisc"
- ;;
- s390|s390x)
- arch="s390"
- ;;
- m68k)
- arch="m68k"
- ;;
- ia64)
- arch="ia64"
- ;;
- bfin)
- arch="bfin"
- ;;
- *)
- arch="unknown"
- ;;
-esac
-
# OS
targetos=`uname -s`
beos_netserver="no"
@@ -936,6 +881,61 @@ for opt do
esac
done
+case "$arch" in
+ i386|i486|i586|i686|i86pc|BePC)
+ arch="x86_32"
+ ;;
+ x86_64|amd64)
+ arch="x86_32"
+ canon_arch="`$cc -dumpmachine | sed -e 's,\([^-]*\)-.*,\1,'`"
+ if [ x"$canon_arch" = x"x86_64" -o x"$canon_arch" = x"amd64" ]; then
+ if [ -z "`echo $CFLAGS | grep -- -m32`" ]; then
+ arch="x86_64"
+ fi
+ fi
+ ;;
+ # armv4l is a subset of armv[567]*l
+ arm|armv[4567]*l)
+ arch="armv4l"
+ ;;
+ alpha)
+ arch="alpha"
+ ;;
+ "Power Macintosh"|ppc|ppc64|powerpc)
+ arch="powerpc"
+ ;;
+ mips|mipsel|IP*)
+ arch="mips"
+ ;;
+ sun4u|sparc64)
+ arch="sparc64"
+ ;;
+ sparc)
+ arch="sparc"
+ ;;
+ sh4)
+ arch="sh4"
+ ;;
+ parisc|parisc64)
+ arch="parisc"
+ ;;
+ s390|s390x)
+ arch="s390"
+ ;;
+ m68k)
+ arch="m68k"
+ ;;
+ ia64)
+ arch="ia64"
+ ;;
+ bfin)
+ arch="bfin"
+ ;;
+ *)
+ arch="unknown"
+ ;;
+esac
+
# OS specific
osextralibs="-lm"
case $targetos in