exit 1
fi
+printf "Checking for getline... "
+if ! gcc -o getlinetest getlinetest.c > /dev/null 2>&1
+then
+ printf "No.\n"
+ have_getline=0
+else
+ printf "Yes.\n"
+ have_getline=1
+fi
+rm -f getlinetest
+
cat <<EOF
All required packages were found. You may now run the following
# construct the Makefile.config
cat > Makefile.config <<EOF
prefix = /usr/local
-override CFLAGS += -DHAVE_VALGRIND=${have_valgrind} ${valgrind_flags}
+HAVE_GETLINE = ${have_getline}
+override CFLAGS += -DHAVE_VALGRIND=${have_valgrind} ${valgrind_flags} -DHAVE_GETLINE=\$(HAVE_GETLINE)
EOF