Use $srcdir rather than $top_srcdir. Set before calling AC_OUTPUT, and explicitly export there. (Bug#507.)