libusb 0.3.4 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Gemfile +1 -0
- data/History.md +10 -0
- data/README.md +19 -6
- data/Rakefile +1 -1
- data/ext/extconf.rb +17 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/AUTHORS +18 -6
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/COPYING +0 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/ChangeLog +58 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/INSTALL +0 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/Makefile.am +6 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/Makefile.in +248 -174
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/NEWS +2 -2
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/PORTING +0 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/README +2 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/TODO +0 -0
- data/ext/libusbx-1.0.17/Xcode/common.xcconfig +40 -0
- data/ext/libusbx-1.0.17/Xcode/config.h +28 -0
- data/ext/libusbx-1.0.17/Xcode/debug.xcconfig +29 -0
- data/ext/libusbx-1.0.17/Xcode/libusbx.xcconfig +21 -0
- data/ext/libusbx-1.0.17/Xcode/libusbx.xcodeproj/project.pbxproj +864 -0
- data/ext/libusbx-1.0.17/Xcode/libusbx_debug.xcconfig +21 -0
- data/ext/libusbx-1.0.17/Xcode/libusbx_release.xcconfig +21 -0
- data/ext/libusbx-1.0.17/Xcode/release.xcconfig +29 -0
- data/ext/libusbx-1.0.17/aclocal.m4 +1112 -0
- data/ext/libusbx-1.0.17/android/README +114 -0
- data/ext/libusbx-1.0.17/android/config.h +90 -0
- data/ext/libusbx-1.0.17/android/jni/Android.mk +23 -0
- data/ext/libusbx-1.0.17/android/jni/Application.mk +19 -0
- data/ext/libusbx-1.0.17/android/jni/examples.mk +134 -0
- data/ext/libusbx-1.0.17/android/jni/libusb.mk +54 -0
- data/ext/libusbx-1.0.17/android/jni/tests.mk +56 -0
- data/ext/libusbx-1.0.17/compile +347 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/config.guess +164 -130
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/config.h.in +37 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/config.sub +174 -89
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/configure +723 -302
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/configure.ac +71 -20
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/depcomp +345 -185
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/doc/Makefile.am +0 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/doc/Makefile.in +95 -32
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/doc/doxygen.cfg.in +1 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/Makefile.am +5 -4
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/Makefile.in +208 -104
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/dpfp.c +1 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/dpfp_threaded.c +1 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/ezusb.c +188 -8
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/ezusb.h +18 -5
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/fxload.c +90 -64
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/getopt/getopt.c +0 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/getopt/getopt.h +0 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/getopt/getopt1.c +0 -0
- data/ext/libusbx-1.0.17/examples/hotplugtest.c +97 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/listdevs.c +12 -4
- data/ext/libusbx-1.0.17/examples/sam3u_benchmark.c +193 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/xusb.c +106 -49
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/install-sh +21 -14
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb-1.0.pc.in +1 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/Makefile.am +29 -10
- data/ext/libusbx-1.0.17/libusb/Makefile.in +914 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/core.c +378 -87
- data/ext/libusbx-1.0.17/libusb/descriptor.c +1199 -0
- data/ext/libusbx-1.0.17/libusb/hotplug.c +322 -0
- data/ext/libusbx-1.0.17/libusb/hotplug.h +82 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/io.c +182 -62
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusb-1.0.def +32 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusb-1.0.rc +2 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusb.h +481 -32
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusbi.h +135 -38
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/darwin_usb.c +591 -496
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/darwin_usb.h +39 -46
- data/ext/libusbx-1.0.17/libusb/os/linux_netlink.c +345 -0
- data/ext/libusbx-1.0.17/libusb/os/linux_udev.c +306 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/linux_usbfs.c +653 -617
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/linux_usbfs.h +32 -0
- data/ext/{libusbx-1.0.14/libusb/os/openbsd_usb.c → libusbx-1.0.17/libusb/os/netbsd_usb.c} +70 -63
- data/ext/libusbx-1.0.17/libusb/os/openbsd_usb.c +823 -0
- data/ext/libusbx-1.0.17/libusb/os/poll_posix.c +51 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/poll_posix.h +2 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/poll_windows.c +85 -106
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/poll_windows.h +14 -3
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_posix.c +3 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_posix.h +0 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_windows.c +6 -5
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_windows.h +0 -0
- data/ext/libusbx-1.0.17/libusb/os/wince_usb.c +1026 -0
- data/ext/libusbx-1.0.17/libusb/os/wince_usb.h +131 -0
- data/ext/libusbx-1.0.17/libusb/os/windows_common.h +108 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/windows_usb.c +92 -57
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/windows_usb.h +2 -63
- data/ext/libusbx-1.0.17/libusb/strerror.c +184 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/sync.c +24 -38
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/version.h +1 -1
- data/ext/libusbx-1.0.17/libusb/version_nano.h +1 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/ltmain.sh +60 -41
- data/ext/{libusbx-1.0.14/aclocal.m4 → libusbx-1.0.17/m4/libtool.m4} +229 -1723
- data/ext/libusbx-1.0.17/m4/ltoptions.m4 +384 -0
- data/ext/libusbx-1.0.17/m4/ltsugar.m4 +123 -0
- data/ext/libusbx-1.0.17/m4/ltversion.m4 +23 -0
- data/ext/libusbx-1.0.17/m4/lt~obsolete.m4 +98 -0
- data/ext/libusbx-1.0.17/missing +215 -0
- data/ext/libusbx-1.0.17/tests/Makefile.am +6 -0
- data/ext/libusbx-1.0.17/tests/Makefile.in +583 -0
- data/ext/libusbx-1.0.17/tests/libusbx_testlib.h +107 -0
- data/ext/libusbx-1.0.17/tests/stress.c +160 -0
- data/ext/libusbx-1.0.17/tests/testlib.c +276 -0
- data/lib/libusb.rb +4 -0
- data/lib/libusb/call.rb +43 -1
- data/lib/libusb/constants.rb +5 -0
- data/lib/libusb/context.rb +100 -0
- data/lib/libusb/dev_handle.rb +27 -0
- data/lib/libusb/device.rb +10 -4
- data/lib/libusb/version_gem.rb +1 -1
- data/test/test_libusb_capability.rb +2 -2
- data/test/test_libusb_compat.rb +2 -2
- data/test/test_libusb_compat_mass_storage.rb +2 -2
- data/test/test_libusb_descriptors.rb +4 -2
- data/test/test_libusb_event_machine.rb +2 -2
- data/test/test_libusb_gc.rb +2 -2
- data/test/test_libusb_hotplug.rb +115 -0
- data/test/test_libusb_iso_transfer.rb +3 -3
- data/test/test_libusb_mass_storage.rb +6 -16
- data/test/test_libusb_mass_storage2.rb +26 -3
- data/test/test_libusb_structs.rb +2 -2
- data/test/test_libusb_threads.rb +2 -2
- data/test/test_libusb_version.rb +2 -2
- metadata +127 -68
- metadata.gz.sig +0 -0
- data/ext/libusbx-1.0.14/THANKS +0 -7
- data/ext/libusbx-1.0.14/compile +0 -143
- data/ext/libusbx-1.0.14/libusb/Makefile.in +0 -721
- data/ext/libusbx-1.0.14/libusb/descriptor.c +0 -731
- data/ext/libusbx-1.0.14/libusb/version_nano.h +0 -1
- data/ext/libusbx-1.0.14/missing +0 -376
@@ -0,0 +1,347 @@
|
|
1
|
+
#! /bin/sh
|
2
|
+
# Wrapper for compilers which do not understand '-c -o'.
|
3
|
+
|
4
|
+
scriptversion=2012-10-14.11; # UTC
|
5
|
+
|
6
|
+
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
|
7
|
+
# Written by Tom Tromey <tromey@cygnus.com>.
|
8
|
+
#
|
9
|
+
# This program is free software; you can redistribute it and/or modify
|
10
|
+
# it under the terms of the GNU General Public License as published by
|
11
|
+
# the Free Software Foundation; either version 2, or (at your option)
|
12
|
+
# any later version.
|
13
|
+
#
|
14
|
+
# This program is distributed in the hope that it will be useful,
|
15
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17
|
+
# GNU General Public License for more details.
|
18
|
+
#
|
19
|
+
# You should have received a copy of the GNU General Public License
|
20
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
21
|
+
|
22
|
+
# As a special exception to the GNU General Public License, if you
|
23
|
+
# distribute this file as part of a program that contains a
|
24
|
+
# configuration script generated by Autoconf, you may include it under
|
25
|
+
# the same distribution terms that you use for the rest of that program.
|
26
|
+
|
27
|
+
# This file is maintained in Automake, please report
|
28
|
+
# bugs to <bug-automake@gnu.org> or send patches to
|
29
|
+
# <automake-patches@gnu.org>.
|
30
|
+
|
31
|
+
nl='
|
32
|
+
'
|
33
|
+
|
34
|
+
# We need space, tab and new line, in precisely that order. Quoting is
|
35
|
+
# there to prevent tools from complaining about whitespace usage.
|
36
|
+
IFS=" "" $nl"
|
37
|
+
|
38
|
+
file_conv=
|
39
|
+
|
40
|
+
# func_file_conv build_file lazy
|
41
|
+
# Convert a $build file to $host form and store it in $file
|
42
|
+
# Currently only supports Windows hosts. If the determined conversion
|
43
|
+
# type is listed in (the comma separated) LAZY, no conversion will
|
44
|
+
# take place.
|
45
|
+
func_file_conv ()
|
46
|
+
{
|
47
|
+
file=$1
|
48
|
+
case $file in
|
49
|
+
/ | /[!/]*) # absolute file, and not a UNC file
|
50
|
+
if test -z "$file_conv"; then
|
51
|
+
# lazily determine how to convert abs files
|
52
|
+
case `uname -s` in
|
53
|
+
MINGW*)
|
54
|
+
file_conv=mingw
|
55
|
+
;;
|
56
|
+
CYGWIN*)
|
57
|
+
file_conv=cygwin
|
58
|
+
;;
|
59
|
+
*)
|
60
|
+
file_conv=wine
|
61
|
+
;;
|
62
|
+
esac
|
63
|
+
fi
|
64
|
+
case $file_conv/,$2, in
|
65
|
+
*,$file_conv,*)
|
66
|
+
;;
|
67
|
+
mingw/*)
|
68
|
+
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
|
69
|
+
;;
|
70
|
+
cygwin/*)
|
71
|
+
file=`cygpath -m "$file" || echo "$file"`
|
72
|
+
;;
|
73
|
+
wine/*)
|
74
|
+
file=`winepath -w "$file" || echo "$file"`
|
75
|
+
;;
|
76
|
+
esac
|
77
|
+
;;
|
78
|
+
esac
|
79
|
+
}
|
80
|
+
|
81
|
+
# func_cl_dashL linkdir
|
82
|
+
# Make cl look for libraries in LINKDIR
|
83
|
+
func_cl_dashL ()
|
84
|
+
{
|
85
|
+
func_file_conv "$1"
|
86
|
+
if test -z "$lib_path"; then
|
87
|
+
lib_path=$file
|
88
|
+
else
|
89
|
+
lib_path="$lib_path;$file"
|
90
|
+
fi
|
91
|
+
linker_opts="$linker_opts -LIBPATH:$file"
|
92
|
+
}
|
93
|
+
|
94
|
+
# func_cl_dashl library
|
95
|
+
# Do a library search-path lookup for cl
|
96
|
+
func_cl_dashl ()
|
97
|
+
{
|
98
|
+
lib=$1
|
99
|
+
found=no
|
100
|
+
save_IFS=$IFS
|
101
|
+
IFS=';'
|
102
|
+
for dir in $lib_path $LIB
|
103
|
+
do
|
104
|
+
IFS=$save_IFS
|
105
|
+
if $shared && test -f "$dir/$lib.dll.lib"; then
|
106
|
+
found=yes
|
107
|
+
lib=$dir/$lib.dll.lib
|
108
|
+
break
|
109
|
+
fi
|
110
|
+
if test -f "$dir/$lib.lib"; then
|
111
|
+
found=yes
|
112
|
+
lib=$dir/$lib.lib
|
113
|
+
break
|
114
|
+
fi
|
115
|
+
if test -f "$dir/lib$lib.a"; then
|
116
|
+
found=yes
|
117
|
+
lib=$dir/lib$lib.a
|
118
|
+
break
|
119
|
+
fi
|
120
|
+
done
|
121
|
+
IFS=$save_IFS
|
122
|
+
|
123
|
+
if test "$found" != yes; then
|
124
|
+
lib=$lib.lib
|
125
|
+
fi
|
126
|
+
}
|
127
|
+
|
128
|
+
# func_cl_wrapper cl arg...
|
129
|
+
# Adjust compile command to suit cl
|
130
|
+
func_cl_wrapper ()
|
131
|
+
{
|
132
|
+
# Assume a capable shell
|
133
|
+
lib_path=
|
134
|
+
shared=:
|
135
|
+
linker_opts=
|
136
|
+
for arg
|
137
|
+
do
|
138
|
+
if test -n "$eat"; then
|
139
|
+
eat=
|
140
|
+
else
|
141
|
+
case $1 in
|
142
|
+
-o)
|
143
|
+
# configure might choose to run compile as 'compile cc -o foo foo.c'.
|
144
|
+
eat=1
|
145
|
+
case $2 in
|
146
|
+
*.o | *.[oO][bB][jJ])
|
147
|
+
func_file_conv "$2"
|
148
|
+
set x "$@" -Fo"$file"
|
149
|
+
shift
|
150
|
+
;;
|
151
|
+
*)
|
152
|
+
func_file_conv "$2"
|
153
|
+
set x "$@" -Fe"$file"
|
154
|
+
shift
|
155
|
+
;;
|
156
|
+
esac
|
157
|
+
;;
|
158
|
+
-I)
|
159
|
+
eat=1
|
160
|
+
func_file_conv "$2" mingw
|
161
|
+
set x "$@" -I"$file"
|
162
|
+
shift
|
163
|
+
;;
|
164
|
+
-I*)
|
165
|
+
func_file_conv "${1#-I}" mingw
|
166
|
+
set x "$@" -I"$file"
|
167
|
+
shift
|
168
|
+
;;
|
169
|
+
-l)
|
170
|
+
eat=1
|
171
|
+
func_cl_dashl "$2"
|
172
|
+
set x "$@" "$lib"
|
173
|
+
shift
|
174
|
+
;;
|
175
|
+
-l*)
|
176
|
+
func_cl_dashl "${1#-l}"
|
177
|
+
set x "$@" "$lib"
|
178
|
+
shift
|
179
|
+
;;
|
180
|
+
-L)
|
181
|
+
eat=1
|
182
|
+
func_cl_dashL "$2"
|
183
|
+
;;
|
184
|
+
-L*)
|
185
|
+
func_cl_dashL "${1#-L}"
|
186
|
+
;;
|
187
|
+
-static)
|
188
|
+
shared=false
|
189
|
+
;;
|
190
|
+
-Wl,*)
|
191
|
+
arg=${1#-Wl,}
|
192
|
+
save_ifs="$IFS"; IFS=','
|
193
|
+
for flag in $arg; do
|
194
|
+
IFS="$save_ifs"
|
195
|
+
linker_opts="$linker_opts $flag"
|
196
|
+
done
|
197
|
+
IFS="$save_ifs"
|
198
|
+
;;
|
199
|
+
-Xlinker)
|
200
|
+
eat=1
|
201
|
+
linker_opts="$linker_opts $2"
|
202
|
+
;;
|
203
|
+
-*)
|
204
|
+
set x "$@" "$1"
|
205
|
+
shift
|
206
|
+
;;
|
207
|
+
*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
|
208
|
+
func_file_conv "$1"
|
209
|
+
set x "$@" -Tp"$file"
|
210
|
+
shift
|
211
|
+
;;
|
212
|
+
*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
|
213
|
+
func_file_conv "$1" mingw
|
214
|
+
set x "$@" "$file"
|
215
|
+
shift
|
216
|
+
;;
|
217
|
+
*)
|
218
|
+
set x "$@" "$1"
|
219
|
+
shift
|
220
|
+
;;
|
221
|
+
esac
|
222
|
+
fi
|
223
|
+
shift
|
224
|
+
done
|
225
|
+
if test -n "$linker_opts"; then
|
226
|
+
linker_opts="-link$linker_opts"
|
227
|
+
fi
|
228
|
+
exec "$@" $linker_opts
|
229
|
+
exit 1
|
230
|
+
}
|
231
|
+
|
232
|
+
eat=
|
233
|
+
|
234
|
+
case $1 in
|
235
|
+
'')
|
236
|
+
echo "$0: No command. Try '$0 --help' for more information." 1>&2
|
237
|
+
exit 1;
|
238
|
+
;;
|
239
|
+
-h | --h*)
|
240
|
+
cat <<\EOF
|
241
|
+
Usage: compile [--help] [--version] PROGRAM [ARGS]
|
242
|
+
|
243
|
+
Wrapper for compilers which do not understand '-c -o'.
|
244
|
+
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
|
245
|
+
arguments, and rename the output as expected.
|
246
|
+
|
247
|
+
If you are trying to build a whole package this is not the
|
248
|
+
right script to run: please start by reading the file 'INSTALL'.
|
249
|
+
|
250
|
+
Report bugs to <bug-automake@gnu.org>.
|
251
|
+
EOF
|
252
|
+
exit $?
|
253
|
+
;;
|
254
|
+
-v | --v*)
|
255
|
+
echo "compile $scriptversion"
|
256
|
+
exit $?
|
257
|
+
;;
|
258
|
+
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
|
259
|
+
func_cl_wrapper "$@" # Doesn't return...
|
260
|
+
;;
|
261
|
+
esac
|
262
|
+
|
263
|
+
ofile=
|
264
|
+
cfile=
|
265
|
+
|
266
|
+
for arg
|
267
|
+
do
|
268
|
+
if test -n "$eat"; then
|
269
|
+
eat=
|
270
|
+
else
|
271
|
+
case $1 in
|
272
|
+
-o)
|
273
|
+
# configure might choose to run compile as 'compile cc -o foo foo.c'.
|
274
|
+
# So we strip '-o arg' only if arg is an object.
|
275
|
+
eat=1
|
276
|
+
case $2 in
|
277
|
+
*.o | *.obj)
|
278
|
+
ofile=$2
|
279
|
+
;;
|
280
|
+
*)
|
281
|
+
set x "$@" -o "$2"
|
282
|
+
shift
|
283
|
+
;;
|
284
|
+
esac
|
285
|
+
;;
|
286
|
+
*.c)
|
287
|
+
cfile=$1
|
288
|
+
set x "$@" "$1"
|
289
|
+
shift
|
290
|
+
;;
|
291
|
+
*)
|
292
|
+
set x "$@" "$1"
|
293
|
+
shift
|
294
|
+
;;
|
295
|
+
esac
|
296
|
+
fi
|
297
|
+
shift
|
298
|
+
done
|
299
|
+
|
300
|
+
if test -z "$ofile" || test -z "$cfile"; then
|
301
|
+
# If no '-o' option was seen then we might have been invoked from a
|
302
|
+
# pattern rule where we don't need one. That is ok -- this is a
|
303
|
+
# normal compilation that the losing compiler can handle. If no
|
304
|
+
# '.c' file was seen then we are probably linking. That is also
|
305
|
+
# ok.
|
306
|
+
exec "$@"
|
307
|
+
fi
|
308
|
+
|
309
|
+
# Name of file we expect compiler to create.
|
310
|
+
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
|
311
|
+
|
312
|
+
# Create the lock directory.
|
313
|
+
# Note: use '[/\\:.-]' here to ensure that we don't use the same name
|
314
|
+
# that we are using for the .o file. Also, base the name on the expected
|
315
|
+
# object file name, since that is what matters with a parallel build.
|
316
|
+
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
|
317
|
+
while true; do
|
318
|
+
if mkdir "$lockdir" >/dev/null 2>&1; then
|
319
|
+
break
|
320
|
+
fi
|
321
|
+
sleep 1
|
322
|
+
done
|
323
|
+
# FIXME: race condition here if user kills between mkdir and trap.
|
324
|
+
trap "rmdir '$lockdir'; exit 1" 1 2 15
|
325
|
+
|
326
|
+
# Run the compile.
|
327
|
+
"$@"
|
328
|
+
ret=$?
|
329
|
+
|
330
|
+
if test -f "$cofile"; then
|
331
|
+
test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
|
332
|
+
elif test -f "${cofile}bj"; then
|
333
|
+
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
|
334
|
+
fi
|
335
|
+
|
336
|
+
rmdir "$lockdir"
|
337
|
+
exit $ret
|
338
|
+
|
339
|
+
# Local Variables:
|
340
|
+
# mode: shell-script
|
341
|
+
# sh-indentation: 2
|
342
|
+
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
343
|
+
# time-stamp-start: "scriptversion="
|
344
|
+
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
345
|
+
# time-stamp-time-zone: "UTC"
|
346
|
+
# time-stamp-end: "; # UTC"
|
347
|
+
# End:
|
@@ -1,14 +1,14 @@
|
|
1
1
|
#! /bin/sh
|
2
2
|
# Attempt to guess a canonical system name.
|
3
3
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
4
|
-
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
|
5
|
-
# Free Software Foundation, Inc.
|
4
|
+
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
5
|
+
# 2011, 2012, 2013 Free Software Foundation, Inc.
|
6
6
|
|
7
|
-
timestamp='
|
7
|
+
timestamp='2012-12-29'
|
8
8
|
|
9
9
|
# This file is free software; you can redistribute it and/or modify it
|
10
10
|
# under the terms of the GNU General Public License as published by
|
11
|
-
# the Free Software Foundation; either version
|
11
|
+
# the Free Software Foundation; either version 3 of the License, or
|
12
12
|
# (at your option) any later version.
|
13
13
|
#
|
14
14
|
# This program is distributed in the hope that it will be useful, but
|
@@ -17,26 +17,22 @@ timestamp='2009-11-20'
|
|
17
17
|
# General Public License for more details.
|
18
18
|
#
|
19
19
|
# You should have received a copy of the GNU General Public License
|
20
|
-
# along with this program; if not,
|
21
|
-
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
22
|
-
# 02110-1301, USA.
|
20
|
+
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
23
21
|
#
|
24
22
|
# As a special exception to the GNU General Public License, if you
|
25
23
|
# distribute this file as part of a program that contains a
|
26
24
|
# configuration script generated by Autoconf, you may include it under
|
27
|
-
# the same distribution terms that you use for the rest of that
|
28
|
-
|
29
|
-
|
30
|
-
# Originally written by Per Bothner. Please send patches (context
|
31
|
-
# diff format) to <config-patches@gnu.org> and include a ChangeLog
|
32
|
-
# entry.
|
25
|
+
# the same distribution terms that you use for the rest of that
|
26
|
+
# program. This Exception is an additional permission under section 7
|
27
|
+
# of the GNU General Public License, version 3 ("GPLv3").
|
33
28
|
#
|
34
|
-
#
|
35
|
-
# config.sub. If it succeeds, it prints the system name on stdout, and
|
36
|
-
# exits with 0. Otherwise, it exits with 1.
|
29
|
+
# Originally written by Per Bothner.
|
37
30
|
#
|
38
31
|
# You can get the latest version of this script from:
|
39
32
|
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
33
|
+
#
|
34
|
+
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
|
35
|
+
|
40
36
|
|
41
37
|
me=`echo "$0" | sed -e 's,.*/,,'`
|
42
38
|
|
@@ -56,8 +52,9 @@ version="\
|
|
56
52
|
GNU config.guess ($timestamp)
|
57
53
|
|
58
54
|
Originally written by Per Bothner.
|
59
|
-
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
60
|
-
2002, 2003, 2004, 2005, 2006, 2007, 2008
|
55
|
+
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
56
|
+
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
|
57
|
+
2012, 2013 Free Software Foundation, Inc.
|
61
58
|
|
62
59
|
This is free software; see the source for copying conditions. There is NO
|
63
60
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
@@ -144,7 +141,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
|
144
141
|
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
145
142
|
*:NetBSD:*:*)
|
146
143
|
# NetBSD (nbsd) targets should (where applicable) match one or
|
147
|
-
# more of the
|
144
|
+
# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
|
148
145
|
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
|
149
146
|
# switched to ELF, *-*-netbsd* would select the old
|
150
147
|
# object file format. This provides both forward
|
@@ -180,7 +177,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
180
177
|
fi
|
181
178
|
;;
|
182
179
|
*)
|
183
|
-
|
180
|
+
os=netbsd
|
184
181
|
;;
|
185
182
|
esac
|
186
183
|
# The OS release
|
@@ -201,6 +198,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
201
198
|
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
202
199
|
echo "${machine}-${os}${release}"
|
203
200
|
exit ;;
|
201
|
+
*:Bitrig:*:*)
|
202
|
+
UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
|
203
|
+
echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
|
204
|
+
exit ;;
|
204
205
|
*:OpenBSD:*:*)
|
205
206
|
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
|
206
207
|
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
|
@@ -223,7 +224,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
223
224
|
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
224
225
|
;;
|
225
226
|
*5.*)
|
226
|
-
|
227
|
+
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
|
227
228
|
;;
|
228
229
|
esac
|
229
230
|
# According to Compaq, /usr/sbin/psrinfo has been available on
|
@@ -269,7 +270,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
269
270
|
# A Xn.n version is an unreleased experimental baselevel.
|
270
271
|
# 1.2 uses "1.2" for uname -r.
|
271
272
|
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
272
|
-
exit
|
273
|
+
# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
|
274
|
+
exitcode=$?
|
275
|
+
trap '' 0
|
276
|
+
exit $exitcode ;;
|
273
277
|
Alpha\ *:Windows_NT*:*)
|
274
278
|
# How do we know it's Interix rather than the generic POSIX subsystem?
|
275
279
|
# Should we change UNAME_MACHINE based on the output of uname instead
|
@@ -295,12 +299,12 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
295
299
|
echo s390-ibm-zvmoe
|
296
300
|
exit ;;
|
297
301
|
*:OS400:*:*)
|
298
|
-
|
302
|
+
echo powerpc-ibm-os400
|
299
303
|
exit ;;
|
300
304
|
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
301
305
|
echo arm-acorn-riscix${UNAME_RELEASE}
|
302
306
|
exit ;;
|
303
|
-
arm
|
307
|
+
arm*:riscos:*:*|arm*:RISCOS:*:*)
|
304
308
|
echo arm-unknown-riscos
|
305
309
|
exit ;;
|
306
310
|
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
|
@@ -394,23 +398,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
394
398
|
# MiNT. But MiNT is downward compatible to TOS, so this should
|
395
399
|
# be no problem.
|
396
400
|
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
397
|
-
|
401
|
+
echo m68k-atari-mint${UNAME_RELEASE}
|
398
402
|
exit ;;
|
399
403
|
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
400
404
|
echo m68k-atari-mint${UNAME_RELEASE}
|
401
|
-
|
405
|
+
exit ;;
|
402
406
|
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
403
|
-
|
407
|
+
echo m68k-atari-mint${UNAME_RELEASE}
|
404
408
|
exit ;;
|
405
409
|
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
406
|
-
|
407
|
-
|
410
|
+
echo m68k-milan-mint${UNAME_RELEASE}
|
411
|
+
exit ;;
|
408
412
|
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
409
|
-
|
410
|
-
|
413
|
+
echo m68k-hades-mint${UNAME_RELEASE}
|
414
|
+
exit ;;
|
411
415
|
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
412
|
-
|
413
|
-
|
416
|
+
echo m68k-unknown-mint${UNAME_RELEASE}
|
417
|
+
exit ;;
|
414
418
|
m68k:machten:*:*)
|
415
419
|
echo m68k-apple-machten${UNAME_RELEASE}
|
416
420
|
exit ;;
|
@@ -480,8 +484,8 @@ EOF
|
|
480
484
|
echo m88k-motorola-sysv3
|
481
485
|
exit ;;
|
482
486
|
AViiON:dgux:*:*)
|
483
|
-
|
484
|
-
|
487
|
+
# DG/UX returns AViiON for all architectures
|
488
|
+
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
485
489
|
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
|
486
490
|
then
|
487
491
|
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
|
@@ -494,7 +498,7 @@ EOF
|
|
494
498
|
else
|
495
499
|
echo i586-dg-dgux${UNAME_RELEASE}
|
496
500
|
fi
|
497
|
-
|
501
|
+
exit ;;
|
498
502
|
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
499
503
|
echo m88k-dolphin-sysv3
|
500
504
|
exit ;;
|
@@ -551,7 +555,7 @@ EOF
|
|
551
555
|
echo rs6000-ibm-aix3.2
|
552
556
|
fi
|
553
557
|
exit ;;
|
554
|
-
*:AIX:*:[
|
558
|
+
*:AIX:*:[4567])
|
555
559
|
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
556
560
|
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
557
561
|
IBM_ARCH=rs6000
|
@@ -594,52 +598,52 @@ EOF
|
|
594
598
|
9000/[678][0-9][0-9])
|
595
599
|
if [ -x /usr/bin/getconf ]; then
|
596
600
|
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
601
|
+
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
602
|
+
case "${sc_cpu_version}" in
|
603
|
+
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
604
|
+
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
605
|
+
532) # CPU_PA_RISC2_0
|
606
|
+
case "${sc_kernel_bits}" in
|
607
|
+
32) HP_ARCH="hppa2.0n" ;;
|
608
|
+
64) HP_ARCH="hppa2.0w" ;;
|
605
609
|
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
|
606
|
-
|
607
|
-
|
610
|
+
esac ;;
|
611
|
+
esac
|
608
612
|
fi
|
609
613
|
if [ "${HP_ARCH}" = "" ]; then
|
610
614
|
eval $set_cc_for_build
|
611
|
-
sed 's/^
|
615
|
+
sed 's/^ //' << EOF >$dummy.c
|
612
616
|
|
613
|
-
|
614
|
-
|
615
|
-
|
617
|
+
#define _HPUX_SOURCE
|
618
|
+
#include <stdlib.h>
|
619
|
+
#include <unistd.h>
|
616
620
|
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
621
|
+
int main ()
|
622
|
+
{
|
623
|
+
#if defined(_SC_KERNEL_BITS)
|
624
|
+
long bits = sysconf(_SC_KERNEL_BITS);
|
625
|
+
#endif
|
626
|
+
long cpu = sysconf (_SC_CPU_VERSION);
|
623
627
|
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
628
|
+
switch (cpu)
|
629
|
+
{
|
630
|
+
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
631
|
+
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
632
|
+
case CPU_PA_RISC2_0:
|
633
|
+
#if defined(_SC_KERNEL_BITS)
|
634
|
+
switch (bits)
|
635
|
+
{
|
636
|
+
case 64: puts ("hppa2.0w"); break;
|
637
|
+
case 32: puts ("hppa2.0n"); break;
|
638
|
+
default: puts ("hppa2.0"); break;
|
639
|
+
} break;
|
640
|
+
#else /* !defined(_SC_KERNEL_BITS) */
|
641
|
+
puts ("hppa2.0"); break;
|
642
|
+
#endif
|
643
|
+
default: puts ("hppa1.0"); break;
|
644
|
+
}
|
645
|
+
exit (0);
|
646
|
+
}
|
643
647
|
EOF
|
644
648
|
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
|
645
649
|
test -z "$HP_ARCH" && HP_ARCH=hppa
|
@@ -730,22 +734,22 @@ EOF
|
|
730
734
|
exit ;;
|
731
735
|
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
732
736
|
echo c1-convex-bsd
|
733
|
-
|
737
|
+
exit ;;
|
734
738
|
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
735
739
|
if getsysinfo -f scalar_acc
|
736
740
|
then echo c32-convex-bsd
|
737
741
|
else echo c2-convex-bsd
|
738
742
|
fi
|
739
|
-
|
743
|
+
exit ;;
|
740
744
|
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
741
745
|
echo c34-convex-bsd
|
742
|
-
|
746
|
+
exit ;;
|
743
747
|
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
744
748
|
echo c38-convex-bsd
|
745
|
-
|
749
|
+
exit ;;
|
746
750
|
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
747
751
|
echo c4-convex-bsd
|
748
|
-
|
752
|
+
exit ;;
|
749
753
|
CRAY*Y-MP:*:*:*)
|
750
754
|
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
751
755
|
exit ;;
|
@@ -769,14 +773,14 @@ EOF
|
|
769
773
|
exit ;;
|
770
774
|
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
771
775
|
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
+
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
777
|
+
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
778
|
+
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
779
|
+
exit ;;
|
776
780
|
5000:UNIX_System_V:4.*:*)
|
777
|
-
|
778
|
-
|
779
|
-
|
781
|
+
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
782
|
+
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
783
|
+
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
780
784
|
exit ;;
|
781
785
|
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
782
786
|
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
@@ -788,30 +792,35 @@ EOF
|
|
788
792
|
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
789
793
|
exit ;;
|
790
794
|
*:FreeBSD:*:*)
|
791
|
-
|
792
|
-
|
793
|
-
echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
795
|
+
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
796
|
+
case ${UNAME_PROCESSOR} in
|
794
797
|
amd64)
|
795
798
|
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
796
799
|
*)
|
797
|
-
echo ${
|
800
|
+
echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
798
801
|
esac
|
799
802
|
exit ;;
|
800
803
|
i*:CYGWIN*:*)
|
801
804
|
echo ${UNAME_MACHINE}-pc-cygwin
|
802
805
|
exit ;;
|
806
|
+
*:MINGW64*:*)
|
807
|
+
echo ${UNAME_MACHINE}-pc-mingw64
|
808
|
+
exit ;;
|
803
809
|
*:MINGW*:*)
|
804
810
|
echo ${UNAME_MACHINE}-pc-mingw32
|
805
811
|
exit ;;
|
812
|
+
i*:MSYS*:*)
|
813
|
+
echo ${UNAME_MACHINE}-pc-msys
|
814
|
+
exit ;;
|
806
815
|
i*:windows32*:*)
|
807
|
-
|
808
|
-
|
816
|
+
# uname -m includes "-pc" on this system.
|
817
|
+
echo ${UNAME_MACHINE}-mingw32
|
809
818
|
exit ;;
|
810
819
|
i*:PW*:*)
|
811
820
|
echo ${UNAME_MACHINE}-pc-pw32
|
812
821
|
exit ;;
|
813
822
|
*:Interix*:*)
|
814
|
-
|
823
|
+
case ${UNAME_MACHINE} in
|
815
824
|
x86)
|
816
825
|
echo i586-pc-interix${UNAME_RELEASE}
|
817
826
|
exit ;;
|
@@ -857,6 +866,13 @@ EOF
|
|
857
866
|
i*86:Minix:*:*)
|
858
867
|
echo ${UNAME_MACHINE}-pc-minix
|
859
868
|
exit ;;
|
869
|
+
aarch64:Linux:*:*)
|
870
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
871
|
+
exit ;;
|
872
|
+
aarch64_be:Linux:*:*)
|
873
|
+
UNAME_MACHINE=aarch64_be
|
874
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
875
|
+
exit ;;
|
860
876
|
alpha:Linux:*:*)
|
861
877
|
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
862
878
|
EV5) UNAME_MACHINE=alphaev5 ;;
|
@@ -866,7 +882,7 @@ EOF
|
|
866
882
|
EV6) UNAME_MACHINE=alphaev6 ;;
|
867
883
|
EV67) UNAME_MACHINE=alphaev67 ;;
|
868
884
|
EV68*) UNAME_MACHINE=alphaev68 ;;
|
869
|
-
|
885
|
+
esac
|
870
886
|
objdump --private-headers /bin/sh | grep -q ld.so.1
|
871
887
|
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
872
888
|
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
@@ -878,20 +894,29 @@ EOF
|
|
878
894
|
then
|
879
895
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
880
896
|
else
|
881
|
-
echo $
|
897
|
+
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
|
898
|
+
| grep -q __ARM_PCS_VFP
|
899
|
+
then
|
900
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
|
901
|
+
else
|
902
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
|
903
|
+
fi
|
882
904
|
fi
|
883
905
|
exit ;;
|
884
906
|
avr32*:Linux:*:*)
|
885
907
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
886
908
|
exit ;;
|
887
909
|
cris:Linux:*:*)
|
888
|
-
echo
|
910
|
+
echo ${UNAME_MACHINE}-axis-linux-gnu
|
889
911
|
exit ;;
|
890
912
|
crisv32:Linux:*:*)
|
891
|
-
echo
|
913
|
+
echo ${UNAME_MACHINE}-axis-linux-gnu
|
892
914
|
exit ;;
|
893
915
|
frv:Linux:*:*)
|
894
|
-
|
916
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
917
|
+
exit ;;
|
918
|
+
hexagon:Linux:*:*)
|
919
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
895
920
|
exit ;;
|
896
921
|
i*86:Linux:*:*)
|
897
922
|
LIBC=gnu
|
@@ -933,7 +958,7 @@ EOF
|
|
933
958
|
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
934
959
|
;;
|
935
960
|
or32:Linux:*:*)
|
936
|
-
echo
|
961
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
937
962
|
exit ;;
|
938
963
|
padre:Linux:*:*)
|
939
964
|
echo sparc-unknown-linux-gnu
|
@@ -959,7 +984,7 @@ EOF
|
|
959
984
|
echo ${UNAME_MACHINE}-ibm-linux
|
960
985
|
exit ;;
|
961
986
|
sh64*:Linux:*:*)
|
962
|
-
|
987
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
963
988
|
exit ;;
|
964
989
|
sh*:Linux:*:*)
|
965
990
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
@@ -967,14 +992,17 @@ EOF
|
|
967
992
|
sparc:Linux:*:* | sparc64:Linux:*:*)
|
968
993
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
969
994
|
exit ;;
|
995
|
+
tile*:Linux:*:*)
|
996
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
997
|
+
exit ;;
|
970
998
|
vax:Linux:*:*)
|
971
999
|
echo ${UNAME_MACHINE}-dec-linux-gnu
|
972
1000
|
exit ;;
|
973
1001
|
x86_64:Linux:*:*)
|
974
|
-
echo
|
1002
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
975
1003
|
exit ;;
|
976
1004
|
xtensa*:Linux:*:*)
|
977
|
-
|
1005
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
978
1006
|
exit ;;
|
979
1007
|
i*86:DYNIX/ptx:4*:*)
|
980
1008
|
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
@@ -983,11 +1011,11 @@ EOF
|
|
983
1011
|
echo i386-sequent-sysv4
|
984
1012
|
exit ;;
|
985
1013
|
i*86:UNIX_SV:4.2MP:2.*)
|
986
|
-
|
987
|
-
|
988
|
-
|
1014
|
+
# Unixware is an offshoot of SVR4, but it has its own version
|
1015
|
+
# number series starting with 2...
|
1016
|
+
# I am not positive that other SVR4 systems won't match this,
|
989
1017
|
# I just have to hope. -- rms.
|
990
|
-
|
1018
|
+
# Use sysv4.2uw... so that sysv4* matches it.
|
991
1019
|
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
992
1020
|
exit ;;
|
993
1021
|
i*86:OS/2:*:*)
|
@@ -1019,7 +1047,7 @@ EOF
|
|
1019
1047
|
fi
|
1020
1048
|
exit ;;
|
1021
1049
|
i*86:*:5:[678]*)
|
1022
|
-
|
1050
|
+
# UnixWare 7.x, OpenUNIX and OpenServer 6.
|
1023
1051
|
case `/bin/uname -X | grep "^Machine"` in
|
1024
1052
|
*486*) UNAME_MACHINE=i486 ;;
|
1025
1053
|
*Pentium) UNAME_MACHINE=i586 ;;
|
@@ -1047,13 +1075,13 @@ EOF
|
|
1047
1075
|
exit ;;
|
1048
1076
|
pc:*:*:*)
|
1049
1077
|
# Left here for compatibility:
|
1050
|
-
|
1051
|
-
|
1078
|
+
# uname -m prints for DJGPP always 'pc', but it prints nothing about
|
1079
|
+
# the processor, so we play safe by assuming i586.
|
1052
1080
|
# Note: whatever this is, it MUST be the same as what config.sub
|
1053
1081
|
# prints for the "djgpp" host, or else GDB configury will decide that
|
1054
1082
|
# this is a cross-build.
|
1055
1083
|
echo i586-pc-msdosdjgpp
|
1056
|
-
|
1084
|
+
exit ;;
|
1057
1085
|
Intel:Mach:3*:*)
|
1058
1086
|
echo i386-pc-mach3
|
1059
1087
|
exit ;;
|
@@ -1088,8 +1116,8 @@ EOF
|
|
1088
1116
|
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
1089
1117
|
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
1090
1118
|
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
1091
|
-
|
1092
|
-
|
1119
|
+
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
1120
|
+
&& { echo i486-ncr-sysv4; exit; } ;;
|
1093
1121
|
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
|
1094
1122
|
OS_REL='.3'
|
1095
1123
|
test -r /etc/.relid \
|
@@ -1132,10 +1160,10 @@ EOF
|
|
1132
1160
|
echo ns32k-sni-sysv
|
1133
1161
|
fi
|
1134
1162
|
exit ;;
|
1135
|
-
PENTIUM:*:4.0*:*)
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1163
|
+
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
1164
|
+
# says <Richard.M.Bartel@ccMail.Census.GOV>
|
1165
|
+
echo i586-unisys-sysv4
|
1166
|
+
exit ;;
|
1139
1167
|
*:UNIX_System_V:4*:FTX*)
|
1140
1168
|
# From Gerald Hewes <hewes@openmarket.com>.
|
1141
1169
|
# How about differentiating between stratus architectures? -djm
|
@@ -1161,11 +1189,11 @@ EOF
|
|
1161
1189
|
exit ;;
|
1162
1190
|
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
|
1163
1191
|
if [ -d /usr/nec ]; then
|
1164
|
-
|
1192
|
+
echo mips-nec-sysv${UNAME_RELEASE}
|
1165
1193
|
else
|
1166
|
-
|
1194
|
+
echo mips-unknown-sysv${UNAME_RELEASE}
|
1167
1195
|
fi
|
1168
|
-
|
1196
|
+
exit ;;
|
1169
1197
|
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
|
1170
1198
|
echo powerpc-be-beos
|
1171
1199
|
exit ;;
|
@@ -1178,6 +1206,9 @@ EOF
|
|
1178
1206
|
BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
|
1179
1207
|
echo i586-pc-haiku
|
1180
1208
|
exit ;;
|
1209
|
+
x86_64:Haiku:*:*)
|
1210
|
+
echo x86_64-unknown-haiku
|
1211
|
+
exit ;;
|
1181
1212
|
SX-4:SUPER-UX:*:*)
|
1182
1213
|
echo sx4-nec-superux${UNAME_RELEASE}
|
1183
1214
|
exit ;;
|
@@ -1230,7 +1261,10 @@ EOF
|
|
1230
1261
|
*:QNX:*:4*)
|
1231
1262
|
echo i386-pc-qnx
|
1232
1263
|
exit ;;
|
1233
|
-
|
1264
|
+
NEO-?:NONSTOP_KERNEL:*:*)
|
1265
|
+
echo neo-tandem-nsk${UNAME_RELEASE}
|
1266
|
+
exit ;;
|
1267
|
+
NSE-*:NONSTOP_KERNEL:*:*)
|
1234
1268
|
echo nse-tandem-nsk${UNAME_RELEASE}
|
1235
1269
|
exit ;;
|
1236
1270
|
NSR-?:NONSTOP_KERNEL:*:*)
|
@@ -1275,13 +1309,13 @@ EOF
|
|
1275
1309
|
echo pdp10-unknown-its
|
1276
1310
|
exit ;;
|
1277
1311
|
SEI:*:*:SEIUX)
|
1278
|
-
|
1312
|
+
echo mips-sei-seiux${UNAME_RELEASE}
|
1279
1313
|
exit ;;
|
1280
1314
|
*:DragonFly:*:*)
|
1281
1315
|
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
1282
1316
|
exit ;;
|
1283
1317
|
*:*VMS:*:*)
|
1284
|
-
|
1318
|
+
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
1285
1319
|
case "${UNAME_MACHINE}" in
|
1286
1320
|
A*) echo alpha-dec-vms ; exit ;;
|
1287
1321
|
I*) echo ia64-dec-vms ; exit ;;
|
@@ -1299,11 +1333,11 @@ EOF
|
|
1299
1333
|
i*86:AROS:*:*)
|
1300
1334
|
echo ${UNAME_MACHINE}-pc-aros
|
1301
1335
|
exit ;;
|
1336
|
+
x86_64:VMkernel:*:*)
|
1337
|
+
echo ${UNAME_MACHINE}-unknown-esx
|
1338
|
+
exit ;;
|
1302
1339
|
esac
|
1303
1340
|
|
1304
|
-
#echo '(No uname command or uname output not recognized.)' 1>&2
|
1305
|
-
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
1306
|
-
|
1307
1341
|
eval $set_cc_for_build
|
1308
1342
|
cat >$dummy.c <<EOF
|
1309
1343
|
#ifdef _SEQUENT_
|
@@ -1321,11 +1355,11 @@ main ()
|
|
1321
1355
|
#include <sys/param.h>
|
1322
1356
|
printf ("m68k-sony-newsos%s\n",
|
1323
1357
|
#ifdef NEWSOS4
|
1324
|
-
|
1358
|
+
"4"
|
1325
1359
|
#else
|
1326
|
-
|
1360
|
+
""
|
1327
1361
|
#endif
|
1328
|
-
|
1362
|
+
); exit (0);
|
1329
1363
|
#endif
|
1330
1364
|
#endif
|
1331
1365
|
|