]> git.sesse.net Git - mlt/commitdiff
configure: separate -march (suitable on x86) and -mcpu (suitable on ppc, arm, and...
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 13 Jan 2009 04:40:58 +0000 (04:40 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 13 Jan 2009 04:40:58 +0000 (04:40 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1312 d19143bc-622f-0410-bfdd-b5b2a6649095

configure

index 9892dcdfafd68400332f094a9838964fd70d004b..f02f4f345f1b15e84a83147c9d6c5f1b95923084 100755 (executable)
--- a/configure
+++ b/configure
@@ -20,7 +20,8 @@ General build options:
   --disable-debug         - Compile without debug support (default: on)
   --disable-mmx           - Compile without MMX support (default: on)
   --disable-sse           - Compile without SSE support (default: on)
-  --cpu='cpu'             - Compile for a specific CPU/architectre (default: none)
+  --arch='arch'             - Compile for a specific architecture (default: none)
+  --cpu='cpu'             - Compile for a specific CPU (default: none)
 
 Module disables options:
 
@@ -58,9 +59,8 @@ build_config()
 
                echo "LARGE_FILE=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
 
-               [ "$cpu" != "" ] &&
-               echo "TARGETARCH=-march=$cpu" &&
-               echo "TARGETCPU=-mcpu=$cpu"
+               [ "$arch" != "" ] && echo "TARGETARCH=-march=$arch"
+               [ "$cpu" != "" ] && echo "TARGETCPU=-mcpu=$cpu"
                echo "OPTIMISATIONS=-O3 -pipe -fomit-frame-pointer"
 
                echo "CFLAGS+=-Wall -fPIC -DPIC \$(TARGETARCH) \$(TARGETCPU) \$(OPTIMISATIONS) \$(MMX_FLAGS) \$(SSE_FLAGS) \$(DEBUG_FLAGS) \$(LARGE_FILE)"
@@ -135,6 +135,7 @@ export debug=true
 export mmx=true
 export sse=true
 export gpl=false
+export arch=
 export cpu=
 export targetos=
 
@@ -165,6 +166,7 @@ do
                --disable-mmx )         mmx=false; sse=false ;;
                --disable-sse )         sse=false ;;
                --enable-gpl )          gpl=true ;;
+               --arch=* )                      arch="${i#--arch=}" ;;
                --cpu=* )                       cpu="${i#--cpu=}" ;;
        esac
 done