typo

(cherry picked from commit f4d6b6fb28f4839fac5f58846e0e47e5b7c641a4)
Move LIBS re-setting outside the if XNU conditional so that autoconf does not complain.

(cherry picked from commit 561606dc2e21bbe08ed3c3fc3904ae66f280ed77)
Add forgotten m4 file to dist tarball.

(cherry picked from commit 3660516bd804cf6027e0aed3dfe57d2313db558c)
distribute test script

(cherry picked from commit 6b806498a891be2c9c553b46bb18e0dd386c8161)
Merge pull request #1975 from jimis/master

dist tarball fixes