Improving build dependency to libtzplatform-config 01/27901/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.m14.3_ivi tizen_3.0_ivi accepted/tizen/common/20140924.112707 accepted/tizen/ivi/20140927.095033 submit/tizen_common/20140923.154519 submit/tizen_common/20140924.073135 submit/tizen_ivi/20140926.000000 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release tizen_3.0_ivi_release
authorJosé Bollo <jose.bollo@open.eurogiciel.org>
Mon, 22 Sep 2014 15:38:56 +0000 (17:38 +0200)
committerJosé Bollo <jose.bollo@open.eurogiciel.org>
Mon, 22 Sep 2014 15:38:56 +0000 (17:38 +0200)
Replacement of the hard coded version of the library with
a dynamic version computed from pkg-config.

Change-Id: Ic89537ed70c537cb13bfe12dc37f27817594f353
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Makefile.am
configure.ac

index 1c502ed..51da5ee 100644 (file)
@@ -10,7 +10,7 @@ libdlog_la_SOURCES =  \
        log.c \
        log-common.c
 
-libdlog_la_LIBADD = -ltzplatform-config-1.0 -lsystemd-journal
+libdlog_la_LIBADD = $(TZPLATFORM_CONFIG_LIBS) -lsystemd-journal
 
 bin_PROGRAMS= dlogctrl
 
@@ -18,7 +18,7 @@ dlogctrl_SOURCES = \
        logctrl.c \
        log-common.c
 
-dlogctrl_LDADD = -ltzplatform-config-1.0
+dlogctrl_LDADD = $(TZPLATFORM_CONFIG_LIBS)
 
 dlogctrl_CFLAGS = $(AM_CFLAGS)
 
index 03af444..9330ec2 100644 (file)
@@ -11,6 +11,8 @@ PLATFORM_INIT
 AC_CONFIG_SRCDIR([log.c])
 AC_CONFIG_HEADERS([config.h])
 
+PKG_CHECK_MODULES([TZPLATFORM_CONFIG], [libtzplatform-config])
+
 # Checks for programs.
 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
 AC_PROG_CC