Support setting the debuglevel (-g level) with --enable-debug=#
authorBenjamin Larsson <banan@ludd.ltu.se>
Mon, 3 Mar 2008 16:59:53 +0000 (16:59 +0000)
committerBenjamin Larsson <banan@ludd.ltu.se>
Mon, 3 Mar 2008 16:59:53 +0000 (16:59 +0000)
Originally committed as revision 12298 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index ec9c220..5918633 100755 (executable)
--- a/configure
+++ b/configure
@@ -1066,6 +1066,8 @@ for opt do
     ;;
     --disable-devices) disable $INDEV_LIST $OUTDEV_LIST
     ;;
+    --enable-debug=*) debuglevel="$optval"
+    ;;
     --enable-*=*|--disable-*=*)
     eval `echo "$opt" | sed 's/=/-/;s/--/action=/;s/-/ thing=/;s/-/ name=/'`
     case "$thing" in
@@ -1795,7 +1797,7 @@ check_header X11/extensions/XShm.h      &&
 check_func XOpenDisplay -lX11           &&
 check_func XShmCreateImage -lX11 -lXext
 
-enabled debug && add_cflags -g
+enabled debug && add_cflags -g"$debuglevel"
 
 # add some useful compiler flags if supported
 check_cflags -Wdeclaration-after-statement