]> git.sesse.net Git - x264/blobdiff - configure
* common/amd64/mc-a.asm: removed useless global variables
[x264] / configure
index 58e7df943e6ba61cb191c80cdaa7e51bbf433d12..f74e95574e0a57e669c5a388fd56893335ba0350 100755 (executable)
--- a/configure
+++ b/configure
@@ -13,6 +13,7 @@ echo "  --enable-vfw             compiles the VfW frontend"
 echo "  --enable-pthread         enables multithreaded encoding"
 echo "  --enable-debug           adds -g, doesn't strip"
 echo "  --enable-visualize       enables visualization (X11 only)"
+echo "  --extra-asflags=EASFLAGS add EASFLAGS to ASFLAGS"
 echo "  --extra-cflags=ECFLAGS   add ECFLAGS to CFLAGS"
 echo "  --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS"
 echo ""
@@ -57,6 +58,10 @@ case "$UNAMES" in
     SYS="FREEBSD"
     LDFLAGS="$LDFLAGS -lm"
     ;;
+  NetBSD)
+    SYS="NETBSD"
+    LDFLAGS="$LDFLAGS -lm"
+    ;;
   Linux)
     SYS="LINUX"
     CFLAGS="$CFLAGS -DHAVE_MALLOC_H"
@@ -107,7 +112,7 @@ case "$UNAMEM" in
       CFLAGS="$CFLAGS -maltivec -mabi=altivec"
     fi
     ;;
-  sun4m|sun4d)
+  sun4m|sun4d|sparc|sparc64)
     ARCH="Sparc"
     ;;
   sun4u)
@@ -117,6 +122,24 @@ case "$UNAMEM" in
     AS="as"
     ASFLAGS="-xarch=v8plusa"
     ;;
+  ia64)
+    ARCH="IA64"
+    ;;
+  mips|mipsel)
+    ARCH="MIPS"
+    ;;
+  m68k)
+    ARCH="M68K"
+    ;;
+  arm)
+    ARCH="ARM"
+    ;;
+  s390|s390x)
+    ARCH="S390"
+    ;;
+  parisc|parisc64)
+    ARCH="PARISC"
+    ;;
   *)
     echo "Unknown platform $UNAMEM, edit the configure"
     exit 1
@@ -154,12 +177,15 @@ for opt do
             ;;
         --enable-mp4-output)
             CFLAGS="$CFLAGS -DMP4_OUTPUT"
-            LDFLAGS="$LDFLAGS -lm4systems_static"
+            LDFLAGS="$LDFLAGS -lgpac_static"
             if [ $SYS = CYGWIN -o $SYS = MINGW ]; then
                 LDFLAGS="$LDFLAGS -lwinmm"
             fi
             mp4_output="yes"
             ;;
+        --extra-asflags=*)
+            ASFLAGS="$ASFLAGS ${opt#--extra-asflags=}"
+            ;;
         --extra-cflags=*)
             CFLAGS="$CFLAGS ${opt#--extra-cflags=}"
             VFW_CFLAGS="${opt#--extra-cflags=}"