Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added code to allow homebrew dylib during installation. #70

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions MacOSX/configure
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ LIBUSB_DIR=$(pkg-config --variable=libdir libusb-1.0)
LIBUSB_ARCHIVE="$LIBUSB_DIR"/libusb-1.0.a
LIBUSB_CFLAGS=$(pkg-config --cflags --static libusb-1.0)
LIBUSB_LIBS=$(pkg-config --libs --static libusb-1.0)
LIBUSB_IS_HOMEBREW=$(which brew 2> /dev/null)

if ls "$LIBUSB_DIR"/libusb-1.0*.dylib 2> /dev/null
then
ls -1 "$LIBUSB_DIR"/libusb-1.0*.dylib > /dev/null 2>&1
if [ "$?" ] && [ ! -f $LIBUSB_IS_HOMEBREW ]; then
echo -en $RED
echo "*****************************"
echo "Dynamic library libusb found in $LIBUSB_DIR"
Expand Down