MT#7955 Try to figure out where to add -lpcre

agranig/pcre
Andreas Granig 12 years ago
parent e880dee380
commit 683dd939a3

@ -36,12 +36,14 @@
/*** MAKEOPTS
<category name="MENUSELECT_OPTS_app_voicemail" displayname="Voicemail Build Options" positive_output="yes" remove_on_change="apps/app_voicemail.o apps/app_directory.o">
<member name="ODBC_STORAGE" displayname="Storage of Voicemail using ODBC">
<depend>pcre</depend>
<depend>unixodbc</depend>
<depend>ltdl</depend>
<conflict>IMAP_STORAGE</conflict>
<defaultenabled>yes</defaultenabled>
</member>
<member name="IMAP_STORAGE" displayname="Storage of Voicemail using IMAP4">
<depend>pcre</depend>
<depend>imap_tk</depend>
<conflict>ODBC_STORAGE</conflict>
<use>ssl</use>
@ -7411,8 +7413,8 @@ static int vm_authenticate(struct ast_channel *chan, char *mailbox, int mailbox_
struct ast_vm_user vmus, *vmu = NULL;
const char *err;
int erroffset;
pcre_extra *extra;
pcre *ppat;
pcre_extra *extra = NULL;
pcre *ppat = NULL;
char *normalized_mailbox;
/* If ADSI is supported, setup login screen */

@ -192,6 +192,7 @@ AST_EXT_LIB_SETUP([NCURSES], [ncurses], [ncurses])
AST_EXT_LIB_SETUP([NETSNMP], [Net-SNMP], [netsnmp])
AST_EXT_LIB_SETUP([NEWT], [newt], [newt])
AST_EXT_LIB_SETUP([UNIXODBC], [unixODBC], [odbc])
AST_EXT_LIB_SETUP([PCRE], [pcre], [pcre])
AST_EXT_LIB_SETUP([OGG], [OGG], [ogg])
AST_EXT_LIB_SETUP([OSPTK], [OSP Toolkit], [osptk])
AST_EXT_LIB_SETUP([OSS], [Open Sound System], [oss])
@ -1185,6 +1186,8 @@ AST_EXT_LIB_CHECK([NEWT], [newt], [newtBell], [newt.h])
AST_EXT_LIB_CHECK([UNIXODBC], [odbc], [SQLConnect], [sql.h], [])
AST_EXT_LIB_CHECK([PBCE], [pcre], [pcre_compile], [pcre.h], [])
AST_EXT_LIB_CHECK([OGG], [ogg], [ogg_sync_init], [])
if test "${USE_OSS}" != "no"; then

2
debian/rules vendored

@ -31,7 +31,7 @@ endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
cp -f /usr/share/misc/config.guess config.guess
endif
./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs -lpcre"
./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
build: build-stamp

Loading…
Cancel
Save