26 |
fi |
fi |
27 |
|
|
28 |
if test -d /usr/include/netcdf-3 ; then |
if test -d /usr/include/netcdf-3 ; then |
29 |
|
#-- some FedoraCore standard location used to be "netcdf-3" |
30 |
INCLUDES='-I/usr/include/netcdf-3' |
INCLUDES='-I/usr/include/netcdf-3' |
31 |
if test -d /usr/lib64/netcdf-3 ; then |
if test -d /usr/lib64/netcdf-3 ; then |
32 |
if test -f /usr/lib64/netcdf-3/libnetcdf_g77.a ; then |
if test -f /usr/lib64/netcdf-3/libnetcdf_g77.a ; then |
42 |
fi |
fi |
43 |
fi |
fi |
44 |
elif test -d /usr/include/netcdf ; then |
elif test -d /usr/include/netcdf ; then |
45 |
|
#-- allows a "compat"(gcc 3.4) 2nd version of libs for g77 , next to the |
46 |
|
# standard one (for gfortran, gcc 4.x). But uses same include files. |
47 |
INCLUDES='-I/usr/include/netcdf' |
INCLUDES='-I/usr/include/netcdf' |
48 |
|
if test -d /usr/lib64/netcdf34 ; then |
49 |
|
if test -f /usr/lib64/netcdf34/libnetcdf_g77.a ; then |
50 |
|
LIBS='-L/usr/lib64/netcdf34 -lnetcdf_g77' |
51 |
|
else |
52 |
|
LIBS='-L/usr/lib64/netcdf34' |
53 |
|
fi |
54 |
|
elif test -d /usr/lib/netcdf34 ; then |
55 |
|
if test -f /usr/lib/netcdf34/libnetcdf_g77.a ; then |
56 |
|
LIBS='-L/usr/lib/netcdf34 -lnetcdf_g77' |
57 |
|
else |
58 |
|
LIBS='-L/usr/lib/netcdf34' |
59 |
|
fi |
60 |
|
fi |
61 |
elif test -d /usr/local/netcdf ; then |
elif test -d /usr/local/netcdf ; then |
62 |
INCLUDES='-I/usr/local/netcdf/include' |
INCLUDES='-I/usr/local/netcdf/include' |
63 |
LIBS='-L/usr/local/netcdf/lib' |
LIBS='-L/usr/local/netcdf/lib' |