diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-12-10 08:16:29 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-12-10 08:16:42 +0100 |
commit | 12c05ee938d36b300c626c136e1b28d4cf83d25c (patch) | |
tree | cac10e1385694697c2982ac36ed7080cb52a97f0 | |
parent | 0a1d03ca5265293e6419b0ffb68d277da6b1d9a0 (diff) | |
parent | 4c69ebed44789be056a7b713bed43e5d3b3a5542 (diff) |
Merge pull request #5395
4c69ebe Add /opt/local/include/db48 only if it exists. (Pavel JanÃk)
-rw-r--r-- | configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 9814197af3..c4c21eaf4f 100644 --- a/configure.ac +++ b/configure.ac @@ -244,8 +244,12 @@ case $host in AC_CHECK_PROG([PORT],port, port) if test x$PORT = xport; then dnl add default macports paths - CPPFLAGS="$CPPFLAGS -isystem /opt/local/include -I/opt/local/include/db48" - LIBS="$LIBS -L/opt/local/lib -L/opt/local/lib/db48" + CPPFLAGS="$CPPFLAGS -isystem /opt/local/include" + LIBS="$LIBS -L/opt/local/lib" + if test -d /opt/local/include/db48; then + CPPFLAGS="$CPPFLAGS -I/opt/local/include/db48" + LIBS="$LIBS -L/opt/local/lib/db48" + fi fi AC_CHECK_PROG([BREW],brew, brew) |