diff --git a/configure.ac b/configure.ac index ed617e7b..c4dd723a 100644 --- a/configure.ac +++ b/configure.ac @@ -326,18 +326,12 @@ AC_CHECK_LIB([freerdp-core], [freerdp_new], --------------------------------------------]) have_freerdp=no]) -# libfreerdp-channels (1.0) / libfreerdp-client (1.1) / libfreerdp-core (1.2+) -AC_SEARCH_LIBS([freerdp_channels_new], [freerdp-core freerdp-client], - [RDP_LIBS="$RDP_LIBS -lfreerdp-client"], - [AC_CHECK_LIB([freerdp-channels], [freerdp_channels_new], - [RDP_LIBS="$RDP_LIBS -lfreerdp-channels" - legacy_freerdp_extensions=yes], - [AC_MSG_WARN([ - -------------------------------------------- - Unable to find libfreerdp-client / libfreerdp-channels - RDP will be disabled. - --------------------------------------------]) - have_freerdp=no])]) +# libfreerdp-channels (1.0) / libfreerdp-client (1.1) +AC_CHECK_LIB([freerdp-client], [freerdp_channels_new], + [RDP_LIBS="$RDP_LIBS -lfreerdp-client"], + [AC_CHECK_LIB([freerdp-channels], [freerdp_channels_new], + [RDP_LIBS="$RDP_LIBS -lfreerdp-channels" + legacy_freerdp_extensions=yes])]) # libfreerdp-utils AC_CHECK_LIB([freerdp-utils], [svc_plugin_init], @@ -394,6 +388,11 @@ AC_CHECK_DECL([freerdp_register_addin_provider], [Whether freerdp_register_addin_provider() is defined])],, [#include ]) +AC_CHECK_DECL([freerdp_channels_global_init], + [AC_DEFINE([HAVE_FREERDP_CHANNELS_GLOBAL_INIT],, + [Whether freerdp_channels_global_init() is defined])],, + [#include ]) + # # FreeRDP: WinPR # @@ -506,11 +505,6 @@ if test "x${rdpsettings_fastpath}" = "xyes"; then [Whether the rdpSettings structure has FastPath settings]) fi -# Check if freerdp_channels_global_init exists -AC_SEARCH_LIBS([freerdp_channels_global_init], [freerdp-channels], - [AC_DEFINE([HAVE_FREERDP_CHANNELS_GLOBAL_INIT],, - [Wheter the freerdp_channels_global_init() is defined])],,) - # Check if the type CHANNEL_ENTRY_POINTS_FREERDP exists, if not define it to CHANNEL_ENTRY_POINTS_EX AC_CHECK_TYPE([CHANNEL_ENTRY_POINTS_FREERDP],, AC_DEFINE([CHANNEL_ENTRY_POINTS_FREERDP],[CHANNEL_ENTRY_POINTS_EX], [Type compatibility]),