Skip to content

Commit 6fac0a6

Browse files
committed
d/configure: Prepare for execution on other OS
Committer: Steffen Moeller <moeller@debian.org>
1 parent 06fd203 commit 6fac0a6

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

debian/configure

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,26 @@
1212

1313
set -e
1414

15+
if [[ -z "$OSTYPE" ]]; then
16+
echo "W: The 'OSTYPE' environment variable is not set."
17+
echo " Failure to confirm Linux as the operating system cannot be determined."
18+
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
19+
echo "I: Found operating system '$OSTYPE'."
20+
else
21+
echo "W: LinuxCNC is not (yet) prepared for the operating system '$OSTYPE'."
22+
echo " Instead of this Debian+derivative-tailored configuration please invoke the compilation directly."
23+
if [[ "$OSTYPE" == "darwin"* ]]; then
24+
echo
25+
echo " LinuxCNC is yet unlikely to be successfully built on MacOS because of missing dependencies."
26+
if command -v brew &> /dev/null; then
27+
echo " With brew, we are aware of packages"
28+
echo " autoconf automake libusb libmodbus libtircp pkgconf"
29+
echo " but missing is, e.g., a package for libgpiod."
30+
fi
31+
fi
32+
exit 1;
33+
fi
34+
1535
usage () {
1636
P=${0##*/}
1737
cat 1>&2 <<EOF

0 commit comments

Comments
 (0)