Makefile.am: Build libgce ony when liboauth is available.
authorFlorian Forster <octo@collectd.org>
Thu, 7 Dec 2017 11:04:08 +0000 (12:04 +0100)
committerFlorian Forster <octo@collectd.org>
Thu, 4 Oct 2018 19:14:37 +0000 (21:14 +0200)
libgce uses oauth_parse_json_token() from liboauth.

Makefile.am

index 266ff10..8a9710c 100644 (file)
@@ -599,11 +599,7 @@ test_utils_oauth_LDADD = \
        liboauth.la \
        libcommon.la \
        libplugin_mock.la
-endif
-endif
-endif
 
-if BUILD_WITH_LIBCURL
 noinst_LTLIBRARIES += libgce.la
 libgce_la_SOURCES = \
        src/utils_gce.c \
@@ -614,6 +610,8 @@ libgce_la_CPPFLAGS = \
 libgce_la_LIBADD = \
        $(BUILD_WITH_LIBCURL_LIBS)
 endif
+endif
+endif
 
 if BUILD_WITH_LIBYAJL2
 noinst_LTLIBRARIES += libformat_stackdriver.la