[commit: ghc] master: configure.ac: drop unused VOID_INT_SIGNALS (7479df6)

git at git.haskell.org git at git.haskell.org
Tue Aug 5 15:57:41 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/7479df6af5dd7bc72158d7617dab5c5f139a87fb/ghc

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

commit 7479df6af5dd7bc72158d7617dab5c5f139a87fb
Author: Sergei Trofimovich <slyfox at gentoo.org>
Date:   Tue Aug 5 17:44:49 2014 +0300

    configure.ac: drop unused VOID_INT_SIGNALS
    
    Summary:
    Another macro borrowed from hugs, gone aways in
    commit 528a7d2cf1c90408d60028bb1fec85124d539476
    
    Signed-off-by: Sergei Trofimovich <slyfox at gentoo.org>
    
    Test Plan: build-tested
    
    Reviewers: simonmar, austin, ezyang
    
    Reviewed By: austin, ezyang
    
    Subscribers: phaskell, simonmar, relrod, ezyang, carter
    
    Differential Revision: https://phabricator.haskell.org/D118


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

7479df6af5dd7bc72158d7617dab5c5f139a87fb
 configure.ac | 26 +-------------------------
 1 file changed, 1 insertion(+), 25 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5fc5733..d952428 100644
--- a/configure.ac
+++ b/configure.ac
@@ -228,7 +228,7 @@ case $host in
      # here we go with the test
      MINOR=`uname -r|cut -d '.' -f 2-`
      if test "$MINOR" -lt "11"; then
-     	SOLARIS_BROKEN_SHLD=YES
+         SOLARIS_BROKEN_SHLD=YES
      fi
      ;;
 esac
@@ -818,30 +818,6 @@ FP_CHECK_FUNC([WinExec],
 FP_CHECK_FUNC([GetModuleFileName],
   [@%:@include <windows.h>], [GetModuleFileName((HMODULE)0,(LPTSTR)0,0)])
 
-dnl ** check return type of signal handlers
-dnl Foo: assumes we can use prototypes.
-dnl On BCC, signal handlers have type "int(void)", elsewhere its "void(int)".
-dnl AC_CACHE_CHECK([type of signal handlers], ac_cv_type_signal_handler,
-dnl [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
-dnl #include <signal.h>
-dnl #ifdef signal
-dnl #undef signal
-dnl #endif
-dnl void (*signal (int, void (*)(int)))(int);
-dnl ]],
-dnl [[int i;]])],
-dnl [ac_cv_type_signal_handler=void_int],
-dnl [ac_cv_type_signal_handler=int_void])])
-dnl if test "$ac_cv_type_signal_handler" = void_int; then
-dnl AC_DEFINE(VOID_INT_SIGNALS)
-dnl fi
-
-dnl On BCC, signal handlers have type "int(void)", elsewhere its "void(int)".
-AC_TYPE_SIGNAL
-if test "$ac_cv_type_signal" = void; then
-  AC_DEFINE([VOID_INT_SIGNALS], [1], [Define to 1 if signal handlers have type void (*)(int). Otherwise, they're assumed to have type int (*)(void).])
-fi
-
 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])



More information about the ghc-commits mailing list