+# search for pthread, required by all targets
+AC_SEARCH_LIBS([pthread_create],[pthread],,
+ AC_MSG_ERROR("required library 'pthread' is missing"))
+
+# search for dlopen, required by all targets
+AC_SEARCH_LIBS([dlopen], [dl],
+ [test "$ac_cv_search_dlopen" = "none required" || LIBS_DL=$ac_cv_search_dlopen],
+ AC_MSG_ERROR("required library 'dl' is missing"))
+
+
+# platform specific libs, required by all targets
+case "${host}" in
+ *-*-linux*)
+ LIBS+=" -lrt"
+ ;;
+ *-apple-darwin*)
+ ;;
+ *-freebsd*)
+ ;;
+esac
+
+libs_client=$LIBS
+
+# search for udev and lockdev, only required by libCEC