aclocal的bug


今天学习一下automake,但是在运行aclocal的时候会右警告:
/usr/share/aclocal/libstroke.m4:29: warning: underquoted definition of smr_ARG_WITHLIB/usr/share/aclocal/libstroke.m4:29:   run info '(automake)Extending aclocal'/usr/share/aclocal/libstroke.m4:29:   or see www.2cto.com
上网搜了一下,这似乎是一个很老的bug,并且很早就有了patch,但是搞不懂为什么在Debian中依然存在?
--- /usr/share/aclocal/libstroke.m4 2003-11-12 07:45:28.000000000 -0500
+++ libstroke.m4 2005-04-03 14:35:16.709447679 -0400
@@ -26,7 +26,7 @@
 dnl                     if different from name
 dnl description         (optional) used to construct help string
 dnl
-AC_DEFUN(smr_ARG_WITHLIB, [
+AC_DEFUN([smr_ARG_WITHLIB], [
 
 ifelse($2, , smr_lib=[$1], smr_lib=[$2])
 
@@ -74,7 +74,7 @@
 dnl extra-flags         (optional) flags required when compiling the
 dnl                     header, typically more includes; for ex. X_CFLAGS
 dnl
-AC_DEFUN(smr_ARG_WITHINCLUDES, [
+AC_DEFUN([smr_ARG_WITHINCLUDES], [
 
 AC_ARG_WITH([$1]-includes,
 [  --with-$1-includes=DIR  set directory for $1 headers],
@@ -116,7 +116,7 @@
 dnl x-libs      (optional) extra libraries, if needed to link with lib
 dnl x-flags     (optional) extra flags, if needed to include header files
 dnl
-AC_DEFUN(smr_CHECK_LIB,
+AC_DEFUN([smr_CHECK_LIB],
 [
 ifelse($2, , smr_lib=[$1], smr_lib=[$2])
 ifelse($5, , , smr_header=[$5])

 作者:zcodes

相关内容

    暂无相关文章