diff options
author | reid <unknown> | 1998-03-03 04:45:09 +0000 |
---|---|---|
committer | reid <unknown> | 1998-03-03 04:45:09 +0000 |
commit | a4de2383ef0f0e919724bed3ce665b5402c69fe0 (patch) | |
tree | 810465e012d5d50f37a63533e403aa69b09d9eb9 /aclocal.m4 | |
parent | 4650a8177855fab974062cbe8f17689c1f3c3e9c (diff) | |
download | haskell-a4de2383ef0f0e919724bed3ce665b5402c69fe0.tar.gz |
[project @ 1998-03-03 04:45:06 by reid]
Added more feature tests
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 9f526b0c9c..0535dc1072 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,9 +1,26 @@ -# $Id: aclocal.m4,v 1.18 1998/02/12 22:25:13 sof Exp $ +# $Id: aclocal.m4,v 1.19 1998/03/03 04:45:07 reid Exp $ # # Extra autoconf macros for the Glasgow fptools # # +# Are we running under the GNU libc? Need -D_GNU_SOURCE to get +# caddr_t and such. +# +AC_DEFUN(AC_GNU_LIBC, +[AC_CACHE_CHECK([GNU libc], ac_cv_gnu_libc, +[AC_EGREP_CPP(yes, +[#include <features.h> +#ifdef __GLIBC__ +yes +#endif +], ac_cv_gnu_libc=yes, ac_cv_gnu_libc=no)]) +if test "$ac_cv_gnu_libc" = yes; then + AC_DEFINE(_GNU_SOURCE) +fi +]) + +# # Has timezone the type time_t or long (HP-UX 10.20 apparently # has `long'..) # |