diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-09 23:54:48 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-09 23:54:48 (EDT) |
commit | 9a4ba891a9fdc8a8cb4302b7595110ed781246d5 (patch) | |
tree | 9fb912cc26822c9dd347493230bec3057cf5e398 | |
parent | cc866f42eee40c2a1b22960189232e100dee300c (diff) |
configure.ac: Configure usign
-rw-r--r-- | configure.ac | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index f486c94..600820f 100644 --- a/configure.ac +++ b/configure.ac @@ -169,3 +169,38 @@ AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([config.sh]) AC_CONFIG_FILES([tests/aux/defs.sh]) AC_OUTPUT() + +# +# usign +# +AC_ARG_WITH( + [cmake], + [AS_HELP_STRING([--with-cmake=PATH], [path to cmake utility])], + [ + case "${withval}" in + 'yes'|'') + AC_MSG_ERROR( + [--with-cmake requires an argument]) + ;; + 'no') + AC_MSG_ERROR([cmake is required]) + ;; + *) + CMAKE="${withval}" + AC_SUBST([CMAKE]) + ;; + esac + ], + [ + AC_PATH_PROG([CMAKE], [cmake]) + if test -z "${CMAKE}"; then + AC_MSG_ERROR([cmake not found]) + fi + ] +) +AS_MKDIR_P([3rdparty/usign]) +abs_srcdir="$(cd "${srcdir}" && pwd)" +( + cd 3rdparty/usign + "${CMAKE}" -D USE_LIBUBOX:BOOL=OFF "${abs_srcdir}/3rdparty/usign" +) |