diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-09-24 13:58:32 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-09-24 13:58:32 +0000 |
commit | cde86b16b8138dc4115f74abf9c90f18bd195746 (patch) | |
tree | 4ffd1408849585ce69bb6e3e15e1f1333b0c24e9 | |
parent | 0abc6b995971368066bf5d87350e0d1b0de9fe4d (diff) |
adding the pd-paths to LDFLAGS and INCLUDES is now done at the proper place (independent of NT hackz)
svn path=/trunk/externals/zexy/; revision=12443
-rw-r--r-- | src/configure.ac | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/configure.ac b/src/configure.ac index 5814f1f..cba0caa 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -59,20 +59,24 @@ fi if test $(uname | sed -e 's/^MINGW.*/NT/') = NT ; then LD=${CC} - LDFLAGS="-L${with_pd}/src -L${with_pd}/bin" EXT=dll fi +if test "x$with_pd" != "x"; then + if test -d "${with_pd}"; then + PDPATH=${with_pd} + fi + if test -d "${PDPATH}/src"; then + AC_MSG_RESULT([adding ${PDPATH}/src to INCLUDES]) + INCLUDES="-I${PDPATH}/src ${INCLUDES}" -if test "x$with_pd" != "x"; then - if test -d "${with_pd}/src"; then - AC_MSG_RESULT([adding ${with_pd}/src to INCLUDES]) - INCLUDES="-I${with_pd}/src ${INCLUDES}" + AC_MSG_RESULT([adding ${PDPATH}/src to LDFLAGS]) + LDFLAGS="-L${PDPATH}/src ${LDFLAGS}" fi - if test -d "${with_pd}/bin"; then - AC_MSG_RESULT([adding ${with_pd}/bin to LDFLAGS]) - LDFLAGS="-L${with_pd}/bin ${LDFLAGS}" + if test -d "${PDPATH}/bin"; then + AC_MSG_RESULT([adding ${PDPATH}/bin to LDFLAGS]) + LDFLAGS="-L${PDPATH}/bin ${LDFLAGS}" fi fi |