Just discovered that $srcdir is available in the configure script for checking