From 650f6ac573ae6d08dbd2752fe58e670b28fee957 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 1 Dec 2009 16:00:31 -0800 Subject: configure: Assimilate new getlinetest into recent configure conventions. We're now using printf to print what we're checking before we check. We're also making variables such as HAVE_GETLINE available to both make and to the C pre-processor. With this, the local getline implementation is now only compiled if not available on the system. --- configure | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 1b5f7e04..bb1f0dbc 100755 --- a/configure +++ b/configure @@ -126,12 +126,14 @@ EOF exit 1 fi +printf "Checking for getline... " if ! gcc -o getlinetest getlinetest.c > /dev/null 2>&1 then - echo "Checking for getline... No." - getline=-Dgetline=_notmuch_getline + printf "No.\n" + have_getline=0 else - echo "Checking for getline... Yes." + printf "Yes.\n" + have_getline=1 fi rm -f getlinetest @@ -148,5 +150,6 @@ EOF # construct the Makefile.config cat > Makefile.config <