add libpri mod configure stuff

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@650 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris 2009-02-05 20:44:13 +00:00
parent 99020477b5
commit 1578712f5d
2 changed files with 16 additions and 1 deletions

View File

@ -130,7 +130,7 @@ install-data-local:
@[ -f "$(DESTDIR)$(PREFIX)/conf/openzap.conf" ] || ( cp conf/*.conf $(DESTDIR)$(PREFIX)/conf)
@echo OpenZAP Installed
mod_LTLIBRARIES = ozmod_zt.la ozmod_skel.la ozmod_wanpipe.la ozmod_isdn.la ozmod_analog.la ozmod_analog_em.la ozmod_ss7_boost.la
mod_LTLIBRARIES = ozmod_zt.la ozmod_skel.la ozmod_wanpipe.la ozmod_isdn.la ozmod_analog.la ozmod_analog_em.la ozmod_ss7_boost.la #ozmod_libpri.la
ozmod_zt_la_SOURCES = $(SRC)/ozmod/ozmod_zt/ozmod_zt.c
ozmod_zt_la_CFLAGS = $(AM_CFLAGS) $(MY_CFLAGS)
ozmod_zt_la_LDFLAGS = -module
@ -191,3 +191,10 @@ ozmod_ss7_boost_la_SOURCES = $(SRC)/ozmod/ozmod_ss7_boost/ss7_boost_client.c $(S
ozmod_ss7_boost_la_CFLAGS = $(AM_CFLAGS) $(MY_CFLAGS)
ozmod_ss7_boost_la_LDFLAGS = -module
ozmod_ss7_boost_la_LIBADD = $(MYLIB)
if LIBPRI
#ozmod_libpri_la_SOURCES = $(SRC)/ozmod/ozmod_libpri/ozmod_libpri.c
#ozmod_libpri_la_CFLAGS = $(AM_CFLAGS) $(MY_CFLAGS)
#ozmod_libpri_la_LDFLAGS = -module -lpri
#ozmod_libpri_la_LIBADD = $(MYLIB)
endif

View File

@ -149,6 +149,14 @@ AC_ARG_WITH([modinstdir],
AC_SUBST(modinstdir)
# libpri?
AC_ARG_WITH([libpri],
[AS_HELP_STRING([--with-libpri], [Install ozmod_libpri])], [enable_libpri="yes"], [enable_libpri="no"])
AC_SUBST(enable_libpri)
AM_CONDITIONAL([LIBPRI],[test "${enable_libpri}" = "yes"])
COMP_VENDOR_CFLAGS="$COMP_VENDOR_CFLAGS"
AC_SUBST(COMP_VENDOR_CFLAGS)
AC_CONFIG_FILES([Makefile