diff -uNr geant4.9.3.ORIG/config/sys/Darwin-g++.gmk geant4.9.3/config/sys/Darwin-g++.gmk --- geant4.9.3.ORIG/config/sys/Darwin-g++.gmk 2009-12-19 02:23:02.000000000 +0900 +++ geant4.9.3/config/sys/Darwin-g++.gmk 2010-03-08 15:17:45.000000000 +0900 @@ -35,10 +35,16 @@ FCFLAGS += -O2 -g CCFLAGS += -O2 -g endif - FC := gfortran - FCFLAGS += -fno-automatic -fno-backslash -fno-second-underscore + ifeq ($(shell which gfortran 2>&1 | grep -c 'no gfortran'),0) + FC := gfortran + FCFLAGS += -fno-automatic -fno-backslash -fno-second-underscore + FCLIBS := -lgfortran -lgfortranbegin -lnsl + else + FC := g77 + FCFLAGS += -fno-automatic -fno-backslash -fno-second-underscore + FCLIBS := -lg2c -lnsl + endif LDFLAGS += -bind_at_load -arch_multiple - FCLIBS := -lg2c -lnsl SHEXT := dylib ifndef X11FLAGS X11FLAGS := -I/usr/include/X11/extensions -I/usr/include/X11 diff -uNr geant4.9.3.ORIG/source/global/management/src/G4PhysicsFreeVector.cc geant4.9.3/source/global/management/src/G4PhysicsFreeVector.cc --- geant4.9.3.ORIG/source/global/management/src/G4PhysicsFreeVector.cc 2009-12-19 02:24:34.000000000 +0900 +++ geant4.9.3/source/global/management/src/G4PhysicsFreeVector.cc 2010-03-08 15:13:27.000000000 +0900 @@ -45,7 +45,7 @@ //-------------------------------------------------------------------- #include "G4PhysicsFreeVector.hh" - +#include G4PhysicsFreeVector::G4PhysicsFreeVector() : G4PhysicsVector() diff -uNr geant4.9.3.ORIG/source/global/management/src/G4PhysicsLinearVector.cc geant4.9.3/source/global/management/src/G4PhysicsLinearVector.cc --- geant4.9.3.ORIG/source/global/management/src/G4PhysicsLinearVector.cc 2009-12-19 02:24:34.000000000 +0900 +++ geant4.9.3/source/global/management/src/G4PhysicsLinearVector.cc 2010-03-08 15:13:27.000000000 +0900 @@ -39,6 +39,7 @@ //-------------------------------------------------------------------- #include "G4PhysicsLinearVector.hh" +#include G4PhysicsLinearVector::G4PhysicsLinearVector() : G4PhysicsVector(), dBin(0.), baseBin(0.) diff -uNr geant4.9.3.ORIG/source/global/management/src/G4PhysicsLnVector.cc geant4.9.3/source/global/management/src/G4PhysicsLnVector.cc --- geant4.9.3.ORIG/source/global/management/src/G4PhysicsLnVector.cc 2009-12-19 02:24:34.000000000 +0900 +++ geant4.9.3/source/global/management/src/G4PhysicsLnVector.cc 2010-03-08 15:13:27.000000000 +0900 @@ -39,6 +39,7 @@ // -------------------------------------------------------------- #include "G4PhysicsLnVector.hh" +#include G4PhysicsLnVector::G4PhysicsLnVector() : G4PhysicsVector(), dBin(0.), baseBin(0.) diff -uNr geant4.9.3.ORIG/source/global/management/src/G4PhysicsLogVector.cc geant4.9.3/source/global/management/src/G4PhysicsLogVector.cc --- geant4.9.3.ORIG/source/global/management/src/G4PhysicsLogVector.cc 2009-12-19 02:24:34.000000000 +0900 +++ geant4.9.3/source/global/management/src/G4PhysicsLogVector.cc 2010-03-08 15:13:27.000000000 +0900 @@ -46,6 +46,7 @@ // -------------------------------------------------------------- #include "G4PhysicsLogVector.hh" +#include G4PhysicsLogVector::G4PhysicsLogVector() : G4PhysicsVector(), dBin(0.), baseBin(0.) diff -uNr geant4.9.3.ORIG/source/global/management/src/G4PhysicsOrderedFreeVector.cc geant4.9.3/source/global/management/src/G4PhysicsOrderedFreeVector.cc --- geant4.9.3.ORIG/source/global/management/src/G4PhysicsOrderedFreeVector.cc 2009-12-19 02:24:34.000000000 +0900 +++ geant4.9.3/source/global/management/src/G4PhysicsOrderedFreeVector.cc 2010-03-08 15:13:27.000000000 +0900 @@ -50,6 +50,7 @@ //////////////////////////////////////////////////////////////////////// #include "G4PhysicsOrderedFreeVector.hh" +#include ///////////////////////// // Class Implementation diff -uNr geant4.9.3.ORIG/source/graphics_reps/src/HepPolyhedron.cc geant4.9.3/source/graphics_reps/src/HepPolyhedron.cc --- geant4.9.3.ORIG/source/graphics_reps/src/HepPolyhedron.cc 2009-12-19 02:24:34.000000000 +0900 +++ geant4.9.3/source/graphics_reps/src/HepPolyhedron.cc 2010-03-08 15:13:27.000000000 +0900 @@ -67,6 +67,7 @@ #include // Required on some compilers for std::abs(int) ... #include +#include using namespace HepGeom; using CLHEP::perMillion; diff -uNr geant4.9.3.ORIG/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPInelasticBaseFS.cc geant4.9.3/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPInelasticBaseFS.cc --- geant4.9.3.ORIG/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPInelasticBaseFS.cc 2009-12-19 02:25:16.000000000 +0900 +++ geant4.9.3/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPInelasticBaseFS.cc 2010-03-08 15:13:27.000000000 +0900 @@ -38,6 +38,7 @@ #include "G4Alpha.hh" #include "G4Electron.hh" #include "G4NeutronHPDataUsed.hh" +#include #include "G4ParticleTable.hh" diff -uNr geant4.9.3.ORIG/source/processes/management/src/G4ProcessManager.cc geant4.9.3/source/processes/management/src/G4ProcessManager.cc --- geant4.9.3.ORIG/source/processes/management/src/G4ProcessManager.cc 2009-12-19 02:25:22.000000000 +0900 +++ geant4.9.3/source/processes/management/src/G4ProcessManager.cc 2010-03-08 15:13:27.000000000 +0900 @@ -48,6 +48,7 @@ #include #include "G4ProcessTable.hh" #include "G4ios.hh" +#include // ---------------------------------