acinclude.m4:文件'$ 1 / module.ac'不存在

时间:2015-12-11 13:41:07

标签: autoconf m4

我正在尝试移植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

1 个答案:

答案 0 :(得分:0)

$1替换为已存在的宏subdir

m4_include(subdir[/module.ac])dnl