 -            pthread="no"
 -            ;;
 -        --enable-debug)
--            CFLAGS="$CFLAGS -g"
 -            debug="yes"
 -            ;;
 -        --enable-gprof)

Index: configure
===================================================================
--- configure	(rvision 547)
+++ configure	(copie de travail)
@@ -66,48 +66,147 @@
 
 EXE=""
 
-UNAMES="`uname -s`"
+AR="ar"
+AROPTS="rc"
+RANLIB="ranlib"
+
+UNAMES="`uname -s |tr A-Z a-z`"
+UNAMEM="`uname -m |tr A-Z a-z`"
+
+# parse options
+
+for opt do
+    optarg="${opt#*=}"
+    case "$opt" in
+       --crosscompile=*)
+           CROSS="$optarg"
+           CC="$CROSS-gcc"
+           AR="$CROSS-ar"
+           RANLIB="$CROSS-ranlib"
+           UNAMES="`echo $CROSS | cut -d- -f2`"
+           UNAMEM="`echo $CROSS | cut -d- -f1`"
+           ;;
+       --prefix=*)
+           prefix="$optarg"
+           ;;
+       --exec-prefix=*)
+           eprefix="$optarg"
+           ;;
+       --bindir=*)
+           bindir="$optarg"
+           ;;
+       --libdir=*)
+           libdir="$optarg"
+           ;;
+       --includedir=*)
+           includedir="$optarg"
+           ;;
+        --enable-avis-input)
+            if [ $SYS = CYGWIN -o $SYS = MINGW ]; then
+                CFLAGS="$CFLAGS -DAVIS_INPUT"
+                LDFLAGS="$LDFLAGS -lvfw32"
+                avis_input="yes"
+            fi
+            ;;
+        --enable-mp4-output)
+            CFLAGS="$CFLAGS -DMP4_OUTPUT"
+            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=}"

 # autodetect options that weren't forced nor disabled
 
 if test "$pthread" = "auto" ; then
@@ -361,6 +372,9 @@
 VFW=$vfw
 GTK=$gtk
 EXE=$EXE
+AR=$AR 
+AROPTS=$AROPTS 
+RANLIB=$RANLIB 
 VIS=$vis
 HAVE_GETOPT_LONG=$HAVE_GETOPT_LONG
 DEVNULL=$DEVNULL
Index: Makefile
===================================================================
--- Makefile	(revision 560)
+++ Makefile	(working copy)
@@ -64,8 +64,8 @@
 default: $(DEP) x264$(EXE)
 
