]> git.notmuchmail.org Git - notmuch/blobdiff - configure
configure: Move getlinetest.c down into config/have_getline.c.
[notmuch] / configure
index bb1f0dbc22b4519521ee47f7aef41dc2e6b0e532..ef90a8ba27c40822ed406ab8005bae19ca64c518 100755 (executable)
--- a/configure
+++ b/configure
@@ -127,15 +127,15 @@ EOF
 fi
 
 printf "Checking for getline... "
 fi
 
 printf "Checking for getline... "
-if ! gcc -o getlinetest getlinetest.c > /dev/null 2>&1
+if gcc -o config/have_getline config/have_getline.c > /dev/null 2>&1
 then
 then
-    printf "No.\n"
-    have_getline=0
-else
     printf "Yes.\n"
     have_getline=1
     printf "Yes.\n"
     have_getline=1
+else
+    printf "No (will use our own instead).\n"
+    have_getline=0
 fi
 fi
-rm -f getlinetest
+rm -f config/have_getline
 
 cat <<EOF
 
 
 cat <<EOF