[PD-cvs] externals/iem/iemmatrix/src configure.ac,1.2,1.3
IOhannes m zmölnig
zmoelnig at users.sourceforge.net
Thu Jun 9 21:07:16 CEST 2005
Update of /cvsroot/pure-data/externals/iem/iemmatrix/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20179/src
Modified Files:
configure.ac
Log Message:
more support for mingw (just give the "host" at configure-time)
Index: configure.ac
===================================================================
RCS file: /cvsroot/pure-data/externals/iem/iemmatrix/src/configure.ac,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** configure.ac 20 May 2005 12:29:05 -0000 1.2
--- configure.ac 9 Jun 2005 19:07:13 -0000 1.3
***************
*** 65,71 ****
AC_CHECK_FUNCS(select socket strerror)
LD=${LD:=$CC}
! STRIP=${STRIP:=strip}
DFLAGS=""
--- 65,124 ----
AC_CHECK_FUNCS(select socket strerror)
+ dnl check for "-mms-bitfields" cflag
+ dnl why is there no generic compiler-check for a given flag ?
+ dnl it would make things so easy: AC_CHECK_FLAG([-mms-bitfields],,)
+ AC_MSG_CHECKING("ms-bitfields")
+ cat > conftest.c << EOF
+ int main(){
+ return 0;
+ }
+ EOF
+ if ${CC} ${INCLUDES} ${DFLAGS} -o conftest.o conftest.c ${CFLAGS} -mms-bitfields > /dev/null 2>&1
+ then
+ echo "yes"
+ CFLAGS="${CFLAGS} -mms-bitfields"
+ else
+ echo "no"
+ fi
+
+
+
+
+ dnl isn't there a better way to check for good linker/stripper ?
+ dnl if we don't have $LD set, we set it to $(CC)
+ dnl LD=${LD:=$CC}
+ if test "x$LD" = "x"
+ then
+ if test "x$host" != "x"
+ then
+ LD=${host}-ld
+ if $(which ${LD} > /dev/null)
+ then
+ :
+ else
+ LD=""
+ fi
+ fi
+ fi
LD=${LD:=$CC}
!
! dnl if we don't have $STRIP set, we set it to ${host}-strip or strip
! if test "x$STRIP" = "x"
! then
! if test "x$host" != "x"
! then
! STRIP=${host}-strip
! if $(which ${host}-strip > /dev/null)
! then
! :
! else
! STRIP="echo fake strip"
! fi
! else
! STRIP=strip
! fi
! fi
! dnl STRIP=${STRIP:=strip}
DFLAGS=""
More information about the Pd-cvs
mailing list