GCC supports extensions .f03 and .F03 now:
<http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01453.html>
Also I noticed we don't support .F90 and .F95 yet.

I've applied these patches to the branches.  Note that I'm putting the
copyright years in HEAD's ltmain.m4sh in one line, so that
  ./libtool --version

looks nice.  Somebody should fix the func_version sed script to allow
multiple lines in copyright year lists to avoid long lines; I'm not
bothered enough right now.

Cheers,
Ralf
2007-01-21  Ralf Wildenhues  <[EMAIL PROTECTED]>
 
	* libltdl/config/ltmain.m4sh (func_mode_compile): Accept
	suffixes matching `[fF][09].', for Fortran.
	* tests/suffix.test: Also test F90, F95, f03, F03.

Index: libltdl/config/ltmain.m4sh
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/config/ltmain.m4sh,v
retrieving revision 1.56
diff -u -r1.56 ltmain.m4sh
--- libltdl/config/ltmain.m4sh	22 Oct 2006 14:10:33 -0000	1.56
+++ libltdl/config/ltmain.m4sh	21 Jan 2007 14:52:42 -0000
@@ -4,8 +4,7 @@
 # ltmain.sh (GNU @PACKAGE@@TIMESTAMP@) @VERSION@
 # Written by Gordon Matzigkeit <[EMAIL PROTECTED]>, 1996
 
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006
-# Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
@@ -1312,7 +1311,7 @@
     *.class) xform=class ;;
     *.cpp) xform=cpp ;;
     *.cxx) xform=cxx ;;
-    *.f9?) xform=f9. ;;
+    *.[[fF]][[09]]?) xform='[[fF]][[09]].' ;;
     *.for) xform=for ;;
     *.java) xform=java ;;
     *.obj) xform=obj ;;
Index: tests/suffix.test
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/suffix.test,v
retrieving revision 1.12
diff -u -r1.12 suffix.test
--- tests/suffix.test	20 Sep 2006 19:08:22 -0000	1.12
+++ tests/suffix.test	21 Jan 2007 14:52:42 -0000
@@ -1,7 +1,7 @@
 #! /bin/sh
 # suffix.test - check that libtool knows how to transform source suffices.
 
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2007  Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
@@ -23,7 +23,7 @@
 
 # Extensions taken from the ones that Automake recognizes, plus Objective C,
 # and GNU Ada.
-extensions="C F S ada adb ads asm c c++ cc cpp cxx f f90 f95 for m s"
+extensions="C F S ada adb ads asm c c++ cc cpp cxx f f90 F90 f95 F95 f03 F03 for m s"
 bad_names="foo."
 
 . tests/defs || exit 1
2007-01-21  Ralf Wildenhues  <[EMAIL PROTECTED]>
 
	* ltmain.in (compile mode): Accept suffixes matching
	`[fF][09].', for Fortran.
	* tests/suffix.test: Also test f90, F90, f95, F95, f03, F03.
 
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltmain.in,v
retrieving revision 1.334.2.136
diff -u -r1.334.2.136 ltmain.in
--- ltmain.in	10 Dec 2006 08:41:42 -0000	1.334.2.136
+++ ltmain.in	21 Jan 2007 14:55:21 -0000
@@ -1,8 +1,8 @@
 # ltmain.sh - Provide generalized library-building support services.
 # NOTE: Changing this file will not affect anything until you rerun configure.
 #
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006
-# Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
+# 2007  Free Software Foundation, Inc.
 # Originally by Gordon Matzigkeit <[EMAIL PROTECTED]>, 1996
 #
 # This program is free software; you can redistribute it and/or modify
@@ -485,7 +485,7 @@
     echo "\
 $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
 
-Copyright (C) 2006  Free Software Foundation, Inc.
+Copyright (C) 2007  Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
     exit $?
@@ -784,7 +784,7 @@
     *.class) xform=class ;;
     *.cpp) xform=cpp ;;
     *.cxx) xform=cxx ;;
-    *.f90) xform=f90 ;;
+    *.[fF][09]?) xform=[fF][09]. ;;
     *.for) xform=for ;;
     *.java) xform=java ;;
     *.obj) xform=obj ;;
Index: tests/suffix.test
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/suffix.test,v
retrieving revision 1.3
diff -u -r1.3 suffix.test
--- tests/suffix.test	30 Jun 2001 20:31:34 -0000	1.3
+++ tests/suffix.test	21 Jan 2007 14:55:21 -0000
@@ -3,7 +3,7 @@
 
 # Extensions taken from the ones that Automake recognizes, plus Objective C,
 # and GNU Ada.
-extensions="C F S ada adb ads asm c c++ cc cpp cxx f f90 for m s"
+extensions="C F S ada adb ads asm c c++ cc cpp cxx f f90 F90 f95 F95 f03 F03 for m s"
 bad_names="foo."
 
 # Test script header.

Reply via email to