kopia lustrzana https://github.com/Hamlib/Hamlib
If neither yes or no were given, build C++ binding only if prerequisites are met
Options availables are: ./configure # same as --with-cxx-binding=detect ./configure --with-cxx-binding=detect # build if prerequisites are met ./configure --with-cxx-binding=no # do not build ./configure --without-cxx-binding # do not build ./configure --with-cxx-binding=yes # fail if prerequisites aren't metpull/1862/head
rodzic
91e5f1441f
commit
e81e40ed70
21
configure.ac
21
configure.ac
|
@ -555,22 +555,27 @@ BINDING_LIST=""
|
||||||
BINDING_LIB_TARGETS=""
|
BINDING_LIB_TARGETS=""
|
||||||
|
|
||||||
|
|
||||||
dnl Check if cxx-binding not wanted, default is to build it
|
dnl Check if cxx-binding not wanted, default is to build it if a C++ compiler is available
|
||||||
|
|
||||||
# C++ binding
|
# C++ binding
|
||||||
AC_MSG_CHECKING([whether to build C++ binding])
|
AC_MSG_CHECKING([whether to build C++ binding])
|
||||||
AC_ARG_WITH([cxx-binding],
|
AC_ARG_WITH([cxx-binding],
|
||||||
[AS_HELP_STRING([--without-cxx-binding],
|
[AS_HELP_STRING([--without-cxx-binding],
|
||||||
[do not build C++ binding @<:@default=yes@:>@])],
|
[do not build C++ binding @<:@default=detect@:>@])],
|
||||||
[cf_with_cxx_binding=$withval],
|
[cf_with_cxx_binding=$withval],
|
||||||
[cf_with_cxx_binding=yes])
|
[cf_with_cxx_binding=detect])
|
||||||
AC_MSG_RESULT([$cf_with_cxx_binding])
|
AC_MSG_RESULT([$cf_with_cxx_binding])
|
||||||
|
|
||||||
AS_IF([test x"$cf_with_cxx_binding" = "xyes"], [
|
case "${cf_with_cxx_binding}" in
|
||||||
AS_IF([test x"${cf_with_cxx}" != "xyes"], [
|
detect) cf_with_cxx_binding=$cf_with_cxx ;;
|
||||||
AC_MSG_ERROR([C++ binding needs a C++ compiler.])
|
yes)
|
||||||
])
|
AS_IF([test x"${cf_with_cxx}" != "xyes"],
|
||||||
])
|
[AC_MSG_ERROR([C++ binding needs a C++ compiler.])]
|
||||||
|
)
|
||||||
|
;;
|
||||||
|
no) ;;
|
||||||
|
*) AC_MSG_ERROR([invalid value for --without-cxx-binding: ${cf_with_cxx_binding}]) ;;
|
||||||
|
esac
|
||||||
|
|
||||||
AS_IF([test x"${cf_with_cxx_binding}" = "xyes"],
|
AS_IF([test x"${cf_with_cxx_binding}" = "xyes"],
|
||||||
[BINDINGS="${BINDINGS} c++"])
|
[BINDINGS="${BINDINGS} c++"])
|
||||||
|
|
Ładowanie…
Reference in New Issue