m4/gc.m4: Check if linking to libgcrypt also needs linking to libgpg-error.