Commit 4987eb0b authored by Ghislain MARY's avatar Ghislain MARY

Fix generation of belle-sip.pc when compiling with the autotools.

parent b9f06788
......@@ -106,13 +106,13 @@ set(exec_prefix ${prefix}/bin)
set(libdir ${prefix}/lib)
set(includedir ${prefix}/include)
get_filename_component(antlr3c_library_path "${ANTLR3C_LIBRARIES}" PATH)
set(libs_private "-L${antlr3c_library_path} -lantlr3c")
set(LIBS_PRIVATE "-L${antlr3c_library_path} -lantlr3c")
if(${CUNIT_FOUND})
set(requires_private "${requires_private} cunit")
set(REQUIRES_PRIVATE "${REQUIRES_PRIVATE} cunit")
endif(${CUNIT_FOUND})
if(HAVE_POLARSSL)
get_filename_component(polarssl_library_path "${POLARSSL_LIBRARIES}" PATH)
set(libs_private "${libs_private} -L${polarssl_library_path} -lpolarssl")
set(LIBS_PRIVATE "${LIBS_PRIVATE} -L${polarssl_library_path} -lpolarssl")
endif(HAVE_POLARSSL)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/belle-sip.pc.in ${CMAKE_CURRENT_BINARY_DIR}/belle-sip.pc)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/belle-sip.pc DESTINATION lib/pkgconfig)
......
......@@ -5,8 +5,8 @@ includedir=@includedir@
Name: belle-sip
Description: A c based implementation of the SIP (RFC 3261) telephony protocol
Requires.private: @requires_private@ @TLS_PC@
Requires.private: @REQUIRES_PRIVATE@ @TLS_PC@
Version: @VERSION@
Libs: -L@libdir@ -lbellesip
Libs.private: @libs_private@
Libs.private: @LIBS_PRIVATE@
Cflags: -I@includedir@
......@@ -295,6 +295,14 @@ AC_ARG_ENABLE(tests,
)
AM_CONDITIONAL(ENABLE_TESTS, test x$tests_enabled = xyes && test x$found_cunit = xyes)
REQUIRES_PRIVATE=""
if test "$found_cunit" = "yes" ; then
REQUIRES_PRIVATE="$REQUIRES_PRIVATE cunit"
fi
LIBS_PRIVATE="$ANTLR_LIBS $POLARSSL_LIBS"
AC_SUBST(REQUIRES_PRIVATE)
AC_SUBST(LIBS_PRIVATE)
# Checks for typedefs, structures, and compiler characteristics.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment