diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-07 18:56:55 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-07 18:56:55 +0000 |
commit | dd5bfcbc7ef693a260fcfb4e10fc9ddd548a17e2 (patch) | |
tree | 4aa610a01cd5935c4923061f0f3c3667a26fe650 /configure | |
parent | d90e9cb669cce5a8ec011ceffb19eb0b2206e23d (diff) | |
download | mpv-dd5bfcbc7ef693a260fcfb4e10fc9ddd548a17e2.tar.bz2 mpv-dd5bfcbc7ef693a260fcfb4e10fc9ddd548a17e2.tar.xz |
The patch add a library detection to configure and the usage of the
detected libraries in Makefile.
based on patch by Alexander.Gottwald@informatik.tu-chemnitz.de
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9317 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1555,13 +1555,16 @@ fi # Checking for localization ... # CSAK EGY MARADHAT - A HEGYLAKO echocheck "i18n" -if test "$_i18n" = auto ; then +if test "$_i18n" != no ; then cat > $TMPC <<EOF #include <libintl.h> int main(void) { gettext("test"); return 0; } EOF _i18n=no - cc_check && _i18n=yes + _i18n_libs="" + for i18n_lib in "" "-lintl"; do + cc_check $i18n_lib && _i18n=yes && _i18n_libs=$i18n_lib && break + done fi if test "$_i18n" = yes ; then _def_i18n='#define USE_I18N 1' @@ -1569,7 +1572,11 @@ if test "$_i18n" = yes ; then else _def_i18n='#undef USE_I18N' fi -echores "$_i18n" +if test -z $_i18n_libs ; then + echores "$_i18n" +else + echores "$_i18n (using $_i18n_libs)" +fi # Checking for setlocale() ... @@ -4778,6 +4785,7 @@ PP_LIB = $_ld_pp SHARED_PP = $_shared_pp CONFIG_RISKY = yes LIBMENU = $_menu +I18NLIBS = $_i18n_libs OPENDIVX = $_opendivx |