Update of /cvsroot/monetdb/buildtools/conf
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28696/conf

Modified Files:
      Tag: MonetDB_1-20
        MonetDB.m4 
Log Message:

(kind of) fixing bug
[ 1827627 ] --enable-bits doesn't work with icc
http://sourceforge.net/tracker/index.php?func=detail&aid=1827627&group_id=56967&atid=482468

Intel's icc does not provide a command line option to switch between 32- & 
64-bit compilation;
hence, configure now detects if icc is used together with "--enable-bits=",
and if so, bails-out, advising the user to chose the proper 32- or 64-bit 
version of icc
using variables CC & PATH.


Index: MonetDB.m4
===================================================================
RCS file: /cvsroot/monetdb/buildtools/conf/MonetDB.m4,v
retrieving revision 1.37.2.14
retrieving revision 1.37.2.15
diff -u -d -r1.37.2.14 -r1.37.2.15
--- MonetDB.m4  9 Nov 2007 07:51:28 -0000       1.37.2.14
+++ MonetDB.m4  21 Nov 2007 15:07:01 -0000      1.37.2.15
@@ -469,16 +469,17 @@
 AC_ARG_ENABLE(bits,
        AC_HELP_STRING([--enable-bits=BITS],
                [specify number of bits (32 or 64)]), [
-case $enableval in
-32)    case "$host" in
-       ia64*)  AC_MSG_ERROR([we do not support 32 bits on $host, yet]);;
-       esac
-       ;;
-64)    case "$host-$GCC-$CC" in
-       i?86*-*-*)  AC_MSG_ERROR([$host does not support 64 bits]);;
-       esac
+case "$host-$GCC-$CC-$enableval" in
+ia64*-*-*-32)
+       AC_MSG_ERROR([we do not support 32 bits on $host]);;
+i?86*-*-*-64)
+       AC_MSG_ERROR([$host does not support 64 bits]);;
+*--icc*-32|*--icc*-64)
+       AC_MSG_ERROR([icc does not support a command line option to switch 
between 32- & 64-bit compilation; use CC & PATH (instead of 
--enable-bits=$enableval) to point to the $enableval-bit version of icc]);;
+*-*-*-32|*-*-*-64)
        ;;
-*)     AC_MSG_ERROR(--enable-bits argument must be either 32 or 64);;
+*)     
+       AC_MSG_ERROR(--enable-bits argument must be either 32 or 64);;
 esac
 bits=$enableval
 ])
@@ -531,6 +532,8 @@
 yes-*-darwin8*-powerpc*-*)
        CC="$CC -m$bits"
        ;;
+*)
+       AC_MSG_ERROR([case "$GCC-$CC-$host_os-$host-$bits" not handled with 
--enable-bits])
 esac
 else
        AC_CHECK_SIZEOF(long)


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to