summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-06 10:42:22 +0000
committeratmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-06 10:42:22 +0000
commit6e21a09ab40cc282e9ecf257deada7b6001a92b9 (patch)
treee64142dc3daad3cb88e146c11de08bffec6cba7c
parent194adb781b32d7af025aaae5950d564fa1a72160 (diff)
downloadmpv-6e21a09ab40cc282e9ecf257deada7b6001a92b9.tar.bz2
mpv-6e21a09ab40cc282e9ecf257deada7b6001a92b9.tar.xz
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@712 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-xconfigure11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure b/configure
index c415619df5..2656314afa 100755
--- a/configure
+++ b/configure
@@ -76,6 +76,7 @@ usage: $0 [options]
params:
--cc use this C compiler to build MPlayer [gcc]
+ --enable-debug[=1-3] compile debugging information into mplayer
--enable-mmx build with mmx support [autodetect]
--enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect]
--enable-3dnow build with 3dnow! support [autodetect]
@@ -506,6 +507,12 @@ rm -f $TMPC $TMPO
for ac_option
do
case "$ac_option" in
+ --enable-debug)
+ _debug='-g'
+ ;;
+ --enable-debug=*)
+ _debug=`echo -n '-g'; echo $ac_option | cut -d '=' -f 2`
+ ;;
--enable-css)
_css=yes
;;
@@ -800,7 +807,7 @@ fi
# Checking for CFLAGS
if [ "$CFLAGS" = "" ]; then
- CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -ffast-math"
+ CFLAGS="-O4 $_debug -march=$proc -mcpu=$proc -pipe -ffast-math"
fi
echo
@@ -812,7 +819,7 @@ cat > $MCONF << EOF
AR=ar
CC=$_cc
X11DIR=$_x11libdir
-# OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math
+# OPTFLAGS=-O4 $_debug -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math
OPTFLAGS=$CFLAGS
# LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib
X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng