diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-08-10 20:34:15 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-08-10 20:34:15 +1000 |
commit | c7572b26611241cb86319193693b940f5dbf47c9 (patch) | |
tree | 49cae2de2fd3cc456dc53483d1b09939f0deb412 | |
parent | 8bc6b900ed8609d67e75bc7266b9b533a703eb4a (diff) |
- (dtucker) [configure.ac] Test libedit library and headers for compatibility.
Report from skeleten AT shillest.net, ok djm@
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.ac | 16 |
2 files changed, 20 insertions, 2 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20050810 | ||
2 | - (dtucker) [configure.ac] Test libedit library and headers for compatibility. | ||
3 | Report from skeleten AT shillest.net, ok djm@ | ||
4 | |||
1 | 20050809 | 5 | 20050809 |
2 | - (tim) [configure.ac] Allow --with-audit=no. OK dtucker@ | 6 | - (tim) [configure.ac] Allow --with-audit=no. OK dtucker@ |
3 | Report by skeleten AT shillest.net | 7 | Report by skeleten AT shillest.net |
@@ -2900,4 +2904,4 @@ | |||
2900 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 2904 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
2901 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 2905 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
2902 | 2906 | ||
2903 | $Id: ChangeLog,v 1.3863 2005/08/09 17:09:53 tim Exp $ | 2907 | $Id: ChangeLog,v 1.3864 2005/08/10 10:34:15 dtucker Exp $ |
diff --git a/configure.ac b/configure.ac index a6fae9ff0..60dbd0c34 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.283 2005/08/09 17:09:54 tim Exp $ | 1 | # $Id: configure.ac,v 1.284 2005/08/10 10:34:15 dtucker Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -1023,6 +1023,20 @@ AC_ARG_WITH(libedit, | |||
1023 | [ AC_MSG_ERROR(libedit not found) ], | 1023 | [ AC_MSG_ERROR(libedit not found) ], |
1024 | [ -lcurses ] | 1024 | [ -lcurses ] |
1025 | ) | 1025 | ) |
1026 | AC_MSG_CHECKING(if libedit version is compatible) | ||
1027 | AC_TRY_COMPILE([#include <histedit.h>], | ||
1028 | [ | ||
1029 | int main(void) | ||
1030 | { | ||
1031 | int i = H_SETSIZE; | ||
1032 | el_init("", NULL, NULL, NULL); | ||
1033 | exit(0); | ||
1034 | } | ||
1035 | ], | ||
1036 | [ AC_MSG_RESULT(yes) ], | ||
1037 | [ AC_MSG_RESULT(no) | ||
1038 | AC_MSG_ERROR(libedit version is not compatible) ] | ||
1039 | ) | ||
1026 | fi ] | 1040 | fi ] |
1027 | ) | 1041 | ) |
1028 | 1042 | ||