Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
7633453c
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
7633453c
编写于
12月 06, 2007
作者:
D
Daniel Veillard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* configure.in src/Makefile.am src/virsh.c: fix compilation problems
when readline headers were found but not the library Daniel
上级
d51e7c9f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
23 addition
and
7 deletion
+23
-7
ChangeLog
ChangeLog
+5
-0
configure.in
configure.in
+13
-2
src/Makefile.am
src/Makefile.am
+1
-1
src/virsh.c
src/virsh.c
+4
-4
未找到文件。
ChangeLog
浏览文件 @
7633453c
Thu Dec 6 11:23:31 CET 2007 Daniel Veillard <veillard@redhat.com>
* configure.in src/Makefile.am src/virsh.c: fix compilation problems
when readline headers were found but not the library
Wed Dec 5 23:57:53 CET 2007 Jim Meyering <meyering@redhat.com>
Accommodate developers using autoconf-2.59.
...
...
configure.in
浏览文件 @
7633453c
...
...
@@ -448,11 +448,21 @@ AC_SUBST(AVAHI_CFLAGS)
AC_SUBST(AVAHI_LIBS)
dnl virsh libraries
USE_READLINE=
READLINE_CFLAGS=
AC_CHECK_HEADERS([readline/readline.h])
AC_CHECK_LIB(readline, main,
[
VIRSH_LIBS="$VIRSH_LIBS -lreadline"
],
[
AC_MSG_WARN([readline library not found])
],
[
USE_READLINE=yes
],
[
USE_READLINE=no
],
[$VIRSH_LIBS])
if test "$USE_READLINE" = "yes" ; then
VIRSH_LIBS="$VIRSH_LIBS -lreadline"
AC_DEFINE_UNQUOTED(USE_READLINE, 1, [whether virsh use readline])
READLINE_CFLAGS="-DUSE_READLINE"
else
AC_MSG_WARN([readline library not found])
fi
AC_SUBST(READLINE_CFLAGS)
AC_SUBST(VIRSH_LIBS)
# end of if with_depends
...
...
@@ -687,4 +697,5 @@ AC_MSG_NOTICE([])
AC_MSG_NOTICE([Miscellaneous])
AC_MSG_NOTICE([])
AC_MSG_NOTICE([ Debug: $enable_debug])
AC_MSG_NOTICE([ Readline: $USE_READLINE])
AC_MSG_NOTICE([])
src/Makefile.am
浏览文件 @
7633453c
...
...
@@ -76,7 +76,7 @@ virsh_SOURCES = virsh.c console.c console.h
virsh_LDFLAGS
=
$(WARN_CFLAGS)
$(COVERAGE_LDFLAGS)
virsh_DEPENDENCIES
=
$(DEPS)
virsh_LDADD
=
$(LDADDS)
$(VIRSH_LIBS)
virsh_CFLAGS
=
$(COVERAGE_CFLAGS)
virsh_CFLAGS
=
$(COVERAGE_CFLAGS)
$(READLINE_CFLAGS)
#
# target to ease building test programs
...
...
src/virsh.c
浏览文件 @
7633453c
...
...
@@ -4661,7 +4661,7 @@ vshCloseLogFile(vshControl *ctl)
}
}
#ifdef
HAVE_READLINE_READLINE_H
#ifdef
USE_READLINE
/* -----------------
* Readline stuff
...
...
@@ -4786,7 +4786,7 @@ vshReadline (vshControl *ctl ATTRIBUTE_UNUSED, const char *prompt)
return
readline
(
prompt
);
}
#else
/* !
HAVE_READLINE_READLINE_H
*/
#else
/* !
USE_READLINE
*/
static
void
vshReadlineInit
(
void
)
...
...
@@ -4813,7 +4813,7 @@ vshReadline (vshControl *ctl, const char *prompt)
return
vshStrdup
(
ctl
,
r
);
}
#endif
/* !
HAVE_READLINE_READLINE_H
*/
#endif
/* !
USE_READLINE
*/
/*
* Deinitliaze virsh
...
...
@@ -5059,7 +5059,7 @@ main(int argc, char **argv)
if
(
ctl
->
cmdstr
==
NULL
)
break
;
/* EOF */
if
(
*
ctl
->
cmdstr
)
{
#if
HAVE_READLINE_READLINE_H
#if
USE_READLINE
add_history
(
ctl
->
cmdstr
);
#endif
if
(
vshCommandParse
(
ctl
,
ctl
->
cmdstr
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录