From 13537aaa484b1f3ea914c0dc4f71070602003880 Mon Sep 17 00:00:00 2001 From: Alexey Gladkov Date: Tue, 23 May 2006 20:52:23 +1000 Subject: [BUILD] Added --with-libedit option to configure Add to the configure.ac new option: --with-libedit - Compile with libedit support. --- ChangeLog | 4 ++++ configure.ac | 13 +++++++++++++ src/Makefile.am | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7e71afc..9970489 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-05-23 Alexey Gladkov + + * Added --with-libedit option to configure. + 2006-03-29 Herbert Xu * Removed useless parsebackquote flag. diff --git a/configure.ac b/configure.ac index 9bd021b..01cac17 100644 --- a/configure.ac +++ b/configure.ac @@ -42,5 +42,18 @@ AC_CHECK_FUNC(stat64,, [ AC_DEFINE(open64, open, [64-bit operations are the same as 32-bit]) ]) +AC_ARG_WITH(libedit, AS_HELP_STRING(--with-libedit, [Compile with libedit support])) +use_libedit= +if test "$with_libedit" = "yes"; then + AC_CHECK_LIB(edit, history_init, [ + AC_CHECK_HEADER([histedit.h], [use_libedit="yes"], + AC_MSG_ERROR( + [Can't find required header files.]))]) +fi +if test "$use_libedit" != "yes"; then + AC_DEFINE([SMALL], 1, [Define if you build with -DSMALL]) +else + export LIBS="$LIBS -ledit" +fi AC_CONFIG_FILES([Makefile src/Makefile]) AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am index 0fe4db1..37d6d3c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3,7 +3,7 @@ AM_YFLAGS = -d COMMON_CFLAGS = -Wall COMMON_CPPFLAGS = \ -include $(top_builddir)/config.h \ - -DBSD=1 -DSMALL -DSHELL \ + -DBSD=1 -DSHELL \ -DGLOB_BROKEN -DFNMATCH_BROKEN -DIFS_BROKEN AM_CFLAGS = $(COMMON_CFLAGS) -- cgit 1.4.1 elect>
Commit message (Collapse)Author
2019-02-19Add READMEJune McEnroe
2019-02-19Remove gitignoreJune McEnroe
2019-02-19Add SEE ALSO, HISTORY and AUTHORS sectionsJune McEnroe
2019-02-19Filter out reference errors from lintJune McEnroe
Kind of dumb that it only checks in what it thinks is the system man path and not the current directory at all.
2019-02-19Replace Makefile with portable oneJune McEnroe
2019-02-19Replace dates with date on header fileJune McEnroe
2018-11-15Add gzerror.3June McEnroe
2018-11-15Add gzclose_* Nm linesJune McEnroe
2018-11-15Add gzclose.3June McEnroe
2018-11-15Add gzdirect.3June McEnroe
2018-11-15Add gzeof.3June McEnroe
2018-11-13Add gzoffset.3June McEnroe
2018-11-13Add gztell(3) to gzseek.3June McEnroe
2018-11-13Add gzseek.3June McEnroe
2018-11-13Add gzflush.3June McEnroe
2018-11-13Fix spacing after parenthetical sentencesJune McEnroe
2018-11-13Add gzungetc.3June McEnroe
2018-11-13Add gzgetc.3June McEnroe
2018-11-13Add gzputc.3June McEnroe
2018-11-13Add gzgets.3June McEnroe
2018-11-13Add gzputs.3June McEnroe
2018-11-13Add gzprintf.3June McEnroe
2018-11-13Add gzfwrite.3June McEnroe
2018-11-13Add gzwrite.3June McEnroe
2018-11-12Add gzfread.3June McEnroe
2018-11-12Add gzread.3June McEnroe
2018-11-12Add gzsetparams.3June McEnroe
2018-11-12Add gzbuffer.3June McEnroe
2018-11-12Add gzdopen to gzopen.3June McEnroe
2018-11-12Add gzopen.3June McEnroe
2018-11-12Add inflateBackEnd.3June McEnroe
2018-11-12Add inflateBack.3June McEnroe
2018-11-12Add inflateBackInit.3June McEnroe
2018-11-11Add inflateGetHeader.3June McEnroe
2018-11-11Add inflateMark.3June McEnroe
2018-11-11Add inflatePrime.3June McEnroe
2018-11-11Add inflateReset.3June McEnroe
2018-11-11Add inflateCopy.3June McEnroe
2018-11-11Add inflateSync.3June McEnroe
2018-11-11Add inflateGetDictionary.3June McEnroe
2018-11-11Add inflateSetDictionary.3June McEnroe
2018-11-11Add inflateInit2.3June McEnroe