aboutsummaryrefslogtreecommitdiffstats
path: root/libusb-1.0/autogen.sh
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell@glassechidna.com.au>2011-07-17 19:50:07 +1000
committerBenjamin Dobell <benjamin.dobell@glassechidna.com.au>2011-07-17 19:50:07 +1000
commit8cb7f6ee8f872938e257541c07d0e4b2ad0e3f35 (patch)
tree7b40d7e1a5c28b2e05b01cd9e348aabd60f2d19c /libusb-1.0/autogen.sh
parenta9ba51f99ec1181874e4d018ea3d4b19a3eff6f7 (diff)
downloadexternal_heimdall-8cb7f6ee8f872938e257541c07d0e4b2ad0e3f35.zip
external_heimdall-8cb7f6ee8f872938e257541c07d0e4b2ad0e3f35.tar.gz
external_heimdall-8cb7f6ee8f872938e257541c07d0e4b2ad0e3f35.tar.bz2
- Added Utilities tab to Heimdall Frontend.
- Fixed Heimdall command line support for PIT files without a reference to themselves. - Added tool tips to Heimdall Frontend. - Added heimdall 'info' and 'download-pit' actions. - Made 'detect' action return 0 if a device is detected, 1 otherwise.
Diffstat (limited to 'libusb-1.0/autogen.sh')
-rwxr-xr-xlibusb-1.0/autogen.sh40
1 files changed, 0 insertions, 40 deletions
diff --git a/libusb-1.0/autogen.sh b/libusb-1.0/autogen.sh
deleted file mode 100755
index ae06b2f..0000000
--- a/libusb-1.0/autogen.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-# rebuilds the Windows def file by parsing the core and exporting all API_EXPORTED call
-create_def()
-{
- echo "rebuidling libusb-1.0.def file"
- echo "LIBRARY" > libusb/libusb-1.0.def
- echo "EXPORTS" >> libusb/libusb-1.0.def
- sed -n -e "s/.*API_EXPORTED.*\([[:blank:]]\)\(libusb.*\)(.*/ \2/p" libusb/*.c >> libusb/libusb-1.0.def
- sed -n -e "s/.*LIBUSB_CALL.*\([[:blank:]]\)\(libusb.*\)(.*/ \2/p" libusb/*.c >> libusb/libusb-1.0.def
- # We need to manually define a whole set of DLL aliases if we want the MS
- # DLLs to be usable with dynamically linked MinGW executables. This is
- # because it is not possible to avoid the @ decoration from import WINAPI
- # calls in MinGW generated objects, and .def based MS generated DLLs don't
- # have such a decoration => linking to MS DLL will fail without aliases.
- # Currently, the maximum size is 32 and all sizes are multiples of 4
- for i in 0 4 8 12 16 20 24 28 32
- do
- sed -n -e "s/.*API_EXPORTED.*\([[:blank:]]\)\(libusb.*\)(.*/ \2@$i = \2/p" libusb/*.c >> libusb/libusb-1.0.def
- sed -n -e "s/.*LIBUSB_CALL.*\([[:blank:]]\)\(libusb.*\)(.*/ \2@$i = \2/p" libusb/*.c >> libusb/libusb-1.0.def
- done
-}
-
-# use glibtoolize if it is available (darwin)
-(glibtoolize --version) < /dev/null > /dev/null 2>&1 && LIBTOOLIZE=glibtoolize || LIBTOOLIZE=libtoolize
-
-$LIBTOOLIZE --copy --force || exit 1
-# If available, apply libtool's NLS patch to set locale to C always.
-# Prevents an issue when compiling shared libs with MinGW on Chinese locale.
-# see: http://lists.gnu.org/archive/html/bug-libtool/2010-03/msg00012.html
-type -P patch &>/dev/null && { if [ -e "libtool-nls.diff" ]; then patch -p1 -Nl -i libtool-nls.diff &>/dev/null; fi; }
-#
-aclocal || exit 1
-autoheader || exit 1
-autoconf || exit 1
-automake -a -c || exit 1
-./configure --enable-maintainer-mode --enable-debug-log \
- --enable-examples-build $*
-# rebuild .def, if sed is available
-type -P sed &>/dev/null && create_def \ No newline at end of file