aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2007-01-10 03:48:35 +0000
committerChristian Grothoff <christian@grothoff.org>2007-01-10 03:48:35 +0000
commit16d0362f4f0ca069d4c5d7409ff402efbbd1d7b9 (patch)
tree05c978515eb846b2da11a672e38a838abe4cad33
parentefc8c3cc538f6172246e89998ac22a1e655f7df1 (diff)
downloadlibmicrohttpd-16d0362f4f0ca069d4c5d7409ff402efbbd1d7b9.tar.gz
libmicrohttpd-16d0362f4f0ca069d4c5d7409ff402efbbd1d7b9.zip
stuff
-rw-r--r--configure.ac20
-rw-r--r--doc/Makefile.am2
-rw-r--r--doc/libmicrohttpd.328
-rw-r--r--src/Makefile.am1
-rw-r--r--src/daemon/Makefile.am27
-rw-r--r--src/daemon/daemon.c29
-rw-r--r--src/include/microhttpd.h5
7 files changed, 106 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 429ba767..c71478e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,6 +37,7 @@ AC_PROG_MAKE_SET
37AC_CANONICAL_HOST 37AC_CANONICAL_HOST
38AM_PROG_LIBTOOL 38AM_PROG_LIBTOOL
39 39
40# set GCC options
40CFLAGS="-Wall -Werror $CFLAGS" 41CFLAGS="-Wall -Werror $CFLAGS"
41# use '-fno-strict-aliasing', but only if the compiler can take it 42# use '-fno-strict-aliasing', but only if the compiler can take it
42if gcc -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1; 43if gcc -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1;
@@ -100,7 +101,15 @@ AC_SUBST(PTHREAD_CPPFLAGS)
100AC_CHECK_MEMBER(pthread_t.p, AC_DEFINE(HAVE_NEW_PTHREAD_T, 1, 101AC_CHECK_MEMBER(pthread_t.p, AC_DEFINE(HAVE_NEW_PTHREAD_T, 1,
101 [Define if you have a post 11/2004 pthread library]), , [#include <pthread.h>]) 102 [Define if you have a post 11/2004 pthread library]), , [#include <pthread.h>])
102 103
103# large file support 104
105# libcurl (required for testing)
106SAVE_LIBS=$LIBS
107LIBCURL_CHECK_CONFIG(,,curl=1,curl=0)
108AM_CONDITIONAL(HAVE_CURL, test x$curl = x1)
109$LIBS=$SAVE_LIBS
110
111
112# large file support (> 4 GB)
104AC_SYS_LARGEFILE 113AC_SYS_LARGEFILE
105AC_FUNC_FSEEKO 114AC_FUNC_FSEEKO
106 115
@@ -113,5 +122,12 @@ AC_SUBST(EXT_LIBS)
113AC_CONFIG_FILES([ 122AC_CONFIG_FILES([
114Makefile 123Makefile
115doc/Makefile 124doc/Makefile
116src/Makefile]) 125src/Makefile
126src/include/Makefile
127src/daemon/Makefile])
117AC_OUTPUT 128AC_OUTPUT
129
130if test "$curl" != 1
131then
132 AC_MSG_NOTICE([WARNING: libcurl not found, testcases cannot be built.])
133fi
diff --git a/doc/Makefile.am b/doc/Makefile.am
index a94090da..dcd0d6e1 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,2 +1,2 @@
1man_MANS = extract.1 libextractor.3 1man_MANS = libmicrohttpd.3
2EXTRA_DIST = $(man_MANS) 2EXTRA_DIST = $(man_MANS)
diff --git a/doc/libmicrohttpd.3 b/doc/libmicrohttpd.3
new file mode 100644
index 00000000..72c6a968
--- /dev/null
+++ b/doc/libmicrohttpd.3
@@ -0,0 +1,28 @@
1.TH LIBMICROHTTPD 3 "Jan 12, 2007"
2.SH NAME
3libmicrohttpd \- description 0.0.0
4.SH SYNOPSIS
5
6\fB#include <microhttpd.h>
7
8Insert API here.
9
10.SH DESCRIPTION
11.P
12Insert API description here.
13
14.P
15.SH "SEE ALSO"
16fixme(1)
17
18.SH LEGAL NOTICE
19libmicrohttpd is released under the GPL.
20
21.SH BUGS
22None, of course.
23
24.SH AUTHORS
25libmicrohttpd was originally designed by Christian Grothoff <christian@grothoff.org> and Chris GauthierDickey <chrisg@cs.du.edu>.
26
27.SH AVAILABILITY
28You can obtain the latest version from http://gnunet.org/libmicrohttpd/.
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 00000000..401b0ad1
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1 @@
SUBDIRS = include daemon .
diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am
new file mode 100644
index 00000000..fcc2c495
--- /dev/null
+++ b/src/daemon/Makefile.am
@@ -0,0 +1,27 @@
1SUBDIRS = .
2
3INCLUDES = -I$(top_srcdir)/src/include
4
5lib_LTLIBRARIES = \
6 libmicrohttpd.la
7
8libmicrohttpd_la_LDFLAGS = \
9 -export-dynamic -version-info 0:0:0
10# libmicrohttpd_la_LIBADD = \
11# -lm
12libmicrohttpd_la_SOURCES = \
13 daemon.c
14
15# No curl, not testcases
16if HAVE_CURL
17
18check_PROGRAMS = \
19 testdaemon
20
21test_daemon_SOURCES = \
22 testdaemon.c
23test_daemon_LDADD = \
24 $(top_builddir)/src/daemon/libmicrohttpd.la \
25 @LIBCURL@
26
27endif \ No newline at end of file
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
new file mode 100644
index 00000000..f70ca34d
--- /dev/null
+++ b/src/daemon/daemon.c
@@ -0,0 +1,29 @@
1/*
2 This file is part of libmicrohttpd
3 (C) 2007 YOUR NAME HERE
4
5 libmicrohttpd is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 2, or (at your
8 option) any later version.
9
10 libmicrohttpd is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with libmicrohttpd; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21/**
22 * @file daemon.c
23 * @brief FIXME
24 * @author FIXME
25 */
26
27#include "config.h"
28#include "microhttpd.h"
29
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 58e3d1ab..a17f41f2 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of libmicrohttpd 2 This file is part of libmicrohttpd
3 (C) 2006 Christian Grothoff (and other contributing authors) 3 (C) 2006, 2007 Christian Grothoff (and other contributing authors)
4 4
5 libmicrohttpd is free software; you can redistribute it and/or modify 5 libmicrohttpd is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -31,8 +31,7 @@
31 * thread-safe.<p> 31 * thread-safe.<p>
32 * 32 *
33 * TODO: 33 * TODO:
34 * - Is it ok to treat POST data and GET-URI arguments (a=4&b=5) equally, 34 * - proper API for file uploads via HTTP
35 * or do we need an extra pair of methods?
36 * - We probably need a significantly more extensive API for 35 * - We probably need a significantly more extensive API for
37 * proper SSL support (set local certificate, etc.) 36 * proper SSL support (set local certificate, etc.)
38 */ 37 */