diff options
author | Sheldon Demario <sheldon.demario@openbossa.org> | 2011-02-14 12:07:18 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-02-15 14:17:22 -0300 |
commit | dcfc9adb5ea3157d0c0040b5af9d81f63d7c0ecd (patch) | |
tree | 0a60568709c0063608d55b16b1e01002ebf02ab7 | |
parent | 394a93e5a90dff71373f0a5811e32ac10d023e29 (diff) | |
download | bluez-dcfc9adb5ea3157d0c0040b5af9d81f63d7c0ecd.tar.gz bluez-dcfc9adb5ea3157d0c0040b5af9d81f63d7c0ecd.tar.xz bluez-dcfc9adb5ea3157d0c0040b5af9d81f63d7c0ecd.zip |
Include check to readline lib on acinlude.m4
-rw-r--r-- | acinclude.m4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 9d3f6b2d..91e09565 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -153,6 +153,15 @@ AC_DEFUN([AC_PATH_SNDFILE], [ AC_SUBST(SNDFILE_LIBS) ]) +AC_DEFUN([AC_PATH_READLINE], [ + AC_CHECK_HEADER(readline/readline.h, + AC_CHECK_LIB(readline, main, + [ readline_found=yes + AC_SUBST(READLINE_LIBS, "-lreadline") + ], readline_found=no), + []) +]) + AC_DEFUN([AC_PATH_OUI], [ AC_ARG_WITH(ouifile, AS_HELP_STRING([--with-ouifile=PATH],[Path to the oui.txt file @<:@auto@:>@]), @@ -356,6 +365,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [ AM_CONDITIONAL(HEALTHPLUGIN, test "${health_enable}" = "yes") AM_CONDITIONAL(MCAP, test "${health_enable}" = "yes") AM_CONDITIONAL(HAL, test "${hal_enable}" = "yes") + AM_CONDITIONAL(READLINE, test "${readline_found}" = "yes") AM_CONDITIONAL(ATTRIBPLUGIN, test "${attrib_enable}" = "yes") AM_CONDITIONAL(ECHOPLUGIN, test "no" = "yes") AM_CONDITIONAL(PNATPLUGIN, test "${pnat_enable}" = "yes") |