Index: LMDZ4/branches/LMDZ4-dev/makegcm_fcm
===================================================================
--- LMDZ4/branches/LMDZ4-dev/makegcm_fcm	(revision 1135)
+++ LMDZ4/branches/LMDZ4-dev/makegcm_fcm	(revision 1136)
@@ -27,4 +27,5 @@
 set io=ioipsl
 set LIBPREFIX=""
+set fcm_path=none
 
 set LMDGCM=`/bin/pwd`
@@ -72,4 +73,5 @@
 [-filtre NOMFILTRE]        : prend le filtre dans libf/NOMFILTRE (def: filtrez)
 [-link LINKS]              : liens optionels avec d'autres librairies
+[-fcm_path path]           : chemin pour fcm (def: le chemin est suppose deja exister dans le PATH)
  -m arch                   : nom de l'architecture cible
  exec                      : exécutable généré
@@ -132,4 +134,7 @@
         set LIB="$LIB $2" ; shift ; shift ; goto top
 
+     case -fcm_path
+       set fcm_path=$2 ; shift ; shift ; goto top
+
      case -m
        set arch=$2 ; shift ; shift ; goto top
@@ -141,4 +146,13 @@
 endif
 
+###############################################################
+# mettre le chemin du fcm dans le path
+###############################################################
+if  ( "$fcm_path" != 'none' ) then
+    setenv PATH ${fcm_path}:${PATH}
+endif
+
+echo "Chemin du fcm utlise :" 
+which fcm
 
 ###############################################################
Index: LMDZ4/trunk/makegcm_fcm
===================================================================
--- LMDZ4/trunk/makegcm_fcm	(revision 1135)
+++ LMDZ4/trunk/makegcm_fcm	(revision 1136)
@@ -28,4 +28,5 @@
 set io=ioipsl
 set LIBPREFIX=""
+set fcm_path=none
 
 set LMDGCM=`/bin/pwd`
@@ -73,4 +74,5 @@
 [-filtre NOMFILTRE]        : prend le filtre dans libf/NOMFILTRE (def: filtrez)
 [-link LINKS]              : liens optionels avec d'autres librairies
+[-fcm_path path]           : chemin pour fcm (def: le chemin est suppose deja exister dans le PATH)
  -m arch                   : nom de l'architecture cible
  exec                      : exécutable généré
@@ -133,4 +135,7 @@
         set LIB="$LIB $2" ; shift ; shift ; goto top
 
+     case -fcm_path
+       set fcm_path=$2 ; shift ; shift ; goto top
+
      case -m
        set arch=$2 ; shift ; shift ; goto top
@@ -142,4 +147,13 @@
 endif
 
+###############################################################
+# mettre le chemin du fcm dans le path
+###############################################################
+if  ( "$fcm_path" != 'none' ) then
+    setenv PATH ${fcm_path}:${PATH}
+endif
+
+echo "Chemin du fcm utlise :" 
+which fcm
 
 ###############################################################
