@@ -46,9 +46,9 @@ ENABLE_BUILD_DOCUMENTATION=--enable-build-documentation=pdf
46
46
47
47
while test $# -ne 0; do
48
48
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" ;;
50
50
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 ;;
52
52
esac
53
53
shift
54
54
done
@@ -109,9 +109,9 @@ case $DISTRIB_NAME in
109
109
Debian-10|Debian-10.* |Raspbian-10|Raspbian-10.* )
110
110
;;
111
111
* )
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. "
115
115
;;
116
116
esac
117
117
195
195
196
196
197
197
rm -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