@@ -23,7 +23,7 @@
AC_PREREQ(2.57)
AC_INIT([libmicrohttpd], [0.3.1],[[email protected]])
AM_INIT_AUTOMAKE([libmicrohttpd], [0.3.1])
-AM_CONFIG_HEADER([config.h])
+AM_CONFIG_HEADER([MHD_config.h])
AH_TOP([#define _GNU_SOURCE 1])
@@ -24,6 +24,7 @@
* @author Daniel Pittman
* @author Christian Grothoff
*/
+#include "platform.h"
#include "internal.h"
#include "response.h"
#include "connection.h"
@@ -411,8 +412,10 @@ MHD_accept_connection (struct MHD_Daemon *daemon)
}
return MHD_NO;
+#if HAVE_MESSAGES
#if DEBUG_CONNECT
MHD_DLOG (daemon, "Accepted connection on socket %d\n", s);
+#endif
#endif
have = 0;
if ((daemon->per_ip_connection_limit != 0) && (daemon->max_connections > 0))
@@ -15,7 +15,7 @@
with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
-#include <config.h>
+#include "MHD_config.h"
/* Specification. */
#include "vasnprintf.h"
#ifdef IN_LIBASPRINTF
@@ -94,7 +94,7 @@
#include "des.h"
@@ -20,7 +20,7 @@
/* Note: This file is only built if GC uses internal functions. */
/* Get prototype. */
#include "gc.h"
/* Note: This file is only built if GC uses Libgcrypt. */
-#include "config.h"
@@ -18,7 +18,7 @@
/* Written by Simon Josefsson. The comments in this file are taken
from RFC 2898. */
@@ -17,7 +17,7 @@
/* Written by Simon Josefsson. */
#include "hmac.h"
/* Written by Ulrich Drepper <[email protected]>, 1995. */
#include "md5.h"
@@ -16,7 +16,7 @@
#ifndef _LIBC
-# include <config.h>
#include <stddef.h>
@@ -3,7 +3,7 @@
In the public domain.
By David MacKenzie <[email protected]>. */
/* Written by Simon Josefsson. The interface was inspired by memxor
in Niels Möller's Nettle. */
#include "memxor.h"
@@ -21,7 +21,7 @@
STATIC Set to 'static' to declare the function static. */
#ifndef PRINTF_FETCHARGS
@@ -29,7 +29,7 @@
ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. */
#ifndef PRINTF_PARSE
along with this program; if not, write to the Free Software Foundation,
#include "read-file.h"
/* written by Jim Meyering and Bruno Haible */
/* Only the AC_FUNC_REALLOC macro defines 'realloc' already in config.h. */
#ifdef realloc
@@ -25,7 +25,7 @@
* http://www.iaik.tu-graz.ac.at/research/krypto/AES/old/~rijmen/rijndael/rijndael-fst-3.0.zip
/**
* rijndael-alg-fst.c
* rijndael-api-fst.c
Robert Klep <[email protected]> -- Expansion function fix
#include "sha1.h"
#include <stdio.h>
#if !_LIBC
#include <string.h>
/* Written by Paul Eggert. */
#include <time.h>
@@ -52,7 +52,7 @@
#ifndef VASNPRINTF
#ifndef IN_LIBINTL
# include <alloca.h>
@@ -26,7 +26,7 @@
# define DEFINES_H
#if HAVE_CONFIG_H
+# include "MHD_config.h"
@@ -1,5 +1,5 @@
-# include "config.h"
#include <libtasn1.h>
@@ -34,7 +34,7 @@
#ifndef PLATFORM_H
#define PLATFORM_H
#define _XOPEN_SOURCE_EXTENDED 1
#define _OPEN_THREADS
@@ -24,7 +24,7 @@
* @author Sagie Amir
#include "platform.h"
#include <curl/curl.h>
#include <microhttpd.h>
#include <stdlib.h>
@@ -28,7 +28,7 @@
* @author Christian Grothoff (inspired by bug report #1296)