fix broken sha2 configure tests

see http://patch-tracker.debian.org/patch/series/view/php5/5.5.3+dfsg-1/fix_broken_sha2_test.patch
Merge branch 'PHP-5.5'

* PHP-5.5:
  fix broken sha2 configure tests