summaryrefslogtreecommitdiff
path: root/m4/intel_compiler.m4
diff options
context:
space:
mode:
authorShashank2017-05-29 12:40:26 +0530
committerShashank2017-05-29 12:40:26 +0530
commit0345245e860375a32c9a437c4a9d9cae807134e9 (patch)
treead51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /m4/intel_compiler.m4
downloadscilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip
CMSCOPE changed
Diffstat (limited to 'm4/intel_compiler.m4')
-rwxr-xr-xm4/intel_compiler.m436
1 files changed, 36 insertions, 0 deletions
diff --git a/m4/intel_compiler.m4 b/m4/intel_compiler.m4
new file mode 100755
index 000000000..a1d924864
--- /dev/null
+++ b/m4/intel_compiler.m4
@@ -0,0 +1,36 @@
+dnl SCI_INTEL_COMPILER
+dnl ------------------------------------------------------
+dnl Set compilation options for intel C/Fortran compilers
+dnl
+
+AC_DEFUN([SCI_INTEL_COMPILER],
+[
+
+ CFLAGS=" $CFLAGS -mp"
+ # -cm remove comments displays, -w90 -w95 remove warnings abort f90 f95 non standard
+
+ FFLAGS=" $FFLAGS -cm -w90 -w95 -mp"
+
+
+ case "$host" in
+ i*86-*-linux-gnu | *-pc-linux-gnu )
+ # -pc64 : double precision
+ EXTRA_OPTIONS=" -pc64 -ffnalias -falias"
+ ;;
+ esac
+
+ if test "$enable_debug_C" = yes; then
+ CFLAGS="-g $CFLAGS $EXTRA_OPTIONS"
+ else
+ CFLAGS="-O -DNDEBUG $CFLAGS "
+ fi
+
+ if test "$enable_debug_fortran" = yes; then
+ FFLAGS="-g $FFLAGS $EXTRA_OPTIONS"
+ else
+ FFLAGS="-O $FFLAGS "
+ fi
+
+ # TODO : voir si obligatoire vu que c'est en partie le boulot de AC_PROG_C
+
+])dnl SCI_INTEL_COMPILER