summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-07-24 20:20:53 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-03-26 16:39:44 +0200
commit4d045ad3c87b2853f1109806df6518667702eadf (patch)
tree256091cb61b8e29153387d25854b9a0b104335b0
parentd9d3eb186bb82baac1c81f076b7638c209c1d47c (diff)
build: Use pkg-config to find the libasn1c library.
Do not assume that the library got installed into /usr/local but use pkg-config to find it.
-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 e8b5099..3dfad2e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,6 +25,8 @@ AC_COMPILE_IFELSE([char foo;],
CFLAGS="$saved_CFLAGS"
AC_SUBST(SYMBOL_VISIBILITY)
+PKG_CHECK_MODULES(LIBASN1C, libasn1c)
+
AC_OUTPUT(
libosmo-asn1-map.pc
src/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index 8141061..f98347e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,7 +3,7 @@
# documentation before making any modification
LIBVERSION=0:0:0
-INCLUDES = $(all_includes) -I/usr/local/include/asn1c -I$(top_srcdir)/include
+INCLUDES = $(all_includes) -I$(top_srcdir)/include $(LIBASN1C_CFLAGS)
AM_CFLAGS = -fPIC -Wall
libosmo_asn1_map_la_SOURCES = \