小原です。 ありがとうございます。 結局、 CC=/path/bin/gcc export CC tar xvf php4.2.1 cd php4.2.1 ./configure ..... でうまく行きました。