1#!/bin/sh 2 3cat > .gcrypt.c << EOF 4#include <gcrypt.h> 5int main(void) 6{ 7 gcry_md_hash_buffer(GCRY_MD_MD5, NULL, NULL, 0); 8 return 0; 9} 10EOF 11 12if $1 -o .gcrypt .gcrypt.c -lgcrypt 2>/dev/null ; then 13 echo "yes" 14else 15 echo "no" 16fi 17 18rm -f .gcrypt* 19