~ubuntu-branches/debian/squeeze/mplayer/squeeze

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2010-07-31 23:44:52 UTC
  • mfrom: (1.1.4 upstream) (8.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100731234452-j7yyrgsh1wustazr
Tags: 2:1.0~rc3++final.dfsg1-1
* upload to unstable
* enable mencoder and mplayer-gui package
* build again against the system FFmpeg 0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
473
473
  --with-xvmclib=NAME         adapter-specific library name (e.g. XvMCNVIDIA)
474
474
 
475
475
  --with-freetype-config=PATH path to freetype-config
476
 
  --with-fribidi-config=PATH  path to fribidi-config
477
476
  --with-glib-config=PATH     path to glib*-config
478
477
  --with-gtk-config=PATH      path to gtk*-config
479
478
  --with-sdl-config=PATH      path to sdl*-config
710
709
_sortsub=yes
711
710
_freetypeconfig='freetype-config'
712
711
_fribidi=auto
713
 
_fribidiconfig='fribidi-config'
714
712
_enca=auto
715
713
_inet6=auto
716
714
_gethostbyname2=auto
778
776
  --with-freetype-config=*)
779
777
    _freetypeconfig=`echo $ac_option | cut -d '=' -f 2`
780
778
    ;;
781
 
  --with-fribidi-config=*)
782
 
    _fribidiconfig=`echo $ac_option | cut -d '=' -f 2`
783
 
    ;;
784
779
  --with-gtk-config=*)
785
780
    _gtkconfig=`echo $ac_option | cut -d '=' -f 2`
786
781
    ;;
1480
1475
  test "$I" && break
1481
1476
done
1482
1477
 
 
1478
if which mktemp >/dev/null 2>/dev/null; then
 
1479
  # BSD/Debian/etc. mktemp avoids symlink attacks etc.
 
1480
  I=`mktemp -d "$I"/mplayer.XXXXXX` || exit 1
 
1481
fi
1483
1482
 
1484
1483
TMPLOG="configure.log"
1485
1484
TMPC="$I/mplayer-conf-$RANDOM-$$.c"
6036
6035
 
6037
6036
 
6038
6037
echocheck "fribidi with charsets"
 
6038
_inc_tmp=""
 
6039
_ld_tmp=""
6039
6040
if test "$_fribidi" = auto ; then
6040
 
    if ( $_fribidiconfig --version ) >/dev/null 2>&1 ; then
6041
6041
        cat > $TMPC << EOF
6042
6042
#include <stdio.h>
 
6043
#include <stdlib.h>
6043
6044
/* workaround for fribidi 0.10.4 and below */
6044
6045
#define FRIBIDI_CHARSET_UTF8 FRIBIDI_CHAR_SET_UTF8
6045
6046
#include <fribidi/fribidi.h>
6051
6052
    return 0;
6052
6053
}
6053
6054
EOF
6054
 
        _fribidi=no
6055
 
        cc_check `$_fribidiconfig --cflags` `$_fribidiconfig --libs` && tmp_run && _fribidi=yes
6056
 
    else
6057
 
        _fribidi=no
 
6055
    _fribidi=no
 
6056
    _inc_tmp=""
 
6057
    _ld_tmp="-lfribidi"
 
6058
    cc_check $_inc_tmp $_ld_tmp && _fribidi=yes
 
6059
    if $_pkg_config --exists fribidi > /dev/null 2>&1 &&
 
6060
       test "$_fribidi" = no ; then
 
6061
        _inc_tmp="$($_pkg_config --cflags)"
 
6062
        _ld_tmp="$($_pkg_config --libs)"
 
6063
        cc_check $_inc_tmp $_ld_tmp && _fribidi=yes
6058
6064
    fi
6059
6065
fi
6060
6066
if test "$_fribidi" = yes ; then
6061
 
    def_fribidi='#define CONFIG_FRIBIDI'
6062
 
    extra_cflags="$extra_cflags `$_fribidiconfig --cflags`"
6063
 
    extra_ldflags="$extra_ldflags `$_fribidiconfig --libs`"
 
6067
    def_fribidi='#define CONFIG_FRIBIDI 1'
 
6068
    extra_cflags="$extra_cflags $_inc_tmp"
 
6069
    extra_ldflags="$extra_ldflags $_ld_tmp"
6064
6070
else
6065
6071
    def_fribidi='#undef CONFIG_FRIBIDI'
6066
6072
fi
7070
7076
  cat > $TMPC << EOF
7071
7077
#include <inttypes.h>
7072
7078
#include <x264.h>
7073
 
#if X264_BUILD < 65
7074
 
#error We do not support old versions of x264. Get the latest from SVN.
 
7079
#if X264_BUILD < 83
 
7080
#error We do not support old versions of x264. Get the latest from git.
7075
7081
#endif
7076
7082
int main(void) { x264_encoder_open((void*)0); return 0; }
7077
7083
EOF