build: Portability fixes.
This also defers reporting on enabled drivers until it's really decided.
This commit is contained in:
parent
c26162ffe0
commit
43cd463728
10
configure.ac
10
configure.ac
|
@ -80,8 +80,6 @@ AC_SUBST(SR_LIB_VERSION_AGE)
|
||||||
AC_SUBST(SR_LIB_VERSION)
|
AC_SUBST(SR_LIB_VERSION)
|
||||||
AC_SUBST(SR_LIB_LDFLAGS)
|
AC_SUBST(SR_LIB_LDFLAGS)
|
||||||
|
|
||||||
# Hardware support '--enable' options.
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(all-drivers, AC_HELP_STRING([--enable-all-drivers],
|
AC_ARG_ENABLE(all-drivers, AC_HELP_STRING([--enable-all-drivers],
|
||||||
[enable all drivers by default [default=yes]]),
|
[enable all drivers by default [default=yes]]),
|
||||||
[HW_ENABLED_DEFAULT="$enableval"],
|
[HW_ENABLED_DEFAULT="$enableval"],
|
||||||
|
@ -100,8 +98,8 @@ AC_DEFUN([DRIVER], [
|
||||||
AC_ARG_ENABLE($2, AC_HELP_STRING([--enable-$2], [enable $1 support]),
|
AC_ARG_ENABLE($2, AC_HELP_STRING([--enable-$2], [enable $1 support]),
|
||||||
[m4_join([], [HW_], upperize([$2]))="$enableval"],
|
[m4_join([], [HW_], upperize([$2]))="$enableval"],
|
||||||
[m4_join([], [HW_], upperize([$2]))=$default])
|
[m4_join([], [HW_], upperize([$2]))=$default])
|
||||||
dots=$(expr substr ".............................." 1 $(expr 32 - length $2))
|
dots=$(echo -n ".............................." | cut -c 1-$(expr 32 - $(echo -n $2|wc -c)))
|
||||||
driver_summary="${driver_summary} - $2${dots} ${m4_join([], [HW_], upperize([$2]))}\n"
|
driver_summary="${driver_summary} - $2${dots} \${m4_join([], [HW_], upperize([$2]))}@"
|
||||||
])
|
])
|
||||||
|
|
||||||
DRIVER([Agilent DMM], [agilent-dmm])
|
DRIVER([Agilent DMM], [agilent-dmm])
|
||||||
|
@ -661,9 +659,9 @@ for lib in "glib-2.0 >= 2.32.0" "libzip >= 0.10" "libserialport >= 0.1.0" "libre
|
||||||
echo " - ($optional) $lib: $answer"
|
echo " - ($optional) $lib: $answer"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo -e "\nEnabled hardware drivers:\n${driver_summary}"
|
eval echo -e "@Enabled hardware drivers:@@${driver_summary}" | tr @ \\n
|
||||||
|
|
||||||
echo -e "\nEnabled language bindings:\n"
|
echo -e "Enabled language bindings:\n"
|
||||||
echo " - C++............................. $BINDINGS_CXX"
|
echo " - C++............................. $BINDINGS_CXX"
|
||||||
echo " - Python.......................... $BINDINGS_PYTHON"
|
echo " - Python.......................... $BINDINGS_PYTHON"
|
||||||
echo " - Java............................ $BINDINGS_JAVA"
|
echo " - Java............................ $BINDINGS_JAVA"
|
||||||
|
|
Loading…
Reference in New Issue