[x264-devel] [PATCH] remove "die" from configure script

Loïc Le Loarer lll+vlc at m4x.org
Thu Sep 18 00:26:49 CEST 2008


Hi,

This quite old patch introduce the "die" command in the configure script
which doesn't exists (it's a perlism isn't it ?)

Le dimanche 27 janvier 2008 à 10:11:03 +0100, Subversion daemon a écrit:
> r722 | pengvado | 2008-01-27 10:11:01 +0100 (Sun, 27 Jan 2008) | 2 lines
> Changed paths:
>    M /trunk/configure
> 
> configure test for endianness
> 
>  > http://trac.videolan.org/x264/changeset/722

Here is the patch I propose to fix this:

diff --git a/configure b/configure
index 34b12b2..2bb9db9 100755
--- a/configure
+++ b/configure
@@ -328,7 +328,10 @@ fi
 CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS"

 echo "unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';" >
conftest.c
-$CC $CFLAGS conftest.c -c -o conftest.o 2>$DEVNULL || die "endian test
failed"
+$CC $CFLAGS conftest.c -c -o conftest.o 2>$DEVNULL || {
+    echo "endian test failed" 1>&2
+    exit 1
+}
 grep -q BIGE conftest.o && CFLAGS="$CFLAGS -DWORDS_BIGENDIAN"

 # autodetect options that weren't forced nor disabled


Best regards
-- 
Loïc


More information about the x264-devel mailing list