diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-25 12:26:59 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-25 12:26:59 +0100 |
commit | 8b997bb456a5927ec65ea0a171ddd1e1bcf5695a (patch) | |
tree | 7fab08ed8dffd4561ff3eecb90c7f88160c53951 | |
parent | 8a96e474a2a1bded9f6740df18aacc482a253108 (diff) |
configure: We do not want to always link to -lsctp
The AC_CHECK_LIB is always setting the LIBS variable and this
will be used for every linker call. We do not want this.
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7651309..84a1767 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,9 @@ PKG_CHECK_MODULES([LIBOSMOSCCP], [libosmo-sccp]) PKG_CHECK_MODULES([LIBOSMOVTY], [libosmovty]) #PKG_CHECK_MODULES([NEXUSWARE_C7], [nexusware-c7]) +old_libs=$LIBS AC_CHECK_LIB([sctp], sctp_sendmsg, [], [AC_MSG_ERROR([The sctp library is required.])]) +LIBS=$old_libs AC_ARG_ENABLE([uniporte], [AS_HELP_STRING([--enable-uniporte], [Build with uniporte])], [ |