mirror of
https://github.com/RPCS3/libusb.git
synced 2026-07-19 21:03:32 -04:00
3dc781ce3e
The Haiku build was previously being done as a nested package due to its C++ requirement, but for some reason setting SUBDIR in an automake conditional breaks parallel builds. To fix this and simplify the Haiku build process, this commit adds an unconditional check for a C++ compiler using AC_PROG_CXX and builds the Haiku sources as part of the main libusb project. Note that AC_PROG_CXX itself does not cause the configure script to fail if a C++ compiler is not found. Therefore on non-Haiku platforms there is no requirement to have a C++ compiler installed in order to build libusb. Closes #121 Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
20 lines
481 B
Bash
Executable File
20 lines
481 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# use libtoolize if available, otherwise look for glibtoolize (darwin)
|
|
if (libtoolize --version) < /dev/null > /dev/null 2>&1; then
|
|
LIBTOOLIZE=libtoolize
|
|
elif (glibtoolize --version) < /dev/null > /dev/null 2>&1; then
|
|
LIBTOOLIZE=glibtoolize
|
|
else
|
|
echo "libtoolize or glibtoolize was not found! Please install libtool." 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
$LIBTOOLIZE --copy --force || exit 1
|
|
aclocal || exit 1
|
|
autoheader || exit 1
|
|
autoconf || exit 1
|
|
automake -a -c || exit 1
|