diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 38c2470e..7b3dd082 100644 --- a/configure.in +++ b/configure.in @@ -23,7 +23,13 @@ AC_PROG_CC AC_PROG_MAKE_SET AC_PROG_AWK -AC_FUNC_GETLOADAVG([lib]) +saved_srcdir=$srcdir +srcdir=$srcdir/lib +test -f $srcdir/getloadavg.c \ + || AC_MSG_ERROR([getloadavg.c is not in $srcdir]) +AC_FUNC_GETLOADAVG +srcdir=$saved_srcdir + ifdef([AC_FUNC_STRTOD],[AC_FUNC_STRTOD],[AM_FUNC_STRTOD]) dnl AM_WITH_REGEX AC_PROG_RANLIB |