[balsa] Fix building outside the source directory



commit a1b1465a51c37f77129dc05b37db39dba837e815
Author: Albrecht Dreß <albrecht dress arcor de>
Date:   Sun Apr 23 11:26:25 2017 -0400

    Fix building outside the source directory
    
        * configure.ac: fix a warning about changing the permissions
          of a generated file
        * libbalsa/imap/Makefile.am: fix building outside the source
          directory.
    
    Signed-off-by: Peter Bloomfield <PeterBloomfield bellsouth net>

 ChangeLog                 |    7 +++++++
 configure.ac              |    2 +-
 libbalsa/imap/Makefile.am |    4 ++--
 3 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9ff94d7..3e115a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-04-23  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       * configure.ac: fix a warning about changing the permissions
+         of a generated file
+       * libbalsa/imap/Makefile.am: fix building outside the source
+         directory.
+
 2017-04-22  Peter Bloomfield  <pbloomfield bellsouth net>
 
        Fix access to local POP3 server
diff --git a/configure.ac b/configure.ac
index 83a5674..582ca21 100644
--- a/configure.ac
+++ b/configure.ac
@@ -899,7 +899,7 @@ libnetclient/test/start-test-env.sh
 src/Makefile
 ui/Makefile
 ],
-[chmod +x libnetclient/test/start-test-env.sh])
+[test -f libnetclient/test/start-test-env.sh && chmod +x libnetclient/test/start-test-env.sh])
 AC_OUTPUT
 
 dnl ##########################################################################
diff --git a/libbalsa/imap/Makefile.am b/libbalsa/imap/Makefile.am
index ea9d16a..f379389 100644
--- a/libbalsa/imap/Makefile.am
+++ b/libbalsa/imap/Makefile.am
@@ -11,8 +11,8 @@ imap_tst_SOURCES = imap_tst.c
 
 imap_tst_LDADD = \
        libimap.a       \
-       ${top_srcdir}/libnetclient/libnetclient.a \
-        $(BALSA_LIBS)
+       ${top_builddir}/libnetclient/libnetclient.a \
+       $(BALSA_LIBS)
 
 #libimap_la_SOURCES =  
 libimap_a_SOURCES = \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]