diff options
author | Christian Grothoff <christian@grothoff.org> | 2007-01-10 03:48:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2007-01-10 03:48:35 +0000 |
commit | 16d0362f4f0ca069d4c5d7409ff402efbbd1d7b9 (patch) | |
tree | 05c978515eb846b2da11a672e38a838abe4cad33 | |
parent | efc8c3cc538f6172246e89998ac22a1e655f7df1 (diff) | |
download | libmicrohttpd-16d0362f4f0ca069d4c5d7409ff402efbbd1d7b9.tar.gz libmicrohttpd-16d0362f4f0ca069d4c5d7409ff402efbbd1d7b9.zip |
stuff
-rw-r--r-- | configure.ac | 20 | ||||
-rw-r--r-- | doc/Makefile.am | 2 | ||||
-rw-r--r-- | doc/libmicrohttpd.3 | 28 | ||||
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/daemon/Makefile.am | 27 | ||||
-rw-r--r-- | src/daemon/daemon.c | 29 | ||||
-rw-r--r-- | src/include/microhttpd.h | 5 |
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 | |||
37 | AC_CANONICAL_HOST | 37 | AC_CANONICAL_HOST |
38 | AM_PROG_LIBTOOL | 38 | AM_PROG_LIBTOOL |
39 | 39 | ||
40 | # set GCC options | ||
40 | CFLAGS="-Wall -Werror $CFLAGS" | 41 | CFLAGS="-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 |
42 | if gcc -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1; | 43 | if gcc -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1; |
@@ -100,7 +101,15 @@ AC_SUBST(PTHREAD_CPPFLAGS) | |||
100 | AC_CHECK_MEMBER(pthread_t.p, AC_DEFINE(HAVE_NEW_PTHREAD_T, 1, | 101 | AC_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) | ||
106 | SAVE_LIBS=$LIBS | ||
107 | LIBCURL_CHECK_CONFIG(,,curl=1,curl=0) | ||
108 | AM_CONDITIONAL(HAVE_CURL, test x$curl = x1) | ||
109 | $LIBS=$SAVE_LIBS | ||
110 | |||
111 | |||
112 | # large file support (> 4 GB) | ||
104 | AC_SYS_LARGEFILE | 113 | AC_SYS_LARGEFILE |
105 | AC_FUNC_FSEEKO | 114 | AC_FUNC_FSEEKO |
106 | 115 | ||
@@ -113,5 +122,12 @@ AC_SUBST(EXT_LIBS) | |||
113 | AC_CONFIG_FILES([ | 122 | AC_CONFIG_FILES([ |
114 | Makefile | 123 | Makefile |
115 | doc/Makefile | 124 | doc/Makefile |
116 | src/Makefile]) | 125 | src/Makefile |
126 | src/include/Makefile | ||
127 | src/daemon/Makefile]) | ||
117 | AC_OUTPUT | 128 | AC_OUTPUT |
129 | |||
130 | if test "$curl" != 1 | ||
131 | then | ||
132 | AC_MSG_NOTICE([WARNING: libcurl not found, testcases cannot be built.]) | ||
133 | fi | ||
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 @@ | |||
1 | man_MANS = extract.1 libextractor.3 | 1 | man_MANS = libmicrohttpd.3 |
2 | EXTRA_DIST = $(man_MANS) | 2 | EXTRA_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 | ||
3 | libmicrohttpd \- description 0.0.0 | ||
4 | .SH SYNOPSIS | ||
5 | |||
6 | \fB#include <microhttpd.h> | ||
7 | |||
8 | Insert API here. | ||
9 | |||
10 | .SH DESCRIPTION | ||
11 | .P | ||
12 | Insert API description here. | ||
13 | |||
14 | .P | ||
15 | .SH "SEE ALSO" | ||
16 | fixme(1) | ||
17 | |||
18 | .SH LEGAL NOTICE | ||
19 | libmicrohttpd is released under the GPL. | ||
20 | |||
21 | .SH BUGS | ||
22 | None, of course. | ||
23 | |||
24 | .SH AUTHORS | ||
25 | libmicrohttpd was originally designed by Christian Grothoff <christian@grothoff.org> and Chris GauthierDickey <chrisg@cs.du.edu>. | ||
26 | |||
27 | .SH AVAILABILITY | ||
28 | You 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 @@ | |||
1 | SUBDIRS = . | ||
2 | |||
3 | INCLUDES = -I$(top_srcdir)/src/include | ||
4 | |||
5 | lib_LTLIBRARIES = \ | ||
6 | libmicrohttpd.la | ||
7 | |||
8 | libmicrohttpd_la_LDFLAGS = \ | ||
9 | -export-dynamic -version-info 0:0:0 | ||
10 | # libmicrohttpd_la_LIBADD = \ | ||
11 | # -lm | ||
12 | libmicrohttpd_la_SOURCES = \ | ||
13 | daemon.c | ||
14 | |||
15 | # No curl, not testcases | ||
16 | if HAVE_CURL | ||
17 | |||
18 | check_PROGRAMS = \ | ||
19 | testdaemon | ||
20 | |||
21 | test_daemon_SOURCES = \ | ||
22 | testdaemon.c | ||
23 | test_daemon_LDADD = \ | ||
24 | $(top_builddir)/src/daemon/libmicrohttpd.la \ | ||
25 | @LIBCURL@ | ||
26 | |||
27 | endif \ 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 | */ |