diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-08-19 12:10:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-08-19 12:10:50 +0000 |
commit | 72b1990a0c442377b94a5c4ac096d67a19d4927a (patch) | |
tree | b336434cff50325e03b306dbb2e2129600ad42a2 | |
parent | 02dc5b39a1e27c94cedb5a8db622788d8873df59 (diff) | |
download | libmicrohttpd-72b1990a0c442377b94a5c4ac096d67a19d4927a.tar.gz libmicrohttpd-72b1990a0c442377b94a5c4ac096d67a19d4927a.zip |
move plibc to prefer system-wide plibc.h over our version
-rw-r--r-- | configure.ac | 7 | ||||
-rw-r--r-- | src/daemon/Makefile.am | 5 | ||||
-rw-r--r-- | src/examples/Makefile.am | 5 | ||||
-rw-r--r-- | src/include/Makefile.am | 4 | ||||
-rw-r--r-- | src/include/platform.h | 2 | ||||
-rw-r--r-- | src/include/plibc/Makefile.am | 3 | ||||
-rw-r--r-- | src/include/plibc/plibc.h (renamed from src/include/plibc.h) | 0 | ||||
-rw-r--r-- | src/testcurl/Makefile.am | 5 | ||||
-rw-r--r-- | src/testcurl/https/Makefile.am | 5 | ||||
-rw-r--r-- | src/testzzuf/Makefile.am | 6 |
10 files changed, 36 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 362efbad..a98f7633 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -159,6 +159,10 @@ AC_CHECK_HEADERS([fcntl.h math.h errno.h limits.h stdio.h locale.h sys/stat.h sy | |||
159 | # Check for optional headers | 159 | # Check for optional headers |
160 | AC_CHECK_HEADERS([sys/types.h sys/time.h sys/msg.h netdb.h netinet/in.h netinet/tcp.h time.h sys/socket.h sys/mman.h arpa/inet.h sys/select.h poll.h]) | 160 | AC_CHECK_HEADERS([sys/types.h sys/time.h sys/msg.h netdb.h netinet/in.h netinet/tcp.h time.h sys/socket.h sys/mman.h arpa/inet.h sys/select.h poll.h]) |
161 | 161 | ||
162 | # Check for plibc.h from system, if not found, use our own | ||
163 | AC_CHECK_HEADERS([plibc.h],our_private_plibc_h=0,our_private_plibc_h=1) | ||
164 | AM_CONDITIONAL(USE_PRIVATE_PLIBC_H, test x$our_private_plibc_h = x1) | ||
165 | |||
162 | AC_CHECK_FUNCS(memmem) | 166 | AC_CHECK_FUNCS(memmem) |
163 | 167 | ||
164 | # IPv6 | 168 | # IPv6 |
@@ -342,6 +346,7 @@ doc/Makefile | |||
342 | m4/Makefile | 346 | m4/Makefile |
343 | src/Makefile | 347 | src/Makefile |
344 | src/include/Makefile | 348 | src/include/Makefile |
349 | src/include/plibc/Makefile | ||
345 | src/daemon/Makefile | 350 | src/daemon/Makefile |
346 | src/examples/Makefile | 351 | src/examples/Makefile |
347 | src/testcurl/Makefile | 352 | src/testcurl/Makefile |
@@ -387,5 +392,3 @@ else | |||
387 | License : LGPL or eCos | 392 | License : LGPL or eCos |
388 | ]) | 393 | ]) |
389 | fi | 394 | fi |
390 | |||
391 | |||
diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am index 65e34abd..ac356cd7 100644 --- a/src/daemon/Makefile.am +++ b/src/daemon/Makefile.am | |||
@@ -1,4 +1,9 @@ | |||
1 | if USE_PRIVATE_PLIBC_H | ||
2 | PLIBC_INCLUDE = -I$(top_srcdir)/src/include/plibc | ||
3 | endif | ||
4 | |||
1 | AM_CPPFLAGS = \ | 5 | AM_CPPFLAGS = \ |
6 | $(PLIBC_INCLUDE) \ | ||
2 | -I$(top_srcdir)/src/include \ | 7 | -I$(top_srcdir)/src/include \ |
3 | -I$(top_srcdir)/src/daemon \ | 8 | -I$(top_srcdir)/src/daemon \ |
4 | @LIBGCRYPT_CFLAGS@ | 9 | @LIBGCRYPT_CFLAGS@ |
diff --git a/src/examples/Makefile.am b/src/examples/Makefile.am index ae577cec..439ec442 100644 --- a/src/examples/Makefile.am +++ b/src/examples/Makefile.am | |||
@@ -1,6 +1,11 @@ | |||
1 | SUBDIRS = . | 1 | SUBDIRS = . |
2 | 2 | ||
3 | if USE_PRIVATE_PLIBC_H | ||
4 | PLIBC_INCLUDE = -I$(top_srcdir)/src/include/plibc | ||
5 | endif | ||
6 | |||
3 | AM_CPPFLAGS = \ | 7 | AM_CPPFLAGS = \ |
8 | $(PLIBC_INCLUDE) \ | ||
4 | -I$(top_srcdir)/src/include \ | 9 | -I$(top_srcdir)/src/include \ |
5 | @LIBGCRYPT_CFLAGS@ | 10 | @LIBGCRYPT_CFLAGS@ |
6 | 11 | ||
diff --git a/src/include/Makefile.am b/src/include/Makefile.am index f76fe3b0..417d1f83 100644 --- a/src/include/Makefile.am +++ b/src/include/Makefile.am | |||
@@ -1,4 +1,4 @@ | |||
1 | SUBDIRS = . | 1 | SUBDIRS = plibc . |
2 | include_HEADERS = microhttpd.h | 2 | include_HEADERS = microhttpd.h |
3 | 3 | ||
4 | EXTRA_DIST = platform.h plibc.h | 4 | EXTRA_DIST = platform.h |
diff --git a/src/include/platform.h b/src/include/platform.h index 431ae480..93faf2fb 100644 --- a/src/include/platform.h +++ b/src/include/platform.h | |||
@@ -109,7 +109,7 @@ | |||
109 | #include <arpa/inet.h> | 109 | #include <arpa/inet.h> |
110 | #endif | 110 | #endif |
111 | 111 | ||
112 | #include "plibc.h" | 112 | #include <plibc.h> |
113 | 113 | ||
114 | 114 | ||
115 | #endif | 115 | #endif |
diff --git a/src/include/plibc/Makefile.am b/src/include/plibc/Makefile.am new file mode 100644 index 00000000..ecfd4c6a --- /dev/null +++ b/src/include/plibc/Makefile.am | |||
@@ -0,0 +1,3 @@ | |||
1 | SUBDIRS = . | ||
2 | |||
3 | EXTRA_DIST = plibc.h | ||
diff --git a/src/include/plibc.h b/src/include/plibc/plibc.h index a1d3b131..a1d3b131 100644 --- a/src/include/plibc.h +++ b/src/include/plibc/plibc.h | |||
diff --git a/src/testcurl/Makefile.am b/src/testcurl/Makefile.am index c7124a19..2435ec83 100644 --- a/src/testcurl/Makefile.am +++ b/src/testcurl/Makefile.am | |||
@@ -8,7 +8,12 @@ if ENABLE_HTTPS | |||
8 | SUBDIRS += https | 8 | SUBDIRS += https |
9 | endif | 9 | endif |
10 | 10 | ||
11 | if USE_PRIVATE_PLIBC_H | ||
12 | PLIBC_INCLUDE = -I$(top_srcdir)/src/include/plibc | ||
13 | endif | ||
14 | |||
11 | AM_CPPFLAGS = \ | 15 | AM_CPPFLAGS = \ |
16 | $(PLIBC_INCLUDE) \ | ||
12 | -I$(top_srcdir) \ | 17 | -I$(top_srcdir) \ |
13 | -I$(top_srcdir)/src/daemon \ | 18 | -I$(top_srcdir)/src/daemon \ |
14 | -I$(top_srcdir)/src/include \ | 19 | -I$(top_srcdir)/src/include \ |
diff --git a/src/testcurl/https/Makefile.am b/src/testcurl/https/Makefile.am index d43cfe13..4c6b742f 100644 --- a/src/testcurl/https/Makefile.am +++ b/src/testcurl/https/Makefile.am | |||
@@ -4,7 +4,12 @@ if USE_COVERAGE | |||
4 | AM_CFLAGS = --coverage | 4 | AM_CFLAGS = --coverage |
5 | endif | 5 | endif |
6 | 6 | ||
7 | if USE_PRIVATE_PLIBC_H | ||
8 | PLIBC_INCLUDE = -I$(top_srcdir)/src/include/plibc | ||
9 | endif | ||
10 | |||
7 | AM_CPPFLAGS = \ | 11 | AM_CPPFLAGS = \ |
12 | $(PLIBC_INCLUDE) \ | ||
8 | -I$(top_srcdir)/src/include \ | 13 | -I$(top_srcdir)/src/include \ |
9 | -I$(top_srcdir)/src/daemon \ | 14 | -I$(top_srcdir)/src/daemon \ |
10 | $(LIBCURL_CPPFLAGS) | 15 | $(LIBCURL_CPPFLAGS) |
diff --git a/src/testzzuf/Makefile.am b/src/testzzuf/Makefile.am index 42bc2fdc..a50c9e3a 100644 --- a/src/testzzuf/Makefile.am +++ b/src/testzzuf/Makefile.am | |||
@@ -4,7 +4,11 @@ if USE_COVERAGE | |||
4 | AM_CFLAGS = -fprofile-arcs -ftest-coverage | 4 | AM_CFLAGS = -fprofile-arcs -ftest-coverage |
5 | endif | 5 | endif |
6 | 6 | ||
7 | INCLUDES = -I$(top_srcdir)/src/include | 7 | if USE_PRIVATE_PLIBC_H |
8 | PLIBC_INCLUDE = -I$(top_srcdir)/src/include/plibc | ||
9 | endif | ||
10 | |||
11 | INCLUDES = $(PLIBC_INCLUDE) -I$(top_srcdir)/src/include | ||
8 | 12 | ||
9 | EXTRA_DIST = README socat.c | 13 | EXTRA_DIST = README socat.c |
10 | 14 | ||