Skip to content

Commit

Permalink
configure.ac: fix a bashism
Browse files Browse the repository at this point in the history
POSIX does not define "==" for string equality. Use "=" instead.

Thanks to Greg Troxel for the FreeBSD patch.
  • Loading branch information
LudovicRousseau committed Feb 16, 2021
1 parent 1886e60 commit f5dae8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ AC_ARG_ENABLE(libudev,
fi ])

# disable libudev check is USB is not used
if test "$use_usb" == "no"; then
if test "$use_usb" = "no"; then
use_libudev="no"
fi

Expand Down Expand Up @@ -244,7 +244,7 @@ AC_ARG_ENABLE(libusb,
else use_libusb="${use_libusb-yes}" ; fi ] )

# disable libusb check is USB is not used
if test "$use_usb" == "no"; then
if test "$use_usb" = "no"; then
use_libusb="no"
fi

Expand Down

0 comments on commit f5dae8d

Please sign in to comment.