X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.ac;h=3d05a0f33a91359a63107b9d167061328a62c206;hb=db286afd553884c362399042d00ee08656adafce;hp=f2773672896f209c4af41e8cc45e66eb8d0861c8;hpb=13346da217137e4efb6cf14657960c75a23251ad;p=ghc-hetmet.git diff --git a/configure.ac b/configure.ac index f277367..3d05a0f 100644 --- a/configure.ac +++ b/configure.ac @@ -780,8 +780,11 @@ dnl Keep that check as early as possible. dnl as we need to know whether we need libm dnl for math functions or not dnl (see http://hackage.haskell.org/trac/ghc/ticket/3730) -AC_SEARCH_LIBS(atan, m, - [AC_DEFINE([HAVE_LIBM], [1], [Define to 1 if you need to link with libm])]) +AC_CHECK_LIB(m, atan, HaveLibM=YES, HaveLibM=NO) +if test $HaveLibM = YES +then + AC_DEFINE([HAVE_LIBM], [1], [Define to 1 if you need to link with libm]) +fi dnl ** check whether this machine has BFD and liberty installed (used for debugging) dnl the order of these tests matters: bfd needs liberty @@ -875,6 +878,10 @@ AC_TRY_LINK_FUNC(printf\$LDBLStub, [Define to 1 if we have printf$LDBLStub (Apple Mac OS >= 10.4, PPC).]) ]) +dnl ** check for eventfd which is needed by the I/O manager +AC_CHECK_HEADERS([sys/eventfd.h]) +AC_CHECK_FUNCS([eventfd]) + # test for GTK+ AC_PATH_PROGS([GTK_CONFIG], [pkg-config]) if test -n "$GTK_CONFIG"; then