X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=m4%2Fposix%2Fndbm.m4;h=7b04504536b60495f9dc4afebff8b5cebc95c634;hp=e59fbefc3d6ece27d29021c3b7115bfb043d9868;hb=5ed7e51eb19a16f6f4e280abc33a2a4281b45166;hpb=dbf1c3d1754adc5ee571e71395dbd297a9c3d093 diff --git a/m4/posix/ndbm.m4 b/m4/posix/ndbm.m4 index e59fbef..7b04504 100644 --- a/m4/posix/ndbm.m4 +++ b/m4/posix/ndbm.m4 @@ -1,7 +1,11 @@ PSI_CHECK_NDBM() { PSI_CONFIG_POSIX(ndbm, ndbm.h gdbm-ndbm.h) - PHP_CHECK_FUNC_LIB(dbm_open, gdbm_compat) + PHP_CHECK_FUNC(dbm_open, gdbm_compat) + # See http://www.gnu.org.ua/software/gdbm/manual/html_section/gdbm_19.html + if expr X"$LIBS" : "X.*-lgdbm_compat" >/dev/null; then + LIBS="-lgdbm $LIBS" + fi PSI_STRUCT(datum, [ void *dptr,