aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-12-26 20:19:32 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-12-26 20:19:32 +0100
commit4d702db3f7a16c7aad20f799420c9a175194f722 (patch)
tree91d1c2084ae66c45f9a749ce099ad36f4358e7d3
parent7aa5a93e77fa10f40f4e4721745c764106ae188f (diff)
libsctp: Only define LIBSCTP_LIBS in case there is a lib
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index cd91a6f..19f7d18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,7 +45,9 @@ old_LIBS=$LIBS
AC_SEARCH_LIBS([sctp_send], [sctp], [
AC_DEFINE(HAVE_LIBSCTP, 1, [Define 1 to enable SCTP support])
AC_SUBST(HAVE_LIBSCTP, [1])
- AC_SUBST(LIBSCTP_LIBS, [-l$ac_lib])
+ if test -n "$ac_lib"; then
+ AC_SUBST(LIBSCTP_LIBS, [-l$ac_lib])
+ fi
], [
AC_MSG_ERROR([sctp_send not found in searched libs])])
LIBS=$old_LIBS