@@ -46,9 +46,9 @@ ENABLE_BUILD_DOCUMENTATION=--enable-build-documentation=pdf
4646
4747while test $# -ne 0; do
4848 case " $1 " in
49- sim|uspace|noauto) echo " $1 is accepted for compatibility, but ignored" ;;
49+ sim|uspace|noauto) echo " I: Argument $1 is accepted for compatibility, but ignored" ;;
5050 no-docs) unset ENABLE_BUILD_DOCUMENTATION ;;
51- * ) echo 1>&2 " Unknown option: $1 " ; exit 99 ;;
51+ * ) echo 1>&2 " E: Unknown option: $1 " ; exit 99 ;;
5252 esac
5353 shift
5454done
@@ -109,9 +109,9 @@ case $DISTRIB_NAME in
109109 Debian-10|Debian-10.* |Raspbian-10|Raspbian-10.* )
110110 ;;
111111 * )
112- echo " unknown distribution: $DISTRIB_NAME "
113- echo " detected dependencies may be incomplete or wrong"
114- echo " please consider fixing it and submitting a pull request"
112+ echo " W: Unknown distribution: ' $DISTRIB_NAME '. "
113+ echo " Detected dependencies may be incomplete or wrong. "
114+ echo " Please consider fixing it and submitting a pull request. "
115115 ;;
116116esac
117117
195195
196196
197197rm -f ../build-stamp
198- echo " successfully configured for '$DISTRIB_NAME '.."
198+ echo " I: Successfully configured for '$DISTRIB_NAME '."
199+
200+ if which dpkg-checkbuilddeps > /dev/null; then
201+
202+ if [ -n " $ENABLE_BUILD_DOCUMENTATION " ]; then
203+ a=$( cd .. && dpkg-checkbuilddeps || true)
204+ if [ -n " $a " ]; then
205+ echo " W: To successfully build all of LinuxCNC, install the following build dependencies are mising:\n$a "
206+ echo " The missing packages are auto-installed by"
207+ echo " sudo apt build-dep ."
208+ else
209+ echo " I: No build dependencies missing for complete builds including documentation."
210+ fi
211+ else
212+ a=$( cd .. && dpkg-checkbuilddeps -B || true)
213+ if [ -n " $a " ]; then
214+ echo " I: No dependencies missing for building binaries only."
215+ fi
216+ fi
217+ else
218+ echo " W: Tool to check build-dependenices not found"
219+ echo " You may want to install it as follows:"
220+ echo " sudo apt install dpkg-dev"
221+ echo " and directly execute it like this:"
222+ echo " dpkg-checkbuilddeps"
223+ fi
0 commit comments