X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=aclocal.m4;h=16d8bb983d84f81501e98aab58215de8ac8064a3;hb=7a73aaf70fefb4b30c9159f5d15035f8e9c6e114;hp=57816262a68f0da793bd7751e823746fb7af5786;hpb=494eec658f906ee8c1cbf0e36ebd3c251fb2a77b;p=haskell-directory.git diff --git a/aclocal.m4 b/aclocal.m4 index 5781626..16d8bb9 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,3 +1,24 @@ +# FP_DECL_ALTZONE +# --------------- +# Defines HAVE_DECL_ALTZONE to 1 if declared, 0 otherwise. +# +# Used by base package. +AC_DEFUN([FP_DECL_ALTZONE], +[AC_REQUIRE([AC_HEADER_TIME])dnl +AC_CHECK_HEADERS([sys/time.h]) +AC_CHECK_DECLS([altzone], [], [],[#if TIME_WITH_SYS_TIME +# include +# include +#else +# if HAVE_SYS_TIME_H +# include +# else +# include +# endif +#endif]) +])# FP_DECL_ALTZONE + + # FP_COMPUTE_INT(EXPRESSION, VARIABLE, INCLUDES, IF-FAILS) # -------------------------------------------------------- # Assign VARIABLE the value of the compile-time EXPRESSION using INCLUDES for @@ -105,6 +126,14 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include # include #endif +#if HAVE_INTTYPES_H +# include +#else +# if HAVE_STDINT_H +# include +# endif +#endif + #if defined(HAVE_GL_GL_H) # include #elif defined(HAVE_OPENGL_GL_H) @@ -145,8 +174,8 @@ main() { exit(0); }]])],[AC_CV_NAME=`cat conftestval`], [ifelse([$2], , [AC_CV_NAME=NotReallyAType; AC_CV_NAME_supported=no], [AC_CV_NAME=$2])], -[ifelse([$3], , [AC_CV_NAME=NotReallyATypeCross; AC_CV_NAME_supported=no], [AC_CV_NAME=$3])])]) dnl -CPPFLAGS="$fp_check_htype_save_cppflags" +[ifelse([$3], , [AC_CV_NAME=NotReallyATypeCross; AC_CV_NAME_supported=no], [AC_CV_NAME=$3])]) +CPPFLAGS="$fp_check_htype_save_cppflags"]) dnl if test "$AC_CV_NAME_supported" = yes; then AC_MSG_RESULT($AC_CV_NAME) AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME, [Define to Haskell type for $1])