Unrecognized command line switch

HI,
I want to run a configure script like this:


export FC=/opt/pgi/linux86-64/6.1/bin/pgf90
export FFLAGS="-w -Mbounds -Mi4 -Mr8 -O2 -fPIC -Mlfs"
export CPPFLAGS="-DpgiFortran "
export NETCDF=/netcdf36/netcdf-3.6.1
export UDUNITS=/modeling/udunits-1.12.2
./configure --with-udunits=${UDUNITS} --with-netcdf=${NETCDF}


When I do so, I get the error message:



/opt/pgi/linux86-64/6.1/bin/pgf90 -M -w -Mbounds -Mi4 -Mr8 -O2 -fPIC -Mlfs -I. -I…/include -I/netcdf36/netcdf-3.6.1/include -I/modeling/udunits-1.12.2/include Compression_Class.F90 Contract.F90 Coordinate_Class.F90 DataFile_Class.F90 Error_Class.F90 Field1D_Class.F90 Field2D_Class.F90 Field3D_Class.F90 Field_Class.F90 Fields.F90 FillValue_Class.F90 Grid2D_Class.F90 Grid3D_Class.F90 IntegerValue_Class.F90 LogicalValue_Class.F90 RealValue_Class.F90 StringValue_Class.F90 Support.F90 TimeCoordinate_Class.F90 TimeSeries_Class.F90 Unit_Class.F90 Validity_Class.F90 Test.F90 >> Makefile.new
Compression_Class.F90:
PGF90-S-0011-Unrecognized command line switch: --w
Contract.F90:
PGF90-S-0011-Unrecognized command line switch: --w
Coordinate_Class.F90:
PGF90-S-0011-Unrecognized command line switch: --w


If I don’t put any export FFLAGS, then I get the same kind of error message with:
PGF90-S-0011-Unrecognized command line switch: --02

Any idea on how to correct this?
Thanks

Although, I’m not sure how it’s being added, removing the "-M " after pgf90 will fix the problem.

  • Mat