diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/Makefile.am | 5 | ||||
-rw-r--r-- | cpp/configure.ac | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/cpp/Makefile.am b/cpp/Makefile.am index dd67bb8036..2b207f10e8 100644 --- a/cpp/Makefile.am +++ b/cpp/Makefile.am @@ -17,6 +17,8 @@ # under the License. # +LIBTOOL_DEPS = @LIBTOOL_DEPS@ + AUTOMAKE_OPTIONS = 1.9.2 foreign ACLOCAL_AMFLAGS = -I m4 @@ -29,6 +31,3 @@ SUBDIRS = managementgen etc src docs/api docs/man examples bindings/qmf # Update libtool, if needed. libtool: $(LIBTOOL_DEPS) $(SHELL) ./config.status --recheck - - - diff --git a/cpp/configure.ac b/cpp/configure.ac index 4ee94d27dd..8ce66cf743 100644 --- a/cpp/configure.ac +++ b/cpp/configure.ac @@ -253,6 +253,7 @@ AC_CHECK_HEADERS([boost/shared_ptr.hpp uuid/uuid.h],, # Check for optional cluster requirements. tmp_LIBS=$LIBS +tmp_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -L/usr/lib/openais -L/usr/lib64/openais -L/usr/lib/corosync -L/usr/lib64/corosync" AC_CHECK_LIB([cpg],[cpg_local_get],[have_libcpg=yes],) AC_CHECK_HEADERS([openais/cpg.h corosync/cpg.h],[have_cpg_h=yes],) @@ -272,6 +273,8 @@ AC_ARG_WITH([cpg], ] ) AM_CONDITIONAL([HAVE_LIBCPG], [test x$with_cpg = xyes]) +# Clean up unnceccassary flags if we don't use clustering +AS_IF([test ! x$with_cpg = xyes], [LDFLAGS=$tmp_LDFLAGS]) AC_CHECK_LIB([cman],[cman_is_quorate],have_libcman=yes,) AC_CHECK_HEADERS([libcman.h],have_libcman_h=yes,) |