From: Alexandre Julliard <julliard@winehq.org> And use AC_CHECK_FUNC instead of AC_CHECK_LIB, as suggested by Elizabeth Figura. --- aclocal.m4 | 7 +- configure | 1012 ++++++++----------------------------------- configure.ac | 95 ++-- include/config.h.in | 3 - 4 files changed, 235 insertions(+), 882 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 index c022fb28b15..6625ac4de18 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -113,10 +113,13 @@ if test -s conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err -AS_IF([test -n "$ac_cflags$ac_libs"],[ac_save_CPPFLAGS=$CPPFLAGS +AS_IF([test -n "$ac_cflags$ac_libs"],[ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $ac_cflags" +LIBS="$ac_libs $LIBS" $6 -CPPFLAGS=$ac_save_CPPFLAGS]) +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS]) AS_VAR_POPDEF([ac_libs])dnl AS_VAR_POPDEF([ac_cflags])])dnl diff --git a/configure b/configure index e4fb4324a8a..5c240898c1e 100755 --- a/configure +++ b/configure @@ -14962,8 +14962,10 @@ fi rm -f conftest.err if test -n "$EGL_CFLAGS$EGL_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $EGL_CFLAGS" +LIBS="$EGL_LIBS $LIBS" { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -lEGL" >&5 printf %s "checking for -lEGL... " >&6; } if test ${ac_cv_lib_soname_EGL+y} @@ -14971,7 +14973,7 @@ then : printf %s "(cached) " >&6 else case e in #( e) ac_check_soname_save_LIBS=$LIBS -LIBS="-lEGL $EGL_LIBS $LIBS" +LIBS="-lEGL $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -15027,7 +15029,8 @@ printf '%s\n' "#define SONAME_LIBEGL \"$ac_cv_lib_soname_EGL\"" >>confdefs.h ;; esac fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi @@ -16760,8 +16763,10 @@ fi rm -f conftest.err if test -n "$XKBREGISTRY_CFLAGS$XKBREGISTRY_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $XKBREGISTRY_CFLAGS" +LIBS="$XKBREGISTRY_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "xkbcommon/xkbregistry.h" "ac_cv_header_xkbcommon_xkbregistry_h" "$ac_includes_default" if test "x$ac_cv_header_xkbcommon_xkbregistry_h" = xyes then : @@ -16772,7 +16777,7 @@ then : printf %s "(cached) " >&6 else case e in #( e) ac_check_soname_save_LIBS=$LIBS -LIBS="-lxkbregistry $XKBREGISTRY_LIBS $LIBS" +LIBS="-lxkbregistry $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -16830,7 +16835,8 @@ esac fi fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi @@ -16864,55 +16870,15 @@ fi rm -f conftest.err if test -n "$WAYLAND_CLIENT_CFLAGS$WAYLAND_CLIENT_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $WAYLAND_CLIENT_CFLAGS" +LIBS="$WAYLAND_CLIENT_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "wayland-client.h" "ac_cv_header_wayland_client_h" "$ac_includes_default" if test "x$ac_cv_header_wayland_client_h" = xyes then : - { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for wl_display_connect in -lwayland-client" >&5 -printf %s "checking for wl_display_connect in -lwayland-client... " >&6; } -if test ${ac_cv_lib_wayland_client_wl_display_connect+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lwayland-client $WAYLAND_CLIENT_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char wl_display_connect (void); -int -main (void) -{ -return wl_display_connect (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_wayland_client_wl_display_connect=yes -else case e in #( - e) ac_cv_lib_wayland_client_wl_display_connect=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wayland_client_wl_display_connect" >&5 -printf '%s\n' "$ac_cv_lib_wayland_client_wl_display_connect" >&6; } -if test "x$ac_cv_lib_wayland_client_wl_display_connect" = xyes + ac_fn_c_check_func "$LINENO" "wl_display_connect" "ac_cv_func_wl_display_connect" +if test "x$ac_cv_func_wl_display_connect" = xyes then : # Extract the first word of "wayland-scanner", so it can be a program name with args. set dummy wayland-scanner; ac_word=$2 @@ -16968,7 +16934,8 @@ fi fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi rm -f conftest.err @@ -16998,52 +16965,12 @@ fi rm -f conftest.err if test -n "$XKBCOMMON_CFLAGS$XKBCOMMON_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $XKBCOMMON_CFLAGS" -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for xkb_context_new in -lxkbcommon" >&5 -printf %s "checking for xkb_context_new in -lxkbcommon... " >&6; } -if test ${ac_cv_lib_xkbcommon_xkb_context_new+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lxkbcommon $XKBCOMMON_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char xkb_context_new (void); -int -main (void) -{ -return xkb_context_new (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_xkbcommon_xkb_context_new=yes -else case e in #( - e) ac_cv_lib_xkbcommon_xkb_context_new=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xkbcommon_xkb_context_new" >&5 -printf '%s\n' "$ac_cv_lib_xkbcommon_xkb_context_new" >&6; } -if test "x$ac_cv_lib_xkbcommon_xkb_context_new" = xyes +LIBS="$XKBCOMMON_LIBS $LIBS" +ac_fn_c_check_func "$LINENO" "xkb_context_new" "ac_cv_func_xkb_context_new" +if test "x$ac_cv_func_xkb_context_new" = xyes then : : else case e in #( @@ -17051,7 +16978,8 @@ else case e in #( esac fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi if test "x$with_opengl" != "xno" @@ -17083,55 +17011,15 @@ fi rm -f conftest.err if test -n "$WAYLAND_EGL_CFLAGS$WAYLAND_EGL_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $WAYLAND_EGL_CFLAGS" +LIBS="$WAYLAND_EGL_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "wayland-egl.h" "ac_cv_header_wayland_egl_h" "$ac_includes_default" if test "x$ac_cv_header_wayland_egl_h" = xyes then : - { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for wl_egl_window_create in -lwayland-egl" >&5 -printf %s "checking for wl_egl_window_create in -lwayland-egl... " >&6; } -if test ${ac_cv_lib_wayland_egl_wl_egl_window_create+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lwayland-egl $WAYLAND_EGL_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char wl_egl_window_create (void); -int -main (void) -{ -return wl_egl_window_create (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_wayland_egl_wl_egl_window_create=yes -else case e in #( - e) ac_cv_lib_wayland_egl_wl_egl_window_create=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wayland_egl_wl_egl_window_create" >&5 -printf '%s\n' "$ac_cv_lib_wayland_egl_wl_egl_window_create" >&6; } -if test "x$ac_cv_lib_wayland_egl_wl_egl_window_create" = xyes + ac_fn_c_check_func "$LINENO" "wl_egl_window_create" "ac_cv_func_wl_egl_window_create" +if test "x$ac_cv_func_wl_egl_window_create" = xyes then : printf '%s\n' "#define HAVE_LIBWAYLAND_EGL 1" >>confdefs.h @@ -17143,12 +17031,13 @@ fi fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi if test "x$with_wayland" != "x" then - if test -z "$ac_cv_lib_soname_EGL" -o "$ac_cv_lib_wayland_egl_wl_egl_window_create" != yes + if test -z "$ac_cv_lib_soname_EGL" -o "$ac_cv_func_wl_egl_window_create" != yes then : case "x$with_opengl" in x) as_fn_append wine_notices "|EGL ${notice_platform}development files not found, the Wayland driver won't support OpenGL" ;; @@ -17422,8 +17311,10 @@ fi rm -f conftest.err if test -n "$INOTIFY_CFLAGS$INOTIFY_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $INOTIFY_CFLAGS" +LIBS="$INOTIFY_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" if test "x$ac_cv_header_sys_inotify_h" = xyes then : @@ -17431,50 +17322,8 @@ then : fi - { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for inotify_add_watch in -linotify" >&5 -printf %s "checking for inotify_add_watch in -linotify... " >&6; } -if test ${ac_cv_lib_inotify_inotify_add_watch+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-linotify $INOTIFY_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char inotify_add_watch (void); -int -main (void) -{ -return inotify_add_watch (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_inotify_inotify_add_watch=yes -else case e in #( - e) ac_cv_lib_inotify_inotify_add_watch=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inotify_inotify_add_watch" >&5 -printf '%s\n' "$ac_cv_lib_inotify_inotify_add_watch" >&6; } -if test "x$ac_cv_lib_inotify_inotify_add_watch" = xyes + ac_fn_c_check_func "$LINENO" "inotify_add_watch" "ac_cv_func_inotify_add_watch" +if test "x$ac_cv_func_inotify_add_watch" = xyes then : : else case e in #( @@ -17482,7 +17331,8 @@ else case e in #( esac fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi @@ -17526,8 +17376,10 @@ fi rm -f conftest.err if test -n "$DBUS_CFLAGS$DBUS_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS" +LIBS="$DBUS_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default" if test "x$ac_cv_header_dbus_dbus_h" = xyes then : @@ -17538,7 +17390,7 @@ then : printf %s "(cached) " >&6 else case e in #( e) ac_check_soname_save_LIBS=$LIBS -LIBS="-ldbus-1 $DBUS_LIBS $LIBS" +LIBS="-ldbus-1 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -17599,7 +17451,8 @@ else case e in #( esac fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi @@ -17646,8 +17499,10 @@ fi rm -f conftest.err if test -n "$GNUTLS_CFLAGS$GNUTLS_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS" +LIBS="$GNUTLS_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" if test "x$ac_cv_header_gnutls_gnutls_h" = xyes then : @@ -17672,7 +17527,7 @@ then : printf %s "(cached) " >&6 else case e in #( e) ac_check_soname_save_LIBS=$LIBS -LIBS="-lgnutls $GNUTLS_LIBS $LIBS" +LIBS="-lgnutls $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -17728,23 +17583,15 @@ printf '%s\n' "#define SONAME_LIBGNUTLS \"$ac_cv_lib_soname_gnutls\"" >>confdefs ;; esac fi - ac_wine_check_funcs_save_LIBS="$LIBS" -LIBS="$LIBS $GNUTLS_LIBS" - - for ac_func in gnutls_cipher_init -do : - ac_fn_c_check_func "$LINENO" "gnutls_cipher_init" "ac_cv_func_gnutls_cipher_init" + ac_fn_c_check_func "$LINENO" "gnutls_cipher_init" "ac_cv_func_gnutls_cipher_init" if test "x$ac_cv_func_gnutls_cipher_init" = xyes then : - printf '%s\n' "#define HAVE_GNUTLS_CIPHER_INIT 1" >>confdefs.h else case e in #( e) as_fn_append wine_notices "|libgnutls ${notice_platform}development files too old, bcrypt encryption won't be supported." ;; esac fi -done -LIBS="$ac_wine_check_funcs_save_LIBS" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext else case e in #( @@ -17752,7 +17599,8 @@ else case e in #( esac fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi @@ -17798,55 +17646,15 @@ fi rm -f conftest.err if test -n "$HWLOC_CFLAGS$HWLOC_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $HWLOC_CFLAGS" +LIBS="$HWLOC_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "hwloc.h" "ac_cv_header_hwloc_h" "$ac_includes_default" if test "x$ac_cv_header_hwloc_h" = xyes then : - { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for hwloc_topology_init in -lhwloc" >&5 -printf %s "checking for hwloc_topology_init in -lhwloc... " >&6; } -if test ${ac_cv_lib_hwloc_hwloc_topology_init+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lhwloc $HWLOC_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char hwloc_topology_init (void); -int -main (void) -{ -return hwloc_topology_init (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_hwloc_hwloc_topology_init=yes -else case e in #( - e) ac_cv_lib_hwloc_hwloc_topology_init=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hwloc_hwloc_topology_init" >&5 -printf '%s\n' "$ac_cv_lib_hwloc_hwloc_topology_init" >&6; } -if test "x$ac_cv_lib_hwloc_hwloc_topology_init" = xyes + ac_fn_c_check_func "$LINENO" "hwloc_topology_init" "ac_cv_func_hwloc_topology_init" +if test "x$ac_cv_func_hwloc_topology_init" = xyes then : printf '%s\n' "#define HAVE_LIBHWLOC 1" >>confdefs.h @@ -17861,10 +17669,11 @@ else case e in #( esac fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi - if test "$ac_cv_lib_hwloc_hwloc_topology_init" != "yes" + if test "$ac_cv_func_hwloc_topology_init" != "yes" then : case "x$with_hwloc" in x) as_fn_append wine_notices "|hwloc ${notice_platform}development files not found, detailed CPU info on FreeBSD won't be supported." ;; @@ -17907,66 +17716,27 @@ fi rm -f conftest.err if test -n "$SANE_CFLAGS$SANE_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $SANE_CFLAGS" +LIBS="$SANE_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default" if test "x$ac_cv_header_sane_sane_h" = xyes then : - { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for sane_init in -lsane" >&5 -printf %s "checking for sane_init in -lsane... " >&6; } -if test ${ac_cv_lib_sane_sane_init+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lsane $SANE_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char sane_init (void); -int -main (void) -{ -return sane_init (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_sane_sane_init=yes -else case e in #( - e) ac_cv_lib_sane_sane_init=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sane_sane_init" >&5 -printf '%s\n' "$ac_cv_lib_sane_sane_init" >&6; } -if test "x$ac_cv_lib_sane_sane_init" = xyes + ac_fn_c_check_func "$LINENO" "sane_init" "ac_cv_func_sane_init" +if test "x$ac_cv_func_sane_init" = xyes then : : fi fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi -if test "$ac_cv_lib_sane_sane_init" != "yes" +if test "$ac_cv_func_sane_init" != "yes" then : case "x$with_sane" in x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;; @@ -18006,55 +17776,15 @@ fi rm -f conftest.err if test -n "$USB_CFLAGS$USB_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $USB_CFLAGS" +LIBS="$USB_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default" if test "x$ac_cv_header_libusb_h" = xyes then : - { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libusb_interrupt_event_handler in -lusb-1.0" >&5 -printf %s "checking for libusb_interrupt_event_handler in -lusb-1.0... " >&6; } -if test ${ac_cv_lib_usb_1_0_libusb_interrupt_event_handler+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lusb-1.0 $USB_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char libusb_interrupt_event_handler (void); -int -main (void) -{ -return libusb_interrupt_event_handler (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_usb_1_0_libusb_interrupt_event_handler=yes -else case e in #( - e) ac_cv_lib_usb_1_0_libusb_interrupt_event_handler=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_1_0_libusb_interrupt_event_handler" >&5 -printf '%s\n' "$ac_cv_lib_usb_1_0_libusb_interrupt_event_handler" >&6; } -if test "x$ac_cv_lib_usb_1_0_libusb_interrupt_event_handler" = xyes + ac_fn_c_check_func "$LINENO" "libusb_interrupt_event_handler" "ac_cv_func_libusb_interrupt_event_handler" +if test "x$ac_cv_func_libusb_interrupt_event_handler" = xyes then : : else case e in #( @@ -18067,11 +17797,12 @@ else case e in #( esac fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi -if test "$ac_cv_lib_usb_1_0_libusb_interrupt_event_handler" != "yes" +if test "$ac_cv_func_libusb_interrupt_event_handler" != "yes" then : case "x$with_usb" in x) as_fn_append wine_notices "|libusb-1.0 ${notice_platform}development files not found (or too old), USB devices won't be supported." ;; @@ -18188,62 +17919,23 @@ fi rm -f conftest.err if test -n "$GPHOTO2_CFLAGS$GPHOTO2_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS" +LIBS="$GPHOTO2_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default" if test "x$ac_cv_header_gphoto2_camera_h" = xyes then : - { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5 -printf %s "checking for gp_camera_new in -lgphoto2... " >&6; } -if test ${ac_cv_lib_gphoto2_gp_camera_new+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lgphoto2 $GPHOTO2_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char gp_camera_new (void); -int -main (void) -{ -return gp_camera_new (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_gphoto2_gp_camera_new=yes -else case e in #( - e) ac_cv_lib_gphoto2_gp_camera_new=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5 -printf '%s\n' "$ac_cv_lib_gphoto2_gp_camera_new" >&6; } -if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes + ac_fn_c_check_func "$LINENO" "gp_camera_new" "ac_cv_func_gp_camera_new" +if test "x$ac_cv_func_gp_camera_new" = xyes then : : fi fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi rm -f conftest.err @@ -18273,55 +17965,15 @@ fi rm -f conftest.err if test -n "$GPHOTO2_PORT_CFLAGS$GPHOTO2_PORT_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS" +LIBS="$GPHOTO2_PORT_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default" if test "x$ac_cv_header_gphoto2_port_h" = xyes then : - { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5 -printf %s "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; } -if test ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char gp_port_info_list_new (void); -int -main (void) -{ -return gp_port_info_list_new (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes -else case e in #( - e) ac_cv_lib_gphoto2_port_gp_port_info_list_new=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5 -printf '%s\n' "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; } -if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes + ac_fn_c_check_func "$LINENO" "gp_port_info_list_new" "ac_cv_func_gp_port_info_list_new" +if test "x$ac_cv_func_gp_port_info_list_new" = xyes then : printf '%s\n' "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h @@ -18336,11 +17988,12 @@ else case e in #( esac fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi -if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes" +if test "$ac_cv_func_gp_camera_new" != "yes" then : case "x$with_gphoto" in x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;; @@ -18350,7 +18003,7 @@ This is an error since --with-gphoto was requested." "$LINENO" 5 ;; esac enable_gphoto2_ds=${enable_gphoto2_ds:-no} fi -if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes" +if test "$ac_cv_func_gp_port_info_list_new" != "yes" then : case "x$with_gphoto" in x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;; @@ -18491,8 +18144,10 @@ fi rm -f conftest.err if test -n "$FREETYPE_CFLAGS$FREETYPE_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS" +LIBS="$FREETYPE_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default" if test "x$ac_cv_header_ft2build_h" = xyes then : @@ -18509,7 +18164,7 @@ then : printf %s "(cached) " >&6 else case e in #( e) ac_check_soname_save_LIBS=$LIBS -LIBS="-lfreetype $FREETYPE_LIBS $LIBS" +LIBS="-lfreetype $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -18569,7 +18224,8 @@ fi FREETYPE_CFLAGS="" FREETYPE_LIBS="" fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi @@ -18702,55 +18358,15 @@ fi rm -f conftest.err if test -n "$PULSE_CFLAGS$PULSE_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $PULSE_CFLAGS" +LIBS="$PULSE_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "pulse/pulseaudio.h" "ac_cv_header_pulse_pulseaudio_h" "$ac_includes_default" if test "x$ac_cv_header_pulse_pulseaudio_h" = xyes then : - { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for pa_stream_is_corked in -lpulse" >&5 -printf %s "checking for pa_stream_is_corked in -lpulse... " >&6; } -if test ${ac_cv_lib_pulse_pa_stream_is_corked+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lpulse $PULSE_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char pa_stream_is_corked (void); -int -main (void) -{ -return pa_stream_is_corked (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_pulse_pa_stream_is_corked=yes -else case e in #( - e) ac_cv_lib_pulse_pa_stream_is_corked=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_pa_stream_is_corked" >&5 -printf '%s\n' "$ac_cv_lib_pulse_pa_stream_is_corked" >&6; } -if test "x$ac_cv_lib_pulse_pa_stream_is_corked" = xyes + ac_fn_c_check_func "$LINENO" "pa_stream_is_corked" "ac_cv_func_pa_stream_is_corked" +if test "x$ac_cv_func_pa_stream_is_corked" = xyes then : : else case e in #( @@ -18763,7 +18379,8 @@ else case e in #( esac fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi @@ -18807,8 +18424,10 @@ fi rm -f conftest.err if test -n "$FFMPEG_CFLAGS$FFMPEG_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $FFMPEG_CFLAGS" +LIBS="$FFMPEG_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "libavutil/avutil.h" "ac_cv_header_libavutil_avutil_h" "$ac_includes_default" if test "x$ac_cv_header_libavutil_avutil_h" = xyes then : @@ -18836,140 +18455,14 @@ fi if test "$ac_cv_header_libavutil_avutil_h" = "yes" -a "$ac_cv_header_libavformat_avformat_h" = "yes" -a "$ac_cv_header_libavcodec_avcodec_h" = "yes" then - { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for av_log_set_callback in -lavutil" >&5 -printf %s "checking for av_log_set_callback in -lavutil... " >&6; } -if test ${ac_cv_lib_avutil_av_log_set_callback+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lavutil $FFMPEG_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char av_log_set_callback (void); -int -main (void) -{ -return av_log_set_callback (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_avutil_av_log_set_callback=yes -else case e in #( - e) ac_cv_lib_avutil_av_log_set_callback=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_log_set_callback" >&5 -printf '%s\n' "$ac_cv_lib_avutil_av_log_set_callback" >&6; } -if test "x$ac_cv_lib_avutil_av_log_set_callback" = xyes + ac_fn_c_check_func "$LINENO" "av_log_set_callback" "ac_cv_func_av_log_set_callback" +if test "x$ac_cv_func_av_log_set_callback" = xyes then : - { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for av_find_input_format in -lavformat" >&5 -printf %s "checking for av_find_input_format in -lavformat... " >&6; } -if test ${ac_cv_lib_avformat_av_find_input_format+y} + ac_fn_c_check_func "$LINENO" "av_find_input_format" "ac_cv_func_av_find_input_format" +if test "x$ac_cv_func_av_find_input_format" = xyes then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lavformat $FFMPEG_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char av_find_input_format (void); -int -main (void) -{ -return av_find_input_format (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_avformat_av_find_input_format=yes -else case e in #( - e) ac_cv_lib_avformat_av_find_input_format=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_find_input_format" >&5 -printf '%s\n' "$ac_cv_lib_avformat_av_find_input_format" >&6; } -if test "x$ac_cv_lib_avformat_av_find_input_format" = xyes -then : - { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for avcodec_get_name in -lavcodec" >&5 -printf %s "checking for avcodec_get_name in -lavcodec... " >&6; } -if test ${ac_cv_lib_avcodec_avcodec_get_name+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lavcodec $FFMPEG_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char avcodec_get_name (void); -int -main (void) -{ -return avcodec_get_name (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_avcodec_avcodec_get_name=yes -else case e in #( - e) ac_cv_lib_avcodec_avcodec_get_name=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_get_name" >&5 -printf '%s\n' "$ac_cv_lib_avcodec_avcodec_get_name" >&6; } -if test "x$ac_cv_lib_avcodec_avcodec_get_name" = xyes + ac_fn_c_check_func "$LINENO" "avcodec_get_name" "ac_cv_func_avcodec_get_name" +if test "x$ac_cv_func_avcodec_get_name" = xyes then : printf '%s\n' "#define HAVE_FFMPEG 1" >>confdefs.h @@ -18992,7 +18485,8 @@ fi else FFMPEG_LIBS="" fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi @@ -19036,8 +18530,10 @@ fi rm -f conftest.err if test -n "$GSTREAMER_CFLAGS$GSTREAMER_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" +LIBS="$GSTREAMER_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "gst/gst.h" "ac_cv_header_gst_gst_h" "$ac_includes_default" if test "x$ac_cv_header_gst_gst_h" = xyes then : @@ -19058,50 +18554,8 @@ if ac_fn_c_try_compile "$LINENO" then : { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf '%s\n' "yes" >&6; } - { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for gst_pad_new in -lgstreamer-1.0" >&5 -printf %s "checking for gst_pad_new in -lgstreamer-1.0... " >&6; } -if test ${ac_cv_lib_gstreamer_1_0_gst_pad_new+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lgstreamer-1.0 $GSTREAMER_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char gst_pad_new (void); -int -main (void) -{ -return gst_pad_new (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_gstreamer_1_0_gst_pad_new=yes -else case e in #( - e) ac_cv_lib_gstreamer_1_0_gst_pad_new=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_1_0_gst_pad_new" >&5 -printf '%s\n' "$ac_cv_lib_gstreamer_1_0_gst_pad_new" >&6; } -if test "x$ac_cv_lib_gstreamer_1_0_gst_pad_new" = xyes + ac_fn_c_check_func "$LINENO" "gst_pad_new" "ac_cv_func_gst_pad_new" +if test "x$ac_cv_func_gst_pad_new" = xyes then : : fi @@ -19117,11 +18571,12 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi -if test "x$ac_glib2_broken" != xyes -a "x$ac_cv_lib_gstreamer_1_0_gst_pad_new" != xyes +if test "x$ac_glib2_broken" != xyes -a "x$ac_cv_func_gst_pad_new" != xyes then : case "x$with_gstreamer" in x) as_fn_append wine_notices "|gstreamer-1.0 base plugins ${notice_platform}development files not found, GStreamer won't be supported." ;; @@ -19163,52 +18618,12 @@ fi rm -f conftest.err if test -n "$ALSA_CFLAGS$ALSA_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $ALSA_CFLAGS" -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5 -printf %s "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; } -if test ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lasound $ALSA_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char snd_pcm_hw_params_get_access_mask (void); -int -main (void) -{ -return snd_pcm_hw_params_get_access_mask (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes -else case e in #( - e) ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5 -printf '%s\n' "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; } -if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes +LIBS="$ALSA_LIBS $LIBS" +ac_fn_c_check_func "$LINENO" "snd_pcm_hw_params_get_access_mask" "ac_cv_func_snd_pcm_hw_params_get_access_mask" +if test "x$ac_cv_func_snd_pcm_hw_params_get_access_mask" = xyes then : : else case e in #( @@ -19216,7 +18631,8 @@ else case e in #( esac fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi @@ -19347,58 +18763,18 @@ fi rm -f conftest.err if test -n "$UDEV_CFLAGS$UDEV_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $UDEV_CFLAGS" +LIBS="$UDEV_LIBS $LIBS" for ac_header in libudev.h do : ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default" if test "x$ac_cv_header_libudev_h" = xyes then : printf '%s\n' "#define HAVE_LIBUDEV_H 1" >>confdefs.h - { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for udev_new in -ludev" >&5 -printf %s "checking for udev_new in -ludev... " >&6; } -if test ${ac_cv_lib_udev_udev_new+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-ludev $UDEV_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char udev_new (void); -int -main (void) -{ -return udev_new (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_udev_udev_new=yes -else case e in #( - e) ac_cv_lib_udev_udev_new=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_new" >&5 -printf '%s\n' "$ac_cv_lib_udev_udev_new" >&6; } -if test "x$ac_cv_lib_udev_udev_new" = xyes + ac_fn_c_check_func "$LINENO" "udev_new" "ac_cv_func_udev_new" +if test "x$ac_cv_func_udev_new" = xyes then : printf '%s\n' "#define HAVE_UDEV 1" >>confdefs.h @@ -19414,7 +18790,8 @@ esac fi done -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi @@ -19458,8 +18835,10 @@ fi rm -f conftest.err if test -n "$SDL2_CFLAGS$SDL2_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $SDL2_CFLAGS" +LIBS="$SDL2_LIBS $LIBS" for ac_header in SDL.h do : ac_fn_c_check_header_compile "$LINENO" "SDL.h" "ac_cv_header_SDL_h" "$ac_includes_default" @@ -19473,7 +18852,7 @@ then : printf %s "(cached) " >&6 else case e in #( e) ac_check_soname_save_LIBS=$LIBS -LIBS="-lSDL2 $SDL2_LIBS $LIBS" +LIBS="-lSDL2 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19532,7 +18911,8 @@ fi fi done -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi @@ -19576,8 +18956,10 @@ fi rm -f conftest.err if test -n "$CAPI20_CFLAGS$CAPI20_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS" +LIBS="$CAPI20_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "capi20.h" "ac_cv_header_capi20_h" "#define __user " if test "x$ac_cv_header_capi20_h" = xyes @@ -19595,50 +18977,8 @@ fi if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes" then - { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for capi20_register in -lcapi20" >&5 -printf %s "checking for capi20_register in -lcapi20... " >&6; } -if test ${ac_cv_lib_capi20_capi20_register+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lcapi20 $CAPI20_LIBS $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char capi20_register (void); -int -main (void) -{ -return capi20_register (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_capi20_capi20_register=yes -else case e in #( - e) ac_cv_lib_capi20_capi20_register=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_capi20_capi20_register" >&5 -printf '%s\n' "$ac_cv_lib_capi20_capi20_register" >&6; } -if test "x$ac_cv_lib_capi20_capi20_register" = xyes + ac_fn_c_check_func "$LINENO" "capi20_register" "ac_cv_func_capi20_register" +if test "x$ac_cv_func_capi20_register" = xyes then : : else case e in #( @@ -19647,11 +18987,12 @@ esac fi fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi -if test "x$ac_cv_lib_capi20_capi20_register" != xyes +if test "x$ac_cv_func_capi20_register" != xyes then : case "x$with_capi" in x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;; @@ -19691,8 +19032,10 @@ fi rm -f conftest.err if test -n "$CUPS_CFLAGS$CUPS_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $CUPS_CFLAGS" +LIBS="$CUPS_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default" if test "x$ac_cv_header_cups_cups_h" = xyes then : @@ -19715,7 +19058,7 @@ then : printf %s "(cached) " >&6 else case e in #( e) ac_check_soname_save_LIBS=$LIBS -LIBS="-lcups $CUPS_LIBS $LIBS" +LIBS="-lcups $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19775,7 +19118,8 @@ fi CUPS_CFLAGS="" CUPS_LIBS="" fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi @@ -19819,8 +19163,10 @@ fi rm -f conftest.err if test -n "$FONTCONFIG_CFLAGS$FONTCONFIG_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $FONTCONFIG_CFLAGS" +LIBS="$FONTCONFIG_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes then : @@ -19831,7 +19177,7 @@ then : printf %s "(cached) " >&6 else case e in #( e) ac_check_soname_save_LIBS=$LIBS -LIBS="-lfontconfig $FONTCONFIG_LIBS $LIBS" +LIBS="-lfontconfig $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19892,7 +19238,8 @@ else case e in #( esac fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi @@ -19936,8 +19283,10 @@ fi rm -f conftest.err if test -n "$KRB5_CFLAGS$KRB5_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $KRB5_CFLAGS" +LIBS="$KRB5_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "krb5/krb5.h" "ac_cv_header_krb5_krb5_h" "$ac_includes_default" if test "x$ac_cv_header_krb5_krb5_h" = xyes then : @@ -19954,7 +19303,7 @@ then : printf %s "(cached) " >&6 else case e in #( e) ac_check_soname_save_LIBS=$LIBS -LIBS="-lkrb5 $KRB5_LIBS $LIBS" +LIBS="-lkrb5 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -20013,7 +19362,8 @@ fi else KRB5_CFLAGS="" fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi @@ -20058,8 +19408,10 @@ fi rm -f conftest.err if test -n "$GSSAPI_CFLAGS$GSSAPI_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS" +LIBS="$GSSAPI_LIBS $LIBS" ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" if test "x$ac_cv_header_gssapi_gssapi_h" = xyes then : @@ -20082,7 +19434,7 @@ then : printf %s "(cached) " >&6 else case e in #( e) ac_check_soname_save_LIBS=$LIBS -LIBS="-lgssapi_krb5 $GSSAPI_LIBS $LIBS" +LIBS="-lgssapi_krb5 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -20141,7 +19493,8 @@ fi else GSSAPI_CFLAGS="" fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi @@ -20306,8 +19659,10 @@ fi rm -f conftest.err if test -n "$NETAPI_CFLAGS$NETAPI_LIBS" then : - ac_save_CPPFLAGS=$CPPFLAGS + ac_save_pkg_CPPFLAGS=$CPPFLAGS +ac_save_pkg_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $NETAPI_CFLAGS" +LIBS="$NETAPI_LIBS $LIBS" { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5 printf %s "checking for -lnetapi... " >&6; } if test ${ac_cv_lib_soname_netapi+y} @@ -20315,7 +19670,7 @@ then : printf %s "(cached) " >&6 else case e in #( e) ac_check_soname_save_LIBS=$LIBS -LIBS="-lnetapi $NETAPI_LIBS $LIBS" +LIBS="-lnetapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -20372,7 +19727,8 @@ printf '%s\n' "#define SONAME_LIBNETAPI \"$ac_cv_lib_soname_netapi\"" >>confdefs ;; esac fi -CPPFLAGS=$ac_save_CPPFLAGS +CPPFLAGS=$ac_save_pkg_CPPFLAGS +LIBS=$ac_save_pkg_LIBS fi fi diff --git a/configure.ac b/configure.ac index 6fba48de7bd..41d053295fc 100644 --- a/configure.ac +++ b/configure.ac @@ -1269,7 +1269,7 @@ dnl **** Check for EGL **** if test "x$with_opengl" != "xno" then WINE_PACKAGE_FLAGS(EGL,[egl],[-lEGL],,, - [WINE_CHECK_SONAME(EGL,eglGetProcAddress,,,[$EGL_LIBS])]) + [WINE_CHECK_SONAME(EGL,eglGetProcAddress)]) fi WINE_NOTICE_WITH(opengl, [test -z "$ac_cv_lib_soname_EGL"], [EGL ${notice_platform}development files not found]) @@ -1444,29 +1444,29 @@ if test "x$have_x$with_wayland" != "xnono" then WINE_PACKAGE_FLAGS(XKBREGISTRY,[xkbregistry],,,, [AC_CHECK_HEADER([xkbcommon/xkbregistry.h], - [WINE_CHECK_SONAME(xkbregistry,rxkb_context_new,[:],[XKBREGISTRY_LIBS=""],[$XKBREGISTRY_LIBS])])]) + [WINE_CHECK_SONAME(xkbregistry,rxkb_context_new,[:],[XKBREGISTRY_LIBS=""])])]) fi if test "x$with_wayland" != "xno" then WINE_PACKAGE_FLAGS(WAYLAND_CLIENT,[wayland-client],,,, [AC_CHECK_HEADER([wayland-client.h], - [AC_CHECK_LIB(wayland-client,wl_display_connect, + [AC_CHECK_FUNC(wl_display_connect, [AC_PATH_PROG(WAYLAND_SCANNER,wayland-scanner, [`test -n "$PKG_CONFIG" && $PKG_CONFIG --variable=wayland_scanner wayland-scanner 2>/dev/null`])], - [WAYLAND_CLIENT_LIBS=""],[$WAYLAND_CLIENT_LIBS])])]) + [WAYLAND_CLIENT_LIBS=""])])]) WINE_PACKAGE_FLAGS(XKBCOMMON,[xkbcommon],,,, - [AC_CHECK_LIB(xkbcommon,xkb_context_new,[:],[XKBCOMMON_LIBS=""],[$XKBCOMMON_LIBS])]) + [AC_CHECK_FUNC(xkb_context_new,[:],[XKBCOMMON_LIBS=""])]) if test "x$with_opengl" != "xno" then WINE_PACKAGE_FLAGS(WAYLAND_EGL,[wayland-egl],,,, [AC_CHECK_HEADER([wayland-egl.h], - [AC_CHECK_LIB(wayland-egl,wl_egl_window_create, + [AC_CHECK_FUNC(wl_egl_window_create, [AC_DEFINE(HAVE_LIBWAYLAND_EGL, 1, [Define if we have the wayland-egl development environment])], - [WAYLAND_EGL_LIBS=""],[$WAYLAND_EGL_LIBS])])]) + [WAYLAND_EGL_LIBS=""])])]) if test "x$with_wayland" != "x" then - WINE_NOTICE_WITH(opengl, [test -z "$ac_cv_lib_soname_EGL" -o "$ac_cv_lib_wayland_egl_wl_egl_window_create" != yes], + WINE_NOTICE_WITH(opengl, [test -z "$ac_cv_lib_soname_EGL" -o "$ac_cv_func_wl_egl_window_create" != yes], [EGL ${notice_platform}development files not found, the Wayland driver won't support OpenGL]) fi fi @@ -1523,7 +1523,7 @@ if test "x$with_inotify" != "xno" then WINE_PACKAGE_FLAGS(INOTIFY,[libinotify],[-linotify],,, [AC_CHECK_HEADERS([sys/inotify.h]) - AC_CHECK_LIB(inotify,inotify_add_watch,[:],[INOTIFY_LIBS=""],[$INOTIFY_LIBS])]) + AC_CHECK_FUNC(inotify_add_watch,[:],[INOTIFY_LIBS=""])]) fi WINE_NOTICE_WITH(inotify,[test "$ac_cv_header_sys_inotify_h" != "yes"], [libinotify ${notice_platform}development files not found (or too old), filesystem change notifications won't be supported.]) @@ -1533,7 +1533,7 @@ if test "x$with_dbus" != "xno" then WINE_PACKAGE_FLAGS(DBUS,[dbus-1],,,, [AC_CHECK_HEADER([dbus/dbus.h], - [WINE_CHECK_SONAME(dbus-1, dbus_connection_close,,[DBUS_CFLAGS=""],[$DBUS_LIBS])], + [WINE_CHECK_SONAME(dbus-1, dbus_connection_close,,[DBUS_CFLAGS=""])], [DBUS_CFLAGS=""])]) fi case $host_os in @@ -1549,9 +1549,8 @@ then [AC_CHECK_HEADER(gnutls/gnutls.h, [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h> #include <gnutls/crypto.h>]], [[static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;]])], - [WINE_CHECK_SONAME(gnutls,gnutls_global_init,,[GNUTLS_CFLAGS=""],[$GNUTLS_LIBS],[[libgnutls\\(-deb0\\)\\{0,1\\}]]) - WINE_CHECK_LIB_FUNCS(gnutls_cipher_init,[$GNUTLS_LIBS],, - [WINE_NOTICE([libgnutls ${notice_platform}development files too old, bcrypt encryption won't be supported.])])])], + [WINE_CHECK_SONAME(gnutls,gnutls_global_init,,[GNUTLS_CFLAGS=""],,[[libgnutls\\(-deb0\\)\\{0,1\\}]]) + AC_CHECK_FUNC(gnutls_cipher_init,,[WINE_NOTICE([libgnutls ${notice_platform}development files too old, bcrypt encryption won't be supported.])])])], [GNUTLS_CFLAGS=""])]) fi WINE_WARNING_WITH(gnutls,[test "x$ac_cv_lib_soname_gnutls" = "x"], @@ -1564,12 +1563,11 @@ then freebsd*) WINE_PACKAGE_FLAGS(HWLOC,[hwloc],,,, [AC_CHECK_HEADER([hwloc.h], - [AC_CHECK_LIB(hwloc,hwloc_topology_init, + [AC_CHECK_FUNC(hwloc_topology_init, [AC_DEFINE(HAVE_LIBHWLOC, 1, [Define to 1 if you have the 'hwloc' library (-lhwloc).])], - [HWLOC_LIBS=""], - [$HWLOC_LIBS])], + [HWLOC_LIBS=""])], [HWLOC_LIBS=""])]) - WINE_NOTICE_WITH(hwloc,[test "$ac_cv_lib_hwloc_hwloc_topology_init" != "yes"], + WINE_NOTICE_WITH(hwloc,[test "$ac_cv_func_hwloc_topology_init" != "yes"], [hwloc ${notice_platform}development files not found, detailed CPU info on FreeBSD won't be supported.]) ;; esac @@ -1580,9 +1578,9 @@ if test "x$with_sane" != "xno" then WINE_PACKAGE_FLAGS(SANE,[sane-backends],,[`${SANE_CONFIG:-sane-config} --cflags 2>/dev/null`],[`${SANE_CONFIG:-sane-config} --ldflags 2>/dev/null`], [AC_CHECK_HEADER(sane/sane.h, - [AC_CHECK_LIB(sane,sane_init,[:],,[$SANE_LIBS])])]) + [AC_CHECK_FUNC(sane_init,[:])])]) fi -WINE_NOTICE_WITH(sane,[test "$ac_cv_lib_sane_sane_init" != "yes"], +WINE_NOTICE_WITH(sane,[test "$ac_cv_func_sane_init" != "yes"], [libsane ${notice_platform}development files not found, scanners won't be supported.], [enable_sane_ds]) @@ -1591,10 +1589,10 @@ if test "x$with_usb" != "xno" then WINE_PACKAGE_FLAGS(USB,[libusb-1.0],[-lusb-1.0],,, [AC_CHECK_HEADER([libusb.h], - [AC_CHECK_LIB(usb-1.0,libusb_interrupt_event_handler,[:],[USB_LIBS=""],[$USB_LIBS])], + [AC_CHECK_FUNC(libusb_interrupt_event_handler,[:],[USB_LIBS=""])], [USB_LIBS=""])]) fi -WINE_NOTICE_WITH(usb,[test "$ac_cv_lib_usb_1_0_libusb_interrupt_event_handler" != "yes"], +WINE_NOTICE_WITH(usb,[test "$ac_cv_func_libusb_interrupt_event_handler" != "yes"], [libusb-1.0 ${notice_platform}development files not found (or too old), USB devices won't be supported.], [enable_wineusb_sys]) @@ -1612,21 +1610,20 @@ then WINE_PACKAGE_FLAGS(GPHOTO2,[libgphoto2],[-lgphoto2], [`${GPHOTO2_CONFIG:-gphoto2-config} --cflags 2>/dev/null`],[`${GPHOTO2_CONFIG:-gphoto2-config} --libs 2>/dev/null`], [AC_CHECK_HEADER(gphoto2-camera.h, - [AC_CHECK_LIB(gphoto2,gp_camera_new,[:],,[$GPHOTO2_LIBS])])]) + [AC_CHECK_FUNC(gp_camera_new,[:])])]) WINE_PACKAGE_FLAGS(GPHOTO2_PORT,[libgphoto2_port],[-lgphoto2_port], [`${GPHOTO2_PORT_CONFIG:-gphoto2-port-config} --cflags 2>/dev/null`], [`${GPHOTO2_PORT_CONFIG:-gphoto2-port-config} --libs 2>/dev/null`], [AC_CHECK_HEADER(gphoto2-port.h, - [AC_CHECK_LIB(gphoto2_port,gp_port_info_list_new, + [AC_CHECK_FUNC(gp_port_info_list_new, [AC_DEFINE(HAVE_GPHOTO2_PORT, 1, [Define if we have the libgphoto2_port development environment])], - [GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""], - [$GPHOTO2_PORT_LIBS])], + [GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""])], [GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""])]) fi -WINE_NOTICE_WITH(gphoto,[test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"], +WINE_NOTICE_WITH(gphoto,[test "$ac_cv_func_gp_camera_new" != "yes"], [libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.], [enable_gphoto2_ds]) -WINE_NOTICE_WITH(gphoto,[test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"], +WINE_NOTICE_WITH(gphoto,[test "$ac_cv_func_gp_port_info_list_new" != "yes"], [libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.]) @@ -1680,7 +1677,7 @@ then [AC_CHECK_HEADERS([ft2build.h]) if test "$ac_cv_header_ft2build_h" = "yes" then - WINE_CHECK_SONAME(freetype,FT_Init_FreeType,,[FREETYPE_LIBS=""],[$FREETYPE_LIBS]) + WINE_CHECK_SONAME(freetype,FT_Init_FreeType,,[FREETYPE_LIBS=""]) else FREETYPE_CFLAGS="" FREETYPE_LIBS="" @@ -1715,7 +1712,7 @@ if test "x$with_pulse" != "xno"; then WINE_PACKAGE_FLAGS(PULSE,[libpulse],,,, [AC_CHECK_HEADER([pulse/pulseaudio.h], - [AC_CHECK_LIB(pulse, pa_stream_is_corked,[:],[PULSE_LIBS=""],[$PULSE_LIBS])], + [AC_CHECK_FUNC(pa_stream_is_corked,[:],[PULSE_LIBS=""])], [PULSE_LIBS=""])]) fi WINE_NOTICE_WITH(pulse, [test -z "$PULSE_LIBS"], @@ -1729,13 +1726,13 @@ then [AC_CHECK_HEADERS([libavutil/avutil.h libavformat/avformat.h libavcodec/avcodec.h libavcodec/bsf.h]) if test "$ac_cv_header_libavutil_avutil_h" = "yes" -a "$ac_cv_header_libavformat_avformat_h" = "yes" -a "$ac_cv_header_libavcodec_avcodec_h" = "yes" then - AC_CHECK_LIB(avutil,av_log_set_callback, - [AC_CHECK_LIB(avformat,av_find_input_format, - [AC_CHECK_LIB(avcodec,avcodec_get_name, + AC_CHECK_FUNC(av_log_set_callback, + [AC_CHECK_FUNC(av_find_input_format, + [AC_CHECK_FUNC(avcodec_get_name, [AC_DEFINE(HAVE_FFMPEG, 1, [Define to 1 if you have the FFmpeg libraries.])], - [FFMPEG_LIBS=""],[$FFMPEG_LIBS])], - [FFMPEG_LIBS=""],[$FFMPEG_LIBS])], - [FFMPEG_LIBS=""],[$FFMPEG_LIBS]) + [FFMPEG_LIBS=""])], + [FFMPEG_LIBS=""])], + [FFMPEG_LIBS=""]) else FFMPEG_LIBS="" fi]) @@ -1752,13 +1749,13 @@ then AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gst/gst.h>]], [[static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;]])], [AC_MSG_RESULT([yes]) - AC_CHECK_LIB(gstreamer-1.0,gst_pad_new,[:],,[$GSTREAMER_LIBS])], + AC_CHECK_FUNC(gst_pad_new,[:])], [AC_MSG_RESULT([no]) ac_glib2_broken=yes enable_winegstreamer=${enable_winegstreamer:-no} WINE_NOTICE([glib-2.0 pkgconfig configuration is for the wrong architecture, winegstreamer won't be built.])])])]) fi -WINE_NOTICE_WITH(gstreamer,[test "x$ac_glib2_broken" != xyes -a "x$ac_cv_lib_gstreamer_1_0_gst_pad_new" != xyes], +WINE_NOTICE_WITH(gstreamer,[test "x$ac_glib2_broken" != xyes -a "x$ac_cv_func_gst_pad_new" != xyes], [gstreamer-1.0 base plugins ${notice_platform}development files not found, GStreamer won't be supported.], [enable_winegstreamer]) @@ -1767,7 +1764,7 @@ AC_SUBST(ALSA_LIBS,"") if test "x$with_alsa" != "xno" then WINE_PACKAGE_FLAGS(ALSA,[alsa],[-lasound],,, - [AC_CHECK_LIB(asound,snd_pcm_hw_params_get_access_mask,[:],[ALSA_LIBS=""],[$ALSA_LIBS])]) + [AC_CHECK_FUNC(snd_pcm_hw_params_get_access_mask,[:],[ALSA_LIBS=""])]) fi WINE_NOTICE_WITH(alsa,[test -z "$ALSA_LIBS"], [libasound ${notice_platform}development files not found, Alsa won't be supported.], @@ -1800,9 +1797,9 @@ if test "x$with_udev" != "xno" then WINE_PACKAGE_FLAGS(UDEV,[libudev],[-ludev],,, [AC_CHECK_HEADERS(libudev.h, - [AC_CHECK_LIB(udev,udev_new, - AC_DEFINE(HAVE_UDEV,1,[Define to 1 if you have the 'udev' library (-ludev).]), - [UDEV_LIBS=""],[$UDEV_LIBS])], + [AC_CHECK_FUNC(udev_new, + [AC_DEFINE(HAVE_UDEV,1,[Define to 1 if you have the 'udev' library (-ludev).])], + [UDEV_LIBS=""])], [UDEV_LIBS=""])]) fi WINE_NOTICE_WITH(udev,[test "x$UDEV_LIBS" = "x"], @@ -1813,7 +1810,7 @@ if test "x$with_sdl" != "xno" then WINE_PACKAGE_FLAGS(SDL2,[sdl2],[-lSDL2],,, [AC_CHECK_HEADERS([SDL.h], - [WINE_CHECK_SONAME(SDL2,SDL_Init,,,[$SDL2_LIBS],[[libSDL2-2.0*]])])]) + [WINE_CHECK_SONAME(SDL2,SDL_Init,,,,[[libSDL2-2.0*]])])]) fi WINE_NOTICE_WITH(sdl,[test "x$ac_cv_lib_soname_SDL2" = "x"], [libSDL2 ${notice_platform}development files not found, SDL2 won't be supported.]) @@ -1826,10 +1823,10 @@ then [AC_CHECK_HEADERS([capi20.h linux/capi.h],,,[#define __user]) if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes" then - AC_CHECK_LIB(capi20,capi20_register,[:],[CAPI20_LIBS=""],[$CAPI20_LIBS]) + AC_CHECK_FUNC(capi20_register,[:],[CAPI20_LIBS=""]) fi]) fi -WINE_NOTICE_WITH(capi,[test "x$ac_cv_lib_capi20_capi20_register" != xyes], +WINE_NOTICE_WITH(capi,[test "x$ac_cv_func_capi20_register" != xyes], [libcapi20 ${notice_platform}development files not found, ISDN won't be supported.], [enable_capi2032]) @@ -1842,7 +1839,7 @@ then [AC_CHECK_HEADERS(cups/cups.h cups/ppd.h) if test "$ac_cv_header_cups_cups_h" = "yes" then - WINE_CHECK_SONAME(cups,cupsGetDefault,,[CUPS_LIBS=""],[$CUPS_LIBS]) + WINE_CHECK_SONAME(cups,cupsGetDefault,,[CUPS_LIBS=""]) else CUPS_CFLAGS="" CUPS_LIBS="" @@ -1856,7 +1853,7 @@ if test "x$with_fontconfig" != "xno" then WINE_PACKAGE_FLAGS(FONTCONFIG,[fontconfig],,[$X_CFLAGS],[$X_LIBS], [AC_CHECK_HEADER([fontconfig/fontconfig.h], - [WINE_CHECK_SONAME(fontconfig,FcInit,,[FONTCONFIG_CFLAGS=""],[$FONTCONFIG_LIBS])], + [WINE_CHECK_SONAME(fontconfig,FcInit,,[FONTCONFIG_CFLAGS=""])], [FONTCONFIG_CFLAGS=""])]) fi WINE_NOTICE_WITH(fontconfig,[test "x$ac_cv_lib_soname_fontconfig" = "x"], @@ -1871,7 +1868,7 @@ then [AC_CHECK_HEADERS([krb5/krb5.h]) if test "$ac_cv_header_krb5_krb5_h" = "yes" then - WINE_CHECK_SONAME(krb5,krb5_is_config_principal,,[KRB5_CFLAGS=""],[$KRB5_LIBS]) + WINE_CHECK_SONAME(krb5,krb5_is_config_principal,,[KRB5_CFLAGS=""]) else KRB5_CFLAGS="" fi]) @@ -1889,7 +1886,7 @@ then [AC_CHECK_HEADERS([gssapi/gssapi.h gssapi/gssapi_ext.h]) if test "$ac_cv_header_gssapi_gssapi_h" = "yes" -a "$ac_cv_header_gssapi_gssapi_ext_h" = "yes" then - WINE_CHECK_SONAME(gssapi_krb5, gss_init_sec_context,,[GSSAPI_CFLAGS=""],[$GSSAPI_LIBS]) + WINE_CHECK_SONAME(gssapi_krb5, gss_init_sec_context,,[GSSAPI_CFLAGS=""]) else GSSAPI_CFLAGS="" fi]) @@ -1912,7 +1909,7 @@ dnl **** Check for libnetapi **** if test "x$with_netapi" != "xno" then WINE_PACKAGE_FLAGS(NETAPI,[netapi],,,, - [WINE_CHECK_SONAME(netapi,libnetapi_init,,[AC_DEFINE_UNQUOTED(SONAME_LIBNETAPI,["libnetapi.$LIBEXT"])],[$NETAPI_LIBS])]) + [WINE_CHECK_SONAME(netapi,libnetapi_init,,[AC_DEFINE_UNQUOTED(SONAME_LIBNETAPI,["libnetapi.$LIBEXT"])])]) fi WINE_NOTICE_WITH(netapi,[test "x$ac_cv_lib_soname_netapi" = "x"], [libnetapi not found, Samba NetAPI won't be supported.], diff --git a/include/config.h.in b/include/config.h.in index b36021609ca..831e35a23d9 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -93,9 +93,6 @@ /* Define to 1 if you have the <gettext-po.h> header file. */ #undef HAVE_GETTEXT_PO_H -/* Define to 1 if you have the 'gnutls_cipher_init' function. */ -#undef HAVE_GNUTLS_CIPHER_INIT - /* Define if we have the libgphoto2_port development environment */ #undef HAVE_GPHOTO2_PORT -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/11201