comparison configure @ 9470:3c0bc75f380d

Latest version has the following features: - --language=ab,cd,ef and --language="ab cd ef" are supported, the list is now used as a fallback for possible message/gui translations - --language=all is supported - --language=ab,cd,ef,all and --language="ab cd ef all" are supported for all man pages, but different message/gui translations than en - $LINGUAS is honored - if no --language or $LINGUAS is given it defaults to en Credits for ideas go out to (in no particular order): Tobias Diedrich Sylvain Petreolle Dan Christiansen Dominik Mierzejewski Andriy N. Gritsenko and everyone I've forgotten Andreas Hess <jaska@gmx.net>
author arpi
date Thu, 20 Feb 2003 23:32:47 +0000
parents 08c717b7b886
children 8289c6246939
comparison
equal deleted inserted replaced
9469:f9a1701af199 9470:3c0bc75f380d
233 --enable-runtime-cpudetection Enable runtime CPU detection [disable] 233 --enable-runtime-cpudetection Enable runtime CPU detection [disable]
234 --cc=COMPILER use this C compiler to build MPlayer [gcc] 234 --cc=COMPILER use this C compiler to build MPlayer [gcc]
235 --target=PLATFORM target platform (i386-linux, arm-linux, etc) 235 --target=PLATFORM target platform (i386-linux, arm-linux, etc)
236 --enable-static build a statically linked binary. Set further linking 236 --enable-static build a statically linked binary. Set further linking
237 options with --enable-static="-lslang -lncurses" 237 options with --enable-static="-lslang -lncurses"
238 --language=xx select a language (for translated messages/gui) [en] 238 --language=list a white space or comma separated list of languages
239 (Available: $LANGUAGES) 239 for translated man pages, the first language is the
240 primary and therefore used for translated messages
241 and GUI (also the environment variable \$LINGUAS is
242 honored) [en]
243 (Available: $LANGUAGES all)
240 --enable-shared-pp install & use shared postprocessing lib 244 --enable-shared-pp install & use shared postprocessing lib
241 --install-path=PATH the path to a custom install program (useful if 245 --install-path=PATH the path to a custom install program (useful if
242 your OS uses a GNU-incompatible install utility by 246 your OS uses a GNU-incompatible install utility by
243 default and you want to point to the GNU version) 247 default and you want to point to the GNU version)
244 248
291 EOF 295 EOF
292 exit 0 296 exit 0
293 fi 297 fi
294 done # for parm in ... 298 done # for parm in ...
295 299
296
297 # set up LANGUAGES
298 test "$LINGUAS" || LINGUAS=`cd DOCS;/bin/ls -d ??` 2>/dev/null
299 LANGUAGES=`echo $LINGUAS | sed 's/en//g' | sed 's/^ *//'`
300 300
301 # 1st pass checking for vital options 301 # 1st pass checking for vital options
302 _install=install 302 _install=install
303 _ranlib=ranlib 303 _ranlib=ranlib
304 _cc=gcc 304 _cc=gcc
1043 _tdfxfb=no 1043 _tdfxfb=no
1044 _directfb=auto 1044 _directfb=auto
1045 _zr=auto 1045 _zr=auto
1046 _bl=no 1046 _bl=no
1047 _largefiles=no 1047 _largefiles=no
1048 _language=en 1048 #_language=en
1049 _shm=auto 1049 _shm=auto
1050 _linux_devfs=no 1050 _linux_devfs=no
1051 _i18n=auto 1051 _i18n=auto
1052 _dynamic_plugins=no 1052 _dynamic_plugins=no
1053 _setlocale=auto 1053 _setlocale=auto
1267 1267
1268 --enable-sortsub) _sortsub=yes ;; 1268 --enable-sortsub) _sortsub=yes ;;
1269 --disable-sortsub) _sortsub=no ;; 1269 --disable-sortsub) _sortsub=no ;;
1270 1270
1271 --language=*) 1271 --language=*)
1272 LINGUAS=`echo $ac_option | cut -d '=' -f 2` 1272 _language=`echo $ac_option | cut -d '=' -f 2`
1273 ;; 1273 ;;
1274 --with-libdvdnav=*) 1274 --with-libdvdnav=*)
1275 _dvdnavdir=`echo $ac_option | cut -d '=' -f 2` 1275 _dvdnavdir=`echo $ac_option | cut -d '=' -f 2`
1276 _dvdnav=yes 1276 _dvdnav=yes
1277 ;; 1277 ;;
1583 done 1583 done
1584 fi 1584 fi
1585 fi 1585 fi
1586 if test "$_i18n" = yes ; then 1586 if test "$_i18n" = yes ; then
1587 _def_i18n='#define USE_I18N 1' 1587 _def_i18n='#define USE_I18N 1'
1588 # LINGUAS='en' # force help_mp-en.h
1589 else 1588 else
1590 _def_i18n='#undef USE_I18N' 1589 _def_i18n='#undef USE_I18N'
1591 fi 1590 fi
1592 if test -z "$_i18n_libs" ; then 1591 if test -z "$_i18n_libs" ; then
1593 echores "$_i18n" 1592 echores "$_i18n"
1615 fi 1614 fi
1616 echores "$_setlocale" 1615 echores "$_setlocale"
1617 1616
1618 1617
1619 echocheck "language" 1618 echocheck "language"
1620 test -z "$LINGUAS" && LINGUAS="en" 1619 test -z "$_language" && _language=$LINGUAS
1621 if test -f "help/help_mp-${LINGUAS}.h" ; then 1620 _language=`echo $_language | sed 's/,/ /g'`
1622 echores "using ${LINGUAS}" 1621 echo $_language | grep all > /dev/null || LANGUAGES=$_language
1623 else 1622 for i in $_language ; do
1624 echores "${LINGUAS} not found, using en" 1623 test "$i" = all && i=en
1625 LINGUAS="en" 1624 if test -f "help/help_mp-${i}.h" ; then
1626 fi 1625 _language=$i
1627 _mp_help="help/help_mp-${LINGUAS}.h" 1626 break
1627 else
1628 echo -n "$i not found, "
1629 _language=`echo $_language | sed "s/$i *//g"`
1630 fi
1631 done
1632 test -z "$_language" && _language=en
1633 for i in $LANGUAGES ; do
1634 if test -f "DOCS/$i/mplayer.1" ; then
1635 LANGUAGES=`echo $LANGUAGES | sed "s/$i *//2" | sed 's/ *$//'`
1636 else
1637 LANGUAGES=`echo $LANGUAGES | sed "s/$i *//g" | sed 's/ *$//'`
1638 fi
1639 done
1640 test -z "$LANGUAGES" && LANGUAGES=en
1641 echores "using $_language (man pages: $LANGUAGES)"
1642 _mp_help="help/help_mp-${_language}.h"
1628 test -f $_mp_help || die "$_mp_help not found" 1643 test -f $_mp_help || die "$_mp_help not found"
1629 1644
1630 echocheck "enable sighandler" 1645 echocheck "enable sighandler"
1631 if test "$_sighandler" = yes ; then 1646 if test "$_sighandler" = yes ; then
1632 _def_sighandler='#define ENABLE_SIGHANDLER 1' 1647 _def_sighandler='#define ENABLE_SIGHANDLER 1'
4869 echo "Creating config.mak" 4884 echo "Creating config.mak"
4870 cat > config.mak << EOF 4885 cat > config.mak << EOF
4871 # -------- Generated by configure ----------- 4886 # -------- Generated by configure -----------
4872 4887
4873 LANG = C 4888 LANG = C
4874 LINGUAS = $LINGUAS
4875 LANGUAGES = $LANGUAGES 4889 LANGUAGES = $LANGUAGES
4876 TARGET_OS = $system_name 4890 TARGET_OS = $system_name
4877 DESTDIR = 4891 DESTDIR =
4878 prefix = \$(DESTDIR)$_prefix 4892 prefix = \$(DESTDIR)$_prefix
4879 BINDIR = \$(DESTDIR)$_bindir 4893 BINDIR = \$(DESTDIR)$_bindir
5523 Data directory: $_datadir 5537 Data directory: $_datadir
5524 Config direct.: $_confdir 5538 Config direct.: $_confdir
5525 5539
5526 Byte order: $_byte_order 5540 Byte order: $_byte_order
5527 Optimizing for: $_optimizing 5541 Optimizing for: $_optimizing
5542
5543 Languages:
5544 Messages/GUI: $_language
5545 EOF
5546
5547 echo -n " Manual pages: $LANGUAGES"
5548 test "$LANGUAGES" = en && echo -n " (no localization selected, use --language=all)"
5549 echo
5528 5550
5551 cat << EOF
5552
5529 Enabled optional drivers: 5553 Enabled optional drivers:
5530 Input: $_inputmodules 5554 Input: $_inputmodules
5531 Codecs: $_codecmodules 5555 Codecs: $_codecmodules
5532 Audio output: $_aomodules 5556 Audio output: $_aomodules
5533 Video output: $_vomodules 5557 Video output: $_vomodules