summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christophe Fergeau2009-07-24 21:01:59 +0200
committerGravatar Matt Colyer2009-07-26 19:28:15 -0700
commit8ebfd7d8eea89bb27e4e6dbb1f37fd90d98b439c (patch)
tree012151699b0d7f7b0dae8a631db545274af64833
parent53ed3be0463522cc3f8028def453c78be10f165b (diff)
downloadlibimobiledevice-8ebfd7d8eea89bb27e4e6dbb1f37fd90d98b439c.tar.gz
libimobiledevice-8ebfd7d8eea89bb27e4e6dbb1f37fd90d98b439c.tar.bz2
check for readline availability
dev/lckdclient.c includes headers from readline but configure.ac doesn't make sure these headers are available. This commit makes sure readline/readline.h is present and assumes readline is properly installed if this header is present [#59 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 140d2fe..38795ab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,6 +51,10 @@ AC_ARG_ENABLE([dev-tools],
51 [build_dev_tools=false]) 51 [build_dev_tools=false])
52if test "$build_dev_tools" = true; then 52if test "$build_dev_tools" = true; then
53 DEV_SUB=dev 53 DEV_SUB=dev
54 AC_CHECK_HEADERS([readline/readline.h],
55 [],
56 [AC_MSG_ERROR([Please install readline development headers])]
57 )
54else 58else
55 DEV_SUB= 59 DEV_SUB=
56fi 60fi