libedit is a BSD library that provides partial functionality of
readline; useful if you can't use GPLv3 readline. The next patch
will need to know if this library is present.
* m4/virt-edit.m4: New file.
* configure.ac: Use it.
Signed-off-by: Eric Blake <eblake(a)redhat.com>
---
configure.ac | 2 ++
m4/virt-edit.m4 | 26 ++++++++++++++++++++++++++
2 files changed, 28 insertions(+)
create mode 100644 m4/virt-edit.m4
diff --git a/configure.ac b/configure.ac
index 8331184..3feed8b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -156,6 +156,7 @@ LIBVIRT_CHECK_BLKID
LIBVIRT_CHECK_CAPNG
LIBVIRT_CHECK_CURL
LIBVIRT_CHECK_DBUS
+LIBVIRT_CHECK_EDIT
LIBVIRT_CHECK_FUSE
LIBVIRT_CHECK_HAL
LIBVIRT_CHECK_NETCF
@@ -2448,6 +2449,7 @@ LIBVIRT_RESULT_BLKID
LIBVIRT_RESULT_CAPNG
LIBVIRT_RESULT_CURL
LIBVIRT_RESULT_DBUS
+LIBVIRT_RESULT_EDIT
LIBVIRT_RESULT_FUSE
LIBVIRT_RESULT_HAL
LIBVIRT_RESULT_NETCF
diff --git a/m4/virt-edit.m4 b/m4/virt-edit.m4
new file mode 100644
index 0000000..d483ab5
--- /dev/null
+++ b/m4/virt-edit.m4
@@ -0,0 +1,26 @@
+dnl The libedit.so library
+dnl
+dnl Copyright (C) 2013 Red Hat, Inc.
+dnl
+dnl This library is free software; you can redistribute it and/or
+dnl modify it under the terms of the GNU Lesser General Public
+dnl License as published by the Free Software Foundation; either
+dnl version 2.1 of the License, or (at your option) any later version.
+dnl
+dnl This library is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+dnl Lesser General Public License for more details.
+dnl
+dnl You should have received a copy of the GNU Lesser General Public
+dnl License along with this library. If not, see
+dnl <
http://www.gnu.org/licenses/>.
+dnl
+
+AC_DEFUN([LIBVIRT_CHECK_EDIT],[
+ LIBVIRT_CHECK_PKG([EDIT], [libedit], [3.0])
+])
+
+AC_DEFUN([LIBVIRT_RESULT_EDIT],[
+ LIBVIRT_RESULT_LIB([EDIT])
+])
--
1.8.1.4