Nice-to-have fix for autogen.sh
Xiaofan Chen
xiaofanc at gmail.com
Wed Feb 1 01:54:27 EST 2012
I think the right fix for autogen.sh is good to have.
Reference:
http://libusb.6.n5.nabble.com/usbutils-under-Mac-OS-X-tp5099892p5101516.html
On Mon, Dec 26, 2011 at 9:17 PM, Segher Boessenkool wrote:
>> For Mac OS X, I need the following patch to build under Mac OS X.
>> Mac OS X does not have libtoolize by default but it comes with
>> glibtoolize. The fix is copied from libusb git's autogen.sh.
>
> Unfortunately it is the wrong fix. I thought I had opened a Trac
> ticket for it, maybe not :-(
>
> The libtool that comes with the system has:
>
> segher$ type -f libtool libtoolize glibtool glibtoolize
> libtool is /usr/bin/libtool
> -bash: type: libtoolize: not found
> glibtool is /usr/bin/glibtool
> glibtoolize is /usr/bin/glibtoolize
>
> so it's fine there. But if the user has installed libtool himself,
> e.g. to get a newer version, he has something like:
>
> segher$ type -f libtool libtoolize glibtool glibtoolize
> libtool is /usr/local/gnu/bin/libtool
> libtoolize is /usr/local/gnu/bin/libtoolize
> glibtool is /usr/bin/glibtool
> glibtoolize is /usr/bin/glibtoolize
>
> and running glibtoolize blows up.
>
> A better fix is to look for libtoolize first, and only look for
> glibtoolize if libtoolize is not found.
>
Actually I also do not like to have the configure line
in autogen.sh.
./configure --enable-maintainer-mode --enable-debug-log \
--enable-examples-build $*
The line is not nice for release build since it enables verbose
debug log, it also does not work for cross-build. Probably
it is good to leave out this line and that is usually the
case for other projects.
--
Xiaofan
More information about the libusbx
mailing list