comparison configure @ 1826:fc5efe18d15e

OggVorbis lib detection, manual language selection and some minor stuff.
author atmos4
date Sat, 01 Sep 2001 19:36:44 +0000
parents 7f65437a67ba
children 73c771050065
comparison
equal deleted inserted replaced
1825:1791c7930776 1826:fc5efe18d15e
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/08/27 by Johannes Feigl
10 # - added manual selection of language
8 # 11 #
9 # 2001/08/22 by Nick Kurshev 12 # 2001/08/22 by Nick Kurshev
10 # - added autodetection of local language 13 # - added autodetection of local language
11 # 14 #
12 # 2001/07/31 by Steve Davies 15 # 2001/07/31 by Steve Davies
124 --cc use this C compiler to build MPlayer [gcc] 127 --cc use this C compiler to build MPlayer [gcc]
125 --target=PLATFORM target platform (i386-linux, arm-linux, etc) 128 --target=PLATFORM target platform (i386-linux, arm-linux, etc)
126 --prefix=DIR use this prefix for installing mplayer [/usr/local] 129 --prefix=DIR use this prefix for installing mplayer [/usr/local]
127 --datadir=DIR use this prefix for installing machine independent 130 --datadir=DIR use this prefix for installing machine independent
128 data [/usr/local/share/mplayer] 131 data [/usr/local/share/mplayer]
132 --language=LANGUAGE selects manual a language, e.g. de, en, hu, pl, ...
129 --enable-debug[=1-3] compile debugging information into mplayer [disable] 133 --enable-debug[=1-3] compile debugging information into mplayer [disable]
130 --enable-profile compile profiling information into mplayer [disable] 134 --enable-profile compile profiling information into mplayer [disable]
131 --enable-largefiles build with support for files >2^32 bytes long [disable] 135 --enable-largefiles build with support for files >2^32 bytes long [disable]
132 --enable-mmx build with mmx support [autodetect] 136 --enable-mmx build with mmx support [autodetect]
133 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect] 137 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect]
147 --enable-xv build with Xv render support for X 4.x [autodetect] 151 --enable-xv build with Xv render support for X 4.x [autodetect]
148 --enable-vm build with XF86VidMode support for x11 driver 152 --enable-vm build with XF86VidMode support for x11 driver
149 --enable-x11 build with X11 render support [autodetect] 153 --enable-x11 build with X11 render support [autodetect]
150 --enable-fbdev build with FBDev render support [_not_ autodetected] 154 --enable-fbdev build with FBDev render support [_not_ autodetected]
151 --enable-mlib build with MLIB support ( only Solaris ) 155 --enable-mlib build with MLIB support ( only Solaris )
156 --enable-oggvorbis build with OggVorbis support [autodetect]
152 157
153 --enable-termcap use termcap database for key codes 158 --enable-termcap use termcap database for key codes
154 --enable-xmmp use XMMP audio drivers 159 --enable-xmmp use XMMP audio drivers
155 --enable-lirc enable LIRC (remote control) support 160 --enable-lirc enable LIRC (remote control) support
156 161
211 _cc=`echo $ac_option | cut -d '=' -f 2` 216 _cc=`echo $ac_option | cut -d '=' -f 2`
212 ;; 217 ;;
213 --as=*) 218 --as=*)
214 _as=`echo $ac_option | cut -d '=' -f 2` 219 _as=`echo $ac_option | cut -d '=' -f 2`
215 ;; 220 ;;
221 --language=*)
222 LINGUAS=`echo $ac_option | cut -d '=' -f 2`
223 ;;
216 --disable-gcc-checking) 224 --disable-gcc-checking)
217 _skip_cc_check=yes 225 _skip_cc_check=yes
218 ;; 226 ;;
219 --disable-as-checking) 227 --disable-as-checking)
220 _skip_as_check=yes 228 _skip_as_check=yes
746 LINGUAS="en" 754 LINGUAS="en"
747 fi 755 fi
748 echo Checking for language ... "$LINGUAS" 756 echo Checking for language ... "$LINGUAS"
749 _mp_help="help_mp-"$LINGUAS".h" 757 _mp_help="help_mp-"$LINGUAS".h"
750 if test ! -f "$_mp_help"; then 758 if test ! -f "$_mp_help"; then
759 echo "Language file ("$_mp_help") not found!"
751 LINGUAS="en" 760 LINGUAS="en"
752 _mp_help="help_mp-"$LINGUAS".h" 761 _mp_help="help_mp-"$LINGUAS".h"
753 fi 762 fi
754 echo Using ... "$_mp_help" file 763 echo Using ... "$_mp_help" file
755 764
811 _termcap=no 820 _termcap=no
812 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -ltermcap > /dev/null 2>&1 && _termcap=yes 821 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -ltermcap > /dev/null 2>&1 && _termcap=yes
813 822
814 _png=no 823 _png=no
815 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lpng -lz -lm > /dev/null 2>&1 && _png=yes 824 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lpng -lz -lm > /dev/null 2>&1 && _png=yes
825
826 _vorbis=no
827 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lvorbis -lm > /dev/null 2>&1 && _vorbis=yes
816 828
817 _ggi=no 829 _ggi=no
818 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lggi > /dev/null 2>&1 && _ggi=yes 830 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lggi > /dev/null 2>&1 && _ggi=yes
819 831
820 _kstat=no 832 _kstat=no
970 char *string = NULL; 982 char *string = NULL;
971 string = memalign(64, sizeof(char)); 983 string = memalign(64, sizeof(char));
972 return 0; 984 return 0;
973 } 985 }
974 EOF 986 EOF
987 _memalign_def='/* #define memalign(a,b) malloc(b) */'
975 $_cc -o $TMPO $TMPC 2> /dev/null || _memalign_def='#define memalign(a,b) malloc(b)' 988 $_cc -o $TMPO $TMPC 2> /dev/null || _memalign_def='#define memalign(a,b) malloc(b)'
976 fi 989 fi
977 990
978 991
979 cat > $TMPC << EOF 992 cat > $TMPC << EOF
1155 --enable-fbdev) 1168 --enable-fbdev)
1156 _fbdev=yes 1169 _fbdev=yes
1157 ;; 1170 ;;
1158 --enable-mlib) 1171 --enable-mlib)
1159 _mlib=yes 1172 _mlib=yes
1173 ;;
1174 --enable-vorbis)
1175 _vorbis=yes
1160 ;; 1176 ;;
1161 --enable-termcap) 1177 --enable-termcap)
1162 _termcap=yes 1178 _termcap=yes
1163 ;; 1179 ;;
1164 --enable-xmmp) 1180 --enable-xmmp)
1300 --disable-divx4) 1316 --disable-divx4)
1301 _divx4linux=no 1317 _divx4linux=no
1302 ;; 1318 ;;
1303 --enable-divx4) 1319 --enable-divx4)
1304 _divx4linux=yes 1320 _divx4linux=yes
1321 ;;
1322 --disable-vorbis)
1323 _vorbis=no
1305 ;; 1324 ;;
1306 --enable-new-gui) 1325 --enable-new-gui)
1307 _gui=yes 1326 _gui=yes
1308 ;; 1327 ;;
1309 --with-win32libdir=*) 1328 --with-win32libdir=*)
1521 echo "Checking for Sun Audio ... $_sun_audio" 1540 echo "Checking for Sun Audio ... $_sun_audio"
1522 echo "Checking for Sun mediaLib ... $_mlib" 1541 echo "Checking for Sun mediaLib ... $_mlib"
1523 echo "Checking for DeCSS support ... $_css" 1542 echo "Checking for DeCSS support ... $_css"
1524 echo "Checking for DVDread support ... $_dvdread" 1543 echo "Checking for DVDread support ... $_dvdread"
1525 echo "Checking for PNG support ... $_png" 1544 echo "Checking for PNG support ... $_png"
1545 echo "Checking for OggVorbis support ... $_vorbis"
1526 echo "Checking for Win32 DLL support ... $_win32dll" 1546 echo "Checking for Win32 DLL support ... $_win32dll"
1527 echo "Checking for DirectShow ... $_dshow" 1547 echo "Checking for DirectShow ... $_dshow"
1528 1548
1529 # check if compiler supports C++ and C++-libs are installed correctly 1549 # check if compiler supports C++ and C++-libs are installed correctly
1530 if [ $_win32dll = yes -a $_dshow = yes ] ; then 1550 if [ $_win32dll = yes -a $_dshow = yes ] ; then
1788 1808
1789 if [ $_png = yes ]; then 1809 if [ $_png = yes ]; then
1790 _libpng='-lpng -lz' 1810 _libpng='-lpng -lz'
1791 fi 1811 fi
1792 1812
1813 if [ $_vorbis = yes ]; then
1814 _vorbis='#define HAVE_OGGVORBIS'
1815 _libvorbis='-lvorbis -lm'
1816 else
1817 _vorbis='#undef HAVE_OGGVORBIS'
1818 fi
1819
1793 _aosrc='' 1820 _aosrc=''
1794 1821
1795 _alsa5='#undef HAVE_ALSA5' 1822 _alsa5='#undef HAVE_ALSA5'
1796 _alsa9='#undef HAVE_ALSA9' 1823 _alsa9='#undef HAVE_ALSA9'
1797 if [ $_alsa = 'yes' ]; then 1824 if [ $_alsa = 'yes' ]; then
2097 EXTRA_INC=$_extraincdir 2124 EXTRA_INC=$_extraincdir
2098 WIN32_PATH=-DWIN32_PATH=\\"$_win32libdir\\" 2125 WIN32_PATH=-DWIN32_PATH=\\"$_win32libdir\\"
2099 2126
2100 X11_INC=$_x11incdir 2127 X11_INC=$_x11incdir
2101 X11DIR=$_x11libdir 2128 X11DIR=$_x11libdir
2102 X_LIBS=$_x11libdir $_extralibdir $_gllib $_ggilib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib $_aalib 2129 X_LIBS=$_x11libdir $_extralibdir $_gllib $_ggilib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib $_aalib $_libvorbis
2103 2130
2104 TERMCAP_LIB=$_libtermcap 2131 TERMCAP_LIB=$_libtermcap
2105 XMM_LIBS = $_xmmplibs 2132 XMM_LIBS = $_xmmplibs
2106 LIRC_LIBS = $_lirclibs 2133 LIRC_LIBS = $_lirclibs
2107 CSS_LIB = $_csslib 2134 CSS_LIB = $_csslib
2291 *---------------------------------------------------------------------------*/ 2318 *---------------------------------------------------------------------------*/
2292 2319
2293 /* termcap flag for getch2.c */ 2320 /* termcap flag for getch2.c */
2294 $_termcap 2321 $_termcap
2295 2322
2323 /* enable PNG support */
2296 $_png 2324 $_png
2325
2326 /* enable OggVorbis support */
2327 $_vorbis
2297 2328
2298 $_streamingdef 2329 $_streamingdef
2299 2330
2300 /* Extension defines */ 2331 /* Extension defines */
2301 $_3dnowm // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.) 2332 $_3dnowm // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.)