From 8e8dc43b0c1bc8bd48fd8eefd7e736c568b075ae Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 11 Nov 2008 22:33:26 +0000 Subject: [PATCH] fix the include path to also point out the build dir's src/ dir for the cases where we build the lot outside of the source dir --- example/simple/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/simple/Makefile.am b/example/simple/Makefile.am index 3b56d13..f098970 100644 --- a/example/simple/Makefile.am +++ b/example/simple/Makefile.am @@ -10,6 +10,8 @@ noinst_PROGRAMS = ssh2 \ sftp_RW_nonblock \ sftpdir sftpdir_nonblock -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/include +# the examples need the $(top_builddir)/src since when building outside of the +# source dir they still need to reach the libssh2_config.h header +INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddir)/src LDADD = $(top_builddir)/src/libssh2.la