X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=aclocal.m4;h=a75df17d5cdf85db6156e0327bee232feb6c7402;hb=73c2b1fb1f114982cf3ff2a02d6dc206593add75;hp=3a79ef8642839233185d691b98d7e6e31077360c;hpb=ea78cd04ded208a5833916d701d4471d2faae5cb;p=ghc-hetmet.git diff --git a/aclocal.m4 b/aclocal.m4 index 3a79ef8..a75df17 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,4 +1,4 @@ -dnl $Id: aclocal.m4,v 1.99 2002/04/10 09:41:16 simonmar Exp $ +dnl $Id: aclocal.m4,v 1.103 2002/05/31 21:12:28 sof Exp $ dnl dnl Extra autoconf macros for the Glasgow fptools dnl @@ -220,15 +220,6 @@ if test -d $srcdir/ghc -a ! -f $srcdir/ghc/compiler/parser/Parser.hs; then fi HappyVersion=$fptools_cv_happy_version; AC_SUBST(HappyVersion) - -# 1.9 and later is required, assume that we can use -# the "-agc" options. -HappyOpts="-agc" - -FPTOOLS_PROG_CHECK_VERSION([$fptools_cv_happy_version],-gt,[1.11], - [HappyOpts=-agcs]) - -AC_SUBST(HappyOpts) ]) dnl @@ -1263,3 +1254,32 @@ else $2=""; fi; ]) + +dnl +dnl Check to see whether 'struct msghdr' contains msg_control +dnl +AC_DEFUN(FPTOOLS_MSGHDR_MSG_CONTROL, +[AC_CACHE_CHECK([for msg_control in struct msghdr], fptools_cv_struct_msghdr_msg_control, +[AC_TRY_COMPILE([#include +#include ], [struct msghdr m; m.msg_control;], +fptools_cv_struct_msghdr_msg_control=yes, fptools_cv_struct_msghdr_msg_control=no)]) +if test $fptools_cv_struct_msghdr_msg_control = yes; then + AC_DEFINE(HAVE_MSGHDR_MSG_CONTROL) +fi +AC_SUBST(HAVE_MSGHDR_MSG_CONTROL)dnl +]) + +dnl +dnl Check to see whether 'struct msghdr' contains msg_accrights +dnl +AC_DEFUN(FPTOOLS_MSGHDR_MSG_ACCRIGHTS, +[AC_CACHE_CHECK([for msg_accrights in struct msghdr], fptools_cv_struct_msghdr_msg_accrights, +[AC_TRY_COMPILE([#include +#include ], [struct msghdr m; m.msg_accrights;], +fptools_cv_struct_msghdr_msg_accrights=yes, fptools_cv_struct_msghdr_msg_accrights=no)]) +if test $fptools_cv_struct_msghdr_msg_accrights = yes; then + AC_DEFINE(HAVE_MSGHDR_MSG_ACCRIGHTS) +fi +AC_SUBST(HAVE_MSGHDR_MSG_ACCRIGHTS)dnl +]) +