summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-04-05 16:55:19 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-04-05 16:55:19 +0200
commit3939327590005fc3555c732920293ee59c3b078a (patch)
treec63cd1ec46a59f5f7ac9e4b30b92713c33c28868
parent64ab12cceea13d52e7a1aafbfd886ee087c261fb (diff)
misc: Require LIBASN1C_CFLAGS/_LIBSHEADmaster
In case libasn1c is not in the standard prefix we need to know where it is.
-rw-r--r--configure.ac2
-rw-r--r--src/Makefile.am2
2 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f201a68..fc359c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,6 +14,8 @@ AC_PROG_LIBTOOL
AC_CONFIG_MACRO_DIR([m4])
+PKG_CHECK_MODULES(LIBASN1C, libasn1c)
+
# The following test is taken from WebKit's webkit.m4
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fvisibility=hidden "
diff --git a/src/Makefile.am b/src/Makefile.am
index aaa9772..a42543c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,7 +4,7 @@
LIBVERSION=0:0:0
INCLUDES = $(all_includes) -I/usr/local/include/asn1c -I$(top_srcdir)/include
-AM_CFLAGS = -fPIC -Wall
+AM_CFLAGS = -fPIC -Wall $(LIBASN1C_CFLAGS)
libosmo_asn1_tcap_la_SOURCES = \
DialoguePDU.c \