require '_h2ph_pre.ph';

unless(defined(&HEADER_SHA_H)) {
    eval 'sub HEADER_SHA_H () {1;}' unless defined(&HEADER_SHA_H);
    if(defined(&__cplusplus)) {
    }
    if(defined( &NO_SHA) || (defined( &NO_SHA0)  && defined( &NO_SHA1))) {
	die("SHA\ is\ disabled\.");
    }
    if(defined( &WIN16) || defined( &__LP32__)) {
	eval 'sub SHA_LONG () {\'unsigned long\';}' unless defined(&SHA_LONG);
    }
 elsif(defined( &_CRAY) || defined( &__ILP64__)) {
	eval 'sub SHA_LONG () {\'unsigned long\';}' unless defined(&SHA_LONG);
	eval 'sub SHA_LONG_LOG2 () {3;}' unless defined(&SHA_LONG_LOG2);
    } else {
	eval 'sub SHA_LONG () {\'unsigned int\';}' unless defined(&SHA_LONG);
    }
    eval 'sub SHA_LBLOCK () {16;}' unless defined(&SHA_LBLOCK);
    eval 'sub SHA_CBLOCK () {( &SHA_LBLOCK*4);}' unless defined(&SHA_CBLOCK);
    eval 'sub SHA_LAST_BLOCK () {( &SHA_CBLOCK-8);}' unless defined(&SHA_LAST_BLOCK);
    eval 'sub SHA_DIGEST_LENGTH () {20;}' unless defined(&SHA_DIGEST_LENGTH);
    unless(defined(&NO_SHA0)) {
    }
    unless(defined(&NO_SHA1)) {
    }
    if(defined(&__cplusplus)) {
    }
}
1;
