aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar nickols_k <nickols_k@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-07 07:52:50 +0000
committerGravatar nickols_k <nickols_k@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-07 07:52:50 +0000
commit314ca124e9444c8aec610ca8b2b0770263a0b199 (patch)
treed7863255446ea4d4ee7d3aa429367dc2b561180a /configure
parent8ddcc671cf0c44d5c354c0598220abf9a762de87 (diff)
profile support & CFLAGS improvements
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@718 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 12 insertions, 5 deletions
diff --git a/configure b/configure
index 2656314afa..21c0c99667 100755
--- a/configure
+++ b/configure
@@ -76,7 +76,8 @@ usage: $0 [options]
params:
--cc use this C compiler to build MPlayer [gcc]
- --enable-debug[=1-3] compile debugging information into mplayer
+ --enable-debug[=1-3] compile debugging information into mplayer [disable]
+ --enable-profile compile profiling information into mplayer [disable]
--enable-mmx build with mmx support [autodetect]
--enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect]
--enable-3dnow build with 3dnow! support [autodetect]
@@ -507,6 +508,9 @@ rm -f $TMPC $TMPO
for ac_option
do
case "$ac_option" in
+ --enable-profile)
+ _profile='-p'
+ ;;
--enable-debug)
_debug='-g'
;;
@@ -806,10 +810,13 @@ if [ $_png = yes ]; then
fi
# Checking for CFLAGS
-if [ "$CFLAGS" = "" ]; then
- CFLAGS="-O4 $_debug -march=$proc -mcpu=$proc -pipe -ffast-math"
+if [ "$_profile" != "" ] || [ "$_debug" != "" ]; then
+ CFLAGS="-O2 -march=$proc -mcpu=$proc $_debug $_profile"
+else
+if test -z "$CFLAGS"; then
+ CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -ffast-math -fomit-frame-pointer"
+fi
fi
-
echo
echo "Creating $MCONF"
cat > $MCONF << EOF
@@ -819,7 +826,7 @@ cat > $MCONF << EOF
AR=ar
CC=$_cc
X11DIR=$_x11libdir
-# OPTFLAGS=-O4 $_debug -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math
+# OPTFLAGS=-O4 $_profile $_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