aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-10-02 15:24:48 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-10-02 15:24:48 +0000
commit5ce23e17b5ecae76f6bb4ff3581b3e4f79a5f0a9 (patch)
tree88b0bbe1db167ec86d1cff9b9f8292cc109e85e7 /src
parent6f3c94e6da9a18301c6fa7cd588886daef5ea84f (diff)
removed redundant tests.
hopefully a bit more stable in detecting w32-setups svn path=/trunk/externals/zexy/; revision=6061
Diffstat (limited to 'src')
-rw-r--r--src/configure.ac72
1 files changed, 27 insertions, 45 deletions
diff --git a/src/configure.ac b/src/configure.ac
index 2851a7d..7e68f05 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -51,6 +51,30 @@ dnl LATER: find a more generic way to generate the .._LIBRARY define
fi
+if test "x$with_pd" != "x"; then
+ if test -d "${with_pd}/src"; then
+ INCLUDES="-I${with_pd}/src ${INCLUDES}"
+ fi
+ if test -d "${with_pd}/bin"; then
+ LDFLAGS="-L${with_pd}/bin ${LDFLAGS}"
+ fi
+fi
+
+if test $includedir
+then
+ for id in $includedir
+ do
+ if test -d $id; then INCLUDES="-I$id $INCLUDES"; fi
+ done
+fi
+if test $libdir
+then
+ for id in $libdir
+ do
+ if test -d $id; then LDFLAGS="-L$id $LDFLAGS"; fi
+ done
+fi
+
dnl Checks for libraries.
dnl Replace `main' with a function in -lc:
AC_CHECK_LIB(c, main)
@@ -79,41 +103,6 @@ then
fi
fi
-if test "x$with_pd" != "x"; then
- if test -d "${with_pd}/src"; then
- INCLUDES="-I${with_pd}/src ${INCLUDES}"
- fi
- if test -d "${with_pd}/bin"; then
- LFLAGS="-L${with_pd}/bin ${LFLAGS}"
- fi
-fi
-
-if test $includedir
-then
- for id in $includedir
- do
- if test -d $id; then INCLUDES="-I$id $INCLUDES"; fi
- done
-fi
-if test $libdir
-then
- for id in $libdir
- do
- if test -d $id; then LFLAGS="-L$id $LFLAGS"; fi
- done
-fi
-
-if test $includedir
-then
- for id in $includedir
- do
- if test -d $id
- then
- INCLUDES="-I$id $INCLUDES"
- fi
- done
-fi
-
AC_CHECK_LIB(pd, nullfn)
dnl Checks for header files.
@@ -310,20 +299,12 @@ fi
if test `uname | sed -e 's/^MINGW.*/NT/'` = NT ;
then
LD=${CC}
- LDFLAGS="-shared pd.dll"
+# LDFLAGS="-shared pd.dll"
EXT=dll
-else
- PDLIBDIR="/lib/pd"
-dnl this is handled by AC_CHECK_LIB above
fi
AC_CHECK_LDFLAGS([-shared pd.dll])
-
-
-
-
-
if test `uname -s` = IRIX64;
then
LDFLAGS="-n32 -DUNIX -DIRIX -DN32 -woff 1080,1064,1185 \
@@ -411,7 +392,8 @@ AC_CHECK_HEADERS(m_pd.h, , AC_ERROR([m_pd.h is desperately needed!
"--includedir=</path/to/pd/src/>"]))
LFLAGS=${LDFLAGS}
-
AC_OUTPUT(Make.config)
+touch zexyconf.h
+
#rm -f conftest.*