X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.ac;h=7f25e17c6039b3c24f528b85de9d42172df454b5;hb=dc5fd216ed81e3d4b1a381f56e618ccc42867598;hp=be50d7001bf83d81d72bc1348e2785d74c5078b6;hpb=d5893dc5565da3dfa0e398cdcf7dd888200eb009;p=haskell-directory.git diff --git a/configure.ac b/configure.ac index be50d70..7f25e17 100644 --- a/configure.ac +++ b/configure.ac @@ -8,8 +8,17 @@ AC_CONFIG_HEADERS([include/HsBaseConfig.h]) # do we have long longs? AC_CHECK_TYPES([long long]) +dnl ** Working vfork? +AC_FUNC_FORK + +dnl ** determine whether or not const works +AC_C_CONST + +dnl ** check for full ANSI header (.h) files +AC_HEADER_STDC + # check for specific header (.h) files that we are interested in -AC_CHECK_HEADERS([ctype.h fcntl.h signal.h sys/resource.h termios.h time.h]) +AC_CHECK_HEADERS([ctype.h dirent.h errno.h fcntl.h limits.h signal.h sys/resource.h sys/select.h sys/syscall.h sys/time.h sys/timeb.h sys/timers.h sys/times.h sys/utsname.h sys/wait.h termios.h time.h utime.h windows.h winsock.h]) # Enable large file support. Do this before testing the types ino_t, off_t, and # rlim_t, because it will affect the result of that test. @@ -26,9 +35,18 @@ dnl functions if it's really there. AC_CHECK_HEADERS([wctype.h], [AC_CHECK_FUNCS(iswspace)]) AC_CHECK_FUNCS([ftime gmtime_r localtime_r lstat readdir_r]) - +AC_CHECK_FUNCS([getclock getrusage gettimeofday setitimer times]) AC_CHECK_FUNCS([_chsize ftruncate]) +dnl ** check if it is safe to include both and +AC_HEADER_TIME + +dnl ** how do we get a timezone name, and UTC offset ? +AC_STRUCT_TIMEZONE + +dnl ** do we have altzone? +FP_DECL_ALTZONE + # map standard C types and ISO types to Haskell types FPTOOLS_CHECK_HTYPE(char) FPTOOLS_CHECK_HTYPE(signed char)