configure: add --enable-psi-maintainer-mode
[m6w6/ext-psi] / m4 / posix / ndbm.m4
1 PSI_CHECK_NDBM() {
2
3 PSI_STRUCT(datum, [
4 void *dptr,
5 int dsize]
6 )
7
8 PSI_OPAQUE_TYPE(DBM)
9
10 PSI_CONST(DBM_INSERT, int)
11 PSI_CONST(DBM_REPLACE, int)
12
13 PSI_DECL(void dbm_clearerr, [(DBM *db)], [], [-lqdbm -lgdbm_compat])
14 PSI_DECL(void dbm_close, [(DBM *db)], [], [-lqdbm -lgdbm_compat])
15 PSI_DECL(int dbm_delete, [(DBM *db, datum key)], [], [-lqdbm -lgdbm_compat])
16 PSI_DECL(int dbm_error, [(DBM *db)], [], [-lqdbm -lgdbm_compat])
17 PSI_DECL(datum dbm_fetch, [(DBM *db, datum key)], [], [-lqdbm -lgdbm_compat])
18 PSI_DECL(datum dbm_firstkey, [(DBM *db)], [], [-lqdbm -lgdbm_compat])
19 PSI_DECL(datum dbm_nextkey, [(DBM *db)], [], [-lqdbm -lgdbm_compat])
20 PSI_DECL(DBM *dbm_open, [(char *file, int open_flags, mode_t file_mode)], [], [-lqdbm -lgdbm_compat])
21 PSI_DECL(int dbm_store, [(DBM *db, datum key, datum content, int store_mode)], [], [-lqdbm -lgdbm_compat])
22
23 # See http://www.gnu.org.ua/software/gdbm/manual/html_section/gdbm_19.html
24 if expr X"$LIBS" : "X.*-lgdbm_compat" >/dev/null; then
25 LIBS="-lgdbm $LIBS"
26 fi
27 }