Nathan Baker has provided the following config.h file, for AMD Opteron systems running RHEL AS3, and using the Portland Group compilers. The key change from the configure script generated by Amber is to remove the "-tp k8-32" flags, which appear to break the compile for unknown reasons.
#============================================================================== # AMBER Makefile configuration for compiler/architecture: pgf90 # Generated via command: ./configure -mpich -opteron # # Configuration script written mainly by Joe Krahn, Scott Brozell, and # Dave Case, with contributions from lots of people. #============================================================================== #------------------------------------------------------------------------------ # Main AMBER source root directory #------------------------------------------------------------------------------ AMBER_SRC=/usr/local/amber8/src #------------------------------------------------------------------------------ # AMBERBUILDFLAGS provides a hook into the build process for installers; # for example, to build debug versions of the amber programs # make -e AMBERBUILDFLAGS="-DDEBUG -g" #------------------------------------------------------------------------------ AMBERBUILDFLAGS= #------------------------------------------------------------------------------ # LOCALFLAGS is intended for program specific modifications to the # Fortran build process and may be modified by the program's local makefile #------------------------------------------------------------------------------ LOCALFLAGS= #------------------------------------------------------------------------------ # Availability and method of delivery of math and optional libraries #------------------------------------------------------------------------------ USE_BLASLIB=$(SOURCE_COMPILED) USE_LAPACKLIB=$(SOURCE_COMPILED) USE_LMODLIB=$(LMOD_UNAVAILABLE) #------------------------------------------------------------------------------ # C compiler #------------------------------------------------------------------------------ CC= pgcc CPLUSPLUS=pgCC ALTCC=pgcc CFLAGS=-O2 $(AMBERBUILDFLAGS) ALTCFLAGS= $(AMBERBUILDFLAGS) CPPFLAGS= $(AMBERBUILDFLAGS) #------------------------------------------------------------------------------ # Fortran preprocessing and compiler. # FPPFLAGS holds the main Fortran options, such as whether MPI is used. #------------------------------------------------------------------------------ FPPFLAGS= -I/usr/local/mpich/include -P -I$(AMBER_SRC)/include -DMPI $(AMBERBUILDFLAGS) FPP= cpp -traditional $(FPPFLAGS) FC= pgf90 FFLAGS= -O $(LOCALFLAGS) $(AMBERBUILDFLAGS) FOPTFLAGS= -fastsse $(LOCALFLAGS) $(AMBERBUILDFLAGS) FPP_PREFIX= _ FREEFORMAT_FLAG= -Mfree #------------------------------------------------------------------------------ # Loader: #------------------------------------------------------------------------------ LOAD= pgf90 -fastsse $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADCC= pgcc $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADLIB= -L/usr/local/mpich/lib -lmpichf90 -lmpich LOADPTRAJ= pgf90 -fastsse -Mnomain $(LOCALFLAGS) $(AMBERBUILDFLAGS) XHOME= /usr/X11R6 #------------------------------------------------------------------------------ # Other stuff: #------------------------------------------------------------------------------ .SUFFIXES: .f90 SYSDIR=lib AR=ar rv M4=m4 RANLIB=ranlib SFX= MAKEDEPEND=$(AMBER_SRC)/../bin/amber_makedepend # default rules for Fortran and C compilation: .f.o: $< $(FPP) $< > $(FPP_PREFIX)$< $(FC) -c $(FFLAGS) -o $@ $(FPP_PREFIX)$< .f90.o: $< $(FPP) $< > $(FPP_PREFIX)$< $(FC) -c $(FFLAGS) -o $@ $(FPP_PREFIX)$< .c.o: $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<