Improve C99 compatibility of configure script
Brought to you by:
dannybackx
The attached patch fixes an implicit declaration of the exit function in the libXp/rc=XpQueryVersion autoconf probe. Future compilers will not support implicit function declarations by default, causing the probe to always fail.
It also includes fixes that are equivalent to what newer autoconf versions would generate, also required for C99 compatibility.
Related to:
Slightly more worrisome:
The configure script would be nice if it could be autoreconf'ed from source, but it appears this requires the lesstif aclocal macros and in practice no one installs lesstif anymore, given motif was opened, so the macro won't exist in /usr/share.