comparison configure @ 29321:e98825540790

Overhaul translation handling completely and add options to install specific documentation and man page translations.
author diego
date Sun, 14 Jun 2009 14:55:01 +0000
parents c02c70fd1b08
children 432719ffdaa0
comparison
equal deleted inserted replaced
29320:c02c70fd1b08 29321:e98825540790
423 --disable-dart disable DART audio output [autodetect] 423 --disable-dart disable DART audio output [autodetect]
424 --disable-win32waveout disable Windows waveout audio output [autodetect] 424 --disable-win32waveout disable Windows waveout audio output [autodetect]
425 --disable-coreaudio disable CoreAudio audio output [autodetect] 425 --disable-coreaudio disable CoreAudio audio output [autodetect]
426 --disable-select disable using select() on the audio device [enable] 426 --disable-select disable using select() on the audio device [enable]
427 427
428 Language options:
429 --charset=charset convert the console messages to this character set
430 --language-doc=lang language to use for the documentation [en]
431 --language-man=lang language to use for the man pages [en]
432 --language-msg=lang language to use for the messages and the GUI [en]
433 --language=lang default language to use [en]
434 Specific options override --language. You can pass a list of languages separated
435 by whitespace or commas instead of a single language. Nonexisting translations
436 will be dropped from each list. All documentation and man page translations
437 available in the list will be installed, for the messages the first available
438 translation will be used. The value "all" will activate all translations. The
439 LINGUAS environment variable is honored. In all cases the fallback is English.
440 Available values are: all $msg_lang_all
441
428 Miscellaneous options: 442 Miscellaneous options:
429 --enable-runtime-cpudetection enable runtime CPU detection [disable] 443 --enable-runtime-cpudetection enable runtime CPU detection [disable]
430 --enable-cross-compile enable cross-compilation [autodetect] 444 --enable-cross-compile enable cross-compilation [autodetect]
431 --cc=COMPILER C compiler to build MPlayer [gcc] 445 --cc=COMPILER C compiler to build MPlayer [gcc]
432 --host-cc=COMPILER C compiler for tools needed while building [gcc] 446 --host-cc=COMPILER C compiler for tools needed while building [gcc]
436 --ar=AR librarian to build MPlayer [ar] 450 --ar=AR librarian to build MPlayer [ar]
437 --ranlib=RANLIB ranlib to build MPlayer [ranlib] 451 --ranlib=RANLIB ranlib to build MPlayer [ranlib]
438 --windres=WINDRES windres to build MPlayer [windres] 452 --windres=WINDRES windres to build MPlayer [windres]
439 --target=PLATFORM target platform (i386-linux, arm-linux, etc) 453 --target=PLATFORM target platform (i386-linux, arm-linux, etc)
440 --enable-static build a statically linked binary 454 --enable-static build a statically linked binary
441 --charset=charset convert the console messages to this character set
442 --language-msg=LINGUA language used for messages and the GUI [en]
443 --language=list a white space or comma separated list of languages for
444 translated man pages (the environment variable
445 \$LINGUAS is also honored) [en]
446 (Available: all $msg_lang_all)
447 --with-install=PATH path to a custom install program 455 --with-install=PATH path to a custom install program
448 456
449 Advanced options: 457 Advanced options:
450 --enable-mmx enable MMX [autodetect] 458 --enable-mmx enable MMX [autodetect]
451 --enable-mmxext enable MMX2 (Pentium III, Athlon) [autodetect] 459 --enable-mmxext enable MMX2 (Pentium III, Athlon) [autodetect]
846 --windres=*) 854 --windres=*)
847 _windres=$(echo $ac_option | cut -d '=' -f 2) 855 _windres=$(echo $ac_option | cut -d '=' -f 2)
848 ;; 856 ;;
849 --charset=*) 857 --charset=*)
850 _charset=$(echo $ac_option | cut -d '=' -f 2) 858 _charset=$(echo $ac_option | cut -d '=' -f 2)
859 ;;
860 --language-doc=*)
861 language_doc=$(echo $ac_option | cut -d '=' -f 2)
862 ;;
863 --language-man=*)
864 language_man=$(echo $ac_option | cut -d '=' -f 2)
851 ;; 865 ;;
852 --language-msg=*) 866 --language-msg=*)
853 language_msg=$(echo $ac_option | cut -d '=' -f 2) 867 language_msg=$(echo $ac_option | cut -d '=' -f 2)
854 ;; 868 ;;
855 --language=*) 869 --language=*)
2791 fi 2805 fi
2792 echores "$_langinfo" 2806 echores "$_langinfo"
2793 2807
2794 2808
2795 echocheck "language" 2809 echocheck "language"
2810 # Set preferred languages, "all" uses English as main language.
2796 test -z "$language" && language=$LINGUAS 2811 test -z "$language" && language=$LINGUAS
2797 test -z "$language_msg" && language_msg=$LINGUAS 2812 test -z "$language_doc" && language_doc=$language
2798 language=$(echo $language | tr , " ") 2813 test -z "$language_man" && language_man=$language
2814 test -z "$language_msg" && language_msg=$language
2815 language_doc=$(echo $language_doc | tr , " ")
2816 language_man=$(echo $language_man | tr , " ")
2799 language_msg=$(echo $language_msg | tr , " ") 2817 language_msg=$(echo $language_msg | tr , " ")
2800 if $(echo $language | grep -q all) ; then 2818
2801 doc_lang=en ; doc_langs=$doc_lang_all 2819 test "$language_doc" = "all" && language_doc=$doc_lang_all
2802 man_lang=en ; man_langs=$man_lang_all 2820 test "$language_man" = "all" && language_man=$man_lang_all
2803 else 2821 test "$language_msg" = "all" && language_msg=en
2804 for lang in $language ; do 2822
2805 if test -d DOCS/man/$lang ; then 2823 # Prune non-existing translations from language lists.
2806 tmp_man_langs="$tmp_man_langs $lang" 2824 # Set message translation to the first available language.
2807 fi 2825 # Fall back on English.
2808 if test -d DOCS/xml/$lang ; then 2826 for lang in $language_doc ; do
2809 tmp_doc_langs="$tmp_doc_langs $lang" 2827 test -d DOCS/xml/$lang && tmp_language_doc="$tmp_language_doc $lang"
2810 fi 2828 done
2811 done 2829 language_doc=$tmp_language_doc
2812 man_langs=$tmp_man_langs 2830 test -z "language_doc" && language_doc=en
2813 doc_langs=$tmp_man_langs 2831
2814 for lang in $language_msg ; do 2832 for lang in $language_man ; do
2815 if test -f "help/help_mp-${lang}.h" ; then 2833 test -d DOCS/man/$lang && tmp_language_man="$tmp_language_man $lang"
2816 msg_lang=$lang 2834 done
2817 break 2835 language_man=$tmp_language_man
2818 else 2836 test -z "language_man" && language_man=en
2819 echo ${_echo_n} "$lang not found, ${_echo_c}" 2837
2820 language_msg=$(echo $language_msg | sed "s/$lang *//") 2838 for lang in $language_msg ; do
2821 fi 2839 test -f "help/help_mp-${lang}.h" && language_msg=$lang && break
2822 done 2840 done
2823 fi 2841 test -z "language_msg" && language_msg=en
2824 test -z "$doc_langs" && doc_langs=en 2842 _mp_help="help/help_mp-${language_msg}.h"
2825 test -z "$man_langs" && man_langs=en 2843 echores "messages: $language_msg - man pages: $language_man - documentation: $language_doc"
2826 test -z "$doc_lang" && doc_lang=$(echo $doc_langs | cut -f1 -d" ")
2827 test -z "$man_lang" && man_lang=$(echo $man_langs | cut -f1 -d" ")
2828 test -z "$msg_lang" && msg_lang=en
2829 _mp_help="help/help_mp-${msg_lang}.h"
2830 echores "messages: $msg_lang - man pages: $man_langs - documentation: $doc_langs"
2831 2844
2832 2845
2833 echocheck "enable sighandler" 2846 echocheck "enable sighandler"
2834 if test "$_sighandler" = yes ; then 2847 if test "$_sighandler" = yes ; then
2835 def_sighandler='#define CONFIG_SIGHANDLER 1' 2848 def_sighandler='#define CONFIG_SIGHANDLER 1'
8111 export LC_ALL = C 8124 export LC_ALL = C
8112 8125
8113 CONFIGURATION = $_configuration 8126 CONFIGURATION = $_configuration
8114 8127
8115 CHARSET = $_charset 8128 CHARSET = $_charset
8116 DOC_LANG = $doc_lang
8117 DOC_LANGS = $doc_langs 8129 DOC_LANGS = $doc_langs
8118 DOC_LANG_ALL = $doc_lang_all 8130 DOC_LANG_ALL = $doc_lang_all
8119 MAN_LANG = $man_lang
8120 MAN_LANGS = $man_langs 8131 MAN_LANGS = $man_langs
8121 MAN_LANG_ALL = $man_lang_all 8132 MAN_LANG_ALL = $man_lang_all
8122 8133
8123 prefix = \$(DESTDIR)$_prefix 8134 prefix = \$(DESTDIR)$_prefix
8124 BINDIR = \$(DESTDIR)$_bindir 8135 BINDIR = \$(DESTDIR)$_bindir
8908 8919
8909 Byte order: $_byte_order 8920 Byte order: $_byte_order
8910 Optimizing for: $_optimizing 8921 Optimizing for: $_optimizing
8911 8922
8912 Languages: 8923 Languages:
8913 Messages/GUI: $msg_lang 8924 Messages/GUI: $language_msg
8914 Manual pages: $man_langs 8925 Manual pages: $language_man
8926 Documentation: $language_doc
8915 8927
8916 Enabled optional drivers: 8928 Enabled optional drivers:
8917 Input: $_inputmodules 8929 Input: $_inputmodules
8918 Codecs: $_codecmodules 8930 Codecs: $_codecmodules
8919 Audio output: $_aomodules 8931 Audio output: $_aomodules