aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ac
Commit message (Collapse)AuthorAge
* Update configure.acGravatar Moritz Angermann2017-05-11
| | | Add Comment
* Android doesn’t have mkstempsGravatar Moritz Angermann2017-05-11
| | | | | | | | | | | | | However the check similarly to tell and seekdir succeeds. However we will generate the following error down the line: ``` /var/folders/fv/xqjrpfj516n5xq_m_ljpsjx00000gn/T/ghc13524_0/ghc_2.c:11:104: error: warning: implicit declaration of function 'mkstemps' is invalid in C99 [-Wimplicit-function-declaration] | 11 | HsInt32 ghczuwrapperZC1ZCunixzm2zi7zi2zi1ZCSystemziPosixziTempZCmkstemps(void* a1, HsInt32 a2) {return mkstemps(a1, a2);} | ^ HsInt32 ghczuwrapperZC1ZCunixzm2zi7zi2zi1ZCSystemziPosixziTempZCmkstemps(void* a1, HsInt32 a2) {return mkstemps(a1, a2);} ^ ```
* Android doesn’t have telldir/seekdir in bionicGravatar Moritz Angermann2017-03-20
| | | | | | | | | | The isse here is that while we try to use `AC_CHECK_FUNCS`, this will generate test code that tries to link an object and check for linking errors. However GNU gold at least version (binutils-2.25-0666073 2.25.51.20141117) 1.11, considers seekdir/telldir as part of the default libs. Thus we would actually want to pass `-nodefaultlibs` to the linker. Doing so, would result in erros due to not finding `-ldl`. Fixes #91
* Have Autoconf test for _NSGetEnviron presenceGravatar Herbert Valerio Riedel2016-01-31
|
* Provide execvpe prototype if missingGravatar Herbert Valerio Riedel2016-01-31
|
* Don't assume `tcdrain` and `ctermid` exist alwaysGravatar Herbert Valerio Riedel2016-01-30
| | | | | | This follows the scheme suggested in #24 This fixes #55
* Improve detection of `fdatasync(2)`Gravatar Herbert Valerio Riedel2015-12-16
| | | | | | | | This attempts a simpler and hopefully more robust test for `fdatasync(2)` See 94d8824bae10c9d91f56c1aee9c45a90136a1770 / #42 for the previous attempt. This hopefully addresses #52 in a better way than #53
* Remove obsolete `--with-cc` flag from configure.acGravatar Herbert Valerio Riedel2015-12-14
| | | | | This non-standard flag was used previously by GHC's build-system to set the `CC` variable. See https://phabricator.haskell.org/D1608 for more details
* Tweak use of AC_USE_SYSTEM_EXTENSIONSGravatar Herbert Valerio Riedel2015-12-06
| | | | | | | | | This is a follow-up tweak to 5740003e06f0c585460501514f3352f5e105c98c It's better to move AC_USE_SYSTEM_EXTENSIONS after `AC_PROG_CC` as this avoids triggering edundant tests
* Simplify code via AC_USE_SYSTEM_EXTENSIONSGravatar Herbert Valerio Riedel2015-12-03
| | | | | `AC_USE_SYSTEM_EXTENSIONS` takes care of defining feature_test_macros(7) thereby allowing us to remove a few manual `#define`s
* Adds a more comprehensive check for fdatasyncGravatar Elliot Robinson2015-03-08
| | | | | Some versions of OS X have fdatasync in the headers but don't include implementations in the standard library. This leads to a compile failure in configure.ac when using AC_CHECK_FUNCS. This change explicitly attempts to compile a file containing a call to fdatasync and properly sets the AC_CHECK_FUNCS flags depending on the result of compilation.
* Fix SIGINFO and SIGWINCH.Gravatar Erik de Castro Lopo2014-12-19
| | | | | | | | | | | | It seems these two signals have not been working since at least 2009. Detection of these signals seems to have never been added to the configure.ac script and the code guarded by #ifdef then bit-rotted (the idiom used to handle these signals seems to have been abandoned for something simpler/better in 2009). This fix simply handles these signals the same way the other signals are handled in System/Posix/Signals.hsc. Closes #30 and #31
* Wrap posix_fadvise(2) and posix_fallocate(2)Gravatar Herbert Valerio Riedel2014-12-15
| | | | | | | | | | | | This adds two new functions in `System.Posix.Unistd` - `fileAdvise` (aka `posix_fadvise(2)`), and - `fileAllocate` (aka `posix_fallocate(2)`) This is based in part on #7 and has been heavily refactored from its original patch submission by Ricardo Catalinas Jiménez. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Wrap fsync(2) and fdatasync(2)Gravatar Herbert Valerio Riedel2014-12-07
| | | | | | | | | | | | | | This adds two new functions in `System.Posix.Unistd` - `fileSynchronise` (aka `fsync(2)`), and - `fileSynchroniseDataOnly` (aka `fdatasync(2)`) This is based on part of #7 and has been heavily refactored from its original patch submission by Ricardo Catalinas Jiménez. This also bumps version to 2.7.1.0 as a minor version bump is now needed. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Refactor local `execvpe(3)` implementationGravatar Herbert Valerio Riedel2014-12-06
| | | | | | | | | | | | | | | | | The previous code was prone to conflicts with when the platform happens to expose a `execvpe(3)` implementation in its libc. This commit renames the internal implementation to `__hsunix_execvpe` as well as adding an autoconf-detection for the presence of `execvpe(3)`, in which case `__hsunix_execvpe()` forwards the call to `execvpe(3)`. Moreover, the code has been cleaned up to remove likely bitrotted CPP conditionals. This should fix #22 (This also partially addresses #11 on platforms which have a libc-provided `execvpe(3)`)
* Do not blindly add libdl to extra librariesGravatar Igor Pashev2014-12-06
| | | | | | | | On some systems dlopen() is available without libdl (illumos, solaris). Sometimes libdl.so cannot be loaded by runtime linker, see https://ghc.haskell.org/trac/ghc/ticket/8713 Closes #8
* Use CAPI FFI imports for `truncate`Gravatar Herbert Valerio Riedel2014-10-18
| | | | | This makes sure we pick up the LFS version of `truncate` in case `off_t` is affected by CPP defines such as `_FILE_OFFSET_BITS`.
* Deprecate function `haveRtldLocal`Gravatar Thomas Miedema2014-07-04
| | | | | | | | The function haveRtldLocal was introduced for compatibility with Cygwin on Mar 28 2002 in GHC commit 4740cf56c774b92e02d31b4666158d70c2e85a8f. According to https://cygwin.com/viewvc/src/winsup/cygwin/include/dlfcn.h RTLD_LOCAL has been available on Cygwin since Revision 1.4 (August 9 2010).
* Remove unnecessary checks for RTLD_NOW and RTLD_GLOBALGravatar Thomas Miedema2014-07-04
| | | | | | | | | | | These checks were introduced for OpenBSD on July 16 2002 in GHC commit 03e9edb3094fd3bb38ed886b96ee9f61f39e9b53. According to http://www.openbsd.org/cgi-bin/cvsweb/src/include/dlfcn.h RTLD_NOW, RTLD_GLOBAL and RTLD_LOCAL have been available on OpenBSD since Revision 1.8 (September 2 2003). This is merely code cleanup.
* Add haddock comments on RTLD_NEXT and RTLD_DEFAULTGravatar Thomas Miedema2014-07-04
| | | | Related ticket: #8902.
* Fix library detection of shm* on openSUSE (#8350)Gravatar Peter Trommler2013-09-29
| | | | | | | | | Use the new AC_SERACH_LIBS to check if rt is needed for shm_open and shm_unlink. This sets LIBS and so the shm_* functions can be found if librt is indeed required. Passing -lrt through CFLAGS is not portable. Signed-off-by: Austin Seipp <austin@well-typed.com>
* Move AC_SUBST([EXTRA_LIBS]) later in configure.acGravatar Ian Lynagh2013-05-21
| | | | | I don't think that it matters, but putting it after all the places that alter EXTRA_LIBS is a little nicer.
* cope with missing telldir/seekdir (for Android)Gravatar Simon Marlow2013-01-30
| | | | Submitted by: Nathan Hüsken <nathan.huesken@posteo.de>
* cope with missing pw_gecos (for Android)Gravatar Simon Marlow2013-01-30
| | | | Submitted by: Nathan Hüsken <nathan.huesken@posteo.de>
* Add functions for setting file times with high resolutionGravatar Marios Titas2012-09-03
|
* Extract high resolution timestamps from FileStatusGravatar Marios Titas2012-07-17
| | | | Signed-off-by: Paolo Capriotti <p.capriotti@gmail.com>
* Add workaround for systems without clearenv.Gravatar Paolo Capriotti2012-04-04
|
* System.Posix.Temp complianceGravatar Deian Stefan2012-01-09
|
* prefer bsd/libutil.h (if available) to libutil.hGravatar Ross Paterson2011-06-29
| | | | libutil.h is deprecated in recent releases of libbsd
* Proper autoconf test for sem_close's library; fixes trac #4523Gravatar Ian Lynagh2011-01-01
|
* accept --with-cc to set the path to gcc (#2966)Gravatar Simon Marlow2010-01-27
|
* Don't use absolute paths to headers (#3728)Gravatar Simon Marlow2009-12-21
|
* Move directory stuff from base to hereGravatar Simon Marlow2009-06-25
| | | | leaving out Windows-specific hacks
* rename cache variables to keep recent autoconfs happyGravatar Ross Paterson2009-06-16
|
* Add check for -lrt to get the shm* functions. Subst. in buildinfoGravatar Don Stewart2009-01-30
|
* fix pthread linkage problem for openbsdGravatar Matthias Kilian2008-11-29
| | | | | | This should make my openbsd build slave happy when SplitObjs=NO. May be useful for other BSDs and even Linux, regardless wether you need -pthread or -lpthread. Time will tell...
* Allow C's unsetenv to return either void or intGravatar Ian Lynagh2008-07-03
| | | | Fixes, and patch from donn in, trac #2352.
* add AC_SYS_LARGEFILE check to configure.acGravatar jeremy.shaw@linspireinc.com2008-02-13
| | | | | | | | | | | | | | | | | | As explained in this thread: http://www.haskell.org/pipermail/haskell-cafe/2008-February/039549.html getSymbolicLinkStatus (and possibly other functions) return completely bogus results. This is because hsc2hs returns the offsets for stat64, but the library is built such that it calls the 32 bit lstat call. I copied the AC_SYS_LARGEFILE from ghc's configure.ac. So, I believe the library should now properly autodetect whether your system has large file support and do the right thing more often. I suspect that this would still be buggy if ghc was built without large file support, but the library was built with it enabled. However, as long as AC_SYS_LARGEFILE returns the same results for 'ghc' and 'unix', things should be ok ?
* Add basic pseudoterminal support.Gravatar Bryan O'Sullivan2007-09-25
|
* check for shm_open/shm_unlink (for archs like OpenBSD without them)Gravatar Don Stewart2007-09-16
|
* get the SIG constants for ourselves, rather than relying on HsBaseConfig.hGravatar Ross Paterson2007-08-19
|
* FIX BUILD on OS X: Check for setitimerGravatar Roman Leshchinskiy2007-08-14
| | | | Fix suggested by Ian Lynagh
* Provide nanosleep if we have it, and use it to implement usleepGravatar Simon Marlow2007-03-02
| | | | Fixes #1156
* bump version to 2.0Gravatar Simon Marlow2006-08-31
|
* Added support for getpwent/getgrentGravatar John Goerzen2006-08-30
|
* change test for buildabilityGravatar Ross Paterson2006-08-19
| | | | | Checking for dlfcn.h instead of creat() should make the Cabal build fail more gracefully under MinGW.
* [project @ 2005-09-20 22:54:33 by ross]Gravatar ross2005-09-20
| | | | make the unix package independent.
* [project @ 2005-09-20 16:35:26 by ross]Gravatar ross2005-09-20
| | | | move RTLD_* tests down to unix package
* [project @ 2005-01-25 17:06:40 by ross]Gravatar ross2005-01-25
| | | | add Cabal package descriptions
* [project @ 2004-11-18 16:39:54 by stolz]Gravatar stolz2004-11-18
| | | | Push down more feature-tests