diff options
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | tests.c | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 1421791..d0deee7 100644 --- a/configure.ac +++ b/configure.ac @@ -53,6 +53,9 @@ AC_ARG_WITH(appdefaultdir, [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) AC_SUBST(appdefaultdir) +# Checks for library functions. +AC_CHECK_FUNCS([lrand48]) + AC_CONFIG_FILES([ Makefile man/Makefile]) @@ -2,6 +2,10 @@ ** */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <X11/Intrinsic.h> #include <X11/StringDefs.h> #include <X11/Xaw/AsciiText.h> @@ -21,7 +25,7 @@ #define PI 3.14159265 #endif -#ifdef SYSV +#ifdef HAVE_LRAND48 #define random lrand48 #endif |