diff options
| author | Amar Tumballi <amar@gluster.com> | 2010-07-08 08:16:13 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2010-07-08 23:28:08 -0700 | 
| commit | 915adb9c1291d140e57765b7fad0c5bb0e7d5ed5 (patch) | |
| tree | 0330fa8796e18601ef7ef1441b6d4eb0df8cb9b6 /configure.ac | |
| parent | 7e489f3cc7f3eb738d2698dcf588bad0bdc12a8b (diff) | |
gluster-CLI-and-mgmt-glusterd-added-to-codebase
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 17 | 
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 3957a8484c1..4eaf0522231 100644 --- a/configure.ac +++ b/configure.ac @@ -108,6 +108,8 @@ AC_CONFIG_FILES([Makefile  		xlators/encryption/Makefile  		xlators/encryption/rot-13/Makefile  		xlators/encryption/rot-13/src/Makefile +                cli/Makefile +                cli/src/Makefile  		doc/Makefile  		doc/examples/Makefile  		doc/hacker-guide/Makefile @@ -128,6 +130,9 @@ AC_CONFIG_FILES([Makefile                  xlators/nfs/lib/src/Makefile                  xlators/nfs/server/Makefile                  xlators/nfs/server/src/Makefile +                xlators/mgmt/Makefile +                xlators/mgmt/glusterd/Makefile +                xlators/mgmt/glusterd/src/Makefile  		glusterfs.spec])  AC_CANONICAL_HOST @@ -391,6 +396,16 @@ case $host_os in  	;;  esac +BUILD_READLINE=no +AC_CHECK_LIB([readline -lcurses],[readline],[RLLIBS="-lreadline -lcurses"]) +AC_CHECK_LIB([readline -ltermcap],[readline],[RLLIBS="-lreadline -ltermcap"]) +AC_CHECK_LIB([readline -lncurses],[readline],[RLLIBS="-lreadline -lncurses"]) + +if test "x$RLLIBS" != "x"; then +   AC_DEFINE(HAVE_READLINE, 1, [readline enabled CLI]) +   BUILD_READLINE=yes +fi +  AC_SUBST(GF_HOST_OS)  AC_SUBST(GF_GLUSTERFS_LDFLAGS)  AC_SUBST(GF_GLUSTERFS_CFLAGS) @@ -398,6 +413,7 @@ AC_SUBST(GF_CFLAGS)  AC_SUBST(GF_LDFLAGS)  AC_SUBST(GF_LDADD)  AC_SUBST(GF_FUSE_CFLAGS) +AC_SUBST(RLLIBS)  CONTRIBDIR='$(top_srcdir)/contrib'  AC_SUBST(CONTRIBDIR) @@ -414,4 +430,5 @@ echo "Infiniband verbs   : $BUILD_IBVERBS"  echo "epoll IO multiplex : $BUILD_EPOLL"  echo "argp-standalone    : $BUILD_ARGP_STANDALONE"  echo "fusermount         : $BUILD_FUSERMOUNT" +echo "readline           : $BUILD_READLINE"  echo  | 
