projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
configure: add -lgdbm if needed for ndbm support
[m6w6/ext-psi]
/
m4
/
posix
/
ndbm.m4
diff --git
a/m4/posix/ndbm.m4
b/m4/posix/ndbm.m4
index e59fbefc3d6ece27d29021c3b7115bfb043d9868..7b04504536b60495f9dc4afebff8b5cebc95c634 100644
(file)
--- 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)
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,
PSI_STRUCT(datum, [
void *dptr,