[Mplayer-cvslog] CVS: main configure,1.292,1.293

Alex Beregszaszi alex at mplayer.dev.hu
Fri Nov 23 19:25:18 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv19264

Modified Files:
	configure 
Log Message:
detecting nanosleep

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.292
retrieving revision 1.293
diff -u -r1.292 -r1.293
--- configure	23 Nov 2001 16:34:04 -0000	1.292
+++ configure	23 Nov 2001 18:25:09 -0000	1.293
@@ -309,6 +309,9 @@
 # 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 @@
 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
@@ -2636,6 +2655,9 @@
 **       See ./configure --help for details.
 **
 *---------------------------------------------------------------------------*/
+
+/* nanosleep support */
+$_def_nanosleep
 
 /* termcap flag for getch2.c */
 $_def_termcap




More information about the MPlayer-cvslog mailing list