diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2011-07-04 15:25:55 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2011-07-16 17:50:45 +0300 |
commit | 2cfb28e38daa9d3838a0b3a0328a7dc8a11f517e (patch) | |
tree | 924ebc3b492bb86949ae4d6a64e100a49304334c /acinclude.m4 | |
parent | 133f08d7ada0ef9feec2e177e11bf9e012c85171 (diff) | |
download | obexd-2cfb28e38daa9d3838a0b3a0328a7dc8a11f517e.tar.gz |
gobex: Add readline support to test-client
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index ac29c2b..2a824eb 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -10,6 +10,15 @@ AC_DEFUN([AC_PROG_CC_PIE], [ ]) ]) +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([COMPILER_FLAGS], [ if (test "${CFLAGS}" = ""); then CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2" |