]> git.pld-linux.org Git - packages/inn.git/blame - inn-db.patch
- fixed previous change
[packages/inn.git] / inn-db.patch
CommitLineData
45c9b47c
JB
1diff -Nur inn-2.4.0.orig/authprogs/ckpasswd.c inn-2.4.0/authprogs/ckpasswd.c
2--- inn-2.4.0.orig/authprogs/ckpasswd.c 2003-05-09 06:25:27.000000000 +0200
3+++ inn-2.4.0/authprogs/ckpasswd.c 2003-06-29 13:03:12.000000000 +0200
4@@ -26,13 +26,8 @@
5 #include <grp.h>
03da3507 6
45c9b47c
JB
7 #if HAVE_DBM
8-# if HAVE_NDBM_H
03da3507 9-# include <ndbm.h>
45c9b47c
JB
10-# elif HAVE_GDBM_NDBM_H
11-# include <gdbm-ndbm.h>
12-# elif HAVE_DB1_NDBM_H
13-# include <db1/ndbm.h>
03da3507 14-# endif
45c9b47c
JB
15+# define DB_DBM_HSEARCH 1
16+# include <db.h>
17 # define OPT_DBM "d:"
18 #else
19 # define OPT_DBM ""
20diff -Nur inn-2.4.0.orig/configure.in inn-2.4.0/configure.in
21--- inn-2.4.0.orig/configure.in 2003-05-09 06:25:27.000000000 +0200
22+++ inn-2.4.0/configure.in 2003-06-29 13:04:52.000000000 +0200
23@@ -824,8 +824,9 @@
24 dnl Search for various additional libraries used by portions of INN.
25 INN_SEARCH_AUX_LIBS(crypt, crypt, CRYPT_LIB)
26 INN_SEARCH_AUX_LIBS(getspnam, shadow, SHADOW_LIB)
27-INN_SEARCH_AUX_LIBS(dbm_open, ndbm dbm, DBM_LIB,
28- [AC_DEFINE(HAVE_DBM, 1, [Define if you have a dbm library.])])
f02d900e 29+DBM_LIB="-ldb"
45c9b47c
JB
30+AC_SUBST(DBM_LIB)
31+AC_DEFINE(HAVE_DBM, 1, [Define if you have a dbm library.])
32 INN_SEARCH_AUX_LIBS(pam_start, pam, PAM_LIB,
33 [AC_DEFINE(HAVE_PAM, 1, [Define if you have PAM.])])
f02d900e 34
45c9b47c
JB
35@@ -1008,17 +1009,11 @@
36 AC_HEADER_SYS_WAIT
f02d900e
JR
37
38 dnl Generic checks for header files.
45c9b47c
JB
39-AC_CHECK_HEADERS(crypt.h inttypes.h limits.h ndbm.h pam/pam_appl.h stdbool.h \
40+AC_CHECK_HEADERS(crypt.h inttypes.h limits.h pam/pam_appl.h stdbool.h \
41 stddef.h stdint.h string.h sys/bitypes.h sys/filio.h \
42 sys/loadavg.h sys/param.h sys/select.h sys/sysinfo.h \
43 sys/time.h unistd.h)
03da3507 44
2566fb4c 45-dnl Some Linux systems have db1/ndbm.h instead of ndbm.h. Others have
45c9b47c 46-dnl gdbm-ndbm.h.
f02d900e 47-if test x"$ac_cv_header_ndbm_h" = xno ; then
2566fb4c 48- AC_CHECK_HEADERS(db1/ndbm.h gdbm-ndbm.h)
f02d900e 49-fi
03da3507 50-
45c9b47c
JB
51 dnl Check to see if herrno is declared.
52 AC_DEFUN([INN_NEED_HERRNO_DECLARATION],
53 [AC_CACHE_CHECK([whether h_errno must be declared], inn_cv_herrno_need_decl,
This page took 0.089351 seconds and 4 git commands to generate.