Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
bad50504
...
bad5050473d78fe11404a132a3aec796c39ed3e0
authored
2000-12-30 21:02:28 +0000
by
Jeff Bailey
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add readline test.
1 parent
66297830
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
acconfig.h
configure.in
acconfig.h
View file @
bad5050
...
...
@@ -19,3 +19,7 @@
#undef USE_LIBPAM
#undef HAVE_SNPRINTF
#undef WITH_PTHREAD
/* Define if using libreadline */
#undef WITH_READLINE
...
...
configure.in
View file @
bad5050
...
...
@@ -26,6 +26,14 @@ AC_ARG_ENABLE(pthread,
*) AC_MSG_ERROR(bad value ${enableval} for --disable-pthread) ;;
esac],[usepthread=yes])
AC_ARG_WITH(readline,
[ --without-readline do not use readline],
[case "${withval}" in
yes) usereadline=yes ;;
no) usereadline=no ;;
*) AC_MSG_ERROR(bad value ${withval} for --without-readline) ;;
esac],[usereadline=yes])
dnl Check for headers
AC_HEADER_STDC
AC_HEADER_DIRENT
...
...
@@ -85,6 +93,12 @@ AC_CHECK_FUNC(gethostbyname, [true],
AC_CHECK_FUNC(socket, [true],
AC_CHECK_LIB(socket, socket, LIBS="-lsocket $LIBS"))
dnl Check for readline
if test x"$usereadline" = x"yes"; then
AC_CHECK_LIB(readline, readline,
AC_CHECK_HEADERS(readline/readline.h, AC_DEFINE(WITH_READLINE)))
fi
dnl Output Makefiles
AC_OUTPUT(Makefile mailutils.spec include/Makefile include/mailutils/Makefile
m4/Makefile doc/Makefile lib/Makefile mailbox/Makefile imap4d/Makefile
...
...
Please
register
or
sign in
to post a comment