summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-23 18:25:09 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-23 18:25:09 +0000
commit1393c53eb48a695b3dc2c803fa317104edbe1fa7 (patch)
tree1d0bc2235814d26b27de211b4a2304525560f5b9 /configure
parent8afad12f8d53ddc6a4e544647d13abe0d68047d1 (diff)
downloadmpv-1393c53eb48a695b3dc2c803fa317104edbe1fa7.tar.bz2
mpv-1393c53eb48a695b3dc2c803fa317104edbe1fa7.tar.xz
detecting nanosleep
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3090 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure b/configure
index d866e130d0..ce70b2ea9b 100755
--- a/configure
+++ b/configure
@@ -309,6 +309,9 @@ fi
# gcc-3.0 merges optimizations coming from egcs, pgcc, agcc, ...
if test "$_skip_cc_check" != yes ; then
echocheck "$_cc version"
+ # also check for name (the version checking is only for _gcc_ up for now)
+ # FIXME implement this in ver. check.
+ cc_name=`$_cc -v 2>&1 | tail -n 1 | cut -d ' ' -f 1`
cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'`
case $cc_version in
'')
@@ -998,6 +1001,22 @@ fi
echores "$_posix4"
+echocheck "nanosleep"
+# also check for nanosleep
+cat > $TMPC << EOF
+#include <time.h>
+int main(void) { (void) nanosleep(0, 0); return 0; }
+EOF
+_nanosleep=no
+cc_check $_ld_arch && _nanosleep=yes
+if test "$_nanosleep" = yes ; then
+ _def_nanosleep='#define HAVE_NANOSLEEP 1'
+else
+ _def_nanosleep='#undef HAVE_NANOSLEEP'
+fi
+echores "$_nanosleep"
+
+
echocheck "socklib"
# for Solaris (socket stuff is in -lsocket, gethostbyname and friends in -lnsl):
cat > $TMPC << EOF
@@ -2637,6 +2656,9 @@ $_def_linux
**
*---------------------------------------------------------------------------*/
+/* nanosleep support */
+$_def_nanosleep
+
/* termcap flag for getch2.c */
$_def_termcap