diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/configure.ac b/src/configure.ac index a0086fd..d0fc17e 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -73,11 +73,22 @@ if test "x$with_pd" != "x"; then AC_MSG_RESULT([adding ${PDPATH}/src to LDFLAGS]) LDFLAGS="-L${PDPATH}/src ${LDFLAGS}" + else + if test -d "${PDPATH}"; then + AC_MSG_RESULT([adding ${PDPATH} to INCLUDES]) + INCLUDES="-I${PDPATH} ${INCLUDES}" + fi fi if test -d "${PDPATH}/bin"; then AC_MSG_RESULT([adding ${PDPATH}/bin to LDFLAGS]) LDFLAGS="-L${PDPATH}/bin ${LDFLAGS}" + else + if test -d "${PDPATH}"; then + AC_MSG_RESULT([adding ${PDPATH} to LDFLAGS]) + LDFLAGS="-L${PDPATH} ${LDFLAGS}" + fi fi + fi if test $includedir |