Autotools将第三方库添加到tarball中

时间:2016-04-18 11:18:39

标签: c++ makefile autotools gnutls

我的问题类似于以下内容:

automake third party libraries

我必须将GnuTLS库添加到我们的项目tarball中。 我的目录结构是:

program/
|
+--src/
|   |
|   +-- *.cpp; *.hpp
|
+--lib/
|   |
|   +--gnutls
|       |
|       +--Makefile.am
|       +--configure.ac
|       +--*.cpp; *.hpp; etc.
|
+--Makefile.am
+--configure.ac

我的问题在于gnutls的configure.ac。我想以某种方式包含我的configure.ac或Makefile.am或类似的。

我尝试在configure.ac中包含gnutls的Makefile:

AC_CONFIG_FILES([lib/gnutls/Makefile lib/gnutls/lib/Makefile lib/gnutls/src/Makefile])

然后它给了我很多错误:

lib/gnutls/lib/Makefile.am:98: error: ENABLE_PKCS11 does not appear in AM_CONDITIONAL
lib/gnutls/lib/Makefile.am:122: error: ENABLE_PKCS11 does not appear in AM_CONDITIONAL
lib/gnutls/lib/Makefile.am:142: error: HAVE_LIBIDN does not appear in AM_CONDITIONAL
lib/gnutls/lib/Makefile.am:154: error: NEEDS_LIBRT does not appear in AM_CONDITIONAL
lib/gnutls/lib/Makefile.am:158: error: ENABLE_FIPS140 does not appear in AM_CONDITIONAL
lib/gnutls/lib/Makefile.am:167: error: HAVE_LD_VERSION_SCRIPT does not appear in AM_CONDITIONAL
lib/gnutls/lib/Makefile.am:184: error: HAVE_LD_OUTPUT_DEF does not appear in AM_CONDITIONAL
lib/gnutls/lib/Makefile.am:200: error: ENABLE_CXX does not appear in AM_CONDITIONAL
lib/gnutls/src/Makefile.am:29: error: ENABLE_CRYWRAP does not appear in AM_CONDITIONAL
lib/gnutls/src/Makefile.am:33: error: NEED_LIBOPTS does not appear in AM_CONDITIONAL
lib/gnutls/src/Makefile.am:53: error: ENABLE_SRP does not appear in AM_CONDITIONAL
lib/gnutls/src/Makefile.am:57: error: ENABLE_OCSP does not appear in AM_CONDITIONAL
lib/gnutls/src/Makefile.am:59: error: ENABLE_ANON does not appear in AM_CONDITIONAL
lib/gnutls/src/Makefile.am:64: error: ENABLE_DANE does not appear in AM_CONDITIONAL
lib/gnutls/src/Makefile.am:68: error: ENABLE_TROUSERS does not appear in AM_CONDITIONAL
lib/gnutls/src/Makefile.am:74: error: ENABLE_PKCS11 does not appear in AM_CONDITIONAL
lib/gnutls/src/Makefile.am:81: error: ENABLE_SRP does not appear in AM_CONDITIONAL
lib/gnutls/src/Makefile.am:96: error: ENABLE_OCSP does not appear in AM_CONDITIONAL
lib/gnutls/src/Makefile.am:118: error: ENABLE_ANON does not appear in AM_CONDITIONAL
lib/gnutls/src/Makefile.am:126: error: ENABLE_DANE does not appear in AM_CONDITIONAL
lib/gnutls/src/Makefile.am:163: error: ENABLE_DANE does not appear in AM_CONDITIONAL
lib/gnutls/src/Makefile.am:177: error: ENABLE_PKCS11 does not appear in AM_CONDITIONAL
lib/gnutls/src/Makefile.am:193: error: ENABLE_TROUSERS does not appear in AM_CONDITIONAL

我认为这些条件应该来自gnutls的configure.ac。 我的问题是:

  • 如何在configure.ac中包含此configure.ac?
  • 有没有更好的方法将GnuTLS纳入我们的构建过程?

0 个答案:

没有答案