#209 fix libpcre include and library paths using pcre-config

ver devel
closed-accepted
modules (140)
5
2009-04-27
2009-04-25
Jinke Jiang
No

the #include <pcre.h>, is not <pcre/pcre.h>,
adding -I/usr/include/pcre or something else to the build-wide CFLAGS is ugly.
Should we use the pcre-config to find out the flags in different systems in a more general way.
CentOS 4.6 : /usr/include/pcre/pcre.h.
CentOS 5.2 : /usr/include/pcre.h
openBSD : I don't have one to verify.

Discussion

  • Jinke Jiang

    Jinke Jiang - 2009-04-25

    fix libpcre include and library paths by using pcre-config

     
  • Jinke Jiang

    Jinke Jiang - 2009-04-25

    found the same problem in dialplan also. Same trick can be done in that module Makefile.

     
  • Henning Westerholt

    • assigned_to: nobody --> henningw
    • status: open --> closed-accepted
     
  • Henning Westerholt

    Hi Jinke,

    thank you for the patch. I've added them with some small extensions to the sr git master branch. I changed the dialplan (and the lcr) module also, as you suggested.

    Henning

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks