[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r4273 - in libmicrohttpd: . doc src src/daemon src/include
From: |
grothoff |
Subject: |
[GNUnet-SVN] r4273 - in libmicrohttpd: . doc src src/daemon src/include |
Date: |
Tue, 9 Jan 2007 19:48:38 -0800 (PST) |
Author: grothoff
Date: 2007-01-09 19:48:35 -0800 (Tue, 09 Jan 2007)
New Revision: 4273
Added:
libmicrohttpd/doc/libmicrohttpd.3
libmicrohttpd/src/Makefile.am
libmicrohttpd/src/daemon/
libmicrohttpd/src/daemon/Makefile.am
libmicrohttpd/src/daemon/daemon.c
Modified:
libmicrohttpd/configure.ac
libmicrohttpd/doc/Makefile.am
libmicrohttpd/src/include/microhttpd.h
Log:
stuff
Modified: libmicrohttpd/configure.ac
===================================================================
--- libmicrohttpd/configure.ac 2007-01-10 01:02:58 UTC (rev 4272)
+++ libmicrohttpd/configure.ac 2007-01-10 03:48:35 UTC (rev 4273)
@@ -37,6 +37,7 @@
AC_CANONICAL_HOST
AM_PROG_LIBTOOL
+# set GCC options
CFLAGS="-Wall -Werror $CFLAGS"
# use '-fno-strict-aliasing', but only if the compiler can take it
if gcc -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1;
@@ -100,7 +101,15 @@
AC_CHECK_MEMBER(pthread_t.p, AC_DEFINE(HAVE_NEW_PTHREAD_T, 1,
[Define if you have a post 11/2004 pthread library]), , [#include
<pthread.h>])
-# large file support
+
+# libcurl (required for testing)
+SAVE_LIBS=$LIBS
+LIBCURL_CHECK_CONFIG(,,curl=1,curl=0)
+AM_CONDITIONAL(HAVE_CURL, test x$curl = x1)
+$LIBS=$SAVE_LIBS
+
+
+# large file support (> 4 GB)
AC_SYS_LARGEFILE
AC_FUNC_FSEEKO
@@ -113,5 +122,12 @@
AC_CONFIG_FILES([
Makefile
doc/Makefile
-src/Makefile])
+src/Makefile
+src/include/Makefile
+src/daemon/Makefile])
AC_OUTPUT
+
+if test "$curl" != 1
+then
+ AC_MSG_NOTICE([WARNING: libcurl not found, testcases cannot be built.])
+fi
Modified: libmicrohttpd/doc/Makefile.am
===================================================================
--- libmicrohttpd/doc/Makefile.am 2007-01-10 01:02:58 UTC (rev 4272)
+++ libmicrohttpd/doc/Makefile.am 2007-01-10 03:48:35 UTC (rev 4273)
@@ -1,2 +1,2 @@
-man_MANS = extract.1 libextractor.3
+man_MANS = libmicrohttpd.3
EXTRA_DIST = $(man_MANS)
Added: libmicrohttpd/doc/libmicrohttpd.3
===================================================================
--- libmicrohttpd/doc/libmicrohttpd.3 2007-01-10 01:02:58 UTC (rev 4272)
+++ libmicrohttpd/doc/libmicrohttpd.3 2007-01-10 03:48:35 UTC (rev 4273)
@@ -0,0 +1,28 @@
+.TH LIBMICROHTTPD 3 "Jan 12, 2007"
+.SH NAME
+libmicrohttpd \- description 0.0.0
+.SH SYNOPSIS
+
+\fB#include <microhttpd.h>
+
+Insert API here.
+
+.SH DESCRIPTION
+.P
+Insert API description here.
+
+.P
+.SH "SEE ALSO"
+fixme(1)
+
+.SH LEGAL NOTICE
+libmicrohttpd is released under the GPL.
+
+.SH BUGS
+None, of course.
+
+.SH AUTHORS
+libmicrohttpd was originally designed by Christian Grothoff <address@hidden>
and Chris GauthierDickey <address@hidden>.
+
+.SH AVAILABILITY
+You can obtain the latest version from http://gnunet.org/libmicrohttpd/.
Added: libmicrohttpd/src/Makefile.am
===================================================================
--- libmicrohttpd/src/Makefile.am 2007-01-10 01:02:58 UTC (rev 4272)
+++ libmicrohttpd/src/Makefile.am 2007-01-10 03:48:35 UTC (rev 4273)
@@ -0,0 +1 @@
+SUBDIRS = include daemon .
Added: libmicrohttpd/src/daemon/Makefile.am
===================================================================
--- libmicrohttpd/src/daemon/Makefile.am 2007-01-10 01:02:58 UTC (rev
4272)
+++ libmicrohttpd/src/daemon/Makefile.am 2007-01-10 03:48:35 UTC (rev
4273)
@@ -0,0 +1,27 @@
+SUBDIRS = .
+
+INCLUDES = -I$(top_srcdir)/src/include
+
+lib_LTLIBRARIES = \
+ libmicrohttpd.la
+
+libmicrohttpd_la_LDFLAGS = \
+ -export-dynamic -version-info 0:0:0
+# libmicrohttpd_la_LIBADD = \
+# -lm
+libmicrohttpd_la_SOURCES = \
+ daemon.c
+
+# No curl, not testcases
+if HAVE_CURL
+
+check_PROGRAMS = \
+ testdaemon
+
+test_daemon_SOURCES = \
+ testdaemon.c
+test_daemon_LDADD = \
+ $(top_builddir)/src/daemon/libmicrohttpd.la \
+ @LIBCURL@
+
+endif
\ No newline at end of file
Added: libmicrohttpd/src/daemon/daemon.c
===================================================================
--- libmicrohttpd/src/daemon/daemon.c 2007-01-10 01:02:58 UTC (rev 4272)
+++ libmicrohttpd/src/daemon/daemon.c 2007-01-10 03:48:35 UTC (rev 4273)
@@ -0,0 +1,29 @@
+/*
+ This file is part of libmicrohttpd
+ (C) 2007 YOUR NAME HERE
+
+ libmicrohttpd is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published
+ by the Free Software Foundation; either version 2, or (at your
+ option) any later version.
+
+ libmicrohttpd is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with libmicrohttpd; see the file COPYING. If not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+*/
+
+/**
+ * @file daemon.c
+ * @brief FIXME
+ * @author FIXME
+ */
+
+#include "config.h"
+#include "microhttpd.h"
+
Property changes on: libmicrohttpd/src/daemon/daemon.c
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: libmicrohttpd/src/include/microhttpd.h
===================================================================
--- libmicrohttpd/src/include/microhttpd.h 2007-01-10 01:02:58 UTC (rev
4272)
+++ libmicrohttpd/src/include/microhttpd.h 2007-01-10 03:48:35 UTC (rev
4273)
@@ -1,6 +1,6 @@
/*
This file is part of libmicrohttpd
- (C) 2006 Christian Grothoff (and other contributing authors)
+ (C) 2006, 2007 Christian Grothoff (and other contributing authors)
libmicrohttpd is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -31,8 +31,7 @@
* thread-safe.<p>
*
* TODO:
- * - Is it ok to treat POST data and GET-URI arguments (a=4&b=5) equally,
- * or do we need an extra pair of methods?
+ * - proper API for file uploads via HTTP
* - We probably need a significantly more extensive API for
* proper SSL support (set local certificate, etc.)
*/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r4273 - in libmicrohttpd: . doc src src/daemon src/include,
grothoff <=