@@ -56,7 +56,7 @@ ENABLE_BUILD_DOCUMENTATION=--enable-build-documentation=pdf
5656
5757while test $# -ne 0; do
5858 case " $1 " in
59- sim|uspace|noauto) echo " $1 is accepted for compatibility, but ignored" ;;
59+ sim|uspace|noauto) echo " I: Argument $1 is accepted for compatibility, but ignored" ;;
6060 help|-h|--help) usage; exit 0 ;;
6161 no-docs|nodocs) unset ENABLE_BUILD_DOCUMENTATION ;;
6262 * ) echo 1>&2 " Unknown option: $1 "
@@ -123,9 +123,9 @@ case $DISTRIB_NAME in
123123 Debian-10|Debian-10.* |Raspbian-10|Raspbian-10.* )
124124 ;;
125125 * )
126- echo " unknown distribution: $DISTRIB_NAME "
127- echo " detected dependencies may be incomplete or wrong"
128- echo " please consider fixing it and submitting a pull request"
126+ echo " W: Unknown distribution: ' $DISTRIB_NAME '. "
127+ echo " Detected dependencies may be incomplete or wrong. "
128+ echo " Please consider fixing it and submitting a pull request. "
129129 ;;
130130esac
131131
210210
211211rm -f ../build-stamp
212212echo " I: Successfully configured for '$DISTRIB_NAME '."
213-
213+ echo
214214echo " I: You can now start the build of LinuxCNC Debian packages."
215215echo " To build and test everything: fakeroot debian/rules binary"
216216echo " To build the executables and man pages only: fakeroot debian/rules binary-arch"
@@ -221,3 +221,34 @@ else
221221 echo " Building of documentation is disabled."
222222fi
223223echo " The DEB_BUILD_OPTIONS environment variable also works with dpkg-buildpackage."
224+ echo
225+
226+ if which dpkg-checkbuilddeps > /dev/null; then
227+
228+ if [ -n " $ENABLE_BUILD_DOCUMENTATION " ]; then
229+ a=$( cd .. && dpkg-checkbuilddeps 2>&1 | sed -e " s/.*error: //" || true)
230+ if [ -n " $a " ]; then
231+ echo " W: To successfully build all of LinuxCNC, install the following build dependencies are mising:"
232+ echo " $a "
233+ echo
234+ echo " I: Missing packages are auto-installed by"
235+ echo " sudo apt build-dep ."
236+ else
237+ echo " I: No build dependencies missing for complete builds including documentation."
238+ fi
239+ else
240+ a=$( cd .. && dpkg-checkbuilddeps -B 2>&1 | sed -e " s/.*error: //" || true)
241+ if [ -n " $a " ]; then
242+ echo " W: To successfully build LinuxCNC without documentation, the following build dependencies are mising:"
243+ echo " $a "
244+ else
245+ echo " I: No dependencies missing for building binaries only."
246+ fi
247+ fi
248+ else
249+ echo " W: Tool to check build-dependenices not found"
250+ echo " You may want to install it as follows:"
251+ echo " sudo apt install dpkg-dev"
252+ echo " and directly execute it like this:"
253+ echo " dpkg-checkbuilddeps"
254+ fi
0 commit comments