diff options
author | davilla <davilla@4pi.com> | 2012-04-04 14:32:28 -0400 |
---|---|---|
committer | davilla <davilla@4pi.com> | 2012-04-04 14:34:00 -0400 |
commit | c3c215550a7599590e699b55285285e47c2fbc6e (patch) | |
tree | 42ebb7105725dd4b20f0727001c01a7f41da903e /configure.in | |
parent | 28b186fd4621c0485608657892b7a3abcfe566ff (diff) |
Handle libdl only being needed on Linux for dlopen, thx abs0
Diffstat (limited to 'configure.in')
-rwxr-xr-x | configure.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 83f766d70c..0d80719f71 100755 --- a/configure.in +++ b/configure.in @@ -808,7 +808,9 @@ if test "$host_vendor" = "apple" ; then AC_DEFINE([HAVE_SDL],[1],["Define to 1 if using sdl"]) fi else - AC_CHECK_LIB([dl], [main],, AC_MSG_ERROR($missing_library)) + case $host_os in + linux*) AC_CHECK_LIB([dl], [main],, AC_MSG_ERROR($missing_library)) ;; + esac AC_CHECK_LIB([resolv], [main],, AC_MSG_ERROR($missing_library)) AC_CHECK_LIB([jasper], [main],, AC_MSG_ERROR($missing_library)) # check for cximage AC_CHECK_LIB([rt], [clock_gettime],, AC_MSG_ERROR($missing_library)) |