the included perl script file /usr/local/bin/apxs shows:
#!/replace/with/path/to/perl/interpreter -w
instead of
#!/usr/local/bin/perl -w
This causes the php5 with apxs build to fail. maybe apache2 was built without being aware of perl?
Best regards,
Robert