Mercurial > mplayer.hg
comparison configure @ 717:f44cf2772aa1
profile support & CFLAGS improvements
author | nickols_k |
---|---|
date | Mon, 07 May 2001 07:52:50 +0000 |
parents | d73d1b2a565a |
children | c3e0bdb64027 |
comparison
equal
deleted
inserted
replaced
716:946170f9ed39 | 717:f44cf2772aa1 |
---|---|
74 | 74 |
75 usage: $0 [options] | 75 usage: $0 [options] |
76 | 76 |
77 params: | 77 params: |
78 --cc use this C compiler to build MPlayer [gcc] | 78 --cc use this C compiler to build MPlayer [gcc] |
79 --enable-debug[=1-3] compile debugging information into mplayer | 79 --enable-debug[=1-3] compile debugging information into mplayer [disable] |
80 --enable-profile compile profiling information into mplayer [disable] | |
80 --enable-mmx build with mmx support [autodetect] | 81 --enable-mmx build with mmx support [autodetect] |
81 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect] | 82 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect] |
82 --enable-3dnow build with 3dnow! support [autodetect] | 83 --enable-3dnow build with 3dnow! support [autodetect] |
83 --enable-sse build with sse support [autodetect] | 84 --enable-sse build with sse support [autodetect] |
84 --enable-gl build with OpenGL render support [autodetect] | 85 --enable-gl build with OpenGL render support [autodetect] |
505 # check for the parameters. | 506 # check for the parameters. |
506 | 507 |
507 for ac_option | 508 for ac_option |
508 do | 509 do |
509 case "$ac_option" in | 510 case "$ac_option" in |
511 --enable-profile) | |
512 _profile='-p' | |
513 ;; | |
510 --enable-debug) | 514 --enable-debug) |
511 _debug='-g' | 515 _debug='-g' |
512 ;; | 516 ;; |
513 --enable-debug=*) | 517 --enable-debug=*) |
514 _debug=`echo -n '-g'; echo $ac_option | cut -d '=' -f 2` | 518 _debug=`echo -n '-g'; echo $ac_option | cut -d '=' -f 2` |
804 if [ $_png = yes ]; then | 808 if [ $_png = yes ]; then |
805 _libpng='-lpng -lz' | 809 _libpng='-lpng -lz' |
806 fi | 810 fi |
807 | 811 |
808 # Checking for CFLAGS | 812 # Checking for CFLAGS |
809 if [ "$CFLAGS" = "" ]; then | 813 if [ "$_profile" != "" ] || [ "$_debug" != "" ]; then |
810 CFLAGS="-O4 $_debug -march=$proc -mcpu=$proc -pipe -ffast-math" | 814 CFLAGS="-O2 -march=$proc -mcpu=$proc $_debug $_profile" |
811 fi | 815 else |
812 | 816 if test -z "$CFLAGS"; then |
817 CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -ffast-math -fomit-frame-pointer" | |
818 fi | |
819 fi | |
813 echo | 820 echo |
814 echo "Creating $MCONF" | 821 echo "Creating $MCONF" |
815 cat > $MCONF << EOF | 822 cat > $MCONF << EOF |
816 | 823 |
817 # -------- Generated by ./configure ----------- | 824 # -------- Generated by ./configure ----------- |
818 | 825 |
819 AR=ar | 826 AR=ar |
820 CC=$_cc | 827 CC=$_cc |
821 X11DIR=$_x11libdir | 828 X11DIR=$_x11libdir |
822 # OPTFLAGS=-O4 $_debug -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math | 829 # OPTFLAGS=-O4 $_profile $_debug -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math |
823 OPTFLAGS=$CFLAGS | 830 OPTFLAGS=$CFLAGS |
824 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib | 831 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib |
825 X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng | 832 X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng |
826 TERMCAP_LIB=$_libtermcap | 833 TERMCAP_LIB=$_libtermcap |
827 XMM_LIBS = $_xmmplibs | 834 XMM_LIBS = $_xmmplibs |