# AC_CC_WARNINGS([ansi])
cc_ok=yes
+echo
+echo ---------------------------------------------
+echo testing Fortran
+echo ---------------------------------------------
+echo
+
+fortran_ok=no
+AC_PROG_F77
+AC_F77_LIBRARY_LDFLAGS
+AC_PROG_FC
+AC_FC_LIBRARY_LDFLAGS
+if test "X$FC" != "X" ; then
+ fortran_ok=yes
+fi
+
+dnl AM_CONDITIONAL( USE_GFORTRAN, [test "$F77" = "gfortran"])
+
+echo
+
dnl Library libdl :
AC_CHECK_LIB(dl,dlopen)
CHECK_MED
-
-AM_CONDITIONAL( USE_GFORTRAN, [test "$F77" = "gfortran"])
+CHECK_PLATFORM
echo
echo ---------------------------------------------
echo
echo Configure
-variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok qwt_ok Kernel_ok Geom_ok Med_ok"
+variables="cc_ok fortran_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok qwt_ok Kernel_ok Geom_ok Med_ok"
for var in $variables
do
# additionnal information to compil and link file
libMEFISTO2D_la_CPPFLAGS = \
$(CAS_CPPFLAGS) \
- $(KERNEL_CXXFLAGS)
+ $(KERNEL_CXXFLAGS) \
+ @PLATFORM_INCLUDES@
libMEFISTO2D_la_LDFLAGS = \
- $(KERNEL_LDFLAGS) -lSALOMELocalTrace
+ $(KERNEL_LDFLAGS) -lSALOMELocalTrace \
+ $(FCLIBS)
-if USE_GFORTRAN
-libMEFISTO2D_la_LDFLAGS += -lgfortran
-else !USE_GFORTRAN
-libMEFISTO2D_la_LDFLAGS += -lg2c
-endif
+#if USE_GFORTRAN
+#libMEFISTO2D_la_LDFLAGS += -lgfortran
+#else !USE_GFORTRAN
+#libMEFISTO2D_la_LDFLAGS += -lg2c
+#endif
-I$(srcdir)/../SMESH \
-I$(srcdir)/../SMESHDS \
-I$(srcdir)/../SMDS \
- -I$(srcdir)/../Controls
+ -I$(srcdir)/../Controls \
+ @PLATFORM_INCLUDES@
libStdMeshers_la_LDFLAGS = \
../SMESH/libSMESHimpl.la \