Skip to content

Commit 12c05ee

Browse files
committed
Merge pull request #5395
4c69ebe Add /opt/local/include/db48 only if it exists. (Pavel Janík)
2 parents 0a1d03c + 4c69ebe commit 12c05ee

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

configure.ac

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,12 @@ case $host in
244244
AC_CHECK_PROG([PORT],port, port)
245245
if test x$PORT = xport; then
246246
dnl add default macports paths
247-
CPPFLAGS="$CPPFLAGS -isystem /opt/local/include -I/opt/local/include/db48"
248-
LIBS="$LIBS -L/opt/local/lib -L/opt/local/lib/db48"
247+
CPPFLAGS="$CPPFLAGS -isystem /opt/local/include"
248+
LIBS="$LIBS -L/opt/local/lib"
249+
if test -d /opt/local/include/db48; then
250+
CPPFLAGS="$CPPFLAGS -I/opt/local/include/db48"
251+
LIBS="$LIBS -L/opt/local/lib/db48"
252+
fi
249253
fi
250254

251255
AC_CHECK_PROG([BREW],brew, brew)

0 commit comments

Comments
 (0)