diff -uNr geant4.9.1.p01.ORIG/config/sys/Darwin-g++.gmk geant4.9.1.p01/config/sys/Darwin-g++.gmk --- geant4.9.1.p01.ORIG/config/sys/Darwin-g++.gmk 2008-01-15 19:06:47.000000000 +0900 +++ geant4.9.1.p01/config/sys/Darwin-g++.gmk 2008-03-20 01:09:13.000000000 +0900 @@ -27,10 +27,16 @@ FCFLAGS += -pg CCFLAGS += -pg 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 - FCLIBS := -lg2c -lnsl SHEXT := dylib ifndef X11FLAGS X11FLAGS := -I/usr/include/X11/extensions -I/usr/include/X11 diff -uNr geant4.9.1.p01.ORIG/source/global/management/src/G4PhysicsFreeVector.cc geant4.9.1.p01/source/global/management/src/G4PhysicsFreeVector.cc --- geant4.9.1.p01.ORIG/source/global/management/src/G4PhysicsFreeVector.cc 2006-06-30 04:04:10.000000000 +0900 +++ geant4.9.1.p01/source/global/management/src/G4PhysicsFreeVector.cc 2008-03-20 02:35:05.000000000 +0900 @@ -44,7 +44,7 @@ //-------------------------------------------------------------------- #include "G4PhysicsFreeVector.hh" - +#include G4PhysicsFreeVector::G4PhysicsFreeVector() { diff -uNr geant4.9.1.p01.ORIG/source/global/management/src/G4PhysicsLinearVector.cc geant4.9.1.p01/source/global/management/src/G4PhysicsLinearVector.cc --- geant4.9.1.p01.ORIG/source/global/management/src/G4PhysicsLinearVector.cc 2006-06-30 04:04:13.000000000 +0900 +++ geant4.9.1.p01/source/global/management/src/G4PhysicsLinearVector.cc 2008-03-20 02:58:52.000000000 +0900 @@ -45,6 +45,7 @@ //-------------------------------------------------------------------- #include "G4PhysicsLinearVector.hh" +#include G4PhysicsLinearVector::G4PhysicsLinearVector() : dBin(0.), baseBin(0.) diff -uNr geant4.9.1.p01.ORIG/source/global/management/src/G4PhysicsLnVector.cc geant4.9.1.p01/source/global/management/src/G4PhysicsLnVector.cc --- geant4.9.1.p01.ORIG/source/global/management/src/G4PhysicsLnVector.cc 2006-06-30 04:04:15.000000000 +0900 +++ geant4.9.1.p01/source/global/management/src/G4PhysicsLnVector.cc 2008-03-20 02:59:32.000000000 +0900 @@ -41,6 +41,7 @@ // -------------------------------------------------------------- #include "G4PhysicsLnVector.hh" +#include G4PhysicsLnVector::G4PhysicsLnVector() : dBin(0.), baseBin(0.) diff -uNr geant4.9.1.p01.ORIG/source/global/management/src/G4PhysicsLogVector.cc geant4.9.1.p01/source/global/management/src/G4PhysicsLogVector.cc --- geant4.9.1.p01.ORIG/source/global/management/src/G4PhysicsLogVector.cc 2006-06-30 04:04:17.000000000 +0900 +++ geant4.9.1.p01/source/global/management/src/G4PhysicsLogVector.cc 2008-03-20 03:00:04.000000000 +0900 @@ -44,6 +44,7 @@ // -------------------------------------------------------------- #include "G4PhysicsLogVector.hh" +#include G4PhysicsLogVector::G4PhysicsLogVector() : dBin(0.), baseBin(0.) diff -uNr geant4.9.1.p01.ORIG/source/global/management/src/G4PhysicsOrderedFreeVector.cc geant4.9.1.p01/source/global/management/src/G4PhysicsOrderedFreeVector.cc --- geant4.9.1.p01.ORIG/source/global/management/src/G4PhysicsOrderedFreeVector.cc 2006-06-30 04:04:20.000000000 +0900 +++ geant4.9.1.p01/source/global/management/src/G4PhysicsOrderedFreeVector.cc 2008-03-20 03:00:51.000000000 +0900 @@ -48,6 +48,7 @@ //////////////////////////////////////////////////////////////////////// #include "G4PhysicsOrderedFreeVector.hh" +#include ///////////////////////// // Class Implementation diff -uNr geant4.9.1.p01.ORIG/source/graphics_reps/src/HepPolyhedron.cc geant4.9.1.p01/source/graphics_reps/src/HepPolyhedron.cc --- geant4.9.1.p01.ORIG/source/graphics_reps/src/HepPolyhedron.cc 2008-01-30 19:45:58.000000000 +0900 +++ geant4.9.1.p01/source/graphics_reps/src/HepPolyhedron.cc 2008-03-20 03:11:49.000000000 +0900 @@ -66,6 +66,7 @@ #include #include +#include using namespace HepGeom; using CLHEP::perMillion; diff -uNr geant4.9.1.p01.ORIG/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPInelasticBaseFS.cc geant4.9.1.p01/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPInelasticBaseFS.cc --- geant4.9.1.p01.ORIG/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPInelasticBaseFS.cc 2007-06-22 18:23:48.000000000 +0900 +++ geant4.9.1.p01/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPInelasticBaseFS.cc 2008-03-20 02:53:29.000000000 +0900 @@ -34,6 +34,7 @@ #include "G4Alpha.hh" #include "G4Electron.hh" #include "G4NeutronHPDataUsed.hh" +#include void G4NeutronHPInelasticBaseFS::InitGammas(G4double AR, G4double ZR) { diff -uNr geant4.9.1.p01.ORIG/source/processes/management/src/G4ProcessManager.cc geant4.9.1.p01/source/processes/management/src/G4ProcessManager.cc --- geant4.9.1.p01.ORIG/source/processes/management/src/G4ProcessManager.cc 2007-11-29 02:47:57.000000000 +0900 +++ geant4.9.1.p01/source/processes/management/src/G4ProcessManager.cc 2008-03-20 02:51:34.000000000 +0900 @@ -48,6 +48,7 @@ #include #include "G4ProcessTable.hh" #include "G4ios.hh" +#include // ---------------------------------