Commit 35d3ae37 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Source tree structure as agreed.

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@24 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 523166ad
# $Id$
SUBDIRS = include lib bin
#!/bin/sh
#
# $Id$
#
libtoolize --copy --force
aclocal
autoheader
automake --add-missing --copy --force --foreign
autoconf
# $Id$
SUBDIRS = varnishd
# $Id$
INCLUDES = -I$(top_srcdir)/include
bin_PROGRAMS = varnishd
varnishd_SOURCES = \
varnishd.c
#varnishd_LDADD = $(top_builddir)/lib/libvarnish/libvarnish.la
/*
* $Id$
*/
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
static void
usage(void)
{
fprintf(stderr, "usage: varnishd\n");
exit(1);
}
int
main(int argc, char *argv[])
{
int o;
while ((o = getopt(argc, argv, "")) != -1)
switch (o) {
default:
usage();
}
argc -= optind;
argv += optind;
if (argc != 0)
usage();
exit(0);
}
# $Id$
AC_PREREQ(2.59)
AC_COPYRIGHT([Copyright (c) 2006 Linpro AS / Verdens Gang AS])
AC_REVISION([$Id$])
AC_INIT([Varnish], [0.1], [varnish-dev@projects.linpro.no])
AC_CONFIG_SRCDIR([include/varnishapi.h])
AC_CONFIG_HEADER([config.h])
AC_CANONICAL_SYSTEM
AC_LANG(C)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
# Compiler flags (assume GCC).
# This section *must* come before AC_PROG_CC / AC_PROG_CPP.
CFLAGS="${CFLAGS:--O2}"
AC_ARG_ENABLE(wall,
AS_HELP_STRING([--enable-wall],[use -Wall (default is NO)]),
CFLAGS="${CFLAGS} -Wall")
AC_ARG_ENABLE(pedantic,
AS_HELP_STRING([--enable-pedantic],[enable pedantic warnings (default is NO)]),
CFLAGS="${CFLAGS} -pedantic")
AC_ARG_ENABLE(werror,
AS_HELP_STRING([--enable-werror],[use -Werror (default is NO)]),
CFLAGS="${CFLAGS} -Werror")
# Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_MAKE_SET
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_HEADER_TIME
AC_CHECK_HEADERS([sys/socket.h])
AC_CHECK_HEADERS([netinet/in.h])
AC_CHECK_HEADERS([stddef.h])
AC_CHECK_HEADERS([stdlib.h])
AC_CHECK_HEADERS([unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_CHECK_MEMBERS([struct sockaddr.sa_len],,,[
#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
])
# Checks for library functions.
AC_TYPE_SIGNAL
AC_TYPE_SIZE_T
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([strerror])
AC_FUNC_STRERROR_R
AC_CHECK_FUNCS([socket])
AC_CONFIG_FILES([
Makefile
include/Makefile
lib/Makefile
lib/libvarnish/Makefile
lib/libvarnishapi/Makefile
bin/Makefile
bin/varnishd/Makefile
])
AC_OUTPUT
# $Id$
include_HEADERS = varnishapi.h
/*
* $Id$
*/
#ifndef VARNISHAPI_H_INCLUDED
#define VARNISHAPI_H_INCLUDED
/* ... */
#endif
# $Id$
SUBDIRS = \
libvarnish \
libvarnishapi
# $Id$
INCLUDES = -I$(top_srcdir)/include
lib_LIBRARIES = libvarnish.la
libvarnish_la_SOURCES =
# $Id$
INCLUDES = -I$(top_srcdir)/include
lib_LIBRARIES = libvarnishapi.la
libvarnishapi_la_SOURCES =
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment