顺便提一下下面这个页面上的user和develop邮件列表的连接弄颠倒了
http://zhcon.sourceforge.net/develop.html
我本来是想订阅develop邮件列表的

有关配置文件路径我觉得现在的处理方式似乎不太好
改成下面似乎好一点
diff -ruN zhcon-0.2.5/src/Makefile.am /tmp/zhcon-0.2.5/src/Makefile.am
--- zhcon-0.2.5/src/Makefile.am 2006-06-22 12:35:01.531885552 +0800
+++ /tmp/zhcon-0.2.5/src/Makefile.am    2006-06-22 12:31:44.000000000 +0800
@@ -5,6 +5,8 @@

 zhcon_LDADD = display/libdisplay.a

+zhcon_CPPFLAGS = -DSYSCONF_DIR=\"${sysconfdir}\"
+
 SUBDIRS = display

 install-exec-local:
diff -ruN zhcon-0.2.5/src/zhcon.cpp /tmp/zhcon-0.2.5/src/zhcon.cpp
--- zhcon-0.2.5/src/zhcon.cpp   2006-06-22 12:35:01.398905768 +0800
+++ /tmp/zhcon-0.2.5/src/zhcon.cpp      2006-06-22 12:32:41.000000000 +0800
@@ -123,7 +123,7 @@
     string cfgfile = getenv("HOME");
     cfgfile += "/.zhconrc";
     if (access(cfgfile.c_str(), R_OK) != 0)
-        cfgfile = PREFIX "/etc/zhcon.conf";
+        cfgfile = SYSCONF_DIR"/zhcon.conf";

     //for debug,a pause enable us to attach zhcon's pid in gdb
     //char c;cin>>c;

还有configure.in也可以改一下,之前./configure时会有一个warning
--- configure.in        2006-06-22 12:50:25.475424784 +0800
+++ /tmp/zhcon-0.2.5/configure.in       2006-06-22 12:48:59.000000000 +0800
@@ -55,7 +55,7 @@

 CFLAGS="$CFLAGS -funsigned-char -O2"
 CXXFLAGS="$CXXFLAGS -funsigned-char -O2"
-if test $enable_debug = 'yes';then
+if test "x$enable_debug" = "xyes";then
         CFLAGS="$CFLAGS -O0 -g3 -Wall"
         CXXFLAGS="$CXXFLAGS -O0 -g3 -Wall"
 else


--
Zhang Le, Robert
Linux Engineer/Trainer
http://zhllg.spaces.msn.com
http://zh.gentoo-wiki.com
http://savannah.nongnu.org/projects/pgubook
http://groups.google.com/group/gentoo-china
http://groups.google.com/group/szlug