liuqun / njit8021xclient

南京工程学院802.1X客户端(Linux版兼容H3C/iNode V2.40-F0335)
http://wiki.ubuntu.org.cn/南京工程学院802.1X客户端
158 stars 107 forks source link

Fix: "autoreconf --install" error about subdir-objects #14

Closed bitdust closed 7 years ago

bitdust commented 8 years ago

从automake更新到1.14.1开始,需要在autoconf的配置中加上 subdir-objects 选项才能顺利编译。 不然 autoreconf --install 会报错。

From the automake-1.14.1 NEWS file:

The next major Automake version (2.0) will unconditionally activate the 'subdir-objects' option. In order to smooth out the transition, we now give a warning (in the category 'unsupported') whenever a source file is present in a subdirectory but the 'subdir-object' is not enabled. For example, the following usage will trigger such a warning:

    bin_PROGRAMS = sub/foo
    sub_foo_SOURCES = sub/main.c sub/bar.c

ref: #13 ref: http://stackoverflow.com/questions/21609580/autotools-build-fails-due-to-subdir-objects-option-in-am-init-automake (所以我觉得修改 Makefile.am 兼容性更好一些)

liuqun commented 7 years ago

我最初引入 Automake 纯粹为了把 njitclient 移植到 OpenWRT 编译环境,后来熟悉了 OpenWRT 的 package Makefile / patches / files 目录结构,已经可以直接嵌入到 OpenWRT 而不需要依赖 AutoMake 了

bitdust commented 7 years ago

@liuqun 明白了,这样确实更方便了