Skip to content

Commit

Permalink
Install _all_ headers under ${prefix}/include/..
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsch committed Nov 8, 2014
1 parent 1767f1b commit 61cdf24
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 31 deletions.
7 changes: 2 additions & 5 deletions bin/varnishd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,9 @@ varnishd_SOURCES = \
waiter/cache_waiter_ports.c

noinst_HEADERS = \
cache/cache_backend.h \
cache/cache_director.h \
builtin_vcl.h \
cache/cache_esi.h \
common/heritage.h \
builtin_vcl.h \
hash/hash_slinger.h \
mgt/mgt.h \
mgt/mgt_cli.h \
Expand All @@ -106,8 +104,7 @@ noinst_HEADERS = \
waiter/waiter.h

# Headers for use with vmods
pkgdataincludedir = $(pkgdatadir)/include
nobase_pkgdatainclude_HEADERS = \
nobase_pkginclude_HEADERS = \
cache/cache.h \
cache/cache_filter.h \
cache/cache_backend.h \
Expand Down
37 changes: 18 additions & 19 deletions include/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,24 @@ nobase_pkginclude_HEADERS = \
vapi/vapi_options.h \
vcli.h

# Headers for use with vmods
nobase_pkginclude_HEADERS += \
miniobj.h \
vas.h \
vav.h \
vbm.h \
vcl.h \
vcs.h \
vmod_abi.h \
vqueue.h \
vre.h \
vdef.h \
vrt.h \
vrt_obj.h \
vsa.h \
vsb.h \
vsha256.h

# Private headers
nobase_noinst_HEADERS = \
binary_heap.h \
Expand Down Expand Up @@ -68,25 +86,6 @@ nobase_noinst_HEADERS = \
vut.h \
vut_options.h

# Headers for use with vmods
pkgdataincludedir = $(pkgdatadir)/include
nobase_pkgdatainclude_HEADERS = \
miniobj.h \
vas.h \
vav.h \
vbm.h \
vcl.h \
vcs.h \
vmod_abi.h \
vqueue.h \
vre.h \
vdef.h \
vrt.h \
vrt_obj.h \
vsa.h \
vsb.h \
vsha256.h

tbl/vrt_stv_var.h tbl/vcl_returns.h tbl/vcc_types.h vcl.h vrt_obj.h: $(top_srcdir)/lib/libvcc/generate.py $(top_srcdir)/include/vrt.h
mkdir -p tbl
@PYTHON@ $(top_srcdir)/lib/libvcc/generate.py $(top_srcdir) $(top_builddir)
Expand Down
7 changes: 3 additions & 4 deletions varnish.m4
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# varnish.m4 - Macros to locate Varnish header files. -*- Autoconf -*-
# serial 1 (varnish-4.0)
# serial 2 (varnish-4.0)

# Copyright (c) 2013 Varnish Software AS
# Copyright (c) 2013-2014 Varnish Software AS
# All rights reserved.
#
# Author: Tollef Fog Heen <[email protected]>
Expand Down Expand Up @@ -53,10 +53,9 @@ variable if you installed software in a non-standard prefix.])
fi
])
VARNISH_PKG_GET_VAR([VMOD_INCLUDE_DIR], [vmodincludedir])
VARNISH_PKG_GET_VAR([VAPI_INCLUDE_DIR], [pkgincludedir])
_CPPFLAGS="$CPPFLAGS"
VMOD_INCLUDES="-I$VMOD_INCLUDE_DIR -I$VAPI_INCLUDE_DIR"
VMOD_INCLUDES="-I$VAPI_INCLUDE_DIR"
CPPFLAGS="$VMOD_INCLUDES $CPPFLAGS"
AC_CHECK_HEADERS([vsha256.h cache/cache.h])
CPPFLAGS="$_CPPFLAGS"
Expand Down
1 change: 0 additions & 1 deletion varnishapi-uninstalled.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ pkgincludedir=${includedir}/@PACKAGE@
datarootdir=@datarootdir@
datadir=@datadir@
pkgdatadir=${datadir}/@PACKAGE@
pkgdataincludedir=${pkgdatadir}/include
vmoddir=${libdir}/@PACKAGE@/vmods
builddir=@abs_top_builddir@
srcdir=@abs_top_srcdir@
Expand Down
2 changes: 0 additions & 2 deletions varnishapi.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ pkgincludedir=${includedir}/@PACKAGE@
datarootdir=@datarootdir@
datadir=@datadir@
pkgdatadir=${datadir}/@PACKAGE@
pkgdataincludedir=${pkgdatadir}/include
vmodincludedir=${pkgdataincludedir}
vmoddir=${libdir}/@PACKAGE@/vmods
vmodtool=${pkgdatadir}/vmodtool.py

Expand Down

0 comments on commit 61cdf24

Please sign in to comment.