gmerlin-avdecoder-1.2.0~dfsg/0000755000000000000000000000000011764363525014655 5ustar rootrootgmerlin-avdecoder-1.2.0~dfsg/cvs_clean.sh0000755000000000000000000000117311764363506017152 0ustar rootroot#!/bin/sh SUBDIRS="lib lib/real_rtsp lib/libw32dll lib/libw32dll/DirectShow lib/libw32dll/qtx lib/libw32dll/qtx/qtxsdk lib/libw32dll/wine plugins include tests" make distclean CLEANFILES="Makefile.in *.o *.lo *.la .libs .deps" TOPCLEANFILES="aclocal.m4 config.guess config.status config.sub configure gmerlin.spec gmerlin.pc libtool ltmain.sh autom4te*.cache depcomp install-sh missing mkinstalldirs Makefile.in" echo "Cleaning up..." for i in $TOPCLEANFILES; do echo "Removing $i" rm -rf $i done for i in $SUBDIRS; do for j in $CLEANFILES; do echo rm -rf $i/$j rm -rf $i/$j done done echo "You can now rerun autogen.sh" gmerlin-avdecoder-1.2.0~dfsg/m4/0000755000000000000000000000000011764363526015176 5ustar rootrootgmerlin-avdecoder-1.2.0~dfsg/m4/inttypes_h.m40000644000000000000000000000162311764363477017635 0ustar rootroot# inttypes_h.m4 serial 6 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_INTTYPES_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_INTTYPES_H], [ AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h, [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1;], gl_cv_header_inttypes_h=yes, gl_cv_header_inttypes_h=no)]) if test $gl_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/inttypes-h.m40000644000000000000000000000150011764363477017545 0ustar rootroot# inttypes-h.m4 serial 1 (gettext-0.15) dnl Copyright (C) 1997-2002, 2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_INTTYPES_H if exists and doesn't clash with # . AC_DEFUN([gl_HEADER_INTTYPES_H], [ AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h, [ AC_TRY_COMPILE( [#include #include ], [], gl_cv_header_inttypes_h=yes, gl_cv_header_inttypes_h=no) ]) if test $gl_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, [Define if exists and doesn't clash with .]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/lqt_opt_cflags.m40000644000000000000000000000461511764363477020454 0ustar rootroot# # Automatic OPT_CFLAGS generation by Burkhard Plaum (2005-05-24) # dnl LQT_TRY_CFLAGS (CFLAGS, [ACTION-IF-WORKS], [ACTION-IF-FAILS]) dnl check if $CC supports a given set of cflags AC_DEFUN([LQT_TRY_CFLAGS], [AC_MSG_CHECKING([if $CC supports $1 flags]) SAVE_CFLAGS="$CFLAGS" CFLAGS="$1" AC_TRY_COMPILE([],[],[lqt_try_cflags_ok=yes],[lqt_try_cflags_ok=no]) CFLAGS="$SAVE_CFLAGS" AC_MSG_RESULT([$lqt_try_cflags_ok]) if test x"$lqt_try_cflags_ok" = x"yes"; then ifelse([$2],[],[:],[$2]) else ifelse([$3],[],[:],[$3]) fi]) dnl LQT_OPT_CFLAGS(CPU_TYPE [, ADDITIONAL_OPT_FLAGS]) dnl Get proper optimization flags. dnl dnl CPU_TYPE: host_cpu variable as obtained from AC_CANONICAL_HOST dnl ADDITIONAL_OPT_FLAGS: Additional optimization flags (e.g. -O3 --fast-math) dnl On output, the Variable LQT_OPT_CFLAGS will be set to the compiler flags dnl Furthermore, is debuggind was requested, the variable LQT_DEBUG will be dnl set to "true" AC_DEFUN([LQT_OPT_CFLAGS],[ dnl dnl Debugging Support dnl LQT_DEBUG=false AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug],[Enable debugging, disable optimization])], [case "${enableval}" in yes) LQT_DEBUG=true ;; no) LQT_DEBUG=false ;; esac],[LQT_DEBUG=false]) dnl dnl Extra cflags from the commandline. Can have the special values "none" or "auto" dnl AC_ARG_WITH(cpuflags, AC_HELP_STRING([--with-cpuflags],[Set CPU specific compiler flags. Default is auto, which does autodetection. Specify none for compiling the most portable binaries]), lqt_cpuflags="$withval", lqt_cpuflags="auto") if test x$lqt_cpuflags = xnone; then lqt_cpuflags="" fi dnl dnl Autodetect CPU specific flags dnl if test x$lqt_cpuflags = xauto; then lqt_cpu_family="" case [$1] in i[[3-7]]86) lqt_cpu_family=x86;; x86_64*) lqt_cpu_family=x86;; powerpc | powerpc64) lqt_cpu_family=ppc;; *) lqt_cpu_family="";; esac if test x$lqt_cpu_family = x; then lqt_cpuflags="" else lqt_cpuflags=`$srcdir/cpuinfo.sh $lqt_cpu_family` fi fi dnl dnl Build the final flags dnl lqt_additional_opt_flags=ifelse([$2],[],[],[$2]) lqt_test_flags=$lqt_cpuflags if test x$LQT_DEBUG = xtrue; then lqt_test_cflags="$lqt_test_flags -g -DDEBUG" else lqt_test_cflags="$lqt_test_flags $lqt_additional_opt_flags" fi OPT_CFLAGS="" for i in $lqt_test_cflags; do LQT_TRY_CFLAGS($i, OPT_CFLAGS="$OPT_CFLAGS $i") ; done ]) gmerlin-avdecoder-1.2.0~dfsg/m4/longlong.m40000644000000000000000000000141611764363477017266 0ustar rootroot# longlong.m4 serial 5 dnl Copyright (C) 1999-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_LONG_LONG if 'long long' works. AC_DEFUN([gl_AC_TYPE_LONG_LONG], [ AC_CACHE_CHECK([for long long], ac_cv_type_long_long, [AC_TRY_LINK([long long ll = 1LL; int i = 63;], [long long llmax = (long long) -1; return ll << i | ll >> i | llmax / ll | llmax % ll;], ac_cv_type_long_long=yes, ac_cv_type_long_long=no)]) if test $ac_cv_type_long_long = yes; then AC_DEFINE(HAVE_LONG_LONG, 1, [Define if you have the 'long long' type.]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/ulonglong.m40000644000000000000000000000161511764363477017454 0ustar rootroot# ulonglong.m4 serial 4 dnl Copyright (C) 1999-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works. AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG], [ AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, [AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;], [unsigned long long ullmax = (unsigned long long) -1; return ull << i | ull >> i | ullmax / ull | ullmax % ull;], ac_cv_type_unsigned_long_long=yes, ac_cv_type_unsigned_long_long=no)]) if test $ac_cv_type_unsigned_long_long = yes; then AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, [Define if you have the 'unsigned long long' type.]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/stdint_h.m40000644000000000000000000000157311764363477017267 0ustar rootroot# stdint_h.m4 serial 5 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_STDINT_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_STDINT_H], [ AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h, [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1;], gl_cv_header_stdint_h=yes, gl_cv_header_stdint_h=no)]) if test $gl_cv_header_stdint_h = yes; then AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1, [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/xsize.m40000644000000000000000000000064511764363477016614 0ustar rootroot# xsize.m4 serial 3 dnl Copyright (C) 2003-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_XSIZE], [ dnl Prerequisites of lib/xsize.h. AC_REQUIRE([gl_SIZE_MAX]) AC_REQUIRE([AC_C_INLINE]) AC_CHECK_HEADERS(stdint.h) ]) gmerlin-avdecoder-1.2.0~dfsg/m4/check_funcs.m40000644000000000000000000010746111764363477017731 0ustar rootrootdnl dnl AVCodec dnl AC_DEFUN([GMERLIN_CHECK_AVCODEC],[ AH_TEMPLATE([HAVE_LIBAVCODEC], [Do we have libavcodec installed?]) have_avcodec=false AVCODEC_BUILD="3412992" AC_ARG_ENABLE(libavcodec, [AC_HELP_STRING([--disable-libavcodec],[Disable libavcodec (default: autodetect)])], [case "${enableval}" in yes) test_avcodec=true ;; no) test_avcodec=false ;; esac],[test_avcodec=true]) if test x$test_avcodec = xtrue; then ACL_PATH_AVCODEC($AVCODEC_BUILD , have_avcodec="true", have_avcodec="false") AVCODEC_REQUIRED=$AVCODEC_VERSION fi AM_CONDITIONAL(HAVE_LIBAVCODEC, test x$have_avcodec = xtrue) AC_SUBST(AVCODEC_REQUIRED) AC_SUBST(AVCODEC_LIBS) AC_SUBST(AVCODEC_CFLAGS) if test "x$have_avcodec" = "xtrue"; then AC_DEFINE([HAVE_LIBAVCODEC]) fi ]) dnl dnl Avformat dnl AC_DEFUN([GMERLIN_CHECK_AVFORMAT],[ AH_TEMPLATE([HAVE_LIBAVFORMAT], [Do we have libavformat installed?]) AH_TEMPLATE([AVFORMAT_HEADER], [libavformat header]) have_avformat=false AVFORMAT_BUILD="3415808" AC_ARG_ENABLE(libavformat, [AC_HELP_STRING([--disable-libavformat],[Disable libavformat (default: autodetect)])], [case "${enableval}" in yes) test_avformat=true ;; no) test_avformat=false ;; esac],[test_avformat=true]) if test x$test_avformat = xtrue; then ACL_PATH_AVFORMAT($AVFORMAT_BUILD , have_avformat="true", have_avformat="false") AVFORMAT_REQUIRED=$AVFORMAT_VERSION fi AM_CONDITIONAL(HAVE_LIBAVFORMAT, test x$have_avformat = xtrue) AC_SUBST(AVFORMAT_REQUIRED) AC_SUBST(AVFORMAT_LIBS) AC_SUBST(AVFORMAT_CFLAGS) if test "x$have_avformat" = "xtrue"; then AC_DEFINE([HAVE_LIBAVFORMAT]) AC_DEFINE_UNQUOTED(AVFORMAT_HEADER, $AVFORMAT_HEADER) fi ]) dnl dnl libpostproc dnl AC_DEFUN([GMERLIN_CHECK_LIBPOSTPROC],[ AH_TEMPLATE([HAVE_LIBPOSTPROC], [Do we have libpostproc installed?]) AH_TEMPLATE([POSTPROC_HEADER], [libpostproc header]) have_libpostproc=false LIBPOSTPROC_REQUIRED="51.0.0" AC_ARG_ENABLE(libpostproc, [AC_HELP_STRING([--disable-libpostproc],[Disable libpostproc (default: autodetect)])], [case "${enableval}" in yes) test_libpostproc=true ;; no) test_libpostproc=false ;; esac],[test_libpostproc=true]) if test x$test_libpostproc = xtrue; then PKG_CHECK_MODULES(LIBPOSTPROC, libpostproc >= $LIBPOSTPROC_REQUIRED, have_libpostproc="true", have_libpostproc="false") fi if test x$have_libpostproc = xtrue; then CFLAGS_save=$CFLAGS CFLAGS="$CFLAGS $GMERLIN_DEP_CFLAGS $LIBPOSTPROC_CFLAGS" found_header="false" AC_TRY_COMPILE([ #include #include ],[], [found_header="true";POSTPROC_HEADER="" ],) if test $found_header = "false"; then AC_TRY_COMPILE([ #include #include ],[], [found_header="true";POSTPROC_HEADER="" ],) fi if test $found_header = "false"; then AC_TRY_COMPILE([ #include #include ],[],[found_header="true";POSTPROC_HEADER=""]) fi if test $found_header = "false"; then have_libpostproc=false else CFLAGS="-DPOSTPROC_HEADER=$POSTPROC_HEADER $CFLAGS" AC_CHECK_TYPES([pp_context_t, pp_context, pp_mode_t, pp_mode], [], [], [[ #ifdef POSTPROC_HEADER #include POSTPROC_HEADER #endif ]]) fi CFLAGS="$CFLAGS_save" fi AC_SUBST(LIBPOSTPROC_REQUIRED) AC_SUBST(LIBPOSTPROC_LIBS) AC_SUBST(LIBPOSTPROC_CFLAGS) AM_CONDITIONAL(HAVE_LIBPOSTPROC, test x$have_libpostproc = xtrue) if test "x$have_libpostproc" = "xtrue"; then AC_DEFINE([HAVE_LIBPOSTPROC]) AC_DEFINE_UNQUOTED(POSTPROC_HEADER, $POSTPROC_HEADER) fi ]) dnl dnl libswscale dnl AC_DEFUN([GMERLIN_CHECK_LIBSWSCALE],[ AH_TEMPLATE([HAVE_LIBSWSCALE], [Do we have libswscale installed?]) AH_TEMPLATE([SWSCALE_HEADER], [libswscale header]) have_libswscale=false LIBSWSCALE_REQUIRED="0.5.0" AC_ARG_ENABLE(libswscale, [AC_HELP_STRING([--disable-libswscale],[Disable libswscale (default: autodetect)])], [case "${enableval}" in yes) test_libswscale=true ;; no) test_libswscale=false ;; esac],[test_libswscale=true]) if test x$test_libswscale = xtrue; then PKG_CHECK_MODULES(LIBSWSCALE, libswscale >= $LIBSWSCALE_REQUIRED, have_libswscale="true", have_libswscale="false") fi if test x$have_libswscale = xtrue; then CFLAGS_save=$CFLAGS CFLAGS="$CFLAGS $GMERLIN_DEP_CFLAGS $LIBSWSCALE_CFLAGS" found_header="false" AC_TRY_COMPILE([ #include #include ],[], [found_header="true";SWSCALE_HEADER=""],) if test $found_header = "false"; then AC_TRY_COMPILE([ #include #include ],[], [found_header="true";SWSCALE_HEADER=""],) fi if test $found_header = "false"; then AC_TRY_COMPILE([ #include #include ],[],[found_header="true";SWSCALE_HEADER=""]) fi CFLAGS="$CFLAGS_save" fi AC_SUBST(LIBSWSCALE_REQUIRED) AC_SUBST(LIBSWSCALE_LIBS) AC_SUBST(LIBSWSCALE_CFLAGS) AM_CONDITIONAL(HAVE_LIBSWSCALE, test x$have_libswscale = xtrue) if test "x$have_libswscale" = "xtrue"; then AC_DEFINE([HAVE_LIBSWSCALE]) AC_DEFINE_UNQUOTED(SWSCALE_HEADER, $SWSCALE_HEADER) fi ]) dnl dnl Check for theora decoder dnl AC_DEFUN([GMERLIN_CHECK_THEORADEC],[ AH_TEMPLATE([HAVE_THEORADEC], [Do we have theora decoder installed?]) have_theora="false" THEORADEC_REQUIRED="1.0.0" AC_ARG_ENABLE(theoradec, [AC_HELP_STRING([--disable-theoradec],[Disable theoradec (default: autodetect)])], [case "${enableval}" in yes) test_theoradec=true ;; no) test_theoradec=false ;; esac],[test_theoradec=true]) if test x$test_theoradec = xtrue; then PKG_CHECK_MODULES(THEORADEC, theoradec, have_theoradec="true", have_theoradec="false") fi AC_SUBST(THEORADEC_REQUIRED) AC_SUBST(THEORADEC_LIBS) AC_SUBST(THEORADEC_CFLAGS) AM_CONDITIONAL(HAVE_THEORADEC, test x$have_theoradec = xtrue) if test "x$have_theoradec" = "xtrue"; then AC_DEFINE([HAVE_THEORADEC]) fi ]) dnl dnl Check for theora encoder dnl AC_DEFUN([GMERLIN_CHECK_THEORAENC],[ AH_TEMPLATE([HAVE_THEORAENC], [Do we have theoraenc installed?]) have_theoraenc="false" THEORAENC_REQUIRED="1.0.0" AC_ARG_ENABLE(theoraenc, [AC_HELP_STRING([--disable-theoraenc],[Disable theoraenc (default: autodetect)])], [case "${enableval}" in yes) test_theoraenc=true ;; no) test_theoraenc=false ;; esac],[test_theoraenc=true]) if test x$test_theoraenc = xtrue; then PKG_CHECK_MODULES(THEORAENC, theoraenc, have_theoraenc="true", have_theoraenc="false") fi AC_SUBST(THEORAENC_REQUIRED) AC_SUBST(THEORAENC_LIBS) AC_SUBST(THEORAENC_CFLAGS) AM_CONDITIONAL(HAVE_THEORAENC, test x$have_theoraenc = xtrue) if test "x$have_theoraenc" = "xtrue"; then AC_DEFINE([HAVE_THEORAENC]) fi ]) dnl dnl Check for schroedinger dnl AC_DEFUN([GMERLIN_CHECK_SCHROEDINGER],[ AH_TEMPLATE([HAVE_SCHROEDINGER], [Do we have schroedinger installed?]) have_schroedinger="false" SCHROEDINGER_REQUIRED="1.0.5" AC_ARG_ENABLE(schroedinger, [AC_HELP_STRING([--disable-schroedinger],[Disable schroedinger (default: autodetect)])], [case "${enableval}" in yes) test_schroedinger=true ;; no) test_schroedinger=false ;; esac],[test_schroedinger=true]) if test x$test_schroedinger = xtrue; then PKG_CHECK_MODULES(SCHROEDINGER, schroedinger-1.0 >= $SCHROEDINGER_REQUIRED, have_schroedinger="true", have_schroedinger="false") fi AC_SUBST(SCHROEDINGER_REQUIRED) AC_SUBST(SCHROEDINGER_LIBS) AC_SUBST(SCHROEDINGER_CFLAGS) AM_CONDITIONAL(HAVE_SCHROEDINGER, test x$have_schroedinger = xtrue) if test "x$have_schroedinger" = "xtrue"; then AC_DEFINE([HAVE_SCHROEDINGER]) fi ]) dnl dnl Check for speex dnl AC_DEFUN([GMERLIN_CHECK_SPEEX],[ AH_TEMPLATE([HAVE_SPEEX], [Do we have speex installed?]) have_speex="false" SPEEX_REQUIRED="1.0.4" AC_ARG_ENABLE(speex, [AC_HELP_STRING([--disable-speex],[Disable speex (default: autodetect)])], [case "${enableval}" in yes) test_speex=true ;; no) test_speex=false ;; esac],[test_speex=true]) if test x$test_speex = xtrue; then PKG_CHECK_MODULES(SPEEX, speex >= $SPEEX_REQUIRED, have_speex="true", have_speex="false") fi AC_SUBST(SPEEX_REQUIRED) AC_SUBST(SPEEX_LIBS) AC_SUBST(SPEEX_CFLAGS) AM_CONDITIONAL(HAVE_SPEEX, test x$have_speex = xtrue) if test "x$have_speex" = "xtrue"; then AC_DEFINE([HAVE_SPEEX]) fi ]) dnl dnl Check for mjpegtools dnl AC_DEFUN([GMERLIN_CHECK_MJPEGTOOLS],[ AH_TEMPLATE([HAVE_MJPEGTOOLS], [Do we have mjpegtools installed?]) have_mjpegtools="false" MJPEGTOOLS_REQUIRED="1.9.0" AC_ARG_ENABLE(mjpegtools, [AC_HELP_STRING([--disable-mjpegtools],[Disable mjpegtools (default: autodetect)])], [case "${enableval}" in yes) test_mjpegtools=true ;; no) test_mjpegtools=false ;; esac],[test_mjpegtools=true]) if test x$test_mjpegtools = xtrue; then PKG_CHECK_MODULES(MJPEGTOOLS, mjpegtools >= $MJPEGTOOLS_REQUIRED, have_mjpegtools="true", have_mjpegtools="false") fi AC_SUBST(MJPEGTOOLS_REQUIRED) AC_SUBST(MJPEGTOOLS_LIBS) AC_SUBST(MJPEGTOOLS_CFLAGS) AM_CONDITIONAL(HAVE_MJPEGTOOLS, test x$have_mjpegtools = xtrue) if test "x$have_mjpegtools" = "xtrue"; then AC_DEFINE([HAVE_MJPEGTOOLS]) fi ]) dnl dnl Check for pulseaudio dnl AC_DEFUN([GMERLIN_CHECK_PULSEAUDIO],[ AH_TEMPLATE([HAVE_PULSEAUDIO], [Do we have pulseaudio installed?]) have_pulseaudio="false" PULSEAUDIO_REQUIRED="0.9.6" AC_ARG_ENABLE(pulseaudio, [AC_HELP_STRING([--disable-pulseaudio],[Disable pulseaudio (default: autodetect)])], [case "${enableval}" in yes) test_pulseaudio=true ;; no) test_pulseaudio=false ;; esac],[test_pulseaudio=true]) if test x$test_pulseaudio = xtrue; then PKG_CHECK_MODULES(PULSEAUDIO, libpulse-simple >= $PULSEAUDIO_REQUIRED, have_pulseaudio="true", have_pulseaudio="false") fi AC_SUBST(PULSEAUDIO_REQUIRED) AC_SUBST(PULSEAUDIO_LIBS) AC_SUBST(PULSEAUDIO_CFLAGS) AM_CONDITIONAL(HAVE_PULSEAUDIO, test x$have_pulseaudio = xtrue) if test "x$have_pulseaudio" = "xtrue"; then AC_DEFINE([HAVE_PULSEAUDIO]) fi ]) dnl dnl Ogg dnl AC_DEFUN([GMERLIN_CHECK_OGG],[ OGG_REQUIRED="1.0" have_ogg=false AH_TEMPLATE([HAVE_OGG], [Ogg libraries are there]) AC_ARG_ENABLE(ogg, [AC_HELP_STRING([--disable-ogg],[Disable ogg (default: autodetect)])], [case "${enableval}" in yes) test_ogg=true ;; no) test_ogg=false ;; esac],[test_ogg=true]) if test x$test_ogg = xtrue; then XIPH_PATH_OGG(have_ogg=true) fi AM_CONDITIONAL(HAVE_OGG, test x$have_ogg = xtrue) if test x$have_ogg = xtrue; then AC_DEFINE(HAVE_OGG) fi AC_SUBST(OGG_REQUIRED) ]) dnl dnl Vorbis dnl AC_DEFUN([GMERLIN_CHECK_VORBIS],[ VORBIS_REQUIRED="1.0" have_vorbis=false AH_TEMPLATE([HAVE_VORBIS], [Vorbis libraries are there]) AC_ARG_ENABLE(vorbis, [AC_HELP_STRING([--disable-vorbis],[Disable vorbis (default: autodetect)])], [case "${enableval}" in yes) test_vorbis=true ;; no) test_vorbis=false ;; esac],[test_vorbis=true]) if test x$test_vorbis = xtrue; then XIPH_PATH_VORBIS(have_vorbis=true) fi AM_CONDITIONAL(HAVE_VORBIS, test x$have_vorbis = xtrue) if test x$have_vorbis = xtrue; then AC_DEFINE(HAVE_VORBIS) OLD_CFLAGS=$CFLAGS OLD_LIBS=$LIBS CFLAGS="$VORBIS_CFLAGS" LIBS="$VORBIS_LIBS" AC_CHECK_FUNCS(vorbis_synthesis_restart) CFLAGS="$OLD_CFLAGS" LIBS="$OLD_LIBS" fi AC_SUBST(VORBIS_REQUIRED) ]) dnl dnl libmpeg2 dnl AC_DEFUN([GMERLIN_CHECK_LIBMPEG2],[ LIBMPEG2_REQUIRED="0.4.0" have_libmpeg2=false AH_TEMPLATE([HAVE_LIBMPEG2], [libmpeg2 found]) AC_ARG_ENABLE(libmpeg2, [AC_HELP_STRING([--disable-libmpeg2],[Disable libmpeg2 (default: autodetect)])], [case "${enableval}" in yes) test_libmpeg2=true ;; no) test_libmpeg2=false ;; esac],[test_libmpeg2=true]) if test x$test_libmpeg2 = xtrue; then PKG_CHECK_MODULES(LIBMPEG2, libmpeg2 >= $LIBMPEG2_REQUIRED, have_libmpeg2=true, have_libmpeg2=false) fi AM_CONDITIONAL(HAVE_LIBMPEG2, test x$have_libmpeg2 = xtrue) if test x$have_libmpeg2 = xtrue; then AC_DEFINE(HAVE_LIBMPEG2) fi AC_SUBST(LIBMPEG2_REQUIRED) ]) dnl dnl libtiff dnl AC_DEFUN([GMERLIN_CHECK_LIBTIFF],[ AH_TEMPLATE([HAVE_LIBTIFF], [Enable tiff codec]) have_libtiff=false TIFF_REQUIRED="3.5.0" AC_ARG_ENABLE(libtiff, [AC_HELP_STRING([--disable-libtiff],[Disable libtiff (default: autodetect)])], [case "${enableval}" in yes) test_libtiff=true ;; no) test_libtiff=false ;; esac],[test_libtiff=true]) if test x$test_libtiff = xtrue; then OLD_LIBS=$LIBS LIBS="$LIBS -ltiff" AC_MSG_CHECKING(for libtiff) AC_TRY_LINK([#include ], [TIFF * tiff = (TIFF*)0; int i = 0; /* We ensure the function is here but never call it */ if(i) TIFFReadRGBAImage(tiff, 0, 0, (uint32*)0, 0); return 0;], [have_libtiff=true]) case $have_libtiff in true) AC_DEFINE(HAVE_LIBTIFF) AC_MSG_RESULT(yes) TIFF_LIBS=$LIBS;; false) AC_MSG_RESULT(no); TIFF_LIBS=""; TIFF_CFLAGS="";; esac LIBS=$OLD_LIBS fi AC_SUBST(TIFF_CFLAGS) AC_SUBST(TIFF_LIBS) AC_SUBST(TIFF_REQUIRED) AM_CONDITIONAL(HAVE_LIBTIFF, test x$have_libtiff = xtrue) if test x$have_libtiff = xtrue; then AC_DEFINE(HAVE_LIBTIFF) fi ]) dnl dnl libopenjpeg dnl AC_DEFUN([GMERLIN_CHECK_OPENJPEG],[ AH_TEMPLATE([HAVE_OPENJPEG], [Enable openjpeg codec]) have_openjpeg=false OPENJPEG_REQUIRED="1.3" AC_ARG_ENABLE(openjpeg, [AC_HELP_STRING([--disable-openjpeg],[Disable openjpeg (default: autodetect)])], [case "${enableval}" in yes) test_openjpeg=true ;; no) test_openjpeg=false ;; esac],[test_openjpeg=true]) if test x$test_openjpeg = xtrue; then OLD_CFLAGS=$CFLAGS OLD_LIBS=$LIBS LIBS="$GMERLIN_DEP_LIBS $LIBS -lopenjpeg -lm" CFLAGS="$CFLAGS $GMERLIN_DEP_CFLAGS" AC_MSG_CHECKING(for openjpeg) AC_TRY_LINK([#include ], [opj_version(); return 0;], [have_openjpeg=true]) case $have_openjpeg in true) AC_DEFINE(HAVE_OPENJPEG) AC_MSG_RESULT(yes) OPENJPEG_LIBS=$LIBS; OPENJPEG_CFLAGS=$CFLAGS ;; false) AC_MSG_RESULT(no); OPENJPEG_LIBS=""; OPENJPEG_CFLAGS="";; esac CFLAGS=$OLD_CFLAGS LIBS=$OLD_LIBS fi AC_SUBST(OPENJPEG_CFLAGS) AC_SUBST(OPENJPEG_LIBS) AC_SUBST(OPENJPEG_REQUIRED) AM_CONDITIONAL(HAVE_OPENJPEG, test x$have_openjpeg = xtrue) if test x$have_openjpeg = xtrue; then AC_DEFINE(HAVE_OPENJPEG) fi ]) dnl dnl libsmbclient dnl AC_DEFUN([GMERLIN_CHECK_SAMBA],[ AH_TEMPLATE([HAVE_SAMBA], [Samba support]) have_libsmbclient=false SAMBA_REQUIRED="3.0.0" AC_ARG_ENABLE(samba, [AC_HELP_STRING([--disable-samba],[Disable samba (default autodetect)])], [case "${enableval}" in yes) test_libsmbclient=true ;; no) test_libsmbclient=false ;; esac],[test_libsmbclient=true]) if test x$test_libsmbclient = xtrue; then OLD_CFLAGS=$CFLAGS OLD_LIBS=$LIBS LIBS="-lsmbclient" CFLAGS="" AC_MSG_CHECKING(for libsmbclient) AC_TRY_LINK([#include #include ], [int i = 0; /* We ensure the function is here but never call it */ if(i) smbc_lseek(0,0,SEEK_SET); return 0;], [have_libsmbclient=true]) case $have_libsmbclient in true) AC_DEFINE(HAVE_SAMBA) AC_MSG_RESULT(yes) SAMBA_LIBS=$LIBS; SAMBA_CFLAGS=$CFLAGS ;; false) AC_MSG_RESULT(no); SAMBA_LIBS=""; SAMBA_CFLAGS="";; esac CFLAGS=$OLD_CFLAGS LIBS=$OLD_LIBS fi AC_SUBST(SAMBA_CFLAGS) AC_SUBST(SAMBA_LIBS) AC_SUBST(SAMBA_REQUIRED) AM_CONDITIONAL(HAVE_SAMBA, test x$have_libsmbclient = xtrue) if test x$have_libsmbclient = xtrue; then AC_DEFINE(HAVE_SAMBA) fi ]) dnl dnl PNG dnl AC_DEFUN([GMERLIN_CHECK_LIBPNG],[ AH_TEMPLATE([HAVE_LIBPNG], [Enable png codec]) have_libpng=false PNG_REQUIRED="1.2.2" AC_ARG_ENABLE(libpng, [AC_HELP_STRING([--disable-libpng],[Disable libpng (default: autodetect)])], [case "${enableval}" in yes) test_libpng=true ;; no) test_libpng=false ;; esac],[test_libpng=true]) if test x$test_libpng = xtrue; then OLD_LIBS=$LIBS LIBS="$LIBS -lpng -lm -lz" AC_MSG_CHECKING(for libpng) AC_TRY_LINK([#include ], [png_structp png_ptr; png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, (png_voidp)0, NULL, NULL);], [have_libpng=true]) case $have_libpng in true) AC_DEFINE(HAVE_LIBPNG) AC_MSG_RESULT(yes) PNG_LIBS=$LIBS;; false) AC_MSG_RESULT(no); PNG_LIBS=""; PNG_CFLAGS="";; esac LIBS=$OLD_LIBS fi AC_SUBST(PNG_CFLAGS) AC_SUBST(PNG_LIBS) AC_SUBST(PNG_REQUIRED) AM_CONDITIONAL(HAVE_LIBPNG, test x$have_libpng = xtrue) if test x$have_libpng = xtrue; then AC_DEFINE(HAVE_LIBPNG) fi ]) dnl dnl FAAD2 dnl AC_DEFUN([GMERLIN_CHECK_FAAD2],[ FAAD2_PREFIX="" FAAD2_REQUIRED="2.0" have_faad2="false" AH_TEMPLATE([HAVE_FAAD2], [Enable FAAD2]) AH_TEMPLATE([HAVE_NEAACDEC_H], [Use new header file for faad2]) AC_ARG_WITH(faad2-prefix, [ --with-faad2-prefix=PFX Prefix to search for faad2],FAAD2_PREFIX=${withval}) AC_ARG_ENABLE(faad2, [AC_HELP_STRING([--disable-faad2],[Disable faad2 (default: autodetect)])], [case "${enableval}" in yes) test_faad2=true ;; no) test_faad2=false ;; esac],[test_faad2=true]) if test x$test_faad2 = xtrue; then OLD_CFLAGS=$CFLAGS OLD_LIBS=$LIBS if test "x$FAAD2_PREFIX" = "x"; then CFLAGS="$GMERLIN_DEP_CFLAGS" LIBS="$GMERLIN_DEP_LIBS -lfaad -lm" else CFLAGS="-I$FAAD2_PREFIX/include" LIBS="-L$FAAD2_PREFIX/lib -lfaad -lm" fi dnl dnl Check for neaacdec.h dnl AC_MSG_CHECKING(for neaacdec.h usability for faad2) AC_TRY_RUN([ #include #include main() { int faad_major; int faad_minor; NeAACDecHandle dec; if(sscanf(FAAD2_VERSION, "%d.%d", &faad_major, &faad_minor) < 2) return -1; dec = NeAACDecOpen(); if(!dec) return -1; return 0; } ], [ # program could be run have_faad2="true" AC_MSG_RESULT(yes) FAAD2_CFLAGS=$CFLAGS FAAD2_LIBS=$LIBS AC_DEFINE(HAVE_NEAACDEC_H) ], # program could not be run AC_MSG_RESULT(no) ) if test "x$have_faad2" != "xtrue"; then AC_MSG_CHECKING(for faad.h usability for faad2) AC_TRY_RUN([ #include #include main() { int faad_major; int faad_minor; faacDecHandle dec; if(sscanf(FAAD2_VERSION, "%d.%d", &faad_major, &faad_minor) < 2) return -1; dec = faacDecOpen(); if(!dec) return -1; return 0; } ], [ # program could be run have_faad2="true" AC_MSG_RESULT(yes) FAAD2_CFLAGS=$CFLAGS FAAD2_LIBS=$LIBS ], # program could not be run AC_MSG_RESULT(no) ) fi CFLAGS=$OLD_CFLAGS LIBS=$OLD_LIBS fi AC_SUBST(FAAD2_CFLAGS) AC_SUBST(FAAD2_LIBS) AC_SUBST(FAAD2_REQUIRED) AM_CONDITIONAL(HAVE_FAAD2, test x$have_faad2 = xtrue) if test x$have_faad2 = xtrue; then AC_DEFINE(HAVE_FAAD2) fi ]) dnl dnl DVDREAD dnl AC_DEFUN([GMERLIN_CHECK_DVDREAD],[ DVDREAD_REQUIRED="0.9.5" AH_TEMPLATE([HAVE_DVDREAD], [Enable libdvdread]) have_dvdread="false" AC_ARG_ENABLE(dvdread, [AC_HELP_STRING([--disable-dvdread],[Disable libdvdread (default: autodetect)])], [case "${enableval}" in yes) test_dvdread=true ;; no) test_dvdread=false ;; esac],[test_dvdread=true]) if test x$test_dvdread = xtrue; then OLD_CFLAGS=$CFLAGS OLD_LIBS=$LIBS CFLAGS="$GMERLIN_DEP_CFLAGS" LIBS="$GMERLIN_DEP_LIBS -ldvdread" AC_MSG_CHECKING(for libdvdread >= 0.9.5) AC_TRY_RUN([ #include #include main() { #if DVDREAD_VERSION < 905 return -1; #else return 0; #endif } ], [ # program could be run have_dvdread="true" AC_MSG_RESULT(yes) DVDREAD_CFLAGS="" DVDREAD_LIBS="-ldvdread" ], # program could not be run AC_MSG_RESULT(no) ) if test "x$have_dvdread" = "xtrue"; then AC_CHECK_FUNCS(DVDInit DVDFinish) fi CFLAGS=$OLD_CFLAGS LIBS=$OLD_LIBS fi AC_SUBST(DVDREAD_CFLAGS) AC_SUBST(DVDREAD_LIBS) AC_SUBST(DVDREAD_REQUIRED) AM_CONDITIONAL(HAVE_DVDREAD, test x$have_dvdread = xtrue) if test x$have_dvdread = xtrue; then AC_DEFINE(HAVE_DVDREAD) fi ]) dnl dnl FLAC dnl AC_DEFUN([GMERLIN_CHECK_FLAC],[ FLAC_REQUIRED="1.2.0" have_flac="false" AC_ARG_ENABLE(flac, [AC_HELP_STRING([--disable-flac],[Disable flac (default: autodetect)])], [case "${enableval}" in yes) test_flac=true ;; no) test_flac=false ;; esac],[test_flac=true]) if test x$test_flac = xtrue; then AH_TEMPLATE([HAVE_FLAC], [Enable FLAC]) AC_MSG_CHECKING(for flac) OLD_CFLAGS=$CFLAGS OLD_LIBS=$LIBS CFLAGS="$GMERLIN_DEP_CFLAGS" LIBS="$GMERLIN_DEP_LIBS -lFLAC -lm" AC_TRY_RUN([ #include #include main() { FILE * version_file; int version_major; int version_minor; int version_patchlevel; fprintf(stderr, "FLAC__VERSION_STRING: %s\n", FLAC__VERSION_STRING); if(sscanf(FLAC__VERSION_STRING, "%d.%d.%d", &version_major, &version_minor, &version_patchlevel) < 3) return -1; if((version_major != 1) || (version_minor < 2)) return 1; version_file = fopen("flac_version", "w"); fprintf(version_file, "%d.%d.%d\n", version_major, version_minor, version_patchlevel); fclose(version_file); return 0; } ], [ # program could be run have_flac="true" AC_MSG_RESULT(yes) FLAC_CFLAGS=$CFLAGS FLAC_LIBS=$LIBS BGAV_FLAC_MAJOR=`cat flac_version | cut -d . -f 1` BGAV_FLAC_MINOR=`cat flac_version | cut -d . -f 2` BGAV_FLAC_PATCHLEVEL=`cat flac_version | cut -d . -f 3` rm -f flac_version ], # program could not be run AC_MSG_RESULT(no) ) CFLAGS=$OLD_CFLAGS LIBS=$OLD_LIBS fi AC_SUBST(FLAC_CFLAGS) AC_SUBST(FLAC_LIBS) AC_SUBST(FLAC_REQUIRED) AM_CONDITIONAL(HAVE_FLAC, test x$have_flac = xtrue) if test x$have_flac = xtrue; then AC_DEFINE(HAVE_FLAC) AC_DEFINE_UNQUOTED(BGAV_FLAC_MAJOR, $BGAV_FLAC_MAJOR, Flac major version) AC_DEFINE_UNQUOTED(BGAV_FLAC_MINOR, $BGAV_FLAC_MINOR, Flac minor version) AC_DEFINE_UNQUOTED(BGAV_FLAC_PATCHLEVEL, $BGAV_FLAC_PATCHLEVEL, Flac patchlevel) fi ]) dnl dnl Musepack dnl AC_DEFUN([GMERLIN_CHECK_MUSEPACK],[ have_musepack="false" MUSEPACK_REQUIRED="1.1" AC_ARG_ENABLE(musepack, [AC_HELP_STRING([--disable-musepack],[Disable musepack (default: autodetect)])], [case "${enableval}" in yes) test_musepack=true ;; no) test_musepack=false ;; esac],[test_musepack=true]) if test x$test_musepack = xtrue; then OLD_CFLAGS=$CFLAGS OLD_LIBS=$LIBS LIBS="$GMERLIN_DEP_LIBS -lmpcdec" CFLAGS="$GMERLIN_DEP_CFLAGS" AH_TEMPLATE([HAVE_MUSEPACK], [Enable Musepack]) AC_MSG_CHECKING(for libmpcdec) AC_TRY_RUN([ #include #include main() { mpc_streaminfo si; mpc_streaminfo_init(&si); return 0; } ], [ # program could be run have_musepack="true" AC_MSG_RESULT(yes) MUSEPACK_CFLAGS=$CFLAGS MUSEPACK_LIBS=$LIBS ], # program could not be run AC_MSG_RESULT(no) ) CFLAGS=$OLD_CFLAGS LIBS=$OLD_LIBS fi AC_SUBST(MUSEPACK_CFLAGS) AC_SUBST(MUSEPACK_LIBS) AC_SUBST(MUSEPACK_REQUIRED) AM_CONDITIONAL(HAVE_MUSEPACK, test x$have_musepack = xtrue) if test x$have_musepack = xtrue; then AC_DEFINE(HAVE_MUSEPACK) fi ]) dnl dnl MAD dnl AC_DEFUN([GMERLIN_CHECK_MAD],[ MAD_REQUIRED="0.15.0" AH_TEMPLATE([HAVE_MAD], [Enable MAD]) have_mad="false" AC_ARG_ENABLE(mad, [AC_HELP_STRING([--disable-mad],[Disable libmad (default: autodetect)])], [case "${enableval}" in yes) test_mad=true ;; no) test_mad=false ;; esac],[test_mad=true]) if test x$test_mad = xtrue; then OLD_CFLAGS=$CFLAGS OLD_LIBS=$LIBS LIBS="$GMERLIN_DEP_LIBS -lmad" CFLAGS="$GMERLIN_DEP_CFLAGS" AC_MSG_CHECKING(for libmad 0.15.x) AC_TRY_RUN([ #include "mad.h" #include main() { struct mad_stream stream; int version_major = MAD_VERSION_MAJOR; int version_minor = MAD_VERSION_MINOR; if((version_major != 0) || (version_minor != 15)) return -1; mad_stream_init(&stream); return 0; } ], [ # program could be run have_mad="true" AC_MSG_RESULT(yes) MAD_CFLAGS=$CFLAGS MAD_LIBS=$LIBS ], # program could not be run AC_MSG_RESULT(no) ) CFLAGS=$OLD_CFLAGS LIBS=$OLD_LIBS fi AC_SUBST(MAD_CFLAGS) AC_SUBST(MAD_LIBS) AC_SUBST(MAD_REQUIRED) AM_CONDITIONAL(HAVE_MAD, test x$have_mad = xtrue) if test x$have_mad = xtrue; then AC_DEFINE(HAVE_MAD) fi ]) dnl dnl liba52 dnl AC_DEFUN([GMERLIN_CHECK_LIBA52],[ AH_TEMPLATE([HAVE_LIBA52], [Enable liba52]) have_liba52="false" AC_ARG_ENABLE(liba52, [AC_HELP_STRING([--disable-liba52],[Disable liba52 (default: autodetect)])], [case "${enableval}" in yes) test_liba52=true ;; no) test_liba52=false ;; esac],[test_liba52=true]) if test x$test_liba52 = xtrue; then OLD_CFLAGS=$CFLAGS OLD_LIBS=$LIBS LIBS="$GMERLIN_DEP_LIBS -la52 -lm" CFLAGS="$GMERLIN_DEP_CFLAGS" LIBA52_REQUIRED="0.7.4" AC_MSG_CHECKING(for liba52) AC_TRY_RUN([ #include #include main() { a52_state_t * state = a52_init(0); return 0; } ], [ # program could be run have_liba52="true" AC_MSG_RESULT(yes) LIBA52_CFLAGS=$CFLAGS LIBA52_LIBS=$LIBS ], # program could not be run AC_MSG_RESULT(no) ) CFLAGS=$OLD_CFLAGS LIBS=$OLD_LIBS fi AC_SUBST(LIBA52_CFLAGS) AC_SUBST(LIBA52_LIBS) AC_SUBST(LIBA52_REQUIRED) AM_CONDITIONAL(HAVE_LIBA52, test x$have_liba52 = xtrue) if test x$have_liba52 = xtrue; then AC_DEFINE(HAVE_LIBA52) fi ]) dnl dnl CDrom support dnl AC_DEFUN([GMERLIN_CHECK_CDIO],[ AH_TEMPLATE([HAVE_CDIO], [ libcdio found ]) have_cdio="false" CDIO_REQUIRED="0.76" AC_ARG_ENABLE(libcdio, [AC_HELP_STRING([--disable-libcdio],[Disable libcdio (default: autodetect)])], [case "${enableval}" in yes) test_cdio=true ;; no) test_cdio=false ;; esac],[test_cdio=true]) if test x$test_cdio = xtrue; then PKG_CHECK_MODULES(CDIO, libcdio >= $CDIO_REQUIRED, have_cdio="true", have_cdio="false") fi AM_CONDITIONAL(HAVE_CDIO, test x$have_cdio = xtrue) AC_SUBST(CDIO_REQUIRED) if test "x$have_cdio" = "xtrue"; then AC_DEFINE([HAVE_CDIO]) fi ]) dnl dnl libdca dnl AC_DEFUN([GMERLIN_CHECK_DCA],[ AH_TEMPLATE([HAVE_DCA], [ libdca found ]) have_dca="false" have_dts="false" DCA_REQUIRED="0.0.2" AC_ARG_ENABLE(libcda, [AC_HELP_STRING([--disable-libdca],[Disable libdca (default: autodetect)])], [case "${enableval}" in yes) test_libdca=true ;; no) test_libdca=false ;; esac],[test_libdca=true]) if test x$test_libdca = xtrue; then PKG_CHECK_MODULES(DCA, libdca >= $DCA_REQUIRED, have_dca="true", have_dca="false") if test "x$have_dca" != "xtrue"; then PKG_CHECK_MODULES(DCA, libdts >= $DCA_REQUIRED, have_dts="true", have_dts="false") dnl dnl Check for old dts.h header dnl OLD_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CFLAGS $GMERLIN_DEP_CFLAGS $DCA_CFLAGS" AC_CHECK_HEADERS([dts.h]) CPPFLAGS=$OLD_CPPFLAGS dnl dnl Some systems need -ldts_pic dnl if test x$have_dts = xtrue; then have_libdts_pic=false OLD_CFLAGS=$CFLAGS OLD_LIBS=$LIBS CFLAGS=$DCA_CFLAGS LIBS=`pkg-config --libs-only-L libdts` LIBS="$LIBS -lm" AC_CHECK_LIB(dts_pic, dts_init, have_libdts_pic=true, have_libdts_pic=false) if test x$have_libdts_pic = xtrue; then DCA_LIBS="$LIBS -ldts_pic" fi CFLAGS=$OLD_CFLAGS LIBS=$OLD_LIBS have_dca="true" fi fi fi AM_CONDITIONAL(HAVE_DCA, test x$have_dca = xtrue) AC_SUBST(DCA_REQUIRED) if test "x$have_dca" = "xtrue"; then AC_DEFINE([HAVE_DCA]) fi ]) dnl dnl Ogg dnl AC_DEFUN([GMERLIN_CHECK_OGG],[ OGG_REQUIRED="1.1" have_ogg=false AH_TEMPLATE([HAVE_OGG], [Ogg libraries are there]) AC_ARG_ENABLE(ogg, [AC_HELP_STRING([--disable-ogg],[Disable libogg (default: autodetect)])], [case "${enableval}" in yes) test_ogg=true ;; no) test_ogg=false ;; esac],[test_ogg=true]) if test x$test_ogg = xtrue; then XIPH_PATH_OGG(have_ogg=true) fi AM_CONDITIONAL(HAVE_OGG, test x$have_ogg = xtrue) if test x$have_ogg = xtrue; then AC_DEFINE(HAVE_OGG) fi AC_SUBST(OGG_REQUIRED) ]) dnl dnl lame dnl AC_DEFUN([GMERLIN_CHECK_LAME],[ LAME_REQUIRED="3.93" have_lame="false" AC_ARG_ENABLE(lame, [AC_HELP_STRING([--disable-lame],[Disable lame (default: autodetect)])], [case "${enableval}" in yes) test_lame=true ;; no) test_lame=false ;; esac],[test_lame=true]) if test x$test_lame = xtrue; then OLD_CFLAGS=$CFLAGS OLD_LIBS=$LIBS if test x$have_vorbis = xtrue; then LIBS="$GMERLIN_DEP_LIBS -lmp3lame -lvorbis -lm" else LIBS="$GMERLIN_DEP_LIBS -lmp3lame -lm" fi CFLAGS="$GMERLIN_DEP_CFLAGS" AH_TEMPLATE([HAVE_LAME], [Enable lame]) AC_MSG_CHECKING(for lame) AC_TRY_RUN([ #include #include main() { int version_major; int version_minor; const char * version; version = get_lame_version(); fprintf(stderr, "lame version: %s\n", version); if(sscanf(version, "%d.%d", &version_major, &version_minor) < 2) return -1; if((version_major != 3) || (version_minor < 93)) return 1; return 0; } ], [ # program could be run have_lame="true" AC_MSG_RESULT(yes) LAME_CFLAGS=$CFLAGS LAME_LIBS=$LIBS ], # program could not be run AC_MSG_RESULT(no) ) CFLAGS=$OLD_CFLAGS LIBS=$OLD_LIBS fi AC_SUBST(LAME_CFLAGS) AC_SUBST(LAME_LIBS) AC_SUBST(LAME_REQUIRED) AM_CONDITIONAL(HAVE_LAME, test x$have_lame = xtrue) if test x$have_lame = xtrue; then AC_DEFINE(HAVE_LAME) fi ]) dnl dnl faac dnl AC_DEFUN([GMERLIN_CHECK_FAAC],[ have_faac="false" FAAC_REQUIRED="1.24" AC_ARG_ENABLE(faac, [AC_HELP_STRING([--disable-faac],[Disable faac (default: autodetect)])], [case "${enableval}" in yes) test_faac=true ;; no) test_faac=false ;; esac],[test_faac=true]) if test x$test_faac = xtrue; then OLD_CFLAGS=$CFLAGS OLD_LIBS=$LIBS AH_TEMPLATE([HAVE_FAAC], [Enable faac]) LIBS="$GMERLIN_DEP_LIBS -lfaac -lm" CFLAGS="$GMERLIN_DEP_CFLAGS" AC_MSG_CHECKING(for faac) AC_TRY_RUN([ #include #include main() { int samplerate = 44100, num_channels = 2; unsigned long input_samples, output_bytes; faacEncHandle enc; enc = faacEncOpen(samplerate, num_channels, &input_samples, &output_bytes); return 0; } ], [ # program could be run have_faac="true" AC_MSG_RESULT(yes) FAAC_CFLAGS=$CFLAGS FAAC_LIBS=$LIBS ], # program could not be run AC_MSG_RESULT(no) ) CFLAGS=$OLD_CFLAGS LIBS=$OLD_LIBS fi AC_SUBST(FAAC_CFLAGS) AC_SUBST(FAAC_LIBS) AC_SUBST(FAAC_REQUIRED) AM_CONDITIONAL(HAVE_FAAC, test x$have_faac = xtrue) if test x$have_faac = xtrue; then AC_DEFINE(HAVE_FAAC) fi ]) dnl dnl libjpeg dnl AC_DEFUN([GMERLIN_CHECK_LIBJPEG],[ AH_TEMPLATE([HAVE_LIBJPEG], [Do we have libjpeg installed?]) have_libjpeg=false JPEG_REQUIRED="6b" AC_ARG_ENABLE(libjpeg, [AC_HELP_STRING([--disable-libjpeg],[Disable libjpeg (default: autodetect)])], [case "${enableval}" in yes) test_libjpeg=true ;; no) test_libjpeg=false ;; esac],[test_libjpeg=true]) if test x$test_libjpeg = xtrue; then OLD_LIBS=$LIBS LIBS="$LIBS -ljpeg" AC_MSG_CHECKING(for libjpeg) AC_TRY_LINK([#include #include ], [struct jpeg_decompress_struct cinfo; jpeg_create_decompress(&cinfo);], [have_libjpeg=true]) case $have_libjpeg in true) AC_DEFINE(HAVE_LIBJPEG) AC_MSG_RESULT(yes) JPEG_LIBS=$LIBS;; false) AC_MSG_RESULT(no); JPEG_LIBS=""; JPEG_CFLAGS="";; * ) AC_MSG_RESULT("Somethings wrong: $have_libjpeg") ;; esac LIBS=$OLD_LIBS fi AC_SUBST(JPEG_LIBS) AC_SUBST(JPEG_CFLAGS) AC_SUBST(JPEG_REQUIRED) AM_CONDITIONAL(HAVE_LIBJPEG, test x$have_libjpeg = xtrue) ]) dnl dnl Linux DVB dnl AC_DEFUN([GMERLIN_CHECK_LINUXDVB],[ AH_TEMPLATE([HAVE_LINUXDVB], [Linux DVB Support available]) have_linuxdvb="true" AC_CHECK_HEADERS([linux/dvb/frontend.h linux/dvb/dmx.h], [], [have_linuxdvb="false"; break] ) if test "x$have_linuxdvb" = "xtrue"; then AC_DEFINE(HAVE_LINUXDVB) fi AM_CONDITIONAL(HAVE_LINUXDVB, test x$have_linuxdvb = xtrue) ]) dnl dnl OpenGL dnl AC_DEFUN([GMERLIN_CHECK_OPENGL],[ AH_TEMPLATE([HAVE_GL],[OpenGL available]) AH_TEMPLATE([HAVE_GLX],[GLX available]) dnl dnl Search for OpenGL libraries dnl OLD_LIBS=$LIBS have_GL="true" AC_SEARCH_LIBS([glBegin], [GL], [], [have_GL="false"], []) if test "x$have_GL" = "xtrue"; then AC_TRY_RUN([ #include int main() { if(0) glBegin(GL_QUADS); return 0;} ],[],[have_GL="false"]) fi GL_LIBS=$LIBS LIBS="$OLD_LIBS" dnl dnl Check for GLX dnl OLD_LIBS=$LIBS have_GLX="true" AC_SEARCH_LIBS([glXCreateContext], [GL glx], [], [have_GLX="false"], []) if test "x$have_GL" = "xtrue"; then AC_TRY_RUN([ #include int main() { if(0) glXChooseFBConfig(NULL, 0, NULL, NULL); return 0;}],[],[have_GLX="false"]) fi GLX_LIBS=$LIBS LIBS="$OLD_LIBS" if test "x$have_GL" = "xtrue"; then AC_DEFINE(HAVE_GL) if test "x$have_GLX" = "xtrue"; then AC_DEFINE(HAVE_GLX) fi fi AM_CONDITIONAL(HAVE_GL, test x$have_GL = xtrue) AM_CONDITIONAL(HAVE_GLX, test x$have_GLX = xtrue) AC_SUBST(GL_CFLAGS) AC_SUBST(GL_LIBS) AC_SUBST(GLX_CFLAGS) AC_SUBST(GLX_LIBS) ]) dnl dnl GLU dnl AC_DEFUN([GMERLIN_CHECK_GLU],[ AH_TEMPLATE([HAVE_GLU],[GLU available]) OLD_CFLAGS=$CFLAGS OLD_LIBS=$LIBS have_GLU="true" AC_SEARCH_LIBS([gluLookAt], [GLU], [], [have_GLU="false"], []) if test "x$have_GLU" = "xtrue"; then AC_TRY_RUN([ #include int main() { if(0) gluLookAt(0, 0, 0, 0, 0, 0, 0, 0, 0); return 0;}],[],[have_GLU="false"]) fi GLU_CFLAGS=$CFLAGS GLU_LIBS=$LIBS CFLAGS="$OLD_CFLAGS" LIBS="$OLD_LIBS" if test "x$have_GLU" = "xtrue"; then AC_DEFINE(HAVE_GLU) fi AM_CONDITIONAL(HAVE_GLU, test x$have_GLU = xtrue) AC_SUBST(GLU_CFLAGS) AC_SUBST(GLU_LIBS) ]) dnl dnl inotify dnl AC_DEFUN([GMERLIN_CHECK_INOTIFY],[ have_inotify="false" AH_TEMPLATE([HAVE_INOTIFY], [System supports inotify]) AC_CHECK_FUNC(inotify_init,have_inotify="true";AC_DEFINE(HAVE_INOTIFY)) ]) dnl dnl Semaphores dnl AC_DEFUN([GMERLIN_CHECK_SEMAPHORES],[ AH_TEMPLATE([HAVE_POSIX_SEMAPHORES], [System supports POSIX semaphores]) have_posix_semaphores="false" OLD_LIBS=$LIBS LIBS="$LIBS -lpthread" AC_MSG_CHECKING([for POSIX unnamed semaphores]); AC_TRY_RUN([ #include #include main() { int result; sem_t s; result = sem_init(&s, 0, 0); if(result) return -1; return 0; } ], [ # program could be run have_posix_semaphores="true" AC_MSG_RESULT(yes) AC_DEFINE(HAVE_POSIX_SEMAPHORES) ], # program could not be run AC_MSG_RESULT(no) ) LIBS=$OLD_LIBS AM_CONDITIONAL(HAVE_POSIX_SEMAPHORES, test x$have_posix_semaphores = xtrue) ]) dnl dnl vdpau dnl AC_DEFUN([GMERLIN_CHECK_VDPAU],[ AH_TEMPLATE([HAVE_VDPAU], [Enable tiff codec]) have_vdpau=false AC_ARG_ENABLE(vdpau, [AC_HELP_STRING([--disable-vdpau],[Disable vdpau (default: autodetect)])], [case "${enableval}" in yes) test_vdpau=true ;; no) test_vdpau=false ;; esac],[test_vdpau=true]) if test x$test_vdpau = xtrue; then if test x$have_x = xtrue; then OLD_CFLAGS=$CFLAGS OLD_LIBS=$LIBS LIBS="$LIBS -lvdpau" CFLAGS="$CFLAGS" AC_MSG_CHECKING(for vdpau) AC_TRY_LINK([#include ], [int i = 0; /* We ensure the function is here but never call it */ if(i) vdp_device_create_x11((Display*)0, 0, (VdpDevice*)0, (VdpGetProcAddress**)0); return 0;], [have_vdpau=true]) case $have_vdpau in true) AC_MSG_RESULT(yes) VDPAU_LIBS=$LIBS; VDPAU_CFLAGS=$CFLAGS ;; false) AC_MSG_RESULT(no); VDPAU_LIBS=""; VDPAU_CFLAGS="";; esac CFLAGS=$OLD_CFLAGS LIBS=$OLD_LIBS fi fi AC_SUBST(VDPAU_CFLAGS) AC_SUBST(VDPAU_LIBS) AC_SUBST(VDPAU_REQUIRED) AM_CONDITIONAL(HAVE_VDPAU, test x$have_vdpau = xtrue) if test x$have_vdpau = xtrue; then AC_DEFINE(HAVE_VDPAU) fi ]) dnl dnl libshout dnl AC_DEFUN([GMERLIN_CHECK_SHOUT],[ AH_TEMPLATE([HAVE_SHOUT], [Do we have libshout installed?]) have_shout="false" SHOUT_REQUIRED="2.2.2" AC_ARG_ENABLE(libshout, [AC_HELP_STRING([--disable-libshout],[Disable libshout (default: autodetect)])], [case "${enableval}" in yes) test_shout=true ;; no) test_shout=false ;; esac],[test_shout=true]) if test x$test_shout = xtrue; then PKG_CHECK_MODULES(SHOUT, shout >= $SHOUT_REQUIRED, have_shout="true", have_shout="false") fi AC_SUBST(SHOUT_REQUIRED) AC_SUBST(SHOUT_LIBS) AC_SUBST(SHOUT_CFLAGS) AM_CONDITIONAL(HAVE_SHOUT, test x$have_shout = xtrue) if test "x$have_shout" = "xtrue"; then AC_DEFINE([HAVE_SHOUT]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/avformat.m40000644000000000000000000000510011764363477017260 0ustar rootroot# Configure paths for libavformat # Burkhard Plaum, 2004-08-12 dnl Compile an avformat test program and figure out the version AC_DEFUN([ACL_CHECK_AVFORMAT],[ AC_MSG_CHECKING([for build ID in libavformat, libs: $AVFORMAT_LIBS]) CFLAGS_save=$CFLAGS LIBS_save=$LIBS dnl Look for header found_header="false" CFLAGS="$CFLAGS $GMERLIN_DEP_CFLAGS $AVFORMAT_CFLAGS" LIBS="$LIBS $GMERLIN_DEP_LIBS" AC_TRY_COMPILE([ #include ],[], [found_header="true";AVFORMAT_HEADER="" ],) if test $found_header = "false"; then AC_TRY_COMPILE([ #include ],[], [found_header="true";AVFORMAT_HEADER="" ],) fi if test $found_header = "false"; then AC_TRY_COMPILE([ #include ],[],[found_header="true";AVFORMAT_HEADER=""]) fi avformat_ok="false" AC_TRY_RUN([ #include #include $AVFORMAT_HEADER int main() { FILE * output; if(LIBAVFORMAT_BUILD < $1) return -1; output=fopen("avformat_version", "w"); fprintf(output, AV_TOSTRING(LIBAVFORMAT_VERSION)); fclose(output); return 0; } ], [ # program could be run if test "x$AVFORMAT_VERSION" = "x"; then AVFORMAT_VERSION=`cat avformat_version` fi rm -f avformat_version avformat_ok="true" AC_MSG_RESULT(ok) ], [ # program could not be run AC_MSG_RESULT(failed) ]) CFLAGS="$CFLAGS_save" LIBS="$LIBS_save" ]) dnl ACL_PATH_AVFORMAT(BUILD_ID [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) dnl Test for libavformat, and define AVFORMAT_CFLAGS, AVFORMAT_LIBS and dnl AVFORMAT_VERSION AC_DEFUN([ACL_PATH_AVFORMAT],[ AC_ARG_WITH(avformat,[ --with-avformat=PFX Prefix where libavformat is installed (optional)], avformat_prefix="$withval", avformat_prefix="") dnl We need the _save variables because PKG_CHECK_MODULES will change dnl the other variables AVFORMAT_CFLAGS_save="" AVFORMAT_LIBS_save="" avformat_done="false" dnl dnl First preference: configure options dnl if test "x$avformat_prefix" != x; then AVFORMAT_CFLAGS="-I$avformat_prefix/include" AVFORMAT_LIBS="-L$avformat_prefix/lib -lavformat" ACL_CHECK_AVFORMAT([$1]) if test "x$avformat_ok" = "xtrue"; then avformat_done="true" fi fi dnl dnl Second Perference: Autodetect dnl if test "x$avformat_done" = "xfalse"; then PKG_CHECK_MODULES(AVFORMAT, libavformat, avformat_orig="true", avformat_orig="false") ACL_CHECK_AVFORMAT([$1]) if test "x$avformat_ok" = "xtrue"; then avformat_done="true" fi fi if test "x$avformat_done" = "xtrue"; then ifelse([$2], , :, [$2]) else ifelse([$3], , :, [$3]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/signed.m40000644000000000000000000000115411764363477016717 0ustar rootroot# signed.m4 serial 1 (gettext-0.10.40) dnl Copyright (C) 2001-2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([bh_C_SIGNED], [ AC_CACHE_CHECK([for signed], bh_cv_c_signed, [AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes, bh_cv_c_signed=no)]) if test $bh_cv_c_signed = no; then AC_DEFINE(signed, , [Define to empty if the C compiler doesn't support this keyword.]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/printf-posix.m40000644000000000000000000000266111764363477020114 0ustar rootroot# printf-posix.m4 serial 2 (gettext-0.13.1) dnl Copyright (C) 2003 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether the printf() function supports POSIX/XSI format strings with dnl positions. AC_DEFUN([gt_PRINTF_POSIX], [ AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings], gt_cv_func_printf_posix, [ AC_TRY_RUN([ #include #include /* The string "%2$d %1$d", with dollar characters protected from the shell's dollar expansion (possibly an autoconf bug). */ static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; static char buf[100]; int main () { sprintf (buf, format, 33, 55); return (strcmp (buf, "55 33") != 0); }], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no, [ AC_EGREP_CPP(notposix, [ #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ notposix #endif ], gt_cv_func_printf_posix="guessing no", gt_cv_func_printf_posix="guessing yes") ]) ]) case $gt_cv_func_printf_posix in *yes) AC_DEFINE(HAVE_POSIX_PRINTF, 1, [Define if your printf() function supports format strings with positions.]) ;; esac ]) gmerlin-avdecoder-1.2.0~dfsg/m4/visibility.m40000644000000000000000000000413011764363477017632 0ustar rootroot# visibility.m4 serial 1 (gettext-0.15) dnl Copyright (C) 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Tests whether the compiler supports the command-line option dnl -fvisibility=hidden and the function and variable attributes dnl __attribute__((__visibility__("hidden"))) and dnl __attribute__((__visibility__("default"))). dnl Does *not* test for __visibility__("protected") - which has tricky dnl semantics (see the 'vismain' test in glibc) and does not exist e.g. on dnl MacOS X. dnl Does *not* test for __visibility__("internal") - which has processor dnl dependent semantics. dnl Does *not* test for #pragma GCC visibility push(hidden) - which is dnl "really only recommended for legacy code". dnl Set the variable CFLAG_VISIBILITY. dnl Defines and sets the variable HAVE_VISIBILITY. AC_DEFUN([gl_VISIBILITY], [ AC_REQUIRE([AC_PROG_CC]) CFLAG_VISIBILITY= HAVE_VISIBILITY=0 if test -n "$GCC"; then AC_MSG_CHECKING([for simple visibility declarations]) AC_CACHE_VAL(gl_cv_cc_visibility, [ gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" AC_TRY_COMPILE( [extern __attribute__((__visibility__("hidden"))) int hiddenvar; extern __attribute__((__visibility__("default"))) int exportedvar; extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); extern __attribute__((__visibility__("default"))) int exportedfunc (void);], [], gl_cv_cc_visibility=yes, gl_cv_cc_visibility=no) CFLAGS="$gl_save_CFLAGS"]) AC_MSG_RESULT([$gl_cv_cc_visibility]) if test $gl_cv_cc_visibility = yes; then CFLAG_VISIBILITY="-fvisibility=hidden" HAVE_VISIBILITY=1 fi fi AC_SUBST([CFLAG_VISIBILITY]) AC_SUBST([HAVE_VISIBILITY]) AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY], [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.]) ]) gmerlin-avdecoder-1.2.0~dfsg/m4/intmax.m40000644000000000000000000000174611764363477016755 0ustar rootroot# intmax.m4 serial 2 (gettext-0.14.2) dnl Copyright (C) 2002-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether the system has the 'intmax_t' type, but don't attempt to dnl find a replacement if it is lacking. AC_DEFUN([gt_TYPE_INTMAX_T], [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t, [AC_TRY_COMPILE([ #include #include #if HAVE_STDINT_H_WITH_UINTMAX #include #endif #if HAVE_INTTYPES_H_WITH_UINTMAX #include #endif ], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)]) if test $gt_cv_c_intmax_t = yes; then AC_DEFINE(HAVE_INTMAX_T, 1, [Define if you have the 'intmax_t' type in or .]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/glibc21.m40000644000000000000000000000144511764363477016674 0ustar rootroot# glibc21.m4 serial 3 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Test for the GNU C Library, version 2.1 or newer. # From Bruno Haible. AC_DEFUN([gl_GLIBC21], [ AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, ac_cv_gnu_library_2_1, [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif ], ac_cv_gnu_library_2_1=yes, ac_cv_gnu_library_2_1=no) ] ) AC_SUBST(GLIBC21) GLIBC21="$ac_cv_gnu_library_2_1" ] ) gmerlin-avdecoder-1.2.0~dfsg/m4/nls.m40000644000000000000000000000226611764363477016247 0ustar rootroot# nls.m4 serial 3 (gettext-0.15) dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ(2.50) AC_DEFUN([AM_NLS], [ AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE(nls, [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT($USE_NLS) AC_SUBST(USE_NLS) ]) gmerlin-avdecoder-1.2.0~dfsg/m4/iconv.m40000644000000000000000000000642611764363477016573 0ustar rootroot# iconv.m4 serial AM4 (gettext-0.11.3) dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_func_iconv=yes) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_lib_iconv=yes am_cv_func_iconv=yes) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST(LIBICONV) AC_SUBST(LTLIBICONV) ]) AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL(am_cv_proto_iconv, [ AC_TRY_COMPILE([ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([$]{ac_t:- }[$]am_cv_proto_iconv) AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, [Define as const if the declaration of iconv() needs const.]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/inttypes-pri.m40000644000000000000000000000200611764363477020112 0ustar rootroot# inttypes-pri.m4 serial 2 (gettext-0.15) dnl Copyright (C) 1997-2002, 2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. # Define PRI_MACROS_BROKEN if exists and defines the PRI* # macros to non-string values. This is the case on AIX 4.3.3. AC_DEFUN([gt_INTTYPES_PRI], [ AC_REQUIRE([gl_HEADER_INTTYPES_H]) if test $gl_cv_header_inttypes_h = yes; then AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], gt_cv_inttypes_pri_broken, [ AC_TRY_COMPILE([#include #ifdef PRId32 char *p = PRId32; #endif ], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes) ]) fi if test "$gt_cv_inttypes_pri_broken" = yes; then AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, [Define if exists and defines unusable PRI* macros.]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/intdiv0.m40000644000000000000000000000334011764363477017022 0ustar rootroot# intdiv0.m4 serial 1 (gettext-0.11.3) dnl Copyright (C) 2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([gt_INTDIV0], [ AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], gt_cv_int_divbyzero_sigfpe, [ AC_TRY_RUN([ #include #include static void #ifdef __cplusplus sigfpe_handler (int sig) #else sigfpe_handler (sig) int sig; #endif { /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ exit (sig != SIGFPE); } int x = 1; int y = 0; int z; int nan; int main () { signal (SIGFPE, sigfpe_handler); /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) signal (SIGTRAP, sigfpe_handler); #endif /* Linux/SPARC yields signal SIGILL. */ #if defined (__sparc__) && defined (__linux__) signal (SIGILL, sigfpe_handler); #endif z = x / y; nan = y / y; exit (1); } ], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no, [ # Guess based on the CPU. case "$host_cpu" in alpha* | i[34567]86 | m68k | s390*) gt_cv_int_divbyzero_sigfpe="guessing yes";; *) gt_cv_int_divbyzero_sigfpe="guessing no";; esac ]) ]) case "$gt_cv_int_divbyzero_sigfpe" in *yes) value=1;; *) value=0;; esac AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value, [Define if integer division by zero raises signal SIGFPE.]) ]) gmerlin-avdecoder-1.2.0~dfsg/m4/longdouble.m40000644000000000000000000000227711764363477017607 0ustar rootroot# longdouble.m4 serial 2 (gettext-0.15) dnl Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether the compiler supports the 'long double' type. dnl Prerequisite: AC_PROG_CC dnl This file is only needed in autoconf <= 2.59. Newer versions of autoconf dnl have a macro AC_TYPE_LONG_DOUBLE with identical semantics. AC_DEFUN([gt_TYPE_LONGDOUBLE], [ AC_CACHE_CHECK([for long double], gt_cv_c_long_double, [if test "$GCC" = yes; then gt_cv_c_long_double=yes else AC_TRY_COMPILE([ /* The Stardent Vistra knows sizeof(long double), but does not support it. */ long double foo = 0.0; /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ int array [2*(sizeof(long double) >= sizeof(double)) - 1]; ], , gt_cv_c_long_double=yes, gt_cv_c_long_double=no) fi]) if test $gt_cv_c_long_double = yes; then AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/wchar_t.m40000644000000000000000000000132611764363477017076 0ustar rootroot# wchar_t.m4 serial 1 (gettext-0.12) dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether has the 'wchar_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WCHAR_T], [ AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t, [AC_TRY_COMPILE([#include wchar_t foo = (wchar_t)'\0';], , gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)]) if test $gt_cv_c_wchar_t = yes; then AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/Makefile.in0000644000000000000000000003300311764363515017240 0ustar rootroot# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = m4 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/avcodec.m4 \ $(top_srcdir)/m4/avformat.m4 $(top_srcdir)/m4/check_funcs.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/lqt_opt_cflags.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVCODEC_CFLAGS = @AVCODEC_CFLAGS@ AVCODEC_LIBS = @AVCODEC_LIBS@ AVCODEC_REQUIRED = @AVCODEC_REQUIRED@ AVFORMAT_CFLAGS = @AVFORMAT_CFLAGS@ AVFORMAT_LIBS = @AVFORMAT_LIBS@ AVFORMAT_REQUIRED = @AVFORMAT_REQUIRED@ AWK = @AWK@ BGAV_VERSION = @BGAV_VERSION@ BGAV_VERSION_MAJOR = @BGAV_VERSION_MAJOR@ BGAV_VERSION_MICRO = @BGAV_VERSION_MICRO@ BGAV_VERSION_MINOR = @BGAV_VERSION_MINOR@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CDIO_CFLAGS = @CDIO_CFLAGS@ CDIO_LIBS = @CDIO_LIBS@ CDIO_REQUIRED = @CDIO_REQUIRED@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DCA_CFLAGS = @DCA_CFLAGS@ DCA_LIBS = @DCA_LIBS@ DCA_REQUIRED = @DCA_REQUIRED@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOXYGEN = @DOXYGEN@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DVDREAD_CFLAGS = @DVDREAD_CFLAGS@ DVDREAD_LIBS = @DVDREAD_LIBS@ DVDREAD_REQUIRED = @DVDREAD_REQUIRED@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FAAD2_CFLAGS = @FAAD2_CFLAGS@ FAAD2_LIBS = @FAAD2_LIBS@ FAAD2_REQUIRED = @FAAD2_REQUIRED@ FGREP = @FGREP@ FLAC_CFLAGS = @FLAC_CFLAGS@ FLAC_LIBS = @FLAC_LIBS@ FLAC_REQUIRED = @FLAC_REQUIRED@ GAVL_CFLAGS = @GAVL_CFLAGS@ GAVL_LIBS = @GAVL_LIBS@ GAVL_REQUIRED = @GAVL_REQUIRED@ GMERLIN_CFLAGS = @GMERLIN_CFLAGS@ GMERLIN_DEP_LIBS = @GMERLIN_DEP_LIBS@ GMERLIN_LIBS = @GMERLIN_LIBS@ GMERLIN_PLUGIN_LDFLAGS = @GMERLIN_PLUGIN_LDFLAGS@ GMERLIN_REQUIRED = @GMERLIN_REQUIRED@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ ICONV_LIBS = @ICONV_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBA52_CFLAGS = @LIBA52_CFLAGS@ LIBA52_LIBS = @LIBA52_LIBS@ LIBA52_REQUIRED = @LIBA52_REQUIRED@ LIBBGAV_CFLAGS = @LIBBGAV_CFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMPEG2_CFLAGS = @LIBMPEG2_CFLAGS@ LIBMPEG2_LIBS = @LIBMPEG2_LIBS@ LIBMPEG2_REQUIRED = @LIBMPEG2_REQUIRED@ LIBOBJS = @LIBOBJS@ LIBPOSTPROC_CFLAGS = @LIBPOSTPROC_CFLAGS@ LIBPOSTPROC_LIBS = @LIBPOSTPROC_LIBS@ LIBPOSTPROC_REQUIRED = @LIBPOSTPROC_REQUIRED@ LIBS = @LIBS@ LIBSWSCALE_CFLAGS = @LIBSWSCALE_CFLAGS@ LIBSWSCALE_LIBS = @LIBSWSCALE_LIBS@ LIBSWSCALE_REQUIRED = @LIBSWSCALE_REQUIRED@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTVERSION_AGE = @LTVERSION_AGE@ LTVERSION_CURRENT = @LTVERSION_CURRENT@ LTVERSION_REVISION = @LTVERSION_REVISION@ MAD_CFLAGS = @MAD_CFLAGS@ MAD_LIBS = @MAD_LIBS@ MAD_REQUIRED = @MAD_REQUIRED@ MAKEINFO = @MAKEINFO@ MJPEGTOOLS_CFLAGS = @MJPEGTOOLS_CFLAGS@ MJPEGTOOLS_LIBS = @MJPEGTOOLS_LIBS@ MJPEGTOOLS_REQUIRED = @MJPEGTOOLS_REQUIRED@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MUSEPACK_CFLAGS = @MUSEPACK_CFLAGS@ MUSEPACK_LIBS = @MUSEPACK_LIBS@ MUSEPACK_REQUIRED = @MUSEPACK_REQUIRED@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ OGG_REQUIRED = @OGG_REQUIRED@ OPENJPEG_CFLAGS = @OPENJPEG_CFLAGS@ OPENJPEG_LIBS = @OPENJPEG_LIBS@ OPENJPEG_REQUIRED = @OPENJPEG_REQUIRED@ OPT_CFLAGS = @OPT_CFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ PNG_REQUIRED = @PNG_REQUIRED@ POSUB = @POSUB@ RANLIB = @RANLIB@ REALDLL_LIBS = @REALDLL_LIBS@ SAMBA_CFLAGS = @SAMBA_CFLAGS@ SAMBA_LIBS = @SAMBA_LIBS@ SAMBA_REQUIRED = @SAMBA_REQUIRED@ SCHROEDINGER_CFLAGS = @SCHROEDINGER_CFLAGS@ SCHROEDINGER_LIBS = @SCHROEDINGER_LIBS@ SCHROEDINGER_REQUIRED = @SCHROEDINGER_REQUIRED@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ SPEEX_REQUIRED = @SPEEX_REQUIRED@ STRIP = @STRIP@ THEORADEC_CFLAGS = @THEORADEC_CFLAGS@ THEORADEC_LIBS = @THEORADEC_LIBS@ THEORADEC_REQUIRED = @THEORADEC_REQUIRED@ TIFF_CFLAGS = @TIFF_CFLAGS@ TIFF_LIBS = @TIFF_LIBS@ TIFF_REQUIRED = @TIFF_REQUIRED@ TOP_SRCDIR = @TOP_SRCDIR@ USE_NLS = @USE_NLS@ VDPAU_CFLAGS = @VDPAU_CFLAGS@ VDPAU_LIBS = @VDPAU_LIBS@ VDPAU_REQUIRED = @VDPAU_REQUIRED@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ VORBIS_REQUIRED = @VORBIS_REQUIRED@ W32_NO_OPTIMIZE = @W32_NO_OPTIMIZE@ XADLL_LIBS = @XADLL_LIBS@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_LIBS = @X_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gmerlin_plugindir = @gmerlin_plugindir@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ w32_path = @w32_path@ EXTRA_DIST = codeset.m4 gettext.m4 glibc2.m4 glibc21.m4 iconv.m4 intdiv0.m4 intmax.m4 inttypes_h.m4 inttypes-h.m4 inttypes-pri.m4 lcmessage.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 lock.m4 longdouble.m4 longlong.m4 nls.m4 po.m4 printf-posix.m4 progtest.m4 signed.m4 size_max.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 visibility.m4 wchar_t.m4 wint_t.m4 xsize.m4 lqt_opt_cflags.m4 avcodec.m4 avformat.m4 check_funcs.m4 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu m4/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gmerlin-avdecoder-1.2.0~dfsg/m4/uintmax_t.m40000644000000000000000000000207611764363477017462 0ustar rootroot# uintmax_t.m4 serial 9 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. AC_PREREQ(2.13) # Define uintmax_t to 'unsigned long' or 'unsigned long long' # if it is not already defined in or . AC_DEFUN([gl_AC_TYPE_UINTMAX_T], [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG]) test $ac_cv_type_unsigned_long_long = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, [Define to unsigned long or unsigned long long if and don't define.]) else AC_DEFINE(HAVE_UINTMAX_T, 1, [Define if you have the 'uintmax_t' type in or .]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/lib-ld.m40000644000000000000000000000653111764363477016615 0ustar rootroot# lib-ld.m4 serial 3 (gettext-0.13) dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Subroutines of libtool.m4, dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision dnl with libtool.m4. dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]* | [A-Za-z]:[\\/]*)] [re_direlt='/[^/][^/]*/\.\./'] # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(acl_cv_path_LD, [if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$acl_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else AC_MSG_RESULT(no) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_LIB_PROG_LD_GNU ]) gmerlin-avdecoder-1.2.0~dfsg/m4/lock.m40000644000000000000000000002667311764363477016413 0ustar rootroot# lock.m4 serial 2 (gettext-0.15) dnl Copyright (C) 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Tests for a multithreading library to be used. dnl Defines at most one of the macros USE_POSIX_THREADS, USE_SOLARIS_THREADS, dnl USE_PTH_THREADS, USE_WIN32_THREADS dnl Sets the variables LIBTHREAD and LTLIBTHREAD to the linker options for use dnl in a Makefile (LIBTHREAD for use without libtool, LTLIBTHREAD for use with dnl libtool). dnl Sets the variables LIBMULTITHREAD and LTLIBMULTITHREAD similarly, for dnl programs that really need multithread functionality. The difference dnl between LIBTHREAD and LIBMULTITHREAD is that on platforms supporting weak dnl symbols, typically LIBTHREAD="" whereas LIBMULTITHREAD="-lpthread". dnl Adds to CPPFLAGS the flag -D_REENTRANT or -D_THREAD_SAFE if needed for dnl multithread-safe programs. AC_DEFUN([gl_LOCK], [ AC_REQUIRE([gl_LOCK_BODY]) ]) dnl The guts of gl_LOCK. Needs to be expanded only once. AC_DEFUN([gl_LOCK_BODY], [ dnl Ordering constraints: This macro modifies CPPFLAGS in a way that dnl influences the result of the autoconf tests that test for *_unlocked dnl declarations, on AIX 5 at least. Therefore it must come early. AC_BEFORE([$0], [gl_FUNC_GLIBC_UNLOCKED_IO])dnl AC_BEFORE([$0], [gl_ARGP])dnl AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_GNU_SOURCE]) dnl needed for pthread_rwlock_t on glibc systems dnl Check for multithreading. AC_ARG_ENABLE(threads, AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API]) AC_HELP_STRING([--disable-threads], [build without multithread safety]), gl_use_threads=$enableval, gl_use_threads=yes) gl_threads_api=none LIBTHREAD= LTLIBTHREAD= LIBMULTITHREAD= LTLIBMULTITHREAD= if test "$gl_use_threads" != no; then dnl Check whether the compiler and linker support weak declarations. AC_MSG_CHECKING([whether imported symbols can be declared weak]) gl_have_weak=no AC_TRY_LINK([extern void xyzzy (); #pragma weak xyzzy], [xyzzy();], [gl_have_weak=yes]) AC_MSG_RESULT([$gl_have_weak]) if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that # it groks . gl_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -D_REENTRANT" AC_CHECK_HEADER(pthread.h, gl_have_pthread_h=yes, gl_have_pthread_h=no) CPPFLAGS="$gl_save_CPPFLAGS" if test "$gl_have_pthread_h" = yes; then # Other possible tests: # -lpthreads (FSU threads, PCthreads) # -lgthreads case "$host_os" in osf*) # On OSF/1, the compiler needs the flag -D_REENTRANT so that it # groks . cc also understands the flag -pthread, but # we don't use it because 1. gcc-2.95 doesn't understand -pthread, # 2. putting a flag into CPPFLAGS that has an effect on the linker # causes the AC_TRY_LINK test below to succeed unexpectedly, # leading to wrong values of LIBTHREAD and LTLIBTHREAD. CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; esac gl_have_pthread= # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist # in libc. IRIX 6.5 has the first one in both libc and libpthread, but # the second one only in libpthread, and lock.c needs it. AC_TRY_LINK([#include ], [pthread_mutex_lock((pthread_mutex_t*)0); pthread_mutexattr_init((pthread_mutexattr_t*)0);], [gl_have_pthread=yes]) # Test for libpthread by looking for pthread_kill. (Not pthread_self, # since it is defined as a macro on OSF/1.) if test -n "$gl_have_pthread"; then # The program links fine without libpthread. But it may actually # need to link with libpthread in order to create multiple threads. AC_CHECK_LIB(pthread, pthread_kill, [LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread # On Solaris and HP-UX, most pthread functions exist also in libc. # Therefore pthread_in_use() needs to actually try to create a # thread: pthread_create from libc will fail, whereas # pthread_create will actually create a thread. case "$host_os" in solaris* | hpux*) AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD], 1, [Define if the pthread_in_use() detection is hard.]) esac ]) else # Some library is needed. Try libpthread and libc_r. AC_CHECK_LIB(pthread, pthread_kill, [gl_have_pthread=yes LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread]) if test -z "$gl_have_pthread"; then # For FreeBSD 4. AC_CHECK_LIB(c_r, pthread_kill, [gl_have_pthread=yes LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r]) fi fi if test -n "$gl_have_pthread"; then gl_threads_api=posix AC_DEFINE([USE_POSIX_THREADS], 1, [Define if the POSIX multithreading library can be used.]) if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then if test $gl_have_weak = yes; then AC_DEFINE([USE_POSIX_THREADS_WEAK], 1, [Define if references to the POSIX multithreading library should be made weak.]) LIBTHREAD= LTLIBTHREAD= fi fi # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the # pthread_rwlock_* functions. AC_CHECK_TYPE([pthread_rwlock_t], [AC_DEFINE([HAVE_PTHREAD_RWLOCK], 1, [Define if the POSIX multithreading library has read/write locks.])], [], [#include ]) # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. AC_TRY_COMPILE([#include ], [#if __FreeBSD__ == 4 error "No, in FreeBSD 4.0 recursive mutexes actually don't work." #else int x = (int)PTHREAD_MUTEX_RECURSIVE; #endif], [AC_DEFINE([HAVE_PTHREAD_MUTEX_RECURSIVE], 1, [Define if the defines PTHREAD_MUTEX_RECURSIVE.])]) # Some systems optimize for single-threaded programs by default, and # need special flags to disable these optimizations. For example, the # definition of 'errno' in . case "$host_os" in aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; esac fi fi fi if test -z "$gl_have_pthread"; then if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then gl_have_solaristhread= gl_save_LIBS="$LIBS" LIBS="$LIBS -lthread" AC_TRY_LINK([#include #include ], [thr_self();], [gl_have_solaristhread=yes]) LIBS="$gl_save_LIBS" if test -n "$gl_have_solaristhread"; then gl_threads_api=solaris LIBTHREAD=-lthread LTLIBTHREAD=-lthread LIBMULTITHREAD="$LIBTHREAD" LTLIBMULTITHREAD="$LTLIBTHREAD" AC_DEFINE([USE_SOLARIS_THREADS], 1, [Define if the old Solaris multithreading library can be used.]) if test $gl_have_weak = yes; then AC_DEFINE([USE_SOLARIS_THREADS_WEAK], 1, [Define if references to the old Solaris multithreading library should be made weak.]) LIBTHREAD= LTLIBTHREAD= fi fi fi fi if test "$gl_use_threads" = pth; then gl_save_CPPFLAGS="$CPPFLAGS" AC_LIB_LINKFLAGS(pth) gl_have_pth= gl_save_LIBS="$LIBS" LIBS="$LIBS -lpth" AC_TRY_LINK([#include ], [pth_self();], gl_have_pth=yes) LIBS="$gl_save_LIBS" if test -n "$gl_have_pth"; then gl_threads_api=pth LIBTHREAD="$LIBPTH" LTLIBTHREAD="$LTLIBPTH" LIBMULTITHREAD="$LIBTHREAD" LTLIBMULTITHREAD="$LTLIBTHREAD" AC_DEFINE([USE_PTH_THREADS], 1, [Define if the GNU Pth multithreading library can be used.]) if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then if test $gl_have_weak = yes; then AC_DEFINE([USE_PTH_THREADS_WEAK], 1, [Define if references to the GNU Pth multithreading library should be made weak.]) LIBTHREAD= LTLIBTHREAD= fi fi else CPPFLAGS="$gl_save_CPPFLAGS" fi fi if test -z "$gl_have_pthread"; then if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then if { case "$host_os" in mingw*) true;; *) false;; esac }; then gl_threads_api=win32 AC_DEFINE([USE_WIN32_THREADS], 1, [Define if the Win32 multithreading API can be used.]) fi fi fi fi AC_MSG_CHECKING([for multithread API to use]) AC_MSG_RESULT([$gl_threads_api]) AC_SUBST(LIBTHREAD) AC_SUBST(LTLIBTHREAD) AC_SUBST(LIBMULTITHREAD) AC_SUBST(LTLIBMULTITHREAD) gl_PREREQ_LOCK ]) # Prerequisites of lib/lock.c. AC_DEFUN([gl_PREREQ_LOCK], [ AC_REQUIRE([AC_C_INLINE]) ]) dnl Survey of platforms: dnl dnl Platform Available Compiler Supports test-lock dnl flavours option weak result dnl --------------- --------- --------- -------- --------- dnl Linux 2.4/glibc posix -lpthread Y OK dnl dnl GNU Hurd/glibc posix dnl dnl FreeBSD 5.3 posix -lc_r Y dnl posix -lkse ? Y dnl posix -lpthread ? Y dnl posix -lthr Y dnl dnl FreeBSD 5.2 posix -lc_r Y dnl posix -lkse Y dnl posix -lthr Y dnl dnl FreeBSD 4.0,4.10 posix -lc_r Y OK dnl dnl NetBSD 1.6 -- dnl dnl OpenBSD 3.4 posix -lpthread Y OK dnl dnl MacOS X 10.[123] posix -lpthread Y OK dnl dnl Solaris 7,8,9 posix -lpthread Y Sol 7,8: 0.0; Sol 9: OK dnl solaris -lthread Y Sol 7,8: 0.0; Sol 9: OK dnl dnl HP-UX 11 posix -lpthread N (cc) OK dnl Y (gcc) dnl dnl IRIX 6.5 posix -lpthread Y 0.5 dnl dnl AIX 4.3,5.1 posix -lpthread N AIX 4: 0.5; AIX 5: OK dnl dnl OSF/1 4.0,5.1 posix -pthread (cc) N OK dnl -lpthread (gcc) Y dnl dnl Cygwin posix -lpthread Y OK dnl dnl Any of the above pth -lpth 0.0 dnl dnl Mingw win32 N OK dnl dnl BeOS 5 -- dnl dnl The test-lock result shows what happens if in test-lock.c EXPLICIT_YIELD is dnl turned off: dnl OK if all three tests terminate OK, dnl 0.5 if the first test terminates OK but the second one loops endlessly, dnl 0.0 if the first test already loops endlessly. gmerlin-avdecoder-1.2.0~dfsg/m4/gettext.m40000644000000000000000000006070011764363477017134 0ustar rootroot# gettext.m4 serial 53 (gettext-0.15) dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2005. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The dnl default (if it is not specified or empty) is 'no-libtool'. dnl INTLSYMBOL should be 'external' for packages with no intl directory, dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library dnl $(top_builddir)/intl/libintl.a will be created. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, dnl the value `$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define([gt_included_intl], ifelse([$1], [external], [no], [yes])) define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) AC_REQUIRE([AM_PO_SUBDIRS])dnl ifelse(gt_included_intl, yes, [ AC_REQUIRE([AM_INTL_SUBDIR])dnl ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Sometimes libintl requires libiconv, so first search for libiconv. dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not dnl documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. gt_INTL_MACOSX dnl Set USE_NLS. AC_REQUIRE([AM_NLS]) ifelse(gt_included_intl, yes, [ BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no ]) LIBINTL= LTLIBINTL= POSUB= dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH(included-gettext, [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then ]) dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. dnl Add a version number to the cache macros. define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1))) define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc]) define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl]) AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, [AC_TRY_LINK([#include ]ifelse([$2], [need-formatstring-macros], [[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; ]], [])[extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings;], [bindtextdomain ("", ""); return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], gt_cv_func_gnugettext_libc=yes, gt_cv_func_gnugettext_libc=no)]) if test "$gt_cv_func_gnugettext_libc" != "yes"; then dnl Sometimes libintl requires libiconv, so first search for libiconv. ifelse(gt_included_intl, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) dnl because that would add "-liconv" to LIBINTL and LTLIBINTL dnl even if libiconv doesn't exist. AC_LIB_LINKFLAGS_BODY([intl]) AC_CACHE_CHECK([for GNU gettext in libintl], gt_cv_func_gnugettext_libintl, [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. AC_TRY_LINK([#include ]ifelse([$2], [need-formatstring-macros], [[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; ]], [])[extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], gt_cv_func_gnugettext_libintl=yes, gt_cv_func_gnugettext_libintl=no) dnl Now see whether libintl exists and depends on libiconv. if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include ]ifelse([$2], [need-formatstring-macros], [[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; ]], [])[extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" gt_cv_func_gnugettext_libintl=yes ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if test "$gt_cv_func_gnugettext_libc" = "yes" \ || { test "$gt_cv_func_gnugettext_libintl" = "yes" \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. LIBINTL= LTLIBINTL= INCINTL= fi ifelse(gt_included_intl, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions to use GNU gettext tools. CATOBJEXT=.gmo fi ]) if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Some extra flags are needed during linking. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if translation of program messages to the user's native language is requested.]) else USE_NLS=no fi fi AC_MSG_CHECKING([whether to use NLS]) AC_MSG_RESULT([$USE_NLS]) if test "$USE_NLS" = "yes"; then AC_MSG_CHECKING([where the gettext function comes from]) if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext_libintl" = "yes"; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi AC_MSG_RESULT([$gt_source]) fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext_libintl" = "yes"; then AC_MSG_CHECKING([how to link with libintl]) AC_MSG_RESULT([$LIBINTL]) AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) fi dnl For backward compatibility. Some packages may be using this. AC_DEFINE(HAVE_GETTEXT, 1, [Define if the GNU gettext() function is already present or preinstalled.]) AC_DEFINE(HAVE_DCGETTEXT, 1, [Define if the GNU dcgettext() function is already present or preinstalled.]) fi dnl We need to process the po/ directory. POSUB=po fi ifelse(gt_included_intl, yes, [ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL dnl to 'yes' because some of the testsuite requires it. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi dnl Make all variables we use known to autoconf. AC_SUBST(BUILD_INCLUDED_LIBINTL) AC_SUBST(USE_INCLUDED_LIBINTL) AC_SUBST(CATOBJEXT) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= nls_cv_header_libgt= dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST(DATADIRNAME) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo AC_SUBST(INSTOBJEXT) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat AC_SUBST(GENCAT) dnl For backward compatibility. Some Makefiles may be using this. INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi AC_SUBST(INTLOBJS) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" AC_SUBST(INTLLIBS) dnl Make all documented variables known to autoconf. AC_SUBST(LIBINTL) AC_SUBST(LTLIBINTL) AC_SUBST(POSUB) ]) dnl Checks for all prerequisites of the intl subdirectory, dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. AC_DEFUN([AM_INTL_SUBDIR], [ AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([gt_GLIBC2])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([gl_VISIBILITY])dnl AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl AC_REQUIRE([bh_C_SIGNED])dnl AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl AC_REQUIRE([gt_TYPE_WCHAR_T])dnl AC_REQUIRE([gt_TYPE_WINT_T])dnl AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gt_TYPE_INTMAX_T]) AC_REQUIRE([gt_PRINTF_POSIX]) AC_REQUIRE([gl_GLIBC21])dnl AC_REQUIRE([gl_XSIZE])dnl AC_REQUIRE([gt_INTL_MACOSX])dnl AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) ]) AC_CHECK_HEADERS([stddef.h stdlib.h string.h]) AC_CHECK_FUNCS([asprintf fwprintf putenv setenv setlocale snprintf wcslen]) dnl Use the _snprintf function only if it is declared (because on NetBSD it dnl is defined as a weak alias of snprintf; we prefer to use the latter). gt_CHECK_DECL(_snprintf, [#include ]) gt_CHECK_DECL(_snwprintf, [#include ]) dnl Use the *_unlocked functions only if they are declared. dnl (because some of them were defined without being declared in Solaris dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built dnl on Solaris 2.5.1 to run on Solaris 2.6). dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. gt_CHECK_DECL(getc_unlocked, [#include ]) case $gt_cv_func_printf_posix in *yes) HAVE_POSIX_PRINTF=1 ;; *) HAVE_POSIX_PRINTF=0 ;; esac AC_SUBST([HAVE_POSIX_PRINTF]) if test "$ac_cv_func_asprintf" = yes; then HAVE_ASPRINTF=1 else HAVE_ASPRINTF=0 fi AC_SUBST([HAVE_ASPRINTF]) if test "$ac_cv_func_snprintf" = yes; then HAVE_SNPRINTF=1 else HAVE_SNPRINTF=0 fi AC_SUBST([HAVE_SNPRINTF]) if test "$ac_cv_func_wprintf" = yes; then HAVE_WPRINTF=1 else HAVE_WPRINTF=0 fi AC_SUBST([HAVE_WPRINTF]) AM_LANGINFO_CODESET gt_LC_MESSAGES dnl Compilation on mingw and Cygwin needs special Makefile rules, because dnl 1. when we install a shared library, we must arrange to export dnl auxiliary pointer variables for every exported variable, dnl 2. when we install a shared library and a static library simultaneously, dnl the include file specifies __declspec(dllimport) and therefore we dnl must arrange to define the auxiliary pointer variables for the dnl exported variables _also_ in the static library. if test "$enable_shared" = yes; then case "$host_os" in cygwin*) is_woe32dll=yes ;; *) is_woe32dll=no ;; esac else is_woe32dll=no fi WOE32DLL=$is_woe32dll AC_SUBST([WOE32DLL]) dnl Rename some macros and functions used for locking. AH_BOTTOM([ #define __libc_lock_t gl_lock_t #define __libc_lock_define gl_lock_define #define __libc_lock_define_initialized gl_lock_define_initialized #define __libc_lock_init gl_lock_init #define __libc_lock_lock gl_lock_lock #define __libc_lock_unlock gl_lock_unlock #define __libc_lock_recursive_t gl_recursive_lock_t #define __libc_lock_define_recursive gl_recursive_lock_define #define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized #define __libc_lock_init_recursive gl_recursive_lock_init #define __libc_lock_lock_recursive gl_recursive_lock_lock #define __libc_lock_unlock_recursive gl_recursive_lock_unlock #define glthread_in_use libintl_thread_in_use #define glthread_lock_init libintl_lock_init #define glthread_lock_lock libintl_lock_lock #define glthread_lock_unlock libintl_lock_unlock #define glthread_lock_destroy libintl_lock_destroy #define glthread_rwlock_init libintl_rwlock_init #define glthread_rwlock_rdlock libintl_rwlock_rdlock #define glthread_rwlock_wrlock libintl_rwlock_wrlock #define glthread_rwlock_unlock libintl_rwlock_unlock #define glthread_rwlock_destroy libintl_rwlock_destroy #define glthread_recursive_lock_init libintl_recursive_lock_init #define glthread_recursive_lock_lock libintl_recursive_lock_lock #define glthread_recursive_lock_unlock libintl_recursive_lock_unlock #define glthread_recursive_lock_destroy libintl_recursive_lock_destroy #define glthread_once libintl_once #define glthread_once_call libintl_once_call #define glthread_once_singlethreaded libintl_once_singlethreaded ]) ]) dnl Checks for the core files of the intl subdirectory: dnl dcigettext.c dnl eval-plural.h dnl explodename.c dnl finddomain.c dnl gettextP.h dnl gmo.h dnl hash-string.h hash-string.c dnl l10nflist.c dnl libgnuintl.h.in (except the *printf stuff) dnl loadinfo.h dnl loadmsgcat.c dnl localealias.c dnl log.c dnl plural-exp.h plural-exp.c dnl plural.y dnl Used by libglocale. AC_DEFUN([gt_INTL_SUBDIR_CORE], [ AC_REQUIRE([AC_C_INLINE])dnl AC_REQUIRE([AC_TYPE_SIZE_T])dnl AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_FUNC_MMAP])dnl AC_REQUIRE([gt_INTDIV0])dnl AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl AC_REQUIRE([gl_HEADER_INTTYPES_H])dnl AC_REQUIRE([gt_INTTYPES_PRI])dnl AC_REQUIRE([gl_LOCK])dnl AC_TRY_LINK( [int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }], [], [AC_DEFINE([HAVE_BUILTIN_EXPECT], 1, [Define to 1 if the compiler understands __builtin_expect.])]) AC_CHECK_HEADERS([argz.h limits.h unistd.h sys/param.h]) AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \ stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \ argz_next __fsetlocking]) dnl Use the *_unlocked functions only if they are declared. dnl (because some of them were defined without being declared in Solaris dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built dnl on Solaris 2.5.1 to run on Solaris 2.6). dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. gt_CHECK_DECL(feof_unlocked, [#include ]) gt_CHECK_DECL(fgets_unlocked, [#include ]) AM_ICONV dnl glibc >= 2.4 has a NL_LOCALE_NAME macro when _GNU_SOURCE is defined, dnl and a _NL_LOCALE_NAME macro always. AC_CACHE_CHECK([for NL_LOCALE_NAME macro], gt_cv_nl_locale_name, [AC_TRY_LINK([#include #include ], [char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));], gt_cv_nl_locale_name=yes, gt_cv_nl_locale_name=no) ]) if test $gt_cv_nl_locale_name = yes; then AC_DEFINE(HAVE_NL_LOCALE_NAME, 1, [Define if you have and it defines the NL_LOCALE_NAME macro if _GNU_SOURCE is defined.]) fi dnl intl/plural.c is generated from intl/plural.y. It requires bison, dnl because plural.y uses bison specific features. It requires at least dnl bison-1.26 because earlier versions generate a plural.c that doesn't dnl compile. dnl bison is only needed for the maintainer (who touches plural.y). But in dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put dnl the rule in general Makefile. Now, some people carelessly touch the dnl files or have a broken "make" program, hence the plural.c rule will dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not dnl present or too old. AC_CHECK_PROGS([INTLBISON], [bison]) if test -z "$INTLBISON"; then ac_verc_fail=yes else dnl Found it, now check the version. AC_MSG_CHECKING([version of bison]) changequote(<<,>>)dnl ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) changequote([,])dnl ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; esac AC_MSG_RESULT([$ac_prog_version]) fi if test $ac_verc_fail = yes; then INTLBISON=: fi ]) dnl Checks for special options needed on MacOS X. dnl Defines INTL_MACOSX_LIBS. AC_DEFUN([gt_INTL_MACOSX], [ dnl Check for API introduced in MacOS X 10.2. AC_CACHE_CHECK([for CFPreferencesCopyAppValue], gt_cv_func_CFPreferencesCopyAppValue, [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], [CFPreferencesCopyAppValue(NULL, NULL)], [gt_cv_func_CFPreferencesCopyAppValue=yes], [gt_cv_func_CFPreferencesCopyAppValue=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) fi dnl Check for API introduced in MacOS X 10.3. AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], [CFLocaleCopyCurrent();], [gt_cv_func_CFLocaleCopyCurrent=yes], [gt_cv_func_CFLocaleCopyCurrent=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFLocaleCopyCurrent = yes; then AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi AC_SUBST([INTL_MACOSX_LIBS]) ]) dnl gt_CHECK_DECL(FUNC, INCLUDES) dnl Check whether a function is declared. AC_DEFUN([gt_CHECK_DECL], [ AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, [AC_TRY_COMPILE([$2], [ #ifndef $1 char *p = (char *) $1; #endif ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) if test $ac_cv_have_decl_$1 = yes; then gt_value=1 else gt_value=0 fi AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], [Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) ]) dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) gmerlin-avdecoder-1.2.0~dfsg/m4/size_max.m40000644000000000000000000000433011764363477017264 0ustar rootroot# size_max.m4 serial 4 dnl Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([gl_SIZE_MAX], [ AC_CHECK_HEADERS(stdint.h) dnl First test whether the system already has SIZE_MAX. AC_MSG_CHECKING([for SIZE_MAX]) result= AC_EGREP_CPP([Found it], [ #include #if HAVE_STDINT_H #include #endif #ifdef SIZE_MAX Found it #endif ], result=yes) if test -z "$result"; then dnl Define it ourselves. Here we assume that the type 'size_t' is not wider dnl than the type 'unsigned long'. Try hard to find a definition that can dnl be used in a preprocessor #if, i.e. doesn't contain a cast. _AC_COMPUTE_INT([sizeof (size_t) * CHAR_BIT - 1], size_t_bits_minus_1, [#include #include ], size_t_bits_minus_1=) _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint, [#include ], fits_in_uint=) if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then if test $fits_in_uint = 1; then dnl Even though SIZE_MAX fits in an unsigned int, it must be of type dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'. AC_TRY_COMPILE([#include extern size_t foo; extern unsigned long foo; ], [], fits_in_uint=0) fi dnl We cannot use 'expr' to simplify this expression, because 'expr' dnl works only with 'long' integers in the host environment, while we dnl might be cross-compiling from a 32-bit platform to a 64-bit platform. if test $fits_in_uint = 1; then result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" else result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" fi else dnl Shouldn't happen, but who knows... result='((size_t)~(size_t)0)' fi fi AC_MSG_RESULT([$result]) if test "$result" != yes; then AC_DEFINE_UNQUOTED([SIZE_MAX], [$result], [Define as the maximum value of type 'size_t', if the system doesn't define it.]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/avcodec.m40000644000000000000000000000710311764363477017052 0ustar rootroot# Configure paths for libavcodec # Burkhard Plaum, 2004-08-12 dnl Compile an avcodec test program and figure out the version AC_DEFUN([ACL_CHECK_AVCODEC],[ AC_MSG_CHECKING([for build ID in libavcodec, libs: $AVCODEC_LIBS]) CFLAGS_save=$CFLAGS LIBS_save=$LIBS CFLAGS="$GMERLIN_DEP_CFLAGS $CFLAGS $AVCODEC_CFLAGS" LIBS="$GMERLIN_DEP_LIBS $AVCODEC_LIBS" AVCODEC_HEADER="" dnl Look for header found_header="false" AC_TRY_COMPILE([ #include ],[], [found_header="true";AVCODEC_HEADER="";VDPAU_HEADER="" ],) if test $found_header = "false"; then AC_TRY_COMPILE([ #include ],[],[found_header="true";AVCODEC_HEADER="";VDPAU_HEADER=""]) fi if test $found_header = "false"; then AC_TRY_COMPILE([ #include ],[], [found_header="true";AVCODEC_HEADER="";VDPAU_HEADER="" ],) fi AC_CHECK_HEADERS([libavcore/avcore.h]) avcodec_ok="false" AC_TRY_RUN([ #include #include $AVCODEC_HEADER int main() { FILE * output; if(LIBAVCODEC_BUILD < $1) return -1; output=fopen("avcodec_version", "w"); fprintf(output, AV_TOSTRING(LIBAVCODEC_VERSION)); fclose(output); return 0; } ], [ # program could be run if test "x$AVCODEC_VERSION" = "x"; then AVCODEC_VERSION=`cat avcodec_version` fi rm -f avcodec_version avcodec_ok="true" AC_MSG_RESULT(ok) ], [ # program could not be run AC_MSG_RESULT(failed) ]) have_avcodec_img_convert="false" if test "x$avcodec_ok" = "xtrue"; then avcodec_swscale_missing="false" AC_MSG_CHECKING(for img_convert) AC_TRY_LINK([#include ], [img_convert(NULL, 0, NULL, 0, 0, 0); return 0;], have_avcodec_img_convert=true AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) if test "x$have_avcodec_img_convert" != "xtrue"; then if test "x$have_libswscale" != xtrue; then avcodec_swscale_missing="true" avcodec_ok="false" fi fi fi CFLAGS="$CFLAGS_save" LIBS="$LIBS_save" ]) dnl ACL_PATH_AVCODEC(BUILD_ID [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) dnl Test for libavcodec, and define AVCODEC_CFLAGS, AVCODEC_LIBS and dnl AVCODEC_VERSION AC_DEFUN([ACL_PATH_AVCODEC],[ AC_ARG_WITH(avcodec,[ --with-avcodec=PFX Prefix where libavcodec is installed (optional)], avcodec_prefix="$withval", avcodec_prefix="") dnl We need the _save variables because PKG_CHECK_MODULES will change dnl the other variables AVCODEC_CFLAGS_save="" AVCODEC_LIBS_save="" avcodec_done="false" AH_TEMPLATE([AVCODEC_HEADER], [Header for libavcodec]) AH_TEMPLATE([VDPAU_HEADER], [Header for vdpau]) dnl dnl First preference: configure options dnl if test "x$avcodec_prefix" != x; then AVCODEC_CFLAGS="-I$avcodec_prefix/include" AVCODEC_LIBS="-L$avcodec_prefix/lib -lavcodec" ACL_CHECK_AVCODEC([$1]) if test "x$avcodec_ok" = "xtrue"; then avcodec_done="true" fi fi dnl dnl Second Perference: Autodetect dnl if test "x$avcodec_done" = "xfalse"; then PKG_CHECK_MODULES(AVCODEC, libavcodec, avcodec_orig="true", avcodec_orig="false") dnl dnl No idea for what this is good but libavcodec is not found if this is missing dnl if test "x$os_win32" = "xyes"; then AVCODEC_LIBS="-L/usr/local/bin $AVCODEC_LIBS" fi ACL_CHECK_AVCODEC([$1]) if test "x$avcodec_ok" = "xtrue"; then avcodec_done="true" fi fi if test "x$avcodec_done" = "xtrue"; then ifelse([$2], , :, [$2]) AC_DEFINE_UNQUOTED(AVCODEC_HEADER, $AVCODEC_HEADER) AC_DEFINE_UNQUOTED(VDPAU_HEADER, $VDPAU_HEADER) else ifelse([$3], , :, [$3]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/lib-prefix.m40000644000000000000000000001503611764363477017513 0ustar rootroot# lib-prefix.m4 serial 5 (gettext-0.15) dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't dnl require excessive bracketing. ifdef([AC_HELP_STRING], [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib-prefix], [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib --without-lib-prefix don't search for libraries in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) if test $use_additional = yes; then dnl Potentially add $additional_includedir to $CPPFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's already present in $CPPFLAGS, dnl 3. if it's /usr/local/include and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= for x in $CPPFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $CPPFLAGS. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" fi fi fi fi dnl Potentially add $additional_libdir to $LDFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's already present in $LDFLAGS, dnl 3. if it's /usr/local/lib and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= for x in $LDFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LDFLAGS. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" fi fi fi fi fi ]) dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, dnl acl_final_exec_prefix, containing the values to which $prefix and dnl $exec_prefix will expand at the end of the configure script. AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ dnl Unfortunately, prefix and exec_prefix get only finally determined dnl at the end of configure. if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" ]) dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing dnl the basename of the libdir, either "lib" or "lib64". AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [ dnl There is no formal standard regarding lib and lib64. The current dnl practice is that on a system supporting 32-bit and 64-bit instruction dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit dnl libraries go under $prefix/lib. We determine the compiler's default dnl mode by looking at the compiler's library search path. If at least dnl of its elements ends in /lib64 or points to a directory whose absolute dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the dnl default, namely "lib". acl_libdirstem=lib searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/lcmessage.m40000644000000000000000000000240411764363477017410 0ustar rootroot# lcmessage.m4 serial 4 (gettext-0.14.2) dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995. # Check whether LC_MESSAGES is available in . AC_DEFUN([gt_LC_MESSAGES], [ AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)]) if test $gt_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your file defines LC_MESSAGES.]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/po.m40000644000000000000000000004336711764363477016100 0ustar rootroot# po.m4 serial 13 (gettext-0.15) dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ(2.50) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake AC_REQUIRE([AM_NLS])dnl dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. dnl Search for GNU msgfmt in the PATH. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. dnl The second test excludes FreeBSD msgfmt. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) dnl Test whether it is GNU msgfmt >= 0.15. changequote(,)dnl case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac changequote([,])dnl AC_SUBST([MSGFMT_015]) changequote(,)dnl case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac changequote([,])dnl AC_SUBST([GMSGFMT_015]) dnl Search for GNU xgettext 0.12 or newer in the PATH. dnl The first test excludes Solaris xgettext and early GNU xgettext versions. dnl The second test excludes FreeBSD xgettext. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po dnl Test whether it is GNU xgettext >= 0.15. changequote(,)dnl case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac changequote([,])dnl AC_SUBST([XGETTEXT_015]) dnl Search for GNU msgmerge 0.11 or newer in the PATH. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) dnl Installation directories. dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we dnl have to define it here, so that it can be used in po/Makefile. test -n "$localedir" || localedir='${datadir}/locale' AC_SUBST([localedir]) AC_CONFIG_COMMANDS([po-directories], [[ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done]], [# Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) ]) dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ # When this code is run, in config.status, two variables have already been # set: # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, # - LINGUAS is the value of the environment variable LINGUAS at configure # time. changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Find a way to echo strings without interpreting backslash. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then gt_echo='echo' else if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then gt_echo='printf %s\n' else echo_func () { cat < "$ac_file.tmp" if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" < /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" < has the 'wint_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WINT_T], [ AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t, [AC_TRY_COMPILE([#include wint_t foo = (wchar_t)'\0';], , gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)]) if test $gt_cv_c_wint_t = yes; then AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/codeset.m40000644000000000000000000000135111764363477017073 0ustar rootroot# codeset.m4 serial AM1 (gettext-0.10.40) dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_LANGINFO_CODESET], [ AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, [AC_TRY_LINK([#include ], [char* cs = nl_langinfo(CODESET);], am_cv_langinfo_codeset=yes, am_cv_langinfo_codeset=no) ]) if test $am_cv_langinfo_codeset = yes; then AC_DEFINE(HAVE_LANGINFO_CODESET, 1, [Define if you have and nl_langinfo(CODESET).]) fi ]) gmerlin-avdecoder-1.2.0~dfsg/m4/Makefile.am0000644000000000000000000000063511764363477017243 0ustar rootrootEXTRA_DIST= codeset.m4 gettext.m4 glibc2.m4 glibc21.m4 iconv.m4 intdiv0.m4 intmax.m4 inttypes_h.m4 inttypes-h.m4 inttypes-pri.m4 lcmessage.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 lock.m4 longdouble.m4 longlong.m4 nls.m4 po.m4 printf-posix.m4 progtest.m4 signed.m4 size_max.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 visibility.m4 wchar_t.m4 wint_t.m4 xsize.m4 lqt_opt_cflags.m4 avcodec.m4 avformat.m4 check_funcs.m4 gmerlin-avdecoder-1.2.0~dfsg/m4/lib-link.m40000644000000000000000000006304611764363477017157 0ustar rootroot# lib-link.m4 serial 8 (gettext-0.15) dnl Copyright (C) 2001-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_PREREQ(2.50) dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) define([Name],[translit([$1],[./-], [___])]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes undefine([Name]) undefine([NAME]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. If found, it dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) define([Name],[translit([$1],[./-], [___])]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" LIBS="$LIBS $LIB[]NAME" AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) undefine([Name]) undefine([NAME]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, dnl hardcode_direct, hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ dnl Tell automake >= 1.10 to complain if config.rpath is missing. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" libext="$acl_cv_libext" shlibext="$acl_cv_shlibext" hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" hardcode_direct="$acl_cv_hardcode_direct" hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE(rpath, [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib$1-prefix], [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib --without-lib$1-prefix don't search for lib$1 in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= if test $use_additional = yes; then if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then found_dir="$additional_libdir" found_so="$additional_libdir/lib$name.$shlibext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi else if test -f "$additional_libdir/lib$name.$libext"; then found_dir="$additional_libdir" found_a="$additional_libdir/lib$name.$libext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then found_dir="$dir" found_so="$dir/lib$name.$shlibext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi else if test -f "$dir/lib$name.$libext"; then found_dir="$dir" found_a="$dir/lib$name.$libext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's /usr/local/include and we are using GCC on Linux, dnl 3. if it's already present in $CPPFLAGS or the already dnl constructed $INCNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INC[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $INCNAME. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" fi fi fi fi fi dnl Look for dependencies. if test -n "$found_la"; then dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" done dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) dnl For those cases where a variable contains several -L and -l options dnl referring to unknown libraries and directories, this macro determines the dnl necessary additional linker options for the runtime path. dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) dnl sets LDADDVAR to linker options needed together with LIBSVALUE. dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, dnl otherwise linking without libtool is assumed. AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], [ AC_REQUIRE([AC_LIB_RPATH]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) $1= if test "$enable_rpath" != no; then if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then dnl Use an explicit option to hardcode directories into the resulting dnl binary. rpathdirs= next= for opt in $2; do if test -n "$next"; then dir="$next" dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem"; then rpathdirs="$rpathdirs $dir" fi next= else case $opt in -L) next=yes ;; -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem"; then rpathdirs="$rpathdirs $dir" fi next= ;; *) next= ;; esac fi done if test "X$rpathdirs" != "X"; then if test -n ""$3""; then dnl libtool is used for linking. Use -R options. for dir in $rpathdirs; do $1="${$1}${$1:+ }-R$dir" done else dnl The linker is used for linking directly. if test -n "$hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user dnl must pass all path elements in one option. alldirs= for dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="$flag" else dnl The -rpath options are cumulative. for dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="${$1}${$1:+ }$flag" done fi fi fi fi fi AC_SUBST([$1]) ]) gmerlin-avdecoder-1.2.0~dfsg/m4/progtest.m40000644000000000000000000000555011764363477017321 0ustar rootroot# progtest.m4 serial 4 (gettext-0.14.2) dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1996. AC_PREREQ(2.50) # Search path for a program which passes the given test. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [ # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in [[\\/]]* | ?:[[\\/]]*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in ifelse([$5], , $PATH, [$5]); do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) gmerlin-avdecoder-1.2.0~dfsg/m4/glibc2.m40000644000000000000000000000135411764363477016612 0ustar rootroot# glibc2.m4 serial 1 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Test for the GNU C Library, version 2.0 or newer. # From Bruno Haible. AC_DEFUN([gt_GLIBC2], [ AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer, ac_cv_gnu_library_2, [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) Lucky GNU user #endif #endif ], ac_cv_gnu_library_2=yes, ac_cv_gnu_library_2=no) ] ) AC_SUBST(GLIBC2) GLIBC2="$ac_cv_gnu_library_2" ] ) gmerlin-avdecoder-1.2.0~dfsg/COPYING0000644000000000000000000004311011764363506015706 0ustar rootroot GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. gmerlin-avdecoder-1.2.0~dfsg/config.sub0000755000000000000000000010242511274160642016633 0ustar rootroot#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 # Free Software Foundation, Inc. timestamp='2009-06-11' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: gmerlin-avdecoder-1.2.0~dfsg/make_potfiles0000755000000000000000000000015511764363506017425 0ustar rootroot#!/bin/sh find . -name "*.[ch]" | cut -b 3- | grep -v config\\.h | grep -v bgav_version\\.h > po/POTFILES.in gmerlin-avdecoder-1.2.0~dfsg/depcomp0000755000000000000000000004426711331674343016240 0ustar rootroot#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free # Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u="sed s,\\\\\\\\,/,g" depmode=msvisualcpp fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: gmerlin-avdecoder-1.2.0~dfsg/utils/0000755000000000000000000000000011764363527016017 5ustar rootrootgmerlin-avdecoder-1.2.0~dfsg/utils/cpuinfo.c0000644000000000000000000001321511764363500017617 0ustar rootroot/* * cpuinfo.c from the MPlayer project's TOOLS/ directory * * This program is used by the top level cpuinfo.sh script during ./configure * for systems which do not have /proc/cpuinfo. The output of this program is * formatted the same as 'cat /proc/cpuinfo'. * * NOTE: Only for the X86 cpu family. */ #include #include #include #include #include #ifdef __MINGW32__ #include void gettimeofday(struct timeval* t,void* timezone) { struct timeb timebuffer; ftime( &timebuffer ); t->tv_sec=timebuffer.time; t->tv_usec=1000*timebuffer.millitm; } #define MISSING_USLEEP #define sleep(t) _sleep(1000*t); #endif #ifdef M_UNIX typedef long long int64_t; #define MISSING_USLEEP #else #include #endif typedef struct cpuid_regs { unsigned int eax; unsigned int ebx; unsigned int ecx; unsigned int edx; } cpuid_regs_t; static cpuid_regs_t cpuid(int func) { cpuid_regs_t regs; #define CPUID ".byte 0x0f, 0xa2; " asm("push %%ebx; " "movl %4,%%eax; " CPUID "movl %%eax,%0; movl %%ebx,%1; movl %%ecx,%2; movl %%edx,%3;" "pop %%ebx" : "=m" (regs.eax), "=m" (regs.ebx), "=m" (regs.ecx), "=m" (regs.edx) : "g" (func) : "%eax", "%ecx", "%edx"); return regs; } static int64_t rdtsc(void) { unsigned int i, j; #define RDTSC ".byte 0x0f, 0x31; " asm(RDTSC : "=a"(i), "=d"(j) : ); return ((int64_t)j<<32) + (int64_t)i; } static void store32(char *d, unsigned int v) { d[0] = v & 0xff; d[1] = (v >> 8) & 0xff; d[2] = (v >> 16) & 0xff; d[3] = (v >> 24) & 0xff; } int main(int argc, char **argv) { cpuid_regs_t regs, regs_ext; char idstr[13]; unsigned max_cpuid; unsigned max_ext_cpuid; unsigned int amd_flags; unsigned int cpuType, cpuModel; char *model_name = "Unknown CPU"; int i; char processor_name[49]; regs = cpuid(0); max_cpuid = regs.eax; /* printf("%d CPUID function codes\n", max_cpuid+1); */ store32(idstr+0, regs.ebx); store32(idstr+4, regs.edx); store32(idstr+8, regs.ecx); idstr[12] = 0; printf("vendor_id\t: %s\n", idstr); if (strcmp(idstr, "GenuineIntel") == 0) model_name = "Unknown Intel CPU"; else if (strcmp(idstr, "AuthenticAMD") == 0) model_name = "Unknown AMD CPU"; regs_ext = cpuid((1<<31) + 0); max_ext_cpuid = regs_ext.eax; if (max_ext_cpuid >= (1<<31) + 1) { regs_ext = cpuid((1<<31) + 1); amd_flags = regs_ext.edx; if (max_ext_cpuid >= (1<<31) + 4) { for (i = 2; i <= 4; i++) { regs_ext = cpuid((1<<31) + i); store32(processor_name + (i-2)*16, regs_ext.eax); store32(processor_name + (i-2)*16 + 4, regs_ext.ebx); store32(processor_name + (i-2)*16 + 8, regs_ext.ecx); store32(processor_name + (i-2)*16 + 12, regs_ext.edx); } processor_name[48] = 0; model_name = processor_name; } } else { amd_flags = 0; } if (max_cpuid >= 1) { static struct { int bit; char *desc;; char *description; } cap[] = { { 0, "fpu", "Floating-point unit on-chip" }, { 1, "vme", "Virtual Mode Enhancements" }, { 2, "de", "Debugging Extension" }, { 3, "pse", "Page Size Extension" }, { 4, "tsc", "Time Stamp Counter" }, { 5, "msr", "Pentium Processor MSR" }, { 6, "pae", "Physical Address Extension" }, { 7, "mce", "Machine Check Exception" }, { 8, "cx8", "CMPXCHG8B Instruction Supported" }, { 9, "apic", "On-chip CPIC Hardware Enabled" }, { 11, "sep", "SYSENTER and SYSEXIT" }, { 12, "mtrr", "Memory Type Range Registers" }, { 13, "pge", "PTE Global Bit" }, { 14, "mca", "Machine Check Architecture" }, { 15, "cmov", "Conditional Move/Compare Instruction" }, { 16, "pat", "Page Attribute Table" }, { 17, "pse36", "Page Size Extension 36-bit" }, { 18, "psn", "Processor Serial Number" }, { 19, "cflsh", "CFLUSH instruction" }, { 21, "ds", "Debug Store" }, { 22, "acpi", "Thermal Monitor and Clock Ctrl" }, { 23, "mmx", "MMX Technology" }, { 24, "fxsr", "FXSAVE/FXRSTOR" }, { 25, "sse", "SSE Extensions" }, { 26, "sse2", "SSE2 Extensions" }, { 27, "ss", "Self Snoop" }, { 29, "tm", "Therm. Monitor" }, { -1 } }; static struct { int bit; char *desc;; char *description; } cap_amd[] = { { 22, "mmxext","MMX Technology (AMD Extensions)" }, { 30, "3dnowext","3Dnow! Extensions" }, { 31, "3dnow", "3Dnow!" }, { 32, "k6_mtrr", "Memory Type Range Registers" }, { -1 } }; int i; regs = cpuid(1); cpuType = (regs.eax >> 8) & 0xf; cpuModel = (regs.eax >> 4) & 0xf; if (cpuType == 0xf) cpuType = 0xf + ((regs.eax >> 20) & 0xf); // extended family if (cpuType == 0xf || cpuType == 6) cpuModel |= ((regs.eax >> 16) & 0xf) << 4; printf("cpu family\t: %d\n" "model\t\t: %d\n" "stepping\t: %d\n" , cpuType, cpuModel, regs.eax & 0xf); printf("flags\t\t:"); for (i = 0; cap[i].bit >= 0; i++) { if (regs.edx & (1 << cap[i].bit)) { printf(" %s", cap[i].desc); } } for (i = 0; cap_amd[i].bit >= 0; i++) { if (amd_flags & (1 << cap_amd[i].bit)) { printf(" %s", cap_amd[i].desc); } } printf("\n"); if (regs.edx & (1 << 4)) { int64_t tsc_start, tsc_end; struct timeval tv_start, tv_end; int usec_delay; tsc_start = rdtsc(); gettimeofday(&tv_start, NULL); #ifdef MISSING_USLEEP sleep(1); #else usleep(100000); #endif tsc_end = rdtsc(); gettimeofday(&tv_end, NULL); usec_delay = 1000000 * (tv_end.tv_sec - tv_start.tv_sec) + (tv_end.tv_usec - tv_start.tv_usec); printf("cpu MHz\t\t: %.3f\n", (double)(tsc_end-tsc_start) / usec_delay); } } printf("model name\t: %s\n", model_name); exit(0); } gmerlin-avdecoder-1.2.0~dfsg/utils/Makefile.in0000644000000000000000000003220511764363515020063 0ustar rootroot# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = utils DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/avcodec.m4 \ $(top_srcdir)/m4/avformat.m4 $(top_srcdir)/m4/check_funcs.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/lqt_opt_cflags.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVCODEC_CFLAGS = @AVCODEC_CFLAGS@ AVCODEC_LIBS = @AVCODEC_LIBS@ AVCODEC_REQUIRED = @AVCODEC_REQUIRED@ AVFORMAT_CFLAGS = @AVFORMAT_CFLAGS@ AVFORMAT_LIBS = @AVFORMAT_LIBS@ AVFORMAT_REQUIRED = @AVFORMAT_REQUIRED@ AWK = @AWK@ BGAV_VERSION = @BGAV_VERSION@ BGAV_VERSION_MAJOR = @BGAV_VERSION_MAJOR@ BGAV_VERSION_MICRO = @BGAV_VERSION_MICRO@ BGAV_VERSION_MINOR = @BGAV_VERSION_MINOR@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CDIO_CFLAGS = @CDIO_CFLAGS@ CDIO_LIBS = @CDIO_LIBS@ CDIO_REQUIRED = @CDIO_REQUIRED@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DCA_CFLAGS = @DCA_CFLAGS@ DCA_LIBS = @DCA_LIBS@ DCA_REQUIRED = @DCA_REQUIRED@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOXYGEN = @DOXYGEN@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DVDREAD_CFLAGS = @DVDREAD_CFLAGS@ DVDREAD_LIBS = @DVDREAD_LIBS@ DVDREAD_REQUIRED = @DVDREAD_REQUIRED@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FAAD2_CFLAGS = @FAAD2_CFLAGS@ FAAD2_LIBS = @FAAD2_LIBS@ FAAD2_REQUIRED = @FAAD2_REQUIRED@ FGREP = @FGREP@ FLAC_CFLAGS = @FLAC_CFLAGS@ FLAC_LIBS = @FLAC_LIBS@ FLAC_REQUIRED = @FLAC_REQUIRED@ GAVL_CFLAGS = @GAVL_CFLAGS@ GAVL_LIBS = @GAVL_LIBS@ GAVL_REQUIRED = @GAVL_REQUIRED@ GMERLIN_CFLAGS = @GMERLIN_CFLAGS@ GMERLIN_DEP_LIBS = @GMERLIN_DEP_LIBS@ GMERLIN_LIBS = @GMERLIN_LIBS@ GMERLIN_PLUGIN_LDFLAGS = @GMERLIN_PLUGIN_LDFLAGS@ GMERLIN_REQUIRED = @GMERLIN_REQUIRED@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ ICONV_LIBS = @ICONV_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBA52_CFLAGS = @LIBA52_CFLAGS@ LIBA52_LIBS = @LIBA52_LIBS@ LIBA52_REQUIRED = @LIBA52_REQUIRED@ LIBBGAV_CFLAGS = @LIBBGAV_CFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMPEG2_CFLAGS = @LIBMPEG2_CFLAGS@ LIBMPEG2_LIBS = @LIBMPEG2_LIBS@ LIBMPEG2_REQUIRED = @LIBMPEG2_REQUIRED@ LIBOBJS = @LIBOBJS@ LIBPOSTPROC_CFLAGS = @LIBPOSTPROC_CFLAGS@ LIBPOSTPROC_LIBS = @LIBPOSTPROC_LIBS@ LIBPOSTPROC_REQUIRED = @LIBPOSTPROC_REQUIRED@ LIBS = @LIBS@ LIBSWSCALE_CFLAGS = @LIBSWSCALE_CFLAGS@ LIBSWSCALE_LIBS = @LIBSWSCALE_LIBS@ LIBSWSCALE_REQUIRED = @LIBSWSCALE_REQUIRED@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTVERSION_AGE = @LTVERSION_AGE@ LTVERSION_CURRENT = @LTVERSION_CURRENT@ LTVERSION_REVISION = @LTVERSION_REVISION@ MAD_CFLAGS = @MAD_CFLAGS@ MAD_LIBS = @MAD_LIBS@ MAD_REQUIRED = @MAD_REQUIRED@ MAKEINFO = @MAKEINFO@ MJPEGTOOLS_CFLAGS = @MJPEGTOOLS_CFLAGS@ MJPEGTOOLS_LIBS = @MJPEGTOOLS_LIBS@ MJPEGTOOLS_REQUIRED = @MJPEGTOOLS_REQUIRED@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MUSEPACK_CFLAGS = @MUSEPACK_CFLAGS@ MUSEPACK_LIBS = @MUSEPACK_LIBS@ MUSEPACK_REQUIRED = @MUSEPACK_REQUIRED@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ OGG_REQUIRED = @OGG_REQUIRED@ OPENJPEG_CFLAGS = @OPENJPEG_CFLAGS@ OPENJPEG_LIBS = @OPENJPEG_LIBS@ OPENJPEG_REQUIRED = @OPENJPEG_REQUIRED@ OPT_CFLAGS = @OPT_CFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ PNG_REQUIRED = @PNG_REQUIRED@ POSUB = @POSUB@ RANLIB = @RANLIB@ REALDLL_LIBS = @REALDLL_LIBS@ SAMBA_CFLAGS = @SAMBA_CFLAGS@ SAMBA_LIBS = @SAMBA_LIBS@ SAMBA_REQUIRED = @SAMBA_REQUIRED@ SCHROEDINGER_CFLAGS = @SCHROEDINGER_CFLAGS@ SCHROEDINGER_LIBS = @SCHROEDINGER_LIBS@ SCHROEDINGER_REQUIRED = @SCHROEDINGER_REQUIRED@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ SPEEX_REQUIRED = @SPEEX_REQUIRED@ STRIP = @STRIP@ THEORADEC_CFLAGS = @THEORADEC_CFLAGS@ THEORADEC_LIBS = @THEORADEC_LIBS@ THEORADEC_REQUIRED = @THEORADEC_REQUIRED@ TIFF_CFLAGS = @TIFF_CFLAGS@ TIFF_LIBS = @TIFF_LIBS@ TIFF_REQUIRED = @TIFF_REQUIRED@ TOP_SRCDIR = @TOP_SRCDIR@ USE_NLS = @USE_NLS@ VDPAU_CFLAGS = @VDPAU_CFLAGS@ VDPAU_LIBS = @VDPAU_LIBS@ VDPAU_REQUIRED = @VDPAU_REQUIRED@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ VORBIS_REQUIRED = @VORBIS_REQUIRED@ W32_NO_OPTIMIZE = @W32_NO_OPTIMIZE@ XADLL_LIBS = @XADLL_LIBS@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_LIBS = @X_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gmerlin_plugindir = @gmerlin_plugindir@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ w32_path = @w32_path@ EXTRA_DIST = cpuinfo.c all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu utils/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu utils/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gmerlin-avdecoder-1.2.0~dfsg/utils/Makefile.am0000644000000000000000000000002711764363500020041 0ustar rootrootEXTRA_DIST = cpuinfo.c gmerlin-avdecoder-1.2.0~dfsg/NEWS0000644000000000000000000000042011764363506015347 0ustar rootroot* NEXT VERSION * * New generic pcm decoder handles 8/12/16/24/32 bit WAVs, AIFF (all bit depths), Quicktime (raw, twos and sowt) and DVD audio (LPCM). * WAVEFORMATEXTENSIBLE support in wav files * Raw AVIs with 8, 16, 24 and 32 bpp * 'demuxer' for raw A52 streams gmerlin-avdecoder-1.2.0~dfsg/autogen.sh0000755000000000000000000000215111764363506016654 0ustar rootroot#!/bin/sh ./make_potfiles if test -d /usr/local/share/aclocal; then ACLOCAL_FLAGS="-I /usr/local/share/aclocal" else ACLOCAL_FLAGS="" fi LIBTOOLIZE=`which glibtoolize` if test "x$LIBTOOLIZE" = "x"; then LIBTOOLIZE=`which libtoolize` fi if test "x$LIBTOOLIZE" = "x"; then echo "No libtoolize command found" exit 1 fi echo -n "doing aclocal..." aclocal $ACLOCAL_FLAGS -I m4 if test $? != "0"; then echo "failed" exit 1 fi echo "done" echo -n "doing libtoolize..." $LIBTOOLIZE --automake --copy --force if test $? != "0"; then echo "failed" exit 1 fi echo "done" echo -n "doing autoheader..." autoheader if test $? != "0"; then echo "failed" exit 1 fi echo "done" echo -n "doing autoconf..." autoconf if test $? != "0"; then echo "failed" exit 1 fi echo "done" echo -n "doing automake..." automake -a if test $? != "0"; then echo -n "automake failed in first try (broken version). Trying once more..." $LIBTOOLIZE --automake --copy --force automake -a if test $? != "0"; then echo "failed" exit 1 else echo "Success :)" fi fi echo "done" echo "You can now run ./configure" gmerlin-avdecoder-1.2.0~dfsg/ChangeLog0000644000000000000000000000313611764363506016431 0ustar rootroot2007-02-11 gettextize * m4/codeset.m4: New file, from gettext-0.15. * m4/gettext.m4: New file, from gettext-0.15. * m4/glibc2.m4: New file, from gettext-0.15. * m4/glibc21.m4: New file, from gettext-0.15. * m4/iconv.m4: New file, from gettext-0.15. * m4/intdiv0.m4: New file, from gettext-0.15. * m4/intmax.m4: New file, from gettext-0.15. * m4/inttypes_h.m4: New file, from gettext-0.15. * m4/inttypes-h.m4: New file, from gettext-0.15. * m4/inttypes-pri.m4: New file, from gettext-0.15. * m4/lcmessage.m4: New file, from gettext-0.15. * m4/lib-ld.m4: New file, from gettext-0.15. * m4/lib-link.m4: New file, from gettext-0.15. * m4/lib-prefix.m4: New file, from gettext-0.15. * m4/lock.m4: New file, from gettext-0.15. * m4/longdouble.m4: New file, from gettext-0.15. * m4/longlong.m4: New file, from gettext-0.15. * m4/nls.m4: New file, from gettext-0.15. * m4/po.m4: New file, from gettext-0.15. * m4/printf-posix.m4: New file, from gettext-0.15. * m4/progtest.m4: New file, from gettext-0.15. * m4/signed.m4: New file, from gettext-0.15. * m4/size_max.m4: New file, from gettext-0.15. * m4/stdint_h.m4: New file, from gettext-0.15. * m4/uintmax_t.m4: New file, from gettext-0.15. * m4/ulonglong.m4: New file, from gettext-0.15. * m4/visibility.m4: New file, from gettext-0.15. * m4/wchar_t.m4: New file, from gettext-0.15. * m4/wint_t.m4: New file, from gettext-0.15. * m4/xsize.m4: New file, from gettext-0.15. * m4/Makefile.am (EXTRA_DIST): Add the new files. * Makefile.am (EXTRA_DIST): Add config.rpath. * configure.ac (AC_CONFIG_FILES): Add po/Makefile.in. gmerlin-avdecoder-1.2.0~dfsg/gmerlin_avdec.spec.in0000644000000000000000000000623411764363506020741 0ustar rootrootSummary: Gmerlin A/V decoder library Group: Development/Libraries Group(de): Entwicklung/Libraries Group(es): Desarrollo/Bibliotecas Group(fr): Development/Librairies Group(pl): Programowanie/Biblioteki Group(pt_BR): Desenvolvimento/Bibliotecas Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ Name: gmerlin_avdec Version: @VERSION@ Release: 1 License: GPL Source0: gmerlin_avdec-%{version}.tar.gz URL: http://gmerlin.sourceforge.net/ BuildRequires: autoconf BuildRequires: automake BuildRequires: gmerlin-lib-devel = @GMERLIN_REQUIRED@ BuildRequires: libvorbis-devel >= @VORBIS_REQUIRED@ BuildRequires: flac-devel >= @FLAC_REQUIRED@ BuildRequires: gavl-devel = @GAVL_REQUIRED@ BuildRequires: mpeg2dec-devel >= @LIBMPEG2_REQUIRED@ BuildRequires: faad2-devel >= @FAAD2_REQUIRED@ BuildRequires: libmad-devel >= @MAD_REQUIRED@ BuildRequires: a52dec-devel >= @LIBA52_REQUIRED@ BuildRequires: libpng-devel >= @PNG_REQUIRED@ BuildRequires: ffmpeg-devel = @AVCODEC_REQUIRED@ BuildRequires: libmusepack-devel >= @MUSEPACK_REQUIRED@ Requires: libvorbis >= @VORBIS_REQUIRED@ Requires: flac >= @FLAC_REQUIRED@ Requires: gavl = @GAVL_REQUIRED@ Requires: mpeg2dec >= @LIBMPEG2_REQUIRED@ Requires: faad2 >= @FAAD2_REQUIRED@ Requires: libmad >= @MAD_REQUIRED@ Requires: a52dec >= @LIBA52_REQUIRED@ Requires: libpng >= @PNG_REQUIRED@ Requires: ffmpeg = @AVCODEC_REQUIRED@ Requires: libmusepack >= @MUSEPACK_REQUIRED@ BuildRoot: /tmp/gmerlin-build %description Gmerlin A/V decoder library # # gmerlin_avdec-devel # %package devel Summary: Header files for compiling gmerlin applications and plugins Group: Development/Libraries Group(de): Entwicklung/Libraries Group(es): Desarrollo/Bibliotecas Group(fr): Development/Librairies Group(pl): Programowanie/Biblioteki Group(pt_BR): Desenvolvimento/Bibliotecas Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ Requires: %{name} = %{version} %description devel Header files for compiling gmerlin applications and plugins # # gmerlin_avdec-plugins # %package plugins Summary: Gmerlin plugins based on the Gmerlin A/V decoder library Group: Applications/Multimedia Group(de): Anwendungen/Multimedia Requires: gmerlin-lib = @GMERLIN_REQUIRED@ Requires: %{name} = %{version} Provides: gmerlin-input-plugin %description plugins Gmerlin plugins based on the Gmerlin A/V decoder library %prep %setup -n gmerlin_avdec-%{version} %build ./cvs_clean.sh ./autogen.sh %configure %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT gzip -9nf README %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root) %doc README.gz %attr(755,root,root) %{_libdir}/libgmerlin_avdec.so* %attr(644,root,root) %{_libdir}/libgmerlin_avdec.la %files devel %defattr(644,root,root) %{_includedir}/gmerlin/*.h %{_libdir}/pkgconfig/gmerlin_avdec.pc %files plugins %attr(755,root,root) @GMERLIN_PLUGIN_DIR@/*.so* %attr(644,root,root) @GMERLIN_PLUGIN_DIR@/*.la %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog * Sat May 31 2004 Burkhard Plaum - Initial creation gmerlin-avdecoder-1.2.0~dfsg/AUTHORS0000644000000000000000000000044411764363506015726 0ustar rootrootMain concept and programming: Burkhard Plaum (plaum@ipf.uni-stuttgart.de) Programmer and beta tester: Michael Gruenert (one78@web.de) Win32 DLL loader ported from the xine project (xinehq.de) Smaller code snippets ported from MPlayer, ffmpeg, xine and libquicktime (i.e. quicktime4linux) gmerlin-avdecoder-1.2.0~dfsg/aclocal.m40000644000000000000000000121142511764363512016517 0ustar rootroot# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, [m4_warning([this file was generated for autoconf 2.65. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ]) # serial 56 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. m4_defun([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl _LT_PROG_ECHO_BACKSLASH case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from `configure', and `config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # `config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain="$ac_aux_dir/ltmain.sh" ])# _LT_PROG_LTMAIN # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the `libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to `config.status' so that its # declaration there will have the same value as in `configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "X$" | $Xsed -e "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags="_LT_TAGS"dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into `config.status', and then the shell code to quote escape them in # for loops in `config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Fix-up fallback echo if it was mangled by the above quoting rules. case \$lt_ECHO in *'\\\[$]0 --fallback-echo"')dnl " lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` ;; esac _LT_OUTPUT_LIBTOOL_INIT ]) # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) cat >"$CONFIG_LT" <<_LTEOF #! $SHELL # Generated by $as_me. # Run this file to recreate a libtool stub with the current configuration. lt_cl_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ \`$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2008 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test $[#] != 0 do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try \`$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try \`$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. if test "$no_create" != yes; then lt_cl_success=: test "$silent" = yes && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) fi ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # _LT_COPYING _LT_LIBTOOL_TAGS # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) _LT_PROG_XSI_SHELLFNS sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS="$save_LDFLAGS" ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[[012]]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES # -------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(whole_archive_flag_spec, $1)='' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=echo _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" m4_if([$1], [CXX], [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX # ----------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl AC_LINK_IFELSE(AC_LANG_PROGRAM,[ lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. m4_defun([_LT_PROG_ECHO_BACKSLASH], [_LT_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$lt_ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac ECHO=${lt_ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then # Yippee, $ECHO works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat <<_LT_EOF [$]* _LT_EOF exit 0 fi # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test -z "$lt_ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if { echo_test_string=`eval $cmd`; } 2>/dev/null && { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null then break fi done fi if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$ECHO" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. ECHO='print -r' elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. ECHO='printf %s\n' if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL ECHO="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. ECHO=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. lt_ECHO=$ECHO if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(lt_ECHO) ]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that does not interpret backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" ])# _LT_ENABLE_LOCK # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [AC_CHECK_TOOL(AR, ar, false) test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1]) AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test x"[$]$2" = xyes; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ = "XX$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line __oline__ "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links="nottested" if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", [Define to the sub-directory in which libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existent directories. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` else lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[[4-9]]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[123]]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[[3-9]]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], [Run-time system search path for libraries]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program which can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program which can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method == "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi]) if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) AC_SUBST([DUMPBIN]) if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ const struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC*) # IBM XL 8.0 on PPC _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl*) # IBM XL C 8.0/Fortran 10.1 on PPC _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' ;; linux* | k*bsd*-gnu) _LT_TAGVAR(link_all_deplibs, $1)=no ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; linux* | k*bsd*-gnu) _LT_TAGVAR(link_all_deplibs, $1)=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag= tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi _LT_TAGVAR(link_all_deplibs, $1)=no else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_TAGVAR(ld_shlibs, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" AC_LINK_IFELSE(int foo(void) {}, _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' ) LDFLAGS="$save_LDFLAGS" else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then _LT_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], [[If ld is used when linking, flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting ${shlibpath_var} if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [fix_srcfile_path], [1], [Fix the shell variable $srcfile for the compiler]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC="$lt_save_CC" ])# _LT_LANG_C_CONFIG # _LT_PROG_CXX # ------------ # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ # compiler, we have our own version here. m4_defun([_LT_PROG_CXX], [ pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) AC_PROG_CXX if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_CXX dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_CXX], []) # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [AC_REQUIRE([_LT_PROG_CXX])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared # libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 will use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; xl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd2*) # C++ shared libraries are fairly broken _LT_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=echo else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(GCC, $1)="$GXX" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ]) dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)="$p" else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)="$p" else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_PROG_F77 # ------------ # Since AC_PROG_F77 is broken, in that it returns the empty string # if there is no fortran compiler, we have our own version here. m4_defun([_LT_PROG_F77], [ pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) AC_PROG_F77 if test -z "$F77" || test "X$F77" = "Xno"; then _lt_disable_F77=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_F77 dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_F77], []) # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_REQUIRE([_LT_PROG_F77])dnl AC_LANG_PUSH(Fortran 77) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_F77" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC CC=${F77-"f77"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$G77" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" fi # test "$_lt_disable_F77" != yes AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_PROG_FC # ----------- # Since AC_PROG_FC is broken, in that it returns the empty string # if there is no fortran compiler, we have our own version here. m4_defun([_LT_PROG_FC], [ pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) AC_PROG_FC if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_FC dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_FC], []) # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_REQUIRE([_LT_PROG_FC])dnl AC_LANG_PUSH(Fortran) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_FC" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC CC=${FC-"f95"} compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" fi # test "$_lt_disable_FC" != yes AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC="$lt_save_CC" ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC GCC= CC=${RC-"windres"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC="$lt_save_CC" ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes AC_MSG_RESULT([$xsi_shell]) _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) AC_MSG_CHECKING([whether the shell understands "+="]) lt_shell_append=no ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes AC_MSG_RESULT([$lt_shell_append]) _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PROG_XSI_SHELLFNS # --------------------- # Bourne and XSI compatible variants of some useful shell functions. m4_defun([_LT_PROG_XSI_SHELLFNS], [case $xsi_shell in yes) cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac } # func_basename file func_basename () { func_basename_result="${1##*/}" } # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}" } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). func_stripname () { # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"} } # func_opt_split func_opt_split () { func_opt_split_opt=${1%%=*} func_opt_split_arg=${1#*=} } # func_lo2o object func_lo2o () { case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac } # func_xform libobj-or-source func_xform () { func_xform_result=${1%.*}.lo } # func_arith arithmetic-term... func_arith () { func_arith_result=$(( $[*] )) } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=${#1} } _LT_EOF ;; *) # Bourne compatible functions. cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_basename file func_basename () { func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } dnl func_dirname_and_basename dnl A portable version of this function is already defined in general.m4sh dnl so there is no need for it here. # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; esac } # sed scripts: my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' my_sed_long_arg='1s/^-[[^=]]*=//' # func_opt_split func_opt_split () { func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` } # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` } # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` } # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "$[@]"` } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` } _LT_EOF esac case $lt_shell_append in yes) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$[1]+=\$[2]" } _LT_EOF ;; *) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$[1]=\$$[1]\$[2]" } _LT_EOF ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option `$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl `shared' nor `disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) ]) ])# _LT_SET_OPTIONS # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [0], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the `shared' and # `disable-shared' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the `static' and # `disable-static' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the `fast-install' # and `disable-fast-install' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the `pic-only' and `no-pic' # LT_INIT options. # MODE is either `yes' or `no'. If omitted, it defaults to `both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59 which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) # ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # Generated from ltversion.in. # serial 3017 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.2.6b]) m4_define([LT_PACKAGE_REVISION], [1.3017]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.2.6b' macro_revision='1.3017' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 4 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) # Configure paths for libogg # Jack Moffitt 10-21-2000 # Shamelessly stolen from Owen Taylor and Manish Singh dnl XIPH_PATH_OGG([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) dnl Test for libogg, and define OGG_CFLAGS and OGG_LIBS dnl AC_DEFUN([XIPH_PATH_OGG], [dnl dnl Get the cflags and libraries dnl AC_ARG_WITH(ogg,AC_HELP_STRING([--with-ogg=PFX],[Prefix where libogg is installed (optional)]), ogg_prefix="$withval", ogg_prefix="") AC_ARG_WITH(ogg-libraries,AC_HELP_STRING([--with-ogg-libraries=DIR],[Directory where libogg library is installed (optional)]), ogg_libraries="$withval", ogg_libraries="") AC_ARG_WITH(ogg-includes,AC_HELP_STRING([--with-ogg-includes=DIR],[Directory where libogg header files are installed (optional)]), ogg_includes="$withval", ogg_includes="") AC_ARG_ENABLE(oggtest,AC_HELP_STRING([--disable-oggtest],[Do not try to compile and run a test Ogg program]),, enable_oggtest=yes) if test "x$ogg_libraries" != "x" ; then OGG_LIBS="-L$ogg_libraries" elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then OGG_LIBS="" elif test "x$ogg_prefix" != "x" ; then OGG_LIBS="-L$ogg_prefix/lib" elif test "x$prefix" != "xNONE" ; then OGG_LIBS="-L$prefix/lib" fi if test "x$ogg_prefix" != "xno" ; then OGG_LIBS="$OGG_LIBS -logg" fi if test "x$ogg_includes" != "x" ; then OGG_CFLAGS="-I$ogg_includes" elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then OGG_CFLAGS="" elif test "x$ogg_prefix" != "x" ; then OGG_CFLAGS="-I$ogg_prefix/include" elif test "x$prefix" != "xNONE"; then OGG_CFLAGS="-I$prefix/include" fi AC_MSG_CHECKING(for Ogg) if test "x$ogg_prefix" = "xno" ; then no_ogg="disabled" enable_oggtest="no" else no_ogg="" fi if test "x$enable_oggtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $OGG_CFLAGS" LIBS="$LIBS $OGG_LIBS" dnl dnl Now check if the installed Ogg is sufficiently new. dnl rm -f conf.oggtest AC_TRY_RUN([ #include #include #include #include int main () { system("touch conf.oggtest"); return 0; } ],, no_ogg=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi if test "x$no_ogg" = "xdisabled" ; then AC_MSG_RESULT(no) ifelse([$2], , :, [$2]) elif test "x$no_ogg" = "x" ; then AC_MSG_RESULT(yes) ifelse([$1], , :, [$1]) else AC_MSG_RESULT(no) if test -f conf.oggtest ; then : else echo "*** Could not run Ogg test program, checking why..." CFLAGS="$CFLAGS $OGG_CFLAGS" LIBS="$LIBS $OGG_LIBS" AC_TRY_LINK([ #include #include ], [ return 0; ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding Ogg or finding the wrong" echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means Ogg was incorrectly installed" echo "*** or that you have moved Ogg since it was installed." ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi OGG_CFLAGS="" OGG_LIBS="" ifelse([$2], , :, [$2]) fi AC_SUBST(OGG_CFLAGS) AC_SUBST(OGG_LIBS) rm -f conf.oggtest ]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fi else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [AC_MSG_RESULT([no]) $4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES # Configure paths for libvorbis # Jack Moffitt 10-21-2000 # Shamelessly stolen from Owen Taylor and Manish Singh # thomasvs added check for vorbis_bitrate_addblock which is new in rc3 dnl XIPH_PATH_VORBIS([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) dnl Test for libvorbis, and define VORBIS_CFLAGS and VORBIS_LIBS dnl AC_DEFUN([XIPH_PATH_VORBIS], [dnl dnl Get the cflags and libraries dnl AC_ARG_WITH(vorbis,AC_HELP_STRING([--with-vorbis=PFX],[Prefix where libvorbis is installed (optional)]), vorbis_prefix="$withval", vorbis_prefix="") AC_ARG_WITH(vorbis-libraries,AC_HELP_STRING([--with-vorbis-libraries=DIR],[Directory where libvorbis library is installed (optional)]), vorbis_libraries="$withval", vorbis_libraries="") AC_ARG_WITH(vorbis-includes,AC_HELP_STRING([--with-vorbis-includes=DIR],[Directory where libvorbis header files are installed (optional)]), vorbis_includes="$withval", vorbis_includes="") AC_ARG_ENABLE(vorbistest,AC_HELP_STRING([--disable-vorbistest],[Do not try to compile and run a test Vorbis program]),, enable_vorbistest=yes) if test "x$vorbis_libraries" != "x" ; then VORBIS_LIBS="-L$vorbis_libraries" elif test "x$vorbis_prefix" = "xno" || test "x$vorbis_prefix" = "xyes" ; then VORBIS_LIBS="" elif test "x$vorbis_prefix" != "x" ; then VORBIS_LIBS="-L$vorbis_prefix/lib" elif test "x$prefix" != "xNONE"; then VORBIS_LIBS="-L$prefix/lib" fi if test "x$vorbis_prefix" != "xno" ; then VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm" fi VORBISFILE_LIBS="-lvorbisfile" VORBISENC_LIBS="-lvorbisenc" if test "x$vorbis_includes" != "x" ; then VORBIS_CFLAGS="-I$vorbis_includes" elif test "x$vorbis_prefix" = "xno" || test "x$vorbis_prefix" = "xyes" ; then VORBIS_CFLAGS="" elif test "x$vorbis_prefix" != "x" ; then VORBIS_CFLAGS="-I$vorbis_prefix/include" elif test "x$prefix" != "xNONE"; then VORBIS_CFLAGS="-I$prefix/include" fi AC_MSG_CHECKING(for Vorbis) if test "x$vorbis_prefix" = "xno" ; then no_vorbis="disabled" enable_vorbistest="no" else no_vorbis="" fi if test "x$enable_vorbistest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS" LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS" dnl dnl Now check if the installed Vorbis is sufficiently new. dnl rm -f conf.vorbistest AC_TRY_RUN([ #include #include #include #include #include int main () { vorbis_block vb; vorbis_dsp_state vd; vorbis_info vi; vorbis_info_init (&vi); vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1); vorbis_analysis_init (&vd, &vi); vorbis_block_init (&vd, &vb); /* this function was added in 1.0rc3, so this is what we're testing for */ vorbis_bitrate_addblock (&vb); system("touch conf.vorbistest"); return 0; } ],, no_vorbis=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi if test "x$no_vorbis" = "xdisabled" ; then AC_MSG_RESULT(no) ifelse([$2], , :, [$2]) elif test "x$no_vorbis" = "x" ; then AC_MSG_RESULT(yes) ifelse([$1], , :, [$1]) else AC_MSG_RESULT(no) if test -f conf.vorbistest ; then : else echo "*** Could not run Vorbis test program, checking why..." CFLAGS="$CFLAGS $VORBIS_CFLAGS" LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS" AC_TRY_LINK([ #include #include ], [ return 0; ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding Vorbis or finding the wrong" echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means Vorbis was incorrectly installed" echo "*** or that you have moved Vorbis since it was installed." ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi VORBIS_CFLAGS="" VORBIS_LIBS="" VORBISFILE_LIBS="" VORBISENC_LIBS="" ifelse([$2], , :, [$2]) fi AC_SUBST(VORBIS_CFLAGS) AC_SUBST(VORBIS_LIBS) AC_SUBST(VORBISFILE_LIBS) AC_SUBST(VORBISENC_LIBS) rm -f conf.vorbistest ]) # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.11.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # Figure out how to run the assembler. -*- Autoconf -*- # Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_PROG_AS # ---------- AC_DEFUN([AM_PROG_AS], [# By default we simply use the C compiler to build assembly code. AC_REQUIRE([AC_PROG_CC]) test "${CCAS+set}" = set || CCAS=$CC test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl ]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 10 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([m4/avcodec.m4]) m4_include([m4/avformat.m4]) m4_include([m4/check_funcs.m4]) m4_include([m4/gettext.m4]) m4_include([m4/iconv.m4]) m4_include([m4/lib-ld.m4]) m4_include([m4/lib-link.m4]) m4_include([m4/lib-prefix.m4]) m4_include([m4/lqt_opt_cflags.m4]) m4_include([m4/nls.m4]) m4_include([m4/po.m4]) m4_include([m4/progtest.m4]) m4_include([acinclude.m4]) gmerlin-avdecoder-1.2.0~dfsg/ltmain.sh0000755000000000000000000073341511764363512016511 0ustar rootroot# Generated from ltmain.m4sh. # ltmain.sh (GNU libtool) 2.2.6b # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, # or obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --mode=MODE use operation mode MODE # --preserve-dup-deps don't remove duplicate dependency libraries # --quiet, --silent don't print informational messages # --tag=TAG use configuration variables from tag TAG # -v, --verbose print informational messages (default) # --version print version information # -h, --help print short or long help message # # MODE must be one of the following: # # clean remove files from the build directory # compile compile a source file into a libtool object # execute automatically set library path, then run a program # finish complete the installation of libtool libraries # install install libraries or executables # link create a library or an executable # uninstall remove libraries from an installed directory # # MODE-ARGS vary depending on the MODE. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # # host-triplet: $host # shell: $SHELL # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) # $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1 # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to . PROGRAM=ltmain.sh PACKAGE=libtool VERSION="2.2.6b Debian-2.2.6b-2ubuntu1" TIMESTAMP="" package_revision=1.3017 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # NLS nuisances: We save the old values to restore during execute mode. # Only set LANG and LC_ALL to C if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done $lt_unset CDPATH : ${CP="cp -f"} : ${ECHO="echo"} : ${EGREP="/bin/grep -E"} : ${FGREP="/bin/grep -F"} : ${GREP="/bin/grep"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SED="/bin/sed"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } # Generated shell functions inserted here. # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: # In the unlikely event $progname began with a '-', it would play havoc with # func_echo (imagine progname=-n), so we prepend ./ in that case: func_dirname_and_basename "$progpath" progname=$func_basename_result case $progname in -*) progname=./$progname ;; esac # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=: for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname${mode+: }$mode: $*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_error arg... # Echo program name prefixed message to standard error. func_error () { $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` done my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "X$my_tmpdir" | $Xsed } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "X$1" | $Xsed \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_version # Echo version message to standard output and exit. func_version () { $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $SED -n '/^# Usage:/,/# -h/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" $ECHO $ECHO "run \`$progname --help | more' for full usage" exit $? } # func_help # Echo long help message to standard output and exit. func_help () { $SED -n '/^# Usage:/,/# Report bugs to/ { s/^# // s/^# *$// s*\$progname*'$progname'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ p }' < "$progpath" exit $? } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { func_error "missing argument for $1" exit_cmd=exit } exit_cmd=: # Check that we have a working $ECHO. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then # Yippee, $ECHO works! : else # Restart under the correct shell, and then maybe $ECHO will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # Parse options once, thoroughly. This comes as soon as possible in # the script to make things like `libtool --version' happen quickly. { # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Parse non-mode specific arguments: while test "$#" -gt 0; do opt="$1" shift case $opt in --config) func_config ;; --debug) preserve_args="$preserve_args $opt" func_echo "enabling shell trace mode" opt_debug='set -x' $opt_debug ;; -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break execute_dlfiles="$execute_dlfiles $1" shift ;; --dry-run | -n) opt_dry_run=: ;; --features) func_features ;; --finish) mode="finish" ;; --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break case $1 in # Valid mode arguments: clean) ;; compile) ;; execute) ;; finish) ;; install) ;; link) ;; relink) ;; uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $opt" exit_cmd=exit break ;; esac mode="$1" shift ;; --preserve-dup-deps) opt_duplicate_deps=: ;; --quiet|--silent) preserve_args="$preserve_args $opt" opt_silent=: ;; --verbose| -v) preserve_args="$preserve_args $opt" opt_silent=false ;; --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break preserve_args="$preserve_args $opt $1" func_enable_tag "$1" # tagname is set here shift ;; # Separate optargs to long options: -dlopen=*|--mode=*|--tag=*) func_opt_split "$opt" set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} shift ;; -\?|-h) func_usage ;; --help) opt_help=: ;; --version) func_version ;; -*) func_fatal_help "unrecognized option \`$opt'" ;; *) nonopt="$opt" break ;; esac done case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_duplicate_deps ;; esac # Having warned about all mis-specified options, bail out if # anything was wrong. $exit_cmd $EXIT_FAILURE } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } ## ----------- ## ## Main. ## ## ----------- ## $opt_help || { # Sanity checks first: func_check_version_match if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then func_fatal_configuration "not configured to build any kind of library" fi test -z "$mode" && func_fatal_error "error: you must specify a MODE." # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then func_error "unrecognized option \`-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$progname --help --mode=$mode' for more information." } # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_ltwrapper_scriptname_result="" if func_ltwrapper_executable_p "$1"; then func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" fi } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_quote_for_eval "$arg" CC_quoted="$CC_quoted $func_quote_for_eval_result" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_quote_for_eval "$arg" CC_quoted="$CC_quoted $func_quote_for_eval_result" done case "$@ " in " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=${1} if test "$build_libtool_libs" = yes; then write_lobj=\'${2}\' else write_lobj=none fi if test "$build_old_libs" = yes; then write_oldobj=\'${3}\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T <?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi removelist="$removelist $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist removelist="$removelist $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir command="$command -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then command="$command -o $obj" fi # Suppress compiler output if we already did a PIC compilation. command="$command$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$mode'" ;; esac $ECHO $ECHO "Try \`$progname --help' for more information about other modes." exit $? } # Now that we've collected a possible --mode arg, show help if necessary $opt_help && func_mode_help # func_mode_execute arg... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $execute_dlfiles; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_quote_for_eval "$file" args="$args $func_quote_for_eval_result" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" $ECHO "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS $ECHO "X----------------------------------------------------------------------" | $Xsed $ECHO "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done $ECHO $ECHO "If you ever happen to want to link against installed libraries" $ECHO "in a given directory, LIBDIR, you must either use libtool, and" $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" $ECHO "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" $ECHO " during execution" fi if test -n "$runpath_var"; then $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" $ECHO " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $ECHO $ECHO "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" $ECHO "pages." ;; *) $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac $ECHO "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS } test "$mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $ECHO "X$nonopt" | $GREP shtool >/dev/null; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" install_prog="$install_prog$func_quote_for_eval_result" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" install_prog="$install_prog $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for progfile in $progfiles; do func_verbose "extracting global C symbols from \`$progfile'" $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" } done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" fi $ECHO >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; " case $host in *cygwin* | *mingw* | *cegcc* ) $ECHO >> "$output_objdir/$my_dlsyms" "\ /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */" lt_dlsym_const= ;; *osf5*) echo >> "$output_objdir/$my_dlsyms" "\ /* This system does not cope well with relocations in const data */" lt_dlsym_const= ;; *) lt_dlsym_const=const ;; esac $ECHO >> "$output_objdir/$my_dlsyms" "\ extern $lt_dlsym_const lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; $lt_dlsym_const lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac $ECHO >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) symtab_cflags="$symtab_cflags $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | $SED -n -e ' 1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_extract_an_archive dir oldlib func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # func_emit_wrapper_part1 [arg=no] # # Emit the first part of a libtool wrapper script on stdout. # For more information, see the description associated with # func_emit_wrapper(), below. func_emit_wrapper_part1 () { func_emit_wrapper_part1_arg1=no if test -n "$1" ; then func_emit_wrapper_part1_arg1=$1 fi $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then ECHO=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then # Yippee, \$ECHO works! : else # Restart under the correct shell, and then maybe \$ECHO will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $ECHO "\ # Find the directory that this script lives in. thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done " } # end: func_emit_wrapper_part1 # func_emit_wrapper_part2 [arg=no] # # Emit the second part of a libtool wrapper script on stdout. # For more information, see the description associated with # func_emit_wrapper(), below. func_emit_wrapper_part2 () { func_emit_wrapper_part2_arg1=no if test -n "$1" ; then func_emit_wrapper_part2_arg1=$1 fi $ECHO "\ # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # end: func_emit_wrapper_part2 # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=no if test -n "$1" ; then func_emit_wrapper_arg1=$1 fi # split this up so that func_emit_cwrapperexe_src # can call each part independently. func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" } # func_to_host_path arg # # Convert paths to host format when used with build tools. # Intended for use with "native" mingw (where libtool itself # is running under the msys shell), or in the following cross- # build environments: # $build $host # mingw (msys) mingw [e.g. native] # cygwin mingw # *nix + wine mingw # where wine is equipped with the `winepath' executable. # In the native mingw case, the (msys) shell automatically # converts paths for any non-msys applications it launches, # but that facility isn't available from inside the cwrapper. # Similar accommodations are necessary for $host mingw and # $build cygwin. Calling this function does no harm for other # $host/$build combinations not listed above. # # ARG is the path (on $build) that should be converted to # the proper representation for $host. The result is stored # in $func_to_host_path_result. func_to_host_path () { func_to_host_path_result="$1" if test -n "$1" ; then case $host in *mingw* ) lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' case $build in *mingw* ) # actually, msys # awkward: cmd appends spaces to result lt_sed_strip_trailing_spaces="s/[ ]*\$//" func_to_host_path_tmp1=`( cmd //c echo "$1" |\ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` ;; *cygwin* ) func_to_host_path_tmp1=`cygpath -w "$1"` func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` ;; * ) # Unfortunately, winepath does not exit with a non-zero # error code, so we are forced to check the contents of # stdout. On the other hand, if the command is not # found, the shell will set an exit code of 127 and print # *an error message* to stdout. So we must check for both # error code of zero AND non-empty stdout, which explains # the odd construction: func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` else # Allow warning below. func_to_host_path_result="" fi ;; esac if test -z "$func_to_host_path_result" ; then func_error "Could not determine host path corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_path_result="$1" fi ;; esac fi } # end: func_to_host_path # func_to_host_pathlist arg # # Convert pathlists to host format when used with build tools. # See func_to_host_path(), above. This function supports the # following $build/$host combinations (but does no harm for # combinations not listed here): # $build $host # mingw (msys) mingw [e.g. native] # cygwin mingw # *nix + wine mingw # # Path separators are also converted from $build format to # $host format. If ARG begins or ends with a path separator # character, it is preserved (but converted to $host format) # on output. # # ARG is a pathlist (on $build) that should be converted to # the proper representation on $host. The result is stored # in $func_to_host_pathlist_result. func_to_host_pathlist () { func_to_host_pathlist_result="$1" if test -n "$1" ; then case $host in *mingw* ) lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_to_host_pathlist_tmp2="$1" # Once set for this call, this variable should not be # reassigned. It is used in tha fallback case. func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e 's|^:*||' -e 's|:*$||'` case $build in *mingw* ) # Actually, msys. # Awkward: cmd appends spaces to result. lt_sed_strip_trailing_spaces="s/[ ]*\$//" func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e "$lt_sed_naive_backslashify"` ;; *cygwin* ) func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e "$lt_sed_naive_backslashify"` ;; * ) # unfortunately, winepath doesn't convert pathlists func_to_host_pathlist_result="" func_to_host_pathlist_oldIFS=$IFS IFS=: for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do IFS=$func_to_host_pathlist_oldIFS if test -n "$func_to_host_pathlist_f" ; then func_to_host_path "$func_to_host_pathlist_f" if test -n "$func_to_host_path_result" ; then if test -z "$func_to_host_pathlist_result" ; then func_to_host_pathlist_result="$func_to_host_path_result" else func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" fi fi fi IFS=: done IFS=$func_to_host_pathlist_oldIFS ;; esac if test -z "$func_to_host_pathlist_result" ; then func_error "Could not determine the host path(s) corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This may break if $1 contains DOS-style drive # specifications. The fix is not to complicate the expression # below, but for the user to provide a working wine installation # with winepath so that path translation in the cross-to-mingw # case works properly. lt_replace_pathsep_nix_to_dos="s|:|;|g" func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ $SED -e "$lt_replace_pathsep_nix_to_dos"` fi # Now, add the leading and trailing path separators back case "$1" in :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" ;; esac case "$1" in *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" ;; esac ;; esac fi } # end: func_to_host_pathlist # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include # define setmode _setmode #else # include # include # ifdef __CYGWIN__ # include # define HAVE_SETENV # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif # endif #endif #include #include #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif #ifdef _MSC_VER # define S_IXUSR _S_IEXEC # define stat _stat # ifndef _INTPTR_T_DEFINED # define intptr_t int # endif #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifdef __CYGWIN__ # define FOPEN_WB "wb" #endif #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #undef LTWRAPPER_DEBUGPRINTF #if defined DEBUGWRAPPER # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args static void ltwrapper_debugprintf (const char *fmt, ...) { va_list args; va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } #else # define LTWRAPPER_DEBUGPRINTF(args) #endif const char *program_name = NULL; void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_fatal (const char *message, ...); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_opt_process_env_set (const char *arg); void lt_opt_process_env_prepend (const char *arg); void lt_opt_process_env_append (const char *arg); int lt_split_name_value (const char *arg, char** name, char** value); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); static const char *script_text_part1 = EOF func_emit_wrapper_part1 yes | $SED -e 's/\([\\"]\)/\\\1/g' \ -e 's/^/ "/' -e 's/$/\\n"/' echo ";" cat <"))); for (i = 0; i < newargc; i++) { LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : ""))); } EOF case $host_os in mingw*) cat <<"EOF" /* execv doesn't actually work on mingw as expected on unix */ rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); if (rval == -1) { /* failed to start process */ LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); return 127; } return rval; EOF ;; *) cat <<"EOF" execv (lt_argv_zero, newargz); return rval; /* =127, but avoids unused variable warning */ EOF ;; esac cat <<"EOF" } void * xmalloc (size_t num) { void *p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char) name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable (const char *path) { struct stat st; LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!")); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!")); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", tmp_pathspec)); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { char *errstr = strerror (errno); lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal ("Could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } void lt_setenv (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", (name ? name : ""), (value ? value : ""))); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else int len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { int orig_value_len = strlen (orig_value); int add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } int lt_split_name_value (const char *arg, char** name, char** value) { const char *p; int len; if (!arg || !*arg) return 1; p = strchr (arg, (int)'='); if (!p) return 1; *value = xstrdup (++p); len = strlen (arg) - strlen (*value); *name = XMALLOC (char, len); strncpy (*name, arg, len-1); (*name)[len - 1] = '\0'; return 0; } void lt_opt_process_env_set (const char *arg) { char *name = NULL; char *value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); } lt_setenv (name, value); XFREE (name); XFREE (value); } void lt_opt_process_env_prepend (const char *arg) { char *name = NULL; char *value = NULL; char *new_value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); } new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); XFREE (name); XFREE (value); } void lt_opt_process_env_append (const char *arg) { char *name = NULL; char *value = NULL; char *new_value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); } new_value = lt_extend_str (getenv (name), value, 1); lt_setenv (name, new_value); XFREE (new_value); XFREE (name); XFREE (value); } void lt_update_exe_path (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", (name ? name : ""), (value ? value : ""))); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ int len = strlen (new_value); while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[len-1] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", (name ? name : ""), (value ? value : ""))); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF } # end: func_emit_cwrapperexe_src # func_mode_link arg... func_mode_link () { $opt_debug case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) deplibs="$deplibs $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) weak_libs="$weak_libs $arg" prev= continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname '-L' '' "$arg" dir=$func_stripname_result if test -z "$dir"; then if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option" fi fi # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot) compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" arg="$arg $wl$func_quote_for_eval_result" compiler_flags="$compiler_flags $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" arg="$arg $wl$func_quote_for_eval_result" compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" linker_flags="$linker_flags $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -F/path gives path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" compiler_flags="$compiler_flags $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_duplicate_deps ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= case $lib in *.la) func_source "$lib" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` case " $weak_libs " in *" $deplib_base "*) ;; *) deplibs="$deplibs $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" dir=$func_stripname_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $ECHO $ECHO "*** Warning: Trying to link with static lib archive $deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because the file extensions .$libext of this argument makes me believe" $ECHO "*** that it is just a static archive that I should not use here." else $ECHO $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) temp_rpath="$temp_rpath$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded notinst_deplibs="$notinst_deplibs $lib" need_relink=no ;; *) if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then $ECHO if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $ECHO $ECHO "*** And there doesn't seem to be a static archive available" $ECHO "*** The link will probably fail, sorry" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $ECHO $ECHO "*** Warning: This system can not link to static lib archive $lib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $ECHO "*** But as you try to build a module library, libtool will still create " $ECHO "*** a static module, that should work as long as the dlopening application" $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $ECHO $ECHO "*** However, this would only work if libtool was able to extract symbol" $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" $ECHO "*** not find such a program. So, this module is probably useless." $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path="$deplib" ;; *.la) func_dirname "$deplib" "" "." dir="$func_dirname_result" # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else $ECHO $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; *) func_fatal_configuration "$modename: unknown library version type \`$version_type'" ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" libobjs="$libobjs $symfileobj" test "X$libobjs" = "X " && libobjs= if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $ECHO $ECHO "*** Warning: linker path does not have real file for library $a_deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $ECHO $ECHO "*** Warning: linker path does not have real file for library $a_deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` done fi if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | $GREP . >/dev/null; then $ECHO if test "X$deplibs_check_method" = "Xnone"; then $ECHO "*** Warning: inter-library dependencies are not supported in this platform." else $ECHO "*** Warning: inter-library dependencies are not known to be supported." fi $ECHO "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $ECHO $ECHO "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" $ECHO "*** a static module, that should work as long as the dlopening" $ECHO "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $ECHO $ECHO "*** However, this would only work if libtool was able to extract symbol" $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" $ECHO "*** not find such a program. So, this module is probably useless." $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $ECHO "*** The inter-library dependencies that have been dropped here will be" $ECHO "*** automatically added whenever a program is linked with this library" $ECHO "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $ECHO $ECHO "*** Since this library must not contain undefined symbols," $ECHO "*** because either the platform does not support them or" $ECHO "*** it was explicitly requested with -no-undefined," $ECHO "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" delfiles="$delfiles $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" func_len " $cmd" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then func_show_eval "$cmd" 'exit $?' skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$ECHO "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" $ECHO 'INPUT (' > $output for obj in $save_libobjs do $ECHO "$obj" >> $output done $ECHO ')' >> $output delfiles="$delfiles $output" elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do $ECHO "$obj" >> $output done delfiles="$delfiles $output" output=$firstobj\"$file_list_spec$output\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext objlist=$obj func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi delfiles="$delfiles $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $dlprefiles libobjs="$libobjs $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=yes case $host in *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; *cegcc) # Disable wrappers for cegcc, we are cross compiling anyway. wrappers_required=no ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi # Quote $ECHO for shipping. if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then oldobjs="$oldobjs $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $dlprefiles oldobjs="$oldobjs $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else $ECHO "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" newdlfiles="$newdlfiles $libdir/$name" ;; *) newdlfiles="$newdlfiles $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" newdlprefiles="$newdlprefiles $libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$mode" = link || test "$mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) RM="$RM $arg"; rmforce=yes ;; -*) RM="$RM $arg" ;; *) files="$files $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= origobjdir="$objdir" for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then objdir="$origobjdir" else objdir="$dir/$origobjdir" fi func_basename "$file" name="$func_basename_result" test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result rmfiles="$rmfiles $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$mode" = uninstall || test "$mode" = clean; } && func_mode_uninstall ${1+"$@"} test -z "$mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode \`$mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 gmerlin-avdecoder-1.2.0~dfsg/config.rpath0000755000000000000000000003744411764363506017200 0ustar rootroot#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2006 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit , 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld # should be set by the caller. # # The set of defined variables is at the end of this script. # Known limitations: # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer # than 256 bytes, otherwise the compiler driver will dump core. The only # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a shrext=.so host="$1" host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` # Code taken from libtool.m4's _LT_CC_BASENAME. for cc_temp in $CC""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` # Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. wl= if test "$GCC" = yes; then wl='-Wl,' else case "$host_os" in aix*) wl='-Wl,' ;; darwin*) case $cc_basename in xlc*) wl='-Wl,' ;; esac ;; mingw* | pw32* | os2*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; newsos6) ;; linux*) case $cc_basename in icc* | ecc*) wl='-Wl,' ;; pgcc | pgf77 | pgf90) wl='-Wl,' ;; ccc*) wl='-Wl,' ;; como) wl='-lopt=' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) wl='-Wl,' ;; esac ;; esac ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; sco3.2v5*) ;; solaris*) wl='-Wl,' ;; sunos4*) wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) wl='-Wl,' ;; sysv4*MP*) ;; unicos*) wl='-Wl,' ;; uts4*) ;; esac fi # Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no case "$host_os" in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. # Unlike libtool, we use -rpath here, not --rpath, since the documented # option of GNU ld is called -rpath, not --rpath. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' case "$host_os" in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we cannot use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; cygwin* | mingw* | pw32*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then : else ld_shlibs=no fi ;; interix3*) hardcode_direct=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; netbsd*) ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' else ld_shlibs=no fi ;; esac ;; sunos4*) hardcode_direct=yes ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then hardcode_libdir_flag_spec= fi else case "$host_os" in aix3*) # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac fi hardcode_direct=yes hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct=yes else # We have old collect2 hardcode_direct=unsupported hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac fi # Begin _LT_AC_SYS_LIBPATH_AIX. echo 'int main () { return 0; }' > conftest.c ${CC} ${LDFLAGS} conftest.c -o conftest aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` fi if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib" fi rm -f conftest.c conftest # End _LT_AC_SYS_LIBPATH_AIX. if test "$aix_use_runtimelinking" = yes; then hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' else hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" fi fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' libext=lib ;; darwin* | rhapsody*) hardcode_direct=no if test "$GCC" = yes ; then : else case $cc_basename in xlc*) ;; *) ld_shlibs=no ;; esac fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; freebsd1*) ld_shlibs=no ;; freebsd2.2*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; freebsd2*) hardcode_direct=yes hardcode_minus_L=yes ;; freebsd* | kfreebsd*-gnu | dragonfly*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; hpux9*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; hpux10*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no ;; *) hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; newsos6) hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; openbsd*) hardcode_direct=yes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then hardcode_libdir_flag_spec='${wl}-rpath,$libdir' else case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) hardcode_libdir_flag_spec='-R$libdir' ;; *) hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; osf3*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) if test "$GCC" = yes; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else # Both cc and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) hardcode_libdir_flag_spec='-R$libdir' ;; sunos4*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes ;; sysv4) case $host_vendor in sni) hardcode_direct=yes # is this really true??? ;; siemens) hardcode_direct=no ;; motorola) hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac ;; sysv4.3*) ;; sysv4*MP*) if test -d /usr/nec; then ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) ;; sysv5* | sco3.2v5* | sco5v6*) hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' ;; uts4*) hardcode_libdir_flag_spec='-L$libdir' ;; *) ld_shlibs=no ;; esac fi # Check dynamic linker characteristics # Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. libname_spec='lib$name' case "$host_os" in aix3*) ;; aix4* | aix5*) ;; amigaos*) ;; beos*) ;; bsdi[45]*) ;; cygwin* | mingw* | pw32*) shrext=.dll ;; darwin* | rhapsody*) shrext=.dylib ;; dgux*) ;; freebsd1*) ;; kfreebsd*-gnu) ;; freebsd* | dragonfly*) ;; gnu*) ;; hpux9* | hpux10* | hpux11*) case $host_cpu in ia64*) shrext=.so ;; hppa*64*) shrext=.sl ;; *) shrext=.sl ;; esac ;; interix3*) ;; irix5* | irix6* | nonstopux*) case "$host_os" in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; *) libsuff= shlibsuff= ;; esac ;; esac ;; linux*oldld* | linux*aout* | linux*coff*) ;; linux*) ;; knetbsd*-gnu) ;; netbsd*) ;; newsos6) ;; nto-qnx*) ;; openbsd*) ;; os2*) libname_spec='$name' shrext=.dll ;; osf3* | osf4* | osf5*) ;; solaris*) ;; sunos4*) ;; sysv4 | sysv4.3*) ;; sysv4*MP*) ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) ;; uts4*) ;; esac sed_quote_subst='s/\(["`$\\]\)/\\\1/g' escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` shlibext=`echo "$shrext" | sed -e 's,^\.,,'` escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' < #include ]) dnl dnl Semaphores dnl GMERLIN_CHECK_SEMAPHORES dnl dnl Gettext dnl AM_GNU_GETTEXT(external) dnl dnl Check for Dependencies package dnl GMERLIN_DEP_DIR=/opt/gmerlin if test -d $GMERLIN_DEP_DIR; then have_opt_gmerlin="true" export PKG_CONFIG_PATH=$GMERLIN_DEP_DIR/lib/pkgconfig:$PKG_CONFIG_PATH GMERLIN_DEP_CFLAGS="-I$GMERLIN_DEP_DIR/include" AC_MSG_CHECKING(for --rpath option) OLD_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -Wl,--rpath -Wl,$GMERLIN_DEP_DIR/lib" AC_TRY_LINK([],[], [GMERLIN_DEP_RPATH="-Wl,--rpath -Wl,$GMERLIN_DEP_DIR/lib"; AC_MSG_RESULT(Supported)], [GMERLIN_DEP_RPATH="";AC_MSG_RESULT(Unsupported)]) LDFLAGS=$OLD_LDFLAGS GMERLIN_DEP_LIBS="-L$GMERLIN_DEP_DIR/lib" else have_opt_gmerlin="false" GMERLIN_DEP_CFLAGS="" GMERLIN_DEP_LDPATH="" GMERLIN_DEP_LIBS="" fi AC_SUBST(GMERLIN_DEP_LIBS) LDFLAGS="$GMERLIN_DEP_RPATH" dnl Check for mingw case "$host" in *-*-mingw*|*cygwin*) os_win32=yes AC_MSG_WARN([host is $host]) ;; *) os_win32=no ;; esac AM_CONDITIONAL(OS_WIN32, [test "$os_win32" = "yes"]) if test "$os_win32" = "yes"; then dnl LIBS="-lws2_32 -lwsnmp32 -lwsock32 -lwst -lwinstrm -lnetapi32 -lws2_32 -lwsock32 -lwinmm -lwinstrm -lpthreadGC2 -lltdl -lregex -lz -lkernel32 -luser32 -lgdi32 $LIBS" LIBS=" -lpthreadGC2 -lregex -lz -lws2_32 -lintl $LIBS" dnl it appears that -no-undefined is necessary in mingw in order to build dll dnl maybe we should check here if the user only wants static libs LDFLAGS="-no-undefined -mwindows -mms-bitfields $LDFLAGS" AC_CHECK_LIB(pthreadGC2, pthread_mutex_lock, , AC_MSG_ERROR([libpthread not found get it from ftp://sourceware.org/pub/pthreads-win32/])) else AC_CHECK_LIB(pthread, pthread_mutex_lock, , AC_MSG_ERROR([libpthread not found but you are not using windows. You should really have this.])) fi dnl dnl Doxygen dnl test_doxygen="true" have_doxygen="false" AC_ARG_WITH(doxygen, AC_HELP_STRING([--without-doxygen], [disable documentation generation]), test_doxygen="false") if test "x$test_doxygen" = "xtrue"; then AC_CHECK_PROG(DOXYGEN, doxygen, "doxygen") if test -z "$DOXYGEN"; then AC_MSG_ERROR([Doxygen not found, use --without-doxygen to disable documentation generation]) else have_doxygen="true" fi fi AM_CONDITIONAL(HAVE_DOXYGEN, test "x$have_doxygen" = "xtrue") dnl dnl Check for Libraries dnl GAVL_REQUIRED="1.4.0" PKG_CHECK_MODULES(GAVL, gavl >= $GAVL_REQUIRED, , AC_MSG_ERROR("gavl not found")) AC_SUBST(GAVL_REQUIRED) ICONV_LIBS= AC_CHECK_LIB(iconv, libiconv_close, ICONV_LIBS="-liconv") AC_SUBST(ICONV_LIBS) if test "x$os_win32" = "xyes"; then AC_CHECK_LIB(regex, regcomp, , AC_MSG_ERROR([libregex not found.])) AC_CHECK_LIB(gettextlib, rpl_open, , AC_MSG_ERROR([libgettextlib not found get it from http://www.gnu.org/software/gettext/])) AC_CHECK_LIB(intl, libintl_sprintf, , AC_MSG_ERROR([libintl not found get it from http://www.gnu.org/software/gettext/])) fi AC_CHECK_HEADER(dlfcn.h, , AC_MSG_ERROR([dlfcn.h not found])) AC_CHECK_LIB(z, uncompress, , AC_MSG_ERROR([libz not found get it from http://zlib.net])) dnl dnl Library functions dnl AC_CHECK_FUNCS([poll getaddrinfo inet_aton closesocket]) dnl dnl Optional Libraries dnl dnl dnl gmerlin dnl have_gmerlin="false" GMERLIN_REQUIRED="1.0.0" AC_ARG_ENABLE(gmerlin, [AC_HELP_STRING([--disable-gmerlin],[Disable gmerlin plugins (default: autodetect)])], [case "${enableval}" in yes) test_gmerlin=true ;; no) test_gmerlin=false ;; esac],[test_gmerlin=true]) if test x$test_gmerlin = xtrue; then PKG_CHECK_MODULES(GMERLIN, gmerlin >= $GMERLIN_REQUIRED, have_gmerlin="true", have_gmerlin="false") gmerlin_plugindir='$(libdir)/gmerlin/plugins' dnl LDFLAGS for plugins GMERLIN_PLUGIN_LDFLAGS="-export-symbols "`pkg-config --variable=prefix gmerlin`"/share/gmerlin/plugin.sym" fi AC_SUBST(gmerlin_plugindir) AC_SUBST(GMERLIN_REQUIRED) AC_SUBST(GMERLIN_PLUGIN_LDFLAGS) AM_CONDITIONAL(HAVE_GMERLIN, test x$have_gmerlin = xtrue) dnl dnl libswscale dnl Must come *before* GMERLIN_CHECK_AVCODEC, because the avcodec dnl check succeeds only if either img_convert or libswscale is present dnl GMERLIN_CHECK_LIBSWSCALE dnl dnl AVCodec dnl GMERLIN_CHECK_AVCODEC dnl dnl libpostproc dnl GMERLIN_CHECK_LIBPOSTPROC dnl dnl AVFormat dnl GMERLIN_CHECK_AVFORMAT dnl dnl X11 (need to check before vdpau) dnl have_x="false" X_CFLAGS="" X_LIBS="" AC_PATH_X if test x$no_x != xyes; then if test "x$x_includes" != "x"; then X_CFLAGS="-I$x_includes" elif test -d /usr/X11R6/include; then X_CFLAGS="-I/usr/X11R6/include" else X_CFLAGS="" fi if test "x$x_libraries" != "x"; then X_LIBS="-L$x_libraries -lX11" else X_LIBS="-lX11" fi have_x="true" else PKG_CHECK_MODULES(X, x11 >= 1.0.0, have_x=true, have_x=false) fi if test x$have_x = xtrue; then X_LIBS="$X_LIBS -lXext" fi dnl dnl VDPAU dnl GMERLIN_CHECK_VDPAU dnl dnl Check for theora dnl GMERLIN_CHECK_THEORADEC dnl dnl Check for schroedinger dnl GMERLIN_CHECK_SCHROEDINGER dnl dnl Check for speex dnl GMERLIN_CHECK_SPEEX dnl dnl Check for mjpegtools dnl GMERLIN_CHECK_MJPEGTOOLS dnl dnl Ogg dnl GMERLIN_CHECK_OGG dnl dnl Vorbis dnl GMERLIN_CHECK_VORBIS dnl dnl libmpeg2 dnl GMERLIN_CHECK_LIBMPEG2 dnl dnl libtiff dnl GMERLIN_CHECK_LIBTIFF dnl dnl openjpeg dnl GMERLIN_CHECK_OPENJPEG dnl dnl libsmbclient dnl GMERLIN_CHECK_SAMBA dnl dnl PNG dnl GMERLIN_CHECK_LIBPNG dnl dnl FAAD2 dnl GMERLIN_CHECK_FAAD2 dnl dnl DVDREAD dnl GMERLIN_CHECK_DVDREAD dnl dnl FLAC dnl GMERLIN_CHECK_FLAC dnl dnl Musepack dnl GMERLIN_CHECK_MUSEPACK dnl dnl MAD dnl GMERLIN_CHECK_MAD dnl dnl liba52 dnl GMERLIN_CHECK_LIBA52 dnl dnl libdca dnl GMERLIN_CHECK_DCA dnl dnl CDrom support dnl GMERLIN_CHECK_CDIO dnl dnl Linux DVB support dnl GMERLIN_CHECK_LINUXDVB dnl dnl Check wether to enable win32 DLLs dnl We compile them, if we have an intel architecture and dnl gcc. Other libs make a more complicated check here. dnl AH_TEMPLATE([HAVE_W32DLL], [ Win32 dll loader enabled ]) AC_ARG_ENABLE(win32, [AC_HELP_STRING([--disable-win32],[Disable win32 DLLs (default: autodetect)])], [case "${enableval}" in yes) test_w32dll=true ;; no) test_w32dll=false ;; esac],[test_w32dll=true]) enable_w32dll="false" if test "x$test_w32dll" = "true"; then if test "x$have_posix_semaphores" = "xtrue"; then if test x"$GCC" = x"yes"; then case "$host_cpu" in i?86 | k?-* | athlon | pentium) enable_w32dll="true" esac fi fi fi if test "x$enable_w32dll" = "xtrue"; then AC_DEFINE([HAVE_W32DLL]) fi AM_CONDITIONAL(HAVE_W32DLL, test x"$enable_w32dll" = "xtrue") W32_NO_OPTIMIZE="" AC_SUBST(W32_NO_OPTIMIZE) dnl dnl For win32 libraries location, needed by libw32dll. dnl AC_ARG_WITH(w32-path,[ --with-w32-path=path Location of WIN32 libraries], w32_path="$withval", w32_path="/usr/lib/win32") AC_SUBST(w32_path) AC_CHECK_HEADERS(sys/mman.h) dnl dnl Real DLLs loader dnl AH_TEMPLATE([HAVE_REALDLL], [ RealPlayer dll loader enabled ]) enable_realdll="false" if test x"$GCC" = x"yes"; then case "$host_cpu" in i?86 | k?-* | athlon | pentium | x86_64) enable_realdll="true" esac fi if test "x$enable_realdll" = "xtrue"; then AC_DEFINE([HAVE_REALDLL]) REALDLL_LIBS="-ldl" else REALDLL_LIBS="" fi AM_CONDITIONAL(HAVE_REALDLL, test x"$enable_realdll" = "xtrue") AC_SUBST(REALDLL_LIBS) dnl dnl Xanim DLLs loader dnl AH_TEMPLATE([HAVE_XADLL], [ Xanim dll loader enabled ]) enable_xadll="false" if test x"$GCC" = x"yes"; then case "$host_cpu" in i?86 | k?-* | athlon | pentium) enable_xadll="true" esac fi if test "x$enable_xadll" = "xtrue"; then AC_DEFINE([HAVE_XADLL]) XADLL_LIBS="-ldl" else XADLL_LIBS="" fi AC_SUBST(XADLL_LIBS) AM_CONDITIONAL(HAVE_XADLL, test x"$enable_xadll" = "xtrue") dnl dnl Option for disabling libgsm dnl AH_TEMPLATE([HAVE_LIBGSM], [ libgsm enabled ]) have_libgsm="true" AC_ARG_WITH(GSM610, AC_HELP_STRING([--without-GSM610], [disable libgsm]), have_libgsm="false", have_libgsm="true") if test "x$have_libgsm" = "xtrue"; then AC_DEFINE([HAVE_LIBGSM]) fi AM_CONDITIONAL(HAVE_LIBGSM, test "x$have_libgsm" = "xtrue") dnl dnl Build optimization flags dnl LQT_OPT_CFLAGS($host_cpu, ["-O3 -funroll-all-loops -ffast-math"]) AC_SUBST(OPT_CFLAGS) dnl dnl Common CFLAGS dnl LIBBGAV_CFLAGS="" CFLAGS="$CFLAGS -D_REENTRANT -D_FILE_OFFSET_BITS=64 $GAVL_CFLAGS" LQT_TRY_CFLAGS(-Wall, CFLAGS="$CFLAGS -Wall", ) LQT_TRY_CFLAGS(-Wmissing-declarations, CFLAGS="$CFLAGS -Wmissing-declarations", ) LQT_TRY_CFLAGS(-Wdeclaration-after-statement, CFLAGS="$CFLAGS -Wdeclaration-after-statement") LQT_TRY_CFLAGS(-fvisibility=hidden, LIBBGAV_CFLAGS="$LIBBGAV_CFLAGS -fvisibility=hidden", ) dnl The following is necessary so the win32 dll loader also gets compiled dnl with -g if test x$LQT_DEBUG = xtrue; then CFLAGS="-g $CFLAGS" fi LIBBGAV_CFLAGS="-D__BGAV__ $LIBBGAV_CFLAGS" AC_SUBST(LIBBGAV_CFLAGS) dnl dnl Common libs dnl LIBS="$LIBS $GAVL_LIBS" if test "x$LQT_PROFILE" = "xtrue"; then LIBS="$LIBS $GAVL_LIBS -pg" fi dnl Absolute src path for doxygen TOP_SRCDIR=`cd ${srcdir} && pwd` AC_SUBST(TOP_SRCDIR) dnl dnl Output dnl AC_CONFIG_FILES([Makefile doc/Makefile \ doc/Doxyfile \ po/Makefile.in \ utils/Makefile \ gmerlin_avdec.spec \ gmerlin_avdec.pc \ include/Makefile \ include/bgav_version.h \ lib/Makefile \ lib/libw32dll/Makefile \ lib/libw32dll/dmo/Makefile \ lib/libw32dll/qtx/Makefile \ lib/libw32dll/qtx/qtxsdk/Makefile \ lib/libw32dll/wine/Makefile \ lib/libw32dll/DirectShow/Makefile \ lib/GSM610/Makefile \ m4/Makefile \ plugins/Makefile \ tests/Makefile ]) AC_OUTPUT echo "" echo "=== Libraries: =================================" echo -n "gmerlin: " if test "x$have_gmerlin" = "xtrue"; then echo "Found (CFLAGS=$GMERLIN_CFLAGS LIBS=$GMERLIN_LIBS)" elif test "x$test_gmerlin" = "xfalse"; then echo "Disabled" elif test "x$gmerlin_wrong_prefix" = "xtrue"; then echo "Wrong installation prefix" else echo "Missing (Go to http://gmerlin.sourceforge.net)" fi echo -n "libavcodec (ffmpeg): " if test "x$have_avcodec" = "xtrue"; then echo "Found (CFLAGS=$AVCODEC_CFLAGS LIBS=$AVCODEC_LIBS)" elif test "x$test_avcodec" = "xfalse"; then echo "Disabled" elif test "x$avcodec_swscale_missing" = "xtrue"; then echo "Needs libswscale (Go to http://www.ffmpeg.org/)" else echo "Missing (Go to http://www.ffmpeg.org/)" fi echo -n "libpostproc (ffmpeg): " if test "x$have_libpostproc" = "xtrue"; then echo "Found (CFLAGS=$LIBPOSTPROC_CFLAGS LIBS=$LIBPOSTPROC_LIBS)" elif test "x$test_libpostproc" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.ffmpeg.org/)" fi echo -n "libswscale (ffmpeg): " if test "x$have_libswscale" = "xtrue"; then echo "Found (CFLAGS=$LIBSWSCALE_CFLAGS LIBS=$LIBSWSCALE_LIBS)" elif test "x$test_libswscale" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.ffmpeg.org/)" fi echo -n "libavformat (ffmpeg): " if test "x$have_avformat" = "xtrue"; then echo "Found (CFLAGS=$AVFORMAT_CFLAGS LIBS=$AVFORMAT_LIBS)" elif test "x$test_avformat" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.ffmpeg.org/)" fi echo -n "vdpau: " if test "x$have_vdpau" = "xtrue"; then echo "Found (CFLAGS=$VDPAU_CFLAGS LIBS=$VDPAU_LIBS)" elif test "x$test_vdpau" = "xfalse"; then echo "Disabled" else echo "Missing (Comes with latest NVidia drivers)" fi echo -n "faad2: " if test "x$have_faad2" = "xtrue"; then echo "Found (CFLAGS=$FAAD2_CFLAGS LIBS=$FAAD2_LIBS)" elif test "x$test_faad2" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.audiocoding.com/)" fi echo -n "flac: " if test "x$have_flac" = "xtrue"; then echo "Found (CFLAGS=$FLAC_CFLAGS LIBS=$FLAC_LIBS)" elif test "x$test_flac" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://flac.sourceforge.net/)" fi echo -n "vorbis: " if test "x$have_vorbis" = "xtrue"; then echo "Found (CFLAGS=$VORBIS_CFLAGS LIBS=$VORBIS_LIBS)" elif test "x$test_vorbis" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.vorbis.com/)" fi echo -n "theoradec: " if test "x$have_theoradec" = "xtrue"; then echo "Found (CFLAGS=$THEORADEC_CFLAGS LIBS=$THEORADEC_LIBS)" elif test "x$test_theoradec" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.theora.org/)" fi echo -n "schroedinger: " if test "x$have_schroedinger" = "xtrue"; then echo "Found (CFLAGS=$SCHROEDINGER_CFLAGS LIBS=$SCHROEDINGER_LIBS)" elif test "x$test_schroedinger" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.diracvideo.org/)" fi echo -n "speex: " if test "x$have_speex" = "xtrue"; then echo "Found (CFLAGS=$SPEEX_CFLAGS LIBS=$SPEEX_LIBS)" elif test "x$test_speex" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.speex.org/)" fi echo -n "libpng: " if test "x$have_libpng" = "xtrue"; then echo "Found (CFLAGS=$PNG_CFLAGS LIBS=$PNG_LIBS)" elif test "x$test_libpng" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.libpng.org/pub/png/libpng.html)" fi echo -n "libtiff: " if test "x$have_libtiff" = "xtrue"; then echo "Found (CFLAGS=$TIFF_CFLAGS LIBS=$TIFF_LIBS)" elif test "x$test_libtiff" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.remotesensing.org/libtiff/)" fi echo -n "libopenjpeg: " if test "x$have_openjpeg" = "xtrue"; then echo "Found (CFLAGS=$OPENJPEG_CFLAGS LIBS=$OPENJPEG_LIBS)" elif test "x$test_openjpeg" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.openjpeg.org)" fi echo -n "libmpeg2 (mpeg2dec) " if test "x$have_libmpeg2" = "xtrue"; then echo "Found (CFLAGS=$LIBMPEG2_CFLAGS LIBS=$LIBMPEG2_LIBS)" elif test "x$test_libmpeg2" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://libmpeg2.sourceforge.net/)" fi echo -n "libmad 0.15.x: " if test "x$have_mad" = "xtrue"; then echo "Found (CFLAGS=$MAD_CFLAGS LIBS=$MAD_LIBS)" elif test "x$test_mad" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://mad.sourceforge.net/)" fi echo -n "liba52 (a52dec): " if test "x$have_liba52" = "xtrue"; then echo "Found (CFLAGS=$LIBA52_CFLAGS LIBS=$LIBA52_LIBS)" elif test "x$test_liba52" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://liba52.sourceforge.net/)" fi echo -n "libdca: " if test "x$have_dca" = "xtrue"; then echo "Found (CFLAGS=$DCA_CFLAGS LIBS=$DCA_LIBS)" elif test "x$test_cda" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.videolan.org/developers/libdca.html)" fi echo -n "libmpcdec: " if test "x$have_musepack" = "xtrue"; then echo "Found (CFLAGS=$MUSEPACK_CFLAGS LIBS=$MUSEPACK_LIBS)" elif test "x$test_musepack" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.musepack.net/)" fi echo -n "libcdio: " if test "x$have_cdio" = "xtrue"; then echo "Found (CFLAGS=$CDIO_CFLAGS LIBS=$CDIO_LIBS)" elif test "x$test_cdio" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.gnu.org/software/libcdio/)" fi echo -n "mjpegtools: " if test "x$have_mjpegtools" = "xtrue"; then echo "Found (CFLAGS=$MJPEGTOOLS_CFLAGS LIBS=$MJPEGTOOLS_LIBS)" elif test "x$test_mjpegtools" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://mjpeg.sourceforge.net/)" fi echo -n "samba: " if test "x$have_libsmbclient" = "xtrue"; then echo "Found (CFLAGS=$SAMBA_CFLAGS LIBS=$SAMBA_LIBS)" elif test "x$test_libsmbclient" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.samba.org)" fi echo -n "libdvdread: " if test "x$have_dvdread" = "xtrue"; then echo "Found (CFLAGS=$DVDREAD_CFLAGS LIBS=$DVDREAD_LIBS)" elif test "x$test_dvdread" = "xfalse"; then echo "Disabled" else echo "Missing (Go to http://www.dtek.chalmers.se/groups/dvd/downloads.shtml)" fi echo "" echo "=== Other features: ============================" echo -n "win32 DLL Support: " if test "x$enable_w32dll" = "xtrue"; then echo "Enabled" elif test "x$test_w32dll" = "xfalse"; then echo "Disabled by user" else echo "Disabled (Unsupported Architecture)" fi echo -n "RealPLayer DLL Support: " if test "x$enable_realdll" = "xtrue"; then echo "Enabled" else echo "Disabled (Unsupported Architecture)" fi echo -n "Xanim DLL Support: " if test "x$enable_xadll" = "xtrue"; then echo "Enabled" else echo "Disabled (Unsupported Architecture)" fi echo -n "Linux DVB Support: " if test "x$have_linuxdvb" = "xtrue"; then echo "Enabled" else echo "Disabled (Unsupported Architecture or kernel headers missing)" fi echo echo "If you installed a library but it was not detected, check the file INSTALL" echo "for troubleshooting tips. Also note that if the configure script reaches" echo "this point, all missing packages are optional so compilation should succeed" echo "anyway." gmerlin-avdecoder-1.2.0~dfsg/po/0000755000000000000000000000000011764363527015275 5ustar rootrootgmerlin-avdecoder-1.2.0~dfsg/po/de.po0000644000000000000000000016516311764363527016241 0ustar rootroot# German translations for gmerlin-avdecoder package. # Copyright (C) 2007 Members of the gmerlin project # This file is distributed under the same license as the gmerlin-avdecoder package. # Burkhard Plaum , 2007. # msgid "" msgstr "" "Project-Id-Version: gmerlin-avdecoder 0.1.6\n" "Report-Msgid-Bugs-To: gmerlin-general@lists.sourceforge.net\n" "POT-Creation-Date: 2012-06-08 13:51+0200\n" "PO-Revision-Date: 2008-08-29 22:47+0200\n" "Last-Translator: Burkhard Plaum \n" "Language-Team: German \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: plugins/i_avdec.c:107 msgid "Audio options" msgstr "Audio Optionen" #: plugins/i_avdec.c:115 msgid "Video options" msgstr "Video Optionen" #: plugins/i_avdec.c:121 msgid "Shrink factor" msgstr "" #: plugins/i_avdec.c:126 msgid "" "This enables downscaling of images while decoding. Currently only supported " "for JPEG-2000." msgstr "" #: plugins/i_avdec.c:130 msgid "Use vdpau" msgstr "" #: plugins/i_avdec.c:132 msgid "Use VDPAU" msgstr "" #: plugins/i_avdec.c:137 msgid "Network options" msgstr "Netzwerk" #: plugins/i_avdec.c:142 msgid "Connect timeout (milliseconds)" msgstr "Maximale Wartezeit zum Verbinden (Millisekunden)" #: plugins/i_avdec.c:150 plugins/i_dvb.c:81 msgid "Read timeout (milliseconds)" msgstr "Maximale Wartezeit zum Lesen (Millisekunden)" #: plugins/i_avdec.c:158 msgid "Network buffer size (kB)" msgstr "Netzwerk Puffergröße (kB)" #: plugins/i_avdec.c:166 msgid "Bandwidth" msgstr "Bandbreite" #: plugins/i_avdec.c:182 msgid "14.4 Kbps (Modem)" msgstr "14.4 Kbps (Modem)" #: plugins/i_avdec.c:183 msgid "19.2 Kbps (Modem)" msgstr "19.2 Kbps (Modem)" #: plugins/i_avdec.c:184 msgid "28.8 Kbps (Modem)" msgstr "28.8 Kbps (Modem)" #: plugins/i_avdec.c:185 msgid "33.6 Kbps (Modem)" msgstr "33.6 Kbps (Modem)" #: plugins/i_avdec.c:186 msgid "34.4 Kbps (Modem)" msgstr "34.4 Kbps (Modem)" #: plugins/i_avdec.c:187 msgid "57.6 Kbps (Modem)" msgstr "57.6 Kbps (Modem)" #: plugins/i_avdec.c:188 msgid "115.2 Kbps (ISDN)" msgstr "115.2 Kbps (ISDN)" #: plugins/i_avdec.c:189 msgid "262.2 Kbps (Cable/DSL)" msgstr "262.2 Kbps (Kabel/DSL)" #: plugins/i_avdec.c:190 msgid "393.2 Kbps (Cable/DSL)" msgstr "393.2 Kbps (Kabel/DSL)" #: plugins/i_avdec.c:191 msgid "524.3 Kbps (Cable/DSL)" msgstr "524.3 Kbps (Kabel/DSL)" #: plugins/i_avdec.c:192 msgid "1.5 Mbps (T1)" msgstr "1.5 Mbps (T1)" #: plugins/i_avdec.c:193 msgid "10.5 Mbps (LAN)" msgstr "10.5 Mbps (LAN)" #: plugins/i_avdec.c:198 msgid "HTTP Options" msgstr "HTTP Optionen" #: plugins/i_avdec.c:203 msgid "Enable shoutcast title streaming" msgstr "Benutze shoutcast Songtitel" #: plugins/i_avdec.c:209 msgid "Use proxy" msgstr "Benutze Proxy" #: plugins/i_avdec.c:215 msgid "Proxy host" msgstr "Proxy Host" #: plugins/i_avdec.c:220 msgid "Proxy port" msgstr "Proxy Port" #: plugins/i_avdec.c:228 msgid "Proxy needs authentication" msgstr "Proxy braucht Authentifizierung" #: plugins/i_avdec.c:234 msgid "Proxy username" msgstr "Proxy Benutzername" #: plugins/i_avdec.c:240 msgid "Proxy password" msgstr "Proxy Passwort" #: plugins/i_avdec.c:246 #, fuzzy msgid "RTSP Options" msgstr "FTP Optionen" #: plugins/i_avdec.c:251 msgid "Try RTP over TCP" msgstr "" #: plugins/i_avdec.c:254 msgid "" "Use this if your filewall blocks all UDP traffic. Not all servers support TCP" msgstr "" #: plugins/i_avdec.c:258 msgid "Port base for RTP" msgstr "" #: plugins/i_avdec.c:263 msgid "" "Port base for RTP over UDP. Values of 1024 or smaller enable random ports " "(recommended for RTSP aware firewalls). Values larger than 1024 define the " "base port. 2 consecutive ports are used for each A/V stream, these must be " "accessable through the firewall. Odd values are rounded to the next even " "value." msgstr "" #: plugins/i_avdec.c:267 msgid "FTP Options" msgstr "FTP Optionen" #: plugins/i_avdec.c:272 msgid "Login as anonymous" msgstr "Anonym einloggen" #: plugins/i_avdec.c:278 msgid "Anonymous ftp password" msgstr "Passwort für anonymen Login" #: plugins/i_avdec.c:284 msgid "Subtitle Options" msgstr "Untertitel Optionen" #: plugins/i_avdec.c:289 msgid "Seek external subtitles" msgstr "Suche nach externen Untertiteln" #: plugins/i_avdec.c:293 plugins/i_avdec.c:327 msgid "Never" msgstr "Nie" #: plugins/i_avdec.c:294 msgid "For video files only" msgstr "Nur für Videodateien" #: plugins/i_avdec.c:295 plugins/i_avdec.c:328 msgid "Always" msgstr "Immer" #: plugins/i_avdec.c:297 msgid "" "If the input is a regular file, gmerlin_avdecoder can scan the directory for " "matching subtitle files. For a file movie.mpg, possible subtitle files are e." "g. movie_english.srt, movie_german.srt. The rule is, that the first part of " "the filename of the subtitle file must be equal to the movie filename up to " "the extension. Furthermore, the subtitle filename must have an extension " "supported by any of the subtitle readers. Subtitle seeking can be disabled, " "enabled for video files or enabled for all files." msgstr "" "Wenn eine reguläre Datei gespielt wird, kann gmerlin_avdecoder im " "Verzeichnisnach passenden Untertiteldateien suchen. Für eine Datei film.mpg, " "können mögliche Untertiteldateien z.B. film_englisch.srt oder film_deutsch." "srt heißen.Die Regel ist, daß der Dateiname der Mediendatei (ohne Endung) " "der Untertiteldateientsprechen muß. Außerdem muß die Untertiteldatei eine " "Erweiterung haben, dievon einem Untertiteldekoder unterstützt wird. Das " "Suchen nach Untertiteln kann ganz abgeschaletet, nur für Videodateien " "eingeschaletet oder ganz eingeschaletet werden." #: plugins/i_avdec.c:308 msgid "Default subtitle encoding" msgstr "Zeichensatz für Untertitel" #: plugins/i_avdec.c:311 msgid "" "This sets the default encoding for text subtitles,when the original encoding " "is unknown. It must be a character set namerecognized by iconv. Type 'iconv -" "l' at the commandline for a list of supported encodings." msgstr "" "Stellt den Zeichensatz für Text Untertitel ein, wenn er nicht schon bekannt " "ist. Der Zeichensatz muß von iconv unterstützt werden. Gib 'iconv -l' an der " "Kommandozeile ein, um eine Liste unterstützter Zeichensätze zu bekommen." #: plugins/i_avdec.c:318 msgid "Misc options" msgstr "Verschiedene Optionen" #: plugins/i_avdec.c:323 msgid "Sample accurate" msgstr "Samplegenau" #: plugins/i_avdec.c:329 msgid "When necessary" msgstr "" #: plugins/i_avdec.c:332 #, fuzzy msgid "" "Try sample accurate seeking. For most formats, this is not necessary, since " "normal seeking works fine. Some formats are only seekable in sample accurate " "mode. Choose \"When necessary\" to enable seeking for most formats with the " "smallest overhead." msgstr "" "Versuche Samplegenaues Suchen. Für die meisten Formate ist dies nicht nötig, " "da normales Suchen gut funktioniert. Einige Formate sind nur suchbar, wenn " "diese Option aktiviert ist." #: plugins/i_avdec.c:336 msgid "Cache time (milliseconds)" msgstr "Zeit fürs Zwischenspeichern (Millisekunden)" #: plugins/i_avdec.c:339 msgid "" "If building an index takes longer than the specified time, it will be cached." msgstr "" "Wenn die Erstellung eines Index länger als die angebene Zeit dauert, wird er " "zwischengespeichert." #: plugins/i_avdec.c:343 msgid "Cache size (Megabytes)" msgstr "Größe des Indexspeichers (Megabytes)" #: plugins/i_avdec.c:346 msgid "Set the maximum total size of the cache directory." msgstr "" "Gib die maximale Gesamtgröße des Verzeichnisses an, in dem Indizes " "gespeichert werden." #: plugins/i_avdec.c:351 msgid "Export date and time as timecodes for DV" msgstr "Exportiere Datum und Uhrzeit als Timecodes für DV" #: plugins/i_avdec.c:391 msgid "AVDecoder plugin" msgstr "AVDecoder plugin" #: plugins/i_avdec.c:392 msgid "" "Plugin based on the Gmerlin avdecoder library. Supports most media formats. " "Playback is supported from files, URLs (with various protocols) and stdin." msgstr "" "Plugin basierend auf der gmerlin_avdecoder Bibliothel. Unterstützt die " "meistenMedienformate. Abgespielt werden reguläre Dateien, URLs (mit " "verschiedenen Protokollen)und die Standardeingabe" #: plugins/i_dvd.c:72 msgid "Handle chapters as tracks" msgstr "Behandle Kapitel wie Tracks" #: plugins/i_dvd.c:102 msgid "DVD Player" msgstr "DVD Spieler" #: plugins/i_dvd.c:103 msgid "Plugin for playing DVDs. Based on Gmerlin avdecoder." msgstr "Plugin zum Abspielen von DVDs. Basiert auf Gmerlin avdecoder." #: plugins/avdec_common.h:125 msgid "Dynamic range control" msgstr "Dynamikregelung" #: plugins/avdec_common.h:128 msgid "" "Enable dynamic range control for codecs, which support this (currently only " "A52 and DTS)." msgstr "" "Benutze Dynamikregelung für Codecs, die dies unterstützen (momentan nur A52 " "und DTS)." #: plugins/avdec_common.h:134 msgid "Postprocessing level" msgstr "Nachbearbeitung" #: plugins/avdec_common.h:141 #, fuzzy msgid "" "Set postprocessing (to remove compression artifacts). 0 means no " "postprocessing, 1 means maximum postprocessing." msgstr "" "Nachbearbeitung (zum Entfernen von Kompressionsartifakten). 0 bedeutet keine " "Nachbearbeitung, 6 heißt maximale Nachbearbeitung" #: plugins/avdec_common.h:147 msgid "Number of decoding threads" msgstr "" #: plugins/avdec_common.h:152 msgid "Set the number of threads used by Video codecs" msgstr "" #: plugins/i_dvb.c:69 msgid "Channel file" msgstr "Kanal datei" #: plugins/i_dvb.c:71 msgid "" "The channels file must have the format of the dvb-utils programs (like szap, " "tzap). If you don't set this file, several locations like $HOME/.tzap/" "channels.conf will be searched." msgstr "" "Die Kanal-Datei muß das format der dvb-utils (z.B. szap oder tzap) haben. " "Wenn Dudie Datei nicht angibst, wird sie an verschienenen Orten wie $HOME/." "tzap/channels.confgesucht." #: plugins/i_dvb.c:109 msgid "DVB Player" msgstr "DVB Spieler" #: plugins/i_dvb.c:110 msgid "" "Plugin for playing DVB streams from a Linux-DVB compatible card. Based on " "Gmerlin avdecoder." msgstr "" "Plugin zum Abspielen von DVB streams mit Linux-DVB kompatibler " "HardwareBasiert auf gmerlin_avdecoder" #: plugins/i_vcd.c:81 msgid "VCD Player" msgstr "VCD Spieler" #: plugins/i_vcd.c:82 msgid "Plugin for playing VCDs. Based on Gmerlin avdecoder." msgstr "Plugin zum Abspielen von VCDs. Basiert auf gmerlin_avdecoder." #: lib/r_smil.c:399 msgid "Parse smil failed (yml error)" msgstr "Parsen der SMIL Struktur fehlgeschlagen (yml Fehler)" #: lib/r_smil.c:409 msgid "Parse smil failed" msgstr "Parsen der SMIL Struktur fehlgeschlagen" #: lib/bgav.c:156 msgid "Cannot detect stream type" msgstr "Kann Format nicht ermittln" #: lib/bgav.c:411 msgid "Reopening input due to track reset" msgstr "Öffne Quelle neu (Track wurde zurückgesetzt)" #: lib/matroska.c:226 #, fuzzy, c-format msgid "Skipping % bytes of element %x in %s\n" msgstr "Überspringe %d bytes des Chunks vom typ %02x" #: lib/matroska.c:1867 msgid "Couldn't read header element for cues (truncated file?)" msgstr "" #: lib/matroska.c:1873 msgid "Didn't find cues where I exepected them (truncated file?)" msgstr "" #: lib/audio_gsm.c:63 msgid "Multichannel GSM not supported" msgstr "Mehrkanal GSM ist nicht unterstützt" #: lib/audio_ffmpeg.c:150 msgid "Could not get sample format (maybe codec init failed)" msgstr "" #: lib/audio_ffmpeg.c:956 #, c-format msgid "Codec not found: %s" msgstr "Codec nicht gefunden: %s" #: lib/redirect.c:87 lib/redirect.c:105 #, c-format msgid "Detected %s redirector" msgstr "Weiterleitungsdatei: %s" #: lib/audio_a52.c:224 #, c-format msgid "Resync %" msgstr "" #: lib/demux_ape.c:91 #, fuzzy, c-format msgid "Unsupported file version - %d.%02d" msgstr "Nicht unterstützte API version (%d)" #: lib/demux_ape.c:240 #, fuzzy msgid "Can't decode from non-seekable source" msgstr "Kann dieses Format nur von suchbaren Quellen spielen" #: lib/demux_ape.c:261 #, fuzzy msgid "No frames in file" msgstr "Keine Pakete in der Datei" #: lib/demux_ape.c:267 #, fuzzy msgid "Seek table too small" msgstr "Header zu klein" #: lib/demux_ape.c:377 #, c-format msgid "BUG: Backwards skip by %d bytes requested" msgstr "" #: lib/video_vpx.c:59 #, fuzzy, c-format msgid "Failed to initialize decoder: %s" msgstr "Konnte %s nicht initialisieren" #: lib/video_vpx.c:110 #, fuzzy, c-format msgid "Failed to decode frame: %s" msgstr "Lesen vom PNG-Header fehlgeschlagen: %s" #: lib/video_vpx.c:113 #, c-format msgid " Additional information: %s\n" msgstr "" #: lib/video_vpx.c:147 msgid "Ignoring additional frame\n" msgstr "" #: lib/in_smb.c:99 #, c-format msgid "Initialization of samba failed (error: %d)" msgstr "Samba Initialisierung fehlgeschlagen (Fehler: %d)" #: lib/in_smb.c:107 #, c-format msgid "Open file failed (error: %d)" msgstr "Öffnen der Datei fehlgeschlagen (Fehler: %d)" #: lib/in_smb.c:118 msgid "Can't get filesize" msgstr "Kann Dateigröße nicht ermitteln" #: lib/video_qtraw.c:244 lib/video_qtraw.c:262 lib/video_qtraw.c:280 #: lib/video_qtraw.c:297 #, c-format msgid "Palette missing or too small %d" msgstr "Palette fehlt oder ist zu klein %d" #: lib/in_file.c:60 #, c-format msgid "Cannot open %s: %s" msgstr "Kann %s nicht öffnen: %s" #: lib/qt_timecode.c:49 msgid "Timecode tracks in non-seekable sources not supported" msgstr "Timecode tracks in nicht suchbarer Quelle werden nicht unterstützt" #: lib/qt_timecode.c:108 msgid "EOF while reading timecode" msgstr "Dateiende beim Lesen des Timecodes" #: lib/sdp.c:537 lib/sdp.c:705 #, c-format msgid "Invalid line %d: %s" msgstr "Ungültige Zeile %d: %s" #: lib/sdp.c:774 #, c-format msgid "Unknown specifier: %c" msgstr "Unbekanntes Symbol: %c" #: lib/input.c:733 #, c-format msgid "Unknown protocol: %s" msgstr "Unbekanntes Protokoll: %s" #: lib/input.c:809 #, c-format msgid "Got redirected to %s" msgstr "Weiterleitung nach %s" #: lib/input.c:839 msgid "mms connection failed, trying http" msgstr "" #: lib/input.c:1091 #, c-format msgid "Reopening %s failed" msgstr "Neuöffnen von %s fehlgeschlagen" #: lib/demux_wavpack.c:137 msgid "Floating point data is not supported" msgstr "Fließkommadaten werden nicht unterstützt." #: lib/demux_wavpack.c:144 msgid "Hybrid coding mode is not supported" msgstr "Hybrid coding mode wird nicht unterstützt." #: lib/demux_wavpack.c:151 msgid "Integer point data is not supported" msgstr "Integer point data wird nicht unterstützt." #: lib/demux_wavpack.c:210 msgid "Lost sync" msgstr "Synchronisation verloren." #: lib/rtsp.c:153 lib/video_openjpeg.c:42 lib/video_openjpeg.c:48 #: lib/video_openjpeg.c:54 lib/video_png.c:68 lib/video_png.c:148 #: lib/http.c:387 lib/http.c:424 #, c-format msgid "%s" msgstr "" #: lib/rtsp.c:203 msgid "Reading session description failed" msgstr "Session description konnte nicht gelesen werden." #: lib/parse_mpeg4.c:131 #, fuzzy msgid "Detected packed B-frames" msgstr "Intra slice refresh entdeckt" #: lib/demux_quicktime.c:338 msgid "No packets in movie" msgstr "Keine Pakete in der Datei" #: lib/demux_quicktime.c:870 msgid "Chapters detected but stream is not seekable" msgstr "Kapitel gefunden, aber Datei ist nicht suchbar" #: lib/demux_quicktime.c:876 msgid "More than one chapter track, choosing first" msgstr "Mehr als ein Kapiteltrack, nehme ersten" #: lib/demux_quicktime.c:893 msgid "Unknown encoding for chapter names" msgstr "Unbekannter Zeichensatz für Kapitelnamen" #: lib/demux_quicktime.c:936 msgid "Read error while setting up chapter list" msgstr "Lesefehler während der Initialisierung der Kapitelliste" #: lib/demux_quicktime.c:1032 msgid "Invalid mp3on4 channel configuration" msgstr "Ungültige mp3on4 Kanalkonfiguration" #: lib/demux_quicktime.c:1394 msgid "More than one timecode track, ignoring them all" msgstr "Mehr als ein Timecodetrack, ignoriere alle" #: lib/demux_quicktime.c:1409 #, c-format msgid "Expected 64 bytes of palette data for DVD subtitles (got %d)" msgstr "" #: lib/demux_quicktime.c:1660 lib/demux_adts.c:227 msgid "Detected HE-AAC" msgstr "" #: lib/demux_quicktime.c:1666 lib/demux_adts.c:234 msgid "Detected no HE-AAC" msgstr "" #: lib/demux_quicktime.c:1732 msgid "Dirac stream has no ctts" msgstr "" #: lib/demux_quicktime.c:1796 msgid "Non streamable file on non seekable source" msgstr "Nicht streambare Datei von nicht suchbarer Quelle" #: lib/demux_quicktime.c:1805 msgid "Reading moov atom failed" msgstr "Lesen des moov Atoms fehlgeschlagen" #: lib/demux_mpegaudio.c:259 #, c-format msgid "Skipped %d bytes in MPEG audio stream" msgstr "%d Bytes in MPEG Audio stream übersprungen" #: lib/subtitle.c:261 #, c-format msgid "No subtitle decoder found for fourcc %c%c%c%c (0x%08x)" msgstr "Kein Untertiteldekoder gefunden für fourcc %c%c%c%c (0x%08x)" #: lib/rmff.c:337 msgid "Reading logical stream failed" msgstr "Lesen von logischem Stream schlug fehl." #: lib/rmff.c:574 msgid "No index found, where I expected one" msgstr "Kein Index gefunden, wo ich einen erwartet hatte" #: lib/rmff.c:831 msgid "Control attribute missing" msgstr "Kontrollattribut fehlt" #: lib/rmff.c:838 msgid "Stream number missing" msgstr "Stream Nummer fehlt" #: lib/rmff.c:848 msgid "No ASMRuleBook found" msgstr "Kein ASMRuleBook gefunden" #: lib/rmff.c:857 msgid "Bad ASMRuleBook" msgstr "Schlechtes ASMRuleBook" #: lib/rmff.c:871 msgid "No Opaque data there" msgstr "Keine binären Daten gefunden." #: lib/rmff.c:925 #, c-format msgid "Unsupported packet header version: %d" msgstr "Nicht unterstützte Header version: %d" #: lib/qt_esds.c:118 #, c-format msgid "length of MP4DecConfigDescrTag too short: %d < 13" msgstr "Länge vom MP4DecConfigDescrTag zu kurz: %d < 13" #: lib/in_vcd.c:254 lib/in_dvd.c:687 #, c-format msgid "cdio_close_tray failed: %s" msgstr "cdio_close_tray fehlgeschlagen: %s" #: lib/in_vcd.c:258 lib/in_dvd.c:691 msgid "cdio_close_tray failed" msgstr "cdio_close_tray fehlgeschlagen" #: lib/in_vcd.c:270 #, c-format msgid "cdio_open failed for %s" msgstr "cdio_open fehlgeschlagen für %s" #: lib/in_vcd.c:282 #, c-format msgid "read_toc failed for %s" msgstr "read_toc fehlgeschlagen für %s" #: lib/audio_faad2.c:114 lib/aac_frame.c:121 #, c-format msgid "faacDecDecode failed %s" msgstr "faacDecDecode fehlgeschlagen %s" #: lib/log.c:42 msgid "Debug" msgstr "Debug" #: lib/log.c:43 msgid "Warning" msgstr "Warnung" #: lib/log.c:44 msgid "Error" msgstr "Fehler" #: lib/log.c:45 msgid "Info" msgstr "Info" #: lib/demux_ogg.c:225 #, c-format msgid "Unknown stream type \"%.8s\" in OGM header" msgstr "Unbekannter Streamtyp \\\"%.8s\\\" in OGM header" #: lib/demux_ogg.c:427 #, fuzzy, c-format msgid "Skipped %d bytes of random garbage" msgstr "%d Bytes in MPEG Audio stream übersprungen" #: lib/demux_ogg.c:572 lib/demux_ogg.c:1027 msgid "EOF while setting up track" msgstr "Dateiende während der Trackinitialisierung" #: lib/demux_ogg.c:701 msgid "Dirac header contains no framerate, assuming 24 fps" msgstr "" #: lib/demux_ogg.c:792 lib/demux_ogg.c:845 msgid "Reading OGM header failed" msgstr "Lesen des OGM Headers fehlgeschlagen" #: lib/demux_ogg.c:868 #, c-format msgid "Unsupported stream (serialno: %d)" msgstr "Nicht unterstützter Stream (Seriennummer: %d)" #: lib/demux_ogg.c:1219 msgid "Page has no BOS marker" msgstr "Seite hat keine BOS Markierung" #: lib/demux_ogg.c:1227 msgid "Setting up track failed" msgstr "Trackinitialisierung fehlgeschlagen" #: lib/demux_matroska.c:141 msgid "Ogg extradata must start with 0x02n" msgstr "" #: lib/demux_matroska.c:409 #, fuzzy, c-format msgid "Unknown codec: %s" msgstr "Unbekanntes Protokoll: %s" #: lib/demux_matroska.c:605 #, fuzzy, c-format msgid "Subtitle format %s not suppported yet" msgstr "%d Bit AIFF wird nicht unterstützt" #: lib/demux_matroska.c:824 #, fuzzy msgid "Complex tracks not supported yet" msgstr "Codec nicht unterstützt" #: lib/demux_matroska.c:828 #, fuzzy msgid "Logo tracks not supported yet" msgstr "Protokoll nicht unterstützt" #: lib/demux_matroska.c:839 #, fuzzy msgid "Button tracks not supported yet" msgstr "Codec nicht unterstützt" #: lib/demux_matroska.c:843 #, fuzzy msgid "Control tracks not supported yet" msgstr "Protokoll nicht unterstützt" #: lib/demux_matroska.c:869 msgid "Didn't find cues (truncated file?)" msgstr "" #: lib/demux_matroska.c:982 #, fuzzy msgid "Decompression of matroska packet failed" msgstr "Entkomprimieren fehlgeschlagen" #: lib/demux_avi.c:1348 #, fuzzy msgid "Could not get video framerate, assuming 25 fps" msgstr "Konnte Spieldauern der Programme nicht ermitteln, Suchen deaktiviert" #: lib/demux_avi.c:1874 #, c-format msgid "Unknown stream type: %c%c%c%c" msgstr "Unbekannter Streamtyp: %c%c%c%c" #: lib/audio_win32.c:307 #, c-format msgid "acmStreamPrepareHeader failed %d" msgstr "acmStreamPrepareHeader fehlgeschlagen %d" #: lib/audio_win32.c:314 #, c-format msgid "acmStreamConvert failed %d" msgstr "acmStreamConvert fehlgeschlagen %d" #: lib/audio_win32.c:326 #, c-format msgid "acmStreamUnprepareHeader failed %d" msgstr "acmStreamUnprepareHeader fehlgeschlagen %d" #: lib/audio_win32.c:412 msgid "Unappropriate audio format" msgstr "Unangemessenes Audioformat" #: lib/audio_win32.c:415 #, c-format msgid "acmStreamOpen error %d" msgstr "acmStreamOpen Fehler %d" #: lib/audio_win32.c:438 msgid "DS_AudioDecoder_Open failed" msgstr "DS_AudioDecoder_Open fehlgeschlagen" #: lib/audio_win32.c:562 lib/video_win32.c:772 #, c-format msgid "Codec DLL %s not found" msgstr "Codec DLL %s nicht gefunden" #: lib/mxf.c:2609 msgid "Cannot decode MXF file from non seekable source" msgstr "Kann MXF nicht von nichtsuchbaren Quellen dekodieren" #: lib/mxf.c:2623 msgid "Could not find header partition" msgstr "Konnte Kopfpartition nicht lesen" #: lib/in_mmsh.c:151 lib/in_mms.c:80 msgid "Initializing asf demuxer failed" msgstr "Initialisierung des ASF demultiplexers fehlgeschlagen" #: lib/udp.c:55 lib/tcp.c:171 msgid "Cannot create socket" msgstr "Konnte keinen Socket erzeugen" #: lib/udp.c:64 #, fuzzy, c-format msgid "Cannot bind inet socket: %s" msgstr "Konnte keinen Socket erzeugen" #: lib/udp.c:73 #, c-format msgid "UDP Socket bound on port %d\n" msgstr "" #: lib/udp.c:109 #, fuzzy, c-format msgid "Sending UDP packet failed: %s\n" msgstr "Lesen des Status fehlgeschlagen: %s" #: lib/qt_cmov.c:66 #, c-format msgid "Unknown compression method: %c%c%c%c" msgstr "Unbekanntes Kompressionsverfahren: %c%c%c%c" #: lib/qt_cmov.c:91 msgid "Uncompression failed" msgstr "Entkomprimieren fehlgeschlagen" #: lib/track.c:232 #, c-format msgid "Starting audio decoder for stream %d failed" msgstr "Starten des Audiodekoders für Stream %d fehlgeschlagen" #: lib/track.c:244 #, c-format msgid "Starting video decoder for stream %d failed" msgstr "Starten des Videodekoders für Stream %d fehlgeschlagen" #: lib/track.c:262 #, c-format msgid "Cannot decode subtitles from stream %d (no video)" msgstr "Kann Untertitel von Stream %d nicht dekodieren (kein Video)" #: lib/track.c:287 #, c-format msgid "" "Starting subtitle decoder for stream %d failed (cannot get video format)" msgstr "" "Starten des Untertiteldekoders für Stream %d fehlgeschlagen (kann " "Videoformat nicht ermitteln)" #: lib/track.c:303 #, c-format msgid "Starting subtitle decoder for stream %d failed" msgstr "Starten des Untertiteldekoders für Stream %d fehlgeschlagen" #: lib/track.c:452 #, c-format msgid "No audio decoder found for WAVId 0x%04x" msgstr "Kein Audiodecoder für WAV-Kennung 0x%04x gefunden" #: lib/track.c:456 lib/audio.c:117 #, c-format msgid "No audio decoder found for fourcc %c%c%c%c (0x%08x)" msgstr "Kein Audio Dekoder gefunden für fourcc %c%c%c%c (0x%08x)" #: lib/track.c:476 lib/video.c:155 #, c-format msgid "No video decoder found for fourcc %c%c%c%c (0x%08x)" msgstr "Kein Videodekoder gefunden für Kennung %c%c%c%c (0x%08x)" #: lib/track.c:488 #, fuzzy, c-format msgid "No parser found for fourcc %c%c%c%c (0x%08x)" msgstr "Kein Audio Dekoder gefunden für fourcc %c%c%c%c (0x%08x)" #: lib/charset.c:153 msgid "Invalid multibyte sequence" msgstr "Ungültige Multibytesequenz" #: lib/charset.c:158 msgid "Incomplete multibyte sequence" msgstr "Unvollständige Multibytesequenz" #: lib/demux_avs.c:170 msgid "2 Palette blocks without intermediate video block" msgstr "2 Paletten Blöcke ohne Videoblock dazwischen" #: lib/demux_y4m.c:106 #, c-format msgid "Reading stream header failed %d" msgstr "Lesen des Dateikopfes fehlgeschlagen %d" #: lib/dvb_channels.c:138 #, c-format msgid "Channels file %s cannot be opened" msgstr "Kanaldatei %s konnte nicht geöffnet werden" #: lib/dvb_channels.c:149 msgid "Channels file cannot be found (home directory unset)" msgstr "Kanaldatei wurde nicht gefunden (Heimatverzeichnis unbekannt)" #: lib/dvb_channels.c:244 msgid "Channels file cannot be found" msgstr "Kanaldatei wurde nicht gefunden" #: lib/dvb_channels.c:251 #, c-format msgid "Channels file %s cannot be opened: %s" msgstr "Kanaldatei %s konnte nicht geöffnet werden: %s" #: lib/demux_au.c:170 #, c-format msgid "Unsupported encoding %d" msgstr "Nicht unterstützter Zeichensatz %d" #: lib/demux_rm.c:650 #, c-format msgid "Video extradata too short: %d" msgstr "Video Extradaten zu kurz: %d" #: lib/demux_rm.c:658 #, c-format msgid "Video extradata too long: %d" msgstr "Video Extradaten zu lang: %d" #: lib/demux_rm.c:813 msgid "Cannot play multirate real from non seekable source" msgstr "Kann Multirate-Real nur von suchbaren Quellen spielen" #: lib/demux_rm.c:820 msgid "Detected multirate real" msgstr "Multirate-Real erkannt" #: lib/demux_ra.c:112 msgid "Unable to read header" msgstr "Konnte Header nicht lesen." #: lib/demux_ra.c:157 msgid "Header too small" msgstr "Header zu klein" #: lib/demux_ra.c:215 #, c-format msgid "Invalid fourcc size %d" msgstr "Ungültige fourcc Größe %d" #: lib/demux_vmd.c:114 msgid "Cannot open VMD file from nonseekable source" msgstr "Kann keine VMD Dateien von nicht suchbarer Quelle spielen" #: lib/demux_vmd.c:201 #, c-format msgid "Unexpected end of file %d %d" msgstr "Unerwartetes Dateiende %d %d" #: lib/video_win32.c:329 #, c-format msgid "Cannot open %s" msgstr "Kann %s nicht öffnen" #: lib/video_win32.c:409 msgid "ICDecompressBegin failed" msgstr "ICDecompressBegin fehlgeschlagen" #: lib/video_win32.c:458 msgid "ICDecompress failed" msgstr "ICDecompress fehlgeschlagen" #: lib/video_win32.c:530 #, c-format msgid "DS_VideoDecoder_Open failed %d" msgstr "DS_VideoDecoder_Open fehlgeschlagen %d" #: lib/video_win32.c:567 lib/video_win32.c:667 msgid "Decode failed" msgstr "Decode fehlgeschlagen" #: lib/video_win32.c:631 #, c-format msgid "DMO_VideoDecoder_Open failed %d" msgstr "DMO_VideoDecoder_Open fehlgeschlagen %d" #: lib/demux_flv.c:230 #, c-format msgid "Unknown audio codec tag: %d" msgstr "Unbekannter audio codec tag: %d" #: lib/demux_flv.c:284 #, c-format msgid "Unknown video codec tag: %d" msgstr "Unbekannter video codec tag: %d" #: lib/demux_flv.c:456 #, c-format msgid "Unknown type %d for metadata object %s" msgstr "Unbekannter Typ %d for Metadatenobjekt %s" #: lib/demux_flv.c:679 lib/demux_flv.c:720 #, fuzzy, c-format msgid "Packet size is %d (somethings wrong?)" msgstr "Bekam Null als Paketgröße (irgendwas stimmt nicht)" #: lib/demux_flv.c:902 msgid "Zero flags detected, assuming audio and video (might fail)" msgstr "Flags sind 0, nehme Audio und Video an (kann in die Hose gehen)" #: lib/demux_flv.c:993 msgid "Getting duration from last timestamp failed" msgstr "Ermitteln der Spieldaur vom letzten Zeitstempel fehlgeschlagen" #: lib/video_png.c:55 msgid "EOF" msgstr "Dateiende" #: lib/video_png.c:72 lib/video_png.c:152 lib/subread.c:431 msgid "Reading png header failed" msgstr "Lesen des PNG Headers fehlgeschlagen" #: lib/video_png.c:110 msgid "Decode png failed" msgstr "Dekodieren des PNGs fehlgeschlagen" #: lib/superindex.c:310 msgid "Detected B-pyramid, fixing possibly broken timestamps" msgstr "" #: lib/video_ffmpeg.c:459 #, fuzzy, c-format msgid "Got palette %d entries" msgstr "Setze Palette: %d Einträge" #: lib/video_ffmpeg.c:652 msgid "Got EOF while skipping" msgstr "" #: lib/video_ffmpeg.c:860 msgid "Using VDPAU for decoding" msgstr "" #: lib/video_ffmpeg.c:1011 msgid "Could not get initial frame" msgstr "Konnte kein erstes Bild bekommen" #: lib/video_ffmpeg.c:1839 #, c-format msgid "Cannot find %s" msgstr "Kann %s nicht finden" #: lib/video_ffmpeg.c:2271 msgid "Unsupported pixelformat for postprocessing" msgstr "Nicht unterstütztes Pixelformat für Nachbearbeitung" #: lib/video_aviraw.c:175 lib/video_tga.c:125 #, c-format msgid "Palette size changed %d -> %d" msgstr "" #: lib/video_aviraw.c:220 #, c-format msgid "Palette too small %d < 2" msgstr "Palette ist zu klein %d < 2" #: lib/video_aviraw.c:227 #, c-format msgid "Palette too small %d < 16" msgstr "Palette ist zu klein %d < 16" #: lib/video_aviraw.c:243 #, c-format msgid "Palette too small %d < 256" msgstr "Palette ist zu klein %d < 256" #: lib/video_aviraw.c:271 #, c-format msgid "Unsupported depth: %d" msgstr "Nicht Unterstützte Farbtiefe: %d" #: lib/qt_wave.c:80 #, fuzzy msgid "Skipping remainder of broken wave atom" msgstr "Überspringe Schrott in udta-Atom" #: lib/audio.c:64 #, fuzzy, c-format msgid "No audio parser found for fourcc %c%c%c%c (0x%08x)" msgstr "Kein Audio Dekoder gefunden für fourcc %c%c%c%c (0x%08x)" #: lib/audio.c:78 msgid "EOF while initializing audio parser" msgstr "" #: lib/audio.c:93 lib/video.c:131 #, fuzzy msgid "EOF while getting start time" msgstr "Dateiende beim Lesen des Timecodes" #: lib/audio.c:99 #, c-format msgid "Got initial audio timestamp: %s" msgstr "Erster Audio Zeitstempel gelesen: %s" #: lib/audio.c:114 #, c-format msgid "No audio decoder found for WAV ID 0x%04x" msgstr "Kein Audio Dekoder gefunden für WAV ID 0x%04x" #: lib/audio.c:333 lib/video.c:369 #, c-format msgid "Cannot skip backwards: Stream time: %s skip time: %s difference: %s" msgstr "" "Kann nicht rückwärts springen: Streamzeit: %s, Zielzeit: %s, Differenz: %s" #: lib/audio.c:344 #, c-format msgid "Skipping %s samples" msgstr "Überspringe %s Abtastwerte" #: lib/audio.c:470 #, c-format msgid "Cannot output compressed audio stream %d: Unsupported codec" msgstr "" #: lib/audio.c:477 #, c-format msgid "Cannot output compressed audio stream %d: Global header missing" msgstr "" #: lib/audio.c:484 #, c-format msgid "Cannot output compressed audio stream %d: No bitrate specified" msgstr "" #: lib/demux_thp.c:140 lib/demux_dxa.c:88 msgid "Cannot decode from nonseekable source" msgstr "Kann dieses Format nur von suchbaren Quellen spielen" #: lib/video_tga.c:143 #, c-format msgid "Setting palette %d entries" msgstr "Setze Palette: %d Einträge" #: lib/video_tga.c:176 #, c-format msgid "tga_read_from_memory failed: %s (%d bytes)" msgstr "tga_read_from_memory fehlgeschlagen: %s (%d bytes)" #: lib/video_tga.c:215 #, c-format msgid "Cannot detect image type: %d" msgstr "Kann Bildtyp nicht erkennen: %d" #: lib/in_dvd.c:115 lib/in_dvd.c:131 #, c-format msgid "Opening vts %d failed" msgstr "Öffnen von vts %d fehlgeschlagen" #: lib/in_dvd.c:139 #, c-format msgid "Opening IFO for vts %d failed" msgstr "Öffnen des IFO für VTS %d schlug fehl." #: lib/in_dvd.c:426 msgid "Detected still cell" msgstr "Still cell gefunden" #: lib/in_dvd.c:703 msgid "DVDOpen failed" msgstr "DVDOpen fehlgeschlagen" #: lib/in_dvd.c:719 msgid "ifoOpen failed" msgstr "ifoOpen fehlgeschlagen" #: lib/in_dvd.c:818 lib/in_dvd.c:1086 #, c-format msgid "Reading NAV packet at sector %d failed" msgstr "Lesen des NAV packet in Sektor %d fehlgeschlagen" #: lib/in_dvd.c:911 #, c-format msgid "Reading blocks at %d failed" msgstr "Lesen von Blocks ab Sektor %d schlug fehl." #: lib/in_dvd.c:1261 #, c-format msgid "Cannot open DVD Device %s" msgstr "Kann DVD Gerät %s nicht öffnen" #: lib/mpv_header.c:291 msgid "Cannot read sequence header: missing marker bit" msgstr "Kann Sequence header nicht lesen: Fehlendes Marker Bit" #: lib/mpv_header.c:359 #, fuzzy, c-format msgid "Cannot read picture header: Invalid coding type %d" msgstr "Kann Sequence header nicht lesen: Fehlendes Marker Bit" #: lib/demux_smaf.c:108 msgid "MIDI like files not supported" msgstr "MIDI ähnliche Dateien sind nicht unterstützt." #: lib/demux_smaf.c:122 lib/demux_smaf.c:182 #, c-format msgid "Unsupported SMAF chunk (%c%c%c%c)" msgstr "Unbekannter SMAF chunk (%c%c%c%c)" #: lib/demux_smaf.c:157 msgid "Invalid samplerate" msgstr "Ungültige Abtastfrequenz" #: lib/rtpbuffer.c:299 msgid "Dropping obsolete packet" msgstr "" #: lib/rtpbuffer.c:310 msgid "Dropping duplicate packet" msgstr "" #: lib/rtpbuffer.c:374 #, c-format msgid "% packet(s) missing" msgstr "" #: lib/subread.c:402 lib/subread.c:572 msgid "yml node has no start attribute" msgstr "yml-Node hat kein Startattribut" #: lib/subread.c:412 msgid "yml node has no filename attribute" msgstr "yml-Node hat kein Dateinamensattribut" #: lib/subread.c:418 #, c-format msgid "Reading file %s failed" msgstr "Lesen der Datei %s fehlgeschlagen" #: lib/subread.c:426 #, c-format msgid "Reading png header failed: %s" msgstr "Lesen vom PNG-Header fehlgeschlagen: %s" #: lib/subread.c:446 msgid "Overlay too large" msgstr "Overlay zu groß" #: lib/subread.c:460 #, c-format msgid "Parsing time string %s failed" msgstr "Parsen der Zeitangabe %s fehlgeschlagen" #: lib/subread.c:517 msgid "Parsing spumux file failed" msgstr "Parsing der Spumuxdatei fehlgeschlagen" #: lib/subread.c:583 msgid "Error parsing start attribute" msgstr "Fehler beim Parsen des Startattributes" #: lib/demux_roq.c:102 msgid "Cannot play Roq files from nonseekable source" msgstr "Kann keine Roqdateien von nicht suchbarer Quelle spielen" #: lib/demux_roq.c:139 #, c-format msgid "Unknown Roq chunk %04x" msgstr "Unbekannter Roq chunk %04x" #: lib/demux_roq.c:244 msgid "No CODEBOOK chunk before VQ chunk" msgstr "Kein CODEBOOK chunk vor VQ chunk" #: lib/demux_roq.c:289 #, c-format msgid "Unknown chunk %04x" msgstr "Unbekannter chunk %04x" #: lib/parse_mpv.c:250 msgid "Bogus picture header or broken frame" msgstr "" #: lib/parse_mpv.c:266 msgid "Detected Intra slice refresh" msgstr "Intra slice refresh entdeckt" #: lib/video_theora.c:70 msgid "Theora codec requires extradata" msgstr "Theora braucht Extradaten" #: lib/video_theora.c:89 #, fuzzy, c-format msgid "Parsing header packet %d failed" msgstr "Lesen des OGM Headers fehlgeschlagen" #: lib/video_theora.c:161 #, c-format msgid "Unknown pixelformat %d" msgstr "Unbekanntes Pixelformat %d" #: lib/subovl_dvd.c:277 #, c-format msgid "Unknown command %02x, decoding is doomed to failure" msgstr "Unbekannter Befehl %02x, dekodieren ist zum Scheitern verurteilt" #: lib/video.c:78 #, fuzzy, c-format msgid "No video parser found for fourcc %c%c%c%c (0x%08x)" msgstr "Kein Videodekoder gefunden für Kennung %c%c%c%c (0x%08x)" #: lib/video.c:91 #, fuzzy msgid "EOF while initializing video parser" msgstr "Dateiende beim Lesen des Timecodes" #: lib/video.c:103 #, fuzzy msgid "EOF while initializing frametype detector" msgstr "Dateiende beim Lesen des Timecodes" #: lib/video.c:117 #, fuzzy msgid "EOF while initializing packet timer" msgstr "Dateiende beim Lesen des Timecodes" #: lib/video.c:137 #, fuzzy, c-format msgid "Got initial video timestamp: %s" msgstr "Erster Audio Zeitstempel gelesen: %s" #: lib/video.c:318 msgid "Skipping packet while waiting for keyframe" msgstr "" #: lib/video.c:789 msgid "Video compression format needs pixelformat for compressed output" msgstr "" #: lib/video.c:828 msgid "Video compression format needs bitrate for compressed output" msgstr "" #: lib/utils.c:399 #, fuzzy, c-format msgid "recv failed: %s" msgstr "Lesen fehlgeschlagen: %s" #: lib/utils.c:559 #, c-format msgid "Created directory %s" msgstr "Erzeugte Verzeichnis %s" #: lib/demux_wve.c:94 msgid "No PT header found" msgstr "Kein PT Header gefunden" #: lib/demux_wve.c:131 msgid "Unknown audio compression type" msgstr "Unbekannter Audio-Kompressionstyp" #: lib/demux_wve.c:152 #, c-format msgid "Unknown audio header element 0x%02x: 0x%08x" msgstr "Unbekanntes Audioheaderelement 0x%02x: 0x%08x" #: lib/demux_wve.c:165 #, c-format msgid "Unknown header element 0x%02x: 0x%08x" msgstr "Unbekanntes Headerelement 0x%02x: 0x%08x" #: lib/r_asx.c:189 msgid "Parse asx failed (yml error)" msgstr "ASX parsen fehlgeschlagen (yml Fehler)" #: lib/r_asx.c:197 msgid "Parse asx failed" msgstr "ASX parsen fehlgeschlagen" #: lib/demux_psxstr.c:115 #, c-format msgid "Invalid channel number %d" msgstr "Ungültige Kanalnummer %d" #: lib/video_xadll.c:317 #, c-format msgid "Cannot open dll %s: %s" msgstr "Kann dll %s nicht öffnen: %s" #: lib/video_xadll.c:325 #, c-format msgid "failed to init %s" msgstr "Konnte %s nicht initialisieren" #: lib/video_xadll.c:332 msgid "initializer function failed" msgstr "Initialisierungsfunktion fehlgeschlagen" #: lib/video_xadll.c:337 #, c-format msgid "Unsupported api revision (%d)" msgstr "Nicht unterstützte API version (%d)" #: lib/video_xadll.c:344 msgid "function table error" msgstr "Fehler in Funktionstabelle" #: lib/video_xadll.c:379 msgid "Codec not supported" msgstr "Codec nicht unterstützt" #: lib/video_xadll.c:469 lib/video_real.c:93 #, c-format msgid "Cannot find file %s, disabling %s" msgstr "Kann Datei %s nicht finden, deaktiviere %s" #: lib/http.c:93 lib/mms.c:598 lib/mms.c:666 msgid "Remote end closed connection" msgstr "Gegenseite hat Verbindung geschlossen" #: lib/http.c:220 #, fuzzy msgid "Reading response failed" msgstr "Lesen der Datei %s fehlgeschlagen" #: lib/http.c:287 lib/in_ftp.c:163 msgid "Unvalid URL" msgstr "Ungültige URL" #: lib/http.c:407 #, fuzzy msgid "Got redirection but no URL" msgstr "Weiterleitung nach %s" #: lib/demux_mxf.c:319 msgid "Clip wrapped tracks with nonconstant framesize not supported" msgstr "" "\"Clip wrapped\" Tracks mit nichtkonstanter Bildwiederholrate werden nicht " "unterstützt" #: lib/demux_mxf.c:322 #, fuzzy msgid "Custom wrapping not supported" msgstr "Codec nicht unterstützt" #: lib/demux_mxf.c:325 #, fuzzy msgid "Unknown wrapping" msgstr "Unkekannte Kennung" #: lib/demux_mxf.c:356 msgid "Rounding fractional audio samplerate" msgstr "Runde gebrochene Audioabtastrate" #: lib/demux_mxf.c:592 #, c-format msgid "Couldn't find partition for source package %d" msgstr "Konnte keine Partition für \"Source package\" %d finden" #: lib/demux_mxf.c:618 msgid "Parsing MXF file failed, please report" msgstr "Parsen der MXF-Datei fehlgeschlagen, bitte berichten" #: lib/demux_mxf.c:632 msgid "Unsupported MXF type, please report" msgstr "Unbekannter MXF-Typ, bitte berichten" #: lib/demuxer.c:246 lib/demuxer.c:256 lib/demuxer.c:269 #: lib/demux_ffmpeg.c:201 #, c-format msgid "Detected %s format" msgstr "Format erkannt: %s" #: lib/demuxer.c:291 #, c-format msgid "Detected %s format after skipping %d bytes" msgstr "Format erkannt: %s (nach Überspringen von %d Bytes)" #: lib/demuxer.c:357 #, c-format msgid "Removing audio stream %d (no packets found)" msgstr "" #: lib/demuxer.c:372 #, c-format msgid "Removing video stream %d (no packets found)" msgstr "" #: lib/demuxer.c:478 msgid "Non interleaved file from non seekable source" msgstr "Nicht interleavte Datei von nicht suchbarer Quelle" #: lib/demux_vivo.c:301 #, c-format msgid "Unknown extended header: %s" msgstr "Unbekanner erweiterter Header: %s" #: lib/demux_vivo.c:323 #, c-format msgid "Unknown timestamp type: %s" msgstr "Unbekanner Typ für Zeitstempel: %s" #: lib/demux_vivo.c:578 msgid "Unknown packet type" msgstr "Unbekannter Pakettyp" #: lib/fileindex.c:728 #, c-format msgid "Removing %s to keep maximum cache size" msgstr "Lösche %s um maximale Zwischenspeichergröße zu erhalten" #: lib/fileindex.c:1239 msgid "Building file index failed" msgstr "Erstellen des Dateiindex fehlgeschlagen" #: lib/fileindex.c:1245 #, c-format msgid "Built file index in %.2f seconds" msgstr "Dateiindex in %.2f Sekunden erstellt" #: lib/demux_voc.c:233 #, c-format msgid "Skipping %d bytes of chunk type %02x" msgstr "Überspringe %d bytes des Chunks vom typ %02x" #: lib/demux_dxa.c:107 msgid "File contains zero frames" msgstr "Datei enthält 0 Rahmen" #: lib/demux_aiff.c:304 #, c-format msgid "%d bit aiff not supported" msgstr "%d Bit AIFF wird nicht unterstützt" #: lib/demux_aiff.c:346 #, c-format msgid "Compression %c%c%c%c not supported" msgstr "Kompression %c%c%c%c nicht unterstützt" #: lib/qt_udta.c:111 msgid "Skipping garbage in udta atom" msgstr "Überspringe Schrott in udta-Atom" #: lib/demux_mpegps.c:713 #, c-format msgid "Unknown ID %02x in private stream 1" msgstr "Unbekannte Kennung %02x in Private Stream 1" #: lib/demux_mpegps.c:796 #, c-format msgid "Unknown PES ID %02x" msgstr "Unbekannte PES ID %02x" #: lib/parse_flac.c:68 msgid "Corrupted flac header" msgstr "" #: lib/video_libmpeg2.c:397 msgid "Detected change of image size, not handled yet" msgstr "Wechselnde Bildgröße entdeckt (wird noch nicht unterstützt)" #: lib/video_libmpeg2.c:405 #, c-format msgid "Detected change of pixel aspect ratio: %dx%d" msgstr "Geändertes Aspektverhältnis gefunden: %dx%d" #: lib/video_libmpeg2.c:427 msgid "Detected MPEG still image" msgstr "MPEG Standbild gefunden" #: lib/video_real.c:213 lib/audio_real.c:213 #, c-format msgid "Could not open DLL %s %s" msgstr "Konnte DLL %s nicht öffnen: %s" #: lib/video_real.c:244 #, c-format msgid "DLL %s is not ok: %s" msgstr "DLL %s ist nicht ok: %s" #: lib/video_real.c:261 msgid "Init codec failed" msgstr "Initialisierung des Decoders fehlgeschlagen" #: lib/video_real.c:289 msgid "rvyuv_custom_message failed" msgstr "rvyuv_custom_message fehlgeschlagen" #: lib/video_real.c:340 msgid "Decoding failed" msgstr "Dekodieren fehlgeschlagen" #: lib/vdpau.c:111 #, fuzzy, c-format msgid "Creating surface failed: %s\n" msgstr "Lesen des Status fehlgeschlagen: %s" #: lib/vdpau.c:138 #, fuzzy, c-format msgid "Creating decoder failed: %s\n" msgstr "Lesen vom PNG-Header fehlgeschlagen: %s" #: lib/vdpau.c:164 #, fuzzy, c-format msgid "Decoding image failed: %s\n" msgstr "Dekodieren fehlgeschlagen" #: lib/vdpau.c:194 #, fuzzy, c-format msgid "Get surface bits failed: %s\n" msgstr "Lesen des Status fehlgeschlagen: %s" #: lib/demux_nsv.c:513 msgid "" "Seeking with verison 2 TOC not support due to lack of sample files.\n" "Contact the authors to solve this" msgstr "" "Suchen mit Version 2 TOC ist nicht unterstützt wegen fehlender " "Beispieldateien.\n" "Kontaktiere die Authoren um das Problem zu lösen." #: lib/audio_flac.c:223 msgid "FLAC decoder needs 42 bytes extradata" msgstr "FLAC braucht 42 Byte Extradaten" #: lib/audio_flac.c:243 msgid "Reading metadata failed" msgstr "Lesen von Metadaten schlug fehl." #: lib/audio_speex.c:62 msgid "Speex needs extradata" msgstr "Speex braucht Extradaten" #: lib/demux_ffmpeg.c:690 #, fuzzy msgid "avformat_open_input failed" msgstr "av_open_input_stream fehlgeschlagen" #: lib/demux_ffmpeg.c:698 msgid "av_open_input_stream failed" msgstr "av_open_input_stream fehlgeschlagen" #: lib/demux_ffmpeg.c:710 #, fuzzy msgid "avformat_find_stream_info failed" msgstr "av_find_stream_info fehlgeschlagen" #: lib/demux_ffmpeg.c:717 msgid "av_find_stream_info failed" msgstr "av_find_stream_info fehlgeschlagen" #: lib/demux_4xm.c:478 #, c-format msgid "Unknown Chunk %c%c%c%c" msgstr "Unbekannter chunk %c%c%c%c" #: lib/rtp.c:971 msgid "Joining RTP thread..." msgstr "" #: lib/rtp.c:975 msgid "Joined RTP thread" msgstr "" #: lib/rtp.c:1148 #, fuzzy msgid "Interleaved MPEG-4 audio not supported yet" msgstr "%d Audio Bits werden nicht unterstützt" #: lib/rtp.c:1185 msgid "No audio mode for mpeg4-generic" msgstr "" #: lib/rtp.c:1199 #, fuzzy, c-format msgid "Unknown audio mode for mpeg4-generic: %s" msgstr "Unbekannter audio codec tag: %d" #: lib/rtp.c:1207 msgid "Interleaved audio not yet supported for mpeg4-generic" msgstr "" #: lib/rtp.c:1214 msgid "No sizelength for mpeg4-generic" msgstr "" #: lib/rtp.c:1223 msgid "No indexlength for mpeg4-generic" msgstr "" #: lib/rtp.c:1232 msgid "No indexdeltalength for mpeg4-generic" msgstr "" #: lib/mms.c:254 #, c-format msgid "Sequence number mismatch, expected %d, got %d" msgstr "Sequenznummer passt nicht, erwartete %d, bekam %d" #: lib/mms.c:373 #, c-format msgid "Unknown data: %02x %02x %02x %02x %02x %02x %02x %02x" msgstr "Unbekannte Daten: %02x %02x %02x %02x %02x %02x %02x %02x" #: lib/mms.c:436 #, c-format msgid "Invalid URL: %s" msgstr "Ungültige URL: %s" #: lib/mms.c:464 lib/tcp.c:182 msgid "Cannot set nonblocking mode" msgstr "Setzen des Nichtblockiermodus fehlgeschlagen" #: lib/mms.c:495 msgid "Cannot get software version number and stuff" msgstr "Softwareversion undsoweiter nicht erhalten" #: lib/mms.c:504 #, c-format msgid "Invalid answer 1 %08x %08x" msgstr "Ungültige Antwort 1 %08x %08x" #: lib/mms.c:568 lib/mms.c:689 msgid "Next packet failed" msgstr "Kein neues Paket erhalten" #: lib/mms.c:578 msgid "Protocol not supported" msgstr "Protokoll nicht unterstützt" #: lib/mms.c:583 #, c-format msgid "Got answer: %d" msgstr "Antwort erhalten: %d" #: lib/mms.c:605 msgid "Next packet failed 2" msgstr "Kein neues Paket erhalten 2" #: lib/mms.c:610 #, c-format msgid "Invalid answer 2 %08x" msgstr "Ungütlige Antwort 2 %08x" #: lib/mms.c:616 msgid "Passwords not supported" msgstr "Passwörter werden nicht unterstützt" #: lib/mms.c:622 #, c-format msgid "Invalid answer 3: %d" msgstr "Ungütlige Antwort 3 %d" #: lib/mms.c:631 #, c-format msgid "Request not accepted %08x" msgstr "Anfrage nicht akzeptiert %08x" #: lib/mms.c:678 msgid "Invalid answer 4" msgstr "Ungütlige Antwort 4" #: lib/mms.c:697 msgid "Read header failed" msgstr "Lesen des Kopfes fehlgeschlagen" #: lib/parse_vorbis.c:98 lib/audio_vorbis.c:406 msgid "No extradata found" msgstr "Keine Extradaten gefunden" #: lib/parse_vorbis.c:111 lib/audio_vorbis.c:419 #, c-format msgid "Truncated vorbis header %d" msgstr "" #: lib/parse_vorbis.c:125 lib/audio_vorbis.c:433 #, c-format msgid "Packet %d is not a vorbis header" msgstr "" #: lib/demux_mpegts.c:194 #, c-format msgid "Detected pts wrap (%s < %s)" msgstr "Erkannte Umbruch der Zeitst (%s < %s)" #: lib/demux_mpegts.c:256 #, c-format msgid "Skipped discontinuity %d bytes" msgstr "" #: lib/demux_mpegts.c:317 #, c-format msgid "Lost sync % bytes before file end\n" msgstr "" #: lib/demux_mpegts.c:324 #, fuzzy msgid "Lost sync\n" msgstr "Synchronisation verloren." #: lib/demux_mpegts.c:333 msgid "Too many transport errors" msgstr "Zu viele Übertragungsfehler" #: lib/demux_mpegts.c:336 msgid "Transport error" msgstr "Übertragungsfehler" #: lib/demux_mpegts.c:584 msgid "Got discontinuities, won't get wrong durations" msgstr "" #: lib/demux_mpegts.c:670 msgid "PAT section spans multiple packets, please report" msgstr "PAT section erstreckt sich über mehrere Pakete, bitte berichten" #: lib/demux_mpegts.c:678 msgid "PAT has multiple sections, please report" msgstr "PAT hat mehrere Sections, bitte berichten" #: lib/demux_mpegts.c:712 msgid "Premature EOF" msgstr "Unerwartetes Dateiende" #: lib/demux_mpegts.c:725 msgid "Lost sync during initializing" msgstr "Synchronisation während der Initialisierung verloren" #: lib/demux_mpegts.c:763 msgid "PMT section spans multiple packets, please report" msgstr "PMT section erstreckt sich über mehrere Pakete, bitte berichten" #: lib/demux_mpegts.c:772 msgid "PMT has multiple sections, please report" msgstr "PMT hat mehrere Sections, bitte berichten" #: lib/demux_mpegts.c:1105 msgid "Cannot get packet size" msgstr "Kann Paketgröße nicht ermitteln" #: lib/demux_mpegts.c:1109 #, c-format msgid "Packet size: %d" msgstr "Paketgröße: %d" #: lib/demux_mpegts.c:1217 msgid "Could not get program durations, seeking disabled" msgstr "Konnte Spieldauern der Programme nicht ermitteln, Suchen deaktiviert" #: lib/demux_mpegts.c:1474 #, c-format msgid "Next PCR wrap in %s" msgstr "Nächster Zeitrückprung in %s" #: lib/in_dvb_linux.c:257 #, c-format msgid "Setting channel failed: %s" msgstr "Kanal einstellen fehlgeschlagen: %s" #: lib/in_dvb_linux.c:274 msgid "Setting channel failed: Event queue overflow" msgstr "Kanal einstellen fehlgeschlagen: Ereigniswarteschlange übergelaufen" #: lib/in_dvb_linux.c:280 msgid "Setting frequency failed" msgstr "Einstellen der Frequenz fehlgeschlagen" #: lib/in_dvb_linux.c:301 #, c-format msgid "Reading status failed: %s" msgstr "Lesen des Status fehlgeschlagen: %s" #: lib/in_dvb_linux.c:309 msgid "Waiting for lock" msgstr "Warte auf Frequenzeinstellung" #: lib/in_dvb_linux.c:314 msgid "Locking timed out" msgstr "Wartezeit für Frequenzeinstellung überschritten" #: lib/in_dvb_linux.c:318 msgid "Frontend locked successfully" msgstr "Frequenz erfolgreich eingestellt" #: lib/in_dvb_linux.c:356 #, c-format msgid "Setting PAT filter failed: %s" msgstr "PAT Filter setzen fehlgeschlagen: %s" #: lib/in_dvb_linux.c:365 msgid "Parsing PAT failed" msgstr "Parsen der PAT fehlgeschlagen" #: lib/in_dvb_linux.c:390 #, c-format msgid "Cannot find service ID %d in PAT (recreate channels.conf)" msgstr "" "Kann Service ID %d in der PAT nicht finden (Neuerzeugen der channels.conf " "könnte hier helfen)" #: lib/in_dvb_linux.c:405 #, c-format msgid "Setting PMT filter failed: %s" msgstr "Setzen des PMT Filters fehlgeschlagen: %s" #: lib/in_dvb_linux.c:415 msgid "Parsing PMT failed" msgstr "Parsen der PMT fehlgeschlagen" #: lib/in_dvb_linux.c:483 #, c-format msgid "Channel cache %s cannot be opened: %s" msgstr "Kanalcache %s kann nicht geöffnet werden: %s" #: lib/in_dvb_linux.c:523 msgid "Channel cache older than channels.conf" msgstr "Kanalcache ist älter alt channels.conf" #: lib/in_dvb_linux.c:759 #, c-format msgid "Cannot open frontend device %s: %s" msgstr "Kann Frontendgerät %s nicht öffnen: %s" #: lib/in_dvb_linux.c:766 msgid "Cannot get frontend info" msgstr "Kann kein Frontendinfo bekommen" #: lib/in_dvb_linux.c:775 msgid "Cannot get frontend status" msgstr "Kann keinen Frontendstaus bekommen" #: lib/in_dvb_linux.c:791 msgid "Found no channels.conf file" msgstr "Keine channels.conf Datei gefunden" #: lib/in_dvb_linux.c:803 msgid "Regenerating channel cache" msgstr "Erzeuge Kanalcache neu" #: lib/in_dvb_linux.c:817 msgid "Using channel cache" msgstr "Benutze Kanalcache" #: lib/in_dvb_linux.c:1174 lib/in_dvb_linux.c:1195 msgid "Reading timed out (check cable connections)" msgstr "Zeitüberschreitung beim Lesen (Antenne eingesteckt?)" #: lib/in_dvb_linux.c:1186 #, c-format msgid "poll failed: %s" msgstr "poll fehlgeschlagen: %s" #: lib/in_dvb_linux.c:1204 #, c-format msgid "read failed: %s" msgstr "Lesen fehlgeschlagen: %s" #: lib/in_dvb_linux.c:1229 #, fuzzy, c-format msgid "Setting pes filter failed: %s" msgstr "Filter setzen fehlgeschlagen: %s" #: lib/in_dvb_linux.c:1249 #, fuzzy, c-format msgid "Setting section filter failed: %s" msgstr "Filter setzen fehlgeschlagen: %s" #: lib/in_dvb_linux.c:1402 #, fuzzy, c-format msgid "Setting section filter buffer failed: %s" msgstr "Filter setzen fehlgeschlagen: %s" #: lib/in_dvb_linux.c:1412 msgid "Filters initialized successfully" msgstr "Filter erfolgreich initialisiert" #: lib/demux_musepack.c:120 msgid "Cannot decode from nonseekable sources" msgstr "Kann nur von suchbaren Quellen spielen" #: lib/demux_sphere.c:231 msgid "Bytes per sample is zero" msgstr "Bytes pro Abtastwert ist Null" #: lib/audio_vorbis.c:215 lib/audio_vorbis.c:254 lib/audio_vorbis.c:298 #: lib/audio_vorbis.c:334 lib/audio_vorbis.c:384 msgid "decode: vorbis_synthesis_headerin: not a vorbis header" msgstr "decode: vorbis_synthesis_headerin: Kein Vorbiskopf" #: lib/audio_vorbis.c:237 #, c-format msgid "Vorbis decoder: Init data too small (%d bytes)" msgstr "Initialisierungsdaten zu klein (%d Bytes)" #: lib/audio_vorbis.c:283 msgid "ext size too small" msgstr "ext size zu klein" #: lib/audio_vorbis.c:365 msgid "No OVHS Atom found" msgstr "Kein OVHS Atom gefunden" #: lib/qt_atom.c:79 #, c-format msgid "Unknown atom [%c%c%c%c] at toplevel" msgstr "Unbekanntes Atom [%c%c%c%c] auf oberster Ebene" #: lib/qt_atom.c:88 #, c-format msgid "Unknown atom inside [%c%c%c%c] (fourcc: [%c%c%c%c], size: %s)" msgstr "Unbekanntes Atom innerhalb [%c%c%c%c] (fourcc: [%c%c%c%c], Größe: %s)" #: lib/packettimer.c:72 #, fuzzy msgid "Packet cache full" msgstr "PTS Speicher voll" #: lib/packettimer.c:192 #, fuzzy msgid "Detected B-Pyramid" msgstr "Intra slice refresh entdeckt" #: lib/audio_pcm.c:861 lib/audio_pcm.c:944 lib/audio_pcm.c:984 #, c-format msgid "%d audio bits not supported." msgstr "%d Audio Bits werden nicht unterstützt" #: lib/audio_pcm.c:955 msgid "Could not get initial packet" msgstr "Konnte kein anfängliches Paket bekommen" #: lib/audio_pcm.c:1104 #, fuzzy, c-format msgid "extradata too small (%d < %zd)" msgstr "Extradaten zu klein (%d < %ld)" #: lib/audio_pcm.c:1221 msgid "Unknown fourcc" msgstr "Unkekannte Kennung" #: lib/audio_real.c:262 lib/audio_real.c:268 msgid "raOpenCodec2 failed" msgstr "raOpenCodec2 fehlgeschlagen" #: lib/audio_real.c:294 msgid "raInitDecoder failed" msgstr "raInitDecoder fehlgeschlagen" #: lib/audio_real.c:304 msgid "raSetFlavor failed" msgstr "raSetFlavor fehlgeschlagen" #: lib/audio_real.c:477 msgid "raDecode failed" msgstr "raDecode fehlgeschlagen" #: lib/demux_r3d.c:269 msgid "Wrong index tag (broken file)" msgstr "" #: lib/demux_r3d.c:275 #, fuzzy msgid "Index chunk too small" msgstr "ext size zu klein" #: lib/demux_r3d.c:284 msgid "Unexpected EOF in index" msgstr "" #: lib/demux_r3d.c:374 #, fuzzy msgid "R3D cannot be read from nonseekable sources" msgstr "Kann nur von suchbaren Quellen spielen" #: lib/demux_r3d.c:386 #, fuzzy msgid "Got no header" msgstr "Kein ETag empfangen" #: lib/demux_r3d.c:400 msgid "Got no footer" msgstr "" #: lib/tcp.c:139 #, c-format msgid "Cannot resolve address of %s: %s" msgstr "Kann Adresse für %s nicht ermitteln: %s" #: lib/tcp.c:197 msgid "Connection timed out" msgstr "Zeitüberschreitung beim Verbinden" #: lib/tcp.c:204 lib/tcp.c:215 #, c-format msgid "Connecting failed: %s" msgstr "Verbinden fehlgeschlagen: %s" #: lib/tcp.c:229 msgid "Cannot set blocking mode" msgstr "Setzen des Blockiermodus fehlgeschlagen" #: lib/tcp.c:257 #, c-format msgid "Could not send data: %s" msgstr "Konnte keine Daten schicken: %s" #: lib/in_ftp.c:181 lib/in_ftp.c:218 lib/in_ftp.c:230 lib/in_ftp.c:255 #: lib/in_ftp.c:273 lib/in_ftp.c:301 lib/in_ftp.c:319 lib/in_ftp.c:341 msgid "Could not read answer" msgstr "Konnte Antwort nicht lesen" #: lib/in_ftp.c:283 msgid "Invalid server answer" msgstr "Ungültige Serverantwort" #: lib/in_rtsp.c:267 #, c-format msgid "Unknown RDT chunk %02x %02x %02x %02x %02x %02x %02x %02x" msgstr "Unbekannter RDT chunk %02x %02x %02x %02x %02x %02x %02x %02x" #: lib/in_rtsp.c:333 #, c-format msgid "Real Server, challenge %s" msgstr "" #: lib/in_rtsp.c:351 msgid "QTSS Server" msgstr "QTSS Server" #: lib/in_rtsp.c:360 msgid "Generic RTSP code\n" msgstr "" #: lib/in_rtsp.c:426 msgid "Got smil redirector" msgstr "smil redirector erhalten" #: lib/in_rtsp.c:539 #, c-format msgid "Client ports: %d %d\n" msgstr "" #: lib/in_rtsp.c:547 #, c-format msgid "Server ports: %d %d\n" msgstr "" #: lib/in_rtsp.c:581 #, c-format msgid "Server adress: %s\n" msgstr "" #: lib/in_rtsp.c:593 #, c-format msgid "ssrc: %08x\n" msgstr "" #: lib/in_rtsp.c:817 msgid "Got no RTP-Info from server" msgstr "" #: lib/in_rtsp.c:879 msgid "Got no ETag" msgstr "Kein ETag empfangen" #: lib/audio_qtwin32.c:149 msgid "Cannot open QuickTime.qts" msgstr "Kann QuickTime.qts nicht öffnen" #: lib/audio_qtwin32.c:156 msgid "Cannot open qtmlClient.dll" msgstr "Kann qtmlClient.dll nicht öffnen" #: lib/audio_qtwin32.c:165 msgid "Getting proc address InitializeQTML failed" msgstr "Ermitteln der Prozeduradresse InitializeQTML fehlgeschlagen" #: lib/audio_qtwin32.c:173 msgid "Getting proc address SoundConverterOpen failed" msgstr "Ermitteln der Prozeduradresse SoundConverterOpen fehlgeschlagen" #: lib/audio_qtwin32.c:182 msgid "Getting proc address SoundConverterClose failed" msgstr "Ermitteln der Prozeduradresse SoundConverterClose fehlgeschlagen" #: lib/audio_qtwin32.c:190 msgid "Getting proc address TerminateQTML failed" msgstr "Ermitteln der Prozeduradresse TerminateQTML fehlgeschlagen" #: lib/audio_qtwin32.c:198 msgid "Getting proc address SoundConverterSetInfo failed" msgstr "Ermitteln der Prozeduradresse SoundConverterSetInfo fehlgeschlagen" #: lib/audio_qtwin32.c:206 msgid "Getting proc address SoundConverterGetBufferSizes failed" msgstr "" "Ermitteln der Prozeduradresse SoundConverterGetBufferSizes fehlgeschlagen" #: lib/audio_qtwin32.c:214 msgid "Getting proc address SoundConverterConvertBuffer1 failed" msgstr "" "Ermitteln der Prozeduradresse SoundConverterConvertBuffer1 fehlgeschlagen" #: lib/audio_qtwin32.c:222 msgid "Getting proc address SoundConverterEndConversion failed" msgstr "" "Ermitteln der Prozeduradresse SoundConverterEndConversion fehlgeschlagen" #: lib/audio_qtwin32.c:230 msgid "Getting proc address SoundConverterBeginConversion failed" msgstr "" "Ermitteln der Prozeduradresse SoundConverterBeginConversion fehlgeschlagen" #: lib/audio_qtwin32.c:236 msgid "InitializeQTML failed" msgstr "InitializeQTML fehlgeschlagen" #: lib/audio_qtwin32.c:275 msgid "SoundConverterOpen failed" msgstr "SoundConverterOpen fehlgeschlagen" #: lib/audio_qtwin32.c:285 msgid "SoundConverterSetInfo failed" msgstr "SoundConverterSetInfo fehlgeschlagen" #: lib/audio_qtwin32.c:302 msgid "SoundConverterBeginConversion failed" msgstr "SoundConverterBeginConversion fehlgeschlagen" #: lib/audio_qtwin32.c:368 msgid "SoundConverterConvertBuffer failed" msgstr "SoundConverterConvertBuffer fehlgeschlagen" #: lib/audio_qtwin32.c:456 #, c-format msgid "DLL %s not found" msgstr "DLL %s nicht gefunden" #: lib/demux_asf.c:940 #, c-format msgid "unknown segment type (rlen): 0x%02X" msgstr "Unbekannter Segmenttyp (rlen): 0x%02X" #: lib/demux_asf.c:1026 #, c-format msgid "data_size %d, Offset: %d" msgstr "data_size %d, Offset: %d" #, fuzzy #~ msgid "vorbis_synthesis_headerin: not a vorbis header" #~ msgstr "decode: vorbis_synthesis_headerin: Kein Vorbiskopf" #~ msgid "Lost sync during parsing" #~ msgstr "Synchronisation während des Einlesens verloren" #~ msgid "Couldn't resync audio stream after seeking, maybe EOF" #~ msgstr "" #~ "Konnte Audiostream nach dem Suchen nicht mehr synchronisieren " #~ "(möglicherweise Dateiende)" #~ msgid "Couldn't resync video stream after seeking, maybe EOF" #~ msgstr "" #~ "Konnte Videostream nach dem Suchen nicht mehr synchronisieren " #~ "(möglicherweise Dateiende)" #~ msgid "Cannot read sequence extension: missing marker bit" #~ msgstr "Kann Sequence extension nicht lesen: Fehlendes Marker Bit" #~ msgid "Ran out of data during extradata scanning" #~ msgstr "Datenende während des Lesens der Extradaten" #~ msgid "Cannot read sequence header: illegal framerate" #~ msgstr "Kann Sequence header nicht lesen: Unerlaubte Bildwiederholrate" #~ msgid "Cannot skip backwards, stream_time: %s, sync_time: %s" #~ msgstr "Kann nicht rückwärts springen, stream_time: %s, sync_time: %s" #~ msgid "Undefined sync time after seeking" #~ msgstr "Undefinierte Synchronisationszeit nach Suchen" #~ msgid "Could not resolve address %s" #~ msgstr "Konnte Adresse %s nicht ermitteln" #~ msgid "Could not resolve address %s: No known address space" #~ msgstr "Kann Addresse %s nicht nachschlagen: Unbekannter Addressraum" #~ msgid "Invalid packet" #~ msgstr "Ungültiges Paket" #~ msgid "transport_packet_read: Out of sync" #~ msgstr "transport_packet_read: Synchronisation verloren" gmerlin-avdecoder-1.2.0~dfsg/po/Makevars0000644000000000000000000000350011764363506016764 0ustar rootroot# Makefile variables for PO directory in any package using GNU gettext. # Usually the message domain is the same as the package name. DOMAIN = $(PACKAGE) # These two variables depend on the location of this directory. subdir = po top_builddir = .. # These options get passed to xgettext. XGETTEXT_OPTIONS = --keyword="bgav_log:4" --keyword=TRS # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding # package. (Note that the msgstr strings, extracted from the package's # sources, belong to the copyright holder of the package.) Translators are # expected to transfer the copyright for their translations to this person # or entity, or to disclaim their copyright. The empty string stands for # the public domain; in this case the translators are expected to disclaim # their copyright. COPYRIGHT_HOLDER = Members of the gmerlin project # This is the email address or URL to which the translators shall report # bugs in the untranslated strings: # - Strings which are not entire sentences, see the maintainer guidelines # in the GNU gettext documentation, section 'Preparing Strings'. # - Strings which use unclear terms or require additional context to be # understood. # - Strings which make invalid assumptions about notation of date, time or # money. # - Pluralisation problems. # - Incorrect English spelling. # - Incorrect formatting. # It can be your email address, or a mailing list address where translators # can write to without being subscribed, or the URL of a web page through # which the translators can contact you. MSGID_BUGS_ADDRESS = gmerlin-general@lists.sourceforge.net # This is the list of locale categories, beyond LC_MESSAGES, for which the # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = gmerlin-avdecoder-1.2.0~dfsg/po/ChangeLog0000644000000000000000000000071611764363506017050 0ustar rootroot2007-02-11 gettextize * Makefile.in.in: New file, from gettext-0.15. * Rules-quot: New file, from gettext-0.15. * boldquot.sed: New file, from gettext-0.15. * en@boldquot.header: New file, from gettext-0.15. * en@quot.header: New file, from gettext-0.15. * insert-header.sin: New file, from gettext-0.15. * quot.sed: New file, from gettext-0.15. * remove-potcdate.sin: New file, from gettext-0.15. * POTFILES.in: New file. gmerlin-avdecoder-1.2.0~dfsg/po/LINGUAS0000644000000000000000000000000311764363506016310 0ustar rootrootde gmerlin-avdecoder-1.2.0~dfsg/po/Rules-quot0000644000000000000000000000337611764363506017306 0ustar rootroot# Special Makefile rules for English message catalogs with quotation marks. DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot .SUFFIXES: .insert-header .po-update-en en@quot.po-create: $(MAKE) en@quot.po-update en@boldquot.po-create: $(MAKE) en@boldquot.po-update en@quot.po-update: en@quot.po-update-en en@boldquot.po-update: en@boldquot.po-update-en .insert-header.po-update-en: @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ ll=`echo $$lang | sed -e 's/@.*//'`; \ LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "creation of $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi en@quot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header en@boldquot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header mostlyclean: mostlyclean-quot mostlyclean-quot: rm -f *.insert-header gmerlin-avdecoder-1.2.0~dfsg/po/boldquot.sed0000644000000000000000000000033111764363506017615 0ustar rootroots/"\([^"]*\)"/“\1â€/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“â€/""/g s/“/“/g s/â€/â€/g s/‘/‘/g s/’/’/g gmerlin-avdecoder-1.2.0~dfsg/po/POTFILES.in0000644000000000000000000002002511764363507017047 0ustar rootrootutils/cpuinfo.c plugins/i_avdec.c plugins/i_dvd.c plugins/avdec_common.c plugins/avdec_common.h plugins/i_dvb.c plugins/i_vcd.c include/audioparser_priv.h include/rtp.h include/frametype.h include/parser.h include/mms.h include/pes_header.h include/RTjpeg.h include/dvb_channels.h include/pngreader.h include/packettimer.h include/dirac_header.h include/os.h include/avdec.h include/http.h include/bgav_vdpau.h include/mpeg4_header.h include/bitstream.h include/win32codec.h include/id3.h include/matroska.h include/aac_frame.h include/dvframe.h include/asmrp.h include/bsf.h include/mpa_header.h include/sdp.h include/mpv_header.h include/bgavdefs.h include/videoparser_priv.h include/rmff.h include/mxf.h include/ptscache.h include/rtsp.h include/vorbis_comment.h include/yml.h include/bswap.h include/flac_header.h include/avdec_private.h include/bgav_dca.h include/codecs.h include/h264_header.h include/language_table.h include/utils.h include/xing.h include/qt.h include/nanosoft.h include/cavs_header.h include/a52_header.h include/bsf_private.h include/vc1_header.h include/md5.h include/cue.h include/mpegts_common.h tests/vcdtest.c tests/ymltest.c tests/seektest.c tests/bgavsave.c tests/frametable.c tests/bgavdemux.c tests/indexdump.c tests/bgavdump.c tests/count_samples.c tests/indextest.c tests/mmstest.c tests/rtsptest.c lib/r_smil.c lib/qt_tmcd.c lib/bgav.c lib/demux_mtv.c lib/yml.c lib/matroska.c lib/md5.c lib/pngreader.c lib/r_ref.c lib/audio_gsm.c lib/languages.c lib/audio_ffmpeg.c lib/qt_minf.c lib/redirect.c lib/audio_a52.c lib/demux_ape.c lib/video_vpx.c lib/dvframe.c lib/ptscache.c lib/demux_smjpeg.c lib/in_smb.c lib/video_qtraw.c lib/qt_stts.c lib/in_file.c lib/targa.h lib/qt_timecode.c lib/demux_gsm.c lib/packetpool.c lib/sdp.c lib/qt_enda.c lib/demux_wav.c lib/input.c lib/demux_wavpack.c lib/rtsp.c lib/parse_mpeg4.c lib/h264_header.c lib/qt_stsz.c lib/a52_header.c lib/demux_quicktime.c lib/qt_palette.c lib/RTjpeg.c lib/video_schroedinger.c lib/qt_useratoms.c lib/demux_mpegaudio.c lib/video_openjpeg.c lib/subtitle.c lib/rmff.c lib/qt_esds.c lib/in_fd.c lib/bitstream.c lib/qt_hdlr.c lib/demux_adif.c lib/os_inet_aton.c lib/qt_language.c lib/qt_tcmi.c lib/in_vcd.c lib/cavs_header.c lib/audio_faad2.c lib/demux_a52.c lib/log.c lib/demux_ogg.c lib/demux_matroska.c lib/audioparser.c lib/demux_avi.c lib/audio_win32.c lib/mxf.c lib/in_mmsh.c lib/udp.c lib/formattracker.c lib/base64.c lib/qt_glbl.c lib/qt_cmov.c lib/track.c lib/parse_mjpa.c lib/in_cb.c lib/qt_tkhd.c lib/demux_gif.c lib/video_gavl.c lib/demux_tta.c lib/bytebuffer.c lib/charset.c lib/demux_vqa.c lib/demux_mpegvideo.c lib/rtcp.c lib/libw32dll/dmo/DMO_AudioDecoder.c lib/libw32dll/dmo/dmo_guids.c lib/libw32dll/dmo/dmo_guids.h lib/libw32dll/dmo/dmo.c lib/libw32dll/dmo/dmo.h lib/libw32dll/dmo/buffer.c lib/libw32dll/dmo/DMO_VideoDecoder.c lib/libw32dll/dmo/DMO_Filter.h lib/libw32dll/dmo/DMO_VideoDecoder.h lib/libw32dll/dmo/DMO_AudioDecoder.h lib/libw32dll/dmo/dmo_interfaces.h lib/libw32dll/qtx/qtxsdk/components.h lib/libw32dll/qtx/qtxsdk/select.h lib/libw32dll/wine/winuser.h lib/libw32dll/wine/module.h lib/libw32dll/wine/ldt_keeper.h lib/libw32dll/wine/winreg.h lib/libw32dll/wine/pshpack8.h lib/libw32dll/wine/windows.h lib/libw32dll/wine/module.c lib/libw32dll/wine/pshpack1.h lib/libw32dll/wine/winestring.h lib/libw32dll/wine/windef.h lib/libw32dll/wine/msacmdrv.h lib/libw32dll/wine/registry.h lib/libw32dll/wine/pshpack4.h lib/libw32dll/wine/avifmt.h lib/libw32dll/wine/resource.c lib/libw32dll/wine/ext.h lib/libw32dll/wine/winbase.h lib/libw32dll/wine/ldt_keeper.c lib/libw32dll/wine/mmreg.h lib/libw32dll/wine/win32.c lib/libw32dll/wine/win32.h lib/libw32dll/wine/wrapper.h lib/libw32dll/wine/winerror.h lib/libw32dll/wine/heap.h lib/libw32dll/wine/afl.c lib/libw32dll/wine/basetsd.h lib/libw32dll/wine/ext.c lib/libw32dll/wine/ldt.h lib/libw32dll/wine/ntdef.h lib/libw32dll/wine/compat.h lib/libw32dll/wine/vfw.h lib/libw32dll/wine/com.h lib/libw32dll/wine/loader.h lib/libw32dll/wine/vfl.c lib/libw32dll/wine/elfdll.c lib/libw32dll/wine/wineacm.h lib/libw32dll/wine/debugtools.h lib/libw32dll/wine/elfdll.h lib/libw32dll/wine/msacm.h lib/libw32dll/wine/resource.h lib/libw32dll/wine/winnt.h lib/libw32dll/wine/pe_resource.c lib/libw32dll/wine/driver.h lib/libw32dll/wine/driver.c lib/libw32dll/wine/pe_image.h lib/libw32dll/wine/pe_image.c lib/libw32dll/wine/pshpack2.h lib/libw32dll/wine/registry.c lib/libw32dll/wine/poppack.h lib/libw32dll/libwin32.h lib/libw32dll/w32codec.h lib/libw32dll/DirectShow/DS_AudioDecoder.h lib/libw32dll/DirectShow/guids.h lib/libw32dll/DirectShow/outputpin.h lib/libw32dll/DirectShow/inputpin.h lib/libw32dll/DirectShow/outputpin.c lib/libw32dll/DirectShow/guids.c lib/libw32dll/DirectShow/allocator.h lib/libw32dll/DirectShow/DS_VideoDecoder.c lib/libw32dll/DirectShow/cmediasample.h lib/libw32dll/DirectShow/inputpin.c lib/libw32dll/DirectShow/iunk.h lib/libw32dll/DirectShow/allocator.c lib/libw32dll/DirectShow/DS_VideoDecoder.h lib/libw32dll/DirectShow/DS_Filter.h lib/libw32dll/DirectShow/interfaces.h lib/libw32dll/DirectShow/DS_Filter.c lib/libw32dll/DirectShow/cmediasample.c lib/libw32dll/DirectShow/DS_AudioDecoder.c lib/video_yuv.c lib/demux_avs.c lib/demux_y4m.c lib/frametype.c lib/dvb_channels.c lib/parse_dirac.c lib/demux_nuv.c lib/stream.c lib/qt_chan.c lib/qt_edts.c lib/seek.c lib/in_http.c lib/pnm.c lib/demux_au.c lib/qt_utils.c lib/timecode.c lib/demux_adts.c lib/demux_rm.c lib/metadata.c lib/qt_pasp.c lib/demux_dv.c lib/demux_daud.c lib/demux_fli.c lib/r_m3u.c lib/edl.c lib/demux_ra.c lib/os.c lib/demux_vmd.c lib/qt_ftab.c lib/video_win32.c lib/demux_flv.c lib/qt_elst.c lib/qt_dinf.c lib/demux_dsicin.c lib/video_png.c lib/dirac_header.c lib/apetag.c lib/superindex.c lib/video_ffmpeg.c lib/video_aviraw.c lib/qt_wave.c lib/asmrp.c lib/parse_h264.c lib/parse_vc1.c lib/qt_moov.c lib/audio.c lib/bsf.c lib/parse_mpegaudio.c lib/pes_header.c lib/options.c lib/demux_thp.c lib/demux_p2xml.c lib/tracktable.c lib/video_tga.c lib/qt_mdhd.c lib/demux_tiertex.c lib/demux_ircam.c lib/video_rtjpeg.c lib/demux_smacker.c lib/qt_stsd.c lib/audio_mad.c lib/r_pls.c lib/xing.c lib/in_dvd.c lib/aac_frame.c lib/mpv_header.c lib/qt_mvhd.c lib/pnm.h lib/qt_rmda.c lib/qt_dref.c lib/demux_smaf.c lib/nanosoft.c lib/rtpbuffer.c lib/subread.c lib/demux_roq.c lib/qt_stco.c lib/parse_mpv.c lib/device.c lib/qt_trak.c lib/codecs.c lib/packet.c lib/video_theora.c lib/subovl_dvd.c lib/video.c lib/mpegts_common.c lib/utils.c lib/videoparser.c lib/chapterlist.c lib/qt_rmra.c lib/bsf_avcc.c lib/r_rtsptext.c lib/demux_gxf.c lib/demux_wve.c lib/demux_shorten.c lib/r_asx.c lib/demux_psxstr.c lib/video_xadll.c lib/http.c lib/demux_sol.c lib/demux_mxf.c lib/qt_nmhd.c lib/cue.c lib/qt_fiel.c lib/win32codec.c lib/qt_gmin.c lib/vc1_header.c lib/demuxer.c lib/vorbis_comment.c lib/qt_stsc.c lib/demux_vivo.c lib/fileindex.c lib/parse_cavs.c lib/demux_voc.c lib/demux_dxa.c lib/demux_8svx.c lib/demux_aiff.c lib/sampleseek.c lib/qt_gmhd.c lib/qt_udta.c lib/demux_mpegps.c lib/qt_tref.c lib/parse_flac.c lib/video_libmpeg2.c lib/video_real.c lib/qt_frma.c lib/flac_header.c lib/targa.c lib/audio_dca.c lib/r_qtl.c lib/id3v1.c lib/vdpau.c lib/demux_nsv.c lib/parse_dca.c lib/audio_flac.c lib/in_pnm.c lib/audio_speex.c lib/demux_ffmpeg.c lib/demux_4xm.c lib/rtp.c lib/mms.c lib/parse_vorbis.c lib/mpa_header.c lib/in_memory.c lib/GSM610/gsm_encode.c lib/GSM610/preprocess.c lib/GSM610/lpc.c lib/GSM610/gsm.h lib/GSM610/table.c lib/GSM610/short_term.c lib/GSM610/long_term.c lib/GSM610/rpe.c lib/GSM610/gsm610_priv.h lib/GSM610/gsm_option.c lib/GSM610/code.c lib/GSM610/add.c lib/GSM610/gsm_create.c lib/GSM610/gsm_decode.c lib/GSM610/decode.c lib/GSM610/gsm_destroy.c lib/id3v2.c lib/demux_mpegts.c lib/demux_flac.c lib/qt_rdrf.c lib/in_dvb_linux.c lib/demux_musepack.c lib/qt_stbl.c lib/parse_aac.c lib/demux_sphere.c lib/audio_vorbis.c lib/qt_atom.c lib/mpeg4_header.c lib/packettimer.c lib/audio_pcm.c lib/video_tiff.c lib/audio_real.c lib/audio_gavl.c lib/demux_r3d.c lib/in_mms.c lib/parse_a52.c lib/translation.c lib/qt_stss.c lib/tcp.c lib/in_ftp.c lib/packetbuffer.c lib/in_rtsp.c lib/qt_mdia.c lib/keyframetable.c lib/audio_qtwin32.c lib/demux_asf.c gmerlin-avdecoder-1.2.0~dfsg/po/insert-header.sin0000644000000000000000000000124011764363506020534 0ustar rootroot# Sed script that inserts the file called HEADER before the header entry. # # At each occurrence of a line starting with "msgid ", we execute the following # commands. At the first occurrence, insert the file. At the following # occurrences, do nothing. The distinction between the first and the following # occurrences is achieved by looking at the hold space. /^msgid /{ x # Test if the hold space is empty. s/m/m/ ta # Yes it was empty. First occurrence. Read the file. r HEADER # Output the file's contents by reading the next line. But don't lose the # current line while doing this. g N bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } gmerlin-avdecoder-1.2.0~dfsg/po/stamp-po0000644000000000000000000000001211764363527016751 0ustar rootroottimestamp gmerlin-avdecoder-1.2.0~dfsg/po/remove-potcdate.sin0000644000000000000000000000066011764363506021105 0ustar rootroot# Sed script that remove the POT-Creation-Date line in the header entry # from a POT file. # # The distinction between the first and the following occurrences of the # pattern is achieved by looking at the hold space. /^"POT-Creation-Date: .*"$/{ x # Test if the hold space is empty. s/P/P/ ta # Yes it was empty. First occurrence. Remove the line. g d bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } gmerlin-avdecoder-1.2.0~dfsg/po/quot.sed0000644000000000000000000000023111764363506016753 0ustar rootroots/"\([^"]*\)"/“\1â€/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“â€/""/g gmerlin-avdecoder-1.2.0~dfsg/po/gmerlin-avdecoder.pot0000644000000000000000000012101211764363527021405 0ustar rootroot# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Members of the gmerlin project # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: gmerlin-general@lists.sourceforge.net\n" "POT-Creation-Date: 2012-06-08 13:51+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: plugins/i_avdec.c:107 msgid "Audio options" msgstr "" #: plugins/i_avdec.c:115 msgid "Video options" msgstr "" #: plugins/i_avdec.c:121 msgid "Shrink factor" msgstr "" #: plugins/i_avdec.c:126 msgid "" "This enables downscaling of images while decoding. Currently only supported " "for JPEG-2000." msgstr "" #: plugins/i_avdec.c:130 msgid "Use vdpau" msgstr "" #: plugins/i_avdec.c:132 msgid "Use VDPAU" msgstr "" #: plugins/i_avdec.c:137 msgid "Network options" msgstr "" #: plugins/i_avdec.c:142 msgid "Connect timeout (milliseconds)" msgstr "" #: plugins/i_avdec.c:150 plugins/i_dvb.c:81 msgid "Read timeout (milliseconds)" msgstr "" #: plugins/i_avdec.c:158 msgid "Network buffer size (kB)" msgstr "" #: plugins/i_avdec.c:166 msgid "Bandwidth" msgstr "" #: plugins/i_avdec.c:182 msgid "14.4 Kbps (Modem)" msgstr "" #: plugins/i_avdec.c:183 msgid "19.2 Kbps (Modem)" msgstr "" #: plugins/i_avdec.c:184 msgid "28.8 Kbps (Modem)" msgstr "" #: plugins/i_avdec.c:185 msgid "33.6 Kbps (Modem)" msgstr "" #: plugins/i_avdec.c:186 msgid "34.4 Kbps (Modem)" msgstr "" #: plugins/i_avdec.c:187 msgid "57.6 Kbps (Modem)" msgstr "" #: plugins/i_avdec.c:188 msgid "115.2 Kbps (ISDN)" msgstr "" #: plugins/i_avdec.c:189 msgid "262.2 Kbps (Cable/DSL)" msgstr "" #: plugins/i_avdec.c:190 msgid "393.2 Kbps (Cable/DSL)" msgstr "" #: plugins/i_avdec.c:191 msgid "524.3 Kbps (Cable/DSL)" msgstr "" #: plugins/i_avdec.c:192 msgid "1.5 Mbps (T1)" msgstr "" #: plugins/i_avdec.c:193 msgid "10.5 Mbps (LAN)" msgstr "" #: plugins/i_avdec.c:198 msgid "HTTP Options" msgstr "" #: plugins/i_avdec.c:203 msgid "Enable shoutcast title streaming" msgstr "" #: plugins/i_avdec.c:209 msgid "Use proxy" msgstr "" #: plugins/i_avdec.c:215 msgid "Proxy host" msgstr "" #: plugins/i_avdec.c:220 msgid "Proxy port" msgstr "" #: plugins/i_avdec.c:228 msgid "Proxy needs authentication" msgstr "" #: plugins/i_avdec.c:234 msgid "Proxy username" msgstr "" #: plugins/i_avdec.c:240 msgid "Proxy password" msgstr "" #: plugins/i_avdec.c:246 msgid "RTSP Options" msgstr "" #: plugins/i_avdec.c:251 msgid "Try RTP over TCP" msgstr "" #: plugins/i_avdec.c:254 msgid "" "Use this if your filewall blocks all UDP traffic. Not all servers support TCP" msgstr "" #: plugins/i_avdec.c:258 msgid "Port base for RTP" msgstr "" #: plugins/i_avdec.c:263 msgid "" "Port base for RTP over UDP. Values of 1024 or smaller enable random ports " "(recommended for RTSP aware firewalls). Values larger than 1024 define the " "base port. 2 consecutive ports are used for each A/V stream, these must be " "accessable through the firewall. Odd values are rounded to the next even " "value." msgstr "" #: plugins/i_avdec.c:267 msgid "FTP Options" msgstr "" #: plugins/i_avdec.c:272 msgid "Login as anonymous" msgstr "" #: plugins/i_avdec.c:278 msgid "Anonymous ftp password" msgstr "" #: plugins/i_avdec.c:284 msgid "Subtitle Options" msgstr "" #: plugins/i_avdec.c:289 msgid "Seek external subtitles" msgstr "" #: plugins/i_avdec.c:293 plugins/i_avdec.c:327 msgid "Never" msgstr "" #: plugins/i_avdec.c:294 msgid "For video files only" msgstr "" #: plugins/i_avdec.c:295 plugins/i_avdec.c:328 msgid "Always" msgstr "" #: plugins/i_avdec.c:297 msgid "" "If the input is a regular file, gmerlin_avdecoder can scan the directory for " "matching subtitle files. For a file movie.mpg, possible subtitle files are e." "g. movie_english.srt, movie_german.srt. The rule is, that the first part of " "the filename of the subtitle file must be equal to the movie filename up to " "the extension. Furthermore, the subtitle filename must have an extension " "supported by any of the subtitle readers. Subtitle seeking can be disabled, " "enabled for video files or enabled for all files." msgstr "" #: plugins/i_avdec.c:308 msgid "Default subtitle encoding" msgstr "" #: plugins/i_avdec.c:311 msgid "" "This sets the default encoding for text subtitles,when the original encoding " "is unknown. It must be a character set namerecognized by iconv. Type 'iconv -" "l' at the commandline for a list of supported encodings." msgstr "" #: plugins/i_avdec.c:318 msgid "Misc options" msgstr "" #: plugins/i_avdec.c:323 msgid "Sample accurate" msgstr "" #: plugins/i_avdec.c:329 msgid "When necessary" msgstr "" #: plugins/i_avdec.c:332 msgid "" "Try sample accurate seeking. For most formats, this is not necessary, since " "normal seeking works fine. Some formats are only seekable in sample accurate " "mode. Choose \"When necessary\" to enable seeking for most formats with the " "smallest overhead." msgstr "" #: plugins/i_avdec.c:336 msgid "Cache time (milliseconds)" msgstr "" #: plugins/i_avdec.c:339 msgid "" "If building an index takes longer than the specified time, it will be cached." msgstr "" #: plugins/i_avdec.c:343 msgid "Cache size (Megabytes)" msgstr "" #: plugins/i_avdec.c:346 msgid "Set the maximum total size of the cache directory." msgstr "" #: plugins/i_avdec.c:351 msgid "Export date and time as timecodes for DV" msgstr "" #: plugins/i_avdec.c:391 msgid "AVDecoder plugin" msgstr "" #: plugins/i_avdec.c:392 msgid "" "Plugin based on the Gmerlin avdecoder library. Supports most media formats. " "Playback is supported from files, URLs (with various protocols) and stdin." msgstr "" #: plugins/i_dvd.c:72 msgid "Handle chapters as tracks" msgstr "" #: plugins/i_dvd.c:102 msgid "DVD Player" msgstr "" #: plugins/i_dvd.c:103 msgid "Plugin for playing DVDs. Based on Gmerlin avdecoder." msgstr "" #: plugins/avdec_common.h:125 msgid "Dynamic range control" msgstr "" #: plugins/avdec_common.h:128 msgid "" "Enable dynamic range control for codecs, which support this (currently only " "A52 and DTS)." msgstr "" #: plugins/avdec_common.h:134 msgid "Postprocessing level" msgstr "" #: plugins/avdec_common.h:141 msgid "" "Set postprocessing (to remove compression artifacts). 0 means no " "postprocessing, 1 means maximum postprocessing." msgstr "" #: plugins/avdec_common.h:147 msgid "Number of decoding threads" msgstr "" #: plugins/avdec_common.h:152 msgid "Set the number of threads used by Video codecs" msgstr "" #: plugins/i_dvb.c:69 msgid "Channel file" msgstr "" #: plugins/i_dvb.c:71 msgid "" "The channels file must have the format of the dvb-utils programs (like szap, " "tzap). If you don't set this file, several locations like $HOME/.tzap/" "channels.conf will be searched." msgstr "" #: plugins/i_dvb.c:109 msgid "DVB Player" msgstr "" #: plugins/i_dvb.c:110 msgid "" "Plugin for playing DVB streams from a Linux-DVB compatible card. Based on " "Gmerlin avdecoder." msgstr "" #: plugins/i_vcd.c:81 msgid "VCD Player" msgstr "" #: plugins/i_vcd.c:82 msgid "Plugin for playing VCDs. Based on Gmerlin avdecoder." msgstr "" #: lib/r_smil.c:399 msgid "Parse smil failed (yml error)" msgstr "" #: lib/r_smil.c:409 msgid "Parse smil failed" msgstr "" #: lib/bgav.c:156 msgid "Cannot detect stream type" msgstr "" #: lib/bgav.c:411 msgid "Reopening input due to track reset" msgstr "" #: lib/matroska.c:226 #, c-format msgid "Skipping % bytes of element %x in %s\n" msgstr "" #: lib/matroska.c:1867 msgid "Couldn't read header element for cues (truncated file?)" msgstr "" #: lib/matroska.c:1873 msgid "Didn't find cues where I exepected them (truncated file?)" msgstr "" #: lib/audio_gsm.c:63 msgid "Multichannel GSM not supported" msgstr "" #: lib/audio_ffmpeg.c:150 msgid "Could not get sample format (maybe codec init failed)" msgstr "" #: lib/audio_ffmpeg.c:956 #, c-format msgid "Codec not found: %s" msgstr "" #: lib/redirect.c:87 lib/redirect.c:105 #, c-format msgid "Detected %s redirector" msgstr "" #: lib/audio_a52.c:224 #, c-format msgid "Resync %" msgstr "" #: lib/demux_ape.c:91 #, c-format msgid "Unsupported file version - %d.%02d" msgstr "" #: lib/demux_ape.c:240 msgid "Can't decode from non-seekable source" msgstr "" #: lib/demux_ape.c:261 msgid "No frames in file" msgstr "" #: lib/demux_ape.c:267 msgid "Seek table too small" msgstr "" #: lib/demux_ape.c:377 #, c-format msgid "BUG: Backwards skip by %d bytes requested" msgstr "" #: lib/video_vpx.c:59 #, c-format msgid "Failed to initialize decoder: %s" msgstr "" #: lib/video_vpx.c:110 #, c-format msgid "Failed to decode frame: %s" msgstr "" #: lib/video_vpx.c:113 #, c-format msgid " Additional information: %s\n" msgstr "" #: lib/video_vpx.c:147 msgid "Ignoring additional frame\n" msgstr "" #: lib/in_smb.c:99 #, c-format msgid "Initialization of samba failed (error: %d)" msgstr "" #: lib/in_smb.c:107 #, c-format msgid "Open file failed (error: %d)" msgstr "" #: lib/in_smb.c:118 msgid "Can't get filesize" msgstr "" #: lib/video_qtraw.c:244 lib/video_qtraw.c:262 lib/video_qtraw.c:280 #: lib/video_qtraw.c:297 #, c-format msgid "Palette missing or too small %d" msgstr "" #: lib/in_file.c:60 #, c-format msgid "Cannot open %s: %s" msgstr "" #: lib/qt_timecode.c:49 msgid "Timecode tracks in non-seekable sources not supported" msgstr "" #: lib/qt_timecode.c:108 msgid "EOF while reading timecode" msgstr "" #: lib/sdp.c:537 lib/sdp.c:705 #, c-format msgid "Invalid line %d: %s" msgstr "" #: lib/sdp.c:774 #, c-format msgid "Unknown specifier: %c" msgstr "" #: lib/input.c:733 #, c-format msgid "Unknown protocol: %s" msgstr "" #: lib/input.c:809 #, c-format msgid "Got redirected to %s" msgstr "" #: lib/input.c:839 msgid "mms connection failed, trying http" msgstr "" #: lib/input.c:1091 #, c-format msgid "Reopening %s failed" msgstr "" #: lib/demux_wavpack.c:137 msgid "Floating point data is not supported" msgstr "" #: lib/demux_wavpack.c:144 msgid "Hybrid coding mode is not supported" msgstr "" #: lib/demux_wavpack.c:151 msgid "Integer point data is not supported" msgstr "" #: lib/demux_wavpack.c:210 msgid "Lost sync" msgstr "" #: lib/rtsp.c:153 lib/video_openjpeg.c:42 lib/video_openjpeg.c:48 #: lib/video_openjpeg.c:54 lib/video_png.c:68 lib/video_png.c:148 #: lib/http.c:387 lib/http.c:424 #, c-format msgid "%s" msgstr "" #: lib/rtsp.c:203 msgid "Reading session description failed" msgstr "" #: lib/parse_mpeg4.c:131 msgid "Detected packed B-frames" msgstr "" #: lib/demux_quicktime.c:338 msgid "No packets in movie" msgstr "" #: lib/demux_quicktime.c:870 msgid "Chapters detected but stream is not seekable" msgstr "" #: lib/demux_quicktime.c:876 msgid "More than one chapter track, choosing first" msgstr "" #: lib/demux_quicktime.c:893 msgid "Unknown encoding for chapter names" msgstr "" #: lib/demux_quicktime.c:936 msgid "Read error while setting up chapter list" msgstr "" #: lib/demux_quicktime.c:1032 msgid "Invalid mp3on4 channel configuration" msgstr "" #: lib/demux_quicktime.c:1394 msgid "More than one timecode track, ignoring them all" msgstr "" #: lib/demux_quicktime.c:1409 #, c-format msgid "Expected 64 bytes of palette data for DVD subtitles (got %d)" msgstr "" #: lib/demux_quicktime.c:1660 lib/demux_adts.c:227 msgid "Detected HE-AAC" msgstr "" #: lib/demux_quicktime.c:1666 lib/demux_adts.c:234 msgid "Detected no HE-AAC" msgstr "" #: lib/demux_quicktime.c:1732 msgid "Dirac stream has no ctts" msgstr "" #: lib/demux_quicktime.c:1796 msgid "Non streamable file on non seekable source" msgstr "" #: lib/demux_quicktime.c:1805 msgid "Reading moov atom failed" msgstr "" #: lib/demux_mpegaudio.c:259 #, c-format msgid "Skipped %d bytes in MPEG audio stream" msgstr "" #: lib/subtitle.c:261 #, c-format msgid "No subtitle decoder found for fourcc %c%c%c%c (0x%08x)" msgstr "" #: lib/rmff.c:337 msgid "Reading logical stream failed" msgstr "" #: lib/rmff.c:574 msgid "No index found, where I expected one" msgstr "" #: lib/rmff.c:831 msgid "Control attribute missing" msgstr "" #: lib/rmff.c:838 msgid "Stream number missing" msgstr "" #: lib/rmff.c:848 msgid "No ASMRuleBook found" msgstr "" #: lib/rmff.c:857 msgid "Bad ASMRuleBook" msgstr "" #: lib/rmff.c:871 msgid "No Opaque data there" msgstr "" #: lib/rmff.c:925 #, c-format msgid "Unsupported packet header version: %d" msgstr "" #: lib/qt_esds.c:118 #, c-format msgid "length of MP4DecConfigDescrTag too short: %d < 13" msgstr "" #: lib/in_vcd.c:254 lib/in_dvd.c:687 #, c-format msgid "cdio_close_tray failed: %s" msgstr "" #: lib/in_vcd.c:258 lib/in_dvd.c:691 msgid "cdio_close_tray failed" msgstr "" #: lib/in_vcd.c:270 #, c-format msgid "cdio_open failed for %s" msgstr "" #: lib/in_vcd.c:282 #, c-format msgid "read_toc failed for %s" msgstr "" #: lib/audio_faad2.c:114 lib/aac_frame.c:121 #, c-format msgid "faacDecDecode failed %s" msgstr "" #: lib/log.c:42 msgid "Debug" msgstr "" #: lib/log.c:43 msgid "Warning" msgstr "" #: lib/log.c:44 msgid "Error" msgstr "" #: lib/log.c:45 msgid "Info" msgstr "" #: lib/demux_ogg.c:225 #, c-format msgid "Unknown stream type \"%.8s\" in OGM header" msgstr "" #: lib/demux_ogg.c:427 #, c-format msgid "Skipped %d bytes of random garbage" msgstr "" #: lib/demux_ogg.c:572 lib/demux_ogg.c:1027 msgid "EOF while setting up track" msgstr "" #: lib/demux_ogg.c:701 msgid "Dirac header contains no framerate, assuming 24 fps" msgstr "" #: lib/demux_ogg.c:792 lib/demux_ogg.c:845 msgid "Reading OGM header failed" msgstr "" #: lib/demux_ogg.c:868 #, c-format msgid "Unsupported stream (serialno: %d)" msgstr "" #: lib/demux_ogg.c:1219 msgid "Page has no BOS marker" msgstr "" #: lib/demux_ogg.c:1227 msgid "Setting up track failed" msgstr "" #: lib/demux_matroska.c:141 msgid "Ogg extradata must start with 0x02n" msgstr "" #: lib/demux_matroska.c:409 #, c-format msgid "Unknown codec: %s" msgstr "" #: lib/demux_matroska.c:605 #, c-format msgid "Subtitle format %s not suppported yet" msgstr "" #: lib/demux_matroska.c:824 msgid "Complex tracks not supported yet" msgstr "" #: lib/demux_matroska.c:828 msgid "Logo tracks not supported yet" msgstr "" #: lib/demux_matroska.c:839 msgid "Button tracks not supported yet" msgstr "" #: lib/demux_matroska.c:843 msgid "Control tracks not supported yet" msgstr "" #: lib/demux_matroska.c:869 msgid "Didn't find cues (truncated file?)" msgstr "" #: lib/demux_matroska.c:982 msgid "Decompression of matroska packet failed" msgstr "" #: lib/demux_avi.c:1348 msgid "Could not get video framerate, assuming 25 fps" msgstr "" #: lib/demux_avi.c:1874 #, c-format msgid "Unknown stream type: %c%c%c%c" msgstr "" #: lib/audio_win32.c:307 #, c-format msgid "acmStreamPrepareHeader failed %d" msgstr "" #: lib/audio_win32.c:314 #, c-format msgid "acmStreamConvert failed %d" msgstr "" #: lib/audio_win32.c:326 #, c-format msgid "acmStreamUnprepareHeader failed %d" msgstr "" #: lib/audio_win32.c:412 msgid "Unappropriate audio format" msgstr "" #: lib/audio_win32.c:415 #, c-format msgid "acmStreamOpen error %d" msgstr "" #: lib/audio_win32.c:438 msgid "DS_AudioDecoder_Open failed" msgstr "" #: lib/audio_win32.c:562 lib/video_win32.c:772 #, c-format msgid "Codec DLL %s not found" msgstr "" #: lib/mxf.c:2609 msgid "Cannot decode MXF file from non seekable source" msgstr "" #: lib/mxf.c:2623 msgid "Could not find header partition" msgstr "" #: lib/in_mmsh.c:151 lib/in_mms.c:80 msgid "Initializing asf demuxer failed" msgstr "" #: lib/udp.c:55 lib/tcp.c:171 msgid "Cannot create socket" msgstr "" #: lib/udp.c:64 #, c-format msgid "Cannot bind inet socket: %s" msgstr "" #: lib/udp.c:73 #, c-format msgid "UDP Socket bound on port %d\n" msgstr "" #: lib/udp.c:109 #, c-format msgid "Sending UDP packet failed: %s\n" msgstr "" #: lib/qt_cmov.c:66 #, c-format msgid "Unknown compression method: %c%c%c%c" msgstr "" #: lib/qt_cmov.c:91 msgid "Uncompression failed" msgstr "" #: lib/track.c:232 #, c-format msgid "Starting audio decoder for stream %d failed" msgstr "" #: lib/track.c:244 #, c-format msgid "Starting video decoder for stream %d failed" msgstr "" #: lib/track.c:262 #, c-format msgid "Cannot decode subtitles from stream %d (no video)" msgstr "" #: lib/track.c:287 #, c-format msgid "" "Starting subtitle decoder for stream %d failed (cannot get video format)" msgstr "" #: lib/track.c:303 #, c-format msgid "Starting subtitle decoder for stream %d failed" msgstr "" #: lib/track.c:452 #, c-format msgid "No audio decoder found for WAVId 0x%04x" msgstr "" #: lib/track.c:456 lib/audio.c:117 #, c-format msgid "No audio decoder found for fourcc %c%c%c%c (0x%08x)" msgstr "" #: lib/track.c:476 lib/video.c:155 #, c-format msgid "No video decoder found for fourcc %c%c%c%c (0x%08x)" msgstr "" #: lib/track.c:488 #, c-format msgid "No parser found for fourcc %c%c%c%c (0x%08x)" msgstr "" #: lib/charset.c:153 msgid "Invalid multibyte sequence" msgstr "" #: lib/charset.c:158 msgid "Incomplete multibyte sequence" msgstr "" #: lib/demux_avs.c:170 msgid "2 Palette blocks without intermediate video block" msgstr "" #: lib/demux_y4m.c:106 #, c-format msgid "Reading stream header failed %d" msgstr "" #: lib/dvb_channels.c:138 #, c-format msgid "Channels file %s cannot be opened" msgstr "" #: lib/dvb_channels.c:149 msgid "Channels file cannot be found (home directory unset)" msgstr "" #: lib/dvb_channels.c:244 msgid "Channels file cannot be found" msgstr "" #: lib/dvb_channels.c:251 #, c-format msgid "Channels file %s cannot be opened: %s" msgstr "" #: lib/demux_au.c:170 #, c-format msgid "Unsupported encoding %d" msgstr "" #: lib/demux_rm.c:650 #, c-format msgid "Video extradata too short: %d" msgstr "" #: lib/demux_rm.c:658 #, c-format msgid "Video extradata too long: %d" msgstr "" #: lib/demux_rm.c:813 msgid "Cannot play multirate real from non seekable source" msgstr "" #: lib/demux_rm.c:820 msgid "Detected multirate real" msgstr "" #: lib/demux_ra.c:112 msgid "Unable to read header" msgstr "" #: lib/demux_ra.c:157 msgid "Header too small" msgstr "" #: lib/demux_ra.c:215 #, c-format msgid "Invalid fourcc size %d" msgstr "" #: lib/demux_vmd.c:114 msgid "Cannot open VMD file from nonseekable source" msgstr "" #: lib/demux_vmd.c:201 #, c-format msgid "Unexpected end of file %d %d" msgstr "" #: lib/video_win32.c:329 #, c-format msgid "Cannot open %s" msgstr "" #: lib/video_win32.c:409 msgid "ICDecompressBegin failed" msgstr "" #: lib/video_win32.c:458 msgid "ICDecompress failed" msgstr "" #: lib/video_win32.c:530 #, c-format msgid "DS_VideoDecoder_Open failed %d" msgstr "" #: lib/video_win32.c:567 lib/video_win32.c:667 msgid "Decode failed" msgstr "" #: lib/video_win32.c:631 #, c-format msgid "DMO_VideoDecoder_Open failed %d" msgstr "" #: lib/demux_flv.c:230 #, c-format msgid "Unknown audio codec tag: %d" msgstr "" #: lib/demux_flv.c:284 #, c-format msgid "Unknown video codec tag: %d" msgstr "" #: lib/demux_flv.c:456 #, c-format msgid "Unknown type %d for metadata object %s" msgstr "" #: lib/demux_flv.c:679 lib/demux_flv.c:720 #, c-format msgid "Packet size is %d (somethings wrong?)" msgstr "" #: lib/demux_flv.c:902 msgid "Zero flags detected, assuming audio and video (might fail)" msgstr "" #: lib/demux_flv.c:993 msgid "Getting duration from last timestamp failed" msgstr "" #: lib/video_png.c:55 msgid "EOF" msgstr "" #: lib/video_png.c:72 lib/video_png.c:152 lib/subread.c:431 msgid "Reading png header failed" msgstr "" #: lib/video_png.c:110 msgid "Decode png failed" msgstr "" #: lib/superindex.c:310 msgid "Detected B-pyramid, fixing possibly broken timestamps" msgstr "" #: lib/video_ffmpeg.c:459 #, c-format msgid "Got palette %d entries" msgstr "" #: lib/video_ffmpeg.c:652 msgid "Got EOF while skipping" msgstr "" #: lib/video_ffmpeg.c:860 msgid "Using VDPAU for decoding" msgstr "" #: lib/video_ffmpeg.c:1011 msgid "Could not get initial frame" msgstr "" #: lib/video_ffmpeg.c:1839 #, c-format msgid "Cannot find %s" msgstr "" #: lib/video_ffmpeg.c:2271 msgid "Unsupported pixelformat for postprocessing" msgstr "" #: lib/video_aviraw.c:175 lib/video_tga.c:125 #, c-format msgid "Palette size changed %d -> %d" msgstr "" #: lib/video_aviraw.c:220 #, c-format msgid "Palette too small %d < 2" msgstr "" #: lib/video_aviraw.c:227 #, c-format msgid "Palette too small %d < 16" msgstr "" #: lib/video_aviraw.c:243 #, c-format msgid "Palette too small %d < 256" msgstr "" #: lib/video_aviraw.c:271 #, c-format msgid "Unsupported depth: %d" msgstr "" #: lib/qt_wave.c:80 msgid "Skipping remainder of broken wave atom" msgstr "" #: lib/audio.c:64 #, c-format msgid "No audio parser found for fourcc %c%c%c%c (0x%08x)" msgstr "" #: lib/audio.c:78 msgid "EOF while initializing audio parser" msgstr "" #: lib/audio.c:93 lib/video.c:131 msgid "EOF while getting start time" msgstr "" #: lib/audio.c:99 #, c-format msgid "Got initial audio timestamp: %s" msgstr "" #: lib/audio.c:114 #, c-format msgid "No audio decoder found for WAV ID 0x%04x" msgstr "" #: lib/audio.c:333 lib/video.c:369 #, c-format msgid "Cannot skip backwards: Stream time: %s skip time: %s difference: %s" msgstr "" #: lib/audio.c:344 #, c-format msgid "Skipping %s samples" msgstr "" #: lib/audio.c:470 #, c-format msgid "Cannot output compressed audio stream %d: Unsupported codec" msgstr "" #: lib/audio.c:477 #, c-format msgid "Cannot output compressed audio stream %d: Global header missing" msgstr "" #: lib/audio.c:484 #, c-format msgid "Cannot output compressed audio stream %d: No bitrate specified" msgstr "" #: lib/demux_thp.c:140 lib/demux_dxa.c:88 msgid "Cannot decode from nonseekable source" msgstr "" #: lib/video_tga.c:143 #, c-format msgid "Setting palette %d entries" msgstr "" #: lib/video_tga.c:176 #, c-format msgid "tga_read_from_memory failed: %s (%d bytes)" msgstr "" #: lib/video_tga.c:215 #, c-format msgid "Cannot detect image type: %d" msgstr "" #: lib/in_dvd.c:115 lib/in_dvd.c:131 #, c-format msgid "Opening vts %d failed" msgstr "" #: lib/in_dvd.c:139 #, c-format msgid "Opening IFO for vts %d failed" msgstr "" #: lib/in_dvd.c:426 msgid "Detected still cell" msgstr "" #: lib/in_dvd.c:703 msgid "DVDOpen failed" msgstr "" #: lib/in_dvd.c:719 msgid "ifoOpen failed" msgstr "" #: lib/in_dvd.c:818 lib/in_dvd.c:1086 #, c-format msgid "Reading NAV packet at sector %d failed" msgstr "" #: lib/in_dvd.c:911 #, c-format msgid "Reading blocks at %d failed" msgstr "" #: lib/in_dvd.c:1261 #, c-format msgid "Cannot open DVD Device %s" msgstr "" #: lib/mpv_header.c:291 msgid "Cannot read sequence header: missing marker bit" msgstr "" #: lib/mpv_header.c:359 #, c-format msgid "Cannot read picture header: Invalid coding type %d" msgstr "" #: lib/demux_smaf.c:108 msgid "MIDI like files not supported" msgstr "" #: lib/demux_smaf.c:122 lib/demux_smaf.c:182 #, c-format msgid "Unsupported SMAF chunk (%c%c%c%c)" msgstr "" #: lib/demux_smaf.c:157 msgid "Invalid samplerate" msgstr "" #: lib/rtpbuffer.c:299 msgid "Dropping obsolete packet" msgstr "" #: lib/rtpbuffer.c:310 msgid "Dropping duplicate packet" msgstr "" #: lib/rtpbuffer.c:374 #, c-format msgid "% packet(s) missing" msgstr "" #: lib/subread.c:402 lib/subread.c:572 msgid "yml node has no start attribute" msgstr "" #: lib/subread.c:412 msgid "yml node has no filename attribute" msgstr "" #: lib/subread.c:418 #, c-format msgid "Reading file %s failed" msgstr "" #: lib/subread.c:426 #, c-format msgid "Reading png header failed: %s" msgstr "" #: lib/subread.c:446 msgid "Overlay too large" msgstr "" #: lib/subread.c:460 #, c-format msgid "Parsing time string %s failed" msgstr "" #: lib/subread.c:517 msgid "Parsing spumux file failed" msgstr "" #: lib/subread.c:583 msgid "Error parsing start attribute" msgstr "" #: lib/demux_roq.c:102 msgid "Cannot play Roq files from nonseekable source" msgstr "" #: lib/demux_roq.c:139 #, c-format msgid "Unknown Roq chunk %04x" msgstr "" #: lib/demux_roq.c:244 msgid "No CODEBOOK chunk before VQ chunk" msgstr "" #: lib/demux_roq.c:289 #, c-format msgid "Unknown chunk %04x" msgstr "" #: lib/parse_mpv.c:250 msgid "Bogus picture header or broken frame" msgstr "" #: lib/parse_mpv.c:266 msgid "Detected Intra slice refresh" msgstr "" #: lib/video_theora.c:70 msgid "Theora codec requires extradata" msgstr "" #: lib/video_theora.c:89 #, c-format msgid "Parsing header packet %d failed" msgstr "" #: lib/video_theora.c:161 #, c-format msgid "Unknown pixelformat %d" msgstr "" #: lib/subovl_dvd.c:277 #, c-format msgid "Unknown command %02x, decoding is doomed to failure" msgstr "" #: lib/video.c:78 #, c-format msgid "No video parser found for fourcc %c%c%c%c (0x%08x)" msgstr "" #: lib/video.c:91 msgid "EOF while initializing video parser" msgstr "" #: lib/video.c:103 msgid "EOF while initializing frametype detector" msgstr "" #: lib/video.c:117 msgid "EOF while initializing packet timer" msgstr "" #: lib/video.c:137 #, c-format msgid "Got initial video timestamp: %s" msgstr "" #: lib/video.c:318 msgid "Skipping packet while waiting for keyframe" msgstr "" #: lib/video.c:789 msgid "Video compression format needs pixelformat for compressed output" msgstr "" #: lib/video.c:828 msgid "Video compression format needs bitrate for compressed output" msgstr "" #: lib/utils.c:399 #, c-format msgid "recv failed: %s" msgstr "" #: lib/utils.c:559 #, c-format msgid "Created directory %s" msgstr "" #: lib/demux_wve.c:94 msgid "No PT header found" msgstr "" #: lib/demux_wve.c:131 msgid "Unknown audio compression type" msgstr "" #: lib/demux_wve.c:152 #, c-format msgid "Unknown audio header element 0x%02x: 0x%08x" msgstr "" #: lib/demux_wve.c:165 #, c-format msgid "Unknown header element 0x%02x: 0x%08x" msgstr "" #: lib/r_asx.c:189 msgid "Parse asx failed (yml error)" msgstr "" #: lib/r_asx.c:197 msgid "Parse asx failed" msgstr "" #: lib/demux_psxstr.c:115 #, c-format msgid "Invalid channel number %d" msgstr "" #: lib/video_xadll.c:317 #, c-format msgid "Cannot open dll %s: %s" msgstr "" #: lib/video_xadll.c:325 #, c-format msgid "failed to init %s" msgstr "" #: lib/video_xadll.c:332 msgid "initializer function failed" msgstr "" #: lib/video_xadll.c:337 #, c-format msgid "Unsupported api revision (%d)" msgstr "" #: lib/video_xadll.c:344 msgid "function table error" msgstr "" #: lib/video_xadll.c:379 msgid "Codec not supported" msgstr "" #: lib/video_xadll.c:469 lib/video_real.c:93 #, c-format msgid "Cannot find file %s, disabling %s" msgstr "" #: lib/http.c:93 lib/mms.c:598 lib/mms.c:666 msgid "Remote end closed connection" msgstr "" #: lib/http.c:220 msgid "Reading response failed" msgstr "" #: lib/http.c:287 lib/in_ftp.c:163 msgid "Unvalid URL" msgstr "" #: lib/http.c:407 msgid "Got redirection but no URL" msgstr "" #: lib/demux_mxf.c:319 msgid "Clip wrapped tracks with nonconstant framesize not supported" msgstr "" #: lib/demux_mxf.c:322 msgid "Custom wrapping not supported" msgstr "" #: lib/demux_mxf.c:325 msgid "Unknown wrapping" msgstr "" #: lib/demux_mxf.c:356 msgid "Rounding fractional audio samplerate" msgstr "" #: lib/demux_mxf.c:592 #, c-format msgid "Couldn't find partition for source package %d" msgstr "" #: lib/demux_mxf.c:618 msgid "Parsing MXF file failed, please report" msgstr "" #: lib/demux_mxf.c:632 msgid "Unsupported MXF type, please report" msgstr "" #: lib/demuxer.c:246 lib/demuxer.c:256 lib/demuxer.c:269 #: lib/demux_ffmpeg.c:201 #, c-format msgid "Detected %s format" msgstr "" #: lib/demuxer.c:291 #, c-format msgid "Detected %s format after skipping %d bytes" msgstr "" #: lib/demuxer.c:357 #, c-format msgid "Removing audio stream %d (no packets found)" msgstr "" #: lib/demuxer.c:372 #, c-format msgid "Removing video stream %d (no packets found)" msgstr "" #: lib/demuxer.c:478 msgid "Non interleaved file from non seekable source" msgstr "" #: lib/demux_vivo.c:301 #, c-format msgid "Unknown extended header: %s" msgstr "" #: lib/demux_vivo.c:323 #, c-format msgid "Unknown timestamp type: %s" msgstr "" #: lib/demux_vivo.c:578 msgid "Unknown packet type" msgstr "" #: lib/fileindex.c:728 #, c-format msgid "Removing %s to keep maximum cache size" msgstr "" #: lib/fileindex.c:1239 msgid "Building file index failed" msgstr "" #: lib/fileindex.c:1245 #, c-format msgid "Built file index in %.2f seconds" msgstr "" #: lib/demux_voc.c:233 #, c-format msgid "Skipping %d bytes of chunk type %02x" msgstr "" #: lib/demux_dxa.c:107 msgid "File contains zero frames" msgstr "" #: lib/demux_aiff.c:304 #, c-format msgid "%d bit aiff not supported" msgstr "" #: lib/demux_aiff.c:346 #, c-format msgid "Compression %c%c%c%c not supported" msgstr "" #: lib/qt_udta.c:111 msgid "Skipping garbage in udta atom" msgstr "" #: lib/demux_mpegps.c:713 #, c-format msgid "Unknown ID %02x in private stream 1" msgstr "" #: lib/demux_mpegps.c:796 #, c-format msgid "Unknown PES ID %02x" msgstr "" #: lib/parse_flac.c:68 msgid "Corrupted flac header" msgstr "" #: lib/video_libmpeg2.c:397 msgid "Detected change of image size, not handled yet" msgstr "" #: lib/video_libmpeg2.c:405 #, c-format msgid "Detected change of pixel aspect ratio: %dx%d" msgstr "" #: lib/video_libmpeg2.c:427 msgid "Detected MPEG still image" msgstr "" #: lib/video_real.c:213 lib/audio_real.c:213 #, c-format msgid "Could not open DLL %s %s" msgstr "" #: lib/video_real.c:244 #, c-format msgid "DLL %s is not ok: %s" msgstr "" #: lib/video_real.c:261 msgid "Init codec failed" msgstr "" #: lib/video_real.c:289 msgid "rvyuv_custom_message failed" msgstr "" #: lib/video_real.c:340 msgid "Decoding failed" msgstr "" #: lib/vdpau.c:111 #, c-format msgid "Creating surface failed: %s\n" msgstr "" #: lib/vdpau.c:138 #, c-format msgid "Creating decoder failed: %s\n" msgstr "" #: lib/vdpau.c:164 #, c-format msgid "Decoding image failed: %s\n" msgstr "" #: lib/vdpau.c:194 #, c-format msgid "Get surface bits failed: %s\n" msgstr "" #: lib/demux_nsv.c:513 msgid "" "Seeking with verison 2 TOC not support due to lack of sample files.\n" "Contact the authors to solve this" msgstr "" #: lib/audio_flac.c:223 msgid "FLAC decoder needs 42 bytes extradata" msgstr "" #: lib/audio_flac.c:243 msgid "Reading metadata failed" msgstr "" #: lib/audio_speex.c:62 msgid "Speex needs extradata" msgstr "" #: lib/demux_ffmpeg.c:690 msgid "avformat_open_input failed" msgstr "" #: lib/demux_ffmpeg.c:698 msgid "av_open_input_stream failed" msgstr "" #: lib/demux_ffmpeg.c:710 msgid "avformat_find_stream_info failed" msgstr "" #: lib/demux_ffmpeg.c:717 msgid "av_find_stream_info failed" msgstr "" #: lib/demux_4xm.c:478 #, c-format msgid "Unknown Chunk %c%c%c%c" msgstr "" #: lib/rtp.c:971 msgid "Joining RTP thread..." msgstr "" #: lib/rtp.c:975 msgid "Joined RTP thread" msgstr "" #: lib/rtp.c:1148 msgid "Interleaved MPEG-4 audio not supported yet" msgstr "" #: lib/rtp.c:1185 msgid "No audio mode for mpeg4-generic" msgstr "" #: lib/rtp.c:1199 #, c-format msgid "Unknown audio mode for mpeg4-generic: %s" msgstr "" #: lib/rtp.c:1207 msgid "Interleaved audio not yet supported for mpeg4-generic" msgstr "" #: lib/rtp.c:1214 msgid "No sizelength for mpeg4-generic" msgstr "" #: lib/rtp.c:1223 msgid "No indexlength for mpeg4-generic" msgstr "" #: lib/rtp.c:1232 msgid "No indexdeltalength for mpeg4-generic" msgstr "" #: lib/mms.c:254 #, c-format msgid "Sequence number mismatch, expected %d, got %d" msgstr "" #: lib/mms.c:373 #, c-format msgid "Unknown data: %02x %02x %02x %02x %02x %02x %02x %02x" msgstr "" #: lib/mms.c:436 #, c-format msgid "Invalid URL: %s" msgstr "" #: lib/mms.c:464 lib/tcp.c:182 msgid "Cannot set nonblocking mode" msgstr "" #: lib/mms.c:495 msgid "Cannot get software version number and stuff" msgstr "" #: lib/mms.c:504 #, c-format msgid "Invalid answer 1 %08x %08x" msgstr "" #: lib/mms.c:568 lib/mms.c:689 msgid "Next packet failed" msgstr "" #: lib/mms.c:578 msgid "Protocol not supported" msgstr "" #: lib/mms.c:583 #, c-format msgid "Got answer: %d" msgstr "" #: lib/mms.c:605 msgid "Next packet failed 2" msgstr "" #: lib/mms.c:610 #, c-format msgid "Invalid answer 2 %08x" msgstr "" #: lib/mms.c:616 msgid "Passwords not supported" msgstr "" #: lib/mms.c:622 #, c-format msgid "Invalid answer 3: %d" msgstr "" #: lib/mms.c:631 #, c-format msgid "Request not accepted %08x" msgstr "" #: lib/mms.c:678 msgid "Invalid answer 4" msgstr "" #: lib/mms.c:697 msgid "Read header failed" msgstr "" #: lib/parse_vorbis.c:98 lib/audio_vorbis.c:406 msgid "No extradata found" msgstr "" #: lib/parse_vorbis.c:111 lib/audio_vorbis.c:419 #, c-format msgid "Truncated vorbis header %d" msgstr "" #: lib/parse_vorbis.c:125 lib/audio_vorbis.c:433 #, c-format msgid "Packet %d is not a vorbis header" msgstr "" #: lib/demux_mpegts.c:194 #, c-format msgid "Detected pts wrap (%s < %s)" msgstr "" #: lib/demux_mpegts.c:256 #, c-format msgid "Skipped discontinuity %d bytes" msgstr "" #: lib/demux_mpegts.c:317 #, c-format msgid "Lost sync % bytes before file end\n" msgstr "" #: lib/demux_mpegts.c:324 msgid "Lost sync\n" msgstr "" #: lib/demux_mpegts.c:333 msgid "Too many transport errors" msgstr "" #: lib/demux_mpegts.c:336 msgid "Transport error" msgstr "" #: lib/demux_mpegts.c:584 msgid "Got discontinuities, won't get wrong durations" msgstr "" #: lib/demux_mpegts.c:670 msgid "PAT section spans multiple packets, please report" msgstr "" #: lib/demux_mpegts.c:678 msgid "PAT has multiple sections, please report" msgstr "" #: lib/demux_mpegts.c:712 msgid "Premature EOF" msgstr "" #: lib/demux_mpegts.c:725 msgid "Lost sync during initializing" msgstr "" #: lib/demux_mpegts.c:763 msgid "PMT section spans multiple packets, please report" msgstr "" #: lib/demux_mpegts.c:772 msgid "PMT has multiple sections, please report" msgstr "" #: lib/demux_mpegts.c:1105 msgid "Cannot get packet size" msgstr "" #: lib/demux_mpegts.c:1109 #, c-format msgid "Packet size: %d" msgstr "" #: lib/demux_mpegts.c:1217 msgid "Could not get program durations, seeking disabled" msgstr "" #: lib/demux_mpegts.c:1474 #, c-format msgid "Next PCR wrap in %s" msgstr "" #: lib/in_dvb_linux.c:257 #, c-format msgid "Setting channel failed: %s" msgstr "" #: lib/in_dvb_linux.c:274 msgid "Setting channel failed: Event queue overflow" msgstr "" #: lib/in_dvb_linux.c:280 msgid "Setting frequency failed" msgstr "" #: lib/in_dvb_linux.c:301 #, c-format msgid "Reading status failed: %s" msgstr "" #: lib/in_dvb_linux.c:309 msgid "Waiting for lock" msgstr "" #: lib/in_dvb_linux.c:314 msgid "Locking timed out" msgstr "" #: lib/in_dvb_linux.c:318 msgid "Frontend locked successfully" msgstr "" #: lib/in_dvb_linux.c:356 #, c-format msgid "Setting PAT filter failed: %s" msgstr "" #: lib/in_dvb_linux.c:365 msgid "Parsing PAT failed" msgstr "" #: lib/in_dvb_linux.c:390 #, c-format msgid "Cannot find service ID %d in PAT (recreate channels.conf)" msgstr "" #: lib/in_dvb_linux.c:405 #, c-format msgid "Setting PMT filter failed: %s" msgstr "" #: lib/in_dvb_linux.c:415 msgid "Parsing PMT failed" msgstr "" #: lib/in_dvb_linux.c:483 #, c-format msgid "Channel cache %s cannot be opened: %s" msgstr "" #: lib/in_dvb_linux.c:523 msgid "Channel cache older than channels.conf" msgstr "" #: lib/in_dvb_linux.c:759 #, c-format msgid "Cannot open frontend device %s: %s" msgstr "" #: lib/in_dvb_linux.c:766 msgid "Cannot get frontend info" msgstr "" #: lib/in_dvb_linux.c:775 msgid "Cannot get frontend status" msgstr "" #: lib/in_dvb_linux.c:791 msgid "Found no channels.conf file" msgstr "" #: lib/in_dvb_linux.c:803 msgid "Regenerating channel cache" msgstr "" #: lib/in_dvb_linux.c:817 msgid "Using channel cache" msgstr "" #: lib/in_dvb_linux.c:1174 lib/in_dvb_linux.c:1195 msgid "Reading timed out (check cable connections)" msgstr "" #: lib/in_dvb_linux.c:1186 #, c-format msgid "poll failed: %s" msgstr "" #: lib/in_dvb_linux.c:1204 #, c-format msgid "read failed: %s" msgstr "" #: lib/in_dvb_linux.c:1229 #, c-format msgid "Setting pes filter failed: %s" msgstr "" #: lib/in_dvb_linux.c:1249 #, c-format msgid "Setting section filter failed: %s" msgstr "" #: lib/in_dvb_linux.c:1402 #, c-format msgid "Setting section filter buffer failed: %s" msgstr "" #: lib/in_dvb_linux.c:1412 msgid "Filters initialized successfully" msgstr "" #: lib/demux_musepack.c:120 msgid "Cannot decode from nonseekable sources" msgstr "" #: lib/demux_sphere.c:231 msgid "Bytes per sample is zero" msgstr "" #: lib/audio_vorbis.c:215 lib/audio_vorbis.c:254 lib/audio_vorbis.c:298 #: lib/audio_vorbis.c:334 lib/audio_vorbis.c:384 msgid "decode: vorbis_synthesis_headerin: not a vorbis header" msgstr "" #: lib/audio_vorbis.c:237 #, c-format msgid "Vorbis decoder: Init data too small (%d bytes)" msgstr "" #: lib/audio_vorbis.c:283 msgid "ext size too small" msgstr "" #: lib/audio_vorbis.c:365 msgid "No OVHS Atom found" msgstr "" #: lib/qt_atom.c:79 #, c-format msgid "Unknown atom [%c%c%c%c] at toplevel" msgstr "" #: lib/qt_atom.c:88 #, c-format msgid "Unknown atom inside [%c%c%c%c] (fourcc: [%c%c%c%c], size: %s)" msgstr "" #: lib/packettimer.c:72 msgid "Packet cache full" msgstr "" #: lib/packettimer.c:192 msgid "Detected B-Pyramid" msgstr "" #: lib/audio_pcm.c:861 lib/audio_pcm.c:944 lib/audio_pcm.c:984 #, c-format msgid "%d audio bits not supported." msgstr "" #: lib/audio_pcm.c:955 msgid "Could not get initial packet" msgstr "" #: lib/audio_pcm.c:1104 #, c-format msgid "extradata too small (%d < %zd)" msgstr "" #: lib/audio_pcm.c:1221 msgid "Unknown fourcc" msgstr "" #: lib/audio_real.c:262 lib/audio_real.c:268 msgid "raOpenCodec2 failed" msgstr "" #: lib/audio_real.c:294 msgid "raInitDecoder failed" msgstr "" #: lib/audio_real.c:304 msgid "raSetFlavor failed" msgstr "" #: lib/audio_real.c:477 msgid "raDecode failed" msgstr "" #: lib/demux_r3d.c:269 msgid "Wrong index tag (broken file)" msgstr "" #: lib/demux_r3d.c:275 msgid "Index chunk too small" msgstr "" #: lib/demux_r3d.c:284 msgid "Unexpected EOF in index" msgstr "" #: lib/demux_r3d.c:374 msgid "R3D cannot be read from nonseekable sources" msgstr "" #: lib/demux_r3d.c:386 msgid "Got no header" msgstr "" #: lib/demux_r3d.c:400 msgid "Got no footer" msgstr "" #: lib/tcp.c:139 #, c-format msgid "Cannot resolve address of %s: %s" msgstr "" #: lib/tcp.c:197 msgid "Connection timed out" msgstr "" #: lib/tcp.c:204 lib/tcp.c:215 #, c-format msgid "Connecting failed: %s" msgstr "" #: lib/tcp.c:229 msgid "Cannot set blocking mode" msgstr "" #: lib/tcp.c:257 #, c-format msgid "Could not send data: %s" msgstr "" #: lib/in_ftp.c:181 lib/in_ftp.c:218 lib/in_ftp.c:230 lib/in_ftp.c:255 #: lib/in_ftp.c:273 lib/in_ftp.c:301 lib/in_ftp.c:319 lib/in_ftp.c:341 msgid "Could not read answer" msgstr "" #: lib/in_ftp.c:283 msgid "Invalid server answer" msgstr "" #: lib/in_rtsp.c:267 #, c-format msgid "Unknown RDT chunk %02x %02x %02x %02x %02x %02x %02x %02x" msgstr "" #: lib/in_rtsp.c:333 #, c-format msgid "Real Server, challenge %s" msgstr "" #: lib/in_rtsp.c:351 msgid "QTSS Server" msgstr "" #: lib/in_rtsp.c:360 msgid "Generic RTSP code\n" msgstr "" #: lib/in_rtsp.c:426 msgid "Got smil redirector" msgstr "" #: lib/in_rtsp.c:539 #, c-format msgid "Client ports: %d %d\n" msgstr "" #: lib/in_rtsp.c:547 #, c-format msgid "Server ports: %d %d\n" msgstr "" #: lib/in_rtsp.c:581 #, c-format msgid "Server adress: %s\n" msgstr "" #: lib/in_rtsp.c:593 #, c-format msgid "ssrc: %08x\n" msgstr "" #: lib/in_rtsp.c:817 msgid "Got no RTP-Info from server" msgstr "" #: lib/in_rtsp.c:879 msgid "Got no ETag" msgstr "" #: lib/audio_qtwin32.c:149 msgid "Cannot open QuickTime.qts" msgstr "" #: lib/audio_qtwin32.c:156 msgid "Cannot open qtmlClient.dll" msgstr "" #: lib/audio_qtwin32.c:165 msgid "Getting proc address InitializeQTML failed" msgstr "" #: lib/audio_qtwin32.c:173 msgid "Getting proc address SoundConverterOpen failed" msgstr "" #: lib/audio_qtwin32.c:182 msgid "Getting proc address SoundConverterClose failed" msgstr "" #: lib/audio_qtwin32.c:190 msgid "Getting proc address TerminateQTML failed" msgstr "" #: lib/audio_qtwin32.c:198 msgid "Getting proc address SoundConverterSetInfo failed" msgstr "" #: lib/audio_qtwin32.c:206 msgid "Getting proc address SoundConverterGetBufferSizes failed" msgstr "" #: lib/audio_qtwin32.c:214 msgid "Getting proc address SoundConverterConvertBuffer1 failed" msgstr "" #: lib/audio_qtwin32.c:222 msgid "Getting proc address SoundConverterEndConversion failed" msgstr "" #: lib/audio_qtwin32.c:230 msgid "Getting proc address SoundConverterBeginConversion failed" msgstr "" #: lib/audio_qtwin32.c:236 msgid "InitializeQTML failed" msgstr "" #: lib/audio_qtwin32.c:275 msgid "SoundConverterOpen failed" msgstr "" #: lib/audio_qtwin32.c:285 msgid "SoundConverterSetInfo failed" msgstr "" #: lib/audio_qtwin32.c:302 msgid "SoundConverterBeginConversion failed" msgstr "" #: lib/audio_qtwin32.c:368 msgid "SoundConverterConvertBuffer failed" msgstr "" #: lib/audio_qtwin32.c:456 #, c-format msgid "DLL %s not found" msgstr "" #: lib/demux_asf.c:940 #, c-format msgid "unknown segment type (rlen): 0x%02X" msgstr "" #: lib/demux_asf.c:1026 #, c-format msgid "data_size %d, Offset: %d" msgstr "" gmerlin-avdecoder-1.2.0~dfsg/po/de.gmo0000644000000000000000000010325311764363527016375 0ustar rootrootÞ•pœ ëÈÉæ 0B1T†¯ÁÓê  $ + B P ` j … ¦ ¿ Ö ð !/!%H!&n!1•!Ç!ä!þ!! "9/"i"‚"",´"á"ð"##,7#d#"{#ž#-¹#3ç#/$ K$l$…$C¡$%å$& % 2%!?%%a%‡%4¥%,Ú%<&D&[&o&"ƒ&¦&Å&Û&ð& '*'F'1c'•'®'Ä'-Ü' ((4(E(e((  ( «(¶(Å( Ë(Ù(ë(û()*()S)j)‡).¡),Ð)ý)*1*E*[*_*z*Y•* ï*++(4+%]+ ƒ++ ©+$Ê+ï+, ,+=,*i,9”,/Î,8þ,77-8o-.¨-1×-) .3.B. b.n.ƒ. —.¤.¾.#Ï.ó./M /øn/g1…1Š1*œ1Ç1Ý1#ý1!212L2b2w2ˆ2¢2¹2$Í2ò2 3 363H3 [3e3ƒ3 ¡3+®3/Ú3 4)4B4R4X4l44”4!©4Ë4Þ4ó4(5'/53W5‹5$ž5Ã56×536-B6*p6›6¸6Ö6ì6(þ61'7(Y71‚7´7Ä7Û7û78.8I8Z8w8‰8&§8Î8á8ô89-9–E9\Ü949:4n:£: ¸:Æ: Ý:è:; ;; ,;(8;a;t;&;·;Ñ;í;<"<:<S<m<"‹<®<È<+è<=/=&L=s="‡=ª=$Ä=é=ù=e>-w>2¥>Ø>ö>?,/?\?u??%¨?$Î?ó?@$%@"J@m@‡@¤@+º@.æ@HA+^AŠA A²±AdBÒ„B5WCC§C·CÍCèCýCD#1DUD9iD£D#ºD=ÞDE8E+WEƒE3–E$ÊE5ïE"%FHFdF%sF™F­FÄFÙF(ïFG6G&QGxG#”G!¸GÚGøGH%&H*LH!wH ™H ¥H¯H ÃHÎHëH I.IFIWI:_IšIµI ÌI"íIJ+JGJ^JyJ‘J6ªJáJôJ KK3KBK1^KK K°KÅKÙKìKüKL*/L#ZL"~L¡LÀÁL'‚N#ªN ÎNÜNìNþNO-"OPOgOyO‹OO´OËOÝOîOôOP P 7P'BP$jPP&­P,ÔP!Q#Q4AQ4vQ&«Q;ÒQR.RIR*^R^‰RèR"S!+S*MSxSŽS ¨S ÉS9êS$T(BT!kT8T5ÆT6üT(3U'\U,„UL±U-þU',V TV+`V/ŒV¼V=ÜV.WUIWŸW»WÔW'íW0XFX"cX†X X ¾X(ßXDYMYmYˆY6¨YßY÷YZ'%Z#MZ&qZ ˜Z ¤Z°ZÇZÍZ"ãZ[ [<[4O[„[œ[¹[>Ñ[-\>\%U\{\\ Ÿ\"©\+Ì\Wø\P]l]&s]2š]Í] í]ú] ^+3^_^"u^ ˜^>¹^;ø^J4_@_IÀ_H `IS`?`BÝ`: a[a$pa•a©a¿a Øaæab+b>b Zbb{b6Þb e6e+;e1ge™e5·e+íef,fKfef}f’f¬fÉf$áfg"gi_iwi–i.®i2Ýi9jJj0dj•j=¯j9íj2'k1Zk-Œk(ºk!ãkl)l@@l)l@«lìlýl"m?m\mxm–m&°m'×m4ÿm44nin‡n&¥n'Ìn%ôn¾odÙo=>p=|pºpÊpáp þp q)q 8qCq Vq8bq›q,»q0èq$r*>r!ir'‹r ³r#Ôr$ør's0Es#vs'šs5Âsøs%t:5t pt.‘tÀt Þt ÿt uƒ+u1¯uXáu$:v)_v#‰vD­v&òvw#5w+Yw-…w³w!Ïw,ñw*x!Ix$kxx7©x<áx_y7~y¶yÊy°Þyzæ©zC{Ô{ñ{| |;|Z|w|+’|¾|=Õ|}..}G]}¥}!Å}-ç}~@,~+m~9™~)Ó~!ý~(2[p‹¥,¼é# €)-€W€$w€!œ€$¾€!ã€#&)5P.†µ ÄÒ åñ‚+‚):‚d‚‚‚?Š‚"Ê‚í‚(ƒ*.ƒ"Yƒ#|ƒ ƒ"¿ƒ ⃄2„O„a„„ „»„'Ò„0ú„+…C…[…x…”…¯…È…#è…2 †%?†%e†‹†û5»gh7ÞÜMÊì q^f2BXjmrWj)KyõÿJŽV,ëx†Yo¿4Q·'LÖƒA]>—2’Æðn©Ä[ó! ikÀt¼3gVF ÈpG._Ð@Ø1“Ó/s‡UÅ?ço9Á-D 8X;O邌](*î.áý9Ñïàè‰0(=#/C ˜B}lüm ´P1L[v)%úÝSE4¬5Š+Ë­h¹H"dâô<ˆ8°ela! 7±‘÷ÇK¥@ùz ¾Oö²¶¡µñGDW ^ÒeE¦Y+-,ÌÍ`¤Õ×i{Úf¯cTΛ¨Z$\ÃøwòæNí¢uP'œßF?…>ºŸÏ_p$É®:kA3SnªCå~*ã&dQ`#Ù<• |–I:™”½ê‹ÔRÛRš6&žäZ%aU=c¸„€"\I6J  H«³þM§Nbb;0T£%d audio bits not supported.%d bit aiff not supported1.5 Mbps (T1)10.5 Mbps (LAN)115.2 Kbps (ISDN)14.4 Kbps (Modem)19.2 Kbps (Modem)2 Palette blocks without intermediate video block262.2 Kbps (Cable/DSL)28.8 Kbps (Modem)33.6 Kbps (Modem)34.4 Kbps (Modem)393.2 Kbps (Cable/DSL)524.3 Kbps (Cable/DSL)57.6 Kbps (Modem)AVDecoder pluginAlwaysAnonymous ftp passwordAudio optionsBad ASMRuleBookBandwidthBuilding file index failedBuilt file index in %.2f secondsBytes per sample is zeroCache size (Megabytes)Cache time (milliseconds)Can't get filesizeCannot create socketCannot decode MXF file from non seekable sourceCannot decode from nonseekable sourceCannot decode from nonseekable sourcesCannot decode subtitles from stream %d (no video)Cannot detect image type: %dCannot detect stream typeCannot find %sCannot find file %s, disabling %sCannot find service ID %d in PAT (recreate channels.conf)Cannot get frontend infoCannot get frontend statusCannot get packet sizeCannot get software version number and stuffCannot open %sCannot open %s: %sCannot open DVD Device %sCannot open QuickTime.qtsCannot open VMD file from nonseekable sourceCannot open dll %s: %sCannot open frontend device %s: %sCannot open qtmlClient.dllCannot play Roq files from nonseekable sourceCannot play multirate real from non seekable sourceCannot read sequence header: missing marker bitCannot resolve address of %s: %sCannot set blocking modeCannot set nonblocking modeCannot skip backwards: Stream time: %s skip time: %s difference: %sChannel cache %s cannot be opened: %sChannel cache older than channels.confChannel fileChannels file %s cannot be openedChannels file %s cannot be opened: %sChannels file cannot be foundChannels file cannot be found (home directory unset)Chapters detected but stream is not seekableClip wrapped tracks with nonconstant framesize not supportedCodec DLL %s not foundCodec not found: %sCodec not supportedCompression %c%c%c%c not supportedConnect timeout (milliseconds)Connecting failed: %sConnection timed outControl attribute missingCould not find header partitionCould not get initial frameCould not get initial packetCould not get program durations, seeking disabledCould not open DLL %s %sCould not read answerCould not send data: %sCouldn't find partition for source package %dCreated directory %sDLL %s is not ok: %sDLL %s not foundDMO_VideoDecoder_Open failed %dDS_AudioDecoder_Open failedDS_VideoDecoder_Open failed %dDVB PlayerDVD PlayerDVDOpen failedDebugDecode failedDecode png failedDecoding failedDefault subtitle encodingDetected %s formatDetected %s format after skipping %d bytesDetected %s redirectorDetected Intra slice refreshDetected MPEG still imageDetected change of image size, not handled yetDetected change of pixel aspect ratio: %dx%dDetected multirate realDetected pts wrap (%s < %s)Detected still cellDynamic range controlEOFEOF while reading timecodeEOF while setting up trackEnable dynamic range control for codecs, which support this (currently only A52 and DTS).Enable shoutcast title streamingErrorError parsing start attributeExport date and time as timecodes for DVFLAC decoder needs 42 bytes extradataFTP OptionsFile contains zero framesFilters initialized successfullyFloating point data is not supportedFor video files onlyFound no channels.conf fileFrontend locked successfullyGetting duration from last timestamp failedGetting proc address InitializeQTML failedGetting proc address SoundConverterBeginConversion failedGetting proc address SoundConverterClose failedGetting proc address SoundConverterConvertBuffer1 failedGetting proc address SoundConverterEndConversion failedGetting proc address SoundConverterGetBufferSizes failedGetting proc address SoundConverterOpen failedGetting proc address SoundConverterSetInfo failedGetting proc address TerminateQTML failedGot answer: %dGot initial audio timestamp: %sGot no ETagGot redirected to %sGot smil redirectorHTTP OptionsHandle chapters as tracksHeader too smallHybrid coding mode is not supportedICDecompress failedICDecompressBegin failedIf building an index takes longer than the specified time, it will be cached.If the input is a regular file, gmerlin_avdecoder can scan the directory for matching subtitle files. For a file movie.mpg, possible subtitle files are e.g. movie_english.srt, movie_german.srt. The rule is, that the first part of the filename of the subtitle file must be equal to the movie filename up to the extension. Furthermore, the subtitle filename must have an extension supported by any of the subtitle readers. Subtitle seeking can be disabled, enabled for video files or enabled for all files.Incomplete multibyte sequenceInfoInit codec failedInitialization of samba failed (error: %d)InitializeQTML failedInitializing asf demuxer failedInteger point data is not supportedInvalid URL: %sInvalid answer 1 %08x %08xInvalid answer 2 %08xInvalid answer 3: %dInvalid answer 4Invalid channel number %dInvalid fourcc size %dInvalid line %d: %sInvalid mp3on4 channel configurationInvalid multibyte sequenceInvalid samplerateInvalid server answerLocking timed outLogin as anonymousLost syncLost sync during initializingMIDI like files not supportedMisc optionsMore than one chapter track, choosing firstMore than one timecode track, ignoring them allMultichannel GSM not supportedNetwork buffer size (kB)Network optionsNeverNext PCR wrap in %sNext packet failedNext packet failed 2No ASMRuleBook foundNo CODEBOOK chunk before VQ chunkNo OVHS Atom foundNo Opaque data thereNo PT header foundNo audio decoder found for WAV ID 0x%04xNo audio decoder found for WAVId 0x%04xNo audio decoder found for fourcc %c%c%c%c (0x%08x)No extradata foundNo index found, where I expected oneNo packets in movieNo subtitle decoder found for fourcc %c%c%c%c (0x%08x)No video decoder found for fourcc %c%c%c%c (0x%08x)Non interleaved file from non seekable sourceNon streamable file on non seekable sourceOpen file failed (error: %d)Opening IFO for vts %d failedOpening vts %d failedOverlay too largePAT has multiple sections, please reportPAT section spans multiple packets, please reportPMT has multiple sections, please reportPMT section spans multiple packets, please reportPacket size: %dPage has no BOS markerPalette missing or too small %dPalette too small %d < 16Palette too small %d < 2Palette too small %d < 256Parse asx failedParse asx failed (yml error)Parse smil failedParse smil failed (yml error)Parsing MXF file failed, please reportParsing PAT failedParsing PMT failedParsing spumux file failedParsing time string %s failedPasswords not supportedPlugin based on the Gmerlin avdecoder library. Supports most media formats. Playback is supported from files, URLs (with various protocols) and stdin.Plugin for playing DVB streams from a Linux-DVB compatible card. Based on Gmerlin avdecoder.Plugin for playing DVDs. Based on Gmerlin avdecoder.Plugin for playing VCDs. Based on Gmerlin avdecoder.Postprocessing levelPremature EOFProtocol not supportedProxy hostProxy needs authenticationProxy passwordProxy portProxy usernameQTSS ServerRead error while setting up chapter listRead header failedRead timeout (milliseconds)Reading NAV packet at sector %d failedReading OGM header failedReading blocks at %d failedReading file %s failedReading logical stream failedReading metadata failedReading moov atom failedReading png header failedReading png header failed: %sReading session description failedReading status failed: %sReading stream header failed %dReading timed out (check cable connections)Regenerating channel cacheRemote end closed connectionRemoving %s to keep maximum cache sizeReopening %s failedReopening input due to track resetRequest not accepted %08xRounding fractional audio samplerateSample accurateSeek external subtitlesSeeking with verison 2 TOC not support due to lack of sample files. Contact the authors to solve thisSequence number mismatch, expected %d, got %dSet the maximum total size of the cache directory.Setting PAT filter failed: %sSetting PMT filter failed: %sSetting channel failed: %sSetting channel failed: Event queue overflowSetting frequency failedSetting palette %d entriesSetting up track failedSkipped %d bytes in MPEG audio streamSkipping %d bytes of chunk type %02xSkipping %s samplesSkipping garbage in udta atomSoundConverterBeginConversion failedSoundConverterConvertBuffer failedSoundConverterOpen failedSoundConverterSetInfo failedSpeex needs extradataStarting audio decoder for stream %d failedStarting subtitle decoder for stream %d failedStarting subtitle decoder for stream %d failed (cannot get video format)Starting video decoder for stream %d failedStream number missingSubtitle OptionsThe channels file must have the format of the dvb-utils programs (like szap, tzap). If you don't set this file, several locations like $HOME/.tzap/channels.conf will be searched.Theora codec requires extradataThis sets the default encoding for text subtitles,when the original encoding is unknown. It must be a character set namerecognized by iconv. Type 'iconv -l' at the commandline for a list of supported encodings.Timecode tracks in non-seekable sources not supportedToo many transport errorsTransport errorUnable to read headerUnappropriate audio formatUncompression failedUnexpected end of file %d %dUnknown Chunk %c%c%c%cUnknown ID %02x in private stream 1Unknown PES ID %02xUnknown RDT chunk %02x %02x %02x %02x %02x %02x %02x %02xUnknown Roq chunk %04xUnknown atom [%c%c%c%c] at toplevelUnknown atom inside [%c%c%c%c] (fourcc: [%c%c%c%c], size: %s)Unknown audio codec tag: %dUnknown audio compression typeUnknown audio header element 0x%02x: 0x%08xUnknown chunk %04xUnknown command %02x, decoding is doomed to failureUnknown compression method: %c%c%c%cUnknown data: %02x %02x %02x %02x %02x %02x %02x %02xUnknown encoding for chapter namesUnknown extended header: %sUnknown fourccUnknown header element 0x%02x: 0x%08xUnknown packet typeUnknown pixelformat %dUnknown protocol: %sUnknown specifier: %cUnknown stream type "%.8s" in OGM headerUnknown stream type: %c%c%c%cUnknown timestamp type: %sUnknown type %d for metadata object %sUnknown video codec tag: %dUnsupported MXF type, please reportUnsupported SMAF chunk (%c%c%c%c)Unsupported api revision (%d)Unsupported depth: %dUnsupported encoding %dUnsupported packet header version: %dUnsupported pixelformat for postprocessingUnsupported stream (serialno: %d)Unvalid URLUse proxyUsing channel cacheVCD PlayerVideo extradata too long: %dVideo extradata too short: %dVideo optionsVorbis decoder: Init data too small (%d bytes)Waiting for lockWarningZero flags detected, assuming audio and video (might fail)acmStreamConvert failed %dacmStreamOpen error %dacmStreamPrepareHeader failed %dacmStreamUnprepareHeader failed %dav_find_stream_info failedav_open_input_stream failedcdio_close_tray failedcdio_close_tray failed: %scdio_open failed for %sdata_size %d, Offset: %ddecode: vorbis_synthesis_headerin: not a vorbis headerext size too smallfaacDecDecode failed %sfailed to init %sfunction table errorifoOpen failedinitializer function failedlength of MP4DecConfigDescrTag too short: %d < 13poll failed: %sraDecode failedraInitDecoder failedraOpenCodec2 failedraSetFlavor failedread failed: %sread_toc failed for %srvyuv_custom_message failedtga_read_from_memory failed: %s (%d bytes)unknown segment type (rlen): 0x%02Xyml node has no filename attributeyml node has no start attributeProject-Id-Version: gmerlin-avdecoder 0.1.6 Report-Msgid-Bugs-To: gmerlin-general@lists.sourceforge.net POT-Creation-Date: 2012-06-08 13:51+0200 PO-Revision-Date: 2008-08-29 22:47+0200 Last-Translator: Burkhard Plaum Language-Team: German MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %d Audio Bits werden nicht unterstützt%d Bit AIFF wird nicht unterstützt1.5 Mbps (T1)10.5 Mbps (LAN)115.2 Kbps (ISDN)14.4 Kbps (Modem)19.2 Kbps (Modem)2 Paletten Blöcke ohne Videoblock dazwischen262.2 Kbps (Kabel/DSL)28.8 Kbps (Modem)33.6 Kbps (Modem)34.4 Kbps (Modem)393.2 Kbps (Kabel/DSL)524.3 Kbps (Kabel/DSL)57.6 Kbps (Modem)AVDecoder pluginImmerPasswort für anonymen LoginAudio OptionenSchlechtes ASMRuleBookBandbreiteErstellen des Dateiindex fehlgeschlagenDateiindex in %.2f Sekunden erstelltBytes pro Abtastwert ist NullGröße des Indexspeichers (Megabytes)Zeit fürs Zwischenspeichern (Millisekunden)Kann Dateigröße nicht ermittelnKonnte keinen Socket erzeugenKann MXF nicht von nichtsuchbaren Quellen dekodierenKann dieses Format nur von suchbaren Quellen spielenKann nur von suchbaren Quellen spielenKann Untertitel von Stream %d nicht dekodieren (kein Video)Kann Bildtyp nicht erkennen: %dKann Format nicht ermittlnKann %s nicht findenKann Datei %s nicht finden, deaktiviere %sKann Service ID %d in der PAT nicht finden (Neuerzeugen der channels.conf könnte hier helfen)Kann kein Frontendinfo bekommenKann keinen Frontendstaus bekommenKann Paketgröße nicht ermittelnSoftwareversion undsoweiter nicht erhaltenKann %s nicht öffnenKann %s nicht öffnen: %sKann DVD Gerät %s nicht öffnenKann QuickTime.qts nicht öffnenKann keine VMD Dateien von nicht suchbarer Quelle spielenKann dll %s nicht öffnen: %sKann Frontendgerät %s nicht öffnen: %sKann qtmlClient.dll nicht öffnenKann keine Roqdateien von nicht suchbarer Quelle spielenKann Multirate-Real nur von suchbaren Quellen spielenKann Sequence header nicht lesen: Fehlendes Marker BitKann Adresse für %s nicht ermitteln: %sSetzen des Blockiermodus fehlgeschlagenSetzen des Nichtblockiermodus fehlgeschlagenKann nicht rückwärts springen: Streamzeit: %s, Zielzeit: %s, Differenz: %sKanalcache %s kann nicht geöffnet werden: %sKanalcache ist älter alt channels.confKanal dateiKanaldatei %s konnte nicht geöffnet werdenKanaldatei %s konnte nicht geöffnet werden: %sKanaldatei wurde nicht gefundenKanaldatei wurde nicht gefunden (Heimatverzeichnis unbekannt)Kapitel gefunden, aber Datei ist nicht suchbar"Clip wrapped" Tracks mit nichtkonstanter Bildwiederholrate werden nicht unterstütztCodec DLL %s nicht gefundenCodec nicht gefunden: %sCodec nicht unterstütztKompression %c%c%c%c nicht unterstütztMaximale Wartezeit zum Verbinden (Millisekunden)Verbinden fehlgeschlagen: %sZeitüberschreitung beim VerbindenKontrollattribut fehltKonnte Kopfpartition nicht lesenKonnte kein erstes Bild bekommenKonnte kein anfängliches Paket bekommenKonnte Spieldauern der Programme nicht ermitteln, Suchen deaktiviertKonnte DLL %s nicht öffnen: %sKonnte Antwort nicht lesenKonnte keine Daten schicken: %sKonnte keine Partition für "Source package" %d findenErzeugte Verzeichnis %sDLL %s ist nicht ok: %sDLL %s nicht gefundenDMO_VideoDecoder_Open fehlgeschlagen %dDS_AudioDecoder_Open fehlgeschlagenDS_VideoDecoder_Open fehlgeschlagen %dDVB SpielerDVD SpielerDVDOpen fehlgeschlagenDebugDecode fehlgeschlagenDekodieren des PNGs fehlgeschlagenDekodieren fehlgeschlagenZeichensatz für UntertitelFormat erkannt: %sFormat erkannt: %s (nach Überspringen von %d Bytes)Weiterleitungsdatei: %sIntra slice refresh entdecktMPEG Standbild gefundenWechselnde Bildgröße entdeckt (wird noch nicht unterstützt)Geändertes Aspektverhältnis gefunden: %dx%dMultirate-Real erkanntErkannte Umbruch der Zeitst (%s < %s)Still cell gefundenDynamikregelungDateiendeDateiende beim Lesen des TimecodesDateiende während der TrackinitialisierungBenutze Dynamikregelung für Codecs, die dies unterstützen (momentan nur A52 und DTS).Benutze shoutcast SongtitelFehlerFehler beim Parsen des StartattributesExportiere Datum und Uhrzeit als Timecodes für DVFLAC braucht 42 Byte ExtradatenFTP OptionenDatei enthält 0 RahmenFilter erfolgreich initialisiertFließkommadaten werden nicht unterstützt.Nur für VideodateienKeine channels.conf Datei gefundenFrequenz erfolgreich eingestelltErmitteln der Spieldaur vom letzten Zeitstempel fehlgeschlagenErmitteln der Prozeduradresse InitializeQTML fehlgeschlagenErmitteln der Prozeduradresse SoundConverterBeginConversion fehlgeschlagenErmitteln der Prozeduradresse SoundConverterClose fehlgeschlagenErmitteln der Prozeduradresse SoundConverterConvertBuffer1 fehlgeschlagenErmitteln der Prozeduradresse SoundConverterEndConversion fehlgeschlagenErmitteln der Prozeduradresse SoundConverterGetBufferSizes fehlgeschlagenErmitteln der Prozeduradresse SoundConverterOpen fehlgeschlagenErmitteln der Prozeduradresse SoundConverterSetInfo fehlgeschlagenErmitteln der Prozeduradresse TerminateQTML fehlgeschlagenAntwort erhalten: %dErster Audio Zeitstempel gelesen: %sKein ETag empfangenWeiterleitung nach %ssmil redirector erhaltenHTTP OptionenBehandle Kapitel wie TracksHeader zu kleinHybrid coding mode wird nicht unterstützt.ICDecompress fehlgeschlagenICDecompressBegin fehlgeschlagenWenn die Erstellung eines Index länger als die angebene Zeit dauert, wird er zwischengespeichert.Wenn eine reguläre Datei gespielt wird, kann gmerlin_avdecoder im Verzeichnisnach passenden Untertiteldateien suchen. Für eine Datei film.mpg, können mögliche Untertiteldateien z.B. film_englisch.srt oder film_deutsch.srt heißen.Die Regel ist, daß der Dateiname der Mediendatei (ohne Endung) der Untertiteldateientsprechen muß. Außerdem muß die Untertiteldatei eine Erweiterung haben, dievon einem Untertiteldekoder unterstützt wird. Das Suchen nach Untertiteln kann ganz abgeschaletet, nur für Videodateien eingeschaletet oder ganz eingeschaletet werden.Unvollständige MultibytesequenzInfoInitialisierung des Decoders fehlgeschlagenSamba Initialisierung fehlgeschlagen (Fehler: %d)InitializeQTML fehlgeschlagenInitialisierung des ASF demultiplexers fehlgeschlagenInteger point data wird nicht unterstützt.Ungültige URL: %sUngültige Antwort 1 %08x %08xUngütlige Antwort 2 %08xUngütlige Antwort 3 %dUngütlige Antwort 4Ungültige Kanalnummer %dUngültige fourcc Größe %dUngültige Zeile %d: %sUngültige mp3on4 KanalkonfigurationUngültige MultibytesequenzUngültige AbtastfrequenzUngültige ServerantwortWartezeit für Frequenzeinstellung überschrittenAnonym einloggenSynchronisation verloren.Synchronisation während der Initialisierung verlorenMIDI ähnliche Dateien sind nicht unterstützt.Verschiedene OptionenMehr als ein Kapiteltrack, nehme erstenMehr als ein Timecodetrack, ignoriere alleMehrkanal GSM ist nicht unterstütztNetzwerk Puffergröße (kB)NetzwerkNieNächster Zeitrückprung in %sKein neues Paket erhaltenKein neues Paket erhalten 2Kein ASMRuleBook gefundenKein CODEBOOK chunk vor VQ chunkKein OVHS Atom gefundenKeine binären Daten gefunden.Kein PT Header gefundenKein Audio Dekoder gefunden für WAV ID 0x%04xKein Audiodecoder für WAV-Kennung 0x%04x gefundenKein Audio Dekoder gefunden für fourcc %c%c%c%c (0x%08x)Keine Extradaten gefundenKein Index gefunden, wo ich einen erwartet hatteKeine Pakete in der DateiKein Untertiteldekoder gefunden für fourcc %c%c%c%c (0x%08x)Kein Videodekoder gefunden für Kennung %c%c%c%c (0x%08x)Nicht interleavte Datei von nicht suchbarer QuelleNicht streambare Datei von nicht suchbarer QuelleÖffnen der Datei fehlgeschlagen (Fehler: %d)Öffnen des IFO für VTS %d schlug fehl.Öffnen von vts %d fehlgeschlagenOverlay zu großPAT hat mehrere Sections, bitte berichtenPAT section erstreckt sich über mehrere Pakete, bitte berichtenPMT hat mehrere Sections, bitte berichtenPMT section erstreckt sich über mehrere Pakete, bitte berichtenPaketgröße: %dSeite hat keine BOS MarkierungPalette fehlt oder ist zu klein %dPalette ist zu klein %d < 16Palette ist zu klein %d < 2Palette ist zu klein %d < 256ASX parsen fehlgeschlagenASX parsen fehlgeschlagen (yml Fehler)Parsen der SMIL Struktur fehlgeschlagenParsen der SMIL Struktur fehlgeschlagen (yml Fehler)Parsen der MXF-Datei fehlgeschlagen, bitte berichtenParsen der PAT fehlgeschlagenParsen der PMT fehlgeschlagenParsing der Spumuxdatei fehlgeschlagenParsen der Zeitangabe %s fehlgeschlagenPasswörter werden nicht unterstütztPlugin basierend auf der gmerlin_avdecoder Bibliothel. Unterstützt die meistenMedienformate. Abgespielt werden reguläre Dateien, URLs (mit verschiedenen Protokollen)und die StandardeingabePlugin zum Abspielen von DVB streams mit Linux-DVB kompatibler HardwareBasiert auf gmerlin_avdecoderPlugin zum Abspielen von DVDs. Basiert auf Gmerlin avdecoder.Plugin zum Abspielen von VCDs. Basiert auf gmerlin_avdecoder.NachbearbeitungUnerwartetes DateiendeProtokoll nicht unterstütztProxy HostProxy braucht AuthentifizierungProxy PasswortProxy PortProxy BenutzernameQTSS ServerLesefehler während der Initialisierung der KapitellisteLesen des Kopfes fehlgeschlagenMaximale Wartezeit zum Lesen (Millisekunden)Lesen des NAV packet in Sektor %d fehlgeschlagenLesen des OGM Headers fehlgeschlagenLesen von Blocks ab Sektor %d schlug fehl.Lesen der Datei %s fehlgeschlagenLesen von logischem Stream schlug fehl.Lesen von Metadaten schlug fehl.Lesen des moov Atoms fehlgeschlagenLesen des PNG Headers fehlgeschlagenLesen vom PNG-Header fehlgeschlagen: %sSession description konnte nicht gelesen werden.Lesen des Status fehlgeschlagen: %sLesen des Dateikopfes fehlgeschlagen %dZeitüberschreitung beim Lesen (Antenne eingesteckt?)Erzeuge Kanalcache neuGegenseite hat Verbindung geschlossenLösche %s um maximale Zwischenspeichergröße zu erhaltenNeuöffnen von %s fehlgeschlagenÖffne Quelle neu (Track wurde zurückgesetzt)Anfrage nicht akzeptiert %08xRunde gebrochene AudioabtastrateSamplegenauSuche nach externen UntertitelnSuchen mit Version 2 TOC ist nicht unterstützt wegen fehlender Beispieldateien. Kontaktiere die Authoren um das Problem zu lösen.Sequenznummer passt nicht, erwartete %d, bekam %dGib die maximale Gesamtgröße des Verzeichnisses an, in dem Indizes gespeichert werden.PAT Filter setzen fehlgeschlagen: %sSetzen des PMT Filters fehlgeschlagen: %sKanal einstellen fehlgeschlagen: %sKanal einstellen fehlgeschlagen: Ereigniswarteschlange übergelaufenEinstellen der Frequenz fehlgeschlagenSetze Palette: %d EinträgeTrackinitialisierung fehlgeschlagen%d Bytes in MPEG Audio stream übersprungenÜberspringe %d bytes des Chunks vom typ %02xÜberspringe %s AbtastwerteÜberspringe Schrott in udta-AtomSoundConverterBeginConversion fehlgeschlagenSoundConverterConvertBuffer fehlgeschlagenSoundConverterOpen fehlgeschlagenSoundConverterSetInfo fehlgeschlagenSpeex braucht ExtradatenStarten des Audiodekoders für Stream %d fehlgeschlagenStarten des Untertiteldekoders für Stream %d fehlgeschlagenStarten des Untertiteldekoders für Stream %d fehlgeschlagen (kann Videoformat nicht ermitteln)Starten des Videodekoders für Stream %d fehlgeschlagenStream Nummer fehltUntertitel OptionenDie Kanal-Datei muß das format der dvb-utils (z.B. szap oder tzap) haben. Wenn Dudie Datei nicht angibst, wird sie an verschienenen Orten wie $HOME/.tzap/channels.confgesucht.Theora braucht ExtradatenStellt den Zeichensatz für Text Untertitel ein, wenn er nicht schon bekannt ist. Der Zeichensatz muß von iconv unterstützt werden. Gib 'iconv -l' an der Kommandozeile ein, um eine Liste unterstützter Zeichensätze zu bekommen.Timecode tracks in nicht suchbarer Quelle werden nicht unterstütztZu viele ÜbertragungsfehlerÜbertragungsfehlerKonnte Header nicht lesen.Unangemessenes AudioformatEntkomprimieren fehlgeschlagenUnerwartetes Dateiende %d %dUnbekannter chunk %c%c%c%cUnbekannte Kennung %02x in Private Stream 1Unbekannte PES ID %02xUnbekannter RDT chunk %02x %02x %02x %02x %02x %02x %02x %02xUnbekannter Roq chunk %04xUnbekanntes Atom [%c%c%c%c] auf oberster EbeneUnbekanntes Atom innerhalb [%c%c%c%c] (fourcc: [%c%c%c%c], Größe: %s)Unbekannter audio codec tag: %dUnbekannter Audio-KompressionstypUnbekanntes Audioheaderelement 0x%02x: 0x%08xUnbekannter chunk %04xUnbekannter Befehl %02x, dekodieren ist zum Scheitern verurteiltUnbekanntes Kompressionsverfahren: %c%c%c%cUnbekannte Daten: %02x %02x %02x %02x %02x %02x %02x %02xUnbekannter Zeichensatz für KapitelnamenUnbekanner erweiterter Header: %sUnkekannte KennungUnbekanntes Headerelement 0x%02x: 0x%08xUnbekannter PakettypUnbekanntes Pixelformat %dUnbekanntes Protokoll: %sUnbekanntes Symbol: %cUnbekannter Streamtyp \"%.8s\" in OGM headerUnbekannter Streamtyp: %c%c%c%cUnbekanner Typ für Zeitstempel: %sUnbekannter Typ %d for Metadatenobjekt %sUnbekannter video codec tag: %dUnbekannter MXF-Typ, bitte berichtenUnbekannter SMAF chunk (%c%c%c%c)Nicht unterstützte API version (%d)Nicht Unterstützte Farbtiefe: %dNicht unterstützter Zeichensatz %dNicht unterstützte Header version: %dNicht unterstütztes Pixelformat für NachbearbeitungNicht unterstützter Stream (Seriennummer: %d)Ungültige URLBenutze ProxyBenutze KanalcacheVCD SpielerVideo Extradaten zu lang: %dVideo Extradaten zu kurz: %dVideo OptionenInitialisierungsdaten zu klein (%d Bytes)Warte auf FrequenzeinstellungWarnungFlags sind 0, nehme Audio und Video an (kann in die Hose gehen)acmStreamConvert fehlgeschlagen %dacmStreamOpen Fehler %dacmStreamPrepareHeader fehlgeschlagen %dacmStreamUnprepareHeader fehlgeschlagen %dav_find_stream_info fehlgeschlagenav_open_input_stream fehlgeschlagencdio_close_tray fehlgeschlagencdio_close_tray fehlgeschlagen: %scdio_open fehlgeschlagen für %sdata_size %d, Offset: %ddecode: vorbis_synthesis_headerin: Kein Vorbiskopfext size zu kleinfaacDecDecode fehlgeschlagen %sKonnte %s nicht initialisierenFehler in FunktionstabelleifoOpen fehlgeschlagenInitialisierungsfunktion fehlgeschlagenLänge vom MP4DecConfigDescrTag zu kurz: %d < 13poll fehlgeschlagen: %sraDecode fehlgeschlagenraInitDecoder fehlgeschlagenraOpenCodec2 fehlgeschlagenraSetFlavor fehlgeschlagenLesen fehlgeschlagen: %sread_toc fehlgeschlagen für %srvyuv_custom_message fehlgeschlagentga_read_from_memory fehlgeschlagen: %s (%d bytes)Unbekannter Segmenttyp (rlen): 0x%02Xyml-Node hat kein Dateinamensattributyml-Node hat kein Startattributgmerlin-avdecoder-1.2.0~dfsg/po/en@boldquot.header0000644000000000000000000000247111764363506020724 0ustar rootroot# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # # This catalog furthermore displays the text between the quotation marks in # bold face, assuming the VT100/XTerm escape sequences. # gmerlin-avdecoder-1.2.0~dfsg/po/Makefile.in.in0000644000000000000000000003223211764363506017746 0ustar rootroot# Makefile for PO directory in any package using GNU gettext. # Copyright (C) 1995-1997, 2000-2006 by Ulrich Drepper # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU General Public # License but which still want to provide support for the GNU gettext # functionality. # Please note that the actual code of GNU gettext is covered by the GNU # General Public License and is *not* in the public domain. # # Origin: gettext-0.15 PACKAGE = @PACKAGE@ VERSION = @VERSION@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datarootdir = @datarootdir@ datadir = @datadir@ localedir = @localedir@ gettextsrcdir = $(datadir)/gettext/po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ mkinstalldirs = $(SHELL) @install_sh@ -d mkdir_p = @mkdir_p@ GMSGFMT_ = @GMSGFMT@ GMSGFMT_no = @GMSGFMT@ GMSGFMT_yes = @GMSGFMT_015@ GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) MSGFMT_ = @MSGFMT@ MSGFMT_no = @MSGFMT@ MSGFMT_yes = @MSGFMT_015@ MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) XGETTEXT_ = @XGETTEXT@ XGETTEXT_no = @XGETTEXT@ XGETTEXT_yes = @XGETTEXT_015@ XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit MSGCONV = msgconv MSGFILTER = msgfilter POFILES = @POFILES@ GMOFILES = @GMOFILES@ UPDATEPOFILES = @UPDATEPOFILES@ DUMMYPOFILES = @DUMMYPOFILES@ DISTFILES.common = Makefile.in.in remove-potcdate.sin \ $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ $(POFILES) $(GMOFILES) \ $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) POTFILES = \ CATALOGS = @CATALOGS@ # Makevars gets inserted here. (Don't remove this line!) .SUFFIXES: .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update .po.mo: @echo "$(MSGFMT) -c -o $@ $<"; \ $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ mv t-$@ $@ all: all-@USE_NLS@ all-yes: stamp-po all-no: # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because # we don't want to bother translators with empty POT files). We assume that # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. # In this case, stamp-po is a nop (i.e. a phony target). # stamp-po is a timestamp denoting the last time at which the CATALOGS have # been loosely updated. Its purpose is that when a developer or translator # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent # invocations of "make" will do nothing. This timestamp would not be necessary # if updating the $(CATALOGS) would always touch them; however, the rule for # $(POFILES) has been designed to not touch files that don't need to be # changed. stamp-po: $(srcdir)/$(DOMAIN).pot test ! -f $(srcdir)/$(DOMAIN).pot || \ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) @test ! -f $(srcdir)/$(DOMAIN).pot || { \ echo "touch stamp-po" && \ echo timestamp > stamp-poT && \ mv stamp-poT stamp-po; \ } # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', # otherwise packages like GCC can not be built if only parts of the source # have been downloaded. # This target rebuilds $(DOMAIN).pot; it is an expensive operation. # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ else \ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ fi; \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address="$$msgid_bugs_address" test ! -f $(DOMAIN).po || { \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ else \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ else \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ } # This rule has no dependencies: we don't need to update $(DOMAIN).pot at # every "make" invocation, only create it when it is missing. # Only "make $(DOMAIN).pot-update" or "make dist" will force an update. $(srcdir)/$(DOMAIN).pot: $(MAKE) $(DOMAIN).pot-update # This target rebuilds a PO file if $(DOMAIN).pot has changed. # Note that a PO file is not touched if it doesn't need to be changed. $(POFILES): $(srcdir)/$(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ else \ $(MAKE) $${lang}.po-create; \ fi install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ for file in $(DISTFILES.common) Makevars.template; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ for file in Makevars; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi install-data-no: all install-data-yes: all $(mkdir_p) $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ fi; \ done; \ done install-strip: install installdirs: installdirs-exec installdirs-data installdirs-exec: installdirs-data: installdirs-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ else \ : ; \ fi installdirs-data-no: installdirs-data-yes: $(mkdir_p) $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ fi; \ done; \ done # Define this as empty until I found a useful application. installcheck: uninstall: uninstall-exec uninstall-data uninstall-exec: uninstall-data: uninstall-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ for file in $(DISTFILES.common) Makevars.template; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi uninstall-data-no: uninstall-data-yes: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ done; \ done check: all info dvi ps pdf html tags TAGS ctags CTAGS ID: mostlyclean: rm -f remove-potcdate.sed rm -f stamp-poT rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f stamp-po $(GMOFILES) distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(MAKE) update-po @$(MAKE) dist2 # This is a separate target because 'update-po' must be executed before. dist2: stamp-po $(DISTFILES) dists="$(DISTFILES)"; \ if test "$(PACKAGE)" = "gettext-tools"; then \ dists="$$dists Makevars.template"; \ fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ dists="$$dists $(DOMAIN).pot stamp-po"; \ fi; \ if test -f $(srcdir)/ChangeLog; then \ dists="$$dists ChangeLog"; \ fi; \ for i in 0 1 2 3 4 5 6 7 8 9; do \ if test -f $(srcdir)/ChangeLog.$$i; then \ dists="$$dists ChangeLog.$$i"; \ fi; \ done; \ if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ for file in $$dists; do \ if test -f $$file; then \ cp -p $$file $(distdir) || exit 1; \ else \ cp -p $(srcdir)/$$file $(distdir) || exit 1; \ fi; \ done update-po: Makefile $(MAKE) $(DOMAIN).pot-update test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) $(MAKE) update-gmo # General rule for creating PO files. .nop.po-create: @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ exit 1 # General rule for updating PO files. .nop.po-update: @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi $(DUMMYPOFILES): update-gmo: Makefile $(GMOFILES) @: Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ cd $(top_builddir) \ && $(SHELL) ./config.status $(subdir)/$@.in po-directories force: # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gmerlin-avdecoder-1.2.0~dfsg/po/en@quot.header0000644000000000000000000000226311764363506020062 0ustar rootroot# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # gmerlin-avdecoder-1.2.0~dfsg/missing0000755000000000000000000002623311331674343016253 0ustar rootroot#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2009-04-28.21; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and \`g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; tar*) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar*) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: gmerlin-avdecoder-1.2.0~dfsg/gmerlin_avdec.pc.in0000644000000000000000000000035411764363506020406 0ustar rootrootprefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: gmerlin_avdec Description: Gmerlin avdecoder library Version: @VERSION@ Requires: gavl Libs: -L${libdir} -lgmerlin_avdec Cflags: -I${includedir} gmerlin-avdecoder-1.2.0~dfsg/cpuinfo.sh0000755000000000000000000001725111764363506016664 0ustar rootroot#!/bin/sh if test x"$CC" = x; then CC=gcc fi if test $# -ne 1; then echo "Please give the arch (ppc or x86) as an argument!" 1>&2 exit 1 fi if test `uname -s` = Darwin; then IsDarwin=yes else IsDarwin=no fi target=$1 cc_version=`$CC -dumpversion` _cc_major=`echo $cc_version | cut -d'.' -f1` _cc_minor=`echo $cc_version | cut -d'.' -f2` if test $_cc_major -ge 4; then _opt_mcpu="-mtune" elif test $_cc_major -ge 3 -a $_cc_minor -ge 4; then _opt_mcpu="-mtune" else _opt_mcpu="-mcpu" fi do_cc() { $CC -o conftest conftest.c $@ >/dev/null 2>&1 } extcheck() { cat > conftest.c < void catch() { exit(1); } int main(void){ signal(SIGILL, catch); __asm__ __volatile__ ("$1":::"memory"); exit(0); } EOF do_cc if test -x ./conftest; then ./conftest if test $? -ne 0; then return 1 fi return 0 else return 1 fi } do_x86() { CFLAGS=-O if test $IsDarwin = yes; then CFLAGS="$CFLAGS -fno-pic -Wl,-read_only_relocs -Wl,suppress" fi if test -r /proc/cpuinfo; then _cpuinfo="cat /proc/cpuinfo" else $CC $CFLAGS -o cpuinfo utils/cpuinfo.c _cpuinfo="./cpuinfo" fi # Cpu determination logic adapted from the MPlayer configure script. pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2 | head -n 1` pvendor=`$_cpuinfo | grep 'vendor_id' | cut -d':' -f2 | cut -d' ' -f2 | head -n 1` pfamily=`$_cpuinfo | grep 'cpu family' | cut -d':' -f2 | cut -d' ' -f2 | head -n 1` pmodel=`$_cpuinfo | grep -v 'model name' | grep 'model' | cut -d':' -f2 | cut -d' ' -f2 | head -n 1` pstep=`$_cpuinfo | grep 'stepping' | cut -d':' -f2 | cut -d' ' -f2 | head -n 1` pparam=`$_cpuinfo | grep 'features' | cut -d':' -f2 | head -n 1` if test -z "$pparam" ; then pparam=`$_cpuinfo | grep 'flags' | cut -d ':' -f 2 | head -n 1` fi _mmx=no _3dnow=no _3dnowex=no _mmx2=no _sse=no _sse2=no _mtrr=no for i in $pparam ; do case "$i" in 3dnow) _3dnow=yes ;; 3dnowext) _3dnow=yes _3dnowex=yes ;; mmx) _mmx=yes ;; mmxext) _mmx2=yes ;; mtrr|k6_mtrr|cyrix_arr) _mtrr=yes ;; xmm|sse|kni) _sse=yes _mmx2=yes ;; sse2) _sse2=yes ;; esac done case "$pvendor" in AuthenticAMD) case "$pfamily" in 3)proc=i386 ;; 4) proc=i486 ;; 5) iproc=586 # models are: K5/SSA5 K5 K5 K5 ? ? K6 K6 K6-2 K6-3 # K6 model 13 are the K6-2+ and K6-III+ if test "$pmodel" -eq 9 -o "$pmodel" -eq 13; then proc=k6-3 elif test "$pmodel" -ge 8; then proc=k6-2 elif test "$pmodel" -ge 6; then proc=k6 else proc=i586 fi ;; 6) iproc=686 if test "$pmodel" -ge 7; then proc=athlon-4 elif test "$pmodel" -ge 6; then if test "$_sse" = yes && test "$pstep" -ge 2; then proc=athlon-xp else proc=athlon-4 fi elif test "$pmodel" -ge 4; then proc=athlon-tbird else proc=athlon fi ;; 15) # Despite what the gcc into says 'athlon64' is not accepted as # synonym for 'k8' proc=k8 ;; *) proc=athlon-xp ;; esac ;; GenuineIntel) case "$pfamily" in 3) proc=i386 ;; 4) proc=i486 ;; 5) iproc=586 if test "$pmodel" -eq 4 || test "$pmodel" -eq 8; then proc=pentium-mmx # 4 is desktop, 8 is mobile else proc=i586 fi ;; 6) iproc=686 if test "$pmodel" -ge 15; then proc=nocona elif test "$pmodel" -ge 13; then proc=pentium-m elif test "$pmodel" -ge 7; then proc=pentium3 elif test "$pmodel" -ge 3; then proc=pentium2 else proc=i686 fi ;; 15) proc=pentium4 ;; *) proc=pentium4 ;; esac ;; unknown) case "$pfamily" in 3) proc=i386 ;; 4) proc=i486 ;; *) proc=i586 ;; esac ;; *) proc=i586 ;; esac # check that gcc supports our CPU, if not, fall back to earlier ones cat > conftest.c << EOF int main(void) { return 0; } EOF if test "$proc" = "athlon64" ; then do_cc -march=$proc $_opt_mcpu=$proc || proc=athlon-xp fi if test "$proc" = "athlon-xp" || test "$proc" = "athlon-4" || test "$proc" = "athlon-tbird"; then do_cc -march=$proc $_opt_mcpu=$proc || proc=athlon fi if test "$proc" = "k6-3" || test "$proc" = "k6-2"; then do_cc -march=$proc $_opt_mcpu=$proc || proc=k6 fi if test "$proc" = "k6"; then do_cc -march=$proc $_opt_mcpu=$proc if test $? -ne 0; then if do_cc -march=i586 $_opt_mcpu=i686; then proc=i586-i686 else proc=i586 fi fi fi if test "$proc" = "pentium4" || test "$proc" = "pentium3" || test "$proc" = "pentium2" || test "$proc" = "athlon"; then do_cc -march=$proc $_opt_mcpu=$proc || proc=i686 fi if test "$proc" = "i686" || test "$proc" = "pentium-mmx"; then do_cc -march=$proc $_opt_mcpu=$proc || proc=i586 fi if test "$proc" = "i586" ; then do_cc -march=$proc $_opt_mcpu=$proc || proc=i486 fi if test "$proc" = "i486" ; then do_cc -march=$proc $_opt_mcpu=$proc || proc=i386 fi if test "$proc" = "i386" ; then do_cc -march=$proc $_opt_mcpu=$proc || proc=error fi if test "$proc" = "error" ; then echo "Your $_cc does not even support \"i386\" for '-march' and $_opt_mcpu." _mcpu="" _march="" elif test "$proc" = "i586-i686"; then _march="-march=i586" _mcpu="$_opt_mcpu=i686" else _march="-march=$proc" _mcpu="$_opt_mcpu=$proc" fi if test $_cc_major -ge 3; then extcheck "xorps %%xmm0, %%xmm0" || _gcc3_ext="$_gcc3_ext -mno-sse" extcheck "xorpd %%xmm0, %%xmm0" || _gcc3_ext="$_gcc3_ext -mno-sse2" if test x"$_gcc3_ext" != "x"; then # if we had to disable sse/sse2 because the active kernel does not # support this instruction set extension, we also have to tell # gcc3 to not generate sse/sse2 instructions for normal C code cat > conftest.c << EOF int main(void) { return 0; } EOF do_cc $_march $_gcc3_ext && _march="$_march $_gcc3_ext" fi fi echo $_march $_mcpu rm -f conftest.c conftest cpuinfo return 0 } do_ppc() { # Linux on a PPC has /proc/info # Darwin (OS/X) has the hostinfo command # If neither of those we have no idea what to do - so do nothing. if test -r /proc/cpuinfo; then proc=`grep cpu /proc/cpuinfo | cut -d':' -f2 | cut -d',' -f1 | cut -b 2- | head -n 1` elif test $IsDarwin = yes; then proc=`hostinfo | grep "Processor type" | cut -f3 -d' ' | sed 's/ppc//'` else return 0 fi case "$proc" in 601) _march="$_opt_mcpu=601" _mcpu='-mtune=601' ;; 603) _march="$_opt_mcpu=603" _mcpu='-mtune=603' ;; 603e|603ev) _march="$_opt_mcpu=603e" _mcpu='-mtune=603e' ;; 604|604e|604r|604ev) _march="$_opt_mcpu=604" _mcpu='-mtune=604' ;; 740|740/750|745/755) _march="$_opt_mcpu=740" _mcpu='-mtune=740' ;; 750|750CX) _march="$_opt_mcpu=750" _mcpu='-mtune=750' ;; *) ;; esac # gcc 3.1(.1) and up supports 7400 and 7450 if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "1" || test "$_cc_major" -ge "4"; then case "$proc" in 7400*|7410*) _march="$_opt_mcpu=7400" _mcpu='-mtune=7400' ;; 7450*|7455*) _march="$_opt_mcpu=7450" _mcpu='-mtune=7450' ;; *) ;; esac fi # gcc 3.2 and up supports 970 if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3" || test "$_cc_major" -ge "4"; then case "$proc" in 970*) if test $IsDarwin = yes; then _march="$_opt_mcpu=G5 -mpowerpc64 -mpowerpc-gpopt -falign-loops=16" _mcpu='-mtune=G5' else _march="$_opt_mcpu=970" _mcpu='-mtune=970' fi ;; *) ;; esac fi echo $_march $_mcpu return 0 } # # The script that runs the various functions above # if test $target = x86; then do_x86 elif test $target = ppc; then do_ppc fi gmerlin-avdecoder-1.2.0~dfsg/install-sh0000755000000000000000000003253711331674343016664 0ustar rootroot#!/bin/sh # install - install a program, script, or datafile scriptversion=2009-04-28.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then trap '(exit $?); exit' 1 2 13 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names starting with `-'. case $src in -*) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # Protect names starting with `-'. case $dst in -*) dst=./$dst;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; -*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test -z "$d" && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: gmerlin-avdecoder-1.2.0~dfsg/Makefile.in0000644000000000000000000007010111764363515016720 0ustar rootroot# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/gmerlin_avdec.pc.in \ $(srcdir)/gmerlin_avdec.spec.in $(top_srcdir)/configure \ ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS config.guess \ config.rpath config.sub depcomp install-sh ltmain.sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/avcodec.m4 \ $(top_srcdir)/m4/avformat.m4 $(top_srcdir)/m4/check_funcs.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/lqt_opt_cflags.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = gmerlin_avdec.spec gmerlin_avdec.pc CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(pkgconfigdir)" DATA = $(pkgconfig_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = lib plugins tests include m4 po utils doc DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d "$(distdir)" \ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr "$(distdir)"; }; } am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVCODEC_CFLAGS = @AVCODEC_CFLAGS@ AVCODEC_LIBS = @AVCODEC_LIBS@ AVCODEC_REQUIRED = @AVCODEC_REQUIRED@ AVFORMAT_CFLAGS = @AVFORMAT_CFLAGS@ AVFORMAT_LIBS = @AVFORMAT_LIBS@ AVFORMAT_REQUIRED = @AVFORMAT_REQUIRED@ AWK = @AWK@ BGAV_VERSION = @BGAV_VERSION@ BGAV_VERSION_MAJOR = @BGAV_VERSION_MAJOR@ BGAV_VERSION_MICRO = @BGAV_VERSION_MICRO@ BGAV_VERSION_MINOR = @BGAV_VERSION_MINOR@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CDIO_CFLAGS = @CDIO_CFLAGS@ CDIO_LIBS = @CDIO_LIBS@ CDIO_REQUIRED = @CDIO_REQUIRED@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DCA_CFLAGS = @DCA_CFLAGS@ DCA_LIBS = @DCA_LIBS@ DCA_REQUIRED = @DCA_REQUIRED@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOXYGEN = @DOXYGEN@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DVDREAD_CFLAGS = @DVDREAD_CFLAGS@ DVDREAD_LIBS = @DVDREAD_LIBS@ DVDREAD_REQUIRED = @DVDREAD_REQUIRED@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FAAD2_CFLAGS = @FAAD2_CFLAGS@ FAAD2_LIBS = @FAAD2_LIBS@ FAAD2_REQUIRED = @FAAD2_REQUIRED@ FGREP = @FGREP@ FLAC_CFLAGS = @FLAC_CFLAGS@ FLAC_LIBS = @FLAC_LIBS@ FLAC_REQUIRED = @FLAC_REQUIRED@ GAVL_CFLAGS = @GAVL_CFLAGS@ GAVL_LIBS = @GAVL_LIBS@ GAVL_REQUIRED = @GAVL_REQUIRED@ GMERLIN_CFLAGS = @GMERLIN_CFLAGS@ GMERLIN_DEP_LIBS = @GMERLIN_DEP_LIBS@ GMERLIN_LIBS = @GMERLIN_LIBS@ GMERLIN_PLUGIN_LDFLAGS = @GMERLIN_PLUGIN_LDFLAGS@ GMERLIN_REQUIRED = @GMERLIN_REQUIRED@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ ICONV_LIBS = @ICONV_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBA52_CFLAGS = @LIBA52_CFLAGS@ LIBA52_LIBS = @LIBA52_LIBS@ LIBA52_REQUIRED = @LIBA52_REQUIRED@ LIBBGAV_CFLAGS = @LIBBGAV_CFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMPEG2_CFLAGS = @LIBMPEG2_CFLAGS@ LIBMPEG2_LIBS = @LIBMPEG2_LIBS@ LIBMPEG2_REQUIRED = @LIBMPEG2_REQUIRED@ LIBOBJS = @LIBOBJS@ LIBPOSTPROC_CFLAGS = @LIBPOSTPROC_CFLAGS@ LIBPOSTPROC_LIBS = @LIBPOSTPROC_LIBS@ LIBPOSTPROC_REQUIRED = @LIBPOSTPROC_REQUIRED@ LIBS = @LIBS@ LIBSWSCALE_CFLAGS = @LIBSWSCALE_CFLAGS@ LIBSWSCALE_LIBS = @LIBSWSCALE_LIBS@ LIBSWSCALE_REQUIRED = @LIBSWSCALE_REQUIRED@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTVERSION_AGE = @LTVERSION_AGE@ LTVERSION_CURRENT = @LTVERSION_CURRENT@ LTVERSION_REVISION = @LTVERSION_REVISION@ MAD_CFLAGS = @MAD_CFLAGS@ MAD_LIBS = @MAD_LIBS@ MAD_REQUIRED = @MAD_REQUIRED@ MAKEINFO = @MAKEINFO@ MJPEGTOOLS_CFLAGS = @MJPEGTOOLS_CFLAGS@ MJPEGTOOLS_LIBS = @MJPEGTOOLS_LIBS@ MJPEGTOOLS_REQUIRED = @MJPEGTOOLS_REQUIRED@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MUSEPACK_CFLAGS = @MUSEPACK_CFLAGS@ MUSEPACK_LIBS = @MUSEPACK_LIBS@ MUSEPACK_REQUIRED = @MUSEPACK_REQUIRED@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ OGG_REQUIRED = @OGG_REQUIRED@ OPENJPEG_CFLAGS = @OPENJPEG_CFLAGS@ OPENJPEG_LIBS = @OPENJPEG_LIBS@ OPENJPEG_REQUIRED = @OPENJPEG_REQUIRED@ OPT_CFLAGS = @OPT_CFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ PNG_REQUIRED = @PNG_REQUIRED@ POSUB = @POSUB@ RANLIB = @RANLIB@ REALDLL_LIBS = @REALDLL_LIBS@ SAMBA_CFLAGS = @SAMBA_CFLAGS@ SAMBA_LIBS = @SAMBA_LIBS@ SAMBA_REQUIRED = @SAMBA_REQUIRED@ SCHROEDINGER_CFLAGS = @SCHROEDINGER_CFLAGS@ SCHROEDINGER_LIBS = @SCHROEDINGER_LIBS@ SCHROEDINGER_REQUIRED = @SCHROEDINGER_REQUIRED@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ SPEEX_REQUIRED = @SPEEX_REQUIRED@ STRIP = @STRIP@ THEORADEC_CFLAGS = @THEORADEC_CFLAGS@ THEORADEC_LIBS = @THEORADEC_LIBS@ THEORADEC_REQUIRED = @THEORADEC_REQUIRED@ TIFF_CFLAGS = @TIFF_CFLAGS@ TIFF_LIBS = @TIFF_LIBS@ TIFF_REQUIRED = @TIFF_REQUIRED@ TOP_SRCDIR = @TOP_SRCDIR@ USE_NLS = @USE_NLS@ VDPAU_CFLAGS = @VDPAU_CFLAGS@ VDPAU_LIBS = @VDPAU_LIBS@ VDPAU_REQUIRED = @VDPAU_REQUIRED@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ VORBIS_REQUIRED = @VORBIS_REQUIRED@ W32_NO_OPTIMIZE = @W32_NO_OPTIMIZE@ XADLL_LIBS = @XADLL_LIBS@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_LIBS = @X_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gmerlin_plugindir = @gmerlin_plugindir@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ w32_path = @w32_path@ # aclocal Path ACLOCAL_AMFLAGS = -I m4 @HAVE_GMERLIN_FALSE@gmerlin_subdirs = @HAVE_GMERLIN_TRUE@gmerlin_subdirs = plugins @HAVE_DOXYGEN_FALSE@DOC_SUBDIRS = @HAVE_DOXYGEN_TRUE@DOC_SUBDIRS = doc SUBDIRS = lib $(gmerlin_subdirs) tests include m4 po utils $(DOC_SUBDIRS) pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = gmerlin_avdec.pc EXTRA_DIST = config.rpath autogen.sh cvs_clean.sh gmerlin_avdec.pc.in gmerlin_avdec.spec.in cpuinfo.sh make_potfiles all: all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): gmerlin_avdec.spec: $(top_builddir)/config.status $(srcdir)/gmerlin_avdec.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ gmerlin_avdec.pc: $(top_builddir)/config.status $(srcdir)/gmerlin_avdec.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(pkgconfigdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-pkgconfigDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-pkgconfigDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-generic distclean-libtool \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-pkgconfigDATA install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-pkgconfigDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gmerlin-avdecoder-1.2.0~dfsg/INSTALL0000644000000000000000000000462511764363506015714 0ustar rootroot 1. Requirements First of all: The only required library is gavl, which can be downloaded from the gmerlin website. All other libraries are OPTIONAL, i.e. the configure script will search for them and use them, if they are found. The more libraries you have, the more files you can play, e.g. if you really don't want to decode AAC streams, you can skip the installation of faad2 and everything will be fine for you. The website (http://gmerlin.sf.net/avdec.html) lists all packages, which can be used by gmerlin_avdecoder. At the very end, the configure script prints out a summary of the packages it found. If you want to install the gmerlin plugins, you also need to install gmerlin before compiling gmerlin_avdecoder. If you installed a library but it wasn't found by the configure script, the error is in 99% of the cases one of the following: - A binary package (e.g. rpm) was installed but not the development package (e.g. for libfoo-1.2.3-4.i386.rpm you also need libfoo-devel-1.2.3-4.i386.rpm) - The path where the libraries got installed (usually /usr/local/bin for source packages) is missing in the file /etc/ld.so.conf. This is the case e.g. on Fedora Core 3. Add the path there, run /sbin/ldconfig as root and everything should work. - After installation of the library, /sbin/ldconfig wasn't called - The package wasn't found, because the environment variable PKG_CONFIG_PATH is not properly set. Typing export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig before calling configure helps in most cases. If all these tips don't help, attach the file config.log to an email and send it to gmerlin-general@lists.sourceforge.net. 2. Compilation Nothing special here. It's the usual procedure: ./configure make su make install The configure script supports some command line options, type ./configure --help to see them. 3. Binary codecs You can install some binary dlls. They can be obtained from the MPlayer codec page (http://www1.mplayerhq.hu/MPlayer/releases/codecs/). Get the file all-YYYYMMDD.tar.bz2 where YYYYMMDD is some date string (get the latest one). Unpack them in a directory of your choice. Then you must tell gmerlin_avdecoder where to find the libraries. In gmerlin, you can do this via the plugin dialogs for the Avdecoder plugin. An alternative is to set some environment variables. For each dll, gmerlin_avdecoder cannot find, it will print instructions on the console. gmerlin-avdecoder-1.2.0~dfsg/doc/0000755000000000000000000000000011764363527015424 5ustar rootrootgmerlin-avdecoder-1.2.0~dfsg/doc/gavl.tags0000644000000000000000000111134711764363501017235 0ustar rootroot index index why intro advantages solution problem gavl.h /home/pix/Src/Gmerlin_svn/gavl/include/gavl/ gavl_8h gavl_audio_format_t gavl_audio_samples_t gavl_audio_channels_t gavl_audio_frame_t gavl_rectangle_i_t gavl_rectangle_f_t gavl_video_format_s gavl_video_frame_t gavl_overlay_t gavl_frame_table_t #define GAVL_QUALITY_FASTEST group__quality.html gacf1efacd8e4e2d1241c3ba3df389cf92 #define GAVL_QUALITY_BEST group__quality.html gaa1374661d3b1bb939b041e14f882301e #define GAVL_QUALITY_DEFAULT group__quality.html ga22322c311ee070e08412f6f705befe25 #define GAVL_ACCEL_MMX group__accel__flags.html ga396b945ed3895dbf9c7e086c9769511b #define GAVL_ACCEL_MMXEXT group__accel__flags.html ga6ff656ed250442d5e7ab15faaf8de449 #define GAVL_ACCEL_SSE group__accel__flags.html ga8d2cb2b3327e4626d1a22f9b98e065ba #define GAVL_ACCEL_SSE2 group__accel__flags.html ga2ad2bb06c442d970febd989d5e9c434f #define GAVL_ACCEL_SSE3 group__accel__flags.html ga1c811566a7a5b8611807782bf6f56fc5 #define GAVL_ACCEL_3DNOW group__accel__flags.html ga1252e9a9b3b94299207643551e4e3a90 #define GAVL_ACCEL_3DNOWEXT group__accel__flags.html ga10bf859545e33246acb2321c0e6d1eda #define GAVL_ACCEL_SSSE3 group__accel__flags.html ga035e482e38fefb4e88a068698f5a4bbf #define GAVL_MAX_CHANNELS group__audio__format.html gadf04f3cec52fc5df08390e0feca392d8 #define GAVL_AUDIO_FRONT_TO_REAR_COPY group__audio__conversion__flags.html gac2f3980189b56280c4df7946e75da031 #define GAVL_AUDIO_FRONT_TO_REAR_MUTE group__audio__conversion__flags.html ga98cc643204a882dac3b74748b799845f #define GAVL_AUDIO_FRONT_TO_REAR_DIFF group__audio__conversion__flags.html ga718d9e0138f967665abac2f95bc78359 #define GAVL_AUDIO_FRONT_TO_REAR_MASK group__audio__conversion__flags.html gaf9cc032776f56df949476e79c85710b2 #define GAVL_AUDIO_STEREO_TO_MONO_LEFT group__audio__conversion__flags.html ga3609388de4180bb572622980d7c7ebb8 #define GAVL_AUDIO_STEREO_TO_MONO_RIGHT group__audio__conversion__flags.html ga89b4b04fad25b6f14f6418d1087f30e1 #define GAVL_AUDIO_STEREO_TO_MONO_MIX group__audio__conversion__flags.html gab07e520216622c2edd1df1c816fb1e71 #define GAVL_AUDIO_STEREO_TO_MONO_MASK group__audio__conversion__flags.html gaefe94992b7a5b98e38e95ca077f67c78 #define GAVL_AUDIO_NORMALIZE_MIX_MATRIX group__audio__conversion__flags.html gab594fc7fb1155a6785c44e79a6db7d35 #define GAVL_MAX_PLANES group__video.html ga0bd744118eafc166feddd214c1dfae19 #define GAVL_PIXFMT_PLANAR group__video__format.html ga04b9a9a01c859eef903ad5c929b5a376 #define GAVL_PIXFMT_RGB group__video__format.html gaadfa65377172d2d7780888c1435996b9 #define GAVL_PIXFMT_YUV group__video__format.html gab68ea697e8c26f1ac9458ab7dfc5ac2d #define GAVL_PIXFMT_YUVJ group__video__format.html gac9f6894e861877932a3d9e22de68f217 #define GAVL_PIXFMT_ALPHA group__video__format.html ga0a439a4323f4f72a1306b4a45d527c4d #define GAVL_PIXFMT_GRAY group__video__format.html ga2198acc6ef5344d1a7c1a06703b7b465 #define GAVL_PIXELFORMAT_1D_8 group__video__format.html gab202d0ec7abde22239f83d1b6cd6ebcf #define GAVL_PIXELFORMAT_2D_8 group__video__format.html gaa4282924f2ee78d7315f506eb9fb9f6f #define GAVL_PIXELFORMAT_3D_8 group__video__format.html ga2a58de9595570e3559119d781b084f11 #define GAVL_PIXELFORMAT_4D_8 group__video__format.html ga93a7617611792823006645de5cf5260e #define GAVL_PIXELFORMAT_1D_16 group__video__format.html gab0208787b206fe928c36c20ea42a6139 #define GAVL_PIXELFORMAT_2D_16 group__video__format.html gaaba615be8b1eed3bf97bf4330f125845 #define GAVL_PIXELFORMAT_3D_16 group__video__format.html ga8195086e330e9a2bad124f1fb2b6c780 #define GAVL_PIXELFORMAT_4D_16 group__video__format.html gae42c8d5ad82972f8c81dba01da22af45 #define GAVL_PIXELFORMAT_1D_FLOAT group__video__format.html ga033fa8cf38ee17c8787c43327369bfa9 #define GAVL_PIXELFORMAT_2D_FLOAT group__video__format.html gafb7ba5af81a0eef371499a37a590b890 #define GAVL_PIXELFORMAT_3D_FLOAT group__video__format.html ga9bc6095a4f7bbbbe4b122dbe5665dac4 #define GAVL_PIXELFORMAT_4D_FLOAT group__video__format.html ga32369e032b8cc4df10b42cfcdf2f846b #define gavl_pixelformat_is_gray group__video__format.html gaf44add25fc0d3beca7ca05180e5b42f9 (fmt) #define gavl_pixelformat_is_rgb group__video__format.html gaa817c92786c87106ffd6e5dc83c9559a (fmt) #define gavl_pixelformat_is_yuv group__video__format.html ga01053608fe3d999aa9ee5a1c9de92f52 (fmt) #define gavl_pixelformat_is_jpeg_scaled group__video__format.html ga177fcadc2d94a2a5b44fef3df2551cec (fmt) #define gavl_pixelformat_has_alpha group__video__format.html ga05959f9b8dd7b5464b964bdfc50e0bf2 (fmt) #define gavl_pixelformat_is_planar group__video__format.html gaa9d242d428b8e06d245644ab5bb900a4 (fmt) #define GAVL_FORCE_DEINTERLACE group__video__conversion__flags.html ga2337d9ab35e09d07f98a89e8d39c3162 #define GAVL_CONVOLVE_CHROMA group__video__conversion__flags.html ga3ffaa80353e73a53efabf1418d21173e #define GAVL_CONVOLVE_NORMALIZE group__video__conversion__flags.html ga6d497ee7ddec9ecb6e374d66bae61301 #define GAVL_RESAMPLE_CHROMA group__video__conversion__flags.html gaa631f11ef50dffe0dad7519ab9b4ba3e void(* gavl_video_process_func group__mt.html ga214f4d3f384aceaacc0f524b97948762 )(void *data, int start, int end) void(* gavl_video_run_func group__mt.html ga3f117797321a32f0387d3325493f2ab7 )(gavl_video_process_func func, void *gavl_data, int start, int end, void *client_data, int thread) void(* gavl_video_stop_func group__mt.html ga0f937de80423a659160cd991c63cd5ba )(void *client_data, int thread) struct gavl_video_format_s gavl_video_format_t group__video__format.html ga0ffc9c60fb71a5fb835e453531fd442c struct gavl_audio_options_s gavl_audio_options_t group__audio__options.html ga1667eb35773f94035acd0ba81cdada05 struct gavl_audio_converter_s gavl_audio_converter_t group__audio__converter.html ga709646455c9edc02c6af02fd72520a28 struct gavl_volume_control_s gavl_volume_control_t group__volume__control.html gae8781d6999b54e43aaadce7276608094 struct gavl_peak_detector_s gavl_peak_detector_t group__peak__detection.html ga1974488d678c0e0f8fc55a5ecaa24e1c struct gavl_video_options_s gavl_video_options_t group__video__options.html ga661526ac8e31c3a162f8607c2bcda6ee struct gavl_video_converter_s gavl_video_converter_t group__video__converter.html ga8608b4a917f962a192fbb4e7d1a180f5 struct gavl_video_scaler_s gavl_video_scaler_t group__video__scaler.html ga8b4210889926401c0af62a9c423e14ab struct gavl_video_deinterlacer_s gavl_video_deinterlacer_t group__video__deinterlacer.html ga7c2cc3f5fcc2266c5df7e34ab28596f9 struct gavl_overlay_blend_context_s gavl_overlay_blend_context_t group__video__blend.html gab03135cd919dbd7cfce24574ed5ff2c7 struct gavl_image_transform_s gavl_image_transform_t group__video__transform.html ga3120d630e0d9e646dec2d0339cc4ea84 void(* gavl_image_transform_func group__video__transform.html ga552c34a8f2c3634c887b82ca983d09af )(void *priv, double xdst, double ydst, double *xsrc, double *ysrc) gavl_sample_format_t group__audio__format.html ga08ca85571b963dca380529d3c64e8d04 GAVL_SAMPLE_NONE group__audio__format.html gga08ca85571b963dca380529d3c64e8d04a5681e0131192ef4c5baf7aabfd53d470 GAVL_SAMPLE_U8 group__audio__format.html gga08ca85571b963dca380529d3c64e8d04a5a99cb841b307045c0a9f2c90ebdddc7 GAVL_SAMPLE_S8 group__audio__format.html gga08ca85571b963dca380529d3c64e8d04a75aa6db07e83e2cb7ab52ebc8943ec9a GAVL_SAMPLE_U16 group__audio__format.html gga08ca85571b963dca380529d3c64e8d04a8c81b8d4cdf85b942f9131b2c8cf04f5 GAVL_SAMPLE_S16 group__audio__format.html gga08ca85571b963dca380529d3c64e8d04aabaddf765acac09e8e104c0a1c0abfd3 GAVL_SAMPLE_S32 group__audio__format.html gga08ca85571b963dca380529d3c64e8d04af51697b6266eea712dfa0fd884d956ee GAVL_SAMPLE_FLOAT group__audio__format.html gga08ca85571b963dca380529d3c64e8d04a3edfde34e4bb95751ba81ee688c2c91a GAVL_SAMPLE_DOUBLE group__audio__format.html gga08ca85571b963dca380529d3c64e8d04ab9aecd4dd6cacbbea7fc1170b065d53c gavl_interleave_mode_t group__audio__format.html ga7ed6d11fe342b9d77d2252da737fe70c GAVL_INTERLEAVE_NONE group__audio__format.html gga7ed6d11fe342b9d77d2252da737fe70caa98036ec9c35e15773f7eee9cfb5c4a7 GAVL_INTERLEAVE_2 group__audio__format.html gga7ed6d11fe342b9d77d2252da737fe70ca502a85cc59d5839c1935196cb0ebec8b GAVL_INTERLEAVE_ALL group__audio__format.html gga7ed6d11fe342b9d77d2252da737fe70ca5af921652b91c139a5e107a01f43888e gavl_channel_id_t group__audio__format.html ga0167e2e6a67aadb417ad7735ce85dc8c GAVL_CHID_NONE group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8ca96f1678288e5e15465e83ca0b4ff5b8c GAVL_CHID_FRONT_CENTER group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8cafc8c33d89aae92eedd2a9cc6460496d8 GAVL_CHID_FRONT_LEFT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8ca5f3cbff9e18df5d430b794ad26a8ebe0 GAVL_CHID_FRONT_RIGHT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8ca0d09580f5510ec0384353b7927cdb5cc GAVL_CHID_FRONT_CENTER_LEFT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8caa6178f1146615d4000d3cf48465ec54a GAVL_CHID_FRONT_CENTER_RIGHT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8caf53beeb74f046a3d7fc9b00458065fd6 GAVL_CHID_REAR_LEFT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8ca7481629b20d13bb3b7b199e12e7fb9d9 GAVL_CHID_REAR_RIGHT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8caccfda1a5cafdc82d9d701c8eb2c6c42b GAVL_CHID_REAR_CENTER group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8cac527fed53e7225bcb00c92e3c9d71a8b GAVL_CHID_SIDE_LEFT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8ca8d304398b8347447c1277ea966722a74 GAVL_CHID_SIDE_RIGHT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8ca0abe864a9e34165cdb7c0720d126c706 GAVL_CHID_LFE group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8cacbc8b1ee07f3315da917e0486b672ba7 GAVL_CHID_AUX group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8cad31c6ef1ed7499a2856bb5b8c5df8524 gavl_audio_dither_mode_t group__audio__options.html ga7675efc0dadfb0f13cd5def14d16eac3 gavl_resample_mode_t group__audio__options.html ga980691f2c8c3c77a45e959e433b80a1c GAVL_RESAMPLE_AUTO group__audio__options.html gga980691f2c8c3c77a45e959e433b80a1cac630f7dae0e307a333abd9f3feb84e35 GAVL_RESAMPLE_ZOH group__audio__options.html gga980691f2c8c3c77a45e959e433b80a1ca748c06882eb6da67afdf31688aae1b97 GAVL_RESAMPLE_LINEAR group__audio__options.html gga980691f2c8c3c77a45e959e433b80a1cab64c3b5e39489db00eeba97bc4c5b7c3 GAVL_RESAMPLE_SINC_FAST group__audio__options.html gga980691f2c8c3c77a45e959e433b80a1cafd1a6035ae2efdcc6460fa49d20507c2 GAVL_RESAMPLE_SINC_MEDIUM group__audio__options.html gga980691f2c8c3c77a45e959e433b80a1cacd97ff82e1fd6220cf7bb1c8689d2c7d GAVL_RESAMPLE_SINC_BEST group__audio__options.html gga980691f2c8c3c77a45e959e433b80a1ca0e3af39db4a4f523aa4284806dfdf92f gavl_pixelformat_t group__video__format.html gaf1e060e38cb2d9e4e776f7eca3ec2d33 GAVL_PIXELFORMAT_NONE group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33ac717f2fe9459d34033f9795a652786be GAVL_GRAY_8 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a69f10c2c74f64f7bc5c6ddd5022bd1e9 GAVL_GRAY_16 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33ae952bf31e83f79f856f6d7c6f068a9ea GAVL_GRAY_FLOAT group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33acdd40c6cc16c6f44b33e0f57e2e61219 GAVL_GRAYA_16 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33acb8992556bb1905eef5e5fdf856a4a28 GAVL_GRAYA_32 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a27727603e024b74500919f9e3aa29081 GAVL_GRAYA_FLOAT group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33ab1bd641d1567206cfb405293ad8ed797 GAVL_RGB_15 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33af56e3146de38129ab2a77d9c78b68597 GAVL_BGR_15 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33ab97b65c52e4f22512fc504c318d828f7 GAVL_RGB_16 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a3b3ab22b714c2b2dbe8378ba6e665aed GAVL_BGR_16 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33aec80b2d18ff47362cc27fcc37d14ad6f GAVL_RGB_24 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a8211bc654500aecfd275674f6221043f GAVL_BGR_24 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a13a997c77aae8666186d41a4b81587fc GAVL_RGB_32 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a1e0326ee4c758091617b60989ca47b0c GAVL_BGR_32 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33afed887430acaadf1f5ea53b816dfabd6 GAVL_RGBA_32 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33addf19307ad488270fa01958f81e49805 GAVL_RGB_48 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a1a8169a0597e154a27eb24f2415b5286 GAVL_RGBA_64 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a84b98bc0e63c1695bc7c4d07d90ca2d7 GAVL_RGB_FLOAT group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a5d444e80ac504e8ce319652f5fcfa50c GAVL_RGBA_FLOAT group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33afbfe8d7d8aa64729cf7c2a4a2ce9624e GAVL_YUY2 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a8d27aaccb4602c8ec8676f9290a5dd5c GAVL_UYVY group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a3d4ff8ef4a77ed775628c32112aa6149 GAVL_YUVA_32 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a38f188147bf813acdbfd186a94b80ded GAVL_YUVA_64 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33af07dec1edf32b16bd22f03a3b5eac0f2 GAVL_YUV_FLOAT group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33adcc84a95ec748160fcb6b7a6a93a84a8 GAVL_YUVA_FLOAT group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33aa29f4a91e89d701ca2e65a080fc3101a GAVL_YUV_420_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a20f380c90a1540717452e3a793719b59 GAVL_YUV_422_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a104f0457d36f00af8a42fb8ea44a04ff GAVL_YUV_444_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a53d86fa6e94bb857879932823cd1b299 GAVL_YUV_411_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33acbc562d3d3dabe924be4cf0fda42608b GAVL_YUV_410_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a19bb2c8eda0bfdda876921e0de0ae630 GAVL_YUVJ_420_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a0e46c4cee26289eee8cc1feef2bcb544 GAVL_YUVJ_422_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a6532ffb3fbf64ad20c866cbd9c794bad GAVL_YUVJ_444_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33aa6bb415b453cdfb92c0b6b9cbb745f9a GAVL_YUV_444_P_16 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33abed85774258b87ba556036a39b67a98a GAVL_YUV_422_P_16 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a41e6c2b3847dd8a9f18cc9af77064d04 gavl_color_channel_t group__video__format.html gac25e4e4e1a7bdc0160bf0e1d6910b87c GAVL_CCH_RED group__video__format.html ggac25e4e4e1a7bdc0160bf0e1d6910b87ca3c417d9a66b30aea8a7e2d70d4030237 GAVL_CCH_GREEN group__video__format.html ggac25e4e4e1a7bdc0160bf0e1d6910b87ca935ecdaabed4463d03a233188c279013 GAVL_CCH_BLUE group__video__format.html ggac25e4e4e1a7bdc0160bf0e1d6910b87caf34d3d1d6505a7753f2d02b334062cd9 GAVL_CCH_Y group__video__format.html ggac25e4e4e1a7bdc0160bf0e1d6910b87ca2c1b2d1518c2f530407b99f7f829f724 GAVL_CCH_CB group__video__format.html ggac25e4e4e1a7bdc0160bf0e1d6910b87cacd98f6faa2dedd0c524a67dfe63c19f7 GAVL_CCH_CR group__video__format.html ggac25e4e4e1a7bdc0160bf0e1d6910b87ca688e2019c853dc04f1fc246c3d1f4bde GAVL_CCH_ALPHA group__video__format.html ggac25e4e4e1a7bdc0160bf0e1d6910b87ca9e6559f4221ae2f66b499132cc32c6ca gavl_chroma_placement_t group__video__format.html ga1e5257edc9b29af8eba05825db5a0906 GAVL_CHROMA_PLACEMENT_DEFAULT group__video__format.html gga1e5257edc9b29af8eba05825db5a0906ae18f2501f64f2d4ace44fc84d7c719f7 GAVL_CHROMA_PLACEMENT_MPEG2 group__video__format.html gga1e5257edc9b29af8eba05825db5a0906ad5180e13cd750c7b3618a785b4a87cf6 GAVL_CHROMA_PLACEMENT_DVPAL group__video__format.html gga1e5257edc9b29af8eba05825db5a0906a845aeec284544ec190abf0eeaac0e0be gavl_framerate_mode_t group__video__format.html ga27bc061c95b4416a2ddd2cae2f8ee811 GAVL_FRAMERATE_UNKNOWN group__video__format.html gga27bc061c95b4416a2ddd2cae2f8ee811a300414b65b11483cf8838b38481e8ae9 GAVL_FRAMERATE_CONSTANT group__video__format.html gga27bc061c95b4416a2ddd2cae2f8ee811a3b8019ccde52a3dc42b337bb21addad7 GAVL_FRAMERATE_VARIABLE group__video__format.html gga27bc061c95b4416a2ddd2cae2f8ee811a72e7a1eec40615145fbc3ef25bdd026e GAVL_FRAMERATE_STILL group__video__format.html gga27bc061c95b4416a2ddd2cae2f8ee811a45ddb770b81289188a660dee7d742fb0 gavl_interlace_mode_t group__video__format.html gaabe1b351049ab5c62ff328c4e4258fae GAVL_INTERLACE_UNKNOWN group__video__format.html ggaabe1b351049ab5c62ff328c4e4258faeac5b2f83ecbbc20d76138c5dc0f22244c GAVL_INTERLACE_NONE group__video__format.html ggaabe1b351049ab5c62ff328c4e4258faea75824d34edcb89aa3b6862ea70dc1f97 GAVL_INTERLACE_TOP_FIRST group__video__format.html ggaabe1b351049ab5c62ff328c4e4258faeafe84e0cef3df2b894eca9474718a8b99 GAVL_INTERLACE_BOTTOM_FIRST group__video__format.html ggaabe1b351049ab5c62ff328c4e4258faeaac14ef96211f39740c21cfcf6a281483 GAVL_INTERLACE_MIXED group__video__format.html ggaabe1b351049ab5c62ff328c4e4258faeacdfc8ca442527b5379a5623bbfb07b50 GAVL_INTERLACE_MIXED_TOP group__video__format.html ggaabe1b351049ab5c62ff328c4e4258faea73995c8c62d987619469f720980336cf GAVL_INTERLACE_MIXED_BOTTOM group__video__format.html ggaabe1b351049ab5c62ff328c4e4258faea0164fdbfe0f0260313d5e27804748cc1 gavl_alpha_mode_t group__video__options.html ga84488233d92e9407be1596d15f6bfedf GAVL_ALPHA_IGNORE group__video__options.html gga84488233d92e9407be1596d15f6bfedfa5ef354544b4849ca240985f1c2f2b055 GAVL_ALPHA_BLEND_COLOR group__video__options.html gga84488233d92e9407be1596d15f6bfedfaa7b1ee646d776c1effb5db1ab39745a1 gavl_deinterlace_mode_t group__video__options.html ga498099f87328c97f303f538eb79eded9 GAVL_DEINTERLACE_NONE group__video__options.html gga498099f87328c97f303f538eb79eded9a3f9fa297598a227e7011325f0063409c GAVL_DEINTERLACE_COPY group__video__options.html gga498099f87328c97f303f538eb79eded9ae1639123d6cfbf03b0a5d237ccaff2dc GAVL_DEINTERLACE_SCALE group__video__options.html gga498099f87328c97f303f538eb79eded9a85b2118c04bb86c6b35f95ca793a3c9a GAVL_DEINTERLACE_BLEND group__video__options.html gga498099f87328c97f303f538eb79eded9ab6880fd729f85a010d4427d36f27af28 gavl_deinterlace_drop_mode_t group__video__options.html ga4e30253efec9dcbdac7f206bb9e1b7e3 GAVL_DEINTERLACE_DROP_TOP group__video__options.html gga4e30253efec9dcbdac7f206bb9e1b7e3a043a6bd2b00b5c633cbc765c65712eee GAVL_DEINTERLACE_DROP_BOTTOM group__video__options.html gga4e30253efec9dcbdac7f206bb9e1b7e3a469202613e52c6bc50a9fc2ead453262 gavl_scale_mode_t group__video__options.html gac527f0b25df75c9dbfdbf25521d1729e GAVL_SCALE_AUTO group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729ea4b0b7d43baf67bf6989ae5192b26efea GAVL_SCALE_NEAREST group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729ea1f53f13c482c7da3d8c3218a7ff9faf2 GAVL_SCALE_BILINEAR group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729eaf73d0475a2b5cb521a76c5d6c70fc232 GAVL_SCALE_QUADRATIC group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729eae67e61407a55aa628a4c03466331d92d GAVL_SCALE_CUBIC_BSPLINE group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729eaafcb74bc8e7e2e0c161af5d1312623c1 GAVL_SCALE_CUBIC_MITCHELL group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729ea269a9eb117090c4681bf75a2c8125e57 GAVL_SCALE_CUBIC_CATMULL group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729ea9741867d7bfc72473c7345e0b48a3a02 GAVL_SCALE_SINC_LANCZOS group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729ea6631cc5c2d05633678c6576d8e88017f GAVL_SCALE_NONE group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729ea0b6ec9f7bf8cab14160b8ca30c6e451c gavl_downscale_filter_t group__video__options.html gaebb5e94ebb997e67f45a872b5b0ff07c GAVL_DOWNSCALE_FILTER_AUTO group__video__options.html ggaebb5e94ebb997e67f45a872b5b0ff07ca398a9c0771a4624191e14b1eb449f98d GAVL_DOWNSCALE_FILTER_NONE group__video__options.html ggaebb5e94ebb997e67f45a872b5b0ff07ca6d256fca4e4fae560b76737b091b30dd GAVL_DOWNSCALE_FILTER_WIDE group__video__options.html ggaebb5e94ebb997e67f45a872b5b0ff07ca9862e9d97c9c81e13ce9e7a8e55cb3c8 GAVL_DOWNSCALE_FILTER_GAUSS group__video__options.html ggaebb5e94ebb997e67f45a872b5b0ff07cafe9cbfc1e3678fa0bec3ad3738daf71d GAVL_PUBLIC int gavl_accel_supported group__accel__flags.html ga9ee7b6f97f38d7f77a03f8e3b8fc47f3 () GAVL_PUBLIC const char * gavl_sample_format_to_string group__audio__format.html gad9ea76294adc1d6735eff6ba1857191a (gavl_sample_format_t format) GAVL_PUBLIC gavl_sample_format_t gavl_string_to_sample_format group__audio__format.html ga8067174ffec304b9bb7c74a009381ae4 (const char *str) GAVL_PUBLIC int gavl_num_sample_formats group__audio__format.html ga7e5a70e2645a0b91ab0894428acb7897 () GAVL_PUBLIC gavl_sample_format_t gavl_get_sample_format group__audio__format.html ga6eebc350f7d91bcd69ee700b610c2020 (int index) GAVL_PUBLIC const char * gavl_channel_id_to_string group__audio__format.html ga31e8418019af5bdeb9a73c876bac0e65 (gavl_channel_id_t id) GAVL_PUBLIC const char * gavl_interleave_mode_to_string group__audio__format.html gabcb856be7fa689fd1c675dda81595113 (gavl_interleave_mode_t mode) GAVL_PUBLIC void gavl_audio_format_dump group__audio__format.html gaa2d9ff1e5b43099590184144eeba95ab (const gavl_audio_format_t *format) GAVL_PUBLIC int gavl_channel_index group__audio__format.html ga234f80024bfc5453d0524cc8de1516c8 (const gavl_audio_format_t *format, gavl_channel_id_t id) GAVL_PUBLIC int gavl_front_channels group__audio__format.html ga815cb5429b6a814860119e5ef7c8deef (const gavl_audio_format_t *format) GAVL_PUBLIC int gavl_rear_channels group__audio__format.html gabb7b66e606066a3c302b063ab93afdb7 (const gavl_audio_format_t *format) GAVL_PUBLIC int gavl_side_channels group__audio__format.html ga4130aff13ee9595d4c9a304e8b05adcd (const gavl_audio_format_t *format) GAVL_PUBLIC int gavl_aux_channels group__audio__format.html gab146748fadfdc5e2a518a36988fb0eb3 (const gavl_audio_format_t *format) GAVL_PUBLIC int gavl_lfe_channels group__audio__format.html ga502a73eef08caa003c29b962376301df (const gavl_audio_format_t *format) GAVL_PUBLIC void gavl_audio_format_copy group__audio__format.html ga161efe9868875d58827c93fa452db78d (gavl_audio_format_t *dst, const gavl_audio_format_t *src) GAVL_PUBLIC int gavl_audio_formats_equal group__audio__format.html gadca0772d3ff0cfb5d325e0a67889cae6 (const gavl_audio_format_t *format_1, const gavl_audio_format_t *format_2) GAVL_PUBLIC void gavl_set_channel_setup group__audio__format.html ga4afb1dc2219da8ee1a74d8024ab5fde8 (gavl_audio_format_t *format) GAVL_PUBLIC int gavl_bytes_per_sample group__audio__format.html ga89333e682b542c89bd936ad27dcc8227 (gavl_sample_format_t format) GAVL_PUBLIC gavl_audio_frame_t * gavl_audio_frame_create group__audio__frame.html ga9a0679da671cfc38a1d1a8e39c404944 (const gavl_audio_format_t *format) GAVL_PUBLIC void gavl_audio_frame_null group__audio__frame.html ga203183dff047b475214beceb43732d16 (gavl_audio_frame_t *frame) GAVL_PUBLIC void gavl_audio_frame_destroy group__audio__frame.html ga194da819036369ca914a8479a70a4c09 (gavl_audio_frame_t *frame) GAVL_PUBLIC void gavl_audio_frame_mute group__audio__frame.html ga1b82e5d76caf45516d699bfec4ca7093 (gavl_audio_frame_t *frame, const gavl_audio_format_t *format) GAVL_PUBLIC void gavl_audio_frame_mute_samples group__audio__frame.html ga370d773027608de16a0e0a9f22d91f95 (gavl_audio_frame_t *frame, const gavl_audio_format_t *format, int num_samples) GAVL_PUBLIC void gavl_audio_frame_mute_channel group__audio__frame.html ga9b59575515b750736f40afe67c346b4b (gavl_audio_frame_t *frame, const gavl_audio_format_t *format, int channel) GAVL_PUBLIC int gavl_audio_frame_copy group__audio__frame.html ga57b5345d068cfbc38f08445ecd121437 (const gavl_audio_format_t *format, gavl_audio_frame_t *dst, const gavl_audio_frame_t *src, int dst_pos, int src_pos, int dst_size, int src_size) GAVL_PUBLIC void gavl_audio_frame_copy_ptrs group__audio__frame.html gabfbae3990b162ad5fe36b3137633260e (const gavl_audio_format_t *format, gavl_audio_frame_t *dst, const gavl_audio_frame_t *src) GAVL_PUBLIC void gavl_audio_frame_get_subframe group__audio__frame.html ga86c3f2bc3346e3f8031e030deaea8d8c (const gavl_audio_format_t *format, gavl_audio_frame_t *src, gavl_audio_frame_t *dst, int start, int len) GAVL_PUBLIC int gavl_audio_frames_equal group__audio__frame.html gabb58c41223763dbce3ad6e99396c1225 (const gavl_audio_format_t *format, const gavl_audio_frame_t *f1, const gavl_audio_frame_t *f2) GAVL_PUBLIC int gavl_audio_frame_plot group__audio__frame.html ga9dfdb12d729cf26adf0c53b224191e4a (const gavl_audio_format_t *format, const gavl_audio_frame_t *frame, const char *name_base) GAVL_PUBLIC void gavl_audio_options_set_quality group__audio__options.html gafa95f29c3f2a5bb75bf9c6693f96b8ea (gavl_audio_options_t *opt, int quality) GAVL_PUBLIC int gavl_audio_options_get_quality group__audio__options.html ga3df9fcad6203a59bceaa5794ab4a681d (gavl_audio_options_t *opt) GAVL_PUBLIC void gavl_audio_options_set_dither_mode group__audio__options.html ga90ca06e9e71186501def737c9bc8aead (gavl_audio_options_t *opt, gavl_audio_dither_mode_t mode) GAVL_PUBLIC gavl_audio_dither_mode_t gavl_audio_options_get_dither_mode group__audio__options.html ga51006fccdbe80bd4625f0179dc7bd86f (gavl_audio_options_t *opt) GAVL_PUBLIC void gavl_audio_options_set_resample_mode group__audio__options.html ga19cb5d887992703cf237ede16e3f19d6 (gavl_audio_options_t *opt, gavl_resample_mode_t mode) GAVL_PUBLIC gavl_resample_mode_t gavl_audio_options_get_resample_mode group__audio__options.html ga897e99f898c8712067a841b5ecfd0e3a (gavl_audio_options_t *opt) GAVL_PUBLIC void gavl_audio_options_set_conversion_flags group__audio__options.html ga817ed0e944d3fa4584d3185b4a7023b4 (gavl_audio_options_t *opt, int flags) GAVL_PUBLIC int gavl_audio_options_get_conversion_flags group__audio__options.html gaa5a958717b683f11090c79fe0ed11edb (gavl_audio_options_t *opt) GAVL_PUBLIC void gavl_audio_options_set_defaults group__audio__options.html ga86b295e9eab438f46d2c8b3547f4571c (gavl_audio_options_t *opt) GAVL_PUBLIC void gavl_audio_options_set_mix_matrix group__audio__options.html ga8b86d142de20ae4a7dda2d221604343c (gavl_audio_options_t *opt, const double **matrix) GAVL_PUBLIC const double ** gavl_audio_options_get_mix_matrix group__audio__options.html ga476fcaf23c89c45d9af3a47e138e2980 (gavl_audio_options_t *opt) GAVL_PUBLIC gavl_audio_options_t * gavl_audio_options_create group__audio__options.html gaa0b881a1632ab23ef69ce032faddc3ee () GAVL_PUBLIC void gavl_audio_options_copy group__audio__options.html ga4a9c0451ef538655c6f3c32d4ba8ae35 (gavl_audio_options_t *dst, const gavl_audio_options_t *src) GAVL_PUBLIC void gavl_audio_options_destroy group__audio__options.html gab989761a491dab46a6bfb67ff6e32d4f (gavl_audio_options_t *opt) GAVL_PUBLIC gavl_audio_converter_t * gavl_audio_converter_create group__audio__converter.html gacd99406f937e207aa9dda8a3c7feaf0b () GAVL_PUBLIC void gavl_audio_converter_destroy group__audio__converter.html ga456678a7ae39d257454677dc18299c53 (gavl_audio_converter_t *cnv) GAVL_PUBLIC gavl_audio_options_t * gavl_audio_converter_get_options group__audio__converter.html gad3bf181747fc38f33898ba97398e6978 (gavl_audio_converter_t *cnv) GAVL_PUBLIC int gavl_audio_converter_init group__audio__converter.html ga993422a1776a20a3e0adf8134b1e5e54 (gavl_audio_converter_t *cnv, const gavl_audio_format_t *input_format, const gavl_audio_format_t *output_format) GAVL_PUBLIC int gavl_audio_converter_init_resample group__audio__converter.html gaa5ce31f55199cd7c5112a7f54a677bc7 (gavl_audio_converter_t *cnv, const gavl_audio_format_t *format) GAVL_PUBLIC int gavl_audio_converter_reinit group__audio__converter.html gada0b6d6325ab9cea2c28a812bfd2cc85 (gavl_audio_converter_t *cnv) GAVL_PUBLIC void gavl_audio_convert group__audio__converter.html ga9867369b63ae7d62843172a1577a13a8 (gavl_audio_converter_t *cnv, const gavl_audio_frame_t *input_frame, gavl_audio_frame_t *output_frame) GAVL_PUBLIC int gavl_audio_converter_set_resample_ratio group__audio__converter.html gad48cb6703b3803805808a52684640da0 (gavl_audio_converter_t *cnv, double ratio) GAVL_PUBLIC void gavl_audio_converter_resample group__audio__converter.html ga3b4a73cf926b7ae878c10d53fa2c1af2 (gavl_audio_converter_t *cnv, gavl_audio_frame_t *input_frame, gavl_audio_frame_t *output_frame, double ratio) GAVL_PUBLIC gavl_volume_control_t * gavl_volume_control_create group__volume__control.html ga25e0769a204694c823a5479f2523b22e () GAVL_PUBLIC void gavl_volume_control_destroy group__volume__control.html ga78702c1703b4246993d2100f6bf1ba21 (gavl_volume_control_t *ctrl) GAVL_PUBLIC void gavl_volume_control_set_format group__volume__control.html gad02d09ed3342b5aab75c1d96287e7907 (gavl_volume_control_t *ctrl, const gavl_audio_format_t *format) GAVL_PUBLIC void gavl_volume_control_set_volume group__volume__control.html ga3de60cc1345fb95f4f262a1665b6360e (gavl_volume_control_t *ctrl, float volume) GAVL_PUBLIC void gavl_volume_control_apply group__volume__control.html ga3ebf8e61c37d0c4eb5510dbf23fc2826 (gavl_volume_control_t *ctrl, gavl_audio_frame_t *frame) GAVL_PUBLIC gavl_peak_detector_t * gavl_peak_detector_create group__peak__detection.html gacfd0d1870f12dc9b2d498317f9487dd4 () GAVL_PUBLIC void gavl_peak_detector_destroy group__peak__detection.html gaffc05b8a605cfab813bf368f27592bb3 (gavl_peak_detector_t *pd) GAVL_PUBLIC void gavl_peak_detector_set_format group__peak__detection.html ga47d5a567add1e12fdb57e55053ce6ecc (gavl_peak_detector_t *pd, const gavl_audio_format_t *format) GAVL_PUBLIC void gavl_peak_detector_update group__peak__detection.html ga68a33fb2e39b014897bab9cbd6b97c1a (gavl_peak_detector_t *pd, gavl_audio_frame_t *frame) GAVL_PUBLIC void gavl_peak_detector_get_peak group__peak__detection.html gab72a6993c866fe8fb2779604bc7a85e7 (gavl_peak_detector_t *pd, double *min, double *max, double *abs) GAVL_PUBLIC void gavl_peak_detector_get_peaks group__peak__detection.html ga325302b265f717795dc0ac32f7ce33d0 (gavl_peak_detector_t *pd, double *min, double *max, double *abs) GAVL_PUBLIC void gavl_peak_detector_reset group__peak__detection.html ga4de693cdd4743448c9d45e3a473ec956 (gavl_peak_detector_t *pd) GAVL_PUBLIC void gavl_rectangle_i_crop_to_format group__rectangle.html ga7ae156940f82f653e5c71c5aef6f0763 (gavl_rectangle_i_t *r, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_rectangle_f_crop_to_format group__rectangle.html gae22ac4088db0fcc4a5909a3e4b84fd1e (gavl_rectangle_f_t *r, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_rectangle_crop_to_format_noscale group__rectangle.html ga87d49b21d998f28329101e0307ca6a8d (gavl_rectangle_i_t *src_rect, gavl_rectangle_i_t *dst_rect, const gavl_video_format_t *src_format, const gavl_video_format_t *dst_format) GAVL_PUBLIC void gavl_rectangle_crop_to_format_scale group__rectangle.html ga1c3426ca2a490a47739aa742fb9542dc (gavl_rectangle_f_t *src_rect, gavl_rectangle_i_t *dst_rect, const gavl_video_format_t *src_format, const gavl_video_format_t *dst_format) GAVL_PUBLIC void gavl_rectangle_i_set_all group__rectangle.html ga9648c59d66bd88a6b728571b73ba3b7c (gavl_rectangle_i_t *r, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_rectangle_f_set_all group__rectangle.html ga98284d25f9c6fd98004f77e2fd4e6b2b (gavl_rectangle_f_t *r, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_rectangle_i_crop_left group__rectangle.html gae2cd9477cc1964f23b8c8edfd4f4a4af (gavl_rectangle_i_t *r, int num_pixels) GAVL_PUBLIC void gavl_rectangle_i_crop_right group__rectangle.html gaffc80d8450f2fea76234b557f0f09522 (gavl_rectangle_i_t *r, int num_pixels) GAVL_PUBLIC void gavl_rectangle_i_crop_top group__rectangle.html ga6a20ae617af2d13e5693794b5d8df752 (gavl_rectangle_i_t *r, int num_pixels) GAVL_PUBLIC void gavl_rectangle_i_crop_bottom group__rectangle.html gaddc2ff155cf43424de2c14e43e297876 (gavl_rectangle_i_t *r, int num_pixels) GAVL_PUBLIC void gavl_rectangle_f_crop_left group__rectangle.html ga1407bf537e1cff64ca3d0e6af95a866b (gavl_rectangle_f_t *r, double num_pixels) GAVL_PUBLIC void gavl_rectangle_f_crop_right group__rectangle.html ga367a4290d4bc74bd9b926a607f2b7c46 (gavl_rectangle_f_t *r, double num_pixels) GAVL_PUBLIC void gavl_rectangle_f_crop_top group__rectangle.html gabb55c7eb64f7107a9b058fa3d1241a29 (gavl_rectangle_f_t *r, double num_pixels) GAVL_PUBLIC void gavl_rectangle_f_crop_bottom group__rectangle.html ga0216cc66921a2af82753b9074da34778 (gavl_rectangle_f_t *r, double num_pixels) GAVL_PUBLIC void gavl_rectangle_i_align group__rectangle.html ga1b56abb2a5dcf55349b29dce2d9a5d18 (gavl_rectangle_i_t *r, int h_align, int v_align) GAVL_PUBLIC void gavl_rectangle_i_align_to_format group__rectangle.html gadde03e77061cc2f94d18cfc397367f72 (gavl_rectangle_i_t *r, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_rectangle_i_copy group__rectangle.html ga25f9c52b82011ab316cc4868e38ba89a (gavl_rectangle_i_t *dst, const gavl_rectangle_i_t *src) GAVL_PUBLIC void gavl_rectangle_f_copy group__rectangle.html ga9c074aec31efc6438c7fd2ee2a11bf25 (gavl_rectangle_f_t *dst, const gavl_rectangle_f_t *src) GAVL_PUBLIC void gavl_rectangle_i_to_f group__rectangle.html ga95ed22f48ca35d9fdcb45d709dffb695 (gavl_rectangle_f_t *dst, const gavl_rectangle_i_t *src) GAVL_PUBLIC void gavl_rectangle_f_to_i group__rectangle.html gabb07ec1566fa9bb121b8c3600067753f (gavl_rectangle_i_t *dst, const gavl_rectangle_f_t *src) GAVL_PUBLIC int gavl_rectangle_i_is_empty group__rectangle.html ga0af13160abd736041d5b99427043b12a (const gavl_rectangle_i_t *r) GAVL_PUBLIC int gavl_rectangle_f_is_empty group__rectangle.html ga06733e84c28093743d961e95b71c8ecf (const gavl_rectangle_f_t *r) GAVL_PUBLIC void gavl_rectangle_fit_aspect group__rectangle.html ga8d88bf976c31e23e61cccf68c0b40bbe (gavl_rectangle_i_t *dst_rect, const gavl_video_format_t *src_format, const gavl_rectangle_f_t *src_rect, const gavl_video_format_t *dst_format, float zoom, float squeeze) GAVL_PUBLIC void gavl_rectangle_i_dump group__rectangle.html ga4f01062ce92f163eb465606dd7d30a69 (const gavl_rectangle_i_t *r) GAVL_PUBLIC void gavl_rectangle_f_dump group__rectangle.html gad6fe827b60f8f30ea67820fb86e4aa2f (const gavl_rectangle_f_t *r) GAVL_PUBLIC int gavl_pixelformat_num_planes group__video__format.html gabc4c5fc3243dc698d12bcb7c3d514781 (gavl_pixelformat_t pixelformat) GAVL_PUBLIC void gavl_pixelformat_chroma_sub group__video__format.html gafaed26a87cb8acf6c854e99a29f3b9c1 (gavl_pixelformat_t pixelformat, int *sub_h, int *sub_v) GAVL_PUBLIC int gavl_pixelformat_bytes_per_component group__video__format.html gade6e5f14ab00955ec4b7dc02875d3448 (gavl_pixelformat_t pixelformat) GAVL_PUBLIC int gavl_pixelformat_bytes_per_pixel group__video__format.html ga1abe2490a266feab4a7a3819f7bb0884 (gavl_pixelformat_t pixelformat) GAVL_PUBLIC int gavl_pixelformat_bits_per_pixel group__video__format.html gab36e3a7a3110eaa9d768344ed7af231c (gavl_pixelformat_t pixelformat) GAVL_PUBLIC int gavl_pixelformat_conversion_penalty group__video__format.html ga112a800cc9c95e088f7fe499e165f907 (gavl_pixelformat_t src, gavl_pixelformat_t dst) GAVL_PUBLIC gavl_pixelformat_t gavl_pixelformat_get_best group__video__format.html gad57e1813e11be4c4aee7f542e1d638eb (gavl_pixelformat_t src, const gavl_pixelformat_t *dst_supported, int *penalty) GAVL_PUBLIC const char * gavl_pixelformat_to_string group__video__format.html ga7560314c4a1e12ad925c3bdf062e0b2e (gavl_pixelformat_t pixelformat) GAVL_PUBLIC gavl_pixelformat_t gavl_string_to_pixelformat group__video__format.html gaabb3686c3275fe97f668804fb5a7e153 (const char *name) GAVL_PUBLIC int gavl_num_pixelformats group__video__format.html gac4ef623576c6c429d4e9cc0789ef0549 () GAVL_PUBLIC gavl_pixelformat_t gavl_get_pixelformat group__video__format.html ga66c7d0ad216425adf4f27a65b3e8e8be (int index) GAVL_PUBLIC const char * gavl_chroma_placement_to_string group__video__format.html ga2258430d4307e686a3dc77e52deaf079 (gavl_chroma_placement_t mode) GAVL_PUBLIC const char * gavl_framerate_mode_to_string group__video__format.html ga0e05fb91c7798060d796ff65c5f129d9 (gavl_framerate_mode_t mode) GAVL_PUBLIC const char * gavl_interlace_mode_to_string group__video__format.html ga7baa4e63f5f4699ae11d659fa5f806fe (gavl_interlace_mode_t mode) GAVL_PUBLIC void gavl_video_format_copy group__video__format.html gad2d818069b8b8c1637df0cc1493ce535 (gavl_video_format_t *dst, const gavl_video_format_t *src) GAVL_PUBLIC int gavl_video_formats_equal group__video__format.html ga35a05c81b67f1f54653c6b1a59da7e44 (const gavl_video_format_t *format_1, const gavl_video_format_t *format_2) GAVL_PUBLIC void gavl_video_format_get_chroma_offset group__video__format.html ga3c0440c17e56f3e4487628291ce65faa (const gavl_video_format_t *format, int field, int plane, float *off_x, float *off_y) GAVL_PUBLIC void gavl_video_format_fit_to_source group__video__format.html gacb0b62690147675f68a4117fb404a6a6 (gavl_video_format_t *dst, const gavl_video_format_t *src) GAVL_PUBLIC int gavl_video_format_get_image_size group__video__format.html ga666e64a92f431f7e65a68e5ca281df49 (const gavl_video_format_t *format) GAVL_PUBLIC int gavl_get_color_channel_format group__video__format.html ga21bc1aa42164f02929b8f51ba1d8195a (const gavl_video_format_t *frame_format, gavl_video_format_t *channel_format, gavl_color_channel_t ch) GAVL_PUBLIC void gavl_video_format_dump group__video__format.html ga50c31762b5ae3b4fbae13dc4605584bc (const gavl_video_format_t *format) GAVL_PUBLIC gavl_video_frame_t * gavl_video_frame_create group__video__frame.html gaa160f237e5de21b74844405d044e4de7 (const gavl_video_format_t *format) GAVL_PUBLIC gavl_video_frame_t * gavl_video_frame_create_nopad group__video__frame.html ga2d15154526585f38553a11e2b5deb6db (const gavl_video_format_t *format) GAVL_PUBLIC void gavl_video_frame_destroy group__video__frame.html ga153d145b7b8a359aaab1c983b0b7c940 (gavl_video_frame_t *frame) GAVL_PUBLIC void gavl_video_frame_null group__video__frame.html gab8a7c4e8c36ffc01cbc3f57ddb72d350 (gavl_video_frame_t *frame) GAVL_PUBLIC void gavl_video_frame_clear group__video__frame.html gacededf455637fb4dab06a7064af03d43 (gavl_video_frame_t *frame, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_video_frame_fill group__video__frame.html ga62a28d980d55b17290e17e837c00b382 (gavl_video_frame_t *frame, const gavl_video_format_t *format, const float *color) GAVL_PUBLIC void gavl_video_frame_absdiff group__video__frame.html ga98e7749806212c86075e71807756cdd5 (gavl_video_frame_t *dst, const gavl_video_frame_t *src1, const gavl_video_frame_t *src2, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_video_frame_psnr group__video__frame.html ga9246fb3c029aa2926252e1156ca5f15b (double *psnr, const gavl_video_frame_t *src1, const gavl_video_frame_t *src2, const gavl_video_format_t *format) GAVL_PUBLIC int gavl_video_frame_ssim group__video__frame.html gaa0a9342160b9e500a1fe1f0a52d37895 (const gavl_video_frame_t *src1, const gavl_video_frame_t *src2, gavl_video_frame_t *dst, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_video_frame_copy group__video__frame.html ga0e54b4b7c23372674854ec0579fcded2 (const gavl_video_format_t *format, gavl_video_frame_t *dst, const gavl_video_frame_t *src) GAVL_PUBLIC void gavl_video_frame_copy_plane group__video__frame.html ga14f13242d881fbd89c5dcca2b4c41fcc (const gavl_video_format_t *format, gavl_video_frame_t *dst, const gavl_video_frame_t *src, int plane) GAVL_PUBLIC void gavl_video_frame_copy_flip_x group__video__frame.html ga1914890d2e61d8667934b34662aecc0f (const gavl_video_format_t *format, gavl_video_frame_t *dst, const gavl_video_frame_t *src) GAVL_PUBLIC void gavl_video_frame_copy_flip_y group__video__frame.html ga7a24ad46c5d2c008824107d625f8b766 (const gavl_video_format_t *format, gavl_video_frame_t *dst, const gavl_video_frame_t *src) GAVL_PUBLIC void gavl_video_frame_copy_flip_xy group__video__frame.html ga51a06bf52d312cdc1dbfe7e4a17483ac (const gavl_video_format_t *format, gavl_video_frame_t *dst, const gavl_video_frame_t *src) GAVL_PUBLIC void gavl_video_frame_copy_metadata group__video__frame.html ga5a0336411fc37fc016853b68d74aef4f (gavl_video_frame_t *dst, const gavl_video_frame_t *src) GAVL_PUBLIC void gavl_video_frame_get_subframe group__video__frame.html ga427d06ec59aa8a00418faa426d5fbfc6 (gavl_pixelformat_t pixelformat, const gavl_video_frame_t *src, gavl_video_frame_t *dst, gavl_rectangle_i_t *src_rect) GAVL_PUBLIC void gavl_video_frame_get_field group__video__frame.html ga8bfaf9a717383f9a1d494f4e0c06346d (gavl_pixelformat_t pixelformat, const gavl_video_frame_t *src, gavl_video_frame_t *dst, int field) GAVL_PUBLIC void gavl_video_frame_dump group__video__frame.html ga6eb4ad1d3feb47cd148a1343ebe321fc (gavl_video_frame_t *frame, const gavl_video_format_t *format, const char *namebase) GAVL_PUBLIC void gavl_video_frame_set_strides group__video__frame.html ga33f1528b2a6885fe5de6fd60289287a9 (gavl_video_frame_t *frame, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_video_frame_set_planes group__video__frame.html ga50f291ee97ef492dbf46ab17e49ad92e (gavl_video_frame_t *frame, const gavl_video_format_t *format, uint8_t *buffer) GAVL_PUBLIC int gavl_video_frame_extract_channel group__video__frame.html gaacbbc8ab6bd8532f8e285153470554b6 (const gavl_video_format_t *format, gavl_color_channel_t ch, const gavl_video_frame_t *src, gavl_video_frame_t *dst) GAVL_PUBLIC int gavl_video_frame_insert_channel group__video__frame.html ga4700fc9e06cece057d1c8a9aa058c2f8 (const gavl_video_format_t *format, gavl_color_channel_t ch, const gavl_video_frame_t *src, gavl_video_frame_t *dst) GAVL_PUBLIC int gavl_video_frames_equal group__video__frame.html gad8987beb284d530c246c153482b322ec (const gavl_video_format_t *format, const gavl_video_frame_t *f1, const gavl_video_frame_t *f2) GAVL_PUBLIC void gavl_video_options_set_defaults group__video__options.html gac23a6387290cf6d486db69011e32dbdc (gavl_video_options_t *opt) GAVL_PUBLIC gavl_video_options_t * gavl_video_options_create group__video__options.html ga27837bfc6878cae6aef628f3030a4475 () GAVL_PUBLIC void gavl_video_options_copy group__video__options.html ga4b491a4a2b43905e133bbede472e823f (gavl_video_options_t *dst, const gavl_video_options_t *src) GAVL_PUBLIC void gavl_video_options_destroy group__video__options.html ga2e8b8e4ae425b057933775ab7902a8d3 (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_rectangles group__video__options.html ga25da61ba427f6b6adb421ad856351881 (gavl_video_options_t *opt, const gavl_rectangle_f_t *src_rect, const gavl_rectangle_i_t *dst_rect) GAVL_PUBLIC void gavl_video_options_get_rectangles group__video__options.html ga4b810cfbfbd98f630e25e66a179c8a16 (gavl_video_options_t *opt, gavl_rectangle_f_t *src_rect, gavl_rectangle_i_t *dst_rect) GAVL_PUBLIC void gavl_video_options_set_quality group__video__options.html ga034a90fe29d5c699cfa245f9bb33983b (gavl_video_options_t *opt, int quality) GAVL_PUBLIC int gavl_video_options_get_quality group__video__options.html ga30375731b65265cb671b7bb1438d2fa2 (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_conversion_flags group__video__options.html gac3ec270ab146f161cc43bd5cae90ecfc (gavl_video_options_t *opt, int conversion_flags) GAVL_PUBLIC int gavl_video_options_get_conversion_flags group__video__options.html gad6f90626bf1a86b1ec11bec0baa7eeff (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_alpha_mode group__video__options.html ga0961198507410733f5f2dd3b16f8ef3a (gavl_video_options_t *opt, gavl_alpha_mode_t alpha_mode) GAVL_PUBLIC gavl_alpha_mode_t gavl_video_options_get_alpha_mode group__video__options.html ga6eb115f9ad5dd24fe34d4667539bc16d (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_scale_mode group__video__options.html ga48a1e385dc969adb7ae7a559ff90eda5 (gavl_video_options_t *opt, gavl_scale_mode_t scale_mode) GAVL_PUBLIC gavl_scale_mode_t gavl_video_options_get_scale_mode group__video__options.html ga78c5b45c26e407c025760143b211332c (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_scale_order group__video__options.html gae3e332d8cf08395df2bcddeefb94cd51 (gavl_video_options_t *opt, int order) GAVL_PUBLIC int gavl_video_options_get_scale_order group__video__options.html gad05038c0147dca13b844d859a08874bd (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_background_color group__video__options.html ga86322ead33fc9ffc481b73a9749a7966 (gavl_video_options_t *opt, const float *color) GAVL_PUBLIC void gavl_video_options_get_background_color group__video__options.html ga3bf1b99b2884ae687f3ef7e319be64db (gavl_video_options_t *opt, float *color) GAVL_PUBLIC void gavl_video_options_set_deinterlace_mode gavl_8h.html ac98ce263b82ddd319a220adbfb24658a (gavl_video_options_t *opt, gavl_deinterlace_mode_t deinterlace_mode) GAVL_PUBLIC gavl_deinterlace_mode_t gavl_video_options_get_deinterlace_mode gavl_8h.html ada7a991f88857ed2a8a001a5e927fa8e (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_deinterlace_drop_mode group__video__options.html ga8d4b5149858214e6f857c56d04bc3458 (gavl_video_options_t *opt, gavl_deinterlace_drop_mode_t deinterlace_drop_mode) GAVL_PUBLIC gavl_deinterlace_drop_mode_t gavl_video_options_get_deinterlace_drop_mode group__video__options.html gaac728276480c5d44e260208bd740b9d1 (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_downscale_filter group__video__options.html gad4c3c3e62f317b42b7ac27978ee85120 (gavl_video_options_t *opt, gavl_downscale_filter_t f) GAVL_PUBLIC gavl_downscale_filter_t gavl_video_options_get_downscale_filter group__video__options.html ga5ee0b552cc6ce31d0358d575323056b9 (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_downscale_blur group__video__options.html gacd01ddcc662b2f9f9c8a0b28eed364f6 (gavl_video_options_t *opt, float f) GAVL_PUBLIC float gavl_video_options_get_downscale_blur group__video__options.html ga9072500f822a1fbe67674ed805dfb2a6 (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_num_threads group__video__options.html ga3cbcf9e6e2eb3779f02fe655bda08fcf (gavl_video_options_t *opt, int n) GAVL_PUBLIC int gavl_video_options_get_num_threads group__video__options.html ga4a1f8ca50b4eef6c9b08c5ab7961d845 (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_run_func group__video__options.html ga025eb6b2868d16343996d661b6ac1706 (gavl_video_options_t *opt, gavl_video_run_func func, void *client_data) GAVL_PUBLIC gavl_video_run_func gavl_video_options_get_run_func group__video__options.html ga7b47e528fe3eff115502a3fb8b7d46b5 (gavl_video_options_t *opt, void **client_data) GAVL_PUBLIC void gavl_video_options_set_stop_func group__video__options.html gaa82c8bce9206051694cf11fcb691e411 (gavl_video_options_t *opt, gavl_video_stop_func func, void *client_data) GAVL_PUBLIC gavl_video_stop_func gavl_video_options_get_stop_func group__video__options.html gae5a29f1c48e88c0a3305b69d5a537062 (gavl_video_options_t *opt, void **client_data) GAVL_PUBLIC gavl_video_converter_t * gavl_video_converter_create group__video__converter.html gac65bbe195bf92930e68d7d889ef4be87 () GAVL_PUBLIC void gavl_video_converter_destroy group__video__converter.html gacd1f728055a582c57f8a45484da9366d (gavl_video_converter_t *cnv) GAVL_PUBLIC gavl_video_options_t * gavl_video_converter_get_options group__video__converter.html gae07e2d1a722b74152545176d24b3cbe7 (gavl_video_converter_t *cnv) GAVL_PUBLIC int gavl_video_converter_init group__video__converter.html ga3fc45b6f66687029f4ad6b145d5c3326 (gavl_video_converter_t *cnv, const gavl_video_format_t *input_format, const gavl_video_format_t *output_format) GAVL_PUBLIC int gavl_video_converter_reinit group__video__converter.html gabf283face818d6425b72cbfc888f1661 (gavl_video_converter_t *cnv) GAVL_PUBLIC void gavl_video_convert group__video__converter.html gab4d87d96d232ff18f667968edec146e6 (gavl_video_converter_t *cnv, const gavl_video_frame_t *input_frame, gavl_video_frame_t *output_frame) GAVL_PUBLIC gavl_video_scaler_t * gavl_video_scaler_create group__video__scaler.html ga65a5adb9b0ec0c47177d858f4b9841a3 () GAVL_PUBLIC void gavl_video_scaler_destroy group__video__scaler.html ga4913e9fbbce90576e3f73e4b910bf74f (gavl_video_scaler_t *scaler) GAVL_PUBLIC gavl_video_options_t * gavl_video_scaler_get_options group__video__scaler.html ga5630854ec9ee864186562ef9f69e864b (gavl_video_scaler_t *scaler) GAVL_PUBLIC int gavl_video_scaler_init group__video__scaler.html ga048d636f7fc6ca5afb522cffc1c57f11 (gavl_video_scaler_t *scaler, const gavl_video_format_t *src_format, const gavl_video_format_t *dst_format) GAVL_PUBLIC int gavl_video_scaler_init_convolve group__video__scaler.html gae0d9ec30ee5a353802baadacb027ec0a (gavl_video_scaler_t *scaler, const gavl_video_format_t *format, int h_radius, const float *h_coeffs, int v_radius, const float *v_coeffs) GAVL_PUBLIC void gavl_video_scaler_scale group__video__scaler.html gaac3cfffdb618b683fe36150beee810c5 (gavl_video_scaler_t *scaler, const gavl_video_frame_t *input_frame, gavl_video_frame_t *output_frame) GAVL_PUBLIC gavl_video_deinterlacer_t * gavl_video_deinterlacer_create group__video__deinterlacer.html ga4610459bb334e210f0bbf2e2e07e4221 () GAVL_PUBLIC void gavl_video_deinterlacer_destroy group__video__deinterlacer.html ga820c4520488a561df92280b6c584efe4 (gavl_video_deinterlacer_t *deinterlacer) GAVL_PUBLIC gavl_video_options_t * gavl_video_deinterlacer_get_options group__video__deinterlacer.html ga0d553f6f321342e51ac113aec1a89ef3 (gavl_video_deinterlacer_t *deinterlacer) GAVL_PUBLIC int gavl_video_deinterlacer_init group__video__deinterlacer.html ga3c9b6b6a1a12483c00cd3e0be0ef6383 (gavl_video_deinterlacer_t *deinterlacer, const gavl_video_format_t *src_format) GAVL_PUBLIC void gavl_video_deinterlacer_deinterlace group__video__deinterlacer.html gaa5b6186a7cd48941e8be88e84f727338 (gavl_video_deinterlacer_t *deinterlacer, const gavl_video_frame_t *input_frame, gavl_video_frame_t *output_frame) GAVL_PUBLIC gavl_overlay_blend_context_t * gavl_overlay_blend_context_create group__video__blend.html ga711ff6748a0d6916d876acdb01647c31 () GAVL_PUBLIC void gavl_overlay_blend_context_destroy group__video__blend.html gadadf950d6e1279c3555d4249550d85a3 (gavl_overlay_blend_context_t *ctx) GAVL_PUBLIC gavl_video_options_t * gavl_overlay_blend_context_get_options group__video__blend.html gaee93db1b692d9caba37cec3153e9c1ce (gavl_overlay_blend_context_t *ctx) GAVL_PUBLIC int gavl_overlay_blend_context_init group__video__blend.html ga9f94b2f7f888fc8066b2e4e2e2f73f5a (gavl_overlay_blend_context_t *ctx, const gavl_video_format_t *frame_format, gavl_video_format_t *overlay_format) GAVL_PUBLIC void gavl_overlay_blend_context_set_overlay group__video__blend.html ga6b9d4d35aa14e2312ab54c24bf43a607 (gavl_overlay_blend_context_t *ctx, gavl_overlay_t *ovl) GAVL_PUBLIC void gavl_overlay_blend group__video__blend.html ga00746f11bc191a0e8f0ed080fcecd3c1 (gavl_overlay_blend_context_t *ctx, gavl_video_frame_t *dst_frame) GAVL_PUBLIC gavl_image_transform_t * gavl_image_transform_create group__video__transform.html gafbfafaba59871814fffd576c14182f63 () GAVL_PUBLIC void gavl_image_transform_destroy group__video__transform.html ga0951eeb569f7adebc2354336e54ca0c8 (gavl_image_transform_t *t) GAVL_PUBLIC int gavl_image_transform_init group__video__transform.html ga1750362e810cd5b9c1c7f896425ee3da (gavl_image_transform_t *t, gavl_video_format_t *format, gavl_image_transform_func func, void *priv) GAVL_PUBLIC void gavl_image_transform_transform group__video__transform.html gaaa9cc51e17e44df2aa690f809154efa4 (gavl_image_transform_t *t, gavl_video_frame_t *in_frame, gavl_video_frame_t *out_frame) GAVL_PUBLIC gavl_video_options_t * gavl_image_transform_get_options group__video__transform.html ga1e9c5da19cd723c731fb000e06c48413 (gavl_image_transform_t *t) GAVL_PUBLIC gavl_frame_table_t * gavl_frame_table_create group__frame__table.html gac265a8102f8c1cfd1a0a8e0d3cecd886 () GAVL_PUBLIC gavl_frame_table_t * gavl_frame_table_create_audio group__frame__table.html gad45a0e09687b1f0e33266578b8858a71 (int samplerate, int64_t offset, int64_t duration, gavl_timecode_format_t *fmt_ret) GAVL_PUBLIC gavl_frame_table_t * gavl_frame_table_create_cfr group__frame__table.html gaaa2971ad8831bc68b144ef8259d6e9ca (int64_t offset, int64_t frame_duration, int64_t num_frames, gavl_timecode_t start_timecode) GAVL_PUBLIC gavl_frame_table_t * gavl_frame_table_copy group__frame__table.html ga39e058c40317cf21f0573d4cc282f202 (const gavl_frame_table_t *tab) GAVL_PUBLIC void gavl_frame_table_destroy group__frame__table.html ga7d49000351213b69385a85ab2c7d24a8 (gavl_frame_table_t *t) GAVL_PUBLIC void gavl_frame_table_append_entry group__frame__table.html gaa3019fd2f14360c77724db64e6ea1500 (gavl_frame_table_t *t, int64_t duration) GAVL_PUBLIC void gavl_frame_table_append_timecode group__frame__table.html gaca3eb0d8345f72af6e4966d12744388d (gavl_frame_table_t *t, int64_t pts, gavl_timecode_t tc) GAVL_PUBLIC int64_t gavl_frame_table_frame_to_time group__frame__table.html ga2cf755e56e4b50f0d3cc12db088aeca6 (const gavl_frame_table_t *t, int64_t frame, int *duration) GAVL_PUBLIC int64_t gavl_frame_table_time_to_frame group__frame__table.html ga623a74c4ff943db7f1157d845c64beb0 (const gavl_frame_table_t *t, int64_t time, int64_t *start_time) GAVL_PUBLIC gavl_timecode_t gavl_frame_table_time_to_timecode group__frame__table.html ga6069fd13db8bcb703d22827517c12b22 (const gavl_frame_table_t *t, int64_t time, int64_t *start_time, const gavl_timecode_format_t *fmt) GAVL_PUBLIC int64_t gavl_frame_table_timecode_to_time group__frame__table.html gafba6d572126c3b946c96944a9824e401 (const gavl_frame_table_t *t, gavl_timecode_t tc, const gavl_timecode_format_t *fmt) GAVL_PUBLIC gavl_timecode_t gavl_frame_table_frame_to_timecode group__frame__table.html ga44b9d9c826a39027327d3347011aadb3 (const gavl_frame_table_t *t, int64_t frame, int64_t *start_time, const gavl_timecode_format_t *fmt) GAVL_PUBLIC int64_t gavl_frame_table_num_frames group__frame__table.html ga86b09c9a3a0537d3cbf31b33abe5beee (const gavl_frame_table_t *t) GAVL_PUBLIC int64_t gavl_frame_table_duration group__frame__table.html ga7bc7232a41f14c82d1af0c00cb4fe8bb (const gavl_frame_table_t *t) GAVL_PUBLIC int64_t gavl_frame_table_end_time group__frame__table.html ga190ee3adfd6f512f11ef6c1f609443a0 (const gavl_frame_table_t *t) GAVL_PUBLIC int gavl_frame_table_save group__frame__table.html ga15211644be347e181d22929e79ca6dbe (const gavl_frame_table_t *t, const char *filename) GAVL_PUBLIC gavl_frame_table_t * gavl_frame_table_load group__frame__table.html gab3603f0d360e636cdd502dc8420bc9da (const char *filename) GAVL_PUBLIC void gavl_frame_table_dump group__frame__table.html ga593f1f9fe0089c5ce01f2fa3b6091110 (const gavl_frame_table_t *t) timecode Timecodes group__timecode.html gavl_timecode_format_t #define GAVL_TIMECODE_SIGN_MASK group__timecode.html ga725785acdd94b530c6bdc0017d92d32a #define GAVL_TIMECODE_INVALID_MASK group__timecode.html gaf7d327b1069bfafdb6f64e3f2eded1e5 #define GAVL_TIMECODE_DROP_FRAME group__timecode.html gadb132f471c755cdf8d479f549ff9b446 #define GAVL_TIMECODE_UNDEFINED group__timecode.html ga1102fb210b8180cdc82c66204845cff2 #define GAVL_TIMECODE_STRING_LEN group__timecode.html gaf71e35da45bfb1b008fa4394c533b34c #define GAVL_TIMECODE_STRING_LEN_SHORT group__timecode.html gabff9793d5841d2ec4f93ee09fc0fe0e4 uint64_t gavl_timecode_t group__timecode.html ga534f23baf96ee5cdabd99f1619672452 GAVL_PUBLIC void gavl_timecode_format_copy group__timecode.html ga46ed47cec1464129b475c2f088721ea0 (gavl_timecode_format_t *dst, const gavl_timecode_format_t *src) GAVL_PUBLIC void gavl_timecode_to_hmsf group__timecode.html ga5ff8de60cb7d70e78da25274e4213994 (gavl_timecode_t tc, int *hours, int *minutes, int *seconds, int *frames) GAVL_PUBLIC void gavl_timecode_to_ymd group__timecode.html gaf35480216a11bdc61c9451c9ccbd5b32 (gavl_timecode_t tc, int *year, int *month, int *day) GAVL_PUBLIC void gavl_timecode_from_hmsf group__timecode.html ga61174a979942cd0abb81a8bc8616e434 (gavl_timecode_t *tc, int hours, int minutes, int seconds, int frames) GAVL_PUBLIC void gavl_timecode_from_ymd group__timecode.html ga69fb314b0066db8309028209c2f824e1 (gavl_timecode_t *tc, int year, int month, int day) GAVL_PUBLIC int64_t gavl_timecode_to_framecount group__timecode.html ga77d037723b25d83edec5440050303da6 (const gavl_timecode_format_t *tf, gavl_timecode_t tc) GAVL_PUBLIC gavl_timecode_t gavl_timecode_from_framecount group__timecode.html ga4273b9445f199fb2a060dcfcd80a9ba4 (const gavl_timecode_format_t *tf, int64_t fc) GAVL_PUBLIC void gavl_timecode_dump group__timecode.html ga9a647e905b904f3998deea6eb4532c25 (const gavl_timecode_format_t *tf, gavl_timecode_t tc) GAVL_PUBLIC void gavl_timecode_prettyprint group__timecode.html gabc6960288725d242c166623f491de9fa (const gavl_timecode_format_t *tf, gavl_timecode_t tc, char str[GAVL_TIMECODE_STRING_LEN]) GAVL_PUBLIC void gavl_timecode_prettyprint_short group__timecode.html ga0bfd79167ca0f9849b82d020f1d3cc75 (gavl_timecode_t tc, char str[GAVL_TIMECODE_STRING_LEN_SHORT]) mt Multithreading group__mt.html void(* gavl_video_process_func group__mt.html ga214f4d3f384aceaacc0f524b97948762 )(void *data, int start, int end) void(* gavl_video_run_func group__mt.html ga3f117797321a32f0387d3325493f2ab7 )(gavl_video_process_func func, void *gavl_data, int start, int end, void *client_data, int thread) void(* gavl_video_stop_func group__mt.html ga0f937de80423a659160cd991c63cd5ba )(void *client_data, int thread) quality Quality settings group__quality.html #define GAVL_QUALITY_FASTEST group__quality.html gacf1efacd8e4e2d1241c3ba3df389cf92 #define GAVL_QUALITY_BEST group__quality.html gaa1374661d3b1bb939b041e14f882301e #define GAVL_QUALITY_DEFAULT group__quality.html ga22322c311ee070e08412f6f705befe25 accel_flags Acceleration flags group__accel__flags.html #define GAVL_ACCEL_MMX group__accel__flags.html ga396b945ed3895dbf9c7e086c9769511b #define GAVL_ACCEL_MMXEXT group__accel__flags.html ga6ff656ed250442d5e7ab15faaf8de449 #define GAVL_ACCEL_SSE group__accel__flags.html ga8d2cb2b3327e4626d1a22f9b98e065ba #define GAVL_ACCEL_SSE2 group__accel__flags.html ga2ad2bb06c442d970febd989d5e9c434f #define GAVL_ACCEL_SSE3 group__accel__flags.html ga1c811566a7a5b8611807782bf6f56fc5 #define GAVL_ACCEL_3DNOW group__accel__flags.html ga1252e9a9b3b94299207643551e4e3a90 #define GAVL_ACCEL_3DNOWEXT group__accel__flags.html ga10bf859545e33246acb2321c0e6d1eda #define GAVL_ACCEL_SSSE3 group__accel__flags.html ga035e482e38fefb4e88a068698f5a4bbf GAVL_PUBLIC int gavl_accel_supported group__accel__flags.html ga9ee7b6f97f38d7f77a03f8e3b8fc47f3 () audio Audio group__audio.html audio_format audio_frame audio_options audio_converter volume_control peak_detection audio_format Audio format definitions group__audio__format.html gavl_audio_format_t #define GAVL_MAX_CHANNELS group__audio__format.html gadf04f3cec52fc5df08390e0feca392d8 gavl_sample_format_t group__audio__format.html ga08ca85571b963dca380529d3c64e8d04 GAVL_SAMPLE_NONE group__audio__format.html gga08ca85571b963dca380529d3c64e8d04a5681e0131192ef4c5baf7aabfd53d470 GAVL_SAMPLE_U8 group__audio__format.html gga08ca85571b963dca380529d3c64e8d04a5a99cb841b307045c0a9f2c90ebdddc7 GAVL_SAMPLE_S8 group__audio__format.html gga08ca85571b963dca380529d3c64e8d04a75aa6db07e83e2cb7ab52ebc8943ec9a GAVL_SAMPLE_U16 group__audio__format.html gga08ca85571b963dca380529d3c64e8d04a8c81b8d4cdf85b942f9131b2c8cf04f5 GAVL_SAMPLE_S16 group__audio__format.html gga08ca85571b963dca380529d3c64e8d04aabaddf765acac09e8e104c0a1c0abfd3 GAVL_SAMPLE_S32 group__audio__format.html gga08ca85571b963dca380529d3c64e8d04af51697b6266eea712dfa0fd884d956ee GAVL_SAMPLE_FLOAT group__audio__format.html gga08ca85571b963dca380529d3c64e8d04a3edfde34e4bb95751ba81ee688c2c91a GAVL_SAMPLE_DOUBLE group__audio__format.html gga08ca85571b963dca380529d3c64e8d04ab9aecd4dd6cacbbea7fc1170b065d53c gavl_interleave_mode_t group__audio__format.html ga7ed6d11fe342b9d77d2252da737fe70c GAVL_INTERLEAVE_NONE group__audio__format.html gga7ed6d11fe342b9d77d2252da737fe70caa98036ec9c35e15773f7eee9cfb5c4a7 GAVL_INTERLEAVE_2 group__audio__format.html gga7ed6d11fe342b9d77d2252da737fe70ca502a85cc59d5839c1935196cb0ebec8b GAVL_INTERLEAVE_ALL group__audio__format.html gga7ed6d11fe342b9d77d2252da737fe70ca5af921652b91c139a5e107a01f43888e gavl_channel_id_t group__audio__format.html ga0167e2e6a67aadb417ad7735ce85dc8c GAVL_CHID_NONE group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8ca96f1678288e5e15465e83ca0b4ff5b8c GAVL_CHID_FRONT_CENTER group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8cafc8c33d89aae92eedd2a9cc6460496d8 GAVL_CHID_FRONT_LEFT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8ca5f3cbff9e18df5d430b794ad26a8ebe0 GAVL_CHID_FRONT_RIGHT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8ca0d09580f5510ec0384353b7927cdb5cc GAVL_CHID_FRONT_CENTER_LEFT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8caa6178f1146615d4000d3cf48465ec54a GAVL_CHID_FRONT_CENTER_RIGHT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8caf53beeb74f046a3d7fc9b00458065fd6 GAVL_CHID_REAR_LEFT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8ca7481629b20d13bb3b7b199e12e7fb9d9 GAVL_CHID_REAR_RIGHT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8caccfda1a5cafdc82d9d701c8eb2c6c42b GAVL_CHID_REAR_CENTER group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8cac527fed53e7225bcb00c92e3c9d71a8b GAVL_CHID_SIDE_LEFT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8ca8d304398b8347447c1277ea966722a74 GAVL_CHID_SIDE_RIGHT group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8ca0abe864a9e34165cdb7c0720d126c706 GAVL_CHID_LFE group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8cacbc8b1ee07f3315da917e0486b672ba7 GAVL_CHID_AUX group__audio__format.html gga0167e2e6a67aadb417ad7735ce85dc8cad31c6ef1ed7499a2856bb5b8c5df8524 GAVL_PUBLIC const char * gavl_sample_format_to_string group__audio__format.html gad9ea76294adc1d6735eff6ba1857191a (gavl_sample_format_t format) GAVL_PUBLIC gavl_sample_format_t gavl_string_to_sample_format group__audio__format.html ga8067174ffec304b9bb7c74a009381ae4 (const char *str) GAVL_PUBLIC int gavl_num_sample_formats group__audio__format.html ga7e5a70e2645a0b91ab0894428acb7897 () GAVL_PUBLIC gavl_sample_format_t gavl_get_sample_format group__audio__format.html ga6eebc350f7d91bcd69ee700b610c2020 (int index) GAVL_PUBLIC const char * gavl_channel_id_to_string group__audio__format.html ga31e8418019af5bdeb9a73c876bac0e65 (gavl_channel_id_t id) GAVL_PUBLIC const char * gavl_interleave_mode_to_string group__audio__format.html gabcb856be7fa689fd1c675dda81595113 (gavl_interleave_mode_t mode) GAVL_PUBLIC void gavl_audio_format_dump group__audio__format.html gaa2d9ff1e5b43099590184144eeba95ab (const gavl_audio_format_t *format) GAVL_PUBLIC int gavl_channel_index group__audio__format.html ga234f80024bfc5453d0524cc8de1516c8 (const gavl_audio_format_t *format, gavl_channel_id_t id) GAVL_PUBLIC int gavl_front_channels group__audio__format.html ga815cb5429b6a814860119e5ef7c8deef (const gavl_audio_format_t *format) GAVL_PUBLIC int gavl_rear_channels group__audio__format.html gabb7b66e606066a3c302b063ab93afdb7 (const gavl_audio_format_t *format) GAVL_PUBLIC int gavl_side_channels group__audio__format.html ga4130aff13ee9595d4c9a304e8b05adcd (const gavl_audio_format_t *format) GAVL_PUBLIC int gavl_aux_channels group__audio__format.html gab146748fadfdc5e2a518a36988fb0eb3 (const gavl_audio_format_t *format) GAVL_PUBLIC int gavl_lfe_channels group__audio__format.html ga502a73eef08caa003c29b962376301df (const gavl_audio_format_t *format) GAVL_PUBLIC void gavl_audio_format_copy group__audio__format.html ga161efe9868875d58827c93fa452db78d (gavl_audio_format_t *dst, const gavl_audio_format_t *src) GAVL_PUBLIC int gavl_audio_formats_equal group__audio__format.html gadca0772d3ff0cfb5d325e0a67889cae6 (const gavl_audio_format_t *format_1, const gavl_audio_format_t *format_2) GAVL_PUBLIC void gavl_set_channel_setup group__audio__format.html ga4afb1dc2219da8ee1a74d8024ab5fde8 (gavl_audio_format_t *format) GAVL_PUBLIC int gavl_bytes_per_sample group__audio__format.html ga89333e682b542c89bd936ad27dcc8227 (gavl_sample_format_t format) audio_frame Audio frame group__audio__frame.html gavl_audio_samples_t gavl_audio_channels_t gavl_audio_frame_t GAVL_PUBLIC gavl_audio_frame_t * gavl_audio_frame_create group__audio__frame.html ga9a0679da671cfc38a1d1a8e39c404944 (const gavl_audio_format_t *format) GAVL_PUBLIC void gavl_audio_frame_null group__audio__frame.html ga203183dff047b475214beceb43732d16 (gavl_audio_frame_t *frame) GAVL_PUBLIC void gavl_audio_frame_destroy group__audio__frame.html ga194da819036369ca914a8479a70a4c09 (gavl_audio_frame_t *frame) GAVL_PUBLIC void gavl_audio_frame_mute group__audio__frame.html ga1b82e5d76caf45516d699bfec4ca7093 (gavl_audio_frame_t *frame, const gavl_audio_format_t *format) GAVL_PUBLIC void gavl_audio_frame_mute_samples group__audio__frame.html ga370d773027608de16a0e0a9f22d91f95 (gavl_audio_frame_t *frame, const gavl_audio_format_t *format, int num_samples) GAVL_PUBLIC void gavl_audio_frame_mute_channel group__audio__frame.html ga9b59575515b750736f40afe67c346b4b (gavl_audio_frame_t *frame, const gavl_audio_format_t *format, int channel) GAVL_PUBLIC int gavl_audio_frame_copy group__audio__frame.html ga57b5345d068cfbc38f08445ecd121437 (const gavl_audio_format_t *format, gavl_audio_frame_t *dst, const gavl_audio_frame_t *src, int dst_pos, int src_pos, int dst_size, int src_size) GAVL_PUBLIC void gavl_audio_frame_copy_ptrs group__audio__frame.html gabfbae3990b162ad5fe36b3137633260e (const gavl_audio_format_t *format, gavl_audio_frame_t *dst, const gavl_audio_frame_t *src) GAVL_PUBLIC void gavl_audio_frame_get_subframe group__audio__frame.html ga86c3f2bc3346e3f8031e030deaea8d8c (const gavl_audio_format_t *format, gavl_audio_frame_t *src, gavl_audio_frame_t *dst, int start, int len) GAVL_PUBLIC int gavl_audio_frames_equal group__audio__frame.html gabb58c41223763dbce3ad6e99396c1225 (const gavl_audio_format_t *format, const gavl_audio_frame_t *f1, const gavl_audio_frame_t *f2) GAVL_PUBLIC int gavl_audio_frame_plot group__audio__frame.html ga9dfdb12d729cf26adf0c53b224191e4a (const gavl_audio_format_t *format, const gavl_audio_frame_t *frame, const char *name_base) audio_options Audio conversion options group__audio__options.html audio_conversion_flags struct gavl_audio_options_s gavl_audio_options_t group__audio__options.html ga1667eb35773f94035acd0ba81cdada05 gavl_audio_dither_mode_t group__audio__options.html ga7675efc0dadfb0f13cd5def14d16eac3 gavl_resample_mode_t group__audio__options.html ga980691f2c8c3c77a45e959e433b80a1c GAVL_RESAMPLE_AUTO group__audio__options.html gga980691f2c8c3c77a45e959e433b80a1cac630f7dae0e307a333abd9f3feb84e35 GAVL_RESAMPLE_ZOH group__audio__options.html gga980691f2c8c3c77a45e959e433b80a1ca748c06882eb6da67afdf31688aae1b97 GAVL_RESAMPLE_LINEAR group__audio__options.html gga980691f2c8c3c77a45e959e433b80a1cab64c3b5e39489db00eeba97bc4c5b7c3 GAVL_RESAMPLE_SINC_FAST group__audio__options.html gga980691f2c8c3c77a45e959e433b80a1cafd1a6035ae2efdcc6460fa49d20507c2 GAVL_RESAMPLE_SINC_MEDIUM group__audio__options.html gga980691f2c8c3c77a45e959e433b80a1cacd97ff82e1fd6220cf7bb1c8689d2c7d GAVL_RESAMPLE_SINC_BEST group__audio__options.html gga980691f2c8c3c77a45e959e433b80a1ca0e3af39db4a4f523aa4284806dfdf92f GAVL_PUBLIC void gavl_audio_options_set_quality group__audio__options.html gafa95f29c3f2a5bb75bf9c6693f96b8ea (gavl_audio_options_t *opt, int quality) GAVL_PUBLIC int gavl_audio_options_get_quality group__audio__options.html ga3df9fcad6203a59bceaa5794ab4a681d (gavl_audio_options_t *opt) GAVL_PUBLIC void gavl_audio_options_set_dither_mode group__audio__options.html ga90ca06e9e71186501def737c9bc8aead (gavl_audio_options_t *opt, gavl_audio_dither_mode_t mode) GAVL_PUBLIC gavl_audio_dither_mode_t gavl_audio_options_get_dither_mode group__audio__options.html ga51006fccdbe80bd4625f0179dc7bd86f (gavl_audio_options_t *opt) GAVL_PUBLIC void gavl_audio_options_set_resample_mode group__audio__options.html ga19cb5d887992703cf237ede16e3f19d6 (gavl_audio_options_t *opt, gavl_resample_mode_t mode) GAVL_PUBLIC gavl_resample_mode_t gavl_audio_options_get_resample_mode group__audio__options.html ga897e99f898c8712067a841b5ecfd0e3a (gavl_audio_options_t *opt) GAVL_PUBLIC void gavl_audio_options_set_conversion_flags group__audio__options.html ga817ed0e944d3fa4584d3185b4a7023b4 (gavl_audio_options_t *opt, int flags) GAVL_PUBLIC int gavl_audio_options_get_conversion_flags group__audio__options.html gaa5a958717b683f11090c79fe0ed11edb (gavl_audio_options_t *opt) GAVL_PUBLIC void gavl_audio_options_set_defaults group__audio__options.html ga86b295e9eab438f46d2c8b3547f4571c (gavl_audio_options_t *opt) GAVL_PUBLIC void gavl_audio_options_set_mix_matrix group__audio__options.html ga8b86d142de20ae4a7dda2d221604343c (gavl_audio_options_t *opt, const double **matrix) GAVL_PUBLIC const double ** gavl_audio_options_get_mix_matrix group__audio__options.html ga476fcaf23c89c45d9af3a47e138e2980 (gavl_audio_options_t *opt) GAVL_PUBLIC gavl_audio_options_t * gavl_audio_options_create group__audio__options.html gaa0b881a1632ab23ef69ce032faddc3ee () GAVL_PUBLIC void gavl_audio_options_copy group__audio__options.html ga4a9c0451ef538655c6f3c32d4ba8ae35 (gavl_audio_options_t *dst, const gavl_audio_options_t *src) GAVL_PUBLIC void gavl_audio_options_destroy group__audio__options.html gab989761a491dab46a6bfb67ff6e32d4f (gavl_audio_options_t *opt) audio_conversion_flags Audio conversion flags group__audio__conversion__flags.html #define GAVL_AUDIO_FRONT_TO_REAR_COPY group__audio__conversion__flags.html gac2f3980189b56280c4df7946e75da031 #define GAVL_AUDIO_FRONT_TO_REAR_MUTE group__audio__conversion__flags.html ga98cc643204a882dac3b74748b799845f #define GAVL_AUDIO_FRONT_TO_REAR_DIFF group__audio__conversion__flags.html ga718d9e0138f967665abac2f95bc78359 #define GAVL_AUDIO_FRONT_TO_REAR_MASK group__audio__conversion__flags.html gaf9cc032776f56df949476e79c85710b2 #define GAVL_AUDIO_STEREO_TO_MONO_LEFT group__audio__conversion__flags.html ga3609388de4180bb572622980d7c7ebb8 #define GAVL_AUDIO_STEREO_TO_MONO_RIGHT group__audio__conversion__flags.html ga89b4b04fad25b6f14f6418d1087f30e1 #define GAVL_AUDIO_STEREO_TO_MONO_MIX group__audio__conversion__flags.html gab07e520216622c2edd1df1c816fb1e71 #define GAVL_AUDIO_STEREO_TO_MONO_MASK group__audio__conversion__flags.html gaefe94992b7a5b98e38e95ca077f67c78 #define GAVL_AUDIO_NORMALIZE_MIX_MATRIX group__audio__conversion__flags.html gab594fc7fb1155a6785c44e79a6db7d35 audio_converter Audio converter group__audio__converter.html struct gavl_audio_converter_s gavl_audio_converter_t group__audio__converter.html ga709646455c9edc02c6af02fd72520a28 GAVL_PUBLIC gavl_audio_converter_t * gavl_audio_converter_create group__audio__converter.html gacd99406f937e207aa9dda8a3c7feaf0b () GAVL_PUBLIC void gavl_audio_converter_destroy group__audio__converter.html ga456678a7ae39d257454677dc18299c53 (gavl_audio_converter_t *cnv) GAVL_PUBLIC gavl_audio_options_t * gavl_audio_converter_get_options group__audio__converter.html gad3bf181747fc38f33898ba97398e6978 (gavl_audio_converter_t *cnv) GAVL_PUBLIC int gavl_audio_converter_init group__audio__converter.html ga993422a1776a20a3e0adf8134b1e5e54 (gavl_audio_converter_t *cnv, const gavl_audio_format_t *input_format, const gavl_audio_format_t *output_format) GAVL_PUBLIC int gavl_audio_converter_init_resample group__audio__converter.html gaa5ce31f55199cd7c5112a7f54a677bc7 (gavl_audio_converter_t *cnv, const gavl_audio_format_t *format) GAVL_PUBLIC int gavl_audio_converter_reinit group__audio__converter.html gada0b6d6325ab9cea2c28a812bfd2cc85 (gavl_audio_converter_t *cnv) GAVL_PUBLIC void gavl_audio_convert group__audio__converter.html ga9867369b63ae7d62843172a1577a13a8 (gavl_audio_converter_t *cnv, const gavl_audio_frame_t *input_frame, gavl_audio_frame_t *output_frame) GAVL_PUBLIC int gavl_audio_converter_set_resample_ratio group__audio__converter.html gad48cb6703b3803805808a52684640da0 (gavl_audio_converter_t *cnv, double ratio) GAVL_PUBLIC void gavl_audio_converter_resample group__audio__converter.html ga3b4a73cf926b7ae878c10d53fa2c1af2 (gavl_audio_converter_t *cnv, gavl_audio_frame_t *input_frame, gavl_audio_frame_t *output_frame, double ratio) volume_control Volume control group__volume__control.html struct gavl_volume_control_s gavl_volume_control_t group__volume__control.html gae8781d6999b54e43aaadce7276608094 GAVL_PUBLIC gavl_volume_control_t * gavl_volume_control_create group__volume__control.html ga25e0769a204694c823a5479f2523b22e () GAVL_PUBLIC void gavl_volume_control_destroy group__volume__control.html ga78702c1703b4246993d2100f6bf1ba21 (gavl_volume_control_t *ctrl) GAVL_PUBLIC void gavl_volume_control_set_format group__volume__control.html gad02d09ed3342b5aab75c1d96287e7907 (gavl_volume_control_t *ctrl, const gavl_audio_format_t *format) GAVL_PUBLIC void gavl_volume_control_set_volume group__volume__control.html ga3de60cc1345fb95f4f262a1665b6360e (gavl_volume_control_t *ctrl, float volume) GAVL_PUBLIC void gavl_volume_control_apply group__volume__control.html ga3ebf8e61c37d0c4eb5510dbf23fc2826 (gavl_volume_control_t *ctrl, gavl_audio_frame_t *frame) peak_detection Peak detector group__peak__detection.html struct gavl_peak_detector_s gavl_peak_detector_t group__peak__detection.html ga1974488d678c0e0f8fc55a5ecaa24e1c GAVL_PUBLIC gavl_peak_detector_t * gavl_peak_detector_create group__peak__detection.html gacfd0d1870f12dc9b2d498317f9487dd4 () GAVL_PUBLIC void gavl_peak_detector_destroy group__peak__detection.html gaffc05b8a605cfab813bf368f27592bb3 (gavl_peak_detector_t *pd) GAVL_PUBLIC void gavl_peak_detector_set_format group__peak__detection.html ga47d5a567add1e12fdb57e55053ce6ecc (gavl_peak_detector_t *pd, const gavl_audio_format_t *format) GAVL_PUBLIC void gavl_peak_detector_update group__peak__detection.html ga68a33fb2e39b014897bab9cbd6b97c1a (gavl_peak_detector_t *pd, gavl_audio_frame_t *frame) GAVL_PUBLIC void gavl_peak_detector_get_peak group__peak__detection.html gab72a6993c866fe8fb2779604bc7a85e7 (gavl_peak_detector_t *pd, double *min, double *max, double *abs) GAVL_PUBLIC void gavl_peak_detector_get_peaks group__peak__detection.html ga325302b265f717795dc0ac32f7ce33d0 (gavl_peak_detector_t *pd, double *min, double *max, double *abs) GAVL_PUBLIC void gavl_peak_detector_reset group__peak__detection.html ga4de693cdd4743448c9d45e3a473ec956 (gavl_peak_detector_t *pd) video Video group__video.html rectangle video_format video_frame video_options video_converter video_scaler video_deinterlacer video_blend video_transform frame_table #define GAVL_MAX_PLANES group__video.html ga0bd744118eafc166feddd214c1dfae19 rectangle Rectangles group__rectangle.html gavl_rectangle_i_t gavl_rectangle_f_t GAVL_PUBLIC void gavl_rectangle_i_crop_to_format group__rectangle.html ga7ae156940f82f653e5c71c5aef6f0763 (gavl_rectangle_i_t *r, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_rectangle_f_crop_to_format group__rectangle.html gae22ac4088db0fcc4a5909a3e4b84fd1e (gavl_rectangle_f_t *r, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_rectangle_crop_to_format_noscale group__rectangle.html ga87d49b21d998f28329101e0307ca6a8d (gavl_rectangle_i_t *src_rect, gavl_rectangle_i_t *dst_rect, const gavl_video_format_t *src_format, const gavl_video_format_t *dst_format) GAVL_PUBLIC void gavl_rectangle_crop_to_format_scale group__rectangle.html ga1c3426ca2a490a47739aa742fb9542dc (gavl_rectangle_f_t *src_rect, gavl_rectangle_i_t *dst_rect, const gavl_video_format_t *src_format, const gavl_video_format_t *dst_format) GAVL_PUBLIC void gavl_rectangle_i_set_all group__rectangle.html ga9648c59d66bd88a6b728571b73ba3b7c (gavl_rectangle_i_t *r, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_rectangle_f_set_all group__rectangle.html ga98284d25f9c6fd98004f77e2fd4e6b2b (gavl_rectangle_f_t *r, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_rectangle_i_crop_left group__rectangle.html gae2cd9477cc1964f23b8c8edfd4f4a4af (gavl_rectangle_i_t *r, int num_pixels) GAVL_PUBLIC void gavl_rectangle_i_crop_right group__rectangle.html gaffc80d8450f2fea76234b557f0f09522 (gavl_rectangle_i_t *r, int num_pixels) GAVL_PUBLIC void gavl_rectangle_i_crop_top group__rectangle.html ga6a20ae617af2d13e5693794b5d8df752 (gavl_rectangle_i_t *r, int num_pixels) GAVL_PUBLIC void gavl_rectangle_i_crop_bottom group__rectangle.html gaddc2ff155cf43424de2c14e43e297876 (gavl_rectangle_i_t *r, int num_pixels) GAVL_PUBLIC void gavl_rectangle_f_crop_left group__rectangle.html ga1407bf537e1cff64ca3d0e6af95a866b (gavl_rectangle_f_t *r, double num_pixels) GAVL_PUBLIC void gavl_rectangle_f_crop_right group__rectangle.html ga367a4290d4bc74bd9b926a607f2b7c46 (gavl_rectangle_f_t *r, double num_pixels) GAVL_PUBLIC void gavl_rectangle_f_crop_top group__rectangle.html gabb55c7eb64f7107a9b058fa3d1241a29 (gavl_rectangle_f_t *r, double num_pixels) GAVL_PUBLIC void gavl_rectangle_f_crop_bottom group__rectangle.html ga0216cc66921a2af82753b9074da34778 (gavl_rectangle_f_t *r, double num_pixels) GAVL_PUBLIC void gavl_rectangle_i_align group__rectangle.html ga1b56abb2a5dcf55349b29dce2d9a5d18 (gavl_rectangle_i_t *r, int h_align, int v_align) GAVL_PUBLIC void gavl_rectangle_i_align_to_format group__rectangle.html gadde03e77061cc2f94d18cfc397367f72 (gavl_rectangle_i_t *r, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_rectangle_i_copy group__rectangle.html ga25f9c52b82011ab316cc4868e38ba89a (gavl_rectangle_i_t *dst, const gavl_rectangle_i_t *src) GAVL_PUBLIC void gavl_rectangle_f_copy group__rectangle.html ga9c074aec31efc6438c7fd2ee2a11bf25 (gavl_rectangle_f_t *dst, const gavl_rectangle_f_t *src) GAVL_PUBLIC void gavl_rectangle_i_to_f group__rectangle.html ga95ed22f48ca35d9fdcb45d709dffb695 (gavl_rectangle_f_t *dst, const gavl_rectangle_i_t *src) GAVL_PUBLIC void gavl_rectangle_f_to_i group__rectangle.html gabb07ec1566fa9bb121b8c3600067753f (gavl_rectangle_i_t *dst, const gavl_rectangle_f_t *src) GAVL_PUBLIC int gavl_rectangle_i_is_empty group__rectangle.html ga0af13160abd736041d5b99427043b12a (const gavl_rectangle_i_t *r) GAVL_PUBLIC int gavl_rectangle_f_is_empty group__rectangle.html ga06733e84c28093743d961e95b71c8ecf (const gavl_rectangle_f_t *r) GAVL_PUBLIC void gavl_rectangle_fit_aspect group__rectangle.html ga8d88bf976c31e23e61cccf68c0b40bbe (gavl_rectangle_i_t *dst_rect, const gavl_video_format_t *src_format, const gavl_rectangle_f_t *src_rect, const gavl_video_format_t *dst_format, float zoom, float squeeze) GAVL_PUBLIC void gavl_rectangle_i_dump group__rectangle.html ga4f01062ce92f163eb465606dd7d30a69 (const gavl_rectangle_i_t *r) GAVL_PUBLIC void gavl_rectangle_f_dump group__rectangle.html gad6fe827b60f8f30ea67820fb86e4aa2f (const gavl_rectangle_f_t *r) video_format Video format definitions group__video__format.html gavl_video_format_s #define GAVL_PIXFMT_PLANAR group__video__format.html ga04b9a9a01c859eef903ad5c929b5a376 #define GAVL_PIXFMT_RGB group__video__format.html gaadfa65377172d2d7780888c1435996b9 #define GAVL_PIXFMT_YUV group__video__format.html gab68ea697e8c26f1ac9458ab7dfc5ac2d #define GAVL_PIXFMT_YUVJ group__video__format.html gac9f6894e861877932a3d9e22de68f217 #define GAVL_PIXFMT_ALPHA group__video__format.html ga0a439a4323f4f72a1306b4a45d527c4d #define GAVL_PIXFMT_GRAY group__video__format.html ga2198acc6ef5344d1a7c1a06703b7b465 #define GAVL_PIXELFORMAT_1D_8 group__video__format.html gab202d0ec7abde22239f83d1b6cd6ebcf #define GAVL_PIXELFORMAT_2D_8 group__video__format.html gaa4282924f2ee78d7315f506eb9fb9f6f #define GAVL_PIXELFORMAT_3D_8 group__video__format.html ga2a58de9595570e3559119d781b084f11 #define GAVL_PIXELFORMAT_4D_8 group__video__format.html ga93a7617611792823006645de5cf5260e #define GAVL_PIXELFORMAT_1D_16 group__video__format.html gab0208787b206fe928c36c20ea42a6139 #define GAVL_PIXELFORMAT_2D_16 group__video__format.html gaaba615be8b1eed3bf97bf4330f125845 #define GAVL_PIXELFORMAT_3D_16 group__video__format.html ga8195086e330e9a2bad124f1fb2b6c780 #define GAVL_PIXELFORMAT_4D_16 group__video__format.html gae42c8d5ad82972f8c81dba01da22af45 #define GAVL_PIXELFORMAT_1D_FLOAT group__video__format.html ga033fa8cf38ee17c8787c43327369bfa9 #define GAVL_PIXELFORMAT_2D_FLOAT group__video__format.html gafb7ba5af81a0eef371499a37a590b890 #define GAVL_PIXELFORMAT_3D_FLOAT group__video__format.html ga9bc6095a4f7bbbbe4b122dbe5665dac4 #define GAVL_PIXELFORMAT_4D_FLOAT group__video__format.html ga32369e032b8cc4df10b42cfcdf2f846b #define gavl_pixelformat_is_gray group__video__format.html gaf44add25fc0d3beca7ca05180e5b42f9 (fmt) #define gavl_pixelformat_is_rgb group__video__format.html gaa817c92786c87106ffd6e5dc83c9559a (fmt) #define gavl_pixelformat_is_yuv group__video__format.html ga01053608fe3d999aa9ee5a1c9de92f52 (fmt) #define gavl_pixelformat_is_jpeg_scaled group__video__format.html ga177fcadc2d94a2a5b44fef3df2551cec (fmt) #define gavl_pixelformat_has_alpha group__video__format.html ga05959f9b8dd7b5464b964bdfc50e0bf2 (fmt) #define gavl_pixelformat_is_planar group__video__format.html gaa9d242d428b8e06d245644ab5bb900a4 (fmt) struct gavl_video_format_s gavl_video_format_t group__video__format.html ga0ffc9c60fb71a5fb835e453531fd442c gavl_pixelformat_t group__video__format.html gaf1e060e38cb2d9e4e776f7eca3ec2d33 GAVL_PIXELFORMAT_NONE group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33ac717f2fe9459d34033f9795a652786be GAVL_GRAY_8 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a69f10c2c74f64f7bc5c6ddd5022bd1e9 GAVL_GRAY_16 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33ae952bf31e83f79f856f6d7c6f068a9ea GAVL_GRAY_FLOAT group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33acdd40c6cc16c6f44b33e0f57e2e61219 GAVL_GRAYA_16 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33acb8992556bb1905eef5e5fdf856a4a28 GAVL_GRAYA_32 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a27727603e024b74500919f9e3aa29081 GAVL_GRAYA_FLOAT group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33ab1bd641d1567206cfb405293ad8ed797 GAVL_RGB_15 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33af56e3146de38129ab2a77d9c78b68597 GAVL_BGR_15 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33ab97b65c52e4f22512fc504c318d828f7 GAVL_RGB_16 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a3b3ab22b714c2b2dbe8378ba6e665aed GAVL_BGR_16 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33aec80b2d18ff47362cc27fcc37d14ad6f GAVL_RGB_24 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a8211bc654500aecfd275674f6221043f GAVL_BGR_24 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a13a997c77aae8666186d41a4b81587fc GAVL_RGB_32 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a1e0326ee4c758091617b60989ca47b0c GAVL_BGR_32 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33afed887430acaadf1f5ea53b816dfabd6 GAVL_RGBA_32 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33addf19307ad488270fa01958f81e49805 GAVL_RGB_48 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a1a8169a0597e154a27eb24f2415b5286 GAVL_RGBA_64 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a84b98bc0e63c1695bc7c4d07d90ca2d7 GAVL_RGB_FLOAT group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a5d444e80ac504e8ce319652f5fcfa50c GAVL_RGBA_FLOAT group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33afbfe8d7d8aa64729cf7c2a4a2ce9624e GAVL_YUY2 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a8d27aaccb4602c8ec8676f9290a5dd5c GAVL_UYVY group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a3d4ff8ef4a77ed775628c32112aa6149 GAVL_YUVA_32 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a38f188147bf813acdbfd186a94b80ded GAVL_YUVA_64 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33af07dec1edf32b16bd22f03a3b5eac0f2 GAVL_YUV_FLOAT group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33adcc84a95ec748160fcb6b7a6a93a84a8 GAVL_YUVA_FLOAT group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33aa29f4a91e89d701ca2e65a080fc3101a GAVL_YUV_420_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a20f380c90a1540717452e3a793719b59 GAVL_YUV_422_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a104f0457d36f00af8a42fb8ea44a04ff GAVL_YUV_444_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a53d86fa6e94bb857879932823cd1b299 GAVL_YUV_411_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33acbc562d3d3dabe924be4cf0fda42608b GAVL_YUV_410_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a19bb2c8eda0bfdda876921e0de0ae630 GAVL_YUVJ_420_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a0e46c4cee26289eee8cc1feef2bcb544 GAVL_YUVJ_422_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a6532ffb3fbf64ad20c866cbd9c794bad GAVL_YUVJ_444_P group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33aa6bb415b453cdfb92c0b6b9cbb745f9a GAVL_YUV_444_P_16 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33abed85774258b87ba556036a39b67a98a GAVL_YUV_422_P_16 group__video__format.html ggaf1e060e38cb2d9e4e776f7eca3ec2d33a41e6c2b3847dd8a9f18cc9af77064d04 gavl_color_channel_t group__video__format.html gac25e4e4e1a7bdc0160bf0e1d6910b87c GAVL_CCH_RED group__video__format.html ggac25e4e4e1a7bdc0160bf0e1d6910b87ca3c417d9a66b30aea8a7e2d70d4030237 GAVL_CCH_GREEN group__video__format.html ggac25e4e4e1a7bdc0160bf0e1d6910b87ca935ecdaabed4463d03a233188c279013 GAVL_CCH_BLUE group__video__format.html ggac25e4e4e1a7bdc0160bf0e1d6910b87caf34d3d1d6505a7753f2d02b334062cd9 GAVL_CCH_Y group__video__format.html ggac25e4e4e1a7bdc0160bf0e1d6910b87ca2c1b2d1518c2f530407b99f7f829f724 GAVL_CCH_CB group__video__format.html ggac25e4e4e1a7bdc0160bf0e1d6910b87cacd98f6faa2dedd0c524a67dfe63c19f7 GAVL_CCH_CR group__video__format.html ggac25e4e4e1a7bdc0160bf0e1d6910b87ca688e2019c853dc04f1fc246c3d1f4bde GAVL_CCH_ALPHA group__video__format.html ggac25e4e4e1a7bdc0160bf0e1d6910b87ca9e6559f4221ae2f66b499132cc32c6ca gavl_chroma_placement_t group__video__format.html ga1e5257edc9b29af8eba05825db5a0906 GAVL_CHROMA_PLACEMENT_DEFAULT group__video__format.html gga1e5257edc9b29af8eba05825db5a0906ae18f2501f64f2d4ace44fc84d7c719f7 GAVL_CHROMA_PLACEMENT_MPEG2 group__video__format.html gga1e5257edc9b29af8eba05825db5a0906ad5180e13cd750c7b3618a785b4a87cf6 GAVL_CHROMA_PLACEMENT_DVPAL group__video__format.html gga1e5257edc9b29af8eba05825db5a0906a845aeec284544ec190abf0eeaac0e0be gavl_framerate_mode_t group__video__format.html ga27bc061c95b4416a2ddd2cae2f8ee811 GAVL_FRAMERATE_UNKNOWN group__video__format.html gga27bc061c95b4416a2ddd2cae2f8ee811a300414b65b11483cf8838b38481e8ae9 GAVL_FRAMERATE_CONSTANT group__video__format.html gga27bc061c95b4416a2ddd2cae2f8ee811a3b8019ccde52a3dc42b337bb21addad7 GAVL_FRAMERATE_VARIABLE group__video__format.html gga27bc061c95b4416a2ddd2cae2f8ee811a72e7a1eec40615145fbc3ef25bdd026e GAVL_FRAMERATE_STILL group__video__format.html gga27bc061c95b4416a2ddd2cae2f8ee811a45ddb770b81289188a660dee7d742fb0 gavl_interlace_mode_t group__video__format.html gaabe1b351049ab5c62ff328c4e4258fae GAVL_INTERLACE_UNKNOWN group__video__format.html ggaabe1b351049ab5c62ff328c4e4258faeac5b2f83ecbbc20d76138c5dc0f22244c GAVL_INTERLACE_NONE group__video__format.html ggaabe1b351049ab5c62ff328c4e4258faea75824d34edcb89aa3b6862ea70dc1f97 GAVL_INTERLACE_TOP_FIRST group__video__format.html ggaabe1b351049ab5c62ff328c4e4258faeafe84e0cef3df2b894eca9474718a8b99 GAVL_INTERLACE_BOTTOM_FIRST group__video__format.html ggaabe1b351049ab5c62ff328c4e4258faeaac14ef96211f39740c21cfcf6a281483 GAVL_INTERLACE_MIXED group__video__format.html ggaabe1b351049ab5c62ff328c4e4258faeacdfc8ca442527b5379a5623bbfb07b50 GAVL_INTERLACE_MIXED_TOP group__video__format.html ggaabe1b351049ab5c62ff328c4e4258faea73995c8c62d987619469f720980336cf GAVL_INTERLACE_MIXED_BOTTOM group__video__format.html ggaabe1b351049ab5c62ff328c4e4258faea0164fdbfe0f0260313d5e27804748cc1 GAVL_PUBLIC int gavl_pixelformat_num_planes group__video__format.html gabc4c5fc3243dc698d12bcb7c3d514781 (gavl_pixelformat_t pixelformat) GAVL_PUBLIC void gavl_pixelformat_chroma_sub group__video__format.html gafaed26a87cb8acf6c854e99a29f3b9c1 (gavl_pixelformat_t pixelformat, int *sub_h, int *sub_v) GAVL_PUBLIC int gavl_pixelformat_bytes_per_component group__video__format.html gade6e5f14ab00955ec4b7dc02875d3448 (gavl_pixelformat_t pixelformat) GAVL_PUBLIC int gavl_pixelformat_bytes_per_pixel group__video__format.html ga1abe2490a266feab4a7a3819f7bb0884 (gavl_pixelformat_t pixelformat) GAVL_PUBLIC int gavl_pixelformat_bits_per_pixel group__video__format.html gab36e3a7a3110eaa9d768344ed7af231c (gavl_pixelformat_t pixelformat) GAVL_PUBLIC int gavl_pixelformat_conversion_penalty group__video__format.html ga112a800cc9c95e088f7fe499e165f907 (gavl_pixelformat_t src, gavl_pixelformat_t dst) GAVL_PUBLIC gavl_pixelformat_t gavl_pixelformat_get_best group__video__format.html gad57e1813e11be4c4aee7f542e1d638eb (gavl_pixelformat_t src, const gavl_pixelformat_t *dst_supported, int *penalty) GAVL_PUBLIC const char * gavl_pixelformat_to_string group__video__format.html ga7560314c4a1e12ad925c3bdf062e0b2e (gavl_pixelformat_t pixelformat) GAVL_PUBLIC gavl_pixelformat_t gavl_string_to_pixelformat group__video__format.html gaabb3686c3275fe97f668804fb5a7e153 (const char *name) GAVL_PUBLIC int gavl_num_pixelformats group__video__format.html gac4ef623576c6c429d4e9cc0789ef0549 () GAVL_PUBLIC gavl_pixelformat_t gavl_get_pixelformat group__video__format.html ga66c7d0ad216425adf4f27a65b3e8e8be (int index) GAVL_PUBLIC const char * gavl_chroma_placement_to_string group__video__format.html ga2258430d4307e686a3dc77e52deaf079 (gavl_chroma_placement_t mode) GAVL_PUBLIC const char * gavl_framerate_mode_to_string group__video__format.html ga0e05fb91c7798060d796ff65c5f129d9 (gavl_framerate_mode_t mode) GAVL_PUBLIC const char * gavl_interlace_mode_to_string group__video__format.html ga7baa4e63f5f4699ae11d659fa5f806fe (gavl_interlace_mode_t mode) GAVL_PUBLIC void gavl_video_format_copy group__video__format.html gad2d818069b8b8c1637df0cc1493ce535 (gavl_video_format_t *dst, const gavl_video_format_t *src) GAVL_PUBLIC int gavl_video_formats_equal group__video__format.html ga35a05c81b67f1f54653c6b1a59da7e44 (const gavl_video_format_t *format_1, const gavl_video_format_t *format_2) GAVL_PUBLIC void gavl_video_format_get_chroma_offset group__video__format.html ga3c0440c17e56f3e4487628291ce65faa (const gavl_video_format_t *format, int field, int plane, float *off_x, float *off_y) GAVL_PUBLIC void gavl_video_format_fit_to_source group__video__format.html gacb0b62690147675f68a4117fb404a6a6 (gavl_video_format_t *dst, const gavl_video_format_t *src) GAVL_PUBLIC int gavl_video_format_get_image_size group__video__format.html ga666e64a92f431f7e65a68e5ca281df49 (const gavl_video_format_t *format) GAVL_PUBLIC int gavl_get_color_channel_format group__video__format.html ga21bc1aa42164f02929b8f51ba1d8195a (const gavl_video_format_t *frame_format, gavl_video_format_t *channel_format, gavl_color_channel_t ch) GAVL_PUBLIC void gavl_video_format_dump group__video__format.html ga50c31762b5ae3b4fbae13dc4605584bc (const gavl_video_format_t *format) video_frame Video frames group__video__frame.html gavl_video_frame_t GAVL_PUBLIC gavl_video_frame_t * gavl_video_frame_create group__video__frame.html gaa160f237e5de21b74844405d044e4de7 (const gavl_video_format_t *format) GAVL_PUBLIC gavl_video_frame_t * gavl_video_frame_create_nopad group__video__frame.html ga2d15154526585f38553a11e2b5deb6db (const gavl_video_format_t *format) GAVL_PUBLIC void gavl_video_frame_destroy group__video__frame.html ga153d145b7b8a359aaab1c983b0b7c940 (gavl_video_frame_t *frame) GAVL_PUBLIC void gavl_video_frame_null group__video__frame.html gab8a7c4e8c36ffc01cbc3f57ddb72d350 (gavl_video_frame_t *frame) GAVL_PUBLIC void gavl_video_frame_clear group__video__frame.html gacededf455637fb4dab06a7064af03d43 (gavl_video_frame_t *frame, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_video_frame_fill group__video__frame.html ga62a28d980d55b17290e17e837c00b382 (gavl_video_frame_t *frame, const gavl_video_format_t *format, const float *color) GAVL_PUBLIC void gavl_video_frame_absdiff group__video__frame.html ga98e7749806212c86075e71807756cdd5 (gavl_video_frame_t *dst, const gavl_video_frame_t *src1, const gavl_video_frame_t *src2, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_video_frame_psnr group__video__frame.html ga9246fb3c029aa2926252e1156ca5f15b (double *psnr, const gavl_video_frame_t *src1, const gavl_video_frame_t *src2, const gavl_video_format_t *format) GAVL_PUBLIC int gavl_video_frame_ssim group__video__frame.html gaa0a9342160b9e500a1fe1f0a52d37895 (const gavl_video_frame_t *src1, const gavl_video_frame_t *src2, gavl_video_frame_t *dst, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_video_frame_copy group__video__frame.html ga0e54b4b7c23372674854ec0579fcded2 (const gavl_video_format_t *format, gavl_video_frame_t *dst, const gavl_video_frame_t *src) GAVL_PUBLIC void gavl_video_frame_copy_plane group__video__frame.html ga14f13242d881fbd89c5dcca2b4c41fcc (const gavl_video_format_t *format, gavl_video_frame_t *dst, const gavl_video_frame_t *src, int plane) GAVL_PUBLIC void gavl_video_frame_copy_flip_x group__video__frame.html ga1914890d2e61d8667934b34662aecc0f (const gavl_video_format_t *format, gavl_video_frame_t *dst, const gavl_video_frame_t *src) GAVL_PUBLIC void gavl_video_frame_copy_flip_y group__video__frame.html ga7a24ad46c5d2c008824107d625f8b766 (const gavl_video_format_t *format, gavl_video_frame_t *dst, const gavl_video_frame_t *src) GAVL_PUBLIC void gavl_video_frame_copy_flip_xy group__video__frame.html ga51a06bf52d312cdc1dbfe7e4a17483ac (const gavl_video_format_t *format, gavl_video_frame_t *dst, const gavl_video_frame_t *src) GAVL_PUBLIC void gavl_video_frame_copy_metadata group__video__frame.html ga5a0336411fc37fc016853b68d74aef4f (gavl_video_frame_t *dst, const gavl_video_frame_t *src) GAVL_PUBLIC void gavl_video_frame_get_subframe group__video__frame.html ga427d06ec59aa8a00418faa426d5fbfc6 (gavl_pixelformat_t pixelformat, const gavl_video_frame_t *src, gavl_video_frame_t *dst, gavl_rectangle_i_t *src_rect) GAVL_PUBLIC void gavl_video_frame_get_field group__video__frame.html ga8bfaf9a717383f9a1d494f4e0c06346d (gavl_pixelformat_t pixelformat, const gavl_video_frame_t *src, gavl_video_frame_t *dst, int field) GAVL_PUBLIC void gavl_video_frame_dump group__video__frame.html ga6eb4ad1d3feb47cd148a1343ebe321fc (gavl_video_frame_t *frame, const gavl_video_format_t *format, const char *namebase) GAVL_PUBLIC void gavl_video_frame_set_strides group__video__frame.html ga33f1528b2a6885fe5de6fd60289287a9 (gavl_video_frame_t *frame, const gavl_video_format_t *format) GAVL_PUBLIC void gavl_video_frame_set_planes group__video__frame.html ga50f291ee97ef492dbf46ab17e49ad92e (gavl_video_frame_t *frame, const gavl_video_format_t *format, uint8_t *buffer) GAVL_PUBLIC int gavl_video_frame_extract_channel group__video__frame.html gaacbbc8ab6bd8532f8e285153470554b6 (const gavl_video_format_t *format, gavl_color_channel_t ch, const gavl_video_frame_t *src, gavl_video_frame_t *dst) GAVL_PUBLIC int gavl_video_frame_insert_channel group__video__frame.html ga4700fc9e06cece057d1c8a9aa058c2f8 (const gavl_video_format_t *format, gavl_color_channel_t ch, const gavl_video_frame_t *src, gavl_video_frame_t *dst) GAVL_PUBLIC int gavl_video_frames_equal group__video__frame.html gad8987beb284d530c246c153482b322ec (const gavl_video_format_t *format, const gavl_video_frame_t *f1, const gavl_video_frame_t *f2) video_options Video conversion options group__video__options.html video_conversion_flags struct gavl_video_options_s gavl_video_options_t group__video__options.html ga661526ac8e31c3a162f8607c2bcda6ee gavl_alpha_mode_t group__video__options.html ga84488233d92e9407be1596d15f6bfedf GAVL_ALPHA_IGNORE group__video__options.html gga84488233d92e9407be1596d15f6bfedfa5ef354544b4849ca240985f1c2f2b055 GAVL_ALPHA_BLEND_COLOR group__video__options.html gga84488233d92e9407be1596d15f6bfedfaa7b1ee646d776c1effb5db1ab39745a1 gavl_deinterlace_mode_t group__video__options.html ga498099f87328c97f303f538eb79eded9 GAVL_DEINTERLACE_NONE group__video__options.html gga498099f87328c97f303f538eb79eded9a3f9fa297598a227e7011325f0063409c GAVL_DEINTERLACE_COPY group__video__options.html gga498099f87328c97f303f538eb79eded9ae1639123d6cfbf03b0a5d237ccaff2dc GAVL_DEINTERLACE_SCALE group__video__options.html gga498099f87328c97f303f538eb79eded9a85b2118c04bb86c6b35f95ca793a3c9a GAVL_DEINTERLACE_BLEND group__video__options.html gga498099f87328c97f303f538eb79eded9ab6880fd729f85a010d4427d36f27af28 gavl_deinterlace_drop_mode_t group__video__options.html ga4e30253efec9dcbdac7f206bb9e1b7e3 GAVL_DEINTERLACE_DROP_TOP group__video__options.html gga4e30253efec9dcbdac7f206bb9e1b7e3a043a6bd2b00b5c633cbc765c65712eee GAVL_DEINTERLACE_DROP_BOTTOM group__video__options.html gga4e30253efec9dcbdac7f206bb9e1b7e3a469202613e52c6bc50a9fc2ead453262 gavl_scale_mode_t group__video__options.html gac527f0b25df75c9dbfdbf25521d1729e GAVL_SCALE_AUTO group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729ea4b0b7d43baf67bf6989ae5192b26efea GAVL_SCALE_NEAREST group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729ea1f53f13c482c7da3d8c3218a7ff9faf2 GAVL_SCALE_BILINEAR group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729eaf73d0475a2b5cb521a76c5d6c70fc232 GAVL_SCALE_QUADRATIC group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729eae67e61407a55aa628a4c03466331d92d GAVL_SCALE_CUBIC_BSPLINE group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729eaafcb74bc8e7e2e0c161af5d1312623c1 GAVL_SCALE_CUBIC_MITCHELL group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729ea269a9eb117090c4681bf75a2c8125e57 GAVL_SCALE_CUBIC_CATMULL group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729ea9741867d7bfc72473c7345e0b48a3a02 GAVL_SCALE_SINC_LANCZOS group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729ea6631cc5c2d05633678c6576d8e88017f GAVL_SCALE_NONE group__video__options.html ggac527f0b25df75c9dbfdbf25521d1729ea0b6ec9f7bf8cab14160b8ca30c6e451c gavl_downscale_filter_t group__video__options.html gaebb5e94ebb997e67f45a872b5b0ff07c GAVL_DOWNSCALE_FILTER_AUTO group__video__options.html ggaebb5e94ebb997e67f45a872b5b0ff07ca398a9c0771a4624191e14b1eb449f98d GAVL_DOWNSCALE_FILTER_NONE group__video__options.html ggaebb5e94ebb997e67f45a872b5b0ff07ca6d256fca4e4fae560b76737b091b30dd GAVL_DOWNSCALE_FILTER_WIDE group__video__options.html ggaebb5e94ebb997e67f45a872b5b0ff07ca9862e9d97c9c81e13ce9e7a8e55cb3c8 GAVL_DOWNSCALE_FILTER_GAUSS group__video__options.html ggaebb5e94ebb997e67f45a872b5b0ff07cafe9cbfc1e3678fa0bec3ad3738daf71d GAVL_PUBLIC void gavl_video_options_set_defaults group__video__options.html gac23a6387290cf6d486db69011e32dbdc (gavl_video_options_t *opt) GAVL_PUBLIC gavl_video_options_t * gavl_video_options_create group__video__options.html ga27837bfc6878cae6aef628f3030a4475 () GAVL_PUBLIC void gavl_video_options_copy group__video__options.html ga4b491a4a2b43905e133bbede472e823f (gavl_video_options_t *dst, const gavl_video_options_t *src) GAVL_PUBLIC void gavl_video_options_destroy group__video__options.html ga2e8b8e4ae425b057933775ab7902a8d3 (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_rectangles group__video__options.html ga25da61ba427f6b6adb421ad856351881 (gavl_video_options_t *opt, const gavl_rectangle_f_t *src_rect, const gavl_rectangle_i_t *dst_rect) GAVL_PUBLIC void gavl_video_options_get_rectangles group__video__options.html ga4b810cfbfbd98f630e25e66a179c8a16 (gavl_video_options_t *opt, gavl_rectangle_f_t *src_rect, gavl_rectangle_i_t *dst_rect) GAVL_PUBLIC void gavl_video_options_set_quality group__video__options.html ga034a90fe29d5c699cfa245f9bb33983b (gavl_video_options_t *opt, int quality) GAVL_PUBLIC int gavl_video_options_get_quality group__video__options.html ga30375731b65265cb671b7bb1438d2fa2 (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_conversion_flags group__video__options.html gac3ec270ab146f161cc43bd5cae90ecfc (gavl_video_options_t *opt, int conversion_flags) GAVL_PUBLIC int gavl_video_options_get_conversion_flags group__video__options.html gad6f90626bf1a86b1ec11bec0baa7eeff (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_alpha_mode group__video__options.html ga0961198507410733f5f2dd3b16f8ef3a (gavl_video_options_t *opt, gavl_alpha_mode_t alpha_mode) GAVL_PUBLIC gavl_alpha_mode_t gavl_video_options_get_alpha_mode group__video__options.html ga6eb115f9ad5dd24fe34d4667539bc16d (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_scale_mode group__video__options.html ga48a1e385dc969adb7ae7a559ff90eda5 (gavl_video_options_t *opt, gavl_scale_mode_t scale_mode) GAVL_PUBLIC gavl_scale_mode_t gavl_video_options_get_scale_mode group__video__options.html ga78c5b45c26e407c025760143b211332c (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_scale_order group__video__options.html gae3e332d8cf08395df2bcddeefb94cd51 (gavl_video_options_t *opt, int order) GAVL_PUBLIC int gavl_video_options_get_scale_order group__video__options.html gad05038c0147dca13b844d859a08874bd (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_background_color group__video__options.html ga86322ead33fc9ffc481b73a9749a7966 (gavl_video_options_t *opt, const float *color) GAVL_PUBLIC void gavl_video_options_get_background_color group__video__options.html ga3bf1b99b2884ae687f3ef7e319be64db (gavl_video_options_t *opt, float *color) GAVL_PUBLIC void gavl_video_options_set_deinterlace_drop_mode group__video__options.html ga8d4b5149858214e6f857c56d04bc3458 (gavl_video_options_t *opt, gavl_deinterlace_drop_mode_t deinterlace_drop_mode) GAVL_PUBLIC gavl_deinterlace_drop_mode_t gavl_video_options_get_deinterlace_drop_mode group__video__options.html gaac728276480c5d44e260208bd740b9d1 (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_downscale_filter group__video__options.html gad4c3c3e62f317b42b7ac27978ee85120 (gavl_video_options_t *opt, gavl_downscale_filter_t f) GAVL_PUBLIC gavl_downscale_filter_t gavl_video_options_get_downscale_filter group__video__options.html ga5ee0b552cc6ce31d0358d575323056b9 (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_downscale_blur group__video__options.html gacd01ddcc662b2f9f9c8a0b28eed364f6 (gavl_video_options_t *opt, float f) GAVL_PUBLIC float gavl_video_options_get_downscale_blur group__video__options.html ga9072500f822a1fbe67674ed805dfb2a6 (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_num_threads group__video__options.html ga3cbcf9e6e2eb3779f02fe655bda08fcf (gavl_video_options_t *opt, int n) GAVL_PUBLIC int gavl_video_options_get_num_threads group__video__options.html ga4a1f8ca50b4eef6c9b08c5ab7961d845 (gavl_video_options_t *opt) GAVL_PUBLIC void gavl_video_options_set_run_func group__video__options.html ga025eb6b2868d16343996d661b6ac1706 (gavl_video_options_t *opt, gavl_video_run_func func, void *client_data) GAVL_PUBLIC gavl_video_run_func gavl_video_options_get_run_func group__video__options.html ga7b47e528fe3eff115502a3fb8b7d46b5 (gavl_video_options_t *opt, void **client_data) GAVL_PUBLIC void gavl_video_options_set_stop_func group__video__options.html gaa82c8bce9206051694cf11fcb691e411 (gavl_video_options_t *opt, gavl_video_stop_func func, void *client_data) GAVL_PUBLIC gavl_video_stop_func gavl_video_options_get_stop_func group__video__options.html gae5a29f1c48e88c0a3305b69d5a537062 (gavl_video_options_t *opt, void **client_data) video_conversion_flags Video conversion flags group__video__conversion__flags.html #define GAVL_FORCE_DEINTERLACE group__video__conversion__flags.html ga2337d9ab35e09d07f98a89e8d39c3162 #define GAVL_CONVOLVE_CHROMA group__video__conversion__flags.html ga3ffaa80353e73a53efabf1418d21173e #define GAVL_CONVOLVE_NORMALIZE group__video__conversion__flags.html ga6d497ee7ddec9ecb6e374d66bae61301 #define GAVL_RESAMPLE_CHROMA group__video__conversion__flags.html gaa631f11ef50dffe0dad7519ab9b4ba3e video_converter Video converter group__video__converter.html struct gavl_video_converter_s gavl_video_converter_t group__video__converter.html ga8608b4a917f962a192fbb4e7d1a180f5 GAVL_PUBLIC gavl_video_converter_t * gavl_video_converter_create group__video__converter.html gac65bbe195bf92930e68d7d889ef4be87 () GAVL_PUBLIC void gavl_video_converter_destroy group__video__converter.html gacd1f728055a582c57f8a45484da9366d (gavl_video_converter_t *cnv) GAVL_PUBLIC gavl_video_options_t * gavl_video_converter_get_options group__video__converter.html gae07e2d1a722b74152545176d24b3cbe7 (gavl_video_converter_t *cnv) GAVL_PUBLIC int gavl_video_converter_init group__video__converter.html ga3fc45b6f66687029f4ad6b145d5c3326 (gavl_video_converter_t *cnv, const gavl_video_format_t *input_format, const gavl_video_format_t *output_format) GAVL_PUBLIC int gavl_video_converter_reinit group__video__converter.html gabf283face818d6425b72cbfc888f1661 (gavl_video_converter_t *cnv) GAVL_PUBLIC void gavl_video_convert group__video__converter.html gab4d87d96d232ff18f667968edec146e6 (gavl_video_converter_t *cnv, const gavl_video_frame_t *input_frame, gavl_video_frame_t *output_frame) video_scaler Scaler group__video__scaler.html struct gavl_video_scaler_s gavl_video_scaler_t group__video__scaler.html ga8b4210889926401c0af62a9c423e14ab GAVL_PUBLIC gavl_video_scaler_t * gavl_video_scaler_create group__video__scaler.html ga65a5adb9b0ec0c47177d858f4b9841a3 () GAVL_PUBLIC void gavl_video_scaler_destroy group__video__scaler.html ga4913e9fbbce90576e3f73e4b910bf74f (gavl_video_scaler_t *scaler) GAVL_PUBLIC gavl_video_options_t * gavl_video_scaler_get_options group__video__scaler.html ga5630854ec9ee864186562ef9f69e864b (gavl_video_scaler_t *scaler) GAVL_PUBLIC int gavl_video_scaler_init group__video__scaler.html ga048d636f7fc6ca5afb522cffc1c57f11 (gavl_video_scaler_t *scaler, const gavl_video_format_t *src_format, const gavl_video_format_t *dst_format) GAVL_PUBLIC int gavl_video_scaler_init_convolve group__video__scaler.html gae0d9ec30ee5a353802baadacb027ec0a (gavl_video_scaler_t *scaler, const gavl_video_format_t *format, int h_radius, const float *h_coeffs, int v_radius, const float *v_coeffs) GAVL_PUBLIC void gavl_video_scaler_scale group__video__scaler.html gaac3cfffdb618b683fe36150beee810c5 (gavl_video_scaler_t *scaler, const gavl_video_frame_t *input_frame, gavl_video_frame_t *output_frame) video_deinterlacer Deinterlacer group__video__deinterlacer.html struct gavl_video_deinterlacer_s gavl_video_deinterlacer_t group__video__deinterlacer.html ga7c2cc3f5fcc2266c5df7e34ab28596f9 GAVL_PUBLIC gavl_video_deinterlacer_t * gavl_video_deinterlacer_create group__video__deinterlacer.html ga4610459bb334e210f0bbf2e2e07e4221 () GAVL_PUBLIC void gavl_video_deinterlacer_destroy group__video__deinterlacer.html ga820c4520488a561df92280b6c584efe4 (gavl_video_deinterlacer_t *deinterlacer) GAVL_PUBLIC gavl_video_options_t * gavl_video_deinterlacer_get_options group__video__deinterlacer.html ga0d553f6f321342e51ac113aec1a89ef3 (gavl_video_deinterlacer_t *deinterlacer) GAVL_PUBLIC int gavl_video_deinterlacer_init group__video__deinterlacer.html ga3c9b6b6a1a12483c00cd3e0be0ef6383 (gavl_video_deinterlacer_t *deinterlacer, const gavl_video_format_t *src_format) GAVL_PUBLIC void gavl_video_deinterlacer_deinterlace group__video__deinterlacer.html gaa5b6186a7cd48941e8be88e84f727338 (gavl_video_deinterlacer_t *deinterlacer, const gavl_video_frame_t *input_frame, gavl_video_frame_t *output_frame) video_blend Overlay blending group__video__blend.html gavl_overlay_t struct gavl_overlay_blend_context_s gavl_overlay_blend_context_t group__video__blend.html gab03135cd919dbd7cfce24574ed5ff2c7 GAVL_PUBLIC gavl_overlay_blend_context_t * gavl_overlay_blend_context_create group__video__blend.html ga711ff6748a0d6916d876acdb01647c31 () GAVL_PUBLIC void gavl_overlay_blend_context_destroy group__video__blend.html gadadf950d6e1279c3555d4249550d85a3 (gavl_overlay_blend_context_t *ctx) GAVL_PUBLIC gavl_video_options_t * gavl_overlay_blend_context_get_options group__video__blend.html gaee93db1b692d9caba37cec3153e9c1ce (gavl_overlay_blend_context_t *ctx) GAVL_PUBLIC int gavl_overlay_blend_context_init group__video__blend.html ga9f94b2f7f888fc8066b2e4e2e2f73f5a (gavl_overlay_blend_context_t *ctx, const gavl_video_format_t *frame_format, gavl_video_format_t *overlay_format) GAVL_PUBLIC void gavl_overlay_blend_context_set_overlay group__video__blend.html ga6b9d4d35aa14e2312ab54c24bf43a607 (gavl_overlay_blend_context_t *ctx, gavl_overlay_t *ovl) GAVL_PUBLIC void gavl_overlay_blend group__video__blend.html ga00746f11bc191a0e8f0ed080fcecd3c1 (gavl_overlay_blend_context_t *ctx, gavl_video_frame_t *dst_frame) video_transform Image transformation group__video__transform.html struct gavl_image_transform_s gavl_image_transform_t group__video__transform.html ga3120d630e0d9e646dec2d0339cc4ea84 void(* gavl_image_transform_func group__video__transform.html ga552c34a8f2c3634c887b82ca983d09af )(void *priv, double xdst, double ydst, double *xsrc, double *ysrc) GAVL_PUBLIC gavl_image_transform_t * gavl_image_transform_create group__video__transform.html gafbfafaba59871814fffd576c14182f63 () GAVL_PUBLIC void gavl_image_transform_destroy group__video__transform.html ga0951eeb569f7adebc2354336e54ca0c8 (gavl_image_transform_t *t) GAVL_PUBLIC int gavl_image_transform_init group__video__transform.html ga1750362e810cd5b9c1c7f896425ee3da (gavl_image_transform_t *t, gavl_video_format_t *format, gavl_image_transform_func func, void *priv) GAVL_PUBLIC void gavl_image_transform_transform group__video__transform.html gaaa9cc51e17e44df2aa690f809154efa4 (gavl_image_transform_t *t, gavl_video_frame_t *in_frame, gavl_video_frame_t *out_frame) GAVL_PUBLIC gavl_video_options_t * gavl_image_transform_get_options group__video__transform.html ga1e9c5da19cd723c731fb000e06c48413 (gavl_image_transform_t *t) frame_table Frame table group__frame__table.html gavl_frame_table_t GAVL_PUBLIC gavl_frame_table_t * gavl_frame_table_create group__frame__table.html gac265a8102f8c1cfd1a0a8e0d3cecd886 () GAVL_PUBLIC gavl_frame_table_t * gavl_frame_table_create_audio group__frame__table.html gad45a0e09687b1f0e33266578b8858a71 (int samplerate, int64_t offset, int64_t duration, gavl_timecode_format_t *fmt_ret) GAVL_PUBLIC gavl_frame_table_t * gavl_frame_table_create_cfr group__frame__table.html gaaa2971ad8831bc68b144ef8259d6e9ca (int64_t offset, int64_t frame_duration, int64_t num_frames, gavl_timecode_t start_timecode) GAVL_PUBLIC gavl_frame_table_t * gavl_frame_table_copy group__frame__table.html ga39e058c40317cf21f0573d4cc282f202 (const gavl_frame_table_t *tab) GAVL_PUBLIC void gavl_frame_table_destroy group__frame__table.html ga7d49000351213b69385a85ab2c7d24a8 (gavl_frame_table_t *t) GAVL_PUBLIC void gavl_frame_table_append_entry group__frame__table.html gaa3019fd2f14360c77724db64e6ea1500 (gavl_frame_table_t *t, int64_t duration) GAVL_PUBLIC void gavl_frame_table_append_timecode group__frame__table.html gaca3eb0d8345f72af6e4966d12744388d (gavl_frame_table_t *t, int64_t pts, gavl_timecode_t tc) GAVL_PUBLIC int64_t gavl_frame_table_frame_to_time group__frame__table.html ga2cf755e56e4b50f0d3cc12db088aeca6 (const gavl_frame_table_t *t, int64_t frame, int *duration) GAVL_PUBLIC int64_t gavl_frame_table_time_to_frame group__frame__table.html ga623a74c4ff943db7f1157d845c64beb0 (const gavl_frame_table_t *t, int64_t time, int64_t *start_time) GAVL_PUBLIC gavl_timecode_t gavl_frame_table_time_to_timecode group__frame__table.html ga6069fd13db8bcb703d22827517c12b22 (const gavl_frame_table_t *t, int64_t time, int64_t *start_time, const gavl_timecode_format_t *fmt) GAVL_PUBLIC int64_t gavl_frame_table_timecode_to_time group__frame__table.html gafba6d572126c3b946c96944a9824e401 (const gavl_frame_table_t *t, gavl_timecode_t tc, const gavl_timecode_format_t *fmt) GAVL_PUBLIC gavl_timecode_t gavl_frame_table_frame_to_timecode group__frame__table.html ga44b9d9c826a39027327d3347011aadb3 (const gavl_frame_table_t *t, int64_t frame, int64_t *start_time, const gavl_timecode_format_t *fmt) GAVL_PUBLIC int64_t gavl_frame_table_num_frames group__frame__table.html ga86b09c9a3a0537d3cbf31b33abe5beee (const gavl_frame_table_t *t) GAVL_PUBLIC int64_t gavl_frame_table_duration group__frame__table.html ga7bc7232a41f14c82d1af0c00cb4fe8bb (const gavl_frame_table_t *t) GAVL_PUBLIC int64_t gavl_frame_table_end_time group__frame__table.html ga190ee3adfd6f512f11ef6c1f609443a0 (const gavl_frame_table_t *t) GAVL_PUBLIC int gavl_frame_table_save group__frame__table.html ga15211644be347e181d22929e79ca6dbe (const gavl_frame_table_t *t, const char *filename) GAVL_PUBLIC gavl_frame_table_t * gavl_frame_table_load group__frame__table.html gab3603f0d360e636cdd502dc8420bc9da (const char *filename) GAVL_PUBLIC void gavl_frame_table_dump group__frame__table.html ga593f1f9fe0089c5ce01f2fa3b6091110 (const gavl_frame_table_t *t) time Time group__time.html timer #define GAVL_TIME_SCALE group__time.html gaf598353cbda9a5ad6878e368b6a15811 #define GAVL_TIME_UNDEFINED group__time.html ga98a13c407599f7fd3186396337f2a313 #define GAVL_TIME_MAX group__time.html gae6ef0c903b29a7584c2213c07d07cb5d #define gavl_seconds_to_time group__time.html gaea115f2815e637bbcd60fbade805ef76 (s) #define gavl_time_to_seconds group__time.html gafe7168a31ad0b28ead955797a62a5ab2 (t) #define GAVL_TIME_STRING_LEN group__time.html ga49869e05d18cb1dfde4e80343ae37d50 #define GAVL_TIME_STRING_LEN_MS group__time.html ga0f4f6763633d6d42edd51b23017cfc37 int64_t gavl_time_t group__time.html gaede83abbdd6102bd8683f4b94a7bd647 GAVL_PUBLIC gavl_time_t gavl_samples_to_time group__time.html ga811bdb175fd50af21138857ca53f9d19 (int samplerate, int64_t samples) GAVL_PUBLIC int64_t gavl_time_to_samples group__time.html gae29e41e11252623db0588cd6b728bcf3 (int samplerate, gavl_time_t time) GAVL_PUBLIC gavl_time_t gavl_frames_to_time group__time.html ga59df5a9311f8e15575c8a0f9414849af (int rate_num, int rate_den, int64_t frames) GAVL_PUBLIC int64_t gavl_time_to_frames group__time.html ga2b8f1db0f226f1255afe2e0f21f47142 (int rate_num, int rate_den, gavl_time_t time) GAVL_PUBLIC int64_t gavl_time_scale group__time.html ga8b96d7ef34d17497a099fa8971eb5661 (int scale, gavl_time_t time) GAVL_PUBLIC gavl_time_t gavl_time_unscale group__time.html ga4de3b9f7b985519953f332fbc283f2f6 (int scale, int64_t time) GAVL_PUBLIC int64_t gavl_time_rescale group__time.html gac2a78a7aa1330d94ac8c24882714ff2f (int scale1, int scale2, int64_t time) GAVL_PUBLIC void gavl_time_delay group__time.html ga3e883859ff24aa7af3a30cd6b1e80364 (gavl_time_t *time) GAVL_PUBLIC void gavl_time_prettyprint group__time.html gafede1bf6bd567f8133f49291b1c91e46 (gavl_time_t time, char str[GAVL_TIME_STRING_LEN]) GAVL_PUBLIC void gavl_time_prettyprint_ms group__time.html ga5f5ae25902db97f374e1be584243a257 (gavl_time_t time, char str[GAVL_TIME_STRING_LEN_MS]) timer Software timer group__timer.html struct gavl_timer_s gavl_timer_t group__timer.html gaae620a307ba8533e991c512c56b1fd24 GAVL_PUBLIC gavl_timer_t * gavl_timer_create group__timer.html ga09c6a3b1ac4c57ee13347d0d654473c5 () GAVL_PUBLIC void gavl_timer_destroy group__timer.html ga4e340350de373c7551c0de1ad4acdedb (gavl_timer_t *timer) GAVL_PUBLIC void gavl_timer_start group__timer.html ga5d43483e1bbdd6aa228991ff373d9f08 (gavl_timer_t *timer) GAVL_PUBLIC void gavl_timer_stop group__timer.html ga2089d703fe1e66509293eed209f05c72 (gavl_timer_t *timer) GAVL_PUBLIC gavl_time_t gavl_timer_get group__timer.html ga8a7eb1f66bfb7d482f7097080d748a34 (gavl_timer_t *timer) GAVL_PUBLIC void gavl_timer_set group__timer.html gab26ee9e5edf2758507f7ddf4dfb4d5ea (gavl_timer_t *timer, gavl_time_t t) GAVL_PUBLIC uint64_t gavl_benchmark_get_time group__timer.html ga7e7b71a5499480ed31eef3c0f29220a8 (int flags) GAVL_PUBLIC const char * gavl_benchmark_get_desc group__timer.html ga457f0b1e56a60476d4860f5a2c0c421d (int flags) dsp DSP Context group__dsp.html gavl_dsp_funcs_t dsputils struct gavl_dsp_context_s gavl_dsp_context_t group__dsp.html gafe123d8ea3bcd946fedfa03c292a05f1 GAVL_PUBLIC gavl_dsp_context_t * gavl_dsp_context_create group__dsp.html gae1236951171a8bc22848bc34b836dc88 () GAVL_PUBLIC void gavl_dsp_context_set_quality group__dsp.html ga50363b4981fa3d1d13a8bbf289fe6cdf (gavl_dsp_context_t *ctx, int q) GAVL_PUBLIC void gavl_dsp_context_set_accel_flags group__dsp.html gaf347635df485178c7da9796bb7347963 (gavl_dsp_context_t *ctx, int flags) GAVL_PUBLIC gavl_dsp_funcs_t * gavl_dsp_context_get_funcs group__dsp.html ga100c077bd8d2e26aabbec7442574c44f (gavl_dsp_context_t *ctx) GAVL_PUBLIC void gavl_dsp_context_destroy group__dsp.html ga3fa6e96c8c937e90d86d5c98210eb4d8 (gavl_dsp_context_t *ctx) dsputils DSP Utilities group__dsputils.html GAVL_PUBLIC int gavl_dsp_interpolate_video_frame group__dsputils.html gac31e48c09ebc10473662067deaa51873 (gavl_dsp_context_t *ctx, gavl_video_format_t *format, gavl_video_frame_t *src_1, gavl_video_frame_t *src_2, gavl_video_frame_t *dst, float factor) GAVL_PUBLIC int gavl_dsp_audio_frame_swap_endian group__dsputils.html ga7dd24219095308483be93127cf651c13 (gavl_dsp_context_t *ctx, gavl_audio_frame_t *frame, const gavl_audio_format_t *format) GAVL_PUBLIC int gavl_dsp_video_frame_swap_endian group__dsputils.html ga01fbe32f1cce130bae845381388e32e3 (gavl_dsp_context_t *ctx, gavl_video_frame_t *frame, const gavl_video_format_t *format) compression Compressed stream support group__compression.html gavl_compression_info_t gavl_packet_t #define GAVL_COMPRESSION_HAS_P_FRAMES group__compression.html ga32165340fed02e59258a82be75f517d1 #define GAVL_COMPRESSION_HAS_B_FRAMES group__compression.html gad3856436aeb2430d332a09b0c44cb48a #define GAVL_COMPRESSION_HAS_FIELD_PICTURES group__compression.html ga21ed3d2abf45710350c1322e83490df4 #define GAVL_COMPRESSION_SBR group__compression.html ga6d6122a51eabe09d528e6e70f2fe2832 #define GAVL_PACKET_TYPE_I group__compression.html ga4862d16a5c63bc349240980de13bb5ea #define GAVL_PACKET_TYPE_P group__compression.html ga62729ab23d9746513d18415a795ca1c8 #define GAVL_PACKET_TYPE_B group__compression.html gacfee1f2faf44ed8dfcfc230146eea154 #define GAVL_PACKET_TYPE_MASK group__compression.html gaef7058e8ad103a6de818f3ceeffa0d22 #define GAVL_PACKET_KEYFRAME group__compression.html ga8bd9a740d54b170fe482da567070f95c #define GAVL_PACKET_LAST group__compression.html ga79b78843233ef2bd27d45470a5cccf01 gavl_codec_id_t group__compression.html ga3e101e880064877a18f79ba4ea88525b GAVL_CODEC_ID_NONE group__compression.html gga3e101e880064877a18f79ba4ea88525baf104a7a502d92b566c1b7859ba9e77a5 GAVL_CODEC_ID_ALAW group__compression.html gga3e101e880064877a18f79ba4ea88525baed7ccaea672ddeb475301611b8424b45 GAVL_CODEC_ID_ULAW group__compression.html gga3e101e880064877a18f79ba4ea88525bafc8f80c7e05349da5f5550176db48ace GAVL_CODEC_ID_MP2 group__compression.html gga3e101e880064877a18f79ba4ea88525ba9269e7c088994cf55b20a51af912de5d GAVL_CODEC_ID_MP3 group__compression.html gga3e101e880064877a18f79ba4ea88525babeb1acd5673f67d8e98918277d242966 GAVL_CODEC_ID_AC3 group__compression.html gga3e101e880064877a18f79ba4ea88525ba2fd4c052f4b4042ea27cd7beba04c3cf GAVL_CODEC_ID_AAC group__compression.html gga3e101e880064877a18f79ba4ea88525ba6784e5e6b69cf289604ddf84a83c98d2 GAVL_CODEC_ID_VORBIS group__compression.html gga3e101e880064877a18f79ba4ea88525ba0f6c224115281ed1b270924c726b38c1 GAVL_CODEC_ID_JPEG group__compression.html gga3e101e880064877a18f79ba4ea88525ba7eabcf8ec6a78263d37712cdcbc20095 GAVL_CODEC_ID_PNG group__compression.html gga3e101e880064877a18f79ba4ea88525bad3bd418e51df4497505c0072a8aefd96 GAVL_CODEC_ID_TIFF group__compression.html gga3e101e880064877a18f79ba4ea88525ba9a9cd4a3f68c26b62ac86fcd880b67b0 GAVL_CODEC_ID_TGA group__compression.html gga3e101e880064877a18f79ba4ea88525ba4da12c8550b623ead67febc8da58797b GAVL_CODEC_ID_MPEG1 group__compression.html gga3e101e880064877a18f79ba4ea88525ba2e90d20b3a99d686ad665e1aecb0c96a GAVL_CODEC_ID_MPEG2 group__compression.html gga3e101e880064877a18f79ba4ea88525ba604f33309eb8ff4f66769a5778befd11 GAVL_CODEC_ID_MPEG4_ASP group__compression.html gga3e101e880064877a18f79ba4ea88525ba74fb178684d7540e9191db1521c3342e GAVL_CODEC_ID_H264 group__compression.html gga3e101e880064877a18f79ba4ea88525ba7ed40c1e9767cfce7a6ae0269341a7d4 GAVL_CODEC_ID_THEORA group__compression.html gga3e101e880064877a18f79ba4ea88525baab70e133cdc1967d7ee88e7bfe70f5e6 GAVL_CODEC_ID_DIRAC group__compression.html gga3e101e880064877a18f79ba4ea88525ba4c354a019d90e50609e6c497700a378a GAVL_CODEC_ID_DV group__compression.html gga3e101e880064877a18f79ba4ea88525ba2ebe5a2f8d5e5c60055e987ef4682c5f GAVL_PUBLIC void gavl_compression_info_free group__compression.html gabe8c4b5162f333c30bf023e2336bc41a (gavl_compression_info_t *info) GAVL_PUBLIC void gavl_compression_info_dump group__compression.html ga03567e1caf5ad2537a98d2cfd499ffa0 (const gavl_compression_info_t *info) GAVL_PUBLIC const char * gavl_compression_get_extension group__compression.html ga82851244582020cb78350731a62dabd2 (gavl_codec_id_t id, int *separate) GAVL_PUBLIC int gavl_compression_need_pixelformat group__compression.html ga0b4f01f12214f4bebfee6c24ae0187f4 (gavl_codec_id_t id) GAVL_PUBLIC void gavl_packet_alloc group__compression.html ga68e0224fa601275f8925ed6544616abb (gavl_packet_t *p, int len) GAVL_PUBLIC void gavl_packet_free group__compression.html ga53c559d213c43f9ca277bff67f3ec8b8 (gavl_packet_t *p) GAVL_PUBLIC void gavl_packet_dump group__compression.html ga04b8f9acda91b3204785d4eff53fd2aa (const gavl_packet_t *p) gavl_audio_channels_t uniongavl__audio__channels__t.html uint8_t * u_8 uniongavl__audio__channels__t.html a8adf88f65d1ac518a29f080572909d95 [GAVL_MAX_CHANNELS] int8_t * s_8 uniongavl__audio__channels__t.html a720e57ba4a764ff222cff2e02a65008d [GAVL_MAX_CHANNELS] uint16_t * u_16 uniongavl__audio__channels__t.html afa602b94d25461dbcf9f318cca0c2523 [GAVL_MAX_CHANNELS] int16_t * s_16 uniongavl__audio__channels__t.html a1992b51909b6fb52b50e3b50a0ca0ce2 [GAVL_MAX_CHANNELS] uint32_t * u_32 uniongavl__audio__channels__t.html aabbc4a2442c0e481e3341296f2d61f93 [GAVL_MAX_CHANNELS] int32_t * s_32 uniongavl__audio__channels__t.html a48e743b2b66bb1a1d6376c3d3070d845 [GAVL_MAX_CHANNELS] float * f uniongavl__audio__channels__t.html a636b9c0d0386970bb9ba93b598dcd383 [GAVL_MAX_CHANNELS] double * d uniongavl__audio__channels__t.html a6de466852ce1c9f0735b1b5fe5039830 [GAVL_MAX_CHANNELS] gavl_audio_format_t structgavl__audio__format__t.html int samples_per_frame structgavl__audio__format__t.html a3dd50b0562d708b0c03094d3b1e714ab int samplerate structgavl__audio__format__t.html ac43b3ebcfa0870a6b28184a91c6437ef int num_channels structgavl__audio__format__t.html accf66d230cd1dd940d2252981c20e3e4 gavl_sample_format_t sample_format structgavl__audio__format__t.html a5ad3f44bc7ac3c8b8d5178de6fb88166 gavl_interleave_mode_t interleave_mode structgavl__audio__format__t.html a576ab4991578a36f5c6ae934bb8c984c float center_level structgavl__audio__format__t.html ab0e6cbf95f092fa8098691e7a0d860a2 float rear_level structgavl__audio__format__t.html a444df7f932db4e98d351ff7f92d8a4ba gavl_channel_id_t channel_locations structgavl__audio__format__t.html add681c8ec80275640b15b6d107296f50 [GAVL_MAX_CHANNELS] gavl_audio_frame_t structgavl__audio__frame__t.html gavl_audio_samples_t samples structgavl__audio__frame__t.html a1c83856f4cea936aef95d2352870679a gavl_audio_channels_t channels structgavl__audio__frame__t.html ade3ea34f2a03d9344e9c64d4dcd613eb int valid_samples structgavl__audio__frame__t.html a3073efef12458a9be6bad3d9e6cb2128 int64_t timestamp structgavl__audio__frame__t.html a42b2c1cd299afd910f53445142cc1178 int channel_stride structgavl__audio__frame__t.html a027e0b05bc9e06902a984175571363f8 gavl_audio_samples_t uniongavl__audio__samples__t.html uint8_t * u_8 uniongavl__audio__samples__t.html a5d5dd48727e65755bca6587d532b394a int8_t * s_8 uniongavl__audio__samples__t.html a2effaf219a3b560d766857395569e807 uint16_t * u_16 uniongavl__audio__samples__t.html a3873ad485ddb7d31af65def77ef8f52b int16_t * s_16 uniongavl__audio__samples__t.html a41e821504f685d3ed1c46f5abf40d76b uint32_t * u_32 uniongavl__audio__samples__t.html a2600896607bbe41711948736dae2b3cb int32_t * s_32 uniongavl__audio__samples__t.html af4f203cf958a11a576c7255c639ba22e float * f uniongavl__audio__samples__t.html a66f8ac9ac29cfaa173b5bcf7821d3022 double * d uniongavl__audio__samples__t.html a9bab34f5a686889fadbd2bd2a8f7c5ef gavl_compression_info_t structgavl__compression__info__t.html int flags structgavl__compression__info__t.html a3fef0d778a507a4564a2019cf85c5439 gavl_codec_id_t id structgavl__compression__info__t.html a150f1b785ea6e4d245b471f2ecf8c27c uint8_t * global_header structgavl__compression__info__t.html a34f7bdedc240ca9f76de2318881aef0f int global_header_len structgavl__compression__info__t.html a5da6f14ac1584a4464a3fc5bcdeb1a60 int bitrate structgavl__compression__info__t.html a6e6ba500d4fd17e84371e2d375fd1ba2 int palette_size structgavl__compression__info__t.html ad244224cb4bd21349fadf7eb3e94477e gavl_dsp_funcs_t structgavl__dsp__funcs__t.html int(* sad_rgb15 structgavl__dsp__funcs__t.html afb194c3ae83a471d3de0181e9546f914 )(const uint8_t *src_1, const uint8_t *src_2, int stride_1, int stride_2, int w, int h) int(* sad_rgb16 structgavl__dsp__funcs__t.html a22201ad5d5dd37ae9af9e6096b682ff2 )(const uint8_t *src_1, const uint8_t *src_2, int stride_1, int stride_2, int w, int h) int(* sad_8 structgavl__dsp__funcs__t.html aeca5fe9367ab2103f3b1f492b8ef5cb5 )(const uint8_t *src_1, const uint8_t *src_2, int stride_1, int stride_2, int w, int h) int(* sad_16 structgavl__dsp__funcs__t.html ac6d6d02344dfae85e0d0200767f4a827 )(const uint8_t *src_1, const uint8_t *src_2, int stride_1, int stride_2, int w, int h) float(* sad_f structgavl__dsp__funcs__t.html a8d287e8c3aadd6dd4d444973237c9d14 )(const uint8_t *src_1, const uint8_t *src_2, int stride_1, int stride_2, int w, int h) void(* average_rgb15 structgavl__dsp__funcs__t.html a4651c021944cc125db3e824d71b1a2ea )(const uint8_t *src_1, const uint8_t *src_2, uint8_t *dst, int num) void(* average_rgb16 structgavl__dsp__funcs__t.html a08204b578d9b43df6c58dc3381a9de0a )(const uint8_t *src_1, const uint8_t *src_2, uint8_t *dst, int num) void(* average_8 structgavl__dsp__funcs__t.html adbbcabe174a169b9700c495c2842a202 )(const uint8_t *src_1, const uint8_t *src_2, uint8_t *dst, int num) void(* average_16 structgavl__dsp__funcs__t.html a875f149849f0dd8345e2977ee4fb864c )(const uint8_t *src_1, const uint8_t *src_2, uint8_t *dst, int num) void(* average_f structgavl__dsp__funcs__t.html a4d5892b19abf642a3ed45b755d4d0976 )(const uint8_t *src_1, const uint8_t *src_2, uint8_t *dst, int num) void(* interpolate_rgb15 structgavl__dsp__funcs__t.html a0e7e43ce018672648d2e5a5e08d250d1 )(const uint8_t *src_1, const uint8_t *src_2, uint8_t *dst, int num, float) void(* interpolate_rgb16 structgavl__dsp__funcs__t.html ac8bd2e41a5cf17c2987e279ee4862d2b )(const uint8_t *src_1, const uint8_t *src_2, uint8_t *dst, int num, float fac) void(* interpolate_8 structgavl__dsp__funcs__t.html a2f9960e71912769c81434419ad48d817 )(const uint8_t *src_1, const uint8_t *src_2, uint8_t *dst, int num, float fac) void(* interpolate_16 structgavl__dsp__funcs__t.html a157b654db8b6438d339b8c1bdb8f79b4 )(const uint8_t *src_1, const uint8_t *src_2, uint8_t *dst, int num, float fac) void(* interpolate_f structgavl__dsp__funcs__t.html a7b7ab543ca9dd2a923a305f078c26a12 )(const uint8_t *src_1, const uint8_t *src_2, uint8_t *dst, int num, float fac) void(* bswap_16 structgavl__dsp__funcs__t.html ad3ef64180702af2331e46bb08626bac1 )(void *ptr, int len) void(* bswap_32 structgavl__dsp__funcs__t.html a25e61aa0460f289a9344554d8893133a )(void *ptr, int len) void(* bswap_64 structgavl__dsp__funcs__t.html a1f9c4f946bb7325808ea60ed14fb3aa1 )(void *ptr, int len) void(* add_u8 structgavl__dsp__funcs__t.html a1f9d4e39def1f75ede671bf25e978b91 )(const void *src1, const void *src2, void *dst, int num) void(* add_u8_s structgavl__dsp__funcs__t.html a238030ec41b75b89d1585a24718d90b3 )(const void *src1, const void *src2, void *dst, int num) void(* add_s8 structgavl__dsp__funcs__t.html ad8b5609f68efb95b4b563c7004d589f9 )(const void *src1, const void *src2, void *dst, int num) void(* add_u16 structgavl__dsp__funcs__t.html a96297a6986fe8514702b55091c7bcd86 )(const void *src1, const void *src2, void *dst, int num) void(* add_u16_s structgavl__dsp__funcs__t.html a37e253fc94a616bf0deacad8cb5ca55e )(const void *src1, const void *src2, void *dst, int num) void(* add_s16 structgavl__dsp__funcs__t.html ac05c4983190f881286ca3510929c2a3e )(const void *src1, const void *src2, void *dst, int num) void(* add_s32 structgavl__dsp__funcs__t.html a77486554d76cee3d8309406c3ac5d5f4 )(const void *src1, const void *src2, void *dst, int num) void(* add_float structgavl__dsp__funcs__t.html a93109e16b048cd83d81a1ca889f81f9f )(const void *src1, const void *src2, void *dst, int num) void(* add_double structgavl__dsp__funcs__t.html a3b8013f0bddcd86c218ef5b8630ae16a )(const void *src1, const void *src2, void *dst, int num) void(* sub_u8 structgavl__dsp__funcs__t.html a96938e92a20edefca7a1d48961f63373 )(const void *src1, const void *src2, void *dst, int num) void(* sub_u8_s structgavl__dsp__funcs__t.html a6c921becd0f4234b0e4e217c6a6503c6 )(const void *src1, const void *src2, void *dst, int num) void(* sub_s8 structgavl__dsp__funcs__t.html af15f2661480c2042bafde637dc7d714d )(const void *src1, const void *src2, void *dst, int num) void(* sub_u16 structgavl__dsp__funcs__t.html aa58bd5180331cf5212d17fdaa651943b )(const void *src1, const void *src2, void *dst, int num) void(* sub_u16_s structgavl__dsp__funcs__t.html a11c9a330b8c996dbaa1453e67f0aa796 )(const void *src1, const void *src2, void *dst, int num) void(* sub_s16 structgavl__dsp__funcs__t.html a02a6fee655edf80dc0c373b258e12bce )(const void *src1, const void *src2, void *dst, int num) void(* sub_s32 structgavl__dsp__funcs__t.html a3c1574fcdc02072fea5af78902db64db )(const void *src1, const void *src2, void *dst, int num) void(* sub_float structgavl__dsp__funcs__t.html a536f47e412d141c04c2af7016deee234 )(const void *src1, const void *src2, void *dst, int num) void(* sub_double structgavl__dsp__funcs__t.html af1ce6107bbcb8f0580cb02b80f6f72d3 )(const void *src1, const void *src2, void *dst, int num) gavl_frame_table_t structgavl__frame__table__t.html int64_t offset structgavl__frame__table__t.html a9ca43a74dad1ac75162073b68bd4661d int64_t num_entries structgavl__frame__table__t.html acedc334ffeb75b7ddce17abe0c065769 int64_t entries_alloc structgavl__frame__table__t.html aab716faee5bf58fcb98bfddb0fe57f48 struct gavl_frame_table_t::@0 * entries structgavl__frame__table__t.html a9df385c87a94dde451ed37c0565e8a0b int64_t num_frames structgavl__frame__table__t_1_1@0.html ac417c0f9b7292b6f3c89c943fcddfb35 int64_t duration structgavl__frame__table__t_1_1@0.html ae66ebed83a96452fb2765ea2c3c2e107 int num_timecodes structgavl__frame__table__t.html a4e713f61554cae5313300e8017a7909e int timecodes_alloc structgavl__frame__table__t.html ad8b1907c91e1aefa79596af06503e245 struct gavl_frame_table_t::@1 * timecodes structgavl__frame__table__t.html ad0bf22976780b66628296f82a455a501 int64_t pts structgavl__frame__table__t_1_1@1.html a2896bcacb5892333bec77d2844d895de gavl_timecode_t tc structgavl__frame__table__t_1_1@1.html a46271dd948c09541967c77e96db5f0de gavl_overlay_t structgavl__overlay__t.html gavl_video_frame_t * frame structgavl__overlay__t.html a15a5042c2c8f8b5342f5ab6c6a8b7bed gavl_rectangle_i_t ovl_rect structgavl__overlay__t.html a975dcdd78cb1212054233f2ce02c4e5d int dst_x structgavl__overlay__t.html aba59d93af2b62b37b9a8f91dc5fb214a int dst_y structgavl__overlay__t.html a61b7f26540747944f169f8d28fabcecd gavl_packet_t structgavl__packet__t.html uint8_t * data structgavl__packet__t.html a4ee38093bfe54a83ae01f74da694eb8a int data_len structgavl__packet__t.html a09212e87b796a4a7f4afc4dec82e7623 int data_alloc structgavl__packet__t.html affd91c0cca1445026ac237f04c379a27 int flags structgavl__packet__t.html ab9a4239c45027f8aa85c968940e3eff1 int64_t pts structgavl__packet__t.html a57be2a88ea5177b4b4adecf7bbb74936 int64_t duration structgavl__packet__t.html adec69d3eadb2731d79d9679903f389a7 int field2_offset structgavl__packet__t.html aeb842eb78c5e787dcc4772a099361f89 int header_size structgavl__packet__t.html a333836763a311e3b4d1d2d64f9d45aa4 int sequence_end_pos structgavl__packet__t.html a8923363218642f7fcf9366fec8165fd0 gavl_rectangle_f_t structgavl__rectangle__f__t.html double x structgavl__rectangle__f__t.html a36fb92e0ba64972d528b73faf6e67e10 double y structgavl__rectangle__f__t.html a852c069d1d2baf6a0733744c7143918a double w structgavl__rectangle__f__t.html aabec14177429d15a012017587b04b411 double h structgavl__rectangle__f__t.html ab1460eb6d0cd1af0ffd9b7f00931652e gavl_rectangle_i_t structgavl__rectangle__i__t.html int x structgavl__rectangle__i__t.html a029abcc5409dc0252ce081304da43efb int y structgavl__rectangle__i__t.html a6e3a23d69a375081827c03b103c5ec9d int w structgavl__rectangle__i__t.html afec571aec22bbf4a660825bdc54c86f6 int h structgavl__rectangle__i__t.html a23aa0d736bfa55e4553a9bad3f826979 gavl_timecode_format_t structgavl__timecode__format__t.html int int_framerate structgavl__timecode__format__t.html a4f817fe075c9d487836df492607c4e65 int flags structgavl__timecode__format__t.html ae095ea9a7c3fbbcd56ca3d26dd643a93 gavl_video_format_s structgavl__video__format__s.html int frame_width structgavl__video__format__s.html aa34b1d8cc01ff399d5c351840ba04b33 int frame_height structgavl__video__format__s.html ab4b7f95c6339fe92a5cd84b0d5e0a965 int image_width structgavl__video__format__s.html ac52d1c3c393ce7c9956441c8244572bf int image_height structgavl__video__format__s.html afa76cb76731551a3440c0ee05f01ab70 int pixel_width structgavl__video__format__s.html ae8df6dfa1ac729a453420bdbefff9477 int pixel_height structgavl__video__format__s.html a9cb2215b06439d37def5ed9e795b1461 gavl_pixelformat_t pixelformat structgavl__video__format__s.html aebd366cc2e611a6b6abd464a54cafa4d int frame_duration structgavl__video__format__s.html ab2b6092b4a38c8a49febd48765abc4cf int timescale structgavl__video__format__s.html a47976ee696e6545aa0461f1d06197746 gavl_framerate_mode_t framerate_mode structgavl__video__format__s.html a8a1698037b89b8a03aec71872a6ec8f6 gavl_chroma_placement_t chroma_placement structgavl__video__format__s.html a00af11c8ddf3715ae894240b76b34b78 gavl_interlace_mode_t interlace_mode structgavl__video__format__s.html a894824310f2d31faea38a312773cfe9c gavl_timecode_format_t timecode_format structgavl__video__format__s.html af979700df8551a54ee9aaf3fb169566b gavl_video_frame_t structgavl__video__frame__t.html uint8_t * planes structgavl__video__frame__t.html ae0b7472c964b7b911e350d9479879402 [GAVL_MAX_PLANES] int strides structgavl__video__frame__t.html aaf83db825e4637ebaadc7fb122cf1eed [GAVL_MAX_PLANES] void * user_data structgavl__video__frame__t.html a4f837ecaa5ccd37b9032d4a4e14ed09f int64_t timestamp structgavl__video__frame__t.html ab4bbded5d1ed258e47f21c0fb98a97af int64_t duration structgavl__video__frame__t.html af80c1b1ca9420d70f6067b3412859c41 gavl_interlace_mode_t interlace_mode structgavl__video__frame__t.html a6ba1114928cb4a47f667f772ec2c02a5 gavl_timecode_t timecode structgavl__video__frame__t.html aae8654280ed644ea42cba96317a8d08f /home/pix/Src/Gmerlin_svn/gavl/doc/ /home/pix/Src/Gmerlin_svn/gavl/doc/ dir_af20ec4551ec7181023f470efcbbe418.html mainpage.incl /home/pix/Src/Gmerlin_svn/gavl/include/gavl/ /home/pix/Src/Gmerlin_svn/gavl/include/gavl/ dir_53e8e735b55ca0d1d0a896e6aca9442e.html compression.h gavl.h gavldsp.h gavltime.h timecode.h /home/pix/Src/Gmerlin_svn/gavl/include/ /home/pix/Src/Gmerlin_svn/gavl/include/ dir_b8e22912d0447171684e031f5949984c.html /home/pix/Src/Gmerlin_svn/gavl/include/gavl/ gmerlin-avdecoder-1.2.0~dfsg/doc/mainpage.incl0000644000000000000000000001130311764363501020042 0ustar rootroot /*! \mainpage \section bgav_into Introduction This is the API documentation for Gmerlin avdecoder, a general multimedia decoding library. Click Modules (on top of the page) to get to the main API index. Here, you find just some general blabla :) \section bgav_why Why gmerlin-avdecoder? The reasons for programming gmerlin-avdecoder lie in the history of the gmerlin project. The old gmerlin (the 0.1.x series) used 3rd party libraries for decoding multimedia formats. These were libmpeg3 (later libgmerlin_mpeg), avifile, quicktime4linux (later libquicktime), libsndfile, libvorbisfile etc. This method worked surprisingly well (from the users standpoint), but had some serious drawbacks (from the programmers standpoint): - Code duplication: The old gmerlin had 2 ffmpeg frontends (avifile and libquicktime), numerous PCM audio decoders (avifile, libsndfile and libquicktime) and so on. - The external libraries were not as flexible as they should be (libquicktime cannot play network streams, libmpeg3 didn't read ID3 tags). - Extremely long compilation times Or put it this way: Writing a decoding library, which supports just a handful of filetypes, is nonsense. Multimedia programming is so complicated that every small module should be programmed exactly once and then right. Of course, other people had similar ideas and came up with solutions: - MPlayer: Probably the best support even for exotic formats. But not usable with more than one decoding instance per process. - Xine: Almost as good as MPlayer, but too tightly bound to the rest of the xine architecture - GStreamer: Probably the cleanest solution, but way too complicated. - Videolan: Very clean and well supported but not usable as a standalone library. - libavformat/libavcodec: Not usabable in conjunction with binary codecs A lot of brainload was spent on the matter. A decoding library should not only work for playback applications, but also for transcoding. Therefore, we must not make any asumptions about the final destination of the data we decode. Metadata should be read from the files and made available to the rest of the application. The application range should be from 8bit/8KHz Mono streams to high definition production environments. No high quality codec should be too insane to be supported. \section what What is gmerlin-avdecoder? The solution, which was found, is the library, whose documentation you are reading right now. It lets you decode lots of fileformats with lots of codecs from lots of sources. It supports data sources with multiple tracks (e.g. VCD tracks, ALBW wrapped mp3s), each track can have an arbitrary number of audio/video streams. You can decode all streams at once, or switch unwanted streams off, so they are skipped. It is (with few limitations) thread save per instance and allows multiple decoding instances per process, which can be accessed from multiple threads. This is an important feature for editing applications. Metadata (additional information about the material) are read whenever possible. The resulting strings are converted to UTF-8 for language independent display. MP3s with Arabic or Chinese ID3-Tags are therefore no problem at all. Gmerlin-avdecoder is built upon gavl. Therefore, the codecs never do any implicit conversion of audio or video formats (like colorspace conversion, resampling, scaling etc.). Each codec sets the \ref gavl_audio_format_t or \ref gavl_video_format_t to what it can natively deliver. Format conversions are entirely up to the application. Datasources, gmerlin-avdecoder can access, include: - Regular files - http and ftp servers (with authentication) - rtsp (Real flavour) - mms (Windows media) - Samba shares - VCDs - ... Demultiplexers are present for the following formats: - MPEG-1/2 audio/video/system/program streams - AVI - ASF/WMA/WMV - Quicktime/MP4 - WAV, AIFF(-C) and lots of other uncompressed audio formats - Ogg (with Vorbis, Flac, Speex, Theora, OGM variants) - RealMedia - ... (See http://gmerlin.sourceforge.net/avdec.html for a complete list). All these features make gmerlin-avdecoder ideal for playback and transcoding applications, where sequential decoding is needed. \section bgav_whennot When should I NOT use gmerlin-avdecoder? There are a small number of reasons, why gmerlin_avdecoder might not be the method of choice: - Your application is extremely sensitive to speed issues and relies on direct rendering: Direct rendering is not supported. It could, in theory, be added but would involve a much more complicated decoding API. For now, every video frame is decoded into a user supplied buffer with a memcpy. */ gmerlin-avdecoder-1.2.0~dfsg/doc/Makefile.in0000644000000000000000000003325611764363514017476 0ustar rootroot# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = doc DIST_COMMON = $(srcdir)/Doxyfile.in $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/avcodec.m4 \ $(top_srcdir)/m4/avformat.m4 $(top_srcdir)/m4/check_funcs.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/lqt_opt_cflags.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = Doxyfile CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVCODEC_CFLAGS = @AVCODEC_CFLAGS@ AVCODEC_LIBS = @AVCODEC_LIBS@ AVCODEC_REQUIRED = @AVCODEC_REQUIRED@ AVFORMAT_CFLAGS = @AVFORMAT_CFLAGS@ AVFORMAT_LIBS = @AVFORMAT_LIBS@ AVFORMAT_REQUIRED = @AVFORMAT_REQUIRED@ AWK = @AWK@ BGAV_VERSION = @BGAV_VERSION@ BGAV_VERSION_MAJOR = @BGAV_VERSION_MAJOR@ BGAV_VERSION_MICRO = @BGAV_VERSION_MICRO@ BGAV_VERSION_MINOR = @BGAV_VERSION_MINOR@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CDIO_CFLAGS = @CDIO_CFLAGS@ CDIO_LIBS = @CDIO_LIBS@ CDIO_REQUIRED = @CDIO_REQUIRED@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DCA_CFLAGS = @DCA_CFLAGS@ DCA_LIBS = @DCA_LIBS@ DCA_REQUIRED = @DCA_REQUIRED@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOXYGEN = @DOXYGEN@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DVDREAD_CFLAGS = @DVDREAD_CFLAGS@ DVDREAD_LIBS = @DVDREAD_LIBS@ DVDREAD_REQUIRED = @DVDREAD_REQUIRED@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FAAD2_CFLAGS = @FAAD2_CFLAGS@ FAAD2_LIBS = @FAAD2_LIBS@ FAAD2_REQUIRED = @FAAD2_REQUIRED@ FGREP = @FGREP@ FLAC_CFLAGS = @FLAC_CFLAGS@ FLAC_LIBS = @FLAC_LIBS@ FLAC_REQUIRED = @FLAC_REQUIRED@ GAVL_CFLAGS = @GAVL_CFLAGS@ GAVL_LIBS = @GAVL_LIBS@ GAVL_REQUIRED = @GAVL_REQUIRED@ GMERLIN_CFLAGS = @GMERLIN_CFLAGS@ GMERLIN_DEP_LIBS = @GMERLIN_DEP_LIBS@ GMERLIN_LIBS = @GMERLIN_LIBS@ GMERLIN_PLUGIN_LDFLAGS = @GMERLIN_PLUGIN_LDFLAGS@ GMERLIN_REQUIRED = @GMERLIN_REQUIRED@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ ICONV_LIBS = @ICONV_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBA52_CFLAGS = @LIBA52_CFLAGS@ LIBA52_LIBS = @LIBA52_LIBS@ LIBA52_REQUIRED = @LIBA52_REQUIRED@ LIBBGAV_CFLAGS = @LIBBGAV_CFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMPEG2_CFLAGS = @LIBMPEG2_CFLAGS@ LIBMPEG2_LIBS = @LIBMPEG2_LIBS@ LIBMPEG2_REQUIRED = @LIBMPEG2_REQUIRED@ LIBOBJS = @LIBOBJS@ LIBPOSTPROC_CFLAGS = @LIBPOSTPROC_CFLAGS@ LIBPOSTPROC_LIBS = @LIBPOSTPROC_LIBS@ LIBPOSTPROC_REQUIRED = @LIBPOSTPROC_REQUIRED@ LIBS = @LIBS@ LIBSWSCALE_CFLAGS = @LIBSWSCALE_CFLAGS@ LIBSWSCALE_LIBS = @LIBSWSCALE_LIBS@ LIBSWSCALE_REQUIRED = @LIBSWSCALE_REQUIRED@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTVERSION_AGE = @LTVERSION_AGE@ LTVERSION_CURRENT = @LTVERSION_CURRENT@ LTVERSION_REVISION = @LTVERSION_REVISION@ MAD_CFLAGS = @MAD_CFLAGS@ MAD_LIBS = @MAD_LIBS@ MAD_REQUIRED = @MAD_REQUIRED@ MAKEINFO = @MAKEINFO@ MJPEGTOOLS_CFLAGS = @MJPEGTOOLS_CFLAGS@ MJPEGTOOLS_LIBS = @MJPEGTOOLS_LIBS@ MJPEGTOOLS_REQUIRED = @MJPEGTOOLS_REQUIRED@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MUSEPACK_CFLAGS = @MUSEPACK_CFLAGS@ MUSEPACK_LIBS = @MUSEPACK_LIBS@ MUSEPACK_REQUIRED = @MUSEPACK_REQUIRED@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ OGG_REQUIRED = @OGG_REQUIRED@ OPENJPEG_CFLAGS = @OPENJPEG_CFLAGS@ OPENJPEG_LIBS = @OPENJPEG_LIBS@ OPENJPEG_REQUIRED = @OPENJPEG_REQUIRED@ OPT_CFLAGS = @OPT_CFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ PNG_REQUIRED = @PNG_REQUIRED@ POSUB = @POSUB@ RANLIB = @RANLIB@ REALDLL_LIBS = @REALDLL_LIBS@ SAMBA_CFLAGS = @SAMBA_CFLAGS@ SAMBA_LIBS = @SAMBA_LIBS@ SAMBA_REQUIRED = @SAMBA_REQUIRED@ SCHROEDINGER_CFLAGS = @SCHROEDINGER_CFLAGS@ SCHROEDINGER_LIBS = @SCHROEDINGER_LIBS@ SCHROEDINGER_REQUIRED = @SCHROEDINGER_REQUIRED@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ SPEEX_REQUIRED = @SPEEX_REQUIRED@ STRIP = @STRIP@ THEORADEC_CFLAGS = @THEORADEC_CFLAGS@ THEORADEC_LIBS = @THEORADEC_LIBS@ THEORADEC_REQUIRED = @THEORADEC_REQUIRED@ TIFF_CFLAGS = @TIFF_CFLAGS@ TIFF_LIBS = @TIFF_LIBS@ TIFF_REQUIRED = @TIFF_REQUIRED@ TOP_SRCDIR = @TOP_SRCDIR@ USE_NLS = @USE_NLS@ VDPAU_CFLAGS = @VDPAU_CFLAGS@ VDPAU_LIBS = @VDPAU_LIBS@ VDPAU_REQUIRED = @VDPAU_REQUIRED@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ VORBIS_REQUIRED = @VORBIS_REQUIRED@ W32_NO_OPTIMIZE = @W32_NO_OPTIMIZE@ XADLL_LIBS = @XADLL_LIBS@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_LIBS = @X_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gmerlin_plugindir = @gmerlin_plugindir@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ w32_path = @w32_path@ EXTRA_DIST = Doxyfile.in mainpage.incl gavl.tags all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): Doxyfile: $(top_builddir)/config.status $(srcdir)/Doxyfile.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-local mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html-am: info: info-am info-am: install-data-am: install-data-local install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-local .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ clean-local distclean distclean-generic distclean-libtool \ distdir dvi dvi-am html html-am info info-am install \ install-am install-data install-data-am install-data-local \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am uninstall uninstall-am uninstall-local apiref: doxygen Doxyfile html: apiref all: html install-data-local: test -z "$(DESTDIR)$(docdir)/apiref" || $(mkdir_p) "$(DESTDIR)$(docdir)/apiref" $(INSTALL_DATA) apiref/* $(DESTDIR)$(docdir)/apiref clean-local: -rm -rf apiref uninstall-local: -rm -rf "$(DESTDIR)$(docdir)/apiref" # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gmerlin-avdecoder-1.2.0~dfsg/doc/Doxyfile.in0000644000000000000000000013522311764363501017535 0ustar rootroot# Doxyfile 1.3.9.1 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project # # All text after a hash (#) is considered a comment and will be ignored # The format is: # TAG = value [value, ...] # For lists items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (" ") #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. PROJECT_NAME = gmerlin-avdecoder # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or # if some version control system is used. PROJECT_NUMBER = # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. # If a relative path is entered, it will be relative to the location # where doxygen was started. If left blank the current directory will be used. OUTPUT_DIRECTORY = # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create # 4096 sub-directories (in 2 levels) under the output directory of each output # format and will distribute the generated files over these directories. # Enabling this option can be useful when feeding doxygen a huge amount of source # files, where putting all generated files in the same directory would otherwise # cause performance problems for the file system. CREATE_SUBDIRS = NO # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # The default language is English, other supported languages are: # Brazilian, Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish, # Dutch, Finnish, French, German, Greek, Hungarian, Italian, Japanese, # Japanese-en (Japanese with English messages), Korean, Korean-en, Norwegian, # Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, # Swedish, and Ukrainian. OUTPUT_LANGUAGE = English # This tag can be used to specify the encoding used in the generated output. # The encoding is not always determined by the language that is chosen, # but also whether or not the output is meant for Windows or non-Windows users. # In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES # forces the Windows encoding (this is the default for the Windows binary), # whereas setting the tag to NO uses a Unix-style encoding (the default for # all platforms other than Windows). # USE_WINDOWS_ENCODING = NO # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will # include brief member descriptions after the members that are listed in # the file and class documentation (similar to JavaDoc). # Set to NO to disable this. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend # the brief description of a member or function before the detailed description. # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. REPEAT_BRIEF = YES # This tag implements a quasi-intelligent brief description abbreviator # that is used to form the text in various listings. Each string # in this list, if found as the leading text of the brief description, will be # stripped from the text and the result after processing the whole list, is used # as the annotated text. Otherwise, the brief description is used as-is. If left # blank, the following values are used ("$name" is automatically replaced with the # name of the entity): "The $name class" "The $name widget" "The $name file" # "is" "provides" "specifies" "contains" "represents" "a" "an" "the" ABBREVIATE_BRIEF = # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # Doxygen will generate a detailed section even if there is only a brief # description. ALWAYS_DETAILED_SEC = YES # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all inherited # members of a class in the documentation of that class as if those members were # ordinary class members. Constructors, destructors and assignment operators of # the base classes will not be shown. INLINE_INHERITED_MEMB = NO # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full # path before files name in the file list and in the header files. If set # to NO the shortest path that makes the file name unique will be used. FULL_PATH_NAMES = YES # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag # can be used to strip a user-defined part of the path. Stripping is # only done if one of the specified strings matches the left-hand part of # the path. The tag can be used to show relative paths in the file list. # If left blank the directory from which doxygen is run is used as the # path to strip. STRIP_FROM_PATH = # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of # the path mentioned in the documentation of a class, which tells # the reader which header file to include in order to use a class. # If left blank only the name of the header file containing the class # definition is used. Otherwise one should specify the include paths that # are normally passed to the compiler using the -I flag. STRIP_FROM_INC_PATH = # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter # (but less readable) file names. This can be useful is your file systems # doesn't support long names like on DOS, Mac, or CD-ROM. SHORT_NAMES = NO # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen # will interpret the first line (until the first dot) of a JavaDoc-style # comment as the brief description. If set to NO, the JavaDoc # comments will behave just like the Qt-style comments (thus requiring an # explicit @brief command for a brief description. JAVADOC_AUTOBRIEF = NO # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen # treat a multi-line C++ special comment block (i.e. a block of //! or /// # comments) as a brief description. This used to be the default behaviour. # The new default is to treat a multi-line C++ comment block as a detailed # description. Set this tag to YES if you prefer the old behaviour instead. MULTILINE_CPP_IS_BRIEF = NO # If the DETAILS_AT_TOP tag is set to YES then Doxygen # will output the detailed description near the top, like JavaDoc. # If set to NO, the detailed description appears after the member # documentation. # DETAILS_AT_TOP = NO # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented # member inherits the documentation from any documented member that it # re-implements. INHERIT_DOCS = YES # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES, then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. DISTRIBUTE_GROUP_DOC = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. # Doxygen uses this value to replace tabs by spaces in code fragments. TAB_SIZE = 8 # This tag can be used to specify a number of aliases that acts # as commands in the documentation. An alias has the form "name=value". # For example adding "sideeffect=\par Side Effects:\n" will allow you to # put the command \sideeffect (or @sideeffect) in the documentation, which # will result in a user-defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. ALIASES = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources # only. Doxygen will then generate output that is more tailored for C. # For instance, some of the names that are used will be different. The list # of all members will be omitted, etc. OPTIMIZE_OUTPUT_FOR_C = YES # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java sources # only. Doxygen will then generate output that is more tailored for Java. # For instance, namespaces will be presented as packages, qualified scopes # will look different, etc. OPTIMIZE_OUTPUT_JAVA = NO # Set the SUBGROUPING tag to YES (the default) to allow class member groups of # the same type (for instance a group of public functions) to be put as a # subgroup of that type (e.g. under the Public Functions section). Set it to # NO to prevent subgrouping. Alternatively, this can be done per class using # the \nosubgrouping command. SUBGROUPING = YES #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in # documentation are documented, even if no documentation was available. # Private class members and static file members will be hidden unless # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES EXTRACT_ALL = NO # If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. EXTRACT_PRIVATE = NO # If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. EXTRACT_STATIC = NO # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) # defined locally in source files will be included in the documentation. # If set to NO only classes defined in header files are included. EXTRACT_LOCAL_CLASSES = NO # This flag is only useful for Objective-C code. When set to YES local # methods, which are defined in the implementation section but not in # the interface are included in the documentation. # If set to NO (the default) only methods in the interface are included. EXTRACT_LOCAL_METHODS = NO # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all # undocumented members of documented classes, files or namespaces. # If set to NO (the default) these members will be included in the # various overviews, but no documentation section is generated. # This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_MEMBERS = NO # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. # If set to NO (the default) these classes will be included in the various # overviews. This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_CLASSES = NO # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all # friend (class|struct|union) declarations. # If set to NO (the default) these declarations will be included in the # documentation. HIDE_FRIEND_COMPOUNDS = NO # If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any # documentation blocks found inside the body of a function. # If set to NO (the default) these blocks will be appended to the # function's detailed documentation block. HIDE_IN_BODY_DOCS = NO # The INTERNAL_DOCS tag determines if documentation # that is typed after a \internal command is included. If the tag is set # to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. INTERNAL_DOCS = NO # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate # file names in lower-case letters. If set to YES upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # and Mac users are advised to set this option to NO. CASE_SENSE_NAMES = YES # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen # will show members with their full class and namespace scopes in the # documentation. If set to YES the scope will be hidden. HIDE_SCOPE_NAMES = NO # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen # will put a list of the files that are included by a file in the documentation # of that file. SHOW_INCLUDE_FILES = YES # If the INLINE_INFO tag is set to YES (the default) then a tag [inline] # is inserted in the documentation for inline members. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen # will sort the (detailed) documentation of file and class members # alphabetically by member name. If set to NO the members will appear in # declaration order. SORT_MEMBER_DOCS = NO # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the # brief documentation of file, namespace and class members alphabetically # by member name. If set to NO (the default) the members will appear in # declaration order. SORT_BRIEF_DOCS = NO # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be # sorted by fully-qualified names, including namespaces. If set to # NO (the default), the class list will be sorted only by class name, # not including the namespace part. # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. # Note: This option applies only to the class list, not to the # alphabetical list. SORT_BY_SCOPE_NAME = NO # The GENERATE_TODOLIST tag can be used to enable (YES) or # disable (NO) the todo list. This list is created by putting \todo # commands in the documentation. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or # disable (NO) the test list. This list is created by putting \test # commands in the documentation. GENERATE_TESTLIST = YES # The GENERATE_BUGLIST tag can be used to enable (YES) or # disable (NO) the bug list. This list is created by putting \bug # commands in the documentation. GENERATE_BUGLIST = YES # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or # disable (NO) the deprecated list. This list is created by putting # \deprecated commands in the documentation. GENERATE_DEPRECATEDLIST= YES # The ENABLED_SECTIONS tag can be used to enable conditional # documentation sections, marked by \if sectionname ... \endif. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines # the initial value of a variable or define consists of for it to appear in # the documentation. If the initializer consists of more lines than specified # here it will be hidden. Use a value of 0 to hide initializers completely. # The appearance of the initializer of individual variables and defines in the # documentation can be controlled using \showinitializer or \hideinitializer # command in the documentation regardless of this setting. MAX_INITIALIZER_LINES = 30 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated # at the bottom of the documentation of classes and structs. If set to YES the # list will mention the files that were used to generate the documentation. SHOW_USED_FILES = YES # If the sources in your project are distributed over multiple directories # then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy # in the documentation. SHOW_DIRECTORIES = YES #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated # by doxygen. Possible values are YES and NO. If left blank NO is used. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated by doxygen. Possible values are YES and NO. If left blank # NO is used. WARNINGS = YES # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings # for undocumented members. If EXTRACT_ALL is set to YES then this flag will # automatically be disabled. WARN_IF_UNDOCUMENTED = YES # If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as not documenting some # parameters in a documented function, or documenting parameters that # don't exist or using markup commands wrongly. WARN_IF_DOC_ERROR = YES # The WARN_FORMAT tag determines the format of the warning messages that # doxygen can produce. The string should contain the $file, $line, and $text # tags, which will be replaced by the file and line number from which the # warning originated and the warning text. WARN_FORMAT = "$file:$line: $text" # The WARN_LOGFILE tag can be used to specify a file to which warning # and error messages should be written. If left blank the output is written # to stderr. WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag can be used to specify the files and/or directories that contain # documented source files. You may enter file names like "myfile.cpp" or # directories like "/usr/src/myproject". Separate the files or directories # with spaces. INPUT = @TOP_SRCDIR@/doc/mainpage.incl @TOP_SRCDIR@/include/avdec.h # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank the following patterns are tested: # *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx *.hpp # *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm FILE_PATTERNS = # The RECURSIVE tag can be used to turn specify whether or not subdirectories # should be searched for input files as well. Possible values are YES and NO. # If left blank NO is used. RECURSIVE = NO # The EXCLUDE tag can be used to specify files and/or directories that should # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used select whether or not files or directories # that are symbolic links (a Unix filesystem feature) are excluded from the input. EXCLUDE_SYMLINKS = NO # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. EXCLUDE_PATTERNS = # The EXAMPLE_PATH tag can be used to specify one or more files or # directories that contain example code fragments that are included (see # the \include command). EXAMPLE_PATH = # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank all files are included. EXAMPLE_PATTERNS = # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be # searched for input files to be used with the \include or \dontinclude # commands irrespective of the value of the RECURSIVE tag. # Possible values are YES and NO. If left blank NO is used. EXAMPLE_RECURSIVE = NO # The IMAGE_PATH tag can be used to specify one or more files or # directories that contain image that are included in the documentation (see # the \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command , where # is the value of the INPUT_FILTER tag, and is the name of an # input file. Doxygen will then use the output that the filter program writes # to standard output. If FILTER_PATTERNS is specified, this tag will be # ignored. INPUT_FILTER = # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern # basis. Doxygen will compare the file name with each pattern and apply the # filter if there is a match. The filters are a list of the form: # pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further # info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER # is applied to all files. FILTER_PATTERNS = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will be used to filter the input files when producing source # files to browse (i.e. when SOURCE_BROWSER is set to YES). FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will # be generated. Documented entities will be cross-referenced with these sources. # Note: To get rid of all source code in the generated output, make sure also # VERBATIM_HEADERS is set to NO. SOURCE_BROWSER = NO # Setting the INLINE_SOURCES tag to YES will include the body # of functions and classes directly in the documentation. INLINE_SOURCES = NO # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct # doxygen to hide any special comment blocks from generated source code # fragments. Normal C and C++ comments will always remain visible. STRIP_CODE_COMMENTS = YES # If the REFERENCED_BY_RELATION tag is set to YES (the default) # then for each documented function all documented # functions referencing it will be listed. REFERENCED_BY_RELATION = YES # If the REFERENCES_RELATION tag is set to YES (the default) # then for each documented function all documented entities # called/used by that function will be listed. REFERENCES_RELATION = YES # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen # will generate a verbatim copy of the header file for each class for # which an include is specified. Set to NO to disable this. VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index # of all compounds will be generated. Enable this if the project # contains a lot of classes, structs, unions or interfaces. ALPHABETICAL_INDEX = NO # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns # in which this list will be split (can be a number in the range [1..20]) COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all # classes will be put under the same header in the alphabetical index. # The IGNORE_PREFIX tag can be used to specify one or more prefixes that # should be ignored while generating the index headers. IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES (the default) Doxygen will # generate HTML output. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `html' will be used as the default path. HTML_OUTPUT = apiref # The HTML_FILE_EXTENSION tag can be used to specify the file extension for # each generated HTML page (for example: .htm,.php,.asp). If it is left blank # doxygen will generate files with .html extension. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a personal HTML header for # each generated HTML page. If it is left blank doxygen will generate a # standard header. HTML_HEADER = # The HTML_FOOTER tag can be used to specify a personal HTML footer for # each generated HTML page. If it is left blank doxygen will generate a # standard footer. HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user-defined cascading # style sheet that is used by each HTML page. It can be used to # fine-tune the look of the HTML output. If the tag is left blank doxygen # will generate a default style sheet. Note that doxygen will try to copy # the style sheet file to the HTML output directory, so don't put your own # stylesheet in the HTML output directory as well, or it will be erased! HTML_STYLESHEET = # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, # files or namespaces will be aligned in HTML using tables. If set to # NO a bullet list will be used. HTML_ALIGN_MEMBERS = YES # If the GENERATE_HTMLHELP tag is set to YES, additional index files # will be generated that can be used as input for tools like the # Microsoft HTML help workshop to generate a compressed HTML help file (.chm) # of the generated HTML documentation. GENERATE_HTMLHELP = NO # If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can # be used to specify the file name of the resulting .chm file. You # can add a path in front of the file if the result should not be # written to the html output directory. CHM_FILE = # If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can # be used to specify the location (absolute path including file name) of # the HTML help compiler (hhc.exe). If non-empty doxygen will try to run # the HTML help compiler on the generated index.hhp. HHC_LOCATION = # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag # controls if a separate .chi index file is generated (YES) or that # it should be included in the master .chm file (NO). GENERATE_CHI = NO # If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag # controls whether a binary table of contents is generated (YES) or a # normal table of contents (NO) in the .chm file. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members # to the contents of the HTML help documentation and to the tree view. TOC_EXPAND = NO # The DISABLE_INDEX tag can be used to turn on/off the condensed index at # top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. DISABLE_INDEX = NO # This tag can be used to set the number of enum values (range [1..20]) # that doxygen will group on one line in the generated HTML documentation. ENUM_VALUES_PER_LINE = 4 # If the GENERATE_TREEVIEW tag is set to YES, a side panel will be # generated containing a tree-like index structure (just like the one that # is generated for HTML Help). For this to work a browser that supports # JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, # Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are # probably better off using the HTML help feature. GENERATE_TREEVIEW = NO # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be # used to set the initial width (in pixels) of the frame in which the tree # is shown. TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will # generate Latex output. GENERATE_LATEX = NO # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `latex' will be used as the default path. LATEX_OUTPUT = latex # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be # invoked. If left blank `latex' will be used as the default command name. LATEX_CMD_NAME = latex # The MAKEINDEX_CMD_NAME tag can be used to specify the command name to # generate index for LaTeX. If left blank `makeindex' will be used as the # default command name. MAKEINDEX_CMD_NAME = makeindex # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact # LaTeX documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_LATEX = NO # The PAPER_TYPE tag can be used to set the paper type that is used # by the printer. Possible values are: a4, a4wide, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = a4wide # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX # packages that should be included in the LaTeX output. EXTRA_PACKAGES = # The LATEX_HEADER tag can be used to specify a personal LaTeX header for # the generated latex document. The header should contain everything until # the first chapter. If it is left blank doxygen will generate a # standard header. Notice: only use this tag if you know what you are doing! LATEX_HEADER = # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated # is prepared for conversion to pdf (using ps2pdf). The pdf file will # contain links (just like the HTML output) instead of page references # This makes the output suitable for online browsing using a pdf viewer. PDF_HYPERLINKS = NO # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of # plain latex in the generated Makefile. Set this option to YES to get a # higher quality PDF documentation. USE_PDFLATEX = NO # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. # command to the generated LaTeX files. This will instruct LaTeX to keep # running if errors occur, instead of asking the user for help. # This option is also used when generating formulas in HTML. LATEX_BATCHMODE = NO # If LATEX_HIDE_INDICES is set to YES then doxygen will not # include the index chapters (such as File Index, Compound Index, etc.) # in the output. LATEX_HIDE_INDICES = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output # The RTF output is optimized for Word 97 and may not look very pretty with # other RTF readers or editors. GENERATE_RTF = NO # The RTF_OUTPUT tag is used to specify where the RTF docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `rtf' will be used as the default path. RTF_OUTPUT = rtf # If the COMPACT_RTF tag is set to YES Doxygen generates more compact # RTF documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_RTF = NO # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated # will contain hyperlink fields. The RTF file will # contain links (just like the HTML output) instead of page references. # This makes the output suitable for online browsing using WORD or other # programs which support those fields. # Note: wordpad (write) and others do not support links. RTF_HYPERLINKS = NO # Load stylesheet definitions from file. Syntax is similar to doxygen's # config file, i.e. a series of assignments. You only have to provide # replacements, missing definitions are set to their default value. RTF_STYLESHEET_FILE = # Set optional variables used in the generation of an rtf document. # Syntax is similar to doxygen's config file. RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- # If the GENERATE_MAN tag is set to YES (the default) Doxygen will # generate man pages GENERATE_MAN = NO # The MAN_OUTPUT tag is used to specify where the man pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `man' will be used as the default path. MAN_OUTPUT = man # The MAN_EXTENSION tag determines the extension that is added to # the generated man pages (default is the subroutine's section .3) MAN_EXTENSION = .3 # If the MAN_LINKS tag is set to YES and Doxygen generates man output, # then it will generate one additional man file for each entity # documented in the real man page(s). These additional files # only source the real man page, but without them the man command # would be unable to find the correct page. The default is NO. MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- # If the GENERATE_XML tag is set to YES Doxygen will # generate an XML file that captures the structure of # the code including all documentation. GENERATE_XML = NO # The XML_OUTPUT tag is used to specify where the XML pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `xml' will be used as the default path. XML_OUTPUT = xml # The XML_SCHEMA tag can be used to specify an XML schema, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_SCHEMA = # The XML_DTD tag can be used to specify an XML DTD, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_DTD = # If the XML_PROGRAMLISTING tag is set to YES Doxygen will # dump the program listings (including syntax highlighting # and cross-referencing information) to the XML output. Note that # enabling this will significantly increase the size of the XML output. XML_PROGRAMLISTING = YES #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- # If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will # generate an AutoGen Definitions (see autogen.sf.net) file # that captures the structure of the code including all # documentation. Note that this feature is still experimental # and incomplete at the moment. GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- # If the GENERATE_PERLMOD tag is set to YES Doxygen will # generate a Perl module file that captures the structure of # the code including all documentation. Note that this # feature is still experimental and incomplete at the # moment. GENERATE_PERLMOD = NO # If the PERLMOD_LATEX tag is set to YES Doxygen will generate # the necessary Makefile rules, Perl scripts and LaTeX code to be able # to generate PDF and DVI output from the Perl module output. PERLMOD_LATEX = NO # If the PERLMOD_PRETTY tag is set to YES the Perl module output will be # nicely formatted so it can be parsed by a human reader. This is useful # if you want to understand what is going on. On the other hand, if this # tag is set to NO the size of the Perl module output will be much smaller # and Perl will parse it just the same. PERLMOD_PRETTY = YES # The names of the make variables in the generated doxyrules.make file # are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. # This is useful so different doxyrules.make files included by the same # Makefile don't overwrite each other's variables. PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will # evaluate all C-preprocessor directives found in the sources and include # files. ENABLE_PREPROCESSING = YES # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro # names in the source code. If set to NO (the default) only conditional # compilation will be performed. Macro expansion can be done in a controlled # way by setting EXPAND_ONLY_PREDEF to YES. MACRO_EXPANSION = NO # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES # then the macro expansion is limited to the macros specified with the # PREDEFINED and EXPAND_AS_PREDEFINED tags. EXPAND_ONLY_PREDEF = NO # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # in the INCLUDE_PATH (see below) will be search if a #include is found. SEARCH_INCLUDES = YES # The INCLUDE_PATH tag can be used to specify one or more directories that # contain include files that are not input files but should be processed by # the preprocessor. INCLUDE_PATH = # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard # patterns (like *.h and *.hpp) to filter out the header-files in the # directories. If left blank, the patterns specified with FILE_PATTERNS will # be used. INCLUDE_FILE_PATTERNS = # The PREDEFINED tag can be used to specify one or more macro names that # are defined before the preprocessor is started (similar to the -D option of # gcc). The argument of the tag is a list of macros of the form: name # or name=definition (no spaces). If the definition and the = are # omitted =1 is assumed. To prevent a macro definition from being # undefined via #undef or recursively expanded use the := operator # instead of the = operator. PREDEFINED = # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then # this tag can be used to specify a list of macro names that should be expanded. # The macro definition that is found in the sources will be used. # Use the PREDEFINED tag if you want to use a different macro definition. EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then # doxygen's preprocessor will remove all function-like macros that are alone # on a line, have an all uppercase name, and do not end with a semicolon. Such # function macros are typically used for boiler-plate code, and will confuse the # parser if not removed. SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references #--------------------------------------------------------------------------- # The TAGFILES option can be used to specify one or more tagfiles. # Optionally an initial location of the external documentation # can be added for each tagfile. The format of a tag file without # this location is as follows: # TAGFILES = file1 file2 ... # Adding location for the tag files is done as follows: # TAGFILES = file1=loc1 "file2 = loc2" ... # where "loc1" and "loc2" can be relative or absolute paths or # URLs. If a location is present for each tag, the installdox tool # does not have to be run to correct the links. # Note that each tag file must have a unique name # (where the name does NOT include the path) # If a tag file is not located in the directory in which doxygen # is run, you must also specify the path to the tagfile here. TAGFILES = @TOP_SRCDIR@/doc/gavl.tags=http://gmerlin.sourceforge.net/doc/gavl/ # When a file name is specified after GENERATE_TAGFILE, doxygen will create # a tag file that is based on the input files it reads. GENERATE_TAGFILE = # If the ALLEXTERNALS tag is set to YES all external classes will be listed # in the class index. If set to NO only the inherited external classes # will be listed. ALLEXTERNALS = NO # If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed # in the modules index. If set to NO, only the current project's groups will # be listed. EXTERNAL_GROUPS = NO # The PERL_PATH should be the absolute path and name of the perl script # interpreter (i.e. the result of `which perl'). PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base or # super classes. Setting the tag to NO turns the diagrams off. Note that this # option is superseded by the HAVE_DOT option below. This is only a fallback. It is # recommended to install and use dot, since it yields more powerful graphs. CLASS_DIAGRAMS = YES # If set to YES, the inheritance and collaboration graphs will hide # inheritance and usage relations if the target is undocumented # or is not a class. HIDE_UNDOC_RELATIONS = YES # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is # available from the path. This tool is part of Graphviz, a graph visualization # toolkit from AT&T and Lucent Bell Labs. The other options in this section # have no effect if this option is set to NO (the default) HAVE_DOT = NO # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect inheritance relations. Setting this tag to YES will force the # the CLASS_DIAGRAMS tag to NO. CLASS_GRAPH = YES # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect implementation dependencies (inheritance, containment, and # class references variables) of the class with other documented classes. COLLABORATION_GRAPH = YES # If the UML_LOOK tag is set to YES doxygen will generate inheritance and # collaboration diagrams in a style similar to the OMG's Unified Modeling # Language. UML_LOOK = NO # If set to YES, the inheritance and collaboration graphs will show the # relations between templates and their instances. TEMPLATE_RELATIONS = NO # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT # tags are set to YES then doxygen will generate a graph for each documented # file showing the direct and indirect include dependencies of the file with # other documented files. INCLUDE_GRAPH = YES # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and # HAVE_DOT tags are set to YES then doxygen will generate a graph for each # documented header file showing the documented files that directly or # indirectly include this file. INCLUDED_BY_GRAPH = YES # If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will # generate a call dependency graph for every global function or class method. # Note that enabling this option will significantly increase the time of a run. # So in most cases it will be better to enable call graphs for selected # functions only using the \callgraph command. CALL_GRAPH = NO # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen # will graphical hierarchy of all classes instead of a textual one. GRAPHICAL_HIERARCHY = YES # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images # generated by dot. Possible values are png, jpg, or gif # If left blank png will be used. DOT_IMAGE_FORMAT = png # The tag DOT_PATH can be used to specify the path where the dot tool can be # found. If left blank, it is assumed the dot tool can be found on the path. DOT_PATH = # The DOTFILE_DIRS tag can be used to specify one or more directories that # contain dot files that are included in the documentation (see the # \dotfile command). DOTFILE_DIRS = # The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. # MAX_DOT_GRAPH_WIDTH = 1024 # The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. # MAX_DOT_GRAPH_HEIGHT = 1024 # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the # graphs generated by dot. A depth value of 3 means that only nodes reachable # from the root by following a path via at most 3 edges will be shown. Nodes that # lay further from the root node will be omitted. Note that setting this option to # 1 or 2 may greatly reduce the computation time needed for large code bases. Also # note that a graph may be further truncated if the graph's image dimensions are # not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH and MAX_DOT_GRAPH_HEIGHT). # If 0 is used for the depth value (the default), the graph is not depth-constrained. MAX_DOT_GRAPH_DEPTH = 0 # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will # generate a legend page explaining the meaning of the various boxes and # arrows in the dot generated graphs. GENERATE_LEGEND = YES # If the DOT_CLEANUP tag is set to YES (the default) Doxygen will # remove the intermediate dot files that are used to generate # the various graphs. DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::additions related to the search engine #--------------------------------------------------------------------------- # The SEARCHENGINE tag specifies whether or not a search engine should be # used. If set to NO the values of all tags below this one will be ignored. SEARCHENGINE = NO gmerlin-avdecoder-1.2.0~dfsg/doc/Makefile.am0000644000000000000000000000052511764363501017452 0ustar rootrootEXTRA_DIST=Doxyfile.in mainpage.incl gavl.tags apiref: doxygen Doxyfile html: apiref all: html install-data-local: test -z "$(DESTDIR)$(docdir)/apiref" || $(mkdir_p) "$(DESTDIR)$(docdir)/apiref" $(INSTALL_DATA) apiref/* $(DESTDIR)$(docdir)/apiref clean-local: -rm -rf apiref uninstall-local: -rm -rf "$(DESTDIR)$(docdir)/apiref" gmerlin-avdecoder-1.2.0~dfsg/README0000644000000000000000000000202511764363506015533 0ustar rootrootWHAT THIS IS This is gmerlin_avdecoder, a multimedia decoding library. It it primarly a support library for gmerlin, but it can also be used as a standalone library for getting sophisticated media file decoding support for your application. It needs gavl, the support library for handling uncompressed audio- and video data. In the include directory, you'll find the headers. The public API is in avdec.h. You might also take a look at the gavl headers for the definition of the AV-formats and -frames. The API is damn simple: look at tests/bgavdump.c. This program dumps all informations, it can find about a media file onto stderr. After that, it tries to decode one frame of each audio- or video stream. For further information, you can also consult plugins/i_avdec.c, which is the actual gmerlin plugin. REQUIREMENTS: The configure script autodetects all installed libraries and tell you what's missing. FORMATS/CODECS: Go to the test directory and type ./bgavdump without arguments. It will print all enabled features in html. gmerlin-avdecoder-1.2.0~dfsg/plugins/0000755000000000000000000000000011764363526016337 5ustar rootrootgmerlin-avdecoder-1.2.0~dfsg/plugins/i_avdec.c0000644000000000000000000004034711764363477020112 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include #include #include #include #include #include #include #include #include "avdec_common.h" static int open_common(avdec_priv * avdec) { int i; const char * str; if(bgav_is_redirector(avdec->dec)) { avdec->num_tracks = bgav_redirector_get_num_urls(avdec->dec); avdec->track_info = calloc(avdec->num_tracks, sizeof(*(avdec->track_info))); for(i = 0; i < avdec->num_tracks; i++) { str = bgav_redirector_get_url(avdec->dec, i); avdec->track_info[i].url = bg_strdup(avdec->track_info[i].url, str); str = bgav_redirector_get_name(avdec->dec, i); if(str) avdec->track_info[i].name = bg_strdup(avdec->track_info[i].name, str); else avdec->track_info[i].name = bg_strdup(avdec->track_info[i].name, avdec->track_info[i].url); } return 1; } return bg_avdec_init(avdec); } static int open_callbacks_avdec(void * priv, int (*read_callback)(void * priv, uint8_t * data, int len), int64_t (*seek_callback)(void * priv, uint64_t pos, int whence), void * cb_priv, const char * filename, const char * mimetype, int64_t total_bytes) { avdec_priv * avdec; bgav_options_t * opt; avdec = (avdec_priv*)(priv); avdec->dec = bgav_create(); opt = bgav_get_options(avdec->dec); bgav_options_copy(opt, avdec->opt); if(!bgav_open_callbacks(avdec->dec, read_callback, seek_callback, cb_priv, filename, mimetype, total_bytes)) return 0; return open_common(avdec); } static int open_avdec(void * priv, const char * location) { avdec_priv * avdec; bgav_options_t * opt; avdec = (avdec_priv*)(priv); avdec->dec = bgav_create(); opt = bgav_get_options(avdec->dec); bgav_options_copy(opt, avdec->opt); if(!bgav_open(avdec->dec, location)) return 0; return open_common(avdec); } static const bg_parameter_info_t parameters[] = { { .name = "audio_options", .long_name = TRS("Audio options"), .type = BG_PARAMETER_SECTION, .gettext_domain = PACKAGE, .gettext_directory = LOCALE_DIR, }, PARAM_DYNRANGE, { .name = "video_options", .long_name = TRS("Video options"), .type = BG_PARAMETER_SECTION }, PARAM_PP_LEVEL, { .name = "shrink", .long_name = TRS("Shrink factor"), .type = BG_PARAMETER_SLIDER_INT, .val_min = { .val_i = 0 }, .val_max = { .val_i = 3 }, .val_default = { .val_i = 0 }, .help_string = TRS("This enables downscaling of images while decoding. Currently only supported for JPEG-2000."), }, { .name = "vdpau", .long_name = TRS("Use vdpau"), .type = BG_PARAMETER_CHECKBUTTON, .help_string = TRS("Use VDPAU"), .val_default = { .val_i = 1 }, }, { .name = "network_options", .long_name = TRS("Network options"), .type = BG_PARAMETER_SECTION }, { .name = "connect_timeout", .long_name = TRS("Connect timeout (milliseconds)"), .type = BG_PARAMETER_INT, .val_default = { .val_i = 5000 }, .val_min = { .val_i = 0 }, .val_max = { .val_i = 2000000 }, }, { .name = "read_timeout", .long_name = TRS("Read timeout (milliseconds)"), .type = BG_PARAMETER_INT, .val_default = { .val_i = 5000 }, .val_min = { .val_i = 0 }, .val_max = { .val_i = 2000000 }, }, { .name = "network_buffer_size", .long_name = TRS("Network buffer size (kB)"), .type = BG_PARAMETER_INT, .val_default = { .val_i = 32 }, .val_min = { .val_i = 1 }, .val_max = { .val_i = 1000 }, }, { .name = "network_bandwidth", .long_name = TRS("Bandwidth"), .type = BG_PARAMETER_STRINGLIST, .val_default = { .val_str = "524300" }, .multi_names = (char const *[]){ "14400", "19200", "28800", "33600", "34400", "57600", "115200", "262200", "393200", "524300", "1500000", "10500000", NULL }, .multi_labels = (char const *[]){ TRS("14.4 Kbps (Modem)"), TRS("19.2 Kbps (Modem)"), TRS("28.8 Kbps (Modem)"), TRS("33.6 Kbps (Modem)"), TRS("34.4 Kbps (Modem)"), TRS("57.6 Kbps (Modem)"), TRS("115.2 Kbps (ISDN)"), TRS("262.2 Kbps (Cable/DSL)"), TRS("393.2 Kbps (Cable/DSL)"), TRS("524.3 Kbps (Cable/DSL)"), TRS("1.5 Mbps (T1)"), TRS("10.5 Mbps (LAN)"), NULL }, }, { .name = "http_options", .long_name = TRS("HTTP Options"), .type = BG_PARAMETER_SECTION }, { .name = "http_shoutcast_metadata", .long_name = TRS("Enable shoutcast title streaming"), .type = BG_PARAMETER_CHECKBUTTON, .val_default = { .val_i = 1 } }, { .name = "http_use_proxy", .long_name = TRS("Use proxy"), .type = BG_PARAMETER_CHECKBUTTON, .val_default = { .val_i = 0 }, }, { .name = "http_proxy_host", .long_name = TRS("Proxy host"), .type = BG_PARAMETER_STRING, }, { .name = "http_proxy_port", .long_name = TRS("Proxy port"), .type = BG_PARAMETER_INT, .val_min = { .val_i = 1 }, .val_max = { .val_i = 65535 }, .val_default = { .val_i = 80 }, }, { .name = "http_proxy_auth", .long_name = TRS("Proxy needs authentication"), .type = BG_PARAMETER_CHECKBUTTON, .val_default = { .val_i = 0 }, }, { .name = "http_proxy_user", .long_name = TRS("Proxy username"), .type = BG_PARAMETER_STRING, .val_default = { .val_str = NULL }, }, { .name = "http_proxy_pass", .long_name = TRS("Proxy password"), .type = BG_PARAMETER_STRING_HIDDEN, .val_default = { .val_str = NULL }, }, { .name = "rtsp_options", .long_name = TRS("RTSP Options"), .type = BG_PARAMETER_SECTION }, { .name = "rtp_try_tcp", .long_name = TRS("Try RTP over TCP"), .type = BG_PARAMETER_CHECKBUTTON, .val_default = { .val_i = 0 }, .help_string = TRS("Use this if your filewall blocks all UDP traffic. Not all servers support TCP"), }, { .name = "rtp_port_base", .long_name = TRS("Port base for RTP"), .type = BG_PARAMETER_INT, .val_min = { .val_i = 0 }, .val_max = { .val_i = 65530 }, .val_default = { .val_i = 0 }, .help_string = TRS("Port base for RTP over UDP. Values of 1024 or smaller enable random ports (recommended for RTSP aware firewalls). Values larger than 1024 define the base port. 2 consecutive ports are used for each A/V stream, these must be accessable through the firewall. Odd values are rounded to the next even value."), }, { .name = "ftp_options", .long_name = TRS("FTP Options"), .type = BG_PARAMETER_SECTION }, { .name = "ftp_anonymous", .long_name = TRS("Login as anonymous"), .type = BG_PARAMETER_CHECKBUTTON, .val_default = { .val_i = 1 } }, { .name = "ftp_anonymous_password", .long_name = TRS("Anonymous ftp password"), .type = BG_PARAMETER_STRING, .val_default = { .val_str = "gates@nanosoft.com" } }, { .name = "subtitle_options", .long_name = TRS("Subtitle Options"), .type = BG_PARAMETER_SECTION }, { .name = "seek_subtitles", .long_name = TRS("Seek external subtitles"), .type = BG_PARAMETER_STRINGLIST, .val_default = { .val_str = "never" }, .multi_names = (char const *[]){ "never", "video", "always", NULL }, .multi_labels = (char const *[]){ TRS("Never"), TRS("For video files only"), TRS("Always"), NULL }, .help_string = TRS("If the input is a regular file, gmerlin_avdecoder can scan the\ directory for matching subtitle files. For a file movie.mpg, possible\ subtitle files are e.g. movie_english.srt, movie_german.srt. The\ rule is, that the first part of the filename of the subtitle file\ must be equal to the movie filename up to the extension.\ Furthermore, the subtitle filename must have an extension supported by\ any of the subtitle readers. Subtitle seeking can be disabled, enabled for video files or \ enabled for all files.") }, { .name = "default_subtitle_encoding", .long_name = TRS("Default subtitle encoding"), .type = BG_PARAMETER_STRING, .val_default = { .val_str = "LATIN1" }, .help_string = TRS("This sets the default encoding for text subtitles,\ when the original encoding is unknown. It must be a character set name\ recognized by iconv. Type 'iconv -l' at the commandline for a list of \ supported encodings."), }, { .name = "misc_options", .long_name = TRS("Misc options"), .type = BG_PARAMETER_SECTION, }, { .name = "sample_accuracy", .long_name = TRS("Sample accurate"), .type = BG_PARAMETER_STRINGLIST, .val_default = { .val_str = "never" }, .multi_names = (char const *[]){ "never", "always", "when_necessary", NULL }, .multi_labels = (char const *[]){ TRS("Never"), TRS("Always"), TRS("When necessary"), NULL }, .help_string = TRS("Try sample accurate seeking. For most formats, this is not necessary, since normal seeking works fine. Some formats are only seekable in sample accurate mode. Choose \"When necessary\" to enable seeking for most formats with the smallest overhead."), }, { .name = "cache_time", .long_name = TRS("Cache time (milliseconds)"), .type = BG_PARAMETER_INT, .val_default = { .val_i = 500 }, .help_string = TRS("If building an index takes longer than the specified time, it will be cached."), }, { .name = "cache_size", .long_name = TRS("Cache size (Megabytes)"), .type = BG_PARAMETER_INT, .val_default = { .val_i = 20 }, .help_string = TRS("Set the maximum total size of the cache directory."), }, PARAM_THREADS, { .name = "dv_datetime", .long_name = TRS("Export date and time as timecodes for DV"), .type = BG_PARAMETER_CHECKBUTTON, }, { /* End of parameters */ } }; static const bg_parameter_info_t * get_parameters_avdec(void * priv) { return parameters; } /* TODO: Build these dynamically */ static char const * const protocols = "http ftp rtsp smb mms pnm stdin"; static const char * get_protocols(void * priv) { return protocols; } static char const * const mimetypes = "video/x-ms-asf audio/x-pn-realaudio-plugin video/x-pn-realvideo-plugin audio/x-pn-realaudio video/x-pn-realvideo audio/x-mpegurl audio/mpegurl audio/x-scpls audio/scpls audio/m3u"; static const char * get_mimetypes(void * priv) { return mimetypes; } static char const * const extensions = "avi asf asx wmv rm ra ram mov wav mp4 m4a 3gp qt au aiff aif mp3 mpg mpeg vob m3u pls ogg flac aac mpc spx vob wv tta gsm vp5 vp6 voc"; static const char * get_extensions(void * priv) { return extensions; } const bg_input_plugin_t the_plugin = { .common = { BG_LOCALE, .name = "i_avdec", .long_name = TRS("AVDecoder plugin"), .description = TRS("Plugin based on the Gmerlin avdecoder library. Supports most media formats. Playback is supported from files, URLs (with various protocols) and stdin."), .type = BG_PLUGIN_INPUT, .flags = BG_PLUGIN_FILE|BG_PLUGIN_URL|BG_PLUGIN_CALLBACKS, .priority = BG_PLUGIN_PRIORITY_MAX, .create = bg_avdec_create, .destroy = bg_avdec_destroy, .get_parameters = get_parameters_avdec, .set_parameter = bg_avdec_set_parameter, }, .get_protocols = get_protocols, .get_mimetypes = get_mimetypes, .get_extensions = get_extensions, /* Open file/device */ .open = open_avdec, .open_callbacks = open_callbacks_avdec, .set_callbacks = bg_avdec_set_callbacks, /* For file and network plugins, this can be NULL */ .get_num_tracks = bg_avdec_get_num_tracks, .get_edl = bg_avdec_get_edl, /* Return track information */ .get_track_info = bg_avdec_get_track_info, /* Set track */ .set_track = bg_avdec_set_track, /* Get compression infos */ .get_audio_compression_info = bg_avdec_get_audio_compression_info, .get_video_compression_info = bg_avdec_get_video_compression_info, /* Set streams */ .set_audio_stream = bg_avdec_set_audio_stream, .set_video_stream = bg_avdec_set_video_stream, .set_subtitle_stream = bg_avdec_set_subtitle_stream, /* * Start decoding. * Track info is the track, which should be played. * The plugin must take care of the "active" fields * in the stream infos to check out, which streams are to be decoded */ .start = bg_avdec_start, .get_frame_table = bg_avdec_get_frame_table, /* Read one audio frame (returns FALSE on EOF) */ .read_audio = bg_avdec_read_audio, /* Read one video frame (returns FALSE on EOF) */ .has_still = bg_avdec_has_still, .read_video = bg_avdec_read_video, .skip_video = bg_avdec_skip_video, .has_subtitle = bg_avdec_has_subtitle, .read_subtitle_text = bg_avdec_read_subtitle_text, .read_subtitle_overlay = bg_avdec_read_subtitle_overlay, .read_audio_packet = bg_avdec_read_audio_packet, .read_video_packet = bg_avdec_read_video_packet, /* * Do percentage seeking (can be NULL) * Media streams are supposed to be seekable, if this * function is non-NULL AND the duration field of the track info * is > 0 */ .seek = bg_avdec_seek, /* Stop playback, close all decoders */ .stop = NULL, .close = bg_avdec_close, }; /* Include this into all plugin modules exactly once to let the plugin loader obtain the API version */ BG_GET_PLUGIN_API_VERSION; gmerlin-avdecoder-1.2.0~dfsg/plugins/i_dvd.c0000644000000000000000000001235111764363477017577 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include #include #include #include #include #include #include #include #include "avdec_common.h" #include // Version static int open_dvd(void * priv, const char * location) { avdec_priv * avdec; bgav_options_t * opt; avdec = (avdec_priv*)(priv); avdec->dec = bgav_create(); opt = bgav_get_options(avdec->dec); bgav_options_copy(opt, avdec->opt); if(!bgav_open_dvd(avdec->dec, location)) return 0; return bg_avdec_init(avdec); } static bg_device_info_t * find_devices_dvd() { bg_device_info_t * ret; bgav_device_info_t * dev; dev = bgav_find_devices_dvd(); ret = bg_avdec_get_devices(dev); bgav_device_info_destroy(dev); return ret; } static int check_device_dvd(const char * device, char ** name) { return bgav_check_device_dvd(device, name); } static const bg_parameter_info_t parameters[] = { #if 0 { .name = "dvd_chapters_as_tracks", .long_name = TRS("Handle chapters as tracks"), .type = BG_PARAMETER_CHECKBUTTON, .val_default = { .val_i = 1 }, .gettext_domain = PACKAGE, .gettext_directory = LOCALE_DIR, }, #endif PARAM_DYNRANGE, { /* End of parameters */ } }; static const bg_parameter_info_t * get_parameters_dvd(void * priv) { return parameters; } static char const * const protocols = "dvd"; static const char * get_protocols(void * priv) { return protocols; } const bg_input_plugin_t the_plugin = { .common = { BG_LOCALE, .name = "i_dvd", .long_name = TRS("DVD Player"), .description = TRS("Plugin for playing DVDs. Based on Gmerlin avdecoder."), .type = BG_PLUGIN_INPUT, .flags = BG_PLUGIN_REMOVABLE, .priority = BG_PLUGIN_PRIORITY_MAX, .create = bg_avdec_create, .destroy = bg_avdec_destroy, .get_parameters = get_parameters_dvd, .set_parameter = bg_avdec_set_parameter, .find_devices = find_devices_dvd, .check_device = check_device_dvd, }, .get_protocols = get_protocols, .set_callbacks = bg_avdec_set_callbacks, /* Open file/device */ .open = open_dvd, .get_disc_name = bg_avdec_get_disc_name, #if LIBCDIO_VERSION_NUM >= 78 .eject_disc = bgav_eject_disc, #endif // .set_callbacks = set_callbacks_avdec, /* For file and network plugins, this can be NULL */ .get_num_tracks = bg_avdec_get_num_tracks, /* Return track information */ .get_track_info = bg_avdec_get_track_info, /* Set track */ .set_track = bg_avdec_set_track, /* Get compression infos */ .get_audio_compression_info = bg_avdec_get_audio_compression_info, .get_video_compression_info = bg_avdec_get_video_compression_info, /* Set streams */ .set_audio_stream = bg_avdec_set_audio_stream, .set_video_stream = bg_avdec_set_video_stream, .set_subtitle_stream = bg_avdec_set_subtitle_stream, /* * Start decoding. * Track info is the track, which should be played. * The plugin must take care of the "active" fields * in the stream infos to check out, which streams are to be decoded */ .start = bg_avdec_start, /* Read one audio frame (returns FALSE on EOF) */ .read_audio = bg_avdec_read_audio, .has_still = bg_avdec_has_still, /* Read one video frame (returns FALSE on EOF) */ .read_video = bg_avdec_read_video, .skip_video = bg_avdec_skip_video, .has_subtitle = bg_avdec_has_subtitle, .read_subtitle_overlay = bg_avdec_read_subtitle_overlay, .read_audio_packet = bg_avdec_read_audio_packet, .read_video_packet = bg_avdec_read_video_packet, /* * Do percentage seeking (can be NULL) * Media streams are supposed to be seekable, if this * function is non-NULL AND the duration field of the track info * is > 0 */ .seek = bg_avdec_seek, /* Stop playback, close all decoders */ .stop = NULL, .close = bg_avdec_close, }; /* Include this into all plugin modules exactly once to let the plugin loader obtain the API version */ BG_GET_PLUGIN_API_VERSION; gmerlin-avdecoder-1.2.0~dfsg/plugins/avdec_common.c0000644000000000000000000005362411764363477021154 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include #include #include #include #include #include #include #include "avdec_common.h" #if 0 static void convert_metadata(bg_metadata_t * dst, const bgav_metadata_t * m) { const char * str; str = bgav_metadata_get_author(m); if(str) dst->author = bg_strdup(dst->author, str); str = bgav_metadata_get_artist(m); if(str) dst->artist = bg_strdup(dst->artist, str); str = bgav_metadata_get_albumartist(m); if(str) dst->albumartist = bg_strdup(dst->albumartist, str); str = bgav_metadata_get_album(m); if(str) dst->album = bg_strdup(dst->album, str); str = bgav_metadata_get_genre(m); if(str) dst->genre = bg_strdup(dst->genre, str); str = bgav_metadata_get_title(m); if(str) dst->title = bg_strdup(dst->title, str); str = bgav_metadata_get_copyright(m); if(str) dst->copyright = bg_strdup(dst->copyright, str); str = bgav_metadata_get_comment(m); if(str) dst->comment = bg_strdup(dst->comment, str); str = bgav_metadata_get_date(m); if(str) dst->date = bg_strdup(dst->date, str); dst->track = bgav_metadata_get_track(m); } #endif static void log_callback(void*data, bgav_log_level_t level, const char * log_domain, const char * message) { char * domain; bg_log_level_t l = 0; switch(level) { case BGAV_LOG_DEBUG: l = BG_LOG_DEBUG; break; case BGAV_LOG_WARNING: l = BG_LOG_WARNING; break; case BGAV_LOG_ERROR: l = BG_LOG_ERROR; break; case BGAV_LOG_INFO: l = BG_LOG_INFO; break; } domain = bg_sprintf("avdecoder.%s", log_domain); bg_log(l, domain, "%s", message); free(domain); } void * bg_avdec_create() { avdec_priv * ret = calloc(1, sizeof(*ret)); ret->opt = bgav_options_create(); bgav_options_set_log_callback(ret->opt, log_callback, NULL); return ret; } void bg_avdec_close(void * priv) { avdec_priv * avdec; int i; avdec = (avdec_priv*)(priv); if(avdec->dec) { bgav_close(avdec->dec); avdec->dec = NULL; } if(avdec->track_info) { for(i = 0; i < avdec->num_tracks; i++) bg_track_info_free(&(avdec->track_info[i])); free(avdec->track_info); avdec->track_info = NULL; } } int bg_avdec_get_audio_compression_info(void * priv, int stream, gavl_compression_info_t * info) { avdec_priv * avdec = priv; return bgav_get_audio_compression_info(avdec->dec, stream, info); } int bg_avdec_get_video_compression_info(void * priv, int stream, gavl_compression_info_t * info) { avdec_priv * avdec = priv; return bgav_get_video_compression_info(avdec->dec, stream, info); } int bg_avdec_read_audio_packet(void * priv, int stream, gavl_packet_t * p) { avdec_priv * avdec = priv; return bgav_read_audio_packet(avdec->dec, stream, p); } int bg_avdec_read_video_packet(void * priv, int stream, gavl_packet_t * p) { avdec_priv * avdec = priv; return bgav_read_video_packet(avdec->dec, stream, p); } void bg_avdec_destroy(void * priv) { avdec_priv * avdec; bg_avdec_close(priv); avdec = (avdec_priv*)(priv); if(avdec->dec) { bgav_close(avdec->dec); } if(avdec->opt) { bgav_options_destroy(avdec->opt); } if(avdec->edl) bg_edl_destroy(avdec->edl); free(avdec); } bg_track_info_t * bg_avdec_get_track_info(void * priv, int track) { avdec_priv * avdec; avdec = (avdec_priv*)(priv); if((track < 0) || (track >= avdec->num_tracks)) return NULL; return &(avdec->track_info[track]); } const bg_edl_t * bg_avdec_get_edl(void * priv) { avdec_priv * avdec; avdec = (avdec_priv*)(priv); return avdec->edl; } int bg_avdec_read_video(void * priv, gavl_video_frame_t * frame, int stream) { avdec_priv * avdec; avdec = (avdec_priv*)(priv); return bgav_read_video(avdec->dec, frame, stream); } void bg_avdec_skip_video(void * priv, int stream, int64_t * time, int scale, int exact) { avdec_priv * avdec; avdec = (avdec_priv*)(priv); bgav_skip_video(avdec->dec, stream, time, scale, exact); } int bg_avdec_has_still(void * priv, int stream) { avdec_priv * avdec = priv; return bgav_video_has_still(avdec->dec, stream); } int bg_avdec_read_audio(void * priv, gavl_audio_frame_t * frame, int stream, int num_samples) { avdec_priv * avdec; avdec = (avdec_priv*)(priv); return bgav_read_audio(avdec->dec, frame, stream, num_samples); } int bg_avdec_has_subtitle(void * priv, int stream) { avdec_priv * avdec; avdec = (avdec_priv*)(priv); return bgav_has_subtitle(avdec->dec, stream); } int bg_avdec_read_subtitle_overlay(void * priv, gavl_overlay_t * ovl, int stream) { avdec_priv * avdec; avdec = (avdec_priv*)(priv); return bgav_read_subtitle_overlay(avdec->dec, ovl, stream); } int bg_avdec_read_subtitle_text(void * priv, char ** text, int * text_alloc, int64_t * start_time, int64_t * duration, int stream) { avdec_priv * avdec; avdec = (avdec_priv*)(priv); return bgav_read_subtitle_text(avdec->dec, text, text_alloc, start_time, duration, stream); } static bgav_stream_action_t get_stream_action(bg_stream_action_t action) { switch(action) { case BG_STREAM_ACTION_OFF: return BGAV_STREAM_MUTE; break; case BG_STREAM_ACTION_DECODE: return BGAV_STREAM_DECODE; break; case BG_STREAM_ACTION_READRAW: return BGAV_STREAM_READRAW; break; } return -1; } int bg_avdec_set_audio_stream(void * priv, int stream, bg_stream_action_t action) { bgav_stream_action_t act; avdec_priv * avdec; avdec = (avdec_priv*)(priv); act = get_stream_action(action); return bgav_set_audio_stream(avdec->dec, stream, act); } int bg_avdec_set_video_stream(void * priv, int stream, bg_stream_action_t action) { avdec_priv * avdec; bgav_stream_action_t act; avdec = (avdec_priv*)(priv); act = get_stream_action(action); return bgav_set_video_stream(avdec->dec, stream, act); } int bg_avdec_set_subtitle_stream(void * priv, int stream, bg_stream_action_t action) { avdec_priv * avdec; bgav_stream_action_t act; avdec = (avdec_priv*)(priv); act = get_stream_action(action); return bgav_set_subtitle_stream(avdec->dec, stream, act); } int bg_avdec_start(void * priv) { int i; avdec_priv * avdec; const gavl_video_format_t * format; avdec = (avdec_priv*)(priv); if(!bgav_start(avdec->dec)) { return 0; } for(i = 0; i < avdec->current_track->num_video_streams; i++) { gavl_video_format_copy(&(avdec->current_track->video_streams[i].format), bgav_get_video_format(avdec->dec, i)); gavl_metadata_copy(&avdec->current_track->video_streams[i].m, bgav_get_video_metadata(avdec->dec, i)); avdec->current_track->video_streams[i].duration = bgav_video_duration(avdec->dec, i); } for(i = 0; i < avdec->current_track->num_audio_streams; i++) { gavl_audio_format_copy(&(avdec->current_track->audio_streams[i].format), bgav_get_audio_format(avdec->dec, i)); gavl_metadata_copy(&avdec->current_track->audio_streams[i].m, bgav_get_audio_metadata(avdec->dec, i)); avdec->current_track->audio_streams[i].duration = bgav_audio_duration(avdec->dec, i); } for(i = 0; i < avdec->current_track->num_subtitle_streams; i++) { gavl_metadata_copy(&avdec->current_track->subtitle_streams[i].m, bgav_get_subtitle_metadata(avdec->dec, i)); if(bgav_subtitle_is_text(avdec->dec, i)) { avdec->current_track->subtitle_streams[i].is_text = 1; } avdec->current_track->subtitle_streams[i].duration = bgav_subtitle_duration(avdec->dec, i); format = bgav_get_subtitle_format(avdec->dec, i); gavl_video_format_copy(&avdec->current_track->subtitle_streams[i].format, format); } return 1; } void bg_avdec_seek(void * priv, int64_t * t, int scale) { avdec_priv * avdec; avdec = (avdec_priv*)(priv); bgav_seek_scaled(avdec->dec, t, scale); } int bg_avdec_init(avdec_priv * avdec) { int i, j; int num_chapters; int chapter_timescale; const bgav_metadata_t * m; const bgav_edl_t * edl; edl = bgav_get_edl(avdec->dec); if(edl) avdec->edl = bg_avdec_convert_edl(edl); avdec->num_tracks = bgav_num_tracks(avdec->dec); avdec->track_info = calloc(avdec->num_tracks, sizeof(*(avdec->track_info))); for(i = 0; i < avdec->num_tracks; i++) { avdec->track_info[i].num_audio_streams = bgav_num_audio_streams(avdec->dec, i); avdec->track_info[i].num_video_streams = bgav_num_video_streams(avdec->dec, i); avdec->track_info[i].num_subtitle_streams = bgav_num_subtitle_streams(avdec->dec, i); if(bgav_can_seek(avdec->dec)) avdec->track_info[i].flags |= BG_TRACK_SEEKABLE; if(bgav_can_pause(avdec->dec)) avdec->track_info[i].flags |= BG_TRACK_PAUSABLE; if(avdec->track_info[i].num_audio_streams) { avdec->track_info[i].audio_streams = calloc(avdec->track_info[i].num_audio_streams, sizeof(*avdec->track_info[i].audio_streams)); } if(avdec->track_info[i].num_video_streams) { avdec->track_info[i].video_streams = calloc(avdec->track_info[i].num_video_streams, sizeof(*avdec->track_info[i].video_streams)); } if(avdec->track_info[i].num_subtitle_streams) { avdec->track_info[i].subtitle_streams = calloc(avdec->track_info[i].num_subtitle_streams, sizeof(*avdec->track_info[i].subtitle_streams)); } avdec->track_info[i].duration = bgav_get_duration(avdec->dec, i); avdec->track_info[i].name = bg_strdup(avdec->track_info[i].name, bgav_get_track_name(avdec->dec, i)); /* Get metadata */ m = bgav_get_metadata(avdec->dec, i); gavl_metadata_copy(&avdec->track_info[i].metadata, m); /* Get chapters */ num_chapters = bgav_get_num_chapters(avdec->dec, i, &chapter_timescale); if(num_chapters) { avdec->track_info[i].chapter_list = bg_chapter_list_create(num_chapters); avdec->track_info[i].chapter_list->timescale = chapter_timescale; for(j = 0; j < num_chapters; j++) { avdec->track_info[i].chapter_list->chapters[j].name = bg_strdup(avdec->track_info[i].chapter_list->chapters[j].name, bgav_get_chapter_name(avdec->dec, i, j)); avdec->track_info[i].chapter_list->chapters[j].time = bgav_get_chapter_time(avdec->dec, i, j); } bg_chapter_list_set_default_names(avdec->track_info[i].chapter_list); } } return 1; } void bg_avdec_set_parameter(void * p, const char * name, const bg_parameter_value_t * val) { avdec_priv * avdec; avdec = (avdec_priv*)(p); if(!name) return; else if(!strcmp(name, "connect_timeout")) { /* Set parameters */ bgav_options_set_connect_timeout(avdec->opt, val->val_i); } else if(!strcmp(name, "read_timeout")) { bgav_options_set_read_timeout(avdec->opt, val->val_i); } else if(!strcmp(name, "network_buffer_size")) { bgav_options_set_network_buffer_size(avdec->opt, val->val_i * 1024); } else if(!strcmp(name, "network_bandwidth")) { bgav_options_set_network_bandwidth(avdec->opt, atoi(val->val_str)); } else if(!strcmp(name, "http_shoutcast_metadata")) { bgav_options_set_http_shoutcast_metadata(avdec->opt, val->val_i); } else if(!strcmp(name, "http_use_proxy")) { bgav_options_set_http_use_proxy(avdec->opt, val->val_i); } else if(!strcmp(name, "http_proxy_host")) { bgav_options_set_http_proxy_host(avdec->opt, val->val_str); } else if(!strcmp(name, "http_proxy_port")) { bgav_options_set_http_proxy_port(avdec->opt, val->val_i); } else if(!strcmp(name, "http_proxy_auth")) { bgav_options_set_http_proxy_auth(avdec->opt, val->val_i); } else if(!strcmp(name, "http_proxy_user")) { bgav_options_set_http_proxy_user(avdec->opt, val->val_str); } else if(!strcmp(name, "http_proxy_pass")) { bgav_options_set_http_proxy_pass(avdec->opt, val->val_str); } else if(!strcmp(name, "rtp_try_tcp")) { bgav_options_set_rtp_try_tcp(avdec->opt, val->val_i); } else if(!strcmp(name, "rtp_port_base")) { bgav_options_set_rtp_port_base(avdec->opt, val->val_i); } else if(!strcmp(name, "ftp_anonymous_password")) { bgav_options_set_ftp_anonymous_password(avdec->opt, val->val_str); } else if(!strcmp(name, "ftp_anonymous")) { bgav_options_set_ftp_anonymous(avdec->opt, val->val_i); } else if(!strcmp(name, "default_subtitle_encoding")) { bgav_options_set_default_subtitle_encoding(avdec->opt, val->val_str); } #if 0 else if(!strcmp(name, "dvd_chapters_as_tracks")) { bgav_options_set_dvd_chapters_as_tracks(avdec->opt, val->val_i); } #endif else if(!strcmp(name, "audio_dynrange")) { bgav_options_set_audio_dynrange(avdec->opt, val->val_i); } else if(!strcmp(name, "seek_subtitles")) { if(!strcmp(val->val_str, "video")) bgav_options_set_seek_subtitles(avdec->opt, 1); else if(!strcmp(val->val_str, "always")) bgav_options_set_seek_subtitles(avdec->opt, 2); else bgav_options_set_seek_subtitles(avdec->opt, 0); } else if(!strcmp(name, "video_postprocessing_level")) { bgav_options_set_postprocessing_level(avdec->opt, val->val_f); } else if(!strcmp(name, "dvb_channels_file")) { bgav_options_set_dvb_channels_file(avdec->opt, val->val_str); } else if(!strcmp(name, "sample_accuracy")) { if(!strcmp(val->val_str, "never")) bgav_options_set_sample_accurate(avdec->opt, 0); else if(!strcmp(val->val_str, "always")) bgav_options_set_sample_accurate(avdec->opt, 1); else if(!strcmp(val->val_str, "when_necessary")) bgav_options_set_sample_accurate(avdec->opt, 2); } else if(!strcmp(name, "cache_size")) { bgav_options_set_cache_size(avdec->opt, val->val_i); } else if(!strcmp(name, "cache_time")) { bgav_options_set_cache_time(avdec->opt, val->val_i); } else if(!strcmp(name, "dv_datetime")) { bgav_options_set_dv_datetime(avdec->opt, val->val_i); } else if(!strcmp(name, "shrink")) { bgav_options_set_shrink(avdec->opt, val->val_i); } else if(!strcmp(name, "vdpau")) { bgav_options_set_vdpau(avdec->opt, val->val_i); } else if(!strcmp(name, "threads")) { bgav_options_set_threads(avdec->opt, val->val_i); } } int bg_avdec_get_num_tracks(void * p) { avdec_priv * avdec; avdec = (avdec_priv*)(p); return avdec->num_tracks; } int bg_avdec_set_track(void * priv, int track) { int i; avdec_priv * avdec; avdec = (avdec_priv*)(priv); if(!bgav_select_track(avdec->dec, track)) return 0; avdec->current_track = &(avdec->track_info[track]); /* Get formats (need them for compressed output */ for(i = 0; i < avdec->current_track->num_audio_streams; i++) gavl_audio_format_copy(&(avdec->current_track->audio_streams[i].format), bgav_get_audio_format(avdec->dec, i)); for(i = 0; i < avdec->current_track->num_video_streams; i++) gavl_video_format_copy(&(avdec->current_track->video_streams[i].format), bgav_get_video_format(avdec->dec, i)); return 1; } gavl_frame_table_t * bg_avdec_get_frame_table(void * priv, int stream) { avdec_priv * avdec; avdec = (avdec_priv*)(priv); return bgav_get_frame_table(avdec->dec, stream); } static void metadata_change_callback(void * priv, const gavl_metadata_t * metadata) { avdec_priv * avdec; avdec = priv; if(avdec->bg_callbacks && avdec->bg_callbacks->metadata_changed) { avdec->bg_callbacks->metadata_changed(avdec->bg_callbacks->data, metadata); } } void bg_avdec_set_callbacks(void * priv, bg_input_callbacks_t * callbacks) { bgav_options_t * opt; avdec_priv * avdec; avdec = (avdec_priv*)(priv); avdec->bg_callbacks = callbacks; if(!callbacks) return; bgav_options_set_name_change_callback(avdec->opt, avdec->bg_callbacks->name_changed, avdec->bg_callbacks->data); bgav_options_set_buffer_callback(avdec->opt, avdec->bg_callbacks->buffer_notify, avdec->bg_callbacks->data); bgav_options_set_user_pass_callback(avdec->opt, avdec->bg_callbacks->user_pass, avdec->bg_callbacks->data); bgav_options_set_aspect_callback(avdec->opt, avdec->bg_callbacks->aspect_changed, avdec->bg_callbacks->data); if(avdec->bg_callbacks->metadata_changed) { bgav_options_set_metadata_change_callback(avdec->opt, metadata_change_callback, priv); } if(avdec->dec) { opt = bgav_get_options(avdec->dec); bgav_options_copy(opt, avdec->opt); } } bg_device_info_t * bg_avdec_get_devices(bgav_device_info_t * info) { int i = 0; bg_device_info_t * ret = NULL; if(!info) return ret; while(info[i].device) { ret = bg_device_info_append(ret, info[i].device, info[i].name); i++; } return ret; } const char * bg_avdec_get_disc_name(void * priv) { avdec_priv * avdec; avdec = (avdec_priv*)(priv); if(avdec->dec) return bgav_get_disc_name(avdec->dec); return NULL; } static bg_edl_segment_t * copy_segments(const bgav_edl_segment_t * src, int len) { int i; bg_edl_segment_t * ret; ret = calloc(len, sizeof(*ret)); for(i = 0; i < len; i++) { /* Copy pointers */ ret[i].url = bg_strdup(ret[i].url, src[i].url); ret[i].track = src[i].track; ret[i].stream = src[i].stream; ret[i].timescale = src[i].timescale; ret[i].src_time = src[i].src_time; ret[i].dst_time = src[i].dst_time; ret[i].dst_duration = src[i].dst_duration; ret[i].speed_num = src[i].speed_num; ret[i].speed_den = src[i].speed_den; } return ret; } static bg_edl_stream_t * copy_streams(const bgav_edl_stream_t * src, int len) { int i; bg_edl_stream_t * ret; ret = calloc(len, sizeof(*ret)); for(i = 0; i < len; i++) { ret[i].num_segments = src[i].num_segments; ret[i].timescale = src[i].timescale; /* Copy pointers */ ret[i].segments = copy_segments(src[i].segments, src[i].num_segments); } return ret; } static bg_edl_track_t * copy_tracks(const bgav_edl_track_t * src, int len) { int i; bg_edl_track_t * ret; ret = calloc(len, sizeof(*ret)); for(i = 0; i < len; i++) { /* Metadata */ if(src[i].metadata) gavl_metadata_copy(&ret[i].metadata, src[i].metadata); ret[i].name = bg_strdup(ret[i].name, src[i].name); /* Copy pointers */ ret[i].audio_streams = copy_streams(src[i].audio_streams, src[i].num_audio_streams); ret[i].video_streams = copy_streams(src[i].video_streams, src[i].num_video_streams); ret[i].subtitle_text_streams = copy_streams(src[i].subtitle_text_streams, src[i].num_subtitle_text_streams); ret[i].subtitle_overlay_streams = copy_streams(src[i].subtitle_overlay_streams, src[i].num_subtitle_overlay_streams); ret[i].num_audio_streams = src[i].num_audio_streams; ret[i].num_video_streams = src[i].num_video_streams; ret[i].num_subtitle_text_streams = src[i].num_subtitle_text_streams; ret[i].num_subtitle_overlay_streams = src[i].num_subtitle_overlay_streams; } return ret; } bg_edl_t * bg_avdec_convert_edl(const bgav_edl_t * e) { bg_edl_t * ret; ret = calloc(1, sizeof(*ret)); ret->num_tracks = e->num_tracks; /* Copy pointers */ ret->tracks = copy_tracks(e->tracks, e->num_tracks); ret->url = bg_strdup(ret->url, e->url); return ret; } gmerlin-avdecoder-1.2.0~dfsg/plugins/avdec_common.h0000644000000000000000000001223011764363477021145 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include typedef struct { bg_track_info_t * track_info; bg_track_info_t * current_track; int num_tracks; bgav_t * dec; bgav_options_t * opt; bg_input_callbacks_t * bg_callbacks; bg_edl_t * edl; } avdec_priv; bg_edl_t * bg_avdec_convert_edl(const bgav_edl_t * edl); const bg_edl_t * bg_avdec_get_edl(void * priv); void * bg_avdec_create(); void bg_avdec_close(void * priv); void bg_avdec_destroy(void * priv); bg_track_info_t * bg_avdec_get_track_info(void * priv, int track); int bg_avdec_read_video(void * priv, gavl_video_frame_t * frame, int stream); void bg_avdec_skip_video(void * priv, int stream, int64_t * time, int scale, int exact); int bg_avdec_has_still(void * priv, int stream); int bg_avdec_read_audio(void * priv, gavl_audio_frame_t * frame, int stream, int num_samples); int bg_avdec_read_subtitle_overlay(void * priv, gavl_overlay_t * ovl, int stream); int bg_avdec_read_subtitle_text(void * priv, char ** text, int * text_alloc, int64_t * start_time, int64_t * duration, int stream); int bg_avdec_has_subtitle(void * priv, int stream); int bg_avdec_set_audio_stream(void * priv, int stream, bg_stream_action_t action); int bg_avdec_set_video_stream(void * priv, int stream, bg_stream_action_t action); int bg_avdec_set_subtitle_stream(void * priv, int stream, bg_stream_action_t action); int bg_avdec_start(void * priv); void bg_avdec_seek(void * priv, int64_t * t, int scale); gavl_frame_table_t * bg_avdec_get_frame_table(void * priv, int stream); int bg_avdec_init(avdec_priv * avdec); const char * bg_avdec_get_disc_name(void * priv); void bg_avdec_set_parameter(void * p, const char * name, const bg_parameter_value_t * val); int bg_avdec_get_num_tracks(void * p); int bg_avdec_set_track(void * priv, int track); void bg_avdec_set_callbacks(void * priv, bg_input_callbacks_t * callbacks); int bg_avdec_get_audio_compression_info(void * priv, int stream, gavl_compression_info_t * info); int bg_avdec_get_video_compression_info(void * priv, int stream, gavl_compression_info_t * info); int bg_avdec_read_audio_packet(void * priv, int stream, gavl_packet_t * p); int bg_avdec_read_video_packet(void * priv, int stream, gavl_packet_t * p); bg_device_info_t * bg_avdec_get_devices(bgav_device_info_t *); /* Commonly used parameters */ #define PARAM_DYNRANGE \ { \ .name = "audio_dynrange", \ .long_name = TRS("Dynamic range control"), \ .type = BG_PARAMETER_CHECKBUTTON, \ .val_default = { .val_i = 1 }, \ .help_string = TRS("Enable dynamic range control for codecs, which support this (currently only A52 and DTS).") \ } #define PARAM_PP_LEVEL \ { \ .name = "video_postprocessing_level", \ .long_name = TRS("Postprocessing level"), \ .opt = "pp", \ .type = BG_PARAMETER_SLIDER_FLOAT, \ .val_default = { .val_f = 0.2 }, \ .val_min = { .val_f = 0.0 }, \ .val_max = { .val_f = 1.0 }, \ .num_digits = 2, \ .help_string = TRS("Set postprocessing (to remove compression artifacts). 0 means no postprocessing, 1 means maximum postprocessing.") \ } #define PARAM_THREADS \ { \ .name = "threads", \ .long_name = TRS("Number of decoding threads"), \ .type = BG_PARAMETER_INT, \ .val_default = { .val_i = 1 }, \ .val_min = { .val_i = 1 }, \ .val_max = { .val_i = 1024 }, \ .help_string = TRS("Set the number of threads used by Video codecs") \ } gmerlin-avdecoder-1.2.0~dfsg/plugins/Makefile.in0000644000000000000000000005523611764363515020415 0ustar rootroot# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = plugins DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/avcodec.m4 \ $(top_srcdir)/m4/avformat.m4 $(top_srcdir)/m4/check_funcs.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/lqt_opt_cflags.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(gmerlin_plugindir)" LTLIBRARIES = $(gmerlin_plugin_LTLIBRARIES) i_avdec_la_DEPENDENCIES = $(top_builddir)/lib/libgmerlin_avdec.la am_i_avdec_la_OBJECTS = i_avdec.lo avdec_common.lo i_avdec_la_OBJECTS = $(am_i_avdec_la_OBJECTS) i_dvb_la_DEPENDENCIES = $(top_builddir)/lib/libgmerlin_avdec.la am_i_dvb_la_OBJECTS = i_dvb.lo avdec_common.lo i_dvb_la_OBJECTS = $(am_i_dvb_la_OBJECTS) @HAVE_LINUXDVB_TRUE@am_i_dvb_la_rpath = -rpath $(gmerlin_plugindir) i_dvd_la_DEPENDENCIES = $(top_builddir)/lib/libgmerlin_avdec.la am_i_dvd_la_OBJECTS = i_dvd.lo avdec_common.lo i_dvd_la_OBJECTS = $(am_i_dvd_la_OBJECTS) @HAVE_CDIO_TRUE@@HAVE_DVDREAD_TRUE@am_i_dvd_la_rpath = -rpath \ @HAVE_CDIO_TRUE@@HAVE_DVDREAD_TRUE@ $(gmerlin_plugindir) i_vcd_la_DEPENDENCIES = $(top_builddir)/lib/libgmerlin_avdec.la am_i_vcd_la_OBJECTS = i_vcd.lo avdec_common.lo i_vcd_la_OBJECTS = $(am_i_vcd_la_OBJECTS) @HAVE_CDIO_TRUE@am_i_vcd_la_rpath = -rpath $(gmerlin_plugindir) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(i_avdec_la_SOURCES) $(i_dvb_la_SOURCES) \ $(i_dvd_la_SOURCES) $(i_vcd_la_SOURCES) DIST_SOURCES = $(i_avdec_la_SOURCES) $(i_dvb_la_SOURCES) \ $(i_dvd_la_SOURCES) $(i_vcd_la_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVCODEC_CFLAGS = @AVCODEC_CFLAGS@ AVCODEC_LIBS = @AVCODEC_LIBS@ AVCODEC_REQUIRED = @AVCODEC_REQUIRED@ AVFORMAT_CFLAGS = @AVFORMAT_CFLAGS@ AVFORMAT_LIBS = @AVFORMAT_LIBS@ AVFORMAT_REQUIRED = @AVFORMAT_REQUIRED@ AWK = @AWK@ BGAV_VERSION = @BGAV_VERSION@ BGAV_VERSION_MAJOR = @BGAV_VERSION_MAJOR@ BGAV_VERSION_MICRO = @BGAV_VERSION_MICRO@ BGAV_VERSION_MINOR = @BGAV_VERSION_MINOR@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CDIO_CFLAGS = @CDIO_CFLAGS@ CDIO_LIBS = @CDIO_LIBS@ CDIO_REQUIRED = @CDIO_REQUIRED@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DCA_CFLAGS = @DCA_CFLAGS@ DCA_LIBS = @DCA_LIBS@ DCA_REQUIRED = @DCA_REQUIRED@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOXYGEN = @DOXYGEN@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DVDREAD_CFLAGS = @DVDREAD_CFLAGS@ DVDREAD_LIBS = @DVDREAD_LIBS@ DVDREAD_REQUIRED = @DVDREAD_REQUIRED@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FAAD2_CFLAGS = @FAAD2_CFLAGS@ FAAD2_LIBS = @FAAD2_LIBS@ FAAD2_REQUIRED = @FAAD2_REQUIRED@ FGREP = @FGREP@ FLAC_CFLAGS = @FLAC_CFLAGS@ FLAC_LIBS = @FLAC_LIBS@ FLAC_REQUIRED = @FLAC_REQUIRED@ GAVL_CFLAGS = @GAVL_CFLAGS@ GAVL_LIBS = @GAVL_LIBS@ GAVL_REQUIRED = @GAVL_REQUIRED@ GMERLIN_CFLAGS = @GMERLIN_CFLAGS@ GMERLIN_DEP_LIBS = @GMERLIN_DEP_LIBS@ GMERLIN_LIBS = @GMERLIN_LIBS@ GMERLIN_PLUGIN_LDFLAGS = @GMERLIN_PLUGIN_LDFLAGS@ GMERLIN_REQUIRED = @GMERLIN_REQUIRED@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ ICONV_LIBS = @ICONV_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBA52_CFLAGS = @LIBA52_CFLAGS@ LIBA52_LIBS = @LIBA52_LIBS@ LIBA52_REQUIRED = @LIBA52_REQUIRED@ LIBBGAV_CFLAGS = @LIBBGAV_CFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMPEG2_CFLAGS = @LIBMPEG2_CFLAGS@ LIBMPEG2_LIBS = @LIBMPEG2_LIBS@ LIBMPEG2_REQUIRED = @LIBMPEG2_REQUIRED@ LIBOBJS = @LIBOBJS@ LIBPOSTPROC_CFLAGS = @LIBPOSTPROC_CFLAGS@ LIBPOSTPROC_LIBS = @LIBPOSTPROC_LIBS@ LIBPOSTPROC_REQUIRED = @LIBPOSTPROC_REQUIRED@ LIBS = @LIBS@ LIBSWSCALE_CFLAGS = @LIBSWSCALE_CFLAGS@ LIBSWSCALE_LIBS = @LIBSWSCALE_LIBS@ LIBSWSCALE_REQUIRED = @LIBSWSCALE_REQUIRED@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTVERSION_AGE = @LTVERSION_AGE@ LTVERSION_CURRENT = @LTVERSION_CURRENT@ LTVERSION_REVISION = @LTVERSION_REVISION@ MAD_CFLAGS = @MAD_CFLAGS@ MAD_LIBS = @MAD_LIBS@ MAD_REQUIRED = @MAD_REQUIRED@ MAKEINFO = @MAKEINFO@ MJPEGTOOLS_CFLAGS = @MJPEGTOOLS_CFLAGS@ MJPEGTOOLS_LIBS = @MJPEGTOOLS_LIBS@ MJPEGTOOLS_REQUIRED = @MJPEGTOOLS_REQUIRED@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MUSEPACK_CFLAGS = @MUSEPACK_CFLAGS@ MUSEPACK_LIBS = @MUSEPACK_LIBS@ MUSEPACK_REQUIRED = @MUSEPACK_REQUIRED@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ OGG_REQUIRED = @OGG_REQUIRED@ OPENJPEG_CFLAGS = @OPENJPEG_CFLAGS@ OPENJPEG_LIBS = @OPENJPEG_LIBS@ OPENJPEG_REQUIRED = @OPENJPEG_REQUIRED@ OPT_CFLAGS = @OPT_CFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ PNG_REQUIRED = @PNG_REQUIRED@ POSUB = @POSUB@ RANLIB = @RANLIB@ REALDLL_LIBS = @REALDLL_LIBS@ SAMBA_CFLAGS = @SAMBA_CFLAGS@ SAMBA_LIBS = @SAMBA_LIBS@ SAMBA_REQUIRED = @SAMBA_REQUIRED@ SCHROEDINGER_CFLAGS = @SCHROEDINGER_CFLAGS@ SCHROEDINGER_LIBS = @SCHROEDINGER_LIBS@ SCHROEDINGER_REQUIRED = @SCHROEDINGER_REQUIRED@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ SPEEX_REQUIRED = @SPEEX_REQUIRED@ STRIP = @STRIP@ THEORADEC_CFLAGS = @THEORADEC_CFLAGS@ THEORADEC_LIBS = @THEORADEC_LIBS@ THEORADEC_REQUIRED = @THEORADEC_REQUIRED@ TIFF_CFLAGS = @TIFF_CFLAGS@ TIFF_LIBS = @TIFF_LIBS@ TIFF_REQUIRED = @TIFF_REQUIRED@ TOP_SRCDIR = @TOP_SRCDIR@ USE_NLS = @USE_NLS@ VDPAU_CFLAGS = @VDPAU_CFLAGS@ VDPAU_LIBS = @VDPAU_LIBS@ VDPAU_REQUIRED = @VDPAU_REQUIRED@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ VORBIS_REQUIRED = @VORBIS_REQUIRED@ W32_NO_OPTIMIZE = @W32_NO_OPTIMIZE@ XADLL_LIBS = @XADLL_LIBS@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_LIBS = @X_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gmerlin_plugindir = @gmerlin_plugindir@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ w32_path = @w32_path@ INCLUDES = -I$(top_srcdir)/include @HAVE_CDIO_FALSE@cdio_modules = @HAVE_CDIO_TRUE@cdio_modules = i_vcd.la @HAVE_CDIO_FALSE@cdio_cflags = @HAVE_CDIO_TRUE@cdio_cflags = @CDIO_CFLAGS@ @HAVE_CDIO_TRUE@@HAVE_DVDREAD_FALSE@dvdread_modules = @HAVE_CDIO_TRUE@@HAVE_DVDREAD_TRUE@dvdread_modules = i_dvd.la @HAVE_LINUXDVB_FALSE@dvb_modules = @HAVE_LINUXDVB_TRUE@dvb_modules = i_dvb.la AM_CFLAGS = @OPT_CFLAGS@ @GMERLIN_CFLAGS@ $(cdio_cflags) -DLOCALE_DIR=\"$(localedir)\" AM_LDFLAGS = -avoid-version -module @GMERLIN_PLUGIN_LDFLAGS@ # AM_LDFLAGS = -avoid-version -module gmerlin_plugin_LTLIBRARIES = \ i_avdec.la \ $(cdio_modules) \ $(dvdread_modules) \ $(dvb_modules) noinst_HEADERS = avdec_common.h i_avdec_la_SOURCES = i_avdec.c avdec_common.c i_avdec_la_LIBADD = $(top_builddir)/lib/libgmerlin_avdec.la @GMERLIN_LIBS@ i_vcd_la_SOURCES = i_vcd.c avdec_common.c i_vcd_la_LIBADD = $(top_builddir)/lib/libgmerlin_avdec.la @GMERLIN_LIBS@ i_dvd_la_SOURCES = i_dvd.c avdec_common.c i_dvd_la_LIBADD = $(top_builddir)/lib/libgmerlin_avdec.la @GMERLIN_LIBS@ i_dvb_la_SOURCES = i_dvb.c avdec_common.c i_dvb_la_LIBADD = $(top_builddir)/lib/libgmerlin_avdec.la @GMERLIN_LIBS@ all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu plugins/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-gmerlin_pluginLTLIBRARIES: $(gmerlin_plugin_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(gmerlin_plugindir)" || $(MKDIR_P) "$(DESTDIR)$(gmerlin_plugindir)" @list='$(gmerlin_plugin_LTLIBRARIES)'; test -n "$(gmerlin_plugindir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(gmerlin_plugindir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(gmerlin_plugindir)"; \ } uninstall-gmerlin_pluginLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(gmerlin_plugin_LTLIBRARIES)'; test -n "$(gmerlin_plugindir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(gmerlin_plugindir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(gmerlin_plugindir)/$$f"; \ done clean-gmerlin_pluginLTLIBRARIES: -test -z "$(gmerlin_plugin_LTLIBRARIES)" || rm -f $(gmerlin_plugin_LTLIBRARIES) @list='$(gmerlin_plugin_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done i_avdec.la: $(i_avdec_la_OBJECTS) $(i_avdec_la_DEPENDENCIES) $(LINK) -rpath $(gmerlin_plugindir) $(i_avdec_la_OBJECTS) $(i_avdec_la_LIBADD) $(LIBS) i_dvb.la: $(i_dvb_la_OBJECTS) $(i_dvb_la_DEPENDENCIES) $(LINK) $(am_i_dvb_la_rpath) $(i_dvb_la_OBJECTS) $(i_dvb_la_LIBADD) $(LIBS) i_dvd.la: $(i_dvd_la_OBJECTS) $(i_dvd_la_DEPENDENCIES) $(LINK) $(am_i_dvd_la_rpath) $(i_dvd_la_OBJECTS) $(i_dvd_la_LIBADD) $(LIBS) i_vcd.la: $(i_vcd_la_OBJECTS) $(i_vcd_la_DEPENDENCIES) $(LINK) $(am_i_vcd_la_rpath) $(i_vcd_la_OBJECTS) $(i_vcd_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avdec_common.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i_avdec.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i_dvb.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i_dvd.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i_vcd.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(gmerlin_plugindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-gmerlin_pluginLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-gmerlin_pluginLTLIBRARIES install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-gmerlin_pluginLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-gmerlin_pluginLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am \ install-gmerlin_pluginLTLIBRARIES install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am \ uninstall-gmerlin_pluginLTLIBRARIES # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gmerlin-avdecoder-1.2.0~dfsg/plugins/i_dvb.c0000644000000000000000000001247111764363477017600 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include #include #include #include #include #include #include #include #include "avdec_common.h" static int open_dvb(void * priv, const char * location) { avdec_priv * avdec; bgav_options_t * opt; avdec = (avdec_priv*)(priv); avdec->dec = bgav_create(); opt = bgav_get_options(avdec->dec); bgav_options_copy(opt, avdec->opt); if(!bgav_open_dvb(avdec->dec, location)) return 0; return bg_avdec_init(avdec); } static bg_device_info_t * find_devices_dvb() { bg_device_info_t * ret; bgav_device_info_t * dev; dev = bgav_find_devices_dvb(); ret = bg_avdec_get_devices(dev); bgav_device_info_destroy(dev); return ret; } static int check_device_dvb(const char * device, char ** name) { return bgav_check_device_dvb(device, name); } static const bg_parameter_info_t parameters[] = { { .name = "dvb_channels_file", .long_name = TRS("Channel file"), .type = BG_PARAMETER_FILE, .help_string = TRS("The channels file must have the format of the dvb-utils\ programs (like szap, tzap). If you don't set this file,\ several locations like $HOME/.tzap/channels.conf will be\ searched."), .gettext_domain = PACKAGE, .gettext_directory = LOCALE_DIR, }, PARAM_DYNRANGE, { .name = "read_timeout", .long_name = TRS("Read timeout (milliseconds)"), .type = BG_PARAMETER_INT, .val_default = { .val_i = 100 }, .val_min = { .val_i = 0 }, .val_max = { .val_i = 2000000 }, }, { /* End of parameters */ } }; static const bg_parameter_info_t * get_parameters_dvb(void * priv) { return parameters; } static char const * const protocols = "dvb"; static const char * get_protocols(void * priv) { return protocols; } const bg_input_plugin_t the_plugin = { .common = { BG_LOCALE, .name = "i_dvb", .long_name = TRS("DVB Player"), .description = TRS("Plugin for playing DVB streams from a Linux-DVB compatible card. Based on Gmerlin avdecoder."), .type = BG_PLUGIN_INPUT, .flags = BG_PLUGIN_TUNER, .priority = BG_PLUGIN_PRIORITY_MAX, .create = bg_avdec_create, .destroy = bg_avdec_destroy, .get_parameters = get_parameters_dvb, .set_parameter = bg_avdec_set_parameter, .find_devices = find_devices_dvb, .check_device = check_device_dvb, }, .get_protocols = get_protocols, .set_callbacks = bg_avdec_set_callbacks, /* Open file/device */ .open = open_dvb, // .set_callbacks = set_callbacks_avdec, /* For file and network plugins, this can be NULL */ .get_num_tracks = bg_avdec_get_num_tracks, /* Return track information */ .get_track_info = bg_avdec_get_track_info, /* Set track */ .set_track = bg_avdec_set_track, /* Get compression infos */ .get_audio_compression_info = bg_avdec_get_audio_compression_info, .get_video_compression_info = bg_avdec_get_video_compression_info, /* Set streams */ .set_audio_stream = bg_avdec_set_audio_stream, .set_video_stream = bg_avdec_set_video_stream, .set_subtitle_stream = bg_avdec_set_subtitle_stream, /* * Start decoding. * Track info is the track, which should be played. * The plugin must take care of the "active" fields * in the stream infos to check out, which streams are to be decoded */ .start = bg_avdec_start, /* Read one audio frame (returns FALSE on EOF) */ .read_audio = bg_avdec_read_audio, .has_still = bg_avdec_has_still, /* Read one video frame (returns FALSE on EOF) */ .read_video = bg_avdec_read_video, .skip_video = bg_avdec_skip_video, .read_audio_packet = bg_avdec_read_audio_packet, .read_video_packet = bg_avdec_read_video_packet, // .has_subtitle = bg_avdec_has_subtitle, // .read_subtitle_overlay = bg_avdec_read_subtitle_overlay, /* Stop playback, close all decoders */ .stop = NULL, .close = bg_avdec_close, }; /* Include this into all plugin modules exactly once to let the plugin loader obtain the API version */ BG_GET_PLUGIN_API_VERSION; gmerlin-avdecoder-1.2.0~dfsg/plugins/i_vcd.c0000644000000000000000000001077611764363477017607 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include #include #include #include #include #include #include #include #include // Version #include "avdec_common.h" static int open_vcd(void * priv, const char * location) { avdec_priv * avdec; bgav_options_t * opt; avdec = (avdec_priv*)(priv); avdec->dec = bgav_create(); opt = bgav_get_options(avdec->dec); bgav_options_copy(opt, avdec->opt); if(!bgav_open_vcd(avdec->dec, location)) return 0; return bg_avdec_init(avdec); } static bg_device_info_t * find_devices_vcd() { bg_device_info_t * ret; bgav_device_info_t * dev; dev = bgav_find_devices_vcd(); ret = bg_avdec_get_devices(dev); bgav_device_info_destroy(dev); return ret; } static int check_device_vcd(const char * device, char ** name) { return bgav_check_device_vcd(device, name); } static char const * const protocols = "vcd"; static const char * get_protocols(void * priv) { return protocols; } const bg_input_plugin_t the_plugin = { .common = { BG_LOCALE, .name = "i_vcd", .long_name = TRS("VCD Player"), .description = TRS("Plugin for playing VCDs. Based on Gmerlin avdecoder."), .type = BG_PLUGIN_INPUT, .flags = BG_PLUGIN_REMOVABLE, .priority = BG_PLUGIN_PRIORITY_MAX, .create = bg_avdec_create, .destroy = bg_avdec_destroy, // .get_parameters = get_parameters_vcd, // .set_parameter = bg_avdec_set_parameter .find_devices = find_devices_vcd, .check_device = check_device_vcd, }, .get_protocols = get_protocols, /* Open file/device */ .open = open_vcd, .set_callbacks = bg_avdec_set_callbacks, .get_disc_name = bg_avdec_get_disc_name, #if LIBCDIO_VERSION_NUM >= 78 .eject_disc = bgav_eject_disc, #endif // .set_callbacks = set_callbacks_avdec, /* For file and network plugins, this can be NULL */ .get_num_tracks = bg_avdec_get_num_tracks, /* Return track information */ .get_track_info = bg_avdec_get_track_info, /* Set track */ .set_track = bg_avdec_set_track, /* Get compression infos */ .get_audio_compression_info = bg_avdec_get_audio_compression_info, .get_video_compression_info = bg_avdec_get_video_compression_info, /* Set streams */ .set_audio_stream = bg_avdec_set_audio_stream, .set_video_stream = bg_avdec_set_video_stream, .set_subtitle_stream = NULL, /* * Start decoding. * Track info is the track, which should be played. * The plugin must take care of the "active" fields * in the stream infos to check out, which streams are to be decoded */ .start = bg_avdec_start, /* Read one audio frame (returns FALSE on EOF) */ .read_audio = bg_avdec_read_audio, .has_still = bg_avdec_has_still, /* Read one video frame (returns FALSE on EOF) */ .read_video = bg_avdec_read_video, .skip_video = bg_avdec_skip_video, .read_audio_packet = bg_avdec_read_audio_packet, .read_video_packet = bg_avdec_read_video_packet, /* * Do percentage seeking (can be NULL) */ .seek = bg_avdec_seek, /* Stop playback, close all decoders */ .stop = NULL, .close = bg_avdec_close, }; /* Include this into all plugin modules exactly once to let the plugin loader obtain the API version */ BG_GET_PLUGIN_API_VERSION; gmerlin-avdecoder-1.2.0~dfsg/plugins/Makefile.am0000644000000000000000000000222411764363477020400 0ustar rootroot## Process this file with automake to produce Makefile.in. gmerlin_plugindir = @gmerlin_plugindir@ INCLUDES = -I$(top_srcdir)/include if HAVE_CDIO cdio_modules = i_vcd.la cdio_cflags = @CDIO_CFLAGS@ if HAVE_DVDREAD dvdread_modules = i_dvd.la else dvdread_modules = endif else cdio_modules = cdio_cflags = endif if HAVE_LINUXDVB dvb_modules = i_dvb.la else dvb_modules = endif AM_CFLAGS = @OPT_CFLAGS@ @GMERLIN_CFLAGS@ $(cdio_cflags) -DLOCALE_DIR=\"$(localedir)\" AM_LDFLAGS = -avoid-version -module @GMERLIN_PLUGIN_LDFLAGS@ # AM_LDFLAGS = -avoid-version -module gmerlin_plugin_LTLIBRARIES = \ i_avdec.la \ $(cdio_modules) \ $(dvdread_modules) \ $(dvb_modules) noinst_HEADERS = avdec_common.h i_avdec_la_SOURCES = i_avdec.c avdec_common.c i_avdec_la_LIBADD = $(top_builddir)/lib/libgmerlin_avdec.la @GMERLIN_LIBS@ i_vcd_la_SOURCES = i_vcd.c avdec_common.c i_vcd_la_LIBADD = $(top_builddir)/lib/libgmerlin_avdec.la @GMERLIN_LIBS@ i_dvd_la_SOURCES = i_dvd.c avdec_common.c i_dvd_la_LIBADD = $(top_builddir)/lib/libgmerlin_avdec.la @GMERLIN_LIBS@ i_dvb_la_SOURCES = i_dvb.c avdec_common.c i_dvb_la_LIBADD = $(top_builddir)/lib/libgmerlin_avdec.la @GMERLIN_LIBS@ gmerlin-avdecoder-1.2.0~dfsg/config.guess0000755000000000000000000013105411274160642017170 0ustar rootroot#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 # Free Software Foundation, Inc. timestamp='2009-06-10' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[456]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:[3456]*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T | authenticamd | genuineintel) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: gmerlin-avdecoder-1.2.0~dfsg/include/0000755000000000000000000000000011764363526016301 5ustar rootrootgmerlin-avdecoder-1.2.0~dfsg/include/audioparser_priv.h0000644000000000000000000000610111764363500022016 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #define PARSER_CACHE_MAX 16 #define PARSER_HAVE_FRAME (PARSER_PRIV+0) typedef void (*init_func)(bgav_audio_parser_t*); typedef int (*parse_func)(bgav_audio_parser_t*); typedef void (*cleanup_func)(bgav_audio_parser_t*); typedef void (*reset_func)(bgav_audio_parser_t*); // typedef int (*parse_header_func)(bgav_audio_parser_t*); typedef int (*parse_frame_func)(bgav_audio_parser_t*, bgav_packet_t*); #define STATE_NEED_START 0 #define STATE_NEED_END 1 #define STATE_HAVE_END 2 typedef struct { int64_t packet_position; int parser_position; int size; int64_t pts; } packet_t; struct bgav_audio_parser_s { int raw; bgav_bytebuffer_t buf; bgav_stream_t * s; parse_func parse; cleanup_func cleanup; reset_func reset; // parse_header_func parse_header; parse_frame_func parse_frame; /* Private data for parsers */ void * priv; /* Raw byte offset of the start of the parser buffer */ int64_t raw_position; /* Timescales */ int in_scale; int have_format; /* Packets */ packet_t * packets; int packets_alloc; int num_packets; int64_t timestamp; int eof; /* Set by the parse function */ int frame_bytes; int frame_samples; int64_t frame_position; int64_t frame_pts; int last_state; bgav_packet_t * out_packet; /* Where to get packets */ bgav_packet_source_t src; }; void bgav_audio_parser_init_mpeg(bgav_audio_parser_t * parser); void bgav_audio_parser_init_a52(bgav_audio_parser_t * parser); #ifdef HAVE_FAAD2 void bgav_audio_parser_init_aac(bgav_audio_parser_t * parser); #endif #ifdef HAVE_DCA void bgav_audio_parser_init_dca(bgav_audio_parser_t * parser); #endif #ifdef HAVE_VORBIS void bgav_audio_parser_init_vorbis(bgav_audio_parser_t * parser); #endif void bgav_audio_parser_init_flac(bgav_audio_parser_t * parser); // void bgav_audio_parser_init_adts(bgav_audio_parser_t * parser); void bgav_audio_parser_flush(bgav_audio_parser_t * parser, int bytes); void bgav_audio_parser_set_frame(bgav_audio_parser_t * parser, int pos, int len, int samples); gmerlin-avdecoder-1.2.0~dfsg/include/rtp.h0000644000000000000000000001240011764363500017244 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include // For the mutex #include extern bgav_demuxer_t bgav_demuxer_rtp; #define RTP_MAX_PACKET_LENGTH 1500 int bgav_demuxer_rtp_open(bgav_demuxer_context_t * ctx, bgav_sdp_t * sdp); void bgav_demuxer_rtp_start(bgav_demuxer_context_t * ctx); void bgav_demuxer_rtp_stop(bgav_demuxer_context_t * ctx); void bgav_rtp_set_tcp(bgav_demuxer_context_t * ctx); /* rtp statistics for generating receiver reports */ typedef struct { uint16_t max_seq; /* highest seq. number seen */ int64_t cycles; /* shifted count of seq. number cycles */ uint32_t base_seq; /* base seq number */ uint32_t bad_seq; /* last 'bad' seq number + 1 */ uint32_t probation; /* sequ. packets till source is valid */ uint32_t received; /* packets received */ uint32_t expected_prior; /* packet expected at last interval */ uint32_t received_prior; /* packet received at last interval */ uint32_t transit; /* relative trans time for prev pkt */ uint32_t jitter; /* estimated jitter */ /* ... */ int initialized; gavl_timer_t * timer; gavl_time_t time_offset; } rtp_stats_t; typedef struct { uint8_t version; uint8_t padding; uint8_t extension; uint8_t csrc_count; uint8_t marker; uint8_t payload_type; uint64_t sequence_number; /* These 2 are smaller in the rtp header, we make them 64 bit because we add offsets */ uint64_t timestamp; uint32_t ssrc; uint32_t csrc_list[15]; } rtp_header_t; typedef struct rtp_packet_s { rtp_header_t h; uint8_t buffer[RTP_MAX_PACKET_LENGTH]; uint8_t * buf; int len; int broken; /* 1 if sequence number gap */ struct rtp_packet_s * next; } rtp_packet_t; typedef struct bgav_rtp_packet_buffer_s bgav_rtp_packet_buffer_t; bgav_rtp_packet_buffer_t * bgav_rtp_packet_buffer_create(const bgav_options_t * opt, int timescale); void bgav_rtp_packet_buffer_destroy(bgav_rtp_packet_buffer_t *); rtp_packet_t * bgav_rtp_packet_buffer_lock_write(bgav_rtp_packet_buffer_t *); void bgav_rtp_packet_buffer_unlock_write(bgav_rtp_packet_buffer_t *); void bgav_rtp_packet_buffer_set_eof(bgav_rtp_packet_buffer_t *); int bgav_rtp_packet_buffer_get_eof(bgav_rtp_packet_buffer_t *); rtp_stats_t * bgav_rtp_packet_buffer_get_stats(bgav_rtp_packet_buffer_t *); #if 0 rtp_packet_t * bgav_rtp_packet_buffer_lock_read(bgav_rtp_packet_buffer_t *); #endif rtp_packet_t * bgav_rtp_packet_buffer_try_lock_read(bgav_rtp_packet_buffer_t *); void bgav_rtp_packet_buffer_unlock_read(bgav_rtp_packet_buffer_t *); typedef struct { int size; int delta; int dts_delta; int pts_delta; int keyftrame; } mpeg4_au_t; typedef struct rtp_priv_s rtp_priv_t; typedef struct rtp_stream_priv_s { pthread_mutex_t mutex; char * control_url; int rtp_fd; int rtcp_fd; int64_t first_rtptime; int first_seq; char ** fmtp; int interleave_base; uint32_t server_ssrc; uint32_t client_ssrc; int (*process)(bgav_stream_t * s, rtp_header_t * h, uint8_t * data, int len); void (*free_priv)(struct rtp_stream_priv_s*); rtp_priv_t * rtp_priv; union { struct { int sizelength; int indexlength; int indexdeltalength; int num_aus; mpeg4_au_t * aus; int aus_alloc; } mpeg4_generic; struct { int ident; } xiph; } priv; } rtp_stream_priv_t; /* RTCP Stuff */ #define MAX_RTCP_REPORTS 31 #define RR_MAX_SIZE (8+(MAX_RTCP_REPORTS*24)) typedef struct { uint8_t version; uint8_t padding; uint8_t rc; uint8_t type; uint16_t length; uint32_t ssrc; /* These miss in Receiver report */ uint64_t ntp_time; uint32_t rtp_time; uint32_t packet_count; uint32_t octet_count; /* Report blocks */ struct { uint32_t ssrc; uint8_t fraction_lost; uint32_t cumulative_lost; uint32_t highest_ext_seq; uint32_t jitter; uint32_t lsr; uint32_t dlsr; } reports[MAX_RTCP_REPORTS]; } rtcp_sr_t; int bgav_rtcp_sr_read(bgav_input_context_t * ctx, rtcp_sr_t * ret); int bgav_rtcp_rr_write(rtcp_sr_t * r, uint8_t * data); void bgav_rtcp_sr_dump(rtcp_sr_t * r); void bgav_rtcp_rr_setup(rtcp_sr_t * r, rtp_stats_t * s, uint32_t lsr, uint32_t client_ssrc, uint32_t server_ssrc); gmerlin-avdecoder-1.2.0~dfsg/include/frametype.h0000644000000000000000000000251211764363500020436 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* Detect frametypes (especially if B-frames can occur) from timestamps */ typedef struct bgav_frametype_detector_s bgav_frametype_detector_t; bgav_frametype_detector_t * bgav_frametype_detector_create(bgav_stream_t * s); void bgav_frametype_detector_destroy(bgav_frametype_detector_t *); void bgav_frametype_detector_reset(bgav_frametype_detector_t *); gmerlin-avdecoder-1.2.0~dfsg/include/parser.h0000644000000000000000000001016411764363500017740 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #define PARSER_NEED_DATA 0 #define PARSER_HAVE_FORMAT 1 /* Audio parsers */ #define PARSER_HAVE_PACKET 2 #define PARSER_EOF 3 #define PARSER_ERROR 4 #define PARSER_PRIV 5 /* Offset for internally used codes */ /* Video parser */ bgav_video_parser_t * bgav_video_parser_create(bgav_stream_t * s); int bgav_video_parser_supported(uint32_t fourcc); void bgav_video_parser_destroy(bgav_video_parser_t *); /* Either in_pts or out_pts can (should) be undefined */ void bgav_video_parser_reset(bgav_video_parser_t *, int64_t in_pts, int64_t out_pts); int bgav_video_parser_parse(bgav_video_parser_t * parser); int bgav_video_parser_parse_frame(bgav_video_parser_t * parser, bgav_packet_t * p); void bgav_video_parser_add_packet(bgav_video_parser_t * parser, bgav_packet_t * p); // const uint8_t * bgav_video_parser_get_header(bgav_video_parser_t * parser, // int * len); // int bgav_video_parser_set_header(bgav_video_parser_t * parser, // const uint8_t * header, int len); void bgav_video_parser_get_packet(bgav_video_parser_t * parser, bgav_packet_t * p); int bgav_video_parser_max_ref_frames(bgav_video_parser_t * parser); void bgav_video_parser_set_eof(bgav_video_parser_t * parser); /* TODO: Implement this and remove other API */ bgav_packet_t * bgav_video_parser_get_packet_parse_full(void * parser); bgav_packet_t * bgav_video_parser_peek_packet_parse_full(void * parser, int force); bgav_packet_t * bgav_video_parser_get_packet_parse_frame(void * parser); bgav_packet_t * bgav_video_parser_peek_packet_parse_frame(void * parser, int force); /* Audio parser */ int bgav_audio_parser_supported(uint32_t fourcc); bgav_audio_parser_t * bgav_audio_parser_create(bgav_stream_t * s); // int bgav_audio_parser_set_header(bgav_audio_parser_t * parser, // const uint8_t * header, int len); void bgav_audio_parser_destroy(bgav_audio_parser_t *); void bgav_audio_parser_reset(bgav_audio_parser_t *, int64_t in_pts, int64_t out_pts); int bgav_audio_parser_parse(bgav_audio_parser_t * parser); int bgav_audio_parser_parse_frame(bgav_audio_parser_t * parser, bgav_packet_t * p); void bgav_audio_parser_add_packet(bgav_audio_parser_t * parser, bgav_packet_t * p); void bgav_audio_parser_add_data(bgav_audio_parser_t * parser, uint8_t * data, int len, int64_t position); void bgav_audio_parser_get_packet(bgav_audio_parser_t * parser, bgav_packet_t * p); void bgav_audio_parser_set_eof(bgav_audio_parser_t * parser); /* TODO: Implement this and remove other API */ bgav_packet_t * bgav_audio_parser_get_packet_parse_full(void * parser); bgav_packet_t * bgav_audio_parser_peek_packet_parse_full(void * parser, int force); bgav_packet_t * bgav_audio_parser_get_packet_parse_frame(void * parser); bgav_packet_t * bgav_audio_parser_peek_packet_parse_frame(void * parser, int force); gmerlin-avdecoder-1.2.0~dfsg/include/mms.h0000644000000000000000000000327411764363500017244 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ typedef struct bgav_mms_s bgav_mms_t; /* Open an mms url, return opaque structure */ bgav_mms_t * bgav_mms_open(const bgav_options_t * opt, const char * url) __attribute__ ((visibility("default"))); /* After a successful open call, the ASF header can obtained with the following function */ uint8_t * bgav_mms_get_header(bgav_mms_t * mms, int * len); /* Select the streams, right now, all streams MUST be switched on */ int bgav_mms_select_streams(bgav_mms_t * mms, int * stream_ids, int num_streams); /* * This reads data (usually one asf packet) * NULL is returned on EOF */ uint8_t * bgav_mms_read_data(bgav_mms_t * mms, int * len, int block); void bgav_mms_close(bgav_mms_t*); gmerlin-avdecoder-1.2.0~dfsg/include/pes_header.h0000644000000000000000000000261011764363500020540 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* MPEG-1/2 PES packet */ typedef struct { int64_t pts; int64_t dts; int stream_id; /* For private streams: substream_id | (stream_id << 8) */ int payload_size; /* To be read from the input after bgav_pes_header_read() */ } bgav_pes_header_t; int bgav_pes_header_read(bgav_input_context_t * input, bgav_pes_header_t * ret); void bgav_pes_header_dump(bgav_pes_header_t * p); gmerlin-avdecoder-1.2.0~dfsg/include/RTjpeg.h0000644000000000000000000001007511764363500017640 0ustar rootroot/* * RTjpeg (C) Justin Schoeman 1998 (justin@suntiger.ee.up.ac.za) * * With modifications by: * (c) 1998, 1999 by Joerg Walter * and * (c) 1999 by Wim Taymans * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifdef __RTJPEG_INTERNAL__ #ifdef MMX #include "mmx.h" #endif /* MMX */ typedef struct { #if 1 int16_t block[64] __attribute__ ((aligned (32))); int32_t ws[64*4] __attribute__ ((aligned (32))); int32_t lqt[64] __attribute__ ((aligned (32))); int32_t cqt[64] __attribute__ ((aligned (32))); int32_t liqt[64] __attribute__ ((aligned (32))); int32_t ciqt[64] __attribute__ ((aligned (32))); #else int16_t block[64]; int32_t ws[64*4]; int32_t lqt[64]; int32_t cqt[64]; int32_t liqt[64]; int32_t ciqt[64]; #endif int lb8; int cb8; int Ywidth; int Cwidth; int Ysize; int Csize; int16_t *old; int16_t *old_start; int key_count; int width; int height; int Q; int f; #ifdef MMX mmx_t lmask; mmx_t cmask; #else uint16_t lmask; uint16_t cmask; #endif /* MMX */ int key_rate; } RTjpeg_t; #else typedef void RTjpeg_t; #endif /* __RTJPEG_INTERNAL__ */ typedef struct { uint32_t framesize; uint8_t headersize; uint8_t version; uint16_t width; uint16_t height; uint8_t quality; uint8_t key; uint8_t data; } __attribute__ ((packed)) RTjpeg_frameheader; #define RTJ_YUV420 0 #define RTJ_YUV422 1 #define RTJ_RGB8 2 extern RTjpeg_t *RTjpeg_init(); extern void RTjpeg_close(RTjpeg_t *rtj); extern int RTjpeg_set_quality(RTjpeg_t *rtj, int *quality); extern int RTjpeg_set_format(RTjpeg_t *rtj, int *format); extern int RTjpeg_set_size(RTjpeg_t *rtj, int *w, int *h); extern int RTjpeg_set_intra(RTjpeg_t *rtj, int *key, int *lm, int *cm); extern int RTjpeg_compress(RTjpeg_t *rtj, uint8_t *sp, uint8_t **planes); // Not used externally // extern int RTjpeg_nullcompress(RTjpeg_t *rtj, int8_t *sp); extern void RTjpeg_decompress(RTjpeg_t *rtj, uint8_t *sp, uint8_t **planes); void RTjpeg_yuv420rgb32(RTjpeg_t *rtj, uint8_t **planes, uint8_t **rows); void RTjpeg_yuv420bgr32(RTjpeg_t *rtj, uint8_t **planes, uint8_t **rows); void RTjpeg_yuv420rgb24(RTjpeg_t *rtj, uint8_t **planes, uint8_t **rows); void RTjpeg_yuv420bgr24(RTjpeg_t *rtj, uint8_t **planes, uint8_t **rows); void RTjpeg_yuv420rgb16(RTjpeg_t *rtj, uint8_t **planes, uint8_t **rows); void RTjpeg_yuv420rgb8(RTjpeg_t *rtj, uint8_t **planes, uint8_t **rows); void RTjpeg_yuv422rgb24(RTjpeg_t *rtj, uint8_t **planes, uint8_t **rows); #define RTjpeg_yuv422rgb8(x, y, z) RTjpeg_yuv420rgb8(x, y, z) void RTjpeg_get_tables(RTjpeg_t *rtj, uint32_t *tables); void RTjpeg_set_tables(RTjpeg_t *rtj, uint32_t *tables); #define RTJPEG_FILE_VERSION 0 #define RTJPEG_HEADER_SIZE 12 #define RTjpeg_frame_framesize(sp) (((RTjpeg_frameheader *)(sp))->framesize) #define RTjpeg_frame_headersize(sp) (((RTjpeg_frameheader *)(sp))->headersize) #define RTjpeg_frame_version(sp) (((RTjpeg_frameheader *)(sp))->version) #define RTjpeg_frame_width(sp) (((RTjpeg_frameheader *)(sp))->width) #define RTjpeg_frame_height(sp) (((RTjpeg_frameheader *)(sp))->height) #define RTjpeg_frame_quality(sp) (((RTjpeg_frameheader *)(sp))->quality) #define RTjpeg_frame_key(sp) (((RTjpeg_frameheader *)(sp))->key) #define RTjpeg_frame_data(sp) (&(((RTjpeg_frameheader *)(sp))->data)) #define RTJPEG_COMPAT_STREAM(sp) RTjpeg_frame_data(sp) #define RTJPEG_COMPAT_LENGTH(sp) (RTjpeg_frame_framesize(sp) - RTjpeg_frame_headersize(sp)) gmerlin-avdecoder-1.2.0~dfsg/include/dvb_channels.h0000644000000000000000000000351711764363500021076 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #ifdef HAVE_LINUXDVB typedef struct { char * name; int tone; int audio_pid; // Unused int video_pid; // Unused int service_id; struct dvb_frontend_parameters front_param; int pol; // 1: Vertical, 0 horizontal int sat_no; // satellite number int initialized; int pcr_pid; int extra_pcr_pid; // 1 if the PCR is contained in a non-A/V stream int num_ac3_streams; } bgav_dvb_channel_info_t; #else typedef struct { int dummy; } #endif char * bgav_dvb_channels_seek(const bgav_options_t * opt, fe_type_t type); bgav_dvb_channel_info_t * bgav_dvb_channels_load(const bgav_options_t * opt, fe_type_t type, int * num, const char * filename); void dvb_channels_destroy(bgav_dvb_channel_info_t *, int num); void dvb_channels_dump(bgav_dvb_channel_info_t *, fe_type_t type, int num); gmerlin-avdecoder-1.2.0~dfsg/include/pngreader.h0000644000000000000000000000304111764363500020407 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ typedef struct bgav_png_reader_s bgav_png_reader_t; bgav_png_reader_t * bgav_png_reader_create(int depth); void bgav_png_reader_destroy(bgav_png_reader_t* png); void bgav_png_reader_reset(bgav_png_reader_t * png); int bgav_png_reader_read_image(bgav_png_reader_t * png, gavl_video_frame_t * frame); int bgav_png_reader_read_header(bgav_png_reader_t * png, uint8_t * buffer, int buffer_size, gavl_video_format_t * format, char ** error_msg); gmerlin-avdecoder-1.2.0~dfsg/include/packettimer.h0000644000000000000000000000231311764363500020751 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ typedef struct bgav_packet_timer_s bgav_packet_timer_t; bgav_packet_timer_t * bgav_packet_timer_create(bgav_stream_t * s); void bgav_packet_timer_destroy(bgav_packet_timer_t *); void bgav_packet_timer_reset(bgav_packet_timer_t *); gmerlin-avdecoder-1.2.0~dfsg/include/dirac_header.h0000644000000000000000000000435411764363500021042 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #define DIRAC_CODE_SEQUENCE 1 #define DIRAC_CODE_PICTURE 2 #define DIRAC_CODE_END 3 #define DIRAC_CODE_ERROR -1 // Lost sync #define DIRAC_CODE_OTHER 0 // Something else /* Bytes needed for gettin the parse info */ #define DIRAC_PARSE_SIZE 9 int bgav_dirac_get_code(uint8_t * data, int len, int * size); typedef struct { int version_major; int version_minor; int profile; int level; int base_video_format; int width; int height; int timescale; int frame_duration; int pixel_width; int pixel_height; /* * If the picture coding mode value is 1 then pictures * shall correspond to fields. If it is 0 then pictures shall * correspond to frames */ int picture_coding_mode; } bgav_dirac_sequence_header_t; int bgav_dirac_sequence_header_parse(bgav_dirac_sequence_header_t *, const uint8_t * buffer, int len); void bgav_dirac_sequence_header_dump(const bgav_dirac_sequence_header_t *); typedef struct { uint32_t pic_num; int num_refs; } bgav_dirac_picture_header_t; int bgav_dirac_picture_header_parse(bgav_dirac_picture_header_t *, const uint8_t * buffer, int len); void bgav_dirac_picture_header_dump(const bgav_dirac_picture_header_t *); gmerlin-avdecoder-1.2.0~dfsg/include/os.h0000644000000000000000000000436111764363500017067 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* Functions which miss on some systems */ #ifndef OS_H #define OS_H #include #ifdef _WIN32 #include //needed for in_addr #endif #ifndef HAVE_CLOSESOCKET #define closesocket(fd) close(fd) #else #endif // HAVE_CLOSESOCKET /* poll */ #ifndef HAVE_POLL typedef unsigned long nfds_t; struct pollfd { int fd; short events; /* events to look for */ short revents; /* events that occured */ }; /* events & revents */ #define POLLIN 0x0001 /* any readable data available */ #define POLLOUT 0x0002 /* file descriptor is writeable */ #define POLLRDNORM POLLIN #define POLLWRNORM POLLOUT #define POLLRDBAND 0x0008 /* priority readable data */ #define POLLWRBAND 0x0010 /* priority data can be written */ #define POLLPRI 0x0020 /* high priority readable data */ /* revents only */ #define POLLERR 0x0004 /* errors pending */ #define POLLHUP 0x0080 /* disconnected */ #define POLLNVAL 0x1000 /* invalid file descriptor */ int bgav_poll(struct pollfd *fds, nfds_t numfds, int timeout); #else #define bgav_poll(fds, numfds, timeout) poll(fds, numfds, timeout) #endif // poll #ifndef HAVE_INET_ATON int bgav_inet_aton(const char *cp, struct in_addr * addr); #else #define bgav_inet_aton(cp, addr) inet_aton(cp, addr) #endif #endif gmerlin-avdecoder-1.2.0~dfsg/include/avdec.h0000644000000000000000000021446111764363500017534 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* Public entry points */ /** * @file avdec.h * external api header. */ #include #include #include #include "bgavdefs.h" // This is ugly, but works #ifdef __cplusplus extern "C" { #endif /** \ingroup edl * \brief Forward declaration */ typedef struct bgav_edl_s bgav_edl_t; /** \defgroup decoding Decoding of multimedia streams * * Setting up a decoder is a multi-step process. It might be a bit complicated, * but it provides support for many different multimedia sources through a single * API. * * First you need to create a decoder instance (see \ref decoder). Then you might want to * change some options and set callbacks (see \ref options). The opening can happen with * different functions (see \ref opening). If you also open URLs, it can happen, that * you opened a redirector (see \ref redirector). * * If you have no redirector, the decoder can have an arbitrary number of tracks. You * can query various informations about the tracks and must select the track you want * (see \ref track). * * Once a track is opened, you must set up the streams (See \ref streams). To tell the decoder, * that you are done, call \ref bgav_start. This will start all codecs. Once the codecs are initialized, * you can get informations about the streams (see \ref stream_info). * Then you are ready to decode media frames (see \ref decode). * In many streams you can also seek (see \ref seeking). * */ /** \defgroup decoder Creating and destroying a decoder * \ingroup decoding */ /*! \ingroup decoder * \brief Opaque decoder structure * * You don't want to know, what's inside here */ typedef struct bgav_s bgav_t; /*! \ingroup decoder * \brief Create a decoder instance * \returns A newly allocated decoder instance */ BGAV_PUBLIC bgav_t * bgav_create(); /** \defgroup options Configuration of a decoder * \ingroup decoding * * These functions are used to configure a decoder and to set callback functions. * After you created a \ref bgav_t object, get it's options * with \ref bgav_get_options. All options are returned in an option container * (\ref bgav_options_t), and the bgav_options_set_* functions allow you * to change single options. * As an alternative, you can create an independent option container with * \ref bgav_options_create, change it as you like and use \ref bgav_options_copy to * copy them to the container you got with \ref bgav_get_options. * * All options become valid with (and should not be changed after) the * call to one of the bgav_open* functions. */ /** \defgroup opening Opening a media stream * \ingroup decoding * \brief Various methods of opening a media stream */ /** \defgroup metadata Metadata */ /** \ingroup metadata * \brief Opaque metadata container * * This structure is returned by \ref bgav_get_metadata */ typedef gavl_metadata_t bgav_metadata_t; /** \ingroup metadata * \brief Get the author (or composer) of the track * \param metadata Metadata container * \returns The author of the track in UTF-8 or NULL */ BGAV_PUBLIC const char * bgav_metadata_get_author(const bgav_metadata_t*metadata); /** \ingroup metadata * \brief Get the title of the track * \param metadata Metadata container * \returns The title of the track in UTF-8 or NULL */ BGAV_PUBLIC const char * bgav_metadata_get_title(const bgav_metadata_t * metadata); /** \ingroup metadata * \brief Get an additional comment of the track * \param metadata Metadata container * \returns The comment in UTF-8 or NULL */ BGAV_PUBLIC const char * bgav_metadata_get_comment(const bgav_metadata_t * metadata); /** \ingroup metadata * \brief Get the copyright notice of the track * \param metadata Metadata container * \returns The copyright notice in UTF-8 or NULL */ BGAV_PUBLIC const char * bgav_metadata_get_copyright(const bgav_metadata_t * metadata); /** \ingroup metadata * \brief Get the album this track comes from * \param metadata Metadata container * \returns The album in UTF-8 or NULL */ BGAV_PUBLIC const char * bgav_metadata_get_album(const bgav_metadata_t * metadata); /** \ingroup metadata * \brief Get the artist (or performer) of this track * \param metadata Metadata container * \returns The artist in UTF-8 or NULL */ BGAV_PUBLIC const char * bgav_metadata_get_artist(const bgav_metadata_t * metadata); /** \ingroup metadata * \brief Get the album artist of this track * \param metadata Metadata container * \returns The album artist in UTF-8 or NULL */ BGAV_PUBLIC const char * bgav_metadata_get_albumartist(const bgav_metadata_t * metadata); /** \ingroup metadata * \brief Get the genre this track belongs to * \param metadata Metadata container * \returns The genre in UTF-8 or NULL */ BGAV_PUBLIC const char * bgav_metadata_get_genre(const bgav_metadata_t * metadata); /** \ingroup metadata * \brief Get the date of the recording * \param metadata Metadata container * \returns The date in UTF-8 or NULL */ BGAV_PUBLIC const char * bgav_metadata_get_date(const bgav_metadata_t * metadata); /** \ingroup metadata * \brief Get the track index * \param metadata Metadata container * \returns The track index or 0 */ BGAV_PUBLIC int bgav_metadata_get_track(const bgav_metadata_t * metadata); /*************************************************** * Housekeeping Functions ***************************************************/ /*************************************************** * Set parameters ***************************************************/ /** \ingroup options * \brief Opaque option container */ typedef struct bgav_options_s bgav_options_t; /** \ingroup options * \brief Get the options of a decoder instance * \returns Options * * Use this to get the options container. You can use the bgav_options_set_* functions * to change the options. Options will become valid when you call one of the * bgav_open*() functions. */ BGAV_PUBLIC bgav_options_t * bgav_get_options(bgav_t * bgav); /** \ingroup options * \brief Create an options container * \returns A newly allocated option container * * This function returns a newly allocated option container * filled with default values. Use this, if you need to store * decoder options independently from decoder instances. * To destroy the container again, use \ref bgav_options_destroy. * * To pass the options to a decoder structure, use \ref bgav_get_options * and \ref bgav_options_copy. * */ BGAV_PUBLIC bgav_options_t * bgav_options_create(); /** \ingroup options * \brief Destroy option cotainer. * \param opt option cotainer * * Use the only to destroy options, you created with \ref bgav_options_create. * Options returned by \ref bgav_get_options are owned by the \ref bgav_t instance, * and must not be freed by you. */ BGAV_PUBLIC void bgav_options_destroy(bgav_options_t * opt); /** \ingroup options * \brief Copy options * \param dst Destination * \param src Source */ BGAV_PUBLIC void bgav_options_copy(bgav_options_t * dst, const bgav_options_t * src); /** \ingroup options * \brief Set connect timeout * \param opt Option container * \param timeout Timeout in milliseconds. * * This timeout will be used until the connection is ready to * receive media data. */ BGAV_PUBLIC void bgav_options_set_connect_timeout(bgav_options_t * opt, int timeout); /** \ingroup options * \brief Set read timeout * \param opt Option container * \param timeout Timeout in milliseconds. * * This timeout will be used during streaming to detect server/connection * failures. */ BGAV_PUBLIC void bgav_options_set_read_timeout(bgav_options_t * opt, int timeout); /** \ingroup options * \brief Set RTP port pase * \param opt Option container * \param p Port base * * Values below and including 1024 enable random * ports. Random ports should be used if you have no or an * RTSP aware firewall. Values above 1024 enable a fixed base port. * For usual videos (one audio- one videostream) you need 4 consecutive * open ports starting with the base port. If your firewall blocks all UDP * traffic, use \ref bgav_options_set_rtp_try_tcp. */ BGAV_PUBLIC void bgav_options_set_rtp_port_base(bgav_options_t * opt, int p); /** \ingroup options * \brief Try TCP before UDP * \param opt Option container * \param enable 1 to try TCP, 0 else * * Use this if your firewall blocks all UDP traffic. Not all servers, * however, support TCP fallback. */ BGAV_PUBLIC void bgav_options_set_rtp_try_tcp(bgav_options_t * opt, int enable); /** \ingroup options * \brief Set network bandwidth * \param opt Option container * \param bandwidth Bandwidth of your internet connection (in bits per second) * * Some network protocols allow * to select among multiple streams according to the speed of the internet connection. */ BGAV_PUBLIC void bgav_options_set_network_bandwidth(bgav_options_t * opt, int bandwidth); /** \ingroup options * \brief Set network buffer size * \param opt Option container * \param size Buffer size in bytes * * Set the size of the network buffer. * \todo Make buffer size depend on the stream bitrate. */ BGAV_PUBLIC void bgav_options_set_network_buffer_size(bgav_options_t * opt, int size); /* HTTP Options */ /** \ingroup options * \brief Set proxy usage * \param opt Option container * \param enable Set 1 of you use a http proxy, 0 else. * * Set usage of a http proxy. If you enable proxies, you must specify the proxy * host with \ref bgav_options_set_http_proxy_host and the proxy port with * \ref bgav_options_set_http_proxy_port. */ BGAV_PUBLIC void bgav_options_set_http_use_proxy(bgav_options_t* opt, int enable); /** \ingroup options * \brief Set proxy host * \param opt Option container * \param host Hostname of the proxy. * * Note that you must enable proxies with \ref bgav_options_set_http_use_proxy before * it's actually used. */ BGAV_PUBLIC void bgav_options_set_http_proxy_host(bgav_options_t* opt, const char * host); /** \ingroup options * \brief Set proxy port * \param opt Option container * \param port Port of the proxy. * * Note that you must enable proxies with \ref bgav_options_set_http_use_proxy before * it's actually used. */ BGAV_PUBLIC void bgav_options_set_http_proxy_port(bgav_options_t* opt, int port); /** \ingroup options * \brief Enable or disable proxy authentication. * \param opt Option container * \param enable Set 1 if your http proxy needs authentication, 0 else. * * If you enable http proxy authentication, you must specify the username * host with \ref bgav_options_set_http_proxy_user and the proxy password with * \ref bgav_options_set_http_proxy_pass. */ BGAV_PUBLIC void bgav_options_set_http_proxy_auth(bgav_options_t* opt, int enable); /** \ingroup options * \brief Set proxy username * \param opt Option container * \param user The username for the proxy. * * Note that you must enable proxy authentication with \ref bgav_options_set_http_proxy_auth. */ BGAV_PUBLIC void bgav_options_set_http_proxy_user(bgav_options_t* opt, const char * user); /** \ingroup options * \brief Set proxy password * \param opt Option container * \param pass The password for the proxy. * * Note that you must enable proxy authentication with \ref bgav_options_set_http_proxy_auth. */ BGAV_PUBLIC void bgav_options_set_http_proxy_pass(bgav_options_t* opt, const char * pass); /** \ingroup options * \brief Enable or disable shoutcast metadata streaming * \param opt Option container * \param enable Set to 1 if the decoder should try to get shoutcast metadata, 0 else * * Normally it's ok to enable shoutcast metadata streaming even if we connect to non-shoutcast servers. */ BGAV_PUBLIC void bgav_options_set_http_shoutcast_metadata(bgav_options_t* opt, int enable); /* Set FTP options */ /** \ingroup options * \brief Enable or disable anonymous ftp login * \param opt Option container * \param enable Set to 1 if the decoder should try log anonymously into ftp servers, 0 else */ BGAV_PUBLIC void bgav_options_set_ftp_anonymous(bgav_options_t* opt, int enable); /** \ingroup options * \brief Set anonymous password * \param opt Option container * \param pass * * Note that you must enable anonymous ftp login with \ref bgav_options_set_ftp_anonymous. */ BGAV_PUBLIC void bgav_options_set_ftp_anonymous_password(bgav_options_t* opt, const char* pass); /** \ingroup options * \brief Set default subtitle encoding * \param opt Option container * \param encoding Encoding * * This sets the default encoding for text subtitles, when the right * encoding is unknown. It must be a character set name recognized by * iconv. Type "iconv -l" at the commandline for a list of supported * encodings). */ BGAV_PUBLIC void bgav_options_set_default_subtitle_encoding(bgav_options_t* opt, const char* encoding); /** \ingroup options * \brief Enable dynamic range control * \param opt Option container * \param audio_dynrange 1 for enabling dynamic range control. * * This enables dynamic range control for codecs, which supports it. * By default dynamic range control is enabled. Use this function to switch it * off for the case, that you have a better dynamic range control in your processing pipe. */ BGAV_PUBLIC void bgav_options_set_audio_dynrange(bgav_options_t* opt, int audio_dynrange); /** \ingroup options * \brief Try to be sample accurate * \param opt Option container * \param enable Specifies how sample accurate mode should be enabled (see below) * * If enable is 0, sample accuracy will never be enabled. If enable is 1, * sample accuracy will always (whenever possible) be enabled. If enable is 2, * sample accuracy will only be enabled, if the file would not be seekable otherwise. * * When switching to sample accurate mode, other demultiplexing * methods are enabled, which might slow things down a bit. */ BGAV_PUBLIC void bgav_options_set_sample_accurate(bgav_options_t*opt, int enable); /** \ingroup options * \brief Set the index creation time for caching * \param opt Option container * \param t Time (in milliseconds) needed for creating the index * * This option controls, which indices are cached, based on the * time needed for creating the index. Indices, whose creation takes * longer than the specified time will be cached. If you set this to * zero, all indices are cached. */ BGAV_PUBLIC void bgav_options_set_cache_time(bgav_options_t*opt, int t); /** \ingroup options * \brief Set the maximum total size of the index cache * \param opt Option container * \param s Maximum size (in megabytes) of the whole cache directory * * If a new index is created and the size becomes larger than * the maximum size, older indices will be deleted. Zero means infinite. */ BGAV_PUBLIC void bgav_options_set_cache_size(bgav_options_t*opt, int s); /** \ingroup options * \brief Enable external subtitle files * \param opt Option container * \param seek_subtitles If 1, subtitle files will be seeked for video files. If 2, subtitles will be seeked for all files. * * If the input is a regular file, gmerlin_avdecoder can scan the * directory for matching subtitle files. For a file movie.mpg, possible * subtitle files are e.g. movie_english.srt, movie_german.srt. The * rule is, that the first part of the filename of the subtitle file * must be equal to the movie filename up to the extension (hiere: .mpg). * Furthermore, the subtitle filename must have an extension supported by * any of the subtitle readers. */ BGAV_PUBLIC void bgav_options_set_seek_subtitles(bgav_options_t* opt, int seek_subtitles); /** \ingroup options * \brief Set postprocessing level * \param opt Option container * \param pp_level Value between 0 (no postprocessing) and 6 (maximum postprocessing) * * Warning: This function is depracated, use \ref bgav_options_set_postprocessing_level * instead. */ BGAV_PUBLIC void bgav_options_set_pp_level(bgav_options_t* opt, int pp_level); /** \ingroup options * \brief Set postprocessing level * \param opt Option container * \param pp_level Value between 0.0 (no postprocessing) and 1.0 (maximum postprocessing) * * Since 1.0.2 */ BGAV_PUBLIC void bgav_options_set_postprocessing_level(bgav_options_t* opt, float pp_level); /** \ingroup options * \brief Set number of threads * \param opt Option container * \param threads Number of threads to use * * Not all codecs support this */ BGAV_PUBLIC void bgav_options_set_threads(bgav_options_t * opt, int threads); /** \ingroup options * \brief Set DVB channels file * \param opt Option container * \param file Name of the channel configurations file * * The channels file must have the format of the dvb-utils * programs (like szap, tzap). If you don't set this file, * several locations like $HOME/.tzap/channels.conf will be * searched. */ BGAV_PUBLIC void bgav_options_set_dvb_channels_file(bgav_options_t* opt, const char * file); /** \ingroup options * \brief Preference of ffmpeg demultiplexers * \param opt Option container * \param prefer 1 to prefer ffmpeg demultiplexers, 0 else * * Usually, native demultiplexers are prefered over the * ffmpeg ones. This function allows you to chnage that. * If gmerlin_avdecoder was compiled without libavformat support, * this function is meaningless. */ BGAV_PUBLIC void bgav_options_set_prefer_ffmpeg_demuxers(bgav_options_t* opt, int prefer); /** \ingroup options * \brief Exports the date and time as timecode field of DV streams * \param opt Option container * \param datetime 1 to export date and time as timecodes, 0 else */ BGAV_PUBLIC void bgav_options_set_dv_datetime(bgav_options_t* opt, int datetime); /** \ingroup options * \brief Shrink factor * \param opt Option container * \param factor Exponent of the shrink factor * * This enables downscaling of images while decoding. * Currently only supported for JPEG-2000. */ BGAV_PUBLIC void bgav_options_set_shrink(bgav_options_t* opt, int factor); /** \ingroup options * \brief VDPAU acceleration * \param opt Option container * \param vdpau 1 to enable vdpau, 0 else * * Since 1.0.2 */ BGAV_PUBLIC void bgav_options_set_vdpau(bgav_options_t* opt, int vdpau); /** \ingroup options * \brief Dump file headers * \param opt Option container * \param enable 1 to dump file headers, 0 else * * Since 1.1.1 */ BGAV_PUBLIC void bgav_options_set_dump_headers(bgav_options_t* opt, int enable); /** \ingroup options * \brief Dump file indices * \param opt Option container * \param enable 1 to dump file indices, 0 else * * Since 1.1.1 */ BGAV_PUBLIC void bgav_options_set_dump_indices(bgav_options_t* opt, int enable); /** \ingroup options * \brief Enumeration for log levels * * These will be called from within log callbacks */ typedef enum { BGAV_LOG_DEBUG = (1<<0), BGAV_LOG_WARNING = (1<<1), BGAV_LOG_ERROR = (1<<2), BGAV_LOG_INFO = (1<<3) } bgav_log_level_t; /** \ingroup options * \brief Function to be called for loggins messages * \param data The data you passed to \ref bgav_options_set_log_callback. * \param level The log level * \param log_domain A string describing the module from which the message comes * \param message The message itself */ typedef void (*bgav_log_callback)(void*data, bgav_log_level_t level, const char * log_domain, const char * message); /** \ingroup options * \brief Set the callback for log messages * \param opt Option container * \param callback The callback * \param data Some data you want to get passed to the callback */ BGAV_PUBLIC void bgav_options_set_log_callback(bgav_options_t* opt, bgav_log_callback callback, void * data); /** \ingroup options * \brief Set the verbosity for log messages * \param opt Option container * \param level ORed flags of type bgav_log_level_t * * Since 1.1.0 */ BGAV_PUBLIC void bgav_options_set_log_level(bgav_options_t* opt, int level); /* Set callbacks */ /** \ingroup options * \brief Function to be called if the track name changes * \param data The data you passed to \ref bgav_options_set_name_change_callback. * \param name The new name of the track * * This function will be called whenever the name of the track changed. Such changes * can have different reasons, the most obvious one is a song change in a webradio stream. */ typedef void (*bgav_name_change_callback)(void*data, const char * name); /** \ingroup options * \brief Set the callback for name change events * \param opt Option container * \param callback The callback * \param data Some data you want to get passed to the callback */ BGAV_PUBLIC void bgav_options_set_name_change_callback(bgav_options_t* opt, bgav_name_change_callback callback, void * data); /** \ingroup options * \brief Function to be called if the metadata change * \param data The data you passed to \ref bgav_options_set_metadata_change_callback. * \param metadata The new metadata of the track * * This function will be called whenever the metadata of the track changed. Such changes * can have different reasons, the most obvious one is a song change in a webradio stream. */ typedef void (*bgav_metadata_change_callback)(void*data, const bgav_metadata_t * metadata); /** \ingroup options * \brief Set the callback for metadata change events * \param opt Option container * \param callback The callback * \param data Some data you want to get passed to the callback */ BGAV_PUBLIC void bgav_options_set_metadata_change_callback(bgav_options_t* opt, bgav_metadata_change_callback callback, void * data); /** \ingroup options * \brief Function to be called if the input module is buffering data * \param data The data you passed to \ref bgav_options_set_buffer_callback. * \param percentage The percentage done so far (0.0 .. 1.0) * * This function will be called when the input module fills a buffer. * It is called multiple times with increasing percentage. */ typedef void (*bgav_buffer_callback)(void*data, float percentage); /** \ingroup options * \brief Set the callback for buffering notification * \param opt Option container * \param callback The callback * \param data Some data you want to get passed to the callback */ BGAV_PUBLIC void bgav_options_set_buffer_callback(bgav_options_t* opt, bgav_buffer_callback callback, void * data); /** \ingroup options * \brief Function to be called if the input module needs authentication data * \param data The data you passed to \ref bgav_options_set_user_pass_callback. * \param resource A string describing the resource (e.g. the hostname of the server) * \param username Returns the username. * \param password Returns the password. * \returns 1 of the username and password are valid, 0 if the user cancelled the authentication. * * This is called during one of the bgav_open* calls. */ typedef int (*bgav_user_pass_callback)(void*data, const char * resource, char ** username, char ** password); /** \ingroup options * \brief Set the callback for user authentication * \param opt Option container * \param callback The callback * \param data Some data you want to get passed to the callback * * Note that there is no default authentication built into the library. * Therefore you MUST set a callback, otherwise urls which require the user to * enter authentication data, cannot be openend. */ BGAV_PUBLIC void bgav_options_set_user_pass_callback(bgav_options_t* opt, bgav_user_pass_callback callback, void * data); /** \ingroup options * \brief Function to be called if a change of the aspect ratio was detected * \param data The data you passed to \ref bgav_options_set_aspect_callback. * \param stream Index of the video stream (starts with 0) * \param pixel_width New pixel width * \param pixel_height New pixel height * * This is called during \ref bgav_read_video. */ typedef void (*bgav_aspect_callback)(void*data, int stream, int pixel_width, int pixel_height); /** \ingroup options * \brief Set aspect ratio change callback * \param opt Option container * \param callback The callback * \param data Some data you want to get passed to the callback */ BGAV_PUBLIC void bgav_options_set_aspect_callback(bgav_options_t* opt, bgav_aspect_callback callback, void * data); /** \ingroup options * \brief Function to be called periodically while an index is built * \param data The data you passed to \ref bgav_options_set_index_callback. * \param perc Percentage completed to far * */ typedef void (*bgav_index_callback)(void*data, float percentage); /** \ingroup options * \brief Set index build callback * \param opt Option container * \param callback The callback * \param data Some data you want to get passed to the callback */ BGAV_PUBLIC void bgav_options_set_index_callback(bgav_options_t* opt, bgav_index_callback callback, void * data); /* Device description */ /** \defgroup devices Device description * \brief Device description * * The input modules, which access special hardware devices (e.g. CD drives), * have autoscanning functionality built in. You can call one of the bgav_find_devices_* functions * to get a list of supported devices (see \ref bgav_device_info_t). The created list must be * freed with \ref bgav_device_info_destroy when it's no longer used. */ /** \ingroup devices * \brief Info structure for a device. * * This contains information about a device: The device node name (which can be passed to * the bgav_open_* function) and, if available, a human readable description. The last element * in the array has the device string set to NULL and terminates the array. */ typedef struct { char * device; /*!< Can be passed to the bgav_open_*() function */ char * name; /*!< Device name, might be NULL */ } bgav_device_info_t; /* Scan for devices */ /** \ingroup devices * \brief Scan for VCD capable devices * \returns A \ref bgav_device_info_t array or NULL * * Free the returned array with \ref bgav_device_info_destroy */ BGAV_PUBLIC bgav_device_info_t * bgav_find_devices_vcd(); /** \ingroup devices * \brief Test if a device is VCD capable * \param device The device node name * \param name Returns a human readable decription in a newly allocated string or NULL * \returns 1 if the device can play VCDs, 0 else. */ BGAV_PUBLIC int bgav_check_device_vcd(const char * device, char ** name); /** \ingroup devices * \brief Scan for DVD capable devices * \returns A \ref bgav_device_info_t array or NULL * * Free the returned array with \ref bgav_device_info_destroy */ BGAV_PUBLIC bgav_device_info_t * bgav_find_devices_dvd(); /** \ingroup devices * \brief Test if a device is DVD capable * \param device The device node name * \param name Returns a human readable decription in a newly allocated string or NULL * \returns 1 if the device can play DVDs, 0 else. */ BGAV_PUBLIC int bgav_check_device_dvd(const char * device, char ** name); /** \ingroup devices * \brief Scan for DVB capable devices * \returns A \ref bgav_device_info_t array or NULL * * Free the returned array with \ref bgav_device_info_destroy */ BGAV_PUBLIC bgav_device_info_t * bgav_find_devices_dvb(); /** \ingroup devices * \brief Test if a device is DVB capable * \param device The directory (e.g. /dev/dvb/adaptor0) * \param name Returns a human readable decription in a newly allocated string or NULL * \returns 1 if the device is ready to receive DVB streams, 0 else. */ BGAV_PUBLIC int bgav_check_device_dvb(const char * device, char ** name); /** \ingroup devices * \brief Destroy a device info array * \param arr A device info returned by \ref bgav_find_devices_dvd, \ref bgav_find_devices_dvb or \ref bgav_find_devices_dvd */ BGAV_PUBLIC void bgav_device_info_destroy(bgav_device_info_t * arr); /** \ingroup devices * \brief Eject a disc * \param device Device name * \return 1 if the disc could be ejected, 0 else */ BGAV_PUBLIC int bgav_eject_disc(const char * device); /** \ingroup devices * \brief Get the name of a disc * \param bgav A decoder instance * \return The name of the disc, or NULL if it's not known or irrelevant */ BGAV_PUBLIC const char * bgav_get_disc_name(bgav_t * bgav); /****************************************************** * Open ******************************************************/ /* Open a file or URL, return 1 on success */ /** \ingroup opening * \brief Open a file or URL * \param bgav A decoder instance * \param location The URL or path to open * \returns 1 if the location was successfully openend, 0 else. */ BGAV_PUBLIC int bgav_open(bgav_t * bgav, const char * location); /** \ingroup opening * \brief Open a VCD device * \param bgav A decoder instance * \param location The device node * \returns 1 if the VCD device was successfully openend, 0 else. */ BGAV_PUBLIC int bgav_open_vcd(bgav_t * bgav, const char * location); /** \ingroup opening * \brief Open a DVD device * \param bgav A decoder instance * \param location The device node * \returns 1 if the DVD device was successfully openend, 0 else. */ BGAV_PUBLIC int bgav_open_dvd(bgav_t * bgav, const char * location); /** \ingroup opening * \brief Open a DVB device * \param bgav A decoder instance * \param location The device directory * \returns 1 if the DVB device was successfully openend, 0 else. * * This function will search your system for channel configuration files, * which are created by other tools. The channels are then available as * normal tracks. */ BGAV_PUBLIC int bgav_open_dvb(bgav_t * bgav, const char * location); /** \ingroup opening * \brief Open a decoder from a filedescriptor * \param bgav A decoder instance * \param fd The filedescriptor * \param total_size The total number of available bytes or 0 if this info is not known. * \param mimetype The mimetype of the input or NULL if this info is not known. * \returns 1 if the filedescriptor was successfully openend, 0 else. */ BGAV_PUBLIC int bgav_open_fd(bgav_t * bgav, int fd, int64_t total_size, const char * mimetype); /** \ingroup opening * \brief Open a decoder with callbacks * \param bgav A decoder instance * \param read_callback Callback for reading data * \param seek_callback Callback for seeking * \param priv Private argument for the callbacks * \param filename The filename of the input or NULL if this info is not known. * \param mimetype The mimetype of the input or NULL if this info is not known. * \param total_bytes File size in bytes or 0 if this info is not known. * \returns 1 on success, 0 else. */ BGAV_PUBLIC int bgav_open_callbacks(bgav_t * bgav, int (*read_callback)(void * priv, uint8_t * data, int len), int64_t (*seek_callback)(void * priv, uint64_t pos, int whence), void * priv, const char * filename, const char * mimetype, int64_t total_bytes); /* Close and destroy everything */ /** \ingroup decoder * \brief Close a decoder and free all associated memory * \param bgav A decoder instance */ BGAV_PUBLIC void bgav_close(bgav_t * bgav); /** \defgroup edl EDL support * \ingroup decoding * \brief EDL support * * Most media files contain one or more A/V streams. In addition however, there * can be additional instructions, how the media should be played back. Basically * you can have "logical" streams, where the EDL tells how they are composed from * phyiscal streams. * * To use EDLs with Gmerlin-avdecoder, call \ref bgav_get_edl, make a local copy of * the EDL structure and call \ref bgav_close. * * Some files contain only the EDL (with external references) but no actual media * streams. In this case, \ref bgav_num_tracks will return 0. * * Gmerlin-avdecoder has no means of composing the logical EDL tracks from physical * files. The Gmerlin library has an edl decoder plugin. * * @{ */ /** \brief One segment of a physical stream to appear in a logical stream */ typedef struct { char * url; //!< Location of that segment. If NULL, the "master url" in \ref bgav_edl_t is valid. int track; //!< Track index for multitrack inputs int stream; //!< Index of the A/V stream int timescale; //!< Source timescale int64_t src_time; //!< Time within the source in source timescale /* Time and duration within the destination in destination timescale */ int64_t dst_time; //!< Time within the destination in destination timescale int64_t dst_duration; //!< Duration within the destination in destination timescale /* */ int32_t speed_num; //!< Playback speed numerator int32_t speed_den; //!< Playback speed demoninator } bgav_edl_segment_t; /** \brief A locical stream */ typedef struct { bgav_edl_segment_t * segments; //!< Segments int num_segments; //!< Number of segments int timescale; //!< Destination timescale } bgav_edl_stream_t; /** \brief A locical track */ typedef struct { char * name; //!< Name (optional) bgav_metadata_t * metadata; //!< Metadata (optional) int num_audio_streams; //!< Number of logical audio streams bgav_edl_stream_t * audio_streams; //!< Logical audio streams int num_video_streams; //!< Number of logical video streams bgav_edl_stream_t * video_streams; //!< Logical video streams int num_subtitle_text_streams; //!< Number of logical text subtitle streams bgav_edl_stream_t * subtitle_text_streams; //!< Logical text subtitle streams int num_subtitle_overlay_streams; //!< Number of logical overlay subtitle streams bgav_edl_stream_t * subtitle_overlay_streams; //!< Logical overlay subtitle streams } bgav_edl_track_t; /** \brief EDL structure */ struct bgav_edl_s { int num_tracks; //!< Number of logical tracks bgav_edl_track_t * tracks; //!< Logical tracks char * url; //!< Filename if all streams are from the same file }; /** \ingroup edl * \brief Get an EDL from an open decoder * \param bgav A decoder instance * \returns The edl or NULL */ BGAV_PUBLIC bgav_edl_t * bgav_get_edl(bgav_t * bgav); /** \brief Dump an EDL to stderr * \param e EDL */ BGAV_PUBLIC void bgav_edl_dump(const bgav_edl_t * e); /** * @} */ /*************************************************** * Check for redirecting: You MUST check if you opened * a redirector, because reading data from redirectors * crashes * After you read the URLs, close the bgav_t object * and open a new one with one of the URLs. ***************************************************/ /** \defgroup redirector Redirector support * \ingroup decoding * \brief Redirector support * * After opening the decoder with \ref bgav_open, you must check if the * opened stream is actually a redirector with \ref bgav_is_redirector. * If this returns 1, get the number of urls with \ref bgav_redirector_get_num_urls. * Then, for each URL, get the address with \ref bgav_redirector_get_url and the * title of the URL with \ref bgav_redirector_get_name. * After you have this info, close and destroy the decoder with \ref bgav_close and * open a newly created decoder with one of the URLs you got. */ /** \ingroup redirector * \brief Query if the decoder opened a redirector * \param bgav A decoder instance * \returns 1 if the decoder opened a redirector, 0 else * * This function MUST be called after \ref bgav_open to query if we * openend a redirector. */ BGAV_PUBLIC int bgav_is_redirector(bgav_t * bgav); /** \ingroup redirector * \brief Get the number of URLs found in the redirector * \param bgav A decoder instance * \returns The number of URLs. */ BGAV_PUBLIC int bgav_redirector_get_num_urls(bgav_t * bgav); /** \ingroup redirector * \brief Get the address of an URL * \param bgav A decoder instance * \param index Index of the url (starting with 0) * \returns The URL (can be passed to a subsequent \ref bgav_open) */ BGAV_PUBLIC const char * bgav_redirector_get_url(bgav_t * bgav, int index); /** \ingroup redirector * \brief Get the address of an URL * \param bgav A decoder instance * \param index Index of the url (starting with 0) * \returns The name of the stream or NULL if this information is not present. */ BGAV_PUBLIC const char * bgav_redirector_get_name(bgav_t * bgav, int index); /*************************************************** * Get information about the file ***************************************************/ /** \defgroup track Query and select tracks * \ingroup decoding * * Each opened decoder can have multiple tracks. You must select the track you wish to decode before * you can do anything else. */ /** \ingroup track * \brief Get the number of tracks * \param bgav A decoder instance * \returns The number of tracks. */ BGAV_PUBLIC int bgav_num_tracks(bgav_t * bgav); /** \ingroup track * \brief Get a technical description of the format * \param bgav A decoder instance * \returns Description */ BGAV_PUBLIC const char * bgav_get_description(bgav_t * bgav); /** \ingroup track * \brief Get the duration of a track * \param bgav A decoder instance * \param track Track index (starting with 0) * \returns The duration of a track or \ref GAVL_TIME_UNDEFINED if the duration is not known. */ BGAV_PUBLIC gavl_time_t bgav_get_duration(bgav_t * bgav, int track); /* Query stream numbers */ /** \ingroup track * \brief Get the number of audio streams of a track * \param bgav A decoder instance * \param track Track index (starting with 0) * \returns The number of audio streams */ BGAV_PUBLIC int bgav_num_audio_streams(bgav_t * bgav, int track); /** \ingroup track * \brief Get the number of video streams of a track * \param bgav A decoder instance * \param track Track index (starting with 0) * \returns The number of video streams */ BGAV_PUBLIC int bgav_num_video_streams(bgav_t * bgav, int track); /** \ingroup track * \brief Get the number of subtitle streams of a track * \param bgav A decoder instance * \param track Track index (starting with 0) * \returns The number of subtitle streams */ BGAV_PUBLIC int bgav_num_subtitle_streams(bgav_t * bgav, int track); /** \ingroup track * \brief Get the name a track * \param bgav A decoder instance * \param track Track index (starting with 0) * \returns The track name if present or NULL. */ BGAV_PUBLIC const char * bgav_get_track_name(bgav_t * bgav, int track); /** \ingroup track * \brief Get metadata for a track. * \param bgav A decoder instance * \param track Track index (starts with 0) * \returns A metadata container (see \ref metadata) */ BGAV_PUBLIC const bgav_metadata_t * bgav_get_metadata(bgav_t * bgav,int track); /** \ingroup track * \brief Select a track * \param bgav A decoder instance * \param track Track index (starts with 0) * \returns 0 if there was no such track, 1 else * * Select the track. All subsequent function calls will refer to the track you * selected. */ BGAV_PUBLIC int bgav_select_track(bgav_t * bgav, int track); /** \ingroup track * \brief Get the number of chapters * \param bgav A decoder instance * \param track Track index (starts with 0) * \param timescale Returns the timescale of the seekpoints * \returns The number of chapters or 0 if the format doesn't support chapters * * Chapters are simply named seekpoints. Use * \ref bgav_get_chapter_time and \ref bgav_get_chapter_name * to query the chapters. */ BGAV_PUBLIC int bgav_get_num_chapters(bgav_t * bgav, int track, int * timescale); /** \ingroup track * \brief Get the name of a chapter * \param bgav A decoder instance * \param track Track index (starts with 0) * \param chapter Chapter index (starts with 0) * \returns The name of the chapter or NULL */ BGAV_PUBLIC const char * bgav_get_chapter_name(bgav_t * bgav, int track, int chapter); /** \ingroup track * \brief Get the name of a chapter * \param bgav A decoder instance * \param track Track index (starts with 0) * \param chapter Chapter index (starts with 0) * \returns The time of the chapter */ BGAV_PUBLIC int64_t bgav_get_chapter_time(bgav_t * bgav, int track, int chapter); /** \defgroup streams Query and select streams * \ingroup decoding * * The numbers of streams are already known before selecting a track (see \ref bgav_num_audio_streams and * \ref bgav_num_video_streams. Note that by default, all streams are muted, which means that you cannot * skip the stream selection in your application. */ /** \ingroup streams * \brief Get the language of an audio stream * \param bgav A decoder instance * \param stream Audio stream index (starting with 0) * \returns A language string. */ BGAV_PUBLIC const char * bgav_get_audio_language(bgav_t * bgav, int stream); /** \ingroup streams * \brief Get the bitrate of an audio stream * \param bgav A decoder instance * \param stream Audio stream index (starting with 0) * \returns Bitrate in bits / sec. 0 means VBR or unknown */ BGAV_PUBLIC int bgav_get_audio_bitrate(bgav_t * bgav, int stream); /** \ingroup streams * \brief Get the metadata of an audio stream * \param bgav A decoder instance * \param stream Audio stream index (starting with 0) * \returns The metadata for the stream */ BGAV_PUBLIC const bgav_metadata_t * bgav_get_audio_metadata(bgav_t * bgav, int stream); /** \ingroup streams * \brief Get the language of a subtitle stream * \param bgav A decoder instance * \param stream Subtitle stream index (starting with 0) * \returns A language string. */ BGAV_PUBLIC const char * bgav_get_subtitle_language(bgav_t * bgav, int stream); /** \ingroup streams * \brief Get the metadata of a subtitle stream * \param bgav A decoder instance * \param stream Subtitle stream index (starting with 0) * \returns The metadata for the stream */ BGAV_PUBLIC const bgav_metadata_t * bgav_get_subtitle_metadata(bgav_t * bgav, int stream); /** \ingroup streams * \brief Get the metadata of a video stream * \param bgav A decoder instance * \param stream Video stream index (starting with 0) * \returns The metadata for the stream */ BGAV_PUBLIC const bgav_metadata_t * bgav_get_video_metadata(bgav_t * bgav, int stream); /** \ingroup streams * \brief Stream action * * This is used to tell the decoder, what to do with the stream. * Only supported actions right now are mute (default) and decode. */ typedef enum { BGAV_STREAM_MUTE = 0, /*!< Stream is switched off */ BGAV_STREAM_DECODE = 1, /*!< Stream is switched on and will be decoded */ BGAV_STREAM_PARSE = 2, /*!< Used internally when building indices */ BGAV_STREAM_READRAW = 3 /*!< Read compressed packets from the stream */ } bgav_stream_action_t; /** \defgroup readraw Read compressed media packets * \ingroup decoding * * This API layer allows you to read compressed media packets from the * stream bypassing the codecs. You can read some streams of a file * as compressed packets while decoding others. You can however not * mix read calls for compressed packets and decompressed frames in a * single stream. Reading compressed packets is supported only for a * subset of codecs, which are defined by the \ref gavl_codec_id_t. * If your application supports compressed packets, you can first get the * compression info with \ref bgav_get_audio_compression_info or * \ref bgav_get_video_compression_info. If you support this compression, * set the stream mode to \ref BGAV_STREAM_READRAW. Before reading you must * call \ref bgav_start. Packets are then read with \ref bgav_read_audio_packet * and \ref bgav_read_video_packet. */ /** \ingroup readraw * \brief Get audio compression info * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \param info Returns the compression info * \returns 1 if a compression info was returned, 0 else * * This function must be called after \ref bgav_select_track. Before * selecting the track the compression info might not be complete. * Free the returned compression info with \ref gavl_compression_info_free. */ BGAV_PUBLIC int bgav_get_audio_compression_info(bgav_t * bgav, int stream, gavl_compression_info_t * info); /** \ingroup readraw * \brief Get video compression info * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \param info Returns the compression info * \returns 1 if a compression info was returned, 0 else * * This function must be called after \ref bgav_select_track. Before * selecting the track the compression info might not be complete. * Free the returned compression info with \ref gavl_compression_info_free. */ BGAV_PUBLIC int bgav_get_video_compression_info(bgav_t * bgav, int stream, gavl_compression_info_t * info); /** \ingroup readraw * \brief Read compressed audio packet * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \param p Returns the packet * \returns 1 if a packet was read, 0 else * * You can pass the same packet multiple times to a read fuction. * Use \ref gavl_packet_free when it's no longer used. */ BGAV_PUBLIC int bgav_read_audio_packet(bgav_t * bgav, int stream, gavl_packet_t * p); /** \ingroup readraw * \brief Read compressed video packet * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \param p Returns the packet * \returns 1 if a packet was read, 0 else * * You can pass the same packet multiple times to a read fuction. * Use \ref gavl_packet_free when it's no longer used. */ BGAV_PUBLIC int bgav_read_video_packet(bgav_t * bgav, int stream, gavl_packet_t * p); /** \ingroup streams * \brief Select mode for an audio stream * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \param action The stream action. * * Note that the default stream action is BGAV_STREAM_MUTE, which means that * all streams are switched off by default. */ BGAV_PUBLIC int bgav_set_audio_stream(bgav_t * bgav, int stream, bgav_stream_action_t action); /** \ingroup streams * \brief Select mode for a video stream * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \param action The stream action. * * Note that the default stream action is BGAV_STREAM_MUTE, which means that * all streams are switched off by default. */ BGAV_PUBLIC int bgav_set_video_stream(bgav_t * bgav, int stream, bgav_stream_action_t action); /** \ingroup streams * \brief Select mode for a subtitle stream * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \param action The stream action. * * Note that the default stream action is BGAV_STREAM_MUTE, which means that * all streams are switched off by default. */ BGAV_PUBLIC int bgav_set_subtitle_stream(bgav_t * bgav, int stream, bgav_stream_action_t action); /*************************************************** * Stream handling functions ***************************************************/ /* * You MUST these, if you want to decode anything. * After bgav_open(), all streams are switched off by * default */ /** \defgroup start Start codecs * \ingroup decoding */ /** \ingroup start * \brief Start all codecs. * \param bgav A decoder instance * \returns 1 if everything went well, 0 if an error occurred. * * Call this function, after you called \ref bgav_set_audio_stream * and/or \ref bgav_set_video_stream. */ BGAV_PUBLIC int bgav_start(bgav_t * bgav); /** \defgroup stream_info Information about the streams \ingroup decoding */ /** \ingroup stream_info * \brief Get the format of an audio stream * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \returns The format * * Note, that you can trust the return value of this function only, if you enabled * the stream (see \ref bgav_set_audio_stream) and started the decoders * (see \ref bgav_start). */ BGAV_PUBLIC const gavl_audio_format_t * bgav_get_audio_format(bgav_t * bgav, int stream); /** \ingroup stream_info * \brief Get the format of a video stream * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \returns The format * * Note, that you can trust the return value of this function only, if * you enabled the stream (see \ref bgav_set_video_stream) and started * the decoders (see \ref bgav_start). * * Special care has to be taken, if the video stream consists of (a) * still image(s). This is the case, when the framerate_mode member * of the format is \ref GAVL_FRAMERATE_STILL. See * \ref bgav_video_has_still. */ BGAV_PUBLIC const gavl_video_format_t * bgav_get_video_format(bgav_t * bgav, int stream); /** \ingroup stream_info * \brief Get the frame table of a video stream * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \returns The frame table or NULL * * Note, that you can trust the return value of this function only, if * you enabled the stream (see \ref bgav_set_video_stream) and started * the decoders (see \ref bgav_start). * * If you want to make sure that the frame table is available for * as many files as possible, use sample accurate mode (see * \ref bgav_options_set_sample_accurate) * The returned table (if non-null) must be freed by the caller with * \ref gavl_frame_table_destroy. * * Since 1.0.2 */ BGAV_PUBLIC gavl_frame_table_t * bgav_get_frame_table(bgav_t * bgav, int stream); /** \ingroup stream_info * \brief Get the video format of a subtitle stream * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \returns The format * * Note, that you can trust the return value of this function only, if you enabled * the stream (see \ref bgav_set_subtitle_stream) and started the decoders * (see \ref bgav_start). For overlay subtitles, this is the video format * of the decoded overlays. * For text subtitles, it's the format of the associated video stream. * The timescale member is always the timescale of the subtitles (not the * video frames). */ BGAV_PUBLIC const gavl_video_format_t * bgav_get_subtitle_format(bgav_t * bgav, int stream); /** \ingroup stream_info * \brief Check if a subtitle is text or graphics based * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \returns 1 for text subtitles, 0 for graphic subtitles * * If this function returns 1, you must use \ref bgav_read_subtitle_text * to decode subtitles, else use \ref bgav_read_subtitle_overlay */ BGAV_PUBLIC int bgav_subtitle_is_text(bgav_t * bgav, int stream); /** \ingroup stream_info * \brief Get the description of an audio stream * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \returns A technical decription of the stream * * Note, that you can trust the return value of this function only, if you enabled * the stream (see \ref bgav_set_audio_stream) and started the decoders * (see \ref bgav_start). */ BGAV_PUBLIC const char * bgav_get_audio_description(bgav_t * bgav, int stream); /** \ingroup stream_info * \brief Get additional info about an audio stream * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \returns An info string about the stream or NULL * * This returns additional information about the audio stream e.g. if it contains * directors comments, audio for the visually impaired or whatever. * * Note, that you can trust the return value of this function only, if you enabled * the stream (see \ref bgav_set_audio_stream) and started the decoders * (see \ref bgav_start). */ BGAV_PUBLIC const char * bgav_get_audio_info(bgav_t * bgav, int stream); /** \ingroup stream_info * \brief Get the description of a video stream * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \returns A technical decription of the stream * * Note, that you can trust the return value of this function only, if you enabled * the stream (see \ref bgav_set_video_stream) and started the decoders * (see \ref bgav_start). */ BGAV_PUBLIC const char * bgav_get_video_description(bgav_t * bgav, int stream); /** \ingroup stream_info * \brief Get the description of a subtitle stream * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \returns A technical decription of the stream * * Note, that you can trust the return value of this function only, if you enabled * the stream (see \ref bgav_set_subtitle_stream) and started the decoders * (see \ref bgav_start). */ BGAV_PUBLIC const char * bgav_get_subtitle_description(bgav_t * bgav, int stream); /** \ingroup stream_info * \brief Get additional info about a subtitle stream * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \returns An info string about the stream or NULL * * This returns additional information about the subtitle stream e.g. if it contains * directors comments or whatever. * * Note, that you can trust the return value of this function only, if you enabled * the stream (see \ref bgav_set_subtitle_stream) and started the decoders * (see \ref bgav_start). */ BGAV_PUBLIC const char * bgav_get_subtitle_info(bgav_t * bgav, int stream); /** \ingroup stream_info * \brief Query if a track is pausable * \param bgav A decoder instance * \returns 1 is decoding can be paused for a longer time, 0 else * * Check this if you intend to pause decoding. Pausing a livestream * doesn't make sense, so in this case 0 is returned. */ BGAV_PUBLIC int bgav_can_pause(bgav_t * bgav); /*************************************************** * Decoding functions ***************************************************/ /** \defgroup decode Decode media frames * \ingroup decoding */ /** \ingroup decode * \brief Determine if a still image is available for reading * \param bgav A decoder instance * \param stream Stream index (starting with 0) * \returns 1 if a still image is available, 0 else * * This should be used, if the framerate_mode of the video format * is \ref GAVL_FRAMERATE_STILL. In earlier versions, streams * consisting of one or more still images outputted the same image * repeatedly as if it was a video stream. Since 1.0.1 each image * is decoded exactly once. The end-of-file detection happens in a * similar way as for subtitles: \ref bgav_video_has_still returns * 1 and the following \ref bgav_read_video returns 0. * * Since 1.0.1 */ BGAV_PUBLIC int bgav_video_has_still(bgav_t * bgav, int stream); /** \ingroup decode \brief Decode a video frame \param bgav A decoder instance \param frame The frame to which the image will be decoded. \param stream Stream index (starting with 0) \returns 1 if a frame could be decoded, 0 for EOF. */ BGAV_PUBLIC int bgav_read_video(bgav_t * bgav, gavl_video_frame_t * frame, int stream); /** \ingroup decode \brief Skip forward in a video stream \param bgav A decoder instance \param stream Stream index (starting with 0) \param time The time to skip to (will be changed to the true time) \param scale Scale by which the time is scaled \param exact 1 if an exact skip should be done, 0 for faster approximate skip Use this function if it turns out, that the machine is too weak to decode all frames. Set exact to 0 to make the skipping even faster but less accurate. */ BGAV_PUBLIC void bgav_skip_video(bgav_t * bgav, int stream, int64_t * time, int scale, int exact); /** \ingroup decode \brief Decode audio samples \param bgav A decoder instance \param frame The frame to which the samples will be decoded. \param stream Stream index (starting with 0) \param num_samples Number of samples to be decoded \returns The number of actually decoded samples, which can be smaller than num_samples. 0 means EOF. */ BGAV_PUBLIC int bgav_read_audio(bgav_t * bgav, gavl_audio_frame_t * frame, int stream, int num_samples); /** \ingroup decode \brief Check, if a new subtitle is available \param bgav A decoder instance \param stream Stream index (starting with 0) \returns 1 if a subtitle is available. Use this function to check in advance, if it would make sense to call \ref bgav_read_subtitle_overlay or \ref bgav_read_subtitle_text. */ BGAV_PUBLIC int bgav_has_subtitle(bgav_t * bgav, int stream); /** \ingroup decode \brief Decode an overlay subtitle \param bgav A decoder instance \param ovl The overlay to which the subtitle will be decoded. \param stream Stream index (starting with 0) \returns 1 if a subtitle could be decoded, 0 else If this function returns 1, a subtitle was decoded. If this function returns 0 and \ref bgav_has_subtitle returned 0 before as well, there is no subtitle yet available, but there might come others at a later point in the stream. If this function returns 0 and \ref bgav_has_subtitle returned 1 before, it means, that you reached the end of the subtitle stream. */ BGAV_PUBLIC int bgav_read_subtitle_overlay(bgav_t * bgav, gavl_overlay_t * ovl, int stream); /** \ingroup decode \brief Decode a text subtitle \param bgav A decoder instance \param ret The string, where the text will be stored. \param ret_alloc The number of allocated bytes for ret \param start_time Returns the start time \param duration Returns the duration \param stream Stream index (starting with 0) \returns 1 if a subtitle could be decoded, 0 else If this function returns 1, a subtitle was decoded. If this function returns 0 and \ref bgav_has_subtitle returned 0 before as well, there is no subtitle yet available, but there might come others at a later point in the stream. If this function returns 0 and \ref bgav_has_subtitle returned 1 before, it means, that you reached the end of the subtitle stream. start_time and duration are scaled by the timescale of the subtitle stream (see \ref bgav_get_subtitle_format). */ BGAV_PUBLIC int bgav_read_subtitle_text(bgav_t * bgav, char ** ret, int *ret_alloc, int64_t * start_time, int64_t * duration, int stream); /*************************************************** * Seek to a timestamp. This also resyncs all streams ***************************************************/ /** \defgroup seeking Simple seek API * \ingroup decoding * * gmerlin_avdecoder supports multiple demultiplexing modes, some * are optimized for linear playback, some are optimized for sample * accurate random access. By default, the demuxer will be in linear * playback mode. The associated seek API is described in this section. */ /** \defgroup sampleseek Sample accurate seek API * \ingroup decoding * * This mode is optimized for sample accurate access. To use this * API, you must call \ref bgav_options_set_sample_accurate before * opening the file. After you opened the file and selected the track, * you must verify, that sample accurate access is available by checking * the return value of \ref bgav_can_seek_sample. * * Sample accurate mode has a little more overhead on the demultiplexer side. * Therefore you should not enable it when not needed. * Some formats don't allow sample accurate access, other formats are *only* * seekable in sample accurate mode. For formats, which need to be parsed completely, * index files are written to $HOME/.gmerlin-avdecoder/indices. Filenames of the * indices are the MD5 sums of the filename passed to \ref bgav_open. * * Sample accurate mode also implies, that all streams can be positioned * independently. */ /** \ingroup seeking * \brief Check if a track is seekabkle * \param bgav A decoder handle * \returns 1 if the track is seekable, 0 else. */ BGAV_PUBLIC int bgav_can_seek(bgav_t * bgav); /** \ingroup seeking * \brief Seek to a specific time * \param bgav A decoder handle * \param time The time to seek to. * * The time argument is changed to the actually seeked time, which can be different. */ BGAV_PUBLIC void bgav_seek(bgav_t * bgav, gavl_time_t * time); /** \ingroup seeking * \brief Seek to a specific stream position * \param bgav A decoder handle * \param time The time to seek to. * \param scale Timescale * * This function allows sample and frame accurate seeking, if * the following conditions are met: * - The formats allows sample accurate seeking at all * - For audio streams, scale is equal to the samplerate * - For video streams, scale is equal to the timescale * * Typically, only one stream will be positioned accurately. For * editing applications, it's recommended, that separate decoder instances * are opened for audio and video. They can then be positoned independently. * * The time argument might be changed to the actually seeked time, which can be * different. For sample accurate formats, it should always be unchanged. * * This function allows sample accurate seeking for some cases even in linear * decoding mode. For more sophisticated sample accurate access, see \ref sampleseek. */ BGAV_PUBLIC void bgav_seek_scaled(bgav_t * bgav, int64_t * time, int scale); /** \ingroup sampleseek * \brief Time value indicating an invalid time */ #define BGAV_TIMESTAMP_UNDEFINED GAVL_TIME_UNDEFINED // Don't change this /** \ingroup sampleseek * \brief Check if a track is seekabkle with sample accuracy * \param bgav A decoder handle * \returns 1 if the track is seekable with sample accuracy, 0 else. * * If this function returns zero, applications, which rely on * \ref bgav_seek_audio \ref bgav_seek_video and \ref bgav_seek_subtitle * should consider the file as unsupported. * * The ability of sample accurate seeking also implies, that streams can * be positioned indepentently. * * If \ref bgav_options_set_sample_accurate was not called, this function will * return zero for any file. */ BGAV_PUBLIC int bgav_can_seek_sample(bgav_t * bgav); /** \ingroup sampleseek * \brief Get the audio duration * \param bgav A decoder handle * \param stream Audio stream index (starting with 0) * \returns Duration in samples * * Use this only after \ref bgav_can_seek_sample returned 1. * The duration is calculated from the total number or decodable * samples in the file. The start time (as returned by \ref bgav_audio_start_time) * is not included in the duration. */ BGAV_PUBLIC int64_t bgav_audio_duration(bgav_t * bgav, int stream); /** \ingroup sampleseek * \brief Get the audio start time * \param bgav A decoder handle * \param stream Audio stream index (starting with 0) * \returns Time (in samplerate tics) of the first sample * * Use this only after \ref bgav_can_seek_sample returned 1. * The returned value is equal to the timestamp of the first * decoded audio frame. */ BGAV_PUBLIC int64_t bgav_audio_start_time(bgav_t * bgav, int stream); /** \ingroup sampleseek * \brief Get the video duration * \param bgav A decoder handle * \param stream Video stream index (starting with 0) * \returns Exact duration in stream tics * * Use this only after \ref bgav_can_seek_sample returned 1. * The duration is calculated from the total number or decodable * frames in the file. The start time (as returned by \ref bgav_video_start_time) * is not included in the duration. */ BGAV_PUBLIC int64_t bgav_video_duration(bgav_t * bgav, int stream); /** \ingroup sampleseek * \brief Get the video start time * \param bgav A decoder handle * \param stream Video stream index (starting with 0) * \returns Time of the first video frame in stream tics * * Use this only after \ref bgav_can_seek_sample returned 1. * The returned value is equal to the timestamp of the first * decoded video frame. */ BGAV_PUBLIC int64_t bgav_video_start_time(bgav_t * bgav, int stream); /** \ingroup sampleseek * \brief Get the subtitle duration * \param bgav A decoder handle * \param stream Subtitle stream index (starting with 0) * \returns Exact duration in stream tics * * Use this only after \ref bgav_can_seek_sample returned 1. */ BGAV_PUBLIC int64_t bgav_subtitle_duration(bgav_t * bgav, int stream); /** \ingroup sampleseek * \brief Seek to a specific audio sample * \param bgav A decoder handle * \param stream Audio stream index (starting with 0) * \param sample The sample to seek to * * Use this only after \ref bgav_can_seek_sample returned 1. * The time is relative to the first decodable sample * (always starting with 0), the offset returned by * \ref bgav_audio_start_time is not included here. * */ BGAV_PUBLIC void bgav_seek_audio(bgav_t * bgav, int stream, int64_t sample); /** \ingroup sampleseek * \brief Seek to a specific video time * \param bgav A decoder handle * \param stream Video stream index (starting with 0) * \param time Time * * Use this only after \ref bgav_can_seek_sample returned 1. * If time is between 2 frames, the earlier one will be chosen. * The time is relative to the first decodable frame * (always starting with 0), the offset returned by * \ref bgav_video_start_time is not included here. */ BGAV_PUBLIC void bgav_seek_video(bgav_t * bgav, int stream, int64_t time); /** \ingroup sampleseek * \brief Get the time of the closest keyframe before a given time * \param bgav A decoder handle * \param stream Video stream index (starting with 0) * \param time Time * \returns Time of the previous keyframe. * * Use this only after \ref bgav_can_seek_sample returned 1. * The time argument and return value are relative to the first * decodable frame of the file i.e. not including the offset * returned by \ref bgav_video_start_time . * If there is no keyframe before the given time (i.e if time was 0), * this function returns \ref BGAV_TIMESTAMP_UNDEFINED. */ BGAV_PUBLIC int64_t bgav_video_keyframe_before(bgav_t * bgav, int stream, int64_t time); /** \ingroup sampleseek * \brief Get the time of the closest keyframe after a given time * \param bgav A decoder handle * \param stream Video stream index (starting with 0) * \param time Time * \returns Time of the next keyframe * * Use this only after \ref bgav_can_seek_sample returned 1. * The time argument and return value are relative to the first * decodable frame of the file i.e. not including the offset * returned by \ref bgav_video_start_time . * If there is no keyframe after the given time, * this function returns \ref BGAV_TIMESTAMP_UNDEFINED. */ BGAV_PUBLIC int64_t bgav_video_keyframe_after(bgav_t * bgav, int stream, int64_t time); /** \ingroup sampleseek * \brief Seek to a specific subtitle position * \param bgav A decoder handle * \param stream Subtitle stream index (starting with 0) * \param time Time * * Use this only after \ref bgav_can_seek_sample returned 1. * If time is between 2 subtitles, the earlier one will be chosen. */ BGAV_PUBLIC void bgav_seek_subtitle(bgav_t * bgav, int stream, int64_t time); /*************************************************** * Debugging functions ***************************************************/ /** \defgroup debugging Debugging utilities */ /** \ingroup debugging * \brief Dump informations of all tracks to stderr * \param bgav A decoder handle */ BGAV_PUBLIC void bgav_dump(bgav_t * bgav); /* Dump infos about the installed codecs */ /** \ingroup debugging * \brief Dump informations about all available codecs to stderr * * The output format is html. The main purpose of this function is to generate a feature list * for the webpage. */ BGAV_PUBLIC void bgav_codecs_dump(); /* Dump known media formats */ /** \ingroup debugging * \brief Dump informations about all available format demuxers to stderr * * The output format is html. The main purpose of this function is to generate a feature list * for the webpage. */ BGAV_PUBLIC void bgav_formats_dump(); /** \ingroup debugging * \brief Dump informations about all available input modules to stderr * * The output format is html. The main purpose of this function is to generate a feature list * for the webpage. */ BGAV_PUBLIC void bgav_inputs_dump(); /** \ingroup debugging * \brief Dump informations about all available redirectors to stderr * * The output format is html. The main purpose of this function is to generate a feature list * for the webpage. */ BGAV_PUBLIC void bgav_redirectors_dump(); /** \ingroup debugging * \brief Dump informations about all available subtitle readers to stderr * * The output format is html. The main purpose of this function is to generate a feature list * for the webpage. */ BGAV_PUBLIC void bgav_subreaders_dump(); #ifdef __cplusplus } #endif gmerlin-avdecoder-1.2.0~dfsg/include/http.h0000644000000000000000000000460311764363500017424 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* http support */ typedef struct { int num_lines; int lines_alloc; struct { char * line; /* 0 terminated */ int line_alloc; /* Allocated size */ } * lines; } bgav_http_header_t; typedef struct bgav_http_s bgav_http_t; /* Creation/destruction of http header */ bgav_http_header_t * bgav_http_header_create(); void bgav_http_header_reset(bgav_http_header_t*); void bgav_http_header_destroy(bgav_http_header_t*); void bgav_http_header_add_line(bgav_http_header_t*, const char * line); int bgav_http_header_send(const bgav_options_t * opt, bgav_http_header_t*, int fd); int bgav_http_header_status_code(bgav_http_header_t * h); const char * bgav_http_header_status_line(bgav_http_header_t * h); /* Reading of http header */ int bgav_http_header_revc(const bgav_options_t * opt, bgav_http_header_t*, int fd); const char * bgav_http_header_get_var(bgav_http_header_t*, const char * name); void bgav_http_header_dump(bgav_http_header_t*); /* http connection */ bgav_http_t * bgav_http_open(const char * url, const bgav_options_t * opt, char ** redirect_url, bgav_http_header_t* extra_header); void bgav_http_close(bgav_http_t *); int bgav_http_get_fd(bgav_http_t *); bgav_http_header_t* bgav_http_get_header(bgav_http_t *); gmerlin-avdecoder-1.2.0~dfsg/include/bgav_vdpau.h0000644000000000000000000000277611764363500020574 0ustar rootroot#include typedef struct bgav_vdpau_context_s bgav_vdpau_context_t; bgav_vdpau_context_t * bgav_vdpau_context_create(const bgav_options_t * opt); void bgav_vdpau_context_destroy(bgav_vdpau_context_t *); VdpVideoSurface bgav_vdpau_context_create_video_surface(bgav_vdpau_context_t * ctx, VdpChromaType chroma_type, uint32_t width, uint32_t height); void bgav_vdpau_context_destroy_video_surface(bgav_vdpau_context_t * ctx, VdpVideoSurface s); void bgav_vdpau_context_surface_to_frame(bgav_vdpau_context_t * ctx, VdpVideoSurface s, gavl_video_frame_t * dst); VdpDecoder bgav_vdpau_context_create_decoder(bgav_vdpau_context_t * ctx, VdpDecoderProfile profile, uint32_t width, uint32_t height, uint32_t max_references); VdpStatus bgav_vdpau_context_decoder_render(bgav_vdpau_context_t * ctx, VdpDecoder dec, VdpVideoSurface target, VdpPictureInfo const *picture_info, uint32_t bitstream_buffer_count, VdpBitstreamBuffer const *bitstream_buffers); void bgav_vdpau_context_destroy_decoder(bgav_vdpau_context_t * ctx, VdpDecoder s); gmerlin-avdecoder-1.2.0~dfsg/include/mpeg4_header.h0000644000000000000000000000706311764363500020774 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #define MPEG4_CODE_VO_START 1 #define MPEG4_CODE_VOL_START 2 #define MPEG4_CODE_VOP_START 3 #define MPEG4_CODE_USER_DATA 4 #define MPEG4_CODE_GOV_START 5 int bgav_mpeg4_get_start_code(const uint8_t * data); void bgav_mpeg4_remove_packed_flag(uint8_t * data, int * len, int * header_len); typedef struct { int random_accessible_vol; // 1 int video_object_type_indication; // 8 int is_object_layer_identifier; // 1 // if (is_object_layer_identifier) { int video_object_layer_verid; // 4 int video_object_layer_priority; // 3 // } int aspect_ratio_info; // 4 // if (aspect_ratio_info == "extended_PAR") { int par_width; // 8 int par_height; // 8 // } int vol_control_parameters; // 1 // if (vol_control_parameters) { int chroma_format; // 2 int low_delay; // 1 int vbv_parameters; // 1 // if (vbv_parameters) { int first_half_bit_rate; // 15 /* int marker_bit; */ int latter_half_bit_rate; // 15 /* int marker_bit; */ int first_half_vbv_buffer_size; // 15 /* int marker_bit; */ int latter_half_vbv_buffer_size; // 3 int first_half_vbv_occupancy; // 11 /* int marker_bit; */ int latter_half_vbv_occupancy; // 15 /* int marker_bit; */ // } // } int video_object_layer_shape; // 2 // if (video_object_layer_shape == "grayscale" // && video_object_layer_verid != '0001') int video_object_layer_shape_extension; // 4 /* int marker_bit; */ // 1 int vop_time_increment_resolution; // 16 /* int marker_bit; */ // 1 int fixed_vop_rate; // 1 // if (fixed_vop_rate) int fixed_vop_time_increment; // 1-16 /* Calculated */ int time_increment_bits; } bgav_mpeg4_vol_header_t; int bgav_mpeg4_vol_header_read(const bgav_options_t * opt, bgav_mpeg4_vol_header_t * ret, const uint8_t * buffer, int len); void bgav_mpeg4_vol_header_dump(bgav_mpeg4_vol_header_t * h); typedef struct { int coding_type; int modulo_time_base; int time_increment; int vop_coded; } bgav_mpeg4_vop_header_t; int bgav_mpeg4_vop_header_read(const bgav_options_t * opt, bgav_mpeg4_vop_header_t * ret, const uint8_t * buffer, int len, const bgav_mpeg4_vol_header_t * vol); void bgav_mpeg4_vop_header_dump(bgav_mpeg4_vop_header_t * h); gmerlin-avdecoder-1.2.0~dfsg/include/bitstream.h0000644000000000000000000000355611764363500020445 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* bitstream.c */ typedef struct { const uint8_t * pos; const uint8_t * end; int bit_cache; uint32_t c; } bgav_bitstream_t; void bgav_bitstream_init(bgav_bitstream_t * b, const uint8_t * pos, int len); int bgav_bitstream_get(bgav_bitstream_t * b, int * ret, int bits); int bgav_bitstream_get_long(bgav_bitstream_t * b, int64_t * ret, int bits); int bgav_bitstream_get_bits(bgav_bitstream_t * b); int bgav_bitstream_peek(bgav_bitstream_t * b, int * ret, int bits); int bgav_bitstream_skip(bgav_bitstream_t * b, int bits); /* Special parsing functions */ int bgav_bitstream_get_golomb_ue(bgav_bitstream_t * b, int * ret); int bgav_bitstream_get_golomb_se(bgav_bitstream_t * b, int * ret); int bgav_bitstream_decode012(bgav_bitstream_t * b, int * ret); int bgav_bitstream_get_unary(bgav_bitstream_t * b, int stop, int len, int * ret); gmerlin-avdecoder-1.2.0~dfsg/include/win32codec.h0000644000000000000000000000432311764363500020404 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* Win32 codecs work in an own thread to prevent crashes */ typedef struct bgav_win32_thread_s { int state; ldt_fs_t * ldt_fs; void * priv; sem_t input_ready; sem_t output_ready; bgav_stream_t * s; pthread_t thread; /* Input and output data */ gavl_audio_frame_t * audio_frame; gavl_video_frame_t * video_frame; uint8_t * data; int data_len; int keyframe; int keyframe_seen; int last_frame_samples; /* Functions */ int (*init)(struct bgav_win32_thread_s*); int (*decode)(struct bgav_win32_thread_s*); void (*cleanup)(struct bgav_win32_thread_s*); } bgav_win32_thread_t; int bgav_win32_codec_thread_init(bgav_win32_thread_t*,bgav_stream_t*s); int bgav_win32_codec_thread_decode_audio(bgav_win32_thread_t*, gavl_audio_frame_t*, uint8_t * data, int data_len); int bgav_win32_codec_thread_decode_video(bgav_win32_thread_t*, gavl_video_frame_t*, uint8_t * data, int data_len, int keyframe); void bgav_win32_codec_thread_cleanup(bgav_win32_thread_t*); void bgav_windll_lock(); void bgav_windll_unlock(); gmerlin-avdecoder-1.2.0~dfsg/include/id3.h0000644000000000000000000000437211764363500017127 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* ID3V1 */ typedef struct bgav_id3v1_tag_s bgav_id3v1_tag_t; bgav_id3v1_tag_t * bgav_id3v1_read(bgav_input_context_t * input); int bgav_id3v1_probe(bgav_input_context_t * input); void bgav_id3v1_destroy(bgav_id3v1_tag_t *); void bgav_id3v1_2_metadata(bgav_id3v1_tag_t*, bgav_metadata_t * m); const char * bgav_id3v1_get_genre(int id); /* ID3V2 */ typedef struct bgav_id3v2_tag_s bgav_id3v2_tag_t; /* Offset must be 128 bytes before the end */ int bgav_id3v2_probe(bgav_input_context_t * input); void bgav_id3v2_dump(bgav_id3v2_tag_t * t); bgav_id3v2_tag_t * bgav_id3v2_read(bgav_input_context_t * input); void bgav_id3v2_destroy(bgav_id3v2_tag_t*); void bgav_id3v2_2_metadata(bgav_id3v2_tag_t*, bgav_metadata_t*m); int bgav_id3v2_total_bytes(bgav_id3v2_tag_t*); /* APE Tags http://hydrogenaudio.org/musepack/klemm/www.personal.uni-jena.de/~pfk/mpp/sv8/apetag.html */ typedef struct bgav_ape_tag_s bgav_ape_tag_t; /* Offset must be 32 bytes before the end */ int bgav_ape_tag_probe(bgav_input_context_t * input, int * tag_size); bgav_ape_tag_t * bgav_ape_tag_read(bgav_input_context_t * input, int tag_size); void bgav_ape_tag_2_metadata(bgav_ape_tag_t * tag, bgav_metadata_t * m); void bgav_ape_tag_destroy(bgav_ape_tag_t * tag); void bgav_ape_tag_dump(bgav_ape_tag_t * tag); gmerlin-avdecoder-1.2.0~dfsg/include/matroska.h0000644000000000000000000005461311764363500020274 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* Basic stuff */ int bgav_mkv_read_id(bgav_input_context_t * ctx, int * ret); int bgav_mkv_read_size(bgav_input_context_t * ctx, int64_t * ret); /* EMBL element */ typedef struct { int id; int64_t size; int64_t end; } bgav_mkv_element_t; int bgav_mkv_element_read(bgav_input_context_t * ctx, bgav_mkv_element_t * ret); void bgav_mkv_element_dump(const bgav_mkv_element_t * ret); void bgav_mkv_element_skip(bgav_input_context_t * ctx, const bgav_mkv_element_t * el, const char * parent_name); /* EMBL header */ typedef struct { int EBMLVersion; int EBMLReadVersion; int EBMLMaxIDLength; int EBMLMaxSizeLength; char * DocType; int DocTypeVersion; int DocTypeReadVersion; } bgav_mkv_ebml_header_t; int bgav_mkv_ebml_header_read(bgav_input_context_t * ctx, bgav_mkv_ebml_header_t * ret); void bgav_mkv_ebml_header_dump(const bgav_mkv_ebml_header_t * h); void bgav_mkv_ebml_header_free(bgav_mkv_ebml_header_t * h); /* Meta seek info */ typedef struct { int num_entries; int entries_alloc; struct { int SeekID; uint64_t SeekPosition; } * entries; } bgav_mkv_meta_seek_info_t; int bgav_mkv_meta_seek_info_read(bgav_input_context_t * ctx, bgav_mkv_meta_seek_info_t * info, bgav_mkv_element_t * parent); void bgav_mkv_meta_seek_info_dump(const bgav_mkv_meta_seek_info_t * info); void bgav_mkv_meta_seek_info_free(bgav_mkv_meta_seek_info_t * info); /* Chapter display */ typedef struct { char * ChapString; char * ChapLanguage; char * ChapCountry; } bgav_mkv_chapter_display_t; int bgav_mkv_chapter_display_read(bgav_input_context_t * ctx, bgav_mkv_chapter_display_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_chapter_display_dump(bgav_mkv_chapter_display_t * cd); void bgav_mkv_chapter_display_free(bgav_mkv_chapter_display_t * cd); /* Chapter track */ typedef struct { uint64_t ChapterTrackNumber; } bgav_mkv_chapter_track_t; int bgav_mkv_chapter_track_read(bgav_input_context_t * ctx, bgav_mkv_chapter_track_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_chapter_track_dump(bgav_mkv_chapter_track_t * ct); void bgav_mkv_chapter_track_free(bgav_mkv_chapter_track_t * ct); /* Chapter Atom */ typedef struct { uint64_t ChapterUID; uint64_t ChapterTimeStart; uint64_t ChapterTimeEnd; int ChapterFlagHidden; int ChapterFlagEnabled; uint8_t * ChapterSegmentUID; int ChapterSegmentUIDLen; uint8_t * ChapterSegmentEditionUID; int ChapterSegmentEditionUIDLen; int num_tracks; bgav_mkv_chapter_track_t * tracks; int num_displays; bgav_mkv_chapter_display_t * displays; } bgav_mkv_chapter_atom_t; int bgav_mkv_chapter_atom_read(bgav_input_context_t * ctx, bgav_mkv_chapter_atom_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_chapter_atom_dump(bgav_mkv_chapter_atom_t * ca); void bgav_mkv_chapter_atom_free(bgav_mkv_chapter_atom_t * ca); /* Edition entry */ typedef struct { uint64_t EditionUID; int EditionFlagHidden; int EditionFlagDefault; int EditionFlagOrdered; bgav_mkv_chapter_atom_t * atoms; int num_atoms; } bgav_mkv_edition_entry_t; int bgav_mkv_edition_entry_read(bgav_input_context_t * ctx, bgav_mkv_edition_entry_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_edition_entry_dump(bgav_mkv_edition_entry_t * ca); void bgav_mkv_edition_entry_free(bgav_mkv_edition_entry_t * ca); /* Chapters */ typedef struct { /* TODO: Can there be more than one?? */ bgav_mkv_edition_entry_t * editions; int num_editions; } bgav_mkv_chapters_t; int bgav_mkv_chapters_read(bgav_input_context_t * ctx, bgav_mkv_chapters_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_chapters_dump(bgav_mkv_chapters_t * cd); void bgav_mkv_chapters_free(bgav_mkv_chapters_t * cd); /* Target */ typedef struct { int TargetTypeValue; char * TargetType; uint64_t * TagTrackUID; int num_TagTrackUID; uint64_t * TagEditionUID; int num_TagEditionUID; uint64_t * TagChapterUID; int num_TagChapterUID; uint64_t * TagAttachmentUID; int num_TagAttachmentUID; } bgav_mkv_targets_t; int bgav_mkv_targets_read(bgav_input_context_t * ctx, bgav_mkv_targets_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_targets_dump(bgav_mkv_targets_t * t); void bgav_mkv_targets_free(bgav_mkv_targets_t * t); /* SimpleTag */ typedef struct { char * TagName; char * TagLanguage; int TagDefault; char * TagString; uint8_t * TagBinary; int TagBinaryLen; } bgav_mkv_simple_tag_t; int bgav_mkv_simple_tag_read(bgav_input_context_t * ctx, bgav_mkv_simple_tag_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_simple_tag_dump(bgav_mkv_simple_tag_t * t); void bgav_mkv_simple_tag_free(bgav_mkv_simple_tag_t * t); /* Tag */ typedef struct { bgav_mkv_targets_t targets; bgav_mkv_simple_tag_t * st; int num_st; } bgav_mkv_tag_t; int bgav_mkv_tag_read(bgav_input_context_t * ctx, bgav_mkv_tag_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_tag_dump(bgav_mkv_tag_t * t); void bgav_mkv_tag_free(bgav_mkv_tag_t * t); /* Tags */ int bgav_mkv_tags_read(bgav_input_context_t * ctx, bgav_mkv_tag_t ** ret, int * num_ret, bgav_mkv_element_t * parent); void bgav_mkv_tags_dump(bgav_mkv_tag_t * t, int num_tags); void bgav_mkv_tags_free(bgav_mkv_tag_t * t, int num_tags); /* SegmentInfo */ typedef struct { uint8_t SegmentUID[8]; char *SegmentFilename; uint8_t PrevUID[8]; char * PrevFilename; uint8_t NextUID[8]; char * NextFilename; uint8_t SegmentFamily[8]; /* TODO: Chapter translate */ uint64_t TimecodeScale; double Duration; int64_t DateUTC; char * Title; char * MuxingApp; char * WritingApp; } bgav_mkv_segment_info_t; int bgav_mkv_segment_info_read(bgav_input_context_t * ctx, bgav_mkv_segment_info_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_segment_info_dump(const bgav_mkv_segment_info_t * si); void bgav_mkv_segment_info_free(bgav_mkv_segment_info_t * si); /* Content Compression */ #define MKV_CONTENT_COMP_ALGO_ZLIB 0 #define MKV_CONTENT_COMP_ALGO_BZLIB 1 #define MKV_CONTENT_COMP_ALGO_LZO1X 2 #define MKV_CONTENT_COMP_ALGO_HEADER_STRIPPING 3 typedef struct { int ContentCompAlgo; uint8_t * ContentCompSettings; int ContentCompSettingsLen; } bgav_mkv_content_compression_t; int bgav_mkv_content_compression_read(bgav_input_context_t * ctx, bgav_mkv_content_compression_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_content_compression_dump(bgav_mkv_content_compression_t * cc); void bgav_mkv_content_compression_free(bgav_mkv_content_compression_t * cc); /* Content Encryption */ #define MKV_CONTENT_ENC_ALGO_NONE 0 // Only signed #define MKV_CONTENT_ENC_ALGO_DES 1 #define MKV_CONTENT_ENC_ALGO_3DES 2 #define MKV_CONTENT_ENC_ALGO_TWOFISH 3 #define MKV_CONTENT_ENC_ALGO_BLOWFISH 4 #define MKV_CONTENT_ENC_ALGO_AES 5 #define MKV_CONTENT_SIG_ALGO_NONE 0 // Only encrypted #define MKV_CONTENT_SIG_ALGO_RSA 1 #define MKV_CONTENT_SIG_HASH_ALGO_NONE 0 // Only encrypted #define MKV_CONTENT_SIG_HASH_ALGO_SHA1_160 1 #define MKV_CONTENT_SIG_HASH_ALGO_MD5 2 typedef struct { int ContentEncAlgo; uint8_t * ContentEncKeyID; int ContentEncKeyIDLen; uint8_t * ContentSignature; int ContentSignatureLen; uint8_t * ContentSigKeyID; int ContentSigKeyIDLen; int ContentSigAlgo; int ContentSigHashAlgo; } bgav_mkv_content_encryption_t; int bgav_mkv_content_encryption_read(bgav_input_context_t * ctx, bgav_mkv_content_encryption_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_content_encryption_dump(bgav_mkv_content_encryption_t * cc); void bgav_mkv_content_encryption_free(bgav_mkv_content_encryption_t * cc); /* Content Encoding */ #define MKV_CONTENT_ENCODING_COMPRESSION 0 #define MKV_CONTENT_ENCODING_ENCRYPTION 1 typedef struct { int ContentEncodingOrder; int ContentEncodingScope; int ContentEncodingType; bgav_mkv_content_compression_t ContentCompression; bgav_mkv_content_encryption_t ContentEncryption; } bgav_mkv_content_encoding_t; int bgav_mkv_content_encoding_read(bgav_input_context_t * ctx, bgav_mkv_content_encoding_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_content_encoding_dump(bgav_mkv_content_encoding_t * cc); void bgav_mkv_content_encoding_free(bgav_mkv_content_encoding_t * cc); int bgav_mkv_content_encodings_read(bgav_input_context_t * ctx, bgav_mkv_content_encoding_t ** ret, int * num_ret, bgav_mkv_element_t * parent); /* Track */ #define MKV_FlagInterlaced (1<<0) typedef struct { int flags; int StereoMode; int PixelWidth; int PixelHeight; int PixelCropBottom; int PixelCropTop; int PixelCropLeft; int PixelCropRight; int DisplayWidth; int DisplayHeight; int DisplayUnit; int AspectRatioType; uint8_t * ColourSpace; int ColourSpaceLen; double FrameRate; } bgav_mkv_track_video_t; typedef struct { double SamplingFrequency; double OutputSamplingFrequency; int Channels; int BitDepth; } bgav_mkv_track_audio_t; #define MKV_FlagEnabled (1<<0) #define MKV_FlagDefault (1<<1) #define MKV_FlagForced (1<<2) #define MKV_FlagLacing (1<<3) #define MKV_TRACK_VIDEO 1 #define MKV_TRACK_AUDIO 2 #define MKV_TRACK_COMPLEX 3 #define MKV_TRACK_LOGO 0x10 #define MKV_TRACK_SUBTITLE 0x11 #define MKV_TRACK_BUTTONS 0x12 #define MKV_TRACK_CONTROL 0x20 typedef struct { uint64_t TrackNumber; uint64_t TrackUID; int TrackType; int flags; uint64_t MinCache; uint64_t MaxCache; uint64_t DefaultDuration; double TrackTimecodeScale; uint64_t MaxBlockAdditionID; char * Name; char * Language; char * CodecID; uint8_t * CodecPrivate; int CodecPrivateLen; char * CodecName; uint64_t AttachmentLink; int CodecDecodeAll; uint64_t TrackOverlay; /* TODO: TrackTranslate */ bgav_mkv_track_video_t video; bgav_mkv_track_audio_t audio; /* TODO: Content encodings */ bgav_mkv_content_encoding_t * encodings; int num_encodings; /* For codecs with constant framesizes set this to enable sample accurate positioning */ int frame_samples; int64_t pts; /* If we do our own pts calculation */ } bgav_mkv_track_t; int bgav_mkv_track_read(bgav_input_context_t * ctx, bgav_mkv_track_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_track_dump(const bgav_mkv_track_t * t); void bgav_mkv_track_free(bgav_mkv_track_t * t); int bgav_mkv_tracks_read(bgav_input_context_t * ctx, bgav_mkv_track_t ** ret1, int * ret_num1, bgav_mkv_element_t * parent); /* Cue points (== Packet index) */ typedef struct { uint64_t CueRefTime; } bgav_mkv_cue_reference_t; typedef struct { uint64_t CueTrack; uint64_t CueClusterPosition; uint64_t CueBlockNumber; uint64_t CueCodecState; int num_references; int references_alloc; bgav_mkv_cue_reference_t * references; } bgav_mkv_cue_track_t; typedef struct { uint64_t CueTime; int num_tracks; bgav_mkv_cue_track_t * tracks; } bgav_mkv_cue_point_t; typedef struct { int num_points; int points_alloc; bgav_mkv_cue_point_t * points; } bgav_mkv_cues_t; int bgav_mkv_cues_read(bgav_input_context_t * ctx, bgav_mkv_cues_t * ret, int num_tracks); void bgav_mkv_cues_dump(const bgav_mkv_cues_t * cues); void bgav_mkv_cues_free(bgav_mkv_cues_t * cues); /* Cluster */ typedef struct { uint64_t Timecode; int num_silent_tracks; uint64_t * silent_tracks; uint64_t Position; uint64_t PrevSize; } bgav_mkv_cluster_t; int bgav_mkv_cluster_read(bgav_input_context_t * ctx, bgav_mkv_cluster_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_cluster_dump(const bgav_mkv_cluster_t * cluster); void bgav_mkv_cluster_free(bgav_mkv_cluster_t * cluster); /* Block */ #define MKV_LACING_MASK 0x06 #define MKV_LACING_NONE 0x00 #define MKV_LACING_XIPH 0x02 #define MKV_LACING_EBML 0x06 #define MKV_LACING_FIXED 0x04 #define MKV_INVISIBLE 0x10 #define MKV_KEYFRAME 0x80 #define MKV_DISCARDABLE 0x01 #define MKV_LACING_MASK 0x06 typedef struct { int flags; int16_t timecode; int64_t track; int num_laces; int data_size; uint8_t * data; int data_alloc; } bgav_mkv_block_t; int bgav_mkv_block_read(bgav_input_context_t * ctx, bgav_mkv_block_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_block_dump(int indent, bgav_mkv_block_t * b); void bgav_mkv_block_free(bgav_mkv_block_t * b); /* Block group */ typedef struct { uint64_t BlockDuration; int ReferencePriority; bgav_mkv_block_t block; int64_t * reference_blocks; int reference_blocks_alloc; int num_reference_blocks; } bgav_mkv_block_group_t; int bgav_mkv_block_group_read(bgav_input_context_t * ctx, bgav_mkv_block_group_t * ret, bgav_mkv_element_t * parent); void bgav_mkv_block_group_dump(bgav_mkv_block_group_t * g); void bgav_mkv_block_group_free(bgav_mkv_block_group_t * g); /* Known IDs */ #define MKV_ID_EBML 0x1a45dfa3 #define MKV_ID_EBMLVersion 0x4286 #define MKV_ID_EBMLReadVersion 0x42f7 #define MKV_ID_EBMLMaxIDLength 0x42f2 #define MKV_ID_EBMLMaxSizeLength 0x42f3 #define MKV_ID_DocType 0x4282 #define MKV_ID_DocTypeVersion 0x4287 #define MKV_ID_DocTypeReadVersion 0x4285 #define MKV_ID_CRC32 0xbf #define MKV_ID_Void 0xec /* Segment */ #define MKV_ID_Segment 0x18538067 /* Meta seek information */ #define MKV_ID_SeekHead 0x114d9b74 #define MKV_ID_Seek 0x4dbb #define MKV_ID_SeekID 0x53ab #define MKV_ID_SeekPosition 0x53ac /* Segment Info */ #define MKV_ID_Info 0x1549a966 #define MKV_ID_SegmentUID 0x73a4 #define MKV_ID_SegmentFilename 0x7384 #define MKV_ID_PrevUID 0x3cb923 #define MKV_ID_PrevFilename 0x3c83ab #define MKV_ID_NextUID 0x3eb923 #define MKV_ID_NextFilename 0x3c83bb #define MKV_ID_SegmentFamily 0x4444 #define MKV_ID_ChapterTranslate 0x6924 #define MKV_ID_ChapterTranslateEditionUID 0x69fc #define MKV_ID_ChapterTranslateCodec 0x69bf #define MKV_ID_ChapterTranslateID 0x69a5 #define MKV_ID_TimecodeScale 0x2ad7b1 #define MKV_ID_Duration 0x4489 #define MKV_ID_DateUTC 0x4461 #define MKV_ID_Title 0x7ba9 #define MKV_ID_MuxingApp 0x4d80 #define MKV_ID_WritingApp 0x5741 /* Chapter */ #define MKV_ID_Chapters 0x1043a770 #define MKV_ID_EditionEntry 0x45b9 #define MKV_ID_EditionUID 0x45bc #define MKV_ID_EditionFlagHidden 0x45bd #define MKV_ID_EditionFlagDefault 0x45db #define MKV_ID_EditionFlagOrdered 0x45dd #define MKV_ID_ChapterAtom 0xb6 #define MKV_ID_ChapterUID 0x73c4 #define MKV_ID_ChapterTimeStart 0x91 #define MKV_ID_ChapterTimeEnd 0x92 #define MKV_ID_ChapterFlagHidden 0x98 #define MKV_ID_ChapterFlagEnabled 0x4598 #define MKV_ID_ChapterSegmentUID 0x6e67 #define MKV_ID_ChapterSegmentEditionUID 0x6ebc #define MKV_ID_ChapterTrack 0x8f #define MKV_ID_ChapterTrackNumber 0x89 #define MKV_ID_ChapterDisplay 0x80 #define MKV_ID_ChapString 0x85 #define MKV_ID_ChapLanguage 0x437c #define MKV_ID_ChapCountry 0x437e #define MKV_ID_ChapProcess 0x6944 #define MKV_ID_ChapProcessCodecID 0x6955 #define MKV_ID_ChapProcessPrivate 0x450d #define MKV_ID_ChapProcessCommand 0x6911 #define MKV_ID_ChapProcessTime 0x6922 #define MKV_ID_ChapProcessData 0x6933 /* Tracks */ #define MKV_ID_Tracks 0x1654AE6B #define MKV_ID_TrackEntry 0xae #define MKV_ID_TrackNumber 0xd7 #define MKV_ID_TrackUID 0x73c5 #define MKV_ID_TrackType 0x83 #define MKV_ID_FlagEnabled 0xb9 #define MKV_ID_FlagDefault 0x88 #define MKV_ID_FlagForced 0x55aa #define MKV_ID_FlagLacing 0x9c #define MKV_ID_MinCache 0x6de7 #define MKV_ID_MaxCache 0x6df8 #define MKV_ID_DefaultDuration 0x23e383 #define MKV_ID_TrackTimecodeScale 0x23314f #define MKV_ID_MaxBlockAdditionID 0x55ee #define MKV_ID_Name 0x536e #define MKV_ID_Language 0x22b59c #define MKV_ID_CodecID 0x86 #define MKV_ID_CodecPrivate 0x63a2 #define MKV_ID_CodecName 0x258688 #define MKV_ID_AttachmentLink 0x7446 #define MKV_ID_CodecDecodeAll 0xaa #define MKV_ID_TrackOverlay 0x6fab #define MKV_ID_TrackTranslate 0x6624 #define MKV_ID_TrackTranslateEditionUID 0x66fc #define MKV_ID_TrackTranslateCodec 0x66bf #define MKV_ID_TrackTranslateTrackID 0x66a5 /* Video specific */ #define MKV_ID_Video 0xe0 #define MKV_ID_FlagInterlaced 0x9a #define MKV_ID_StereoMode 0x53b8 #define MKV_ID_PixelWidth 0xb0 #define MKV_ID_PixelHeight 0xba #define MKV_ID_PixelCropBottom 0x54aa #define MKV_ID_PixelCropTop 0x54bb #define MKV_ID_PixelCropLeft 0x54cc #define MKV_ID_PixelCropRight 0x54dd #define MKV_ID_DisplayWidth 0x54b0 #define MKV_ID_DisplayHeight 0x54ba #define MKV_ID_DisplayUnit 0x54b2 #define MKV_ID_AspectRatioType 0x54b3 #define MKV_ID_ColourSpace 0x2EB524 #define MKV_ID_FrameRate 0x2383E3 /* Audio specific */ #define MKV_ID_Audio 0xe1 #define MKV_ID_SamplingFrequency 0xb5 #define MKV_ID_OutputSamplingFrequency 0x78b5 #define MKV_ID_Channels 0x9f #define MKV_ID_BitDepth 0x6264 /* Encoding (== Compression/Encryption) */ #define MKV_ID_ContentEncodings 0x6d80 #define MKV_ID_ContentEncoding 0x6240 #define MKV_ID_ContentEncodingOrder 0x5031 #define MKV_ID_ContentEncodingScope 0x5032 #define MKV_ID_ContentEncodingType 0x5033 #define MKV_ID_ContentCompression 0x5034 #define MKV_ID_ContentCompAlgo 0x4254 #define MKV_ID_ContentCompSettings 0x4255 #define MKV_ID_ContentEncryption 0x5035 #define MKV_ID_ContentEncAlgo 0x47e1 #define MKV_ID_ContentEncKeyID 0x47e2 #define MKV_ID_ContentSignature 0x47e3 #define MKV_ID_ContentSigKeyID 0x47e4 #define MKV_ID_ContentSigAlgo 0x47e5 #define MKV_ID_ContentSigHashAlgo 0x47e6 /* Cueing Data */ #define MKV_ID_Cues 0x1C53BB6B #define MKV_ID_CuePoint 0xbb #define MKV_ID_CueTime 0xb3 #define MKV_ID_CueTrackPositions 0xb7 #define MKV_ID_CueTrack 0xf7 #define MKV_ID_CueClusterPosition 0xf1 #define MKV_ID_CueBlockNumber 0x5378 #define MKV_ID_CueCodecState 0xea #define MKV_ID_CueReference 0xdb #define MKV_ID_CueRefTime 0x96 /* Cluster */ #define MKV_ID_Cluster 0x1f43b675 #define MKV_ID_Timecode 0xe7 #define MKV_ID_SilentTracks 0x5854 #define MKV_ID_SilentTrackNumber 0x58d7 #define MKV_ID_Position 0xa7 #define MKV_ID_PrevSize 0xab #define MKV_ID_BlockGroup 0xa0 /* Block */ #define MKV_ID_Block 0xa1 #define MKV_ID_BlockAdditions 0x75A1 #define MKV_ID_BlockMore 0xa6 #define MKV_ID_BlockAddID 0xee #define MKV_ID_BlockAdditional 0xa5 #define MKV_ID_BlockDuration 0x9b #define MKV_ID_ReferencePriority 0xfa #define MKV_ID_ReferenceBlock 0xfb #define MKV_ID_CodecState 0xa4 #define MKV_ID_Slices 0x8e #define MKV_ID_TimeSlice 0xe8 #define MKV_ID_LaceNumber 0xcc #define MKV_ID_SimpleBlock 0xa3 /* Tagging */ #define MKV_ID_Tags 0x1254c367 #define MKV_ID_Tag 0x7373 #define MKV_ID_Targets 0x63c0 #define MKV_ID_TargetTypeValue 0x68ca #define MKV_ID_TargetType 0x63ca #define MKV_ID_TagTrackUID 0x63c5 #define MKV_ID_TagEditionUID 0x63c9 #define MKV_ID_TagChapterUID 0x63c4 #define MKV_ID_TagAttachmentUID 0x63c6 #define MKV_ID_SimpleTag 0x67c8 #define MKV_ID_TagName 0x45a3 #define MKV_ID_TagLanguage 0x447a #define MKV_ID_TagDefault 0x4484 #define MKV_ID_TagString 0x4487 #define MKV_ID_TagBinary 0x4485 #if 0 #define MKV_ID_ 0x #endif gmerlin-avdecoder-1.2.0~dfsg/include/aac_frame.h0000644000000000000000000000554111764363500020345 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #ifdef HAVE_NEAACDEC_H #include /* * Backwards compatibility names (currently in neaacdec.h, * but might be removed in future versions) */ #ifndef faacDecHandle /* structs */ #define faacDecHandle NeAACDecHandle #define faacDecConfiguration NeAACDecConfiguration #define faacDecConfigurationPtr NeAACDecConfigurationPtr #define faacDecFrameInfo NeAACDecFrameInfo /* functions */ #define faacDecGetErrorMessage NeAACDecGetErrorMessage #define faacDecSetConfiguration NeAACDecSetConfiguration #define faacDecGetCurrentConfiguration NeAACDecGetCurrentConfiguration #define faacDecInit NeAACDecInit #define faacDecInit2 NeAACDecInit2 #define faacDecInitDRM NeAACDecInitDRM #define faacDecPostSeekReset NeAACDecPostSeekReset #define faacDecOpen NeAACDecOpen #define faacDecClose NeAACDecClose #define faacDecDecode NeAACDecDecode #define AudioSpecificConfig NeAACDecAudioSpecificConfig #endif #else #include #endif typedef struct bgav_aac_frame_s bgav_aac_frame_t; bgav_aac_frame_t * bgav_aac_frame_create(const bgav_options_t * opt, uint8_t * header, int header_len); void bgav_aac_frame_destroy(bgav_aac_frame_t *); /* Return value: 0: Need more data 1: Done Negative: Error */ int bgav_aac_frame_parse(bgav_aac_frame_t *, uint8_t * data, int data_len, int * bytes_used, int * samples); void bgav_aac_frame_get_audio_format(bgav_aac_frame_t * frame, gavl_audio_format_t * format); /* Used by parser and decoder */ void bgav_faad_set_channel_setup(faacDecFrameInfo * frame_info, gavl_audio_format_t * format); gmerlin-avdecoder-1.2.0~dfsg/include/dvframe.h0000644000000000000000000000613011764363500020066 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* minimum number of bytes to read from a DV stream in order to determine the profile */ #define DV_HEADER_SIZE (6*80) /* 6 DIF blocks */ /* * Handler for DV frames * It detects most interesting parameters from the DV * data and can extract audio. */ typedef struct bgav_dv_dec_s bgav_dv_dec_t; bgav_dv_dec_t * bgav_dv_dec_create(); void bgav_dv_dec_destroy(bgav_dv_dec_t*); /* Sets the header for parsing. Data must be DV_HEADER_SIZE bytes long */ void bgav_dv_dec_set_header(bgav_dv_dec_t*, uint8_t * data); int bgav_dv_dec_get_frame_size(bgav_dv_dec_t*); /* Call this after seeking */ void bgav_dv_dec_set_frame_counter(bgav_dv_dec_t*, int64_t frames); /* Call this after seeking */ void bgav_dv_dec_set_sample_counter(bgav_dv_dec_t*, int64_t samples); /* Sets the frame for parsing. data must be frame_size bytes long */ void bgav_dv_dec_set_frame(bgav_dv_dec_t*, uint8_t * data); /* ffmpeg is not able to tell the right pixel aspect ratio for DV streams */ void bgav_dv_dec_get_pixel_aspect(bgav_dv_dec_t*, int * pixel_width, int * pixel_height); void bgav_dv_dec_get_image_size(bgav_dv_dec_t*, int * width, int * height); gavl_pixelformat_t bgav_dv_dec_get_pixelformat(bgav_dv_dec_t*); void bgav_dv_dec_get_timecode_format(bgav_dv_dec_t * d, gavl_timecode_format_t * tf, const bgav_options_t * opt); /* Set up audio and video streams */ void bgav_dv_dec_init_audio(bgav_dv_dec_t*, bgav_stream_t * s); void bgav_dv_dec_init_video(bgav_dv_dec_t*, bgav_stream_t * s); /* Extract audio and video packets suitable for the decoders */ int bgav_dv_dec_get_audio_packet(bgav_dv_dec_t*, bgav_packet_t * p); void bgav_dv_dec_get_video_packet(bgav_dv_dec_t*, bgav_packet_t * p); int bgav_dv_dec_get_date(bgav_dv_dec_t * d, int * year, int * month, int * day); int bgav_dv_dec_get_time(bgav_dv_dec_t * d, int * hour, int * minute, int * second); int bgav_dv_dec_get_timecode(bgav_dv_dec_t * d, gavl_timecode_t * tc); gmerlin-avdecoder-1.2.0~dfsg/include/asmrp.h0000644000000000000000000000272311764363500017570 0ustar rootroot/* * This file was ported to Gmerlin from MPlayer CVS asmrp.h,v BlaBlaBla */ /* * This file was ported to MPlayer from xine CVS asmrp.h,v 1.1 2002/12/12 22:14:54 */ /* * Copyright (C) 2002 the xine project * * This file is part of xine, a free video player. * * xine is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * xine is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * * * a parser for real's asm rules * * grammar for these rules: * rule_book = { '#' rule ';'} rule = condition {',' assignment} assignment = id '=' const const = ( number | string ) condition = comp_expr { ( '&&' | '||' ) comp_expr } comp_expr = operand { ( '<' | '<=' | '==' | '>=' | '>' ) operand } operand = ( '$' id | num | '(' condition ')' ) */ #ifndef HAVE_ASMRP_H #define HAVE_ASMRP_H int bgav_asmrp_match (const char *rules, int bandwidth, int *matches) ; #endif gmerlin-avdecoder-1.2.0~dfsg/include/bsf.h0000644000000000000000000000232011764363500017211 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ bgav_bsf_t * bgav_bsf_create(bgav_stream_t * s); const uint8_t * bgav_bsf_get_header(bgav_bsf_t * bsf, int * size); void bgav_bsf_run(bgav_bsf_t * bsf, bgav_packet_t * in, bgav_packet_t * out); void bgav_bsf_destroy(bgav_bsf_t * bsf); gmerlin-avdecoder-1.2.0~dfsg/include/mpa_header.h0000644000000000000000000000342211764363500020530 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ typedef enum { MPEG_VERSION_NONE = 0, MPEG_VERSION_1 = 1, MPEG_VERSION_2 = 2, MPEG_VERSION_2_5 } bgav_mpa_version_t; #define CHANNEL_STEREO 0 #define CHANNEL_JSTEREO 1 #define CHANNEL_DUAL 2 #define CHANNEL_MONO 3 typedef struct { bgav_mpa_version_t version; int layer; int bitrate; /* -1: VBR */ int samplerate; int frame_bytes; int channel_mode; int mode; int samples_per_frame; int has_crc; int side_info_size; } bgav_mpa_header_t; int bgav_mpa_header_equal(bgav_mpa_header_t * h1, bgav_mpa_header_t * h2); void bgav_mpa_header_dump(bgav_mpa_header_t * h); int bgav_mpa_header_decode(bgav_mpa_header_t * h, uint8_t * ptr); void bgav_mpa_header_get_format(const bgav_mpa_header_t * h, gavl_audio_format_t * format); gmerlin-avdecoder-1.2.0~dfsg/include/sdp.h0000644000000000000000000001173711764363500017241 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #ifndef __BGAV_SDP_H_ #define __BGAV_SDP_H_ typedef struct bgav_sdp_s bgav_sdp_t; /* Origin (o=) */ typedef struct { char * username; /* NULL if "-" */ uint64_t session_id; uint64_t session_version; char * network_type; char * addr_type; char * addr; } bgav_sdp_origin_t; /* Connection description (c=) */ typedef struct { char *type; char *addr; uint32_t ttl; uint32_t num_addr; } bgav_sdp_connection_desc_t; /* Bandwidth description (b=) */ typedef enum { BGAV_SDP_BANDWIDTH_MODIFIER_NONE = 0, BGAV_SDP_BANDWIDTH_MODIFIER_CT, BGAV_SDP_BANDWIDTH_MODIFIER_AS, BGAV_SDP_BANDWIDTH_MODIFIER_USER, } bgav_sdp_bandwidth_modifier_t; typedef struct { bgav_sdp_bandwidth_modifier_t modifier; char * user_bandwidth; unsigned long bandwidth; } bgav_sdp_bandwidth_desc_t; /* Attribute (a=) */ typedef enum { BGAV_SDP_TYPE_NONE = 0, BGAV_SDP_TYPE_BOOLEAN = 1, BGAV_SDP_TYPE_INT = 2, BGAV_SDP_TYPE_STRING = 3, BGAV_SDP_TYPE_DATA = 4, BGAV_SDP_TYPE_GENERIC = 5, /* Everything else */ } bgav_sdp_attr_type_t; typedef struct { char * name; bgav_sdp_attr_type_t type; union { char * str; void * data; int i; } val; int data_len; } bgav_sdp_attr_t; /* Key (k=) */ typedef enum { BGAV_SDP_KEY_TYPE_NONE = 0, BGAV_SDP_KEY_TYPE_CLEAR, BGAV_SDP_KEY_TYPE_BASE64, BGAV_SDP_KEY_TYPE_URI, BGAV_SDP_KEY_TYPE_PROMPT, } bgav_sdp_key_type_t; typedef struct key_desc_t { bgav_sdp_key_type_t type; char *key; } bgav_sdp_key_desc_t; /* Media Description (m=) */ typedef struct { /* From the m= line */ char * media; /* audio, video etc */ int port; int num_ports; char * protocol; int num_formats; char ** formats; /* Additional stuff */ char * media_title; /* i=* (media title) */ bgav_sdp_connection_desc_t connection; /* c= */ bgav_sdp_bandwidth_desc_t bandwidth; /* b= */ bgav_sdp_key_desc_t key; /* k= */ /* a= */ int num_attributes; bgav_sdp_attr_t * attributes; } bgav_sdp_media_desc_t; /* Whole sdp structure */ struct bgav_sdp_s { int protocol_version; /* v= */ bgav_sdp_origin_t origin; /* o= */ char * session_name; /* s= */ char * session_description; /* i= */ char * uri; /* u= */ char * email; /* e= */ char * phone; /* p= */ bgav_sdp_connection_desc_t connection; /* c= */ bgav_sdp_bandwidth_desc_t bandwidth; /* b= */ /* t= One or more time descriptions (see below) */ // z=* (time zone adjustments) bgav_sdp_key_desc_t key; /* k=* (encryption key) */ // a=* (zero or more session attribute lines) // Zero or more media descriptions (see below) // int num_time_descriptions; // time_desc_t * time_descriptions; int num_attributes; bgav_sdp_attr_t * attributes; int num_media; bgav_sdp_media_desc_t * media; }; /* Obtain attributes */ /* * These functions return FALSE if * there is a type mismatch, or no attribute with the * specified name is found */ int bgav_sdp_get_attr_string(bgav_sdp_attr_t * attrs, int num_attrs, const char * name, char ** ret); int bgav_sdp_get_attr_data(bgav_sdp_attr_t * attrs, int num_attrs, const char * name, uint8_t ** ret, int * size); int bgav_sdp_get_attr_int(bgav_sdp_attr_t * attrs, int num_attrs, const char * name, int*); int bgav_sdp_get_attr_rtpmap(bgav_sdp_attr_t * attrs, int num_attrs, int format, char ** ret); int bgav_sdp_get_attr_fmtp(bgav_sdp_attr_t * attrs, int num_attrs, int format, char ** ret); /* Init, free */ int bgav_sdp_parse(const bgav_options_t * opt, const char * data, bgav_sdp_t * ret); void bgav_sdp_free(bgav_sdp_t * s); /* Dump the entire struct to stderr */ void bgav_sdp_dump(bgav_sdp_t * s); #endif // __BGAV_SDP_H_ gmerlin-avdecoder-1.2.0~dfsg/include/mpv_header.h0000644000000000000000000001104411764363500020554 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #define MPV_PROBE_SIZE 5 /* Sync code + extension type */ #define MPEG_CODE_SEQUENCE 1 #define MPEG_CODE_SEQUENCE_EXT 2 #define MPEG_CODE_PICTURE 3 #define MPEG_CODE_PICTURE_EXT 4 #define MPEG_CODE_GOP 5 #define MPEG_CODE_SLICE 6 #define MPEG_CODE_END 7 #define MPEG_CODE_SEQUENCE_DISPLAY_EXT 8 #define MPEG_PICTURE_TOP_FIELD 1 #define MPEG_PICTURE_BOTTOM_FIELD 2 #define MPEG_PICTURE_FRAME 3 const uint8_t * bgav_mpv_find_startcode( const uint8_t *p, const uint8_t *end ); int bgav_mpv_get_start_code(const uint8_t * data); void bgav_mpv_get_framerate(int code, int * timescale, int *frame_duration); /* * Return values of the parse functions: * 0: Not enough data * -1: Parse error * 1: Success */ typedef struct { int progressive_sequence; int chroma_format; int horizontal_size_ext; int vertical_size_ext; uint32_t bitrate_ext; int timescale_ext; int frame_duration_ext; int low_delay; } bgav_mpv_sequence_extension_t; typedef struct { int video_format; int has_color_description; int color_primaries; int transfer_characteristics; int matrix_coefficients; int display_width; int display_height; } bgav_mpv_sequence_display_extension_t; typedef struct { int mpeg2; int has_dpy_ext; uint32_t bitrate; /* In 400 bits per second */ int horizontal_size_value; int vertical_size_value; int aspect_ratio; int frame_rate_index; bgav_mpv_sequence_extension_t ext; bgav_mpv_sequence_display_extension_t dpy_ext; } bgav_mpv_sequence_header_t; int bgav_mpv_sequence_header_parse(const bgav_options_t * opt, bgav_mpv_sequence_header_t *, const uint8_t * buffer, int len); int bgav_mpv_sequence_display_extension_parse(const bgav_options_t * opt, bgav_mpv_sequence_display_extension_t *, const uint8_t * buffer, int len); int bgav_mpv_sequence_extension_parse(const bgav_options_t * opt, bgav_mpv_sequence_extension_t *, const uint8_t * buffer, int len); typedef struct { int top_field_first; int repeat_first_field; int progressive_frame; int picture_structure; } bgav_mpv_picture_extension_t; typedef struct { int coding_type; bgav_mpv_picture_extension_t ext; } bgav_mpv_picture_header_t; int bgav_mpv_picture_header_parse(const bgav_options_t * opt, bgav_mpv_picture_header_t *, const uint8_t * buffer, int len); int bgav_mpv_picture_extension_parse(const bgav_options_t * opt, bgav_mpv_picture_extension_t *, const uint8_t * buffer, int len); typedef struct { int drop; int hours; int minutes; int seconds; int frames; } bgav_mpv_gop_header_t; int bgav_mpv_gop_header_parse(const bgav_options_t * opt, bgav_mpv_gop_header_t *, const uint8_t * buffer, int len); /* Getting the pixel aspect ratio is a bit messy... */ void bgav_mpv_get_pixel_aspect(bgav_mpv_sequence_header_t * h, gavl_video_format_t * ret); gavl_pixelformat_t bgav_mpv_get_pixelformat(bgav_mpv_sequence_header_t * h); void bgav_mpv_get_size(bgav_mpv_sequence_header_t * h, gavl_video_format_t * ret); gmerlin-avdecoder-1.2.0~dfsg/include/bgavdefs.h0000644000000000000000000000311211764363500020220 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #ifndef BGAVDEFS_H_INCLUDED #define BGAVDEFS_H_INCLUDED #ifdef DLL_EXPORT #define BGAV_PUBLIC __declspec(dllexport) #else #define BGAV_PUBLIC __attribute__ ((visibility("default"))) #endif #ifdef _WIN32 /* need to declare that we are XP or newer * otherwise, getaddrinfo and other things * won't work */ #define WINVER 0x501 #ifndef EINVAL #define EINVAL WSAEINVAL #endif #ifndef EINPROGRESS #define EINPROGRESS WSAEINPROGRESS #endif /* for MacOSX AND mingw */ #ifndef AI_NUMERICSERV #define AI_NUMERICSERV 0 #endif #ifndef NAME_MAX #define NAME_MAX 255 #endif #endif #endif // BGAVDEFS_H_INCLUDED gmerlin-avdecoder-1.2.0~dfsg/include/videoparser_priv.h0000644000000000000000000001013411764363500022024 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #define PARSER_CACHE_MAX 32 #define PARSER_CONTINUE (PARSER_PRIV+0) #define PARSER_DISCARD (PARSER_PRIV+1) typedef void (*init_func)(bgav_video_parser_t*); typedef int (*parse_func)(bgav_video_parser_t*); typedef void (*cleanup_func)(bgav_video_parser_t*); typedef void (*reset_func)(bgav_video_parser_t*); // typedef int (*parse_header_func)(bgav_video_parser_t*); typedef int (*parse_frame_func)(bgav_video_parser_t*, bgav_packet_t * p); typedef struct { int coding_type; int size; int duration; int64_t pts; int64_t position; int parser_start_pos; /* Repeated header before keyframe */ int header_size; int64_t in_pts; int skip; int field_pic; int field2_offset; int sequence_end_pos; gavl_timecode_t tc; int recovery_point; gavl_interlace_mode_t ilace; } cache_t; typedef struct { int64_t packet_position; int parser_position; int size; int64_t pts; } packet_t; /* MPEG-2 Intra slice refresh */ #define PARSER_NO_I_FRAMES (1<<0) struct bgav_video_parser_s { bgav_stream_t * s; int raw; bgav_bytebuffer_t buf; int flags; int pos; parse_func parse; // parse_header_func parse_header; cleanup_func cleanup; reset_func reset; parse_frame_func parse_frame; // const bgav_options_t * opt; /* Extradata */ // uint8_t * header; // int header_len; /* Private data for parsers */ void * priv; /* Raw byte offset of the start of the parser buffer */ int64_t raw_position; /* Timescales */ gavl_video_format_t * format; /* Cache */ cache_t cache[PARSER_CACHE_MAX]; int cache_size; /* Packets */ packet_t * packets; int packets_alloc; int num_packets; int low_delay; int64_t timestamp; int eof; int non_b_count; int last_non_b_frame; int packet_duration; // int64_t packet_timestamp; bgav_packet_t * out_packet; bgav_packet_source_t src; }; void bgav_video_parser_init_mpeg12(bgav_video_parser_t * parser); void bgav_video_parser_init_h264(bgav_video_parser_t * parser); void bgav_video_parser_init_mpeg4(bgav_video_parser_t * parser); void bgav_video_parser_init_cavs(bgav_video_parser_t * parser); void bgav_video_parser_init_vc1(bgav_video_parser_t * parser); void bgav_video_parser_init_dirac(bgav_video_parser_t * parser); void bgav_video_parser_init_mjpa(bgav_video_parser_t * parser); void bgav_video_parser_flush(bgav_video_parser_t * parser, int bytes); void bgav_video_parser_extract_header(bgav_video_parser_t * parser); void bgav_video_parser_set_coding_type(bgav_video_parser_t * parser, int type); void bgav_video_parser_set_sequence_end(bgav_video_parser_t * parser, int code_len); int bgav_video_parser_check_output(bgav_video_parser_t * parser); /* Notify the parser of a new picture */ int bgav_video_parser_set_picture_start(bgav_video_parser_t * parser); /* Notify the parser of the end of a global header */ void bgav_video_parser_set_header_end(bgav_video_parser_t * parser); /* Set the framerate, can be called multiple times before the first picture start code */ void bgav_video_parser_set_framerate(bgav_video_parser_t * parser); gmerlin-avdecoder-1.2.0~dfsg/include/rmff.h0000644000000000000000000001574111764363500017404 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include /* * This is shared between the real rtsp code and * the rm demultiplexer */ /* Chunk header */ typedef struct { int64_t start_position; uint32_t id; uint32_t size; uint16_t version; } bgav_rmff_chunk_t; int bgav_rmff_chunk_header_read(bgav_rmff_chunk_t * c, bgav_input_context_t * input); /* File header */ typedef struct { /* Version 0 */ uint32_t file_version; uint32_t num_headers; } bgav_rmff_file_header_t; int bgav_rmff_file_header_read(bgav_rmff_chunk_t * c, bgav_input_context_t * input, bgav_rmff_file_header_t * ret); /* Properties header */ typedef struct { /* Version 0 */ uint32_t max_bit_rate; uint32_t avg_bit_rate; uint32_t max_packet_size; uint32_t avg_packet_size; uint32_t num_packets; uint32_t duration; uint32_t preroll; uint32_t index_offset; uint32_t data_offset; uint16_t num_streams; uint16_t flags; } bgav_rmff_prop_t; int bgav_rmff_prop_read(bgav_rmff_chunk_t * c, bgav_input_context_t * input, bgav_rmff_prop_t * ret); void bgav_rmff_prop_dump(bgav_rmff_prop_t * p); typedef struct { /* Version 0 */ uint16_t num_physical_streams; uint16_t * physical_stream_numbers; uint32_t * data_offsets; uint16_t num_rules; uint16_t * rule_to_physical_stream_number_map; uint16_t num_properties; struct { uint8_t name_length; uint8_t * name; int32_t type; uint16_t value_length; uint8_t * value_data; } * properties; } bgav_rmff_logical_stream_t; int bgav_rmff_logical_stream_read(bgav_input_context_t * input, bgav_rmff_logical_stream_t * ret); void bgav_rmff_logical_stream_dump(bgav_rmff_logical_stream_t * l); void bgav_rmff_logical_stream_free(bgav_rmff_logical_stream_t * l); /* Media properties */ typedef struct { /* Version 0 */ uint16_t stream_number; uint32_t max_bit_rate; uint32_t avg_bit_rate; uint32_t max_packet_size; uint32_t avg_packet_size; uint32_t start_time; uint32_t preroll; uint32_t duration; uint8_t stream_name_size; char * stream_name; uint8_t mime_type_size; char * mime_type; uint32_t type_specific_len; uint8_t * type_specific_data; int is_logical_stream; bgav_rmff_logical_stream_t logical_stream; } bgav_rmff_mdpr_t; void bgav_rmff_mdpr_dump(bgav_rmff_mdpr_t * m); int bgav_rmff_mdpr_read(bgav_rmff_chunk_t * c, bgav_input_context_t * input, bgav_rmff_mdpr_t * ret); void bgav_rmff_mdpr_free(bgav_rmff_mdpr_t * m); /* Content description */ typedef struct { /* Version 0 */ uint16_t title_len; char * title; uint16_t author_len; char * author; uint16_t copyright_len; char * copyright; uint16_t comment_len; char * comment; } bgav_rmff_cont_t; void bgav_rmff_cont_dump(bgav_rmff_cont_t * m); int bgav_rmff_cont_read(bgav_rmff_chunk_t * c, bgav_input_context_t * input, bgav_rmff_cont_t * ret); void bgav_rmff_cont_free(bgav_rmff_cont_t * m); /* Index */ typedef struct { uint16_t version; uint32_t timestamp; uint32_t offset; uint32_t packet_count_for_this_packet; } bgav_rmff_index_record_t; int bgav_rmff_index_record_read(bgav_input_context_t * input, bgav_rmff_index_record_t * ret); typedef struct { uint32_t num_indices; uint16_t stream_number; uint32_t next_index_header; bgav_rmff_index_record_t * records; } bgav_rmff_indx_t; int bgav_rmff_indx_read(bgav_input_context_t * input, bgav_rmff_indx_t * ret); void bgav_rmff_indx_free(bgav_rmff_indx_t * indx); void bgav_rmff_indx_dump(bgav_rmff_indx_t * indx); /* Now, the overall file header */ typedef struct { bgav_rmff_mdpr_t mdpr; bgav_rmff_indx_t indx; int has_indx; } bgav_rmff_stream_t; typedef struct { /* Version 0 */ uint32_t num_packets; uint32_t next_data_header; } bgav_rmff_data_header_t; int bgav_rmff_data_header_read(bgav_input_context_t * ctx, bgav_rmff_data_header_t * ret); /* Data packet header */ typedef struct { uint16_t object_version; /* if ((object_version == 0) || (object_version == 1)) */ uint16_t length; uint16_t stream_number; uint32_t timestamp; /* if (object_version == 0) */ uint8_t packet_group; uint8_t flags; /* if (object_version == 1) */ uint16_t asm_rule; uint8_t asm_flags; } bgav_rmff_packet_header_t; int bgav_rmff_packet_header_read(bgav_input_context_t * input, bgav_rmff_packet_header_t * ret); void bgav_rmff_packet_header_dump(bgav_rmff_packet_header_t * h); void bgav_rmff_packet_header_to_pointer(bgav_rmff_packet_header_t * h, uint8_t * ptr); typedef struct { bgav_rmff_file_header_t file_header; bgav_rmff_prop_t prop; bgav_rmff_cont_t cont; bgav_rmff_data_header_t data_header; int num_streams; bgav_rmff_stream_t * streams; /* Filled in during parsing */ int64_t data_start; int64_t data_size; } bgav_rmff_header_t; /* Used by the demuxer for reading files */ bgav_rmff_header_t * bgav_rmff_header_read(bgav_input_context_t * ctx); /* Used by the rtsp plugin */ bgav_rmff_header_t * bgav_rmff_header_create(int num_streams); /* Used by both */ void bgav_rmff_header_destroy(bgav_rmff_header_t * h); /* Open a rm demuxer with header as argument */ int bgav_demux_rm_open_with_header(bgav_demuxer_context_t * ctx, bgav_rmff_header_t * h); /* Create an rmdff header from an sdp structure */ bgav_rmff_header_t * bgav_rmff_header_create_from_sdp(const bgav_options_t*opt, bgav_sdp_t * sdp, char ** stream_rules); void bgav_rmff_header_dump(bgav_rmff_header_t * header); gmerlin-avdecoder-1.2.0~dfsg/include/Makefile.in0000644000000000000000000004465311764363514020357 0ustar rootroot# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = include DIST_COMMON = $(noinst_HEADERS) $(pkginclude_HEADERS) \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/bgav_version.h.in $(srcdir)/config.h.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/avcodec.m4 \ $(top_srcdir)/m4/avformat.m4 $(top_srcdir)/m4/check_funcs.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/lqt_opt_cflags.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = bgav_version.h CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(pkgincludedir)" HEADERS = $(noinst_HEADERS) $(pkginclude_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkgincludedir = $(includedir)/gmerlin ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVCODEC_CFLAGS = @AVCODEC_CFLAGS@ AVCODEC_LIBS = @AVCODEC_LIBS@ AVCODEC_REQUIRED = @AVCODEC_REQUIRED@ AVFORMAT_CFLAGS = @AVFORMAT_CFLAGS@ AVFORMAT_LIBS = @AVFORMAT_LIBS@ AVFORMAT_REQUIRED = @AVFORMAT_REQUIRED@ AWK = @AWK@ BGAV_VERSION = @BGAV_VERSION@ BGAV_VERSION_MAJOR = @BGAV_VERSION_MAJOR@ BGAV_VERSION_MICRO = @BGAV_VERSION_MICRO@ BGAV_VERSION_MINOR = @BGAV_VERSION_MINOR@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CDIO_CFLAGS = @CDIO_CFLAGS@ CDIO_LIBS = @CDIO_LIBS@ CDIO_REQUIRED = @CDIO_REQUIRED@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DCA_CFLAGS = @DCA_CFLAGS@ DCA_LIBS = @DCA_LIBS@ DCA_REQUIRED = @DCA_REQUIRED@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOXYGEN = @DOXYGEN@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DVDREAD_CFLAGS = @DVDREAD_CFLAGS@ DVDREAD_LIBS = @DVDREAD_LIBS@ DVDREAD_REQUIRED = @DVDREAD_REQUIRED@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FAAD2_CFLAGS = @FAAD2_CFLAGS@ FAAD2_LIBS = @FAAD2_LIBS@ FAAD2_REQUIRED = @FAAD2_REQUIRED@ FGREP = @FGREP@ FLAC_CFLAGS = @FLAC_CFLAGS@ FLAC_LIBS = @FLAC_LIBS@ FLAC_REQUIRED = @FLAC_REQUIRED@ GAVL_CFLAGS = @GAVL_CFLAGS@ GAVL_LIBS = @GAVL_LIBS@ GAVL_REQUIRED = @GAVL_REQUIRED@ GMERLIN_CFLAGS = @GMERLIN_CFLAGS@ GMERLIN_DEP_LIBS = @GMERLIN_DEP_LIBS@ GMERLIN_LIBS = @GMERLIN_LIBS@ GMERLIN_PLUGIN_LDFLAGS = @GMERLIN_PLUGIN_LDFLAGS@ GMERLIN_REQUIRED = @GMERLIN_REQUIRED@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ ICONV_LIBS = @ICONV_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBA52_CFLAGS = @LIBA52_CFLAGS@ LIBA52_LIBS = @LIBA52_LIBS@ LIBA52_REQUIRED = @LIBA52_REQUIRED@ LIBBGAV_CFLAGS = @LIBBGAV_CFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMPEG2_CFLAGS = @LIBMPEG2_CFLAGS@ LIBMPEG2_LIBS = @LIBMPEG2_LIBS@ LIBMPEG2_REQUIRED = @LIBMPEG2_REQUIRED@ LIBOBJS = @LIBOBJS@ LIBPOSTPROC_CFLAGS = @LIBPOSTPROC_CFLAGS@ LIBPOSTPROC_LIBS = @LIBPOSTPROC_LIBS@ LIBPOSTPROC_REQUIRED = @LIBPOSTPROC_REQUIRED@ LIBS = @LIBS@ LIBSWSCALE_CFLAGS = @LIBSWSCALE_CFLAGS@ LIBSWSCALE_LIBS = @LIBSWSCALE_LIBS@ LIBSWSCALE_REQUIRED = @LIBSWSCALE_REQUIRED@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTVERSION_AGE = @LTVERSION_AGE@ LTVERSION_CURRENT = @LTVERSION_CURRENT@ LTVERSION_REVISION = @LTVERSION_REVISION@ MAD_CFLAGS = @MAD_CFLAGS@ MAD_LIBS = @MAD_LIBS@ MAD_REQUIRED = @MAD_REQUIRED@ MAKEINFO = @MAKEINFO@ MJPEGTOOLS_CFLAGS = @MJPEGTOOLS_CFLAGS@ MJPEGTOOLS_LIBS = @MJPEGTOOLS_LIBS@ MJPEGTOOLS_REQUIRED = @MJPEGTOOLS_REQUIRED@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MUSEPACK_CFLAGS = @MUSEPACK_CFLAGS@ MUSEPACK_LIBS = @MUSEPACK_LIBS@ MUSEPACK_REQUIRED = @MUSEPACK_REQUIRED@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ OGG_REQUIRED = @OGG_REQUIRED@ OPENJPEG_CFLAGS = @OPENJPEG_CFLAGS@ OPENJPEG_LIBS = @OPENJPEG_LIBS@ OPENJPEG_REQUIRED = @OPENJPEG_REQUIRED@ OPT_CFLAGS = @OPT_CFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ PNG_REQUIRED = @PNG_REQUIRED@ POSUB = @POSUB@ RANLIB = @RANLIB@ REALDLL_LIBS = @REALDLL_LIBS@ SAMBA_CFLAGS = @SAMBA_CFLAGS@ SAMBA_LIBS = @SAMBA_LIBS@ SAMBA_REQUIRED = @SAMBA_REQUIRED@ SCHROEDINGER_CFLAGS = @SCHROEDINGER_CFLAGS@ SCHROEDINGER_LIBS = @SCHROEDINGER_LIBS@ SCHROEDINGER_REQUIRED = @SCHROEDINGER_REQUIRED@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ SPEEX_REQUIRED = @SPEEX_REQUIRED@ STRIP = @STRIP@ THEORADEC_CFLAGS = @THEORADEC_CFLAGS@ THEORADEC_LIBS = @THEORADEC_LIBS@ THEORADEC_REQUIRED = @THEORADEC_REQUIRED@ TIFF_CFLAGS = @TIFF_CFLAGS@ TIFF_LIBS = @TIFF_LIBS@ TIFF_REQUIRED = @TIFF_REQUIRED@ TOP_SRCDIR = @TOP_SRCDIR@ USE_NLS = @USE_NLS@ VDPAU_CFLAGS = @VDPAU_CFLAGS@ VDPAU_LIBS = @VDPAU_LIBS@ VDPAU_REQUIRED = @VDPAU_REQUIRED@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ VORBIS_REQUIRED = @VORBIS_REQUIRED@ W32_NO_OPTIMIZE = @W32_NO_OPTIMIZE@ XADLL_LIBS = @XADLL_LIBS@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_LIBS = @X_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gmerlin_plugindir = @gmerlin_plugindir@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ w32_path = @w32_path@ pkginclude_HEADERS = avdec.h bgav_version.h bgavdefs.h noinst_HEADERS = \ aac_frame.h \ a52_header.h \ asmrp.h \ audioparser_priv.h \ avdec_private.h \ bgav_dca.h \ bgav_vdpau.h \ bitstream.h \ bsf.h \ bsf_private.h \ bswap.h \ cavs_header.h \ codecs.h \ cue.h \ dirac_header.h \ dvb_channels.h \ dvframe.h \ flac_header.h \ frametype.h \ h264_header.h \ http.h \ id3.h \ language_table.h \ matroska.h \ md5.h \ mms.h \ mpa_header.h \ mpeg4_header.h \ mpegts_common.h \ mpv_header.h \ mxf.h \ nanosoft.h \ os.h \ packettimer.h \ parser.h \ pes_header.h \ pngreader.h \ ptscache.h \ qt.h \ rmff.h \ RTjpeg.h \ rtp.h \ rtsp.h \ sdp.h \ utils.h \ vc1_header.h \ videoparser_priv.h \ vorbis_comment.h \ win32codec.h \ xing.h \ yml.h EXTRA_DIST = bgav_version.h.in all: config.h $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu include/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status include/config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 bgav_version.h: $(top_builddir)/config.status $(srcdir)/bgav_version.h.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-pkgincludeHEADERS: $(pkginclude_HEADERS) @$(NORMAL_INSTALL) test -z "$(pkgincludedir)" || $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \ done uninstall-pkgincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(pkgincludedir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(pkgincludedir)" && rm -f $$files ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(HEADERS) config.h installdirs: for dir in "$(DESTDIR)$(pkgincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-pkgincludeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkgincludeHEADERS .MAKE: all install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool ctags distclean distclean-generic distclean-hdr \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-pkgincludeHEADERS install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-pkgincludeHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gmerlin-avdecoder-1.2.0~dfsg/include/bgav_version.h0000644000000000000000000000061011764363524021131 0ustar rootroot#ifndef __BGAV_VERSION_H_ #define __BGAV_VERSION_H_ #define BGAV_VERSION "1.2.0" #define BGAV_VERSION_MAJOR 1 #define BGAV_VERSION_MINOR 2 #define BGAV_VERSION_MICRO 0 #define BGAV_MAKE_BUILD(a,b,c) ((a << 16) + (b << 8) + c) #define BGAV_BUILD \ BGAV_MAKE_BUILD(BGAV_VERSION_MAJOR, \ BGAV_VERSION_MINOR, \ BGAV_VERSION_MICRO) #endif // __BGAV_VERSION_H_ gmerlin-avdecoder-1.2.0~dfsg/include/config.h.in0000644000000000000000000001775111764363513020333 0ustar rootroot/* include/config.h.in. Generated from configure.ac by autoheader. */ /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD /* Header for libavcodec */ #undef AVCODEC_HEADER /* libavformat header */ #undef AVFORMAT_HEADER /* Flac major version */ #undef BGAV_FLAC_MAJOR /* Flac minor version */ #undef BGAV_FLAC_MINOR /* Flac patchlevel */ #undef BGAV_FLAC_PATCHLEVEL /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS /* Define to 1 if you have the header file. */ #undef HAVE_BYTESWAP_H /* libcdio found */ #undef HAVE_CDIO /* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework. */ #undef HAVE_CFLOCALECOPYCURRENT /* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework. */ #undef HAVE_CFPREFERENCESCOPYAPPVALUE /* Define to 1 if you have the `closesocket' function. */ #undef HAVE_CLOSESOCKET /* libdca found */ #undef HAVE_DCA /* Define if the GNU dcgettext() function is already present or preinstalled. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the declaration of `MSG_NOSIGNAL', and to 0 if you don't. */ #undef HAVE_DECL_MSG_NOSIGNAL /* Define to 1 if you have the declaration of `SO_NOSIGPIPE', and to 0 if you don't. */ #undef HAVE_DECL_SO_NOSIGPIPE /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the header file. */ #undef HAVE_DTS_H /* Define to 1 if you have the `DVDFinish' function. */ #undef HAVE_DVDFINISH /* Define to 1 if you have the `DVDInit' function. */ #undef HAVE_DVDINIT /* Enable libdvdread */ #undef HAVE_DVDREAD /* Enable FAAD2 */ #undef HAVE_FAAD2 /* Enable FLAC */ #undef HAVE_FLAC /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #undef HAVE_FSEEKO /* Define to 1 if you have the `ftello' function. */ #undef HAVE_FTELLO /* Define to 1 if you have the `getaddrinfo' function. */ #undef HAVE_GETADDRINFO /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define if you have the iconv() function. */ #undef HAVE_ICONV /* Define to 1 if you have the `inet_aton' function. */ #undef HAVE_INET_ATON /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Enable liba52 */ #undef HAVE_LIBA52 /* Do we have libavcodec installed? */ #undef HAVE_LIBAVCODEC /* Define to 1 if you have the header file. */ #undef HAVE_LIBAVCORE_AVCORE_H /* Do we have libavformat installed? */ #undef HAVE_LIBAVFORMAT /* Define to 1 if you have the `gettextlib' library (-lgettextlib). */ #undef HAVE_LIBGETTEXTLIB /* libgsm enabled */ #undef HAVE_LIBGSM /* Define to 1 if you have the `intl' library (-lintl). */ #undef HAVE_LIBINTL /* libmpeg2 found */ #undef HAVE_LIBMPEG2 /* Enable png codec */ #undef HAVE_LIBPNG /* Do we have libpostproc installed? */ #undef HAVE_LIBPOSTPROC /* Define to 1 if you have the `pthread' library (-lpthread). */ #undef HAVE_LIBPTHREAD /* Define to 1 if you have the `pthreadGC2' library (-lpthreadGC2). */ #undef HAVE_LIBPTHREADGC2 /* Define to 1 if you have the `regex' library (-lregex). */ #undef HAVE_LIBREGEX /* Do we have libswscale installed? */ #undef HAVE_LIBSWSCALE /* Enable tiff codec */ #undef HAVE_LIBTIFF /* Define to 1 if you have the `z' library (-lz). */ #undef HAVE_LIBZ /* Linux DVB Support available */ #undef HAVE_LINUXDVB /* Define to 1 if you have the header file. */ #undef HAVE_LINUX_DVB_DMX_H /* Define to 1 if you have the header file. */ #undef HAVE_LINUX_DVB_FRONTEND_H /* Enable MAD */ #undef HAVE_MAD /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Do we have mjpegtools installed? */ #undef HAVE_MJPEGTOOLS /* Enable Musepack */ #undef HAVE_MUSEPACK /* Use new header file for faad2 */ #undef HAVE_NEAACDEC_H /* Ogg libraries are there */ #undef HAVE_OGG /* Enable openjpeg codec */ #undef HAVE_OPENJPEG /* Define to 1 if you have the `poll' function. */ #undef HAVE_POLL /* System supports POSIX semaphores */ #undef HAVE_POSIX_SEMAPHORES /* Define to 1 if the system has the type `pp_context'. */ #undef HAVE_PP_CONTEXT /* Define to 1 if the system has the type `pp_context_t'. */ #undef HAVE_PP_CONTEXT_T /* Define to 1 if the system has the type `pp_mode'. */ #undef HAVE_PP_MODE /* Define to 1 if the system has the type `pp_mode_t'. */ #undef HAVE_PP_MODE_T /* RealPlayer dll loader enabled */ #undef HAVE_REALDLL /* Samba support */ #undef HAVE_SAMBA /* Do we have schroedinger installed? */ #undef HAVE_SCHROEDINGER /* Do we have speex installed? */ #undef HAVE_SPEEX /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_MMAN_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Do we have theora decoder installed? */ #undef HAVE_THEORADEC /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the `vasprintf' function. */ #undef HAVE_VASPRINTF /* Enable tiff codec */ #undef HAVE_VDPAU /* Vorbis libraries are there */ #undef HAVE_VORBIS /* Define to 1 if you have the `vorbis_synthesis_restart' function. */ #undef HAVE_VORBIS_SYNTHESIS_RESTART /* Win32 dll loader enabled */ #undef HAVE_W32DLL /* Xanim dll loader enabled */ #undef HAVE_XADLL /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* libpostproc header */ #undef POSTPROC_HEADER /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* libswscale header */ #undef SWSCALE_HEADER /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # undef _GNU_SOURCE #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # undef _POSIX_PTHREAD_SEMANTICS #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # undef _TANDEM_SOURCE #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # undef __EXTENSIONS__ #endif /* Header for vdpau */ #undef VDPAU_HEADER /* Version number of package */ #undef VERSION /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ #if defined AC_APPLE_UNIVERSAL_BUILD # if defined __BIG_ENDIAN__ # define WORDS_BIGENDIAN 1 # endif #else # ifndef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN # endif #endif /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ #undef _LARGEFILE_SOURCE /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES /* Define to 1 if on MINIX. */ #undef _MINIX /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ #undef _POSIX_1_SOURCE /* Define to 1 if you need to in order for `stat' and other things to work. */ #undef _POSIX_SOURCE gmerlin-avdecoder-1.2.0~dfsg/include/mxf.h0000644000000000000000000003142211764363500017236 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* Based on the ffmpeg MXF demuxer with lots of changes */ typedef uint8_t mxf_ul_t[16]; typedef struct mxf_metadata_s mxf_metadata_t; typedef struct mxf_descriptor_s mxf_descriptor_t; typedef struct mxf_sequence_s mxf_sequence_t; typedef struct mxf_track_s mxf_track_t; typedef struct mxf_source_clip_s mxf_source_clip_t; typedef struct mxf_timecode_component_s mxf_timecode_component_t; typedef struct mxf_identification_s mxf_identification_t; typedef struct mxf_essence_container_data_s mxf_essence_container_data_t; typedef struct mxf_preface_s mxf_preface_t; typedef struct mxf_content_storage_s mxf_content_storage_t; typedef struct mxf_file_s mxf_file_t; typedef struct partition_s partition_t; typedef struct mxf_partition_s mxf_partition_t; /* Move to the next startcode */ int bgav_mxf_sync(bgav_input_context_t * input); typedef enum { WRAP_UNKNOWN = 0, WRAP_FRAME = 1, WRAP_CLIP = 2, WRAP_CUSTOM = 3, } mxf_wrapping_type_t; #if 1 typedef enum { MXF_OP_UNKNOWN = 0, MXF_OP_1a = 1, MXF_OP_1b = 2, MXF_OP_1c = 3, MXF_OP_2a = 4, MXF_OP_2b = 5, MXF_OP_2c = 6, MXF_OP_3a = 7, MXF_OP_3b = 8, MXF_OP_3c = 9, MXF_OP_ATOM = 10, } mxf_op_t; #endif /* Structures found in MXF files and functions to operate on them */ /* KLV */ typedef struct { mxf_ul_t key; uint64_t length; int64_t endpos; } mxf_klv_t; int bgav_mxf_klv_read(bgav_input_context_t * input, mxf_klv_t * ret); void bgav_mxf_klv_dump(int indent, mxf_klv_t * ret); /* Partition */ struct mxf_partition_s { uint16_t major_version; uint16_t minor_version; uint32_t kag_size; uint64_t this_partition; uint64_t previous_partition; uint64_t footer_partition; uint64_t header_byte_count; uint64_t index_byte_count; uint32_t index_sid; uint64_t body_offset; uint32_t body_sid; uint8_t operational_pattern[16]; uint32_t num_essence_container_types; mxf_ul_t * essence_container_types; }; int bgav_mxf_partition_read(bgav_input_context_t * input, mxf_klv_t * parent, mxf_partition_t * ret); void bgav_mxf_partition_dump(int indent, mxf_partition_t * ret); void bgav_mxf_partition_free(mxf_partition_t * ret); /* Primer pack */ typedef struct { uint32_t num_entries; struct { uint16_t localTag; mxf_ul_t uid; } * entries; } mxf_primer_pack_t; int bgav_mxf_primer_pack_read(bgav_input_context_t * input, mxf_primer_pack_t * ret); void bgav_mxf_primer_pack_dump(int indent, mxf_primer_pack_t * ret); void bgav_mxf_primer_pack_free(mxf_primer_pack_t * ret); /* Header Metadata */ typedef enum { MXF_TYPE_MATERIAL_PACKAGE = (1<<0), MXF_TYPE_SOURCE_PACKAGE = (1<<1), MXF_TYPE_SOURCE_CLIP = (1<<2), MXF_TYPE_TIMECODE_COMPONENT = (1<<3), MXF_TYPE_SEQUENCE = (1<<4), MXF_TYPE_MULTIPLE_DESCRIPTOR = (1<<5), MXF_TYPE_DESCRIPTOR = (1<<6), MXF_TYPE_TRACK = (1<<7), MXF_TYPE_CRYPTO_CONTEXT = (1<<8), MXF_TYPE_IDENTIFICATION = (1<<9), MXF_TYPE_ESSENCE_CONTAINER_DATA = (1<<10), MXF_TYPE_CONTENT_STORAGE = (1<<11), MXF_TYPE_PREFACE = (1<<12) } mxf_metadata_type_t; #define MXF_TYPE_ALL 0xFFFFFFFF struct mxf_metadata_s { mxf_metadata_type_t type; mxf_ul_t uid; mxf_ul_t generation_ul; }; void bgav_mxf_metadata_dump_common(int indent, mxf_metadata_t * m); /* Descriptor */ struct mxf_descriptor_s { mxf_metadata_t common; mxf_ul_t essence_container_ul; mxf_ul_t essence_codec_ul; uint32_t sample_rate_num; uint32_t sample_rate_den; uint32_t aspect_ratio_num; uint32_t aspect_ratio_den; uint32_t width; uint32_t height; uint32_t sampled_width; uint32_t sampled_height; uint32_t display_width; uint32_t display_height; uint32_t sampled_x_offset; uint32_t sampled_y_offset; uint32_t channels; uint32_t bits_per_sample; uint32_t num_subdescriptor_refs; mxf_ul_t *subdescriptor_refs; uint32_t linked_track_id; uint8_t locked; /* * 0 FULL_FRAME: frame consists of a full sample in progressive scan lines * 1 SEPARATE_FIELDS: sample consists of two fields, which when interlaced produce a full sample * 2 ONE_FIELD: sample consists of two interlaced fields, but only one field is stored in * the data stream * 3 MIXED_FIELDS * 4 SEGMENTED FRAME */ uint8_t frame_layout; /* The number of the field which is considered temporally to come first */ uint8_t field_dominance; uint32_t video_line_map_size; uint32_t * video_line_map; uint32_t active_bits_per_sample; uint32_t horizontal_subsampling; uint32_t vertical_subsampling; uint64_t container_duration; uint16_t block_align; uint32_t avg_bps; /* MPEG-4 extradata (in the future maybe others too) */ uint8_t *ext_data; int ext_size; /* Secondary */ mxf_metadata_t ** subdescriptors; mxf_wrapping_type_t wrapping_type; uint32_t fourcc; }; void bgav_mxf_descriptor_dump(int indent, mxf_descriptor_t * d); void bgav_mxf_descriptor_free(mxf_descriptor_t * d); /* Sequence */ struct mxf_sequence_s { mxf_metadata_t common; mxf_ul_t data_definition_ul; uint32_t num_structural_component_refs; mxf_ul_t *structural_component_refs; int64_t duration; /* Secondary */ int is_timecode; /* stream_type will be BGAV_STREAM_UNKNOWN then */ bgav_stream_type_t stream_type; mxf_metadata_t ** structural_components; }; void bgav_mxf_sequence_dump(int indent, mxf_sequence_t * s); void bgav_mxf_sequence_free(mxf_sequence_t * s); /* Track */ struct mxf_track_s { mxf_metadata_t common; mxf_ul_t sequence_ref; uint32_t track_id; uint8_t track_number[4]; uint32_t edit_rate_num; uint32_t edit_rate_den; uint64_t origin; char * name; /* Secondary */ mxf_metadata_t * sequence; /* mandatory, and only one */ int num_packets; /* If it's a source track: Number of klv packets found for this track */ int64_t max_packet_size; /* Maximum size of a klv packet */ }; void bgav_mxf_track_dump(int indent, mxf_track_t * t); void bgav_mxf_track_free(mxf_track_t * t); /* Package */ typedef struct { mxf_metadata_t common; mxf_ul_t * track_refs; uint32_t num_track_refs; mxf_ul_t package_ul; mxf_ul_t descriptor_ref; uint64_t creation_date; uint64_t modification_date; char * generic_name; /* Secondary */ mxf_metadata_t * descriptor; mxf_metadata_t ** tracks; /* Tertiary */ int num_audio_tracks; int num_video_tracks; int num_timecode_tracks; mxf_metadata_t * timecode_track; } mxf_package_t; void bgav_mxf_package_dump(int indent, mxf_package_t * p); void bgav_mxf_package_free(mxf_package_t * p); /* Structural component */ struct mxf_source_clip_s { mxf_metadata_t common; mxf_ul_t source_package_ref; mxf_ul_t data_definition_ul; int64_t duration; int64_t start_position; uint32_t source_track_id; /* Secondary */ mxf_metadata_t * source_package; // mxf_track_t * source_track; // mxf_descriptor_t * source_descriptor; }; void bgav_mxf_source_clip_dump(int indent, mxf_source_clip_t * s); void bgav_mxf_source_clip_free(mxf_source_clip_t * s); /* Timecode component */ struct mxf_timecode_component_s { mxf_metadata_t common; mxf_ul_t data_definition_ul; uint16_t rounded_timecode_base; uint64_t start_timecode; uint64_t duration; uint8_t drop_frame; }; void bgav_mxf_timecode_component_dump(int indent, mxf_timecode_component_t * s); void bgav_mxf_timecode_component_free(mxf_timecode_component_t * s); /* Identification */ typedef struct { uint16_t maj; uint16_t min; uint16_t tweak; uint16_t build; uint16_t rel; } mxf_version_t; struct mxf_identification_s { mxf_metadata_t common; mxf_ul_t this_generation_ul; char * company_name; char * product_name; char * version_string; char * platform; mxf_ul_t product_ul; uint64_t modification_date; mxf_version_t product_version; mxf_version_t toolkit_version; }; void bgav_mxf_identification_dump(int indent, mxf_identification_t * s); void bgav_mxf_identification_free(mxf_identification_t * s); /* Essence container data */ struct mxf_essence_container_data_s { mxf_metadata_t common; mxf_ul_t linked_package_ref; uint32_t index_sid; uint32_t body_sid; mxf_metadata_t * linked_package; }; void bgav_mxf_essence_container_data_dump(int indent, mxf_essence_container_data_t * s); void bgav_mxf_essence_container_data_free(mxf_essence_container_data_t * s); /* Preface */ struct mxf_preface_s { mxf_metadata_t common; uint64_t last_modified_date; uint16_t version; mxf_ul_t * identification_refs; uint32_t num_identification_refs; mxf_ul_t content_storage_ref; mxf_ul_t operational_pattern_ul; mxf_ul_t * essence_container_types; uint32_t num_essence_container_types; mxf_ul_t * dm_schemes; uint32_t num_dm_schemes; mxf_ul_t primary_package_ul; uint32_t object_model_version; /* Secondary */ mxf_metadata_t * content_storage; mxf_metadata_t ** identifications; mxf_op_t operational_pattern; }; void bgav_mxf_preface_dump(int indent, mxf_preface_t * s); void bgav_mxf_preface_free(mxf_preface_t * s); /* Content storage */ struct mxf_content_storage_s { mxf_metadata_t common; uint32_t num_package_refs; mxf_ul_t * package_refs; uint32_t num_essence_container_data_refs; mxf_ul_t * essence_container_data_refs; mxf_metadata_t ** packages; mxf_metadata_t ** essence_containers; }; void bgav_mxf_content_storage_dump(int indent, mxf_content_storage_t * s); void bgav_mxf_content_storage_free(mxf_content_storage_t * s); /* Index table segment */ typedef struct { mxf_ul_t uid; uint32_t edit_rate_num; uint32_t edit_rate_den; uint64_t start_position; uint64_t duration; uint32_t edit_unit_byte_count; uint32_t index_sid; uint32_t body_sid; uint8_t slice_count; struct { uint8_t pos_table_index; uint8_t slice; uint32_t element_delta; } * delta_entries; uint32_t num_delta_entries; struct { int8_t temporal_offset; int8_t anchor_offset; uint8_t flags; uint64_t offset; } * entries; uint32_t num_entries; } mxf_index_table_segment_t; void bgav_mxf_index_table_segment_dump(int indent, mxf_index_table_segment_t * idx); void bgav_mxf_index_table_segment_free(mxf_index_table_segment_t * idx); /* Toplevel file structure */ struct partition_s { mxf_partition_t p; mxf_primer_pack_t primer_pack; mxf_metadata_t ** metadata; int num_metadata; /* Preface is the parent of all metadata contained in the below array */ mxf_metadata_t * preface; /* Secondary variables */ int num_source_packages; int num_material_packages; int num_descriptors; int max_source_sequence_components; int max_material_sequence_components; int64_t start_pos; int64_t end_pos; }; struct mxf_file_s { partition_t header; /* Index table segments */ mxf_index_table_segment_t ** index_segments; int num_index_segments; partition_t * body_partitions; int num_body_partitions; int64_t data_start; }; int bgav_mxf_file_read(bgav_input_context_t * input, mxf_file_t * ret); void bgav_mxf_file_dump(mxf_file_t * ret); void bgav_mxf_file_free(mxf_file_t * ret); uint32_t bgav_mxf_get_audio_fourcc(mxf_descriptor_t * d); uint32_t bgav_mxf_get_video_fourcc(mxf_descriptor_t * d); bgav_stream_t * bgav_mxf_find_stream(mxf_file_t * f, bgav_demuxer_context_t * t, mxf_ul_t ul); mxf_descriptor_t * bgav_mxf_get_source_descriptor(mxf_file_t * file, mxf_package_t * p, mxf_track_t * st); gmerlin-avdecoder-1.2.0~dfsg/include/ptscache.h0000644000000000000000000000327211764363500020240 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #define PTS_CACHE_SIZE 32 typedef struct { int64_t pts; int duration; int used; gavl_timecode_t tc; } bgav_pts_cache_entry_t; typedef struct { bgav_pts_cache_entry_t entries[PTS_CACHE_SIZE]; } bgav_pts_cache_t; void bgav_pts_cache_push(bgav_pts_cache_t * c, int64_t pts, int duration, gavl_timecode_t tc, int * index, bgav_pts_cache_entry_t ** e); void bgav_pts_cache_clear(bgav_pts_cache_t * c); /* Get the smallest timestamp */ int64_t bgav_pts_cache_get_first(bgav_pts_cache_t * c, int * duration, gavl_timecode_t * tc); int64_t bgav_pts_cache_peek_last(bgav_pts_cache_t * c, int * duration); gmerlin-avdecoder-1.2.0~dfsg/include/rtsp.h0000644000000000000000000000432611764363500017437 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include /* rtsp.c */ typedef struct bgav_rtsp_s bgav_rtsp_t; /* Housekeeping */ bgav_rtsp_t * bgav_rtsp_create(const bgav_options_t * opt) __attribute__ ((visibility("default"))); /* Open the URL and send the OPTIONS request */ int bgav_rtsp_open(bgav_rtsp_t *, const char * url, int * got_redirected) __attribute__ ((visibility("default"))); int bgav_rtsp_reopen(bgav_rtsp_t * rtsp); void bgav_rtsp_close(bgav_rtsp_t *, int teardown); /* Return raw socket */ int bgav_rtsp_get_fd(bgav_rtsp_t *); /* Append a field to the next request header */ void bgav_rtsp_schedule_field(bgav_rtsp_t *, const char * field); /* Get a field from the last answer */ const char * bgav_rtsp_get_answer(bgav_rtsp_t *, const char * name); /* Now, the requests follow */ int bgav_rtsp_request_describe(bgav_rtsp_t *, int * got_redirected); /* Get the redirection URL */ const char * bgav_rtsp_get_url(bgav_rtsp_t *); /* After a successful describe request, the session description is there */ bgav_sdp_t * bgav_rtsp_get_sdp(bgav_rtsp_t *); /* Issue a SETUP */ int bgav_rtsp_request_setup(bgav_rtsp_t *, const char * arg); /* Set Parameter */ int bgav_rtsp_request_setparameter(bgav_rtsp_t *); /* Play */ int bgav_rtsp_request_play(bgav_rtsp_t *); gmerlin-avdecoder-1.2.0~dfsg/include/vorbis_comment.h0000644000000000000000000000320611764363500021471 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ typedef struct { char * vendor; int num_user_comments; char ** user_comments; } bgav_vorbis_comment_t; int bgav_vorbis_comment_read(bgav_vorbis_comment_t * ret, bgav_input_context_t * input); void bgav_vorbis_comment_2_metadata(bgav_vorbis_comment_t * comment, bgav_metadata_t * m); void bgav_vorbis_comment_free(bgav_vorbis_comment_t * ret); void bgav_vorbis_comment_dump(bgav_vorbis_comment_t * ret); const char * bgav_vorbis_comment_get_field(bgav_vorbis_comment_t * vc, const char * key); /* doesn't belong here actually */ void bgav_vorbis_set_channel_setup(gavl_audio_format_t * format); gmerlin-avdecoder-1.2.0~dfsg/include/yml.h0000644000000000000000000000512211764363500017243 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* VERY simple and nonstandard xml-like parser */ /* * We need this, because asx files are, according to * Microsoft Documentation, xml-based, but the same doc says, * that tag- and attribute names are case insensitive, * which is explicitely forbidden by the xml-spec. * Since we can't tell libxml to be case insensitive, * we need our own parser. * * We prefix everything with yml, so we never forget, * that we don't deal with standard xml here. */ typedef struct bgav_yml_attr_s { struct bgav_yml_attr_s * next; char * name; char * value; } bgav_yml_attr_t; typedef struct bgav_yml_node_s { char * name; /* NULL if we have a pure text node */ char * pi; /* Processing info */ char * str; /* Text for text nodes */ bgav_yml_attr_t * attributes; /* Attributes of the node */ // bgav_yml_attr_t * xml_attributes; /* Attributes of the -node */ struct bgav_yml_node_s * next; struct bgav_yml_node_s * children; } bgav_yml_node_t; bgav_yml_node_t * bgav_yml_parse(bgav_input_context_t * input) __attribute__ ((visibility("default"))); void bgav_yml_dump(bgav_yml_node_t *) __attribute__ ((visibility("default"))); void bgav_yml_free(bgav_yml_node_t *) __attribute__ ((visibility("default"))); const char * bgav_yml_get_attribute(bgav_yml_node_t *, const char * name); const char * bgav_yml_get_attribute_i(bgav_yml_node_t *, const char * name); int bgav_yml_probe(bgav_input_context_t * input); bgav_yml_node_t * bgav_yml_find_by_name(bgav_yml_node_t * yml, const char * name); bgav_yml_node_t * bgav_yml_find_by_pi(bgav_yml_node_t * yml, const char * pi); gmerlin-avdecoder-1.2.0~dfsg/include/bswap.h0000644000000000000000000000710211764363500017556 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* Ported from ffmpeg */ #ifndef __BSWAP_H__ #define __BSWAP_H__ #ifdef HAVE_BYTESWAP_H #include #else #include #ifdef ARCH_X86 static inline unsigned short ByteSwap16(unsigned short x) { __asm("xchgb %b0,%h0" : "=q" (x) : "0" (x)); return x; } #define bswap_16(x) ByteSwap16(x) static inline unsigned int ByteSwap32(unsigned int x) { #if __CPU__ > 386 __asm("bswap %0": "=r" (x) : #else __asm("xchgb %b0,%h0\n" " rorl $16,%0\n" " xchgb %b0,%h0": "=q" (x) : #endif "0" (x)); return x; } #define bswap_32(x) ByteSwap32(x) static inline unsigned long long int ByteSwap64(unsigned long long int x) { register union { __extension__ uint64_t __ll; uint32_t __l[2]; } __x; asm("xchgl %0,%1": "=r"(__x.__l[0]),"=r"(__x.__l[1]): "0"(bswap_32((unsigned long)x)),"1"(bswap_32((unsigned long)(x>>32)))); return __x.__ll; } #define bswap_64(x) ByteSwap64(x) #elif defined(ARCH_SH4) static inline uint16_t ByteSwap16(uint16_t x) { __asm__("swap.b %0,%0":"=r"(x):"0"(x)); return x; } static inline uint32_t ByteSwap32(uint32_t x) { __asm__( "swap.b %0,%0\n" "swap.w %0,%0\n" "swap.b %0,%0\n" :"=r"(x):"0"(x)); return x; } #define bswap_16(x) ByteSwap16(x) #define bswap_32(x) ByteSwap32(x) static inline uint64_t ByteSwap64(uint64_t x) { union { uint64_t ll; struct { uint32_t l,h; } l; } r; r.l.l = bswap_32 (x); r.l.h = bswap_32 (x>>32); return r.ll; } #define bswap_64(x) ByteSwap64(x) #else #define bswap_16(x) (((x) & 0x00ff) << 8 | ((x) & 0xff00) >> 8) // code from bits/byteswap.h (C) 1997, 1998 Free Software Foundation, Inc. #define bswap_32(x) \ ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) static inline uint64_t ByteSwap64(uint64_t x) { union { uint64_t ll; uint32_t l[2]; } w, r; w.ll = x; r.l[0] = bswap_32 (w.l[1]); r.l[1] = bswap_32 (w.l[0]); return r.ll; } #define bswap_64(x) ByteSwap64(x) #endif /* !ARCH_X86 */ #endif /* !HAVE_BYTESWAP_H */ // be2me ... BigEndian to MachineEndian // le2me ... LittleEndian to MachineEndian #ifdef WORDS_BIGENDIAN #define be2me_16(x) (x) #define be2me_32(x) (x) #define be2me_64(x) (x) #define le2me_16(x) bswap_16(x) #define le2me_32(x) bswap_32(x) #define le2me_64(x) bswap_64(x) #else #define be2me_16(x) bswap_16(x) #define be2me_32(x) bswap_32(x) #define be2me_64(x) bswap_64(x) #define le2me_16(x) (x) #define le2me_32(x) (x) #define le2me_64(x) (x) #endif #endif /* __BSWAP_H__ */ gmerlin-avdecoder-1.2.0~dfsg/include/flac_header.h0000644000000000000000000000560511764363500020665 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ typedef struct { uint16_t min_blocksize; uint16_t max_blocksize; uint32_t min_framesize; uint32_t max_framesize; uint32_t samplerate; int num_channels; int bits_per_sample; int64_t total_samples; uint8_t md5[16]; } bgav_flac_streaminfo_t; #define BGAV_FLAC_STREAMINFO_SIZE 34 int bgav_flac_streaminfo_read(const uint8_t * ptr, bgav_flac_streaminfo_t * ret); void bgav_flac_streaminfo_dump(bgav_flac_streaminfo_t * si); void bgav_flac_streaminfo_init_stream(bgav_flac_streaminfo_t * si, bgav_stream_t * s); /* Frame header */ // Sync,Blocking blocksize,rate channel,sample pts crc #define BGAV_FLAC_FRAMEHEADER_MIN (2+1+1+1+1) // Sync,Blocking blocksize,rate channel,sample pts size rate crc #define BGAV_FLAC_FRAMEHEADER_MAX (2+1+1+7+2+2+1) typedef struct { int blocking_strategy_code; int block_size_code; int samplerate_code; int channel_code; int samplesize_code; int64_t sample_number; /* (partly) Computed values */ int samplerate; int blocksize; int samplesize; int num_channels; } bgav_flac_frame_header_t; int bgav_flac_frame_header_read(const uint8_t * ptr, int size, bgav_flac_streaminfo_t * si, bgav_flac_frame_header_t * ret); int bgav_flac_frame_header_equal(bgav_flac_frame_header_t * h1, bgav_flac_frame_header_t * h2); int bgav_flac_check_crc(const uint8_t * ptr, int size); /* Seek table */ typedef struct { int num_entries; struct { uint64_t sample_number; uint64_t offset; uint16_t num_samples; } * entries; } bgav_flac_seektable_t; int bgav_flac_seektable_read(bgav_input_context_t * input, bgav_flac_seektable_t * ret, int size); void bgav_flac_seektable_dump(bgav_flac_seektable_t * t); void bgav_flac_seektable_free(bgav_flac_seektable_t * t); gmerlin-avdecoder-1.2.0~dfsg/include/avdec_private.h0000644000000000000000000015406611764363500021272 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include "config.h" #include #include /* Needed for fileindex stuff */ #include #include #include #define PACKET_PADDING 32 #define BGAV_MK_FOURCC(a, b, c, d) ((a<<24)|(b<<16)|(c<<8)|d) // typedef struct bgav_edl_dec_s bgav_edl_dec_t; typedef struct bgav_demuxer_s bgav_demuxer_t; typedef struct bgav_demuxer_context_s bgav_demuxer_context_t; typedef struct bgav_redirector_s bgav_redirector_t; typedef struct bgav_redirector_context_s bgav_redirector_context_t; typedef struct bgav_packet_s bgav_packet_t; typedef struct bgav_file_index_s bgav_file_index_t; typedef struct bgav_video_parser_s bgav_video_parser_t; typedef struct bgav_audio_parser_s bgav_audio_parser_t; typedef struct bgav_bsf_s bgav_bsf_t; typedef struct bgav_input_s bgav_input_t; typedef struct bgav_input_context_s bgav_input_context_t; typedef struct bgav_audio_decoder_s bgav_audio_decoder_t; typedef struct bgav_video_decoder_s bgav_video_decoder_t; typedef struct bgav_subtitle_overlay_decoder_s bgav_subtitle_overlay_decoder_t; typedef struct bgav_subtitle_reader_s bgav_subtitle_reader_t; typedef struct bgav_subtitle_reader_context_s bgav_subtitle_reader_context_t; typedef struct bgav_audio_decoder_context_s bgav_audio_decoder_context_t; typedef struct bgav_video_decoder_context_s bgav_video_decoder_context_t; typedef struct bgav_subtitle_overlay_decoder_context_s bgav_subtitle_overlay_decoder_context_t; typedef struct bgav_stream_s bgav_stream_t; typedef struct bgav_packet_buffer_s bgav_packet_buffer_t; typedef struct bgav_charset_converter_s bgav_charset_converter_t; typedef struct bgav_track_s bgav_track_t; typedef struct bgav_timecode_table_s bgav_timecode_table_t; typedef struct bgav_keyframe_table_s bgav_keyframe_table_t; typedef struct bgav_packet_pool_s bgav_packet_pool_t; typedef struct bgav_video_format_tracker_s bgav_video_format_tracker_t; #include #include #include #include /* subsequent calls of read() or peek() will return the next packet */ typedef bgav_packet_t * (*bgav_get_packet_callback)(void * data); /* Subsequent calls of read() or peek() will return the same packet */ typedef bgav_packet_t * (*bgav_peek_packet_callback)(void * data, int force); typedef struct { bgav_peek_packet_callback peek_func; /* Peek for a packet */ bgav_get_packet_callback get_func; /* Get a packet */ void * data; /* Private data for callbacks */ } bgav_packet_source_t; void bgav_packet_source_copy(bgav_packet_source_t * dst, const bgav_packet_source_t * src); #if 0 /* Metadata */ struct bgav_metadata_s { char * author; char * title; char * comment; char * copyright; char * album; char * artist; char * genre; char * date; char * albumartist; int track; }; void bgav_metadata_dump(bgav_metadata_t*m); void bgav_metadata_merge(bgav_metadata_t * dst, bgav_metadata_t * src1, bgav_metadata_t * src2); void bgav_metadata_merge2(bgav_metadata_t * dst, bgav_metadata_t * src); void bgav_metadata_free(bgav_metadata_t*); void bgav_metadata_copy(bgav_metadata_t * dst, bgav_metadata_t * src); #endif /* Decoder structures */ struct bgav_audio_decoder_s { uint32_t * fourccs; const char * name; int (*init)(bgav_stream_t*); int (*decode_frame)(bgav_stream_t*); void (*close)(bgav_stream_t*); void (*resync)(bgav_stream_t*); void (*parse)(bgav_stream_t*); bgav_audio_decoder_t * next; }; #define VCODEC_FLAG_DELAY (1<<0) struct bgav_video_decoder_s { uint32_t * fourccs; const char * name; int flags; /* * Get the format without initializing the decoder. This is * needed for compressed reading of some streams */ int (*get_format)(bgav_stream_t*, bgav_packet_t * p); int (*init)(bgav_stream_t*); /* * Decodes one frame. If frame is NULL; * the frame is skipped */ int (*decode)(bgav_stream_t*, gavl_video_frame_t*); void (*close)(bgav_stream_t*); void (*resync)(bgav_stream_t*); void (*parse)(bgav_stream_t*, int flush); /* Skip to a specified time. Only needed for decoders which are not synchronous (not one packet in, one frame out) */ int (*skipto)(bgav_stream_t*, int64_t dest, int exact); bgav_video_decoder_t * next; }; struct bgav_subtitle_overlay_decoder_s { uint32_t * fourccs; const char * name; int (*init)(bgav_stream_t*); /* Query if a subtitle is available */ int (*has_subtitle)(bgav_stream_t*); /* * Decodes one frame. If frame is NULL; * the frame is skipped */ int (*decode)(bgav_stream_t*, gavl_overlay_t*); void (*close)(bgav_stream_t*); void (*resync)(bgav_stream_t*); void (*parse)(bgav_stream_t*); bgav_subtitle_overlay_decoder_t * next; }; struct bgav_audio_decoder_context_s { void * priv; const bgav_audio_decoder_t * decoder; }; struct bgav_video_decoder_context_s { void * priv; const bgav_video_decoder_t * decoder; }; struct bgav_subtitle_overlay_decoder_context_s { void * priv; const bgav_subtitle_overlay_decoder_t * decoder; }; /* Palette support */ typedef struct { uint16_t r; uint16_t g; uint16_t b; uint16_t a; } bgav_palette_entry_t; /* These map a palette entry to a gavl format frame */ #define BGAV_PALETTE_2_RGB24(pal, dst) \ dst[0] = pal.r >> 8;\ dst[1] = pal.g >> 8;\ dst[2] = pal.b >> 8; #define BGAV_PALETTE_2_RGBA32(pal, dst) \ dst[0] = pal.r >> 8;\ dst[1] = pal.g >> 8;\ dst[2] = pal.b >> 8;\ dst[3] = pal.a >> 8; #define BGAV_PALETTE_2_BGR24(pal, dst) \ dst[2] = pal.r >> 8;\ dst[1] = pal.g >> 8;\ dst[0] = pal.b >> 8; /* Packet */ #define BGAV_CODING_TYPE_I 'I' #define BGAV_CODING_TYPE_P 'P' #define BGAV_CODING_TYPE_B 'B' #define BGAV_CODING_TYPE_D 'D' /* Unsupported */ #define PACKET_FLAG_KEY (1<<8) #define PACKET_FLAG_SKIP (1<<9) #define PACKET_FLAG_LAST (1<<10) /* If these flags are changed, the flags of the superindex must be changed as well */ #define PACKET_SET_CODING_TYPE(p, t) p->flags |= t #define PACKET_SET_KEYFRAME(p) p->flags |= PACKET_FLAG_KEY #define PACKET_SET_SKIP(p) p->flags |= PACKET_FLAG_SKIP #define PACKET_SET_LAST(p) p->flags |= PACKET_FLAG_LAST #define PACKET_GET_CODING_TYPE(p) (p->flags & 0xff) #define PACKET_GET_KEYFRAME(p) (p->flags & PACKET_FLAG_KEY) #define PACKET_GET_SKIP(p) (p->flags & PACKET_FLAG_SKIP) #define PACKET_GET_LAST(p) (p->flags & PACKET_FLAG_LAST) struct bgav_packet_s { /* For superindex files, it's the index position, for all other files, it's the file position */ int64_t position; int data_size; int data_alloc; uint8_t * data; gavl_timecode_t tc; gavl_interlace_mode_t ilace; int field2_offset; /* Offset of 2nd field if 2 field pictures are in the packet (0 else) */ int header_size; /* Size of a repeated global header */ int sequence_end_pos; /* Position of sequence end code (if any) */ int64_t pts; /* In stream timescale tics */ int64_t dts; /* In stream timescale tics */ int64_t duration; // bgav_stream_t * stream; /* The stream this packet belongs to */ gavl_audio_frame_t * audio_frame; /* For demuxers, which deliver audio frames directly */ gavl_video_frame_t * video_frame; /* For demuxers, which deliver video frames directly */ struct bgav_packet_s * next; uint32_t flags; /* Palette data */ int palette_size; bgav_palette_entry_t * palette; }; /* packet.c */ bgav_packet_t * bgav_packet_create(); void bgav_packet_destroy(bgav_packet_t*); void bgav_packet_alloc(bgav_packet_t*, int size); void bgav_packet_dump(bgav_packet_t*); void bgav_packet_dump_data(bgav_packet_t * p, int bytes); void bgav_packet_swap_data(bgav_packet_t * p1, bgav_packet_t * p2); void bgav_packet_pad(bgav_packet_t * p); void bgav_packet_reset(bgav_packet_t * p); void bgav_packet_alloc_palette(bgav_packet_t * p, int size); void bgav_packet_free_palette(bgav_packet_t * p); void bgav_packet_copy_metadata(bgav_packet_t * dst, const bgav_packet_t * src); // void bgav_packet_done_write(bgav_packet_t *); // void bgav_packet_done_read(bgav_packet_t *); void bgav_packet_set_text_subtitle(bgav_packet_t * p, const char * text, int len, int64_t start, int64_t duration); void bgav_packet_get_text_subtitle(bgav_packet_t * p, char ** text, int * text_alloc, gavl_time_t * start, gavl_time_t * duration); /* packetbuffer.c */ bgav_packet_buffer_t * bgav_packet_buffer_create(bgav_packet_pool_t * pp); void bgav_packet_buffer_destroy(bgav_packet_buffer_t*); bgav_packet_t * bgav_packet_buffer_get_packet_read(bgav_packet_buffer_t*); bgav_packet_t * bgav_packet_buffer_peek_packet_read(bgav_packet_buffer_t*); void bgav_packet_buffer_append(bgav_packet_buffer_t * b, bgav_packet_t * p); void bgav_packet_buffer_clear(bgav_packet_buffer_t*); int bgav_packet_buffer_is_empty(bgav_packet_buffer_t * b); /* packetpool.c */ bgav_packet_pool_t * bgav_packet_pool_create(); bgav_packet_t * bgav_packet_pool_get(bgav_packet_pool_t *); void bgav_packet_pool_put(bgav_packet_pool_t * pp, bgav_packet_t * p); void bgav_packet_pool_destroy(bgav_packet_pool_t*); /* Stream types (changing numeric values alters the index file format) */ typedef enum { BGAV_STREAM_UNKNOWN = 0, BGAV_STREAM_AUDIO = 1, BGAV_STREAM_VIDEO = 2, BGAV_STREAM_SUBTITLE_TEXT = 3, BGAV_STREAM_SUBTITLE_OVERLAY = 4, } bgav_stream_type_t; /* Stream structure */ #define BGAV_BITRATE_VBR -1 #define BGAV_ENDIANESS_NONE 0 // Unspecified #define BGAV_ENDIANESS_BIG 1 #define BGAV_ENDIANESS_LITTLE 2 #define STREAM_INTRA_ONLY (1<<0) #define STREAM_PARSE_FULL (1<<1) /* Not frame aligned */ #define STREAM_PARSE_FRAME (1<<2) /* Frame aligned but no keyframes */ #define STREAM_B_FRAMES (1<<3) #define STREAM_WRONG_B_TIMESTAMPS (1<<4) #define STREAM_STILL_MODE (1<<6) /* Still image mode */ #define STREAM_STILL_SHOWN (1<<7) /* Still image already shown */ #define STREAM_EOF_D (1<<8) /* End of file at demuxer */ #define STREAM_EOF_C (1<<9) /* End of file at codec */ #define STREAM_NEED_FRAMETYPES (1<<10) /* Need frame types */ /* Stream can have a nonzero start time */ #define STREAM_NEED_START_TIME (1<<11) /* Picture is available for immediate output */ #define STREAM_HAVE_PICTURE (1<<12) /* Already got the format from the parser */ #define STREAM_PARSE_HAVE_FORMAT (1<<13) #define STREAM_RAW_PACKETS (1<<14) #define STREAM_FIELD_PICTURES (1<<15) #define STREAM_FILTER_PACKETS (1<<16) #define STREAM_SBR (1<<17) #define STREAM_NO_DURATIONS (1<<18) #define STREAM_HAS_DTS (1<<19) #define STREAM_B_PYRAMID (1<<20) /* Stream could not get exact compression info from the * demuxer */ #define STREAM_NEED_EXACT_COMPRESSION (1<<21) #define STREAM_SET_SYNC(s, t) (s)->sync_time = t #define STREAM_GET_SYNC(s) (s)->sync_time #define STREAM_UNSET_SYNC(s) (s)->sync_time = BGAV_TIMESTAMP_UNDEFINED #define STREAM_HAS_SYNC(s) ((s)->sync_time != BGAV_TIMESTAMP_UNDEFINED) struct bgav_stream_s { void * priv; int initialized; /* Mostly means, that the format is valid */ const bgav_options_t * opt; bgav_stream_action_t action; int stream_id; /* Format specific stream id */ bgav_stream_type_t type; bgav_packet_buffer_t * packet_buffer; uint8_t * ext_data; int ext_size; uint32_t fourcc; uint32_t subformat; /* Real flavors, sub_ids.... */ int64_t in_position; /* In packets */ /* * Support for custom timescales * Default timescales are the samplerate for audio * streams and the timescale from the format for video streams. * Demuxers can, however, define other timescales. */ int timescale; /* * Sync time: * * - *Only* valid for resynchronization during seeking * * - If the demuxer seeks, it sets the sync_time in * *stream* timescale * * - If we seek sample accurately, it's the output time * in *codec* timescale */ int64_t sync_time; int64_t out_time; /* In codec timescale */ /* Positions in the superindex */ int first_index_position; int last_index_position; int index_position; /* Where to get data */ bgav_demuxer_context_t * demuxer; /* Some demuxers can only read incomplete packets at once, so they can store the packets here */ bgav_packet_t * packet; int packet_seq; /* Language (ISO 639-3 B code) */ // char language[4]; gavl_metadata_t m; /* * Sometimes, the bitrates important for codecs * and the bitrates set in the container format * differ, so we save both here */ int container_bitrate; int codec_bitrate; /* * See STREAM_ defines above */ int flags; /* * Timestamp of the first frame in *output* timescale * must be set by bgav_start() */ int64_t start_time; int64_t duration; /* The track, where this stream belongs */ bgav_track_t * track; bgav_file_index_t * file_index; void (*process_packet)(bgav_stream_t * s, bgav_packet_t * p); /* Cleanup function (can be set by demuxers) */ void (*cleanup)(bgav_stream_t * s); /* Set for INDEX_MODE_SI_PARSE for all streams, which need parsing */ int index_mode; /* timecode table (for video streams only for now) */ bgav_timecode_table_t * timecode_table; int has_codec_timecode; gavl_timecode_t codec_timecode; bgav_bsf_t * bsf; bgav_packet_source_t src; /* Where to get packets */ bgav_packet_pool_t * pp; /* Where to put consumed packets for later use */ /* Correct timestamps from broken containers */ bgav_packet_timer_t * pt; /* Detect frametypes from broken containers */ bgav_frametype_detector_t * fd; union { struct { gavl_audio_format_t format; bgav_audio_decoder_context_t * decoder; int bits_per_sample; /* In some cases, this must be set from the Container to distinguish between 8 and 16 bit PCM codecs. For compressed codecs like mp3, this field is nonsense*/ /* The following ones are mainly for Microsoft formats and codecs */ int block_align; /* This is ONLY used for codecs, which can be both little- and big-endian. In this case, the endianess is set by the demuxer */ int endianess; /* Number of *samples* which must be decoded before the next frame after seeking. Codecs set this, demuxers can honour it when seeking. */ int preroll; bgav_audio_parser_t * parser; gavl_audio_frame_t * frame; int frame_samples; } audio; struct { int depth; int planes; /* For M$ formats only */ int image_size; /* For M$ formats only */ bgav_video_decoder_context_t * decoder; gavl_video_format_t format; // int palette_changed; bgav_video_parser_t * parser; bgav_keyframe_table_t * kft; int max_ref_frames; /* Needed for VDPAU */ bgav_video_format_tracker_t * ft; struct { bgav_palette_entry_t * entries; int size; int sent; } pal; } video; struct { /* Video format for overlays */ gavl_video_format_t format; /* Characterset converter for text subtitles */ bgav_charset_converter_t * cnv; bgav_subtitle_overlay_decoder_context_t * decoder; bgav_subtitle_reader_context_t * subreader; char * charset; /* The video stream, onto which the subtitles will be displayed */ bgav_stream_t * video_stream; } subtitle; } data; }; /* stream.c */ int bgav_stream_start(bgav_stream_t * stream); void bgav_stream_stop(bgav_stream_t * stream); void bgav_stream_create_packet_buffer(bgav_stream_t * stream); void bgav_stream_init(bgav_stream_t * stream, const bgav_options_t * opt); void bgav_stream_free(bgav_stream_t * stream); void bgav_stream_dump(bgav_stream_t * s); void bgav_stream_set_extradata(bgav_stream_t * s, const uint8_t * data, int len); /* Top level packet functions */ bgav_packet_t * bgav_stream_get_packet_write(bgav_stream_t * s); void bgav_stream_done_packet_write(bgav_stream_t * s, bgav_packet_t * p); /* TODO */ bgav_packet_t * bgav_stream_get_packet_read(bgav_stream_t * s); bgav_packet_t * bgav_stream_peek_packet_read(bgav_stream_t * s, int force); void bgav_stream_done_packet_read(bgav_stream_t * s, bgav_packet_t * p); int bgav_stream_get_index(bgav_stream_t * s); /* Which timestamp would come if we would decode right now? */ gavl_time_t bgav_stream_next_timestamp(bgav_stream_t *); /* Clear the packet buffer, called before seeking */ void bgav_stream_clear(bgav_stream_t * s); /* * Skip to a specific point which must be larger than the current stream time */ int bgav_stream_skipto(bgav_stream_t * s, int64_t * time, int scale); /* * Chapter list */ typedef struct { int num_chapters; int timescale; struct { int64_t time; char * name; } * chapters; } bgav_chapter_list_t; bgav_chapter_list_t * bgav_chapter_list_create(int timescale, int num_chapters); void bgav_chapter_list_dump(bgav_chapter_list_t * list); void bgav_chapter_list_destroy(bgav_chapter_list_t * list); #define TRACK_SAMPLE_ACCURATE (1<<0) #define TRACK_HAS_FILE_INDEX (1<<1) #define TRACK_HAS_COMPRESSION (1<<2) struct bgav_track_s { char * name; gavl_time_t duration; bgav_metadata_t metadata; int num_audio_streams; int num_video_streams; int num_subtitle_streams; bgav_stream_t * audio_streams; bgav_stream_t * video_streams; bgav_stream_t * subtitle_streams; bgav_chapter_list_t * chapter_list; void * priv; /* For storing private data */ int flags; }; /* track.c */ bgav_stream_t * bgav_track_add_audio_stream(bgav_track_t * t, const bgav_options_t * opt); bgav_stream_t * bgav_track_add_video_stream(bgav_track_t * t, const bgav_options_t * opt); void bgav_track_remove_audio_stream(bgav_track_t * track, int stream); void bgav_track_remove_video_stream(bgav_track_t * track, int stream); void bgav_track_remove_subtitle_stream(bgav_track_t * track, int stream); bgav_stream_t * bgav_track_add_subtitle_stream(bgav_track_t * t, const bgav_options_t * opt, int text, const char * encoding); bgav_stream_t * bgav_track_attach_subtitle_reader(bgav_track_t * t, const bgav_options_t * opt, bgav_subtitle_reader_context_t * r); bgav_stream_t * bgav_track_find_stream(bgav_demuxer_context_t * t, int stream_id); /* Clear all buffers (call BEFORE seeking) */ void bgav_track_clear(bgav_track_t * track); /* Call after the track becomes current */ void bgav_track_mute(bgav_track_t * t); /* Resync the decoders, update output times */ void bgav_track_resync(bgav_track_t*); /* Skip to a specific point */ int bgav_track_skipto(bgav_track_t*, int64_t * time, int scale); /* Find stream among ALL streams, also switched off ones */ bgav_stream_t * bgav_track_find_stream_all(bgav_track_t * t, int stream_id); int bgav_track_start(bgav_track_t * t, bgav_demuxer_context_t * demuxer); void bgav_track_stop(bgav_track_t * t); int64_t bgav_track_sync_time(bgav_track_t * t, int scale); int64_t bgav_track_out_time(bgav_track_t * t, int scale); void bgav_track_set_eof_d(bgav_track_t * t); void bgav_track_clear_eof_d(bgav_track_t * t); int bgav_track_eof_d(bgav_track_t * t); void bgav_track_get_compression(bgav_track_t * t); /* Remove unsupported streams */ void bgav_track_remove_unsupported(bgav_track_t * t); void bgav_track_free(bgav_track_t * t); void bgav_track_dump(bgav_t * b, bgav_track_t * t); int bgav_track_has_sync(bgav_track_t * t); /* Calculate duration from stream durations */ void bgav_track_calc_duration(bgav_track_t * t); /* Tracktable */ typedef struct { int num_tracks; bgav_track_t * tracks; bgav_track_t * cur; int refcount; } bgav_track_table_t; bgav_track_table_t * bgav_track_table_create(int num_tracks); bgav_track_t * bgav_track_table_append_track(bgav_track_table_t * t); void bgav_track_table_unref(bgav_track_table_t*); void bgav_track_table_ref(bgav_track_table_t*); void bgav_track_table_select_track(bgav_track_table_t*,int); void bgav_track_table_dump(bgav_track_table_t*); void bgav_track_table_merge_metadata(bgav_track_table_t*, bgav_metadata_t * m); void bgav_track_table_remove_unsupported(bgav_track_table_t * t); /* Options (shared between inputs, demuxers and decoders) */ struct bgav_options_s { /* Try sample accurate processing */ int sample_accurate; int cache_time; int cache_size; /* Generic network options */ int connect_timeout; int read_timeout; int network_bandwidth; int network_buffer_size; /* 0..1024: Randomize */ /* 1025..65536: Fixed port base */ int rtp_port_base; int rtp_try_tcp; /* try TCP before falling back to UDP */ /* http options */ int http_use_proxy; char * http_proxy_host; int http_proxy_port; int http_proxy_auth; char * http_proxy_user; char * http_proxy_pass; int http_shoutcast_metadata; /* ftp options */ char * ftp_anonymous_password; int ftp_anonymous; /* Default character set for text subtitles */ char * default_subtitle_encoding; int audio_dynrange; int seamless; int seek_subtitles; /* Postprocessing level (0.0 .. 1.0) */ float pp_level; char * dvb_channels_file; /* Prefer ffmpeg demuxers over native demuxers */ int prefer_ffmpeg_demuxers; int dv_datetime; int shrink; int vdpau; int threads; int log_level; int dump_headers; int dump_indices; /* Callbacks */ bgav_log_callback log_callback; void * log_callback_data; bgav_name_change_callback name_change_callback; void * name_change_callback_data; bgav_metadata_change_callback metadata_change_callback; void * metadata_change_callback_data; bgav_buffer_callback buffer_callback; void * buffer_callback_data; bgav_user_pass_callback user_pass_callback; void * user_pass_callback_data; bgav_aspect_callback aspect_callback; void * aspect_callback_data; bgav_index_callback index_callback; void * index_callback_data; }; BGAV_PUBLIC void bgav_options_set_defaults(bgav_options_t*opt); void bgav_options_free(bgav_options_t*opt); /* Overloadable input module */ struct bgav_input_s { const char * name; int (*open)(bgav_input_context_t*, const char * url, char ** redirect_url); int (*read)(bgav_input_context_t*, uint8_t * buffer, int len); /* Attempts to read data but returns immediately if there is nothing available */ int (*read_nonblock)(bgav_input_context_t*, uint8_t * buffer, int len); int64_t (*seek_byte)(bgav_input_context_t*, int64_t pos, int whence); void (*close)(bgav_input_context_t*); /* Some inputs support multiple tracks */ int (*select_track)(bgav_input_context_t*, int); /* Alternate API: Sector based read and seek access */ int (*read_sector)(bgav_input_context_t*,uint8_t* buffer); int64_t (*seek_sector)(bgav_input_context_t*, int64_t sector); /* Time based seek function for media, which are not stored stricktly linear. Time is changed to the actual seeked time */ void (*seek_time)(bgav_input_context_t*, int64_t time, int scale); /* Some inputs autoscan the available devices */ bgav_device_info_t (*find_devices)(); }; struct bgav_input_context_s { /* ID3V2 tags can be prepended to many types of files, so we read them globally */ bgav_id3v2_tag_t * id3v2; uint8_t * buffer; int buffer_size; int buffer_alloc; void * priv; int64_t total_bytes; /* Maybe 0 for non seekable streams */ int64_t position; /* Updated also for non seekable streams */ const bgav_input_t * input; /* Some input modules already fire up a demuxer */ bgav_demuxer_context_t * demuxer; /* * These can be NULL. If not, they might be used to * choose the right demultiplexer for sources, which * don't support format detection by content */ char * filename; char * url; char * mimetype; char * disc_name; /* For reading textfiles */ char * charset; bgav_charset_converter_t * cnv; /* For multiple track support */ bgav_track_table_t * tt; bgav_metadata_t metadata; /* This is set by the modules to signal that we need to prebuffer data */ int do_buffer; int can_pause; /* For sector based access */ int sector_size; int sector_size_raw; int sector_header_size; int64_t total_sectors; int64_t sector_position; const bgav_options_t * opt; // Stream ID, which will be used for syncing (for DVB) int sync_id; /* Inputs set this, if indexing is supported */ char * index_file; }; /* input.c */ /* Read functions return FALSE on error */ BGAV_PUBLIC int bgav_input_read_data(bgav_input_context_t*, uint8_t*, int); int bgav_input_read_string_pascal(bgav_input_context_t*, char*); int bgav_input_read_8(bgav_input_context_t*,uint8_t*); int bgav_input_read_16_le(bgav_input_context_t*,uint16_t*); int bgav_input_read_24_le(bgav_input_context_t*,uint32_t*); int bgav_input_read_32_le(bgav_input_context_t*,uint32_t*); int bgav_input_read_64_le(bgav_input_context_t*,uint64_t*); int bgav_input_read_16_be(bgav_input_context_t*,uint16_t*); int bgav_input_read_24_be(bgav_input_context_t*,uint32_t*); int bgav_input_read_32_be(bgav_input_context_t*,uint32_t*); int bgav_input_read_64_be(bgav_input_context_t*,uint64_t*); int bgav_input_read_float_32_be(bgav_input_context_t * ctx, float * ret); int bgav_input_read_float_32_le(bgav_input_context_t * ctx, float * ret); int bgav_input_read_double_64_be(bgav_input_context_t * ctx, double * ret); int bgav_input_read_double_64_le(bgav_input_context_t * ctx, double * ret); int bgav_input_get_data(bgav_input_context_t*, uint8_t*,int); int bgav_input_get_8(bgav_input_context_t*,uint8_t*); int bgav_input_get_16_le(bgav_input_context_t*,uint16_t*); int bgav_input_get_24_le(bgav_input_context_t*,uint32_t*); int bgav_input_get_32_le(bgav_input_context_t*,uint32_t*); int bgav_input_get_64_le(bgav_input_context_t*,uint64_t*); int bgav_input_get_16_be(bgav_input_context_t*,uint16_t*); int bgav_input_get_32_be(bgav_input_context_t*,uint32_t*); int bgav_input_get_64_be(bgav_input_context_t*,uint64_t*); int bgav_input_get_float_32_be(bgav_input_context_t * ctx, float * ret); int bgav_input_get_float_32_le(bgav_input_context_t * ctx, float * ret); int bgav_input_get_double_64_be(bgav_input_context_t * ctx, double * ret); int bgav_input_get_double_64_le(bgav_input_context_t * ctx, double * ret); #define bgav_input_read_fourcc(a,b) bgav_input_read_32_be(a,b) #define bgav_input_get_fourcc(a,b) bgav_input_get_32_be(a,b) /* * Read one line from the input. Linebreak characters * (\r, \n) are NOT stored in the buffer, return values is * the number of characters in the line */ int bgav_input_read_line(bgav_input_context_t*, char ** buffer, int * buffer_alloc, int buffer_offset, int * len); void bgav_input_detect_charset(bgav_input_context_t*); int bgav_input_read_convert_line(bgav_input_context_t*, char ** buffer, int * buffer_alloc, int * len); int bgav_input_read_sector(bgav_input_context_t*, uint8_t*); BGAV_PUBLIC int bgav_input_open(bgav_input_context_t *, const char * url); BGAV_PUBLIC void bgav_input_close(bgav_input_context_t * ctx); void bgav_input_destroy(bgav_input_context_t * ctx); void bgav_input_skip(bgav_input_context_t *, int64_t); /* Reopen the input. Not all inputs can do this */ int bgav_input_reopen(bgav_input_context_t*); BGAV_PUBLIC bgav_input_context_t * bgav_input_create(const bgav_options_t * opt); /* For debugging purposes only: if you encounter data, hexdump them to stderr and skip them */ void bgav_input_skip_dump(bgav_input_context_t *, int); void bgav_input_get_dump(bgav_input_context_t *, int); void bgav_input_seek(bgav_input_context_t * ctx, int64_t position, int whence); void bgav_input_seek_sector(bgav_input_context_t * ctx, int64_t sector); void bgav_input_buffer(bgav_input_context_t * ctx); void bgav_input_ensure_buffer_size(bgav_input_context_t * ctx, int len); /* Input module to read from memory */ bgav_input_context_t * bgav_input_open_memory(uint8_t * data, uint32_t data_size, const bgav_options_t*); /* Reopen a memory input with new data and minimal CPU overhead */ bgav_input_context_t * bgav_input_open_as_buffer(bgav_input_context_t * input); void bgav_input_reopen_memory(bgav_input_context_t * ctx, uint8_t * data, uint32_t data_size); /* Input module to read from a filedescriptor */ bgav_input_context_t * bgav_input_open_fd(int fd, int64_t total_bytes, const char * mimetype); /* * Some demuxer will create a superindex. If this is the case, * generic next_packet() and seek() functions will be used */ typedef struct { int num_entries; int entries_alloc; int current_position; struct { int64_t offset; uint32_t size; int stream_id; int flags; int64_t pts; /* Time is scaled with the timescale of the stream */ int duration; /* In timescale tics, can be 0 if unknown */ } * entries; } bgav_superindex_t; /* Create superindex, nothing will be allocated if size == 0 */ bgav_superindex_t * bgav_superindex_create(int size); void bgav_superindex_destroy(bgav_superindex_t *); void bgav_superindex_set_sbr(bgav_superindex_t * si, bgav_stream_t * s); void bgav_superindex_add_packet(bgav_superindex_t * idx, bgav_stream_t * s, int64_t offset, uint32_t size, int stream_id, int64_t timestamp, int keyframe, int duration); void bgav_superindex_seek(bgav_superindex_t * idx, bgav_stream_t * s, int64_t * time, int scale); BGAV_PUBLIC void bgav_superindex_dump(bgav_superindex_t * idx); void bgav_superindex_set_durations(bgav_superindex_t * idx, bgav_stream_t * s); void bgav_superindex_merge_fileindex(bgav_superindex_t * idx, bgav_stream_t * s); void bgav_superindex_set_size(bgav_superindex_t * ret, int size); void bgav_superindex_set_coding_types(bgav_superindex_t * idx, bgav_stream_t * s); /* timecode.c */ typedef struct { int64_t pts; gavl_timecode_t timecode; } bgav_timecode_table_entry_t; struct bgav_timecode_table_s { int num_entries; int entries_alloc; bgav_timecode_table_entry_t * entries; }; bgav_timecode_table_t * bgav_timecode_table_create(int num); void bgav_timecode_table_append_entry(bgav_timecode_table_t *, int64_t pts, gavl_timecode_t timecode); void bgav_timecode_table_destroy(bgav_timecode_table_t *); gavl_timecode_t bgav_timecode_table_get_timecode(bgav_timecode_table_t * table, int64_t pts); /* * File index * * fileindex.c */ typedef struct { uint32_t flags; /* Packet flags */ /* * Seek positon: * * For 1-layer muxed files, it's the * fseek() position, where the demuxer * can start to parse the packet header. * * For 2-layer muxed files, it's the * fseek() position of the lowest level * paket inside which the subpacket *starts* * * For superindex formats, it's the position * inside the superindex */ uint64_t position; /* * Presentation time of the frame in * format-based timescale (*not* in * stream timescale) */ int64_t pts; } bgav_file_index_entry_t; /* Per stream structure */ struct bgav_file_index_s { /* Infos stored to speed up loading */ uint32_t stream_id; uint32_t fourcc; /* Video infos stored by the format tracker */ uint32_t interlace_mode; uint32_t framerate_mode; uint32_t num_entries; uint32_t entries_alloc; bgav_file_index_entry_t * entries; bgav_timecode_table_t tt; }; bgav_file_index_t * bgav_file_index_create(); void bgav_file_index_destroy(bgav_file_index_t *); int bgav_demuxer_next_packet_fileindex(bgav_demuxer_context_t * ctx); int bgav_demuxer_next_packet_interleaved(bgav_demuxer_context_t * ctx); BGAV_PUBLIC void bgav_file_index_dump(bgav_t * b); void bgav_file_index_append_packet(bgav_file_index_t * idx, int64_t position, int64_t time, int keyframe, gavl_timecode_t tc); int bgav_file_index_read_header(const char * filename, bgav_input_context_t * input, int * num_tracks); void bgav_file_index_write_header(const char * filename, FILE * output, int num_tracks); int bgav_read_file_index(bgav_t*); void bgav_write_file_index(bgav_t*); int bgav_build_file_index(bgav_t * b, gavl_time_t * time_needed); /* Demuxer class */ struct bgav_demuxer_s { int (*probe)(bgav_input_context_t*); int (*probe_yml)(bgav_yml_node_t*); int (*open)(bgav_demuxer_context_t * ctx); int (*open_yml)(bgav_demuxer_context_t * ctx, bgav_yml_node_t * node); int (*next_packet)(bgav_demuxer_context_t*); /* * Seeking sets either the position- or the time * member of the stream */ void (*seek)(bgav_demuxer_context_t*, int64_t time, int scale); void (*close)(bgav_demuxer_context_t*); /* Some demuxers support multiple tracks. This can fail e.g. if the input must be seekable but isn't */ int (*select_track)(bgav_demuxer_context_t*, int track); /* Some demuxers have their own magic to build a file index */ // void (*build_index)(bgav_demuxer_context_t*); /* Demuxers might need this function to update the internal state after seeking with the fileindex */ void (*resync)(bgav_demuxer_context_t*, bgav_stream_t * s); }; /* Demuxer flags */ #define BGAV_DEMUXER_CAN_SEEK (1<<0) #define BGAV_DEMUXER_SEEK_ITERATIVE (1<<1) /* If 1, perform iterative seeking */ #define BGAV_DEMUXER_PEEK_FORCES_READ (1<<2) /* This is set if only subtitle streams are read */ #define BGAV_DEMUXER_SI_SEEKING (1<<3) /* Demuxer is seeking */ #define BGAV_DEMUXER_SI_PRIVATE_FUNCS (1<<4) /* We have a suprindex but use private seek/demux funcs */ #define BGAV_DEMUXER_HAS_TIMESTAMP_OFFSET (1<<5) /* Timestamp offset (from input) is valid */ #define BGAV_DEMUXER_HAS_DATA_START (1<<7) /* Has data start */ #define BGAV_DEMUXER_BUILD_INDEX (1<<8) /* We're just building an index */ #define INDEX_MODE_NONE 0 /* Default: No sample accuracy */ /* Packets have precise timestamps and durations and are adjacent in the file */ #define INDEX_MODE_SIMPLE 1 /* Packets have precise timestamps (but no durations) and are adjacent in the file */ // #define INDEX_MODE_PTS 2 /* MPEG Program/transport stream: Needs complete parsing */ #define INDEX_MODE_MPEG 3 /* For PCM soundfiles: Sample accuracy is already there */ #define INDEX_MODE_PCM 4 /* File has a global index and codecs, which allow sample accuracy */ #define INDEX_MODE_SI_SA 5 /* File has a global index but codecs, which need complete parsing */ #define INDEX_MODE_SI_PARSE 6 /* Stream must be completely parsed, streams can have INDEX_MODE_SIMPLE, INDEX_MODE_MPEG or INDEX_MODE_PTS */ #define INDEX_MODE_MIXED 7 // #define INDEX_MODE_CUSTOM 4 /* Demuxer builds index */ #define DEMUX_MODE_STREAM 0 #define DEMUX_MODE_SI_I 1 /* Interleaved with superindex */ #define DEMUX_MODE_SI_NI 2 /* Non-interleaved with superindex */ #define DEMUX_MODE_FI 3 /* Non-interleaved with file-index */ struct bgav_demuxer_context_s { const bgav_options_t * opt; void * priv; const bgav_demuxer_t * demuxer; bgav_input_context_t * input; bgav_track_table_t * tt; int packet_size; /* Optional, if it's fixed */ int index_mode; int demux_mode; uint32_t flags; /* * The stream, which requested the next_packet function. * Can come handy sometimes */ bgav_stream_t * request_stream; /* * If demuxer creates a superindex, generic get_packet() and * seek() functions will be used */ bgav_superindex_t * si; /* Timestamp offset: By definition, timestamps for a track start at 0. The offset can be set either by the demuxer or by some inputs (DVD). */ int64_t timestamp_offset; /* Data start (set in intially to -1, maybe set to other values by demuxers). It can be used by the core to seek to the position, where the demuxer can start working */ int64_t data_start; /* Used by MPEG style fileindex for catching packets, inside which no frame starts */ int64_t next_packet_pos; /* EDL */ bgav_edl_t * edl; bgav_redirector_context_t * redirector; }; /* demuxer.c */ /* * Create a demuxer. */ bgav_demuxer_context_t * bgav_demuxer_create(const bgav_options_t * opt, const bgav_demuxer_t * demuxer, bgav_input_context_t * input); const bgav_demuxer_t * bgav_demuxer_probe(bgav_input_context_t * input, bgav_yml_node_t * yml); void bgav_demuxer_create_buffers(bgav_demuxer_context_t * demuxer); void bgav_demuxer_destroy(bgav_demuxer_context_t * demuxer); bgav_packet_t * bgav_demuxer_get_packet_read(void * stream); bgav_packet_t * bgav_demuxer_peek_packet_read(void * stream, int force); /* Generic get/peek functions */ bgav_packet_t * bgav_demuxer_peek_packet_read_generic(bgav_demuxer_context_t * demuxer, bgav_stream_t * s, int force); bgav_packet_t * bgav_demuxer_get_packet_read_generic(bgav_demuxer_context_t * demuxer, bgav_stream_t * s); void bgav_demuxer_seek(bgav_demuxer_context_t * demuxer, int64_t time, int scale); int bgav_demuxer_next_packet(bgav_demuxer_context_t * demuxer); /* * Start a demuxer. Some demuxers (most notably quicktime) * can contain nothing but urls for the real streams. * In this case, redir (if not NULL) will contain the * redirector context */ int bgav_demuxer_start(bgav_demuxer_context_t * ctx, bgav_yml_node_t * yml); void bgav_demuxer_stop(bgav_demuxer_context_t * ctx); // bgav_packet_t * // bgav_demuxer_get_packet_write(bgav_demuxer_context_t * demuxer, int stream); // bgav_stream_t * bgav_track_find_stream(bgav_track_t * ctx, int stream_id); /* Redirector */ struct bgav_redirector_s { const char * name; int (*probe)(bgav_input_context_t*); int (*probe_yml)(bgav_yml_node_t*); int (*parse)(bgav_redirector_context_t*); }; typedef struct { char * url; char * name; } bgav_url_info_t; struct bgav_redirector_context_s { bgav_redirector_t * redirector; bgav_input_context_t * input; bgav_yml_node_t * yml; int parsed; int num_urls; bgav_url_info_t * urls; const bgav_options_t * opt; }; void bgav_redirector_destroy(bgav_redirector_context_t*r); const bgav_redirector_t * bgav_redirector_probe(bgav_input_context_t * input, bgav_yml_node_t ** yml); /* Actual decoder */ struct bgav_s { char * location; /* Configuration parameters */ bgav_options_t opt; bgav_input_context_t * input; bgav_demuxer_context_t * demuxer; bgav_redirector_context_t * redirector; bgav_track_table_t * tt; int is_running; bgav_metadata_t metadata; /* Set by the seek function */ int eof; bgav_yml_node_t * yml; // bgav_edl_dec_t * edl_dec; }; /* bgav.c */ void bgav_stop(bgav_t * b); int bgav_init(bgav_t * b); /* Bytestream utilities */ /* ptr -> integer */ #define BGAV_PTR_2_16LE(p) \ ((*(p+1) << 8) | \ *(p)) #define BGAV_PTR_2_24LE(p) \ ((*(p+2) << 16) | \ (*(p+1) << 8) | \ *(p)) #define BGAV_PTR_2_32LE(p) \ ((*(p+3) << 24) | \ (*(p+2) << 16) | \ (*(p+1) << 8) | \ *(p)) #define BGAV_PTR_2_64LE(p) \ (((uint64_t)(*(p+7)) << 56) | \ ((uint64_t)(*(p+6)) << 48) | \ ((uint64_t)(*(p+5)) << 40) | \ ((uint64_t)(*(p+4)) << 32) | \ ((uint64_t)(*(p+3)) << 24) | \ ((uint64_t)(*(p+2)) << 16) | \ ((uint64_t)(*(p+1)) << 8) | \ *(p)) #define BGAV_PTR_2_16BE(p) \ ((*(p) << 8) | \ *(p+1)) #define BGAV_PTR_2_32BE(p) \ ((*(p) << 24) | \ (*(p+1) << 16) | \ (*(p+2) << 8) | \ *(p+3)) #define BGAV_PTR_2_24BE(p) \ ((*(p) << 16) | \ (*(p+1) << 8) | \ (*(p+2))) #define BGAV_PTR_2_64BE(p) \ (((uint64_t)p[0] << 56) | \ ((uint64_t)p[1] << 48) | \ ((uint64_t)p[2] << 40) | \ ((uint64_t)p[3] << 32) | \ ((uint64_t)p[4] << 24) | \ ((uint64_t)p[5] << 16) | \ ((uint64_t)p[6] << 8) | \ (p)[7]) /* integer -> ptr */ #define BGAV_16LE_2_PTR(i, p) \ (p)[0] = (i) & 0xff; \ (p)[1] = ((i)>>8) & 0xff #define BGAV_24LE_2_PTR(i, p) \ (p)[0] = (i) & 0xff; \ (p)[1] = ((i)>>8) & 0xff; \ (p)[2] = ((i)>>16) & 0xff; #define BGAV_32LE_2_PTR(i, p) \ (p)[0] = (i) & 0xff; \ (p)[1] = ((i)>>8) & 0xff; \ (p)[2] = ((i)>>16) & 0xff; \ (p)[3] = ((i)>>24) & 0xff #define BGAV_64LE_2_PTR(i, p) \ (p)[0] = (i) & 0xff; \ (p)[1] = ((i)>>8) & 0xff; \ (p)[2] = ((i)>>16) & 0xff; \ (p)[3] = ((i)>>24) & 0xff; \ (p)[4] = ((i)>>32) & 0xff; \ (p)[5] = ((i)>>40) & 0xff; \ (p)[6] = ((i)>>48) & 0xff; \ (p)[7] = ((i)>>56) & 0xff #define BGAV_16BE_2_PTR(i, p) \ (p)[1] = (i) & 0xff; \ (p)[0] = ((i)>>8) & 0xff #define BGAV_32BE_2_PTR(i, p) \ (p)[3] = (i) & 0xff; \ (p)[2] = ((i)>>8) & 0xff; \ (p)[1] = ((i)>>16) & 0xff; \ (p)[0] = ((i)>>24) & 0xff; #define BGAV_24BE_2_PTR(i, p) \ (p)[2] = (i) & 0xff; \ (p)[1] = ((i)>>8) & 0xff; \ (p)[0] = ((i)>>16) & 0xff; #define BGAV_64BE_2_PTR(i, p) \ (p)[7] = (i) & 0xff; \ (p)[6] = ((i)>>8) & 0xff; \ (p)[5] = ((i)>>16) & 0xff; \ (p)[4] = ((i)>>24) & 0xff; \ (p)[3] = ((i)>>32) & 0xff; \ (p)[2] = ((i)>>40) & 0xff; \ (p)[1] = ((i)>>48) & 0xff; \ (p)[0] = ((i)>>56) & 0xff #define BGAV_PTR_2_FOURCC(p) BGAV_PTR_2_32BE(p) #define BGAV_WAVID_2_FOURCC(id) BGAV_MK_FOURCC(0x00, 0x00, (id>>8), (id&0xff)) #define BGAV_FOURCC_2_WAVID(f) (f & 0xffff) /* utils.c */ void bgav_dump_fourcc(uint32_t fourcc); void bgav_hexdump(const uint8_t * data, int len, int linebreak); char * bgav_sprintf(const char * format,...) __attribute__ ((format (printf, 1, 2))); BGAV_PUBLIC char * bgav_strndup(const char * start, const char * end); char * bgav_strdup(const char * str); char * bgav_strncat(char * old, const char * start, const char * end); void bgav_dprintf(const char * format, ...) __attribute__ ((format (printf, 1, 2))); void bgav_diprintf(int indent, const char * format, ...) __attribute__ ((format (printf, 2, 3))); int bgav_url_split(const char * url, char ** protocol, char ** user, char ** password, char ** hostname, int * port, char ** path); char ** bgav_stringbreak(const char * str, char sep); void bgav_stringbreak_free(char ** str); int bgav_slurp_file(const char * location, uint8_t ** ret, int * ret_alloc, int * size, const bgav_options_t * opt); char * bgav_search_file_write(const bgav_options_t * opt, const char * directory, const char * file); char * bgav_search_file_read(const bgav_options_t * opt, const char * directory, const char * file); int bgav_match_regexp(const char * str, const char * regexp); /* Check if file exist and is readable */ int bgav_check_file_read(const char * filename); /* Read a single line from a filedescriptor */ int bgav_read_line_fd(const bgav_options_t * opt, int fd, char ** ret, int * ret_alloc, int milliseconds); int bgav_read_data_fd(const bgav_options_t * opt, int fd, uint8_t * ret, int size, int milliseconds); /* tcp.c */ int bgav_tcp_connect(const bgav_options_t * opt, const char * host, int port); int bgav_tcp_send(const bgav_options_t * opt, int fd, uint8_t * data, int len); struct addrinfo * bgav_hostbyname(const bgav_options_t * opt, const char * hostname, int port, int socktype, int flags); /* udp.c */ int bgav_udp_open(const bgav_options_t * opt, int port); int bgav_udp_read(int fd, uint8_t * data, int len); int bgav_udp_write(const bgav_options_t * opt, int fd, uint8_t * data, int len, struct addrinfo * addr); /* Charset utilities (charset.c) */ bgav_charset_converter_t * bgav_charset_converter_create(const bgav_options_t * opt, const char * in_charset, const char * out_charset); void bgav_charset_converter_destroy(bgav_charset_converter_t *); char * bgav_convert_string(bgav_charset_converter_t *, const char * in_string, int in_len, int * out_len); int bgav_convert_string_realloc(bgav_charset_converter_t * cnv, const char * str, int len, int * out_len, char ** ret, int * ret_alloc); /* audio.c */ void bgav_audio_dump(bgav_stream_t * s); int bgav_audio_start(bgav_stream_t * s); void bgav_audio_stop(bgav_stream_t * s); /* Resynchronize the stream to the next point * where decoding can start again. * After calling this, the out_time *must* be valid * Called AFTER seeking */ void bgav_audio_resync(bgav_stream_t * stream); /* Skip to a point in the stream, return 0 on EOF */ int bgav_audio_skipto(bgav_stream_t * stream, int64_t * t, int scale); /* video.c */ void bgav_video_dump(bgav_stream_t * s); int bgav_video_start(bgav_stream_t * s); void bgav_video_stop(bgav_stream_t * s); /* Resynchronize the stream to the next point * where decoding can start again. * After calling this, the out_time *must* be valid * Called AFTER seeking */ void bgav_video_resync(bgav_stream_t * s); // void bgav_video_clear(bgav_stream_t * s); int bgav_video_skipto(bgav_stream_t * stream, int64_t * t, int scale, int exact); /* subtitle.c */ void bgav_subtitle_dump(bgav_stream_t * s); int bgav_subtitle_start(bgav_stream_t * s); void bgav_subtitle_stop(bgav_stream_t * s); void bgav_subtitle_resync(bgav_stream_t * stream); int bgav_subtitle_skipto(bgav_stream_t * stream, int64_t * t, int scale); /* codecs.c */ void bgav_codecs_init(bgav_options_t * opt); bgav_audio_decoder_t * bgav_find_audio_decoder(bgav_stream_t*); bgav_video_decoder_t * bgav_find_video_decoder(bgav_stream_t*); bgav_subtitle_overlay_decoder_t * bgav_find_subtitle_overlay_decoder(bgav_stream_t*); void bgav_audio_decoder_register(bgav_audio_decoder_t * dec); void bgav_video_decoder_register(bgav_video_decoder_t * dec); void bgav_subtitle_overlay_decoder_register(bgav_subtitle_overlay_decoder_t * dec); /* base64.c */ int bgav_base64encode(const unsigned char *input, int input_length, unsigned char *output, int output_length); int bgav_base64decode(const char *input, int input_length, unsigned char *output, int output_length); /* device.c */ /* * Append device info to an existing array and return the new array. * arr can be NULL */ bgav_device_info_t * bgav_device_info_append(bgav_device_info_t * arr, const char * device, const char * name); /* For debugging only */ void bgav_device_info_dump(bgav_device_info_t * arr); /* languages.c */ const char * bgav_lang_from_name(const char * name); const char * bgav_lang_from_twocc(const char * twocc); const char * bgav_lang_name(const char * lang); void bgav_correct_language(char * lang); /* subreader.c */ struct bgav_subtitle_reader_context_s { bgav_input_context_t * input; const bgav_subtitle_reader_t * reader; char * info; /* Derived from filename difference */ char * filename; /* Name of the subtitle file */ bgav_packet_t * p; gavl_overlay_t ovl; char * line; int line_alloc; /* 1 if the packet or overlay contains a not yet read subtitle */ int has_subtitle; /* Some formats have a header... */ int64_t data_start; /* bgav_subtitle_reader_open returns a chained list */ bgav_subtitle_reader_context_t * next; /* Private data */ void * priv; }; struct bgav_subtitle_reader_s { char * extensions; char * name; int (*probe)(char * line); int (*init)(bgav_stream_t*); void (*close)(bgav_stream_t*); void (*seek)(bgav_stream_t*,int64_t time, int scale); int (*read_subtitle_text)(bgav_stream_t*); int (*read_subtitle_overlay)(bgav_stream_t*); }; bgav_subtitle_reader_context_t * bgav_subtitle_reader_open(bgav_input_context_t * input_ctx); int bgav_subtitle_reader_start(bgav_stream_t *); void bgav_subtitle_reader_stop(bgav_stream_t *); void bgav_subtitle_reader_destroy(bgav_stream_t *); void bgav_subtitle_reader_seek(bgav_stream_t *, int64_t time, int scale); int bgav_subtitle_reader_has_subtitle(bgav_stream_t * s); bgav_packet_t * bgav_subtitle_reader_read_text(bgav_stream_t *); int bgav_subtitle_reader_read_overlay(bgav_stream_t *, gavl_overlay_t * ovl); /* log.c */ void bgav_log(const bgav_options_t * opt, bgav_log_level_t level, const char * domain, const char * format, ...) __attribute__ ((format (printf, 4, 5))); /* bytebuffer.c */ typedef struct { uint8_t * buffer; int size; int alloc; } bgav_bytebuffer_t; void bgav_bytebuffer_append(bgav_bytebuffer_t * b, bgav_packet_t * p, int padding); void bgav_bytebuffer_append_data(bgav_bytebuffer_t * b, uint8_t * data, int len, int padding); int bgav_bytebuffer_append_read(bgav_bytebuffer_t * b, bgav_input_context_t * input, int len, int padding); void bgav_bytebuffer_remove(bgav_bytebuffer_t * b, int bytes); void bgav_bytebuffer_free(bgav_bytebuffer_t * b); void bgav_bytebuffer_flush(bgav_bytebuffer_t * b); /* sampleseek.c */ int bgav_set_sample_accurate(bgav_t * b); int64_t bgav_video_stream_keyframe_after(bgav_stream_t * s, int64_t time); int64_t bgav_video_stream_keyframe_before(bgav_stream_t * s, int64_t time); /* edl.c */ bgav_edl_t * bgav_edl_create(); bgav_edl_track_t * bgav_edl_add_track(bgav_edl_t * e); bgav_edl_stream_t * bgav_edl_add_audio_stream(bgav_edl_track_t * t); bgav_edl_stream_t * bgav_edl_add_video_stream(bgav_edl_track_t * t); bgav_edl_stream_t * bgav_edl_add_subtitle_text_stream(bgav_edl_track_t * t); bgav_edl_stream_t * bgav_edl_add_subtitle_overlay_stream(bgav_edl_track_t * t); bgav_edl_segment_t * bgav_edl_add_segment(bgav_edl_stream_t * s); bgav_edl_t * bgav_edl_copy(const bgav_edl_t * e); void bgav_edl_destroy(bgav_edl_t * e); /* Translation specific stuff */ void bgav_translation_init(); /* For dynamic strings */ #define TRD(s) dgettext(PACKAGE, (s)) /* For static strings */ #define TRS(s) (s) /* keyframetable.c */ /* * A keyframe table is always associated with * either a file index or a superindex. */ struct bgav_keyframe_table_s { int num_entries; struct { int pos; int64_t pts; } * entries; }; bgav_keyframe_table_t * bgav_keyframe_table_create_fi(bgav_file_index_t * fi); bgav_keyframe_table_t * bgav_keyframe_table_create_si(bgav_superindex_t * si, bgav_stream_t * s); void bgav_keyframe_table_destroy(bgav_keyframe_table_t *); /* formattracker.c */ bgav_video_format_tracker_t * bgav_video_format_tracker_create(bgav_stream_t * s); void bgav_video_format_tracker_destroy(bgav_video_format_tracker_t *); /* Returns the index position */ int bgav_keyframe_table_seek(bgav_keyframe_table_t *, int64_t seek_pts, int64_t * kf_pts); /* parse_dca.c */ #ifdef HAVE_DCA void bgav_dca_flags_2_channel_setup(int flags, gavl_audio_format_t * format); #endif /* videoparser.c */ int bgav_video_is_divx4(uint32_t fourcc); /* Global locking around avcodec_[open|close]() Defined in video_ffmpeg.c, used from audio_ffmpeg.c as well */ void bgav_ffmpeg_lock(); void bgav_ffmpeg_unlock(); #if __GNUC__ >= 3 #define BGAV_UNLIKELY(exp) __builtin_expect((exp),0) #define BGAV_LIKELY(exp) __builtin_expect((exp),1) #else #define BGAV_UNLIKELY(exp) exp #define BGAV_LIKELY(exp) exp #endif gmerlin-avdecoder-1.2.0~dfsg/include/bgav_dca.h0000644000000000000000000000361011764363500020170 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2008 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include #ifdef HAVE_DTS_H #include #else # include typedef struct dca_state_s dts_state_t; #define DTS_MONO DCA_MONO #define DTS_CHANNEL DCA_CHANNEL #define DTS_STEREO DCA_STEREO #define DTS_STEREO_SUMDIFF DCA_STEREO_SUMDIFF #define DTS_STEREO_TOTAL DCA_STEREO_TOTAL #define DTS_3F DCA_3F #define DTS_2F1R DCA_2F1R #define DTS_3F1R DCA_3F1R #define DTS_2F2R DCA_2F2R #define DTS_3F2R DCA_3F2R #define DTS_4F2R DCA_4F2R #define DTS_DOLBY DCA_DOLBY #define DTS_CHANNEL_MAX DCA_CHANNEL_MAX #define DTS_CHANNEL_BITS DCA_CHANNEL_BITS #define DTS_CHANNEL_MASK DCA_CHANNEL_MASK #define DTS_LFE DCA_LFE #define DTS_ADJUST_LEVEL DCA_ADJUST_LEVEL #define dts_init dca_init #define dts_syncinfo dca_syncinfo #define dts_frame dca_frame #define dts_dynrng dca_dynrng #define dts_blocks_num dca_blocks_num #define dts_block dca_block #define dts_samples dca_samples #define dts_free dca_free #endif // !HAVE_DTS_H gmerlin-avdecoder-1.2.0~dfsg/include/codecs.h0000644000000000000000000000567111764363500017713 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #ifdef HAVE_LIBAVCODEC void bgav_init_audio_decoders_ffmpeg(bgav_options_t * opt); void bgav_init_video_decoders_ffmpeg(bgav_options_t * opt); #endif #ifdef HAVE_VORBIS void bgav_init_audio_decoders_vorbis(); #endif #ifdef HAVE_LIBA52 void bgav_init_audio_decoders_a52(); #endif #ifdef HAVE_DCA void bgav_init_audio_decoders_dca(); #endif #ifdef HAVE_MAD void bgav_init_audio_decoders_mad(); #endif #ifdef HAVE_LIBPNG void bgav_init_video_decoders_png(); #endif #ifdef HAVE_OPENJPEG void bgav_init_video_decoders_openjpeg(); #endif #ifdef HAVE_LIBTIFF void bgav_init_video_decoders_tiff(); #endif #ifdef HAVE_THEORADEC void bgav_init_video_decoders_theora(); #endif #ifdef HAVE_SCHROEDINGER void bgav_init_video_decoders_schroedinger(); #endif #ifdef HAVE_SPEEX void bgav_init_audio_decoders_speex(); #endif #ifdef HAVE_FAAD2 void bgav_init_audio_decoders_faad2(); #endif #ifdef HAVE_FLAC void bgav_init_audio_decoders_flac(); #endif #ifdef HAVE_LIBMPEG2 void bgav_init_video_decoders_libmpeg2(); #endif #ifdef HAVE_XADLL int bgav_init_video_decoders_xadll(bgav_options_t * opt); extern char * bgav_dll_path_xanim; #endif #ifdef HAVE_REALDLL int bgav_init_video_decoders_real(bgav_options_t * opt); int bgav_init_audio_decoders_real(bgav_options_t * opt); extern char * bgav_dll_path_real; #endif #ifdef HAVE_W32DLL int bgav_init_video_decoders_win32(bgav_options_t * opt); int bgav_init_audio_decoders_win32(bgav_options_t * opt); int bgav_init_audio_decoders_qtwin32(bgav_options_t * opt); extern char * win32_def_path; #endif /* The following are always supported */ void bgav_init_audio_decoders_gavl(); void bgav_init_audio_decoders_pcm(); #ifdef HAVE_LIBGSM void bgav_init_audio_decoders_gsm(); #endif void bgav_init_video_decoders_aviraw(); void bgav_init_video_decoders_qtraw(); void bgav_init_video_decoders_yuv(); void bgav_init_video_decoders_tga(); void bgav_init_video_decoders_rtjpeg(); void bgav_init_video_decoders_gavl(); void bgav_init_subtitle_overlay_decoders_dvd(); gmerlin-avdecoder-1.2.0~dfsg/include/h264_header.h0000644000000000000000000001607311764363500020444 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* H.264 stuff */ const uint8_t * bgav_h264_find_nal_start(const uint8_t * buffer, int len); /* Returns -1 if the buffer doesn't contain the start of the next NAL */ int bgav_h264_get_nal_size(const uint8_t * buffer, int len); /* NAL unit types */ #define H264_NAL_NON_IDR_SLICE 1 #define H264_NAL_SLICE_PARTITION_A 2 #define H264_NAL_SLICE_PARTITION_B 3 #define H264_NAL_SLICE_PARTITION_C 4 #define H264_NAL_IDR_SLICE 5 #define H264_NAL_SEI 6 #define H264_NAL_SPS 7 #define H264_NAL_PPS 8 #define H264_NAL_ACCESS_UNIT_DEL 9 #define H264_NAL_END_OF_SEQUENCE 10 #define H264_NAL_END_OF_STREAM 11 #define H264_NAL_FILLER_DATA 12 typedef struct { int ref_idc; int unit_type; } bgav_h264_nal_header_t; /* rbsp must have at least the size of in_buffer */ int bgav_h264_decode_nal_header(const uint8_t * in_buffer, int len, bgav_h264_nal_header_t * header); /* Returns the number of bytes read */ /* RBSP = raw byte sequence payload */ int bgav_h264_decode_nal_rbsp(const uint8_t * in_buffer, int len, uint8_t * ret); /* VUI (Video Usability Information) */ typedef struct { int aspect_ratio_info_present_flag; // if( aspect_ratio_info_present_flag ) { int aspect_ratio_idc; // if( aspect_ratio_idc = = Extended_SAR ) { int sar_width; int sar_height; // } // } int overscan_info_present_flag; // if( overscan_info_present_flag ) int overscan_appropriate_flag; int video_signal_type_present_flag; // if( video_signal_type_present_flag ) { int video_format; int video_full_range_flag; int colour_description_present_flag; // if( colour_description_present_flag ) { int colour_primaries; int transfer_characteristics; int matrix_coefficients; // } // } int chroma_loc_info_present_flag; // if( chroma_loc_info_present_flag ) { int chroma_sample_loc_type_top_field; int chroma_sample_loc_type_bottom_field; // } int timing_info_present_flag; // if( timing_info_present_flag ) { int num_units_in_tick; int time_scale; int fixed_frame_rate_flag; // } int nal_hrd_parameters_present_flag; int vcl_hrd_parameters_present_flag; int cpb_removal_delay_length_minus1; int dpb_output_delay_length_minus1; int low_delay_hrd_flag; int pic_struct_present_flag; int bitstream_restriction_flag; // if( bitstream_restriction_flag ) { int motion_vectors_over_pic_boundaries_flag; int max_bytes_per_pic_denom; int max_bits_per_mb_denom; int log2_max_mv_length_horizontal; int log2_max_mv_length_vertical; int num_reorder_frames; int max_dec_frame_buffering; // } } bgav_h264_vui_t; /* Sequence parameter set */ typedef struct { int profile_idc; int constraint_set0_flag; int constraint_set1_flag; int constraint_set2_flag; int constraint_set3_flag; int level_idc; int seq_parameter_set_id; int chroma_format_idc; // if( chroma_format_idc == 3 ) int separate_colour_plane_flag; int bit_depth_luma_minus8; int bit_depth_chroma_minus8; int qpprime_y_zero_transform_bypass_flag; int seq_scaling_matrix_present_flag; int log2_max_frame_num_minus4; int pic_order_cnt_type; /* if( pic_order_cnt_type == 0 ) */ int log2_max_pic_order_cnt_lsb_minus4; /* else if(pic_order_cnt_type == 1) { */ int delta_pic_order_always_zero_flag; int offset_for_non_ref_pic; int offset_for_top_to_bottom_field; int num_ref_frames_in_pic_order_cnt_cycle; int * offset_for_ref_frame; /* } */ int num_ref_frames; int gaps_in_frame_num_value_allowed_flag; int pic_width_in_mbs_minus1; int pic_height_in_map_units_minus1; int frame_mbs_only_flag; /* if( !frame_mbs_only_flag ) */ int mb_adaptive_frame_field_flag; int direct_8x8_inference_flag; int frame_cropping_flag; /* if( frame_cropping_flag ) { */ int frame_crop_left_offset; int frame_crop_right_offset; int frame_crop_top_offset; int frame_crop_bottom_offset; /* } */ int vui_parameters_present_flag; bgav_h264_vui_t vui; } bgav_h264_sps_t; int bgav_h264_sps_parse(const bgav_options_t * opt, bgav_h264_sps_t *, const uint8_t * buffer, int len); void bgav_h264_sps_free(bgav_h264_sps_t *); void bgav_h264_sps_dump(bgav_h264_sps_t *); void bgav_h264_sps_get_image_size(bgav_h264_sps_t * sps, gavl_video_format_t * format); #if 0 /* Not needed */ typedef struct { } bgav_h264_pps_t; int bgav_h264_pps_parse(const bgav_options_t * opt, bgav_h264_pps_t *, const uint8_t * buffer, int len); #endif /* SEI stuff */ int bgav_h264_decode_sei_message_header(const uint8_t * data, int len, int * sei_type, int * sei_size); typedef struct { int pic_struct; int have_timecode; int tc_hours; int tc_minutes; int tc_seconds; int tc_frames; int counting_type; } bgav_h264_sei_pic_timing_t; int bgav_h264_decode_sei_pic_timing(const uint8_t * data, int len, bgav_h264_sps_t * sps, bgav_h264_sei_pic_timing_t * ret); typedef struct { int recovery_frame_cnt; int exact_match_flag; int broken_link_flag; int changing_slice_group_idc; } bgav_h264_sei_recovery_point_t; int bgav_h264_decode_sei_recovery_point(const uint8_t * data, int len, bgav_h264_sei_recovery_point_t * ret); /* Slice header */ typedef struct { int first_mb_in_slice; int slice_type; int pic_parameter_set_id; // if( separate_colour_plane_flag = = 1 ) int colour_plane_id; int frame_num; // if( !frame_mbs_only_flag ) { int field_pic_flag; // if( field_pic_flag ) int bottom_field_flag; // } } bgav_h264_slice_header_t; void bgav_h264_slice_header_parse(const uint8_t * data, int len, const bgav_h264_sps_t * sps, bgav_h264_slice_header_t * ret); void bgav_h264_slice_header_dump(const bgav_h264_sps_t * sps, const bgav_h264_slice_header_t * ret); gmerlin-avdecoder-1.2.0~dfsg/include/language_table.h0000644000000000000000000005431411764363500021403 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ static const struct { char const * const iso_639_t; char const * const iso_639_b; char const * const iso_639_2; char const * const name; char const * const family; } language_codes[] = { { "aar", "aar", "aa", "Afar", "Hamitic" }, { "abk", "abk", "ab", "Abkhazian", "Ibero-caucasian" }, { "ace", "ace", NULL, "Achinese", NULL }, { "ach", "ach", NULL, "Acoli", NULL }, { "ada", "ada", NULL, "Adangme", NULL }, { "afa", "afa", NULL, "Afro-Asiatic (Other)", NULL }, { "afh", "afh", NULL, "Afrihili", NULL }, { "afr", "afr", "af", "Afrikaans", "Germanic" }, { "aka", "aka", NULL, "Akan", NULL }, { "akk", "akk", NULL, "Akkadian", NULL }, { "ale", "ale", NULL, "Aleut", NULL }, { "alg", "alg", NULL, "Algonquian languages", NULL }, { "amh", "amh", "am", "Amharic", "Semitic" }, { "ang", "ang", NULL, "English, Old (ca. 450-1100)", NULL }, { "apa", "apa", NULL, "Apache languages", NULL }, { "ara", "ara", "ar", "Arabic", "Semitic" }, { "arc", "arc", NULL, "Aramaic", NULL }, { "arn", "arn", NULL, "Araucanian", NULL }, { "arp", "arp", NULL, "Arapaho", NULL }, { "art", "art", NULL, "Artificial (Other)", NULL }, { "arw", "arw", NULL, "Arawak", NULL }, { "asm", "asm", "as", "Assamese", "Indian" }, { "ath", "ath", NULL, "Athapascan languages", NULL }, { "aus", "aus", NULL, "Australian languages", NULL }, { "ava", "ava", NULL, "Avaric", NULL }, { "ave", "ave", "ae", "Avestan", NULL }, { "awa", "awa", NULL, "Awadhi", NULL }, { "aym", "aym", "ay", "Aymara", "Amerindian" }, { "aze", "aze", "az", "Azerbaijani", "Turkic/altaic" }, { "bad", "bad", NULL, "Banda", NULL }, { "bai", "bai", NULL, "Bamileke languages", NULL }, { "bak", "bak", "ba", "Bashkir", "Turkic/altaic" }, { "bal", "bal", NULL, "Baluchi", NULL }, { "bam", "bam", NULL, "Bambara", NULL }, { "ban", "ban", NULL, "Balinese", NULL }, { "bas", "bas", NULL, "Basa", NULL }, { "bat", "bat", NULL, "Baltic (Other)", NULL }, { "bej", "bej", NULL, "Beja", NULL }, { "bel", "bel", "be", "Belarusian", "Slavic" }, { "bem", "bem", NULL, "Bemba", NULL }, { "ben", "ben", "bn", "Bengali", "Indian" }, { "ber", "ber", NULL, "Berber (Other)", NULL }, { "bho", "bho", NULL, "Bhojpuri", NULL }, { "bih", "bih", "bh", "Bihari", "Indian" }, { "bik", "bik", NULL, "Bikol", NULL }, { "bin", "bin", NULL, "Bini", NULL }, { "bis", "bis", "bi", "Bislama", NULL }, { "bla", "bla", NULL, "Siksika", NULL }, { "bnt", "bnt", NULL, "Bantu (Other)", NULL }, { "bod", "tib", "bo", "Tibetan", "Asian" }, { "bos", "bos", "bs", "Bosnian", NULL }, { "bra", "bra", NULL, "Braj", NULL }, { "bre", "bre", "br", "Breton", "Celtic" }, { "btk", "btk", NULL, "Batak (Indonesia)", NULL }, { "bua", "bua", NULL, "Buriat", NULL }, { "bug", "bug", NULL, "Buginese", NULL }, { "bul", "bul", "bg", "Bulgarian", "Slavic" }, { "cad", "cad", NULL, "Caddo", NULL }, { "cai", "cai", NULL, "Central American Indian (Other)", NULL }, { "car", "car", NULL, "Carib", NULL }, { "cat", "cat", "ca", "Catalan", "Romance" }, { "cau", "cau", NULL, "Caucasian (Other)", NULL }, { "ceb", "ceb", NULL, "Cebuano", NULL }, { "cel", "cel", NULL, "Celtic (Other)", NULL }, { "ces", "cze", "cs", "Czech", "Slavic" }, { "cha", "cha", "ch", "Chamorro", NULL }, { "chb", "chb", NULL, "Chibcha", NULL }, { "che", "che", "ce", "Chechen", NULL }, { "chg", "chg", NULL, "Chagatai", NULL }, { "chk", "chk", NULL, "Chuukese", NULL }, { "chm", "chm", NULL, "Mari", NULL }, { "chn", "chn", NULL, "Chinook jargon", NULL }, { "cho", "cho", NULL, "Choctaw", NULL }, { "chp", "chp", NULL, "Chipewyan", NULL }, { "chr", "chr", NULL, "Cherokee", NULL }, { "chu", "chu", "cu", "Church Slavic", NULL }, { "chv", "chv", "cv", "Chuvash", NULL }, { "chy", "chy", NULL, "Cheyenne", NULL }, { "cmc", "cmc", NULL, "Chamic languages", NULL }, { "cop", "cop", NULL, "Coptic", NULL }, { "cor", "cor", "kw", "Cornish", NULL }, { "cos", "cos", "co", "Corsican", "Romance" }, { "cpe", "cpe", NULL, "Creoles and pidgins, English based (Other)", NULL }, { "cpf", "cpf", NULL, "Creoles and pidgins, French-based (Other)", NULL }, { "cpp", "cpp", NULL, "Creoles and pidgins, Portuguese-based (Other)", NULL }, { "cre", "cre", NULL, "Cree", NULL }, { "crp", "crp", NULL, "Creoles and pidgins (Other)", NULL }, { "cus", "cus", NULL, "Cushitic (Other)", NULL }, { "cym", "wel", "cy", "Welsh", "Celtic" }, { "dak", "dak", NULL, "Dakota", NULL }, { "dan", "dan", "da", "Danish", "Germanic" }, { "day", "day", NULL, "Dayak", NULL }, { "del", "del", NULL, "Delaware", NULL }, { "den", "den", NULL, "Slave (Athapascan)", NULL }, { "deu", "ger", "de", "German", "Germanic" }, { "dgr", "dgr", NULL, "Dogrib", NULL }, { "din", "din", NULL, "Dinka", NULL }, { "div", "div", NULL, "Divehi", NULL }, { "doi", "doi", NULL, "Dogri", NULL }, { "dra", "dra", NULL, "Dravidian (Other)", NULL }, { "dua", "dua", NULL, "Duala", NULL }, { "dum", "dum", NULL, "Dutch, Middle (ca. 1050-1350)", NULL }, { "dyu", "dyu", NULL, "Dyula", NULL }, { "dzo", "dzo", "dz", "Dzongkha", "Asian" }, { "efi", "efi", NULL, "Efik", NULL }, { "egy", "egy", NULL, "Egyptian (Ancient)", NULL }, { "eka", "eka", NULL, "Ekajuk", NULL }, { "ell", "gre", "el", "Greek, Modern (1453-)", "Latin/greek" }, { "elx", "elx", NULL, "Elamite", NULL }, { "eng", "eng", "en", "English", "Germanic" }, { "enm", "enm", NULL, "English, Middle (1100-1500)", NULL }, { "epo", "epo", "eo", "Esperanto", "International aux." }, { "est", "est", "et", "Estonian", "Finno-ugric" }, { "eus", "baq", "eu", "Basque", "Basque" }, { "ewe", "ewe", NULL, "Ewe", NULL }, { "ewo", "ewo", NULL, "Ewondo", NULL }, { "fan", "fan", NULL, "Fang", NULL }, { "fao", "fao", "fo", "Faroese", "Germanic" }, { "fas", "per", "fa", "Persian", NULL }, { "fat", "fat", NULL, "Fanti", NULL }, { "fij", "fij", "fj", "Fijian", "Oceanic/indonesian" }, { "fin", "fin", "fi", "Finnish", "Finno-ugric" }, { "fiu", "fiu", NULL, "Finno-Ugrian (Other)", NULL }, { "fon", "fon", NULL, "Fon", NULL }, { "fra", "fre", "fr", "French", "Romance" }, { "frm", "frm", NULL, "French, Middle (ca. 1400-1600)", NULL }, { "fro", "fro", NULL, "French, Old (842-ca. 1400)", NULL }, { "fry", "fry", "fy", "Frisian", "Germanic" }, { "ful", "ful", NULL, "Fulah", NULL }, { "fur", "fur", NULL, "Friulian", NULL }, { "gaa", "gaa", NULL, "Ga", NULL }, { "gay", "gay", NULL, "Gayo", NULL }, { "gba", "gba", NULL, "Gbaya", NULL }, { "gem", "gem", NULL, "Germanic (Other)", NULL }, { "gez", "gez", NULL, "Geez", NULL }, { "gil", "gil", NULL, "Gilbertese", NULL }, { "gla", "gla", "gd", "Gaelic (Scots)", "Celtic" }, { "gle", "gle", "ga", "Irish", "Celtic" }, { "glg", "glg", "gl", "Gallegan", "Romance" }, { "glv", "glv", "gv", "Manx", NULL }, { "gmh", "gmh", NULL, "German, Middle High (ca. 1050-1500)", NULL }, { "goh", "goh", NULL, "German, Old High (ca. 750-1050)", NULL }, { "gon", "gon", NULL, "Gondi", NULL }, { "gor", "gor", NULL, "Gorontalo", NULL }, { "got", "got", NULL, "Gothic", NULL }, { "grb", "grb", NULL, "Grebo", NULL }, { "grc", "grc", NULL, "Greek, Ancient (to 1453)", NULL }, { "grn", "grn", "gn", "Guarani", "Amerindian" }, { "guj", "guj", "gu", "Gujarati", "Indian" }, { "gwi", "gwi", NULL, "Gwich´in", NULL }, { "hai", "hai", NULL, "Haida", NULL }, { "hau", "hau", "ha", "Hausa", "Negro-african" }, { "haw", "haw", NULL, "Hawaiian", NULL }, { "heb", "heb", "he", "Hebrew", NULL }, { "her", "her", "hz", "Herero", NULL }, { "hil", "hil", NULL, "Hiligaynon", NULL }, { "him", "him", NULL, "Himachali", NULL }, { "hin", "hin", "hi", "Hindi", "Indian" }, { "hit", "hit", NULL, "Hittite", NULL }, { "hmn", "hmn", NULL, "Hmong", NULL }, { "hmo", "hmo", "ho", "Hiri Motu", NULL }, { "hrv", "scr", "hr", "Croatian", "Slavic" }, { "hun", "hun", "hu", "Hungarian", "Finno-ugric" }, { "hup", "hup", NULL, "Hupa", NULL }, { "hye", "arm", "hy", "Armenian", "Indo-european (other)" }, { "iba", "iba", NULL, "Iban", NULL }, { "ibo", "ibo", NULL, "Igbo", NULL }, { "ijo", "ijo", NULL, "Ijo", NULL }, { "iku", "iku", "iu", "Inuktitut", NULL }, { "ile", "ile", "ie", "Interlingue", "International aux." }, { "ilo", "ilo", NULL, "Iloko", NULL }, { "ina", "ina", "ia", "Interlingua (International Auxiliary Language Association)", "International aux." }, { "inc", "inc", NULL, "Indic (Other)", NULL }, { "ind", "ind", "id", "Indonesian", NULL }, { "ine", "ine", NULL, "Indo-European (Other)", NULL }, { "ipk", "ipk", "ik", "Inupiaq", "Eskimo" }, { "ira", "ira", NULL, "Iranian (Other)", NULL }, { "iro", "iro", NULL, "Iroquoian languages", NULL }, { "isl", "ice", "is", "Icelandic", "Germanic" }, { "ita", "ita", "it", "Italian", "Romance" }, { "jaw", "jav", "jw", "Javanese", NULL }, { "jpn", "jpn", "ja", "Japanese", "Asian" }, { "jpr", "jpr", NULL, "Judeo-Persian", NULL }, { "kaa", "kaa", NULL, "Kara-Kalpak", NULL }, { "kab", "kab", NULL, "Kabyle", NULL }, { "kac", "kac", NULL, "Kachin", NULL }, { "kal", "kal", "kl", "Kalaallisut", "Eskimo" }, { "kam", "kam", NULL, "Kamba", NULL }, { "kan", "kan", "kn", "Kannada", "Dravidian" }, { "kar", "kar", NULL, "Karen", NULL }, { "kas", "kas", "ks", "Kashmiri", "Indian" }, { "kat", "geo", "ka", "Georgian", "Ibero-caucasian" }, { "kau", "kau", NULL, "Kanuri", NULL }, { "kaw", "kaw", NULL, "Kawi", NULL }, { "kaz", "kaz", "kk", "Kazakh", "Turkic/altaic" }, { "kha", "kha", NULL, "Khasi", NULL }, { "khi", "khi", NULL, "Khoisan (Other)", NULL }, { "khm", "khm", "km", "Khmer", "Asian" }, { "kho", "kho", NULL, "Khotanese", NULL }, { "kik", "kik", "ki", "Kikuyu", NULL }, { "kin", "kin", "rw", "Kinyarwanda", "Negro-african" }, { "kir", "kir", "ky", "Kirghiz", "Turkic/altaic" }, { "kmb", "kmb", NULL, "Kimbundu", NULL }, { "kok", "kok", NULL, "Konkani", NULL }, { "kom", "kom", "kv", "Komi", NULL }, { "kon", "kon", NULL, "Kongo", NULL }, { "kor", "kor", "ko", "Korean", "Asian" }, { "kos", "kos", NULL, "Kosraean", NULL }, { "kpe", "kpe", NULL, "Kpelle", NULL }, { "kro", "kro", NULL, "Kru", NULL }, { "kru", "kru", NULL, "Kurukh", NULL }, { "kum", "kum", NULL, "Kumyk", NULL }, { "kur", "kur", "ku", "Kurdish", "Iranian" }, { "kut", "kut", NULL, "Kutenai", NULL }, { "lad", "lad", NULL, "Ladino", NULL }, { "lah", "lah", NULL, "Lahnda", NULL }, { "lam", "lam", NULL, "Lamba", NULL }, { "lao", "lao", "lo", "Lao", "Asian" }, { "lat", "lat", "la", "Latin", "Latin/greek" }, { "lav", "lav", "lv", "Latvian", "Baltic" }, { "lez", "lez", NULL, "Lezghian", NULL }, { "lin", "lin", "ln", "Lingala", "Negro-african" }, { "lit", "lit", "lt", "Lithuanian", "Baltic" }, { "lol", "lol", NULL, "Mongo", NULL }, { "loz", "loz", NULL, "Lozi", NULL }, { "ltz", "ltz", "lb", "Letzeburgesch", NULL }, { "lua", "lua", NULL, "Luba-Lulua", NULL }, { "lub", "lub", NULL, "Luba-Katanga", NULL }, { "lug", "lug", NULL, "Ganda", NULL }, { "lui", "lui", NULL, "Luiseno", NULL }, { "lun", "lun", NULL, "Lunda", NULL }, { "luo", "luo", NULL, "Luo (Kenya and Tanzania)", NULL }, { "lus", "lus", NULL, "lushai", NULL }, { "mad", "mad", NULL, "Madurese", NULL }, { "mag", "mag", NULL, "Magahi", NULL }, { "mah", "mah", "mh", "Marshall", NULL }, { "mai", "mai", NULL, "Maithili", NULL }, { "mak", "mak", NULL, "Makasar", NULL }, { "mal", "mal", "ml", "Malayalam", "Dravidian" }, { "man", "man", NULL, "Mandingo", NULL }, { "map", "map", NULL, "Austronesian (Other)", NULL }, { "mar", "mar", "mr", "Marathi", "Indian" }, { "mas", "mas", NULL, "Masai", NULL }, { "mdr", "mdr", NULL, "Mandar", NULL }, { "men", "men", NULL, "Mende", NULL }, { "mga", "mga", NULL, "Irish, Middle (900-1200)", NULL }, { "mic", "mic", NULL, "Micmac", NULL }, { "min", "min", NULL, "Minangkabau", NULL }, { "mis", "mis", NULL, "Miscellaneous languages", NULL }, { "mkd", "mac", "mk", "Macedonian", "Slavic" }, { "mkh", "mkh", NULL, "Mon-Khmer (Other)", NULL }, { "mlg", "mlg", "mg", "Malagasy", "Oceanic/indonesian" }, { "mlt", "mlt", "mt", "Maltese", "Semitic" }, { "mnc", "mnc", NULL, "Manchu", NULL }, { "mni", "mni", NULL, "Manipuri", NULL }, { "mno", "mno", NULL, "Manobo languages", NULL }, { "moh", "moh", NULL, "Mohawk", NULL }, { "mol", "mol", "mo", "Moldavian", "Romance" }, { "mon", "mon", "mn", "Mongolian", NULL }, { "mos", "mos", NULL, "Mossi", NULL }, { "mri", "mao", "mi", "Maori", "Oceanic/indonesian" }, { "msa", "may", "ms", "Malay", "Oceanic/indonesian" }, { "mul", "mul", NULL, "Multiple languages", NULL }, { "mun", "mun", NULL, "Munda languages", NULL }, { "mus", "mus", NULL, "Creek", NULL }, { "mwr", "mwr", NULL, "Marwari", NULL }, { "mya", "bur", "my", "Burmese", "Asian" }, { "myn", "myn", NULL, "Mayan languages", NULL }, { "nah", "nah", NULL, "Nahuatl", NULL }, { "nai", "nai", NULL, "North American Indian", NULL }, { "nau", "nau", "na", "Nauru", NULL }, { "nav", "nav", "nv", "Navajo", NULL }, { "nbl", "nbl", "nr", "Ndebele, South", NULL }, { "nde", "nde", "nd", "Ndebele, North", NULL }, { "ndo", "ndo", "ng", "Ndonga", NULL }, { "nds", "nds", NULL, "Low German; Low Saxon; German, Low; Saxon, Low", NULL }, { "nep", "nep", "ne", "Nepali", "Indian" }, { "new", "new", NULL, "Newari", NULL }, { "nia", "nia", NULL, "Nias", NULL }, { "nic", "nic", NULL, "Niger-Kordofanian (Other)", NULL }, { "niu", "niu", NULL, "Niuean", NULL }, { "nld", "dut", "nl", "Dutch", "Germanic" }, { "nno", "nno", "nn", "Norwegian Nynorsk", NULL }, { "nob", "nob", "nb", "Norwegian Bokmål", NULL }, { "non", "non", NULL, "Norse, Old", NULL }, { "nor", "nor", "no", "Norwegian", "Germanic" }, { "nso", "nso", NULL, "Sotho, Northern", NULL }, { "nub", "nub", NULL, "Nubian languages", NULL }, { "nya", "nya", "ny", "Chichewa; Nyanja", NULL }, { "nym", "nym", NULL, "Nyamwezi", NULL }, { "nyn", "nyn", NULL, "Nyankole", NULL }, { "nyo", "nyo", NULL, "Nyoro", NULL }, { "nzi", "nzi", NULL, "Nzima", NULL }, { "oci", "oci", "oc", "Occitan (post 1500); Provençal", "Romance" }, { "oji", "oji", NULL, "Ojibwa", NULL }, { "ori", "ori", "or", "Oriya", "Indian" }, { "orm", "orm", "om", "Oromo", "Hamitic" }, { "osa", "osa", NULL, "Osage", NULL }, { "oss", "oss", "os", "Ossetian; Ossetic", NULL }, { "ota", "ota", NULL, "Turkish, Ottoman (1500-1928)", NULL }, { "oto", "oto", NULL, "Otomian languages", NULL }, { "paa", "paa", NULL, "Papuan (Other)", NULL }, { "pag", "pag", NULL, "Pangasinan", NULL }, { "pal", "pal", NULL, "Pahlavi", NULL }, { "pam", "pam", NULL, "Pampanga", NULL }, { "pan", "pan", "pa", "Panjabi", "Indian" }, { "pap", "pap", NULL, "Papiamento", NULL }, { "pau", "pau", NULL, "Palauan", NULL }, { "peo", "peo", NULL, "Persian, Old (ca. 600-400 b.c.)", NULL }, { "phi", "phi", NULL, "Philippine (Other)", NULL }, { "pli", "pli", "pi", "Pali", NULL }, { "pol", "pol", "pl", "Polish", "Slavic" }, { "pon", "pon", NULL, "Pohnpeian", NULL }, { "por", "por", "pt", "Portuguese", "Romance" }, { "pra", "pra", NULL, "Prakrit languages", NULL }, { "pro", "pro", NULL, "Provençal, Old (to 1500)", NULL }, { "pus", "pus", "ps", "Pushto", "Iranian" }, { "que", "que", "qu", "Quechua", "Amerindian" }, { "raj", "raj", NULL, "Rajasthani", NULL }, { "rap", "rap", NULL, "Rapanui", NULL }, { "rar", "rar", NULL, "Rarotongan", NULL }, { "roa", "roa", NULL, "Romance (Other)", NULL }, { "rom", "rom", NULL, "Romany", NULL }, { "ron", "rum", "ro", "Romanian", "Romance" }, { "run", "run", "rn", "Rundi", "Negro-african" }, { "rus", "rus", "ru", "Russian", "Slavic" }, { "sad", "sad", NULL, "Sandawe", NULL }, { "sag", "sag", "sg", "Sango", "Negro-african" }, { "sah", "sah", NULL, "Yakut", NULL }, { "sai", "sai", NULL, "South American Indian (Other)", NULL }, { "sal", "sal", NULL, "Salishan languages", NULL }, { "sam", "sam", NULL, "Samaritan Aramaic", NULL }, { "san", "san", "sa", "Sanskrit", "Indian" }, { "sas", "sas", NULL, "Sasak", NULL }, { "sat", "sat", NULL, "Santali", NULL }, { "sco", "sco", NULL, "Scots", NULL }, { "sel", "sel", NULL, "Selkup", NULL }, { "sem", "sem", NULL, "Semitic (Other)", NULL }, { "sga", "sga", NULL, "Irish, Old (to 900)", NULL }, { "sgn", "sgn", NULL, "Sign Languages", NULL }, { "shn", "shn", NULL, "Shan", NULL }, { "sid", "sid", NULL, "Sidamo", NULL }, { "sin", "sin", "si", "Sinhalese", "Indian" }, { "sio", "sio", NULL, "Siouan languages", NULL }, { "sit", "sit", NULL, "Sino-Tibetan (Other)", NULL }, { "sla", "sla", NULL, "Slavic (Other)", NULL }, { "slk", "slo", "sk", "Slovak", "Slavic" }, { "slv", "slv", "sl", "Slovenian", "Slavic" }, { "sme", "sme", "se", "Northern Sami", NULL }, { "smi", "smi", NULL, "Sami languages (Other)", NULL }, { "smo", "smo", "sm", "Samoan", "Oceanic/indonesian" }, { "sna", "sna", "sn", "Shona", "Negro-african" }, { "snd", "snd", "sd", "Sindhi", "Indian" }, { "snk", "snk", NULL, "Soninke", NULL }, { "sog", "sog", NULL, "Sogdian", NULL }, { "som", "som", "so", "Somali", "Hamitic" }, { "son", "son", NULL, "Songhai", NULL }, { "sot", "sot", "st", "Sotho, Southern", "Negro-african" }, { "spa", "spa", "es", "Spanish", "Romance" }, { "sqi", "alb", "sq", "Albanian", "Indo-european (other)" }, { "srd", "srd", "sc", "Sardinian", NULL }, { "srp", "scc", "sr", "Serbian", "Slavic" }, { "srr", "srr", NULL, "Serer", NULL }, { "ssa", "ssa", NULL, "Nilo-Saharan (Other)", NULL }, { "ssw", "ssw", "ss", "Swati", "Negro-african" }, { "suk", "suk", NULL, "Sukuma", NULL }, { "sun", "sun", "su", "Sundanese", "Oceanic/indonesian" }, { "sus", "sus", NULL, "Susu", NULL }, { "sux", "sux", NULL, "Sumerian", NULL }, { "swa", "swa", "sw", "Swahili", "Negro-african" }, { "swe", "swe", "sv", "Swedish", "Germanic" }, { "syr", "syr", NULL, "Syriac", NULL }, { "tah", "tah", "ty", "Tahitian", NULL }, { "tai", "tai", NULL, "Tai (Other)", NULL }, { "tam", "tam", "ta", "Tamil", "Dravidian" }, { "tat", "tat", "tt", "Tatar", "Turkic/altaic" }, { "tel", "tel", "te", "Telugu", "Dravidian" }, { "tem", "tem", NULL, "Timne", NULL }, { "ter", "ter", NULL, "Tereno", NULL }, { "tet", "tet", NULL, "Tetum", NULL }, { "tgk", "tgk", "tg", "Tajik", "Iranian" }, { "tgl", "tgl", "tl", "Tagalog", "Oceanic/indonesian" }, { "tha", "tha", "th", "Thai", "Asian" }, { "tig", "tig", NULL, "Tigre", NULL }, { "tir", "tir", "ti", "Tigrinya", "Semitic" }, { "tiv", "tiv", NULL, "Tiv", NULL }, { "tkl", "tkl", NULL, "Tokelau", NULL }, { "tli", "tli", NULL, "Tlingit", NULL }, { "tmh", "tmh", NULL, "Tamashek", NULL }, { "tog", "tog", NULL, "Tonga (Nyasa)", NULL }, { "ton", "ton", "to", "Tonga (Tonga Islands)", "Oceanic/indonesian" }, { "tpi", "tpi", NULL, "Tok Pisin", NULL }, { "tsi", "tsi", NULL, "Tsimshian", NULL }, { "tsn", "tsn", "tn", "Tswana", "Negro-african" }, { "tso", "tso", "ts", "Tsonga", "Negro-african" }, { "tuk", "tuk", "tk", "Turkmen", "Turkic/altaic" }, { "tum", "tum", NULL, "Tumbuka", NULL }, { "tur", "tur", "tr", "Turkish", "Turkic/altaic" }, { "tut", "tut", NULL, "Altaic (Other)", NULL }, { "tvl", "tvl", NULL, "Tuvalu", NULL }, { "twi", "twi", "tw", "Twi", "Negro-african" }, { "tyv", "tyv", NULL, "Tuvinian", NULL }, { "uga", "uga", NULL, "Ugaritic", NULL }, { "uig", "uig", "ug", "Uighur", NULL }, { "ukr", "ukr", "uk", "Ukrainian", "Slavic" }, { "umb", "umb", NULL, "Umbundu", NULL }, { "und", "und", NULL, "Undetermined", NULL }, { "urd", "urd", "ur", "Urdu", "Indian" }, { "uzb", "uzb", "uz", "Uzbek", "Turkic/altaic" }, { "vai", "vai", NULL, "Vai", NULL }, { "ven", "ven", NULL, "Venda", NULL }, { "vie", "vie", "vi", "Vietnamese", "Asian" }, { "vol", "vol", "vo", "Volapük", "International aux." }, { "vot", "vot", NULL, "Votic", NULL }, { "wak", "wak", NULL, "Wakashan languages", NULL }, { "wal", "wal", NULL, "Walamo", NULL }, { "war", "war", NULL, "Waray", NULL }, { "was", "was", NULL, "Washo", NULL }, { "wen", "wen", NULL, "Sorbian languages", NULL }, { "wol", "wol", "wo", "Wolof", "Negro-african" }, { "xho", "xho", "xh", "Xhosa", "Negro-african" }, { "yao", "yao", NULL, "Yao", NULL }, { "yap", "yap", NULL, "Yapese", NULL }, { "yid", "yid", "yi", "Yiddish", NULL }, { "yor", "yor", "yo", "Yoruba", "Negro-african" }, { "ypk", "ypk", NULL, "Yupik languages", NULL }, { "zap", "zap", NULL, "Zapotec", NULL }, { "zen", "zen", NULL, "Zenaga", NULL }, { "zha", "zha", "za", "Zhuang", NULL }, { "zho", "chi", "zh", "Chinese", "Asian" }, { "znd", "znd", NULL, "Zande", NULL }, { "zul", "zul", "zu", "Zulu", "Negro-african" }, { "zun", "zun", NULL, "Zuni", NULL }, }; gmerlin-avdecoder-1.2.0~dfsg/include/utils.h0000644000000000000000000000204311764363500017601 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ void bgav_hexdump(const uint8_t * data, int len, int linebreak); gmerlin-avdecoder-1.2.0~dfsg/include/xing.h0000644000000000000000000000345011764363500017411 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* XING VBR header (stolen from xmms) */ #define FRAMES_FLAG 0x0001 #define BYTES_FLAG 0x0002 #define TOC_FLAG 0x0004 #define VBR_SCALE_FLAG 0x0008 typedef struct { int flags; uint32_t frames; /* total bit stream frames from Xing header data */ uint32_t bytes; /* total bit stream bytes from Xing header data */ unsigned char toc[100]; /* "table of contents" */ } bgav_xing_header_t; /* Read the xing header, buf MUST be at least one complete mpeg audio frame */ int bgav_xing_header_read(bgav_xing_header_t * xing, unsigned char *buf); int64_t bgav_xing_get_seek_position(bgav_xing_header_t * xing, float percent); void bgav_xing_header_dump(bgav_xing_header_t * xing); int bgav_xing_header_probe(unsigned char *buf); int bgav_mp3_info_header_probe(unsigned char *buf); gmerlin-avdecoder-1.2.0~dfsg/include/qt.h0000644000000000000000000005640311764363500017076 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* * The quicktime stuff is so complicated, that it is split into * several files. So we need this header */ /* Forward declaration */ typedef struct qt_minf_s qt_minf_t; typedef struct qt_trak_s qt_trak_t; #define READ_VERSION_AND_FLAGS \ uint8_t version; \ if(!bgav_input_read_8(input, &version) || \ !bgav_input_read_24_be(input, &ret->flags)) \ return 0;\ ret->version = version /* Quicktime stuff */ /* * The quicktime API is hidden to the public, so * we can use simpler typenames here */ /* Generic Atom */ typedef struct { uint64_t size; uint64_t start_position; uint32_t fourcc; } qt_atom_header_t; int bgav_qt_atom_read_header(bgav_input_context_t * input, qt_atom_header_t * h); void bgav_qt_atom_dump_header(int indent, qt_atom_header_t * h); void bgav_qt_atom_skip(bgav_input_context_t * input, qt_atom_header_t * h); void bgav_qt_atom_skip_unknown(bgav_input_context_t * input, qt_atom_header_t * h, uint32_t parent); /* Reference movies (== Quicktime redirectors) */ typedef struct { uint32_t flags; uint32_t fourcc; uint32_t data_ref_size; uint8_t * data_ref; } qt_rdrf_t; int bgav_qt_rdrf_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_rdrf_t * ret); void bgav_qt_rdrf_free(qt_rdrf_t * r); void bgav_qt_rdrf_dump(int indent, qt_rdrf_t * r); typedef struct { qt_atom_header_t h; int has_rdrf; qt_rdrf_t rdrf; } qt_rmda_t; int bgav_qt_rmda_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_rmda_t * ret); void bgav_qt_rmda_free(qt_rmda_t * r); void bgav_qt_rmda_dump(int indent, qt_rmda_t * r); typedef struct { qt_atom_header_t h; int num_rmda; qt_rmda_t * rmda; } qt_rmra_t; int bgav_qt_rmra_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_rmra_t * ret); void bgav_qt_rmra_free(qt_rmra_t * r); void bgav_qt_rmra_dump(int indent, qt_rmra_t * r); /* tref */ typedef struct { int num_references; struct { uint32_t type; int num_tracks; uint32_t * tracks; } * references; } qt_tref_t; int bgav_qt_tref_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_tref_t * ret); void bgav_qt_tref_free(qt_tref_t * r); void bgav_qt_tref_dump(int indent, qt_tref_t * r); /* * Time to sample */ typedef struct { qt_atom_header_t h; int version; uint32_t flags; uint32_t num_entries; struct { uint32_t count; uint32_t duration; } * entries; } qt_stts_t; int bgav_qt_stts_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_stts_t * ret); void bgav_qt_stts_free(qt_stts_t * c); void bgav_qt_stts_dump(int indent, qt_stts_t * c); int64_t bgav_qt_stts_num_samples(qt_stts_t * c); void bgav_qt_ctts_shift(qt_stts_t * ctts); /* * Sync samples */ typedef struct { qt_atom_header_t h; int version; uint32_t flags; uint32_t num_entries; uint32_t * entries; } qt_stss_t; int bgav_qt_stss_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_stss_t * ret); void bgav_qt_stss_free(qt_stss_t * c); void bgav_qt_stss_dump(int indent, qt_stss_t * c); typedef struct { int num; uint8_t ** atoms; } qt_user_atoms_t; int bgav_qt_user_atoms_append(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_user_atoms_t * ret); void bgav_qt_user_atoms_free(qt_user_atoms_t * a); void bgav_qt_user_atoms_dump(int indent, qt_user_atoms_t * a); uint8_t * bgav_user_atoms_find(qt_user_atoms_t * a, uint32_t fourcc, int * len); /* esds */ typedef struct { qt_atom_header_t h; int version; uint32_t flags; int decoderConfigLen; uint8_t objectTypeId; uint8_t streamType; uint32_t bufferSizeDB; uint32_t maxBitrate; uint32_t avgBitrate; uint8_t* decoderConfig; } qt_esds_t; int bgav_qt_esds_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_esds_t * ret); void bgav_qt_esds_free(qt_esds_t * ret); void bgav_qt_esds_dump(int indent, qt_esds_t * e); /* pasp */ typedef struct { qt_atom_header_t h; uint32_t hSpacing; uint32_t vSpacing; } qt_pasp_t; int bgav_qt_pasp_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_pasp_t * ret); void bgav_qt_pasp_dump(int indent, qt_pasp_t * e); /* fiel */ typedef struct { qt_atom_header_t h; uint8_t fields; uint8_t detail; } qt_fiel_t; int bgav_qt_fiel_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_fiel_t * ret); void bgav_qt_fiel_dump(int indent, qt_fiel_t * f); /* frma */ typedef struct { uint32_t fourcc; } qt_frma_t; int bgav_qt_frma_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_frma_t * ret); void bgav_qt_frma_dump(int indent, qt_frma_t * f); /* enda */ typedef struct { uint16_t littleEndian; } qt_enda_t; int bgav_qt_enda_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_enda_t * ret); void bgav_qt_enda_dump(int indent, qt_enda_t * f); /* chan */ typedef struct { qt_atom_header_t h; int version; uint32_t flags; uint32_t mChannelLayoutTag; uint32_t mChannelBitmap; uint32_t mNumberChannelDescriptions; struct { uint32_t mChannelLabel; uint32_t mChannelFlags; float mCoordinates[3]; } * ChannelDescriptions; } qt_chan_t; int bgav_qt_chan_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_chan_t * chan); void bgav_qt_chan_dump(int indent, qt_chan_t * chan); void bgav_qt_chan_get(qt_chan_t * chan, gavl_audio_format_t * format); void bgav_qt_chan_free(qt_chan_t * chan); /* wave */ typedef struct { /* Some codecs need the wave atom in raw form */ uint8_t * raw; int raw_size; int has_frma; qt_frma_t frma; int has_enda; qt_enda_t enda; int has_esds; qt_esds_t esds; qt_user_atoms_t user; } qt_wave_t; int bgav_qt_wave_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_wave_t * ret); void bgav_qt_wave_dump(int indent, qt_wave_t * f); void bgav_qt_wave_free(qt_wave_t * r); /* * Font table (used in 3gpp subtitles) */ typedef struct { uint16_t num_fonts; struct { uint16_t font_id; char font_name[256]; } * fonts; } qt_ftab_t; int bgav_qt_ftab_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_ftab_t * ret); void bgav_qt_ftab_dump(int indent, qt_ftab_t * f); void bgav_qt_ftab_free(qt_ftab_t * r); /* * Inofficial way to store codec data */ typedef struct { int size; uint8_t * data; } qt_glbl_t; int bgav_qt_glbl_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_glbl_t * ret); void bgav_qt_glbl_dump(int indent, qt_glbl_t * f); void bgav_qt_glbl_free(qt_glbl_t * r); /* * Sample description */ typedef struct { /* Common members (20 bytes) */ uint32_t fourcc; uint8_t reserved[6]; uint16_t data_reference_index; uint16_t version; uint16_t revision_level; uint32_t vendor; int type; /* BGAV_STREAM_AUDIO, BGAV_STREAM_VIDEO or BGAV_STREAM_SUBTITLE_TEXT */ union { struct { uint32_t temporal_quality; uint32_t spatial_quality; uint16_t width; uint16_t height; float horizontal_resolution; float vertical_resolution; uint32_t data_size; uint16_t frame_count; /* Frames / sample */ char compressor_name[32]; uint16_t depth; uint16_t ctab_id; uint16_t ctab_size; bgav_palette_entry_t * ctab; qt_pasp_t pasp; int has_pasp; qt_fiel_t fiel; int has_fiel; /* Data for avc1 (offset relative to data) */ int avcC_offset; int avcC_size; int has_SMI; } video; struct { /* 12 bytes */ uint32_t num_channels; uint32_t bits_per_sample; uint16_t compression_id; uint16_t packet_size; int samplerate; /* Actually fixed32 */ /* For Version 1 (CBR and VBR) 16 bytes */ uint32_t samples_per_packet; uint32_t bytes_per_packet; uint32_t bytes_per_frame; uint32_t bytes_per_sample; /* For Version 2 (will be converted to version 1) */ uint32_t formatSpecificFlags; /* Extended fields */ int has_wave; qt_wave_t wave; int has_chan; qt_chan_t chan; /* User atoms */ qt_user_atoms_t user; } audio; struct { uint32_t displayFlags; uint32_t textJustification; uint16_t bgColor[3]; uint16_t defaultTextBox[4]; uint32_t scrpStartChar; /*starting character position*/ uint16_t scrpHeight; uint16_t scrpAscent; uint16_t scrpFont; uint16_t scrpFace; uint16_t scrpSize; uint16_t scrpColor[3]; char font_name[256]; } subtitle_qt; struct { uint32_t display_flags; uint8_t horizontal_justification; uint8_t vertical_justification; uint8_t back_color[4]; uint16_t defaultTextBox[4]; uint16_t start_char_offset; uint16_t end_char_offset; uint16_t font_id; uint8_t style_flags; uint8_t font_size; uint8_t text_color[4]; int has_ftab; qt_ftab_t ftab; } subtitle_tx3g; struct { uint32_t reserved2; uint32_t flags; uint32_t timescale; uint32_t frameduration; uint8_t numframes; uint8_t reserved3; } timecode; } format; qt_esds_t esds; int has_esds; qt_glbl_t glbl; int has_glbl; } qt_sample_description_t ; typedef struct { qt_atom_header_t h; int version; uint32_t flags; uint32_t num_entries; struct { /* Raw data (must be passed to codec) */ uint32_t data_size; uint8_t * data; /* Parsed data */ qt_sample_description_t desc; } * entries; } qt_stsd_t; int bgav_qt_stsd_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_stsd_t * ret); void bgav_qt_stsd_free(qt_stsd_t * c); int bgav_qt_stsd_finalize(qt_stsd_t * c, qt_trak_t * trak, const bgav_options_t * opt); void bgav_qt_stsd_dump(int indent, qt_stsd_t * c); /* * Sample to chunk */ typedef struct { qt_atom_header_t h; int version; uint32_t flags; uint32_t num_entries; struct { uint32_t first_chunk; uint32_t samples_per_chunk; uint32_t sample_description_id; } * entries; } qt_stsc_t; int bgav_qt_stsc_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_stsc_t * ret); void bgav_qt_stsc_free(qt_stsc_t * c); void bgav_qt_stsc_dump(int indent, qt_stsc_t * c); /* * Sample size table */ typedef struct { qt_atom_header_t h; int version; uint32_t flags; uint32_t sample_size; uint32_t num_entries; uint32_t * entries; } qt_stsz_t; int bgav_qt_stsz_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_stsz_t * ret); void bgav_qt_stsz_free(qt_stsz_t * c); void bgav_qt_stsz_dump(int indent, qt_stsz_t * c); /* * Chunk offset table */ typedef struct { qt_atom_header_t h; int version; uint32_t flags; uint32_t num_entries; uint64_t * entries; } qt_stco_t; int bgav_qt_stco_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_stco_t * ret); int bgav_qt_stco_read_64(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_stco_t * ret); void bgav_qt_stco_free(qt_stco_t * c); void bgav_qt_stco_dump(int indent, qt_stco_t * c); /* * Sample table */ typedef struct { qt_atom_header_t h; qt_stts_t stts; qt_stss_t stss; int has_stss; qt_stsd_t stsd; qt_stsz_t stsz; qt_stsc_t stsc; qt_stco_t stco; /* Optional stuff */ qt_stss_t stps; int has_stps; qt_stts_t ctts; int has_ctts; } qt_stbl_t; int bgav_qt_stbl_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_stbl_t * ret, qt_minf_t * minf); void bgav_qt_stbl_free(qt_stbl_t * c); void bgav_qt_stbl_dump(int indent, qt_stbl_t * c); /* * Data reference */ typedef struct { uint32_t size; uint32_t type; int version; uint32_t flags; uint8_t * data_reference; } qt_dref_table_t; typedef struct { int version; uint32_t flags; uint32_t table_size; qt_dref_table_t * table; } qt_dref_t; int bgav_qt_dref_read(qt_atom_header_t * h, bgav_input_context_t * input, qt_dref_t * dref); void bgav_qt_dref_free(qt_dref_t * dref); void bgav_qt_dref_dump(int indent, qt_dref_t * c); /* * dinf */ typedef struct { int has_dref; qt_dref_t dref; } qt_dinf_t; int bgav_qt_dinf_read(qt_atom_header_t * h, bgav_input_context_t * input, qt_dinf_t * dinf); void bgav_qt_dinf_free(qt_dinf_t * dinf); void bgav_qt_dinf_dump(int indent, qt_dinf_t * c); /* * Media handler */ typedef struct { qt_atom_header_t h; int version; uint32_t flags; uint32_t component_type; uint32_t component_subtype; uint32_t component_manufacturer; uint32_t component_flags; uint32_t component_flag_mask; char * component_name; } qt_hdlr_t; int bgav_qt_hdlr_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_hdlr_t * ret); void bgav_qt_hdlr_free(qt_hdlr_t * h); void bgav_qt_hdlr_dump(int indent, qt_hdlr_t * h); /* * Generic media info */ typedef struct { int version; uint32_t flags; uint16_t graphics_mode; uint16_t opcolor[3]; uint16_t balance; uint16_t reserved; } qt_gmin_t; int bgav_qt_gmin_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_gmin_t * ret); void bgav_qt_gmin_free(qt_gmin_t * g); void bgav_qt_gmin_dump(int indent, qt_gmin_t * g); /* Timecode media info */ typedef struct { int version; uint32_t flags; uint16_t font; uint16_t face; uint16_t size; uint16_t txtcolor[3]; uint16_t bgcolor[3]; char fontname[256]; } qt_tcmi_t; int bgav_qt_tcmi_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_tcmi_t * ret); void bgav_qt_tcmi_free(qt_tcmi_t * g); void bgav_qt_tcmi_dump(int indent, qt_tcmi_t * g); /* tmcd */ typedef struct { qt_tcmi_t tcmi; } qt_tmcd_t; int bgav_qt_tmcd_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_tmcd_t * ret); void bgav_qt_tmcd_free(qt_tmcd_t * g); void bgav_qt_tmcd_dump(int indent, qt_tmcd_t * g); /* * Generic media header */ typedef struct { int has_gmin; qt_gmin_t gmin; int has_text; /* We don't parse this just check if it's there */ int has_tmcd; qt_tmcd_t tmcd; } qt_gmhd_t; int bgav_qt_gmhd_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_gmhd_t * ret); void bgav_qt_gmhd_free(qt_gmhd_t * g); void bgav_qt_gmhd_dump(int indent, qt_gmhd_t * g); /* * Null media header (used for MP4 subtitles) */ typedef struct { int version; uint32_t flags; } qt_nmhd_t; int bgav_qt_nmhd_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_nmhd_t * ret); void bgav_qt_nmhd_free(qt_nmhd_t * n); void bgav_qt_nmhd_dump(int indent, qt_nmhd_t * n); /* * elst */ typedef struct { int version; uint32_t flags; uint32_t num_entries; struct { uint32_t duration; int32_t media_time; uint32_t media_rate; } * table; } qt_elst_t; int bgav_qt_elst_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_elst_t * ret); void bgav_qt_elst_free(qt_elst_t * g); void bgav_qt_elst_dump(int indent, qt_elst_t * e); /* * edts */ typedef struct { int has_elst; qt_elst_t elst; } qt_edts_t; int bgav_qt_edts_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_edts_t * ret); void bgav_qt_edts_free(qt_edts_t * g); void bgav_qt_edts_dump(int indent, qt_edts_t * e); /* * Media information */ struct qt_minf_s { qt_atom_header_t h; qt_stbl_t stbl; qt_hdlr_t hdlr; int has_dinf; qt_dinf_t dinf; int has_vmhd; int has_smhd; int has_gmhd; qt_gmhd_t gmhd; int has_nmhd; qt_nmhd_t nmhd; }; int bgav_qt_minf_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_minf_t * ret); void bgav_qt_minf_free(qt_minf_t * h); void bgav_qt_minf_dump(int indent, qt_minf_t * h); /* * Media header */ typedef struct { qt_atom_header_t h; int version; uint32_t flags; uint32_t creation_time; uint32_t modification_time; uint32_t time_scale; uint32_t duration; uint16_t language; uint16_t quality; } qt_mdhd_t; int bgav_qt_mdhd_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_mdhd_t * ret); void bgav_qt_mdhd_free(qt_mdhd_t * c); void bgav_qt_mdhd_dump(int indent, qt_mdhd_t * c); int bgav_qt_mdhd_get_language(qt_mdhd_t * c, char * ret); /* * Media */ typedef struct { qt_atom_header_t h; qt_mdhd_t mdhd; qt_hdlr_t hdlr; qt_minf_t minf; } qt_mdia_t; int bgav_qt_mdia_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_mdia_t * ret); void bgav_qt_mdia_free(qt_mdia_t * c); void bgav_qt_mdia_dump(int indent, qt_mdia_t * c); /* * Track header */ typedef struct { qt_atom_header_t h; uint32_t version; uint32_t flags; uint64_t creation_time; uint64_t modification_time; uint32_t track_id; uint32_t reserved1; uint64_t duration; uint8_t reserved2[8]; uint16_t layer; uint16_t alternate_group; float volume; uint16_t reserved3; float matrix[9]; float track_width; float track_height; } qt_tkhd_t; int bgav_qt_tkhd_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_tkhd_t * ret); void bgav_qt_tkhd_free(qt_tkhd_t * c); void bgav_qt_tkhd_dump(int indent, qt_tkhd_t * c); /* udta atom */ typedef struct { int have_ilst; qt_atom_header_t h; /* * We support all strings, which begin with the * (C)-Character, from the Quicktime Spec */ char * cpy; /* Copyright */ char * day; /* Date */ char * dir; /* Director */ char * ed1; /* 1st edit date and description */ char * ed2; /* 2nd edit date and description */ char * ed3; /* 3rd edit date and description */ char * ed4; /* 4th edit date and description */ char * ed5; /* 5th edit date and description */ char * ed6; /* 6th edit date and description */ char * ed7; /* 7th edit date and description */ char * ed8; /* 8th edit date and description */ char * ed9; /* 9th edit date and description */ char * fmt; /* Format (Computer generated etc.) */ char * inf; /* Information about the movie */ char * prd; /* Producer */ char * prf; /* Performers */ char * rec; /* Hard- software requirements */ char * src; /* Credits for movie Source */ char * wrt; /* Writer */ /* Additional stuff from OpenQuicktime (not in the QT spec I have) */ char * nam; /* Name */ char * ART; /* Artist */ char * alb; /* Album */ char * enc; /* Encoded by */ char * trk; /* Track */ char * cmt; /* Comment */ char * aut; /* Author */ char * com; /* Composer */ char * des; /* Description */ char * dis; /* Disclaimer */ char * gen; /* Genre */ char * hst; /* Host computer */ char * mak; /* Make (??) */ char * mod; /* Model (??) */ char * ope; /* Original Artist */ char * PRD; /* Product */ char * swr; /* Software */ char * wrn; /* Warning */ char * url; /* URL link */ uint16_t trkn; } qt_udta_t; int bgav_qt_udta_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_udta_t * ret); void bgav_qt_udta_free(qt_udta_t * udta); void bgav_qt_udta_dump(int indent, qt_udta_t * udta); /* * Track atom */ struct qt_trak_s { qt_atom_header_t h; qt_mdia_t mdia; qt_tkhd_t tkhd; int has_udta; qt_udta_t udta; int has_edts; qt_edts_t edts; int has_tref; qt_tref_t tref; int is_chapter_track; }; int bgav_qt_trak_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_trak_t * ret); void bgav_qt_trak_free(qt_trak_t * c); void bgav_qt_trak_dump(int indent, qt_trak_t * c); /* Infos about the track */ int64_t bgav_qt_trak_samples(qt_trak_t * c); int64_t bgav_qt_trak_chunks(qt_trak_t * c); int64_t bgav_qt_trak_tics(qt_trak_t * c); /* Duration in timescale tics */ /* * Movie header */ typedef struct { qt_atom_header_t h; int version; uint32_t flags; uint64_t creation_time; uint64_t modification_time; uint32_t time_scale; uint64_t duration; float preferred_rate; float preferred_volume; uint8_t reserved[10]; float matrix[9]; uint32_t preview_time; uint32_t preview_duration; uint32_t poster_time; uint32_t selection_time; uint32_t selection_duration; uint32_t current_time; uint32_t next_track_id; } qt_mvhd_t; void bgav_qt_mvhd_dump(int indent, qt_mvhd_t * c); int bgav_qt_mvhd_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_mvhd_t * ret); void bgav_qt_mvhd_free(qt_mvhd_t * c); /* * moov atom */ typedef struct { qt_atom_header_t h; qt_mvhd_t mvhd; qt_udta_t udta; int has_udta; int num_tracks; qt_trak_t * tracks; /* Reference movie */ qt_rmra_t rmra; int has_rmra; } qt_moov_t; int bgav_qt_moov_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_moov_t * ret); /* Compressed movie header */ int bgav_qt_cmov_read(qt_atom_header_t * h, bgav_input_context_t * ctx, qt_moov_t * ret); void bgav_qt_moov_free(qt_moov_t * c); void bgav_qt_moov_dump(int indent, qt_moov_t * c); int bgav_qt_is_chapter_track(qt_moov_t * moov, qt_trak_t * trak); /* * Quicktime specific utilities */ int bgav_qt_read_fixed32(bgav_input_context_t * ctx, float * ret); int bgav_qt_read_fixed16(bgav_input_context_t * ctx, float * ret); /* language/charset support */ int bgav_qt_get_language(int mac_code, char * ret); const char * bgav_qt_get_charset(int mac_code); /* Timecode support */ void bgav_qt_init_timecodes(bgav_input_context_t * ctx, bgav_stream_t * s, qt_trak_t * trak, int64_t pts_offset); gmerlin-avdecoder-1.2.0~dfsg/include/nanosoft.h0000644000000000000000000002026111764363500020272 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ /* Handling of common redmond stuff */ /* GUID: For codec identification and asf files */ typedef struct { uint32_t v1; uint16_t v2; uint16_t v3; uint8_t v4[8]; } bgav_GUID_t; void bgav_GUID_dump(bgav_GUID_t * g); int bgav_GUID_equal(const bgav_GUID_t * g1, const bgav_GUID_t * g2); int bgav_GUID_read(bgav_GUID_t * ret, bgav_input_context_t * input); int bgav_GUID_get(bgav_GUID_t * ret, bgav_input_context_t * input); void bgav_GUID_from_ptr(bgav_GUID_t * ret, uint8_t * ptr); /* Stuff from redmont */ typedef struct { uint32_t biSize; /* sizeof(BITMAPINFOHEADER) */ uint32_t biWidth; uint32_t biHeight; uint16_t biPlanes; /* unused */ uint16_t biBitCount; uint32_t biCompression; /* fourcc of image */ uint32_t biSizeImage; /* size of image. For uncompressed images */ /* ( biCompression 0 or 3 ) can be zero. */ uint32_t biXPelsPerMeter; /* unused */ uint32_t biYPelsPerMeter; /* unused */ uint32_t biClrUsed; /* valid only for palettized images. */ /* Number of colors in palette. */ uint32_t biClrImportant; } bgav_BITMAPINFOHEADER_t; void bgav_BITMAPINFOHEADER_read(bgav_BITMAPINFOHEADER_t * ret, uint8_t ** data); void bgav_BITMAPINFOHEADER_dump(bgav_BITMAPINFOHEADER_t * ret); void bgav_BITMAPINFOHEADER_get_format(bgav_BITMAPINFOHEADER_t * bh, bgav_stream_t * f); void bgav_BITMAPINFOHEADER_set_format(bgav_BITMAPINFOHEADER_t * bh, bgav_stream_t * f); uint32_t bgav_BITMAPINFOHEADER_get_fourcc(bgav_BITMAPINFOHEADER_t * bh); /* Waveformat (resembles the evolution of nanosoft speficifications) */ typedef enum { BGAV_WAVEFORMAT_WAVEFORMAT, BGAV_WAVEFORMAT_PCMWAVEFORMAT, BGAV_WAVEFORMAT_WAVEFORMATEX, BGAV_WAVEFORMAT_WAVEFORMATEXTENSIBLE, } bgav_WAVEFORMAT_type_t; typedef struct { bgav_WAVEFORMAT_type_t type; struct { struct { uint16_t wFormatTag; /* value that identifies compression format */ uint16_t nChannels; uint32_t nSamplesPerSec; uint32_t nAvgBytesPerSec; uint16_t nBlockAlign; /* size of a data sample */ } WAVEFORMAT; struct { uint16_t wBitsPerSample; } PCMWAVEFORMAT; struct { uint16_t cbSize; /* size of format-specific data */ uint8_t * ext_data; int ext_size; /* Can be different from cbSize for WAVEFORMATEXTENSIBLE */ } WAVEFORMATEX; struct { union { uint16_t wValidBitsPerSample; uint16_t wSamplesPerBlock; uint16_t wReserved; } Samples; uint32_t dwChannelMask; bgav_GUID_t SubFormat; } WAVEFORMATEXTENSIBLE; } f; } bgav_WAVEFORMAT_t; void bgav_WAVEFORMAT_read(bgav_WAVEFORMAT_t * ret, uint8_t * data, int size); void bgav_WAVEFORMAT_dump(bgav_WAVEFORMAT_t * ret); void bgav_WAVEFORMAT_get_format(bgav_WAVEFORMAT_t * wf, bgav_stream_t * f); void bgav_WAVEFORMAT_set_format(bgav_WAVEFORMAT_t * wf, bgav_stream_t * f); void bgav_WAVEFORMAT_free(bgav_WAVEFORMAT_t * wf); /* RIFF Info (used in AVI and WAV) */ typedef struct { char * IARL; // Archival Location. Indicates where the subject of the file is archived. char * IART; // Artist. Lists the artist of the original subject of the file. For example, "Michaelangelo." char * ICMS; // Commissioned. Lists the name of the person or organization that commissioned the subject of // the file. For example, "Pope Julian II." char * ICMT; // Comments. Provides general comments about the file or the subject of the file. If the // comment is several sentences long, end each sentence with a period. Do not include newline // characters. char * ICOP; // Copyright. Records the copyright information for the file. For example, // "Copyright Encyclopedia International 1991." If there are multiple copyrights, separate them // by a semicolon followed by a space. char * ICRD; // Creation date. Specifies the date the subject of the file was created. List dates in // year-month-day format, padding one-digit months and days with a zero on the left. For example, // "1553-05-03" for May 3, 1553. char * ICRP; // Cropped. Describes whether an image has been cropped and, if so, how it was cropped. For example, // "lower right corner." char * IDIM; // Dimensions. Specifies the size of the original subject of the file. For example, // "8.5 in h, 11 in w." char * IDPI; // Dots Per Inch. Stores dots per inch setting of the digitizer used to produce the file, such as // "300." char * IENG; // Engineer. Stores the name of the engineer who worked on the file. If there are multiple engineers, // separate the names by a semicolon and a blank. For example, "Smith, John; Adams, Joe." char * IGNR; // Genre. Describes the original work, such as, "landscape," "portrait," "still life," etc. char * IKEY; // Keywords. Provides a list of keywords that refer to the file or subject of the file. Separate // multiple keywords with a semicolon and a blank. For example, "Seattle; aerial view; scenery." char * ILGT; // Lightness. Describes the changes in lightness settings on the digitizer required to produce the // file. Note that the format of this information depends on hardware used. char * IMED; // Medium. Describes the original subject of the file, such as, "computer image," "drawing," // "lithograph," and so forth. char * INAM; // Name. Stores the title of the subject of the file, such as, "Seattle From Above." char * IPLT; // Palette Setting. Specifies the number of colors requested when digitizing an image, such as "256." char * IPRD; // Product. Specifies the name of the title the file was originally intended for, such as // "Encyclopedia of Pacific Northwest Geography." char * ISBJ; // Subject. Describes the conbittents of the file, such as "Aerial view of Seattle." char * ISFT; // Software. Identifies the name of the software package used to create the file, such as // "Microsoft WaveEdit." char * ISHP; // Sharpness. Identifies the changes in sharpness for the digitizer required to produce the file // (the format depends on the hardware used). char * ISRC; // Source. Identifies the name of the person or organization who supplied the original subject of the // file. For example, "Trey Research." char * ISRF; // Source Form. Identifies the original form of the material that was digitized, such as "slide," // "paper," "map," and so forth. This is not necessarily the same as IMED. char * ITCH; // Technician. Identifies the technician who digitized the subject file. For example, "Smith, John." } bgav_RIFFINFO_t; int bgav_RIFFINFO_probe(bgav_input_context_t * input); bgav_RIFFINFO_t * bgav_RIFFINFO_read(bgav_input_context_t * input); bgav_RIFFINFO_t * bgav_RIFFINFO_read_without_header(bgav_input_context_t * input, int size); void bgav_RIFFINFO_dump(bgav_RIFFINFO_t * info); void bgav_RIFFINFO_destroy(bgav_RIFFINFO_t * info); void bgav_RIFFINFO_get_metadata(bgav_RIFFINFO_t * info, bgav_metadata_t * m); gmerlin-avdecoder-1.2.0~dfsg/include/cavs_header.h0000644000000000000000000000533211764363500020711 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #define CAVS_CODE_SEQUENCE 1 #define CAVS_CODE_PICTURE_I 2 #define CAVS_CODE_PICTURE_PB 3 int bgav_cavs_get_start_code(const uint8_t * data); typedef struct { int profile_id; int level_id; int progressive_sequence; int horizontal_size; int vertical_size; int chromat_fromat; int sample_precision; int aspect_ratio; int frame_rate_code; int bit_rate_lower; /* int market_bit */ int bit_rate_upper; int low_delay; } bgav_cavs_sequence_header_t; int bgav_cavs_sequence_header_read(const bgav_options_t * opt, bgav_cavs_sequence_header_t * ret, const uint8_t * buffer, int len); void bgav_cavs_sequence_header_dump(const bgav_cavs_sequence_header_t * h); typedef struct { int coding_type; int bbv_delay; /* I/PB, 16 */ int time_code_flag; /* I, 1 */ // if(time_code_flag) { int time_code; /* I, 24 */ // } else { int picture_coding_type; /* PB, 2 */ // } int picture_distance; /* I/PB, 8 */ int bbv_check_times; /* I/PB, ue */ int progressive_frame; /* I/PB, 1 */ // if(!progressive_frame) { int picture_structure; // if(!coding_type != I) { int advanced_pred_mode_disable; // }} int top_field_first; int repeat_first_field; } bgav_cavs_picture_header_t; int bgav_cavs_picture_header_read(const bgav_options_t * opt, bgav_cavs_picture_header_t * ret, const uint8_t * buffer, int len, const bgav_cavs_sequence_header_t * seq); void bgav_cavs_picture_header_dump(const bgav_cavs_picture_header_t * h, const bgav_cavs_sequence_header_t * seq); gmerlin-avdecoder-1.2.0~dfsg/include/a52_header.h0000644000000000000000000000263711764363500020351 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ typedef struct { int total_bytes; int samplerate; int bitrate; int acmod; int lfe; int dolby; float cmixlev; float smixlev; } bgav_a52_header_t; #define BGAV_A52_HEADER_BYTES 7 int bgav_a52_header_read(bgav_a52_header_t * ret, uint8_t * buf); void bgav_a52_header_dump(bgav_a52_header_t * h); void bgav_a52_header_get_format(const bgav_a52_header_t * h, gavl_audio_format_t * format); gmerlin-avdecoder-1.2.0~dfsg/include/Makefile.am0000644000000000000000000000143611764363500020331 0ustar rootrootpkgincludedir=$(includedir)/gmerlin pkginclude_HEADERS = avdec.h bgav_version.h bgavdefs.h noinst_HEADERS = \ aac_frame.h \ a52_header.h \ asmrp.h \ audioparser_priv.h \ avdec_private.h \ bgav_dca.h \ bgav_vdpau.h \ bitstream.h \ bsf.h \ bsf_private.h \ bswap.h \ cavs_header.h \ codecs.h \ cue.h \ dirac_header.h \ dvb_channels.h \ dvframe.h \ flac_header.h \ frametype.h \ h264_header.h \ http.h \ id3.h \ language_table.h \ matroska.h \ md5.h \ mms.h \ mpa_header.h \ mpeg4_header.h \ mpegts_common.h \ mpv_header.h \ mxf.h \ nanosoft.h \ os.h \ packettimer.h \ parser.h \ pes_header.h \ pngreader.h \ ptscache.h \ qt.h \ rmff.h \ RTjpeg.h \ rtp.h \ rtsp.h \ sdp.h \ utils.h \ vc1_header.h \ videoparser_priv.h \ vorbis_comment.h \ win32codec.h \ xing.h \ yml.h EXTRA_DIST = bgav_version.h.in gmerlin-avdecoder-1.2.0~dfsg/include/bgav_version.h.in0000644000000000000000000000071211764363500021533 0ustar rootroot#ifndef __BGAV_VERSION_H_ #define __BGAV_VERSION_H_ #define BGAV_VERSION "@BGAV_VERSION@" #define BGAV_VERSION_MAJOR @BGAV_VERSION_MAJOR@ #define BGAV_VERSION_MINOR @BGAV_VERSION_MINOR@ #define BGAV_VERSION_MICRO @BGAV_VERSION_MICRO@ #define BGAV_MAKE_BUILD(a,b,c) ((a << 16) + (b << 8) + c) #define BGAV_BUILD \ BGAV_MAKE_BUILD(BGAV_VERSION_MAJOR, \ BGAV_VERSION_MINOR, \ BGAV_VERSION_MICRO) #endif // __BGAV_VERSION_H_ gmerlin-avdecoder-1.2.0~dfsg/include/bsf_private.h0000644000000000000000000000233011764363500020744 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ struct bgav_bsf_s { void (*cleanup)(bgav_bsf_t*); void (*filter)(bgav_bsf_t*, bgav_packet_t * in, bgav_packet_t * out); bgav_stream_t * s; void * priv; uint8_t * ext_data; int ext_size; }; void bgav_bsf_init_avcC(bgav_bsf_t*); gmerlin-avdecoder-1.2.0~dfsg/include/vc1_header.h0000644000000000000000000000515011764363500020444 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #define PROFILE_SIMPLE 0 #define PROFILE_MAIN 1 #define PROFILE_COMPLEX 2 #define PROFILE_ADVANCED 3 #define VC1_CODE_SEQUENCE 0x0f #define VC1_CODE_ENTRY_POINT 0x0e #define VC1_CODE_PICTURE 0x0d int bgav_vc1_unescape_buffer(const uint8_t *src, int size, uint8_t *dst); typedef struct { int profile; union { struct { int level; int chromaformat; int frmrtq_postproc; int bitrtq_postproc; int postprocflag; int width; int height; int broadcast; int interlace; int tfcntrflag; int finterpflag; int reserved; int psf; int display_info_flag; int display_width; int display_height; int aspect_ratio_flag; int aspect_ratio_code; int pixel_width; int pixel_height; int framerate_flag; int timescale; int frame_duration; } adv; } h; } bgav_vc1_sequence_header_t; int bgav_vc1_sequence_header_read(const bgav_options_t * opt, bgav_vc1_sequence_header_t * ret, const uint8_t * buffer, int len); void bgav_vc1_sequence_header_dump(const bgav_vc1_sequence_header_t * h); typedef struct { int fcm; int coding_type; } bgav_vc1_picture_header_adv_t; int bgav_vc1_picture_header_adv_read(const bgav_options_t * opt, bgav_vc1_picture_header_adv_t * ret, const uint8_t * buffer, int len, const bgav_vc1_sequence_header_t * seq); void bgav_vc1_picture_header_adv_dump(bgav_vc1_picture_header_adv_t * ret); gmerlin-avdecoder-1.2.0~dfsg/include/md5.h0000644000000000000000000001020511764363500017125 0ustar rootroot/* Declaration of functions and data types used for MD5 sum computing library functions. Copyright (C) 1995-1997,1999,2000,2001,2004,2005,2006 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _MD5_H #define _MD5_H 1 #include #include #define MD5_DIGEST_SIZE 16 #define MD5_BLOCK_SIZE 64 #ifndef __GNUC_PREREQ # if defined __GNUC__ && defined __GNUC_MINOR__ # define __GNUC_PREREQ(maj, min) \ ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) # else # define __GNUC_PREREQ(maj, min) 0 # endif #endif #ifndef __THROW # if defined __cplusplus && __GNUC_PREREQ (2,8) # define __THROW throw () # else # define __THROW # endif #endif #ifndef _LIBC # define md5_buffer bgav_md5_buffer # define md5_finish_ctx bgav_md5_finish_ctx # define md5_init_ctx bgav_md5_init_ctx # define md5_process_block bgav_md5_process_block # define md5_process_bytes bgav_md5_process_bytes # define md5_read_ctx bgav_md5_read_ctx # define md5_stream bgav_md5_stream #endif /* Structure to save state of computation between the single steps. */ struct md5_ctx { uint32_t A; uint32_t B; uint32_t C; uint32_t D; uint32_t total[2]; uint32_t buflen; uint32_t buffer[32]; }; /* * The following three functions are build up the low level used in * the functions `md5_stream' and `md5_buffer'. */ /* Initialize structure containing state of computation. (RFC 1321, 3.3: Step 3) */ extern void bgav_md5_init_ctx (struct md5_ctx *ctx) __THROW; /* Starting with the result of former calls of this function (or the initialization function update the context for the next LEN bytes starting at BUFFER. It is necessary that LEN is a multiple of 64!!! */ extern void bgav_md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx) __THROW; /* Starting with the result of former calls of this function (or the initialization function update the context for the next LEN bytes starting at BUFFER. It is NOT required that LEN is a multiple of 64. */ extern void bgav_md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx) __THROW; /* Process the remaining bytes in the buffer and put result from CTX in first 16 bytes following RESBUF. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. IMPORTANT: On some systems, RESBUF must be aligned to a 32-bit boundary. */ extern void *bgav_md5_finish_ctx (struct md5_ctx *ctx, void *resbuf) __THROW; /* Put result from CTX in first 16 bytes following RESBUF. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. IMPORTANT: On some systems, RESBUF must be aligned to a 32-bit boundary. */ extern void *bgav_md5_read_ctx (const struct md5_ctx *ctx, void *resbuf) __THROW; /* Compute MD5 message digest for bytes read from STREAM. The resulting message digest number will be written into the 16 bytes beginning at RESBLOCK. */ extern int bgav_md5_stream (FILE *stream, void *resblock) __THROW; /* Compute MD5 message digest for LEN bytes beginning at BUFFER. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. */ extern void *bgav_md5_buffer (const char *buffer, size_t len, void *resblock) __THROW; #endif /* md5.h */ gmerlin-avdecoder-1.2.0~dfsg/include/cue.h0000644000000000000000000000244511764363500017223 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ typedef struct bgav_cue_s bgav_cue_t; bgav_cue_t * bgav_cue_read(bgav_input_context_t * audio_file); bgav_edl_t * bgav_cue_get_edl(bgav_cue_t *, int64_t total_samples); void bgav_cue_destroy(bgav_cue_t *); // Not implemented // void bgav_cue_dump(bgav_cue_t *); void bgav_demuxer_init_cue(bgav_demuxer_context_t * ctx); gmerlin-avdecoder-1.2.0~dfsg/include/mpegts_common.h0000644000000000000000000001000311764363500021303 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #define MAX_PAT_SECTION_LENGTH 1021 /* Maximum number of programs in one pat section */ #define MAX_PROGRAMS ((MAX_PAT_SECTION_LENGTH-9)/4) #define MAX_PMT_SECTION_LENGTH 1021 /* Maximum number of streams in one pmt section */ #define MAX_STREAMS ((MAX_PMT_SECTION_LENGTH-13)/5) /* Transport packet */ /* Stream types (from libavformat) */ #define STREAM_TYPE_VIDEO_MPEG1 0x01 #define STREAM_TYPE_VIDEO_MPEG2 0x02 #define STREAM_TYPE_AUDIO_MPEG1 0x03 #define STREAM_TYPE_AUDIO_MPEG2 0x04 #define STREAM_TYPE_PRIVATE_SECTION 0x05 #define STREAM_TYPE_PRIVATE_DATA 0x06 #define STREAM_TYPE_AUDIO_AAC 0x0f #define STREAM_TYPE_VIDEO_MPEG4 0x10 #define STREAM_TYPE_VIDEO_H264 0x1b #define STREAM_TYPE_AUDIO_AC3 0x81 #define STREAM_TYPE_AUDIO_DTS 0x8a typedef struct { int transport_error; uint16_t pid; int has_adaption_field; int has_payload; int payload_start; /* Payload start indicator */ uint8_t continuity_counter; int payload_size; /* Adaption field */ struct { int64_t pcr; int random_access_indicator; } adaption_field; } transport_packet_t; void bgav_transport_packet_dump(transport_packet_t * p); int bgav_transport_packet_parse(const bgav_options_t * opt, uint8_t ** data, transport_packet_t * ret); /* Program association table section */ typedef struct { uint8_t table_id; uint16_t section_length; uint16_t transport_stream_id; int current_next_indicator; uint8_t section_number; uint8_t last_section_number; int num_programs; /* Number of program definitions in this section */ struct { uint16_t program_number; uint16_t program_map_pid; } programs[MAX_PROGRAMS]; } pat_section_t; int bgav_pat_section_read(uint8_t * data, int size, pat_section_t * ret); void bgav_pat_section_dump(pat_section_t * pats); /* Program map section */ typedef struct { uint8_t table_id; uint16_t section_length; uint16_t program_number; int current_next_indicator; uint8_t section_number; uint8_t last_section_number; uint16_t pcr_pid; uint8_t descriptor[4096]; int descriptor_len; int num_streams; struct { uint8_t type; uint16_t pid; uint8_t descriptor[4096]; int descriptor_len; int present; // Set by the demuxer to signal, that the stream is present } streams[MAX_STREAMS]; } pmt_section_t; int bgav_pmt_section_read(uint8_t * data, int size, pmt_section_t * ret); void bgav_pmt_section_dump(pmt_section_t * pmts); /* Returns number of added streams */ int bgav_pmt_section_setup_track(pmt_section_t * pmts, bgav_track_t * track, const bgav_options_t * opt, int max_audio_streams, int max_video_streams, int max_ac3_streams, int * num_ac3_streams, int * extra_pcr_pid); gmerlin-avdecoder-1.2.0~dfsg/Makefile.am0000644000000000000000000000066311764363506016715 0ustar rootroot# aclocal Path ACLOCAL_AMFLAGS = -I m4 if HAVE_GMERLIN gmerlin_subdirs = plugins else gmerlin_subdirs = endif if HAVE_DOXYGEN DOC_SUBDIRS = doc else DOC_SUBDIRS = endif SUBDIRS = lib $(gmerlin_subdirs) tests include m4 po utils $(DOC_SUBDIRS) pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = gmerlin_avdec.pc EXTRA_DIST = config.rpath autogen.sh cvs_clean.sh gmerlin_avdec.pc.in gmerlin_avdec.spec.in cpuinfo.sh make_potfiles gmerlin-avdecoder-1.2.0~dfsg/tests/0000755000000000000000000000000011764363526016020 5ustar rootrootgmerlin-avdecoder-1.2.0~dfsg/tests/vcdtest.c0000644000000000000000000000220311764363501017626 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include int main(int argc, char ** argv) { bgav_t * bgav; bgav = bgav_create(); bgav_open_vcd(bgav, "/dev/cdrom"); return 0; } gmerlin-avdecoder-1.2.0~dfsg/tests/ymltest.c0000644000000000000000000000311311764363501017654 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include #include #include int main(int argc, char ** argv) { bgav_yml_node_t * n; bgav_input_context_t * input; bgav_options_t opt; bgav_options_set_defaults(&opt); input = bgav_input_create(&opt); if(!bgav_input_open(input, argv[1])) { fprintf(stderr, "Cannot open file %s\n", argv[1]); return -1; } n = bgav_yml_parse(input); if(!n) { fprintf(stderr, "Cannot parse file %s\n", argv[1]); return -1; } bgav_yml_dump(n); bgav_yml_free(n); bgav_input_close(input); return 0; } gmerlin-avdecoder-1.2.0~dfsg/tests/seektest.c0000644000000000000000000002154011764363501020006 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include #include #include #include static int track = 0; static int audio_stream = 0; static int video_stream = 0; static int64_t audio_position = -1; static int64_t video_position = -1; static int sample_accurate = 0; bgav_options_t * opt; static bgav_t * open_common(const char * filename) { bgav_t * b; bgav_options_t * opt1; int num_tracks; b = bgav_create(); opt1 = bgav_get_options(b); bgav_options_copy(opt1, opt); if(!bgav_open(b, filename)) goto fail; if(sample_accurate && !bgav_can_seek_sample(b)) { fprintf(stderr, "%s supports no sample accuracy\n", filename); goto fail; } num_tracks = bgav_num_tracks(b); if(track >= num_tracks) { fprintf(stderr, "requested track %d, but file has just %d tracks\n", track+1, num_tracks); goto fail; } if(track < 0) { fprintf(stderr, "Negative track\n"); goto fail; } bgav_select_track(b, track); return b; fail: if(b) bgav_close(b); return NULL; } static bgav_t * open_audio(const char * filename) { bgav_t * b = open_common(filename); if(!b) goto fail; bgav_set_audio_stream(b, audio_stream, BGAV_STREAM_DECODE); if(!bgav_start(b)) goto fail; return b; fail: if(b) bgav_close(b); return NULL; } static bgav_t * open_video(const char * filename) { bgav_t * b = open_common(filename); if(!b) goto fail; bgav_set_video_stream(b, video_stream, BGAV_STREAM_DECODE); if(!bgav_start(b)) goto fail; return b; fail: if(b) bgav_close(b); return NULL; } #define SAMPLES_TO_READ (10*1024) static int test_audio(const char * filename) { const gavl_audio_format_t * format_orig; gavl_audio_format_t format; gavl_audio_frame_t * f1 = NULL, *f2 = NULL; int result; int64_t samples_to_skip; int64_t samples_to_read; bgav_t * b = open_audio(filename); int ret = 0; if(!b) goto fail; format_orig = bgav_get_audio_format(b, audio_stream); gavl_audio_format_copy(&format, format_orig); format.samples_per_frame = SAMPLES_TO_READ; f1 = gavl_audio_frame_create(&format); f2 = gavl_audio_frame_create(&format); /* Skip to the requested sample */ samples_to_skip = audio_position - bgav_audio_start_time(b, audio_stream); if(samples_to_skip < 0) { fprintf(stderr, "Audio position must be larger than %"PRId64"\n", bgav_audio_start_time(b, audio_stream)); goto fail; } while(samples_to_skip) { samples_to_read = SAMPLES_TO_READ; if(samples_to_read > samples_to_skip) samples_to_read = samples_to_skip; result = bgav_read_audio(b, f1, audio_stream, samples_to_read); if(!result) { fprintf(stderr, "EOF while skipping to sample position\n"); goto fail; } samples_to_skip -= result; } /* Read first frame */ fprintf(stderr, "Decoding frame 1\n"); result = bgav_read_audio(b, f1, audio_stream, SAMPLES_TO_READ); fprintf(stderr, "Decoded frame 1: %d samples, pts: %" PRId64 "\n", result, f1->timestamp); /* Close */ bgav_close(b); /* Reopen and seek */ b = open_audio(filename); if(!b) goto fail; samples_to_skip = audio_position; bgav_seek_scaled(b, &samples_to_skip, format.samplerate); fprintf(stderr, "Decoding frame 2\n"); result = bgav_read_audio(b, f2, audio_stream, SAMPLES_TO_READ); fprintf(stderr, "Decoded frame 2: %d samples, pts: %" PRId64 "\n", result, f2->timestamp); fprintf(stderr, "Testing if audio timestamps are equal: "); if(f1->timestamp == f2->timestamp) fprintf(stderr, "[ ok ]\n"); else fprintf(stderr, "[ fail ]\n"); fprintf(stderr, "Testing if audio frames are equal: "); if(gavl_audio_frames_equal(&format, f1, f2)) fprintf(stderr, "[ ok ]\n"); else { fprintf(stderr, "[ fail ]\n"); fprintf(stderr, "Saving frames..."); gavl_audio_frame_plot(&format, f1, "frame_1"); gavl_audio_frame_plot(&format, f2, "frame_2"); fprintf(stderr, "Done\n"); } fail: if(b) bgav_close(b); if(f1) gavl_audio_frame_destroy(f1); if(f2) gavl_audio_frame_destroy(f2); return ret; } static int test_video(const char * filename) { const gavl_video_format_t * format_orig; gavl_video_format_t format; gavl_video_frame_t * f1, *f2; int result; int64_t frames_to_skip; int64_t video_time; bgav_t * b = open_video(filename); int ret = 0; if(!b) goto fail; format_orig = bgav_get_video_format(b, video_stream); gavl_video_format_copy(&format, format_orig); f1 = gavl_video_frame_create(&format); f2 = gavl_video_frame_create(&format); /* Skip to the requested sample */ frames_to_skip = video_position; while(frames_to_skip) { result = bgav_read_video(b, f1, video_stream); if(!result) { fprintf(stderr, "EOF while skipping to frame position\n"); goto fail; } frames_to_skip--; } /* Read first frame */ result = bgav_read_video(b, f1, video_stream); fprintf(stderr, "Decoded frame 1: pts: %" PRId64 ", duration: %" PRId64 "\n", f1->timestamp, f1->duration); /* Close */ bgav_close(b); /* Reopen and seek */ b = open_video(filename); if(!b) goto fail; video_time = f1->timestamp; bgav_seek_scaled(b, &video_time, format.timescale); /* Read second frame */ result = bgav_read_video(b, f2, video_stream); if(!result) { fprintf(stderr, "EOF after seeking to frame position\n"); goto fail; } fprintf(stderr, "Decoded frame 2: pts: %" PRId64 ", duration: %" PRId64 "\n", f2->timestamp, f2->duration); fprintf(stderr, "Testing if video timestamps are equal: "); if(f1->timestamp == f2->timestamp) fprintf(stderr, "[ ok ]\n"); else fprintf(stderr, "[ fail ]\n"); fprintf(stderr, "Testing if video are equal: "); if(gavl_video_frames_equal(&format, f1, f2)) fprintf(stderr, "[ ok ]\n"); else { fprintf(stderr, "[ fail ]\n"); } fail: if(b) bgav_close(b); if(f1) gavl_video_frame_destroy(f1); if(f2) gavl_video_frame_destroy(f2); return ret; } #if 0 static void test_subtitle(bgav_t * b, int stream) { } #endif int main(int argc, char ** argv) { int i; char * filename = NULL; opt = bgav_options_create(); /* Disable dynamic range control, which destroys bit-exactness */ bgav_options_set_audio_dynrange(opt, 0); i = 1; while(i < argc) { if(!strcmp(argv[i], "-apos")) { audio_position = strtoll(argv[i+1], NULL, 10); i++; } else if(!strcmp(argv[i], "-vpos")) { video_position = strtoll(argv[i+1], NULL, 10); i++; } else if(!strcmp(argv[i], "-sa")) { bgav_options_set_sample_accurate(opt, 1); sample_accurate = 1; } else if(!strcmp(argv[i], "-as")) { audio_stream = atoi(argv[i+1]); i++; } else if(!strcmp(argv[i], "-vs")) { video_stream = atoi(argv[i+1]); i++; } else if(!strcmp(argv[i], "-t")) { track = atoi(argv[i+1])-1; i++; } else if(!strcmp(argv[i], "-v")) { int level_int; int level_flags = 0; level_int = atoi(argv[i+1]); if(level_int > 0) level_flags |= BGAV_LOG_ERROR; if(level_int > 1) level_flags |= BGAV_LOG_WARNING; if(level_int > 2) level_flags |= BGAV_LOG_INFO; if(level_int > 3) level_flags |= BGAV_LOG_DEBUG; bgav_options_set_log_level(opt, level_flags); i++; } else { filename = argv[i]; } i++; } if(!filename) { fprintf(stderr, "Filename missing"); return 1; } if(audio_position >= 0) test_audio(filename); if(video_position >= 0) test_video(filename); bgav_options_destroy(opt); return 0; } gmerlin-avdecoder-1.2.0~dfsg/tests/bgavsave.c0000644000000000000000000000306611764363501017760 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include #include #include #define BUFFER_SIZE 4096 int main(int argc, char ** argv) { FILE * out; uint8_t buffer[BUFFER_SIZE]; int bytes_read; bgav_input_context_t * input; input = calloc(1, sizeof(*input)); if(!bgav_input_open(input, argv[1])) return -1; out = fopen(argv[2], "w"); do { bytes_read = bgav_input_read_data(input, buffer, BUFFER_SIZE); fwrite(buffer, 1, bytes_read, out); fprintf(stderr, "Wrote %d bytes\n", bytes_read); } while(bytes_read == BUFFER_SIZE); fclose(out); return 0; } gmerlin-avdecoder-1.2.0~dfsg/tests/frametable.c0000644000000000000000000000500111764363501020253 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include #define VIDEO_STREAM 0 static void index_callback(void * data, float perc) { fprintf(stdout, "Building index %.2f %% completed\r", perc * 100.0); fflush(stdout); } int main(int argc, char ** argv) { bgav_t * file; bgav_options_t * opt; int num_tracks, num_streams; int i, j; gavl_frame_table_t * tab; const gavl_video_format_t * format; file = bgav_create(); opt = bgav_get_options(file); bgav_options_set_sample_accurate(opt, 1); bgav_options_set_index_callback(opt, index_callback, NULL); if(!bgav_open(file, argv[1])) return -1; if(bgav_is_redirector(file)) { fprintf(stderr, "Found redirector\n"); return 0; } num_tracks = bgav_num_tracks(file); for(i = 0; i < num_tracks; i++) { bgav_select_track(file, i); num_streams = bgav_num_video_streams(file, i); for(j = 0; j < num_streams; j++) bgav_set_video_stream(file, j, BGAV_STREAM_DECODE); if(!bgav_start(file)) { fprintf(stderr, "Starting decoders failed\n"); return -1; } for(j = 0; j < num_streams; j++) { fprintf(stderr, "Track %d, stream %d:\n", i+1, j+1); format = bgav_get_video_format(file, j); gavl_video_format_dump(format); tab = bgav_get_frame_table(file, j); if(tab) { gavl_frame_table_dump(tab); gavl_frame_table_destroy(tab); } else { fprintf(stderr, "No frame table\n"); } } } bgav_close(file); return 0; } gmerlin-avdecoder-1.2.0~dfsg/tests/bgavdemux.c0000644000000000000000000002507711764363501020152 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include #include #include #include #include static int dump_packets = 0; typedef struct { int active; int separate; gavl_compression_info_t info; int64_t time; int timescale; FILE * out; const char * ext; int frame; } stream_t; static char filename_base[1024]; static char filename_buf[1024]; static int init_audio_stream(bgav_t * b, int index, stream_t * ret) { if(!bgav_get_audio_compression_info(b, index, &ret->info)) { fprintf(stderr, "Audio stream %d doesn't support compressed output\n", index+1); return 0; } fprintf(stderr, "Audio stream %d compression\n", index+1); gavl_compression_info_dump(&ret->info); /* Get the file extension */ ret->ext = gavl_compression_get_extension(ret->info.id, &ret->separate); if(!ret->ext) { fprintf(stderr, "Audio stream %d has no supported raw format\n", index+1); return 0; } /* Open file */ sprintf(filename_buf, "%s_audio_%02d.%s", filename_base, index+1, ret->ext); ret->out = fopen(filename_buf, "wb"); if(!ret->out) { fprintf(stderr, "Opening output file %s failed: %s\n", filename_buf, strerror(errno)); return 0; } ret->active = 1; return 1; } static int init_video_stream(bgav_t * b, int index, stream_t * ret) { if(!bgav_get_video_compression_info(b, index, &ret->info)) { fprintf(stderr, "Video stream %d doesn't support compressed output\n", index+1); return 0; } fprintf(stderr, "Video stream %d compression\n", index+1); gavl_compression_info_dump(&ret->info); /* Get the file extension */ ret->ext = gavl_compression_get_extension(ret->info.id, &ret->separate); if(!ret->ext) { fprintf(stderr, "Video stream %d has no supported raw format\n", index+1); return 0; } if(!ret->separate) { /* Open file */ sprintf(filename_buf, "%s_video_%02d.%s", filename_base, index+1, ret->ext); ret->out = fopen(filename_buf, "wb"); if(!ret->out) { fprintf(stderr, "Opening output file %s failed: %s\n", filename_buf, strerror(errno)); return 0; } } ret->active = 1; return 1; } static int write_audio(bgav_t * b, int index, stream_t * s, gavl_packet_t * p) { /* Get packet */ if(!bgav_read_audio_packet(b, index, p)) return 0; if(dump_packets) { fprintf(stderr, "Audio "); gavl_packet_dump(p); } if(fwrite(p->data, 1, p->data_len, s->out) < p->data_len) { fprintf(stderr, "Writing data failed: %s\n", strerror(errno)); return 0; } s->time += p->duration; return 1; } static int write_video(bgav_t * b, int index, stream_t * s, gavl_packet_t * p) { /* Get packet */ if(!bgav_read_video_packet(b, index, p)) return 0; if(dump_packets) { fprintf(stderr, "Video "); gavl_packet_dump(p); } s->frame++; if(s->separate) { /* Open file */ sprintf(filename_buf, "%s_video_%02d_%06d.%s", filename_base, index+1, s->frame, s->ext); s->out = fopen(filename_buf, "wb"); if(!s->out) { fprintf(stderr, "Opening output file %s failed: %s\n", filename_buf, strerror(errno)); return 0; } } /* Write data */ if(fwrite(p->data, 1, p->data_len, s->out) < p->data_len) { fprintf(stderr, "Writing data failed: %s\n", strerror(errno)); return 0; } if(s->separate) { /* Close file */ fclose(s->out); s->out = NULL; } s->time += p->duration; return 1; } int main(int argc, char ** argv) { bgav_t * file; bgav_options_t * opt; int num_audio_streams; int num_video_streams; stream_t * audio_streams; stream_t * video_streams; int audio_stream = 0; int video_stream = 0; int track = -1; int arg_index; int i; int total_streams = 0; char * pos; gavl_packet_t p; int do_audio, min_index; gavl_time_t test_time; gavl_time_t min_time; file = bgav_create(); opt = bgav_get_options(file); if(argc == 1) { fprintf(stderr, "Usage: bgavdemux [-dp] [-t track] [-as ] [-vs ] \n"); return 0; } arg_index = 1; while(arg_index < argc - 1) { if(!strcmp(argv[arg_index], "-t")) { arg_index++; track = atoi(argv[arg_index]); arg_index++; } else if(!strcmp(argv[arg_index], "-as")) { arg_index++; audio_stream = atoi(argv[arg_index]); arg_index++; } else if(!strcmp(argv[arg_index], "-vs")) { arg_index++; video_stream = atoi(argv[arg_index]); arg_index++; } else if(!strcmp(argv[arg_index], "-dp")) { dump_packets = 1; arg_index++; } } if(!strncmp(argv[argc-1], "vcd://", 6)) { if(!bgav_open_vcd(file, argv[argc-1] + 5)) { fprintf(stderr, "Could not open VCD Device %s\n", argv[argc-1] + 5); return -1; } } else if(!strncmp(argv[argc-1], "dvd://", 6)) { if(!bgav_open_dvd(file, argv[argc-1] + 5)) { fprintf(stderr, "Could not open DVD Device %s\n", argv[argc-1] + 5); return -1; } } else if(!strncmp(argv[argc-1], "dvb://", 6)) { if(!bgav_open_dvb(file, argv[argc-1] + 6)) { fprintf(stderr, "Could not open DVB Device %s\n", argv[argc-1] + 6); return -1; } } else if(!bgav_open(file, argv[argc-1])) { fprintf(stderr, "Could not open file %s\n", argv[argc-1]); bgav_close(file); return -1; } /* Create output filename base */ pos = strrchr(argv[argc-1], '/'); if(pos) pos++; else pos = argv[argc-1]; strcpy(filename_base, pos); pos = strrchr(filename_base, '.'); if(pos) *pos = '\0'; fprintf(stderr, "Filename base: %s\n", filename_base); /* Check track */ if(track < 0) track = 0; /* Select track */ bgav_select_track(file, track); /* Decide which streams to demultiplex */ num_audio_streams = bgav_num_audio_streams(file, track); num_video_streams = bgav_num_video_streams(file, track); audio_streams = calloc(num_audio_streams, sizeof(*audio_streams)); video_streams = calloc(num_video_streams, sizeof(*audio_streams)); if(!audio_stream && !video_stream) { for(i = 0; i < num_audio_streams; i++) { if(init_audio_stream(file, i, &audio_streams[i])) total_streams++; } for(i = 0; i < num_video_streams; i++) { if(init_video_stream(file, i, &video_streams[i])) total_streams++; } } else if(audio_stream > 0) { if(init_audio_stream(file, audio_stream-1, &audio_streams[audio_stream-1])) total_streams++; } else if(video_stream > 0) { if(init_video_stream(file, video_stream-1, &video_streams[video_stream-1])) total_streams++; } if(!total_streams) { fprintf(stderr, "No streams to demultiplex\n"); return 0; } /* Set up streams and start decoder */ for(i = 0; i < num_audio_streams; i++) { if(audio_streams[i].active) bgav_set_audio_stream(file, i, BGAV_STREAM_READRAW); } for(i = 0; i < num_video_streams; i++) { if(video_streams[i].active) bgav_set_video_stream(file, i, BGAV_STREAM_READRAW); } if(!bgav_start(file)) { fprintf(stderr, "Starting decoder failed\n"); return -1; } /* Main loop */ for(i = 0; i < num_audio_streams; i++) { if(audio_streams[i].active) { const gavl_audio_format_t * fmt; fmt = bgav_get_audio_format(file, i); audio_streams[i].timescale = fmt->samplerate; fprintf(stderr, "Audio stream %d, format:\n", i+1); gavl_audio_format_dump(fmt); } } for(i = 0; i < num_video_streams; i++) { if(video_streams[i].active) { const gavl_video_format_t * fmt; fmt = bgav_get_video_format(file, i); video_streams[i].timescale = fmt->timescale; fprintf(stderr, "Video stream %d, format:\n", i+1); gavl_video_format_dump(fmt); } } memset(&p, 0, sizeof(p)); while(total_streams) { /* Get the stream with the smallest time */ min_time = GAVL_TIME_UNDEFINED; min_index = -1; do_audio = 0; for(i = 0; i < num_audio_streams; i++) { if(audio_streams[i].active) { test_time = gavl_time_unscale(audio_streams[i].timescale, audio_streams[i].time); if((min_index < 0) || (test_time < min_time)) { min_index = i; do_audio = 1; min_time = test_time; } } } for(i = 0; i < num_video_streams; i++) { if(video_streams[i].active) { test_time = gavl_time_unscale(video_streams[i].timescale, video_streams[i].time); if((min_index < 0) || (test_time < min_time)) { min_index = i; do_audio = 0; min_time = test_time; } } } /* Read packet */ if(do_audio) { if(!write_audio(file, min_index, &audio_streams[min_index], &p)) { audio_streams[min_index].active = 0; total_streams--; } } else { if(!write_video(file, min_index, &video_streams[min_index], &p)) { video_streams[min_index].active = 0; total_streams--; } } } /* Clean up */ return 0; } gmerlin-avdecoder-1.2.0~dfsg/tests/indexdump.c0000644000000000000000000000311211764363501020147 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ #include static void index_callback(void * data, float perc) { fprintf(stdout, "Building index %.2f %% completed\r", perc * 100.0); fflush(stdout); } int main(int argc, char ** argv) { bgav_t * b; bgav_options_t * opt; b = bgav_create(); opt = bgav_get_options(b); bgav_options_set_sample_accurate(opt, 1); bgav_options_set_index_callback(opt, index_callback, NULL); if(!bgav_open(b, argv[1])) return -1; fprintf(stderr, "\n"); if(b->demuxer->si) bgav_superindex_dump(b->demuxer->si); bgav_file_index_dump(b); bgav_close(b); return 0; } gmerlin-avdecoder-1.2.0~dfsg/tests/bgavdump.c0000644000000000000000000004160311764363501017766 0ustar rootroot/***************************************************************** * gmerlin-avdecoder - a general purpose multimedia decoding library * * Copyright (c) 2001 - 2011 Members of the Gmerlin project * gmerlin-general@lists.sourceforge.net * http://gmerlin.sourceforge.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * *****************************************************************/ // #include #include #include #include #include #include #include #include #ifndef _WIN32 #include /* Ask passwords */ #endif // #define TRACK 6 /* Callback based reading: We do a simple stdio mapping here */ #ifdef _WIN32 #define BGAV_FSEEK(a,b,c) fseeko64(a,b,c) #define BGAV_FTELL(a) ftello64(a) #else #ifdef HAVE_FSEEKO #define BGAV_FSEEK fseeko #else #define BGAV_FSEEK fseek #endif #ifdef HAVE_FTELLO #define BGAV_FTELL ftello #else #define BGAV_FSEEK ftell #endif #endif static void index_callback(void * data, float perc) { fprintf(stdout, "Building index %.2f %% completed\r", perc * 100.0); fflush(stdout); } static int read_callback(void * priv, uint8_t * data, int len) { FILE * f = (FILE*)priv; return fread(data, 1, len, f); } static int64_t seek_callback(void * priv, uint64_t pos, int whence) { FILE * f = (FILE*)priv; BGAV_FSEEK(f, pos, whence); return BGAV_FTELL(f); } /* Taken from the Unix programmer FAQ: http://www.faqs.org/faqs/unix-faq/programmer/faq/ */ #ifndef _WIN32 static struct termios stored_settings; static void echo_off(void) { struct termios new_settings; tcgetattr(0,&stored_settings); new_settings = stored_settings; new_settings.c_lflag &= (~ECHO); tcsetattr(0,TCSANOW,&new_settings); return; } static void echo_on(void) { tcsetattr(0,TCSANOW,&stored_settings); return; } /* Ok this is not so clean. But the library allows arbitrary string lengths */ char buf[1024]; static int user_pass_func(void * data, const char * resource, char ** user, char ** pass) { char * pos; fprintf(stderr, "Enter authentication for \"%s\"\n", resource); fprintf(stderr, "Username: "); fgets(buf, 1024, stdin); pos = strchr(buf, '\n'); if(pos) *pos = '\0'; if(buf[0] == '\0') return 0; *user = bgav_strndup(buf, NULL); fprintf(stderr, "Password: "); echo_off(); fgets(buf, 1024, stdin); echo_on(); fprintf(stderr, "\n"); pos = strchr(buf, '\n'); if(pos) *pos = '\0'; if(buf[0] == '\0') return 0; *pass = bgav_strndup(buf, NULL); return 1; } #endif /* Configuration data */ static int connect_timeout = 5000; static int read_timeout = 5000; static int network_bandwidth = 524300; /* 524.3 Kbps (Cable/DSL) */ static int seek_subtitles = 2; static int frames_to_read = 10; static int do_audio = 1; static int do_video = 1; static int sample_accurate = 0; static int vdpau = 0; static int64_t audio_seek = -1; static int64_t video_seek = -1; static gavl_time_t global_seek = -1; static int dump_ci = 0; static void print_usage() { fprintf(stderr, "Usage: bgavdump [options] location\n"); fprintf(stderr, " bgavdump -L\n"); fprintf(stderr, "\n"); fprintf(stderr, "-s Switch to sample accurate mode\n"); fprintf(stderr, "-aseek Seek to audio sample\n"); fprintf(stderr, "-vseek