Commit 7bf8d057 authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Check for mpg123_feed function since we require it.

parent 06064d22
...@@ -11273,9 +11273,9 @@ fi ...@@ -11273,9 +11273,9 @@ fi
if test "$ac_cv_header_mpg123_h" = "yes" if test "$ac_cv_header_mpg123_h" = "yes"
then then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_init in -lmpg123" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
$as_echo_n "checking for mpg123_init in -lmpg123... " >&6; } $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
if test "${ac_cv_lib_mpg123_mpg123_init+set}" = set; then : if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
...@@ -11289,27 +11289,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ...@@ -11289,27 +11289,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
char mpg123_init (); char mpg123_feed ();
int int
main () main ()
{ {
return mpg123_init (); return mpg123_feed ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
if ac_fn_c_try_link "$LINENO"; then : if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_mpg123_mpg123_init=yes ac_cv_lib_mpg123_mpg123_feed=yes
else else
ac_cv_lib_mpg123_mpg123_init=no ac_cv_lib_mpg123_mpg123_feed=no
fi fi
rm -f core conftest.err conftest.$ac_objext \ rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_init" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
$as_echo "$ac_cv_lib_mpg123_mpg123_init" >&6; } $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
if test "x$ac_cv_lib_mpg123_mpg123_init" = x""yes; then : if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
LIBMPG123="-lmpg123" LIBMPG123="-lmpg123"
fi fi
...@@ -11317,9 +11317,9 @@ fi ...@@ -11317,9 +11317,9 @@ fi
fi fi
if test "x$ac_cv_lib_mpg123_mpg123_init" != xyes; then : if test "x$ac_cv_lib_mpg123_mpg123_init" != xyes; then :
case "x$with_mpg123" in case "x$with_mpg123" in
x) wine_notices="$wine_notices|libmpg123 ${notice_platform}development files not found, mp3 codec won't be supported." ;; x) wine_notices="$wine_notices|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
xno) ;; xno) ;;
*) as_fn_error "libmpg123 ${notice_platform}development files not found, mp3 codec won't be supported. *) as_fn_error "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
This is an error since --with-mpg123 was requested." "$LINENO" 5 ;; This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
esac esac
fi fi
......
...@@ -1411,10 +1411,10 @@ WINE_WARNING_WITH(png,[test "x$ac_cv_lib_soname_png" = "x"], ...@@ -1411,10 +1411,10 @@ WINE_WARNING_WITH(png,[test "x$ac_cv_lib_soname_png" = "x"],
dnl **** Check for mpg123 **** dnl **** Check for mpg123 ****
if test "$ac_cv_header_mpg123_h" = "yes" if test "$ac_cv_header_mpg123_h" = "yes"
then then
AC_CHECK_LIB(mpg123,mpg123_init,[AC_SUBST(LIBMPG123,"-lmpg123")]) AC_CHECK_LIB(mpg123,mpg123_feed,[AC_SUBST(LIBMPG123,"-lmpg123")])
fi fi
WINE_NOTICE_WITH(mpg123,[test "x$ac_cv_lib_mpg123_mpg123_init" != xyes], WINE_NOTICE_WITH(mpg123,[test "x$ac_cv_lib_mpg123_mpg123_init" != xyes],
[libmpg123 ${notice_platform}development files not found, mp3 codec won't be supported.]) [libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.])
test "x$ac_cv_lib_mpg123_mpg123_init" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no} test "x$ac_cv_lib_mpg123_mpg123_init" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
dnl **** Check for libkstat **** dnl **** Check for libkstat ****
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment