Commit dcfd9b22 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

examples: Add libevent-client, requires libevent for examples

parent 2c1739a2
......@@ -237,7 +237,8 @@ AM_CONDITIONAL([ENABLE_SRC], [ test "x${enable_src}" = "xyes" ])
# The example programs depend on OpenSSL
enable_examples=no
if test "x${request_examples}" = "xyes" &&
test "x${have_openssl}" = "xyes"; then
test "x${have_openssl}" = "xyes" &&
test "x${have_libevent_openssl}" = "xyes"; then
enable_examples=yes
fi
......
......@@ -24,14 +24,26 @@
if ENABLE_EXAMPLES
AM_CFLAGS = -Wall
AM_CPPFLAGS = -Wall -I$(srcdir)/../lib/includes -I$(builddir)/../lib/includes \
@OPENSSL_CFLAGS@ @DEFS@
AM_LDFLAGS = @OPENSSL_LIBS@
AM_CPPFLAGS = \
-Wall \
-I$(srcdir)/../lib/includes \
-I$(builddir)/../lib/includes \
-I$(top_srcdir)/src \
@LIBEVENT_OPENSSL_CFLAGS@ \
@OPENSSL_CFLAGS@ \
@DEFS@
AM_LDFLAGS = \
@LIBEVENT_OPENSSL_LIBS@ \
@OPENSSL_LIBS@
LDADD = $(top_builddir)/lib/libnghttp2.la
noinst_PROGRAMS = client
noinst_PROGRAMS = client libevent-client
client_SOURCES = client.c
libevent_client_SOURCES = \
libevent-client.c \
$(top_srcdir)/src/http-parser/http_parser.c
endif # ENABLE_EXAMPLES
EXTRA_DIST = README.rst
This diff is collapsed.
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