X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=configure;h=ef90a8ba27c40822ed406ab8005bae19ca64c518;hp=1b5f7e04eee3f584ac4c8a56d1c58d03dc221d06;hb=e93520f1091ba67bfad317cfa9a75c4097e28db9;hpb=3054bc462c8f31965f342808fce48c72f2858cfc;ds=sidebyside diff --git a/configure b/configure index 1b5f7e04..ef90a8ba 100755 --- a/configure +++ b/configure @@ -126,14 +126,16 @@ EOF exit 1 fi -if ! gcc -o getlinetest getlinetest.c > /dev/null 2>&1 +printf "Checking for getline... " +if gcc -o config/have_getline config/have_getline.c > /dev/null 2>&1 then - echo "Checking for getline... No." - getline=-Dgetline=_notmuch_getline + printf "Yes.\n" + have_getline=1 else - echo "Checking for getline... Yes." + printf "No (will use our own instead).\n" + have_getline=0 fi -rm -f getlinetest +rm -f config/have_getline cat < Makefile.config <