aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-02-23 01:56:08 +0000
committerDiego Biurrun <diego@biurrun.de>2009-02-23 01:56:08 +0000
commit75ecf1490093f391275f86b277bf3bc7eed84b8a (patch)
tree1d4d4ed58d1c87c945ecd5d1dcca365f7c04fd47 /configure
parentf67f485b365b744d2ae669fd51aff6b7aa7472a6 (diff)
downloadffmpeg-75ecf1490093f391275f86b277bf3bc7eed84b8a.tar.gz
Check if -lrt is required for nanosleep, as is the case on Solaris.
inspired by a patch from Fabian Groffen, grobian gentoo org Originally committed as revision 17537 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index 42d01b1204..a8d094f40d 100755
--- a/configure
+++ b/configure
@@ -1900,6 +1900,9 @@ elif check_func dlopen -ldl; then
ldl=-ldl
fi
+# Solaris has nanosleep in -lrt, OpenSolaris no longer needs that
+check_func nanosleep || { check_func nanosleep -lrt && add_extralibs -lrt; }
+
check_func fork
check_func gethrtime
check_func getrusage