Commit Graph

7 Commits

Author SHA1 Message Date
Juan RP
33c1a33912 Make configure detect required libraries to link. 2011-01-14 00:30:49 +01:00
Juan RP
2206b27037 Added "--with-external-libfetch" to build against external libfetch. 2011-01-12 17:06:53 +01:00
Juan RP
cb8464bdc6 configure: respect CFLAGS/LDFLAGS passed via env. 2011-01-11 15:04:23 +01:00
Juan RP
cdecb7f793 configure: also check if compiler supports _FORTIFY_SOURCE=2. 2010-12-24 02:36:16 +01:00
Juan RP
8013448097 configure: fix a typo that broke strlcat test. Found by Min Sik Kim reported in issue 2. 2010-12-10 16:25:28 +01:00
Juan RP
992583311b configure: don't use -fPIE and --param ssp-buffer-size if CC != gcc. 2010-10-27 00:19:02 +02:00
Juan RP
f888b582f9 Added a configure script to emulate GNU autoconf and related changes.
Changes included in this set:

 * Added strlcat() and strlcpy() from OpenBSD, always use them if the
   system does not have them built in.
 * Changed an array of PATH_MAX size allocated in the stack, to a dynamically
   allocated buffer from heap. This should reduce memory usage a bit.
 * Simplify code that implemented a homegrown realpath(3) implementation,
   simply use realpath(3).
 * If compiler supports -fstack-protector, build all code with
   -D_FORTIFY_SOURCE=2 and --param ssp-buffer-size=1 so that all
   buffers are protected.
2010-05-19 22:38:27 +02:00