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.
This commit is contained in:
parent
8a96e474a2
commit
8b997bb456
|
@ -26,7 +26,9 @@ PKG_CHECK_MODULES([LIBOSMOSCCP], [libosmo-sccp])
|
||||||
PKG_CHECK_MODULES([LIBOSMOVTY], [libosmovty])
|
PKG_CHECK_MODULES([LIBOSMOVTY], [libosmovty])
|
||||||
#PKG_CHECK_MODULES([NEXUSWARE_C7], [nexusware-c7])
|
#PKG_CHECK_MODULES([NEXUSWARE_C7], [nexusware-c7])
|
||||||
|
|
||||||
|
old_libs=$LIBS
|
||||||
AC_CHECK_LIB([sctp], sctp_sendmsg, [], [AC_MSG_ERROR([The sctp library is required.])])
|
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])],
|
AC_ARG_ENABLE([uniporte], [AS_HELP_STRING([--enable-uniporte], [Build with uniporte])],
|
||||||
[
|
[
|
||||||
|
|
Reference in New Issue