1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

detecting nanosleep

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3090 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2001-11-23 18:25:09 +00:00
parent 8afad12f8d
commit 1393c53eb4

22
configure vendored
View File

@ -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