]> granicus.if.org Git - libx264/commitdiff
Check version of nasm on OS X / Intel
authorEric Petit <titer@videolan.org>
Mon, 1 Jan 2007 22:41:44 +0000 (22:41 +0000)
committerEric Petit <titer@videolan.org>
Mon, 1 Jan 2007 22:41:44 +0000 (22:41 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@615 df754926-b1dd-0310-bc7b-ec298dee348c

configure

index 1ff4ff6a11b52fe4e4aea09d67e17b97af4226da..3ae29fb59b5e36f145a7ab61bfb0e7940e64d4fb 100755 (executable)
--- a/configure
+++ b/configure
@@ -182,6 +182,21 @@ case "${MACHINE%%-*}" in
     ;;
 esac
 
+# check requirements
+
+if [ $SYS = MACOSX -a $ARCH = X86 ]
+then
+  # we want Apple's nasm from Xcode 2.4.1 or later
+  NASM_BUILD_REQUIRED=11
+  NASM_BUILD=`nasm -v|grep "Apple Computer"|sed 's/.*build \([0-9]*\).*/\1/'`
+  if [ $NASM_BUILD -lt $NASM_BUILD_REQUIRED ]
+  then
+    echo "Your version of 'nasm' is too old."
+    echo "Please install Xcode 2.4.1 or later."
+    exit 1
+  fi
+fi
+
 CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS"
 
 # parse options