diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-08-11 08:32:09 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-08-11 08:32:09 +0000 |
commit | 8d41b3c765b4543e0946d1621b5b396d2fe6fedf (patch) | |
tree | fc1319bff0f39561be5a36848ddedbaa00d5c960 | |
parent | 2e65b41503e4b86c3b8a2ef24472a52ac31726e1 (diff) | |
download | mailfromd-8d41b3c765b4543e0946d1621b5b396d2fe6fedf.tar.gz mailfromd-8d41b3c765b4543e0946d1621b5b396d2fe6fedf.tar.bz2 |
Update
git-svn-id: file:///svnroot/mailfromd/trunk@1503 7a8a7f39-df28-0410-adc6-e0d955640f24
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.ac | 16 |
2 files changed, 18 insertions, 3 deletions
@@ -1,3 +1,8 @@ | |||
1 | 2007-08-11 Sergey Poznyakoff <gray@gnu.org.ua> | ||
2 | |||
3 | * configure.ac (check_slackware_bdb): Add heuristics to find the | ||
4 | correct include directory. | ||
5 | |||
1 | 2007-08-10 Sergey Poznyakoff <gray@gnu.org.ua> | 6 | 2007-08-10 Sergey Poznyakoff <gray@gnu.org.ua> |
2 | 7 | ||
3 | * src/gram.y (on_cond): Fix coredump if target address is not | 8 | * src/gram.y (on_cond): Fix coredump if target address is not |
diff --git a/configure.ac b/configure.ac index 3f449a2f..2be026fd 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -231,7 +231,17 @@ AC_SUBST(MU_COMMON_INCLUDES) | |||
231 | check_slackware_bdb() { | 231 | check_slackware_bdb() { |
232 | dir=db`echo $1|tr -d '.'` | 232 | dir=db`echo $1|tr -d '.'` |
233 | save_CPPFLAGS=$CPPFLAGS | 233 | save_CPPFLAGS=$CPPFLAGS |
234 | CPPFLAGS="$CPPFLAGS -I/usr/include/$dir" | 234 | while test -n "$dir" |
235 | do | ||
236 | if test -d /usr/include/$dir; then | ||
237 | CPPFLAGS="$CPPFLAGS -I/usr/include/$dir" | ||
238 | break | ||
239 | elif test -d /usr/local/include/$dir; then | ||
240 | CPPFLAGS="$CPPFLAGS -I/usr/local/include/$dir" | ||
241 | break | ||
242 | fi | ||
243 | dir=`expr "$dir" : '\(.*\)[[0-9]]$'` | ||
244 | done | ||
235 | check_bdb $1 db-$1 db_create | 245 | check_bdb $1 db-$1 db_create |
236 | CPPFLAGS=$save_CPPFLAGS | 246 | CPPFLAGS=$save_CPPFLAGS |
237 | if test $status_dbm = "$1"; then | 247 | if test $status_dbm = "$1"; then |
@@ -251,7 +261,7 @@ try_dbm() { | |||
251 | status_dbm=GDBM]);; | 261 | status_dbm=GDBM]);; |
252 | 262 | ||
253 | BDB2) check_bdb 2 db db_open | 263 | BDB2) check_bdb 2 db db_open |
254 | test -n "$status_dbm" && status_dbm="Berkeley DB v. $status_dbm";; | 264 | test "$status_dbm" != "no" && status_dbm="Berkeley DB v. $status_dbm";; |
255 | 265 | ||
256 | BDB) for version in 4 3 2 | 266 | BDB) for version in 4 3 2 |
257 | do | 267 | do |
@@ -283,7 +293,7 @@ try_dbm() { | |||
283 | done | 293 | done |
284 | ;; | 294 | ;; |
285 | esac | 295 | esac |
286 | test -n "$status_dbm" && status_dbm="Berkeley DB v. $status_dbm" | 296 | test "$status_dbm" != "no" && status_dbm="Berkeley DB v. $status_dbm" |
287 | ;; | 297 | ;; |
288 | esac | 298 | esac |
289 | } | 299 | } |