configure
资源名称:vlc-1.0.5.zip [点击查看]
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:1341k
源码类别:
midi
开发平台:
Unix_Linux
- PLUGINS="${PLUGINS} i420_rgb_mmx"
- LTLIBi420_rgb_mmx="libi420_rgb_mmx_plugin.la"
- PLUGINS="${PLUGINS} i420_yuy2_mmx"
- LTLIBi420_yuy2_mmx="libi420_yuy2_mmx_plugin.la"
- PLUGINS="${PLUGINS} i422_yuy2_mmx"
- LTLIBi422_yuy2_mmx="libi422_yuy2_mmx_plugin.la"
- PLUGINS="${PLUGINS} i420_ymga_mmx"
- LTLIBi420_ymga_mmx="libi420_ymga_mmx_plugin.la"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC groks MMX EXT inline assembly" >&5
- $as_echo_n "checking if $CC groks MMX EXT inline assembly... " >&6; }
- if test "${ac_cv_mmxext_inline+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_mmxext_inline=yes
- else
- ac_cv_mmxext_inline=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mmxext_inline" >&5
- $as_echo "$ac_cv_mmxext_inline" >&6; }
- if test "${ac_cv_mmxext_inline}" != "no"; then :
- $as_echo "#define CAN_COMPILE_MMXEXT 1" >>confdefs.h
- PLUGINS="${PLUGINS} memcpymmxext"
- LTLIBmemcpymmxext="libmemcpymmxext_plugin.la"
- fi
- fi
- # Check whether --enable-sse was given.
- if test "${enable_sse+set}" = set; then :
- enableval=$enable_sse;
- else
- case "${host_cpu}" in
- i686|x86_64)
- enable_sse=yes
- ;;
- *)
- enable_sse=no
- ;;
- esac
- fi
- if test "${enable_sse}" != "no"; then :
- ARCH="${ARCH} sse sse2"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC groks SSE2 intrinsics" >&5
- $as_echo_n "checking if $CC groks SSE2 intrinsics... " >&6; }
- if test "${ac_cv_c_sse2_intrinsics+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save} -O -msse2"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <emmintrin.h>
- #include <stdint.h>
- uint64_t frobzor;
- int
- main ()
- {
- __m128i a, b, c;
- a = b = c = _mm_set1_epi64((__m64)frobzor);
- a = _mm_slli_epi16(a, 3);
- a = _mm_adds_epi16(a, b);
- c = _mm_srli_epi16(c, 8);
- c = _mm_slli_epi16(c, 3);
- b = _mm_adds_epi16(b, c);
- a = _mm_unpacklo_epi8(a, b);
- frobzor = (uint64_t)_mm_movepi64_pi64(a);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_sse2_intrinsics=yes
- else
- ac_cv_c_sse2_intrinsics=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_sse2_intrinsics" >&5
- $as_echo "$ac_cv_c_sse2_intrinsics" >&6; }
- if test "${ac_cv_c_sse2_intrinsics}" != "no"; then :
- $as_echo "#define HAVE_SSE2_INTRINSICS 1" >>confdefs.h
- for element in i420_rgb_sse2 i420_yuy2_sse2 i422_yuy2_sse2; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} -msse2"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC groks SSE inline assembly" >&5
- $as_echo_n "checking if $CC groks SSE inline assembly... " >&6; }
- if test "${ac_cv_sse_inline+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sse_inline=yes
- else
- ac_cv_sse_inline=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sse_inline" >&5
- $as_echo "$ac_cv_sse_inline" >&6; }
- if test "${ac_cv_sse_inline}" != "no" -a "${SYS}" != "solaris"; then :
- $as_echo "#define CAN_COMPILE_SSE 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC groks SSE2 inline assembly" >&5
- $as_echo_n "checking if $CC groks SSE2 inline assembly... " >&6; }
- if test "${ac_cv_sse2_inline+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- void *p;asm volatile("punpckhqdq %%xmm1,%%xmm2"::"r"(p));
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sse2_inline=yes
- else
- ac_cv_sse2_inline=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sse2_inline" >&5
- $as_echo "$ac_cv_sse2_inline" >&6; }
- if test "${ac_cv_sse2_inline}" != "no" -a "${SYS}" != "solaris"; then :
- $as_echo "#define CAN_COMPILE_SSE2 1" >>confdefs.h
- PLUGINS="${PLUGINS} i420_rgb_sse2"
- LTLIBi420_rgb_sse2="libi420_rgb_sse2_plugin.la"
- PLUGINS="${PLUGINS} i420_yuy2_sse2"
- LTLIBi420_yuy2_sse2="libi420_yuy2_sse2_plugin.la"
- PLUGINS="${PLUGINS} i422_yuy2_sse2"
- LTLIBi422_yuy2_sse2="libi422_yuy2_sse2_plugin.la"
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC groks 3D Now! inline assembly" >&5
- $as_echo_n "checking if $CC groks 3D Now! inline assembly... " >&6; }
- if test "${ac_cv_3dnow_inline+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_3dnow_inline=yes
- else
- ac_cv_3dnow_inline=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_3dnow_inline" >&5
- $as_echo "$ac_cv_3dnow_inline" >&6; }
- if test "${ac_cv_3dnow_inline}" != "no"; then :
- $as_echo "#define CAN_COMPILE_3DNOW 1" >>confdefs.h
- PLUGINS="${PLUGINS} memcpy3dn"
- LTLIBmemcpy3dn="libmemcpy3dn_plugin.la"
- fi
- # Check whether --enable-altivec was given.
- if test "${enable_altivec+set}" = set; then :
- enableval=$enable_altivec;
- else
- if test "${host_cpu}" = "powerpc"; then :
- enable_altivec=yes
- else
- enable_altivec=no
- fi
- fi
- if test "${enable_altivec}" = "yes"; then :
- ARCH="${ARCH} altivec";
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC groks AltiVec inline assembly" >&5
- $as_echo_n "checking if $CC groks AltiVec inline assembly... " >&6; }
- if test "${ac_cv_altivec_inline+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- asm volatile("vperm 0,1,2,3");
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_altivec_inline="yes"
- else
- CFLAGS="${CFLAGS_save} -Wa,-m7400"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- asm volatile("vperm 0,1,2,3");
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_altivec_inline="-Wa,-m7400"
- else
- ac_cv_altivec_inline=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_altivec_inline" >&5
- $as_echo "$ac_cv_altivec_inline" >&6; }
- if test "${ac_cv_altivec_inline}" != "no"; then :
- $as_echo "#define CAN_COMPILE_ALTIVEC 1" >>confdefs.h
- if test "${ac_cv_altivec_inline}" != "yes"; then :
- for element in idctaltivec; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${ac_cv_altivec_inline}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in motionaltivec; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${ac_cv_altivec_inline}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in memcpyaltivec; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${ac_cv_altivec_inline}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in i420_yuy2_altivec; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${ac_cv_altivec_inline}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in libvlccore; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${ac_cv_altivec_inline}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- PLUGINS="${PLUGINS} memcpyaltivec"
- LTLIBmemcpyaltivec="libmemcpyaltivec_plugin.la"
- PLUGINS="${PLUGINS} i420_yuy2_altivec"
- LTLIBi420_yuy2_altivec="libi420_yuy2_altivec_plugin.la"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC groks AltiVec C extensions" >&5
- $as_echo_n "checking if $CC groks AltiVec C extensions... " >&6; }
- if test "${ac_cv_c_altivec+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- # OS X/PPC test (gcc 4.x)
- CFLAGS="${CFLAGS_save} -mpim-altivec -force_cpusubtype_ALL"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- vector unsigned char foo;
- int
- main ()
- {
- vec_ld(0, (unsigned char *)0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_altivec="-mpim-altivec -force_cpusubtype_ALL"
- else
- # OS X/PPC test (gcc 3.x)
- CFLAGS="${CFLAGS_save} -faltivec"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- vector unsigned char foo;
- int
- main ()
- {
- vec_ld(1 * sizeof(vector float), (unsigned char *)0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_altivec="-faltivec"
- else
- # Linux/PPC test (gcc 4.x)
- CFLAGS="${CFLAGS_save} -maltivec"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <altivec.h>
- int
- main ()
- {
- vec_ld(0, (unsigned char *)0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_altivec="-maltivec"
- else
- # Linux/PPC test (gcc 3.3)
- CFLAGS="${CFLAGS_save} -maltivec -mabi=altivec"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <altivec.h>
- int
- main ()
- {
- vec_ld(0, (unsigned char *)0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_altivec=""
- ac_cv_c_altivec_abi="-maltivec -mabi=altivec"
- else
- # Linux/PPC test (gcc 3.3)
- CFLAGS="${CFLAGS_save} -fvec"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <altivec.h>
- int
- main ()
- {
- vec_ld(0, (unsigned char *)0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_altivec="-fvec"
- else
- ac_cv_c_altivec=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- CFLAGS="${CFLAGS_save}"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_altivec" >&5
- $as_echo "$ac_cv_c_altivec" >&6; }
- if test "${ac_cv_c_altivec}" != "no"; then :
- CPPFLAGS="${CPPFLAGS_save} ${ac_cv_c_altivec}"
- fi
- for ac_header in altivec.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default"
- if test "x$ac_cv_header_altivec_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ALTIVEC_H 1
- _ACEOF
- fi
- done
- CPPFLAGS="${CPPFLAGS_save}"
- if test "${ac_cv_c_altivec}" != "no"; then :
- $as_echo "#define CAN_COMPILE_C_ALTIVEC 1" >>confdefs.h
- for element in libvlccore; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${ac_cv_c_altivec}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in idctaltivec motionaltivec; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${ac_cv_c_altivec}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in i420_yuy2_altivec memcpyaltivec deinterlace; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${ac_cv_c_altivec} ${ac_cv_c_altivec_abi}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- PLUGINS="${PLUGINS} memcpyaltivec"
- LTLIBmemcpyaltivec="libmemcpyaltivec_plugin.la"
- PLUGINS="${PLUGINS} i420_yuy2_altivec"
- LTLIBi420_yuy2_altivec="libi420_yuy2_altivec_plugin.la"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker needs -framework vecLib" >&5
- $as_echo_n "checking if linker needs -framework vecLib... " >&6; }
- if test "${ac_cv_ld_altivec+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- LDFLAGS="${LDFLAGS_vlc} -Wl,-framework,vecLib"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_ld_altivec=yes
- else
- ac_cv_ld_altivec=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LDFLAGS="${LDFLAGS_save}"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ld_altivec" >&5
- $as_echo "$ac_cv_ld_altivec" >&6; }
- if test "${ac_cv_ld_altivec}" != "no"; then :
- for element in libvlccore idctaltivec motionaltivec memcpyaltivec; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,vecLib "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- fi
- fi
- # Check whether --with-tuning was given.
- if test "${with_tuning+set}" = set; then :
- withval=$with_tuning;
- fi
- if test -n "${with_tuning}"; then
- if test "${with_tuning}" != "no"; then
- CFLAGS_TUNING="-mtune=${with_tuning}"
- fi
- else
- if test "${SYS}" = "darwin" -a "${host_cpu}" != "powerpc"; then
- CFLAGS_TUNING="-march=pentium-m -mtune=prescott"
- elif test "${host_cpu}" = "i686" -o "${host_cpu}" = "i586" -o "${host_cpu}" = "i486" -o "${host_cpu}" = "i386"; then
- CFLAGS_TUNING="-mtune=pentium2"
- elif test "${host_cpu}" = "x86_64"; then
- CFLAGS_TUNING="-mtune=athlon64"
- elif test "${host_cpu}" = "powerpc"; then
- CFLAGS_TUNING="-mtune=G4";
- fi
- fi
- if test "${CFLAGS_TUNING}"; then :
- CFLAGS_save="${CFLAGS}"
- CFLAGS="${CFLAGS} ${CFLAGS_TUNING}"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts ${CFLAGS_TUNING}" >&5
- $as_echo_n "checking whether $CC accepts ${CFLAGS_TUNING}... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- tuning="yes"
- else
- CFLAGS_TUNING=""; tuning="no"
- if test "${with_tuning}"; then :
- as_fn_error "requested tuning not supported" "$LINENO" 5
- fi
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tuning" >&5
- $as_echo "$tuning" >&6; }
- CFLAGS="${CFLAGS_save}"
- fi
- # Check whether --enable-optimize-memory was given.
- if test "${enable_optimize_memory+set}" = set; then :
- enableval=$enable_optimize_memory;
- fi
- if test "${enable_optimize_memory}" = "yes"; then
- $as_echo "#define OPTIMIZE_MEMORY 1" >>confdefs.h
- fi
- # Check whether --enable-optimizations was given.
- if test "${enable_optimizations+set}" = set; then :
- enableval=$enable_optimizations;
- fi
- if test "${enable_optimizations}" != "no"; then
- if test "${enable_optimize_memory}" = "yes"; then
- enable_optimizations="size"
- else
- enable_optimizations="speed"
- fi
- fi
- # Check whether --enable-debug was given.
- if test "${enable_debug+set}" = set; then :
- enableval=$enable_debug;
- fi
- test "${enable_debug}" != "yes" && enable_debug="no"
- if test "x${enable_debug}" = "xno"; then :
- $as_echo "#define NDEBUG 1" >>confdefs.h
- else
- for ac_header in valgrind/valgrind.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
- if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_VALGRIND_VALGRIND_H 1
- _ACEOF
- fi
- done
- fi
- # Check whether --enable-run-as-root was given.
- if test "${enable_run_as_root+set}" = set; then :
- enableval=$enable_run_as_root;
- fi
- if test "${enable_run_as_root}" = "yes"; then :
- $as_echo "#define ALLOW_RUN_AS_ROOT 1" >>confdefs.h
- fi
- # Check whether --enable-coverage was given.
- if test "${enable_coverage+set}" = set; then :
- enableval=$enable_coverage;
- else
- enable_coverage="no"
- fi
- if test "${enable_coverage}" != "no"; then :
- CFLAGS="-fprofile-arcs -ftest-coverage ${CFLAGS}"
- CXXFLAGS="-fprofile-arcs -ftest-coverage ${CXXFLAGS}"
- LDFLAGS="-lgcov ${LDFLAGS}"
- CFLAGS_save="${CFLAGS}"
- CXXFLAGS_save="${CXXFLAGS}"
- LDFLAGS_save="${LDFLAGS}"
- fi
- # Check whether --enable-release was given.
- if test "${enable_release+set}" = set; then :
- enableval=$enable_release;
- fi
- test "${enable_release}" != "yes" && enable_release="no"
- # Check whether --enable-sout was given.
- if test "${enable_sout+set}" = set; then :
- enableval=$enable_sout;
- fi
- if test "${enable_sout}" != "no"; then :
- $as_echo "#define ENABLE_SOUT 1" >>confdefs.h
- fi
- if test "${enable_sout}" != "no"; then
- ENABLE_SOUT_TRUE=
- ENABLE_SOUT_FALSE='#'
- else
- ENABLE_SOUT_TRUE='#'
- ENABLE_SOUT_FALSE=
- fi
- # Check whether --enable-switcher was given.
- if test "${enable_switcher+set}" = set; then :
- enableval=$enable_switcher;
- fi
- # Check whether --enable-shout was given.
- if test "${enable_shout+set}" = set; then :
- enableval=$enable_shout;
- fi
- if test "${enable_shout}" = "yes"; then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHOUT" >&5
- $as_echo_n "checking for SHOUT... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$SHOUT_CFLAGS"; then
- pkg_cv_SHOUT_CFLAGS="$SHOUT_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "shout >= 2.1""; } >&5
- ($PKG_CONFIG --exists --print-errors "shout >= 2.1") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_SHOUT_CFLAGS=`$PKG_CONFIG --cflags "shout >= 2.1" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$SHOUT_LIBS"; then
- pkg_cv_SHOUT_LIBS="$SHOUT_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "shout >= 2.1""; } >&5
- ($PKG_CONFIG --exists --print-errors "shout >= 2.1") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_SHOUT_LIBS=`$PKG_CONFIG --libs "shout >= 2.1" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- SHOUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "shout >= 2.1"`
- else
- SHOUT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "shout >= 2.1"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$SHOUT_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libshout library not found" >&5
- $as_echo "$as_me: WARNING: libshout library not found" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libshout library not found" >&5
- $as_echo "$as_me: WARNING: libshout library not found" >&2;}
- else
- SHOUT_CFLAGS=$pkg_cv_SHOUT_CFLAGS
- SHOUT_LIBS=$pkg_cv_SHOUT_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_SHOUT 1" >>confdefs.h
- PLUGINS="${PLUGINS} access_output_shout"
- LTLIBaccess_output_shout="libaccess_output_shout_plugin.la"
- for element in access_output_shout; do
- eval "LIBS_${element}="'"'"$SHOUT_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in access_output_shout; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $SHOUT_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- fi
- # Check whether --enable-lua was given.
- if test "${enable_lua+set}" = set; then :
- enableval=$enable_lua;
- fi
- if test "${enable_lua}" != "no"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
- $as_echo_n "checking for LUA... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$LUA_CFLAGS"; then
- pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "lua5.1""; } >&5
- ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$LUA_LIBS"; then
- pkg_cv_LUA_LIBS="$LUA_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "lua5.1""; } >&5
- ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1"`
- else
- LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$LUA_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lua5.1 not found, trying lua >= 5.1 instead" >&5
- $as_echo "$as_me: WARNING: lua5.1 not found, trying lua >= 5.1 instead" >&2;}
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
- $as_echo_n "checking for LUA... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$LUA_CFLAGS"; then
- pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "lua >= 5.1""; } >&5
- ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$LUA_LIBS"; then
- pkg_cv_LUA_LIBS="$LUA_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "lua >= 5.1""; } >&5
- ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua >= 5.1"`
- else
- LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua >= 5.1"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$LUA_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- have_lua=yes
- for ac_header in lua.h lauxlib.h lualib.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- else
- have_lua=no
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.1 " >&5
- $as_echo_n "checking for luaL_newstate in -llua5.1 ... " >&6; }
- if test "${ac_cv_lib_lua5_1__luaL_newstate+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llua5.1 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char luaL_newstate ();
- int
- main ()
- {
- return luaL_newstate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_lua5_1__luaL_newstate=yes
- else
- ac_cv_lib_lua5_1__luaL_newstate=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1__luaL_newstate" >&5
- $as_echo "$ac_cv_lib_lua5_1__luaL_newstate" >&6; }
- if test "x$ac_cv_lib_lua5_1__luaL_newstate" = x""yes; then :
- LUA_LIBS="-llua5.1"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua51 " >&5
- $as_echo_n "checking for luaL_newstate in -llua51 ... " >&6; }
- if test "${ac_cv_lib_lua51__luaL_newstate+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llua51 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char luaL_newstate ();
- int
- main ()
- {
- return luaL_newstate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_lua51__luaL_newstate=yes
- else
- ac_cv_lib_lua51__luaL_newstate=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua51__luaL_newstate" >&5
- $as_echo "$ac_cv_lib_lua51__luaL_newstate" >&6; }
- if test "x$ac_cv_lib_lua51__luaL_newstate" = x""yes; then :
- LUA_LIBS="-llua51"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua " >&5
- $as_echo_n "checking for luaL_newstate in -llua ... " >&6; }
- if test "${ac_cv_lib_lua__luaL_newstate+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llua -lm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char luaL_newstate ();
- int
- main ()
- {
- return luaL_newstate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_lua__luaL_newstate=yes
- else
- ac_cv_lib_lua__luaL_newstate=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua__luaL_newstate" >&5
- $as_echo "$ac_cv_lib_lua__luaL_newstate" >&6; }
- if test "x$ac_cv_lib_lua__luaL_newstate" = x""yes; then :
- LUA_LIBS="-llua"
- else
- have_lua=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lua >= 5.1 not found!" >&5
- $as_echo "$as_me: WARNING: lua >= 5.1 not found!" >&2;}
- fi
- fi
- fi
- elif test $pkg_failed = untried; then
- have_lua=yes
- for ac_header in lua.h lauxlib.h lualib.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- else
- have_lua=no
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.1 " >&5
- $as_echo_n "checking for luaL_newstate in -llua5.1 ... " >&6; }
- if test "${ac_cv_lib_lua5_1__luaL_newstate+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llua5.1 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char luaL_newstate ();
- int
- main ()
- {
- return luaL_newstate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_lua5_1__luaL_newstate=yes
- else
- ac_cv_lib_lua5_1__luaL_newstate=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1__luaL_newstate" >&5
- $as_echo "$ac_cv_lib_lua5_1__luaL_newstate" >&6; }
- if test "x$ac_cv_lib_lua5_1__luaL_newstate" = x""yes; then :
- LUA_LIBS="-llua5.1"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua51 " >&5
- $as_echo_n "checking for luaL_newstate in -llua51 ... " >&6; }
- if test "${ac_cv_lib_lua51__luaL_newstate+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llua51 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char luaL_newstate ();
- int
- main ()
- {
- return luaL_newstate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_lua51__luaL_newstate=yes
- else
- ac_cv_lib_lua51__luaL_newstate=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua51__luaL_newstate" >&5
- $as_echo "$ac_cv_lib_lua51__luaL_newstate" >&6; }
- if test "x$ac_cv_lib_lua51__luaL_newstate" = x""yes; then :
- LUA_LIBS="-llua51"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua " >&5
- $as_echo_n "checking for luaL_newstate in -llua ... " >&6; }
- if test "${ac_cv_lib_lua__luaL_newstate+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llua -lm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char luaL_newstate ();
- int
- main ()
- {
- return luaL_newstate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_lua__luaL_newstate=yes
- else
- ac_cv_lib_lua__luaL_newstate=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua__luaL_newstate" >&5
- $as_echo "$ac_cv_lib_lua__luaL_newstate" >&6; }
- if test "x$ac_cv_lib_lua__luaL_newstate" = x""yes; then :
- LUA_LIBS="-llua"
- else
- have_lua=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lua >= 5.1 not found!" >&5
- $as_echo "$as_me: WARNING: lua >= 5.1 not found!" >&2;}
- fi
- fi
- fi
- else
- LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
- LUA_LIBS=$pkg_cv_LUA_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- have_lua=yes
- fi
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lua5.1 not found, trying lua >= 5.1 instead" >&5
- $as_echo "$as_me: WARNING: lua5.1 not found, trying lua >= 5.1 instead" >&2;}
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
- $as_echo_n "checking for LUA... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$LUA_CFLAGS"; then
- pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "lua >= 5.1""; } >&5
- ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$LUA_LIBS"; then
- pkg_cv_LUA_LIBS="$LUA_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "lua >= 5.1""; } >&5
- ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua >= 5.1"`
- else
- LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua >= 5.1"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$LUA_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- have_lua=yes
- for ac_header in lua.h lauxlib.h lualib.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- else
- have_lua=no
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.1 " >&5
- $as_echo_n "checking for luaL_newstate in -llua5.1 ... " >&6; }
- if test "${ac_cv_lib_lua5_1__luaL_newstate+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llua5.1 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char luaL_newstate ();
- int
- main ()
- {
- return luaL_newstate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_lua5_1__luaL_newstate=yes
- else
- ac_cv_lib_lua5_1__luaL_newstate=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1__luaL_newstate" >&5
- $as_echo "$ac_cv_lib_lua5_1__luaL_newstate" >&6; }
- if test "x$ac_cv_lib_lua5_1__luaL_newstate" = x""yes; then :
- LUA_LIBS="-llua5.1"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua51 " >&5
- $as_echo_n "checking for luaL_newstate in -llua51 ... " >&6; }
- if test "${ac_cv_lib_lua51__luaL_newstate+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llua51 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char luaL_newstate ();
- int
- main ()
- {
- return luaL_newstate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_lua51__luaL_newstate=yes
- else
- ac_cv_lib_lua51__luaL_newstate=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua51__luaL_newstate" >&5
- $as_echo "$ac_cv_lib_lua51__luaL_newstate" >&6; }
- if test "x$ac_cv_lib_lua51__luaL_newstate" = x""yes; then :
- LUA_LIBS="-llua51"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua " >&5
- $as_echo_n "checking for luaL_newstate in -llua ... " >&6; }
- if test "${ac_cv_lib_lua__luaL_newstate+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llua -lm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char luaL_newstate ();
- int
- main ()
- {
- return luaL_newstate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_lua__luaL_newstate=yes
- else
- ac_cv_lib_lua__luaL_newstate=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua__luaL_newstate" >&5
- $as_echo "$ac_cv_lib_lua__luaL_newstate" >&6; }
- if test "x$ac_cv_lib_lua__luaL_newstate" = x""yes; then :
- LUA_LIBS="-llua"
- else
- have_lua=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lua >= 5.1 not found!" >&5
- $as_echo "$as_me: WARNING: lua >= 5.1 not found!" >&2;}
- fi
- fi
- fi
- elif test $pkg_failed = untried; then
- have_lua=yes
- for ac_header in lua.h lauxlib.h lualib.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- else
- have_lua=no
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.1 " >&5
- $as_echo_n "checking for luaL_newstate in -llua5.1 ... " >&6; }
- if test "${ac_cv_lib_lua5_1__luaL_newstate+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llua5.1 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char luaL_newstate ();
- int
- main ()
- {
- return luaL_newstate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_lua5_1__luaL_newstate=yes
- else
- ac_cv_lib_lua5_1__luaL_newstate=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1__luaL_newstate" >&5
- $as_echo "$ac_cv_lib_lua5_1__luaL_newstate" >&6; }
- if test "x$ac_cv_lib_lua5_1__luaL_newstate" = x""yes; then :
- LUA_LIBS="-llua5.1"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua51 " >&5
- $as_echo_n "checking for luaL_newstate in -llua51 ... " >&6; }
- if test "${ac_cv_lib_lua51__luaL_newstate+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llua51 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char luaL_newstate ();
- int
- main ()
- {
- return luaL_newstate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_lua51__luaL_newstate=yes
- else
- ac_cv_lib_lua51__luaL_newstate=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua51__luaL_newstate" >&5
- $as_echo "$ac_cv_lib_lua51__luaL_newstate" >&6; }
- if test "x$ac_cv_lib_lua51__luaL_newstate" = x""yes; then :
- LUA_LIBS="-llua51"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua " >&5
- $as_echo_n "checking for luaL_newstate in -llua ... " >&6; }
- if test "${ac_cv_lib_lua__luaL_newstate+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llua -lm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char luaL_newstate ();
- int
- main ()
- {
- return luaL_newstate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_lua__luaL_newstate=yes
- else
- ac_cv_lib_lua__luaL_newstate=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua__luaL_newstate" >&5
- $as_echo "$ac_cv_lib_lua__luaL_newstate" >&6; }
- if test "x$ac_cv_lib_lua__luaL_newstate" = x""yes; then :
- LUA_LIBS="-llua"
- else
- have_lua=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lua >= 5.1 not found!" >&5
- $as_echo "$as_me: WARNING: lua >= 5.1 not found!" >&2;}
- fi
- fi
- fi
- else
- LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
- LUA_LIBS=$pkg_cv_LUA_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- have_lua=yes
- fi
- else
- LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
- LUA_LIBS=$pkg_cv_LUA_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- have_lua=yes
- fi
- if test "x${have_lua}" = "xyes" ; then
- $as_echo "#define HAVE_LUA 1" >>confdefs.h
- for element in lua; do
- eval "LIBS_${element}="'"'"$LUA_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in lua; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $LUA_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- fi
- if test "${have_lua}" = "yes"; then
- BUILD_LUA_TRUE=
- BUILD_LUA_FALSE='#'
- else
- BUILD_LUA_TRUE='#'
- BUILD_LUA_FALSE=
- fi
- # Check whether --enable-httpd was given.
- if test "${enable_httpd+set}" = set; then :
- enableval=$enable_httpd;
- fi
- if test "${enable_httpd}" != "no"
- then
- PLUGINS="${PLUGINS} http"
- LTLIBhttp="libhttp_plugin.la"
- $as_echo "#define ENABLE_HTTPD 1" >>confdefs.h
- fi
- if test "${enable_httpd}" != "no"; then
- BUILD_HTTPD_TRUE=
- BUILD_HTTPD_FALSE='#'
- else
- BUILD_HTTPD_TRUE='#'
- BUILD_HTTPD_FALSE=
- fi
- # Check whether --enable-libproxy was given.
- if test "${enable_libproxy+set}" = set; then :
- enableval=$enable_libproxy;
- fi
- if test "${enable_libproxy}" != "no"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPROXY" >&5
- $as_echo_n "checking for LIBPROXY... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBPROXY_CFLAGS"; then
- pkg_cv_LIBPROXY_CFLAGS="$LIBPROXY_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libproxy-1.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "libproxy-1.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBPROXY_CFLAGS=`$PKG_CONFIG --cflags "libproxy-1.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBPROXY_LIBS"; then
- pkg_cv_LIBPROXY_LIBS="$LIBPROXY_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libproxy-1.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "libproxy-1.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBPROXY_LIBS=`$PKG_CONFIG --libs "libproxy-1.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- LIBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libproxy-1.0"`
- else
- LIBPROXY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libproxy-1.0"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$LIBPROXY_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "x${enable_libproxy}" != "x"; then :
- as_fn_error "libproxy could not be found on your system" "$LINENO" 5
- fi
- elif test $pkg_failed = untried; then
- if test "x${enable_libproxy}" != "x"; then :
- as_fn_error "libproxy could not be found on your system" "$LINENO" 5
- fi
- else
- LIBPROXY_CFLAGS=$pkg_cv_LIBPROXY_CFLAGS
- LIBPROXY_LIBS=$pkg_cv_LIBPROXY_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_LIBPROXY 1" >>confdefs.h
- for element in access_http; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $LIBPROXY_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in access_http; do
- eval "LIBS_${element}="'"'"$LIBPROXY_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- # Check whether --enable-vlm was given.
- if test "${enable_vlm+set}" = set; then :
- enableval=$enable_vlm;
- else
- enable_vlm="${enable_sout}"
- fi
- if test "${enable_vlm}" != "no"; then :
- if test "${enable_sout}" = "no"; then :
- as_fn_error "VLM requires the stream output. Do not use --disable-sout." "$LINENO" 5
- fi
- $as_echo "#define ENABLE_VLM 1" >>confdefs.h
- PLUGINS="${PLUGINS} telnet"
- LTLIBtelnet="libtelnet_plugin.la"
- fi
- if test "${enable_vlm}" != "no"; then
- ENABLE_VLM_TRUE=
- ENABLE_VLM_FALSE='#'
- else
- ENABLE_VLM_TRUE='#'
- ENABLE_VLM_FALSE=
- fi
- # Check whether --enable-growl was given.
- if test "${enable_growl+set}" = set; then :
- enableval=$enable_growl;
- else
- enable_growl=no
- fi
- if test "${enable_growl}" != "no"; then :
- PLUGINS="${PLUGINS} growl_udp"
- LTLIBgrowl_udp="libgrowl_udp_plugin.la"
- for ac_header in Growl/GrowlDefines.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "Growl/GrowlDefines.h" "ac_cv_header_Growl_GrowlDefines_h" "$ac_includes_default"
- if test "x$ac_cv_header_Growl_GrowlDefines_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GROWL_GROWLDEFINES_H 1
- _ACEOF
- PLUGINS="${PLUGINS} growl"
- LTLIBgrowl="libgrowl_plugin.la"
- for element in growl; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,Growl,-framework,AppKit "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- fi
- done
- fi
- # Check whether --enable-notify was given.
- if test "${enable_notify+set}" = set; then :
- enableval=$enable_notify;
- fi
- if test "${enable_notify}" != "no" -a "${SYS}" != "mingw32"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NOTIFY" >&5
- $as_echo_n "checking for NOTIFY... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$NOTIFY_CFLAGS"; then
- pkg_cv_NOTIFY_CFLAGS="$NOTIFY_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libnotify""; } >&5
- ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_NOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$NOTIFY_LIBS"; then
- pkg_cv_NOTIFY_LIBS="$NOTIFY_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libnotify""; } >&5
- ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_NOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- NOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnotify"`
- else
- NOTIFY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnotify"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$NOTIFY_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "${enable_notify}" = "yes"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libnotify not found" >&5
- $as_echo "$as_me: WARNING: libnotify not found" >&2;}
- fi
- elif test $pkg_failed = untried; then
- if test "${enable_notify}" = "yes"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libnotify not found" >&5
- $as_echo "$as_me: WARNING: libnotify not found" >&2;}
- fi
- else
- NOTIFY_CFLAGS=$pkg_cv_NOTIFY_CFLAGS
- NOTIFY_LIBS=$pkg_cv_NOTIFY_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} notify"
- LTLIBnotify="libnotify_plugin.la"
- for element in notify; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $NOTIFY_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in notify; do
- eval "LIBS_${element}="'"'"$NOTIFY_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- # Check whether --enable-audioscrobbler was given.
- if test "${enable_audioscrobbler+set}" = set; then :
- enableval=$enable_audioscrobbler;
- fi
- if test "${enable_audioscrobbler}" != "no"; then :
- PLUGINS="${PLUGINS} audioscrobbler"
- LTLIBaudioscrobbler="libaudioscrobbler_plugin.la"
- fi
- # Check whether --enable-taglib was given.
- if test "${enable_taglib+set}" = set; then :
- enableval=$enable_taglib;
- fi
- if test "${enable_taglib}" != "no"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAGLIB" >&5
- $as_echo_n "checking for TAGLIB... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$TAGLIB_CFLAGS"; then
- pkg_cv_TAGLIB_CFLAGS="$TAGLIB_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "taglib >= 1.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "taglib >= 1.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_TAGLIB_CFLAGS=`$PKG_CONFIG --cflags "taglib >= 1.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$TAGLIB_LIBS"; then
- pkg_cv_TAGLIB_LIBS="$TAGLIB_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "taglib >= 1.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "taglib >= 1.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_TAGLIB_LIBS=`$PKG_CONFIG --libs "taglib >= 1.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- TAGLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "taglib >= 1.5"`
- else
- TAGLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "taglib >= 1.5"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$TAGLIB_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TagLib library not found" >&5
- $as_echo "$as_me: WARNING: TagLib library not found" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TagLib library not found" >&5
- $as_echo "$as_me: WARNING: TagLib library not found" >&2;}
- else
- TAGLIB_CFLAGS=$pkg_cv_TAGLIB_CFLAGS
- TAGLIB_LIBS=$pkg_cv_TAGLIB_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_TAGLIB 1" >>confdefs.h
- PLUGINS="${PLUGINS} taglib"
- LTLIBtaglib="libtaglib_plugin.la"
- for element in taglib; do
- eval "LIBS_${element}="'"'"$TAGLIB_LIBS -lz "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in taglib; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} $TAGLIB_CFLAGS"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- fi
- fi
- # Check whether --with- was given.
- if test "${with_+set}" = set; then :
- withval=$with_;
- fi
- if test "${enable_livedotcom}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --{en|dis}able-livedotcom is deprecated. Use --{en|dis}able-live555 instead." >&5
- $as_echo "$as_me: WARNING: --{en|dis}able-livedotcom is deprecated. Use --{en|dis}able-live555 instead." >&2;}
- fi
- if test "${enable_livedotcom}" = "no"
- then
- enable_live555="no"
- fi
- # Check whether --enable-live555 was given.
- if test "${enable_live555+set}" = set; then :
- enableval=$enable_live555;
- fi
- if test "${enable_live555}" != "no"; then
- # Check whether --with-live555-tree was given.
- if test "${with_live555_tree+set}" = set; then :
- withval=$with_live555_tree;
- fi
- if test "${with_livedotcom_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-livedotcom-tree is deprecated. Use --with-live555-tree instead." >&5
- $as_echo "$as_me: WARNING: --with-livedotcom-tree is deprecated. Use --with-live555-tree instead." >&2;}
- with_live555_tree="${with_livedotcom_tree}"
- fi
- if test -z "${with_live555_tree}" -a "${CXX}" != ""; then
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- CPPFLAGS_save="${CPPFLAGS}"
- CPPFLAGS_live555="-I/usr/include/liveMedia -I/usr/include/groupsock -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment"
- if test "${SYS}" = "solaris"; then
- CPPFLAGS_live555="${CPPFLAGS_live555} -DSOLARIS"
- fi
- CPPFLAGS="${CPPFLAGS} ${CPPFLAGS_live555}"
- for ac_header in liveMedia_version.hh
- do :
- ac_fn_cxx_check_header_mongrel "$LINENO" "liveMedia_version.hh" "ac_cv_header_liveMedia_version_hh" "$ac_includes_default"
- if test "x$ac_cv_header_liveMedia_version_hh" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIVEMEDIA_VERSION_HH 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liveMedia version >= 1214895600 " >&5
- $as_echo_n "checking for liveMedia version >= 1214895600 ... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <liveMedia_version.hh>
- #ifdef LIVEMEDIA_LIBRARY_VERSION_INT
- #if LIVEMEDIA_LIBRARY_VERSION_INT < 1214895600
- yes
- #endif
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "Your version of liveMedia is too old: you may get a more recent one from http://www.live555.com/liveMedia.
- lternatively you can use --disable-live555 to disable the liveMedia plugin." "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- fi
- rm -f conftest*
- fi
- done
- other_libs="-lgroupsock -lBasicUsageEnvironment -lUsageEnvironment"
- other_libs_pic="-lgroupsock_pic -lBasicUsageEnvironment_pic -lUsageEnvironment_pic"
- if test "${SYS}" = "mingw32"; then
- # add ws2_32 for closesocket, select, recv
- other_libs="$other_libs -lws2_32"
- elif test "${SYS}" = "mingwce"; then
- # add ws2 for closesocket, select, recv
- other_libs="$other_libs -lws2"
- fi
- for ac_header in liveMedia.hh
- do :
- ac_fn_cxx_check_header_mongrel "$LINENO" "liveMedia.hh" "ac_cv_header_liveMedia_hh" "$ac_includes_default"
- if test "x$ac_cv_header_liveMedia_hh" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIVEMEDIA_HH 1
- _ACEOF
- for element in live555; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} ${CPPFLAGS_live555}"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lliveMedia_pic" >&5
- $as_echo_n "checking for main in -lliveMedia_pic... " >&6; }
- if test "${ac_cv_lib_liveMedia_pic_main+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lliveMedia_pic ${other_libs_pic} $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return main ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_liveMedia_pic_main=yes
- else
- ac_cv_lib_liveMedia_pic_main=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_liveMedia_pic_main" >&5
- $as_echo "$ac_cv_lib_liveMedia_pic_main" >&6; }
- if test "x$ac_cv_lib_liveMedia_pic_main" = x""yes; then :
- PLUGINS="${PLUGINS} live555"
- LTLIBlive555="liblive555_plugin.la"
- for element in live555; do
- eval "LIBS_${element}="'"'"-lliveMedia_pic ${other_libs_pic} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lliveMedia" >&5
- $as_echo_n "checking for main in -lliveMedia... " >&6; }
- if test "${ac_cv_lib_liveMedia_main+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lliveMedia ${other_libs} $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return main ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_liveMedia_main=yes
- else
- ac_cv_lib_liveMedia_main=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_liveMedia_main" >&5
- $as_echo "$ac_cv_lib_liveMedia_main" >&6; }
- if test "x$ac_cv_lib_liveMedia_main" = x""yes; then :
- PLUGINS="${PLUGINS} live555"
- LTLIBlive555="liblive555_plugin.la"
- for element in live555; do
- eval "LIBS_${element}="'"'"-lliveMedia ${other_libs} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The development files for liveMedia (live555) can't be found" >&5
- $as_echo "$as_me: WARNING: The development files for liveMedia (live555) can't be found" >&2;}
- fi
- done
- CPPFLAGS="${CPPFLAGS_save}"
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liveMedia/libliveMedia.a in ${with_live555_tree}" >&5
- $as_echo_n "checking for liveMedia/libliveMedia.a in ${with_live555_tree}... " >&6; }
- real_live555_tree="`cd ${with_live555_tree} 2>/dev/null && pwd`"
- if test -z "${real_live555_tree}"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${with_live555_tree}" "$LINENO" 5
- fi
- if test -f "${real_live555_tree}/liveMedia/libliveMedia.a"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_live555_tree}/liveMedia/libliveMedia.a" >&5
- $as_echo "${real_live555_tree}/liveMedia/libliveMedia.a" >&6; }
- for ac_header in ${real_live555_tree}/liveMedia/include/liveMedia_version.hh
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liveMedia version >= 1214895600 " >&5
- $as_echo_n "checking for liveMedia version >= 1214895600 ... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "${real_live555_tree}/liveMedia/include/liveMedia_version.hh"
- #ifdef LIVEMEDIA_LIBRARY_VERSION_INT
- #if LIVEMEDIA_LIBRARY_VERSION_INT < 1214895600
- yes
- #endif
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "Your version of liveMedia is too old: you may get a more recent one from http://www.live555.com/liveMedia.
- lternatively you can use --disable-live555 to disable the liveMedia plugin." "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- fi
- rm -f conftest*
- fi
- done
- PLUGINS="${PLUGINS} live555"
- LTLIBlive555="liblive555_plugin.la"
- if test "${SYS}" = "mingw32"; then
- # add ws2_32 for closesocket, select, recv
- for element in live555; do
- eval "LIBS_${element}="'"'"-lws2_32 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- for element in live555; do
- eval "LIBS_${element}="'"'"-L${real_live555_tree}/UsageEnvironment -lUsageEnvironment "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in live555; do
- eval "LIBS_${element}="'"'"-L${real_live555_tree}/BasicUsageEnvironment -lBasicUsageEnvironment "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in live555; do
- eval "LIBS_${element}="'"'"-L${real_live555_tree}/groupsock -lgroupsock "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in live555; do
- eval "LIBS_${element}="'"'"-L${real_live555_tree}/liveMedia -lliveMedia "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in live555; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} -I${real_live555_tree}/BasicUsageEnvironment/include"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- for element in live555; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} -I${real_live555_tree}/groupsock/include"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- for element in live555; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} -I${real_live555_tree}/liveMedia/include"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- for element in live555; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} -I${real_live555_tree}/UsageEnvironment/include "'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- if test "${SYS}" = "solaris"; then
- for element in live555; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} -DSOLARIS"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "${enable_live555}" = "yes"; then
- as_fn_error "cannot find ${real_live555_tree}/liveMedia/libliveMedia.a, make sure you compiled live555 in ${with_live555_tree}" "$LINENO" 5
- fi
- fi
- fi
- fi
- # Check whether --enable-dc1394 was given.
- if test "${enable_dc1394+set}" = set; then :
- enableval=$enable_dc1394;
- fi
- if test "${enable_dc1394}" = "yes"
- then
- for ac_header in libraw1394/raw1394.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "libraw1394/raw1394.h" "ac_cv_header_libraw1394_raw1394_h" "$ac_includes_default"
- if test "x$ac_cv_header_libraw1394_raw1394_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBRAW1394_RAW1394_H 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for raw1394_get_nodecount in -lraw1394" >&5
- $as_echo_n "checking for raw1394_get_nodecount in -lraw1394... " >&6; }
- if test "${ac_cv_lib_raw1394_raw1394_get_nodecount+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lraw1394 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char raw1394_get_nodecount ();
- int
- main ()
- {
- return raw1394_get_nodecount ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_raw1394_raw1394_get_nodecount=yes
- else
- ac_cv_lib_raw1394_raw1394_get_nodecount=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raw1394_raw1394_get_nodecount" >&5
- $as_echo "$ac_cv_lib_raw1394_raw1394_get_nodecount" >&6; }
- if test "x$ac_cv_lib_raw1394_raw1394_get_nodecount" = x""yes; then :
- for ac_header in libdc1394/dc1394_control.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- PLUGINS="${PLUGINS} dc1394"
- LTLIBdc1394="libdc1394_plugin.la"
- for element in dc1394; do
- eval "LIBS_${element}="'"'"-ldc1394_control -lraw1394 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- as_fn_error "libdc1394 is mandatory for the dc1394 input module. try --disable-dc1394 or install this library" "$LINENO" 5
- fi
- done
- else
- as_fn_error "libraw1394 is mandatory for the dc1394 input module. try --disable-dc1394 or install this library" "$LINENO" 5
- fi
- else
- as_fn_error "libraw1394 is mandatory for the dc1394 input module. try --disable-dc1394 or install this library" "$LINENO" 5
- fi
- done
- fi
- # Check whether --enable-dv was given.
- if test "${enable_dv+set}" = set; then :
- enableval=$enable_dv;
- fi
- if test "${enable_dv}" = "yes"
- then
- # Check whether --with-dv-raw1394 was given.
- if test "${with_dv_raw1394+set}" = set; then :
- withval=$with_dv_raw1394;
- fi
- # Check whether --with-dv-raw1394-tree was given.
- if test "${with_dv_raw1394_tree+set}" = set; then :
- withval=$with_dv_raw1394_tree;
- fi
- if test -z "${with_dv_raw1394}" -a "${with_dv_raw1394}" != ""
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for raw1394 headers in ${with_dv_raw1394}" >&5
- $as_echo_n "checking for raw1394 headers in ${with_dv_raw1394}... " >&6; }
- if test -f ${with_dv_raw1394}/include/libraw1394/raw1394.h
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} access_dv"
- LTLIBaccess_dv="libaccess_dv_plugin.la"
- for element in access_dv; do
- eval "LIBS_${element}="'"'"-L${with_dv_raw1394}/lib -lraw1394 -lpthread "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in access_dv; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${with_dv_raw1394}/include"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${with_dv_raw1394}/include/libraw1394/raw1394.h" "$LINENO" 5
- fi
- else
- for ac_header in libraw1394/raw1394.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "libraw1394/raw1394.h" "ac_cv_header_libraw1394_raw1394_h" "$ac_includes_default"
- if test "x$ac_cv_header_libraw1394_raw1394_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBRAW1394_RAW1394_H 1
- _ACEOF
- PLUGINS="${PLUGINS} access_dv"
- LTLIBaccess_dv="libaccess_dv_plugin.la"
- for element in access_dv; do
- eval "LIBS_${element}="'"'"-lraw1394 -lavc1394 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- if test -n "${enable_dv}"
- then
- as_fn_error "cannot find libraw1394 headers" "$LINENO" 5
- fi
- fi
- done
- fi
- if test -z "${with_dv_raw1394_tree}" -a "${with_dv_raw1394_tree}" != ""
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraw1394.a in ${with_dv_raw1394_tree}" >&5
- $as_echo_n "checking for libraw1394.a in ${with_dv_raw1394_tree}... " >&6; }
- real_dv_raw1394_tree="`cd ${with_dv_raw1394_tree} 2>/dev/null && pwd`"
- if test -z "${real_dv_raw1394_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${real_dv_raw1394_tree}" "$LINENO" 5
- fi
- if test -f "${real_dv_raw1394_tree}/src/.libs/libraw1394.a"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_dv_raw1394_tree}/src/.libs/libraw1394.a" >&5
- $as_echo "${real_dv_raw1394_tree}/src/.libs/libraw1394.a" >&6; }
- PLUGINS="${PLUGINS} access_dv"
- LTLIBaccess_dv="libaccess_dv_plugin.la"
- for element in access_dv; do
- eval "LIBS_${element}="'"'"-L${real_dv_raw1394_tree}/src/.libs -lraw1394 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in access_dv; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${real_dv_raw1394_tree}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${real_dv_raw1394_tree}/src/.libs/libraw1394.a, make sure you compiled libraw1394 in ${with_dv_raw1394_tree}" "$LINENO" 5
- fi
- fi
- # Check whether --with-dv-avc1394 was given.
- if test "${with_dv_avc1394+set}" = set; then :
- withval=$with_dv_avc1394;
- fi
- # Check whether --with-dv-avc1394-tree was given.
- if test "${with_dv_avc1394_tree+set}" = set; then :
- withval=$with_dv_avc1394_tree;
- fi
- if test -z "${with_dv_avc1394}" -a "${with_dv_avc1394}" != ""
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avc1394 headers in ${with_dv_avc1394}" >&5
- $as_echo_n "checking for avc1394 headers in ${with_dv_avc1394}... " >&6; }
- if test -f ${with_dv_avc1394}/include/libavc1394/avc1394.h
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in access_dv; do
- eval "LIBS_${element}="'"'"-L${with_dv_avc1394}/lib -lavc1394 -lrom1394 -lpthread "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in access_dv; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${with_avc1394}/include"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${with_dv_avc1394}/include/libavc1394/avc1394.h" "$LINENO" 5
- fi
- else
- for ac_header in libavc1394/avc1394.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "libavc1394/avc1394.h" "ac_cv_header_libavc1394_avc1394_h" "$ac_includes_default"
- if test "x$ac_cv_header_libavc1394_avc1394_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBAVC1394_AVC1394_H 1
- _ACEOF
- for element in access_dv; do
- eval "LIBS_${element}="'"'"-lavc1394 -lrom1394 -lpthread "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- if test -n "${enable_dv}"
- then
- as_fn_error "cannot find libavc1394 headers" "$LINENO" 5
- fi
- fi
- done
- fi
- if test -z "${with_dv_avc1394_tree}" -a "${with_dv_avc1394_tree}" != ""
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libavc1394.a in ${with_dv_avc1394_tree}" >&5
- $as_echo_n "checking for libavc1394.a in ${with_dv_avc1394_tree}... " >&6; }
- real_dv_avc1394_tree="`cd ${with_dv_avc1394_tree} 2>/dev/null && pwd`"
- if test -z "${real_dv_avc1394_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${real_dv_avc1394_tree}" "$LINENO" 5
- fi
- if test -f "${real_dv_avc1394_tree}/src/.libs/libavc1394.a"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_dv_avc1394_tree}/src/.libs/libavc1394.a" >&5
- $as_echo "${real_dv_avc1394_tree}/src/.libs/libavc1394.a" >&6; }
- for element in access_dv; do
- eval "LIBS_${element}="'"'"-L${real_dv_avc1394_tree}/src/.libs -lavc1394 -lrom1394 -lpthread "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in access_dv; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${real_dv_avc1394_tree}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${real_dv_avc1394_tree}/src/.libs/libavc1394.a, make sure you compiled libavc1394 in ${with_dv_avc1394_tree}" "$LINENO" 5
- fi
- fi
- fi
- # Check whether --enable-dvdread was given.
- if test "${enable_dvdread+set}" = set; then :
- enableval=$enable_dvdread;
- fi
- if test "${enable_dvdread}" != "no"
- then
- # Check whether --with-dvdread was given.
- if test "${with_dvdread+set}" = set; then :
- withval=$with_dvdread;
- fi
- # Check whether --with-dvdread-tree was given.
- if test "${with_dvdread_tree+set}" = set; then :
- withval=$with_dvdread_tree;
- fi
- if test "${SYS}" = "mingw32" || test "${SYS}" = "darwin" || test "${SYS}" = "beos" ; then
- for element in dvdread; do
- eval "LIBS_${element}="'"'"-ldvdcss "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- if test -z "${with_dvdread}"
- then
- if test -z "${with_dvdread_tree}"
- then
- for ac_header in dvdread/dvd_reader.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "dvdread/dvd_reader.h" "ac_cv_header_dvdread_dvd_reader_h" "$ac_includes_default"
- if test "x$ac_cv_header_dvdread_dvd_reader_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DVDREAD_DVD_READER_H 1
- _ACEOF
- PLUGINS="${PLUGINS} dvdread"
- LTLIBdvdread="libdvdread_plugin.la"
- for element in dvdread; do
- eval "LIBS_${element}="'"'"-ldvdread ${LIBS_dvdcss} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- for ac_header in libdvdread/dvd_reader.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "libdvdread/dvd_reader.h" "ac_cv_header_libdvdread_dvd_reader_h" "$ac_includes_default"
- if test "x$ac_cv_header_libdvdread_dvd_reader_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBDVDREAD_DVD_READER_H 1
- _ACEOF
- PLUGINS="${PLUGINS} dvdread"
- LTLIBdvdread="libdvdread_plugin.la"
- for element in dvdread; do
- eval "LIBS_${element}="'"'"-ldvdread ${LIBS_dvdcss} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- if test -n "${enable_dvdread}"
- then
- as_fn_error "cannot find libdvdread headers" "$LINENO" 5
- fi
- fi
- done
- fi
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdvdread.a in ${with_dvdread_tree}" >&5
- $as_echo_n "checking for libdvdread.a in ${with_dvdread_tree}... " >&6; }
- real_dvdread_tree="`cd ${with_dvdread_tree} 2>/dev/null && pwd`"
- if test -z "${real_dvdread_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${with_dvdread_tree}" "$LINENO" 5
- fi
- if test -f "${real_dvdread_tree}/dvdread/.libs/libdvdread.a"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_dvdread_tree}/dvdread/.libs/libdvdread.a" >&5
- $as_echo "${real_dvdread_tree}/dvdread/.libs/libdvdread.a" >&6; }
- PLUGINS="${PLUGINS} dvdread"
- LTLIBdvdread="libdvdread_plugin.la"
- for element in dvdread; do
- eval "LIBS_${element}="'"'"-L${real_dvdread_tree}/dvdread/.libs -ldvdread ${LIBS_dvdcss} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in dvdread; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${real_dvdread_tree}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${real_dvdread_tree}/dvdread/.libs/libdvdread.a, make sure you compiled libdvdread in ${with_dvdread_tree}" "$LINENO" 5
- fi
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dvdread headers in ${with_dvdread}" >&5
- $as_echo_n "checking for dvdread headers in ${with_dvdread}... " >&6; }
- if test -f ${with_dvdread}/include/dvdread/dvd_reader.h
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} dvdread"
- LTLIBdvdread="libdvdread_plugin.la"
- for element in dvdread; do
- eval "LIBS_${element}="'"'"-L${with_dvdread}/lib -ldvdread ${LIBS_dvdcss} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in dvdread; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${with_dvdread}/include"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${with_dvdread}/include/dvdread/dvd_reader.h" "$LINENO" 5
- fi
- fi
- fi
- # Check whether --enable-dvdnav was given.
- if test "${enable_dvdnav+set}" = set; then :
- enableval=$enable_dvdnav;
- fi
- if test "${enable_dvdnav}" != "no"
- then
- if test "${SYS}" = "mingw32" || test "${SYS}" = "darwin" || test "${SYS}" = "beos" ; then
- for element in dvdnav; do
- eval "LIBS_${element}="'"'"-ldvdcss "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- DVDNAV_PATH="${PATH}"
- # Check whether --with-dvdnav-config-path was given.
- if test "${with_dvdnav_config_path+set}" = set; then :
- withval=$with_dvdnav_config_path; if test "${with_dvdnav_config_path}" != "no"
- then
- DVDNAV_PATH="${with_dvdnav_config_path}:${PATH}"
- fi
- fi
- # Extract the first word of "dvdnav-config", so it can be a program name with args.
- set dummy dvdnav-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if test "${ac_cv_path_DVDNAV_CONFIG+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- case $DVDNAV_CONFIG in
- [\/]* | ?:[\/]*)
- ac_cv_path_DVDNAV_CONFIG="$DVDNAV_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in ${DVDNAV_PATH}
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_DVDNAV_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_DVDNAV_CONFIG" && ac_cv_path_DVDNAV_CONFIG="no"
- ;;
- esac
- fi
- DVDNAV_CONFIG=$ac_cv_path_DVDNAV_CONFIG
- if test -n "$DVDNAV_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDNAV_CONFIG" >&5
- $as_echo "$DVDNAV_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "${DVDNAV_CONFIG}" != "no"
- then
- PLUGINS="${PLUGINS} dvdnav"
- LTLIBdvdnav="libdvdnav_plugin.la"
- for element in dvdnav; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} `${DVDNAV_CONFIG} --cflags`"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in dvdnav; do
- eval "LIBS_${element}="'"'"`${DVDNAV_CONFIG} --libs` "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- # Check whether --enable-dshow was given.
- if test "${enable_dshow+set}" = set; then :
- enableval=$enable_dshow;
- fi
- if test "${enable_dshow}" != "no"
- then
- if test "${SYS}" = "mingw32" -o "${SYS}" = "cygwin"
- then
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- for ac_header in dshow.h
- do :
- ac_fn_cxx_check_header_mongrel "$LINENO" "dshow.h" "ac_cv_header_dshow_h" "$ac_includes_default"
- if test "x$ac_cv_header_dshow_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DSHOW_H 1
- _ACEOF
- PLUGINS="${PLUGINS} dshow"
- LTLIBdshow="libdshow_plugin.la"
- for element in dshow; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} "'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- for element in dshow; do
- eval "LIBS_${element}="'"'"-lole32 -loleaut32 -luuid "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- fi
- fi
- # Check whether --enable-bda was given.
- if test "${enable_bda+set}" = set; then :
- enableval=$enable_bda;
- fi
- if test "${enable_bda}" != "no"
- then
- if test "${SYS}" = "mingw32" -o "${SYS}" = "cygwin"
- then
- for ac_header in dshow.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "dshow.h" "ac_cv_header_dshow_h" "$ac_includes_default"
- if test "x$ac_cv_header_dshow_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DSHOW_H 1
- _ACEOF
- PLUGINS="${PLUGINS} bda"
- LTLIBbda="libbda_plugin.la"
- for element in bda; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} "'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- for element in bda; do
- eval "LIBS_${element}="'"'"-lstrmiids -lole32 -loleaut32 -luuid "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- fi
- fi
- # Check whether --enable-opencv was given.
- if test "${enable_opencv+set}" = set; then :
- enableval=$enable_opencv;
- fi
- if test "${enable_opencv}" = "yes" -a "${CXX}" != "";
- then
- # Check whether --with-opencv-tree was given.
- if test "${with_opencv_tree+set}" = set; then :
- withval=$with_opencv_tree;
- fi
- if test "${SYS}" = "mingw32" -o "${SYS}" = "cygwin"
- then
- test -z "${with_opencv_tree}" && as_fn_error "You have to specify --with-opencv-tree" "$LINENO" 5
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opencv in ${with_opencv_tree}" >&5
- $as_echo_n "checking for opencv in ${with_opencv_tree}... " >&6; }
- if test -f ${with_opencv_tree}/cv/include/cv.h -a -f ${with_opencv_tree}/cxcore/include/cxcore.h
- -a -f ${with_opencv_tree}/cvaux/include/cvaux.h -a -f ${with_opencv_tree}/otherlibs/highgui/highgui.h
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} opencv_wrapper"
- LTLIBopencv_wrapper="libopencv_wrapper_plugin.la"
- for element in opencv_wrapper; do
- eval "LIBS_${element}="'"'"-L${with_opencv_tree}/lib -lcv -lcxcore -lcvaux -lhighgui "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in opencv_wrapper; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} -I${with_opencv_tree}/cv/include -I${with_opencv_tree}/cxcore/include -I${with_opencv_tree}/cvaux/include -I${with_opencv_tree}/otherlibs/highgui"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- PLUGINS="${PLUGINS} opencv_example"
- LTLIBopencv_example="libopencv_example_plugin.la"
- for element in opencv_example; do
- eval "LIBS_${element}="'"'"-L${with_opencv_tree}/lib -lcv -lcxcore -lcvaux -lhighgui "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in opencv_example; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} -I${with_opencv_tree}/cv/include -I${with_opencv_tree}/cxcore/include -I${with_opencv_tree}/cvaux/include -I${with_opencv_tree}/otherlibs/highgui"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find opencv in ${with_opencv_tree}" "$LINENO" 5
- fi
- else
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENCV" >&5
- $as_echo_n "checking for OPENCV... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$OPENCV_CFLAGS"; then
- pkg_cv_OPENCV_CFLAGS="$OPENCV_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "opencv""; } >&5
- ($PKG_CONFIG --exists --print-errors "opencv") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_OPENCV_CFLAGS=`$PKG_CONFIG --cflags "opencv" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$OPENCV_LIBS"; then
- pkg_cv_OPENCV_LIBS="$OPENCV_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "opencv""; } >&5
- ($PKG_CONFIG --exists --print-errors "opencv") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_OPENCV_LIBS=`$PKG_CONFIG --libs "opencv" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- OPENCV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "opencv"`
- else
- OPENCV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "opencv"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$OPENCV_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "libopencv not found!" "$LINENO" 5
- elif test $pkg_failed = untried; then
- as_fn_error "libopencv not found!" "$LINENO" 5
- else
- OPENCV_CFLAGS=$pkg_cv_OPENCV_CFLAGS
- OPENCV_LIBS=$pkg_cv_OPENCV_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} opencv_example"
- LTLIBopencv_example="libopencv_example_plugin.la"
- PLUGINS="${PLUGINS} opencv_wrapper"
- LTLIBopencv_wrapper="libopencv_wrapper_plugin.la"
- for element in opencv_example opencv_wrapper; do
- eval "LIBS_${element}="'"'"${OPENCV_LIBS} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in opencv_wrapper; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${OPENCV_CFLAGS}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in opencv_example; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} ${OPENCV_CFLAGS}"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- fi
- fi
- fi
- # Check whether --enable-smb was given.
- if test "${enable_smb+set}" = set; then :
- enableval=$enable_smb;
- fi
- if test "${enable_smb}" != "no"; then
- for ac_header in libsmbclient.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "libsmbclient.h" "ac_cv_header_libsmbclient_h" "$ac_includes_default"
- if test "x$ac_cv_header_libsmbclient_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBSMBCLIENT_H 1
- _ACEOF
- PLUGINS="${PLUGINS} access_smb"
- LTLIBaccess_smb="libaccess_smb_plugin.la"
- for element in access_smb; do
- eval "LIBS_${element}="'"'"-lsmbclient "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- if test -n "${enable_smb}"; then
- as_fn_error "cannot find libsmbclient headers" "$LINENO" 5
- fi
- fi
- done
- ac_fn_c_check_member "$LINENO" "struct _SMBCCTX" "close_fn" "ac_cv_member_struct__SMBCCTX_close_fn" "#include <libsmbclient.h>
- "
- if test "x$ac_cv_member_struct__SMBCCTX_close_fn" = x""yes; then :
- $as_echo "#define HAVE__SMBCCTX_CLOSE_FN 1" >>confdefs.h
- fi
- fi
- # Check whether --enable-dvbpsi was given.
- if test "${enable_dvbpsi+set}" = set; then :
- enableval=$enable_dvbpsi;
- fi
- have_dvbpsi=no
- if test "${enable_dvbpsi}" != "no"
- then
- # Check whether --with-dvbpsi was given.
- if test "${with_dvbpsi+set}" = set; then :
- withval=$with_dvbpsi;
- fi
- # Check whether --with-dvbpsi was given.
- if test "${with_dvbpsi+set}" = set; then :
- withval=$with_dvbpsi;
- fi
- case "${with_dvbpsi}" in
- ""|yes)
- if test -z "${with_dvbpsi_tree}"
- then
- for ac_header in dvbpsi/dr.h
- do :
- ac_fn_c_check_header_compile "$LINENO" "dvbpsi/dr.h" "ac_cv_header_dvbpsi_dr_h" "#if defined( HAVE_STDINT_H )
- # include <stdint.h>
- #elif defined( HAVE_INTTYPES_H )
- # include <inttypes.h>
- #endif
- #include <dvbpsi/dvbpsi.h>
- #include <dvbpsi/descriptor.h>
- #include <dvbpsi/pat.h>
- #include <dvbpsi/pmt.h>
- "
- if test "x$ac_cv_header_dvbpsi_dr_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DVBPSI_DR_H 1
- _ACEOF
- PLUGINS="${PLUGINS} ts"
- LTLIBts="libts_plugin.la"
- if test "${enable_sout}" != "no"; then
- PLUGINS="${PLUGINS} mux_ts"
- LTLIBmux_ts="libmux_ts_plugin.la"
- fi
- for element in mux_ts ts dvb; do
- eval "LIBS_${element}="'"'"-ldvbpsi "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- have_dvbpsi=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find libdvbpsi headers" >&5
- $as_echo "$as_me: WARNING: cannot find libdvbpsi headers" >&2;}
- fi
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
- $as_echo_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}... " >&6; }
- real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
- if test -z "${real_dvbpsi_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${with_dvbpsi_tree}" "$LINENO" 5
- fi
- if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&5
- $as_echo "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&6; }
- PLUGINS="${PLUGINS} ts"
- LTLIBts="libts_plugin.la"
- if test "${enable_sout}" != "no"; then
- PLUGINS="${PLUGINS} mux_ts"
- LTLIBmux_ts="libmux_ts_plugin.la"
- fi
- for element in mux_ts ts dvb; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${real_dvbpsi_tree}/src"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in mux_ts ts dvb; do
- eval "LIBS_${element}="'"'"${real_dvbpsi_tree}/src/.libs/libdvbpsi.a "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- have_dvbpsi=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" "$LINENO" 5
- fi
- fi
- ;;
- no)
- ;;
- *)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dvbpsi headers in ${with_dvbpsi}" >&5
- $as_echo_n "checking for dvbpsi headers in ${with_dvbpsi}... " >&6; }
- if test -z "${with_dvbpsi}"
- then
- LDFLAGS_test=""
- CPPFLAGS_test=""
- else
- LDFLAGS_test="-L${with_dvbpsi}/lib"
- CPPFLAGS_test="-I${with_dvbpsi}/include"
- fi
- CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_test}"
- for ac_header in dvbpsi/dr.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "dvbpsi/dr.h" "ac_cv_header_dvbpsi_dr_h" "$ac_includes_default"
- if test "x$ac_cv_header_dvbpsi_dr_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DVBPSI_DR_H 1
- _ACEOF
- PLUGINS="${PLUGINS} ts"
- LTLIBts="libts_plugin.la"
- if test "${enable_sout}" != "no"; then
- PLUGINS="${PLUGINS} mux_ts"
- LTLIBmux_ts="libmux_ts_plugin.la"
- fi
- for element in mux_ts ts dvb; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} ${CPPFLAGS_test}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in mux_ts ts dvb; do
- eval "LIBS_${element}="'"'"${LDFLAGS_test} -ldvbpsi "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- have_dvbpsi=yes
- else
- if test -n "${enable_dvbpsi}"
- then
- as_fn_error "Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" "$LINENO" 5
- fi
- fi
- done
- CPPFLAGS="${CPPFLAGS_save}"
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dvbpsi_GenSDTSections in -ldvbpsi" >&5
- $as_echo_n "checking for dvbpsi_GenSDTSections in -ldvbpsi... " >&6; }
- if test "${ac_cv_lib_dvbpsi_dvbpsi_GenSDTSections+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldvbpsi ${LIBS_ts} $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dvbpsi_GenSDTSections ();
- int
- main ()
- {
- return dvbpsi_GenSDTSections ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_dvbpsi_dvbpsi_GenSDTSections=yes
- else
- ac_cv_lib_dvbpsi_dvbpsi_GenSDTSections=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dvbpsi_dvbpsi_GenSDTSections" >&5
- $as_echo "$ac_cv_lib_dvbpsi_dvbpsi_GenSDTSections" >&6; }
- if test "x$ac_cv_lib_dvbpsi_dvbpsi_GenSDTSections" = x""yes; then :
- $as_echo "#define HAVE_DVBPSI_SDT 1" >>confdefs.h
- fi
- fi
- # Check whether --enable-v4l was given.
- if test "${enable_v4l+set}" = set; then :
- enableval=$enable_v4l;
- fi
- if test "${enable_v4l}" = "yes"
- then
- # Check whether --with-v4l was given.
- if test "${with_v4l+set}" = set; then :
- withval=$with_v4l;
- fi
- if test "${with_v4l}" != "no" -a -n "${with_v4l}"
- then
- for element in v4l; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${with_v4l}/include"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- fi
- CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_v4l}"
- for ac_header in linux/videodev.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
- if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LINUX_VIDEODEV_H 1
- _ACEOF
- PLUGINS="${PLUGINS} v4l"
- LTLIBv4l="libv4l_plugin.la"
- fi
- done
- CPPFLAGS="${CPPFLAGS_save}"
- fi
- # Check whether --enable-v4l2 was given.
- if test "${enable_v4l2+set}" = set; then :
- enableval=$enable_v4l2;
- fi
- if test "${enable_v4l2}" != "no"
- then
- # Check whether --with-v4l2 was given.
- if test "${with_v4l2+set}" = set; then :
- withval=$with_v4l2;
- fi
- if test "${with_v4l2}" != "no" -a -n "${with_v4l2}"
- then
- for element in v4l2; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${with_v4l2}/include"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- fi
- CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_v4l2}"
- for ac_header in linux/videodev2.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "$ac_includes_default"
- if test "x$ac_cv_header_linux_videodev2_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LINUX_VIDEODEV2_H 1
- _ACEOF
- PLUGINS="${PLUGINS} v4l2"
- LTLIBv4l2="libv4l2_plugin.la"
- fi
- done
- CPPFLAGS="${CPPFLAGS_save}"
- fi
- # Check whether --enable-libv4l2 was given.
- if test "${enable_libv4l2+set}" = set; then :
- enableval=$enable_libv4l2;
- fi
- if test "${enable_libv4l2}" != "no" -a "${enable_v4l2}" != "no"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBV4L2" >&5
- $as_echo_n "checking for LIBV4L2... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBV4L2_CFLAGS"; then
- pkg_cv_LIBV4L2_CFLAGS="$LIBV4L2_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libv4l2""; } >&5
- ($PKG_CONFIG --exists --print-errors "libv4l2") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBV4L2_CFLAGS=`$PKG_CONFIG --cflags "libv4l2" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBV4L2_LIBS"; then
- pkg_cv_LIBV4L2_LIBS="$LIBV4L2_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libv4l2""; } >&5
- ($PKG_CONFIG --exists --print-errors "libv4l2") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBV4L2_LIBS=`$PKG_CONFIG --libs "libv4l2" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- LIBV4L2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libv4l2"`
- else
- LIBV4L2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libv4l2"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$LIBV4L2_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LibV4L2 support disabled because libv4l2 development headers were not found" >&5
- $as_echo "$as_me: WARNING: LibV4L2 support disabled because libv4l2 development headers were not found" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LibV4L2 support disabled because libv4l2 development headers were not found" >&5
- $as_echo "$as_me: WARNING: LibV4L2 support disabled because libv4l2 development headers were not found" >&2;}
- else
- LIBV4L2_CFLAGS=$pkg_cv_LIBV4L2_CFLAGS
- LIBV4L2_LIBS=$pkg_cv_LIBV4L2_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in v4l2; do
- eval "LDFLAGS_${element}="'"'"${LIBV4L2_LIBS} "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in v4l2; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${LIBV4L2_CFLAGS}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- $as_echo "#define HAVE_LIBV4L2 1" >>confdefs.h
- fi
- fi
- # Check whether --enable-pvr was given.
- if test "${enable_pvr+set}" = set; then :
- enableval=$enable_pvr;
- fi
- if test "${enable_pvr}" = "yes"
- then
- PLUGINS="${PLUGINS} pvr"
- LTLIBpvr="libpvr_plugin.la"
- # Check whether --with-videodev2 was given.
- if test "${with_videodev2+set}" = set; then :
- withval=$with_videodev2;
- fi
- if test "${with_videodev2}" != "no" -a -n "${with_videodev2}"
- then
- cat >>confdefs.h <<_ACEOF
- #define VIDEODEV2_H_FILE "${with_videodev2}"
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new linux/videodev2.h" >&5
- $as_echo_n "checking for new linux/videodev2.h... " >&6; }
- if test "${ac_cv_new_linux_videodev2_h+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- # ifdef VIDEODEV2_H_FILE
- # include VIDEODEV2_H_FILE
- # else
- # include <linux/videodev2.h>
- # endif
- int
- main ()
- {
- struct v4l2_ext_controls ctrls; ctrls.ctrl_class = V4L2_CTRL_CLASS_MPEG;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_new_linux_videodev2_h=yes
- else
- ac_cv_new_linux_videodev2_h=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_new_linux_videodev2_h" >&5
- $as_echo "$ac_cv_new_linux_videodev2_h" >&6; }
- if test "${ac_cv_new_linux_videodev2_h}" != "no"; then
- $as_echo "#define HAVE_NEW_LINUX_VIDEODEV2_H 1" >>confdefs.h
- fi
- fi
- # Check whether --enable-gnomevfs was given.
- if test "${enable_gnomevfs+set}" = set; then :
- enableval=$enable_gnomevfs;
- fi
- if test "${enable_gnomevfs}" = "yes"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOMEVFS" >&5
- $as_echo_n "checking for GNOMEVFS... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$GNOMEVFS_CFLAGS"; then
- pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "gnome-vfs-2.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$GNOMEVFS_LIBS"; then
- pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "gnome-vfs-2.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0"`
- else
- GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$GNOMEVFS_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GnomeVFS support disabled because GnomeVFS development headers not found" >&5
- $as_echo "$as_me: WARNING: GnomeVFS support disabled because GnomeVFS development headers not found" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GnomeVFS support disabled because GnomeVFS development headers not found" >&5
- $as_echo "$as_me: WARNING: GnomeVFS support disabled because GnomeVFS development headers not found" >&2;}
- else
- GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
- GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in access_gnomevfs; do
- eval "LIBS_${element}="'"'"$GNOMEVFS_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in access_gnomevfs; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} $GNOMEVFS_CPPFLAGS"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in access_gnomevfs; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $GNOMEVFS_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- PLUGINS="${PLUGINS} access_gnomevfs"
- LTLIBaccess_gnomevfs="libaccess_gnomevfs_plugin.la"
- fi
- fi
- # Check whether --enable-libcdio was given.
- if test "${enable_libcdio+set}" = set; then :
- enableval=$enable_libcdio;
- fi
- # Check whether --enable-vcdinfo was given.
- if test "${enable_vcdinfo+set}" = set; then :
- enableval=$enable_vcdinfo;
- fi
- have_libcdio=no
- have_libvcdinfo=no
- if test "${enable_libcdio}" != "no"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCDIO" >&5
- $as_echo_n "checking for LIBCDIO... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBCDIO_CFLAGS"; then
- pkg_cv_LIBCDIO_CFLAGS="$LIBCDIO_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libcdio >= 0.78.2""; } >&5
- ($PKG_CONFIG --exists --print-errors "libcdio >= 0.78.2") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBCDIO_CFLAGS=`$PKG_CONFIG --cflags "libcdio >= 0.78.2" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBCDIO_LIBS"; then
- pkg_cv_LIBCDIO_LIBS="$LIBCDIO_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libcdio >= 0.78.2""; } >&5
- ($PKG_CONFIG --exists --print-errors "libcdio >= 0.78.2") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBCDIO_LIBS=`$PKG_CONFIG --libs "libcdio >= 0.78.2" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- LIBCDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcdio >= 0.78.2"`
- else
- LIBCDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcdio >= 0.78.2"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$LIBCDIO_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CD Reading and information library not found" >&5
- $as_echo "$as_me: WARNING: CD Reading and information library not found" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CD Reading and information library not found" >&5
- $as_echo "$as_me: WARNING: CD Reading and information library not found" >&2;}
- else
- LIBCDIO_CFLAGS=$pkg_cv_LIBCDIO_CFLAGS
- LIBCDIO_LIBS=$pkg_cv_LIBCDIO_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- have_libcdio=yes
- $as_echo "#define HAVE_LIBCDIO 1" >>confdefs.h
- fi
- if test "${enable_vcdinfo}" != "no"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VCDINFO" >&5
- $as_echo_n "checking for VCDINFO... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$VCDINFO_CFLAGS"; then
- pkg_cv_VCDINFO_CFLAGS="$VCDINFO_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libvcdinfo >= 0.7.22""; } >&5
- ($PKG_CONFIG --exists --print-errors "libvcdinfo >= 0.7.22") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_VCDINFO_CFLAGS=`$PKG_CONFIG --cflags "libvcdinfo >= 0.7.22" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$VCDINFO_LIBS"; then
- pkg_cv_VCDINFO_LIBS="$VCDINFO_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libvcdinfo >= 0.7.22""; } >&5
- ($PKG_CONFIG --exists --print-errors "libvcdinfo >= 0.7.22") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_VCDINFO_LIBS=`$PKG_CONFIG --libs "libvcdinfo >= 0.7.22" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- VCDINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libvcdinfo >= 0.7.22"`
- else
- VCDINFO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libvcdinfo >= 0.7.22"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$VCDINFO_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: VCD information library not found" >&5
- $as_echo "$as_me: WARNING: VCD information library not found" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: VCD information library not found" >&5
- $as_echo "$as_me: WARNING: VCD information library not found" >&2;}
- else
- VCDINFO_CFLAGS=$pkg_cv_VCDINFO_CFLAGS
- VCDINFO_LIBS=$pkg_cv_VCDINFO_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- have_libvcdinfo=yes
- $as_echo "#define HAVE_VCDINFO 1" >>confdefs.h
- fi
- fi
- fi
- # Check whether --enable-cddax was given.
- if test "${enable_cddax+set}" = set; then :
- enableval=$enable_cddax;
- fi
- # Check whether --enable-libcddb was given.
- if test "${enable_libcddb+set}" = set; then :
- enableval=$enable_libcddb;
- fi
- if test "${enable_cddax}" = "yes"
- then
- if test "$have_libcdio" = "yes"
- then
- $as_echo "#define HAVE_CDDAX 1" >>confdefs.h
- for element in cddax; do
- eval "LIBS_${element}="'"'"$LIBCDIO_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in cddax; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $LIBCDIO_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- PLUGINS="${PLUGINS} cddax"
- LTLIBcddax="libcddax_plugin.la"
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCDIO_PARANOIA" >&5
- $as_echo_n "checking for LIBCDIO_PARANOIA... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBCDIO_PARANOIA_CFLAGS"; then
- pkg_cv_LIBCDIO_PARANOIA_CFLAGS="$LIBCDIO_PARANOIA_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libcdio_paranoia >= 0.72""; } >&5
- ($PKG_CONFIG --exists --print-errors "libcdio_paranoia >= 0.72") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBCDIO_PARANOIA_CFLAGS=`$PKG_CONFIG --cflags "libcdio_paranoia >= 0.72" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBCDIO_PARANOIA_LIBS"; then
- pkg_cv_LIBCDIO_PARANOIA_LIBS="$LIBCDIO_PARANOIA_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libcdio_paranoia >= 0.72""; } >&5
- ($PKG_CONFIG --exists --print-errors "libcdio_paranoia >= 0.72") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBCDIO_PARANOIA_LIBS=`$PKG_CONFIG --libs "libcdio_paranoia >= 0.72" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- LIBCDIO_PARANOIA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcdio_paranoia >= 0.72"`
- else
- LIBCDIO_PARANOIA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcdio_paranoia >= 0.72"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$LIBCDIO_PARANOIA_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CD Paranoia support disabled because no libcdio >= 0.72 found" >&5
- $as_echo "$as_me: WARNING: CD Paranoia support disabled because no libcdio >= 0.72 found" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CD Paranoia support disabled because no libcdio >= 0.72 found" >&5
- $as_echo "$as_me: WARNING: CD Paranoia support disabled because no libcdio >= 0.72 found" >&2;}
- else
- LIBCDIO_PARANOIA_CFLAGS=$pkg_cv_LIBCDIO_PARANOIA_CFLAGS
- LIBCDIO_PARANOIA_LIBS=$pkg_cv_LIBCDIO_PARANOIA_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in cddax; do
- eval "LIBS_${element}="'"'"$LIBCDIO_CDDA_LIBS $LIBCDIO_CDDA_LIBS $LIBCDIO_PARANOIA_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cddax plugin disabled because ok libcdio library not found or disabled" >&5
- $as_echo "$as_me: WARNING: cddax plugin disabled because ok libcdio library not found or disabled" >&2;}
- HAVE_CDDAX=no
- fi
- if test "$enable_libcddb" != "no"; then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCDDB" >&5
- $as_echo_n "checking for LIBCDDB... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBCDDB_CFLAGS"; then
- pkg_cv_LIBCDDB_CFLAGS="$LIBCDDB_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libcddb >= 0.9.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "libcddb >= 0.9.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBCDDB_CFLAGS=`$PKG_CONFIG --cflags "libcddb >= 0.9.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBCDDB_LIBS"; then
- pkg_cv_LIBCDDB_LIBS="$LIBCDDB_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libcddb >= 0.9.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "libcddb >= 0.9.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBCDDB_LIBS=`$PKG_CONFIG --libs "libcddb >= 0.9.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi