From 46014f062a4963701631b77332adeabb67c09042 Mon Sep 17 00:00:00 2001 From: ross Date: Tue, 20 Sep 2005 22:54:33 +0000 Subject: [project @ 2005-09-20 22:54:33 by ross] make the unix package independent. --- configure.ac | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9a7932f..8fc7731 100644 --- a/configure.ac +++ b/configure.ac @@ -5,7 +5,19 @@ AC_CONFIG_SRCDIR([include/HsUnix.h]) AC_CONFIG_HEADERS([include/HsUnixConfig.h]) -AC_CHECK_FUNCS([getgrgid_r getgrnam_r getpwnam_r getpwuid_r getpwnam getpwuid lchown setenv unsetenv]) +# Is this a Unix system? +AC_CHECK_FUNC([creat], [BUILD_PACKAGE_BOOL=True], [BUILD_PACKAGE_BOOL=False]) +AC_SUBST([BUILD_PACKAGE_BOOL]) + +AC_C_CONST + +AC_CHECK_HEADERS([dirent.h fcntl.h grp.h limits.h pwd.h signal.h string.h]) +AC_CHECK_HEADERS([sys/resource.h sys/stat.h sys/times.h sys/time.h]) +AC_CHECK_HEADERS([sys/utsname.h sys/wait.h]) +AC_CHECK_HEADERS([termios.h time.h unistd.h utime.h]) + +AC_CHECK_FUNCS([getgrgid_r getgrnam_r getpwnam_r getpwuid_r getpwnam getpwuid]) +AC_CHECK_FUNCS([lchown setenv sysconf unsetenv]) AC_MSG_CHECKING([for _SC_GETGR_R_SIZE_MAX]) AC_EGREP_CPP(we_have_that_sysconf_thing, -- cgit v1.2.3