diff options
author | ross <unknown> | 2005-09-20 22:54:33 +0000 |
---|---|---|
committer | ross <unknown> | 2005-09-20 22:54:33 +0000 |
commit | 46014f062a4963701631b77332adeabb67c09042 (patch) | |
tree | afaec3fddc4209c5abf081b9dca7caa35f633131 /configure.ac | |
parent | 9e07e664ff3381521b8e410e0dab9f7d742e2559 (diff) |
[project @ 2005-09-20 22:54:33 by ross]
make the unix package independent.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 13 insertions, 1 deletions
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, |