1F77(3) User Contributed Perl Documentation F77(3)
2
3
4
6 ExtUtils::F77 - Simple interface to F77 libs
7
9 This module tries to figure out how to link C programs with Fortran
10 subroutines on your system. Basically one must add a list of Fortran
11 runtime libraries. The problem is their location and name varies with
12 each OS/compiler combination!
13
14 This module tries to implement a simple 'rule-of-thumb' database for
15 various flavours of UNIX systems. A simple self-documenting Perl data‐
16 base of knowledge/code for figuring out how to link for various combi‐
17 nations of OS and compiler is embedded in the modules Perl code. Please
18 help save the world by sending database entries for your system to
19 karl_pgplot@mac.com
20
21 The library list which the module returns can be explicitly overridden
22 by setting the environment variable F77LIBS, e.g.
23
24 % setenv F77LIBS "-lfoo -lbar"
25 % perl Makefile.PL
26 ...
27
29 use ExtUtils::F77; # Automatic guess
30 use ExtUtils::F77 qw(sunos); # Specify system
31 use ExtUtils::F77 qw(linux g77); # Specify system and compiler
32 $fortranlibs = ExtUtils::F77->runtime;
33
35 The following methods are provided:
36
37 * runtime
38 Returns a list of F77 runtime libraries.
39
40 $fortranlibs = ExtUtils::F77->runtime;
41
42 * runtimeok
43 Returns TRUE only if runtime libraries have been found success‐
44 fully.
45
46 * trail_
47 Returns true if F77 names have trailing underscores.
48
49 * compiler
50 Returns command to execute the compiler (e.g. 'f77').
51
52 * cflags
53 Returns compiler flags.
54
55 * testcompiler
56 Test to see if compiler actually works.
57
58 More methods will probably be added in the future.
59
61 Karl Glazebrook (kgb@aaoepp.aao.GOV.AU).
62
63
64
65perl v5.8.8 2007-04-02 F77(3)