From 0cb85e04a974daf4442a7561931ff1be566a8410 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 5 Sep 1998 13:21:57 +0000 Subject: some people are foolishly running ./configure from other than the source directory! This adds a new "trivial" test that makes sure that the autoconf tests are working. It aborts the configure run if not. (This used to be commit ead0338ad27f29f1abbbe9f6302d6bf633bf98b2) --- source3/configure.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/configure.in') diff --git a/source3/configure.in b/source3/configure.in index 4ad5a05402..98a5ad1498 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -256,6 +256,12 @@ AC_TRY_COMPILE([#include echo yes;AC_DEFINE(HAVE_UTIMBUF), echo no) + +echo $ac_n "checking for test routines ... $ac_c" +AC_TRY_RUN([#include "tests/trivial.c"], + echo yes;, + echo ERROR - cant find test code. Aborting config; exit 1) + echo $ac_n "checking for ftruncate extend ... $ac_c" AC_TRY_RUN([#include "tests/ftruncate.c"], echo yes;AC_DEFINE(HAVE_FTRUNCATE_EXTEND), -- cgit