我正在尝试移植http://fossies.org/linux/privat/old/fget-1.3.3.tar.gz/
将autoconf/aclocal.m4
移至acinclude.m4
,因为autoreconf不包含此文件,我也更改了:
-m4_include([encap.m4])
-m4_include([ac_path_generic.m4])
+m4_include([autoconf/encap.m4])
+m4_include([autoconf/ac_path_generic.m4])
此文件还包含:
AC_DEFUN([PSG_MODULE], [
m4_define([subdir], [$1])dnl
m4_include([$1/module.ac])dnl
m4_ifdef([$1][_INIT], [$1][_INIT($@)])dnl
m4_undefine([subdir])dnl
])
行PSG_MODULE([compat])
现在失败了:
$ autoreconf -fi
aclocal: error: acinclude.m4:194: file '$1/module.ac' does not exist
autoreconf: aclocal failed with exit status: 1
答案 0 :(得分:0)
将$1
替换为已存在的宏subdir
:
m4_include(subdir[/module.ac])dnl