diff options
author | Cory Fields <theuni-nospam-@xbmc.org> | 2013-01-21 02:56:56 -0500 |
---|---|---|
committer | Cory Fields <theuni-nospam-@xbmc.org> | 2013-03-11 00:23:14 -0400 |
commit | 91e04e48051e73074bf5e51124439c7945106589 (patch) | |
tree | 75c64513bb5757b555ac51713278ca5e2a08de30 /configure.in | |
parent | 173007b843c88c320d45dad745deb102cd8bbc28 (diff) |
depends: clean up the built-in mess and test properly instead
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/configure.in b/configure.in index 2e6a42c23f..a61204a859 100644 --- a/configure.in +++ b/configure.in @@ -1073,29 +1073,23 @@ AS_CASE([x$use_libbluray], ] ) +#Check to see if libs are needed for functions that are often built-in to libc +AC_SEARCH_LIBS([iconv_open],iconv,,AC_SEARCH_LIBS([libiconv_open],iconv,,AC_MSG_ERROR($missing_library))) +AC_SEARCH_LIBS([dlopen],dl) +AC_SEARCH_LIBS([clock_gettime],rt) +AC_SEARCH_LIBS([dn_expand], resolv) +AC_SEARCH_LIBS([_dn_expand], resolv) +AC_SEARCH_LIBS([__dn_expand],resolv) + # platform dependent libraries if test "$host_vendor" = "apple" ; then - AC_CHECK_LIB([iconv], [main],, AC_MSG_ERROR($missing_library)) if test "$use_arch" != "arm"; then AC_CHECK_LIB([SDL], [main],, AC_MSG_ERROR($missing_library)) AC_DEFINE([HAVE_SDL],[1],["Define to 1 if using sdl"]) fi else - case $host_os in - linux*) AC_CHECK_LIB([dl], [main],, AC_MSG_ERROR($missing_library)) ;; - freebsd*) AC_CHECK_LIB([iconv], [main],, AC_MSG_ERROR($missing_library)) ;; - esac - case $host_os in - freebsd*) ;; - *) - if test "$target_platform" != "target_android" ; then - AC_CHECK_LIB([resolv], [main],, AC_MSG_ERROR($missing_library)) - fi - ;; - esac if test "$target_platform" != "target_android" ; then AC_CHECK_LIB([jasper], [main],, AC_MSG_ERROR($missing_library)) # check for cximage - AC_CHECK_LIB([rt], [clock_gettime],, AC_MSG_ERROR($missing_library)) fi if test "x$use_alsa" != "xno"; then PKG_CHECK_MODULES([ALSA], [alsa], |