Follow-up Comment #7, patch #7017 (project grep):
did you post the wrong file ? the latest patch still doesnt check the result
of AC_CHECK_LIB(), and it's dlopening libpcre.so.
hardcoding any filename isnt going to work. the SONAME you should be
hardcoding is whatever matches the pcre.h you're including. on your system it
may be libpcre.so.3, but it isnt on mine. your best bet is to attempt a
configure link test against -lpcre and find out what SONAME it picked up.
an alternative is to do a compile test to figure out what API the pcre.h is
providing (PCRE_MAJOR/PCRE_MINOR), and maintain a small table in the configure
script. for example, 7.9 provides "libpcre.so.0".
i know it sucks, but this is the reality of trying to implement this sort of
dynamic API.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?7017>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/