Update of /cvsroot/pure-data/externals/zexy/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7708
Modified Files: Makefile.in configure.in Log Message: initial support for icc (no optimization-flags yet)
Index: Makefile.in =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/src/Makefile.in,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile.in 22 Mar 2005 20:58:20 -0000 1.1 --- Makefile.in 13 Apr 2005 17:24:22 -0000 1.2 *************** *** 20,25 **** .SUFFIXES: .$(EXT)
PDCFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) $(LFLAGS) $(AFLAGS) ! CFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS)
LIBS = @LIBS@ --- 20,26 ---- .SUFFIXES: .$(EXT)
+ # ICCFLAGS=-march=pentiumiii -axK PDCFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) $(LFLAGS) $(AFLAGS) ! CFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) @CFLAGS@
LIBS = @LIBS@
Index: configure.in =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/src/configure.in,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** configure.in 12 Apr 2005 12:01:47 -0000 1.4 --- configure.in 13 Apr 2005 17:24:22 -0000 1.5 *************** *** 2,9 **** --- 2,23 ---- AC_INIT(zexy.c)
+ dnl for now i can test ICC only on linux + dnl LATER we might want to use it for other platforms (namely:windoze) too + + if test `uname -s` = Linux; + then + AC_ARG_ENABLE(icc, [ --enable-icc enable ICC-support]) + if test "$enable_icc" = "yes"; then + CC=icc + LD=icc + fi + fi + + dnl Checks for programs. AC_PROG_CC
AC_SUBST(STK) + AC_SUBST(CFLAGS) AC_SUBST(DFLAGS) AC_SUBST(LFLAGS) *************** *** 20,23 **** --- 34,39 ---- AC_ARG_WITH(pdversion, [ --with-pdversion=<ver> enforce a certain pd-version (e.g. 0.37)]) AC_ARG_ENABLE(lpt, [ --enable-lpt enable parallelport-support]) + #AC_ARG_ENABLE(icc, [ --enable-icc enable ICC-support]) +
if test $includedir *************** *** 53,58 **** AC_CHECK_FUNCS(select socket strerror)
- LD=ld DFLAGS="-DZEXY_LIBRARY"
--- 69,75 ---- AC_CHECK_FUNCS(select socket strerror)
+ dnl ifwe don't have $LD set, we set it to "ld" + LD=${LD:-ld}
DFLAGS="-DZEXY_LIBRARY"
*************** *** 65,68 **** --- 82,97 ---- EXT=pd_linux STRIPFLAGS="--strip-unneeded" + if test "$enable_icc" = "yes"; then + CC=icc + fi + + if test $CC = "icc" + then + LD=$CC + LFLAGS="-ip -ipo_obj "$LFLAGS + CFLAGS="-ip -ipo_obj "$CFLAGS + else + : + fi fi
*************** *** 174,183 **** EOF
! if $CC $INCLUDES -o conftest.o conftest.c > /dev/null 2>&1 then ZEXY_VERSION=`./conftest.o` echo "$ZEXY_VERSION" else ! ZEXY_VERSION="" echo "(unknown)" fi --- 203,212 ---- EOF
! if $CC $INCLUDES $DFLAGS -o conftest.o conftest.c > /dev/null 2>&1 then ZEXY_VERSION=`./conftest.o` echo "$ZEXY_VERSION" else ! ZEXY_VERSION="X" echo "(unknown)" fi