Mercurial > mplayer.hg
comparison configure @ 912:c50c4713ac43
Support for --prefix option
author | lgb |
---|---|
date | Wed, 30 May 2001 20:23:20 +0000 |
parents | 1e30c5b55cdb |
children | 76fd9463b9d3 |
comparison
equal
deleted
inserted
replaced
911:37f326340650 | 912:c50c4713ac43 |
---|---|
3 # | 3 # |
4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz | 4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz |
5 # pontscho@makacs.poliod.hu | 5 # pontscho@makacs.poliod.hu |
6 # | 6 # |
7 # Changes in reversed order: | 7 # Changes in reversed order: |
8 # | |
9 # 2001/05/40 by LGB | |
10 # - added --prefix support | |
8 # | 11 # |
9 # 2001/05/22 by Nick Kurshev | 12 # 2001/05/22 by Nick Kurshev |
10 # - added definition of CPU clone | 13 # - added definition of CPU clone |
11 # | 14 # |
12 # 2001/04/16 by LGB | 15 # 2001/04/16 by LGB |
77 | 80 |
78 usage: $0 [options] | 81 usage: $0 [options] |
79 | 82 |
80 params: | 83 params: |
81 --cc use this C compiler to build MPlayer [gcc] | 84 --cc use this C compiler to build MPlayer [gcc] |
85 --prefix=DIR use this prefix for installing mplayer [/usr/local] | |
82 --enable-debug[=1-3] compile debugging information into mplayer [disable] | 86 --enable-debug[=1-3] compile debugging information into mplayer [disable] |
83 --enable-profile compile profiling information into mplayer [disable] | 87 --enable-profile compile profiling information into mplayer [disable] |
84 --enable-mmx build with mmx support [autodetect] | 88 --enable-mmx build with mmx support [autodetect] |
85 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect] | 89 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect] |
86 --enable-3dnow build with 3dnow! support [autodetect] | 90 --enable-3dnow build with 3dnow! support [autodetect] |
529 | 533 |
530 # --- | 534 # --- |
531 | 535 |
532 # check for the parameters. | 536 # check for the parameters. |
533 | 537 |
538 _prefix="/usr/local" | |
539 | |
534 for ac_option | 540 for ac_option |
535 do | 541 do |
536 case "$ac_option" in | 542 case "$ac_option" in |
537 --enable-profile) | 543 --enable-profile) |
538 _profile='-p' | 544 _profile='-p' |
713 ;; | 719 ;; |
714 --size-y=*) | 720 --size-y=*) |
715 _y=`echo $ac_option | cut -d '=' -f 2` | 721 _y=`echo $ac_option | cut -d '=' -f 2` |
716 ;; | 722 ;; |
717 --with-x11libdir=*) | 723 --with-x11libdir=*) |
724 ;; | |
725 --prefix=*) | |
726 _prefix=`echo $ac_option | cut -d '=' -f 2` | |
718 ;; | 727 ;; |
719 --cc=*) | 728 --cc=*) |
720 ;; | 729 ;; |
721 esac | 730 esac |
722 done | 731 done |
729 | 738 |
730 # to screen. | 739 # to screen. |
731 echo -n "Kernel: " | 740 echo -n "Kernel: " |
732 uname -a | 741 uname -a |
733 echo "Using C compiler: $_cc" | 742 echo "Using C compiler: $_cc" |
743 echo "Install prefix: $_prefix" | |
734 $_cc -v | 744 $_cc -v |
735 as --version | head -n 1 | 745 as --version | head -n 1 |
736 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )" | 746 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )" |
737 echo "Checking for cpu type ... $pname" | 747 echo "Checking for cpu type ... $pname" |
738 echo "Optimizing to ... $proc" | 748 echo "Optimizing to ... $proc" |
881 CSS_LIB = $_csslib | 891 CSS_LIB = $_csslib |
882 CSS_INC = $_cssinc | 892 CSS_INC = $_cssinc |
883 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\" | 893 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\" |
884 DS_DEP = $_dshowdep | 894 DS_DEP = $_dshowdep |
885 DS_LIB = $_dshowlib | 895 DS_LIB = $_dshowlib |
896 prefix = $_prefix | |
886 | 897 |
887 EOF | 898 EOF |
888 # echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak | 899 # echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak |
889 | 900 |
890 echo "Creating $CCONF" | 901 echo "Creating $CCONF" |