summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-12-01 16:56:39 -0800
committerCarl Worth <cworth@cworth.org>2009-12-01 16:56:39 -0800
commite93520f1091ba67bfad317cfa9a75c4097e28db9 (patch)
tree7fde767d45c4fb79a9b303abcd8bf79f47c1ffa1 /config
parent1466e249e741e3ef907e8c48c2861742b676e255 (diff)
configure: Move getlinetest.c down into config/have_getline.c.
This keeps configure-related clutter out of the main directory, and also gives a more direct correlation between the name of the test and the feature being tested for.
Diffstat (limited to 'config')
-rw-r--r--config/README5
-rw-r--r--config/have_getline.c13
2 files changed, 18 insertions, 0 deletions
diff --git a/config/README b/config/README
new file mode 100644
index 0000000..eabfe28
--- /dev/null
+++ b/config/README
@@ -0,0 +1,5 @@
+notmuch/config
+
+This directory consists of small programs used by the notmuch
+configure script to test for the availability of certain system
+features, (library functions, etc.).
diff --git a/config/have_getline.c b/config/have_getline.c
new file mode 100644
index 0000000..a8bcd17
--- /dev/null
+++ b/config/have_getline.c
@@ -0,0 +1,13 @@
+#define _GNU_SOURCE
+#include <stdio.h>
+#include <sys/types.h>
+
+int main()
+{
+ ssize_t count = 0;
+ size_t n = 0;
+ char **lineptr = NULL;
+ FILE *stream = NULL;
+
+ count = getline(lineptr, &n, stream);
+}