[commit: ghc] master: Remove the HAVE_SETITIMER_VIRTUAL configure test (e407935)

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/e40793555656552fe5ee6a6227ab60f379bea4b8

>---------------------------------------------------------------

commit e40793555656552fe5ee6a6227ab60f379bea4b8
Author: Ian Lynagh <[email protected]>
Date:   Tue Nov 13 21:43:18 2012 +0000

    Remove the HAVE_SETITIMER_VIRTUAL configure test
    
    We no longer actually use ITIMER_VIRTUAL anyway

>---------------------------------------------------------------

 configure.ac |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/configure.ac b/configure.ac
index 4ca64f2..5c887f6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -779,20 +779,6 @@ dnl ** check for more functions
 dnl ** The following have been verified to be used in ghc/, but might be used somewhere else, too.
 AC_CHECK_FUNCS([getclock getrusage gettimeofday setitimer siginterrupt sysconf times ctime_r sched_setaffinity setlocale])
 
-if test "$cross_compiling" = "no" ; then
-    AC_TRY_RUN([
-    #include <sys/types.h>
-    #include <sys/time.h>
-    int main(void) {
-      struct itimerval tval;
-      tval.it_value.tv_sec = 1;
-      tval.it_value.tv_usec = 0;
-      tval.it_interval = tval.it_value;
-      return setitimer(ITIMER_VIRTUAL, &tval, (void*)0) != 0;
-    }
-    ],[AC_DEFINE([HAVE_SETITIMER_VIRTUAL], [1], [Define to 1 if setitimer accepts ITIMER_VIRTUAL, 0 else.])])
-fi
-
 dnl ** On OS X 10.4 (at least), time.h doesn't declare ctime_r if
 dnl ** _POSIX_C_SOURCE is defined
 AC_CHECK_DECLS([ctime_r], , ,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.