Update of /cvsroot/pure-data/externals/iem/iemmatrix/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11904/src
Modified Files: configure.ac Log Message: eased cross-compilation
Index: configure.ac =================================================================== RCS file: /cvsroot/pure-data/externals/iem/iemmatrix/src/configure.ac,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** configure.ac 13 Oct 2005 11:56:36 -0000 1.7 --- configure.ac 15 Dec 2005 16:11:15 -0000 1.8 *************** *** 21,25 **** AC_ARG_WITH(version, [ --with-version=<ver> enforce a certain iemmatrix-version (e.g. 0.1)]) AC_ARG_WITH(extension, [ --with-extension=<ext> enforce a certain extension for the dynamic library (e.g. dll)]) !
dnl Checks for libraries. --- 21,26 ---- AC_ARG_WITH(version, [ --with-version=<ver> enforce a certain iemmatrix-version (e.g. 0.1)]) AC_ARG_WITH(extension, [ --with-extension=<ext> enforce a certain extension for the dynamic library (e.g. dll)]) ! AC_ARG_WITH(pdpath, [ --with-pd=</path/to/pd> where to look for pd-headers and and -libs]) ! AC_ARG_ENABLE(PIC, [ --disable-PIC disable compilation with PIC-flag])
dnl Checks for libraries. *************** *** 36,41 ****
! if test $includedir ! then for id in $includedir do --- 37,50 ----
! 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 ! LIBS="-L${with_pd}/bin ${LIBS}" ! fi ! fi ! ! if test "x$includedir" != "x"; then for id in $includedir do *************** *** 43,48 **** done fi ! if test $libdir ! then for id in $libdir do --- 52,56 ---- done fi ! if test "x$libdir" != "x"; then for id in $libdir do *************** *** 125,128 **** --- 133,154 ---- DFLAGS=""
+ + if test "x$enable_PIC" != "xno"; then + AC_MSG_CHECKING("PIC") + cat > conftest.c << EOF + int main(){ + return 0; + } + EOF + if ${CC} ${INCLUDES} ${DFLAGS} -o conftest.o conftest.c ${CFLAGS} -fPIC > /dev/null 2>&1 + then + echo "yes" + CFLAGS="${CFLAGS} -fPIC" + else + echo "no" + fi + fi + + dnl dnl OK, checks for machines are here now *************** *** 131,135 **** then LFLAGS="-export_dynamic -shared" ! CFLAGS="-fPIC $CFLAGS" EXT=pd_linux fi --- 157,161 ---- then LFLAGS="-export_dynamic -shared" ! CFLAGS="$CFLAGS" EXT=pd_linux fi