config.h: don't include in git repository. We create and upload an example for the web anyway, if people really need it.
iscsi: use <sys/filio.h> on Solaris. Needed for FIONREAD.
configurator: define HAVE_CCAN. An interesting case came up with the tdb2 code in SAMBA recently. It's a public library, and it doesn't want to be dependent on CCAN, but the header uses cast and typesafe_cb for extra type safety. A good solution to this is to put dummy versions under !HAVE_CCAN. Of course, any CCAN config.h should define HAVE_CCAN.
Makefile, configurator: Add additional debug flags to CFLAGS Just adding `-g' to list of CFLAGS doesn't make gcc to generate debug information required for macro expansion during debugging. Replacing it with `-g3 -ggdb' rectifies this. (configurator.c commit folded by Rusty)
configurator: HAVE_SECTION_START_STOP
configurator: HAVE_PROC_SELF_MAPS
configurator: HAVE_BACKTRACE
tools: don't unnecessarily redefine _GNU_SOURCE in config.h Makes it easier to reuse this code in other projects.
configurator: HAVE_FILE_OFFSET_BITS Defines whether it's useful to do #define _FILE_OFFSET_BITS 64 to get a larger off_t.
configurator: Remove the now unneeded test for nested functions.
configurator: Add test for glibc's qsort_r.
configure.h: HAVE_ISBLANK This isn't on RHEL4, for example: isascii() and isblank() are not in C89.
Add configurator test for memmem() memmem(), which searches for one bytestring in a longer bytestring is one of those functions that should be standard, but isn't. This patch adds a ccan configurator test for the function so that modules can use or replace it as necessary. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan: add -Wpointer-arith and -Wwrite-strings by default Wpointer-arith is useful for spotting GCC-isms which do arithmetic on void pointers. Wwrite-strings treats string constants as const char *, which is sane (but bad for legacy code).
configurator: HAVE_STACK_GROWS_UPWARDS
tools: fix ctype.h and string usage. Enable CCAN_STR_DEBUG in the default flags, so our tools get checked, and fix up the resulting errors.
config.h: HAVE_ASPRINTF
config.h: define _GNU_SOURCE Otherwise we don't get goodies like asprintf, and 64-bit offsets. Should be a harmless-define on non-glibc systems.
config.h: idempotent-wrap the generated config.h
compiler: NORETURN