Import upstream version 4.2+git20220828.1.53ef9ad
Debian Janitor
1 year, 6 months ago
0 | # Makefile.in generated by automake 1.16.1 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2018 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
180 | 180 | unique=`for i in $$list; do \ |
181 | 181 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
182 | 182 | done | $(am__uniquify_input)` |
183 | ETAGS = etags | |
184 | CTAGS = ctags | |
185 | CSCOPE = cscope | |
186 | 183 | DIST_SUBDIRS = $(SUBDIRS) |
187 | 184 | am__DIST_COMMON = $(srcdir)/Makefile.in COPYING ChangeLog NEWS README \ |
188 | 185 | compile config.guess config.rpath config.sub install-sh \ |
225 | 222 | DIST_ARCHIVES = $(distdir).tar.gz |
226 | 223 | GZIP_ENV = --best |
227 | 224 | DIST_TARGETS = dist-gzip |
225 | # Exists only to be overridden by the user if desired. | |
226 | AM_DISTCHECK_DVI_TARGET = dvi | |
228 | 227 | distuninstallcheck_listfiles = find . -type f -print |
229 | 228 | am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ |
230 | 229 | | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' |
242 | 241 | CHECKATARI = @CHECKATARI@ |
243 | 242 | CPP = @CPP@ |
244 | 243 | CPPFLAGS = @CPPFLAGS@ |
244 | CSCOPE = @CSCOPE@ | |
245 | CTAGS = @CTAGS@ | |
245 | 246 | CYGPATH_W = @CYGPATH_W@ |
246 | 247 | DEFS = @DEFS@ |
247 | 248 | DEPDIR = @DEPDIR@ |
249 | 250 | ECHO_N = @ECHO_N@ |
250 | 251 | ECHO_T = @ECHO_T@ |
251 | 252 | EGREP = @EGREP@ |
253 | ETAGS = @ETAGS@ | |
252 | 254 | EXEEXT = @EXEEXT@ |
253 | 255 | GREP = @GREP@ |
254 | 256 | INSTALL = @INSTALL@ |
506 | 508 | distclean-tags: |
507 | 509 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
508 | 510 | -rm -f cscope.out cscope.in.out cscope.po.out cscope.files |
509 | ||
510 | 511 | distdir: $(BUILT_SOURCES) |
511 | 512 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
512 | 513 | |
590 | 591 | tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz |
591 | 592 | $(am__post_remove_distdir) |
592 | 593 | |
594 | dist-zstd: distdir | |
595 | tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst | |
596 | $(am__post_remove_distdir) | |
597 | ||
593 | 598 | dist-tarZ: distdir |
594 | 599 | @echo WARNING: "Support for distribution archives compressed with" \ |
595 | 600 | "legacy program 'compress' is deprecated." >&2 |
632 | 637 | eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ |
633 | 638 | *.zip*) \ |
634 | 639 | unzip $(distdir).zip ;;\ |
640 | *.tar.zst*) \ | |
641 | zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ | |
635 | 642 | esac |
636 | 643 | chmod -R a-w $(distdir) |
637 | 644 | chmod u+w $(distdir) |
647 | 654 | $(DISTCHECK_CONFIGURE_FLAGS) \ |
648 | 655 | --srcdir=../.. --prefix="$$dc_install_base" \ |
649 | 656 | && $(MAKE) $(AM_MAKEFLAGS) \ |
650 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ | |
657 | && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \ | |
651 | 658 | && $(MAKE) $(AM_MAKEFLAGS) check \ |
652 | 659 | && $(MAKE) $(AM_MAKEFLAGS) install \ |
653 | 660 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ |
811 | 818 | am--refresh check check-am clean clean-cscope clean-generic \ |
812 | 819 | cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ |
813 | 820 | dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ |
814 | distcheck distclean distclean-generic distclean-tags \ | |
821 | dist-zstd distcheck distclean distclean-generic distclean-tags \ | |
815 | 822 | distcleancheck distdir distuninstallcheck dvi dvi-am html \ |
816 | 823 | html-am info info-am install install-am install-data \ |
817 | 824 | install-data-am install-dist_docDATA install-dvi \ |
0 | # generated automatically by aclocal 1.16.1 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2018 Free Software Foundation, Inc. | |
0 | # generated automatically by aclocal 1.16.5 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2021 Free Software Foundation, Inc. | |
3 | 3 | |
4 | 4 | # This file is free software; the Free Software Foundation |
5 | 5 | # gives unlimited permission to copy and/or distribute it, |
13 | 13 | m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) |
14 | 14 | m4_ifndef([AC_AUTOCONF_VERSION], |
15 | 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, | |
17 | [m4_warning([this file was generated for autoconf 2.69. | |
16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, | |
17 | [m4_warning([this file was generated for autoconf 2.71. | |
18 | 18 | You have another version of autoconf. It may work, but is not guaranteed to. |
19 | 19 | If you have problems, you may need to regenerate the build system entirely. |
20 | 20 | To do so, use the procedure documented by the package, typically 'autoreconf'.])]) |
21 | 21 | |
22 | # iconv.m4 serial 19 (gettext-0.18.2) | |
23 | dnl Copyright (C) 2000-2002, 2007-2014, 2016 Free Software Foundation, Inc. | |
22 | # host-cpu-c-abi.m4 serial 13 | |
23 | dnl Copyright (C) 2002-2020 Free Software Foundation, Inc. | |
24 | dnl This file is free software; the Free Software Foundation | |
25 | dnl gives unlimited permission to copy and/or distribute it, | |
26 | dnl with or without modifications, as long as this notice is preserved. | |
27 | ||
28 | dnl From Bruno Haible and Sam Steingold. | |
29 | ||
30 | dnl Sets the HOST_CPU variable to the canonical name of the CPU. | |
31 | dnl Sets the HOST_CPU_C_ABI variable to the canonical name of the CPU with its | |
32 | dnl C language ABI (application binary interface). | |
33 | dnl Also defines __${HOST_CPU}__ and __${HOST_CPU_C_ABI}__ as C macros in | |
34 | dnl config.h. | |
35 | dnl | |
36 | dnl This canonical name can be used to select a particular assembly language | |
37 | dnl source file that will interoperate with C code on the given host. | |
38 | dnl | |
39 | dnl For example: | |
40 | dnl * 'i386' and 'sparc' are different canonical names, because code for i386 | |
41 | dnl will not run on SPARC CPUs and vice versa. They have different | |
42 | dnl instruction sets. | |
43 | dnl * 'sparc' and 'sparc64' are different canonical names, because code for | |
44 | dnl 'sparc' and code for 'sparc64' cannot be linked together: 'sparc' code | |
45 | dnl contains 32-bit instructions, whereas 'sparc64' code contains 64-bit | |
46 | dnl instructions. A process on a SPARC CPU can be in 32-bit mode or in 64-bit | |
47 | dnl mode, but not both. | |
48 | dnl * 'mips' and 'mipsn32' are different canonical names, because they use | |
49 | dnl different argument passing and return conventions for C functions, and | |
50 | dnl although the instruction set of 'mips' is a large subset of the | |
51 | dnl instruction set of 'mipsn32'. | |
52 | dnl * 'mipsn32' and 'mips64' are different canonical names, because they use | |
53 | dnl different sizes for the C types like 'int' and 'void *', and although | |
54 | dnl the instruction sets of 'mipsn32' and 'mips64' are the same. | |
55 | dnl * The same canonical name is used for different endiannesses. You can | |
56 | dnl determine the endianness through preprocessor symbols: | |
57 | dnl - 'arm': test __ARMEL__. | |
58 | dnl - 'mips', 'mipsn32', 'mips64': test _MIPSEB vs. _MIPSEL. | |
59 | dnl - 'powerpc64': test _BIG_ENDIAN vs. _LITTLE_ENDIAN. | |
60 | dnl * The same name 'i386' is used for CPUs of type i386, i486, i586 | |
61 | dnl (Pentium), AMD K7, Pentium II, Pentium IV, etc., because | |
62 | dnl - Instructions that do not exist on all of these CPUs (cmpxchg, | |
63 | dnl MMX, SSE, SSE2, 3DNow! etc.) are not frequently used. If your | |
64 | dnl assembly language source files use such instructions, you will | |
65 | dnl need to make the distinction. | |
66 | dnl - Speed of execution of the common instruction set is reasonable across | |
67 | dnl the entire family of CPUs. If you have assembly language source files | |
68 | dnl that are optimized for particular CPU types (like GNU gmp has), you | |
69 | dnl will need to make the distinction. | |
70 | dnl See <https://en.wikipedia.org/wiki/X86_instruction_listings>. | |
71 | AC_DEFUN([gl_HOST_CPU_C_ABI], | |
72 | [ | |
73 | AC_REQUIRE([AC_CANONICAL_HOST]) | |
74 | AC_REQUIRE([gl_C_ASM]) | |
75 | AC_CACHE_CHECK([host CPU and C ABI], [gl_cv_host_cpu_c_abi], | |
76 | [case "$host_cpu" in | |
77 | ||
78 | changequote(,)dnl | |
79 | i[34567]86 ) | |
80 | changequote([,])dnl | |
81 | gl_cv_host_cpu_c_abi=i386 | |
82 | ;; | |
83 | ||
84 | x86_64 ) | |
85 | # On x86_64 systems, the C compiler may be generating code in one of | |
86 | # these ABIs: | |
87 | # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. | |
88 | # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 | |
89 | # with native Windows (mingw, MSVC). | |
90 | # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. | |
91 | # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. | |
92 | AC_COMPILE_IFELSE( | |
93 | [AC_LANG_SOURCE( | |
94 | [[#if (defined __x86_64__ || defined __amd64__ \ | |
95 | || defined _M_X64 || defined _M_AMD64) | |
96 | int ok; | |
97 | #else | |
98 | error fail | |
99 | #endif | |
100 | ]])], | |
101 | [AC_COMPILE_IFELSE( | |
102 | [AC_LANG_SOURCE( | |
103 | [[#if defined __ILP32__ || defined _ILP32 | |
104 | int ok; | |
105 | #else | |
106 | error fail | |
107 | #endif | |
108 | ]])], | |
109 | [gl_cv_host_cpu_c_abi=x86_64-x32], | |
110 | [gl_cv_host_cpu_c_abi=x86_64])], | |
111 | [gl_cv_host_cpu_c_abi=i386]) | |
112 | ;; | |
113 | ||
114 | changequote(,)dnl | |
115 | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] ) | |
116 | changequote([,])dnl | |
117 | gl_cv_host_cpu_c_abi=alpha | |
118 | ;; | |
119 | ||
120 | arm* | aarch64 ) | |
121 | # Assume arm with EABI. | |
122 | # On arm64 systems, the C compiler may be generating code in one of | |
123 | # these ABIs: | |
124 | # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. | |
125 | # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. | |
126 | # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. | |
127 | AC_COMPILE_IFELSE( | |
128 | [AC_LANG_SOURCE( | |
129 | [[#ifdef __aarch64__ | |
130 | int ok; | |
131 | #else | |
132 | error fail | |
133 | #endif | |
134 | ]])], | |
135 | [AC_COMPILE_IFELSE( | |
136 | [AC_LANG_SOURCE( | |
137 | [[#if defined __ILP32__ || defined _ILP32 | |
138 | int ok; | |
139 | #else | |
140 | error fail | |
141 | #endif | |
142 | ]])], | |
143 | [gl_cv_host_cpu_c_abi=arm64-ilp32], | |
144 | [gl_cv_host_cpu_c_abi=arm64])], | |
145 | [# Don't distinguish little-endian and big-endian arm, since they | |
146 | # don't require different machine code for simple operations and | |
147 | # since the user can distinguish them through the preprocessor | |
148 | # defines __ARMEL__ vs. __ARMEB__. | |
149 | # But distinguish arm which passes floating-point arguments and | |
150 | # return values in integer registers (r0, r1, ...) - this is | |
151 | # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which | |
152 | # passes them in float registers (s0, s1, ...) and double registers | |
153 | # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer | |
154 | # sets the preprocessor defines __ARM_PCS (for the first case) and | |
155 | # __ARM_PCS_VFP (for the second case), but older GCC does not. | |
156 | echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c | |
157 | # Look for a reference to the register d0 in the .s file. | |
158 | AC_TRY_COMMAND(${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c) >/dev/null 2>&1 | |
159 | if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then | |
160 | gl_cv_host_cpu_c_abi=armhf | |
161 | else | |
162 | gl_cv_host_cpu_c_abi=arm | |
163 | fi | |
164 | rm -f conftest* | |
165 | ]) | |
166 | ;; | |
167 | ||
168 | hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) | |
169 | # On hppa, the C compiler may be generating 32-bit code or 64-bit | |
170 | # code. In the latter case, it defines _LP64 and __LP64__. | |
171 | AC_COMPILE_IFELSE( | |
172 | [AC_LANG_SOURCE( | |
173 | [[#ifdef __LP64__ | |
174 | int ok; | |
175 | #else | |
176 | error fail | |
177 | #endif | |
178 | ]])], | |
179 | [gl_cv_host_cpu_c_abi=hppa64], | |
180 | [gl_cv_host_cpu_c_abi=hppa]) | |
181 | ;; | |
182 | ||
183 | ia64* ) | |
184 | # On ia64 on HP-UX, the C compiler may be generating 64-bit code or | |
185 | # 32-bit code. In the latter case, it defines _ILP32. | |
186 | AC_COMPILE_IFELSE( | |
187 | [AC_LANG_SOURCE( | |
188 | [[#ifdef _ILP32 | |
189 | int ok; | |
190 | #else | |
191 | error fail | |
192 | #endif | |
193 | ]])], | |
194 | [gl_cv_host_cpu_c_abi=ia64-ilp32], | |
195 | [gl_cv_host_cpu_c_abi=ia64]) | |
196 | ;; | |
197 | ||
198 | mips* ) | |
199 | # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this | |
200 | # at 32. | |
201 | AC_COMPILE_IFELSE( | |
202 | [AC_LANG_SOURCE( | |
203 | [[#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) | |
204 | int ok; | |
205 | #else | |
206 | error fail | |
207 | #endif | |
208 | ]])], | |
209 | [gl_cv_host_cpu_c_abi=mips64], | |
210 | [# In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but | |
211 | # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIN32. | |
212 | # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but | |
213 | # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIO32. | |
214 | AC_COMPILE_IFELSE( | |
215 | [AC_LANG_SOURCE( | |
216 | [[#if (_MIPS_SIM == _ABIN32) | |
217 | int ok; | |
218 | #else | |
219 | error fail | |
220 | #endif | |
221 | ]])], | |
222 | [gl_cv_host_cpu_c_abi=mipsn32], | |
223 | [gl_cv_host_cpu_c_abi=mips])]) | |
224 | ;; | |
225 | ||
226 | powerpc* ) | |
227 | # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. | |
228 | # No need to distinguish them here; the caller may distinguish | |
229 | # them based on the OS. | |
230 | # On powerpc64 systems, the C compiler may still be generating | |
231 | # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may | |
232 | # be generating 64-bit code. | |
233 | AC_COMPILE_IFELSE( | |
234 | [AC_LANG_SOURCE( | |
235 | [[#if defined __powerpc64__ || defined _ARCH_PPC64 | |
236 | int ok; | |
237 | #else | |
238 | error fail | |
239 | #endif | |
240 | ]])], | |
241 | [# On powerpc64, there are two ABIs on Linux: The AIX compatible | |
242 | # one and the ELFv2 one. The latter defines _CALL_ELF=2. | |
243 | AC_COMPILE_IFELSE( | |
244 | [AC_LANG_SOURCE( | |
245 | [[#if defined _CALL_ELF && _CALL_ELF == 2 | |
246 | int ok; | |
247 | #else | |
248 | error fail | |
249 | #endif | |
250 | ]])], | |
251 | [gl_cv_host_cpu_c_abi=powerpc64-elfv2], | |
252 | [gl_cv_host_cpu_c_abi=powerpc64]) | |
253 | ], | |
254 | [gl_cv_host_cpu_c_abi=powerpc]) | |
255 | ;; | |
256 | ||
257 | rs6000 ) | |
258 | gl_cv_host_cpu_c_abi=powerpc | |
259 | ;; | |
260 | ||
261 | riscv32 | riscv64 ) | |
262 | # There are 2 architectures (with variants): rv32* and rv64*. | |
263 | AC_COMPILE_IFELSE( | |
264 | [AC_LANG_SOURCE( | |
265 | [[#if __riscv_xlen == 64 | |
266 | int ok; | |
267 | #else | |
268 | error fail | |
269 | #endif | |
270 | ]])], | |
271 | [cpu=riscv64], | |
272 | [cpu=riscv32]) | |
273 | # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. | |
274 | # Size of 'long' and 'void *': | |
275 | AC_COMPILE_IFELSE( | |
276 | [AC_LANG_SOURCE( | |
277 | [[#if defined __LP64__ | |
278 | int ok; | |
279 | #else | |
280 | error fail | |
281 | #endif | |
282 | ]])], | |
283 | [main_abi=lp64], | |
284 | [main_abi=ilp32]) | |
285 | # Float ABIs: | |
286 | # __riscv_float_abi_double: | |
287 | # 'float' and 'double' are passed in floating-point registers. | |
288 | # __riscv_float_abi_single: | |
289 | # 'float' are passed in floating-point registers. | |
290 | # __riscv_float_abi_soft: | |
291 | # No values are passed in floating-point registers. | |
292 | AC_COMPILE_IFELSE( | |
293 | [AC_LANG_SOURCE( | |
294 | [[#if defined __riscv_float_abi_double | |
295 | int ok; | |
296 | #else | |
297 | error fail | |
298 | #endif | |
299 | ]])], | |
300 | [float_abi=d], | |
301 | [AC_COMPILE_IFELSE( | |
302 | [AC_LANG_SOURCE( | |
303 | [[#if defined __riscv_float_abi_single | |
304 | int ok; | |
305 | #else | |
306 | error fail | |
307 | #endif | |
308 | ]])], | |
309 | [float_abi=f], | |
310 | [float_abi='']) | |
311 | ]) | |
312 | gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}" | |
313 | ;; | |
314 | ||
315 | s390* ) | |
316 | # On s390x, the C compiler may be generating 64-bit (= s390x) code | |
317 | # or 31-bit (= s390) code. | |
318 | AC_COMPILE_IFELSE( | |
319 | [AC_LANG_SOURCE( | |
320 | [[#if defined __LP64__ || defined __s390x__ | |
321 | int ok; | |
322 | #else | |
323 | error fail | |
324 | #endif | |
325 | ]])], | |
326 | [gl_cv_host_cpu_c_abi=s390x], | |
327 | [gl_cv_host_cpu_c_abi=s390]) | |
328 | ;; | |
329 | ||
330 | sparc | sparc64 ) | |
331 | # UltraSPARCs running Linux have `uname -m` = "sparc64", but the | |
332 | # C compiler still generates 32-bit code. | |
333 | AC_COMPILE_IFELSE( | |
334 | [AC_LANG_SOURCE( | |
335 | [[#if defined __sparcv9 || defined __arch64__ | |
336 | int ok; | |
337 | #else | |
338 | error fail | |
339 | #endif | |
340 | ]])], | |
341 | [gl_cv_host_cpu_c_abi=sparc64], | |
342 | [gl_cv_host_cpu_c_abi=sparc]) | |
343 | ;; | |
344 | ||
345 | *) | |
346 | gl_cv_host_cpu_c_abi="$host_cpu" | |
347 | ;; | |
348 | esac | |
349 | ]) | |
350 | ||
351 | dnl In most cases, $HOST_CPU and $HOST_CPU_C_ABI are the same. | |
352 | HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'` | |
353 | HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi" | |
354 | AC_SUBST([HOST_CPU]) | |
355 | AC_SUBST([HOST_CPU_C_ABI]) | |
356 | ||
357 | # This was | |
358 | # AC_DEFINE_UNQUOTED([__${HOST_CPU}__]) | |
359 | # AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__]) | |
360 | # earlier, but KAI C++ 3.2d doesn't like this. | |
361 | sed -e 's/-/_/g' >> confdefs.h <<EOF | |
362 | #ifndef __${HOST_CPU}__ | |
363 | #define __${HOST_CPU}__ 1 | |
364 | #endif | |
365 | #ifndef __${HOST_CPU_C_ABI}__ | |
366 | #define __${HOST_CPU_C_ABI}__ 1 | |
367 | #endif | |
368 | EOF | |
369 | AH_TOP([/* CPU and C ABI indicator */ | |
370 | #ifndef __i386__ | |
371 | #undef __i386__ | |
372 | #endif | |
373 | #ifndef __x86_64_x32__ | |
374 | #undef __x86_64_x32__ | |
375 | #endif | |
376 | #ifndef __x86_64__ | |
377 | #undef __x86_64__ | |
378 | #endif | |
379 | #ifndef __alpha__ | |
380 | #undef __alpha__ | |
381 | #endif | |
382 | #ifndef __arm__ | |
383 | #undef __arm__ | |
384 | #endif | |
385 | #ifndef __armhf__ | |
386 | #undef __armhf__ | |
387 | #endif | |
388 | #ifndef __arm64_ilp32__ | |
389 | #undef __arm64_ilp32__ | |
390 | #endif | |
391 | #ifndef __arm64__ | |
392 | #undef __arm64__ | |
393 | #endif | |
394 | #ifndef __hppa__ | |
395 | #undef __hppa__ | |
396 | #endif | |
397 | #ifndef __hppa64__ | |
398 | #undef __hppa64__ | |
399 | #endif | |
400 | #ifndef __ia64_ilp32__ | |
401 | #undef __ia64_ilp32__ | |
402 | #endif | |
403 | #ifndef __ia64__ | |
404 | #undef __ia64__ | |
405 | #endif | |
406 | #ifndef __m68k__ | |
407 | #undef __m68k__ | |
408 | #endif | |
409 | #ifndef __mips__ | |
410 | #undef __mips__ | |
411 | #endif | |
412 | #ifndef __mipsn32__ | |
413 | #undef __mipsn32__ | |
414 | #endif | |
415 | #ifndef __mips64__ | |
416 | #undef __mips64__ | |
417 | #endif | |
418 | #ifndef __powerpc__ | |
419 | #undef __powerpc__ | |
420 | #endif | |
421 | #ifndef __powerpc64__ | |
422 | #undef __powerpc64__ | |
423 | #endif | |
424 | #ifndef __powerpc64_elfv2__ | |
425 | #undef __powerpc64_elfv2__ | |
426 | #endif | |
427 | #ifndef __riscv32__ | |
428 | #undef __riscv32__ | |
429 | #endif | |
430 | #ifndef __riscv64__ | |
431 | #undef __riscv64__ | |
432 | #endif | |
433 | #ifndef __riscv32_ilp32__ | |
434 | #undef __riscv32_ilp32__ | |
435 | #endif | |
436 | #ifndef __riscv32_ilp32f__ | |
437 | #undef __riscv32_ilp32f__ | |
438 | #endif | |
439 | #ifndef __riscv32_ilp32d__ | |
440 | #undef __riscv32_ilp32d__ | |
441 | #endif | |
442 | #ifndef __riscv64_ilp32__ | |
443 | #undef __riscv64_ilp32__ | |
444 | #endif | |
445 | #ifndef __riscv64_ilp32f__ | |
446 | #undef __riscv64_ilp32f__ | |
447 | #endif | |
448 | #ifndef __riscv64_ilp32d__ | |
449 | #undef __riscv64_ilp32d__ | |
450 | #endif | |
451 | #ifndef __riscv64_lp64__ | |
452 | #undef __riscv64_lp64__ | |
453 | #endif | |
454 | #ifndef __riscv64_lp64f__ | |
455 | #undef __riscv64_lp64f__ | |
456 | #endif | |
457 | #ifndef __riscv64_lp64d__ | |
458 | #undef __riscv64_lp64d__ | |
459 | #endif | |
460 | #ifndef __s390__ | |
461 | #undef __s390__ | |
462 | #endif | |
463 | #ifndef __s390x__ | |
464 | #undef __s390x__ | |
465 | #endif | |
466 | #ifndef __sh__ | |
467 | #undef __sh__ | |
468 | #endif | |
469 | #ifndef __sparc__ | |
470 | #undef __sparc__ | |
471 | #endif | |
472 | #ifndef __sparc64__ | |
473 | #undef __sparc64__ | |
474 | #endif | |
475 | ]) | |
476 | ||
477 | ]) | |
478 | ||
479 | ||
480 | dnl Sets the HOST_CPU_C_ABI_32BIT variable to 'yes' if the C language ABI | |
481 | dnl (application binary interface) is a 32-bit one, to 'no' if it is a 64-bit | |
482 | dnl one, or to 'unknown' if unknown. | |
483 | dnl This is a simplified variant of gl_HOST_CPU_C_ABI. | |
484 | AC_DEFUN([gl_HOST_CPU_C_ABI_32BIT], | |
485 | [ | |
486 | AC_REQUIRE([AC_CANONICAL_HOST]) | |
487 | AC_CACHE_CHECK([32-bit host C ABI], [gl_cv_host_cpu_c_abi_32bit], | |
488 | [if test -n "$gl_cv_host_cpu_c_abi"; then | |
489 | case "$gl_cv_host_cpu_c_abi" in | |
490 | i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) | |
491 | gl_cv_host_cpu_c_abi_32bit=yes ;; | |
492 | x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) | |
493 | gl_cv_host_cpu_c_abi_32bit=no ;; | |
494 | *) | |
495 | gl_cv_host_cpu_c_abi_32bit=unknown ;; | |
496 | esac | |
497 | else | |
498 | case "$host_cpu" in | |
499 | ||
500 | # CPUs that only support a 32-bit ABI. | |
501 | arc \ | |
502 | | bfin \ | |
503 | | cris* \ | |
504 | | csky \ | |
505 | | epiphany \ | |
506 | | ft32 \ | |
507 | | h8300 \ | |
508 | | m68k \ | |
509 | | microblaze | microblazeel \ | |
510 | | nds32 | nds32le | nds32be \ | |
511 | | nios2 | nios2eb | nios2el \ | |
512 | | or1k* \ | |
513 | | or32 \ | |
514 | | sh | sh[1234] | sh[1234]e[lb] \ | |
515 | | tic6x \ | |
516 | | xtensa* ) | |
517 | gl_cv_host_cpu_c_abi_32bit=yes | |
518 | ;; | |
519 | ||
520 | # CPUs that only support a 64-bit ABI. | |
521 | changequote(,)dnl | |
522 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ | |
523 | | mmix ) | |
524 | changequote([,])dnl | |
525 | gl_cv_host_cpu_c_abi_32bit=no | |
526 | ;; | |
527 | ||
528 | changequote(,)dnl | |
529 | i[34567]86 ) | |
530 | changequote([,])dnl | |
531 | gl_cv_host_cpu_c_abi_32bit=yes | |
532 | ;; | |
533 | ||
534 | x86_64 ) | |
535 | # On x86_64 systems, the C compiler may be generating code in one of | |
536 | # these ABIs: | |
537 | # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. | |
538 | # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 | |
539 | # with native Windows (mingw, MSVC). | |
540 | # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. | |
541 | # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. | |
542 | AC_COMPILE_IFELSE( | |
543 | [AC_LANG_SOURCE( | |
544 | [[#if (defined __x86_64__ || defined __amd64__ \ | |
545 | || defined _M_X64 || defined _M_AMD64) \ | |
546 | && !(defined __ILP32__ || defined _ILP32) | |
547 | int ok; | |
548 | #else | |
549 | error fail | |
550 | #endif | |
551 | ]])], | |
552 | [gl_cv_host_cpu_c_abi_32bit=no], | |
553 | [gl_cv_host_cpu_c_abi_32bit=yes]) | |
554 | ;; | |
555 | ||
556 | arm* | aarch64 ) | |
557 | # Assume arm with EABI. | |
558 | # On arm64 systems, the C compiler may be generating code in one of | |
559 | # these ABIs: | |
560 | # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. | |
561 | # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. | |
562 | # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. | |
563 | AC_COMPILE_IFELSE( | |
564 | [AC_LANG_SOURCE( | |
565 | [[#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) | |
566 | int ok; | |
567 | #else | |
568 | error fail | |
569 | #endif | |
570 | ]])], | |
571 | [gl_cv_host_cpu_c_abi_32bit=no], | |
572 | [gl_cv_host_cpu_c_abi_32bit=yes]) | |
573 | ;; | |
574 | ||
575 | hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) | |
576 | # On hppa, the C compiler may be generating 32-bit code or 64-bit | |
577 | # code. In the latter case, it defines _LP64 and __LP64__. | |
578 | AC_COMPILE_IFELSE( | |
579 | [AC_LANG_SOURCE( | |
580 | [[#ifdef __LP64__ | |
581 | int ok; | |
582 | #else | |
583 | error fail | |
584 | #endif | |
585 | ]])], | |
586 | [gl_cv_host_cpu_c_abi_32bit=no], | |
587 | [gl_cv_host_cpu_c_abi_32bit=yes]) | |
588 | ;; | |
589 | ||
590 | ia64* ) | |
591 | # On ia64 on HP-UX, the C compiler may be generating 64-bit code or | |
592 | # 32-bit code. In the latter case, it defines _ILP32. | |
593 | AC_COMPILE_IFELSE( | |
594 | [AC_LANG_SOURCE( | |
595 | [[#ifdef _ILP32 | |
596 | int ok; | |
597 | #else | |
598 | error fail | |
599 | #endif | |
600 | ]])], | |
601 | [gl_cv_host_cpu_c_abi_32bit=yes], | |
602 | [gl_cv_host_cpu_c_abi_32bit=no]) | |
603 | ;; | |
604 | ||
605 | mips* ) | |
606 | # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this | |
607 | # at 32. | |
608 | AC_COMPILE_IFELSE( | |
609 | [AC_LANG_SOURCE( | |
610 | [[#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) | |
611 | int ok; | |
612 | #else | |
613 | error fail | |
614 | #endif | |
615 | ]])], | |
616 | [gl_cv_host_cpu_c_abi_32bit=no], | |
617 | [gl_cv_host_cpu_c_abi_32bit=yes]) | |
618 | ;; | |
619 | ||
620 | powerpc* ) | |
621 | # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. | |
622 | # No need to distinguish them here; the caller may distinguish | |
623 | # them based on the OS. | |
624 | # On powerpc64 systems, the C compiler may still be generating | |
625 | # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may | |
626 | # be generating 64-bit code. | |
627 | AC_COMPILE_IFELSE( | |
628 | [AC_LANG_SOURCE( | |
629 | [[#if defined __powerpc64__ || defined _ARCH_PPC64 | |
630 | int ok; | |
631 | #else | |
632 | error fail | |
633 | #endif | |
634 | ]])], | |
635 | [gl_cv_host_cpu_c_abi_32bit=no], | |
636 | [gl_cv_host_cpu_c_abi_32bit=yes]) | |
637 | ;; | |
638 | ||
639 | rs6000 ) | |
640 | gl_cv_host_cpu_c_abi_32bit=yes | |
641 | ;; | |
642 | ||
643 | riscv32 | riscv64 ) | |
644 | # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. | |
645 | # Size of 'long' and 'void *': | |
646 | AC_COMPILE_IFELSE( | |
647 | [AC_LANG_SOURCE( | |
648 | [[#if defined __LP64__ | |
649 | int ok; | |
650 | #else | |
651 | error fail | |
652 | #endif | |
653 | ]])], | |
654 | [gl_cv_host_cpu_c_abi_32bit=no], | |
655 | [gl_cv_host_cpu_c_abi_32bit=yes]) | |
656 | ;; | |
657 | ||
658 | s390* ) | |
659 | # On s390x, the C compiler may be generating 64-bit (= s390x) code | |
660 | # or 31-bit (= s390) code. | |
661 | AC_COMPILE_IFELSE( | |
662 | [AC_LANG_SOURCE( | |
663 | [[#if defined __LP64__ || defined __s390x__ | |
664 | int ok; | |
665 | #else | |
666 | error fail | |
667 | #endif | |
668 | ]])], | |
669 | [gl_cv_host_cpu_c_abi_32bit=no], | |
670 | [gl_cv_host_cpu_c_abi_32bit=yes]) | |
671 | ;; | |
672 | ||
673 | sparc | sparc64 ) | |
674 | # UltraSPARCs running Linux have `uname -m` = "sparc64", but the | |
675 | # C compiler still generates 32-bit code. | |
676 | AC_COMPILE_IFELSE( | |
677 | [AC_LANG_SOURCE( | |
678 | [[#if defined __sparcv9 || defined __arch64__ | |
679 | int ok; | |
680 | #else | |
681 | error fail | |
682 | #endif | |
683 | ]])], | |
684 | [gl_cv_host_cpu_c_abi_32bit=no], | |
685 | [gl_cv_host_cpu_c_abi_32bit=yes]) | |
686 | ;; | |
687 | ||
688 | *) | |
689 | gl_cv_host_cpu_c_abi_32bit=unknown | |
690 | ;; | |
691 | esac | |
692 | fi | |
693 | ]) | |
694 | ||
695 | HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" | |
696 | ]) | |
697 | ||
698 | # iconv.m4 serial 21 | |
699 | dnl Copyright (C) 2000-2002, 2007-2014, 2016-2020 Free Software Foundation, | |
700 | dnl Inc. | |
24 | 701 | dnl This file is free software; the Free Software Foundation |
25 | 702 | dnl gives unlimited permission to copy and/or distribute it, |
26 | 703 | dnl with or without modifications, as long as this notice is preserved. |
188 | 865 | #endif |
189 | 866 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is |
190 | 867 | provided. */ |
191 | if (/* Try standardized names. */ | |
192 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
193 | /* Try IRIX, OSF/1 names. */ | |
194 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
195 | /* Try AIX names. */ | |
196 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
197 | /* Try HP-UX names. */ | |
198 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
199 | result |= 16; | |
868 | { | |
869 | /* Try standardized names. */ | |
870 | iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); | |
871 | /* Try IRIX, OSF/1 names. */ | |
872 | iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); | |
873 | /* Try AIX names. */ | |
874 | iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); | |
875 | /* Try HP-UX names. */ | |
876 | iconv_t cd4 = iconv_open ("utf8", "eucJP"); | |
877 | if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) | |
878 | && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) | |
879 | result |= 16; | |
880 | if (cd1 != (iconv_t)(-1)) | |
881 | iconv_close (cd1); | |
882 | if (cd2 != (iconv_t)(-1)) | |
883 | iconv_close (cd2); | |
884 | if (cd3 != (iconv_t)(-1)) | |
885 | iconv_close (cd3); | |
886 | if (cd4 != (iconv_t)(-1)) | |
887 | iconv_close (cd4); | |
888 | } | |
200 | 889 | return result; |
201 | 890 | ]])], |
202 | 891 | [am_cv_func_iconv_works=yes], , |
279 | 968 | am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
280 | 969 | AC_MSG_RESULT([ |
281 | 970 | $am_cv_proto_iconv]) |
282 | AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], | |
283 | [Define as const if the declaration of iconv() needs const.]) | |
284 | dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>. | |
285 | m4_ifdef([gl_ICONV_H_DEFAULTS], | |
286 | [AC_REQUIRE([gl_ICONV_H_DEFAULTS]) | |
287 | if test -n "$am_cv_proto_iconv_arg1"; then | |
288 | ICONV_CONST="const" | |
289 | fi | |
290 | ]) | |
971 | else | |
972 | dnl When compiling GNU libiconv on a system that does not have iconv yet, | |
973 | dnl pick the POSIX compliant declaration without 'const'. | |
974 | am_cv_proto_iconv_arg1="" | |
291 | 975 | fi |
976 | AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], | |
977 | [Define as const if the declaration of iconv() needs const.]) | |
978 | dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>. | |
979 | m4_ifdef([gl_ICONV_H_DEFAULTS], | |
980 | [AC_REQUIRE([gl_ICONV_H_DEFAULTS]) | |
981 | if test -n "$am_cv_proto_iconv_arg1"; then | |
982 | ICONV_CONST="const" | |
983 | fi | |
984 | ]) | |
292 | 985 | ]) |
293 | 986 | |
294 | # lib-ld.m4 serial 6 | |
295 | dnl Copyright (C) 1996-2003, 2009-2016 Free Software Foundation, Inc. | |
987 | # lib-ld.m4 serial 9 | |
988 | dnl Copyright (C) 1996-2003, 2009-2020 Free Software Foundation, Inc. | |
296 | 989 | dnl This file is free software; the Free Software Foundation |
297 | 990 | dnl gives unlimited permission to copy and/or distribute it, |
298 | 991 | dnl with or without modifications, as long as this notice is preserved. |
340 | 1033 | } |
341 | 1034 | fi |
342 | 1035 | |
343 | ac_prog=ld | |
344 | if test "$GCC" = yes; then | |
345 | # Check if gcc -print-prog-name=ld gives a path. | |
1036 | if test -n "$LD"; then | |
1037 | AC_MSG_CHECKING([for ld]) | |
1038 | elif test "$GCC" = yes; then | |
346 | 1039 | AC_MSG_CHECKING([for ld used by $CC]) |
347 | case $host in | |
348 | *-*-mingw*) | |
349 | # gcc leaves a trailing carriage return which upsets mingw | |
350 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
351 | *) | |
352 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
353 | esac | |
354 | case $ac_prog in | |
355 | # Accept absolute paths. | |
356 | [[\\/]]* | ?:[[\\/]]*) | |
357 | re_direlt='/[[^/]][[^/]]*/\.\./' | |
358 | # Canonicalize the pathname of ld | |
359 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` | |
360 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do | |
361 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
362 | done | |
363 | test -z "$LD" && LD="$ac_prog" | |
364 | ;; | |
365 | "") | |
366 | # If it fails, then pretend we aren't using GCC. | |
367 | ac_prog=ld | |
368 | ;; | |
369 | *) | |
370 | # If it is relative, then search for the first ld in PATH. | |
371 | with_gnu_ld=unknown | |
372 | ;; | |
373 | esac | |
374 | 1040 | elif test "$with_gnu_ld" = yes; then |
375 | 1041 | AC_MSG_CHECKING([for GNU ld]) |
376 | 1042 | else |
377 | 1043 | AC_MSG_CHECKING([for non-GNU ld]) |
378 | 1044 | fi |
379 | AC_CACHE_VAL([acl_cv_path_LD], | |
380 | [if test -z "$LD"; then | |
381 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
382 | for ac_dir in $PATH; do | |
383 | IFS="$acl_save_ifs" | |
384 | test -z "$ac_dir" && ac_dir=. | |
385 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
386 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
387 | # Check to see if the program is GNU ld. I'd rather use --version, | |
388 | # but apparently some variants of GNU ld only accept -v. | |
389 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
390 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in | |
391 | *GNU* | *'with BFD'*) | |
392 | test "$with_gnu_ld" != no && break | |
393 | ;; | |
394 | *) | |
395 | test "$with_gnu_ld" != yes && break | |
396 | ;; | |
1045 | if test -n "$LD"; then | |
1046 | # Let the user override the test with a path. | |
1047 | : | |
1048 | else | |
1049 | AC_CACHE_VAL([acl_cv_path_LD], | |
1050 | [ | |
1051 | acl_cv_path_LD= # Final result of this test | |
1052 | ac_prog=ld # Program to search in $PATH | |
1053 | if test "$GCC" = yes; then | |
1054 | # Check if gcc -print-prog-name=ld gives a path. | |
1055 | case $host in | |
1056 | *-*-mingw*) | |
1057 | # gcc leaves a trailing carriage return which upsets mingw | |
1058 | acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
1059 | *) | |
1060 | acl_output=`($CC -print-prog-name=ld) 2>&5` ;; | |
1061 | esac | |
1062 | case $acl_output in | |
1063 | # Accept absolute paths. | |
1064 | [[\\/]]* | ?:[[\\/]]*) | |
1065 | re_direlt='/[[^/]][[^/]]*/\.\./' | |
1066 | # Canonicalize the pathname of ld | |
1067 | acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` | |
1068 | while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do | |
1069 | acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` | |
1070 | done | |
1071 | # Got the pathname. No search in PATH is needed. | |
1072 | acl_cv_path_LD="$acl_output" | |
1073 | ac_prog= | |
1074 | ;; | |
1075 | "") | |
1076 | # If it fails, then pretend we aren't using GCC. | |
1077 | ;; | |
1078 | *) | |
1079 | # If it is relative, then search for the first ld in PATH. | |
1080 | with_gnu_ld=unknown | |
1081 | ;; | |
397 | 1082 | esac |
398 | 1083 | fi |
399 | done | |
400 | IFS="$acl_save_ifs" | |
401 | else | |
402 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
403 | fi]) | |
404 | LD="$acl_cv_path_LD" | |
1084 | if test -n "$ac_prog"; then | |
1085 | # Search for $ac_prog in $PATH. | |
1086 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
1087 | for ac_dir in $PATH; do | |
1088 | IFS="$acl_save_ifs" | |
1089 | test -z "$ac_dir" && ac_dir=. | |
1090 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
1091 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
1092 | # Check to see if the program is GNU ld. I'd rather use --version, | |
1093 | # but apparently some variants of GNU ld only accept -v. | |
1094 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
1095 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in | |
1096 | *GNU* | *'with BFD'*) | |
1097 | test "$with_gnu_ld" != no && break | |
1098 | ;; | |
1099 | *) | |
1100 | test "$with_gnu_ld" != yes && break | |
1101 | ;; | |
1102 | esac | |
1103 | fi | |
1104 | done | |
1105 | IFS="$acl_save_ifs" | |
1106 | fi | |
1107 | case $host in | |
1108 | *-*-aix*) | |
1109 | AC_COMPILE_IFELSE( | |
1110 | [AC_LANG_SOURCE( | |
1111 | [[#if defined __powerpc64__ || defined _ARCH_PPC64 | |
1112 | int ok; | |
1113 | #else | |
1114 | error fail | |
1115 | #endif | |
1116 | ]])], | |
1117 | [# The compiler produces 64-bit code. Add option '-b64' so that the | |
1118 | # linker groks 64-bit object files. | |
1119 | case "$acl_cv_path_LD " in | |
1120 | *" -b64 "*) ;; | |
1121 | *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;; | |
1122 | esac | |
1123 | ], []) | |
1124 | ;; | |
1125 | sparc64-*-netbsd*) | |
1126 | AC_COMPILE_IFELSE( | |
1127 | [AC_LANG_SOURCE( | |
1128 | [[#if defined __sparcv9 || defined __arch64__ | |
1129 | int ok; | |
1130 | #else | |
1131 | error fail | |
1132 | #endif | |
1133 | ]])], | |
1134 | [], | |
1135 | [# The compiler produces 32-bit code. Add option '-m elf32_sparc' | |
1136 | # so that the linker groks 32-bit object files. | |
1137 | case "$acl_cv_path_LD " in | |
1138 | *" -m elf32_sparc "*) ;; | |
1139 | *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;; | |
1140 | esac | |
1141 | ]) | |
1142 | ;; | |
1143 | esac | |
1144 | ]) | |
1145 | LD="$acl_cv_path_LD" | |
1146 | fi | |
405 | 1147 | if test -n "$LD"; then |
406 | 1148 | AC_MSG_RESULT([$LD]) |
407 | 1149 | else |
408 | 1150 | AC_MSG_RESULT([no]) |
1151 | AC_MSG_ERROR([no acceptable ld found in \$PATH]) | |
409 | 1152 | fi |
410 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | |
411 | 1153 | AC_LIB_PROG_LD_GNU |
412 | 1154 | ]) |
413 | 1155 | |
414 | # lib-link.m4 serial 26 (gettext-0.18.2) | |
415 | dnl Copyright (C) 2001-2016 Free Software Foundation, Inc. | |
1156 | # lib-link.m4 serial 31 | |
1157 | dnl Copyright (C) 2001-2020 Free Software Foundation, Inc. | |
416 | 1158 | dnl This file is free software; the Free Software Foundation |
417 | 1159 | dnl gives unlimited permission to copy and/or distribute it, |
418 | 1160 | dnl with or without modifications, as long as this notice is preserved. |
419 | 1161 | |
420 | 1162 | dnl From Bruno Haible. |
421 | 1163 | |
422 | AC_PREREQ([2.54]) | |
1164 | AC_PREREQ([2.61]) | |
423 | 1165 | |
424 | 1166 | dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and |
425 | 1167 | dnl the libraries corresponding to explicit and implicit dependencies. |
537 | 1279 | dnl acl_hardcode_minus_L. |
538 | 1280 | AC_DEFUN([AC_LIB_RPATH], |
539 | 1281 | [ |
540 | dnl Tell automake >= 1.10 to complain if config.rpath is missing. | |
541 | m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) | |
1282 | dnl Complain if config.rpath is missing. | |
1283 | AC_REQUIRE_AUX_FILE([config.rpath]) | |
542 | 1284 | AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS |
543 | 1285 | AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld |
544 | 1286 | AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host |
600 | 1342 | pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], |
601 | 1343 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) |
602 | 1344 | pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) |
603 | dnl Autoconf >= 2.61 supports dots in --with options. | |
604 | pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)]) | |
605 | 1345 | dnl By default, look in $includedir and $libdir. |
606 | 1346 | use_additional=yes |
607 | 1347 | AC_LIB_WITH_FINAL_PREFIX([ |
608 | 1348 | eval additional_includedir=\"$includedir\" |
609 | 1349 | eval additional_libdir=\"$libdir\" |
1350 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" | |
1351 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" | |
610 | 1352 | ]) |
611 | AC_ARG_WITH(P_A_C_K[-prefix], | |
612 | [[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib | |
613 | --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], | |
1353 | AC_ARG_WITH(PACK[-prefix], | |
1354 | [[ --with-]]PACK[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib | |
1355 | --without-]]PACK[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], | |
614 | 1356 | [ |
615 | 1357 | if test "X$withval" = "Xno"; then |
616 | 1358 | use_additional=no |
619 | 1361 | AC_LIB_WITH_FINAL_PREFIX([ |
620 | 1362 | eval additional_includedir=\"$includedir\" |
621 | 1363 | eval additional_libdir=\"$libdir\" |
1364 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" | |
1365 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" | |
622 | 1366 | ]) |
623 | 1367 | else |
624 | 1368 | additional_includedir="$withval/include" |
625 | 1369 | additional_libdir="$withval/$acl_libdirstem" |
626 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
627 | && ! test -d "$withval/$acl_libdirstem"; then | |
628 | additional_libdir="$withval/$acl_libdirstem2" | |
629 | fi | |
1370 | additional_libdir2="$withval/$acl_libdirstem2" | |
1371 | additional_libdir3="$withval/$acl_libdirstem3" | |
630 | 1372 | fi |
631 | 1373 | fi |
632 | 1374 | ]) |
1375 | if test "X$additional_libdir2" = "X$additional_libdir"; then | |
1376 | additional_libdir2= | |
1377 | fi | |
1378 | if test "X$additional_libdir3" = "X$additional_libdir"; then | |
1379 | additional_libdir3= | |
1380 | fi | |
633 | 1381 | dnl Search the library and its dependencies in $additional_libdir and |
634 | 1382 | dnl $LDFLAGS. Using breadth-first-seach. |
635 | 1383 | LIB[]NAME= |
685 | 1433 | shrext= |
686 | 1434 | fi |
687 | 1435 | if test $use_additional = yes; then |
688 | dir="$additional_libdir" | |
689 | dnl The same code as in the loop below: | |
690 | dnl First look for a shared library. | |
691 | if test -n "$acl_shlibext"; then | |
692 | if test -f "$dir/$libname$shrext"; then | |
693 | found_dir="$dir" | |
694 | found_so="$dir/$libname$shrext" | |
695 | else | |
696 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
697 | ver=`(cd "$dir" && \ | |
698 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
699 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
700 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
701 | | sed 1q ) 2>/dev/null` | |
702 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
703 | found_dir="$dir" | |
704 | found_so="$dir/$libname$shrext.$ver" | |
705 | fi | |
706 | else | |
707 | eval library_names=\"$acl_library_names_spec\" | |
708 | for f in $library_names; do | |
709 | if test -f "$dir/$f"; then | |
710 | found_dir="$dir" | |
711 | found_so="$dir/$f" | |
712 | break | |
713 | fi | |
714 | done | |
715 | fi | |
716 | fi | |
717 | fi | |
718 | dnl Then look for a static library. | |
719 | if test "X$found_dir" = "X"; then | |
720 | if test -f "$dir/$libname.$acl_libext"; then | |
721 | found_dir="$dir" | |
722 | found_a="$dir/$libname.$acl_libext" | |
723 | fi | |
724 | fi | |
725 | if test "X$found_dir" != "X"; then | |
726 | if test -f "$dir/$libname.la"; then | |
727 | found_la="$dir/$libname.la" | |
728 | fi | |
729 | fi | |
730 | fi | |
731 | if test "X$found_dir" = "X"; then | |
732 | for x in $LDFLAGS $LTLIB[]NAME; do | |
733 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | |
734 | case "$x" in | |
735 | -L*) | |
736 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
1436 | for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do | |
1437 | if test "X$found_dir" = "X"; then | |
1438 | eval dir=\$$additional_libdir_variable | |
1439 | if test -n "$dir"; then | |
1440 | dnl The same code as in the loop below: | |
737 | 1441 | dnl First look for a shared library. |
738 | 1442 | if test -n "$acl_shlibext"; then |
739 | if test -f "$dir/$libname$shrext"; then | |
1443 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then | |
740 | 1444 | found_dir="$dir" |
741 | 1445 | found_so="$dir/$libname$shrext" |
742 | 1446 | else |
746 | 1450 | | sed -e "s,^$libname$shrext\\\\.,," \ |
747 | 1451 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
748 | 1452 | | sed 1q ) 2>/dev/null` |
749 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
1453 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then | |
750 | 1454 | found_dir="$dir" |
751 | 1455 | found_so="$dir/$libname$shrext.$ver" |
752 | 1456 | fi |
753 | 1457 | else |
754 | 1458 | eval library_names=\"$acl_library_names_spec\" |
755 | 1459 | for f in $library_names; do |
756 | if test -f "$dir/$f"; then | |
1460 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then | |
757 | 1461 | found_dir="$dir" |
758 | 1462 | found_so="$dir/$f" |
759 | 1463 | break |
764 | 1468 | fi |
765 | 1469 | dnl Then look for a static library. |
766 | 1470 | if test "X$found_dir" = "X"; then |
767 | if test -f "$dir/$libname.$acl_libext"; then | |
1471 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then | |
1472 | found_dir="$dir" | |
1473 | found_a="$dir/$libname.$acl_libext" | |
1474 | fi | |
1475 | fi | |
1476 | if test "X$found_dir" != "X"; then | |
1477 | if test -f "$dir/$libname.la"; then | |
1478 | found_la="$dir/$libname.la" | |
1479 | fi | |
1480 | fi | |
1481 | fi | |
1482 | fi | |
1483 | done | |
1484 | fi | |
1485 | if test "X$found_dir" = "X"; then | |
1486 | for x in $LDFLAGS $LTLIB[]NAME; do | |
1487 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | |
1488 | case "$x" in | |
1489 | -L*) | |
1490 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
1491 | dnl First look for a shared library. | |
1492 | if test -n "$acl_shlibext"; then | |
1493 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then | |
1494 | found_dir="$dir" | |
1495 | found_so="$dir/$libname$shrext" | |
1496 | else | |
1497 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
1498 | ver=`(cd "$dir" && \ | |
1499 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
1500 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
1501 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
1502 | | sed 1q ) 2>/dev/null` | |
1503 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then | |
1504 | found_dir="$dir" | |
1505 | found_so="$dir/$libname$shrext.$ver" | |
1506 | fi | |
1507 | else | |
1508 | eval library_names=\"$acl_library_names_spec\" | |
1509 | for f in $library_names; do | |
1510 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then | |
1511 | found_dir="$dir" | |
1512 | found_so="$dir/$f" | |
1513 | break | |
1514 | fi | |
1515 | done | |
1516 | fi | |
1517 | fi | |
1518 | fi | |
1519 | dnl Then look for a static library. | |
1520 | if test "X$found_dir" = "X"; then | |
1521 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then | |
768 | 1522 | found_dir="$dir" |
769 | 1523 | found_a="$dir/$libname.$acl_libext" |
770 | 1524 | fi |
790 | 1544 | dnl standard /usr/lib. |
791 | 1545 | if test "$enable_rpath" = no \ |
792 | 1546 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
793 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
1547 | || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ | |
1548 | || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then | |
794 | 1549 | dnl No hardcoding is needed. |
795 | 1550 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
796 | 1551 | else |
890 | 1645 | fi |
891 | 1646 | additional_includedir="$basedir/include" |
892 | 1647 | ;; |
1648 | */$acl_libdirstem3 | */$acl_libdirstem3/) | |
1649 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` | |
1650 | if test "$name" = '$1'; then | |
1651 | LIB[]NAME[]_PREFIX="$basedir" | |
1652 | fi | |
1653 | additional_includedir="$basedir/include" | |
1654 | ;; | |
893 | 1655 | esac |
894 | 1656 | if test "X$additional_includedir" != "X"; then |
895 | 1657 | dnl Potentially add $additional_includedir to $INCNAME. |
940 | 1702 | for dep in $dependency_libs; do |
941 | 1703 | case "$dep" in |
942 | 1704 | -L*) |
943 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
944 | dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. | |
1705 | dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
1706 | dnl Potentially add $dependency_libdir to $LIBNAME and $LTLIBNAME. | |
945 | 1707 | dnl But don't add it |
946 | 1708 | dnl 1. if it's the standard /usr/lib, |
947 | 1709 | dnl 2. if it's /usr/local/lib and we are using GCC on Linux, |
948 | 1710 | dnl 3. if it's already present in $LDFLAGS or the already |
949 | 1711 | dnl constructed $LIBNAME, |
950 | 1712 | dnl 4. if it doesn't exist as a directory. |
951 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
952 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
1713 | if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ | |
1714 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ | |
1715 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then | |
953 | 1716 | haveit= |
954 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
955 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
1717 | if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ | |
1718 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ | |
1719 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then | |
956 | 1720 | if test -n "$GCC"; then |
957 | 1721 | case $host_os in |
958 | 1722 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
963 | 1727 | haveit= |
964 | 1728 | for x in $LDFLAGS $LIB[]NAME; do |
965 | 1729 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
966 | if test "X$x" = "X-L$additional_libdir"; then | |
1730 | if test "X$x" = "X-L$dependency_libdir"; then | |
967 | 1731 | haveit=yes |
968 | 1732 | break |
969 | 1733 | fi |
970 | 1734 | done |
971 | 1735 | if test -z "$haveit"; then |
972 | if test -d "$additional_libdir"; then | |
973 | dnl Really add $additional_libdir to $LIBNAME. | |
974 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" | |
1736 | if test -d "$dependency_libdir"; then | |
1737 | dnl Really add $dependency_libdir to $LIBNAME. | |
1738 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$dependency_libdir" | |
975 | 1739 | fi |
976 | 1740 | fi |
977 | 1741 | haveit= |
978 | 1742 | for x in $LDFLAGS $LTLIB[]NAME; do |
979 | 1743 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
980 | if test "X$x" = "X-L$additional_libdir"; then | |
1744 | if test "X$x" = "X-L$dependency_libdir"; then | |
981 | 1745 | haveit=yes |
982 | 1746 | break |
983 | 1747 | fi |
984 | 1748 | done |
985 | 1749 | if test -z "$haveit"; then |
986 | if test -d "$additional_libdir"; then | |
987 | dnl Really add $additional_libdir to $LTLIBNAME. | |
988 | LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" | |
1750 | if test -d "$dependency_libdir"; then | |
1751 | dnl Really add $dependency_libdir to $LTLIBNAME. | |
1752 | LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$dependency_libdir" | |
989 | 1753 | fi |
990 | 1754 | fi |
991 | 1755 | fi |
1083 | 1847 | LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" |
1084 | 1848 | done |
1085 | 1849 | fi |
1086 | popdef([P_A_C_K]) | |
1087 | 1850 | popdef([PACKLIBS]) |
1088 | 1851 | popdef([PACKUP]) |
1089 | 1852 | popdef([PACK]) |
1134 | 1897 | dir="$next" |
1135 | 1898 | dnl No need to hardcode the standard /usr/lib. |
1136 | 1899 | if test "X$dir" != "X/usr/$acl_libdirstem" \ |
1137 | && test "X$dir" != "X/usr/$acl_libdirstem2"; then | |
1900 | && test "X$dir" != "X/usr/$acl_libdirstem2" \ | |
1901 | && test "X$dir" != "X/usr/$acl_libdirstem3"; then | |
1138 | 1902 | rpathdirs="$rpathdirs $dir" |
1139 | 1903 | fi |
1140 | 1904 | next= |
1144 | 1908 | -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` |
1145 | 1909 | dnl No need to hardcode the standard /usr/lib. |
1146 | 1910 | if test "X$dir" != "X/usr/$acl_libdirstem" \ |
1147 | && test "X$dir" != "X/usr/$acl_libdirstem2"; then | |
1911 | && test "X$dir" != "X/usr/$acl_libdirstem2" \ | |
1912 | && test "X$dir" != "X/usr/$acl_libdirstem3"; then | |
1148 | 1913 | rpathdirs="$rpathdirs $dir" |
1149 | 1914 | fi |
1150 | 1915 | next= ;; |
1189 | 1954 | AC_SUBST([$1]) |
1190 | 1955 | ]) |
1191 | 1956 | |
1192 | # lib-prefix.m4 serial 7 (gettext-0.18) | |
1193 | dnl Copyright (C) 2001-2005, 2008-2016 Free Software Foundation, Inc. | |
1957 | # lib-prefix.m4 serial 17 | |
1958 | dnl Copyright (C) 2001-2005, 2008-2020 Free Software Foundation, Inc. | |
1194 | 1959 | dnl This file is free software; the Free Software Foundation |
1195 | 1960 | dnl gives unlimited permission to copy and/or distribute it, |
1196 | 1961 | dnl with or without modifications, as long as this notice is preserved. |
1197 | 1962 | |
1198 | 1963 | dnl From Bruno Haible. |
1199 | ||
1200 | dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and | |
1201 | dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't | |
1202 | dnl require excessive bracketing. | |
1203 | ifdef([AC_HELP_STRING], | |
1204 | [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], | |
1205 | [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) | |
1206 | 1964 | |
1207 | 1965 | dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed |
1208 | 1966 | dnl to access previously installed libraries. The basic assumption is that |
1223 | 1981 | eval additional_includedir=\"$includedir\" |
1224 | 1982 | eval additional_libdir=\"$libdir\" |
1225 | 1983 | ]) |
1226 | AC_LIB_ARG_WITH([lib-prefix], | |
1227 | [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib | |
1228 | --without-lib-prefix don't search for libraries in includedir and libdir], | |
1984 | AC_ARG_WITH([lib-prefix], | |
1985 | [[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib | |
1986 | --without-lib-prefix don't search for libraries in includedir and libdir]], | |
1229 | 1987 | [ |
1230 | 1988 | if test "X$withval" = "Xno"; then |
1231 | 1989 | use_additional=no |
1345 | 2103 | ]) |
1346 | 2104 | |
1347 | 2105 | dnl AC_LIB_PREPARE_MULTILIB creates |
1348 | dnl - a variable acl_libdirstem, containing the basename of the libdir, either | |
1349 | dnl "lib" or "lib64" or "lib/64", | |
1350 | dnl - a variable acl_libdirstem2, as a secondary possible value for | |
1351 | dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or | |
1352 | dnl "lib/amd64". | |
2106 | dnl - a function acl_is_expected_elfclass, that tests whether standard input | |
2107 | dn; has a 32-bit or 64-bit ELF header, depending on the host CPU ABI, | |
2108 | dnl - 3 variables acl_libdirstem, acl_libdirstem2, acl_libdirstem3, containing | |
2109 | dnl the basename of the libdir to try in turn, either "lib" or "lib64" or | |
2110 | dnl "lib/64" or "lib32" or "lib/sparcv9" or "lib/amd64" or similar. | |
1353 | 2111 | AC_DEFUN([AC_LIB_PREPARE_MULTILIB], |
1354 | 2112 | [ |
1355 | dnl There is no formal standard regarding lib and lib64. | |
1356 | dnl On glibc systems, the current practice is that on a system supporting | |
2113 | dnl There is no formal standard regarding lib, lib32, and lib64. | |
2114 | dnl On most glibc systems, the current practice is that on a system supporting | |
1357 | 2115 | dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under |
1358 | dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine | |
1359 | dnl the compiler's default mode by looking at the compiler's library search | |
1360 | dnl path. If at least one of its elements ends in /lib64 or points to a | |
1361 | dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. | |
1362 | dnl Otherwise we use the default, namely "lib". | |
2116 | dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. However, on | |
2117 | dnl Arch Linux based distributions, it's the opposite: 32-bit libraries go | |
2118 | dnl under $prefix/lib32 and 64-bit libraries go under $prefix/lib. | |
2119 | dnl We determine the compiler's default mode by looking at the compiler's | |
2120 | dnl library search path. If at least one of its elements ends in /lib64 or | |
2121 | dnl points to a directory whose absolute pathname ends in /lib64, we use that | |
2122 | dnl for 64-bit ABIs. Similarly for 32-bit ABIs. Otherwise we use the default, | |
2123 | dnl namely "lib". | |
1363 | 2124 | dnl On Solaris systems, the current practice is that on a system supporting |
1364 | 2125 | dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under |
1365 | 2126 | dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or |
1366 | 2127 | dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. |
1367 | 2128 | AC_REQUIRE([AC_CANONICAL_HOST]) |
1368 | acl_libdirstem=lib | |
1369 | acl_libdirstem2= | |
1370 | case "$host_os" in | |
1371 | solaris*) | |
1372 | dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment | |
1373 | dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>. | |
1374 | dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." | |
1375 | dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the | |
1376 | dnl symlink is missing, so we set acl_libdirstem2 too. | |
1377 | AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], | |
1378 | [AC_EGREP_CPP([sixtyfour bits], [ | |
1379 | #ifdef _LP64 | |
1380 | sixtyfour bits | |
1381 | #endif | |
1382 | ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) | |
1383 | ]) | |
1384 | if test $gl_cv_solaris_64bit = yes; then | |
1385 | acl_libdirstem=lib/64 | |
1386 | case "$host_cpu" in | |
1387 | sparc*) acl_libdirstem2=lib/sparcv9 ;; | |
1388 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; | |
1389 | esac | |
1390 | fi | |
1391 | ;; | |
1392 | *) | |
1393 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
1394 | if test -n "$searchpath"; then | |
1395 | acl_save_IFS="${IFS= }"; IFS=":" | |
1396 | for searchdir in $searchpath; do | |
1397 | if test -d "$searchdir"; then | |
1398 | case "$searchdir" in | |
1399 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
1400 | */../ | */.. ) | |
1401 | # Better ignore directories of this form. They are misleading. | |
1402 | ;; | |
1403 | *) searchdir=`cd "$searchdir" && pwd` | |
1404 | case "$searchdir" in | |
1405 | */lib64 ) acl_libdirstem=lib64 ;; | |
1406 | esac ;; | |
1407 | esac | |
1408 | fi | |
1409 | done | |
1410 | IFS="$acl_save_IFS" | |
1411 | fi | |
1412 | ;; | |
1413 | esac | |
1414 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
2129 | AC_REQUIRE([gl_HOST_CPU_C_ABI_32BIT]) | |
2130 | ||
2131 | AC_CACHE_CHECK([for ELF binary format], [gl_cv_elf], | |
2132 | [AC_EGREP_CPP([Extensible Linking Format], | |
2133 | [#ifdef __ELF__ | |
2134 | Extensible Linking Format | |
2135 | #endif | |
2136 | ], | |
2137 | [gl_cv_elf=yes], | |
2138 | [gl_cv_elf=no]) | |
2139 | ]) | |
2140 | if test $gl_cv_elf; then | |
2141 | # Extract the ELF class of a file (5th byte) in decimal. | |
2142 | # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header | |
2143 | if od -A x < /dev/null >/dev/null 2>/dev/null; then | |
2144 | # Use POSIX od. | |
2145 | func_elfclass () | |
2146 | { | |
2147 | od -A n -t d1 -j 4 -N 1 | |
2148 | } | |
2149 | else | |
2150 | # Use BSD hexdump. | |
2151 | func_elfclass () | |
2152 | { | |
2153 | dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' | |
2154 | echo | |
2155 | } | |
2156 | fi | |
2157 | changequote(,)dnl | |
2158 | case $HOST_CPU_C_ABI_32BIT in | |
2159 | yes) | |
2160 | # 32-bit ABI. | |
2161 | acl_is_expected_elfclass () | |
2162 | { | |
2163 | test "`func_elfclass | sed -e 's/[ ]//g'`" = 1 | |
2164 | } | |
2165 | ;; | |
2166 | no) | |
2167 | # 64-bit ABI. | |
2168 | acl_is_expected_elfclass () | |
2169 | { | |
2170 | test "`func_elfclass | sed -e 's/[ ]//g'`" = 2 | |
2171 | } | |
2172 | ;; | |
2173 | *) | |
2174 | # Unknown. | |
2175 | acl_is_expected_elfclass () | |
2176 | { | |
2177 | : | |
2178 | } | |
2179 | ;; | |
2180 | esac | |
2181 | changequote([,])dnl | |
2182 | else | |
2183 | acl_is_expected_elfclass () | |
2184 | { | |
2185 | : | |
2186 | } | |
2187 | fi | |
2188 | ||
2189 | dnl Allow the user to override the result by setting acl_cv_libdirstems. | |
2190 | AC_CACHE_CHECK([for the common suffixes of directories in the library search path], | |
2191 | [acl_cv_libdirstems], | |
2192 | [dnl Try 'lib' first, because that's the default for libdir in GNU, see | |
2193 | dnl <https://www.gnu.org/prep/standards/html_node/Directory-Variables.html>. | |
2194 | acl_libdirstem=lib | |
2195 | acl_libdirstem2= | |
2196 | acl_libdirstem3= | |
2197 | case "$host_os" in | |
2198 | solaris*) | |
2199 | dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment | |
2200 | dnl <https://docs.oracle.com/cd/E19253-01/816-5138/dev-env/index.html>. | |
2201 | dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." | |
2202 | dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the | |
2203 | dnl symlink is missing, so we set acl_libdirstem2 too. | |
2204 | if test $HOST_CPU_C_ABI_32BIT = no; then | |
2205 | acl_libdirstem2=lib/64 | |
2206 | case "$host_cpu" in | |
2207 | sparc*) acl_libdirstem3=lib/sparcv9 ;; | |
2208 | i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; | |
2209 | esac | |
2210 | fi | |
2211 | ;; | |
2212 | *) | |
2213 | dnl If $CC generates code for a 32-bit ABI, the libraries are | |
2214 | dnl surely under $prefix/lib or $prefix/lib32, not $prefix/lib64. | |
2215 | dnl Similarly, if $CC generates code for a 64-bit ABI, the libraries | |
2216 | dnl are surely under $prefix/lib or $prefix/lib64, not $prefix/lib32. | |
2217 | dnl Find the compiler's search path. However, non-system compilers | |
2218 | dnl sometimes have odd library search paths. But we can't simply invoke | |
2219 | dnl '/usr/bin/gcc -print-search-dirs' because that would not take into | |
2220 | dnl account the -m32/-m31 or -m64 options from the $CC or $CFLAGS. | |
2221 | searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ | |
2222 | | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
2223 | if test $HOST_CPU_C_ABI_32BIT != no; then | |
2224 | # 32-bit or unknown ABI. | |
2225 | if test -d /usr/lib32; then | |
2226 | acl_libdirstem2=lib32 | |
2227 | fi | |
2228 | fi | |
2229 | if test $HOST_CPU_C_ABI_32BIT != yes; then | |
2230 | # 64-bit or unknown ABI. | |
2231 | if test -d /usr/lib64; then | |
2232 | acl_libdirstem3=lib64 | |
2233 | fi | |
2234 | fi | |
2235 | if test -n "$searchpath"; then | |
2236 | acl_save_IFS="${IFS= }"; IFS=":" | |
2237 | for searchdir in $searchpath; do | |
2238 | if test -d "$searchdir"; then | |
2239 | case "$searchdir" in | |
2240 | */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; | |
2241 | */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; | |
2242 | */../ | */.. ) | |
2243 | # Better ignore directories of this form. They are misleading. | |
2244 | ;; | |
2245 | *) searchdir=`cd "$searchdir" && pwd` | |
2246 | case "$searchdir" in | |
2247 | */lib32 ) acl_libdirstem2=lib32 ;; | |
2248 | */lib64 ) acl_libdirstem3=lib64 ;; | |
2249 | esac ;; | |
2250 | esac | |
2251 | fi | |
2252 | done | |
2253 | IFS="$acl_save_IFS" | |
2254 | if test $HOST_CPU_C_ABI_32BIT = yes; then | |
2255 | # 32-bit ABI. | |
2256 | acl_libdirstem3= | |
2257 | fi | |
2258 | if test $HOST_CPU_C_ABI_32BIT = no; then | |
2259 | # 64-bit ABI. | |
2260 | acl_libdirstem2= | |
2261 | fi | |
2262 | fi | |
2263 | ;; | |
2264 | esac | |
2265 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
2266 | test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" | |
2267 | acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" | |
2268 | ]) | |
2269 | dnl Decompose acl_cv_libdirstems into acl_libdirstem, acl_libdirstem2, and | |
2270 | dnl acl_libdirstem3. | |
2271 | changequote(,)dnl | |
2272 | acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` | |
2273 | acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` | |
2274 | acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` | |
2275 | changequote([,])dnl | |
1415 | 2276 | ]) |
1416 | 2277 | |
1417 | # Copyright (C) 2002-2018 Free Software Foundation, Inc. | |
2278 | # Copyright (C) 2002-2021 Free Software Foundation, Inc. | |
1418 | 2279 | # |
1419 | 2280 | # This file is free software; the Free Software Foundation |
1420 | 2281 | # gives unlimited permission to copy and/or distribute it, |
1429 | 2290 | [am__api_version='1.16' |
1430 | 2291 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
1431 | 2292 | dnl require some minimum version. Point them to the right macro. |
1432 | m4_if([$1], [1.16.1], [], | |
2293 | m4_if([$1], [1.16.5], [], | |
1433 | 2294 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
1434 | 2295 | ]) |
1435 | 2296 | |
1445 | 2306 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
1446 | 2307 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
1447 | 2308 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
1448 | [AM_AUTOMAKE_VERSION([1.16.1])dnl | |
2309 | [AM_AUTOMAKE_VERSION([1.16.5])dnl | |
1449 | 2310 | m4_ifndef([AC_AUTOCONF_VERSION], |
1450 | 2311 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
1451 | 2312 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
1452 | 2313 | |
1453 | 2314 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
1454 | 2315 | |
1455 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
2316 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
1456 | 2317 | # |
1457 | 2318 | # This file is free software; the Free Software Foundation |
1458 | 2319 | # gives unlimited permission to copy and/or distribute it, |
1504 | 2365 | |
1505 | 2366 | # AM_CONDITIONAL -*- Autoconf -*- |
1506 | 2367 | |
1507 | # Copyright (C) 1997-2018 Free Software Foundation, Inc. | |
2368 | # Copyright (C) 1997-2021 Free Software Foundation, Inc. | |
1508 | 2369 | # |
1509 | 2370 | # This file is free software; the Free Software Foundation |
1510 | 2371 | # gives unlimited permission to copy and/or distribute it, |
1535 | 2396 | Usually this means the macro was only invoked conditionally.]]) |
1536 | 2397 | fi])]) |
1537 | 2398 | |
1538 | # Copyright (C) 1999-2018 Free Software Foundation, Inc. | |
2399 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
1539 | 2400 | # |
1540 | 2401 | # This file is free software; the Free Software Foundation |
1541 | 2402 | # gives unlimited permission to copy and/or distribute it, |
1726 | 2587 | |
1727 | 2588 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
1728 | 2589 | |
1729 | # Copyright (C) 1999-2018 Free Software Foundation, Inc. | |
2590 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
1730 | 2591 | # |
1731 | 2592 | # This file is free software; the Free Software Foundation |
1732 | 2593 | # gives unlimited permission to copy and/or distribute it, |
1765 | 2626 | done |
1766 | 2627 | if test $am_rc -ne 0; then |
1767 | 2628 | AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments |
1768 | for automatic dependency tracking. Try re-running configure with the | |
2629 | for automatic dependency tracking. If GNU make was not used, consider | |
2630 | re-running the configure script with MAKE="gmake" (or whatever is | |
2631 | necessary). You can also try re-running configure with the | |
1769 | 2632 | '--disable-dependency-tracking' option to at least be able to build |
1770 | 2633 | the package (albeit without support for automatic dependency tracking).]) |
1771 | 2634 | fi |
1792 | 2655 | |
1793 | 2656 | # Do all the work for Automake. -*- Autoconf -*- |
1794 | 2657 | |
1795 | # Copyright (C) 1996-2018 Free Software Foundation, Inc. | |
2658 | # Copyright (C) 1996-2021 Free Software Foundation, Inc. | |
1796 | 2659 | # |
1797 | 2660 | # This file is free software; the Free Software Foundation |
1798 | 2661 | # gives unlimited permission to copy and/or distribute it, |
1820 | 2683 | # release and drop the old call support. |
1821 | 2684 | AC_DEFUN([AM_INIT_AUTOMAKE], |
1822 | 2685 | [AC_PREREQ([2.65])dnl |
2686 | m4_ifdef([_$0_ALREADY_INIT], | |
2687 | [m4_fatal([$0 expanded multiple times | |
2688 | ]m4_defn([_$0_ALREADY_INIT]))], | |
2689 | [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl | |
1823 | 2690 | dnl Autoconf wants to disallow AM_ names. We explicitly allow |
1824 | 2691 | dnl the ones we care about. |
1825 | 2692 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
1856 | 2723 | [_AM_SET_OPTIONS([$1])dnl |
1857 | 2724 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
1858 | 2725 | m4_if( |
1859 | m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), | |
2726 | m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), | |
1860 | 2727 | [ok:ok],, |
1861 | 2728 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
1862 | 2729 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
1908 | 2775 | [m4_define([AC_PROG_OBJCXX], |
1909 | 2776 | m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl |
1910 | 2777 | ]) |
2778 | # Variables for tags utilities; see am/tags.am | |
2779 | if test -z "$CTAGS"; then | |
2780 | CTAGS=ctags | |
2781 | fi | |
2782 | AC_SUBST([CTAGS]) | |
2783 | if test -z "$ETAGS"; then | |
2784 | ETAGS=etags | |
2785 | fi | |
2786 | AC_SUBST([ETAGS]) | |
2787 | if test -z "$CSCOPE"; then | |
2788 | CSCOPE=cscope | |
2789 | fi | |
2790 | AC_SUBST([CSCOPE]) | |
2791 | ||
1911 | 2792 | AC_REQUIRE([AM_SILENT_RULES])dnl |
1912 | 2793 | dnl The testsuite driver may need to know about EXEEXT, so add the |
1913 | 2794 | dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This |
1989 | 2870 | done |
1990 | 2871 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
1991 | 2872 | |
1992 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
2873 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
1993 | 2874 | # |
1994 | 2875 | # This file is free software; the Free Software Foundation |
1995 | 2876 | # gives unlimited permission to copy and/or distribute it, |
2010 | 2891 | fi |
2011 | 2892 | AC_SUBST([install_sh])]) |
2012 | 2893 | |
2013 | # Copyright (C) 2003-2018 Free Software Foundation, Inc. | |
2894 | # Copyright (C) 2003-2021 Free Software Foundation, Inc. | |
2014 | 2895 | # |
2015 | 2896 | # This file is free software; the Free Software Foundation |
2016 | 2897 | # gives unlimited permission to copy and/or distribute it, |
2031 | 2912 | |
2032 | 2913 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
2033 | 2914 | |
2034 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
2915 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
2035 | 2916 | # |
2036 | 2917 | # This file is free software; the Free Software Foundation |
2037 | 2918 | # gives unlimited permission to copy and/or distribute it, |
2074 | 2955 | |
2075 | 2956 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
2076 | 2957 | |
2077 | # Copyright (C) 1997-2018 Free Software Foundation, Inc. | |
2958 | # Copyright (C) 1997-2021 Free Software Foundation, Inc. | |
2078 | 2959 | # |
2079 | 2960 | # This file is free software; the Free Software Foundation |
2080 | 2961 | # gives unlimited permission to copy and/or distribute it, |
2095 | 2976 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
2096 | 2977 | AC_REQUIRE_AUX_FILE([missing])dnl |
2097 | 2978 | if test x"${MISSING+set}" != xset; then |
2098 | case $am_aux_dir in | |
2099 | *\ * | *\ *) | |
2100 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2101 | *) | |
2102 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2103 | esac | |
2979 | MISSING="\${SHELL} '$am_aux_dir/missing'" | |
2104 | 2980 | fi |
2105 | 2981 | # Use eval to expand $SHELL |
2106 | 2982 | if eval "$MISSING --is-lightweight"; then |
2113 | 2989 | |
2114 | 2990 | # Helper functions for option handling. -*- Autoconf -*- |
2115 | 2991 | |
2116 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
2992 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
2117 | 2993 | # |
2118 | 2994 | # This file is free software; the Free Software Foundation |
2119 | 2995 | # gives unlimited permission to copy and/or distribute it, |
2142 | 3018 | AC_DEFUN([_AM_IF_OPTION], |
2143 | 3019 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
2144 | 3020 | |
2145 | # Copyright (C) 1999-2018 Free Software Foundation, Inc. | |
3021 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
2146 | 3022 | # |
2147 | 3023 | # This file is free software; the Free Software Foundation |
2148 | 3024 | # gives unlimited permission to copy and/or distribute it, |
2189 | 3065 | # For backward compatibility. |
2190 | 3066 | AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) |
2191 | 3067 | |
2192 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
3068 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
2193 | 3069 | # |
2194 | 3070 | # This file is free software; the Free Software Foundation |
2195 | 3071 | # gives unlimited permission to copy and/or distribute it, |
2208 | 3084 | |
2209 | 3085 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
2210 | 3086 | |
2211 | # Copyright (C) 1996-2018 Free Software Foundation, Inc. | |
3087 | # Copyright (C) 1996-2021 Free Software Foundation, Inc. | |
2212 | 3088 | # |
2213 | 3089 | # This file is free software; the Free Software Foundation |
2214 | 3090 | # gives unlimited permission to copy and/or distribute it, |
2289 | 3165 | rm -f conftest.file |
2290 | 3166 | ]) |
2291 | 3167 | |
2292 | # Copyright (C) 2009-2018 Free Software Foundation, Inc. | |
3168 | # Copyright (C) 2009-2021 Free Software Foundation, Inc. | |
2293 | 3169 | # |
2294 | 3170 | # This file is free software; the Free Software Foundation |
2295 | 3171 | # gives unlimited permission to copy and/or distribute it, |
2349 | 3225 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
2350 | 3226 | ]) |
2351 | 3227 | |
2352 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
3228 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
2353 | 3229 | # |
2354 | 3230 | # This file is free software; the Free Software Foundation |
2355 | 3231 | # gives unlimited permission to copy and/or distribute it, |
2377 | 3253 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2378 | 3254 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
2379 | 3255 | |
2380 | # Copyright (C) 2006-2018 Free Software Foundation, Inc. | |
3256 | # Copyright (C) 2006-2021 Free Software Foundation, Inc. | |
2381 | 3257 | # |
2382 | 3258 | # This file is free software; the Free Software Foundation |
2383 | 3259 | # gives unlimited permission to copy and/or distribute it, |
2396 | 3272 | |
2397 | 3273 | # Check how to create a tarball. -*- Autoconf -*- |
2398 | 3274 | |
2399 | # Copyright (C) 2004-2018 Free Software Foundation, Inc. | |
3275 | # Copyright (C) 2004-2021 Free Software Foundation, Inc. | |
2400 | 3276 | # |
2401 | 3277 | # This file is free software; the Free Software Foundation |
2402 | 3278 | # gives unlimited permission to copy and/or distribute it, |
2 | 2 | |
3 | 3 | scriptversion=2018-03-07.03; # UTC |
4 | 4 | |
5 | # Copyright (C) 1999-2018 Free Software Foundation, Inc. | |
5 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
6 | 6 | # Written by Tom Tromey <tromey@cygnus.com>. |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify |
52 | 52 | MINGW*) |
53 | 53 | file_conv=mingw |
54 | 54 | ;; |
55 | CYGWIN*) | |
55 | CYGWIN* | MSYS*) | |
56 | 56 | file_conv=cygwin |
57 | 57 | ;; |
58 | 58 | *) |
66 | 66 | mingw/*) |
67 | 67 | file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` |
68 | 68 | ;; |
69 | cygwin/*) | |
69 | cygwin/* | msys/*) | |
70 | 70 | file=`cygpath -m "$file" || echo "$file"` |
71 | 71 | ;; |
72 | 72 | wine/*) |
0 | 0 | #! /bin/sh |
1 | 1 | # Attempt to guess a canonical system name. |
2 | # Copyright 1992-2018 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2018-02-24' | |
2 | # Copyright 1992-2022 Free Software Foundation, Inc. | |
3 | ||
4 | # shellcheck disable=SC2006,SC2268 # see below for rationale | |
5 | ||
6 | timestamp='2022-01-09' | |
5 | 7 | |
6 | 8 | # This file is free software; you can redistribute it and/or modify it |
7 | 9 | # under the terms of the GNU General Public License as published by |
8 | # the Free Software Foundation; either version 3 of the License, or | |
10 | # the Free Software Foundation, either version 3 of the License, or | |
9 | 11 | # (at your option) any later version. |
10 | 12 | # |
11 | 13 | # This program is distributed in the hope that it will be useful, but |
26 | 28 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
27 | 29 | # |
28 | 30 | # You can get the latest version of this script from: |
29 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | |
31 | # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess | |
30 | 32 | # |
31 | 33 | # Please send patches to <config-patches@gnu.org>. |
34 | ||
35 | ||
36 | # The "shellcheck disable" line above the timestamp inhibits complaints | |
37 | # about features and limitations of the classic Bourne shell that were | |
38 | # superseded or lifted in POSIX. However, this script identifies a wide | |
39 | # variety of pre-POSIX systems that do not have POSIX shells at all, and | |
40 | # even some reasonably current systems (Solaris 10 as case-in-point) still | |
41 | # have a pre-POSIX /bin/sh. | |
32 | 42 | |
33 | 43 | |
34 | 44 | me=`echo "$0" | sed -e 's,.*/,,'` |
49 | 59 | GNU config.guess ($timestamp) |
50 | 60 | |
51 | 61 | Originally written by Per Bothner. |
52 | Copyright 1992-2018 Free Software Foundation, Inc. | |
62 | Copyright 1992-2022 Free Software Foundation, Inc. | |
53 | 63 | |
54 | 64 | This is free software; see the source for copying conditions. There is NO |
55 | 65 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
83 | 93 | exit 1 |
84 | 94 | fi |
85 | 95 | |
86 | trap 'exit 1' 1 2 15 | |
96 | # Just in case it came from the environment. | |
97 | GUESS= | |
87 | 98 | |
88 | 99 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a |
89 | 100 | # compiler to aid in system detection is discouraged as it requires |
95 | 106 | |
96 | 107 | # Portable tmp directory creation inspired by the Autoconf team. |
97 | 108 | |
98 | set_cc_for_build=' | |
99 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; | |
100 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; | |
101 | : ${TMPDIR=/tmp} ; | |
102 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || | |
103 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || | |
104 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || | |
105 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; | |
106 | dummy=$tmp/dummy ; | |
107 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; | |
108 | case $CC_FOR_BUILD,$HOST_CC,$CC in | |
109 | ,,) echo "int x;" > "$dummy.c" ; | |
110 | for c in cc gcc c89 c99 ; do | |
111 | if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then | |
112 | CC_FOR_BUILD="$c"; break ; | |
113 | fi ; | |
114 | done ; | |
115 | if test x"$CC_FOR_BUILD" = x ; then | |
116 | CC_FOR_BUILD=no_compiler_found ; | |
117 | fi | |
118 | ;; | |
119 | ,,*) CC_FOR_BUILD=$CC ;; | |
120 | ,*,*) CC_FOR_BUILD=$HOST_CC ;; | |
121 | esac ; set_cc_for_build= ;' | |
109 | tmp= | |
110 | # shellcheck disable=SC2172 | |
111 | trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 | |
112 | ||
113 | set_cc_for_build() { | |
114 | # prevent multiple calls if $tmp is already set | |
115 | test "$tmp" && return 0 | |
116 | : "${TMPDIR=/tmp}" | |
117 | # shellcheck disable=SC2039,SC3028 | |
118 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || | |
119 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || | |
120 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || | |
121 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } | |
122 | dummy=$tmp/dummy | |
123 | case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in | |
124 | ,,) echo "int x;" > "$dummy.c" | |
125 | for driver in cc gcc c89 c99 ; do | |
126 | if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then | |
127 | CC_FOR_BUILD=$driver | |
128 | break | |
129 | fi | |
130 | done | |
131 | if test x"$CC_FOR_BUILD" = x ; then | |
132 | CC_FOR_BUILD=no_compiler_found | |
133 | fi | |
134 | ;; | |
135 | ,,*) CC_FOR_BUILD=$CC ;; | |
136 | ,*,*) CC_FOR_BUILD=$HOST_CC ;; | |
137 | esac | |
138 | } | |
122 | 139 | |
123 | 140 | # This is needed to find uname on a Pyramid OSx when run in the BSD universe. |
124 | 141 | # (ghazi@noc.rutgers.edu 1994-08-24) |
125 | if (test -f /.attbin/uname) >/dev/null 2>&1 ; then | |
142 | if test -f /.attbin/uname ; then | |
126 | 143 | PATH=$PATH:/.attbin ; export PATH |
127 | 144 | fi |
128 | 145 | |
129 | 146 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
130 | 147 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
131 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown | |
148 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown | |
132 | 149 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
133 | 150 | |
134 | case "$UNAME_SYSTEM" in | |
151 | case $UNAME_SYSTEM in | |
135 | 152 | Linux|GNU|GNU/*) |
136 | # If the system lacks a compiler, then just pick glibc. | |
137 | # We could probably try harder. | |
138 | LIBC=gnu | |
139 | ||
140 | eval "$set_cc_for_build" | |
153 | LIBC=unknown | |
154 | ||
155 | set_cc_for_build | |
141 | 156 | cat <<-EOF > "$dummy.c" |
142 | 157 | #include <features.h> |
143 | 158 | #if defined(__UCLIBC__) |
144 | 159 | LIBC=uclibc |
145 | 160 | #elif defined(__dietlibc__) |
146 | 161 | LIBC=dietlibc |
162 | #elif defined(__GLIBC__) | |
163 | LIBC=gnu | |
147 | 164 | #else |
148 | LIBC=gnu | |
165 | #include <stdarg.h> | |
166 | /* First heuristic to detect musl libc. */ | |
167 | #ifdef __DEFINED_va_list | |
168 | LIBC=musl | |
169 | #endif | |
149 | 170 | #endif |
150 | 171 | EOF |
151 | eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" | |
152 | ||
153 | # If ldd exists, use it to detect musl libc. | |
154 | if command -v ldd >/dev/null && \ | |
155 | ldd --version 2>&1 | grep -q ^musl | |
156 | then | |
157 | LIBC=musl | |
172 | cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` | |
173 | eval "$cc_set_libc" | |
174 | ||
175 | # Second heuristic to detect musl libc. | |
176 | if [ "$LIBC" = unknown ] && | |
177 | command -v ldd >/dev/null && | |
178 | ldd --version 2>&1 | grep -q ^musl; then | |
179 | LIBC=musl | |
180 | fi | |
181 | ||
182 | # If the system lacks a compiler, then just pick glibc. | |
183 | # We could probably try harder. | |
184 | if [ "$LIBC" = unknown ]; then | |
185 | LIBC=gnu | |
158 | 186 | fi |
159 | 187 | ;; |
160 | 188 | esac |
161 | 189 | |
162 | 190 | # Note: order is significant - the case branches are not exclusive. |
163 | 191 | |
164 | case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | |
192 | case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in | |
165 | 193 | *:NetBSD:*:*) |
166 | 194 | # NetBSD (nbsd) targets should (where applicable) match one or |
167 | 195 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, |
173 | 201 | # |
174 | 202 | # Note: NetBSD doesn't particularly care about the vendor |
175 | 203 | # portion of the name. We always set it to "unknown". |
176 | sysctl="sysctl -n hw.machine_arch" | |
177 | 204 | UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ |
178 | "/sbin/$sysctl" 2>/dev/null || \ | |
179 | "/usr/sbin/$sysctl" 2>/dev/null || \ | |
205 | /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ | |
206 | /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ | |
180 | 207 | echo unknown)` |
181 | case "$UNAME_MACHINE_ARCH" in | |
208 | case $UNAME_MACHINE_ARCH in | |
209 | aarch64eb) machine=aarch64_be-unknown ;; | |
182 | 210 | armeb) machine=armeb-unknown ;; |
183 | 211 | arm*) machine=arm-unknown ;; |
184 | 212 | sh3el) machine=shl-unknown ;; |
187 | 215 | earmv*) |
188 | 216 | arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` |
189 | 217 | endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` |
190 | machine="${arch}${endian}"-unknown | |
218 | machine=${arch}${endian}-unknown | |
191 | 219 | ;; |
192 | *) machine="$UNAME_MACHINE_ARCH"-unknown ;; | |
220 | *) machine=$UNAME_MACHINE_ARCH-unknown ;; | |
193 | 221 | esac |
194 | 222 | # The Operating System including object format, if it has switched |
195 | 223 | # to ELF recently (or will in the future) and ABI. |
196 | case "$UNAME_MACHINE_ARCH" in | |
224 | case $UNAME_MACHINE_ARCH in | |
197 | 225 | earm*) |
198 | 226 | os=netbsdelf |
199 | 227 | ;; |
200 | 228 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
201 | eval "$set_cc_for_build" | |
229 | set_cc_for_build | |
202 | 230 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
203 | 231 | | grep -q __ELF__ |
204 | 232 | then |
214 | 242 | ;; |
215 | 243 | esac |
216 | 244 | # Determine ABI tags. |
217 | case "$UNAME_MACHINE_ARCH" in | |
245 | case $UNAME_MACHINE_ARCH in | |
218 | 246 | earm*) |
219 | 247 | expr='s/^earmv[0-9]/-eabi/;s/eb$//' |
220 | 248 | abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` |
225 | 253 | # thus, need a distinct triplet. However, they do not need |
226 | 254 | # kernel version information, so it can be replaced with a |
227 | 255 | # suitable tag, in the style of linux-gnu. |
228 | case "$UNAME_VERSION" in | |
256 | case $UNAME_VERSION in | |
229 | 257 | Debian*) |
230 | 258 | release='-gnu' |
231 | 259 | ;; |
236 | 264 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
237 | 265 | # contains redundant information, the shorter form: |
238 | 266 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
239 | echo "$machine-${os}${release}${abi}" | |
240 | exit ;; | |
267 | GUESS=$machine-${os}${release}${abi-} | |
268 | ;; | |
241 | 269 | *:Bitrig:*:*) |
242 | 270 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` |
243 | echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" | |
244 | exit ;; | |
271 | GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE | |
272 | ;; | |
245 | 273 | *:OpenBSD:*:*) |
246 | 274 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
247 | echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" | |
248 | exit ;; | |
275 | GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE | |
276 | ;; | |
277 | *:SecBSD:*:*) | |
278 | UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` | |
279 | GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE | |
280 | ;; | |
249 | 281 | *:LibertyBSD:*:*) |
250 | 282 | UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` |
251 | echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" | |
252 | exit ;; | |
283 | GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE | |
284 | ;; | |
253 | 285 | *:MidnightBSD:*:*) |
254 | echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" | |
255 | exit ;; | |
286 | GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE | |
287 | ;; | |
256 | 288 | *:ekkoBSD:*:*) |
257 | echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" | |
258 | exit ;; | |
289 | GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE | |
290 | ;; | |
259 | 291 | *:SolidBSD:*:*) |
260 | echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" | |
261 | exit ;; | |
292 | GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE | |
293 | ;; | |
294 | *:OS108:*:*) | |
295 | GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE | |
296 | ;; | |
262 | 297 | macppc:MirBSD:*:*) |
263 | echo powerpc-unknown-mirbsd"$UNAME_RELEASE" | |
264 | exit ;; | |
298 | GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE | |
299 | ;; | |
265 | 300 | *:MirBSD:*:*) |
266 | echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" | |
267 | exit ;; | |
301 | GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE | |
302 | ;; | |
268 | 303 | *:Sortix:*:*) |
269 | echo "$UNAME_MACHINE"-unknown-sortix | |
270 | exit ;; | |
304 | GUESS=$UNAME_MACHINE-unknown-sortix | |
305 | ;; | |
306 | *:Twizzler:*:*) | |
307 | GUESS=$UNAME_MACHINE-unknown-twizzler | |
308 | ;; | |
271 | 309 | *:Redox:*:*) |
272 | echo "$UNAME_MACHINE"-unknown-redox | |
273 | exit ;; | |
310 | GUESS=$UNAME_MACHINE-unknown-redox | |
311 | ;; | |
274 | 312 | mips:OSF1:*.*) |
275 | echo mips-dec-osf1 | |
276 | exit ;; | |
313 | GUESS=mips-dec-osf1 | |
314 | ;; | |
277 | 315 | alpha:OSF1:*:*) |
316 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. | |
317 | trap '' 0 | |
278 | 318 | case $UNAME_RELEASE in |
279 | 319 | *4.0) |
280 | 320 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
288 | 328 | # covers most systems running today. This code pipes the CPU |
289 | 329 | # types through head -n 1, so we only detect the type of CPU 0. |
290 | 330 | ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` |
291 | case "$ALPHA_CPU_TYPE" in | |
331 | case $ALPHA_CPU_TYPE in | |
292 | 332 | "EV4 (21064)") |
293 | 333 | UNAME_MACHINE=alpha ;; |
294 | 334 | "EV4.5 (21064)") |
325 | 365 | # A Tn.n version is a released field test version. |
326 | 366 | # A Xn.n version is an unreleased experimental baselevel. |
327 | 367 | # 1.2 uses "1.2" for uname -r. |
328 | echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" | |
329 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. | |
330 | exitcode=$? | |
331 | trap '' 0 | |
332 | exit $exitcode ;; | |
368 | OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` | |
369 | GUESS=$UNAME_MACHINE-dec-osf$OSF_REL | |
370 | ;; | |
333 | 371 | Amiga*:UNIX_System_V:4.0:*) |
334 | echo m68k-unknown-sysv4 | |
335 | exit ;; | |
372 | GUESS=m68k-unknown-sysv4 | |
373 | ;; | |
336 | 374 | *:[Aa]miga[Oo][Ss]:*:*) |
337 | echo "$UNAME_MACHINE"-unknown-amigaos | |
338 | exit ;; | |
375 | GUESS=$UNAME_MACHINE-unknown-amigaos | |
376 | ;; | |
339 | 377 | *:[Mm]orph[Oo][Ss]:*:*) |
340 | echo "$UNAME_MACHINE"-unknown-morphos | |
341 | exit ;; | |
378 | GUESS=$UNAME_MACHINE-unknown-morphos | |
379 | ;; | |
342 | 380 | *:OS/390:*:*) |
343 | echo i370-ibm-openedition | |
344 | exit ;; | |
381 | GUESS=i370-ibm-openedition | |
382 | ;; | |
345 | 383 | *:z/VM:*:*) |
346 | echo s390-ibm-zvmoe | |
347 | exit ;; | |
384 | GUESS=s390-ibm-zvmoe | |
385 | ;; | |
348 | 386 | *:OS400:*:*) |
349 | echo powerpc-ibm-os400 | |
350 | exit ;; | |
387 | GUESS=powerpc-ibm-os400 | |
388 | ;; | |
351 | 389 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
352 | echo arm-acorn-riscix"$UNAME_RELEASE" | |
353 | exit ;; | |
390 | GUESS=arm-acorn-riscix$UNAME_RELEASE | |
391 | ;; | |
354 | 392 | arm*:riscos:*:*|arm*:RISCOS:*:*) |
355 | echo arm-unknown-riscos | |
356 | exit ;; | |
393 | GUESS=arm-unknown-riscos | |
394 | ;; | |
357 | 395 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
358 | echo hppa1.1-hitachi-hiuxmpp | |
359 | exit ;; | |
396 | GUESS=hppa1.1-hitachi-hiuxmpp | |
397 | ;; | |
360 | 398 | Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) |
361 | 399 | # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. |
362 | if test "`(/bin/universe) 2>/dev/null`" = att ; then | |
363 | echo pyramid-pyramid-sysv3 | |
364 | else | |
365 | echo pyramid-pyramid-bsd | |
366 | fi | |
367 | exit ;; | |
400 | case `(/bin/universe) 2>/dev/null` in | |
401 | att) GUESS=pyramid-pyramid-sysv3 ;; | |
402 | *) GUESS=pyramid-pyramid-bsd ;; | |
403 | esac | |
404 | ;; | |
368 | 405 | NILE*:*:*:dcosx) |
369 | echo pyramid-pyramid-svr4 | |
370 | exit ;; | |
406 | GUESS=pyramid-pyramid-svr4 | |
407 | ;; | |
371 | 408 | DRS?6000:unix:4.0:6*) |
372 | echo sparc-icl-nx6 | |
373 | exit ;; | |
409 | GUESS=sparc-icl-nx6 | |
410 | ;; | |
374 | 411 | DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) |
375 | 412 | case `/usr/bin/uname -p` in |
376 | sparc) echo sparc-icl-nx7; exit ;; | |
377 | esac ;; | |
413 | sparc) GUESS=sparc-icl-nx7 ;; | |
414 | esac | |
415 | ;; | |
378 | 416 | s390x:SunOS:*:*) |
379 | echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" | |
380 | exit ;; | |
417 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` | |
418 | GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL | |
419 | ;; | |
381 | 420 | sun4H:SunOS:5.*:*) |
382 | echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
383 | exit ;; | |
421 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` | |
422 | GUESS=sparc-hal-solaris2$SUN_REL | |
423 | ;; | |
384 | 424 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
385 | echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" | |
386 | exit ;; | |
425 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` | |
426 | GUESS=sparc-sun-solaris2$SUN_REL | |
427 | ;; | |
387 | 428 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) |
388 | echo i386-pc-auroraux"$UNAME_RELEASE" | |
389 | exit ;; | |
429 | GUESS=i386-pc-auroraux$UNAME_RELEASE | |
430 | ;; | |
390 | 431 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
391 | eval "$set_cc_for_build" | |
432 | set_cc_for_build | |
392 | 433 | SUN_ARCH=i386 |
393 | 434 | # If there is a compiler, see if it is configured for 64-bit objects. |
394 | 435 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
395 | 436 | # This test works for both compilers. |
396 | if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | |
437 | if test "$CC_FOR_BUILD" != no_compiler_found; then | |
397 | 438 | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ |
398 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
439 | (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ | |
399 | 440 | grep IS_64BIT_ARCH >/dev/null |
400 | 441 | then |
401 | 442 | SUN_ARCH=x86_64 |
402 | 443 | fi |
403 | 444 | fi |
404 | echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
405 | exit ;; | |
445 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` | |
446 | GUESS=$SUN_ARCH-pc-solaris2$SUN_REL | |
447 | ;; | |
406 | 448 | sun4*:SunOS:6*:*) |
407 | 449 | # According to config.sub, this is the proper way to canonicalize |
408 | 450 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
409 | 451 | # it's likely to be more like Solaris than SunOS4. |
410 | echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
411 | exit ;; | |
452 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` | |
453 | GUESS=sparc-sun-solaris3$SUN_REL | |
454 | ;; | |
412 | 455 | sun4*:SunOS:*:*) |
413 | case "`/usr/bin/arch -k`" in | |
456 | case `/usr/bin/arch -k` in | |
414 | 457 | Series*|S4*) |
415 | 458 | UNAME_RELEASE=`uname -v` |
416 | 459 | ;; |
417 | 460 | esac |
418 | 461 | # Japanese Language versions have a version number like `4.1.3-JL'. |
419 | echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" | |
420 | exit ;; | |
462 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` | |
463 | GUESS=sparc-sun-sunos$SUN_REL | |
464 | ;; | |
421 | 465 | sun3*:SunOS:*:*) |
422 | echo m68k-sun-sunos"$UNAME_RELEASE" | |
423 | exit ;; | |
466 | GUESS=m68k-sun-sunos$UNAME_RELEASE | |
467 | ;; | |
424 | 468 | sun*:*:4.2BSD:*) |
425 | 469 | UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
426 | 470 | test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 |
427 | case "`/bin/arch`" in | |
471 | case `/bin/arch` in | |
428 | 472 | sun3) |
429 | echo m68k-sun-sunos"$UNAME_RELEASE" | |
473 | GUESS=m68k-sun-sunos$UNAME_RELEASE | |
430 | 474 | ;; |
431 | 475 | sun4) |
432 | echo sparc-sun-sunos"$UNAME_RELEASE" | |
476 | GUESS=sparc-sun-sunos$UNAME_RELEASE | |
433 | 477 | ;; |
434 | 478 | esac |
435 | exit ;; | |
479 | ;; | |
436 | 480 | aushp:SunOS:*:*) |
437 | echo sparc-auspex-sunos"$UNAME_RELEASE" | |
438 | exit ;; | |
481 | GUESS=sparc-auspex-sunos$UNAME_RELEASE | |
482 | ;; | |
439 | 483 | # The situation for MiNT is a little confusing. The machine name |
440 | 484 | # can be virtually everything (everything which is not |
441 | 485 | # "atarist" or "atariste" at least should have a processor |
445 | 489 | # MiNT. But MiNT is downward compatible to TOS, so this should |
446 | 490 | # be no problem. |
447 | 491 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
448 | echo m68k-atari-mint"$UNAME_RELEASE" | |
449 | exit ;; | |
492 | GUESS=m68k-atari-mint$UNAME_RELEASE | |
493 | ;; | |
450 | 494 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
451 | echo m68k-atari-mint"$UNAME_RELEASE" | |
452 | exit ;; | |
495 | GUESS=m68k-atari-mint$UNAME_RELEASE | |
496 | ;; | |
453 | 497 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
454 | echo m68k-atari-mint"$UNAME_RELEASE" | |
455 | exit ;; | |
498 | GUESS=m68k-atari-mint$UNAME_RELEASE | |
499 | ;; | |
456 | 500 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
457 | echo m68k-milan-mint"$UNAME_RELEASE" | |
458 | exit ;; | |
501 | GUESS=m68k-milan-mint$UNAME_RELEASE | |
502 | ;; | |
459 | 503 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
460 | echo m68k-hades-mint"$UNAME_RELEASE" | |
461 | exit ;; | |
504 | GUESS=m68k-hades-mint$UNAME_RELEASE | |
505 | ;; | |
462 | 506 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
463 | echo m68k-unknown-mint"$UNAME_RELEASE" | |
464 | exit ;; | |
507 | GUESS=m68k-unknown-mint$UNAME_RELEASE | |
508 | ;; | |
465 | 509 | m68k:machten:*:*) |
466 | echo m68k-apple-machten"$UNAME_RELEASE" | |
467 | exit ;; | |
510 | GUESS=m68k-apple-machten$UNAME_RELEASE | |
511 | ;; | |
468 | 512 | powerpc:machten:*:*) |
469 | echo powerpc-apple-machten"$UNAME_RELEASE" | |
470 | exit ;; | |
513 | GUESS=powerpc-apple-machten$UNAME_RELEASE | |
514 | ;; | |
471 | 515 | RISC*:Mach:*:*) |
472 | echo mips-dec-mach_bsd4.3 | |
473 | exit ;; | |
516 | GUESS=mips-dec-mach_bsd4.3 | |
517 | ;; | |
474 | 518 | RISC*:ULTRIX:*:*) |
475 | echo mips-dec-ultrix"$UNAME_RELEASE" | |
476 | exit ;; | |
519 | GUESS=mips-dec-ultrix$UNAME_RELEASE | |
520 | ;; | |
477 | 521 | VAX*:ULTRIX*:*:*) |
478 | echo vax-dec-ultrix"$UNAME_RELEASE" | |
479 | exit ;; | |
522 | GUESS=vax-dec-ultrix$UNAME_RELEASE | |
523 | ;; | |
480 | 524 | 2020:CLIX:*:* | 2430:CLIX:*:*) |
481 | echo clipper-intergraph-clix"$UNAME_RELEASE" | |
482 | exit ;; | |
525 | GUESS=clipper-intergraph-clix$UNAME_RELEASE | |
526 | ;; | |
483 | 527 | mips:*:*:UMIPS | mips:*:*:RISCos) |
484 | eval "$set_cc_for_build" | |
528 | set_cc_for_build | |
485 | 529 | sed 's/^ //' << EOF > "$dummy.c" |
486 | 530 | #ifdef __cplusplus |
487 | 531 | #include <stdio.h> /* for printf() prototype */ |
507 | 551 | dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && |
508 | 552 | SYSTEM_NAME=`"$dummy" "$dummyarg"` && |
509 | 553 | { echo "$SYSTEM_NAME"; exit; } |
510 | echo mips-mips-riscos"$UNAME_RELEASE" | |
511 | exit ;; | |
554 | GUESS=mips-mips-riscos$UNAME_RELEASE | |
555 | ;; | |
512 | 556 | Motorola:PowerMAX_OS:*:*) |
513 | echo powerpc-motorola-powermax | |
514 | exit ;; | |
557 | GUESS=powerpc-motorola-powermax | |
558 | ;; | |
515 | 559 | Motorola:*:4.3:PL8-*) |
516 | echo powerpc-harris-powermax | |
517 | exit ;; | |
560 | GUESS=powerpc-harris-powermax | |
561 | ;; | |
518 | 562 | Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) |
519 | echo powerpc-harris-powermax | |
520 | exit ;; | |
563 | GUESS=powerpc-harris-powermax | |
564 | ;; | |
521 | 565 | Night_Hawk:Power_UNIX:*:*) |
522 | echo powerpc-harris-powerunix | |
523 | exit ;; | |
566 | GUESS=powerpc-harris-powerunix | |
567 | ;; | |
524 | 568 | m88k:CX/UX:7*:*) |
525 | echo m88k-harris-cxux7 | |
526 | exit ;; | |
569 | GUESS=m88k-harris-cxux7 | |
570 | ;; | |
527 | 571 | m88k:*:4*:R4*) |
528 | echo m88k-motorola-sysv4 | |
529 | exit ;; | |
572 | GUESS=m88k-motorola-sysv4 | |
573 | ;; | |
530 | 574 | m88k:*:3*:R3*) |
531 | echo m88k-motorola-sysv3 | |
532 | exit ;; | |
575 | GUESS=m88k-motorola-sysv3 | |
576 | ;; | |
533 | 577 | AViiON:dgux:*:*) |
534 | 578 | # DG/UX returns AViiON for all architectures |
535 | 579 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
536 | if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] | |
580 | if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 | |
537 | 581 | then |
538 | if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ | |
539 | [ "$TARGET_BINARY_INTERFACE"x = x ] | |
582 | if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ | |
583 | test "$TARGET_BINARY_INTERFACE"x = x | |
540 | 584 | then |
541 | echo m88k-dg-dgux"$UNAME_RELEASE" | |
585 | GUESS=m88k-dg-dgux$UNAME_RELEASE | |
542 | 586 | else |
543 | echo m88k-dg-dguxbcs"$UNAME_RELEASE" | |
587 | GUESS=m88k-dg-dguxbcs$UNAME_RELEASE | |
544 | 588 | fi |
545 | 589 | else |
546 | echo i586-dg-dgux"$UNAME_RELEASE" | |
547 | fi | |
548 | exit ;; | |
590 | GUESS=i586-dg-dgux$UNAME_RELEASE | |
591 | fi | |
592 | ;; | |
549 | 593 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
550 | echo m88k-dolphin-sysv3 | |
551 | exit ;; | |
594 | GUESS=m88k-dolphin-sysv3 | |
595 | ;; | |
552 | 596 | M88*:*:R3*:*) |
553 | 597 | # Delta 88k system running SVR3 |
554 | echo m88k-motorola-sysv3 | |
555 | exit ;; | |
598 | GUESS=m88k-motorola-sysv3 | |
599 | ;; | |
556 | 600 | XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) |
557 | echo m88k-tektronix-sysv3 | |
558 | exit ;; | |
601 | GUESS=m88k-tektronix-sysv3 | |
602 | ;; | |
559 | 603 | Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) |
560 | echo m68k-tektronix-bsd | |
561 | exit ;; | |
604 | GUESS=m68k-tektronix-bsd | |
605 | ;; | |
562 | 606 | *:IRIX*:*:*) |
563 | echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" | |
564 | exit ;; | |
607 | IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` | |
608 | GUESS=mips-sgi-irix$IRIX_REL | |
609 | ;; | |
565 | 610 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
566 | echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id | |
567 | exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' | |
611 | GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id | |
612 | ;; # Note that: echo "'`uname -s`'" gives 'AIX ' | |
568 | 613 | i*86:AIX:*:*) |
569 | echo i386-ibm-aix | |
570 | exit ;; | |
614 | GUESS=i386-ibm-aix | |
615 | ;; | |
571 | 616 | ia64:AIX:*:*) |
572 | if [ -x /usr/bin/oslevel ] ; then | |
617 | if test -x /usr/bin/oslevel ; then | |
573 | 618 | IBM_REV=`/usr/bin/oslevel` |
574 | 619 | else |
575 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | |
576 | fi | |
577 | echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" | |
578 | exit ;; | |
620 | IBM_REV=$UNAME_VERSION.$UNAME_RELEASE | |
621 | fi | |
622 | GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV | |
623 | ;; | |
579 | 624 | *:AIX:2:3) |
580 | 625 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
581 | eval "$set_cc_for_build" | |
626 | set_cc_for_build | |
582 | 627 | sed 's/^ //' << EOF > "$dummy.c" |
583 | 628 | #include <sys/systemcfg.h> |
584 | 629 | |
592 | 637 | EOF |
593 | 638 | if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` |
594 | 639 | then |
595 | echo "$SYSTEM_NAME" | |
640 | GUESS=$SYSTEM_NAME | |
596 | 641 | else |
597 | echo rs6000-ibm-aix3.2.5 | |
642 | GUESS=rs6000-ibm-aix3.2.5 | |
598 | 643 | fi |
599 | 644 | elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then |
600 | echo rs6000-ibm-aix3.2.4 | |
645 | GUESS=rs6000-ibm-aix3.2.4 | |
601 | 646 | else |
602 | echo rs6000-ibm-aix3.2 | |
603 | fi | |
604 | exit ;; | |
647 | GUESS=rs6000-ibm-aix3.2 | |
648 | fi | |
649 | ;; | |
605 | 650 | *:AIX:*:[4567]) |
606 | 651 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
607 | 652 | if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then |
609 | 654 | else |
610 | 655 | IBM_ARCH=powerpc |
611 | 656 | fi |
612 | if [ -x /usr/bin/lslpp ] ; then | |
613 | IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | | |
657 | if test -x /usr/bin/lslpp ; then | |
658 | IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ | |
614 | 659 | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` |
615 | 660 | else |
616 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | |
617 | fi | |
618 | echo "$IBM_ARCH"-ibm-aix"$IBM_REV" | |
619 | exit ;; | |
661 | IBM_REV=$UNAME_VERSION.$UNAME_RELEASE | |
662 | fi | |
663 | GUESS=$IBM_ARCH-ibm-aix$IBM_REV | |
664 | ;; | |
620 | 665 | *:AIX:*:*) |
621 | echo rs6000-ibm-aix | |
622 | exit ;; | |
666 | GUESS=rs6000-ibm-aix | |
667 | ;; | |
623 | 668 | ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) |
624 | echo romp-ibm-bsd4.4 | |
625 | exit ;; | |
669 | GUESS=romp-ibm-bsd4.4 | |
670 | ;; | |
626 | 671 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and |
627 | echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to | |
628 | exit ;; # report: romp-ibm BSD 4.3 | |
672 | GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to | |
673 | ;; # report: romp-ibm BSD 4.3 | |
629 | 674 | *:BOSX:*:*) |
630 | echo rs6000-bull-bosx | |
631 | exit ;; | |
675 | GUESS=rs6000-bull-bosx | |
676 | ;; | |
632 | 677 | DPX/2?00:B.O.S.:*:*) |
633 | echo m68k-bull-sysv3 | |
634 | exit ;; | |
678 | GUESS=m68k-bull-sysv3 | |
679 | ;; | |
635 | 680 | 9000/[34]??:4.3bsd:1.*:*) |
636 | echo m68k-hp-bsd | |
637 | exit ;; | |
681 | GUESS=m68k-hp-bsd | |
682 | ;; | |
638 | 683 | hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) |
639 | echo m68k-hp-bsd4.4 | |
640 | exit ;; | |
684 | GUESS=m68k-hp-bsd4.4 | |
685 | ;; | |
641 | 686 | 9000/[34678]??:HP-UX:*:*) |
642 | HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` | |
643 | case "$UNAME_MACHINE" in | |
687 | HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` | |
688 | case $UNAME_MACHINE in | |
644 | 689 | 9000/31?) HP_ARCH=m68000 ;; |
645 | 690 | 9000/[34]??) HP_ARCH=m68k ;; |
646 | 691 | 9000/[678][0-9][0-9]) |
647 | if [ -x /usr/bin/getconf ]; then | |
692 | if test -x /usr/bin/getconf; then | |
648 | 693 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
649 | 694 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
650 | case "$sc_cpu_version" in | |
695 | case $sc_cpu_version in | |
651 | 696 | 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 |
652 | 697 | 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 |
653 | 698 | 532) # CPU_PA_RISC2_0 |
654 | case "$sc_kernel_bits" in | |
699 | case $sc_kernel_bits in | |
655 | 700 | 32) HP_ARCH=hppa2.0n ;; |
656 | 701 | 64) HP_ARCH=hppa2.0w ;; |
657 | 702 | '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 |
658 | 703 | esac ;; |
659 | 704 | esac |
660 | 705 | fi |
661 | if [ "$HP_ARCH" = "" ]; then | |
662 | eval "$set_cc_for_build" | |
706 | if test "$HP_ARCH" = ""; then | |
707 | set_cc_for_build | |
663 | 708 | sed 's/^ //' << EOF > "$dummy.c" |
664 | 709 | |
665 | 710 | #define _HPUX_SOURCE |
697 | 742 | test -z "$HP_ARCH" && HP_ARCH=hppa |
698 | 743 | fi ;; |
699 | 744 | esac |
700 | if [ "$HP_ARCH" = hppa2.0w ] | |
745 | if test "$HP_ARCH" = hppa2.0w | |
701 | 746 | then |
702 | eval "$set_cc_for_build" | |
747 | set_cc_for_build | |
703 | 748 | |
704 | 749 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating |
705 | 750 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler |
718 | 763 | HP_ARCH=hppa64 |
719 | 764 | fi |
720 | 765 | fi |
721 | echo "$HP_ARCH"-hp-hpux"$HPUX_REV" | |
722 | exit ;; | |
766 | GUESS=$HP_ARCH-hp-hpux$HPUX_REV | |
767 | ;; | |
723 | 768 | ia64:HP-UX:*:*) |
724 | HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` | |
725 | echo ia64-hp-hpux"$HPUX_REV" | |
726 | exit ;; | |
769 | HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` | |
770 | GUESS=ia64-hp-hpux$HPUX_REV | |
771 | ;; | |
727 | 772 | 3050*:HI-UX:*:*) |
728 | eval "$set_cc_for_build" | |
773 | set_cc_for_build | |
729 | 774 | sed 's/^ //' << EOF > "$dummy.c" |
730 | 775 | #include <unistd.h> |
731 | 776 | int |
753 | 798 | EOF |
754 | 799 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && |
755 | 800 | { echo "$SYSTEM_NAME"; exit; } |
756 | echo unknown-hitachi-hiuxwe2 | |
757 | exit ;; | |
801 | GUESS=unknown-hitachi-hiuxwe2 | |
802 | ;; | |
758 | 803 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) |
759 | echo hppa1.1-hp-bsd | |
760 | exit ;; | |
804 | GUESS=hppa1.1-hp-bsd | |
805 | ;; | |
761 | 806 | 9000/8??:4.3bsd:*:*) |
762 | echo hppa1.0-hp-bsd | |
763 | exit ;; | |
807 | GUESS=hppa1.0-hp-bsd | |
808 | ;; | |
764 | 809 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) |
765 | echo hppa1.0-hp-mpeix | |
766 | exit ;; | |
810 | GUESS=hppa1.0-hp-mpeix | |
811 | ;; | |
767 | 812 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) |
768 | echo hppa1.1-hp-osf | |
769 | exit ;; | |
813 | GUESS=hppa1.1-hp-osf | |
814 | ;; | |
770 | 815 | hp8??:OSF1:*:*) |
771 | echo hppa1.0-hp-osf | |
772 | exit ;; | |
816 | GUESS=hppa1.0-hp-osf | |
817 | ;; | |
773 | 818 | i*86:OSF1:*:*) |
774 | if [ -x /usr/sbin/sysversion ] ; then | |
775 | echo "$UNAME_MACHINE"-unknown-osf1mk | |
819 | if test -x /usr/sbin/sysversion ; then | |
820 | GUESS=$UNAME_MACHINE-unknown-osf1mk | |
776 | 821 | else |
777 | echo "$UNAME_MACHINE"-unknown-osf1 | |
778 | fi | |
779 | exit ;; | |
822 | GUESS=$UNAME_MACHINE-unknown-osf1 | |
823 | fi | |
824 | ;; | |
780 | 825 | parisc*:Lites*:*:*) |
781 | echo hppa1.1-hp-lites | |
782 | exit ;; | |
826 | GUESS=hppa1.1-hp-lites | |
827 | ;; | |
783 | 828 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
784 | echo c1-convex-bsd | |
785 | exit ;; | |
829 | GUESS=c1-convex-bsd | |
830 | ;; | |
786 | 831 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
787 | 832 | if getsysinfo -f scalar_acc |
788 | 833 | then echo c32-convex-bsd |
790 | 835 | fi |
791 | 836 | exit ;; |
792 | 837 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
793 | echo c34-convex-bsd | |
794 | exit ;; | |
838 | GUESS=c34-convex-bsd | |
839 | ;; | |
795 | 840 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
796 | echo c38-convex-bsd | |
797 | exit ;; | |
841 | GUESS=c38-convex-bsd | |
842 | ;; | |
798 | 843 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
799 | echo c4-convex-bsd | |
800 | exit ;; | |
844 | GUESS=c4-convex-bsd | |
845 | ;; | |
801 | 846 | CRAY*Y-MP:*:*:*) |
802 | echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
803 | exit ;; | |
847 | CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` | |
848 | GUESS=ymp-cray-unicos$CRAY_REL | |
849 | ;; | |
804 | 850 | CRAY*[A-Z]90:*:*:*) |
805 | 851 | echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ |
806 | 852 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ |
808 | 854 | -e 's/\.[^.]*$/.X/' |
809 | 855 | exit ;; |
810 | 856 | CRAY*TS:*:*:*) |
811 | echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
812 | exit ;; | |
857 | CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` | |
858 | GUESS=t90-cray-unicos$CRAY_REL | |
859 | ;; | |
813 | 860 | CRAY*T3E:*:*:*) |
814 | echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
815 | exit ;; | |
861 | CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` | |
862 | GUESS=alphaev5-cray-unicosmk$CRAY_REL | |
863 | ;; | |
816 | 864 | CRAY*SV1:*:*:*) |
817 | echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
818 | exit ;; | |
865 | CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` | |
866 | GUESS=sv1-cray-unicos$CRAY_REL | |
867 | ;; | |
819 | 868 | *:UNICOS/mp:*:*) |
820 | echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
821 | exit ;; | |
869 | CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` | |
870 | GUESS=craynv-cray-unicosmp$CRAY_REL | |
871 | ;; | |
822 | 872 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
823 | 873 | FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` |
824 | 874 | FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` |
825 | 875 | FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` |
826 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
827 | exit ;; | |
876 | GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} | |
877 | ;; | |
828 | 878 | 5000:UNIX_System_V:4.*:*) |
829 | 879 | FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` |
830 | 880 | FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` |
831 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
832 | exit ;; | |
881 | GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} | |
882 | ;; | |
833 | 883 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
834 | echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" | |
835 | exit ;; | |
884 | GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE | |
885 | ;; | |
836 | 886 | sparc*:BSD/OS:*:*) |
837 | echo sparc-unknown-bsdi"$UNAME_RELEASE" | |
838 | exit ;; | |
887 | GUESS=sparc-unknown-bsdi$UNAME_RELEASE | |
888 | ;; | |
839 | 889 | *:BSD/OS:*:*) |
840 | echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" | |
841 | exit ;; | |
890 | GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE | |
891 | ;; | |
892 | arm:FreeBSD:*:*) | |
893 | UNAME_PROCESSOR=`uname -p` | |
894 | set_cc_for_build | |
895 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | |
896 | | grep -q __ARM_PCS_VFP | |
897 | then | |
898 | FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` | |
899 | GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi | |
900 | else | |
901 | FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` | |
902 | GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf | |
903 | fi | |
904 | ;; | |
842 | 905 | *:FreeBSD:*:*) |
843 | 906 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
844 | case "$UNAME_PROCESSOR" in | |
907 | case $UNAME_PROCESSOR in | |
845 | 908 | amd64) |
846 | 909 | UNAME_PROCESSOR=x86_64 ;; |
847 | 910 | i386) |
848 | 911 | UNAME_PROCESSOR=i586 ;; |
849 | 912 | esac |
850 | echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" | |
851 | exit ;; | |
913 | FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` | |
914 | GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL | |
915 | ;; | |
852 | 916 | i*:CYGWIN*:*) |
853 | echo "$UNAME_MACHINE"-pc-cygwin | |
854 | exit ;; | |
917 | GUESS=$UNAME_MACHINE-pc-cygwin | |
918 | ;; | |
855 | 919 | *:MINGW64*:*) |
856 | echo "$UNAME_MACHINE"-pc-mingw64 | |
857 | exit ;; | |
920 | GUESS=$UNAME_MACHINE-pc-mingw64 | |
921 | ;; | |
858 | 922 | *:MINGW*:*) |
859 | echo "$UNAME_MACHINE"-pc-mingw32 | |
860 | exit ;; | |
923 | GUESS=$UNAME_MACHINE-pc-mingw32 | |
924 | ;; | |
861 | 925 | *:MSYS*:*) |
862 | echo "$UNAME_MACHINE"-pc-msys | |
863 | exit ;; | |
926 | GUESS=$UNAME_MACHINE-pc-msys | |
927 | ;; | |
864 | 928 | i*:PW*:*) |
865 | echo "$UNAME_MACHINE"-pc-pw32 | |
866 | exit ;; | |
929 | GUESS=$UNAME_MACHINE-pc-pw32 | |
930 | ;; | |
931 | *:SerenityOS:*:*) | |
932 | GUESS=$UNAME_MACHINE-pc-serenity | |
933 | ;; | |
867 | 934 | *:Interix*:*) |
868 | case "$UNAME_MACHINE" in | |
935 | case $UNAME_MACHINE in | |
869 | 936 | x86) |
870 | echo i586-pc-interix"$UNAME_RELEASE" | |
871 | exit ;; | |
937 | GUESS=i586-pc-interix$UNAME_RELEASE | |
938 | ;; | |
872 | 939 | authenticamd | genuineintel | EM64T) |
873 | echo x86_64-unknown-interix"$UNAME_RELEASE" | |
874 | exit ;; | |
940 | GUESS=x86_64-unknown-interix$UNAME_RELEASE | |
941 | ;; | |
875 | 942 | IA64) |
876 | echo ia64-unknown-interix"$UNAME_RELEASE" | |
877 | exit ;; | |
943 | GUESS=ia64-unknown-interix$UNAME_RELEASE | |
944 | ;; | |
878 | 945 | esac ;; |
879 | 946 | i*:UWIN*:*) |
880 | echo "$UNAME_MACHINE"-pc-uwin | |
881 | exit ;; | |
947 | GUESS=$UNAME_MACHINE-pc-uwin | |
948 | ;; | |
882 | 949 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) |
883 | echo x86_64-unknown-cygwin | |
884 | exit ;; | |
950 | GUESS=x86_64-pc-cygwin | |
951 | ;; | |
885 | 952 | prep*:SunOS:5.*:*) |
886 | echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
887 | exit ;; | |
953 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` | |
954 | GUESS=powerpcle-unknown-solaris2$SUN_REL | |
955 | ;; | |
888 | 956 | *:GNU:*:*) |
889 | 957 | # the GNU system |
890 | echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" | |
891 | exit ;; | |
958 | GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` | |
959 | GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` | |
960 | GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL | |
961 | ;; | |
892 | 962 | *:GNU/*:*:*) |
893 | 963 | # other systems with GNU libc and userland |
894 | echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" | |
895 | exit ;; | |
896 | i*86:Minix:*:*) | |
897 | echo "$UNAME_MACHINE"-pc-minix | |
898 | exit ;; | |
964 | GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` | |
965 | GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` | |
966 | GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC | |
967 | ;; | |
968 | *:Minix:*:*) | |
969 | GUESS=$UNAME_MACHINE-unknown-minix | |
970 | ;; | |
899 | 971 | aarch64:Linux:*:*) |
900 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
901 | exit ;; | |
972 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
973 | ;; | |
902 | 974 | aarch64_be:Linux:*:*) |
903 | 975 | UNAME_MACHINE=aarch64_be |
904 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
905 | exit ;; | |
976 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
977 | ;; | |
906 | 978 | alpha:Linux:*:*) |
907 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | |
979 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in | |
908 | 980 | EV5) UNAME_MACHINE=alphaev5 ;; |
909 | 981 | EV56) UNAME_MACHINE=alphaev56 ;; |
910 | 982 | PCA56) UNAME_MACHINE=alphapca56 ;; |
915 | 987 | esac |
916 | 988 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
917 | 989 | if test "$?" = 0 ; then LIBC=gnulibc1 ; fi |
918 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
919 | exit ;; | |
920 | arc:Linux:*:* | arceb:Linux:*:*) | |
921 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
922 | exit ;; | |
990 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
991 | ;; | |
992 | arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) | |
993 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
994 | ;; | |
923 | 995 | arm*:Linux:*:*) |
924 | eval "$set_cc_for_build" | |
996 | set_cc_for_build | |
925 | 997 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
926 | 998 | | grep -q __ARM_EABI__ |
927 | 999 | then |
928 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1000 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
929 | 1001 | else |
930 | 1002 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
931 | 1003 | | grep -q __ARM_PCS_VFP |
932 | 1004 | then |
933 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi | |
1005 | GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi | |
934 | 1006 | else |
935 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf | |
1007 | GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf | |
936 | 1008 | fi |
937 | 1009 | fi |
938 | exit ;; | |
1010 | ;; | |
939 | 1011 | avr32*:Linux:*:*) |
940 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
941 | exit ;; | |
1012 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1013 | ;; | |
942 | 1014 | cris:Linux:*:*) |
943 | echo "$UNAME_MACHINE"-axis-linux-"$LIBC" | |
944 | exit ;; | |
1015 | GUESS=$UNAME_MACHINE-axis-linux-$LIBC | |
1016 | ;; | |
945 | 1017 | crisv32:Linux:*:*) |
946 | echo "$UNAME_MACHINE"-axis-linux-"$LIBC" | |
947 | exit ;; | |
1018 | GUESS=$UNAME_MACHINE-axis-linux-$LIBC | |
1019 | ;; | |
948 | 1020 | e2k:Linux:*:*) |
949 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
950 | exit ;; | |
1021 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1022 | ;; | |
951 | 1023 | frv:Linux:*:*) |
952 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
953 | exit ;; | |
1024 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1025 | ;; | |
954 | 1026 | hexagon:Linux:*:*) |
955 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
956 | exit ;; | |
1027 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1028 | ;; | |
957 | 1029 | i*86:Linux:*:*) |
958 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC" | |
959 | exit ;; | |
1030 | GUESS=$UNAME_MACHINE-pc-linux-$LIBC | |
1031 | ;; | |
960 | 1032 | ia64:Linux:*:*) |
961 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
962 | exit ;; | |
1033 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1034 | ;; | |
963 | 1035 | k1om:Linux:*:*) |
964 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
965 | exit ;; | |
1036 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1037 | ;; | |
1038 | loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) | |
1039 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1040 | ;; | |
966 | 1041 | m32r*:Linux:*:*) |
967 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
968 | exit ;; | |
1042 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1043 | ;; | |
969 | 1044 | m68*:Linux:*:*) |
970 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
971 | exit ;; | |
1045 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1046 | ;; | |
972 | 1047 | mips:Linux:*:* | mips64:Linux:*:*) |
973 | eval "$set_cc_for_build" | |
1048 | set_cc_for_build | |
1049 | IS_GLIBC=0 | |
1050 | test x"${LIBC}" = xgnu && IS_GLIBC=1 | |
974 | 1051 | sed 's/^ //' << EOF > "$dummy.c" |
975 | 1052 | #undef CPU |
976 | #undef ${UNAME_MACHINE} | |
977 | #undef ${UNAME_MACHINE}el | |
1053 | #undef mips | |
1054 | #undef mipsel | |
1055 | #undef mips64 | |
1056 | #undef mips64el | |
1057 | #if ${IS_GLIBC} && defined(_ABI64) | |
1058 | LIBCABI=gnuabi64 | |
1059 | #else | |
1060 | #if ${IS_GLIBC} && defined(_ABIN32) | |
1061 | LIBCABI=gnuabin32 | |
1062 | #else | |
1063 | LIBCABI=${LIBC} | |
1064 | #endif | |
1065 | #endif | |
1066 | ||
1067 | #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 | |
1068 | CPU=mipsisa64r6 | |
1069 | #else | |
1070 | #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 | |
1071 | CPU=mipsisa32r6 | |
1072 | #else | |
1073 | #if defined(__mips64) | |
1074 | CPU=mips64 | |
1075 | #else | |
1076 | CPU=mips | |
1077 | #endif | |
1078 | #endif | |
1079 | #endif | |
1080 | ||
978 | 1081 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
979 | CPU=${UNAME_MACHINE}el | |
1082 | MIPS_ENDIAN=el | |
980 | 1083 | #else |
981 | 1084 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
982 | CPU=${UNAME_MACHINE} | |
1085 | MIPS_ENDIAN= | |
983 | 1086 | #else |
984 | CPU= | |
1087 | MIPS_ENDIAN= | |
985 | 1088 | #endif |
986 | 1089 | #endif |
987 | 1090 | EOF |
988 | eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" | |
989 | test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } | |
1091 | cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` | |
1092 | eval "$cc_set_vars" | |
1093 | test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } | |
990 | 1094 | ;; |
991 | 1095 | mips64el:Linux:*:*) |
992 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
993 | exit ;; | |
1096 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1097 | ;; | |
994 | 1098 | openrisc*:Linux:*:*) |
995 | echo or1k-unknown-linux-"$LIBC" | |
996 | exit ;; | |
1099 | GUESS=or1k-unknown-linux-$LIBC | |
1100 | ;; | |
997 | 1101 | or32:Linux:*:* | or1k*:Linux:*:*) |
998 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
999 | exit ;; | |
1102 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1103 | ;; | |
1000 | 1104 | padre:Linux:*:*) |
1001 | echo sparc-unknown-linux-"$LIBC" | |
1002 | exit ;; | |
1105 | GUESS=sparc-unknown-linux-$LIBC | |
1106 | ;; | |
1003 | 1107 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
1004 | echo hppa64-unknown-linux-"$LIBC" | |
1005 | exit ;; | |
1108 | GUESS=hppa64-unknown-linux-$LIBC | |
1109 | ;; | |
1006 | 1110 | parisc:Linux:*:* | hppa:Linux:*:*) |
1007 | 1111 | # Look for CPU level |
1008 | 1112 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
1009 | PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; | |
1010 | PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; | |
1011 | *) echo hppa-unknown-linux-"$LIBC" ;; | |
1113 | PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; | |
1114 | PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; | |
1115 | *) GUESS=hppa-unknown-linux-$LIBC ;; | |
1012 | 1116 | esac |
1013 | exit ;; | |
1117 | ;; | |
1014 | 1118 | ppc64:Linux:*:*) |
1015 | echo powerpc64-unknown-linux-"$LIBC" | |
1016 | exit ;; | |
1119 | GUESS=powerpc64-unknown-linux-$LIBC | |
1120 | ;; | |
1017 | 1121 | ppc:Linux:*:*) |
1018 | echo powerpc-unknown-linux-"$LIBC" | |
1019 | exit ;; | |
1122 | GUESS=powerpc-unknown-linux-$LIBC | |
1123 | ;; | |
1020 | 1124 | ppc64le:Linux:*:*) |
1021 | echo powerpc64le-unknown-linux-"$LIBC" | |
1022 | exit ;; | |
1125 | GUESS=powerpc64le-unknown-linux-$LIBC | |
1126 | ;; | |
1023 | 1127 | ppcle:Linux:*:*) |
1024 | echo powerpcle-unknown-linux-"$LIBC" | |
1025 | exit ;; | |
1026 | riscv32:Linux:*:* | riscv64:Linux:*:*) | |
1027 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1028 | exit ;; | |
1128 | GUESS=powerpcle-unknown-linux-$LIBC | |
1129 | ;; | |
1130 | riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) | |
1131 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1132 | ;; | |
1029 | 1133 | s390:Linux:*:* | s390x:Linux:*:*) |
1030 | echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" | |
1031 | exit ;; | |
1134 | GUESS=$UNAME_MACHINE-ibm-linux-$LIBC | |
1135 | ;; | |
1032 | 1136 | sh64*:Linux:*:*) |
1033 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1034 | exit ;; | |
1137 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1138 | ;; | |
1035 | 1139 | sh*:Linux:*:*) |
1036 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1037 | exit ;; | |
1140 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1141 | ;; | |
1038 | 1142 | sparc:Linux:*:* | sparc64:Linux:*:*) |
1039 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1040 | exit ;; | |
1143 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1144 | ;; | |
1041 | 1145 | tile*:Linux:*:*) |
1042 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1043 | exit ;; | |
1146 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1147 | ;; | |
1044 | 1148 | vax:Linux:*:*) |
1045 | echo "$UNAME_MACHINE"-dec-linux-"$LIBC" | |
1046 | exit ;; | |
1149 | GUESS=$UNAME_MACHINE-dec-linux-$LIBC | |
1150 | ;; | |
1047 | 1151 | x86_64:Linux:*:*) |
1048 | if objdump -f /bin/sh | grep -q elf32-x86-64; then | |
1049 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32 | |
1050 | else | |
1051 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC" | |
1052 | fi | |
1053 | exit ;; | |
1152 | set_cc_for_build | |
1153 | LIBCABI=$LIBC | |
1154 | if test "$CC_FOR_BUILD" != no_compiler_found; then | |
1155 | if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ | |
1156 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1157 | grep IS_X32 >/dev/null | |
1158 | then | |
1159 | LIBCABI=${LIBC}x32 | |
1160 | fi | |
1161 | fi | |
1162 | GUESS=$UNAME_MACHINE-pc-linux-$LIBCABI | |
1163 | ;; | |
1054 | 1164 | xtensa*:Linux:*:*) |
1055 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1056 | exit ;; | |
1165 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1166 | ;; | |
1057 | 1167 | i*86:DYNIX/ptx:4*:*) |
1058 | 1168 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1059 | 1169 | # earlier versions are messed up and put the nodename in both |
1060 | 1170 | # sysname and nodename. |
1061 | echo i386-sequent-sysv4 | |
1062 | exit ;; | |
1171 | GUESS=i386-sequent-sysv4 | |
1172 | ;; | |
1063 | 1173 | i*86:UNIX_SV:4.2MP:2.*) |
1064 | 1174 | # Unixware is an offshoot of SVR4, but it has its own version |
1065 | 1175 | # number series starting with 2... |
1066 | 1176 | # I am not positive that other SVR4 systems won't match this, |
1067 | 1177 | # I just have to hope. -- rms. |
1068 | 1178 | # Use sysv4.2uw... so that sysv4* matches it. |
1069 | echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" | |
1070 | exit ;; | |
1179 | GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION | |
1180 | ;; | |
1071 | 1181 | i*86:OS/2:*:*) |
1072 | 1182 | # If we were able to find `uname', then EMX Unix compatibility |
1073 | 1183 | # is probably installed. |
1074 | echo "$UNAME_MACHINE"-pc-os2-emx | |
1075 | exit ;; | |
1184 | GUESS=$UNAME_MACHINE-pc-os2-emx | |
1185 | ;; | |
1076 | 1186 | i*86:XTS-300:*:STOP) |
1077 | echo "$UNAME_MACHINE"-unknown-stop | |
1078 | exit ;; | |
1187 | GUESS=$UNAME_MACHINE-unknown-stop | |
1188 | ;; | |
1079 | 1189 | i*86:atheos:*:*) |
1080 | echo "$UNAME_MACHINE"-unknown-atheos | |
1081 | exit ;; | |
1190 | GUESS=$UNAME_MACHINE-unknown-atheos | |
1191 | ;; | |
1082 | 1192 | i*86:syllable:*:*) |
1083 | echo "$UNAME_MACHINE"-pc-syllable | |
1084 | exit ;; | |
1193 | GUESS=$UNAME_MACHINE-pc-syllable | |
1194 | ;; | |
1085 | 1195 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
1086 | echo i386-unknown-lynxos"$UNAME_RELEASE" | |
1087 | exit ;; | |
1196 | GUESS=i386-unknown-lynxos$UNAME_RELEASE | |
1197 | ;; | |
1088 | 1198 | i*86:*DOS:*:*) |
1089 | echo "$UNAME_MACHINE"-pc-msdosdjgpp | |
1090 | exit ;; | |
1199 | GUESS=$UNAME_MACHINE-pc-msdosdjgpp | |
1200 | ;; | |
1091 | 1201 | i*86:*:4.*:*) |
1092 | 1202 | UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` |
1093 | 1203 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
1094 | echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" | |
1204 | GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL | |
1095 | 1205 | else |
1096 | echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" | |
1097 | fi | |
1098 | exit ;; | |
1206 | GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL | |
1207 | fi | |
1208 | ;; | |
1099 | 1209 | i*86:*:5:[678]*) |
1100 | 1210 | # UnixWare 7.x, OpenUNIX and OpenServer 6. |
1101 | 1211 | case `/bin/uname -X | grep "^Machine"` in |
1103 | 1213 | *Pentium) UNAME_MACHINE=i586 ;; |
1104 | 1214 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
1105 | 1215 | esac |
1106 | echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" | |
1107 | exit ;; | |
1216 | GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} | |
1217 | ;; | |
1108 | 1218 | i*86:*:3.2:*) |
1109 | 1219 | if test -f /usr/options/cb.name; then |
1110 | 1220 | UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
1111 | echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL" | |
1221 | GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL | |
1112 | 1222 | elif /bin/uname -X 2>/dev/null >/dev/null ; then |
1113 | 1223 | UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` |
1114 | 1224 | (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 |
1118 | 1228 | && UNAME_MACHINE=i686 |
1119 | 1229 | (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ |
1120 | 1230 | && UNAME_MACHINE=i686 |
1121 | echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" | |
1231 | GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL | |
1122 | 1232 | else |
1123 | echo "$UNAME_MACHINE"-pc-sysv32 | |
1124 | fi | |
1125 | exit ;; | |
1233 | GUESS=$UNAME_MACHINE-pc-sysv32 | |
1234 | fi | |
1235 | ;; | |
1126 | 1236 | pc:*:*:*) |
1127 | 1237 | # Left here for compatibility: |
1128 | 1238 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
1130 | 1240 | # Note: whatever this is, it MUST be the same as what config.sub |
1131 | 1241 | # prints for the "djgpp" host, or else GDB configure will decide that |
1132 | 1242 | # this is a cross-build. |
1133 | echo i586-pc-msdosdjgpp | |
1134 | exit ;; | |
1243 | GUESS=i586-pc-msdosdjgpp | |
1244 | ;; | |
1135 | 1245 | Intel:Mach:3*:*) |
1136 | echo i386-pc-mach3 | |
1137 | exit ;; | |
1246 | GUESS=i386-pc-mach3 | |
1247 | ;; | |
1138 | 1248 | paragon:*:*:*) |
1139 | echo i860-intel-osf1 | |
1140 | exit ;; | |
1249 | GUESS=i860-intel-osf1 | |
1250 | ;; | |
1141 | 1251 | i860:*:4.*:*) # i860-SVR4 |
1142 | 1252 | if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then |
1143 | echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 | |
1253 | GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 | |
1144 | 1254 | else # Add other i860-SVR4 vendors below as they are discovered. |
1145 | echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 | |
1146 | fi | |
1147 | exit ;; | |
1255 | GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 | |
1256 | fi | |
1257 | ;; | |
1148 | 1258 | mini*:CTIX:SYS*5:*) |
1149 | 1259 | # "miniframe" |
1150 | echo m68010-convergent-sysv | |
1151 | exit ;; | |
1260 | GUESS=m68010-convergent-sysv | |
1261 | ;; | |
1152 | 1262 | mc68k:UNIX:SYSTEM5:3.51m) |
1153 | echo m68k-convergent-sysv | |
1154 | exit ;; | |
1263 | GUESS=m68k-convergent-sysv | |
1264 | ;; | |
1155 | 1265 | M680?0:D-NIX:5.3:*) |
1156 | echo m68k-diab-dnix | |
1157 | exit ;; | |
1266 | GUESS=m68k-diab-dnix | |
1267 | ;; | |
1158 | 1268 | M68*:*:R3V[5678]*:*) |
1159 | 1269 | test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; |
1160 | 1270 | 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) |
1179 | 1289 | /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ |
1180 | 1290 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; |
1181 | 1291 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1182 | echo m68k-unknown-lynxos"$UNAME_RELEASE" | |
1183 | exit ;; | |
1292 | GUESS=m68k-unknown-lynxos$UNAME_RELEASE | |
1293 | ;; | |
1184 | 1294 | mc68030:UNIX_System_V:4.*:*) |
1185 | echo m68k-atari-sysv4 | |
1186 | exit ;; | |
1295 | GUESS=m68k-atari-sysv4 | |
1296 | ;; | |
1187 | 1297 | TSUNAMI:LynxOS:2.*:*) |
1188 | echo sparc-unknown-lynxos"$UNAME_RELEASE" | |
1189 | exit ;; | |
1298 | GUESS=sparc-unknown-lynxos$UNAME_RELEASE | |
1299 | ;; | |
1190 | 1300 | rs6000:LynxOS:2.*:*) |
1191 | echo rs6000-unknown-lynxos"$UNAME_RELEASE" | |
1192 | exit ;; | |
1301 | GUESS=rs6000-unknown-lynxos$UNAME_RELEASE | |
1302 | ;; | |
1193 | 1303 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
1194 | echo powerpc-unknown-lynxos"$UNAME_RELEASE" | |
1195 | exit ;; | |
1304 | GUESS=powerpc-unknown-lynxos$UNAME_RELEASE | |
1305 | ;; | |
1196 | 1306 | SM[BE]S:UNIX_SV:*:*) |
1197 | echo mips-dde-sysv"$UNAME_RELEASE" | |
1198 | exit ;; | |
1307 | GUESS=mips-dde-sysv$UNAME_RELEASE | |
1308 | ;; | |
1199 | 1309 | RM*:ReliantUNIX-*:*:*) |
1200 | echo mips-sni-sysv4 | |
1201 | exit ;; | |
1310 | GUESS=mips-sni-sysv4 | |
1311 | ;; | |
1202 | 1312 | RM*:SINIX-*:*:*) |
1203 | echo mips-sni-sysv4 | |
1204 | exit ;; | |
1313 | GUESS=mips-sni-sysv4 | |
1314 | ;; | |
1205 | 1315 | *:SINIX-*:*:*) |
1206 | 1316 | if uname -p 2>/dev/null >/dev/null ; then |
1207 | 1317 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1208 | echo "$UNAME_MACHINE"-sni-sysv4 | |
1318 | GUESS=$UNAME_MACHINE-sni-sysv4 | |
1209 | 1319 | else |
1210 | echo ns32k-sni-sysv | |
1211 | fi | |
1212 | exit ;; | |
1320 | GUESS=ns32k-sni-sysv | |
1321 | fi | |
1322 | ;; | |
1213 | 1323 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
1214 | 1324 | # says <Richard.M.Bartel@ccMail.Census.GOV> |
1215 | echo i586-unisys-sysv4 | |
1216 | exit ;; | |
1325 | GUESS=i586-unisys-sysv4 | |
1326 | ;; | |
1217 | 1327 | *:UNIX_System_V:4*:FTX*) |
1218 | 1328 | # From Gerald Hewes <hewes@openmarket.com>. |
1219 | 1329 | # How about differentiating between stratus architectures? -djm |
1220 | echo hppa1.1-stratus-sysv4 | |
1221 | exit ;; | |
1330 | GUESS=hppa1.1-stratus-sysv4 | |
1331 | ;; | |
1222 | 1332 | *:*:*:FTX*) |
1223 | 1333 | # From seanf@swdc.stratus.com. |
1224 | echo i860-stratus-sysv4 | |
1225 | exit ;; | |
1334 | GUESS=i860-stratus-sysv4 | |
1335 | ;; | |
1226 | 1336 | i*86:VOS:*:*) |
1227 | 1337 | # From Paul.Green@stratus.com. |
1228 | echo "$UNAME_MACHINE"-stratus-vos | |
1229 | exit ;; | |
1338 | GUESS=$UNAME_MACHINE-stratus-vos | |
1339 | ;; | |
1230 | 1340 | *:VOS:*:*) |
1231 | 1341 | # From Paul.Green@stratus.com. |
1232 | echo hppa1.1-stratus-vos | |
1233 | exit ;; | |
1342 | GUESS=hppa1.1-stratus-vos | |
1343 | ;; | |
1234 | 1344 | mc68*:A/UX:*:*) |
1235 | echo m68k-apple-aux"$UNAME_RELEASE" | |
1236 | exit ;; | |
1345 | GUESS=m68k-apple-aux$UNAME_RELEASE | |
1346 | ;; | |
1237 | 1347 | news*:NEWS-OS:6*:*) |
1238 | echo mips-sony-newsos6 | |
1239 | exit ;; | |
1348 | GUESS=mips-sony-newsos6 | |
1349 | ;; | |
1240 | 1350 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
1241 | if [ -d /usr/nec ]; then | |
1242 | echo mips-nec-sysv"$UNAME_RELEASE" | |
1351 | if test -d /usr/nec; then | |
1352 | GUESS=mips-nec-sysv$UNAME_RELEASE | |
1243 | 1353 | else |
1244 | echo mips-unknown-sysv"$UNAME_RELEASE" | |
1245 | fi | |
1246 | exit ;; | |
1354 | GUESS=mips-unknown-sysv$UNAME_RELEASE | |
1355 | fi | |
1356 | ;; | |
1247 | 1357 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
1248 | echo powerpc-be-beos | |
1249 | exit ;; | |
1358 | GUESS=powerpc-be-beos | |
1359 | ;; | |
1250 | 1360 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
1251 | echo powerpc-apple-beos | |
1252 | exit ;; | |
1361 | GUESS=powerpc-apple-beos | |
1362 | ;; | |
1253 | 1363 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
1254 | echo i586-pc-beos | |
1255 | exit ;; | |
1364 | GUESS=i586-pc-beos | |
1365 | ;; | |
1256 | 1366 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
1257 | echo i586-pc-haiku | |
1258 | exit ;; | |
1367 | GUESS=i586-pc-haiku | |
1368 | ;; | |
1259 | 1369 | x86_64:Haiku:*:*) |
1260 | echo x86_64-unknown-haiku | |
1261 | exit ;; | |
1370 | GUESS=x86_64-unknown-haiku | |
1371 | ;; | |
1262 | 1372 | SX-4:SUPER-UX:*:*) |
1263 | echo sx4-nec-superux"$UNAME_RELEASE" | |
1264 | exit ;; | |
1373 | GUESS=sx4-nec-superux$UNAME_RELEASE | |
1374 | ;; | |
1265 | 1375 | SX-5:SUPER-UX:*:*) |
1266 | echo sx5-nec-superux"$UNAME_RELEASE" | |
1267 | exit ;; | |
1376 | GUESS=sx5-nec-superux$UNAME_RELEASE | |
1377 | ;; | |
1268 | 1378 | SX-6:SUPER-UX:*:*) |
1269 | echo sx6-nec-superux"$UNAME_RELEASE" | |
1270 | exit ;; | |
1379 | GUESS=sx6-nec-superux$UNAME_RELEASE | |
1380 | ;; | |
1271 | 1381 | SX-7:SUPER-UX:*:*) |
1272 | echo sx7-nec-superux"$UNAME_RELEASE" | |
1273 | exit ;; | |
1382 | GUESS=sx7-nec-superux$UNAME_RELEASE | |
1383 | ;; | |
1274 | 1384 | SX-8:SUPER-UX:*:*) |
1275 | echo sx8-nec-superux"$UNAME_RELEASE" | |
1276 | exit ;; | |
1385 | GUESS=sx8-nec-superux$UNAME_RELEASE | |
1386 | ;; | |
1277 | 1387 | SX-8R:SUPER-UX:*:*) |
1278 | echo sx8r-nec-superux"$UNAME_RELEASE" | |
1279 | exit ;; | |
1388 | GUESS=sx8r-nec-superux$UNAME_RELEASE | |
1389 | ;; | |
1280 | 1390 | SX-ACE:SUPER-UX:*:*) |
1281 | echo sxace-nec-superux"$UNAME_RELEASE" | |
1282 | exit ;; | |
1391 | GUESS=sxace-nec-superux$UNAME_RELEASE | |
1392 | ;; | |
1283 | 1393 | Power*:Rhapsody:*:*) |
1284 | echo powerpc-apple-rhapsody"$UNAME_RELEASE" | |
1285 | exit ;; | |
1394 | GUESS=powerpc-apple-rhapsody$UNAME_RELEASE | |
1395 | ;; | |
1286 | 1396 | *:Rhapsody:*:*) |
1287 | echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" | |
1288 | exit ;; | |
1397 | GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE | |
1398 | ;; | |
1399 | arm64:Darwin:*:*) | |
1400 | GUESS=aarch64-apple-darwin$UNAME_RELEASE | |
1401 | ;; | |
1289 | 1402 | *:Darwin:*:*) |
1290 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | |
1291 | eval "$set_cc_for_build" | |
1292 | if test "$UNAME_PROCESSOR" = unknown ; then | |
1293 | UNAME_PROCESSOR=powerpc | |
1294 | fi | |
1295 | if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then | |
1296 | if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | |
1297 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
1298 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1299 | grep IS_64BIT_ARCH >/dev/null | |
1300 | then | |
1301 | case $UNAME_PROCESSOR in | |
1302 | i386) UNAME_PROCESSOR=x86_64 ;; | |
1303 | powerpc) UNAME_PROCESSOR=powerpc64 ;; | |
1304 | esac | |
1305 | fi | |
1306 | # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc | |
1307 | if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ | |
1308 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1309 | grep IS_PPC >/dev/null | |
1310 | then | |
1311 | UNAME_PROCESSOR=powerpc | |
1312 | fi | |
1403 | UNAME_PROCESSOR=`uname -p` | |
1404 | case $UNAME_PROCESSOR in | |
1405 | unknown) UNAME_PROCESSOR=powerpc ;; | |
1406 | esac | |
1407 | if command -v xcode-select > /dev/null 2> /dev/null && \ | |
1408 | ! xcode-select --print-path > /dev/null 2> /dev/null ; then | |
1409 | # Avoid executing cc if there is no toolchain installed as | |
1410 | # cc will be a stub that puts up a graphical alert | |
1411 | # prompting the user to install developer tools. | |
1412 | CC_FOR_BUILD=no_compiler_found | |
1413 | else | |
1414 | set_cc_for_build | |
1415 | fi | |
1416 | if test "$CC_FOR_BUILD" != no_compiler_found; then | |
1417 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
1418 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1419 | grep IS_64BIT_ARCH >/dev/null | |
1420 | then | |
1421 | case $UNAME_PROCESSOR in | |
1422 | i386) UNAME_PROCESSOR=x86_64 ;; | |
1423 | powerpc) UNAME_PROCESSOR=powerpc64 ;; | |
1424 | esac | |
1425 | fi | |
1426 | # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc | |
1427 | if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ | |
1428 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1429 | grep IS_PPC >/dev/null | |
1430 | then | |
1431 | UNAME_PROCESSOR=powerpc | |
1313 | 1432 | fi |
1314 | 1433 | elif test "$UNAME_PROCESSOR" = i386 ; then |
1315 | # Avoid executing cc on OS X 10.9, as it ships with a stub | |
1316 | # that puts up a graphical alert prompting to install | |
1317 | # developer tools. Any system running Mac OS X 10.7 or | |
1318 | # later (Darwin 11 and later) is required to have a 64-bit | |
1319 | # processor. This is not true of the ARM version of Darwin | |
1320 | # that Apple uses in portable devices. | |
1321 | UNAME_PROCESSOR=x86_64 | |
1322 | fi | |
1323 | echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" | |
1324 | exit ;; | |
1434 | # uname -m returns i386 or x86_64 | |
1435 | UNAME_PROCESSOR=$UNAME_MACHINE | |
1436 | fi | |
1437 | GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE | |
1438 | ;; | |
1325 | 1439 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1326 | 1440 | UNAME_PROCESSOR=`uname -p` |
1327 | 1441 | if test "$UNAME_PROCESSOR" = x86; then |
1328 | 1442 | UNAME_PROCESSOR=i386 |
1329 | 1443 | UNAME_MACHINE=pc |
1330 | 1444 | fi |
1331 | echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" | |
1332 | exit ;; | |
1445 | GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE | |
1446 | ;; | |
1333 | 1447 | *:QNX:*:4*) |
1334 | echo i386-pc-qnx | |
1335 | exit ;; | |
1448 | GUESS=i386-pc-qnx | |
1449 | ;; | |
1336 | 1450 | NEO-*:NONSTOP_KERNEL:*:*) |
1337 | echo neo-tandem-nsk"$UNAME_RELEASE" | |
1338 | exit ;; | |
1451 | GUESS=neo-tandem-nsk$UNAME_RELEASE | |
1452 | ;; | |
1339 | 1453 | NSE-*:NONSTOP_KERNEL:*:*) |
1340 | echo nse-tandem-nsk"$UNAME_RELEASE" | |
1341 | exit ;; | |
1454 | GUESS=nse-tandem-nsk$UNAME_RELEASE | |
1455 | ;; | |
1342 | 1456 | NSR-*:NONSTOP_KERNEL:*:*) |
1343 | echo nsr-tandem-nsk"$UNAME_RELEASE" | |
1344 | exit ;; | |
1457 | GUESS=nsr-tandem-nsk$UNAME_RELEASE | |
1458 | ;; | |
1345 | 1459 | NSV-*:NONSTOP_KERNEL:*:*) |
1346 | echo nsv-tandem-nsk"$UNAME_RELEASE" | |
1347 | exit ;; | |
1460 | GUESS=nsv-tandem-nsk$UNAME_RELEASE | |
1461 | ;; | |
1348 | 1462 | NSX-*:NONSTOP_KERNEL:*:*) |
1349 | echo nsx-tandem-nsk"$UNAME_RELEASE" | |
1350 | exit ;; | |
1463 | GUESS=nsx-tandem-nsk$UNAME_RELEASE | |
1464 | ;; | |
1351 | 1465 | *:NonStop-UX:*:*) |
1352 | echo mips-compaq-nonstopux | |
1353 | exit ;; | |
1466 | GUESS=mips-compaq-nonstopux | |
1467 | ;; | |
1354 | 1468 | BS2000:POSIX*:*:*) |
1355 | echo bs2000-siemens-sysv | |
1356 | exit ;; | |
1469 | GUESS=bs2000-siemens-sysv | |
1470 | ;; | |
1357 | 1471 | DS/*:UNIX_System_V:*:*) |
1358 | echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" | |
1359 | exit ;; | |
1472 | GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE | |
1473 | ;; | |
1360 | 1474 | *:Plan9:*:*) |
1361 | 1475 | # "uname -m" is not consistent, so use $cputype instead. 386 |
1362 | 1476 | # is converted to i386 for consistency with other x86 |
1363 | 1477 | # operating systems. |
1364 | if test "$cputype" = 386; then | |
1478 | if test "${cputype-}" = 386; then | |
1365 | 1479 | UNAME_MACHINE=i386 |
1366 | else | |
1367 | UNAME_MACHINE="$cputype" | |
1368 | fi | |
1369 | echo "$UNAME_MACHINE"-unknown-plan9 | |
1370 | exit ;; | |
1480 | elif test "x${cputype-}" != x; then | |
1481 | UNAME_MACHINE=$cputype | |
1482 | fi | |
1483 | GUESS=$UNAME_MACHINE-unknown-plan9 | |
1484 | ;; | |
1371 | 1485 | *:TOPS-10:*:*) |
1372 | echo pdp10-unknown-tops10 | |
1373 | exit ;; | |
1486 | GUESS=pdp10-unknown-tops10 | |
1487 | ;; | |
1374 | 1488 | *:TENEX:*:*) |
1375 | echo pdp10-unknown-tenex | |
1376 | exit ;; | |
1489 | GUESS=pdp10-unknown-tenex | |
1490 | ;; | |
1377 | 1491 | KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) |
1378 | echo pdp10-dec-tops20 | |
1379 | exit ;; | |
1492 | GUESS=pdp10-dec-tops20 | |
1493 | ;; | |
1380 | 1494 | XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) |
1381 | echo pdp10-xkl-tops20 | |
1382 | exit ;; | |
1495 | GUESS=pdp10-xkl-tops20 | |
1496 | ;; | |
1383 | 1497 | *:TOPS-20:*:*) |
1384 | echo pdp10-unknown-tops20 | |
1385 | exit ;; | |
1498 | GUESS=pdp10-unknown-tops20 | |
1499 | ;; | |
1386 | 1500 | *:ITS:*:*) |
1387 | echo pdp10-unknown-its | |
1388 | exit ;; | |
1501 | GUESS=pdp10-unknown-its | |
1502 | ;; | |
1389 | 1503 | SEI:*:*:SEIUX) |
1390 | echo mips-sei-seiux"$UNAME_RELEASE" | |
1391 | exit ;; | |
1504 | GUESS=mips-sei-seiux$UNAME_RELEASE | |
1505 | ;; | |
1392 | 1506 | *:DragonFly:*:*) |
1393 | echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" | |
1394 | exit ;; | |
1507 | DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` | |
1508 | GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL | |
1509 | ;; | |
1395 | 1510 | *:*VMS:*:*) |
1396 | 1511 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1397 | case "$UNAME_MACHINE" in | |
1398 | A*) echo alpha-dec-vms ; exit ;; | |
1399 | I*) echo ia64-dec-vms ; exit ;; | |
1400 | V*) echo vax-dec-vms ; exit ;; | |
1512 | case $UNAME_MACHINE in | |
1513 | A*) GUESS=alpha-dec-vms ;; | |
1514 | I*) GUESS=ia64-dec-vms ;; | |
1515 | V*) GUESS=vax-dec-vms ;; | |
1401 | 1516 | esac ;; |
1402 | 1517 | *:XENIX:*:SysV) |
1403 | echo i386-pc-xenix | |
1404 | exit ;; | |
1518 | GUESS=i386-pc-xenix | |
1519 | ;; | |
1405 | 1520 | i*86:skyos:*:*) |
1406 | echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" | |
1407 | exit ;; | |
1521 | SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` | |
1522 | GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL | |
1523 | ;; | |
1408 | 1524 | i*86:rdos:*:*) |
1409 | echo "$UNAME_MACHINE"-pc-rdos | |
1410 | exit ;; | |
1411 | i*86:AROS:*:*) | |
1412 | echo "$UNAME_MACHINE"-pc-aros | |
1413 | exit ;; | |
1525 | GUESS=$UNAME_MACHINE-pc-rdos | |
1526 | ;; | |
1527 | i*86:Fiwix:*:*) | |
1528 | GUESS=$UNAME_MACHINE-pc-fiwix | |
1529 | ;; | |
1530 | *:AROS:*:*) | |
1531 | GUESS=$UNAME_MACHINE-unknown-aros | |
1532 | ;; | |
1414 | 1533 | x86_64:VMkernel:*:*) |
1415 | echo "$UNAME_MACHINE"-unknown-esx | |
1416 | exit ;; | |
1534 | GUESS=$UNAME_MACHINE-unknown-esx | |
1535 | ;; | |
1417 | 1536 | amd64:Isilon\ OneFS:*:*) |
1418 | echo x86_64-unknown-onefs | |
1419 | exit ;; | |
1537 | GUESS=x86_64-unknown-onefs | |
1538 | ;; | |
1539 | *:Unleashed:*:*) | |
1540 | GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE | |
1541 | ;; | |
1420 | 1542 | esac |
1421 | 1543 | |
1544 | # Do we have a guess based on uname results? | |
1545 | if test "x$GUESS" != x; then | |
1546 | echo "$GUESS" | |
1547 | exit | |
1548 | fi | |
1549 | ||
1550 | # No uname command or uname output not recognized. | |
1551 | set_cc_for_build | |
1552 | cat > "$dummy.c" <<EOF | |
1553 | #ifdef _SEQUENT_ | |
1554 | #include <sys/types.h> | |
1555 | #include <sys/utsname.h> | |
1556 | #endif | |
1557 | #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) | |
1558 | #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) | |
1559 | #include <signal.h> | |
1560 | #if defined(_SIZE_T_) || defined(SIGLOST) | |
1561 | #include <sys/utsname.h> | |
1562 | #endif | |
1563 | #endif | |
1564 | #endif | |
1565 | main () | |
1566 | { | |
1567 | #if defined (sony) | |
1568 | #if defined (MIPSEB) | |
1569 | /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, | |
1570 | I don't know.... */ | |
1571 | printf ("mips-sony-bsd\n"); exit (0); | |
1572 | #else | |
1573 | #include <sys/param.h> | |
1574 | printf ("m68k-sony-newsos%s\n", | |
1575 | #ifdef NEWSOS4 | |
1576 | "4" | |
1577 | #else | |
1578 | "" | |
1579 | #endif | |
1580 | ); exit (0); | |
1581 | #endif | |
1582 | #endif | |
1583 | ||
1584 | #if defined (NeXT) | |
1585 | #if !defined (__ARCHITECTURE__) | |
1586 | #define __ARCHITECTURE__ "m68k" | |
1587 | #endif | |
1588 | int version; | |
1589 | version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; | |
1590 | if (version < 4) | |
1591 | printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); | |
1592 | else | |
1593 | printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); | |
1594 | exit (0); | |
1595 | #endif | |
1596 | ||
1597 | #if defined (MULTIMAX) || defined (n16) | |
1598 | #if defined (UMAXV) | |
1599 | printf ("ns32k-encore-sysv\n"); exit (0); | |
1600 | #else | |
1601 | #if defined (CMU) | |
1602 | printf ("ns32k-encore-mach\n"); exit (0); | |
1603 | #else | |
1604 | printf ("ns32k-encore-bsd\n"); exit (0); | |
1605 | #endif | |
1606 | #endif | |
1607 | #endif | |
1608 | ||
1609 | #if defined (__386BSD__) | |
1610 | printf ("i386-pc-bsd\n"); exit (0); | |
1611 | #endif | |
1612 | ||
1613 | #if defined (sequent) | |
1614 | #if defined (i386) | |
1615 | printf ("i386-sequent-dynix\n"); exit (0); | |
1616 | #endif | |
1617 | #if defined (ns32000) | |
1618 | printf ("ns32k-sequent-dynix\n"); exit (0); | |
1619 | #endif | |
1620 | #endif | |
1621 | ||
1622 | #if defined (_SEQUENT_) | |
1623 | struct utsname un; | |
1624 | ||
1625 | uname(&un); | |
1626 | if (strncmp(un.version, "V2", 2) == 0) { | |
1627 | printf ("i386-sequent-ptx2\n"); exit (0); | |
1628 | } | |
1629 | if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ | |
1630 | printf ("i386-sequent-ptx1\n"); exit (0); | |
1631 | } | |
1632 | printf ("i386-sequent-ptx\n"); exit (0); | |
1633 | #endif | |
1634 | ||
1635 | #if defined (vax) | |
1636 | #if !defined (ultrix) | |
1637 | #include <sys/param.h> | |
1638 | #if defined (BSD) | |
1639 | #if BSD == 43 | |
1640 | printf ("vax-dec-bsd4.3\n"); exit (0); | |
1641 | #else | |
1642 | #if BSD == 199006 | |
1643 | printf ("vax-dec-bsd4.3reno\n"); exit (0); | |
1644 | #else | |
1645 | printf ("vax-dec-bsd\n"); exit (0); | |
1646 | #endif | |
1647 | #endif | |
1648 | #else | |
1649 | printf ("vax-dec-bsd\n"); exit (0); | |
1650 | #endif | |
1651 | #else | |
1652 | #if defined(_SIZE_T_) || defined(SIGLOST) | |
1653 | struct utsname un; | |
1654 | uname (&un); | |
1655 | printf ("vax-dec-ultrix%s\n", un.release); exit (0); | |
1656 | #else | |
1657 | printf ("vax-dec-ultrix\n"); exit (0); | |
1658 | #endif | |
1659 | #endif | |
1660 | #endif | |
1661 | #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) | |
1662 | #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) | |
1663 | #if defined(_SIZE_T_) || defined(SIGLOST) | |
1664 | struct utsname *un; | |
1665 | uname (&un); | |
1666 | printf ("mips-dec-ultrix%s\n", un.release); exit (0); | |
1667 | #else | |
1668 | printf ("mips-dec-ultrix\n"); exit (0); | |
1669 | #endif | |
1670 | #endif | |
1671 | #endif | |
1672 | ||
1673 | #if defined (alliant) && defined (i860) | |
1674 | printf ("i860-alliant-bsd\n"); exit (0); | |
1675 | #endif | |
1676 | ||
1677 | exit (1); | |
1678 | } | |
1679 | EOF | |
1680 | ||
1681 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && | |
1682 | { echo "$SYSTEM_NAME"; exit; } | |
1683 | ||
1684 | # Apollos put the system type in the environment. | |
1685 | test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } | |
1686 | ||
1422 | 1687 | echo "$0: unable to guess system type" >&2 |
1423 | 1688 | |
1424 | case "$UNAME_MACHINE:$UNAME_SYSTEM" in | |
1689 | case $UNAME_MACHINE:$UNAME_SYSTEM in | |
1425 | 1690 | mips:Linux | mips64:Linux) |
1426 | 1691 | # If we got here on MIPS GNU/Linux, output extra information. |
1427 | 1692 | cat >&2 <<EOF |
1438 | 1703 | operating system you are using. If your script is old, overwrite *all* |
1439 | 1704 | copies of config.guess and config.sub with the latest versions from: |
1440 | 1705 | |
1441 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | |
1706 | https://git.savannah.gnu.org/cgit/config.git/plain/config.guess | |
1442 | 1707 | and |
1443 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | |
1708 | https://git.savannah.gnu.org/cgit/config.git/plain/config.sub | |
1709 | EOF | |
1710 | ||
1711 | our_year=`echo $timestamp | sed 's,-.*,,'` | |
1712 | thisyear=`date +%Y` | |
1713 | # shellcheck disable=SC2003 | |
1714 | script_age=`expr "$thisyear" - "$our_year"` | |
1715 | if test "$script_age" -lt 3 ; then | |
1716 | cat >&2 <<EOF | |
1444 | 1717 | |
1445 | 1718 | If $0 has already been updated, send the following data and any |
1446 | 1719 | information you think might be pertinent to config-patches@gnu.org to |
1468 | 1741 | UNAME_SYSTEM = "$UNAME_SYSTEM" |
1469 | 1742 | UNAME_VERSION = "$UNAME_VERSION" |
1470 | 1743 | EOF |
1744 | fi | |
1471 | 1745 | |
1472 | 1746 | exit 1 |
1473 | 1747 | |
1474 | 1748 | # Local variables: |
1475 | # eval: (add-hook 'write-file-functions 'time-stamp) | |
1749 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
1476 | 1750 | # time-stamp-start: "timestamp='" |
1477 | 1751 | # time-stamp-format: "%:y-%02m-%02d" |
1478 | 1752 | # time-stamp-end: "'" |
1 | 1 | # Output a system dependent set of variables, describing how to set the |
2 | 2 | # run time search path of shared libraries in an executable. |
3 | 3 | # |
4 | # Copyright 1996-2016 Free Software Foundation, Inc. | |
4 | # Copyright 1996-2020 Free Software Foundation, Inc. | |
5 | 5 | # Taken from GNU libtool, 2001 |
6 | 6 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
7 | 7 | # |
0 | 0 | #! /bin/sh |
1 | 1 | # Configuration validation subroutine script. |
2 | # Copyright 1992-2018 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2018-02-22' | |
2 | # Copyright 1992-2022 Free Software Foundation, Inc. | |
3 | ||
4 | # shellcheck disable=SC2006,SC2268 # see below for rationale | |
5 | ||
6 | timestamp='2022-01-03' | |
5 | 7 | |
6 | 8 | # This file is free software; you can redistribute it and/or modify it |
7 | 9 | # under the terms of the GNU General Public License as published by |
8 | # the Free Software Foundation; either version 3 of the License, or | |
10 | # the Free Software Foundation, either version 3 of the License, or | |
9 | 11 | # (at your option) any later version. |
10 | 12 | # |
11 | 13 | # This program is distributed in the hope that it will be useful, but |
32 | 34 | # Otherwise, we print the canonical config type on stdout and succeed. |
33 | 35 | |
34 | 36 | # You can get the latest version of this script from: |
35 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | |
37 | # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub | |
36 | 38 | |
37 | 39 | # This file is supposed to be the same for all GNU packages |
38 | 40 | # and recognize all the CPU types, system types and aliases |
49 | 51 | # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
50 | 52 | # It is wrong to echo any other type of specification. |
51 | 53 | |
54 | # The "shellcheck disable" line above the timestamp inhibits complaints | |
55 | # about features and limitations of the classic Bourne shell that were | |
56 | # superseded or lifted in POSIX. However, this script identifies a wide | |
57 | # variety of pre-POSIX systems that do not have POSIX shells at all, and | |
58 | # even some reasonably current systems (Solaris 10 as case-in-point) still | |
59 | # have a pre-POSIX /bin/sh. | |
60 | ||
52 | 61 | me=`echo "$0" | sed -e 's,.*/,,'` |
53 | 62 | |
54 | 63 | usage="\ |
66 | 75 | version="\ |
67 | 76 | GNU config.sub ($timestamp) |
68 | 77 | |
69 | Copyright 1992-2018 Free Software Foundation, Inc. | |
78 | Copyright 1992-2022 Free Software Foundation, Inc. | |
70 | 79 | |
71 | 80 | This is free software; see the source for copying conditions. There is NO |
72 | 81 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
88 | 97 | - ) # Use stdin as input. |
89 | 98 | break ;; |
90 | 99 | -* ) |
91 | echo "$me: invalid option $1$help" | |
100 | echo "$me: invalid option $1$help" >&2 | |
92 | 101 | exit 1 ;; |
93 | 102 | |
94 | 103 | *local*) |
109 | 118 | exit 1;; |
110 | 119 | esac |
111 | 120 | |
112 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). | |
113 | # Here we must recognize all the valid KERNEL-OS combinations. | |
114 | maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | |
115 | case $maybe_os in | |
116 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ | |
117 | linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ | |
118 | knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ | |
119 | kopensolaris*-gnu* | cloudabi*-eabi* | \ | |
120 | storm-chaos* | os2-emx* | rtmk-nova*) | |
121 | os=-$maybe_os | |
122 | basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | |
123 | ;; | |
124 | android-linux) | |
125 | os=-linux-android | |
126 | basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
127 | ;; | |
128 | *) | |
129 | basic_machine=`echo "$1" | sed 's/-[^-]*$//'` | |
130 | if [ "$basic_machine" != "$1" ] | |
131 | then os=`echo "$1" | sed 's/.*-/-/'` | |
132 | else os=; fi | |
133 | ;; | |
121 | # Split fields of configuration type | |
122 | # shellcheck disable=SC2162 | |
123 | saved_IFS=$IFS | |
124 | IFS="-" read field1 field2 field3 field4 <<EOF | |
125 | $1 | |
126 | EOF | |
127 | IFS=$saved_IFS | |
128 | ||
129 | # Separate into logical components for further validation | |
130 | case $1 in | |
131 | *-*-*-*-*) | |
132 | echo Invalid configuration \`"$1"\': more than four components >&2 | |
133 | exit 1 | |
134 | ;; | |
135 | *-*-*-*) | |
136 | basic_machine=$field1-$field2 | |
137 | basic_os=$field3-$field4 | |
138 | ;; | |
139 | *-*-*) | |
140 | # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two | |
141 | # parts | |
142 | maybe_os=$field2-$field3 | |
143 | case $maybe_os in | |
144 | nto-qnx* | linux-* | uclinux-uclibc* \ | |
145 | | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ | |
146 | | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ | |
147 | | storm-chaos* | os2-emx* | rtmk-nova*) | |
148 | basic_machine=$field1 | |
149 | basic_os=$maybe_os | |
150 | ;; | |
151 | android-linux) | |
152 | basic_machine=$field1-unknown | |
153 | basic_os=linux-android | |
154 | ;; | |
155 | *) | |
156 | basic_machine=$field1-$field2 | |
157 | basic_os=$field3 | |
158 | ;; | |
159 | esac | |
160 | ;; | |
161 | *-*) | |
162 | # A lone config we happen to match not fitting any pattern | |
163 | case $field1-$field2 in | |
164 | decstation-3100) | |
165 | basic_machine=mips-dec | |
166 | basic_os= | |
167 | ;; | |
168 | *-*) | |
169 | # Second component is usually, but not always the OS | |
170 | case $field2 in | |
171 | # Prevent following clause from handling this valid os | |
172 | sun*os*) | |
173 | basic_machine=$field1 | |
174 | basic_os=$field2 | |
175 | ;; | |
176 | zephyr*) | |
177 | basic_machine=$field1-unknown | |
178 | basic_os=$field2 | |
179 | ;; | |
180 | # Manufacturers | |
181 | dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ | |
182 | | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ | |
183 | | unicom* | ibm* | next | hp | isi* | apollo | altos* \ | |
184 | | convergent* | ncr* | news | 32* | 3600* | 3100* \ | |
185 | | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ | |
186 | | ultra | tti* | harris | dolphin | highlevel | gould \ | |
187 | | cbm | ns | masscomp | apple | axis | knuth | cray \ | |
188 | | microblaze* | sim | cisco \ | |
189 | | oki | wec | wrs | winbond) | |
190 | basic_machine=$field1-$field2 | |
191 | basic_os= | |
192 | ;; | |
193 | *) | |
194 | basic_machine=$field1 | |
195 | basic_os=$field2 | |
196 | ;; | |
197 | esac | |
198 | ;; | |
199 | esac | |
200 | ;; | |
201 | *) | |
202 | # Convert single-component short-hands not valid as part of | |
203 | # multi-component configurations. | |
204 | case $field1 in | |
205 | 386bsd) | |
206 | basic_machine=i386-pc | |
207 | basic_os=bsd | |
208 | ;; | |
209 | a29khif) | |
210 | basic_machine=a29k-amd | |
211 | basic_os=udi | |
212 | ;; | |
213 | adobe68k) | |
214 | basic_machine=m68010-adobe | |
215 | basic_os=scout | |
216 | ;; | |
217 | alliant) | |
218 | basic_machine=fx80-alliant | |
219 | basic_os= | |
220 | ;; | |
221 | altos | altos3068) | |
222 | basic_machine=m68k-altos | |
223 | basic_os= | |
224 | ;; | |
225 | am29k) | |
226 | basic_machine=a29k-none | |
227 | basic_os=bsd | |
228 | ;; | |
229 | amdahl) | |
230 | basic_machine=580-amdahl | |
231 | basic_os=sysv | |
232 | ;; | |
233 | amiga) | |
234 | basic_machine=m68k-unknown | |
235 | basic_os= | |
236 | ;; | |
237 | amigaos | amigados) | |
238 | basic_machine=m68k-unknown | |
239 | basic_os=amigaos | |
240 | ;; | |
241 | amigaunix | amix) | |
242 | basic_machine=m68k-unknown | |
243 | basic_os=sysv4 | |
244 | ;; | |
245 | apollo68) | |
246 | basic_machine=m68k-apollo | |
247 | basic_os=sysv | |
248 | ;; | |
249 | apollo68bsd) | |
250 | basic_machine=m68k-apollo | |
251 | basic_os=bsd | |
252 | ;; | |
253 | aros) | |
254 | basic_machine=i386-pc | |
255 | basic_os=aros | |
256 | ;; | |
257 | aux) | |
258 | basic_machine=m68k-apple | |
259 | basic_os=aux | |
260 | ;; | |
261 | balance) | |
262 | basic_machine=ns32k-sequent | |
263 | basic_os=dynix | |
264 | ;; | |
265 | blackfin) | |
266 | basic_machine=bfin-unknown | |
267 | basic_os=linux | |
268 | ;; | |
269 | cegcc) | |
270 | basic_machine=arm-unknown | |
271 | basic_os=cegcc | |
272 | ;; | |
273 | convex-c1) | |
274 | basic_machine=c1-convex | |
275 | basic_os=bsd | |
276 | ;; | |
277 | convex-c2) | |
278 | basic_machine=c2-convex | |
279 | basic_os=bsd | |
280 | ;; | |
281 | convex-c32) | |
282 | basic_machine=c32-convex | |
283 | basic_os=bsd | |
284 | ;; | |
285 | convex-c34) | |
286 | basic_machine=c34-convex | |
287 | basic_os=bsd | |
288 | ;; | |
289 | convex-c38) | |
290 | basic_machine=c38-convex | |
291 | basic_os=bsd | |
292 | ;; | |
293 | cray) | |
294 | basic_machine=j90-cray | |
295 | basic_os=unicos | |
296 | ;; | |
297 | crds | unos) | |
298 | basic_machine=m68k-crds | |
299 | basic_os= | |
300 | ;; | |
301 | da30) | |
302 | basic_machine=m68k-da30 | |
303 | basic_os= | |
304 | ;; | |
305 | decstation | pmax | pmin | dec3100 | decstatn) | |
306 | basic_machine=mips-dec | |
307 | basic_os= | |
308 | ;; | |
309 | delta88) | |
310 | basic_machine=m88k-motorola | |
311 | basic_os=sysv3 | |
312 | ;; | |
313 | dicos) | |
314 | basic_machine=i686-pc | |
315 | basic_os=dicos | |
316 | ;; | |
317 | djgpp) | |
318 | basic_machine=i586-pc | |
319 | basic_os=msdosdjgpp | |
320 | ;; | |
321 | ebmon29k) | |
322 | basic_machine=a29k-amd | |
323 | basic_os=ebmon | |
324 | ;; | |
325 | es1800 | OSE68k | ose68k | ose | OSE) | |
326 | basic_machine=m68k-ericsson | |
327 | basic_os=ose | |
328 | ;; | |
329 | gmicro) | |
330 | basic_machine=tron-gmicro | |
331 | basic_os=sysv | |
332 | ;; | |
333 | go32) | |
334 | basic_machine=i386-pc | |
335 | basic_os=go32 | |
336 | ;; | |
337 | h8300hms) | |
338 | basic_machine=h8300-hitachi | |
339 | basic_os=hms | |
340 | ;; | |
341 | h8300xray) | |
342 | basic_machine=h8300-hitachi | |
343 | basic_os=xray | |
344 | ;; | |
345 | h8500hms) | |
346 | basic_machine=h8500-hitachi | |
347 | basic_os=hms | |
348 | ;; | |
349 | harris) | |
350 | basic_machine=m88k-harris | |
351 | basic_os=sysv3 | |
352 | ;; | |
353 | hp300 | hp300hpux) | |
354 | basic_machine=m68k-hp | |
355 | basic_os=hpux | |
356 | ;; | |
357 | hp300bsd) | |
358 | basic_machine=m68k-hp | |
359 | basic_os=bsd | |
360 | ;; | |
361 | hppaosf) | |
362 | basic_machine=hppa1.1-hp | |
363 | basic_os=osf | |
364 | ;; | |
365 | hppro) | |
366 | basic_machine=hppa1.1-hp | |
367 | basic_os=proelf | |
368 | ;; | |
369 | i386mach) | |
370 | basic_machine=i386-mach | |
371 | basic_os=mach | |
372 | ;; | |
373 | isi68 | isi) | |
374 | basic_machine=m68k-isi | |
375 | basic_os=sysv | |
376 | ;; | |
377 | m68knommu) | |
378 | basic_machine=m68k-unknown | |
379 | basic_os=linux | |
380 | ;; | |
381 | magnum | m3230) | |
382 | basic_machine=mips-mips | |
383 | basic_os=sysv | |
384 | ;; | |
385 | merlin) | |
386 | basic_machine=ns32k-utek | |
387 | basic_os=sysv | |
388 | ;; | |
389 | mingw64) | |
390 | basic_machine=x86_64-pc | |
391 | basic_os=mingw64 | |
392 | ;; | |
393 | mingw32) | |
394 | basic_machine=i686-pc | |
395 | basic_os=mingw32 | |
396 | ;; | |
397 | mingw32ce) | |
398 | basic_machine=arm-unknown | |
399 | basic_os=mingw32ce | |
400 | ;; | |
401 | monitor) | |
402 | basic_machine=m68k-rom68k | |
403 | basic_os=coff | |
404 | ;; | |
405 | morphos) | |
406 | basic_machine=powerpc-unknown | |
407 | basic_os=morphos | |
408 | ;; | |
409 | moxiebox) | |
410 | basic_machine=moxie-unknown | |
411 | basic_os=moxiebox | |
412 | ;; | |
413 | msdos) | |
414 | basic_machine=i386-pc | |
415 | basic_os=msdos | |
416 | ;; | |
417 | msys) | |
418 | basic_machine=i686-pc | |
419 | basic_os=msys | |
420 | ;; | |
421 | mvs) | |
422 | basic_machine=i370-ibm | |
423 | basic_os=mvs | |
424 | ;; | |
425 | nacl) | |
426 | basic_machine=le32-unknown | |
427 | basic_os=nacl | |
428 | ;; | |
429 | ncr3000) | |
430 | basic_machine=i486-ncr | |
431 | basic_os=sysv4 | |
432 | ;; | |
433 | netbsd386) | |
434 | basic_machine=i386-pc | |
435 | basic_os=netbsd | |
436 | ;; | |
437 | netwinder) | |
438 | basic_machine=armv4l-rebel | |
439 | basic_os=linux | |
440 | ;; | |
441 | news | news700 | news800 | news900) | |
442 | basic_machine=m68k-sony | |
443 | basic_os=newsos | |
444 | ;; | |
445 | news1000) | |
446 | basic_machine=m68030-sony | |
447 | basic_os=newsos | |
448 | ;; | |
449 | necv70) | |
450 | basic_machine=v70-nec | |
451 | basic_os=sysv | |
452 | ;; | |
453 | nh3000) | |
454 | basic_machine=m68k-harris | |
455 | basic_os=cxux | |
456 | ;; | |
457 | nh[45]000) | |
458 | basic_machine=m88k-harris | |
459 | basic_os=cxux | |
460 | ;; | |
461 | nindy960) | |
462 | basic_machine=i960-intel | |
463 | basic_os=nindy | |
464 | ;; | |
465 | mon960) | |
466 | basic_machine=i960-intel | |
467 | basic_os=mon960 | |
468 | ;; | |
469 | nonstopux) | |
470 | basic_machine=mips-compaq | |
471 | basic_os=nonstopux | |
472 | ;; | |
473 | os400) | |
474 | basic_machine=powerpc-ibm | |
475 | basic_os=os400 | |
476 | ;; | |
477 | OSE68000 | ose68000) | |
478 | basic_machine=m68000-ericsson | |
479 | basic_os=ose | |
480 | ;; | |
481 | os68k) | |
482 | basic_machine=m68k-none | |
483 | basic_os=os68k | |
484 | ;; | |
485 | paragon) | |
486 | basic_machine=i860-intel | |
487 | basic_os=osf | |
488 | ;; | |
489 | parisc) | |
490 | basic_machine=hppa-unknown | |
491 | basic_os=linux | |
492 | ;; | |
493 | psp) | |
494 | basic_machine=mipsallegrexel-sony | |
495 | basic_os=psp | |
496 | ;; | |
497 | pw32) | |
498 | basic_machine=i586-unknown | |
499 | basic_os=pw32 | |
500 | ;; | |
501 | rdos | rdos64) | |
502 | basic_machine=x86_64-pc | |
503 | basic_os=rdos | |
504 | ;; | |
505 | rdos32) | |
506 | basic_machine=i386-pc | |
507 | basic_os=rdos | |
508 | ;; | |
509 | rom68k) | |
510 | basic_machine=m68k-rom68k | |
511 | basic_os=coff | |
512 | ;; | |
513 | sa29200) | |
514 | basic_machine=a29k-amd | |
515 | basic_os=udi | |
516 | ;; | |
517 | sei) | |
518 | basic_machine=mips-sei | |
519 | basic_os=seiux | |
520 | ;; | |
521 | sequent) | |
522 | basic_machine=i386-sequent | |
523 | basic_os= | |
524 | ;; | |
525 | sps7) | |
526 | basic_machine=m68k-bull | |
527 | basic_os=sysv2 | |
528 | ;; | |
529 | st2000) | |
530 | basic_machine=m68k-tandem | |
531 | basic_os= | |
532 | ;; | |
533 | stratus) | |
534 | basic_machine=i860-stratus | |
535 | basic_os=sysv4 | |
536 | ;; | |
537 | sun2) | |
538 | basic_machine=m68000-sun | |
539 | basic_os= | |
540 | ;; | |
541 | sun2os3) | |
542 | basic_machine=m68000-sun | |
543 | basic_os=sunos3 | |
544 | ;; | |
545 | sun2os4) | |
546 | basic_machine=m68000-sun | |
547 | basic_os=sunos4 | |
548 | ;; | |
549 | sun3) | |
550 | basic_machine=m68k-sun | |
551 | basic_os= | |
552 | ;; | |
553 | sun3os3) | |
554 | basic_machine=m68k-sun | |
555 | basic_os=sunos3 | |
556 | ;; | |
557 | sun3os4) | |
558 | basic_machine=m68k-sun | |
559 | basic_os=sunos4 | |
560 | ;; | |
561 | sun4) | |
562 | basic_machine=sparc-sun | |
563 | basic_os= | |
564 | ;; | |
565 | sun4os3) | |
566 | basic_machine=sparc-sun | |
567 | basic_os=sunos3 | |
568 | ;; | |
569 | sun4os4) | |
570 | basic_machine=sparc-sun | |
571 | basic_os=sunos4 | |
572 | ;; | |
573 | sun4sol2) | |
574 | basic_machine=sparc-sun | |
575 | basic_os=solaris2 | |
576 | ;; | |
577 | sun386 | sun386i | roadrunner) | |
578 | basic_machine=i386-sun | |
579 | basic_os= | |
580 | ;; | |
581 | sv1) | |
582 | basic_machine=sv1-cray | |
583 | basic_os=unicos | |
584 | ;; | |
585 | symmetry) | |
586 | basic_machine=i386-sequent | |
587 | basic_os=dynix | |
588 | ;; | |
589 | t3e) | |
590 | basic_machine=alphaev5-cray | |
591 | basic_os=unicos | |
592 | ;; | |
593 | t90) | |
594 | basic_machine=t90-cray | |
595 | basic_os=unicos | |
596 | ;; | |
597 | toad1) | |
598 | basic_machine=pdp10-xkl | |
599 | basic_os=tops20 | |
600 | ;; | |
601 | tpf) | |
602 | basic_machine=s390x-ibm | |
603 | basic_os=tpf | |
604 | ;; | |
605 | udi29k) | |
606 | basic_machine=a29k-amd | |
607 | basic_os=udi | |
608 | ;; | |
609 | ultra3) | |
610 | basic_machine=a29k-nyu | |
611 | basic_os=sym1 | |
612 | ;; | |
613 | v810 | necv810) | |
614 | basic_machine=v810-nec | |
615 | basic_os=none | |
616 | ;; | |
617 | vaxv) | |
618 | basic_machine=vax-dec | |
619 | basic_os=sysv | |
620 | ;; | |
621 | vms) | |
622 | basic_machine=vax-dec | |
623 | basic_os=vms | |
624 | ;; | |
625 | vsta) | |
626 | basic_machine=i386-pc | |
627 | basic_os=vsta | |
628 | ;; | |
629 | vxworks960) | |
630 | basic_machine=i960-wrs | |
631 | basic_os=vxworks | |
632 | ;; | |
633 | vxworks68) | |
634 | basic_machine=m68k-wrs | |
635 | basic_os=vxworks | |
636 | ;; | |
637 | vxworks29k) | |
638 | basic_machine=a29k-wrs | |
639 | basic_os=vxworks | |
640 | ;; | |
641 | xbox) | |
642 | basic_machine=i686-pc | |
643 | basic_os=mingw32 | |
644 | ;; | |
645 | ymp) | |
646 | basic_machine=ymp-cray | |
647 | basic_os=unicos | |
648 | ;; | |
649 | *) | |
650 | basic_machine=$1 | |
651 | basic_os= | |
652 | ;; | |
653 | esac | |
654 | ;; | |
134 | 655 | esac |
135 | 656 | |
136 | ### Let's recognize common machines as not being operating systems so | |
137 | ### that things like config.sub decstation-3100 work. We also | |
138 | ### recognize some manufacturers as not being operating systems, so we | |
139 | ### can provide default operating systems below. | |
140 | case $os in | |
141 | -sun*os*) | |
142 | # Prevent following clause from handling this invalid input. | |
143 | ;; | |
144 | -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ | |
145 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ | |
146 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ | |
147 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ | |
148 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ | |
149 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ | |
150 | -apple | -axis | -knuth | -cray | -microblaze*) | |
151 | os= | |
152 | basic_machine=$1 | |
153 | ;; | |
154 | -bluegene*) | |
155 | os=-cnk | |
156 | ;; | |
157 | -sim | -cisco | -oki | -wec | -winbond) | |
158 | os= | |
159 | basic_machine=$1 | |
160 | ;; | |
161 | -scout) | |
162 | ;; | |
163 | -wrs) | |
164 | os=-vxworks | |
165 | basic_machine=$1 | |
166 | ;; | |
167 | -chorusos*) | |
168 | os=-chorusos | |
169 | basic_machine=$1 | |
170 | ;; | |
171 | -chorusrdb) | |
172 | os=-chorusrdb | |
173 | basic_machine=$1 | |
174 | ;; | |
175 | -hiux*) | |
176 | os=-hiuxwe2 | |
177 | ;; | |
178 | -sco6) | |
179 | os=-sco5v6 | |
180 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
181 | ;; | |
182 | -sco5) | |
183 | os=-sco3.2v5 | |
184 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
185 | ;; | |
186 | -sco4) | |
187 | os=-sco3.2v4 | |
188 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
189 | ;; | |
190 | -sco3.2.[4-9]*) | |
191 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` | |
192 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
193 | ;; | |
194 | -sco3.2v[4-9]*) | |
195 | # Don't forget version if it is 3.2v4 or newer. | |
196 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
197 | ;; | |
198 | -sco5v6*) | |
199 | # Don't forget version if it is 3.2v4 or newer. | |
200 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
201 | ;; | |
202 | -sco*) | |
203 | os=-sco3.2v2 | |
204 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
205 | ;; | |
206 | -udk*) | |
207 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
208 | ;; | |
209 | -isc) | |
210 | os=-isc2.2 | |
211 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
212 | ;; | |
213 | -clix*) | |
214 | basic_machine=clipper-intergraph | |
215 | ;; | |
216 | -isc*) | |
217 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
218 | ;; | |
219 | -lynx*178) | |
220 | os=-lynxos178 | |
221 | ;; | |
222 | -lynx*5) | |
223 | os=-lynxos5 | |
224 | ;; | |
225 | -lynx*) | |
226 | os=-lynxos | |
227 | ;; | |
228 | -ptx*) | |
229 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'` | |
230 | ;; | |
231 | -psos*) | |
232 | os=-psos | |
233 | ;; | |
234 | -mint | -mint[0-9]*) | |
235 | basic_machine=m68k-atari | |
236 | os=-mint | |
237 | ;; | |
238 | esac | |
239 | ||
240 | # Decode aliases for certain CPU-COMPANY combinations. | |
657 | # Decode 1-component or ad-hoc basic machines | |
241 | 658 | case $basic_machine in |
242 | # Recognize the basic CPU types without company name. | |
243 | # Some are omitted here because they have special meanings below. | |
244 | 1750a | 580 \ | |
245 | | a29k \ | |
246 | | aarch64 | aarch64_be \ | |
247 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | |
248 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | |
249 | | am33_2.0 \ | |
250 | | arc | arceb \ | |
251 | | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | |
252 | | avr | avr32 \ | |
253 | | ba \ | |
254 | | be32 | be64 \ | |
255 | | bfin \ | |
256 | | c4x | c8051 | clipper \ | |
257 | | d10v | d30v | dlx | dsp16xx \ | |
258 | | e2k | epiphany \ | |
259 | | fido | fr30 | frv | ft32 \ | |
260 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | |
261 | | hexagon \ | |
262 | | i370 | i860 | i960 | ia16 | ia64 \ | |
263 | | ip2k | iq2000 \ | |
264 | | k1om \ | |
265 | | le32 | le64 \ | |
266 | | lm32 \ | |
267 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ | |
268 | | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | |
269 | | mips | mipsbe | mipseb | mipsel | mipsle \ | |
270 | | mips16 \ | |
271 | | mips64 | mips64el \ | |
272 | | mips64octeon | mips64octeonel \ | |
273 | | mips64orion | mips64orionel \ | |
274 | | mips64r5900 | mips64r5900el \ | |
275 | | mips64vr | mips64vrel \ | |
276 | | mips64vr4100 | mips64vr4100el \ | |
277 | | mips64vr4300 | mips64vr4300el \ | |
278 | | mips64vr5000 | mips64vr5000el \ | |
279 | | mips64vr5900 | mips64vr5900el \ | |
280 | | mipsisa32 | mipsisa32el \ | |
281 | | mipsisa32r2 | mipsisa32r2el \ | |
282 | | mipsisa32r6 | mipsisa32r6el \ | |
283 | | mipsisa64 | mipsisa64el \ | |
284 | | mipsisa64r2 | mipsisa64r2el \ | |
285 | | mipsisa64r6 | mipsisa64r6el \ | |
286 | | mipsisa64sb1 | mipsisa64sb1el \ | |
287 | | mipsisa64sr71k | mipsisa64sr71kel \ | |
288 | | mipsr5900 | mipsr5900el \ | |
289 | | mipstx39 | mipstx39el \ | |
290 | | mn10200 | mn10300 \ | |
291 | | moxie \ | |
292 | | mt \ | |
293 | | msp430 \ | |
294 | | nds32 | nds32le | nds32be \ | |
295 | | nios | nios2 | nios2eb | nios2el \ | |
296 | | ns16k | ns32k \ | |
297 | | open8 | or1k | or1knd | or32 \ | |
298 | | pdp10 | pj | pjl \ | |
299 | | powerpc | powerpc64 | powerpc64le | powerpcle \ | |
300 | | pru \ | |
301 | | pyramid \ | |
302 | | riscv32 | riscv64 \ | |
303 | | rl78 | rx \ | |
304 | | score \ | |
305 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | |
306 | | sh64 | sh64le \ | |
307 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | |
308 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | |
309 | | spu \ | |
310 | | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | |
311 | | ubicom32 \ | |
312 | | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | |
313 | | visium \ | |
314 | | wasm32 \ | |
315 | | x86 | xc16x | xstormy16 | xtensa \ | |
316 | | z8k | z80) | |
317 | basic_machine=$basic_machine-unknown | |
318 | ;; | |
319 | c54x) | |
320 | basic_machine=tic54x-unknown | |
321 | ;; | |
322 | c55x) | |
323 | basic_machine=tic55x-unknown | |
324 | ;; | |
325 | c6x) | |
326 | basic_machine=tic6x-unknown | |
659 | # Here we handle the default manufacturer of certain CPU types. It is in | |
660 | # some cases the only manufacturer, in others, it is the most popular. | |
661 | w89k) | |
662 | cpu=hppa1.1 | |
663 | vendor=winbond | |
664 | ;; | |
665 | op50n) | |
666 | cpu=hppa1.1 | |
667 | vendor=oki | |
668 | ;; | |
669 | op60c) | |
670 | cpu=hppa1.1 | |
671 | vendor=oki | |
672 | ;; | |
673 | ibm*) | |
674 | cpu=i370 | |
675 | vendor=ibm | |
676 | ;; | |
677 | orion105) | |
678 | cpu=clipper | |
679 | vendor=highlevel | |
680 | ;; | |
681 | mac | mpw | mac-mpw) | |
682 | cpu=m68k | |
683 | vendor=apple | |
684 | ;; | |
685 | pmac | pmac-mpw) | |
686 | cpu=powerpc | |
687 | vendor=apple | |
688 | ;; | |
689 | ||
690 | # Recognize the various machine names and aliases which stand | |
691 | # for a CPU type and a company and sometimes even an OS. | |
692 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | |
693 | cpu=m68000 | |
694 | vendor=att | |
695 | ;; | |
696 | 3b*) | |
697 | cpu=we32k | |
698 | vendor=att | |
699 | ;; | |
700 | bluegene*) | |
701 | cpu=powerpc | |
702 | vendor=ibm | |
703 | basic_os=cnk | |
704 | ;; | |
705 | decsystem10* | dec10*) | |
706 | cpu=pdp10 | |
707 | vendor=dec | |
708 | basic_os=tops10 | |
709 | ;; | |
710 | decsystem20* | dec20*) | |
711 | cpu=pdp10 | |
712 | vendor=dec | |
713 | basic_os=tops20 | |
714 | ;; | |
715 | delta | 3300 | motorola-3300 | motorola-delta \ | |
716 | | 3300-motorola | delta-motorola) | |
717 | cpu=m68k | |
718 | vendor=motorola | |
719 | ;; | |
720 | dpx2*) | |
721 | cpu=m68k | |
722 | vendor=bull | |
723 | basic_os=sysv3 | |
724 | ;; | |
725 | encore | umax | mmax) | |
726 | cpu=ns32k | |
727 | vendor=encore | |
728 | ;; | |
729 | elxsi) | |
730 | cpu=elxsi | |
731 | vendor=elxsi | |
732 | basic_os=${basic_os:-bsd} | |
733 | ;; | |
734 | fx2800) | |
735 | cpu=i860 | |
736 | vendor=alliant | |
737 | ;; | |
738 | genix) | |
739 | cpu=ns32k | |
740 | vendor=ns | |
741 | ;; | |
742 | h3050r* | hiux*) | |
743 | cpu=hppa1.1 | |
744 | vendor=hitachi | |
745 | basic_os=hiuxwe2 | |
746 | ;; | |
747 | hp3k9[0-9][0-9] | hp9[0-9][0-9]) | |
748 | cpu=hppa1.0 | |
749 | vendor=hp | |
750 | ;; | |
751 | hp9k2[0-9][0-9] | hp9k31[0-9]) | |
752 | cpu=m68000 | |
753 | vendor=hp | |
754 | ;; | |
755 | hp9k3[2-9][0-9]) | |
756 | cpu=m68k | |
757 | vendor=hp | |
758 | ;; | |
759 | hp9k6[0-9][0-9] | hp6[0-9][0-9]) | |
760 | cpu=hppa1.0 | |
761 | vendor=hp | |
762 | ;; | |
763 | hp9k7[0-79][0-9] | hp7[0-79][0-9]) | |
764 | cpu=hppa1.1 | |
765 | vendor=hp | |
766 | ;; | |
767 | hp9k78[0-9] | hp78[0-9]) | |
768 | # FIXME: really hppa2.0-hp | |
769 | cpu=hppa1.1 | |
770 | vendor=hp | |
771 | ;; | |
772 | hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) | |
773 | # FIXME: really hppa2.0-hp | |
774 | cpu=hppa1.1 | |
775 | vendor=hp | |
776 | ;; | |
777 | hp9k8[0-9][13679] | hp8[0-9][13679]) | |
778 | cpu=hppa1.1 | |
779 | vendor=hp | |
780 | ;; | |
781 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) | |
782 | cpu=hppa1.0 | |
783 | vendor=hp | |
784 | ;; | |
785 | i*86v32) | |
786 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | |
787 | vendor=pc | |
788 | basic_os=sysv32 | |
789 | ;; | |
790 | i*86v4*) | |
791 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | |
792 | vendor=pc | |
793 | basic_os=sysv4 | |
794 | ;; | |
795 | i*86v) | |
796 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | |
797 | vendor=pc | |
798 | basic_os=sysv | |
799 | ;; | |
800 | i*86sol2) | |
801 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | |
802 | vendor=pc | |
803 | basic_os=solaris2 | |
804 | ;; | |
805 | j90 | j90-cray) | |
806 | cpu=j90 | |
807 | vendor=cray | |
808 | basic_os=${basic_os:-unicos} | |
809 | ;; | |
810 | iris | iris4d) | |
811 | cpu=mips | |
812 | vendor=sgi | |
813 | case $basic_os in | |
814 | irix*) | |
815 | ;; | |
816 | *) | |
817 | basic_os=irix4 | |
818 | ;; | |
819 | esac | |
820 | ;; | |
821 | miniframe) | |
822 | cpu=m68000 | |
823 | vendor=convergent | |
824 | ;; | |
825 | *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) | |
826 | cpu=m68k | |
827 | vendor=atari | |
828 | basic_os=mint | |
829 | ;; | |
830 | news-3600 | risc-news) | |
831 | cpu=mips | |
832 | vendor=sony | |
833 | basic_os=newsos | |
834 | ;; | |
835 | next | m*-next) | |
836 | cpu=m68k | |
837 | vendor=next | |
838 | case $basic_os in | |
839 | openstep*) | |
840 | ;; | |
841 | nextstep*) | |
842 | ;; | |
843 | ns2*) | |
844 | basic_os=nextstep2 | |
845 | ;; | |
846 | *) | |
847 | basic_os=nextstep3 | |
848 | ;; | |
849 | esac | |
850 | ;; | |
851 | np1) | |
852 | cpu=np1 | |
853 | vendor=gould | |
854 | ;; | |
855 | op50n-* | op60c-*) | |
856 | cpu=hppa1.1 | |
857 | vendor=oki | |
858 | basic_os=proelf | |
859 | ;; | |
860 | pa-hitachi) | |
861 | cpu=hppa1.1 | |
862 | vendor=hitachi | |
863 | basic_os=hiuxwe2 | |
864 | ;; | |
865 | pbd) | |
866 | cpu=sparc | |
867 | vendor=tti | |
868 | ;; | |
869 | pbb) | |
870 | cpu=m68k | |
871 | vendor=tti | |
872 | ;; | |
873 | pc532) | |
874 | cpu=ns32k | |
875 | vendor=pc532 | |
876 | ;; | |
877 | pn) | |
878 | cpu=pn | |
879 | vendor=gould | |
880 | ;; | |
881 | power) | |
882 | cpu=power | |
883 | vendor=ibm | |
884 | ;; | |
885 | ps2) | |
886 | cpu=i386 | |
887 | vendor=ibm | |
888 | ;; | |
889 | rm[46]00) | |
890 | cpu=mips | |
891 | vendor=siemens | |
892 | ;; | |
893 | rtpc | rtpc-*) | |
894 | cpu=romp | |
895 | vendor=ibm | |
896 | ;; | |
897 | sde) | |
898 | cpu=mipsisa32 | |
899 | vendor=sde | |
900 | basic_os=${basic_os:-elf} | |
901 | ;; | |
902 | simso-wrs) | |
903 | cpu=sparclite | |
904 | vendor=wrs | |
905 | basic_os=vxworks | |
906 | ;; | |
907 | tower | tower-32) | |
908 | cpu=m68k | |
909 | vendor=ncr | |
910 | ;; | |
911 | vpp*|vx|vx-*) | |
912 | cpu=f301 | |
913 | vendor=fujitsu | |
914 | ;; | |
915 | w65) | |
916 | cpu=w65 | |
917 | vendor=wdc | |
918 | ;; | |
919 | w89k-*) | |
920 | cpu=hppa1.1 | |
921 | vendor=winbond | |
922 | basic_os=proelf | |
923 | ;; | |
924 | none) | |
925 | cpu=none | |
926 | vendor=none | |
327 | 927 | ;; |
328 | 928 | leon|leon[3-9]) |
329 | basic_machine=sparc-$basic_machine | |
330 | ;; | |
331 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) | |
332 | basic_machine=$basic_machine-unknown | |
333 | os=-none | |
334 | ;; | |
335 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) | |
336 | ;; | |
337 | ms1) | |
338 | basic_machine=mt-unknown | |
339 | ;; | |
340 | ||
341 | strongarm | thumb | xscale) | |
342 | basic_machine=arm-unknown | |
343 | ;; | |
344 | xgate) | |
345 | basic_machine=$basic_machine-unknown | |
346 | os=-none | |
347 | ;; | |
348 | xscaleeb) | |
349 | basic_machine=armeb-unknown | |
350 | ;; | |
351 | ||
352 | xscaleel) | |
353 | basic_machine=armel-unknown | |
354 | ;; | |
355 | ||
929 | cpu=sparc | |
930 | vendor=$basic_machine | |
931 | ;; | |
932 | leon-*|leon[3-9]-*) | |
933 | cpu=sparc | |
934 | vendor=`echo "$basic_machine" | sed 's/-.*//'` | |
935 | ;; | |
936 | ||
937 | *-*) | |
938 | # shellcheck disable=SC2162 | |
939 | saved_IFS=$IFS | |
940 | IFS="-" read cpu vendor <<EOF | |
941 | $basic_machine | |
942 | EOF | |
943 | IFS=$saved_IFS | |
944 | ;; | |
356 | 945 | # We use `pc' rather than `unknown' |
357 | 946 | # because (1) that's what they normally are, and |
358 | 947 | # (2) the word "unknown" tends to confuse beginning users. |
359 | 948 | i*86 | x86_64) |
360 | basic_machine=$basic_machine-pc | |
361 | ;; | |
362 | # Object if more than one company name word. | |
363 | *-*-*) | |
364 | echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 | |
365 | exit 1 | |
366 | ;; | |
367 | # Recognize the basic CPU types with company name. | |
368 | 580-* \ | |
369 | | a29k-* \ | |
370 | | aarch64-* | aarch64_be-* \ | |
371 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | |
372 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | |
373 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | |
374 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | |
375 | | avr-* | avr32-* \ | |
376 | | ba-* \ | |
377 | | be32-* | be64-* \ | |
378 | | bfin-* | bs2000-* \ | |
379 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ | |
380 | | c8051-* | clipper-* | craynv-* | cydra-* \ | |
381 | | d10v-* | d30v-* | dlx-* \ | |
382 | | e2k-* | elxsi-* \ | |
383 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | |
384 | | h8300-* | h8500-* \ | |
385 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | |
386 | | hexagon-* \ | |
387 | | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ | |
388 | | ip2k-* | iq2000-* \ | |
389 | | k1om-* \ | |
390 | | le32-* | le64-* \ | |
391 | | lm32-* \ | |
392 | | m32c-* | m32r-* | m32rle-* \ | |
393 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | |
394 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | |
395 | | microblaze-* | microblazeel-* \ | |
396 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | |
397 | | mips16-* \ | |
398 | | mips64-* | mips64el-* \ | |
399 | | mips64octeon-* | mips64octeonel-* \ | |
400 | | mips64orion-* | mips64orionel-* \ | |
401 | | mips64r5900-* | mips64r5900el-* \ | |
402 | | mips64vr-* | mips64vrel-* \ | |
403 | | mips64vr4100-* | mips64vr4100el-* \ | |
404 | | mips64vr4300-* | mips64vr4300el-* \ | |
405 | | mips64vr5000-* | mips64vr5000el-* \ | |
406 | | mips64vr5900-* | mips64vr5900el-* \ | |
407 | | mipsisa32-* | mipsisa32el-* \ | |
408 | | mipsisa32r2-* | mipsisa32r2el-* \ | |
409 | | mipsisa32r6-* | mipsisa32r6el-* \ | |
410 | | mipsisa64-* | mipsisa64el-* \ | |
411 | | mipsisa64r2-* | mipsisa64r2el-* \ | |
412 | | mipsisa64r6-* | mipsisa64r6el-* \ | |
413 | | mipsisa64sb1-* | mipsisa64sb1el-* \ | |
414 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | |
415 | | mipsr5900-* | mipsr5900el-* \ | |
416 | | mipstx39-* | mipstx39el-* \ | |
417 | | mmix-* \ | |
418 | | mt-* \ | |
419 | | msp430-* \ | |
420 | | nds32-* | nds32le-* | nds32be-* \ | |
421 | | nios-* | nios2-* | nios2eb-* | nios2el-* \ | |
422 | | none-* | np1-* | ns16k-* | ns32k-* \ | |
423 | | open8-* \ | |
424 | | or1k*-* \ | |
425 | | orion-* \ | |
426 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | |
427 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | |
428 | | pru-* \ | |
429 | | pyramid-* \ | |
430 | | riscv32-* | riscv64-* \ | |
431 | | rl78-* | romp-* | rs6000-* | rx-* \ | |
432 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | |
433 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | |
434 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | |
435 | | sparclite-* \ | |
436 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ | |
437 | | tahoe-* \ | |
438 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | |
439 | | tile*-* \ | |
440 | | tron-* \ | |
441 | | ubicom32-* \ | |
442 | | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | |
443 | | vax-* \ | |
444 | | visium-* \ | |
445 | | wasm32-* \ | |
446 | | we32k-* \ | |
447 | | x86-* | x86_64-* | xc16x-* | xps100-* \ | |
448 | | xstormy16-* | xtensa*-* \ | |
449 | | ymp-* \ | |
450 | | z8k-* | z80-*) | |
451 | ;; | |
452 | # Recognize the basic CPU types without company name, with glob match. | |
453 | xtensa*) | |
454 | basic_machine=$basic_machine-unknown | |
455 | ;; | |
456 | # Recognize the various machine names and aliases which stand | |
457 | # for a CPU type and a company and sometimes even an OS. | |
458 | 386bsd) | |
459 | basic_machine=i386-pc | |
460 | os=-bsd | |
461 | ;; | |
462 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | |
463 | basic_machine=m68000-att | |
464 | ;; | |
465 | 3b*) | |
466 | basic_machine=we32k-att | |
467 | ;; | |
468 | a29khif) | |
469 | basic_machine=a29k-amd | |
470 | os=-udi | |
471 | ;; | |
472 | abacus) | |
473 | basic_machine=abacus-unknown | |
474 | ;; | |
475 | adobe68k) | |
476 | basic_machine=m68010-adobe | |
477 | os=-scout | |
478 | ;; | |
479 | alliant | fx80) | |
480 | basic_machine=fx80-alliant | |
481 | ;; | |
482 | altos | altos3068) | |
483 | basic_machine=m68k-altos | |
484 | ;; | |
485 | am29k) | |
486 | basic_machine=a29k-none | |
487 | os=-bsd | |
488 | ;; | |
489 | amd64) | |
490 | basic_machine=x86_64-pc | |
491 | ;; | |
949 | cpu=$basic_machine | |
950 | vendor=pc | |
951 | ;; | |
952 | # These rules are duplicated from below for sake of the special case above; | |
953 | # i.e. things that normalized to x86 arches should also default to "pc" | |
954 | pc98) | |
955 | cpu=i386 | |
956 | vendor=pc | |
957 | ;; | |
958 | x64 | amd64) | |
959 | cpu=x86_64 | |
960 | vendor=pc | |
961 | ;; | |
962 | # Recognize the basic CPU types without company name. | |
963 | *) | |
964 | cpu=$basic_machine | |
965 | vendor=unknown | |
966 | ;; | |
967 | esac | |
968 | ||
969 | unset -v basic_machine | |
970 | ||
971 | # Decode basic machines in the full and proper CPU-Company form. | |
972 | case $cpu-$vendor in | |
973 | # Here we handle the default manufacturer of certain CPU types in canonical form. It is in | |
974 | # some cases the only manufacturer, in others, it is the most popular. | |
975 | craynv-unknown) | |
976 | vendor=cray | |
977 | basic_os=${basic_os:-unicosmp} | |
978 | ;; | |
979 | c90-unknown | c90-cray) | |
980 | vendor=cray | |
981 | basic_os=${Basic_os:-unicos} | |
982 | ;; | |
983 | fx80-unknown) | |
984 | vendor=alliant | |
985 | ;; | |
986 | romp-unknown) | |
987 | vendor=ibm | |
988 | ;; | |
989 | mmix-unknown) | |
990 | vendor=knuth | |
991 | ;; | |
992 | microblaze-unknown | microblazeel-unknown) | |
993 | vendor=xilinx | |
994 | ;; | |
995 | rs6000-unknown) | |
996 | vendor=ibm | |
997 | ;; | |
998 | vax-unknown) | |
999 | vendor=dec | |
1000 | ;; | |
1001 | pdp11-unknown) | |
1002 | vendor=dec | |
1003 | ;; | |
1004 | we32k-unknown) | |
1005 | vendor=att | |
1006 | ;; | |
1007 | cydra-unknown) | |
1008 | vendor=cydrome | |
1009 | ;; | |
1010 | i370-ibm*) | |
1011 | vendor=ibm | |
1012 | ;; | |
1013 | orion-unknown) | |
1014 | vendor=highlevel | |
1015 | ;; | |
1016 | xps-unknown | xps100-unknown) | |
1017 | cpu=xps100 | |
1018 | vendor=honeywell | |
1019 | ;; | |
1020 | ||
1021 | # Here we normalize CPU types with a missing or matching vendor | |
1022 | armh-unknown | armh-alt) | |
1023 | cpu=armv7l | |
1024 | vendor=alt | |
1025 | basic_os=${basic_os:-linux-gnueabihf} | |
1026 | ;; | |
1027 | dpx20-unknown | dpx20-bull) | |
1028 | cpu=rs6000 | |
1029 | vendor=bull | |
1030 | basic_os=${basic_os:-bosx} | |
1031 | ;; | |
1032 | ||
1033 | # Here we normalize CPU types irrespective of the vendor | |
492 | 1034 | amd64-*) |
493 | basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
494 | ;; | |
495 | amdahl) | |
496 | basic_machine=580-amdahl | |
497 | os=-sysv | |
498 | ;; | |
499 | amiga | amiga-*) | |
500 | basic_machine=m68k-unknown | |
501 | ;; | |
502 | amigaos | amigados) | |
503 | basic_machine=m68k-unknown | |
504 | os=-amigaos | |
505 | ;; | |
506 | amigaunix | amix) | |
507 | basic_machine=m68k-unknown | |
508 | os=-sysv4 | |
509 | ;; | |
510 | apollo68) | |
511 | basic_machine=m68k-apollo | |
512 | os=-sysv | |
513 | ;; | |
514 | apollo68bsd) | |
515 | basic_machine=m68k-apollo | |
516 | os=-bsd | |
517 | ;; | |
518 | aros) | |
519 | basic_machine=i386-pc | |
520 | os=-aros | |
521 | ;; | |
522 | asmjs) | |
523 | basic_machine=asmjs-unknown | |
524 | ;; | |
525 | aux) | |
526 | basic_machine=m68k-apple | |
527 | os=-aux | |
528 | ;; | |
529 | balance) | |
530 | basic_machine=ns32k-sequent | |
531 | os=-dynix | |
532 | ;; | |
533 | blackfin) | |
534 | basic_machine=bfin-unknown | |
535 | os=-linux | |
1035 | cpu=x86_64 | |
536 | 1036 | ;; |
537 | 1037 | blackfin-*) |
538 | basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
539 | os=-linux | |
540 | ;; | |
541 | bluegene*) | |
542 | basic_machine=powerpc-ibm | |
543 | os=-cnk | |
1038 | cpu=bfin | |
1039 | basic_os=linux | |
544 | 1040 | ;; |
545 | 1041 | c54x-*) |
546 | basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1042 | cpu=tic54x | |
547 | 1043 | ;; |
548 | 1044 | c55x-*) |
549 | basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1045 | cpu=tic55x | |
550 | 1046 | ;; |
551 | 1047 | c6x-*) |
552 | basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
553 | ;; | |
554 | c90) | |
555 | basic_machine=c90-cray | |
556 | os=-unicos | |
557 | ;; | |
558 | cegcc) | |
559 | basic_machine=arm-unknown | |
560 | os=-cegcc | |
561 | ;; | |
562 | convex-c1) | |
563 | basic_machine=c1-convex | |
564 | os=-bsd | |
565 | ;; | |
566 | convex-c2) | |
567 | basic_machine=c2-convex | |
568 | os=-bsd | |
569 | ;; | |
570 | convex-c32) | |
571 | basic_machine=c32-convex | |
572 | os=-bsd | |
573 | ;; | |
574 | convex-c34) | |
575 | basic_machine=c34-convex | |
576 | os=-bsd | |
577 | ;; | |
578 | convex-c38) | |
579 | basic_machine=c38-convex | |
580 | os=-bsd | |
581 | ;; | |
582 | cray | j90) | |
583 | basic_machine=j90-cray | |
584 | os=-unicos | |
585 | ;; | |
586 | craynv) | |
587 | basic_machine=craynv-cray | |
588 | os=-unicosmp | |
589 | ;; | |
590 | cr16 | cr16-*) | |
591 | basic_machine=cr16-unknown | |
592 | os=-elf | |
593 | ;; | |
594 | crds | unos) | |
595 | basic_machine=m68k-crds | |
596 | ;; | |
597 | crisv32 | crisv32-* | etraxfs*) | |
598 | basic_machine=crisv32-axis | |
599 | ;; | |
600 | cris | cris-* | etrax*) | |
601 | basic_machine=cris-axis | |
602 | ;; | |
603 | crx) | |
604 | basic_machine=crx-unknown | |
605 | os=-elf | |
606 | ;; | |
607 | da30 | da30-*) | |
608 | basic_machine=m68k-da30 | |
609 | ;; | |
610 | decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) | |
611 | basic_machine=mips-dec | |
612 | ;; | |
613 | decsystem10* | dec10*) | |
614 | basic_machine=pdp10-dec | |
615 | os=-tops10 | |
616 | ;; | |
617 | decsystem20* | dec20*) | |
618 | basic_machine=pdp10-dec | |
619 | os=-tops20 | |
620 | ;; | |
621 | delta | 3300 | motorola-3300 | motorola-delta \ | |
622 | | 3300-motorola | delta-motorola) | |
623 | basic_machine=m68k-motorola | |
624 | ;; | |
625 | delta88) | |
626 | basic_machine=m88k-motorola | |
627 | os=-sysv3 | |
628 | ;; | |
629 | dicos) | |
630 | basic_machine=i686-pc | |
631 | os=-dicos | |
632 | ;; | |
633 | djgpp) | |
634 | basic_machine=i586-pc | |
635 | os=-msdosdjgpp | |
636 | ;; | |
637 | dpx20 | dpx20-*) | |
638 | basic_machine=rs6000-bull | |
639 | os=-bosx | |
640 | ;; | |
641 | dpx2*) | |
642 | basic_machine=m68k-bull | |
643 | os=-sysv3 | |
644 | ;; | |
645 | e500v[12]) | |
646 | basic_machine=powerpc-unknown | |
647 | os=$os"spe" | |
1048 | cpu=tic6x | |
648 | 1049 | ;; |
649 | 1050 | e500v[12]-*) |
650 | basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
651 | os=$os"spe" | |
652 | ;; | |
653 | ebmon29k) | |
654 | basic_machine=a29k-amd | |
655 | os=-ebmon | |
656 | ;; | |
657 | elxsi) | |
658 | basic_machine=elxsi-elxsi | |
659 | os=-bsd | |
660 | ;; | |
661 | encore | umax | mmax) | |
662 | basic_machine=ns32k-encore | |
663 | ;; | |
664 | es1800 | OSE68k | ose68k | ose | OSE) | |
665 | basic_machine=m68k-ericsson | |
666 | os=-ose | |
667 | ;; | |
668 | fx2800) | |
669 | basic_machine=i860-alliant | |
670 | ;; | |
671 | genix) | |
672 | basic_machine=ns32k-ns | |
673 | ;; | |
674 | gmicro) | |
675 | basic_machine=tron-gmicro | |
676 | os=-sysv | |
677 | ;; | |
678 | go32) | |
679 | basic_machine=i386-pc | |
680 | os=-go32 | |
681 | ;; | |
682 | h3050r* | hiux*) | |
683 | basic_machine=hppa1.1-hitachi | |
684 | os=-hiuxwe2 | |
685 | ;; | |
686 | h8300hms) | |
687 | basic_machine=h8300-hitachi | |
688 | os=-hms | |
689 | ;; | |
690 | h8300xray) | |
691 | basic_machine=h8300-hitachi | |
692 | os=-xray | |
693 | ;; | |
694 | h8500hms) | |
695 | basic_machine=h8500-hitachi | |
696 | os=-hms | |
697 | ;; | |
698 | harris) | |
699 | basic_machine=m88k-harris | |
700 | os=-sysv3 | |
701 | ;; | |
702 | hp300-*) | |
703 | basic_machine=m68k-hp | |
704 | ;; | |
705 | hp300bsd) | |
706 | basic_machine=m68k-hp | |
707 | os=-bsd | |
708 | ;; | |
709 | hp300hpux) | |
710 | basic_machine=m68k-hp | |
711 | os=-hpux | |
712 | ;; | |
713 | hp3k9[0-9][0-9] | hp9[0-9][0-9]) | |
714 | basic_machine=hppa1.0-hp | |
715 | ;; | |
716 | hp9k2[0-9][0-9] | hp9k31[0-9]) | |
717 | basic_machine=m68000-hp | |
718 | ;; | |
719 | hp9k3[2-9][0-9]) | |
720 | basic_machine=m68k-hp | |
721 | ;; | |
722 | hp9k6[0-9][0-9] | hp6[0-9][0-9]) | |
723 | basic_machine=hppa1.0-hp | |
724 | ;; | |
725 | hp9k7[0-79][0-9] | hp7[0-79][0-9]) | |
726 | basic_machine=hppa1.1-hp | |
727 | ;; | |
728 | hp9k78[0-9] | hp78[0-9]) | |
729 | # FIXME: really hppa2.0-hp | |
730 | basic_machine=hppa1.1-hp | |
731 | ;; | |
732 | hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) | |
733 | # FIXME: really hppa2.0-hp | |
734 | basic_machine=hppa1.1-hp | |
735 | ;; | |
736 | hp9k8[0-9][13679] | hp8[0-9][13679]) | |
737 | basic_machine=hppa1.1-hp | |
738 | ;; | |
739 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) | |
740 | basic_machine=hppa1.0-hp | |
741 | ;; | |
742 | hppaosf) | |
743 | basic_machine=hppa1.1-hp | |
744 | os=-osf | |
745 | ;; | |
746 | hppro) | |
747 | basic_machine=hppa1.1-hp | |
748 | os=-proelf | |
749 | ;; | |
750 | i370-ibm* | ibm*) | |
751 | basic_machine=i370-ibm | |
752 | ;; | |
753 | i*86v32) | |
754 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
755 | os=-sysv32 | |
756 | ;; | |
757 | i*86v4*) | |
758 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
759 | os=-sysv4 | |
760 | ;; | |
761 | i*86v) | |
762 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
763 | os=-sysv | |
764 | ;; | |
765 | i*86sol2) | |
766 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
767 | os=-solaris2 | |
768 | ;; | |
769 | i386mach) | |
770 | basic_machine=i386-mach | |
771 | os=-mach | |
772 | ;; | |
773 | vsta) | |
774 | basic_machine=i386-unknown | |
775 | os=-vsta | |
776 | ;; | |
777 | iris | iris4d) | |
778 | basic_machine=mips-sgi | |
779 | case $os in | |
780 | -irix*) | |
781 | ;; | |
782 | *) | |
783 | os=-irix4 | |
784 | ;; | |
1051 | cpu=powerpc | |
1052 | basic_os=${basic_os}"spe" | |
1053 | ;; | |
1054 | mips3*-*) | |
1055 | cpu=mips64 | |
1056 | ;; | |
1057 | ms1-*) | |
1058 | cpu=mt | |
1059 | ;; | |
1060 | m68knommu-*) | |
1061 | cpu=m68k | |
1062 | basic_os=linux | |
1063 | ;; | |
1064 | m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*) | |
1065 | cpu=s12z | |
1066 | ;; | |
1067 | openrisc-*) | |
1068 | cpu=or32 | |
1069 | ;; | |
1070 | parisc-*) | |
1071 | cpu=hppa | |
1072 | basic_os=linux | |
1073 | ;; | |
1074 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) | |
1075 | cpu=i586 | |
1076 | ;; | |
1077 | pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*) | |
1078 | cpu=i686 | |
1079 | ;; | |
1080 | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) | |
1081 | cpu=i686 | |
1082 | ;; | |
1083 | pentium4-*) | |
1084 | cpu=i786 | |
1085 | ;; | |
1086 | pc98-*) | |
1087 | cpu=i386 | |
1088 | ;; | |
1089 | ppc-* | ppcbe-*) | |
1090 | cpu=powerpc | |
1091 | ;; | |
1092 | ppcle-* | powerpclittle-*) | |
1093 | cpu=powerpcle | |
1094 | ;; | |
1095 | ppc64-*) | |
1096 | cpu=powerpc64 | |
1097 | ;; | |
1098 | ppc64le-* | powerpc64little-*) | |
1099 | cpu=powerpc64le | |
1100 | ;; | |
1101 | sb1-*) | |
1102 | cpu=mipsisa64sb1 | |
1103 | ;; | |
1104 | sb1el-*) | |
1105 | cpu=mipsisa64sb1el | |
1106 | ;; | |
1107 | sh5e[lb]-*) | |
1108 | cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'` | |
1109 | ;; | |
1110 | spur-*) | |
1111 | cpu=spur | |
1112 | ;; | |
1113 | strongarm-* | thumb-*) | |
1114 | cpu=arm | |
1115 | ;; | |
1116 | tx39-*) | |
1117 | cpu=mipstx39 | |
1118 | ;; | |
1119 | tx39el-*) | |
1120 | cpu=mipstx39el | |
1121 | ;; | |
1122 | x64-*) | |
1123 | cpu=x86_64 | |
1124 | ;; | |
1125 | xscale-* | xscalee[bl]-*) | |
1126 | cpu=`echo "$cpu" | sed 's/^xscale/arm/'` | |
1127 | ;; | |
1128 | arm64-* | aarch64le-*) | |
1129 | cpu=aarch64 | |
1130 | ;; | |
1131 | ||
1132 | # Recognize the canonical CPU Types that limit and/or modify the | |
1133 | # company names they are paired with. | |
1134 | cr16-*) | |
1135 | basic_os=${basic_os:-elf} | |
1136 | ;; | |
1137 | crisv32-* | etraxfs*-*) | |
1138 | cpu=crisv32 | |
1139 | vendor=axis | |
1140 | ;; | |
1141 | cris-* | etrax*-*) | |
1142 | cpu=cris | |
1143 | vendor=axis | |
1144 | ;; | |
1145 | crx-*) | |
1146 | basic_os=${basic_os:-elf} | |
1147 | ;; | |
1148 | neo-tandem) | |
1149 | cpu=neo | |
1150 | vendor=tandem | |
1151 | ;; | |
1152 | nse-tandem) | |
1153 | cpu=nse | |
1154 | vendor=tandem | |
1155 | ;; | |
1156 | nsr-tandem) | |
1157 | cpu=nsr | |
1158 | vendor=tandem | |
1159 | ;; | |
1160 | nsv-tandem) | |
1161 | cpu=nsv | |
1162 | vendor=tandem | |
1163 | ;; | |
1164 | nsx-tandem) | |
1165 | cpu=nsx | |
1166 | vendor=tandem | |
1167 | ;; | |
1168 | mipsallegrexel-sony) | |
1169 | cpu=mipsallegrexel | |
1170 | vendor=sony | |
1171 | ;; | |
1172 | tile*-*) | |
1173 | basic_os=${basic_os:-linux-gnu} | |
1174 | ;; | |
1175 | ||
1176 | *) | |
1177 | # Recognize the canonical CPU types that are allowed with any | |
1178 | # company name. | |
1179 | case $cpu in | |
1180 | 1750a | 580 \ | |
1181 | | a29k \ | |
1182 | | aarch64 | aarch64_be \ | |
1183 | | abacus \ | |
1184 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \ | |
1185 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \ | |
1186 | | alphapca5[67] | alpha64pca5[67] \ | |
1187 | | am33_2.0 \ | |
1188 | | amdgcn \ | |
1189 | | arc | arceb | arc32 | arc64 \ | |
1190 | | arm | arm[lb]e | arme[lb] | armv* \ | |
1191 | | avr | avr32 \ | |
1192 | | asmjs \ | |
1193 | | ba \ | |
1194 | | be32 | be64 \ | |
1195 | | bfin | bpf | bs2000 \ | |
1196 | | c[123]* | c30 | [cjt]90 | c4x \ | |
1197 | | c8051 | clipper | craynv | csky | cydra \ | |
1198 | | d10v | d30v | dlx | dsp16xx \ | |
1199 | | e2k | elxsi | epiphany \ | |
1200 | | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \ | |
1201 | | h8300 | h8500 \ | |
1202 | | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | |
1203 | | hexagon \ | |
1204 | | i370 | i*86 | i860 | i960 | ia16 | ia64 \ | |
1205 | | ip2k | iq2000 \ | |
1206 | | k1om \ | |
1207 | | le32 | le64 \ | |
1208 | | lm32 \ | |
1209 | | loongarch32 | loongarch64 | loongarchx32 \ | |
1210 | | m32c | m32r | m32rle \ | |
1211 | | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \ | |
1212 | | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \ | |
1213 | | m88110 | m88k | maxq | mb | mcore | mep | metag \ | |
1214 | | microblaze | microblazeel \ | |
1215 | | mips | mipsbe | mipseb | mipsel | mipsle \ | |
1216 | | mips16 \ | |
1217 | | mips64 | mips64eb | mips64el \ | |
1218 | | mips64octeon | mips64octeonel \ | |
1219 | | mips64orion | mips64orionel \ | |
1220 | | mips64r5900 | mips64r5900el \ | |
1221 | | mips64vr | mips64vrel \ | |
1222 | | mips64vr4100 | mips64vr4100el \ | |
1223 | | mips64vr4300 | mips64vr4300el \ | |
1224 | | mips64vr5000 | mips64vr5000el \ | |
1225 | | mips64vr5900 | mips64vr5900el \ | |
1226 | | mipsisa32 | mipsisa32el \ | |
1227 | | mipsisa32r2 | mipsisa32r2el \ | |
1228 | | mipsisa32r3 | mipsisa32r3el \ | |
1229 | | mipsisa32r5 | mipsisa32r5el \ | |
1230 | | mipsisa32r6 | mipsisa32r6el \ | |
1231 | | mipsisa64 | mipsisa64el \ | |
1232 | | mipsisa64r2 | mipsisa64r2el \ | |
1233 | | mipsisa64r3 | mipsisa64r3el \ | |
1234 | | mipsisa64r5 | mipsisa64r5el \ | |
1235 | | mipsisa64r6 | mipsisa64r6el \ | |
1236 | | mipsisa64sb1 | mipsisa64sb1el \ | |
1237 | | mipsisa64sr71k | mipsisa64sr71kel \ | |
1238 | | mipsr5900 | mipsr5900el \ | |
1239 | | mipstx39 | mipstx39el \ | |
1240 | | mmix \ | |
1241 | | mn10200 | mn10300 \ | |
1242 | | moxie \ | |
1243 | | mt \ | |
1244 | | msp430 \ | |
1245 | | nds32 | nds32le | nds32be \ | |
1246 | | nfp \ | |
1247 | | nios | nios2 | nios2eb | nios2el \ | |
1248 | | none | np1 | ns16k | ns32k | nvptx \ | |
1249 | | open8 \ | |
1250 | | or1k* \ | |
1251 | | or32 \ | |
1252 | | orion \ | |
1253 | | picochip \ | |
1254 | | pdp10 | pdp11 | pj | pjl | pn | power \ | |
1255 | | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \ | |
1256 | | pru \ | |
1257 | | pyramid \ | |
1258 | | riscv | riscv32 | riscv32be | riscv64 | riscv64be \ | |
1259 | | rl78 | romp | rs6000 | rx \ | |
1260 | | s390 | s390x \ | |
1261 | | score \ | |
1262 | | sh | shl \ | |
1263 | | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \ | |
1264 | | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \ | |
1265 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \ | |
1266 | | sparclite \ | |
1267 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \ | |
1268 | | spu \ | |
1269 | | tahoe \ | |
1270 | | thumbv7* \ | |
1271 | | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \ | |
1272 | | tron \ | |
1273 | | ubicom32 \ | |
1274 | | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \ | |
1275 | | vax \ | |
1276 | | visium \ | |
1277 | | w65 \ | |
1278 | | wasm32 | wasm64 \ | |
1279 | | we32k \ | |
1280 | | x86 | x86_64 | xc16x | xgate | xps100 \ | |
1281 | | xstormy16 | xtensa* \ | |
1282 | | ymp \ | |
1283 | | z8k | z80) | |
1284 | ;; | |
1285 | ||
1286 | *) | |
1287 | echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2 | |
1288 | exit 1 | |
1289 | ;; | |
785 | 1290 | esac |
786 | 1291 | ;; |
787 | isi68 | isi) | |
788 | basic_machine=m68k-isi | |
789 | os=-sysv | |
790 | ;; | |
791 | leon-*|leon[3-9]-*) | |
792 | basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` | |
793 | ;; | |
794 | m68knommu) | |
795 | basic_machine=m68k-unknown | |
796 | os=-linux | |
797 | ;; | |
798 | m68knommu-*) | |
799 | basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
800 | os=-linux | |
801 | ;; | |
802 | magnum | m3230) | |
803 | basic_machine=mips-mips | |
804 | os=-sysv | |
805 | ;; | |
806 | merlin) | |
807 | basic_machine=ns32k-utek | |
808 | os=-sysv | |
809 | ;; | |
810 | microblaze*) | |
811 | basic_machine=microblaze-xilinx | |
812 | ;; | |
813 | mingw64) | |
814 | basic_machine=x86_64-pc | |
815 | os=-mingw64 | |
816 | ;; | |
817 | mingw32) | |
818 | basic_machine=i686-pc | |
819 | os=-mingw32 | |
820 | ;; | |
821 | mingw32ce) | |
822 | basic_machine=arm-unknown | |
823 | os=-mingw32ce | |
824 | ;; | |
825 | miniframe) | |
826 | basic_machine=m68000-convergent | |
827 | ;; | |
828 | *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) | |
829 | basic_machine=m68k-atari | |
830 | os=-mint | |
831 | ;; | |
832 | mips3*-*) | |
833 | basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` | |
834 | ;; | |
835 | mips3*) | |
836 | basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown | |
837 | ;; | |
838 | monitor) | |
839 | basic_machine=m68k-rom68k | |
840 | os=-coff | |
841 | ;; | |
842 | morphos) | |
843 | basic_machine=powerpc-unknown | |
844 | os=-morphos | |
845 | ;; | |
846 | moxiebox) | |
847 | basic_machine=moxie-unknown | |
848 | os=-moxiebox | |
849 | ;; | |
850 | msdos) | |
851 | basic_machine=i386-pc | |
852 | os=-msdos | |
853 | ;; | |
854 | ms1-*) | |
855 | basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` | |
856 | ;; | |
857 | msys) | |
858 | basic_machine=i686-pc | |
859 | os=-msys | |
860 | ;; | |
861 | mvs) | |
862 | basic_machine=i370-ibm | |
863 | os=-mvs | |
864 | ;; | |
865 | nacl) | |
866 | basic_machine=le32-unknown | |
867 | os=-nacl | |
868 | ;; | |
869 | ncr3000) | |
870 | basic_machine=i486-ncr | |
871 | os=-sysv4 | |
872 | ;; | |
873 | netbsd386) | |
874 | basic_machine=i386-unknown | |
875 | os=-netbsd | |
876 | ;; | |
877 | netwinder) | |
878 | basic_machine=armv4l-rebel | |
879 | os=-linux | |
880 | ;; | |
881 | news | news700 | news800 | news900) | |
882 | basic_machine=m68k-sony | |
883 | os=-newsos | |
884 | ;; | |
885 | news1000) | |
886 | basic_machine=m68030-sony | |
887 | os=-newsos | |
888 | ;; | |
889 | news-3600 | risc-news) | |
890 | basic_machine=mips-sony | |
891 | os=-newsos | |
892 | ;; | |
893 | necv70) | |
894 | basic_machine=v70-nec | |
895 | os=-sysv | |
896 | ;; | |
897 | next | m*-next) | |
898 | basic_machine=m68k-next | |
899 | case $os in | |
900 | -nextstep* ) | |
901 | ;; | |
902 | -ns2*) | |
903 | os=-nextstep2 | |
904 | ;; | |
905 | *) | |
906 | os=-nextstep3 | |
907 | ;; | |
908 | esac | |
909 | ;; | |
910 | nh3000) | |
911 | basic_machine=m68k-harris | |
912 | os=-cxux | |
913 | ;; | |
914 | nh[45]000) | |
915 | basic_machine=m88k-harris | |
916 | os=-cxux | |
917 | ;; | |
918 | nindy960) | |
919 | basic_machine=i960-intel | |
920 | os=-nindy | |
921 | ;; | |
922 | mon960) | |
923 | basic_machine=i960-intel | |
924 | os=-mon960 | |
925 | ;; | |
926 | nonstopux) | |
927 | basic_machine=mips-compaq | |
928 | os=-nonstopux | |
929 | ;; | |
930 | np1) | |
931 | basic_machine=np1-gould | |
932 | ;; | |
933 | neo-tandem) | |
934 | basic_machine=neo-tandem | |
935 | ;; | |
936 | nse-tandem) | |
937 | basic_machine=nse-tandem | |
938 | ;; | |
939 | nsr-tandem) | |
940 | basic_machine=nsr-tandem | |
941 | ;; | |
942 | nsv-tandem) | |
943 | basic_machine=nsv-tandem | |
944 | ;; | |
945 | nsx-tandem) | |
946 | basic_machine=nsx-tandem | |
947 | ;; | |
948 | op50n-* | op60c-*) | |
949 | basic_machine=hppa1.1-oki | |
950 | os=-proelf | |
951 | ;; | |
952 | openrisc | openrisc-*) | |
953 | basic_machine=or32-unknown | |
954 | ;; | |
955 | os400) | |
956 | basic_machine=powerpc-ibm | |
957 | os=-os400 | |
958 | ;; | |
959 | OSE68000 | ose68000) | |
960 | basic_machine=m68000-ericsson | |
961 | os=-ose | |
962 | ;; | |
963 | os68k) | |
964 | basic_machine=m68k-none | |
965 | os=-os68k | |
966 | ;; | |
967 | pa-hitachi) | |
968 | basic_machine=hppa1.1-hitachi | |
969 | os=-hiuxwe2 | |
970 | ;; | |
971 | paragon) | |
972 | basic_machine=i860-intel | |
973 | os=-osf | |
974 | ;; | |
975 | parisc) | |
976 | basic_machine=hppa-unknown | |
977 | os=-linux | |
978 | ;; | |
979 | parisc-*) | |
980 | basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
981 | os=-linux | |
982 | ;; | |
983 | pbd) | |
984 | basic_machine=sparc-tti | |
985 | ;; | |
986 | pbb) | |
987 | basic_machine=m68k-tti | |
988 | ;; | |
989 | pc532 | pc532-*) | |
990 | basic_machine=ns32k-pc532 | |
991 | ;; | |
992 | pc98) | |
993 | basic_machine=i386-pc | |
994 | ;; | |
995 | pc98-*) | |
996 | basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
997 | ;; | |
998 | pentium | p5 | k5 | k6 | nexgen | viac3) | |
999 | basic_machine=i586-pc | |
1000 | ;; | |
1001 | pentiumpro | p6 | 6x86 | athlon | athlon_*) | |
1002 | basic_machine=i686-pc | |
1003 | ;; | |
1004 | pentiumii | pentium2 | pentiumiii | pentium3) | |
1005 | basic_machine=i686-pc | |
1006 | ;; | |
1007 | pentium4) | |
1008 | basic_machine=i786-pc | |
1009 | ;; | |
1010 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) | |
1011 | basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1012 | ;; | |
1013 | pentiumpro-* | p6-* | 6x86-* | athlon-*) | |
1014 | basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1015 | ;; | |
1016 | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) | |
1017 | basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1018 | ;; | |
1019 | pentium4-*) | |
1020 | basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1021 | ;; | |
1022 | pn) | |
1023 | basic_machine=pn-gould | |
1024 | ;; | |
1025 | power) basic_machine=power-ibm | |
1026 | ;; | |
1027 | ppc | ppcbe) basic_machine=powerpc-unknown | |
1028 | ;; | |
1029 | ppc-* | ppcbe-*) | |
1030 | basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1031 | ;; | |
1032 | ppcle | powerpclittle) | |
1033 | basic_machine=powerpcle-unknown | |
1034 | ;; | |
1035 | ppcle-* | powerpclittle-*) | |
1036 | basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1037 | ;; | |
1038 | ppc64) basic_machine=powerpc64-unknown | |
1039 | ;; | |
1040 | ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1041 | ;; | |
1042 | ppc64le | powerpc64little) | |
1043 | basic_machine=powerpc64le-unknown | |
1044 | ;; | |
1045 | ppc64le-* | powerpc64little-*) | |
1046 | basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1047 | ;; | |
1048 | ps2) | |
1049 | basic_machine=i386-ibm | |
1050 | ;; | |
1051 | pw32) | |
1052 | basic_machine=i586-unknown | |
1053 | os=-pw32 | |
1054 | ;; | |
1055 | rdos | rdos64) | |
1056 | basic_machine=x86_64-pc | |
1057 | os=-rdos | |
1058 | ;; | |
1059 | rdos32) | |
1060 | basic_machine=i386-pc | |
1061 | os=-rdos | |
1062 | ;; | |
1063 | rom68k) | |
1064 | basic_machine=m68k-rom68k | |
1065 | os=-coff | |
1066 | ;; | |
1067 | rm[46]00) | |
1068 | basic_machine=mips-siemens | |
1069 | ;; | |
1070 | rtpc | rtpc-*) | |
1071 | basic_machine=romp-ibm | |
1072 | ;; | |
1073 | s390 | s390-*) | |
1074 | basic_machine=s390-ibm | |
1075 | ;; | |
1076 | s390x | s390x-*) | |
1077 | basic_machine=s390x-ibm | |
1078 | ;; | |
1079 | sa29200) | |
1080 | basic_machine=a29k-amd | |
1081 | os=-udi | |
1082 | ;; | |
1083 | sb1) | |
1084 | basic_machine=mipsisa64sb1-unknown | |
1085 | ;; | |
1086 | sb1el) | |
1087 | basic_machine=mipsisa64sb1el-unknown | |
1088 | ;; | |
1089 | sde) | |
1090 | basic_machine=mipsisa32-sde | |
1091 | os=-elf | |
1092 | ;; | |
1093 | sei) | |
1094 | basic_machine=mips-sei | |
1095 | os=-seiux | |
1096 | ;; | |
1097 | sequent) | |
1098 | basic_machine=i386-sequent | |
1099 | ;; | |
1100 | sh5el) | |
1101 | basic_machine=sh5le-unknown | |
1102 | ;; | |
1103 | simso-wrs) | |
1104 | basic_machine=sparclite-wrs | |
1105 | os=-vxworks | |
1106 | ;; | |
1107 | sps7) | |
1108 | basic_machine=m68k-bull | |
1109 | os=-sysv2 | |
1110 | ;; | |
1111 | spur) | |
1112 | basic_machine=spur-unknown | |
1113 | ;; | |
1114 | st2000) | |
1115 | basic_machine=m68k-tandem | |
1116 | ;; | |
1117 | stratus) | |
1118 | basic_machine=i860-stratus | |
1119 | os=-sysv4 | |
1120 | ;; | |
1121 | strongarm-* | thumb-*) | |
1122 | basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1123 | ;; | |
1124 | sun2) | |
1125 | basic_machine=m68000-sun | |
1126 | ;; | |
1127 | sun2os3) | |
1128 | basic_machine=m68000-sun | |
1129 | os=-sunos3 | |
1130 | ;; | |
1131 | sun2os4) | |
1132 | basic_machine=m68000-sun | |
1133 | os=-sunos4 | |
1134 | ;; | |
1135 | sun3os3) | |
1136 | basic_machine=m68k-sun | |
1137 | os=-sunos3 | |
1138 | ;; | |
1139 | sun3os4) | |
1140 | basic_machine=m68k-sun | |
1141 | os=-sunos4 | |
1142 | ;; | |
1143 | sun4os3) | |
1144 | basic_machine=sparc-sun | |
1145 | os=-sunos3 | |
1146 | ;; | |
1147 | sun4os4) | |
1148 | basic_machine=sparc-sun | |
1149 | os=-sunos4 | |
1150 | ;; | |
1151 | sun4sol2) | |
1152 | basic_machine=sparc-sun | |
1153 | os=-solaris2 | |
1154 | ;; | |
1155 | sun3 | sun3-*) | |
1156 | basic_machine=m68k-sun | |
1157 | ;; | |
1158 | sun4) | |
1159 | basic_machine=sparc-sun | |
1160 | ;; | |
1161 | sun386 | sun386i | roadrunner) | |
1162 | basic_machine=i386-sun | |
1163 | ;; | |
1164 | sv1) | |
1165 | basic_machine=sv1-cray | |
1166 | os=-unicos | |
1167 | ;; | |
1168 | symmetry) | |
1169 | basic_machine=i386-sequent | |
1170 | os=-dynix | |
1171 | ;; | |
1172 | t3e) | |
1173 | basic_machine=alphaev5-cray | |
1174 | os=-unicos | |
1175 | ;; | |
1176 | t90) | |
1177 | basic_machine=t90-cray | |
1178 | os=-unicos | |
1179 | ;; | |
1180 | tile*) | |
1181 | basic_machine=$basic_machine-unknown | |
1182 | os=-linux-gnu | |
1183 | ;; | |
1184 | tx39) | |
1185 | basic_machine=mipstx39-unknown | |
1186 | ;; | |
1187 | tx39el) | |
1188 | basic_machine=mipstx39el-unknown | |
1189 | ;; | |
1190 | toad1) | |
1191 | basic_machine=pdp10-xkl | |
1192 | os=-tops20 | |
1193 | ;; | |
1194 | tower | tower-32) | |
1195 | basic_machine=m68k-ncr | |
1196 | ;; | |
1197 | tpf) | |
1198 | basic_machine=s390x-ibm | |
1199 | os=-tpf | |
1200 | ;; | |
1201 | udi29k) | |
1202 | basic_machine=a29k-amd | |
1203 | os=-udi | |
1204 | ;; | |
1205 | ultra3) | |
1206 | basic_machine=a29k-nyu | |
1207 | os=-sym1 | |
1208 | ;; | |
1209 | v810 | necv810) | |
1210 | basic_machine=v810-nec | |
1211 | os=-none | |
1212 | ;; | |
1213 | vaxv) | |
1214 | basic_machine=vax-dec | |
1215 | os=-sysv | |
1216 | ;; | |
1217 | vms) | |
1218 | basic_machine=vax-dec | |
1219 | os=-vms | |
1220 | ;; | |
1221 | vpp*|vx|vx-*) | |
1222 | basic_machine=f301-fujitsu | |
1223 | ;; | |
1224 | vxworks960) | |
1225 | basic_machine=i960-wrs | |
1226 | os=-vxworks | |
1227 | ;; | |
1228 | vxworks68) | |
1229 | basic_machine=m68k-wrs | |
1230 | os=-vxworks | |
1231 | ;; | |
1232 | vxworks29k) | |
1233 | basic_machine=a29k-wrs | |
1234 | os=-vxworks | |
1235 | ;; | |
1236 | w65*) | |
1237 | basic_machine=w65-wdc | |
1238 | os=-none | |
1239 | ;; | |
1240 | w89k-*) | |
1241 | basic_machine=hppa1.1-winbond | |
1242 | os=-proelf | |
1243 | ;; | |
1244 | x64) | |
1245 | basic_machine=x86_64-pc | |
1246 | ;; | |
1247 | xbox) | |
1248 | basic_machine=i686-pc | |
1249 | os=-mingw32 | |
1250 | ;; | |
1251 | xps | xps100) | |
1252 | basic_machine=xps100-honeywell | |
1253 | ;; | |
1254 | xscale-* | xscalee[bl]-*) | |
1255 | basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` | |
1256 | ;; | |
1257 | ymp) | |
1258 | basic_machine=ymp-cray | |
1259 | os=-unicos | |
1260 | ;; | |
1261 | none) | |
1262 | basic_machine=none-none | |
1263 | os=-none | |
1264 | ;; | |
1265 | ||
1266 | # Here we handle the default manufacturer of certain CPU types. It is in | |
1267 | # some cases the only manufacturer, in others, it is the most popular. | |
1268 | w89k) | |
1269 | basic_machine=hppa1.1-winbond | |
1270 | ;; | |
1271 | op50n) | |
1272 | basic_machine=hppa1.1-oki | |
1273 | ;; | |
1274 | op60c) | |
1275 | basic_machine=hppa1.1-oki | |
1276 | ;; | |
1277 | romp) | |
1278 | basic_machine=romp-ibm | |
1279 | ;; | |
1280 | mmix) | |
1281 | basic_machine=mmix-knuth | |
1282 | ;; | |
1283 | rs6000) | |
1284 | basic_machine=rs6000-ibm | |
1285 | ;; | |
1286 | vax) | |
1287 | basic_machine=vax-dec | |
1288 | ;; | |
1289 | pdp11) | |
1290 | basic_machine=pdp11-dec | |
1291 | ;; | |
1292 | we32k) | |
1293 | basic_machine=we32k-att | |
1294 | ;; | |
1295 | sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) | |
1296 | basic_machine=sh-unknown | |
1297 | ;; | |
1298 | cydra) | |
1299 | basic_machine=cydra-cydrome | |
1300 | ;; | |
1301 | orion) | |
1302 | basic_machine=orion-highlevel | |
1303 | ;; | |
1304 | orion105) | |
1305 | basic_machine=clipper-highlevel | |
1306 | ;; | |
1307 | mac | mpw | mac-mpw) | |
1308 | basic_machine=m68k-apple | |
1309 | ;; | |
1310 | pmac | pmac-mpw) | |
1311 | basic_machine=powerpc-apple | |
1312 | ;; | |
1313 | *-unknown) | |
1314 | # Make sure to match an already-canonicalized machine name. | |
1292 | esac | |
1293 | ||
1294 | # Here we canonicalize certain aliases for manufacturers. | |
1295 | case $vendor in | |
1296 | digital*) | |
1297 | vendor=dec | |
1298 | ;; | |
1299 | commodore*) | |
1300 | vendor=cbm | |
1315 | 1301 | ;; |
1316 | 1302 | *) |
1317 | echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 | |
1318 | exit 1 | |
1319 | 1303 | ;; |
1320 | 1304 | esac |
1321 | 1305 | |
1322 | # Here we canonicalize certain aliases for manufacturers. | |
1323 | case $basic_machine in | |
1324 | *-digital*) | |
1325 | basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'` | |
1326 | ;; | |
1327 | *-commodore*) | |
1328 | basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'` | |
1306 | # Decode manufacturer-specific aliases for certain operating systems. | |
1307 | ||
1308 | if test x$basic_os != x | |
1309 | then | |
1310 | ||
1311 | # First recognize some ad-hoc cases, or perhaps split kernel-os, or else just | |
1312 | # set os. | |
1313 | case $basic_os in | |
1314 | gnu/linux*) | |
1315 | kernel=linux | |
1316 | os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'` | |
1317 | ;; | |
1318 | os2-emx) | |
1319 | kernel=os2 | |
1320 | os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'` | |
1321 | ;; | |
1322 | nto-qnx*) | |
1323 | kernel=nto | |
1324 | os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'` | |
1325 | ;; | |
1326 | *-*) | |
1327 | # shellcheck disable=SC2162 | |
1328 | saved_IFS=$IFS | |
1329 | IFS="-" read kernel os <<EOF | |
1330 | $basic_os | |
1331 | EOF | |
1332 | IFS=$saved_IFS | |
1333 | ;; | |
1334 | # Default OS when just kernel was specified | |
1335 | nto*) | |
1336 | kernel=nto | |
1337 | os=`echo "$basic_os" | sed -e 's|nto|qnx|'` | |
1338 | ;; | |
1339 | linux*) | |
1340 | kernel=linux | |
1341 | os=`echo "$basic_os" | sed -e 's|linux|gnu|'` | |
1329 | 1342 | ;; |
1330 | 1343 | *) |
1344 | kernel= | |
1345 | os=$basic_os | |
1331 | 1346 | ;; |
1332 | 1347 | esac |
1333 | 1348 | |
1334 | # Decode manufacturer-specific aliases for certain operating systems. | |
1335 | ||
1336 | if [ x"$os" != x"" ] | |
1337 | then | |
1349 | # Now, normalize the OS (knowing we just have one component, it's not a kernel, | |
1350 | # etc.) | |
1338 | 1351 | case $os in |
1339 | 1352 | # First match some system type aliases that might get confused |
1340 | 1353 | # with valid system types. |
1341 | # -solaris* is a basic system type, with this one exception. | |
1342 | -auroraux) | |
1343 | os=-auroraux | |
1344 | ;; | |
1345 | -solaris1 | -solaris1.*) | |
1346 | os=`echo $os | sed -e 's|solaris1|sunos4|'` | |
1347 | ;; | |
1348 | -solaris) | |
1349 | os=-solaris2 | |
1350 | ;; | |
1351 | -unixware*) | |
1352 | os=-sysv4.2uw | |
1353 | ;; | |
1354 | -gnu/linux*) | |
1355 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` | |
1354 | # solaris* is a basic system type, with this one exception. | |
1355 | auroraux) | |
1356 | os=auroraux | |
1357 | ;; | |
1358 | bluegene*) | |
1359 | os=cnk | |
1360 | ;; | |
1361 | solaris1 | solaris1.*) | |
1362 | os=`echo "$os" | sed -e 's|solaris1|sunos4|'` | |
1363 | ;; | |
1364 | solaris) | |
1365 | os=solaris2 | |
1366 | ;; | |
1367 | unixware*) | |
1368 | os=sysv4.2uw | |
1356 | 1369 | ;; |
1357 | 1370 | # es1800 is here to avoid being matched by es* (a different OS) |
1358 | -es1800*) | |
1359 | os=-ose | |
1360 | ;; | |
1361 | # Now accept the basic system types. | |
1362 | # The portable systems comes first. | |
1363 | # Each alternative MUST end in a * to match a version number. | |
1364 | # -sysv* is not here because it comes later, after sysvr4. | |
1365 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | |
1366 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | |
1367 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | |
1368 | | -sym* | -kopensolaris* | -plan9* \ | |
1369 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | |
1370 | | -aos* | -aros* | -cloudabi* | -sortix* \ | |
1371 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | |
1372 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | |
1373 | | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \ | |
1374 | | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ | |
1375 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | |
1376 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | |
1377 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | |
1378 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | |
1379 | | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ | |
1380 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | |
1381 | | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | |
1382 | | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | |
1383 | | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ | |
1384 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \ | |
1385 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | |
1386 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | |
1387 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | |
1388 | | -morphos* | -superux* | -rtmk* | -windiss* \ | |
1389 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | |
1390 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ | |
1391 | | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ | |
1392 | | -midnightbsd*) | |
1393 | # Remember, each alternative MUST END IN *, to match a version number. | |
1394 | ;; | |
1395 | -qnx*) | |
1396 | case $basic_machine in | |
1397 | x86-* | i*86-*) | |
1398 | ;; | |
1399 | *) | |
1400 | os=-nto$os | |
1401 | ;; | |
1402 | esac | |
1403 | ;; | |
1404 | -nto-qnx*) | |
1405 | ;; | |
1406 | -nto*) | |
1407 | os=`echo $os | sed -e 's|nto|nto-qnx|'` | |
1408 | ;; | |
1409 | -sim | -xray | -os68k* | -v88r* \ | |
1410 | | -windows* | -osx | -abug | -netware* | -os9* \ | |
1411 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) | |
1412 | ;; | |
1413 | -mac*) | |
1371 | es1800*) | |
1372 | os=ose | |
1373 | ;; | |
1374 | # Some version numbers need modification | |
1375 | chorusos*) | |
1376 | os=chorusos | |
1377 | ;; | |
1378 | isc) | |
1379 | os=isc2.2 | |
1380 | ;; | |
1381 | sco6) | |
1382 | os=sco5v6 | |
1383 | ;; | |
1384 | sco5) | |
1385 | os=sco3.2v5 | |
1386 | ;; | |
1387 | sco4) | |
1388 | os=sco3.2v4 | |
1389 | ;; | |
1390 | sco3.2.[4-9]*) | |
1391 | os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'` | |
1392 | ;; | |
1393 | sco*v* | scout) | |
1394 | # Don't match below | |
1395 | ;; | |
1396 | sco*) | |
1397 | os=sco3.2v2 | |
1398 | ;; | |
1399 | psos*) | |
1400 | os=psos | |
1401 | ;; | |
1402 | qnx*) | |
1403 | os=qnx | |
1404 | ;; | |
1405 | hiux*) | |
1406 | os=hiuxwe2 | |
1407 | ;; | |
1408 | lynx*178) | |
1409 | os=lynxos178 | |
1410 | ;; | |
1411 | lynx*5) | |
1412 | os=lynxos5 | |
1413 | ;; | |
1414 | lynxos*) | |
1415 | # don't get caught up in next wildcard | |
1416 | ;; | |
1417 | lynx*) | |
1418 | os=lynxos | |
1419 | ;; | |
1420 | mac[0-9]*) | |
1414 | 1421 | os=`echo "$os" | sed -e 's|mac|macos|'` |
1415 | 1422 | ;; |
1416 | -linux-dietlibc) | |
1417 | os=-linux-dietlibc | |
1418 | ;; | |
1419 | -linux*) | |
1420 | os=`echo $os | sed -e 's|linux|linux-gnu|'` | |
1421 | ;; | |
1422 | -sunos5*) | |
1423 | opened*) | |
1424 | os=openedition | |
1425 | ;; | |
1426 | os400*) | |
1427 | os=os400 | |
1428 | ;; | |
1429 | sunos5*) | |
1423 | 1430 | os=`echo "$os" | sed -e 's|sunos5|solaris2|'` |
1424 | 1431 | ;; |
1425 | -sunos6*) | |
1432 | sunos6*) | |
1426 | 1433 | os=`echo "$os" | sed -e 's|sunos6|solaris3|'` |
1427 | 1434 | ;; |
1428 | -opened*) | |
1429 | os=-openedition | |
1430 | ;; | |
1431 | -os400*) | |
1432 | os=-os400 | |
1433 | ;; | |
1434 | -wince*) | |
1435 | os=-wince | |
1436 | ;; | |
1437 | -utek*) | |
1438 | os=-bsd | |
1439 | ;; | |
1440 | -dynix*) | |
1441 | os=-bsd | |
1442 | ;; | |
1443 | -acis*) | |
1444 | os=-aos | |
1445 | ;; | |
1446 | -atheos*) | |
1447 | os=-atheos | |
1448 | ;; | |
1449 | -syllable*) | |
1450 | os=-syllable | |
1451 | ;; | |
1452 | -386bsd) | |
1453 | os=-bsd | |
1454 | ;; | |
1455 | -ctix* | -uts*) | |
1456 | os=-sysv | |
1457 | ;; | |
1458 | -nova*) | |
1459 | os=-rtmk-nova | |
1460 | ;; | |
1461 | -ns2) | |
1462 | os=-nextstep2 | |
1463 | ;; | |
1464 | -nsk*) | |
1465 | os=-nsk | |
1435 | wince*) | |
1436 | os=wince | |
1437 | ;; | |
1438 | utek*) | |
1439 | os=bsd | |
1440 | ;; | |
1441 | dynix*) | |
1442 | os=bsd | |
1443 | ;; | |
1444 | acis*) | |
1445 | os=aos | |
1446 | ;; | |
1447 | atheos*) | |
1448 | os=atheos | |
1449 | ;; | |
1450 | syllable*) | |
1451 | os=syllable | |
1452 | ;; | |
1453 | 386bsd) | |
1454 | os=bsd | |
1455 | ;; | |
1456 | ctix* | uts*) | |
1457 | os=sysv | |
1458 | ;; | |
1459 | nova*) | |
1460 | os=rtmk-nova | |
1461 | ;; | |
1462 | ns2) | |
1463 | os=nextstep2 | |
1466 | 1464 | ;; |
1467 | 1465 | # Preserve the version number of sinix5. |
1468 | -sinix5.*) | |
1469 | os=`echo $os | sed -e 's|sinix|sysv|'` | |
1470 | ;; | |
1471 | -sinix*) | |
1472 | os=-sysv4 | |
1473 | ;; | |
1474 | -tpf*) | |
1475 | os=-tpf | |
1476 | ;; | |
1477 | -triton*) | |
1478 | os=-sysv3 | |
1479 | ;; | |
1480 | -oss*) | |
1481 | os=-sysv3 | |
1482 | ;; | |
1483 | -svr4*) | |
1484 | os=-sysv4 | |
1485 | ;; | |
1486 | -svr3) | |
1487 | os=-sysv3 | |
1488 | ;; | |
1489 | -sysvr4) | |
1490 | os=-sysv4 | |
1491 | ;; | |
1492 | # This must come after -sysvr4. | |
1493 | -sysv*) | |
1494 | ;; | |
1495 | -ose*) | |
1496 | os=-ose | |
1497 | ;; | |
1498 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) | |
1499 | os=-mint | |
1500 | ;; | |
1501 | -zvmoe) | |
1502 | os=-zvmoe | |
1503 | ;; | |
1504 | -dicos*) | |
1505 | os=-dicos | |
1506 | ;; | |
1507 | -pikeos*) | |
1466 | sinix5.*) | |
1467 | os=`echo "$os" | sed -e 's|sinix|sysv|'` | |
1468 | ;; | |
1469 | sinix*) | |
1470 | os=sysv4 | |
1471 | ;; | |
1472 | tpf*) | |
1473 | os=tpf | |
1474 | ;; | |
1475 | triton*) | |
1476 | os=sysv3 | |
1477 | ;; | |
1478 | oss*) | |
1479 | os=sysv3 | |
1480 | ;; | |
1481 | svr4*) | |
1482 | os=sysv4 | |
1483 | ;; | |
1484 | svr3) | |
1485 | os=sysv3 | |
1486 | ;; | |
1487 | sysvr4) | |
1488 | os=sysv4 | |
1489 | ;; | |
1490 | ose*) | |
1491 | os=ose | |
1492 | ;; | |
1493 | *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) | |
1494 | os=mint | |
1495 | ;; | |
1496 | dicos*) | |
1497 | os=dicos | |
1498 | ;; | |
1499 | pikeos*) | |
1508 | 1500 | # Until real need of OS specific support for |
1509 | 1501 | # particular features comes up, bare metal |
1510 | 1502 | # configurations are quite functional. |
1511 | case $basic_machine in | |
1503 | case $cpu in | |
1512 | 1504 | arm*) |
1513 | os=-eabi | |
1505 | os=eabi | |
1514 | 1506 | ;; |
1515 | 1507 | *) |
1516 | os=-elf | |
1508 | os=elf | |
1517 | 1509 | ;; |
1518 | 1510 | esac |
1519 | 1511 | ;; |
1520 | -nacl*) | |
1521 | ;; | |
1522 | -ios) | |
1523 | ;; | |
1524 | -none) | |
1525 | ;; | |
1526 | 1512 | *) |
1527 | # Get rid of the `-' at the beginning of $os. | |
1528 | os=`echo $os | sed 's/[^-]*-//'` | |
1529 | echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 | |
1530 | exit 1 | |
1513 | # No normalization, but not necessarily accepted, that comes below. | |
1531 | 1514 | ;; |
1532 | 1515 | esac |
1516 | ||
1533 | 1517 | else |
1534 | 1518 | |
1535 | 1519 | # Here we handle the default operating systems that come with various machines. |
1542 | 1526 | # will signal an error saying that MANUFACTURER isn't an operating |
1543 | 1527 | # system, and we'll never get to this point. |
1544 | 1528 | |
1545 | case $basic_machine in | |
1529 | kernel= | |
1530 | case $cpu-$vendor in | |
1546 | 1531 | score-*) |
1547 | os=-elf | |
1532 | os=elf | |
1548 | 1533 | ;; |
1549 | 1534 | spu-*) |
1550 | os=-elf | |
1535 | os=elf | |
1551 | 1536 | ;; |
1552 | 1537 | *-acorn) |
1553 | os=-riscix1.2 | |
1538 | os=riscix1.2 | |
1554 | 1539 | ;; |
1555 | 1540 | arm*-rebel) |
1556 | os=-linux | |
1541 | kernel=linux | |
1542 | os=gnu | |
1557 | 1543 | ;; |
1558 | 1544 | arm*-semi) |
1559 | os=-aout | |
1545 | os=aout | |
1560 | 1546 | ;; |
1561 | 1547 | c4x-* | tic4x-*) |
1562 | os=-coff | |
1548 | os=coff | |
1563 | 1549 | ;; |
1564 | 1550 | c8051-*) |
1565 | os=-elf | |
1551 | os=elf | |
1552 | ;; | |
1553 | clipper-intergraph) | |
1554 | os=clix | |
1566 | 1555 | ;; |
1567 | 1556 | hexagon-*) |
1568 | os=-elf | |
1557 | os=elf | |
1569 | 1558 | ;; |
1570 | 1559 | tic54x-*) |
1571 | os=-coff | |
1560 | os=coff | |
1572 | 1561 | ;; |
1573 | 1562 | tic55x-*) |
1574 | os=-coff | |
1563 | os=coff | |
1575 | 1564 | ;; |
1576 | 1565 | tic6x-*) |
1577 | os=-coff | |
1566 | os=coff | |
1578 | 1567 | ;; |
1579 | 1568 | # This must come before the *-dec entry. |
1580 | 1569 | pdp10-*) |
1581 | os=-tops20 | |
1570 | os=tops20 | |
1582 | 1571 | ;; |
1583 | 1572 | pdp11-*) |
1584 | os=-none | |
1573 | os=none | |
1585 | 1574 | ;; |
1586 | 1575 | *-dec | vax-*) |
1587 | os=-ultrix4.2 | |
1576 | os=ultrix4.2 | |
1588 | 1577 | ;; |
1589 | 1578 | m68*-apollo) |
1590 | os=-domain | |
1579 | os=domain | |
1591 | 1580 | ;; |
1592 | 1581 | i386-sun) |
1593 | os=-sunos4.0.2 | |
1582 | os=sunos4.0.2 | |
1594 | 1583 | ;; |
1595 | 1584 | m68000-sun) |
1596 | os=-sunos3 | |
1585 | os=sunos3 | |
1597 | 1586 | ;; |
1598 | 1587 | m68*-cisco) |
1599 | os=-aout | |
1588 | os=aout | |
1600 | 1589 | ;; |
1601 | 1590 | mep-*) |
1602 | os=-elf | |
1591 | os=elf | |
1603 | 1592 | ;; |
1604 | 1593 | mips*-cisco) |
1605 | os=-elf | |
1594 | os=elf | |
1606 | 1595 | ;; |
1607 | 1596 | mips*-*) |
1608 | os=-elf | |
1597 | os=elf | |
1609 | 1598 | ;; |
1610 | 1599 | or32-*) |
1611 | os=-coff | |
1600 | os=coff | |
1612 | 1601 | ;; |
1613 | 1602 | *-tti) # must be before sparc entry or we get the wrong os. |
1614 | os=-sysv3 | |
1603 | os=sysv3 | |
1615 | 1604 | ;; |
1616 | 1605 | sparc-* | *-sun) |
1617 | os=-sunos4.1.1 | |
1606 | os=sunos4.1.1 | |
1618 | 1607 | ;; |
1619 | 1608 | pru-*) |
1620 | os=-elf | |
1609 | os=elf | |
1621 | 1610 | ;; |
1622 | 1611 | *-be) |
1623 | os=-beos | |
1612 | os=beos | |
1624 | 1613 | ;; |
1625 | 1614 | *-ibm) |
1626 | os=-aix | |
1615 | os=aix | |
1627 | 1616 | ;; |
1628 | 1617 | *-knuth) |
1629 | os=-mmixware | |
1618 | os=mmixware | |
1630 | 1619 | ;; |
1631 | 1620 | *-wec) |
1632 | os=-proelf | |
1621 | os=proelf | |
1633 | 1622 | ;; |
1634 | 1623 | *-winbond) |
1635 | os=-proelf | |
1624 | os=proelf | |
1636 | 1625 | ;; |
1637 | 1626 | *-oki) |
1638 | os=-proelf | |
1627 | os=proelf | |
1639 | 1628 | ;; |
1640 | 1629 | *-hp) |
1641 | os=-hpux | |
1630 | os=hpux | |
1642 | 1631 | ;; |
1643 | 1632 | *-hitachi) |
1644 | os=-hiux | |
1633 | os=hiux | |
1645 | 1634 | ;; |
1646 | 1635 | i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) |
1647 | os=-sysv | |
1636 | os=sysv | |
1648 | 1637 | ;; |
1649 | 1638 | *-cbm) |
1650 | os=-amigaos | |
1639 | os=amigaos | |
1651 | 1640 | ;; |
1652 | 1641 | *-dg) |
1653 | os=-dgux | |
1642 | os=dgux | |
1654 | 1643 | ;; |
1655 | 1644 | *-dolphin) |
1656 | os=-sysv3 | |
1645 | os=sysv3 | |
1657 | 1646 | ;; |
1658 | 1647 | m68k-ccur) |
1659 | os=-rtu | |
1648 | os=rtu | |
1660 | 1649 | ;; |
1661 | 1650 | m88k-omron*) |
1662 | os=-luna | |
1651 | os=luna | |
1663 | 1652 | ;; |
1664 | 1653 | *-next) |
1665 | os=-nextstep | |
1654 | os=nextstep | |
1666 | 1655 | ;; |
1667 | 1656 | *-sequent) |
1668 | os=-ptx | |
1657 | os=ptx | |
1669 | 1658 | ;; |
1670 | 1659 | *-crds) |
1671 | os=-unos | |
1660 | os=unos | |
1672 | 1661 | ;; |
1673 | 1662 | *-ns) |
1674 | os=-genix | |
1663 | os=genix | |
1675 | 1664 | ;; |
1676 | 1665 | i370-*) |
1677 | os=-mvs | |
1666 | os=mvs | |
1678 | 1667 | ;; |
1679 | 1668 | *-gould) |
1680 | os=-sysv | |
1669 | os=sysv | |
1681 | 1670 | ;; |
1682 | 1671 | *-highlevel) |
1683 | os=-bsd | |
1672 | os=bsd | |
1684 | 1673 | ;; |
1685 | 1674 | *-encore) |
1686 | os=-bsd | |
1675 | os=bsd | |
1687 | 1676 | ;; |
1688 | 1677 | *-sgi) |
1689 | os=-irix | |
1678 | os=irix | |
1690 | 1679 | ;; |
1691 | 1680 | *-siemens) |
1692 | os=-sysv4 | |
1681 | os=sysv4 | |
1693 | 1682 | ;; |
1694 | 1683 | *-masscomp) |
1695 | os=-rtu | |
1684 | os=rtu | |
1696 | 1685 | ;; |
1697 | 1686 | f30[01]-fujitsu | f700-fujitsu) |
1698 | os=-uxpv | |
1687 | os=uxpv | |
1699 | 1688 | ;; |
1700 | 1689 | *-rom68k) |
1701 | os=-coff | |
1690 | os=coff | |
1702 | 1691 | ;; |
1703 | 1692 | *-*bug) |
1704 | os=-coff | |
1693 | os=coff | |
1705 | 1694 | ;; |
1706 | 1695 | *-apple) |
1707 | os=-macos | |
1696 | os=macos | |
1708 | 1697 | ;; |
1709 | 1698 | *-atari*) |
1710 | os=-mint | |
1699 | os=mint | |
1700 | ;; | |
1701 | *-wrs) | |
1702 | os=vxworks | |
1711 | 1703 | ;; |
1712 | 1704 | *) |
1713 | os=-none | |
1705 | os=none | |
1714 | 1706 | ;; |
1715 | 1707 | esac |
1708 | ||
1716 | 1709 | fi |
1710 | ||
1711 | # Now, validate our (potentially fixed-up) OS. | |
1712 | case $os in | |
1713 | # Sometimes we do "kernel-libc", so those need to count as OSes. | |
1714 | musl* | newlib* | relibc* | uclibc*) | |
1715 | ;; | |
1716 | # Likewise for "kernel-abi" | |
1717 | eabi* | gnueabi*) | |
1718 | ;; | |
1719 | # VxWorks passes extra cpu info in the 4th filed. | |
1720 | simlinux | simwindows | spe) | |
1721 | ;; | |
1722 | # Now accept the basic system types. | |
1723 | # The portable systems comes first. | |
1724 | # Each alternative MUST end in a * to match a version number. | |
1725 | gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ | |
1726 | | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ | |
1727 | | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ | |
1728 | | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ | |
1729 | | hiux* | abug | nacl* | netware* | windows* \ | |
1730 | | os9* | macos* | osx* | ios* \ | |
1731 | | mpw* | magic* | mmixware* | mon960* | lnews* \ | |
1732 | | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ | |
1733 | | aos* | aros* | cloudabi* | sortix* | twizzler* \ | |
1734 | | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ | |
1735 | | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \ | |
1736 | | mirbsd* | netbsd* | dicos* | openedition* | ose* \ | |
1737 | | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \ | |
1738 | | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \ | |
1739 | | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \ | |
1740 | | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \ | |
1741 | | udi* | lites* | ieee* | go32* | aux* | hcos* \ | |
1742 | | chorusrdb* | cegcc* | glidix* | serenity* \ | |
1743 | | cygwin* | msys* | pe* | moss* | proelf* | rtems* \ | |
1744 | | midipix* | mingw32* | mingw64* | mint* \ | |
1745 | | uxpv* | beos* | mpeix* | udk* | moxiebox* \ | |
1746 | | interix* | uwin* | mks* | rhapsody* | darwin* \ | |
1747 | | openstep* | oskit* | conix* | pw32* | nonstopux* \ | |
1748 | | storm-chaos* | tops10* | tenex* | tops20* | its* \ | |
1749 | | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \ | |
1750 | | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \ | |
1751 | | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \ | |
1752 | | skyos* | haiku* | rdos* | toppers* | drops* | es* \ | |
1753 | | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ | |
1754 | | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ | |
1755 | | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ | |
1756 | | fiwix* ) | |
1757 | ;; | |
1758 | # This one is extra strict with allowed versions | |
1759 | sco3.2v2 | sco3.2v[4-9]* | sco5v6*) | |
1760 | # Don't forget version if it is 3.2v4 or newer. | |
1761 | ;; | |
1762 | none) | |
1763 | ;; | |
1764 | *) | |
1765 | echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2 | |
1766 | exit 1 | |
1767 | ;; | |
1768 | esac | |
1769 | ||
1770 | # As a final step for OS-related things, validate the OS-kernel combination | |
1771 | # (given a valid OS), if there is a kernel. | |
1772 | case $kernel-$os in | |
1773 | linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \ | |
1774 | | linux-musl* | linux-relibc* | linux-uclibc* ) | |
1775 | ;; | |
1776 | uclinux-uclibc* ) | |
1777 | ;; | |
1778 | -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* ) | |
1779 | # These are just libc implementations, not actual OSes, and thus | |
1780 | # require a kernel. | |
1781 | echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 | |
1782 | exit 1 | |
1783 | ;; | |
1784 | kfreebsd*-gnu* | kopensolaris*-gnu*) | |
1785 | ;; | |
1786 | vxworks-simlinux | vxworks-simwindows | vxworks-spe) | |
1787 | ;; | |
1788 | nto-qnx*) | |
1789 | ;; | |
1790 | os2-emx) | |
1791 | ;; | |
1792 | *-eabi* | *-gnueabi*) | |
1793 | ;; | |
1794 | -*) | |
1795 | # Blank kernel with real OS is always fine. | |
1796 | ;; | |
1797 | *-*) | |
1798 | echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 | |
1799 | exit 1 | |
1800 | ;; | |
1801 | esac | |
1717 | 1802 | |
1718 | 1803 | # Here we handle the case where we know the os, and the CPU type, but not the |
1719 | 1804 | # manufacturer. We pick the logical manufacturer. |
1720 | vendor=unknown | |
1721 | case $basic_machine in | |
1722 | *-unknown) | |
1723 | case $os in | |
1724 | -riscix*) | |
1805 | case $vendor in | |
1806 | unknown) | |
1807 | case $cpu-$os in | |
1808 | *-riscix*) | |
1725 | 1809 | vendor=acorn |
1726 | 1810 | ;; |
1727 | -sunos*) | |
1811 | *-sunos*) | |
1728 | 1812 | vendor=sun |
1729 | 1813 | ;; |
1730 | -cnk*|-aix*) | |
1814 | *-cnk* | *-aix*) | |
1731 | 1815 | vendor=ibm |
1732 | 1816 | ;; |
1733 | -beos*) | |
1817 | *-beos*) | |
1734 | 1818 | vendor=be |
1735 | 1819 | ;; |
1736 | -hpux*) | |
1820 | *-hpux*) | |
1737 | 1821 | vendor=hp |
1738 | 1822 | ;; |
1739 | -mpeix*) | |
1823 | *-mpeix*) | |
1740 | 1824 | vendor=hp |
1741 | 1825 | ;; |
1742 | -hiux*) | |
1826 | *-hiux*) | |
1743 | 1827 | vendor=hitachi |
1744 | 1828 | ;; |
1745 | -unos*) | |
1829 | *-unos*) | |
1746 | 1830 | vendor=crds |
1747 | 1831 | ;; |
1748 | -dgux*) | |
1832 | *-dgux*) | |
1749 | 1833 | vendor=dg |
1750 | 1834 | ;; |
1751 | -luna*) | |
1835 | *-luna*) | |
1752 | 1836 | vendor=omron |
1753 | 1837 | ;; |
1754 | -genix*) | |
1838 | *-genix*) | |
1755 | 1839 | vendor=ns |
1756 | 1840 | ;; |
1757 | -mvs* | -opened*) | |
1841 | *-clix*) | |
1842 | vendor=intergraph | |
1843 | ;; | |
1844 | *-mvs* | *-opened*) | |
1758 | 1845 | vendor=ibm |
1759 | 1846 | ;; |
1760 | -os400*) | |
1847 | *-os400*) | |
1761 | 1848 | vendor=ibm |
1762 | 1849 | ;; |
1763 | -ptx*) | |
1850 | s390-* | s390x-*) | |
1851 | vendor=ibm | |
1852 | ;; | |
1853 | *-ptx*) | |
1764 | 1854 | vendor=sequent |
1765 | 1855 | ;; |
1766 | -tpf*) | |
1856 | *-tpf*) | |
1767 | 1857 | vendor=ibm |
1768 | 1858 | ;; |
1769 | -vxsim* | -vxworks* | -windiss*) | |
1859 | *-vxsim* | *-vxworks* | *-windiss*) | |
1770 | 1860 | vendor=wrs |
1771 | 1861 | ;; |
1772 | -aux*) | |
1862 | *-aux*) | |
1773 | 1863 | vendor=apple |
1774 | 1864 | ;; |
1775 | -hms*) | |
1865 | *-hms*) | |
1776 | 1866 | vendor=hitachi |
1777 | 1867 | ;; |
1778 | -mpw* | -macos*) | |
1868 | *-mpw* | *-macos*) | |
1779 | 1869 | vendor=apple |
1780 | 1870 | ;; |
1781 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) | |
1871 | *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) | |
1782 | 1872 | vendor=atari |
1783 | 1873 | ;; |
1784 | -vos*) | |
1874 | *-vos*) | |
1785 | 1875 | vendor=stratus |
1786 | 1876 | ;; |
1787 | 1877 | esac |
1788 | basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"` | |
1789 | 1878 | ;; |
1790 | 1879 | esac |
1791 | 1880 | |
1792 | echo "$basic_machine$os" | |
1881 | echo "$cpu-$vendor-${kernel:+$kernel-}$os" | |
1793 | 1882 | exit |
1794 | 1883 | |
1795 | 1884 | # Local variables: |
1796 | # eval: (add-hook 'write-file-functions 'time-stamp) | |
1885 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
1797 | 1886 | # time-stamp-start: "timestamp='" |
1798 | 1887 | # time-stamp-format: "%:y-%02m-%02d" |
1799 | 1888 | # time-stamp-end: "'" |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.69 for dosfstools 4.2. | |
2 | # Generated by GNU Autoconf 2.71 for dosfstools 4.2+git. | |
3 | 3 | # |
4 | 4 | # |
5 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, | |
6 | # Inc. | |
6 | 7 | # |
7 | 8 | # |
8 | 9 | # This configure script is free software; the Free Software Foundation |
13 | 14 | |
14 | 15 | # Be more Bourne compatible |
15 | 16 | DUALCASE=1; export DUALCASE # for MKS sh |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
17 | as_nop=: | |
18 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
19 | then : | |
17 | 20 | emulate sh |
18 | 21 | NULLCMD=: |
19 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
20 | 23 | # is contrary to our usage. Disable this feature. |
21 | 24 | alias -g '${1+"$@"}'='"$@"' |
22 | 25 | setopt NO_GLOB_SUBST |
23 | else | |
26 | else $as_nop | |
24 | 27 | case `(set -o) 2>/dev/null` in #( |
25 | 28 | *posix*) : |
26 | 29 | set -o posix ;; #( |
30 | 33 | fi |
31 | 34 | |
32 | 35 | |
36 | ||
37 | # Reset variables that may have inherited troublesome values from | |
38 | # the environment. | |
39 | ||
40 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
41 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
42 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
43 | # Quoting is to prevent editors from complaining about space-tab. | |
33 | 44 | as_nl=' |
34 | 45 | ' |
35 | 46 | export as_nl |
36 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
37 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
38 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
41 | # but without wasting forks for bash or zsh. | |
42 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
43 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
44 | as_echo='print -r --' | |
45 | as_echo_n='print -rn --' | |
46 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='printf %s\n' | |
48 | as_echo_n='printf %s' | |
49 | else | |
50 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
51 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
52 | as_echo_n='/usr/ucb/echo -n' | |
53 | else | |
54 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
55 | as_echo_n_body='eval | |
56 | arg=$1; | |
57 | case $arg in #( | |
58 | *"$as_nl"*) | |
59 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
60 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
61 | esac; | |
62 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
63 | ' | |
64 | export as_echo_n_body | |
65 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
66 | fi | |
67 | export as_echo_body | |
68 | as_echo='sh -c $as_echo_body as_echo' | |
69 | fi | |
47 | IFS=" "" $as_nl" | |
48 | ||
49 | PS1='$ ' | |
50 | PS2='> ' | |
51 | PS4='+ ' | |
52 | ||
53 | # Ensure predictable behavior from utilities with locale-dependent output. | |
54 | LC_ALL=C | |
55 | export LC_ALL | |
56 | LANGUAGE=C | |
57 | export LANGUAGE | |
58 | ||
59 | # We cannot yet rely on "unset" to work, but we need these variables | |
60 | # to be unset--not just set to an empty or harmless value--now, to | |
61 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
62 | # also avoids known problems related to "unset" and subshell syntax | |
63 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
64 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
65 | do eval test \${$as_var+y} \ | |
66 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
67 | done | |
68 | ||
69 | # Ensure that fds 0, 1, and 2 are open. | |
70 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
71 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
72 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
70 | 73 | |
71 | 74 | # The user is always right. |
72 | if test "${PATH_SEPARATOR+set}" != set; then | |
75 | if ${PATH_SEPARATOR+false} :; then | |
73 | 76 | PATH_SEPARATOR=: |
74 | 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
75 | 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
77 | 80 | } |
78 | 81 | fi |
79 | 82 | |
80 | ||
81 | # IFS | |
82 | # We need space, tab and new line, in precisely that order. Quoting is | |
83 | # there to prevent editors from complaining about space-tab. | |
84 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
85 | # splitting by setting IFS to empty value.) | |
86 | IFS=" "" $as_nl" | |
87 | 83 | |
88 | 84 | # Find who we are. Look in the path if we contain no directory separator. |
89 | 85 | as_myself= |
93 | 89 | for as_dir in $PATH |
94 | 90 | do |
95 | 91 | IFS=$as_save_IFS |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
92 | case $as_dir in #((( | |
93 | '') as_dir=./ ;; | |
94 | */) ;; | |
95 | *) as_dir=$as_dir/ ;; | |
96 | esac | |
97 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
98 | 98 | done |
99 | 99 | IFS=$as_save_IFS |
100 | 100 | |
106 | 106 | as_myself=$0 |
107 | 107 | fi |
108 | 108 | if test ! -f "$as_myself"; then |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
109 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | 110 | exit 1 |
111 | 111 | fi |
112 | 112 | |
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
121 | PS1='$ ' | |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
126 | LC_ALL=C | |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | 113 | |
134 | 114 | # Use a proper internal environment variable to ensure we don't fall |
135 | 115 | # into an infinite loop, continuously re-executing ourselves. |
151 | 131 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
152 | 132 | # Admittedly, this is quite paranoid, since all the known shells bail |
153 | 133 | # out after a failed `exec'. |
154 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
155 | as_fn_exit 255 | |
134 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
135 | exit 255 | |
156 | 136 | fi |
157 | 137 | # We don't want this to propagate to other subprocesses. |
158 | 138 | { _as_can_reexec=; unset _as_can_reexec;} |
159 | 139 | if test "x$CONFIG_SHELL" = x; then |
160 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
140 | as_bourne_compatible="as_nop=: | |
141 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
142 | then : | |
161 | 143 | emulate sh |
162 | 144 | NULLCMD=: |
163 | 145 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
164 | 146 | # is contrary to our usage. Disable this feature. |
165 | 147 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
166 | 148 | setopt NO_GLOB_SUBST |
167 | else | |
149 | else \$as_nop | |
168 | 150 | case \`(set -o) 2>/dev/null\` in #( |
169 | 151 | *posix*) : |
170 | 152 | set -o posix ;; #( |
184 | 166 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
185 | 167 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
186 | 168 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
187 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
188 | ||
189 | else | |
169 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) | |
170 | then : | |
171 | ||
172 | else \$as_nop | |
190 | 173 | exitcode=1; echo positional parameters were not saved. |
191 | 174 | fi |
192 | 175 | test x\$exitcode = x0 || exit 1 |
176 | blah=\$(echo \$(echo blah)) | |
177 | test x\"\$blah\" = xblah || exit 1 | |
193 | 178 | test -x / || exit 1" |
194 | 179 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
195 | 180 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
196 | 181 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
197 | 182 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
198 | 183 | test \$(( 1 + 1 )) = 2 || exit 1" |
199 | if (eval "$as_required") 2>/dev/null; then : | |
184 | if (eval "$as_required") 2>/dev/null | |
185 | then : | |
200 | 186 | as_have_required=yes |
201 | else | |
187 | else $as_nop | |
202 | 188 | as_have_required=no |
203 | 189 | fi |
204 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
205 | ||
206 | else | |
190 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null | |
191 | then : | |
192 | ||
193 | else $as_nop | |
207 | 194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
208 | 195 | as_found=false |
209 | 196 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
210 | 197 | do |
211 | 198 | IFS=$as_save_IFS |
212 | test -z "$as_dir" && as_dir=. | |
199 | case $as_dir in #((( | |
200 | '') as_dir=./ ;; | |
201 | */) ;; | |
202 | *) as_dir=$as_dir/ ;; | |
203 | esac | |
213 | 204 | as_found=: |
214 | 205 | case $as_dir in #( |
215 | 206 | /*) |
216 | 207 | for as_base in sh bash ksh sh5; do |
217 | 208 | # Try only shells that exist, to save several forks. |
218 | as_shell=$as_dir/$as_base | |
209 | as_shell=$as_dir$as_base | |
219 | 210 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
220 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
211 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
212 | then : | |
221 | 213 | CONFIG_SHELL=$as_shell as_have_required=yes |
222 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
214 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null | |
215 | then : | |
223 | 216 | break 2 |
224 | 217 | fi |
225 | 218 | fi |
227 | 220 | esac |
228 | 221 | as_found=false |
229 | 222 | done |
230 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
223 | IFS=$as_save_IFS | |
224 | if $as_found | |
225 | then : | |
226 | ||
227 | else $as_nop | |
228 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
229 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
230 | then : | |
232 | 231 | CONFIG_SHELL=$SHELL as_have_required=yes |
233 | fi; } | |
234 | IFS=$as_save_IFS | |
235 | ||
236 | ||
237 | if test "x$CONFIG_SHELL" != x; then : | |
232 | fi | |
233 | fi | |
234 | ||
235 | ||
236 | if test "x$CONFIG_SHELL" != x | |
237 | then : | |
238 | 238 | export CONFIG_SHELL |
239 | 239 | # We cannot yet assume a decent shell, so we have to provide a |
240 | 240 | # neutralization value for shells without unset; and this also |
252 | 252 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
253 | 253 | # Admittedly, this is quite paranoid, since all the known shells bail |
254 | 254 | # out after a failed `exec'. |
255 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
255 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
256 | 256 | exit 255 |
257 | 257 | fi |
258 | 258 | |
259 | if test x$as_have_required = xno; then : | |
260 | $as_echo "$0: This script requires a shell more modern than all" | |
261 | $as_echo "$0: the shells that I found on your system." | |
262 | if test x${ZSH_VERSION+set} = xset ; then | |
263 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
264 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
259 | if test x$as_have_required = xno | |
260 | then : | |
261 | printf "%s\n" "$0: This script requires a shell more modern than all" | |
262 | printf "%s\n" "$0: the shells that I found on your system." | |
263 | if test ${ZSH_VERSION+y} ; then | |
264 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." | |
265 | 266 | else |
266 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
267 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, | |
267 | 268 | $0: including any error possibly output before this |
268 | 269 | $0: message. Then install a modern shell, or manually run |
269 | 270 | $0: the script under such a shell if you do have one." |
290 | 291 | } |
291 | 292 | as_unset=as_fn_unset |
292 | 293 | |
294 | ||
293 | 295 | # as_fn_set_status STATUS |
294 | 296 | # ----------------------- |
295 | 297 | # Set $? to STATUS, without forking. |
307 | 309 | as_fn_set_status $1 |
308 | 310 | exit $1 |
309 | 311 | } # as_fn_exit |
312 | # as_fn_nop | |
313 | # --------- | |
314 | # Do nothing but, unlike ":", preserve the value of $?. | |
315 | as_fn_nop () | |
316 | { | |
317 | return $? | |
318 | } | |
319 | as_nop=as_fn_nop | |
310 | 320 | |
311 | 321 | # as_fn_mkdir_p |
312 | 322 | # ------------- |
321 | 331 | as_dirs= |
322 | 332 | while :; do |
323 | 333 | case $as_dir in #( |
324 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
325 | 335 | *) as_qdir=$as_dir;; |
326 | 336 | esac |
327 | 337 | as_dirs="'$as_qdir' $as_dirs" |
330 | 340 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
331 | 341 | X"$as_dir" : 'X\(//\)$' \| \ |
332 | 342 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
333 | $as_echo X"$as_dir" | | |
343 | printf "%s\n" X"$as_dir" | | |
334 | 344 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
335 | 345 | s//\1/ |
336 | 346 | q |
369 | 379 | # advantage of any shell optimizations that allow amortized linear growth over |
370 | 380 | # repeated appends, instead of the typical quadratic growth present in naive |
371 | 381 | # implementations. |
372 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null | |
383 | then : | |
373 | 384 | eval 'as_fn_append () |
374 | 385 | { |
375 | 386 | eval $1+=\$2 |
376 | 387 | }' |
377 | else | |
388 | else $as_nop | |
378 | 389 | as_fn_append () |
379 | 390 | { |
380 | 391 | eval $1=\$$1\$2 |
386 | 397 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
387 | 398 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
388 | 399 | # must be portable across $(()) and expr. |
389 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
400 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null | |
401 | then : | |
390 | 402 | eval 'as_fn_arith () |
391 | 403 | { |
392 | 404 | as_val=$(( $* )) |
393 | 405 | }' |
394 | else | |
406 | else $as_nop | |
395 | 407 | as_fn_arith () |
396 | 408 | { |
397 | 409 | as_val=`expr "$@" || test $? -eq 1` |
398 | 410 | } |
399 | 411 | fi # as_fn_arith |
400 | 412 | |
413 | # as_fn_nop | |
414 | # --------- | |
415 | # Do nothing but, unlike ":", preserve the value of $?. | |
416 | as_fn_nop () | |
417 | { | |
418 | return $? | |
419 | } | |
420 | as_nop=as_fn_nop | |
401 | 421 | |
402 | 422 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
403 | 423 | # ---------------------------------------- |
409 | 429 | as_status=$1; test $as_status -eq 0 && as_status=1 |
410 | 430 | if test "$4"; then |
411 | 431 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
412 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
432 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
413 | 433 | fi |
414 | $as_echo "$as_me: error: $2" >&2 | |
434 | printf "%s\n" "$as_me: error: $2" >&2 | |
415 | 435 | as_fn_exit $as_status |
416 | 436 | } # as_fn_error |
417 | 437 | |
438 | 458 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
439 | 459 | X"$0" : 'X\(//\)$' \| \ |
440 | 460 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
441 | $as_echo X/"$0" | | |
461 | printf "%s\n" X/"$0" | | |
442 | 462 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
443 | 463 | s//\1/ |
444 | 464 | q |
482 | 502 | s/-\n.*// |
483 | 503 | ' >$as_me.lineno && |
484 | 504 | chmod +x "$as_me.lineno" || |
485 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
505 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
486 | 506 | |
487 | 507 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
488 | 508 | # already done that, so ensure we don't try to do so again and fall |
496 | 516 | exit |
497 | 517 | } |
498 | 518 | |
519 | ||
520 | # Determine whether it's possible to make 'echo' print without a newline. | |
521 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
522 | # for compatibility with existing Makefiles. | |
499 | 523 | ECHO_C= ECHO_N= ECHO_T= |
500 | 524 | case `echo -n x` in #((((( |
501 | 525 | -n*) |
508 | 532 | *) |
509 | 533 | ECHO_N='-n';; |
510 | 534 | esac |
535 | ||
536 | # For backward compatibility with old third-party macros, we provide | |
537 | # the shell variables $as_echo and $as_echo_n. New code should use | |
538 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
539 | as_echo='printf %s\n' | |
540 | as_echo_n='printf %s' | |
541 | ||
511 | 542 | |
512 | 543 | rm -f conf$$ conf$$.exe conf$$.file |
513 | 544 | if test -d conf$$.dir; then |
576 | 607 | # Identity of this package. |
577 | 608 | PACKAGE_NAME='dosfstools' |
578 | 609 | PACKAGE_TARNAME='dosfstools' |
579 | PACKAGE_VERSION='4.2' | |
580 | PACKAGE_STRING='dosfstools 4.2' | |
610 | PACKAGE_VERSION='4.2+git' | |
611 | PACKAGE_STRING='dosfstools 4.2+git' | |
581 | 612 | PACKAGE_BUGREPORT='' |
582 | 613 | PACKAGE_URL='' |
583 | 614 | |
584 | 615 | # Factoring default headers for most tests. |
585 | 616 | ac_includes_default="\ |
586 | #include <stdio.h> | |
587 | #ifdef HAVE_SYS_TYPES_H | |
588 | # include <sys/types.h> | |
617 | #include <stddef.h> | |
618 | #ifdef HAVE_STDIO_H | |
619 | # include <stdio.h> | |
589 | 620 | #endif |
590 | #ifdef HAVE_SYS_STAT_H | |
591 | # include <sys/stat.h> | |
592 | #endif | |
593 | #ifdef STDC_HEADERS | |
621 | #ifdef HAVE_STDLIB_H | |
594 | 622 | # include <stdlib.h> |
595 | # include <stddef.h> | |
596 | #else | |
597 | # ifdef HAVE_STDLIB_H | |
598 | # include <stdlib.h> | |
599 | # endif | |
600 | 623 | #endif |
601 | 624 | #ifdef HAVE_STRING_H |
602 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
603 | # include <memory.h> | |
604 | # endif | |
605 | 625 | # include <string.h> |
606 | #endif | |
607 | #ifdef HAVE_STRINGS_H | |
608 | # include <strings.h> | |
609 | 626 | #endif |
610 | 627 | #ifdef HAVE_INTTYPES_H |
611 | 628 | # include <inttypes.h> |
613 | 630 | #ifdef HAVE_STDINT_H |
614 | 631 | # include <stdint.h> |
615 | 632 | #endif |
633 | #ifdef HAVE_STRINGS_H | |
634 | # include <strings.h> | |
635 | #endif | |
636 | #ifdef HAVE_SYS_TYPES_H | |
637 | # include <sys/types.h> | |
638 | #endif | |
639 | #ifdef HAVE_SYS_STAT_H | |
640 | # include <sys/stat.h> | |
641 | #endif | |
616 | 642 | #ifdef HAVE_UNISTD_H |
617 | 643 | # include <unistd.h> |
618 | 644 | #endif" |
619 | 645 | |
646 | ac_header_c_list= | |
620 | 647 | ac_subst_vars='am__EXEEXT_FALSE |
621 | 648 | am__EXEEXT_TRUE |
622 | 649 | LTLIBOBJS |
626 | 653 | XXD_FOUND |
627 | 654 | LTLIBICONV |
628 | 655 | LIBICONV |
656 | EGREP | |
657 | GREP | |
658 | CPP | |
629 | 659 | host_os |
630 | 660 | host_vendor |
631 | 661 | host_cpu |
635 | 665 | build_cpu |
636 | 666 | build |
637 | 667 | LN_S |
638 | EGREP | |
639 | GREP | |
640 | CPP | |
641 | 668 | am__fastdepCC_FALSE |
642 | 669 | am__fastdepCC_TRUE |
643 | 670 | CCDEPMODE |
661 | 688 | AM_DEFAULT_VERBOSITY |
662 | 689 | AM_DEFAULT_V |
663 | 690 | AM_V |
691 | CSCOPE | |
692 | ETAGS | |
693 | CTAGS | |
664 | 694 | am__untar |
665 | 695 | am__tar |
666 | 696 | AMTAR |
815 | 845 | *) ac_optarg=yes ;; |
816 | 846 | esac |
817 | 847 | |
818 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
819 | ||
820 | 848 | case $ac_dashdash$ac_option in |
821 | 849 | --) |
822 | 850 | ac_dashdash=yes ;; |
857 | 885 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
858 | 886 | # Reject names that are not valid shell variable names. |
859 | 887 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
860 | as_fn_error $? "invalid feature name: $ac_useropt" | |
888 | as_fn_error $? "invalid feature name: \`$ac_useropt'" | |
861 | 889 | ac_useropt_orig=$ac_useropt |
862 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
890 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
863 | 891 | case $ac_user_opts in |
864 | 892 | *" |
865 | 893 | "enable_$ac_useropt" |
883 | 911 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
884 | 912 | # Reject names that are not valid shell variable names. |
885 | 913 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
886 | as_fn_error $? "invalid feature name: $ac_useropt" | |
914 | as_fn_error $? "invalid feature name: \`$ac_useropt'" | |
887 | 915 | ac_useropt_orig=$ac_useropt |
888 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
916 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
889 | 917 | case $ac_user_opts in |
890 | 918 | *" |
891 | 919 | "enable_$ac_useropt" |
1096 | 1124 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1097 | 1125 | # Reject names that are not valid shell variable names. |
1098 | 1126 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1099 | as_fn_error $? "invalid package name: $ac_useropt" | |
1127 | as_fn_error $? "invalid package name: \`$ac_useropt'" | |
1100 | 1128 | ac_useropt_orig=$ac_useropt |
1101 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1129 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1102 | 1130 | case $ac_user_opts in |
1103 | 1131 | *" |
1104 | 1132 | "with_$ac_useropt" |
1112 | 1140 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1113 | 1141 | # Reject names that are not valid shell variable names. |
1114 | 1142 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1115 | as_fn_error $? "invalid package name: $ac_useropt" | |
1143 | as_fn_error $? "invalid package name: \`$ac_useropt'" | |
1116 | 1144 | ac_useropt_orig=$ac_useropt |
1117 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1145 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1118 | 1146 | case $ac_user_opts in |
1119 | 1147 | *" |
1120 | 1148 | "with_$ac_useropt" |
1158 | 1186 | |
1159 | 1187 | *) |
1160 | 1188 | # FIXME: should be removed in autoconf 3.0. |
1161 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1189 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1162 | 1190 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1163 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1191 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1164 | 1192 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1165 | 1193 | ;; |
1166 | 1194 | |
1176 | 1204 | case $enable_option_checking in |
1177 | 1205 | no) ;; |
1178 | 1206 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1179 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1207 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1180 | 1208 | esac |
1181 | 1209 | fi |
1182 | 1210 | |
1240 | 1268 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
1241 | 1269 | X"$as_myself" : 'X\(//\)$' \| \ |
1242 | 1270 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1243 | $as_echo X"$as_myself" | | |
1271 | printf "%s\n" X"$as_myself" | | |
1244 | 1272 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1245 | 1273 | s//\1/ |
1246 | 1274 | q |
1297 | 1325 | # Omit some internal or obsolete options to make the list less imposing. |
1298 | 1326 | # This message is too long to be a string in the A/UX 3.1 sh. |
1299 | 1327 | cat <<_ACEOF |
1300 | \`configure' configures dosfstools 4.2 to adapt to many kinds of systems. | |
1328 | \`configure' configures dosfstools 4.2+git to adapt to many kinds of systems. | |
1301 | 1329 | |
1302 | 1330 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1303 | 1331 | |
1368 | 1396 | |
1369 | 1397 | if test -n "$ac_init_help"; then |
1370 | 1398 | case $ac_init_help in |
1371 | short | recursive ) echo "Configuration of dosfstools 4.2:";; | |
1399 | short | recursive ) echo "Configuration of dosfstools 4.2+git:";; | |
1372 | 1400 | esac |
1373 | 1401 | cat <<\_ACEOF |
1374 | 1402 | |
1427 | 1455 | case "$ac_dir" in |
1428 | 1456 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1429 | 1457 | *) |
1430 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1458 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` | |
1431 | 1459 | # A ".." for each directory in $ac_dir_suffix. |
1432 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1460 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1433 | 1461 | case $ac_top_builddir_sub in |
1434 | 1462 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1435 | 1463 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1457 | 1485 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1458 | 1486 | |
1459 | 1487 | cd "$ac_dir" || { ac_status=$?; continue; } |
1460 | # Check for guested configure. | |
1488 | # Check for configure.gnu first; this name is used for a wrapper for | |
1489 | # Metaconfig's "Configure" on case-insensitive file systems. | |
1461 | 1490 | if test -f "$ac_srcdir/configure.gnu"; then |
1462 | 1491 | echo && |
1463 | 1492 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1465 | 1494 | echo && |
1466 | 1495 | $SHELL "$ac_srcdir/configure" --help=recursive |
1467 | 1496 | else |
1468 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1497 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1469 | 1498 | fi || ac_status=$? |
1470 | 1499 | cd "$ac_pwd" || { ac_status=$?; break; } |
1471 | 1500 | done |
1474 | 1503 | test -n "$ac_init_help" && exit $ac_status |
1475 | 1504 | if $ac_init_version; then |
1476 | 1505 | cat <<\_ACEOF |
1477 | dosfstools configure 4.2 | |
1478 | generated by GNU Autoconf 2.69 | |
1479 | ||
1480 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1506 | dosfstools configure 4.2+git | |
1507 | generated by GNU Autoconf 2.71 | |
1508 | ||
1509 | Copyright (C) 2021 Free Software Foundation, Inc. | |
1481 | 1510 | This configure script is free software; the Free Software Foundation |
1482 | 1511 | gives unlimited permission to copy, distribute and modify it. |
1483 | 1512 | _ACEOF |
1494 | 1523 | ac_fn_c_try_compile () |
1495 | 1524 | { |
1496 | 1525 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1497 | rm -f conftest.$ac_objext | |
1526 | rm -f conftest.$ac_objext conftest.beam | |
1498 | 1527 | if { { ac_try="$ac_compile" |
1499 | 1528 | case "(($ac_try" in |
1500 | 1529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1501 | 1530 | *) ac_try_echo=$ac_try;; |
1502 | 1531 | esac |
1503 | 1532 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1504 | $as_echo "$ac_try_echo"; } >&5 | |
1533 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1505 | 1534 | (eval "$ac_compile") 2>conftest.err |
1506 | 1535 | ac_status=$? |
1507 | 1536 | if test -s conftest.err; then |
1509 | 1538 | cat conftest.er1 >&5 |
1510 | 1539 | mv -f conftest.er1 conftest.err |
1511 | 1540 | fi |
1512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1541 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1513 | 1542 | test $ac_status = 0; } && { |
1514 | 1543 | test -z "$ac_c_werror_flag" || |
1515 | 1544 | test ! -s conftest.err |
1516 | } && test -s conftest.$ac_objext; then : | |
1545 | } && test -s conftest.$ac_objext | |
1546 | then : | |
1517 | 1547 | ac_retval=0 |
1518 | else | |
1519 | $as_echo "$as_me: failed program was:" >&5 | |
1548 | else $as_nop | |
1549 | printf "%s\n" "$as_me: failed program was:" >&5 | |
1520 | 1550 | sed 's/^/| /' conftest.$ac_ext >&5 |
1521 | 1551 | |
1522 | 1552 | ac_retval=1 |
1525 | 1555 | as_fn_set_status $ac_retval |
1526 | 1556 | |
1527 | 1557 | } # ac_fn_c_try_compile |
1528 | ||
1529 | # ac_fn_c_try_cpp LINENO | |
1530 | # ---------------------- | |
1531 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1532 | ac_fn_c_try_cpp () | |
1533 | { | |
1534 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1535 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1536 | case "(($ac_try" in | |
1537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1538 | *) ac_try_echo=$ac_try;; | |
1539 | esac | |
1540 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1541 | $as_echo "$ac_try_echo"; } >&5 | |
1542 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1543 | ac_status=$? | |
1544 | if test -s conftest.err; then | |
1545 | grep -v '^ *+' conftest.err >conftest.er1 | |
1546 | cat conftest.er1 >&5 | |
1547 | mv -f conftest.er1 conftest.err | |
1548 | fi | |
1549 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1550 | test $ac_status = 0; } > conftest.i && { | |
1551 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1552 | test ! -s conftest.err | |
1553 | }; then : | |
1554 | ac_retval=0 | |
1555 | else | |
1556 | $as_echo "$as_me: failed program was:" >&5 | |
1557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1558 | ||
1559 | ac_retval=1 | |
1560 | fi | |
1561 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1562 | as_fn_set_status $ac_retval | |
1563 | ||
1564 | } # ac_fn_c_try_cpp | |
1565 | ||
1566 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1567 | # ------------------------------------------------------- | |
1568 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1569 | # the include files in INCLUDES and setting the cache variable VAR | |
1570 | # accordingly. | |
1571 | ac_fn_c_check_header_mongrel () | |
1572 | { | |
1573 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1574 | if eval \${$3+:} false; then : | |
1575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1576 | $as_echo_n "checking for $2... " >&6; } | |
1577 | if eval \${$3+:} false; then : | |
1578 | $as_echo_n "(cached) " >&6 | |
1579 | fi | |
1580 | eval ac_res=\$$3 | |
1581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1582 | $as_echo "$ac_res" >&6; } | |
1583 | else | |
1584 | # Is the header compilable? | |
1585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1586 | $as_echo_n "checking $2 usability... " >&6; } | |
1587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1588 | /* end confdefs.h. */ | |
1589 | $4 | |
1590 | #include <$2> | |
1591 | _ACEOF | |
1592 | if ac_fn_c_try_compile "$LINENO"; then : | |
1593 | ac_header_compiler=yes | |
1594 | else | |
1595 | ac_header_compiler=no | |
1596 | fi | |
1597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1599 | $as_echo "$ac_header_compiler" >&6; } | |
1600 | ||
1601 | # Is the header present? | |
1602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1603 | $as_echo_n "checking $2 presence... " >&6; } | |
1604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1605 | /* end confdefs.h. */ | |
1606 | #include <$2> | |
1607 | _ACEOF | |
1608 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1609 | ac_header_preproc=yes | |
1610 | else | |
1611 | ac_header_preproc=no | |
1612 | fi | |
1613 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1615 | $as_echo "$ac_header_preproc" >&6; } | |
1616 | ||
1617 | # So? What about this header? | |
1618 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1619 | yes:no: ) | |
1620 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1621 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1622 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1623 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1624 | ;; | |
1625 | no:yes:* ) | |
1626 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1627 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1628 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1629 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1630 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1631 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1632 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1633 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1634 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1635 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1636 | ;; | |
1637 | esac | |
1638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1639 | $as_echo_n "checking for $2... " >&6; } | |
1640 | if eval \${$3+:} false; then : | |
1641 | $as_echo_n "(cached) " >&6 | |
1642 | else | |
1643 | eval "$3=\$ac_header_compiler" | |
1644 | fi | |
1645 | eval ac_res=\$$3 | |
1646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1647 | $as_echo "$ac_res" >&6; } | |
1648 | fi | |
1649 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1650 | ||
1651 | } # ac_fn_c_check_header_mongrel | |
1652 | ||
1653 | # ac_fn_c_try_run LINENO | |
1654 | # ---------------------- | |
1655 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1656 | # that executables *can* be run. | |
1657 | ac_fn_c_try_run () | |
1658 | { | |
1659 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1660 | if { { ac_try="$ac_link" | |
1661 | case "(($ac_try" in | |
1662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1663 | *) ac_try_echo=$ac_try;; | |
1664 | esac | |
1665 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1666 | $as_echo "$ac_try_echo"; } >&5 | |
1667 | (eval "$ac_link") 2>&5 | |
1668 | ac_status=$? | |
1669 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1670 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1671 | { { case "(($ac_try" in | |
1672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1673 | *) ac_try_echo=$ac_try;; | |
1674 | esac | |
1675 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1676 | $as_echo "$ac_try_echo"; } >&5 | |
1677 | (eval "$ac_try") 2>&5 | |
1678 | ac_status=$? | |
1679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1680 | test $ac_status = 0; }; }; then : | |
1681 | ac_retval=0 | |
1682 | else | |
1683 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1684 | $as_echo "$as_me: failed program was:" >&5 | |
1685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1686 | ||
1687 | ac_retval=$ac_status | |
1688 | fi | |
1689 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1690 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1691 | as_fn_set_status $ac_retval | |
1692 | ||
1693 | } # ac_fn_c_try_run | |
1694 | 1558 | |
1695 | 1559 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1696 | 1560 | # ------------------------------------------------------- |
1699 | 1563 | ac_fn_c_check_header_compile () |
1700 | 1564 | { |
1701 | 1565 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1703 | $as_echo_n "checking for $2... " >&6; } | |
1704 | if eval \${$3+:} false; then : | |
1705 | $as_echo_n "(cached) " >&6 | |
1706 | else | |
1566 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1567 | printf %s "checking for $2... " >&6; } | |
1568 | if eval test \${$3+y} | |
1569 | then : | |
1570 | printf %s "(cached) " >&6 | |
1571 | else $as_nop | |
1707 | 1572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1708 | 1573 | /* end confdefs.h. */ |
1709 | 1574 | $4 |
1710 | 1575 | #include <$2> |
1711 | 1576 | _ACEOF |
1712 | if ac_fn_c_try_compile "$LINENO"; then : | |
1577 | if ac_fn_c_try_compile "$LINENO" | |
1578 | then : | |
1713 | 1579 | eval "$3=yes" |
1714 | else | |
1580 | else $as_nop | |
1715 | 1581 | eval "$3=no" |
1716 | 1582 | fi |
1717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1583 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1718 | 1584 | fi |
1719 | 1585 | eval ac_res=\$$3 |
1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1721 | $as_echo "$ac_res" >&6; } | |
1586 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1587 | printf "%s\n" "$ac_res" >&6; } | |
1722 | 1588 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1723 | 1589 | |
1724 | 1590 | } # ac_fn_c_check_header_compile |
1729 | 1595 | ac_fn_c_try_link () |
1730 | 1596 | { |
1731 | 1597 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1732 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1598 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext | |
1733 | 1599 | if { { ac_try="$ac_link" |
1734 | 1600 | case "(($ac_try" in |
1735 | 1601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1736 | 1602 | *) ac_try_echo=$ac_try;; |
1737 | 1603 | esac |
1738 | 1604 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1739 | $as_echo "$ac_try_echo"; } >&5 | |
1605 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1740 | 1606 | (eval "$ac_link") 2>conftest.err |
1741 | 1607 | ac_status=$? |
1742 | 1608 | if test -s conftest.err; then |
1744 | 1610 | cat conftest.er1 >&5 |
1745 | 1611 | mv -f conftest.er1 conftest.err |
1746 | 1612 | fi |
1747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1613 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1748 | 1614 | test $ac_status = 0; } && { |
1749 | 1615 | test -z "$ac_c_werror_flag" || |
1750 | 1616 | test ! -s conftest.err |
1751 | 1617 | } && test -s conftest$ac_exeext && { |
1752 | 1618 | test "$cross_compiling" = yes || |
1753 | 1619 | test -x conftest$ac_exeext |
1754 | }; then : | |
1620 | } | |
1621 | then : | |
1755 | 1622 | ac_retval=0 |
1756 | else | |
1757 | $as_echo "$as_me: failed program was:" >&5 | |
1623 | else $as_nop | |
1624 | printf "%s\n" "$as_me: failed program was:" >&5 | |
1758 | 1625 | sed 's/^/| /' conftest.$ac_ext >&5 |
1759 | 1626 | |
1760 | 1627 | ac_retval=1 |
1775 | 1642 | ac_fn_c_check_func () |
1776 | 1643 | { |
1777 | 1644 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1779 | $as_echo_n "checking for $2... " >&6; } | |
1780 | if eval \${$3+:} false; then : | |
1781 | $as_echo_n "(cached) " >&6 | |
1782 | else | |
1645 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1646 | printf %s "checking for $2... " >&6; } | |
1647 | if eval test \${$3+y} | |
1648 | then : | |
1649 | printf %s "(cached) " >&6 | |
1650 | else $as_nop | |
1783 | 1651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1784 | 1652 | /* end confdefs.h. */ |
1785 | 1653 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1787 | 1655 | #define $2 innocuous_$2 |
1788 | 1656 | |
1789 | 1657 | /* System header to define __stub macros and hopefully few prototypes, |
1790 | which can conflict with char $2 (); below. | |
1791 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1792 | <limits.h> exists even on freestanding compilers. */ | |
1793 | ||
1794 | #ifdef __STDC__ | |
1795 | # include <limits.h> | |
1796 | #else | |
1797 | # include <assert.h> | |
1798 | #endif | |
1799 | ||
1658 | which can conflict with char $2 (); below. */ | |
1659 | ||
1660 | #include <limits.h> | |
1800 | 1661 | #undef $2 |
1801 | 1662 | |
1802 | 1663 | /* Override any GCC internal prototype to avoid an error. |
1814 | 1675 | #endif |
1815 | 1676 | |
1816 | 1677 | int |
1817 | main () | |
1678 | main (void) | |
1818 | 1679 | { |
1819 | 1680 | return $2 (); |
1820 | 1681 | ; |
1821 | 1682 | return 0; |
1822 | 1683 | } |
1823 | 1684 | _ACEOF |
1824 | if ac_fn_c_try_link "$LINENO"; then : | |
1685 | if ac_fn_c_try_link "$LINENO" | |
1686 | then : | |
1825 | 1687 | eval "$3=yes" |
1826 | else | |
1688 | else $as_nop | |
1827 | 1689 | eval "$3=no" |
1828 | 1690 | fi |
1829 | rm -f core conftest.err conftest.$ac_objext \ | |
1691 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
1830 | 1692 | conftest$ac_exeext conftest.$ac_ext |
1831 | 1693 | fi |
1832 | 1694 | eval ac_res=\$$3 |
1833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1834 | $as_echo "$ac_res" >&6; } | |
1695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1696 | printf "%s\n" "$ac_res" >&6; } | |
1835 | 1697 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1836 | 1698 | |
1837 | 1699 | } # ac_fn_c_check_func |
1838 | 1700 | |
1839 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
1840 | # --------------------------------------------- | |
1701 | # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR | |
1702 | # ------------------------------------------------------------------ | |
1841 | 1703 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
1842 | # accordingly. | |
1843 | ac_fn_c_check_decl () | |
1704 | # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. | |
1705 | ac_fn_check_decl () | |
1844 | 1706 | { |
1845 | 1707 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1846 | 1708 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1709 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1710 | printf %s "checking whether $as_decl_name is declared... " >&6; } | |
1711 | if eval test \${$3+y} | |
1712 | then : | |
1713 | printf %s "(cached) " >&6 | |
1714 | else $as_nop | |
1847 | 1715 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1849 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
1850 | if eval \${$3+:} false; then : | |
1851 | $as_echo_n "(cached) " >&6 | |
1852 | else | |
1716 | eval ac_save_FLAGS=\$$6 | |
1717 | as_fn_append $6 " $5" | |
1853 | 1718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1854 | 1719 | /* end confdefs.h. */ |
1855 | 1720 | $4 |
1856 | 1721 | int |
1857 | main () | |
1722 | main (void) | |
1858 | 1723 | { |
1859 | 1724 | #ifndef $as_decl_name |
1860 | 1725 | #ifdef __cplusplus |
1868 | 1733 | return 0; |
1869 | 1734 | } |
1870 | 1735 | _ACEOF |
1871 | if ac_fn_c_try_compile "$LINENO"; then : | |
1736 | if ac_fn_c_try_compile "$LINENO" | |
1737 | then : | |
1872 | 1738 | eval "$3=yes" |
1873 | else | |
1739 | else $as_nop | |
1874 | 1740 | eval "$3=no" |
1875 | 1741 | fi |
1876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1742 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1743 | eval $6=\$ac_save_FLAGS | |
1744 | ||
1877 | 1745 | fi |
1878 | 1746 | eval ac_res=\$$3 |
1879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1880 | $as_echo "$ac_res" >&6; } | |
1747 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1748 | printf "%s\n" "$ac_res" >&6; } | |
1881 | 1749 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1882 | 1750 | |
1883 | } # ac_fn_c_check_decl | |
1751 | } # ac_fn_check_decl | |
1752 | ||
1753 | # ac_fn_c_try_cpp LINENO | |
1754 | # ---------------------- | |
1755 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1756 | ac_fn_c_try_cpp () | |
1757 | { | |
1758 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1759 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1760 | case "(($ac_try" in | |
1761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1762 | *) ac_try_echo=$ac_try;; | |
1763 | esac | |
1764 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1765 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1766 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1767 | ac_status=$? | |
1768 | if test -s conftest.err; then | |
1769 | grep -v '^ *+' conftest.err >conftest.er1 | |
1770 | cat conftest.er1 >&5 | |
1771 | mv -f conftest.er1 conftest.err | |
1772 | fi | |
1773 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1774 | test $ac_status = 0; } > conftest.i && { | |
1775 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1776 | test ! -s conftest.err | |
1777 | } | |
1778 | then : | |
1779 | ac_retval=0 | |
1780 | else $as_nop | |
1781 | printf "%s\n" "$as_me: failed program was:" >&5 | |
1782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1783 | ||
1784 | ac_retval=1 | |
1785 | fi | |
1786 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1787 | as_fn_set_status $ac_retval | |
1788 | ||
1789 | } # ac_fn_c_try_cpp | |
1790 | ||
1791 | # ac_fn_c_try_run LINENO | |
1792 | # ---------------------- | |
1793 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that | |
1794 | # executables *can* be run. | |
1795 | ac_fn_c_try_run () | |
1796 | { | |
1797 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1798 | if { { ac_try="$ac_link" | |
1799 | case "(($ac_try" in | |
1800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1801 | *) ac_try_echo=$ac_try;; | |
1802 | esac | |
1803 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1804 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1805 | (eval "$ac_link") 2>&5 | |
1806 | ac_status=$? | |
1807 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1808 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1809 | { { case "(($ac_try" in | |
1810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1811 | *) ac_try_echo=$ac_try;; | |
1812 | esac | |
1813 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1814 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1815 | (eval "$ac_try") 2>&5 | |
1816 | ac_status=$? | |
1817 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1818 | test $ac_status = 0; }; } | |
1819 | then : | |
1820 | ac_retval=0 | |
1821 | else $as_nop | |
1822 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 | |
1823 | printf "%s\n" "$as_me: failed program was:" >&5 | |
1824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1825 | ||
1826 | ac_retval=$ac_status | |
1827 | fi | |
1828 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1829 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1830 | as_fn_set_status $ac_retval | |
1831 | ||
1832 | } # ac_fn_c_try_run | |
1833 | ac_configure_args_raw= | |
1834 | for ac_arg | |
1835 | do | |
1836 | case $ac_arg in | |
1837 | *\'*) | |
1838 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1839 | esac | |
1840 | as_fn_append ac_configure_args_raw " '$ac_arg'" | |
1841 | done | |
1842 | ||
1843 | case $ac_configure_args_raw in | |
1844 | *$as_nl*) | |
1845 | ac_safe_unquote= ;; | |
1846 | *) | |
1847 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. | |
1848 | ac_unsafe_a="$ac_unsafe_z#~" | |
1849 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" | |
1850 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; | |
1851 | esac | |
1852 | ||
1884 | 1853 | cat >config.log <<_ACEOF |
1885 | 1854 | This file contains any messages produced by compilers while |
1886 | 1855 | running configure, to aid debugging if configure makes a mistake. |
1887 | 1856 | |
1888 | It was created by dosfstools $as_me 4.2, which was | |
1889 | generated by GNU Autoconf 2.69. Invocation command line was | |
1890 | ||
1891 | $ $0 $@ | |
1857 | It was created by dosfstools $as_me 4.2+git, which was | |
1858 | generated by GNU Autoconf 2.71. Invocation command line was | |
1859 | ||
1860 | $ $0$ac_configure_args_raw | |
1892 | 1861 | |
1893 | 1862 | _ACEOF |
1894 | 1863 | exec 5>>config.log |
1921 | 1890 | for as_dir in $PATH |
1922 | 1891 | do |
1923 | 1892 | IFS=$as_save_IFS |
1924 | test -z "$as_dir" && as_dir=. | |
1925 | $as_echo "PATH: $as_dir" | |
1893 | case $as_dir in #((( | |
1894 | '') as_dir=./ ;; | |
1895 | */) ;; | |
1896 | *) as_dir=$as_dir/ ;; | |
1897 | esac | |
1898 | printf "%s\n" "PATH: $as_dir" | |
1926 | 1899 | done |
1927 | 1900 | IFS=$as_save_IFS |
1928 | 1901 | |
1957 | 1930 | | -silent | --silent | --silen | --sile | --sil) |
1958 | 1931 | continue ;; |
1959 | 1932 | *\'*) |
1960 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1933 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1961 | 1934 | esac |
1962 | 1935 | case $ac_pass in |
1963 | 1936 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1992 | 1965 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1993 | 1966 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1994 | 1967 | trap 'exit_status=$? |
1968 | # Sanitize IFS. | |
1969 | IFS=" "" $as_nl" | |
1995 | 1970 | # Save into config.log some information that might help in debugging. |
1996 | 1971 | { |
1997 | 1972 | echo |
1998 | 1973 | |
1999 | $as_echo "## ---------------- ## | |
1974 | printf "%s\n" "## ---------------- ## | |
2000 | 1975 | ## Cache variables. ## |
2001 | 1976 | ## ---------------- ##" |
2002 | 1977 | echo |
2007 | 1982 | case $ac_val in #( |
2008 | 1983 | *${as_nl}*) |
2009 | 1984 | case $ac_var in #( |
2010 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2011 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1985 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1986 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2012 | 1987 | esac |
2013 | 1988 | case $ac_var in #( |
2014 | 1989 | _ | IFS | as_nl) ;; #( |
2032 | 2007 | ) |
2033 | 2008 | echo |
2034 | 2009 | |
2035 | $as_echo "## ----------------- ## | |
2010 | printf "%s\n" "## ----------------- ## | |
2036 | 2011 | ## Output variables. ## |
2037 | 2012 | ## ----------------- ##" |
2038 | 2013 | echo |
2040 | 2015 | do |
2041 | 2016 | eval ac_val=\$$ac_var |
2042 | 2017 | case $ac_val in |
2043 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2018 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2044 | 2019 | esac |
2045 | $as_echo "$ac_var='\''$ac_val'\''" | |
2020 | printf "%s\n" "$ac_var='\''$ac_val'\''" | |
2046 | 2021 | done | sort |
2047 | 2022 | echo |
2048 | 2023 | |
2049 | 2024 | if test -n "$ac_subst_files"; then |
2050 | $as_echo "## ------------------- ## | |
2025 | printf "%s\n" "## ------------------- ## | |
2051 | 2026 | ## File substitutions. ## |
2052 | 2027 | ## ------------------- ##" |
2053 | 2028 | echo |
2055 | 2030 | do |
2056 | 2031 | eval ac_val=\$$ac_var |
2057 | 2032 | case $ac_val in |
2058 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2033 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2059 | 2034 | esac |
2060 | $as_echo "$ac_var='\''$ac_val'\''" | |
2035 | printf "%s\n" "$ac_var='\''$ac_val'\''" | |
2061 | 2036 | done | sort |
2062 | 2037 | echo |
2063 | 2038 | fi |
2064 | 2039 | |
2065 | 2040 | if test -s confdefs.h; then |
2066 | $as_echo "## ----------- ## | |
2041 | printf "%s\n" "## ----------- ## | |
2067 | 2042 | ## confdefs.h. ## |
2068 | 2043 | ## ----------- ##" |
2069 | 2044 | echo |
2071 | 2046 | echo |
2072 | 2047 | fi |
2073 | 2048 | test "$ac_signal" != 0 && |
2074 | $as_echo "$as_me: caught signal $ac_signal" | |
2075 | $as_echo "$as_me: exit $exit_status" | |
2049 | printf "%s\n" "$as_me: caught signal $ac_signal" | |
2050 | printf "%s\n" "$as_me: exit $exit_status" | |
2076 | 2051 | } >&5 |
2077 | 2052 | rm -f core *.core core.conftest.* && |
2078 | 2053 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2086 | 2061 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2087 | 2062 | rm -f -r conftest* confdefs.h |
2088 | 2063 | |
2089 | $as_echo "/* confdefs.h */" > confdefs.h | |
2064 | printf "%s\n" "/* confdefs.h */" > confdefs.h | |
2090 | 2065 | |
2091 | 2066 | # Predefined preprocessor variables. |
2092 | 2067 | |
2093 | cat >>confdefs.h <<_ACEOF | |
2094 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2095 | _ACEOF | |
2096 | ||
2097 | cat >>confdefs.h <<_ACEOF | |
2098 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2099 | _ACEOF | |
2100 | ||
2101 | cat >>confdefs.h <<_ACEOF | |
2102 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2103 | _ACEOF | |
2104 | ||
2105 | cat >>confdefs.h <<_ACEOF | |
2106 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2107 | _ACEOF | |
2108 | ||
2109 | cat >>confdefs.h <<_ACEOF | |
2110 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2111 | _ACEOF | |
2112 | ||
2113 | cat >>confdefs.h <<_ACEOF | |
2114 | #define PACKAGE_URL "$PACKAGE_URL" | |
2115 | _ACEOF | |
2068 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h | |
2069 | ||
2070 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h | |
2071 | ||
2072 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h | |
2073 | ||
2074 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h | |
2075 | ||
2076 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h | |
2077 | ||
2078 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h | |
2116 | 2079 | |
2117 | 2080 | |
2118 | 2081 | # Let the site file select an alternate cache file if it wants to. |
2119 | 2082 | # Prefer an explicitly selected file to automatically selected ones. |
2120 | ac_site_file1=NONE | |
2121 | ac_site_file2=NONE | |
2122 | 2083 | if test -n "$CONFIG_SITE"; then |
2123 | # We do not want a PATH search for config.site. | |
2124 | case $CONFIG_SITE in #(( | |
2125 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2126 | */*) ac_site_file1=$CONFIG_SITE;; | |
2127 | *) ac_site_file1=./$CONFIG_SITE;; | |
2128 | esac | |
2084 | ac_site_files="$CONFIG_SITE" | |
2129 | 2085 | elif test "x$prefix" != xNONE; then |
2130 | ac_site_file1=$prefix/share/config.site | |
2131 | ac_site_file2=$prefix/etc/config.site | |
2086 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" | |
2132 | 2087 | else |
2133 | ac_site_file1=$ac_default_prefix/share/config.site | |
2134 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2135 | fi | |
2136 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2088 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
2089 | fi | |
2090 | ||
2091 | for ac_site_file in $ac_site_files | |
2137 | 2092 | do |
2138 | test "x$ac_site_file" = xNONE && continue | |
2139 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2141 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2093 | case $ac_site_file in #( | |
2094 | */*) : | |
2095 | ;; #( | |
2096 | *) : | |
2097 | ac_site_file=./$ac_site_file ;; | |
2098 | esac | |
2099 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then | |
2100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2101 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} | |
2142 | 2102 | sed 's/^/| /' "$ac_site_file" >&5 |
2143 | 2103 | . "$ac_site_file" \ |
2144 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2145 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2104 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2105 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
2146 | 2106 | as_fn_error $? "failed to load site script $ac_site_file |
2147 | 2107 | See \`config.log' for more details" "$LINENO" 5; } |
2148 | 2108 | fi |
2152 | 2112 | # Some versions of bash will fail to source /dev/null (special files |
2153 | 2113 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2154 | 2114 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2155 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2156 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2115 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2116 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} | |
2157 | 2117 | case $cache_file in |
2158 | 2118 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2159 | 2119 | *) . "./$cache_file";; |
2160 | 2120 | esac |
2161 | 2121 | fi |
2162 | 2122 | else |
2163 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2164 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2123 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2124 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} | |
2165 | 2125 | >$cache_file |
2126 | fi | |
2127 | ||
2128 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" | |
2129 | # Test code for whether the C compiler supports C89 (global declarations) | |
2130 | ac_c_conftest_c89_globals=' | |
2131 | /* Does the compiler advertise C89 conformance? | |
2132 | Do not test the value of __STDC__, because some compilers set it to 0 | |
2133 | while being otherwise adequately conformant. */ | |
2134 | #if !defined __STDC__ | |
2135 | # error "Compiler does not advertise C89 conformance" | |
2136 | #endif | |
2137 | ||
2138 | #include <stddef.h> | |
2139 | #include <stdarg.h> | |
2140 | struct stat; | |
2141 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | |
2142 | struct buf { int x; }; | |
2143 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | |
2144 | static char *e (p, i) | |
2145 | char **p; | |
2146 | int i; | |
2147 | { | |
2148 | return p[i]; | |
2149 | } | |
2150 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2151 | { | |
2152 | char *s; | |
2153 | va_list v; | |
2154 | va_start (v,p); | |
2155 | s = g (p, va_arg (v,int)); | |
2156 | va_end (v); | |
2157 | return s; | |
2158 | } | |
2159 | ||
2160 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2161 | function prototypes and stuff, but not \xHH hex character constants. | |
2162 | These do not provoke an error unfortunately, instead are silently treated | |
2163 | as an "x". The following induces an error, until -std is added to get | |
2164 | proper ANSI mode. Curiously \x00 != x always comes out true, for an | |
2165 | array size at least. It is necessary to write \x00 == 0 to get something | |
2166 | that is true only with -std. */ | |
2167 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; | |
2168 | ||
2169 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2170 | inside strings and character constants. */ | |
2171 | #define FOO(x) '\''x'\'' | |
2172 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; | |
2173 | ||
2174 | int test (int i, double x); | |
2175 | struct s1 {int (*f) (int a);}; | |
2176 | struct s2 {int (*f) (double a);}; | |
2177 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | |
2178 | int, int);' | |
2179 | ||
2180 | # Test code for whether the C compiler supports C89 (body of main). | |
2181 | ac_c_conftest_c89_main=' | |
2182 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | |
2183 | ' | |
2184 | ||
2185 | # Test code for whether the C compiler supports C99 (global declarations) | |
2186 | ac_c_conftest_c99_globals=' | |
2187 | // Does the compiler advertise C99 conformance? | |
2188 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L | |
2189 | # error "Compiler does not advertise C99 conformance" | |
2190 | #endif | |
2191 | ||
2192 | #include <stdbool.h> | |
2193 | extern int puts (const char *); | |
2194 | extern int printf (const char *, ...); | |
2195 | extern int dprintf (int, const char *, ...); | |
2196 | extern void *malloc (size_t); | |
2197 | ||
2198 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
2199 | // dprintf is used instead of fprintf to avoid needing to declare | |
2200 | // FILE and stderr. | |
2201 | #define debug(...) dprintf (2, __VA_ARGS__) | |
2202 | #define showlist(...) puts (#__VA_ARGS__) | |
2203 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
2204 | static void | |
2205 | test_varargs_macros (void) | |
2206 | { | |
2207 | int x = 1234; | |
2208 | int y = 5678; | |
2209 | debug ("Flag"); | |
2210 | debug ("X = %d\n", x); | |
2211 | showlist (The first, second, and third items.); | |
2212 | report (x>y, "x is %d but y is %d", x, y); | |
2213 | } | |
2214 | ||
2215 | // Check long long types. | |
2216 | #define BIG64 18446744073709551615ull | |
2217 | #define BIG32 4294967295ul | |
2218 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
2219 | #if !BIG_OK | |
2220 | #error "your preprocessor is broken" | |
2221 | #endif | |
2222 | #if BIG_OK | |
2223 | #else | |
2224 | #error "your preprocessor is broken" | |
2225 | #endif | |
2226 | static long long int bignum = -9223372036854775807LL; | |
2227 | static unsigned long long int ubignum = BIG64; | |
2228 | ||
2229 | struct incomplete_array | |
2230 | { | |
2231 | int datasize; | |
2232 | double data[]; | |
2233 | }; | |
2234 | ||
2235 | struct named_init { | |
2236 | int number; | |
2237 | const wchar_t *name; | |
2238 | double average; | |
2239 | }; | |
2240 | ||
2241 | typedef const char *ccp; | |
2242 | ||
2243 | static inline int | |
2244 | test_restrict (ccp restrict text) | |
2245 | { | |
2246 | // See if C++-style comments work. | |
2247 | // Iterate through items via the restricted pointer. | |
2248 | // Also check for declarations in for loops. | |
2249 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) | |
2250 | continue; | |
2251 | return 0; | |
2252 | } | |
2253 | ||
2254 | // Check varargs and va_copy. | |
2255 | static bool | |
2256 | test_varargs (const char *format, ...) | |
2257 | { | |
2258 | va_list args; | |
2259 | va_start (args, format); | |
2260 | va_list args_copy; | |
2261 | va_copy (args_copy, args); | |
2262 | ||
2263 | const char *str = ""; | |
2264 | int number = 0; | |
2265 | float fnumber = 0; | |
2266 | ||
2267 | while (*format) | |
2268 | { | |
2269 | switch (*format++) | |
2270 | { | |
2271 | case '\''s'\'': // string | |
2272 | str = va_arg (args_copy, const char *); | |
2273 | break; | |
2274 | case '\''d'\'': // int | |
2275 | number = va_arg (args_copy, int); | |
2276 | break; | |
2277 | case '\''f'\'': // float | |
2278 | fnumber = va_arg (args_copy, double); | |
2279 | break; | |
2280 | default: | |
2281 | break; | |
2282 | } | |
2283 | } | |
2284 | va_end (args_copy); | |
2285 | va_end (args); | |
2286 | ||
2287 | return *str && number && fnumber; | |
2288 | } | |
2289 | ' | |
2290 | ||
2291 | # Test code for whether the C compiler supports C99 (body of main). | |
2292 | ac_c_conftest_c99_main=' | |
2293 | // Check bool. | |
2294 | _Bool success = false; | |
2295 | success |= (argc != 0); | |
2296 | ||
2297 | // Check restrict. | |
2298 | if (test_restrict ("String literal") == 0) | |
2299 | success = true; | |
2300 | char *restrict newvar = "Another string"; | |
2301 | ||
2302 | // Check varargs. | |
2303 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); | |
2304 | test_varargs_macros (); | |
2305 | ||
2306 | // Check flexible array members. | |
2307 | struct incomplete_array *ia = | |
2308 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
2309 | ia->datasize = 10; | |
2310 | for (int i = 0; i < ia->datasize; ++i) | |
2311 | ia->data[i] = i * 1.234; | |
2312 | ||
2313 | // Check named initializers. | |
2314 | struct named_init ni = { | |
2315 | .number = 34, | |
2316 | .name = L"Test wide string", | |
2317 | .average = 543.34343, | |
2318 | }; | |
2319 | ||
2320 | ni.number = 58; | |
2321 | ||
2322 | int dynamic_array[ni.number]; | |
2323 | dynamic_array[0] = argv[0][0]; | |
2324 | dynamic_array[ni.number - 1] = 543; | |
2325 | ||
2326 | // work around unused variable warnings | |
2327 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' | |
2328 | || dynamic_array[ni.number - 1] != 543); | |
2329 | ' | |
2330 | ||
2331 | # Test code for whether the C compiler supports C11 (global declarations) | |
2332 | ac_c_conftest_c11_globals=' | |
2333 | // Does the compiler advertise C11 conformance? | |
2334 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
2335 | # error "Compiler does not advertise C11 conformance" | |
2336 | #endif | |
2337 | ||
2338 | // Check _Alignas. | |
2339 | char _Alignas (double) aligned_as_double; | |
2340 | char _Alignas (0) no_special_alignment; | |
2341 | extern char aligned_as_int; | |
2342 | char _Alignas (0) _Alignas (int) aligned_as_int; | |
2343 | ||
2344 | // Check _Alignof. | |
2345 | enum | |
2346 | { | |
2347 | int_alignment = _Alignof (int), | |
2348 | int_array_alignment = _Alignof (int[100]), | |
2349 | char_alignment = _Alignof (char) | |
2350 | }; | |
2351 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); | |
2352 | ||
2353 | // Check _Noreturn. | |
2354 | int _Noreturn does_not_return (void) { for (;;) continue; } | |
2355 | ||
2356 | // Check _Static_assert. | |
2357 | struct test_static_assert | |
2358 | { | |
2359 | int x; | |
2360 | _Static_assert (sizeof (int) <= sizeof (long int), | |
2361 | "_Static_assert does not work in struct"); | |
2362 | long int y; | |
2363 | }; | |
2364 | ||
2365 | // Check UTF-8 literals. | |
2366 | #define u8 syntax error! | |
2367 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; | |
2368 | ||
2369 | // Check duplicate typedefs. | |
2370 | typedef long *long_ptr; | |
2371 | typedef long int *long_ptr; | |
2372 | typedef long_ptr long_ptr; | |
2373 | ||
2374 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. | |
2375 | struct anonymous | |
2376 | { | |
2377 | union { | |
2378 | struct { int i; int j; }; | |
2379 | struct { int k; long int l; } w; | |
2380 | }; | |
2381 | int m; | |
2382 | } v1; | |
2383 | ' | |
2384 | ||
2385 | # Test code for whether the C compiler supports C11 (body of main). | |
2386 | ac_c_conftest_c11_main=' | |
2387 | _Static_assert ((offsetof (struct anonymous, i) | |
2388 | == offsetof (struct anonymous, w.k)), | |
2389 | "Anonymous union alignment botch"); | |
2390 | v1.i = 2; | |
2391 | v1.w.k = 5; | |
2392 | ok |= v1.i != 5; | |
2393 | ' | |
2394 | ||
2395 | # Test code for whether the C compiler supports C11 (complete). | |
2396 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} | |
2397 | ${ac_c_conftest_c99_globals} | |
2398 | ${ac_c_conftest_c11_globals} | |
2399 | ||
2400 | int | |
2401 | main (int argc, char **argv) | |
2402 | { | |
2403 | int ok = 0; | |
2404 | ${ac_c_conftest_c89_main} | |
2405 | ${ac_c_conftest_c99_main} | |
2406 | ${ac_c_conftest_c11_main} | |
2407 | return ok; | |
2408 | } | |
2409 | " | |
2410 | ||
2411 | # Test code for whether the C compiler supports C99 (complete). | |
2412 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} | |
2413 | ${ac_c_conftest_c99_globals} | |
2414 | ||
2415 | int | |
2416 | main (int argc, char **argv) | |
2417 | { | |
2418 | int ok = 0; | |
2419 | ${ac_c_conftest_c89_main} | |
2420 | ${ac_c_conftest_c99_main} | |
2421 | return ok; | |
2422 | } | |
2423 | " | |
2424 | ||
2425 | # Test code for whether the C compiler supports C89 (complete). | |
2426 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} | |
2427 | ||
2428 | int | |
2429 | main (int argc, char **argv) | |
2430 | { | |
2431 | int ok = 0; | |
2432 | ${ac_c_conftest_c89_main} | |
2433 | return ok; | |
2434 | } | |
2435 | " | |
2436 | ||
2437 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" | |
2438 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" | |
2439 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" | |
2440 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" | |
2441 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" | |
2442 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" | |
2443 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" | |
2444 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" | |
2445 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" | |
2446 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" | |
2447 | ||
2448 | # Auxiliary files required by this configure script. | |
2449 | ac_aux_files="config.rpath config.guess config.sub compile missing install-sh" | |
2450 | ||
2451 | # Locations in which to look for auxiliary files. | |
2452 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." | |
2453 | ||
2454 | # Search for a directory containing all of the required auxiliary files, | |
2455 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. | |
2456 | # If we don't find one directory that contains all the files we need, | |
2457 | # we report the set of missing files from the *first* directory in | |
2458 | # $ac_aux_dir_candidates and give up. | |
2459 | ac_missing_aux_files="" | |
2460 | ac_first_candidate=: | |
2461 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 | |
2462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2463 | as_found=false | |
2464 | for as_dir in $ac_aux_dir_candidates | |
2465 | do | |
2466 | IFS=$as_save_IFS | |
2467 | case $as_dir in #((( | |
2468 | '') as_dir=./ ;; | |
2469 | */) ;; | |
2470 | *) as_dir=$as_dir/ ;; | |
2471 | esac | |
2472 | as_found=: | |
2473 | ||
2474 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 | |
2475 | ac_aux_dir_found=yes | |
2476 | ac_install_sh= | |
2477 | for ac_aux in $ac_aux_files | |
2478 | do | |
2479 | # As a special case, if "install-sh" is required, that requirement | |
2480 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", | |
2481 | # and $ac_install_sh is set appropriately for whichever one is found. | |
2482 | if test x"$ac_aux" = x"install-sh" | |
2483 | then | |
2484 | if test -f "${as_dir}install-sh"; then | |
2485 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 | |
2486 | ac_install_sh="${as_dir}install-sh -c" | |
2487 | elif test -f "${as_dir}install.sh"; then | |
2488 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 | |
2489 | ac_install_sh="${as_dir}install.sh -c" | |
2490 | elif test -f "${as_dir}shtool"; then | |
2491 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 | |
2492 | ac_install_sh="${as_dir}shtool install -c" | |
2493 | else | |
2494 | ac_aux_dir_found=no | |
2495 | if $ac_first_candidate; then | |
2496 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" | |
2497 | else | |
2498 | break | |
2499 | fi | |
2500 | fi | |
2501 | else | |
2502 | if test -f "${as_dir}${ac_aux}"; then | |
2503 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 | |
2504 | else | |
2505 | ac_aux_dir_found=no | |
2506 | if $ac_first_candidate; then | |
2507 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" | |
2508 | else | |
2509 | break | |
2510 | fi | |
2511 | fi | |
2512 | fi | |
2513 | done | |
2514 | if test "$ac_aux_dir_found" = yes; then | |
2515 | ac_aux_dir="$as_dir" | |
2516 | break | |
2517 | fi | |
2518 | ac_first_candidate=false | |
2519 | ||
2520 | as_found=false | |
2521 | done | |
2522 | IFS=$as_save_IFS | |
2523 | if $as_found | |
2524 | then : | |
2525 | ||
2526 | else $as_nop | |
2527 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 | |
2528 | fi | |
2529 | ||
2530 | ||
2531 | # These three variables are undocumented and unsupported, | |
2532 | # and are intended to be withdrawn in a future Autoconf release. | |
2533 | # They can cause serious problems if a builder's source tree is in a directory | |
2534 | # whose full name contains unusual characters. | |
2535 | if test -f "${ac_aux_dir}config.guess"; then | |
2536 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" | |
2537 | fi | |
2538 | if test -f "${ac_aux_dir}config.sub"; then | |
2539 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" | |
2540 | fi | |
2541 | if test -f "$ac_aux_dir/configure"; then | |
2542 | ac_configure="$SHELL ${ac_aux_dir}configure" | |
2166 | 2543 | fi |
2167 | 2544 | |
2168 | 2545 | # Check that the precious variables saved in the cache have kept the same |
2175 | 2552 | eval ac_new_val=\$ac_env_${ac_var}_value |
2176 | 2553 | case $ac_old_set,$ac_new_set in |
2177 | 2554 | set,) |
2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2179 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2555 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2556 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2180 | 2557 | ac_cache_corrupted=: ;; |
2181 | 2558 | ,set) |
2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2183 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2559 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2560 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2184 | 2561 | ac_cache_corrupted=: ;; |
2185 | 2562 | ,);; |
2186 | 2563 | *) |
2189 | 2566 | ac_old_val_w=`echo x $ac_old_val` |
2190 | 2567 | ac_new_val_w=`echo x $ac_new_val` |
2191 | 2568 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2193 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2570 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2194 | 2571 | ac_cache_corrupted=: |
2195 | 2572 | else |
2196 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2197 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2573 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2574 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2198 | 2575 | eval $ac_var=\$ac_old_val |
2199 | 2576 | fi |
2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2201 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2202 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2203 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2577 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2578 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} | |
2579 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2580 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} | |
2204 | 2581 | fi;; |
2205 | 2582 | esac |
2206 | 2583 | # Pass precious variables to config.status. |
2207 | 2584 | if test "$ac_new_set" = set; then |
2208 | 2585 | case $ac_new_val in |
2209 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2586 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2210 | 2587 | *) ac_arg=$ac_var=$ac_new_val ;; |
2211 | 2588 | esac |
2212 | 2589 | case " $ac_configure_args " in |
2216 | 2593 | fi |
2217 | 2594 | done |
2218 | 2595 | if $ac_cache_corrupted; then |
2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2220 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2222 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2223 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2596 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2597 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
2598 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2599 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2600 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' | |
2601 | and start over" "$LINENO" 5 | |
2224 | 2602 | fi |
2225 | 2603 | ## -------------------- ## |
2226 | 2604 | ## Main body of script. ## |
2237 | 2615 | |
2238 | 2616 | am__api_version='1.16' |
2239 | 2617 | |
2240 | ac_aux_dir= | |
2241 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2242 | if test -f "$ac_dir/install-sh"; then | |
2243 | ac_aux_dir=$ac_dir | |
2244 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2245 | break | |
2246 | elif test -f "$ac_dir/install.sh"; then | |
2247 | ac_aux_dir=$ac_dir | |
2248 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2249 | break | |
2250 | elif test -f "$ac_dir/shtool"; then | |
2251 | ac_aux_dir=$ac_dir | |
2252 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2253 | break | |
2254 | fi | |
2255 | done | |
2256 | if test -z "$ac_aux_dir"; then | |
2257 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2258 | fi | |
2259 | ||
2260 | # These three variables are undocumented and unsupported, | |
2261 | # and are intended to be withdrawn in a future Autoconf release. | |
2262 | # They can cause serious problems if a builder's source tree is in a directory | |
2263 | # whose full name contains unusual characters. | |
2264 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2265 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2266 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2267 | ||
2268 | ||
2269 | # Find a good install program. We prefer a C program (faster), | |
2618 | ||
2619 | ||
2620 | # Find a good install program. We prefer a C program (faster), | |
2270 | 2621 | # so one script is as good as another. But avoid the broken or |
2271 | 2622 | # incompatible versions: |
2272 | 2623 | # SysV /etc/install, /usr/sbin/install |
2280 | 2631 | # OS/2's system install, which has a completely different semantic |
2281 | 2632 | # ./install, which can be erroneously created by make from ./install.sh. |
2282 | 2633 | # Reject install programs that cannot install multiple files. |
2283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2284 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2635 | printf %s "checking for a BSD-compatible install... " >&6; } | |
2285 | 2636 | if test -z "$INSTALL"; then |
2286 | if ${ac_cv_path_install+:} false; then : | |
2287 | $as_echo_n "(cached) " >&6 | |
2288 | else | |
2637 | if test ${ac_cv_path_install+y} | |
2638 | then : | |
2639 | printf %s "(cached) " >&6 | |
2640 | else $as_nop | |
2289 | 2641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2290 | 2642 | for as_dir in $PATH |
2291 | 2643 | do |
2292 | 2644 | IFS=$as_save_IFS |
2293 | test -z "$as_dir" && as_dir=. | |
2294 | # Account for people who put trailing slashes in PATH elements. | |
2295 | case $as_dir/ in #(( | |
2296 | ./ | .// | /[cC]/* | \ | |
2645 | case $as_dir in #((( | |
2646 | '') as_dir=./ ;; | |
2647 | */) ;; | |
2648 | *) as_dir=$as_dir/ ;; | |
2649 | esac | |
2650 | # Account for fact that we put trailing slashes in our PATH walk. | |
2651 | case $as_dir in #(( | |
2652 | ./ | /[cC]/* | \ | |
2297 | 2653 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2298 | 2654 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
2299 | 2655 | /usr/ucb/* ) ;; |
2303 | 2659 | # by default. |
2304 | 2660 | for ac_prog in ginstall scoinst install; do |
2305 | 2661 | for ac_exec_ext in '' $ac_executable_extensions; do |
2306 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2662 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then | |
2307 | 2663 | if test $ac_prog = install && |
2308 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2664 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2309 | 2665 | # AIX install. It has an incompatible calling convention. |
2310 | 2666 | : |
2311 | 2667 | elif test $ac_prog = install && |
2312 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2668 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2313 | 2669 | # program-specific install script used by HP pwplus--don't use. |
2314 | 2670 | : |
2315 | 2671 | else |
2317 | 2673 | echo one > conftest.one |
2318 | 2674 | echo two > conftest.two |
2319 | 2675 | mkdir conftest.dir |
2320 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2676 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && | |
2321 | 2677 | test -s conftest.one && test -s conftest.two && |
2322 | 2678 | test -s conftest.dir/conftest.one && |
2323 | 2679 | test -s conftest.dir/conftest.two |
2324 | 2680 | then |
2325 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2681 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" | |
2326 | 2682 | break 3 |
2327 | 2683 | fi |
2328 | 2684 | fi |
2338 | 2694 | rm -rf conftest.one conftest.two conftest.dir |
2339 | 2695 | |
2340 | 2696 | fi |
2341 | if test "${ac_cv_path_install+set}" = set; then | |
2697 | if test ${ac_cv_path_install+y}; then | |
2342 | 2698 | INSTALL=$ac_cv_path_install |
2343 | 2699 | else |
2344 | 2700 | # As a last resort, use the slow shell script. Don't cache a |
2348 | 2704 | INSTALL=$ac_install_sh |
2349 | 2705 | fi |
2350 | 2706 | fi |
2351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2352 | $as_echo "$INSTALL" >&6; } | |
2707 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2708 | printf "%s\n" "$INSTALL" >&6; } | |
2353 | 2709 | |
2354 | 2710 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2355 | 2711 | # It thinks the first close brace ends the variable substitution. |
2359 | 2715 | |
2360 | 2716 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2361 | 2717 | |
2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2363 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2718 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2719 | printf %s "checking whether build environment is sane... " >&6; } | |
2364 | 2720 | # Reject unsafe characters in $srcdir or the absolute working directory |
2365 | 2721 | # name. Accept space and tab only in the latter. |
2366 | 2722 | am_lf=' |
2414 | 2770 | as_fn_error $? "newly created file is older than distributed files! |
2415 | 2771 | Check your system clock" "$LINENO" 5 |
2416 | 2772 | fi |
2417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2418 | $as_echo "yes" >&6; } | |
2773 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2774 | printf "%s\n" "yes" >&6; } | |
2419 | 2775 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2420 | 2776 | # generated files are strictly newer. |
2421 | 2777 | am_sleep_pid= |
2434 | 2790 | # Double any \ or $. |
2435 | 2791 | # By default was `s,x,x', remove it if useless. |
2436 | 2792 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2437 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2793 | program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` | |
2794 | ||
2438 | 2795 | |
2439 | 2796 | # Expand $ac_aux_dir to an absolute path. |
2440 | 2797 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
2441 | 2798 | |
2442 | if test x"${MISSING+set}" != xset; then | |
2443 | case $am_aux_dir in | |
2444 | *\ * | *\ *) | |
2445 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2446 | *) | |
2447 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2448 | esac | |
2799 | ||
2800 | if test x"${MISSING+set}" != xset; then | |
2801 | MISSING="\${SHELL} '$am_aux_dir/missing'" | |
2449 | 2802 | fi |
2450 | 2803 | # Use eval to expand $SHELL |
2451 | 2804 | if eval "$MISSING --is-lightweight"; then |
2452 | 2805 | am_missing_run="$MISSING " |
2453 | 2806 | else |
2454 | 2807 | am_missing_run= |
2455 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2456 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2808 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2809 | printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2457 | 2810 | fi |
2458 | 2811 | |
2459 | 2812 | if test x"${install_sh+set}" != xset; then |
2473 | 2826 | if test -n "$ac_tool_prefix"; then |
2474 | 2827 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2475 | 2828 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2477 | $as_echo_n "checking for $ac_word... " >&6; } | |
2478 | if ${ac_cv_prog_STRIP+:} false; then : | |
2479 | $as_echo_n "(cached) " >&6 | |
2480 | else | |
2829 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2830 | printf %s "checking for $ac_word... " >&6; } | |
2831 | if test ${ac_cv_prog_STRIP+y} | |
2832 | then : | |
2833 | printf %s "(cached) " >&6 | |
2834 | else $as_nop | |
2481 | 2835 | if test -n "$STRIP"; then |
2482 | 2836 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2483 | 2837 | else |
2485 | 2839 | for as_dir in $PATH |
2486 | 2840 | do |
2487 | 2841 | IFS=$as_save_IFS |
2488 | test -z "$as_dir" && as_dir=. | |
2842 | case $as_dir in #((( | |
2843 | '') as_dir=./ ;; | |
2844 | */) ;; | |
2845 | *) as_dir=$as_dir/ ;; | |
2846 | esac | |
2489 | 2847 | for ac_exec_ext in '' $ac_executable_extensions; do |
2490 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2848 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
2491 | 2849 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2850 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
2493 | 2851 | break 2 |
2494 | 2852 | fi |
2495 | 2853 | done |
2500 | 2858 | fi |
2501 | 2859 | STRIP=$ac_cv_prog_STRIP |
2502 | 2860 | if test -n "$STRIP"; then |
2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2504 | $as_echo "$STRIP" >&6; } | |
2861 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2862 | printf "%s\n" "$STRIP" >&6; } | |
2505 | 2863 | else |
2506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2507 | $as_echo "no" >&6; } | |
2864 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2865 | printf "%s\n" "no" >&6; } | |
2508 | 2866 | fi |
2509 | 2867 | |
2510 | 2868 | |
2513 | 2871 | ac_ct_STRIP=$STRIP |
2514 | 2872 | # Extract the first word of "strip", so it can be a program name with args. |
2515 | 2873 | set dummy strip; ac_word=$2 |
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2517 | $as_echo_n "checking for $ac_word... " >&6; } | |
2518 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2519 | $as_echo_n "(cached) " >&6 | |
2520 | else | |
2874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2875 | printf %s "checking for $ac_word... " >&6; } | |
2876 | if test ${ac_cv_prog_ac_ct_STRIP+y} | |
2877 | then : | |
2878 | printf %s "(cached) " >&6 | |
2879 | else $as_nop | |
2521 | 2880 | if test -n "$ac_ct_STRIP"; then |
2522 | 2881 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2523 | 2882 | else |
2525 | 2884 | for as_dir in $PATH |
2526 | 2885 | do |
2527 | 2886 | IFS=$as_save_IFS |
2528 | test -z "$as_dir" && as_dir=. | |
2887 | case $as_dir in #((( | |
2888 | '') as_dir=./ ;; | |
2889 | */) ;; | |
2890 | *) as_dir=$as_dir/ ;; | |
2891 | esac | |
2529 | 2892 | for ac_exec_ext in '' $ac_executable_extensions; do |
2530 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2893 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
2531 | 2894 | ac_cv_prog_ac_ct_STRIP="strip" |
2532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2895 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
2533 | 2896 | break 2 |
2534 | 2897 | fi |
2535 | 2898 | done |
2540 | 2903 | fi |
2541 | 2904 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2542 | 2905 | if test -n "$ac_ct_STRIP"; then |
2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2544 | $as_echo "$ac_ct_STRIP" >&6; } | |
2906 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2907 | printf "%s\n" "$ac_ct_STRIP" >&6; } | |
2545 | 2908 | else |
2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2547 | $as_echo "no" >&6; } | |
2909 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2910 | printf "%s\n" "no" >&6; } | |
2548 | 2911 | fi |
2549 | 2912 | |
2550 | 2913 | if test "x$ac_ct_STRIP" = x; then |
2552 | 2915 | else |
2553 | 2916 | case $cross_compiling:$ac_tool_warned in |
2554 | 2917 | yes:) |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2556 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2918 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2919 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2557 | 2920 | ac_tool_warned=yes ;; |
2558 | 2921 | esac |
2559 | 2922 | STRIP=$ac_ct_STRIP |
2565 | 2928 | fi |
2566 | 2929 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2567 | 2930 | |
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2569 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2931 | ||
2932 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 | |
2933 | printf %s "checking for a race-free mkdir -p... " >&6; } | |
2570 | 2934 | if test -z "$MKDIR_P"; then |
2571 | if ${ac_cv_path_mkdir+:} false; then : | |
2572 | $as_echo_n "(cached) " >&6 | |
2573 | else | |
2935 | if test ${ac_cv_path_mkdir+y} | |
2936 | then : | |
2937 | printf %s "(cached) " >&6 | |
2938 | else $as_nop | |
2574 | 2939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2575 | 2940 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2576 | 2941 | do |
2577 | 2942 | IFS=$as_save_IFS |
2578 | test -z "$as_dir" && as_dir=. | |
2943 | case $as_dir in #((( | |
2944 | '') as_dir=./ ;; | |
2945 | */) ;; | |
2946 | *) as_dir=$as_dir/ ;; | |
2947 | esac | |
2579 | 2948 | for ac_prog in mkdir gmkdir; do |
2580 | 2949 | for ac_exec_ext in '' $ac_executable_extensions; do |
2581 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2582 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2583 | 'mkdir (GNU coreutils) '* | \ | |
2584 | 'mkdir (coreutils) '* | \ | |
2950 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue | |
2951 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2952 | 'mkdir ('*'coreutils) '* | \ | |
2953 | 'BusyBox '* | \ | |
2585 | 2954 | 'mkdir (fileutils) '4.1*) |
2586 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2955 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext | |
2587 | 2956 | break 3;; |
2588 | 2957 | esac |
2589 | 2958 | done |
2594 | 2963 | fi |
2595 | 2964 | |
2596 | 2965 | test -d ./--version && rmdir ./--version |
2597 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2966 | if test ${ac_cv_path_mkdir+y}; then | |
2598 | 2967 | MKDIR_P="$ac_cv_path_mkdir -p" |
2599 | 2968 | else |
2600 | 2969 | # As a last resort, use the slow shell script. Don't cache a |
2604 | 2973 | MKDIR_P="$ac_install_sh -d" |
2605 | 2974 | fi |
2606 | 2975 | fi |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2608 | $as_echo "$MKDIR_P" >&6; } | |
2976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2977 | printf "%s\n" "$MKDIR_P" >&6; } | |
2609 | 2978 | |
2610 | 2979 | for ac_prog in gawk mawk nawk awk |
2611 | 2980 | do |
2612 | 2981 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2613 | 2982 | set dummy $ac_prog; ac_word=$2 |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2615 | $as_echo_n "checking for $ac_word... " >&6; } | |
2616 | if ${ac_cv_prog_AWK+:} false; then : | |
2617 | $as_echo_n "(cached) " >&6 | |
2618 | else | |
2983 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2984 | printf %s "checking for $ac_word... " >&6; } | |
2985 | if test ${ac_cv_prog_AWK+y} | |
2986 | then : | |
2987 | printf %s "(cached) " >&6 | |
2988 | else $as_nop | |
2619 | 2989 | if test -n "$AWK"; then |
2620 | 2990 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2621 | 2991 | else |
2623 | 2993 | for as_dir in $PATH |
2624 | 2994 | do |
2625 | 2995 | IFS=$as_save_IFS |
2626 | test -z "$as_dir" && as_dir=. | |
2996 | case $as_dir in #((( | |
2997 | '') as_dir=./ ;; | |
2998 | */) ;; | |
2999 | *) as_dir=$as_dir/ ;; | |
3000 | esac | |
2627 | 3001 | for ac_exec_ext in '' $ac_executable_extensions; do |
2628 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3002 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
2629 | 3003 | ac_cv_prog_AWK="$ac_prog" |
2630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3004 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
2631 | 3005 | break 2 |
2632 | 3006 | fi |
2633 | 3007 | done |
2638 | 3012 | fi |
2639 | 3013 | AWK=$ac_cv_prog_AWK |
2640 | 3014 | if test -n "$AWK"; then |
2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2642 | $as_echo "$AWK" >&6; } | |
3015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3016 | printf "%s\n" "$AWK" >&6; } | |
2643 | 3017 | else |
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2645 | $as_echo "no" >&6; } | |
3018 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3019 | printf "%s\n" "no" >&6; } | |
2646 | 3020 | fi |
2647 | 3021 | |
2648 | 3022 | |
2649 | 3023 | test -n "$AWK" && break |
2650 | 3024 | done |
2651 | 3025 | |
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2653 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3027 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2654 | 3028 | set x ${MAKE-make} |
2655 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2656 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2657 | $as_echo_n "(cached) " >&6 | |
2658 | else | |
3029 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3030 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} | |
3031 | then : | |
3032 | printf %s "(cached) " >&6 | |
3033 | else $as_nop | |
2659 | 3034 | cat >conftest.make <<\_ACEOF |
2660 | 3035 | SHELL = /bin/sh |
2661 | 3036 | all: |
2671 | 3046 | rm -f conftest.make |
2672 | 3047 | fi |
2673 | 3048 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2675 | $as_echo "yes" >&6; } | |
3049 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3050 | printf "%s\n" "yes" >&6; } | |
2676 | 3051 | SET_MAKE= |
2677 | 3052 | else |
2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2679 | $as_echo "no" >&6; } | |
3053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3054 | printf "%s\n" "no" >&6; } | |
2680 | 3055 | SET_MAKE="MAKE=${MAKE-make}" |
2681 | 3056 | fi |
2682 | 3057 | |
2690 | 3065 | rmdir .tst 2>/dev/null |
2691 | 3066 | |
2692 | 3067 | # Check whether --enable-silent-rules was given. |
2693 | if test "${enable_silent_rules+set}" = set; then : | |
3068 | if test ${enable_silent_rules+y} | |
3069 | then : | |
2694 | 3070 | enableval=$enable_silent_rules; |
2695 | 3071 | fi |
2696 | 3072 | |
2700 | 3076 | *) AM_DEFAULT_VERBOSITY=1;; |
2701 | 3077 | esac |
2702 | 3078 | am_make=${MAKE-make} |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2704 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2705 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2706 | $as_echo_n "(cached) " >&6 | |
2707 | else | |
2708 | if $as_echo 'TRUE=$(BAR$(V)) | |
3079 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3080 | printf %s "checking whether $am_make supports nested variables... " >&6; } | |
3081 | if test ${am_cv_make_support_nested_variables+y} | |
3082 | then : | |
3083 | printf %s "(cached) " >&6 | |
3084 | else $as_nop | |
3085 | if printf "%s\n" 'TRUE=$(BAR$(V)) | |
2709 | 3086 | BAR0=false |
2710 | 3087 | BAR1=true |
2711 | 3088 | V=1 |
2717 | 3094 | am_cv_make_support_nested_variables=no |
2718 | 3095 | fi |
2719 | 3096 | fi |
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2721 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3097 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3098 | printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } | |
2722 | 3099 | if test $am_cv_make_support_nested_variables = yes; then |
2723 | 3100 | AM_V='$(V)' |
2724 | 3101 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
2750 | 3127 | |
2751 | 3128 | # Define the identity of the package. |
2752 | 3129 | PACKAGE='dosfstools' |
2753 | VERSION='4.2' | |
2754 | ||
2755 | ||
2756 | cat >>confdefs.h <<_ACEOF | |
2757 | #define PACKAGE "$PACKAGE" | |
2758 | _ACEOF | |
2759 | ||
2760 | ||
2761 | cat >>confdefs.h <<_ACEOF | |
2762 | #define VERSION "$VERSION" | |
2763 | _ACEOF | |
3130 | VERSION='4.2+git' | |
3131 | ||
3132 | ||
3133 | printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h | |
3134 | ||
3135 | ||
3136 | printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h | |
2764 | 3137 | |
2765 | 3138 | # Some tools Automake needs. |
2766 | 3139 | |
2798 | 3171 | |
2799 | 3172 | |
2800 | 3173 | |
3174 | ||
3175 | ||
3176 | # Variables for tags utilities; see am/tags.am | |
3177 | if test -z "$CTAGS"; then | |
3178 | CTAGS=ctags | |
3179 | fi | |
3180 | ||
3181 | if test -z "$ETAGS"; then | |
3182 | ETAGS=etags | |
3183 | fi | |
3184 | ||
3185 | if test -z "$CSCOPE"; then | |
3186 | CSCOPE=cscope | |
3187 | fi | |
2801 | 3188 | |
2802 | 3189 | |
2803 | 3190 | |
2845 | 3232 | |
2846 | 3233 | |
2847 | 3234 | # Check whether --enable-compat-symlinks was given. |
2848 | if test "${enable_compat_symlinks+set}" = set; then : | |
3235 | if test ${enable_compat_symlinks+y} | |
3236 | then : | |
2849 | 3237 | enableval=$enable_compat_symlinks; case "${enableval}" in |
2850 | 3238 | yes) symlinks=true ;; |
2851 | 3239 | no) symlinks=false ;; |
2852 | 3240 | *) as_fn_error $? "bad value ${enableval} for --enable-compat-symlinks" "$LINENO" 5 ;; |
2853 | 3241 | esac |
2854 | else | |
3242 | else $as_nop | |
2855 | 3243 | symlinks=false |
2856 | 3244 | fi |
2857 | 3245 | |
2865 | 3253 | |
2866 | 3254 | |
2867 | 3255 | # Check whether --enable-atari-check was given. |
2868 | if test "${enable_atari_check+set}" = set; then : | |
3256 | if test ${enable_atari_check+y} | |
3257 | then : | |
2869 | 3258 | enableval=$enable_atari_check; case "${enableval}" in |
2870 | 3259 | yes) CHECKATARI=1 |
2871 | 3260 | |
2872 | $as_echo "#define CONF_CHECK_ATARI 1" >>confdefs.h | |
3261 | printf "%s\n" "#define CONF_CHECK_ATARI 1" >>confdefs.h | |
2873 | 3262 | ;; |
2874 | 3263 | no) CHECKATARI=0 |
2875 | 3264 | ;; |
2876 | 3265 | *) as_fn_error $? "bad value ${enableval} for --enable-atari-check" "$LINENO" 5 ;; |
2877 | 3266 | esac |
2878 | else | |
3267 | else $as_nop | |
2879 | 3268 | CHECKATARI=0 |
2880 | 3269 | |
2881 | 3270 | fi |
2882 | 3271 | |
2883 | 3272 | |
3273 | ||
3274 | ||
3275 | ||
3276 | ||
3277 | ||
3278 | ||
3279 | ||
3280 | ||
3281 | ||
2884 | 3282 | DEPDIR="${am__leading_dot}deps" |
2885 | 3283 | |
2886 | 3284 | ac_config_commands="$ac_config_commands depfiles" |
2887 | 3285 | |
2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 | |
2889 | $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } | |
3286 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 | |
3287 | printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } | |
2890 | 3288 | cat > confinc.mk << 'END' |
2891 | 3289 | am__doit: |
2892 | 3290 | @echo this is the am__doit target >confinc.out |
2922 | 3320 | fi |
2923 | 3321 | done |
2924 | 3322 | rm -f confinc.* confmf.* |
2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 | |
2926 | $as_echo "${_am_result}" >&6; } | |
3323 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 | |
3324 | printf "%s\n" "${_am_result}" >&6; } | |
2927 | 3325 | |
2928 | 3326 | # Check whether --enable-dependency-tracking was given. |
2929 | if test "${enable_dependency_tracking+set}" = set; then : | |
3327 | if test ${enable_dependency_tracking+y} | |
3328 | then : | |
2930 | 3329 | enableval=$enable_dependency_tracking; |
2931 | 3330 | fi |
2932 | 3331 | |
2952 | 3351 | if test -n "$ac_tool_prefix"; then |
2953 | 3352 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2954 | 3353 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2956 | $as_echo_n "checking for $ac_word... " >&6; } | |
2957 | if ${ac_cv_prog_CC+:} false; then : | |
2958 | $as_echo_n "(cached) " >&6 | |
2959 | else | |
3354 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3355 | printf %s "checking for $ac_word... " >&6; } | |
3356 | if test ${ac_cv_prog_CC+y} | |
3357 | then : | |
3358 | printf %s "(cached) " >&6 | |
3359 | else $as_nop | |
2960 | 3360 | if test -n "$CC"; then |
2961 | 3361 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2962 | 3362 | else |
2964 | 3364 | for as_dir in $PATH |
2965 | 3365 | do |
2966 | 3366 | IFS=$as_save_IFS |
2967 | test -z "$as_dir" && as_dir=. | |
3367 | case $as_dir in #((( | |
3368 | '') as_dir=./ ;; | |
3369 | */) ;; | |
3370 | *) as_dir=$as_dir/ ;; | |
3371 | esac | |
2968 | 3372 | for ac_exec_ext in '' $ac_executable_extensions; do |
2969 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3373 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
2970 | 3374 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3375 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
2972 | 3376 | break 2 |
2973 | 3377 | fi |
2974 | 3378 | done |
2979 | 3383 | fi |
2980 | 3384 | CC=$ac_cv_prog_CC |
2981 | 3385 | if test -n "$CC"; then |
2982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2983 | $as_echo "$CC" >&6; } | |
3386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3387 | printf "%s\n" "$CC" >&6; } | |
2984 | 3388 | else |
2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2986 | $as_echo "no" >&6; } | |
3389 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3390 | printf "%s\n" "no" >&6; } | |
2987 | 3391 | fi |
2988 | 3392 | |
2989 | 3393 | |
2992 | 3396 | ac_ct_CC=$CC |
2993 | 3397 | # Extract the first word of "gcc", so it can be a program name with args. |
2994 | 3398 | set dummy gcc; ac_word=$2 |
2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2996 | $as_echo_n "checking for $ac_word... " >&6; } | |
2997 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2998 | $as_echo_n "(cached) " >&6 | |
2999 | else | |
3399 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3400 | printf %s "checking for $ac_word... " >&6; } | |
3401 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3402 | then : | |
3403 | printf %s "(cached) " >&6 | |
3404 | else $as_nop | |
3000 | 3405 | if test -n "$ac_ct_CC"; then |
3001 | 3406 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3002 | 3407 | else |
3004 | 3409 | for as_dir in $PATH |
3005 | 3410 | do |
3006 | 3411 | IFS=$as_save_IFS |
3007 | test -z "$as_dir" && as_dir=. | |
3412 | case $as_dir in #((( | |
3413 | '') as_dir=./ ;; | |
3414 | */) ;; | |
3415 | *) as_dir=$as_dir/ ;; | |
3416 | esac | |
3008 | 3417 | for ac_exec_ext in '' $ac_executable_extensions; do |
3009 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3418 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3010 | 3419 | ac_cv_prog_ac_ct_CC="gcc" |
3011 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3420 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3012 | 3421 | break 2 |
3013 | 3422 | fi |
3014 | 3423 | done |
3019 | 3428 | fi |
3020 | 3429 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3021 | 3430 | if test -n "$ac_ct_CC"; then |
3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3023 | $as_echo "$ac_ct_CC" >&6; } | |
3431 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3432 | printf "%s\n" "$ac_ct_CC" >&6; } | |
3024 | 3433 | else |
3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3026 | $as_echo "no" >&6; } | |
3434 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3435 | printf "%s\n" "no" >&6; } | |
3027 | 3436 | fi |
3028 | 3437 | |
3029 | 3438 | if test "x$ac_ct_CC" = x; then |
3031 | 3440 | else |
3032 | 3441 | case $cross_compiling:$ac_tool_warned in |
3033 | 3442 | yes:) |
3034 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3035 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3444 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3036 | 3445 | ac_tool_warned=yes ;; |
3037 | 3446 | esac |
3038 | 3447 | CC=$ac_ct_CC |
3045 | 3454 | if test -n "$ac_tool_prefix"; then |
3046 | 3455 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3047 | 3456 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3049 | $as_echo_n "checking for $ac_word... " >&6; } | |
3050 | if ${ac_cv_prog_CC+:} false; then : | |
3051 | $as_echo_n "(cached) " >&6 | |
3052 | else | |
3457 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3458 | printf %s "checking for $ac_word... " >&6; } | |
3459 | if test ${ac_cv_prog_CC+y} | |
3460 | then : | |
3461 | printf %s "(cached) " >&6 | |
3462 | else $as_nop | |
3053 | 3463 | if test -n "$CC"; then |
3054 | 3464 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3055 | 3465 | else |
3057 | 3467 | for as_dir in $PATH |
3058 | 3468 | do |
3059 | 3469 | IFS=$as_save_IFS |
3060 | test -z "$as_dir" && as_dir=. | |
3470 | case $as_dir in #((( | |
3471 | '') as_dir=./ ;; | |
3472 | */) ;; | |
3473 | *) as_dir=$as_dir/ ;; | |
3474 | esac | |
3061 | 3475 | for ac_exec_ext in '' $ac_executable_extensions; do |
3062 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3476 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3063 | 3477 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3478 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3065 | 3479 | break 2 |
3066 | 3480 | fi |
3067 | 3481 | done |
3072 | 3486 | fi |
3073 | 3487 | CC=$ac_cv_prog_CC |
3074 | 3488 | if test -n "$CC"; then |
3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3076 | $as_echo "$CC" >&6; } | |
3489 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3490 | printf "%s\n" "$CC" >&6; } | |
3077 | 3491 | else |
3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3079 | $as_echo "no" >&6; } | |
3492 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3493 | printf "%s\n" "no" >&6; } | |
3080 | 3494 | fi |
3081 | 3495 | |
3082 | 3496 | |
3085 | 3499 | if test -z "$CC"; then |
3086 | 3500 | # Extract the first word of "cc", so it can be a program name with args. |
3087 | 3501 | set dummy cc; ac_word=$2 |
3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3089 | $as_echo_n "checking for $ac_word... " >&6; } | |
3090 | if ${ac_cv_prog_CC+:} false; then : | |
3091 | $as_echo_n "(cached) " >&6 | |
3092 | else | |
3502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3503 | printf %s "checking for $ac_word... " >&6; } | |
3504 | if test ${ac_cv_prog_CC+y} | |
3505 | then : | |
3506 | printf %s "(cached) " >&6 | |
3507 | else $as_nop | |
3093 | 3508 | if test -n "$CC"; then |
3094 | 3509 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3095 | 3510 | else |
3098 | 3513 | for as_dir in $PATH |
3099 | 3514 | do |
3100 | 3515 | IFS=$as_save_IFS |
3101 | test -z "$as_dir" && as_dir=. | |
3516 | case $as_dir in #((( | |
3517 | '') as_dir=./ ;; | |
3518 | */) ;; | |
3519 | *) as_dir=$as_dir/ ;; | |
3520 | esac | |
3102 | 3521 | for ac_exec_ext in '' $ac_executable_extensions; do |
3103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3104 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3522 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3523 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3105 | 3524 | ac_prog_rejected=yes |
3106 | 3525 | continue |
3107 | 3526 | fi |
3108 | 3527 | ac_cv_prog_CC="cc" |
3109 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3528 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3110 | 3529 | break 2 |
3111 | 3530 | fi |
3112 | 3531 | done |
3122 | 3541 | # However, it has the same basename, so the bogon will be chosen |
3123 | 3542 | # first if we set CC to just the basename; use the full file name. |
3124 | 3543 | shift |
3125 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3544 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" | |
3126 | 3545 | fi |
3127 | 3546 | fi |
3128 | 3547 | fi |
3129 | 3548 | fi |
3130 | 3549 | CC=$ac_cv_prog_CC |
3131 | 3550 | if test -n "$CC"; then |
3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3133 | $as_echo "$CC" >&6; } | |
3551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3552 | printf "%s\n" "$CC" >&6; } | |
3134 | 3553 | else |
3135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3136 | $as_echo "no" >&6; } | |
3554 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3555 | printf "%s\n" "no" >&6; } | |
3137 | 3556 | fi |
3138 | 3557 | |
3139 | 3558 | |
3144 | 3563 | do |
3145 | 3564 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3146 | 3565 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3148 | $as_echo_n "checking for $ac_word... " >&6; } | |
3149 | if ${ac_cv_prog_CC+:} false; then : | |
3150 | $as_echo_n "(cached) " >&6 | |
3151 | else | |
3566 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3567 | printf %s "checking for $ac_word... " >&6; } | |
3568 | if test ${ac_cv_prog_CC+y} | |
3569 | then : | |
3570 | printf %s "(cached) " >&6 | |
3571 | else $as_nop | |
3152 | 3572 | if test -n "$CC"; then |
3153 | 3573 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3154 | 3574 | else |
3156 | 3576 | for as_dir in $PATH |
3157 | 3577 | do |
3158 | 3578 | IFS=$as_save_IFS |
3159 | test -z "$as_dir" && as_dir=. | |
3579 | case $as_dir in #((( | |
3580 | '') as_dir=./ ;; | |
3581 | */) ;; | |
3582 | *) as_dir=$as_dir/ ;; | |
3583 | esac | |
3160 | 3584 | for ac_exec_ext in '' $ac_executable_extensions; do |
3161 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3585 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3162 | 3586 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3587 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3164 | 3588 | break 2 |
3165 | 3589 | fi |
3166 | 3590 | done |
3171 | 3595 | fi |
3172 | 3596 | CC=$ac_cv_prog_CC |
3173 | 3597 | if test -n "$CC"; then |
3174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3175 | $as_echo "$CC" >&6; } | |
3598 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3599 | printf "%s\n" "$CC" >&6; } | |
3176 | 3600 | else |
3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3178 | $as_echo "no" >&6; } | |
3601 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3602 | printf "%s\n" "no" >&6; } | |
3179 | 3603 | fi |
3180 | 3604 | |
3181 | 3605 | |
3188 | 3612 | do |
3189 | 3613 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3190 | 3614 | set dummy $ac_prog; ac_word=$2 |
3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3192 | $as_echo_n "checking for $ac_word... " >&6; } | |
3193 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3194 | $as_echo_n "(cached) " >&6 | |
3195 | else | |
3615 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3616 | printf %s "checking for $ac_word... " >&6; } | |
3617 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3618 | then : | |
3619 | printf %s "(cached) " >&6 | |
3620 | else $as_nop | |
3196 | 3621 | if test -n "$ac_ct_CC"; then |
3197 | 3622 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3198 | 3623 | else |
3200 | 3625 | for as_dir in $PATH |
3201 | 3626 | do |
3202 | 3627 | IFS=$as_save_IFS |
3203 | test -z "$as_dir" && as_dir=. | |
3628 | case $as_dir in #((( | |
3629 | '') as_dir=./ ;; | |
3630 | */) ;; | |
3631 | *) as_dir=$as_dir/ ;; | |
3632 | esac | |
3204 | 3633 | for ac_exec_ext in '' $ac_executable_extensions; do |
3205 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3634 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3206 | 3635 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3207 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3636 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3208 | 3637 | break 2 |
3209 | 3638 | fi |
3210 | 3639 | done |
3215 | 3644 | fi |
3216 | 3645 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3217 | 3646 | if test -n "$ac_ct_CC"; then |
3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3219 | $as_echo "$ac_ct_CC" >&6; } | |
3647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3648 | printf "%s\n" "$ac_ct_CC" >&6; } | |
3220 | 3649 | else |
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3222 | $as_echo "no" >&6; } | |
3650 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3651 | printf "%s\n" "no" >&6; } | |
3223 | 3652 | fi |
3224 | 3653 | |
3225 | 3654 | |
3231 | 3660 | else |
3232 | 3661 | case $cross_compiling:$ac_tool_warned in |
3233 | 3662 | yes:) |
3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3235 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3663 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3664 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3236 | 3665 | ac_tool_warned=yes ;; |
3237 | 3666 | esac |
3238 | 3667 | CC=$ac_ct_CC |
3240 | 3669 | fi |
3241 | 3670 | |
3242 | 3671 | fi |
3243 | ||
3244 | ||
3245 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3246 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3672 | if test -z "$CC"; then | |
3673 | if test -n "$ac_tool_prefix"; then | |
3674 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
3675 | set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
3676 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3677 | printf %s "checking for $ac_word... " >&6; } | |
3678 | if test ${ac_cv_prog_CC+y} | |
3679 | then : | |
3680 | printf %s "(cached) " >&6 | |
3681 | else $as_nop | |
3682 | if test -n "$CC"; then | |
3683 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3684 | else | |
3685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3686 | for as_dir in $PATH | |
3687 | do | |
3688 | IFS=$as_save_IFS | |
3689 | case $as_dir in #((( | |
3690 | '') as_dir=./ ;; | |
3691 | */) ;; | |
3692 | *) as_dir=$as_dir/ ;; | |
3693 | esac | |
3694 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3695 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3696 | ac_cv_prog_CC="${ac_tool_prefix}clang" | |
3697 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3698 | break 2 | |
3699 | fi | |
3700 | done | |
3701 | done | |
3702 | IFS=$as_save_IFS | |
3703 | ||
3704 | fi | |
3705 | fi | |
3706 | CC=$ac_cv_prog_CC | |
3707 | if test -n "$CC"; then | |
3708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3709 | printf "%s\n" "$CC" >&6; } | |
3710 | else | |
3711 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3712 | printf "%s\n" "no" >&6; } | |
3713 | fi | |
3714 | ||
3715 | ||
3716 | fi | |
3717 | if test -z "$ac_cv_prog_CC"; then | |
3718 | ac_ct_CC=$CC | |
3719 | # Extract the first word of "clang", so it can be a program name with args. | |
3720 | set dummy clang; ac_word=$2 | |
3721 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3722 | printf %s "checking for $ac_word... " >&6; } | |
3723 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3724 | then : | |
3725 | printf %s "(cached) " >&6 | |
3726 | else $as_nop | |
3727 | if test -n "$ac_ct_CC"; then | |
3728 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3729 | else | |
3730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3731 | for as_dir in $PATH | |
3732 | do | |
3733 | IFS=$as_save_IFS | |
3734 | case $as_dir in #((( | |
3735 | '') as_dir=./ ;; | |
3736 | */) ;; | |
3737 | *) as_dir=$as_dir/ ;; | |
3738 | esac | |
3739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3740 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3741 | ac_cv_prog_ac_ct_CC="clang" | |
3742 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3743 | break 2 | |
3744 | fi | |
3745 | done | |
3746 | done | |
3747 | IFS=$as_save_IFS | |
3748 | ||
3749 | fi | |
3750 | fi | |
3751 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3752 | if test -n "$ac_ct_CC"; then | |
3753 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3754 | printf "%s\n" "$ac_ct_CC" >&6; } | |
3755 | else | |
3756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3757 | printf "%s\n" "no" >&6; } | |
3758 | fi | |
3759 | ||
3760 | if test "x$ac_ct_CC" = x; then | |
3761 | CC="" | |
3762 | else | |
3763 | case $cross_compiling:$ac_tool_warned in | |
3764 | yes:) | |
3765 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3766 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3767 | ac_tool_warned=yes ;; | |
3768 | esac | |
3769 | CC=$ac_ct_CC | |
3770 | fi | |
3771 | else | |
3772 | CC="$ac_cv_prog_CC" | |
3773 | fi | |
3774 | ||
3775 | fi | |
3776 | ||
3777 | ||
3778 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3779 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3247 | 3780 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3248 | 3781 | See \`config.log' for more details" "$LINENO" 5; } |
3249 | 3782 | |
3250 | 3783 | # Provide some information about the compiler. |
3251 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3784 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3252 | 3785 | set X $ac_compile |
3253 | 3786 | ac_compiler=$2 |
3254 | for ac_option in --version -v -V -qversion; do | |
3787 | for ac_option in --version -v -V -qversion -version; do | |
3255 | 3788 | { { ac_try="$ac_compiler $ac_option >&5" |
3256 | 3789 | case "(($ac_try" in |
3257 | 3790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3258 | 3791 | *) ac_try_echo=$ac_try;; |
3259 | 3792 | esac |
3260 | 3793 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3261 | $as_echo "$ac_try_echo"; } >&5 | |
3794 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3262 | 3795 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3263 | 3796 | ac_status=$? |
3264 | 3797 | if test -s conftest.err; then |
3268 | 3801 | cat conftest.er1 >&5 |
3269 | 3802 | fi |
3270 | 3803 | rm -f conftest.er1 conftest.err |
3271 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3804 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3272 | 3805 | test $ac_status = 0; } |
3273 | 3806 | done |
3274 | 3807 | |
3276 | 3809 | /* end confdefs.h. */ |
3277 | 3810 | |
3278 | 3811 | int |
3279 | main () | |
3812 | main (void) | |
3280 | 3813 | { |
3281 | 3814 | |
3282 | 3815 | ; |
3288 | 3821 | # Try to create an executable without -o first, disregard a.out. |
3289 | 3822 | # It will help us diagnose broken compilers, and finding out an intuition |
3290 | 3823 | # of exeext. |
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3292 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3293 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3825 | printf %s "checking whether the C compiler works... " >&6; } | |
3826 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3294 | 3827 | |
3295 | 3828 | # The possible output files: |
3296 | 3829 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3311 | 3844 | *) ac_try_echo=$ac_try;; |
3312 | 3845 | esac |
3313 | 3846 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3314 | $as_echo "$ac_try_echo"; } >&5 | |
3847 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3315 | 3848 | (eval "$ac_link_default") 2>&5 |
3316 | 3849 | ac_status=$? |
3317 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3318 | test $ac_status = 0; }; then : | |
3850 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3851 | test $ac_status = 0; } | |
3852 | then : | |
3319 | 3853 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3320 | 3854 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3321 | 3855 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
3332 | 3866 | # certainly right. |
3333 | 3867 | break;; |
3334 | 3868 | *.* ) |
3335 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3869 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; | |
3336 | 3870 | then :; else |
3337 | 3871 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3338 | 3872 | fi |
3348 | 3882 | done |
3349 | 3883 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3350 | 3884 | |
3351 | else | |
3885 | else $as_nop | |
3352 | 3886 | ac_file='' |
3353 | 3887 | fi |
3354 | if test -z "$ac_file"; then : | |
3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3356 | $as_echo "no" >&6; } | |
3357 | $as_echo "$as_me: failed program was:" >&5 | |
3888 | if test -z "$ac_file" | |
3889 | then : | |
3890 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3891 | printf "%s\n" "no" >&6; } | |
3892 | printf "%s\n" "$as_me: failed program was:" >&5 | |
3358 | 3893 | sed 's/^/| /' conftest.$ac_ext >&5 |
3359 | 3894 | |
3360 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3361 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3895 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3896 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3362 | 3897 | as_fn_error 77 "C compiler cannot create executables |
3363 | 3898 | See \`config.log' for more details" "$LINENO" 5; } |
3364 | else | |
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3366 | $as_echo "yes" >&6; } | |
3367 | fi | |
3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3369 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3371 | $as_echo "$ac_file" >&6; } | |
3899 | else $as_nop | |
3900 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3901 | printf "%s\n" "yes" >&6; } | |
3902 | fi | |
3903 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3904 | printf %s "checking for C compiler default output file name... " >&6; } | |
3905 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3906 | printf "%s\n" "$ac_file" >&6; } | |
3372 | 3907 | ac_exeext=$ac_cv_exeext |
3373 | 3908 | |
3374 | 3909 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3375 | 3910 | ac_clean_files=$ac_clean_files_save |
3376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3377 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3911 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3912 | printf %s "checking for suffix of executables... " >&6; } | |
3378 | 3913 | if { { ac_try="$ac_link" |
3379 | 3914 | case "(($ac_try" in |
3380 | 3915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3381 | 3916 | *) ac_try_echo=$ac_try;; |
3382 | 3917 | esac |
3383 | 3918 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3384 | $as_echo "$ac_try_echo"; } >&5 | |
3919 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3385 | 3920 | (eval "$ac_link") 2>&5 |
3386 | 3921 | ac_status=$? |
3387 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3388 | test $ac_status = 0; }; then : | |
3922 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3923 | test $ac_status = 0; } | |
3924 | then : | |
3389 | 3925 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3390 | 3926 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3391 | 3927 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
3399 | 3935 | * ) break;; |
3400 | 3936 | esac |
3401 | 3937 | done |
3402 | else | |
3403 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3404 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3938 | else $as_nop | |
3939 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3940 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3405 | 3941 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3406 | 3942 | See \`config.log' for more details" "$LINENO" 5; } |
3407 | 3943 | fi |
3408 | 3944 | rm -f conftest conftest$ac_cv_exeext |
3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3410 | $as_echo "$ac_cv_exeext" >&6; } | |
3945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3946 | printf "%s\n" "$ac_cv_exeext" >&6; } | |
3411 | 3947 | |
3412 | 3948 | rm -f conftest.$ac_ext |
3413 | 3949 | EXEEXT=$ac_cv_exeext |
3416 | 3952 | /* end confdefs.h. */ |
3417 | 3953 | #include <stdio.h> |
3418 | 3954 | int |
3419 | main () | |
3955 | main (void) | |
3420 | 3956 | { |
3421 | 3957 | FILE *f = fopen ("conftest.out", "w"); |
3422 | 3958 | return ferror (f) || fclose (f) != 0; |
3428 | 3964 | ac_clean_files="$ac_clean_files conftest.out" |
3429 | 3965 | # Check that the compiler produces executables we can run. If not, either |
3430 | 3966 | # the compiler is broken, or we cross compile. |
3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3432 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3968 | printf %s "checking whether we are cross compiling... " >&6; } | |
3433 | 3969 | if test "$cross_compiling" != yes; then |
3434 | 3970 | { { ac_try="$ac_link" |
3435 | 3971 | case "(($ac_try" in |
3437 | 3973 | *) ac_try_echo=$ac_try;; |
3438 | 3974 | esac |
3439 | 3975 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3440 | $as_echo "$ac_try_echo"; } >&5 | |
3976 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3441 | 3977 | (eval "$ac_link") 2>&5 |
3442 | 3978 | ac_status=$? |
3443 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3979 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3444 | 3980 | test $ac_status = 0; } |
3445 | 3981 | if { ac_try='./conftest$ac_cv_exeext' |
3446 | 3982 | { { case "(($ac_try" in |
3448 | 3984 | *) ac_try_echo=$ac_try;; |
3449 | 3985 | esac |
3450 | 3986 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3451 | $as_echo "$ac_try_echo"; } >&5 | |
3987 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3452 | 3988 | (eval "$ac_try") 2>&5 |
3453 | 3989 | ac_status=$? |
3454 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3990 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3455 | 3991 | test $ac_status = 0; }; }; then |
3456 | 3992 | cross_compiling=no |
3457 | 3993 | else |
3458 | 3994 | if test "$cross_compiling" = maybe; then |
3459 | 3995 | cross_compiling=yes |
3460 | 3996 | else |
3461 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3462 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3463 | as_fn_error $? "cannot run C compiled programs. | |
3997 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3998 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3999 | as_fn_error 77 "cannot run C compiled programs. | |
3464 | 4000 | If you meant to cross compile, use \`--host'. |
3465 | 4001 | See \`config.log' for more details" "$LINENO" 5; } |
3466 | 4002 | fi |
3467 | 4003 | fi |
3468 | 4004 | fi |
3469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3470 | $as_echo "$cross_compiling" >&6; } | |
4005 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4006 | printf "%s\n" "$cross_compiling" >&6; } | |
3471 | 4007 | |
3472 | 4008 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3473 | 4009 | ac_clean_files=$ac_clean_files_save |
3474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3475 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3476 | if ${ac_cv_objext+:} false; then : | |
3477 | $as_echo_n "(cached) " >&6 | |
3478 | else | |
4010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4011 | printf %s "checking for suffix of object files... " >&6; } | |
4012 | if test ${ac_cv_objext+y} | |
4013 | then : | |
4014 | printf %s "(cached) " >&6 | |
4015 | else $as_nop | |
3479 | 4016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3480 | 4017 | /* end confdefs.h. */ |
3481 | 4018 | |
3482 | 4019 | int |
3483 | main () | |
4020 | main (void) | |
3484 | 4021 | { |
3485 | 4022 | |
3486 | 4023 | ; |
3494 | 4031 | *) ac_try_echo=$ac_try;; |
3495 | 4032 | esac |
3496 | 4033 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3497 | $as_echo "$ac_try_echo"; } >&5 | |
4034 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3498 | 4035 | (eval "$ac_compile") 2>&5 |
3499 | 4036 | ac_status=$? |
3500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3501 | test $ac_status = 0; }; then : | |
4037 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4038 | test $ac_status = 0; } | |
4039 | then : | |
3502 | 4040 | for ac_file in conftest.o conftest.obj conftest.*; do |
3503 | 4041 | test -f "$ac_file" || continue; |
3504 | 4042 | case $ac_file in |
3507 | 4045 | break;; |
3508 | 4046 | esac |
3509 | 4047 | done |
3510 | else | |
3511 | $as_echo "$as_me: failed program was:" >&5 | |
4048 | else $as_nop | |
4049 | printf "%s\n" "$as_me: failed program was:" >&5 | |
3512 | 4050 | sed 's/^/| /' conftest.$ac_ext >&5 |
3513 | 4051 | |
3514 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3515 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4052 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4053 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3516 | 4054 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3517 | 4055 | See \`config.log' for more details" "$LINENO" 5; } |
3518 | 4056 | fi |
3519 | 4057 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3520 | 4058 | fi |
3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3522 | $as_echo "$ac_cv_objext" >&6; } | |
4059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4060 | printf "%s\n" "$ac_cv_objext" >&6; } | |
3523 | 4061 | OBJEXT=$ac_cv_objext |
3524 | 4062 | ac_objext=$OBJEXT |
3525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3526 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3527 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3528 | $as_echo_n "(cached) " >&6 | |
3529 | else | |
4063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 | |
4064 | printf %s "checking whether the compiler supports GNU C... " >&6; } | |
4065 | if test ${ac_cv_c_compiler_gnu+y} | |
4066 | then : | |
4067 | printf %s "(cached) " >&6 | |
4068 | else $as_nop | |
3530 | 4069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3531 | 4070 | /* end confdefs.h. */ |
3532 | 4071 | |
3533 | 4072 | int |
3534 | main () | |
4073 | main (void) | |
3535 | 4074 | { |
3536 | 4075 | #ifndef __GNUC__ |
3537 | 4076 | choke me |
3541 | 4080 | return 0; |
3542 | 4081 | } |
3543 | 4082 | _ACEOF |
3544 | if ac_fn_c_try_compile "$LINENO"; then : | |
4083 | if ac_fn_c_try_compile "$LINENO" | |
4084 | then : | |
3545 | 4085 | ac_compiler_gnu=yes |
3546 | else | |
4086 | else $as_nop | |
3547 | 4087 | ac_compiler_gnu=no |
3548 | 4088 | fi |
3549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4089 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3550 | 4090 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3551 | 4091 | |
3552 | 4092 | fi |
3553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3554 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4093 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4094 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
4095 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4096 | ||
3555 | 4097 | if test $ac_compiler_gnu = yes; then |
3556 | 4098 | GCC=yes |
3557 | 4099 | else |
3558 | 4100 | GCC= |
3559 | 4101 | fi |
3560 | ac_test_CFLAGS=${CFLAGS+set} | |
4102 | ac_test_CFLAGS=${CFLAGS+y} | |
3561 | 4103 | ac_save_CFLAGS=$CFLAGS |
3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3563 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3564 | if ${ac_cv_prog_cc_g+:} false; then : | |
3565 | $as_echo_n "(cached) " >&6 | |
3566 | else | |
4104 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4105 | printf %s "checking whether $CC accepts -g... " >&6; } | |
4106 | if test ${ac_cv_prog_cc_g+y} | |
4107 | then : | |
4108 | printf %s "(cached) " >&6 | |
4109 | else $as_nop | |
3567 | 4110 | ac_save_c_werror_flag=$ac_c_werror_flag |
3568 | 4111 | ac_c_werror_flag=yes |
3569 | 4112 | ac_cv_prog_cc_g=no |
3572 | 4115 | /* end confdefs.h. */ |
3573 | 4116 | |
3574 | 4117 | int |
3575 | main () | |
4118 | main (void) | |
3576 | 4119 | { |
3577 | 4120 | |
3578 | 4121 | ; |
3579 | 4122 | return 0; |
3580 | 4123 | } |
3581 | 4124 | _ACEOF |
3582 | if ac_fn_c_try_compile "$LINENO"; then : | |
4125 | if ac_fn_c_try_compile "$LINENO" | |
4126 | then : | |
3583 | 4127 | ac_cv_prog_cc_g=yes |
3584 | else | |
4128 | else $as_nop | |
3585 | 4129 | CFLAGS="" |
3586 | 4130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3587 | 4131 | /* end confdefs.h. */ |
3588 | 4132 | |
3589 | 4133 | int |
3590 | main () | |
4134 | main (void) | |
3591 | 4135 | { |
3592 | 4136 | |
3593 | 4137 | ; |
3594 | 4138 | return 0; |
3595 | 4139 | } |
3596 | 4140 | _ACEOF |
3597 | if ac_fn_c_try_compile "$LINENO"; then : | |
3598 | ||
3599 | else | |
4141 | if ac_fn_c_try_compile "$LINENO" | |
4142 | then : | |
4143 | ||
4144 | else $as_nop | |
3600 | 4145 | ac_c_werror_flag=$ac_save_c_werror_flag |
3601 | 4146 | CFLAGS="-g" |
3602 | 4147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3603 | 4148 | /* end confdefs.h. */ |
3604 | 4149 | |
3605 | 4150 | int |
3606 | main () | |
4151 | main (void) | |
3607 | 4152 | { |
3608 | 4153 | |
3609 | 4154 | ; |
3610 | 4155 | return 0; |
3611 | 4156 | } |
3612 | 4157 | _ACEOF |
3613 | if ac_fn_c_try_compile "$LINENO"; then : | |
4158 | if ac_fn_c_try_compile "$LINENO" | |
4159 | then : | |
3614 | 4160 | ac_cv_prog_cc_g=yes |
3615 | 4161 | fi |
3616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3617 | fi | |
3618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3619 | fi | |
3620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4162 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4163 | fi | |
4164 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4165 | fi | |
4166 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3621 | 4167 | ac_c_werror_flag=$ac_save_c_werror_flag |
3622 | 4168 | fi |
3623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3624 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3625 | if test "$ac_test_CFLAGS" = set; then | |
4169 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4170 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
4171 | if test $ac_test_CFLAGS; then | |
3626 | 4172 | CFLAGS=$ac_save_CFLAGS |
3627 | 4173 | elif test $ac_cv_prog_cc_g = yes; then |
3628 | 4174 | if test "$GCC" = yes; then |
3637 | 4183 | CFLAGS= |
3638 | 4184 | fi |
3639 | 4185 | fi |
3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3641 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3642 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3643 | $as_echo_n "(cached) " >&6 | |
3644 | else | |
4186 | ac_prog_cc_stdc=no | |
4187 | if test x$ac_prog_cc_stdc = xno | |
4188 | then : | |
4189 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
4190 | printf %s "checking for $CC option to enable C11 features... " >&6; } | |
4191 | if test ${ac_cv_prog_cc_c11+y} | |
4192 | then : | |
4193 | printf %s "(cached) " >&6 | |
4194 | else $as_nop | |
4195 | ac_cv_prog_cc_c11=no | |
4196 | ac_save_CC=$CC | |
4197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4198 | /* end confdefs.h. */ | |
4199 | $ac_c_conftest_c11_program | |
4200 | _ACEOF | |
4201 | for ac_arg in '' -std=gnu11 | |
4202 | do | |
4203 | CC="$ac_save_CC $ac_arg" | |
4204 | if ac_fn_c_try_compile "$LINENO" | |
4205 | then : | |
4206 | ac_cv_prog_cc_c11=$ac_arg | |
4207 | fi | |
4208 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4209 | test "x$ac_cv_prog_cc_c11" != "xno" && break | |
4210 | done | |
4211 | rm -f conftest.$ac_ext | |
4212 | CC=$ac_save_CC | |
4213 | fi | |
4214 | ||
4215 | if test "x$ac_cv_prog_cc_c11" = xno | |
4216 | then : | |
4217 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4218 | printf "%s\n" "unsupported" >&6; } | |
4219 | else $as_nop | |
4220 | if test "x$ac_cv_prog_cc_c11" = x | |
4221 | then : | |
4222 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4223 | printf "%s\n" "none needed" >&6; } | |
4224 | else $as_nop | |
4225 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
4226 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
4227 | CC="$CC $ac_cv_prog_cc_c11" | |
4228 | fi | |
4229 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
4230 | ac_prog_cc_stdc=c11 | |
4231 | fi | |
4232 | fi | |
4233 | if test x$ac_prog_cc_stdc = xno | |
4234 | then : | |
4235 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
4236 | printf %s "checking for $CC option to enable C99 features... " >&6; } | |
4237 | if test ${ac_cv_prog_cc_c99+y} | |
4238 | then : | |
4239 | printf %s "(cached) " >&6 | |
4240 | else $as_nop | |
4241 | ac_cv_prog_cc_c99=no | |
4242 | ac_save_CC=$CC | |
4243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4244 | /* end confdefs.h. */ | |
4245 | $ac_c_conftest_c99_program | |
4246 | _ACEOF | |
4247 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
4248 | do | |
4249 | CC="$ac_save_CC $ac_arg" | |
4250 | if ac_fn_c_try_compile "$LINENO" | |
4251 | then : | |
4252 | ac_cv_prog_cc_c99=$ac_arg | |
4253 | fi | |
4254 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4255 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
4256 | done | |
4257 | rm -f conftest.$ac_ext | |
4258 | CC=$ac_save_CC | |
4259 | fi | |
4260 | ||
4261 | if test "x$ac_cv_prog_cc_c99" = xno | |
4262 | then : | |
4263 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4264 | printf "%s\n" "unsupported" >&6; } | |
4265 | else $as_nop | |
4266 | if test "x$ac_cv_prog_cc_c99" = x | |
4267 | then : | |
4268 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4269 | printf "%s\n" "none needed" >&6; } | |
4270 | else $as_nop | |
4271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
4272 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
4273 | CC="$CC $ac_cv_prog_cc_c99" | |
4274 | fi | |
4275 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
4276 | ac_prog_cc_stdc=c99 | |
4277 | fi | |
4278 | fi | |
4279 | if test x$ac_prog_cc_stdc = xno | |
4280 | then : | |
4281 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
4282 | printf %s "checking for $CC option to enable C89 features... " >&6; } | |
4283 | if test ${ac_cv_prog_cc_c89+y} | |
4284 | then : | |
4285 | printf %s "(cached) " >&6 | |
4286 | else $as_nop | |
3645 | 4287 | ac_cv_prog_cc_c89=no |
3646 | 4288 | ac_save_CC=$CC |
3647 | 4289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3648 | 4290 | /* end confdefs.h. */ |
3649 | #include <stdarg.h> | |
3650 | #include <stdio.h> | |
3651 | struct stat; | |
3652 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3653 | struct buf { int x; }; | |
3654 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3655 | static char *e (p, i) | |
3656 | char **p; | |
3657 | int i; | |
3658 | { | |
3659 | return p[i]; | |
3660 | } | |
3661 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3662 | { | |
3663 | char *s; | |
3664 | va_list v; | |
3665 | va_start (v,p); | |
3666 | s = g (p, va_arg (v,int)); | |
3667 | va_end (v); | |
3668 | return s; | |
3669 | } | |
3670 | ||
3671 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3672 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3673 | These don't provoke an error unfortunately, instead are silently treated | |
3674 | as 'x'. The following induces an error, until -std is added to get | |
3675 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3676 | array size at least. It's necessary to write '\x00'==0 to get something | |
3677 | that's true only with -std. */ | |
3678 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3679 | ||
3680 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3681 | inside strings and character constants. */ | |
3682 | #define FOO(x) 'x' | |
3683 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3684 | ||
3685 | int test (int i, double x); | |
3686 | struct s1 {int (*f) (int a);}; | |
3687 | struct s2 {int (*f) (double a);}; | |
3688 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3689 | int argc; | |
3690 | char **argv; | |
3691 | int | |
3692 | main () | |
3693 | { | |
3694 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3695 | ; | |
3696 | return 0; | |
3697 | } | |
4291 | $ac_c_conftest_c89_program | |
3698 | 4292 | _ACEOF |
3699 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3700 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4293 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3701 | 4294 | do |
3702 | 4295 | CC="$ac_save_CC $ac_arg" |
3703 | if ac_fn_c_try_compile "$LINENO"; then : | |
4296 | if ac_fn_c_try_compile "$LINENO" | |
4297 | then : | |
3704 | 4298 | ac_cv_prog_cc_c89=$ac_arg |
3705 | 4299 | fi |
3706 | rm -f core conftest.err conftest.$ac_objext | |
4300 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
3707 | 4301 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
3708 | 4302 | done |
3709 | 4303 | rm -f conftest.$ac_ext |
3710 | 4304 | CC=$ac_save_CC |
3711 | ||
3712 | fi | |
3713 | # AC_CACHE_VAL | |
3714 | case "x$ac_cv_prog_cc_c89" in | |
3715 | x) | |
3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3717 | $as_echo "none needed" >&6; } ;; | |
3718 | xno) | |
3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3720 | $as_echo "unsupported" >&6; } ;; | |
3721 | *) | |
3722 | CC="$CC $ac_cv_prog_cc_c89" | |
3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3724 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3725 | esac | |
3726 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3727 | ||
4305 | fi | |
4306 | ||
4307 | if test "x$ac_cv_prog_cc_c89" = xno | |
4308 | then : | |
4309 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4310 | printf "%s\n" "unsupported" >&6; } | |
4311 | else $as_nop | |
4312 | if test "x$ac_cv_prog_cc_c89" = x | |
4313 | then : | |
4314 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4315 | printf "%s\n" "none needed" >&6; } | |
4316 | else $as_nop | |
4317 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4318 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | |
4319 | CC="$CC $ac_cv_prog_cc_c89" | |
4320 | fi | |
4321 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
4322 | ac_prog_cc_stdc=c89 | |
4323 | fi | |
3728 | 4324 | fi |
3729 | 4325 | |
3730 | 4326 | ac_ext=c |
3733 | 4329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3734 | 4330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3735 | 4331 | |
3736 | ac_ext=c | |
4332 | ||
4333 | ac_ext=c | |
3737 | 4334 | ac_cpp='$CPP $CPPFLAGS' |
3738 | 4335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3739 | 4336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3740 | 4337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3742 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3743 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3744 | $as_echo_n "(cached) " >&6 | |
3745 | else | |
4338 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4339 | printf %s "checking whether $CC understands -c and -o together... " >&6; } | |
4340 | if test ${am_cv_prog_cc_c_o+y} | |
4341 | then : | |
4342 | printf %s "(cached) " >&6 | |
4343 | else $as_nop | |
3746 | 4344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3747 | 4345 | /* end confdefs.h. */ |
3748 | 4346 | |
3749 | 4347 | int |
3750 | main () | |
4348 | main (void) | |
3751 | 4349 | { |
3752 | 4350 | |
3753 | 4351 | ; |
3775 | 4373 | rm -f core conftest* |
3776 | 4374 | unset am_i |
3777 | 4375 | fi |
3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3779 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4376 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4377 | printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } | |
3780 | 4378 | if test "$am_cv_prog_cc_c_o" != yes; then |
3781 | 4379 | # Losing compiler, so override with the script. |
3782 | 4380 | # FIXME: It is wrong to rewrite CC. |
3794 | 4392 | |
3795 | 4393 | depcc="$CC" am_compiler_list= |
3796 | 4394 | |
3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3798 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3799 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
3800 | $as_echo_n "(cached) " >&6 | |
3801 | else | |
4395 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4396 | printf %s "checking dependency style of $depcc... " >&6; } | |
4397 | if test ${am_cv_CC_dependencies_compiler_type+y} | |
4398 | then : | |
4399 | printf %s "(cached) " >&6 | |
4400 | else $as_nop | |
3802 | 4401 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3803 | 4402 | # We make a subdir and do the tests there. Otherwise we can end up |
3804 | 4403 | # making bogus files that we don't know about and never remove. For |
3905 | 4504 | fi |
3906 | 4505 | |
3907 | 4506 | fi |
3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3909 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4507 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4508 | printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } | |
3910 | 4509 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3911 | 4510 | |
3912 | 4511 | if |
3921 | 4520 | |
3922 | 4521 | |
3923 | 4522 | |
3924 | ac_ext=c | |
3925 | ac_cpp='$CPP $CPPFLAGS' | |
3926 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3927 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3928 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3930 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3931 | # On Suns, sometimes $CPP names a directory. | |
3932 | if test -n "$CPP" && test -d "$CPP"; then | |
3933 | CPP= | |
3934 | fi | |
3935 | if test -z "$CPP"; then | |
3936 | if ${ac_cv_prog_CPP+:} false; then : | |
3937 | $as_echo_n "(cached) " >&6 | |
3938 | else | |
3939 | # Double quotes because CPP needs to be expanded | |
3940 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3941 | do | |
3942 | ac_preproc_ok=false | |
3943 | for ac_c_preproc_warn_flag in '' yes | |
4523 | ac_header= ac_cache= | |
4524 | for ac_item in $ac_header_c_list | |
3944 | 4525 | do |
3945 | # Use a header file that comes with gcc, so configuring glibc | |
3946 | # with a fresh cross-compiler works. | |
3947 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3948 | # <limits.h> exists even on freestanding compilers. | |
3949 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3950 | # not just through cpp. "Syntax error" is here to catch this case. | |
4526 | if test $ac_cache; then | |
4527 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" | |
4528 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then | |
4529 | printf "%s\n" "#define $ac_item 1" >> confdefs.h | |
4530 | fi | |
4531 | ac_header= ac_cache= | |
4532 | elif test $ac_header; then | |
4533 | ac_cache=$ac_item | |
4534 | else | |
4535 | ac_header=$ac_item | |
4536 | fi | |
4537 | done | |
4538 | ||
4539 | ||
4540 | ||
4541 | ||
4542 | ||
4543 | ||
4544 | ||
4545 | ||
4546 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes | |
4547 | then : | |
4548 | ||
4549 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h | |
4550 | ||
4551 | fi | |
4552 | ||
4553 | ||
4554 | ||
4555 | ||
4556 | ||
4557 | ||
4558 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4559 | printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4560 | if test ${ac_cv_safe_to_define___extensions__+y} | |
4561 | then : | |
4562 | printf %s "(cached) " >&6 | |
4563 | else $as_nop | |
3951 | 4564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3952 | 4565 | /* end confdefs.h. */ |
3953 | #ifdef __STDC__ | |
3954 | # include <limits.h> | |
3955 | #else | |
3956 | # include <assert.h> | |
3957 | #endif | |
3958 | Syntax error | |
3959 | _ACEOF | |
3960 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3961 | ||
3962 | else | |
3963 | # Broken: fails on valid input. | |
3964 | continue | |
3965 | fi | |
3966 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3967 | ||
3968 | # OK, works on sane cases. Now check whether nonexistent headers | |
3969 | # can be detected and how. | |
3970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3971 | /* end confdefs.h. */ | |
3972 | #include <ac_nonexistent.h> | |
3973 | _ACEOF | |
3974 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3975 | # Broken: success on invalid input. | |
3976 | continue | |
3977 | else | |
3978 | # Passes both tests. | |
3979 | ac_preproc_ok=: | |
3980 | break | |
3981 | fi | |
3982 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3983 | ||
3984 | done | |
3985 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3986 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3987 | if $ac_preproc_ok; then : | |
3988 | break | |
3989 | fi | |
3990 | ||
3991 | done | |
3992 | ac_cv_prog_CPP=$CPP | |
3993 | ||
3994 | fi | |
3995 | CPP=$ac_cv_prog_CPP | |
3996 | else | |
3997 | ac_cv_prog_CPP=$CPP | |
3998 | fi | |
3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4000 | $as_echo "$CPP" >&6; } | |
4001 | ac_preproc_ok=false | |
4002 | for ac_c_preproc_warn_flag in '' yes | |
4003 | do | |
4004 | # Use a header file that comes with gcc, so configuring glibc | |
4005 | # with a fresh cross-compiler works. | |
4006 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4007 | # <limits.h> exists even on freestanding compilers. | |
4008 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4009 | # not just through cpp. "Syntax error" is here to catch this case. | |
4010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4011 | /* end confdefs.h. */ | |
4012 | #ifdef __STDC__ | |
4013 | # include <limits.h> | |
4014 | #else | |
4015 | # include <assert.h> | |
4016 | #endif | |
4017 | Syntax error | |
4018 | _ACEOF | |
4019 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4020 | ||
4021 | else | |
4022 | # Broken: fails on valid input. | |
4023 | continue | |
4024 | fi | |
4025 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4026 | ||
4027 | # OK, works on sane cases. Now check whether nonexistent headers | |
4028 | # can be detected and how. | |
4029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4030 | /* end confdefs.h. */ | |
4031 | #include <ac_nonexistent.h> | |
4032 | _ACEOF | |
4033 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4034 | # Broken: success on invalid input. | |
4035 | continue | |
4036 | else | |
4037 | # Passes both tests. | |
4038 | ac_preproc_ok=: | |
4039 | break | |
4040 | fi | |
4041 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4042 | ||
4043 | done | |
4044 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4045 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4046 | if $ac_preproc_ok; then : | |
4047 | ||
4048 | else | |
4049 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4050 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4051 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
4052 | See \`config.log' for more details" "$LINENO" 5; } | |
4053 | fi | |
4054 | ||
4055 | ac_ext=c | |
4056 | ac_cpp='$CPP $CPPFLAGS' | |
4057 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4058 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4059 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4060 | ||
4061 | ||
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4063 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4064 | if ${ac_cv_path_GREP+:} false; then : | |
4065 | $as_echo_n "(cached) " >&6 | |
4066 | else | |
4067 | if test -z "$GREP"; then | |
4068 | ac_path_GREP_found=false | |
4069 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4071 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4072 | do | |
4073 | IFS=$as_save_IFS | |
4074 | test -z "$as_dir" && as_dir=. | |
4075 | for ac_prog in grep ggrep; do | |
4076 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4077 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4078 | as_fn_executable_p "$ac_path_GREP" || continue | |
4079 | # Check for GNU ac_path_GREP and select it if it is found. | |
4080 | # Check for GNU $ac_path_GREP | |
4081 | case `"$ac_path_GREP" --version 2>&1` in | |
4082 | *GNU*) | |
4083 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4084 | *) | |
4085 | ac_count=0 | |
4086 | $as_echo_n 0123456789 >"conftest.in" | |
4087 | while : | |
4088 | do | |
4089 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4090 | mv "conftest.tmp" "conftest.in" | |
4091 | cp "conftest.in" "conftest.nl" | |
4092 | $as_echo 'GREP' >> "conftest.nl" | |
4093 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4094 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4095 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4096 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4097 | # Best one so far, save it but keep looking for a better one | |
4098 | ac_cv_path_GREP="$ac_path_GREP" | |
4099 | ac_path_GREP_max=$ac_count | |
4100 | fi | |
4101 | # 10*(2^10) chars as input seems more than enough | |
4102 | test $ac_count -gt 10 && break | |
4103 | done | |
4104 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4105 | esac | |
4106 | ||
4107 | $ac_path_GREP_found && break 3 | |
4108 | done | |
4109 | done | |
4110 | done | |
4111 | IFS=$as_save_IFS | |
4112 | if test -z "$ac_cv_path_GREP"; then | |
4113 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4114 | fi | |
4115 | else | |
4116 | ac_cv_path_GREP=$GREP | |
4117 | fi | |
4118 | ||
4119 | fi | |
4120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4121 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4122 | GREP="$ac_cv_path_GREP" | |
4123 | ||
4124 | ||
4125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4126 | $as_echo_n "checking for egrep... " >&6; } | |
4127 | if ${ac_cv_path_EGREP+:} false; then : | |
4128 | $as_echo_n "(cached) " >&6 | |
4129 | else | |
4130 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4131 | then ac_cv_path_EGREP="$GREP -E" | |
4132 | else | |
4133 | if test -z "$EGREP"; then | |
4134 | ac_path_EGREP_found=false | |
4135 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4137 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4138 | do | |
4139 | IFS=$as_save_IFS | |
4140 | test -z "$as_dir" && as_dir=. | |
4141 | for ac_prog in egrep; do | |
4142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4143 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4144 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4145 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4146 | # Check for GNU $ac_path_EGREP | |
4147 | case `"$ac_path_EGREP" --version 2>&1` in | |
4148 | *GNU*) | |
4149 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4150 | *) | |
4151 | ac_count=0 | |
4152 | $as_echo_n 0123456789 >"conftest.in" | |
4153 | while : | |
4154 | do | |
4155 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4156 | mv "conftest.tmp" "conftest.in" | |
4157 | cp "conftest.in" "conftest.nl" | |
4158 | $as_echo 'EGREP' >> "conftest.nl" | |
4159 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4160 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4161 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4162 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4163 | # Best one so far, save it but keep looking for a better one | |
4164 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4165 | ac_path_EGREP_max=$ac_count | |
4166 | fi | |
4167 | # 10*(2^10) chars as input seems more than enough | |
4168 | test $ac_count -gt 10 && break | |
4169 | done | |
4170 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4171 | esac | |
4172 | ||
4173 | $ac_path_EGREP_found && break 3 | |
4174 | done | |
4175 | done | |
4176 | done | |
4177 | IFS=$as_save_IFS | |
4178 | if test -z "$ac_cv_path_EGREP"; then | |
4179 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4180 | fi | |
4181 | else | |
4182 | ac_cv_path_EGREP=$EGREP | |
4183 | fi | |
4184 | ||
4185 | fi | |
4186 | fi | |
4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4188 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4189 | EGREP="$ac_cv_path_EGREP" | |
4190 | ||
4191 | ||
4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4193 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4194 | if ${ac_cv_header_stdc+:} false; then : | |
4195 | $as_echo_n "(cached) " >&6 | |
4196 | else | |
4197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4198 | /* end confdefs.h. */ | |
4199 | #include <stdlib.h> | |
4200 | #include <stdarg.h> | |
4201 | #include <string.h> | |
4202 | #include <float.h> | |
4203 | ||
4566 | ||
4567 | # define __EXTENSIONS__ 1 | |
4568 | $ac_includes_default | |
4204 | 4569 | int |
4205 | main () | |
4570 | main (void) | |
4206 | 4571 | { |
4207 | 4572 | |
4208 | 4573 | ; |
4209 | 4574 | return 0; |
4210 | 4575 | } |
4211 | 4576 | _ACEOF |
4212 | if ac_fn_c_try_compile "$LINENO"; then : | |
4213 | ac_cv_header_stdc=yes | |
4214 | else | |
4215 | ac_cv_header_stdc=no | |
4216 | fi | |
4217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4218 | ||
4219 | if test $ac_cv_header_stdc = yes; then | |
4220 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4577 | if ac_fn_c_try_compile "$LINENO" | |
4578 | then : | |
4579 | ac_cv_safe_to_define___extensions__=yes | |
4580 | else $as_nop | |
4581 | ac_cv_safe_to_define___extensions__=no | |
4582 | fi | |
4583 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4584 | fi | |
4585 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4586 | printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } | |
4587 | ||
4588 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 | |
4589 | printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } | |
4590 | if test ${ac_cv_should_define__xopen_source+y} | |
4591 | then : | |
4592 | printf %s "(cached) " >&6 | |
4593 | else $as_nop | |
4594 | ac_cv_should_define__xopen_source=no | |
4595 | if test $ac_cv_header_wchar_h = yes | |
4596 | then : | |
4221 | 4597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4222 | 4598 | /* end confdefs.h. */ |
4223 | #include <string.h> | |
4224 | ||
4225 | _ACEOF | |
4226 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4227 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4228 | ||
4229 | else | |
4230 | ac_cv_header_stdc=no | |
4231 | fi | |
4232 | rm -f conftest* | |
4233 | ||
4234 | fi | |
4235 | ||
4236 | if test $ac_cv_header_stdc = yes; then | |
4237 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4239 | /* end confdefs.h. */ | |
4240 | #include <stdlib.h> | |
4241 | ||
4242 | _ACEOF | |
4243 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4244 | $EGREP "free" >/dev/null 2>&1; then : | |
4245 | ||
4246 | else | |
4247 | ac_cv_header_stdc=no | |
4248 | fi | |
4249 | rm -f conftest* | |
4250 | ||
4251 | fi | |
4252 | ||
4253 | if test $ac_cv_header_stdc = yes; then | |
4254 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4255 | if test "$cross_compiling" = yes; then : | |
4256 | : | |
4257 | else | |
4258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4259 | /* end confdefs.h. */ | |
4260 | #include <ctype.h> | |
4261 | #include <stdlib.h> | |
4262 | #if ((' ' & 0x0FF) == 0x020) | |
4263 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4264 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4265 | #else | |
4266 | # define ISLOWER(c) \ | |
4267 | (('a' <= (c) && (c) <= 'i') \ | |
4268 | || ('j' <= (c) && (c) <= 'r') \ | |
4269 | || ('s' <= (c) && (c) <= 'z')) | |
4270 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4271 | #endif | |
4272 | ||
4273 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4599 | ||
4600 | #include <wchar.h> | |
4601 | mbstate_t x; | |
4274 | 4602 | int |
4275 | main () | |
4276 | { | |
4277 | int i; | |
4278 | for (i = 0; i < 256; i++) | |
4279 | if (XOR (islower (i), ISLOWER (i)) | |
4280 | || toupper (i) != TOUPPER (i)) | |
4281 | return 2; | |
4282 | return 0; | |
4283 | } | |
4284 | _ACEOF | |
4285 | if ac_fn_c_try_run "$LINENO"; then : | |
4286 | ||
4287 | else | |
4288 | ac_cv_header_stdc=no | |
4289 | fi | |
4290 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4291 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4292 | fi | |
4293 | ||
4294 | fi | |
4295 | fi | |
4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4297 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4298 | if test $ac_cv_header_stdc = yes; then | |
4299 | ||
4300 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4301 | ||
4302 | fi | |
4303 | ||
4304 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4305 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4306 | inttypes.h stdint.h unistd.h | |
4307 | do : | |
4308 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4309 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4310 | " | |
4311 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4312 | cat >>confdefs.h <<_ACEOF | |
4313 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4314 | _ACEOF | |
4315 | ||
4316 | fi | |
4317 | ||
4318 | done | |
4319 | ||
4320 | ||
4321 | ||
4322 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4323 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
4324 | MINIX=yes | |
4325 | else | |
4326 | MINIX= | |
4327 | fi | |
4328 | ||
4329 | ||
4330 | if test "$MINIX" = yes; then | |
4331 | ||
4332 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4333 | ||
4334 | ||
4335 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4336 | ||
4337 | ||
4338 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4339 | ||
4340 | fi | |
4341 | ||
4342 | ||
4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4344 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4345 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
4346 | $as_echo_n "(cached) " >&6 | |
4347 | else | |
4348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4349 | /* end confdefs.h. */ | |
4350 | ||
4351 | # define __EXTENSIONS__ 1 | |
4352 | $ac_includes_default | |
4353 | int | |
4354 | main () | |
4603 | main (void) | |
4355 | 4604 | { |
4356 | 4605 | |
4357 | 4606 | ; |
4358 | 4607 | return 0; |
4359 | 4608 | } |
4360 | 4609 | _ACEOF |
4361 | if ac_fn_c_try_compile "$LINENO"; then : | |
4362 | ac_cv_safe_to_define___extensions__=yes | |
4363 | else | |
4364 | ac_cv_safe_to_define___extensions__=no | |
4365 | fi | |
4366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4367 | fi | |
4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4369 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4370 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4371 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
4372 | ||
4373 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
4374 | ||
4375 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
4376 | ||
4377 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4378 | ||
4379 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
4380 | ||
4610 | if ac_fn_c_try_compile "$LINENO" | |
4611 | then : | |
4612 | ||
4613 | else $as_nop | |
4614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4615 | /* end confdefs.h. */ | |
4616 | ||
4617 | #define _XOPEN_SOURCE 500 | |
4618 | #include <wchar.h> | |
4619 | mbstate_t x; | |
4620 | int | |
4621 | main (void) | |
4622 | { | |
4623 | ||
4624 | ; | |
4625 | return 0; | |
4626 | } | |
4627 | _ACEOF | |
4628 | if ac_fn_c_try_compile "$LINENO" | |
4629 | then : | |
4630 | ac_cv_should_define__xopen_source=yes | |
4631 | fi | |
4632 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4633 | fi | |
4634 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4635 | fi | |
4636 | fi | |
4637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 | |
4638 | printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } | |
4639 | ||
4640 | printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h | |
4641 | ||
4642 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h | |
4643 | ||
4644 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h | |
4645 | ||
4646 | printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h | |
4647 | ||
4648 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h | |
4649 | ||
4650 | printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h | |
4651 | ||
4652 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4653 | ||
4654 | printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h | |
4655 | ||
4656 | printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h | |
4657 | ||
4658 | printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h | |
4659 | ||
4660 | printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h | |
4661 | ||
4662 | printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h | |
4663 | ||
4664 | printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h | |
4665 | ||
4666 | printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h | |
4667 | ||
4668 | printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h | |
4669 | ||
4670 | if test $ac_cv_header_minix_config_h = yes | |
4671 | then : | |
4672 | MINIX=yes | |
4673 | printf "%s\n" "#define _MINIX 1" >>confdefs.h | |
4674 | ||
4675 | printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h | |
4676 | ||
4677 | printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4678 | ||
4679 | else $as_nop | |
4680 | MINIX= | |
4681 | fi | |
4682 | if test $ac_cv_safe_to_define___extensions__ = yes | |
4683 | then : | |
4684 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h | |
4685 | ||
4686 | fi | |
4687 | if test $ac_cv_should_define__xopen_source = yes | |
4688 | then : | |
4689 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h | |
4690 | ||
4691 | fi | |
4381 | 4692 | |
4382 | 4693 | |
4383 | 4694 | ac_ext=c |
4388 | 4699 | if test -n "$ac_tool_prefix"; then |
4389 | 4700 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
4390 | 4701 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4392 | $as_echo_n "checking for $ac_word... " >&6; } | |
4393 | if ${ac_cv_prog_CC+:} false; then : | |
4394 | $as_echo_n "(cached) " >&6 | |
4395 | else | |
4702 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4703 | printf %s "checking for $ac_word... " >&6; } | |
4704 | if test ${ac_cv_prog_CC+y} | |
4705 | then : | |
4706 | printf %s "(cached) " >&6 | |
4707 | else $as_nop | |
4396 | 4708 | if test -n "$CC"; then |
4397 | 4709 | ac_cv_prog_CC="$CC" # Let the user override the test. |
4398 | 4710 | else |
4400 | 4712 | for as_dir in $PATH |
4401 | 4713 | do |
4402 | 4714 | IFS=$as_save_IFS |
4403 | test -z "$as_dir" && as_dir=. | |
4715 | case $as_dir in #((( | |
4716 | '') as_dir=./ ;; | |
4717 | */) ;; | |
4718 | *) as_dir=$as_dir/ ;; | |
4719 | esac | |
4404 | 4720 | for ac_exec_ext in '' $ac_executable_extensions; do |
4405 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4721 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4406 | 4722 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
4407 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4723 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4408 | 4724 | break 2 |
4409 | 4725 | fi |
4410 | 4726 | done |
4415 | 4731 | fi |
4416 | 4732 | CC=$ac_cv_prog_CC |
4417 | 4733 | if test -n "$CC"; then |
4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4419 | $as_echo "$CC" >&6; } | |
4734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4735 | printf "%s\n" "$CC" >&6; } | |
4420 | 4736 | else |
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4422 | $as_echo "no" >&6; } | |
4737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4738 | printf "%s\n" "no" >&6; } | |
4423 | 4739 | fi |
4424 | 4740 | |
4425 | 4741 | |
4428 | 4744 | ac_ct_CC=$CC |
4429 | 4745 | # Extract the first word of "gcc", so it can be a program name with args. |
4430 | 4746 | set dummy gcc; ac_word=$2 |
4431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4432 | $as_echo_n "checking for $ac_word... " >&6; } | |
4433 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
4434 | $as_echo_n "(cached) " >&6 | |
4435 | else | |
4747 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4748 | printf %s "checking for $ac_word... " >&6; } | |
4749 | if test ${ac_cv_prog_ac_ct_CC+y} | |
4750 | then : | |
4751 | printf %s "(cached) " >&6 | |
4752 | else $as_nop | |
4436 | 4753 | if test -n "$ac_ct_CC"; then |
4437 | 4754 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
4438 | 4755 | else |
4440 | 4757 | for as_dir in $PATH |
4441 | 4758 | do |
4442 | 4759 | IFS=$as_save_IFS |
4443 | test -z "$as_dir" && as_dir=. | |
4760 | case $as_dir in #((( | |
4761 | '') as_dir=./ ;; | |
4762 | */) ;; | |
4763 | *) as_dir=$as_dir/ ;; | |
4764 | esac | |
4444 | 4765 | for ac_exec_ext in '' $ac_executable_extensions; do |
4445 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4766 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4446 | 4767 | ac_cv_prog_ac_ct_CC="gcc" |
4447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4768 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4448 | 4769 | break 2 |
4449 | 4770 | fi |
4450 | 4771 | done |
4455 | 4776 | fi |
4456 | 4777 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4457 | 4778 | if test -n "$ac_ct_CC"; then |
4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4459 | $as_echo "$ac_ct_CC" >&6; } | |
4779 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4780 | printf "%s\n" "$ac_ct_CC" >&6; } | |
4460 | 4781 | else |
4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4462 | $as_echo "no" >&6; } | |
4782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4783 | printf "%s\n" "no" >&6; } | |
4463 | 4784 | fi |
4464 | 4785 | |
4465 | 4786 | if test "x$ac_ct_CC" = x; then |
4467 | 4788 | else |
4468 | 4789 | case $cross_compiling:$ac_tool_warned in |
4469 | 4790 | yes:) |
4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4471 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4792 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4472 | 4793 | ac_tool_warned=yes ;; |
4473 | 4794 | esac |
4474 | 4795 | CC=$ac_ct_CC |
4481 | 4802 | if test -n "$ac_tool_prefix"; then |
4482 | 4803 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
4483 | 4804 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4485 | $as_echo_n "checking for $ac_word... " >&6; } | |
4486 | if ${ac_cv_prog_CC+:} false; then : | |
4487 | $as_echo_n "(cached) " >&6 | |
4488 | else | |
4805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4806 | printf %s "checking for $ac_word... " >&6; } | |
4807 | if test ${ac_cv_prog_CC+y} | |
4808 | then : | |
4809 | printf %s "(cached) " >&6 | |
4810 | else $as_nop | |
4489 | 4811 | if test -n "$CC"; then |
4490 | 4812 | ac_cv_prog_CC="$CC" # Let the user override the test. |
4491 | 4813 | else |
4493 | 4815 | for as_dir in $PATH |
4494 | 4816 | do |
4495 | 4817 | IFS=$as_save_IFS |
4496 | test -z "$as_dir" && as_dir=. | |
4818 | case $as_dir in #((( | |
4819 | '') as_dir=./ ;; | |
4820 | */) ;; | |
4821 | *) as_dir=$as_dir/ ;; | |
4822 | esac | |
4497 | 4823 | for ac_exec_ext in '' $ac_executable_extensions; do |
4498 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4824 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4499 | 4825 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
4500 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4826 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4501 | 4827 | break 2 |
4502 | 4828 | fi |
4503 | 4829 | done |
4508 | 4834 | fi |
4509 | 4835 | CC=$ac_cv_prog_CC |
4510 | 4836 | if test -n "$CC"; then |
4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4512 | $as_echo "$CC" >&6; } | |
4837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4838 | printf "%s\n" "$CC" >&6; } | |
4513 | 4839 | else |
4514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4515 | $as_echo "no" >&6; } | |
4840 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4841 | printf "%s\n" "no" >&6; } | |
4516 | 4842 | fi |
4517 | 4843 | |
4518 | 4844 | |
4521 | 4847 | if test -z "$CC"; then |
4522 | 4848 | # Extract the first word of "cc", so it can be a program name with args. |
4523 | 4849 | set dummy cc; ac_word=$2 |
4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4525 | $as_echo_n "checking for $ac_word... " >&6; } | |
4526 | if ${ac_cv_prog_CC+:} false; then : | |
4527 | $as_echo_n "(cached) " >&6 | |
4528 | else | |
4850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4851 | printf %s "checking for $ac_word... " >&6; } | |
4852 | if test ${ac_cv_prog_CC+y} | |
4853 | then : | |
4854 | printf %s "(cached) " >&6 | |
4855 | else $as_nop | |
4529 | 4856 | if test -n "$CC"; then |
4530 | 4857 | ac_cv_prog_CC="$CC" # Let the user override the test. |
4531 | 4858 | else |
4534 | 4861 | for as_dir in $PATH |
4535 | 4862 | do |
4536 | 4863 | IFS=$as_save_IFS |
4537 | test -z "$as_dir" && as_dir=. | |
4864 | case $as_dir in #((( | |
4865 | '') as_dir=./ ;; | |
4866 | */) ;; | |
4867 | *) as_dir=$as_dir/ ;; | |
4868 | esac | |
4538 | 4869 | for ac_exec_ext in '' $ac_executable_extensions; do |
4539 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4540 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4870 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4871 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4541 | 4872 | ac_prog_rejected=yes |
4542 | 4873 | continue |
4543 | 4874 | fi |
4544 | 4875 | ac_cv_prog_CC="cc" |
4545 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4876 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4546 | 4877 | break 2 |
4547 | 4878 | fi |
4548 | 4879 | done |
4558 | 4889 | # However, it has the same basename, so the bogon will be chosen |
4559 | 4890 | # first if we set CC to just the basename; use the full file name. |
4560 | 4891 | shift |
4561 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4892 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" | |
4562 | 4893 | fi |
4563 | 4894 | fi |
4564 | 4895 | fi |
4565 | 4896 | fi |
4566 | 4897 | CC=$ac_cv_prog_CC |
4567 | 4898 | if test -n "$CC"; then |
4568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4569 | $as_echo "$CC" >&6; } | |
4899 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4900 | printf "%s\n" "$CC" >&6; } | |
4570 | 4901 | else |
4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4572 | $as_echo "no" >&6; } | |
4902 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4903 | printf "%s\n" "no" >&6; } | |
4573 | 4904 | fi |
4574 | 4905 | |
4575 | 4906 | |
4580 | 4911 | do |
4581 | 4912 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4582 | 4913 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4584 | $as_echo_n "checking for $ac_word... " >&6; } | |
4585 | if ${ac_cv_prog_CC+:} false; then : | |
4586 | $as_echo_n "(cached) " >&6 | |
4587 | else | |
4914 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4915 | printf %s "checking for $ac_word... " >&6; } | |
4916 | if test ${ac_cv_prog_CC+y} | |
4917 | then : | |
4918 | printf %s "(cached) " >&6 | |
4919 | else $as_nop | |
4588 | 4920 | if test -n "$CC"; then |
4589 | 4921 | ac_cv_prog_CC="$CC" # Let the user override the test. |
4590 | 4922 | else |
4592 | 4924 | for as_dir in $PATH |
4593 | 4925 | do |
4594 | 4926 | IFS=$as_save_IFS |
4595 | test -z "$as_dir" && as_dir=. | |
4927 | case $as_dir in #((( | |
4928 | '') as_dir=./ ;; | |
4929 | */) ;; | |
4930 | *) as_dir=$as_dir/ ;; | |
4931 | esac | |
4596 | 4932 | for ac_exec_ext in '' $ac_executable_extensions; do |
4597 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4933 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4598 | 4934 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
4599 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4935 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4600 | 4936 | break 2 |
4601 | 4937 | fi |
4602 | 4938 | done |
4607 | 4943 | fi |
4608 | 4944 | CC=$ac_cv_prog_CC |
4609 | 4945 | if test -n "$CC"; then |
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4611 | $as_echo "$CC" >&6; } | |
4946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4947 | printf "%s\n" "$CC" >&6; } | |
4612 | 4948 | else |
4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4614 | $as_echo "no" >&6; } | |
4949 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4950 | printf "%s\n" "no" >&6; } | |
4615 | 4951 | fi |
4616 | 4952 | |
4617 | 4953 | |
4624 | 4960 | do |
4625 | 4961 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4626 | 4962 | set dummy $ac_prog; ac_word=$2 |
4627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4628 | $as_echo_n "checking for $ac_word... " >&6; } | |
4629 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
4630 | $as_echo_n "(cached) " >&6 | |
4631 | else | |
4963 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4964 | printf %s "checking for $ac_word... " >&6; } | |
4965 | if test ${ac_cv_prog_ac_ct_CC+y} | |
4966 | then : | |
4967 | printf %s "(cached) " >&6 | |
4968 | else $as_nop | |
4632 | 4969 | if test -n "$ac_ct_CC"; then |
4633 | 4970 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
4634 | 4971 | else |
4636 | 4973 | for as_dir in $PATH |
4637 | 4974 | do |
4638 | 4975 | IFS=$as_save_IFS |
4639 | test -z "$as_dir" && as_dir=. | |
4976 | case $as_dir in #((( | |
4977 | '') as_dir=./ ;; | |
4978 | */) ;; | |
4979 | *) as_dir=$as_dir/ ;; | |
4980 | esac | |
4640 | 4981 | for ac_exec_ext in '' $ac_executable_extensions; do |
4641 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4982 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4642 | 4983 | ac_cv_prog_ac_ct_CC="$ac_prog" |
4643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4984 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4644 | 4985 | break 2 |
4645 | 4986 | fi |
4646 | 4987 | done |
4651 | 4992 | fi |
4652 | 4993 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4653 | 4994 | if test -n "$ac_ct_CC"; then |
4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4655 | $as_echo "$ac_ct_CC" >&6; } | |
4995 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4996 | printf "%s\n" "$ac_ct_CC" >&6; } | |
4656 | 4997 | else |
4657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4658 | $as_echo "no" >&6; } | |
4998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4999 | printf "%s\n" "no" >&6; } | |
4659 | 5000 | fi |
4660 | 5001 | |
4661 | 5002 | |
4667 | 5008 | else |
4668 | 5009 | case $cross_compiling:$ac_tool_warned in |
4669 | 5010 | yes:) |
4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4671 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5012 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4672 | 5013 | ac_tool_warned=yes ;; |
4673 | 5014 | esac |
4674 | 5015 | CC=$ac_ct_CC |
4676 | 5017 | fi |
4677 | 5018 | |
4678 | 5019 | fi |
4679 | ||
4680 | ||
4681 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4682 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5020 | if test -z "$CC"; then | |
5021 | if test -n "$ac_tool_prefix"; then | |
5022 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
5023 | set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
5024 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5025 | printf %s "checking for $ac_word... " >&6; } | |
5026 | if test ${ac_cv_prog_CC+y} | |
5027 | then : | |
5028 | printf %s "(cached) " >&6 | |
5029 | else $as_nop | |
5030 | if test -n "$CC"; then | |
5031 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5032 | else | |
5033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5034 | for as_dir in $PATH | |
5035 | do | |
5036 | IFS=$as_save_IFS | |
5037 | case $as_dir in #((( | |
5038 | '') as_dir=./ ;; | |
5039 | */) ;; | |
5040 | *) as_dir=$as_dir/ ;; | |
5041 | esac | |
5042 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5043 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5044 | ac_cv_prog_CC="${ac_tool_prefix}clang" | |
5045 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5046 | break 2 | |
5047 | fi | |
5048 | done | |
5049 | done | |
5050 | IFS=$as_save_IFS | |
5051 | ||
5052 | fi | |
5053 | fi | |
5054 | CC=$ac_cv_prog_CC | |
5055 | if test -n "$CC"; then | |
5056 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5057 | printf "%s\n" "$CC" >&6; } | |
5058 | else | |
5059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5060 | printf "%s\n" "no" >&6; } | |
5061 | fi | |
5062 | ||
5063 | ||
5064 | fi | |
5065 | if test -z "$ac_cv_prog_CC"; then | |
5066 | ac_ct_CC=$CC | |
5067 | # Extract the first word of "clang", so it can be a program name with args. | |
5068 | set dummy clang; ac_word=$2 | |
5069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5070 | printf %s "checking for $ac_word... " >&6; } | |
5071 | if test ${ac_cv_prog_ac_ct_CC+y} | |
5072 | then : | |
5073 | printf %s "(cached) " >&6 | |
5074 | else $as_nop | |
5075 | if test -n "$ac_ct_CC"; then | |
5076 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5077 | else | |
5078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5079 | for as_dir in $PATH | |
5080 | do | |
5081 | IFS=$as_save_IFS | |
5082 | case $as_dir in #((( | |
5083 | '') as_dir=./ ;; | |
5084 | */) ;; | |
5085 | *) as_dir=$as_dir/ ;; | |
5086 | esac | |
5087 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5088 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5089 | ac_cv_prog_ac_ct_CC="clang" | |
5090 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5091 | break 2 | |
5092 | fi | |
5093 | done | |
5094 | done | |
5095 | IFS=$as_save_IFS | |
5096 | ||
5097 | fi | |
5098 | fi | |
5099 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5100 | if test -n "$ac_ct_CC"; then | |
5101 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5102 | printf "%s\n" "$ac_ct_CC" >&6; } | |
5103 | else | |
5104 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5105 | printf "%s\n" "no" >&6; } | |
5106 | fi | |
5107 | ||
5108 | if test "x$ac_ct_CC" = x; then | |
5109 | CC="" | |
5110 | else | |
5111 | case $cross_compiling:$ac_tool_warned in | |
5112 | yes:) | |
5113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5114 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5115 | ac_tool_warned=yes ;; | |
5116 | esac | |
5117 | CC=$ac_ct_CC | |
5118 | fi | |
5119 | else | |
5120 | CC="$ac_cv_prog_CC" | |
5121 | fi | |
5122 | ||
5123 | fi | |
5124 | ||
5125 | ||
5126 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5127 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
4683 | 5128 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4684 | 5129 | See \`config.log' for more details" "$LINENO" 5; } |
4685 | 5130 | |
4686 | 5131 | # Provide some information about the compiler. |
4687 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5132 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4688 | 5133 | set X $ac_compile |
4689 | 5134 | ac_compiler=$2 |
4690 | for ac_option in --version -v -V -qversion; do | |
5135 | for ac_option in --version -v -V -qversion -version; do | |
4691 | 5136 | { { ac_try="$ac_compiler $ac_option >&5" |
4692 | 5137 | case "(($ac_try" in |
4693 | 5138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4694 | 5139 | *) ac_try_echo=$ac_try;; |
4695 | 5140 | esac |
4696 | 5141 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4697 | $as_echo "$ac_try_echo"; } >&5 | |
5142 | printf "%s\n" "$ac_try_echo"; } >&5 | |
4698 | 5143 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
4699 | 5144 | ac_status=$? |
4700 | 5145 | if test -s conftest.err; then |
4704 | 5149 | cat conftest.er1 >&5 |
4705 | 5150 | fi |
4706 | 5151 | rm -f conftest.er1 conftest.err |
4707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5152 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4708 | 5153 | test $ac_status = 0; } |
4709 | 5154 | done |
4710 | 5155 | |
4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4712 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4713 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
4714 | $as_echo_n "(cached) " >&6 | |
4715 | else | |
5156 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 | |
5157 | printf %s "checking whether the compiler supports GNU C... " >&6; } | |
5158 | if test ${ac_cv_c_compiler_gnu+y} | |
5159 | then : | |
5160 | printf %s "(cached) " >&6 | |
5161 | else $as_nop | |
4716 | 5162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4717 | 5163 | /* end confdefs.h. */ |
4718 | 5164 | |
4719 | 5165 | int |
4720 | main () | |
5166 | main (void) | |
4721 | 5167 | { |
4722 | 5168 | #ifndef __GNUC__ |
4723 | 5169 | choke me |
4727 | 5173 | return 0; |
4728 | 5174 | } |
4729 | 5175 | _ACEOF |
4730 | if ac_fn_c_try_compile "$LINENO"; then : | |
5176 | if ac_fn_c_try_compile "$LINENO" | |
5177 | then : | |
4731 | 5178 | ac_compiler_gnu=yes |
4732 | else | |
5179 | else $as_nop | |
4733 | 5180 | ac_compiler_gnu=no |
4734 | 5181 | fi |
4735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5182 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4736 | 5183 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4737 | 5184 | |
4738 | 5185 | fi |
4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4740 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5186 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5187 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
5188 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5189 | ||
4741 | 5190 | if test $ac_compiler_gnu = yes; then |
4742 | 5191 | GCC=yes |
4743 | 5192 | else |
4744 | 5193 | GCC= |
4745 | 5194 | fi |
4746 | ac_test_CFLAGS=${CFLAGS+set} | |
5195 | ac_test_CFLAGS=${CFLAGS+y} | |
4747 | 5196 | ac_save_CFLAGS=$CFLAGS |
4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4749 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4750 | if ${ac_cv_prog_cc_g+:} false; then : | |
4751 | $as_echo_n "(cached) " >&6 | |
4752 | else | |
5197 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5198 | printf %s "checking whether $CC accepts -g... " >&6; } | |
5199 | if test ${ac_cv_prog_cc_g+y} | |
5200 | then : | |
5201 | printf %s "(cached) " >&6 | |
5202 | else $as_nop | |
4753 | 5203 | ac_save_c_werror_flag=$ac_c_werror_flag |
4754 | 5204 | ac_c_werror_flag=yes |
4755 | 5205 | ac_cv_prog_cc_g=no |
4758 | 5208 | /* end confdefs.h. */ |
4759 | 5209 | |
4760 | 5210 | int |
4761 | main () | |
5211 | main (void) | |
4762 | 5212 | { |
4763 | 5213 | |
4764 | 5214 | ; |
4765 | 5215 | return 0; |
4766 | 5216 | } |
4767 | 5217 | _ACEOF |
4768 | if ac_fn_c_try_compile "$LINENO"; then : | |
5218 | if ac_fn_c_try_compile "$LINENO" | |
5219 | then : | |
4769 | 5220 | ac_cv_prog_cc_g=yes |
4770 | else | |
5221 | else $as_nop | |
4771 | 5222 | CFLAGS="" |
4772 | 5223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4773 | 5224 | /* end confdefs.h. */ |
4774 | 5225 | |
4775 | 5226 | int |
4776 | main () | |
5227 | main (void) | |
4777 | 5228 | { |
4778 | 5229 | |
4779 | 5230 | ; |
4780 | 5231 | return 0; |
4781 | 5232 | } |
4782 | 5233 | _ACEOF |
4783 | if ac_fn_c_try_compile "$LINENO"; then : | |
4784 | ||
4785 | else | |
5234 | if ac_fn_c_try_compile "$LINENO" | |
5235 | then : | |
5236 | ||
5237 | else $as_nop | |
4786 | 5238 | ac_c_werror_flag=$ac_save_c_werror_flag |
4787 | 5239 | CFLAGS="-g" |
4788 | 5240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4789 | 5241 | /* end confdefs.h. */ |
4790 | 5242 | |
4791 | 5243 | int |
4792 | main () | |
5244 | main (void) | |
4793 | 5245 | { |
4794 | 5246 | |
4795 | 5247 | ; |
4796 | 5248 | return 0; |
4797 | 5249 | } |
4798 | 5250 | _ACEOF |
4799 | if ac_fn_c_try_compile "$LINENO"; then : | |
5251 | if ac_fn_c_try_compile "$LINENO" | |
5252 | then : | |
4800 | 5253 | ac_cv_prog_cc_g=yes |
4801 | 5254 | fi |
4802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4803 | fi | |
4804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4805 | fi | |
4806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5255 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5256 | fi | |
5257 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5258 | fi | |
5259 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4807 | 5260 | ac_c_werror_flag=$ac_save_c_werror_flag |
4808 | 5261 | fi |
4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4810 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4811 | if test "$ac_test_CFLAGS" = set; then | |
5262 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5263 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
5264 | if test $ac_test_CFLAGS; then | |
4812 | 5265 | CFLAGS=$ac_save_CFLAGS |
4813 | 5266 | elif test $ac_cv_prog_cc_g = yes; then |
4814 | 5267 | if test "$GCC" = yes; then |
4823 | 5276 | CFLAGS= |
4824 | 5277 | fi |
4825 | 5278 | fi |
4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4827 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4828 | if ${ac_cv_prog_cc_c89+:} false; then : | |
4829 | $as_echo_n "(cached) " >&6 | |
4830 | else | |
5279 | ac_prog_cc_stdc=no | |
5280 | if test x$ac_prog_cc_stdc = xno | |
5281 | then : | |
5282 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
5283 | printf %s "checking for $CC option to enable C11 features... " >&6; } | |
5284 | if test ${ac_cv_prog_cc_c11+y} | |
5285 | then : | |
5286 | printf %s "(cached) " >&6 | |
5287 | else $as_nop | |
5288 | ac_cv_prog_cc_c11=no | |
5289 | ac_save_CC=$CC | |
5290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5291 | /* end confdefs.h. */ | |
5292 | $ac_c_conftest_c11_program | |
5293 | _ACEOF | |
5294 | for ac_arg in '' -std=gnu11 | |
5295 | do | |
5296 | CC="$ac_save_CC $ac_arg" | |
5297 | if ac_fn_c_try_compile "$LINENO" | |
5298 | then : | |
5299 | ac_cv_prog_cc_c11=$ac_arg | |
5300 | fi | |
5301 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
5302 | test "x$ac_cv_prog_cc_c11" != "xno" && break | |
5303 | done | |
5304 | rm -f conftest.$ac_ext | |
5305 | CC=$ac_save_CC | |
5306 | fi | |
5307 | ||
5308 | if test "x$ac_cv_prog_cc_c11" = xno | |
5309 | then : | |
5310 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5311 | printf "%s\n" "unsupported" >&6; } | |
5312 | else $as_nop | |
5313 | if test "x$ac_cv_prog_cc_c11" = x | |
5314 | then : | |
5315 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5316 | printf "%s\n" "none needed" >&6; } | |
5317 | else $as_nop | |
5318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
5319 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
5320 | CC="$CC $ac_cv_prog_cc_c11" | |
5321 | fi | |
5322 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
5323 | ac_prog_cc_stdc=c11 | |
5324 | fi | |
5325 | fi | |
5326 | if test x$ac_prog_cc_stdc = xno | |
5327 | then : | |
5328 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
5329 | printf %s "checking for $CC option to enable C99 features... " >&6; } | |
5330 | if test ${ac_cv_prog_cc_c99+y} | |
5331 | then : | |
5332 | printf %s "(cached) " >&6 | |
5333 | else $as_nop | |
5334 | ac_cv_prog_cc_c99=no | |
5335 | ac_save_CC=$CC | |
5336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5337 | /* end confdefs.h. */ | |
5338 | $ac_c_conftest_c99_program | |
5339 | _ACEOF | |
5340 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
5341 | do | |
5342 | CC="$ac_save_CC $ac_arg" | |
5343 | if ac_fn_c_try_compile "$LINENO" | |
5344 | then : | |
5345 | ac_cv_prog_cc_c99=$ac_arg | |
5346 | fi | |
5347 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
5348 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5349 | done | |
5350 | rm -f conftest.$ac_ext | |
5351 | CC=$ac_save_CC | |
5352 | fi | |
5353 | ||
5354 | if test "x$ac_cv_prog_cc_c99" = xno | |
5355 | then : | |
5356 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5357 | printf "%s\n" "unsupported" >&6; } | |
5358 | else $as_nop | |
5359 | if test "x$ac_cv_prog_cc_c99" = x | |
5360 | then : | |
5361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5362 | printf "%s\n" "none needed" >&6; } | |
5363 | else $as_nop | |
5364 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5365 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
5366 | CC="$CC $ac_cv_prog_cc_c99" | |
5367 | fi | |
5368 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
5369 | ac_prog_cc_stdc=c99 | |
5370 | fi | |
5371 | fi | |
5372 | if test x$ac_prog_cc_stdc = xno | |
5373 | then : | |
5374 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
5375 | printf %s "checking for $CC option to enable C89 features... " >&6; } | |
5376 | if test ${ac_cv_prog_cc_c89+y} | |
5377 | then : | |
5378 | printf %s "(cached) " >&6 | |
5379 | else $as_nop | |
4831 | 5380 | ac_cv_prog_cc_c89=no |
4832 | 5381 | ac_save_CC=$CC |
4833 | 5382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4834 | 5383 | /* end confdefs.h. */ |
4835 | #include <stdarg.h> | |
4836 | #include <stdio.h> | |
4837 | struct stat; | |
4838 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4839 | struct buf { int x; }; | |
4840 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4841 | static char *e (p, i) | |
4842 | char **p; | |
4843 | int i; | |
4844 | { | |
4845 | return p[i]; | |
4846 | } | |
4847 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4848 | { | |
4849 | char *s; | |
4850 | va_list v; | |
4851 | va_start (v,p); | |
4852 | s = g (p, va_arg (v,int)); | |
4853 | va_end (v); | |
4854 | return s; | |
4855 | } | |
4856 | ||
4857 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4858 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4859 | These don't provoke an error unfortunately, instead are silently treated | |
4860 | as 'x'. The following induces an error, until -std is added to get | |
4861 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4862 | array size at least. It's necessary to write '\x00'==0 to get something | |
4863 | that's true only with -std. */ | |
4864 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4865 | ||
4866 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4867 | inside strings and character constants. */ | |
4868 | #define FOO(x) 'x' | |
4869 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4870 | ||
4871 | int test (int i, double x); | |
4872 | struct s1 {int (*f) (int a);}; | |
4873 | struct s2 {int (*f) (double a);}; | |
4874 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4875 | int argc; | |
4876 | char **argv; | |
4877 | int | |
4878 | main () | |
4879 | { | |
4880 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4881 | ; | |
4882 | return 0; | |
4883 | } | |
5384 | $ac_c_conftest_c89_program | |
4884 | 5385 | _ACEOF |
4885 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4886 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5386 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4887 | 5387 | do |
4888 | 5388 | CC="$ac_save_CC $ac_arg" |
4889 | if ac_fn_c_try_compile "$LINENO"; then : | |
5389 | if ac_fn_c_try_compile "$LINENO" | |
5390 | then : | |
4890 | 5391 | ac_cv_prog_cc_c89=$ac_arg |
4891 | 5392 | fi |
4892 | rm -f core conftest.err conftest.$ac_objext | |
5393 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4893 | 5394 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
4894 | 5395 | done |
4895 | 5396 | rm -f conftest.$ac_ext |
4896 | 5397 | CC=$ac_save_CC |
4897 | ||
4898 | fi | |
4899 | # AC_CACHE_VAL | |
4900 | case "x$ac_cv_prog_cc_c89" in | |
4901 | x) | |
4902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4903 | $as_echo "none needed" >&6; } ;; | |
4904 | xno) | |
4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4906 | $as_echo "unsupported" >&6; } ;; | |
4907 | *) | |
4908 | CC="$CC $ac_cv_prog_cc_c89" | |
4909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4910 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4911 | esac | |
4912 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4913 | ||
5398 | fi | |
5399 | ||
5400 | if test "x$ac_cv_prog_cc_c89" = xno | |
5401 | then : | |
5402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5403 | printf "%s\n" "unsupported" >&6; } | |
5404 | else $as_nop | |
5405 | if test "x$ac_cv_prog_cc_c89" = x | |
5406 | then : | |
5407 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5408 | printf "%s\n" "none needed" >&6; } | |
5409 | else $as_nop | |
5410 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5411 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | |
5412 | CC="$CC $ac_cv_prog_cc_c89" | |
5413 | fi | |
5414 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
5415 | ac_prog_cc_stdc=c89 | |
5416 | fi | |
4914 | 5417 | fi |
4915 | 5418 | |
4916 | 5419 | ac_ext=c |
4919 | 5422 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4920 | 5423 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4921 | 5424 | |
4922 | ac_ext=c | |
5425 | ||
5426 | ac_ext=c | |
4923 | 5427 | ac_cpp='$CPP $CPPFLAGS' |
4924 | 5428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4925 | 5429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4926 | 5430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4928 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4929 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4930 | $as_echo_n "(cached) " >&6 | |
4931 | else | |
5431 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5432 | printf %s "checking whether $CC understands -c and -o together... " >&6; } | |
5433 | if test ${am_cv_prog_cc_c_o+y} | |
5434 | then : | |
5435 | printf %s "(cached) " >&6 | |
5436 | else $as_nop | |
4932 | 5437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4933 | 5438 | /* end confdefs.h. */ |
4934 | 5439 | |
4935 | 5440 | int |
4936 | main () | |
5441 | main (void) | |
4937 | 5442 | { |
4938 | 5443 | |
4939 | 5444 | ; |
4961 | 5466 | rm -f core conftest* |
4962 | 5467 | unset am_i |
4963 | 5468 | fi |
4964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4965 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5469 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5470 | printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } | |
4966 | 5471 | if test "$am_cv_prog_cc_c_o" != yes; then |
4967 | 5472 | # Losing compiler, so override with the script. |
4968 | 5473 | # FIXME: It is wrong to rewrite CC. |
4980 | 5485 | |
4981 | 5486 | depcc="$CC" am_compiler_list= |
4982 | 5487 | |
4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4984 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4985 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4986 | $as_echo_n "(cached) " >&6 | |
4987 | else | |
5488 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5489 | printf %s "checking dependency style of $depcc... " >&6; } | |
5490 | if test ${am_cv_CC_dependencies_compiler_type+y} | |
5491 | then : | |
5492 | printf %s "(cached) " >&6 | |
5493 | else $as_nop | |
4988 | 5494 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4989 | 5495 | # We make a subdir and do the tests there. Otherwise we can end up |
4990 | 5496 | # making bogus files that we don't know about and never remove. For |
5091 | 5597 | fi |
5092 | 5598 | |
5093 | 5599 | fi |
5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5095 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5600 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5601 | printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5096 | 5602 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
5097 | 5603 | |
5098 | 5604 | if |
5106 | 5612 | fi |
5107 | 5613 | |
5108 | 5614 | |
5109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5110 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5615 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5616 | printf %s "checking whether ln -s works... " >&6; } | |
5111 | 5617 | LN_S=$as_ln_s |
5112 | 5618 | if test "$LN_S" = "ln -s"; then |
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5114 | $as_echo "yes" >&6; } | |
5619 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5620 | printf "%s\n" "yes" >&6; } | |
5115 | 5621 | else |
5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5117 | $as_echo "no, using $LN_S" >&6; } | |
5622 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5623 | printf "%s\n" "no, using $LN_S" >&6; } | |
5118 | 5624 | fi |
5119 | 5625 | |
5120 | 5626 | |
5121 | 5627 | # Check whether --enable-largefile was given. |
5122 | if test "${enable_largefile+set}" = set; then : | |
5628 | if test ${enable_largefile+y} | |
5629 | then : | |
5123 | 5630 | enableval=$enable_largefile; |
5124 | 5631 | fi |
5125 | 5632 | |
5126 | 5633 | if test "$enable_largefile" != no; then |
5127 | 5634 | |
5128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
5129 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
5130 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
5131 | $as_echo_n "(cached) " >&6 | |
5132 | else | |
5635 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
5636 | printf %s "checking for special C compiler options needed for large files... " >&6; } | |
5637 | if test ${ac_cv_sys_largefile_CC+y} | |
5638 | then : | |
5639 | printf %s "(cached) " >&6 | |
5640 | else $as_nop | |
5133 | 5641 | ac_cv_sys_largefile_CC=no |
5134 | 5642 | if test "$GCC" != yes; then |
5135 | 5643 | ac_save_CC=$CC |
5143 | 5651 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
5144 | 5652 | since some C++ compilers masquerading as C compilers |
5145 | 5653 | incorrectly reject 9223372036854775807. */ |
5146 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) | |
5654 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | |
5147 | 5655 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
5148 | 5656 | && LARGE_OFF_T % 2147483647 == 1) |
5149 | 5657 | ? 1 : -1]; |
5150 | 5658 | int |
5151 | main () | |
5659 | main (void) | |
5152 | 5660 | { |
5153 | 5661 | |
5154 | 5662 | ; |
5155 | 5663 | return 0; |
5156 | 5664 | } |
5157 | 5665 | _ACEOF |
5158 | if ac_fn_c_try_compile "$LINENO"; then : | |
5666 | if ac_fn_c_try_compile "$LINENO" | |
5667 | then : | |
5159 | 5668 | break |
5160 | 5669 | fi |
5161 | rm -f core conftest.err conftest.$ac_objext | |
5670 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
5162 | 5671 | CC="$CC -n32" |
5163 | if ac_fn_c_try_compile "$LINENO"; then : | |
5672 | if ac_fn_c_try_compile "$LINENO" | |
5673 | then : | |
5164 | 5674 | ac_cv_sys_largefile_CC=' -n32'; break |
5165 | 5675 | fi |
5166 | rm -f core conftest.err conftest.$ac_objext | |
5676 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
5167 | 5677 | break |
5168 | 5678 | done |
5169 | 5679 | CC=$ac_save_CC |
5170 | 5680 | rm -f conftest.$ac_ext |
5171 | 5681 | fi |
5172 | 5682 | fi |
5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
5174 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
5683 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
5684 | printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } | |
5175 | 5685 | if test "$ac_cv_sys_largefile_CC" != no; then |
5176 | 5686 | CC=$CC$ac_cv_sys_largefile_CC |
5177 | 5687 | fi |
5178 | 5688 | |
5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
5180 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
5181 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
5182 | $as_echo_n "(cached) " >&6 | |
5183 | else | |
5689 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
5690 | printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
5691 | if test ${ac_cv_sys_file_offset_bits+y} | |
5692 | then : | |
5693 | printf %s "(cached) " >&6 | |
5694 | else $as_nop | |
5184 | 5695 | while :; do |
5185 | 5696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5186 | 5697 | /* end confdefs.h. */ |
5189 | 5700 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
5190 | 5701 | since some C++ compilers masquerading as C compilers |
5191 | 5702 | incorrectly reject 9223372036854775807. */ |
5192 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) | |
5703 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | |
5193 | 5704 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
5194 | 5705 | && LARGE_OFF_T % 2147483647 == 1) |
5195 | 5706 | ? 1 : -1]; |
5196 | 5707 | int |
5197 | main () | |
5708 | main (void) | |
5198 | 5709 | { |
5199 | 5710 | |
5200 | 5711 | ; |
5201 | 5712 | return 0; |
5202 | 5713 | } |
5203 | 5714 | _ACEOF |
5204 | if ac_fn_c_try_compile "$LINENO"; then : | |
5715 | if ac_fn_c_try_compile "$LINENO" | |
5716 | then : | |
5205 | 5717 | ac_cv_sys_file_offset_bits=no; break |
5206 | 5718 | fi |
5207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5719 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5208 | 5720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5209 | 5721 | /* end confdefs.h. */ |
5210 | 5722 | #define _FILE_OFFSET_BITS 64 |
5213 | 5725 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
5214 | 5726 | since some C++ compilers masquerading as C compilers |
5215 | 5727 | incorrectly reject 9223372036854775807. */ |
5216 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) | |
5728 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | |
5217 | 5729 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
5218 | 5730 | && LARGE_OFF_T % 2147483647 == 1) |
5219 | 5731 | ? 1 : -1]; |
5220 | 5732 | int |
5221 | main () | |
5733 | main (void) | |
5222 | 5734 | { |
5223 | 5735 | |
5224 | 5736 | ; |
5225 | 5737 | return 0; |
5226 | 5738 | } |
5227 | 5739 | _ACEOF |
5228 | if ac_fn_c_try_compile "$LINENO"; then : | |
5740 | if ac_fn_c_try_compile "$LINENO" | |
5741 | then : | |
5229 | 5742 | ac_cv_sys_file_offset_bits=64; break |
5230 | 5743 | fi |
5231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5744 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5232 | 5745 | ac_cv_sys_file_offset_bits=unknown |
5233 | 5746 | break |
5234 | 5747 | done |
5235 | 5748 | fi |
5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
5237 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
5749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
5750 | printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } | |
5238 | 5751 | case $ac_cv_sys_file_offset_bits in #( |
5239 | 5752 | no | unknown) ;; |
5240 | 5753 | *) |
5241 | cat >>confdefs.h <<_ACEOF | |
5242 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
5243 | _ACEOF | |
5754 | printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h | |
5244 | 5755 | ;; |
5245 | 5756 | esac |
5246 | 5757 | rm -rf conftest* |
5247 | 5758 | if test $ac_cv_sys_file_offset_bits = unknown; then |
5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
5249 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
5250 | if ${ac_cv_sys_large_files+:} false; then : | |
5251 | $as_echo_n "(cached) " >&6 | |
5252 | else | |
5759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
5760 | printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } | |
5761 | if test ${ac_cv_sys_large_files+y} | |
5762 | then : | |
5763 | printf %s "(cached) " >&6 | |
5764 | else $as_nop | |
5253 | 5765 | while :; do |
5254 | 5766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5255 | 5767 | /* end confdefs.h. */ |
5258 | 5770 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
5259 | 5771 | since some C++ compilers masquerading as C compilers |
5260 | 5772 | incorrectly reject 9223372036854775807. */ |
5261 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) | |
5773 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | |
5262 | 5774 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
5263 | 5775 | && LARGE_OFF_T % 2147483647 == 1) |
5264 | 5776 | ? 1 : -1]; |
5265 | 5777 | int |
5266 | main () | |
5778 | main (void) | |
5267 | 5779 | { |
5268 | 5780 | |
5269 | 5781 | ; |
5270 | 5782 | return 0; |
5271 | 5783 | } |
5272 | 5784 | _ACEOF |
5273 | if ac_fn_c_try_compile "$LINENO"; then : | |
5785 | if ac_fn_c_try_compile "$LINENO" | |
5786 | then : | |
5274 | 5787 | ac_cv_sys_large_files=no; break |
5275 | 5788 | fi |
5276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5789 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5277 | 5790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5278 | 5791 | /* end confdefs.h. */ |
5279 | 5792 | #define _LARGE_FILES 1 |
5282 | 5795 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
5283 | 5796 | since some C++ compilers masquerading as C compilers |
5284 | 5797 | incorrectly reject 9223372036854775807. */ |
5285 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) | |
5798 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | |
5286 | 5799 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
5287 | 5800 | && LARGE_OFF_T % 2147483647 == 1) |
5288 | 5801 | ? 1 : -1]; |
5289 | 5802 | int |
5290 | main () | |
5803 | main (void) | |
5291 | 5804 | { |
5292 | 5805 | |
5293 | 5806 | ; |
5294 | 5807 | return 0; |
5295 | 5808 | } |
5296 | 5809 | _ACEOF |
5297 | if ac_fn_c_try_compile "$LINENO"; then : | |
5810 | if ac_fn_c_try_compile "$LINENO" | |
5811 | then : | |
5298 | 5812 | ac_cv_sys_large_files=1; break |
5299 | 5813 | fi |
5300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5814 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5301 | 5815 | ac_cv_sys_large_files=unknown |
5302 | 5816 | break |
5303 | 5817 | done |
5304 | 5818 | fi |
5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
5306 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
5819 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
5820 | printf "%s\n" "$ac_cv_sys_large_files" >&6; } | |
5307 | 5821 | case $ac_cv_sys_large_files in #( |
5308 | 5822 | no | unknown) ;; |
5309 | 5823 | *) |
5310 | cat >>confdefs.h <<_ACEOF | |
5311 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5312 | _ACEOF | |
5824 | printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h | |
5313 | 5825 | ;; |
5314 | 5826 | esac |
5315 | 5827 | rm -rf conftest* |
5316 | 5828 | fi |
5317 | ||
5318 | ||
5319 | fi | |
5320 | ||
5321 | ||
5322 | for ac_header in \ | |
5323 | err.h \ | |
5324 | linux/fd.h \ | |
5325 | linux/hdreg.h \ | |
5326 | linux/version.h \ | |
5327 | linux/loop.h \ | |
5328 | sys/disk.h \ | |
5329 | sys/disklabel.h \ | |
5330 | sys/ioccom.h \ | |
5331 | sys/mkdev.h \ | |
5332 | sys/queue.h \ | |
5333 | ||
5334 | do : | |
5335 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5336 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5337 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5338 | cat >>confdefs.h <<_ACEOF | |
5339 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5829 | fi | |
5830 | ||
5831 | ||
5832 | ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default" | |
5833 | if test "x$ac_cv_header_err_h" = xyes | |
5834 | then : | |
5835 | printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h | |
5836 | ||
5837 | fi | |
5838 | ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default" | |
5839 | if test "x$ac_cv_header_linux_fd_h" = xyes | |
5840 | then : | |
5841 | printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h | |
5842 | ||
5843 | fi | |
5844 | ac_fn_c_check_header_compile "$LINENO" "linux/hdreg.h" "ac_cv_header_linux_hdreg_h" "$ac_includes_default" | |
5845 | if test "x$ac_cv_header_linux_hdreg_h" = xyes | |
5846 | then : | |
5847 | printf "%s\n" "#define HAVE_LINUX_HDREG_H 1" >>confdefs.h | |
5848 | ||
5849 | fi | |
5850 | ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default" | |
5851 | if test "x$ac_cv_header_linux_version_h" = xyes | |
5852 | then : | |
5853 | printf "%s\n" "#define HAVE_LINUX_VERSION_H 1" >>confdefs.h | |
5854 | ||
5855 | fi | |
5856 | ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default" | |
5857 | if test "x$ac_cv_header_linux_loop_h" = xyes | |
5858 | then : | |
5859 | printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h | |
5860 | ||
5861 | fi | |
5862 | ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default" | |
5863 | if test "x$ac_cv_header_sys_disk_h" = xyes | |
5864 | then : | |
5865 | printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h | |
5866 | ||
5867 | fi | |
5868 | ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default" | |
5869 | if test "x$ac_cv_header_sys_disklabel_h" = xyes | |
5870 | then : | |
5871 | printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h | |
5872 | ||
5873 | fi | |
5874 | ac_fn_c_check_header_compile "$LINENO" "sys/ioccom.h" "ac_cv_header_sys_ioccom_h" "$ac_includes_default" | |
5875 | if test "x$ac_cv_header_sys_ioccom_h" = xyes | |
5876 | then : | |
5877 | printf "%s\n" "#define HAVE_SYS_IOCCOM_H 1" >>confdefs.h | |
5878 | ||
5879 | fi | |
5880 | ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | |
5881 | if test "x$ac_cv_header_sys_mkdev_h" = xyes | |
5882 | then : | |
5883 | printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h | |
5884 | ||
5885 | fi | |
5886 | ac_fn_c_check_header_compile "$LINENO" "sys/queue.h" "ac_cv_header_sys_queue_h" "$ac_includes_default" | |
5887 | if test "x$ac_cv_header_sys_queue_h" = xyes | |
5888 | then : | |
5889 | printf "%s\n" "#define HAVE_SYS_QUEUE_H 1" >>confdefs.h | |
5890 | ||
5891 | fi | |
5892 | ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
5893 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes | |
5894 | then : | |
5895 | printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h | |
5896 | ||
5897 | fi | |
5898 | ||
5899 | ||
5900 | ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" | |
5901 | if test "x$ac_cv_header_endian_h" = xyes | |
5902 | then : | |
5903 | printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h | |
5904 | ||
5905 | fi | |
5906 | ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" | |
5907 | if test "x$ac_cv_header_sys_endian_h" = xyes | |
5908 | then : | |
5909 | printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h | |
5910 | ||
5911 | fi | |
5912 | ac_fn_c_check_header_compile "$LINENO" "libkern/OSByteOrder.h" "ac_cv_header_libkern_OSByteOrder_h" "$ac_includes_default" | |
5913 | if test "x$ac_cv_header_libkern_OSByteOrder_h" = xyes | |
5914 | then : | |
5915 | printf "%s\n" "#define HAVE_LIBKERN_OSBYTEORDER_H 1" >>confdefs.h | |
5916 | ||
5917 | fi | |
5918 | ||
5919 | ||
5920 | ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" | |
5921 | if test "x$ac_cv_func_vasprintf" = xyes | |
5922 | then : | |
5923 | printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h | |
5924 | ||
5925 | fi | |
5926 | ||
5927 | ||
5928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 | |
5929 | printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } | |
5930 | if test ${ac_cv_c_undeclared_builtin_options+y} | |
5931 | then : | |
5932 | printf %s "(cached) " >&6 | |
5933 | else $as_nop | |
5934 | ac_save_CFLAGS=$CFLAGS | |
5935 | ac_cv_c_undeclared_builtin_options='cannot detect' | |
5936 | for ac_arg in '' -fno-builtin; do | |
5937 | CFLAGS="$ac_save_CFLAGS $ac_arg" | |
5938 | # This test program should *not* compile successfully. | |
5939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5940 | /* end confdefs.h. */ | |
5941 | ||
5942 | int | |
5943 | main (void) | |
5944 | { | |
5945 | (void) strchr; | |
5946 | ; | |
5947 | return 0; | |
5948 | } | |
5340 | 5949 | _ACEOF |
5341 | ||
5342 | fi | |
5343 | ||
5344 | done | |
5345 | ||
5346 | ||
5347 | for ac_header in endian.h sys/endian.h libkern/OSByteOrder.h | |
5348 | do : | |
5349 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5350 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5351 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5352 | cat >>confdefs.h <<_ACEOF | |
5353 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5950 | if ac_fn_c_try_compile "$LINENO" | |
5951 | then : | |
5952 | ||
5953 | else $as_nop | |
5954 | # This test program should compile successfully. | |
5955 | # No library function is consistently available on | |
5956 | # freestanding implementations, so test against a dummy | |
5957 | # declaration. Include always-available headers on the | |
5958 | # off chance that they somehow elicit warnings. | |
5959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5960 | /* end confdefs.h. */ | |
5961 | #include <float.h> | |
5962 | #include <limits.h> | |
5963 | #include <stdarg.h> | |
5964 | #include <stddef.h> | |
5965 | extern void ac_decl (int, char *); | |
5966 | ||
5967 | int | |
5968 | main (void) | |
5969 | { | |
5970 | (void) ac_decl (0, (char *) 0); | |
5971 | (void) ac_decl; | |
5972 | ||
5973 | ; | |
5974 | return 0; | |
5975 | } | |
5354 | 5976 | _ACEOF |
5355 | ||
5356 | fi | |
5357 | ||
5358 | done | |
5359 | ||
5360 | ||
5361 | for ac_func in vasprintf | |
5362 | do : | |
5363 | ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" | |
5364 | if test "x$ac_cv_func_vasprintf" = xyes; then : | |
5365 | cat >>confdefs.h <<_ACEOF | |
5366 | #define HAVE_VASPRINTF 1 | |
5367 | _ACEOF | |
5368 | ||
5369 | fi | |
5370 | done | |
5371 | ||
5372 | ||
5373 | ac_fn_c_check_decl "$LINENO" "getmntent" "ac_cv_have_decl_getmntent" "#include <mntent.h> | |
5374 | " | |
5375 | if test "x$ac_cv_have_decl_getmntent" = xyes; then : | |
5977 | if ac_fn_c_try_compile "$LINENO" | |
5978 | then : | |
5979 | if test x"$ac_arg" = x | |
5980 | then : | |
5981 | ac_cv_c_undeclared_builtin_options='none needed' | |
5982 | else $as_nop | |
5983 | ac_cv_c_undeclared_builtin_options=$ac_arg | |
5984 | fi | |
5985 | break | |
5986 | fi | |
5987 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5988 | fi | |
5989 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5990 | done | |
5991 | CFLAGS=$ac_save_CFLAGS | |
5992 | ||
5993 | fi | |
5994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 | |
5995 | printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } | |
5996 | case $ac_cv_c_undeclared_builtin_options in #( | |
5997 | 'cannot detect') : | |
5998 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5999 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
6000 | as_fn_error $? "cannot make $CC report undeclared builtins | |
6001 | See \`config.log' for more details" "$LINENO" 5; } ;; #( | |
6002 | 'none needed') : | |
6003 | ac_c_undeclared_builtin_options='' ;; #( | |
6004 | *) : | |
6005 | ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; | |
6006 | esac | |
6007 | ||
6008 | ac_fn_check_decl "$LINENO" "getmntent" "ac_cv_have_decl_getmntent" "#include <mntent.h> | |
6009 | " "$ac_c_undeclared_builtin_options" "CFLAGS" | |
6010 | if test "x$ac_cv_have_decl_getmntent" = xyes | |
6011 | then : | |
5376 | 6012 | ac_have_decl=1 |
5377 | else | |
6013 | else $as_nop | |
5378 | 6014 | ac_have_decl=0 |
5379 | 6015 | fi |
5380 | ||
5381 | cat >>confdefs.h <<_ACEOF | |
5382 | #define HAVE_DECL_GETMNTENT $ac_have_decl | |
5383 | _ACEOF | |
5384 | ||
5385 | ac_fn_c_check_decl "$LINENO" "getmntinfo" "ac_cv_have_decl_getmntinfo" "#include <sys/mount.h> | |
5386 | " | |
5387 | if test "x$ac_cv_have_decl_getmntinfo" = xyes; then : | |
6016 | printf "%s\n" "#define HAVE_DECL_GETMNTENT $ac_have_decl" >>confdefs.h | |
6017 | ||
6018 | ac_fn_check_decl "$LINENO" "getmntinfo" "ac_cv_have_decl_getmntinfo" "#include <sys/mount.h> | |
6019 | " "$ac_c_undeclared_builtin_options" "CFLAGS" | |
6020 | if test "x$ac_cv_have_decl_getmntinfo" = xyes | |
6021 | then : | |
5388 | 6022 | ac_have_decl=1 |
5389 | else | |
6023 | else $as_nop | |
5390 | 6024 | ac_have_decl=0 |
5391 | 6025 | fi |
5392 | ||
5393 | cat >>confdefs.h <<_ACEOF | |
5394 | #define HAVE_DECL_GETMNTINFO $ac_have_decl | |
5395 | _ACEOF | |
6026 | printf "%s\n" "#define HAVE_DECL_GETMNTINFO $ac_have_decl" >>confdefs.h | |
5396 | 6027 | |
5397 | 6028 | |
5398 | 6029 | # optional iconv support |
5399 | 6030 | |
5400 | 6031 | # Check whether --with-iconv was given. |
5401 | if test "${with_iconv+set}" = set; then : | |
6032 | if test ${with_iconv+y} | |
6033 | then : | |
5402 | 6034 | withval=$with_iconv; |
5403 | 6035 | fi |
5404 | 6036 | |
5405 | 6037 | if test "x$with_iconv" != "xno"; then |
5406 | # Make sure we can run config.sub. | |
5407 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5408 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
5409 | ||
5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
5411 | $as_echo_n "checking build system type... " >&6; } | |
5412 | if ${ac_cv_build+:} false; then : | |
5413 | $as_echo_n "(cached) " >&6 | |
5414 | else | |
6038 | ||
6039 | ||
6040 | # Make sure we can run config.sub. | |
6041 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || | |
6042 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 | |
6043 | ||
6044 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
6045 | printf %s "checking build system type... " >&6; } | |
6046 | if test ${ac_cv_build+y} | |
6047 | then : | |
6048 | printf %s "(cached) " >&6 | |
6049 | else $as_nop | |
5415 | 6050 | ac_build_alias=$build_alias |
5416 | 6051 | test "x$ac_build_alias" = x && |
5417 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
6052 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` | |
5418 | 6053 | test "x$ac_build_alias" = x && |
5419 | 6054 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5420 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5421 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
5422 | ||
5423 | fi | |
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5425 | $as_echo "$ac_cv_build" >&6; } | |
6055 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || | |
6056 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 | |
6057 | ||
6058 | fi | |
6059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
6060 | printf "%s\n" "$ac_cv_build" >&6; } | |
5426 | 6061 | case $ac_cv_build in |
5427 | 6062 | *-*-*) ;; |
5428 | 6063 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5441 | 6076 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
5442 | 6077 | |
5443 | 6078 | |
5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
5445 | $as_echo_n "checking host system type... " >&6; } | |
5446 | if ${ac_cv_host+:} false; then : | |
5447 | $as_echo_n "(cached) " >&6 | |
5448 | else | |
6079 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
6080 | printf %s "checking host system type... " >&6; } | |
6081 | if test ${ac_cv_host+y} | |
6082 | then : | |
6083 | printf %s "(cached) " >&6 | |
6084 | else $as_nop | |
5449 | 6085 | if test "x$host_alias" = x; then |
5450 | 6086 | ac_cv_host=$ac_cv_build |
5451 | 6087 | else |
5452 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5453 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
5454 | fi | |
5455 | ||
5456 | fi | |
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5458 | $as_echo "$ac_cv_host" >&6; } | |
6088 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || | |
6089 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 | |
6090 | fi | |
6091 | ||
6092 | fi | |
6093 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
6094 | printf "%s\n" "$ac_cv_host" >&6; } | |
5459 | 6095 | case $ac_cv_host in |
5460 | 6096 | *-*-*) ;; |
5461 | 6097 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5493 | 6129 | |
5494 | 6130 | |
5495 | 6131 | # Check whether --with-gnu-ld was given. |
5496 | if test "${with_gnu_ld+set}" = set; then : | |
6132 | if test ${with_gnu_ld+y} | |
6133 | then : | |
5497 | 6134 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
5498 | else | |
6135 | else $as_nop | |
5499 | 6136 | with_gnu_ld=no |
5500 | 6137 | fi |
5501 | 6138 | |
5512 | 6149 | } |
5513 | 6150 | fi |
5514 | 6151 | |
5515 | ac_prog=ld | |
5516 | if test "$GCC" = yes; then | |
5517 | # Check if gcc -print-prog-name=ld gives a path. | |
5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5519 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5520 | case $host in | |
5521 | *-*-mingw*) | |
5522 | # gcc leaves a trailing carriage return which upsets mingw | |
5523 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5524 | *) | |
5525 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5526 | esac | |
5527 | case $ac_prog in | |
5528 | # Accept absolute paths. | |
5529 | [\\/]* | ?:[\\/]*) | |
5530 | re_direlt='/[^/][^/]*/\.\./' | |
5531 | # Canonicalize the pathname of ld | |
5532 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` | |
5533 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do | |
5534 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
5535 | done | |
5536 | test -z "$LD" && LD="$ac_prog" | |
5537 | ;; | |
5538 | "") | |
5539 | # If it fails, then pretend we aren't using GCC. | |
5540 | ac_prog=ld | |
5541 | ;; | |
5542 | *) | |
5543 | # If it is relative, then search for the first ld in PATH. | |
5544 | with_gnu_ld=unknown | |
5545 | ;; | |
5546 | esac | |
6152 | if test -n "$LD"; then | |
6153 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 | |
6154 | printf %s "checking for ld... " >&6; } | |
6155 | elif test "$GCC" = yes; then | |
6156 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
6157 | printf %s "checking for ld used by $CC... " >&6; } | |
5547 | 6158 | elif test "$with_gnu_ld" = yes; then |
5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5549 | $as_echo_n "checking for GNU ld... " >&6; } | |
6159 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
6160 | printf %s "checking for GNU ld... " >&6; } | |
5550 | 6161 | else |
5551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5552 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5553 | fi | |
5554 | if ${acl_cv_path_LD+:} false; then : | |
5555 | $as_echo_n "(cached) " >&6 | |
6162 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
6163 | printf %s "checking for non-GNU ld... " >&6; } | |
6164 | fi | |
6165 | if test -n "$LD"; then | |
6166 | # Let the user override the test with a path. | |
6167 | : | |
5556 | 6168 | else |
5557 | if test -z "$LD"; then | |
5558 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5559 | for ac_dir in $PATH; do | |
5560 | IFS="$acl_save_ifs" | |
5561 | test -z "$ac_dir" && ac_dir=. | |
5562 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5563 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
5564 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5565 | # but apparently some variants of GNU ld only accept -v. | |
5566 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5567 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in | |
5568 | *GNU* | *'with BFD'*) | |
5569 | test "$with_gnu_ld" != no && break | |
5570 | ;; | |
5571 | *) | |
5572 | test "$with_gnu_ld" != yes && break | |
5573 | ;; | |
6169 | if test ${acl_cv_path_LD+y} | |
6170 | then : | |
6171 | printf %s "(cached) " >&6 | |
6172 | else $as_nop | |
6173 | ||
6174 | acl_cv_path_LD= # Final result of this test | |
6175 | ac_prog=ld # Program to search in $PATH | |
6176 | if test "$GCC" = yes; then | |
6177 | # Check if gcc -print-prog-name=ld gives a path. | |
6178 | case $host in | |
6179 | *-*-mingw*) | |
6180 | # gcc leaves a trailing carriage return which upsets mingw | |
6181 | acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6182 | *) | |
6183 | acl_output=`($CC -print-prog-name=ld) 2>&5` ;; | |
6184 | esac | |
6185 | case $acl_output in | |
6186 | # Accept absolute paths. | |
6187 | [\\/]* | ?:[\\/]*) | |
6188 | re_direlt='/[^/][^/]*/\.\./' | |
6189 | # Canonicalize the pathname of ld | |
6190 | acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` | |
6191 | while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do | |
6192 | acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` | |
6193 | done | |
6194 | # Got the pathname. No search in PATH is needed. | |
6195 | acl_cv_path_LD="$acl_output" | |
6196 | ac_prog= | |
6197 | ;; | |
6198 | "") | |
6199 | # If it fails, then pretend we aren't using GCC. | |
6200 | ;; | |
6201 | *) | |
6202 | # If it is relative, then search for the first ld in PATH. | |
6203 | with_gnu_ld=unknown | |
6204 | ;; | |
5574 | 6205 | esac |
5575 | 6206 | fi |
5576 | done | |
5577 | IFS="$acl_save_ifs" | |
6207 | if test -n "$ac_prog"; then | |
6208 | # Search for $ac_prog in $PATH. | |
6209 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6210 | for ac_dir in $PATH; do | |
6211 | IFS="$acl_save_ifs" | |
6212 | test -z "$ac_dir" && ac_dir=. | |
6213 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6214 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
6215 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6216 | # but apparently some variants of GNU ld only accept -v. | |
6217 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6218 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in | |
6219 | *GNU* | *'with BFD'*) | |
6220 | test "$with_gnu_ld" != no && break | |
6221 | ;; | |
6222 | *) | |
6223 | test "$with_gnu_ld" != yes && break | |
6224 | ;; | |
6225 | esac | |
6226 | fi | |
6227 | done | |
6228 | IFS="$acl_save_ifs" | |
6229 | fi | |
6230 | case $host in | |
6231 | *-*-aix*) | |
6232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6233 | /* end confdefs.h. */ | |
6234 | #if defined __powerpc64__ || defined _ARCH_PPC64 | |
6235 | int ok; | |
6236 | #else | |
6237 | error fail | |
6238 | #endif | |
6239 | ||
6240 | _ACEOF | |
6241 | if ac_fn_c_try_compile "$LINENO" | |
6242 | then : | |
6243 | # The compiler produces 64-bit code. Add option '-b64' so that the | |
6244 | # linker groks 64-bit object files. | |
6245 | case "$acl_cv_path_LD " in | |
6246 | *" -b64 "*) ;; | |
6247 | *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;; | |
6248 | esac | |
6249 | ||
6250 | fi | |
6251 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6252 | ;; | |
6253 | sparc64-*-netbsd*) | |
6254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6255 | /* end confdefs.h. */ | |
6256 | #if defined __sparcv9 || defined __arch64__ | |
6257 | int ok; | |
6258 | #else | |
6259 | error fail | |
6260 | #endif | |
6261 | ||
6262 | _ACEOF | |
6263 | if ac_fn_c_try_compile "$LINENO" | |
6264 | then : | |
6265 | ||
6266 | else $as_nop | |
6267 | # The compiler produces 32-bit code. Add option '-m elf32_sparc' | |
6268 | # so that the linker groks 32-bit object files. | |
6269 | case "$acl_cv_path_LD " in | |
6270 | *" -m elf32_sparc "*) ;; | |
6271 | *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;; | |
6272 | esac | |
6273 | ||
6274 | fi | |
6275 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6276 | ;; | |
6277 | esac | |
6278 | ||
6279 | fi | |
6280 | ||
6281 | LD="$acl_cv_path_LD" | |
6282 | fi | |
6283 | if test -n "$LD"; then | |
6284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6285 | printf "%s\n" "$LD" >&6; } | |
5578 | 6286 | else |
5579 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
5580 | fi | |
5581 | fi | |
5582 | ||
5583 | LD="$acl_cv_path_LD" | |
5584 | if test -n "$LD"; then | |
5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5586 | $as_echo "$LD" >&6; } | |
5587 | else | |
5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5589 | $as_echo "no" >&6; } | |
5590 | fi | |
5591 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5593 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5594 | if ${acl_cv_prog_gnu_ld+:} false; then : | |
5595 | $as_echo_n "(cached) " >&6 | |
5596 | else | |
6287 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6288 | printf "%s\n" "no" >&6; } | |
6289 | as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
6290 | fi | |
6291 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
6292 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; } | |
6293 | if test ${acl_cv_prog_gnu_ld+y} | |
6294 | then : | |
6295 | printf %s "(cached) " >&6 | |
6296 | else $as_nop | |
5597 | 6297 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5598 | 6298 | case `$LD -v 2>&1 </dev/null` in |
5599 | 6299 | *GNU* | *'with BFD'*) |
5604 | 6304 | ;; |
5605 | 6305 | esac |
5606 | 6306 | fi |
5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
5608 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
6307 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
6308 | printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } | |
5609 | 6309 | with_gnu_ld=$acl_cv_prog_gnu_ld |
5610 | 6310 | |
5611 | 6311 | |
5612 | 6312 | |
5613 | 6313 | |
5614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
5615 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
5616 | if ${acl_cv_rpath+:} false; then : | |
5617 | $as_echo_n "(cached) " >&6 | |
5618 | else | |
6314 | ||
6315 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
6316 | printf %s "checking for shared library run path origin... " >&6; } | |
6317 | if test ${acl_cv_rpath+y} | |
6318 | then : | |
6319 | printf %s "(cached) " >&6 | |
6320 | else $as_nop | |
5619 | 6321 | |
5620 | 6322 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
5621 | 6323 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
5624 | 6326 | acl_cv_rpath=done |
5625 | 6327 | |
5626 | 6328 | fi |
5627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
5628 | $as_echo "$acl_cv_rpath" >&6; } | |
6329 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
6330 | printf "%s\n" "$acl_cv_rpath" >&6; } | |
5629 | 6331 | wl="$acl_cv_wl" |
5630 | 6332 | acl_libext="$acl_cv_libext" |
5631 | 6333 | acl_shlibext="$acl_cv_shlibext" |
5636 | 6338 | acl_hardcode_direct="$acl_cv_hardcode_direct" |
5637 | 6339 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" |
5638 | 6340 | # Check whether --enable-rpath was given. |
5639 | if test "${enable_rpath+set}" = set; then : | |
6341 | if test ${enable_rpath+y} | |
6342 | then : | |
5640 | 6343 | enableval=$enable_rpath; : |
5641 | else | |
6344 | else $as_nop | |
5642 | 6345 | enable_rpath=yes |
5643 | 6346 | fi |
5644 | 6347 | |
5645 | 6348 | |
5646 | 6349 | |
5647 | 6350 | |
5648 | acl_libdirstem=lib | |
5649 | acl_libdirstem2= | |
5650 | case "$host_os" in | |
5651 | solaris*) | |
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 | |
5653 | $as_echo_n "checking for 64-bit host... " >&6; } | |
5654 | if ${gl_cv_solaris_64bit+:} false; then : | |
5655 | $as_echo_n "(cached) " >&6 | |
5656 | else | |
6351 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 | |
6352 | printf %s "checking 32-bit host C ABI... " >&6; } | |
6353 | if test ${gl_cv_host_cpu_c_abi_32bit+y} | |
6354 | then : | |
6355 | printf %s "(cached) " >&6 | |
6356 | else $as_nop | |
6357 | if test -n "$gl_cv_host_cpu_c_abi"; then | |
6358 | case "$gl_cv_host_cpu_c_abi" in | |
6359 | i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) | |
6360 | gl_cv_host_cpu_c_abi_32bit=yes ;; | |
6361 | x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) | |
6362 | gl_cv_host_cpu_c_abi_32bit=no ;; | |
6363 | *) | |
6364 | gl_cv_host_cpu_c_abi_32bit=unknown ;; | |
6365 | esac | |
6366 | else | |
6367 | case "$host_cpu" in | |
6368 | ||
6369 | # CPUs that only support a 32-bit ABI. | |
6370 | arc \ | |
6371 | | bfin \ | |
6372 | | cris* \ | |
6373 | | csky \ | |
6374 | | epiphany \ | |
6375 | | ft32 \ | |
6376 | | h8300 \ | |
6377 | | m68k \ | |
6378 | | microblaze | microblazeel \ | |
6379 | | nds32 | nds32le | nds32be \ | |
6380 | | nios2 | nios2eb | nios2el \ | |
6381 | | or1k* \ | |
6382 | | or32 \ | |
6383 | | sh | sh1234 | sh1234elb \ | |
6384 | | tic6x \ | |
6385 | | xtensa* ) | |
6386 | gl_cv_host_cpu_c_abi_32bit=yes | |
6387 | ;; | |
6388 | ||
6389 | # CPUs that only support a 64-bit ABI. | |
6390 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ | |
6391 | | mmix ) | |
6392 | gl_cv_host_cpu_c_abi_32bit=no | |
6393 | ;; | |
6394 | ||
6395 | i[34567]86 ) | |
6396 | gl_cv_host_cpu_c_abi_32bit=yes | |
6397 | ;; | |
6398 | ||
6399 | x86_64 ) | |
6400 | # On x86_64 systems, the C compiler may be generating code in one of | |
6401 | # these ABIs: | |
6402 | # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. | |
6403 | # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 | |
6404 | # with native Windows (mingw, MSVC). | |
6405 | # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. | |
6406 | # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. | |
6407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6408 | /* end confdefs.h. */ | |
6409 | #if (defined __x86_64__ || defined __amd64__ \ | |
6410 | || defined _M_X64 || defined _M_AMD64) \ | |
6411 | && !(defined __ILP32__ || defined _ILP32) | |
6412 | int ok; | |
6413 | #else | |
6414 | error fail | |
6415 | #endif | |
6416 | ||
6417 | _ACEOF | |
6418 | if ac_fn_c_try_compile "$LINENO" | |
6419 | then : | |
6420 | gl_cv_host_cpu_c_abi_32bit=no | |
6421 | else $as_nop | |
6422 | gl_cv_host_cpu_c_abi_32bit=yes | |
6423 | fi | |
6424 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6425 | ;; | |
6426 | ||
6427 | arm* | aarch64 ) | |
6428 | # Assume arm with EABI. | |
6429 | # On arm64 systems, the C compiler may be generating code in one of | |
6430 | # these ABIs: | |
6431 | # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. | |
6432 | # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. | |
6433 | # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. | |
6434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6435 | /* end confdefs.h. */ | |
6436 | #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) | |
6437 | int ok; | |
6438 | #else | |
6439 | error fail | |
6440 | #endif | |
6441 | ||
6442 | _ACEOF | |
6443 | if ac_fn_c_try_compile "$LINENO" | |
6444 | then : | |
6445 | gl_cv_host_cpu_c_abi_32bit=no | |
6446 | else $as_nop | |
6447 | gl_cv_host_cpu_c_abi_32bit=yes | |
6448 | fi | |
6449 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6450 | ;; | |
6451 | ||
6452 | hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) | |
6453 | # On hppa, the C compiler may be generating 32-bit code or 64-bit | |
6454 | # code. In the latter case, it defines _LP64 and __LP64__. | |
6455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6456 | /* end confdefs.h. */ | |
6457 | #ifdef __LP64__ | |
6458 | int ok; | |
6459 | #else | |
6460 | error fail | |
6461 | #endif | |
6462 | ||
6463 | _ACEOF | |
6464 | if ac_fn_c_try_compile "$LINENO" | |
6465 | then : | |
6466 | gl_cv_host_cpu_c_abi_32bit=no | |
6467 | else $as_nop | |
6468 | gl_cv_host_cpu_c_abi_32bit=yes | |
6469 | fi | |
6470 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6471 | ;; | |
6472 | ||
6473 | ia64* ) | |
6474 | # On ia64 on HP-UX, the C compiler may be generating 64-bit code or | |
6475 | # 32-bit code. In the latter case, it defines _ILP32. | |
6476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6477 | /* end confdefs.h. */ | |
6478 | #ifdef _ILP32 | |
6479 | int ok; | |
6480 | #else | |
6481 | error fail | |
6482 | #endif | |
6483 | ||
6484 | _ACEOF | |
6485 | if ac_fn_c_try_compile "$LINENO" | |
6486 | then : | |
6487 | gl_cv_host_cpu_c_abi_32bit=yes | |
6488 | else $as_nop | |
6489 | gl_cv_host_cpu_c_abi_32bit=no | |
6490 | fi | |
6491 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6492 | ;; | |
6493 | ||
6494 | mips* ) | |
6495 | # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this | |
6496 | # at 32. | |
6497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6498 | /* end confdefs.h. */ | |
6499 | #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) | |
6500 | int ok; | |
6501 | #else | |
6502 | error fail | |
6503 | #endif | |
6504 | ||
6505 | _ACEOF | |
6506 | if ac_fn_c_try_compile "$LINENO" | |
6507 | then : | |
6508 | gl_cv_host_cpu_c_abi_32bit=no | |
6509 | else $as_nop | |
6510 | gl_cv_host_cpu_c_abi_32bit=yes | |
6511 | fi | |
6512 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6513 | ;; | |
6514 | ||
6515 | powerpc* ) | |
6516 | # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. | |
6517 | # No need to distinguish them here; the caller may distinguish | |
6518 | # them based on the OS. | |
6519 | # On powerpc64 systems, the C compiler may still be generating | |
6520 | # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may | |
6521 | # be generating 64-bit code. | |
6522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6523 | /* end confdefs.h. */ | |
6524 | #if defined __powerpc64__ || defined _ARCH_PPC64 | |
6525 | int ok; | |
6526 | #else | |
6527 | error fail | |
6528 | #endif | |
6529 | ||
6530 | _ACEOF | |
6531 | if ac_fn_c_try_compile "$LINENO" | |
6532 | then : | |
6533 | gl_cv_host_cpu_c_abi_32bit=no | |
6534 | else $as_nop | |
6535 | gl_cv_host_cpu_c_abi_32bit=yes | |
6536 | fi | |
6537 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6538 | ;; | |
6539 | ||
6540 | rs6000 ) | |
6541 | gl_cv_host_cpu_c_abi_32bit=yes | |
6542 | ;; | |
6543 | ||
6544 | riscv32 | riscv64 ) | |
6545 | # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. | |
6546 | # Size of 'long' and 'void *': | |
6547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6548 | /* end confdefs.h. */ | |
6549 | #if defined __LP64__ | |
6550 | int ok; | |
6551 | #else | |
6552 | error fail | |
6553 | #endif | |
6554 | ||
6555 | _ACEOF | |
6556 | if ac_fn_c_try_compile "$LINENO" | |
6557 | then : | |
6558 | gl_cv_host_cpu_c_abi_32bit=no | |
6559 | else $as_nop | |
6560 | gl_cv_host_cpu_c_abi_32bit=yes | |
6561 | fi | |
6562 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6563 | ;; | |
6564 | ||
6565 | s390* ) | |
6566 | # On s390x, the C compiler may be generating 64-bit (= s390x) code | |
6567 | # or 31-bit (= s390) code. | |
6568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6569 | /* end confdefs.h. */ | |
6570 | #if defined __LP64__ || defined __s390x__ | |
6571 | int ok; | |
6572 | #else | |
6573 | error fail | |
6574 | #endif | |
6575 | ||
6576 | _ACEOF | |
6577 | if ac_fn_c_try_compile "$LINENO" | |
6578 | then : | |
6579 | gl_cv_host_cpu_c_abi_32bit=no | |
6580 | else $as_nop | |
6581 | gl_cv_host_cpu_c_abi_32bit=yes | |
6582 | fi | |
6583 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6584 | ;; | |
6585 | ||
6586 | sparc | sparc64 ) | |
6587 | # UltraSPARCs running Linux have `uname -m` = "sparc64", but the | |
6588 | # C compiler still generates 32-bit code. | |
6589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6590 | /* end confdefs.h. */ | |
6591 | #if defined __sparcv9 || defined __arch64__ | |
6592 | int ok; | |
6593 | #else | |
6594 | error fail | |
6595 | #endif | |
6596 | ||
6597 | _ACEOF | |
6598 | if ac_fn_c_try_compile "$LINENO" | |
6599 | then : | |
6600 | gl_cv_host_cpu_c_abi_32bit=no | |
6601 | else $as_nop | |
6602 | gl_cv_host_cpu_c_abi_32bit=yes | |
6603 | fi | |
6604 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6605 | ;; | |
6606 | ||
6607 | *) | |
6608 | gl_cv_host_cpu_c_abi_32bit=unknown | |
6609 | ;; | |
6610 | esac | |
6611 | fi | |
6612 | ||
6613 | fi | |
6614 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 | |
6615 | printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; } | |
6616 | ||
6617 | HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" | |
6618 | ||
6619 | ac_ext=c | |
6620 | ac_cpp='$CPP $CPPFLAGS' | |
6621 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6622 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6623 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6624 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6625 | printf %s "checking how to run the C preprocessor... " >&6; } | |
6626 | # On Suns, sometimes $CPP names a directory. | |
6627 | if test -n "$CPP" && test -d "$CPP"; then | |
6628 | CPP= | |
6629 | fi | |
6630 | if test -z "$CPP"; then | |
6631 | if test ${ac_cv_prog_CPP+y} | |
6632 | then : | |
6633 | printf %s "(cached) " >&6 | |
6634 | else $as_nop | |
6635 | # Double quotes because $CC needs to be expanded | |
6636 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp | |
6637 | do | |
6638 | ac_preproc_ok=false | |
6639 | for ac_c_preproc_warn_flag in '' yes | |
6640 | do | |
6641 | # Use a header file that comes with gcc, so configuring glibc | |
6642 | # with a fresh cross-compiler works. | |
6643 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6644 | # not just through cpp. "Syntax error" is here to catch this case. | |
5657 | 6645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5658 | 6646 | /* end confdefs.h. */ |
5659 | ||
5660 | #ifdef _LP64 | |
5661 | sixtyfour bits | |
5662 | #endif | |
6647 | #include <limits.h> | |
6648 | Syntax error | |
6649 | _ACEOF | |
6650 | if ac_fn_c_try_cpp "$LINENO" | |
6651 | then : | |
6652 | ||
6653 | else $as_nop | |
6654 | # Broken: fails on valid input. | |
6655 | continue | |
6656 | fi | |
6657 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6658 | ||
6659 | # OK, works on sane cases. Now check whether nonexistent headers | |
6660 | # can be detected and how. | |
6661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6662 | /* end confdefs.h. */ | |
6663 | #include <ac_nonexistent.h> | |
6664 | _ACEOF | |
6665 | if ac_fn_c_try_cpp "$LINENO" | |
6666 | then : | |
6667 | # Broken: success on invalid input. | |
6668 | continue | |
6669 | else $as_nop | |
6670 | # Passes both tests. | |
6671 | ac_preproc_ok=: | |
6672 | break | |
6673 | fi | |
6674 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6675 | ||
6676 | done | |
6677 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6678 | rm -f conftest.i conftest.err conftest.$ac_ext | |
6679 | if $ac_preproc_ok | |
6680 | then : | |
6681 | break | |
6682 | fi | |
6683 | ||
6684 | done | |
6685 | ac_cv_prog_CPP=$CPP | |
6686 | ||
6687 | fi | |
6688 | CPP=$ac_cv_prog_CPP | |
6689 | else | |
6690 | ac_cv_prog_CPP=$CPP | |
6691 | fi | |
6692 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6693 | printf "%s\n" "$CPP" >&6; } | |
6694 | ac_preproc_ok=false | |
6695 | for ac_c_preproc_warn_flag in '' yes | |
6696 | do | |
6697 | # Use a header file that comes with gcc, so configuring glibc | |
6698 | # with a fresh cross-compiler works. | |
6699 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6700 | # not just through cpp. "Syntax error" is here to catch this case. | |
6701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6702 | /* end confdefs.h. */ | |
6703 | #include <limits.h> | |
6704 | Syntax error | |
6705 | _ACEOF | |
6706 | if ac_fn_c_try_cpp "$LINENO" | |
6707 | then : | |
6708 | ||
6709 | else $as_nop | |
6710 | # Broken: fails on valid input. | |
6711 | continue | |
6712 | fi | |
6713 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6714 | ||
6715 | # OK, works on sane cases. Now check whether nonexistent headers | |
6716 | # can be detected and how. | |
6717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6718 | /* end confdefs.h. */ | |
6719 | #include <ac_nonexistent.h> | |
6720 | _ACEOF | |
6721 | if ac_fn_c_try_cpp "$LINENO" | |
6722 | then : | |
6723 | # Broken: success on invalid input. | |
6724 | continue | |
6725 | else $as_nop | |
6726 | # Passes both tests. | |
6727 | ac_preproc_ok=: | |
6728 | break | |
6729 | fi | |
6730 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6731 | ||
6732 | done | |
6733 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6734 | rm -f conftest.i conftest.err conftest.$ac_ext | |
6735 | if $ac_preproc_ok | |
6736 | then : | |
6737 | ||
6738 | else $as_nop | |
6739 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6740 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
6741 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
6742 | See \`config.log' for more details" "$LINENO" 5; } | |
6743 | fi | |
6744 | ||
6745 | ac_ext=c | |
6746 | ac_cpp='$CPP $CPPFLAGS' | |
6747 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6748 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6749 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6750 | ||
6751 | ||
6752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
6753 | printf %s "checking for grep that handles long lines and -e... " >&6; } | |
6754 | if test ${ac_cv_path_GREP+y} | |
6755 | then : | |
6756 | printf %s "(cached) " >&6 | |
6757 | else $as_nop | |
6758 | if test -z "$GREP"; then | |
6759 | ac_path_GREP_found=false | |
6760 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6762 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6763 | do | |
6764 | IFS=$as_save_IFS | |
6765 | case $as_dir in #((( | |
6766 | '') as_dir=./ ;; | |
6767 | */) ;; | |
6768 | *) as_dir=$as_dir/ ;; | |
6769 | esac | |
6770 | for ac_prog in grep ggrep | |
6771 | do | |
6772 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6773 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" | |
6774 | as_fn_executable_p "$ac_path_GREP" || continue | |
6775 | # Check for GNU ac_path_GREP and select it if it is found. | |
6776 | # Check for GNU $ac_path_GREP | |
6777 | case `"$ac_path_GREP" --version 2>&1` in | |
6778 | *GNU*) | |
6779 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
6780 | *) | |
6781 | ac_count=0 | |
6782 | printf %s 0123456789 >"conftest.in" | |
6783 | while : | |
6784 | do | |
6785 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6786 | mv "conftest.tmp" "conftest.in" | |
6787 | cp "conftest.in" "conftest.nl" | |
6788 | printf "%s\n" 'GREP' >> "conftest.nl" | |
6789 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6790 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6791 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6792 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
6793 | # Best one so far, save it but keep looking for a better one | |
6794 | ac_cv_path_GREP="$ac_path_GREP" | |
6795 | ac_path_GREP_max=$ac_count | |
6796 | fi | |
6797 | # 10*(2^10) chars as input seems more than enough | |
6798 | test $ac_count -gt 10 && break | |
6799 | done | |
6800 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6801 | esac | |
6802 | ||
6803 | $ac_path_GREP_found && break 3 | |
6804 | done | |
6805 | done | |
6806 | done | |
6807 | IFS=$as_save_IFS | |
6808 | if test -z "$ac_cv_path_GREP"; then | |
6809 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
6810 | fi | |
6811 | else | |
6812 | ac_cv_path_GREP=$GREP | |
6813 | fi | |
6814 | ||
6815 | fi | |
6816 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
6817 | printf "%s\n" "$ac_cv_path_GREP" >&6; } | |
6818 | GREP="$ac_cv_path_GREP" | |
6819 | ||
6820 | ||
6821 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
6822 | printf %s "checking for egrep... " >&6; } | |
6823 | if test ${ac_cv_path_EGREP+y} | |
6824 | then : | |
6825 | printf %s "(cached) " >&6 | |
6826 | else $as_nop | |
6827 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
6828 | then ac_cv_path_EGREP="$GREP -E" | |
6829 | else | |
6830 | if test -z "$EGREP"; then | |
6831 | ac_path_EGREP_found=false | |
6832 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6834 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6835 | do | |
6836 | IFS=$as_save_IFS | |
6837 | case $as_dir in #((( | |
6838 | '') as_dir=./ ;; | |
6839 | */) ;; | |
6840 | *) as_dir=$as_dir/ ;; | |
6841 | esac | |
6842 | for ac_prog in egrep | |
6843 | do | |
6844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6845 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" | |
6846 | as_fn_executable_p "$ac_path_EGREP" || continue | |
6847 | # Check for GNU ac_path_EGREP and select it if it is found. | |
6848 | # Check for GNU $ac_path_EGREP | |
6849 | case `"$ac_path_EGREP" --version 2>&1` in | |
6850 | *GNU*) | |
6851 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
6852 | *) | |
6853 | ac_count=0 | |
6854 | printf %s 0123456789 >"conftest.in" | |
6855 | while : | |
6856 | do | |
6857 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6858 | mv "conftest.tmp" "conftest.in" | |
6859 | cp "conftest.in" "conftest.nl" | |
6860 | printf "%s\n" 'EGREP' >> "conftest.nl" | |
6861 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6862 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6863 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6864 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
6865 | # Best one so far, save it but keep looking for a better one | |
6866 | ac_cv_path_EGREP="$ac_path_EGREP" | |
6867 | ac_path_EGREP_max=$ac_count | |
6868 | fi | |
6869 | # 10*(2^10) chars as input seems more than enough | |
6870 | test $ac_count -gt 10 && break | |
6871 | done | |
6872 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6873 | esac | |
6874 | ||
6875 | $ac_path_EGREP_found && break 3 | |
6876 | done | |
6877 | done | |
6878 | done | |
6879 | IFS=$as_save_IFS | |
6880 | if test -z "$ac_cv_path_EGREP"; then | |
6881 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
6882 | fi | |
6883 | else | |
6884 | ac_cv_path_EGREP=$EGREP | |
6885 | fi | |
6886 | ||
6887 | fi | |
6888 | fi | |
6889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
6890 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } | |
6891 | EGREP="$ac_cv_path_EGREP" | |
6892 | ||
6893 | ||
6894 | ||
6895 | ||
6896 | ||
6897 | ||
6898 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 | |
6899 | printf %s "checking for ELF binary format... " >&6; } | |
6900 | if test ${gl_cv_elf+y} | |
6901 | then : | |
6902 | printf %s "(cached) " >&6 | |
6903 | else $as_nop | |
6904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6905 | /* end confdefs.h. */ | |
6906 | #ifdef __ELF__ | |
6907 | Extensible Linking Format | |
6908 | #endif | |
5663 | 6909 | |
5664 | 6910 | _ACEOF |
5665 | 6911 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5666 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : | |
5667 | gl_cv_solaris_64bit=yes | |
5668 | else | |
5669 | gl_cv_solaris_64bit=no | |
5670 | fi | |
5671 | rm -f conftest* | |
5672 | ||
5673 | ||
5674 | fi | |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 | |
5676 | $as_echo "$gl_cv_solaris_64bit" >&6; } | |
5677 | if test $gl_cv_solaris_64bit = yes; then | |
5678 | acl_libdirstem=lib/64 | |
5679 | case "$host_cpu" in | |
5680 | sparc*) acl_libdirstem2=lib/sparcv9 ;; | |
5681 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; | |
5682 | esac | |
5683 | fi | |
5684 | ;; | |
5685 | *) | |
5686 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
5687 | if test -n "$searchpath"; then | |
5688 | acl_save_IFS="${IFS= }"; IFS=":" | |
5689 | for searchdir in $searchpath; do | |
5690 | if test -d "$searchdir"; then | |
5691 | case "$searchdir" in | |
5692 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
5693 | */../ | */.. ) | |
5694 | # Better ignore directories of this form. They are misleading. | |
5695 | ;; | |
5696 | *) searchdir=`cd "$searchdir" && pwd` | |
5697 | case "$searchdir" in | |
5698 | */lib64 ) acl_libdirstem=lib64 ;; | |
5699 | esac ;; | |
5700 | esac | |
5701 | fi | |
5702 | done | |
5703 | IFS="$acl_save_IFS" | |
5704 | fi | |
5705 | ;; | |
5706 | esac | |
5707 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
5708 | ||
6912 | $EGREP "Extensible Linking Format" >/dev/null 2>&1 | |
6913 | then : | |
6914 | gl_cv_elf=yes | |
6915 | else $as_nop | |
6916 | gl_cv_elf=no | |
6917 | fi | |
6918 | rm -rf conftest* | |
6919 | ||
6920 | ||
6921 | fi | |
6922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 | |
6923 | printf "%s\n" "$gl_cv_elf" >&6; } | |
6924 | if test $gl_cv_elf; then | |
6925 | # Extract the ELF class of a file (5th byte) in decimal. | |
6926 | # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header | |
6927 | if od -A x < /dev/null >/dev/null 2>/dev/null; then | |
6928 | # Use POSIX od. | |
6929 | func_elfclass () | |
6930 | { | |
6931 | od -A n -t d1 -j 4 -N 1 | |
6932 | } | |
6933 | else | |
6934 | # Use BSD hexdump. | |
6935 | func_elfclass () | |
6936 | { | |
6937 | dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' | |
6938 | echo | |
6939 | } | |
6940 | fi | |
6941 | case $HOST_CPU_C_ABI_32BIT in | |
6942 | yes) | |
6943 | # 32-bit ABI. | |
6944 | acl_is_expected_elfclass () | |
6945 | { | |
6946 | test "`func_elfclass | sed -e 's/[ ]//g'`" = 1 | |
6947 | } | |
6948 | ;; | |
6949 | no) | |
6950 | # 64-bit ABI. | |
6951 | acl_is_expected_elfclass () | |
6952 | { | |
6953 | test "`func_elfclass | sed -e 's/[ ]//g'`" = 2 | |
6954 | } | |
6955 | ;; | |
6956 | *) | |
6957 | # Unknown. | |
6958 | acl_is_expected_elfclass () | |
6959 | { | |
6960 | : | |
6961 | } | |
6962 | ;; | |
6963 | esac | |
6964 | else | |
6965 | acl_is_expected_elfclass () | |
6966 | { | |
6967 | : | |
6968 | } | |
6969 | fi | |
6970 | ||
6971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 | |
6972 | printf %s "checking for the common suffixes of directories in the library search path... " >&6; } | |
6973 | if test ${acl_cv_libdirstems+y} | |
6974 | then : | |
6975 | printf %s "(cached) " >&6 | |
6976 | else $as_nop | |
6977 | acl_libdirstem=lib | |
6978 | acl_libdirstem2= | |
6979 | acl_libdirstem3= | |
6980 | case "$host_os" in | |
6981 | solaris*) | |
6982 | if test $HOST_CPU_C_ABI_32BIT = no; then | |
6983 | acl_libdirstem2=lib/64 | |
6984 | case "$host_cpu" in | |
6985 | sparc*) acl_libdirstem3=lib/sparcv9 ;; | |
6986 | i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; | |
6987 | esac | |
6988 | fi | |
6989 | ;; | |
6990 | *) | |
6991 | searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ | |
6992 | | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
6993 | if test $HOST_CPU_C_ABI_32BIT != no; then | |
6994 | # 32-bit or unknown ABI. | |
6995 | if test -d /usr/lib32; then | |
6996 | acl_libdirstem2=lib32 | |
6997 | fi | |
6998 | fi | |
6999 | if test $HOST_CPU_C_ABI_32BIT != yes; then | |
7000 | # 64-bit or unknown ABI. | |
7001 | if test -d /usr/lib64; then | |
7002 | acl_libdirstem3=lib64 | |
7003 | fi | |
7004 | fi | |
7005 | if test -n "$searchpath"; then | |
7006 | acl_save_IFS="${IFS= }"; IFS=":" | |
7007 | for searchdir in $searchpath; do | |
7008 | if test -d "$searchdir"; then | |
7009 | case "$searchdir" in | |
7010 | */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; | |
7011 | */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; | |
7012 | */../ | */.. ) | |
7013 | # Better ignore directories of this form. They are misleading. | |
7014 | ;; | |
7015 | *) searchdir=`cd "$searchdir" && pwd` | |
7016 | case "$searchdir" in | |
7017 | */lib32 ) acl_libdirstem2=lib32 ;; | |
7018 | */lib64 ) acl_libdirstem3=lib64 ;; | |
7019 | esac ;; | |
7020 | esac | |
7021 | fi | |
7022 | done | |
7023 | IFS="$acl_save_IFS" | |
7024 | if test $HOST_CPU_C_ABI_32BIT = yes; then | |
7025 | # 32-bit ABI. | |
7026 | acl_libdirstem3= | |
7027 | fi | |
7028 | if test $HOST_CPU_C_ABI_32BIT = no; then | |
7029 | # 64-bit ABI. | |
7030 | acl_libdirstem2= | |
7031 | fi | |
7032 | fi | |
7033 | ;; | |
7034 | esac | |
7035 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
7036 | test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" | |
7037 | acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" | |
7038 | ||
7039 | fi | |
7040 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 | |
7041 | printf "%s\n" "$acl_cv_libdirstems" >&6; } | |
7042 | acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` | |
7043 | acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` | |
7044 | acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` | |
5709 | 7045 | |
5710 | 7046 | |
5711 | 7047 | |
5726 | 7062 | |
5727 | 7063 | eval additional_includedir=\"$includedir\" |
5728 | 7064 | eval additional_libdir=\"$libdir\" |
7065 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" | |
7066 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" | |
5729 | 7067 | |
5730 | 7068 | exec_prefix="$acl_save_exec_prefix" |
5731 | 7069 | prefix="$acl_save_prefix" |
5732 | 7070 | |
5733 | 7071 | |
5734 | 7072 | # Check whether --with-libiconv-prefix was given. |
5735 | if test "${with_libiconv_prefix+set}" = set; then : | |
7073 | if test ${with_libiconv_prefix+y} | |
7074 | then : | |
5736 | 7075 | withval=$with_libiconv_prefix; |
5737 | 7076 | if test "X$withval" = "Xno"; then |
5738 | 7077 | use_additional=no |
5746 | 7085 | |
5747 | 7086 | eval additional_includedir=\"$includedir\" |
5748 | 7087 | eval additional_libdir=\"$libdir\" |
7088 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" | |
7089 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" | |
5749 | 7090 | |
5750 | 7091 | exec_prefix="$acl_save_exec_prefix" |
5751 | 7092 | prefix="$acl_save_prefix" |
5753 | 7094 | else |
5754 | 7095 | additional_includedir="$withval/include" |
5755 | 7096 | additional_libdir="$withval/$acl_libdirstem" |
5756 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
5757 | && ! test -d "$withval/$acl_libdirstem"; then | |
5758 | additional_libdir="$withval/$acl_libdirstem2" | |
5759 | fi | |
7097 | additional_libdir2="$withval/$acl_libdirstem2" | |
7098 | additional_libdir3="$withval/$acl_libdirstem3" | |
5760 | 7099 | fi |
5761 | 7100 | fi |
5762 | 7101 | |
5763 | 7102 | fi |
5764 | 7103 | |
7104 | if test "X$additional_libdir2" = "X$additional_libdir"; then | |
7105 | additional_libdir2= | |
7106 | fi | |
7107 | if test "X$additional_libdir3" = "X$additional_libdir"; then | |
7108 | additional_libdir3= | |
7109 | fi | |
5765 | 7110 | LIBICONV= |
5766 | 7111 | LTLIBICONV= |
5767 | 7112 | INCICONV= |
5807 | 7152 | shrext= |
5808 | 7153 | fi |
5809 | 7154 | if test $use_additional = yes; then |
5810 | dir="$additional_libdir" | |
5811 | if test -n "$acl_shlibext"; then | |
5812 | if test -f "$dir/$libname$shrext"; then | |
5813 | found_dir="$dir" | |
5814 | found_so="$dir/$libname$shrext" | |
5815 | else | |
5816 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
5817 | ver=`(cd "$dir" && \ | |
5818 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
5819 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
5820 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
5821 | | sed 1q ) 2>/dev/null` | |
5822 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
5823 | found_dir="$dir" | |
5824 | found_so="$dir/$libname$shrext.$ver" | |
5825 | fi | |
5826 | else | |
5827 | eval library_names=\"$acl_library_names_spec\" | |
5828 | for f in $library_names; do | |
5829 | if test -f "$dir/$f"; then | |
5830 | found_dir="$dir" | |
5831 | found_so="$dir/$f" | |
5832 | break | |
5833 | fi | |
5834 | done | |
5835 | fi | |
5836 | fi | |
5837 | fi | |
5838 | if test "X$found_dir" = "X"; then | |
5839 | if test -f "$dir/$libname.$acl_libext"; then | |
5840 | found_dir="$dir" | |
5841 | found_a="$dir/$libname.$acl_libext" | |
5842 | fi | |
5843 | fi | |
5844 | if test "X$found_dir" != "X"; then | |
5845 | if test -f "$dir/$libname.la"; then | |
5846 | found_la="$dir/$libname.la" | |
5847 | fi | |
5848 | fi | |
5849 | fi | |
5850 | if test "X$found_dir" = "X"; then | |
5851 | for x in $LDFLAGS $LTLIBICONV; do | |
5852 | ||
5853 | acl_save_prefix="$prefix" | |
5854 | prefix="$acl_final_prefix" | |
5855 | acl_save_exec_prefix="$exec_prefix" | |
5856 | exec_prefix="$acl_final_exec_prefix" | |
5857 | eval x=\"$x\" | |
5858 | exec_prefix="$acl_save_exec_prefix" | |
5859 | prefix="$acl_save_prefix" | |
5860 | ||
5861 | case "$x" in | |
5862 | -L*) | |
5863 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
5864 | if test -n "$acl_shlibext"; then | |
5865 | if test -f "$dir/$libname$shrext"; then | |
7155 | for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do | |
7156 | if test "X$found_dir" = "X"; then | |
7157 | eval dir=\$$additional_libdir_variable | |
7158 | if test -n "$dir"; then | |
7159 | if test -n "$acl_shlibext"; then | |
7160 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then | |
5866 | 7161 | found_dir="$dir" |
5867 | 7162 | found_so="$dir/$libname$shrext" |
5868 | 7163 | else |
5872 | 7167 | | sed -e "s,^$libname$shrext\\\\.,," \ |
5873 | 7168 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
5874 | 7169 | | sed 1q ) 2>/dev/null` |
5875 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
7170 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then | |
5876 | 7171 | found_dir="$dir" |
5877 | 7172 | found_so="$dir/$libname$shrext.$ver" |
5878 | 7173 | fi |
5879 | 7174 | else |
5880 | 7175 | eval library_names=\"$acl_library_names_spec\" |
5881 | 7176 | for f in $library_names; do |
5882 | if test -f "$dir/$f"; then | |
7177 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then | |
5883 | 7178 | found_dir="$dir" |
5884 | 7179 | found_so="$dir/$f" |
5885 | 7180 | break |
5889 | 7184 | fi |
5890 | 7185 | fi |
5891 | 7186 | if test "X$found_dir" = "X"; then |
5892 | if test -f "$dir/$libname.$acl_libext"; then | |
7187 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then | |
7188 | found_dir="$dir" | |
7189 | found_a="$dir/$libname.$acl_libext" | |
7190 | fi | |
7191 | fi | |
7192 | if test "X$found_dir" != "X"; then | |
7193 | if test -f "$dir/$libname.la"; then | |
7194 | found_la="$dir/$libname.la" | |
7195 | fi | |
7196 | fi | |
7197 | fi | |
7198 | fi | |
7199 | done | |
7200 | fi | |
7201 | if test "X$found_dir" = "X"; then | |
7202 | for x in $LDFLAGS $LTLIBICONV; do | |
7203 | ||
7204 | acl_save_prefix="$prefix" | |
7205 | prefix="$acl_final_prefix" | |
7206 | acl_save_exec_prefix="$exec_prefix" | |
7207 | exec_prefix="$acl_final_exec_prefix" | |
7208 | eval x=\"$x\" | |
7209 | exec_prefix="$acl_save_exec_prefix" | |
7210 | prefix="$acl_save_prefix" | |
7211 | ||
7212 | case "$x" in | |
7213 | -L*) | |
7214 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
7215 | if test -n "$acl_shlibext"; then | |
7216 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then | |
7217 | found_dir="$dir" | |
7218 | found_so="$dir/$libname$shrext" | |
7219 | else | |
7220 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
7221 | ver=`(cd "$dir" && \ | |
7222 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
7223 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
7224 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
7225 | | sed 1q ) 2>/dev/null` | |
7226 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then | |
7227 | found_dir="$dir" | |
7228 | found_so="$dir/$libname$shrext.$ver" | |
7229 | fi | |
7230 | else | |
7231 | eval library_names=\"$acl_library_names_spec\" | |
7232 | for f in $library_names; do | |
7233 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then | |
7234 | found_dir="$dir" | |
7235 | found_so="$dir/$f" | |
7236 | break | |
7237 | fi | |
7238 | done | |
7239 | fi | |
7240 | fi | |
7241 | fi | |
7242 | if test "X$found_dir" = "X"; then | |
7243 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then | |
5893 | 7244 | found_dir="$dir" |
5894 | 7245 | found_a="$dir/$libname.$acl_libext" |
5895 | 7246 | fi |
5911 | 7262 | if test "X$found_so" != "X"; then |
5912 | 7263 | if test "$enable_rpath" = no \ |
5913 | 7264 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
5914 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
7265 | || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ | |
7266 | || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then | |
5915 | 7267 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
5916 | 7268 | else |
5917 | 7269 | haveit= |
5990 | 7342 | fi |
5991 | 7343 | additional_includedir="$basedir/include" |
5992 | 7344 | ;; |
7345 | */$acl_libdirstem3 | */$acl_libdirstem3/) | |
7346 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` | |
7347 | if test "$name" = 'iconv'; then | |
7348 | LIBICONV_PREFIX="$basedir" | |
7349 | fi | |
7350 | additional_includedir="$basedir/include" | |
7351 | ;; | |
5993 | 7352 | esac |
5994 | 7353 | if test "X$additional_includedir" != "X"; then |
5995 | 7354 | if test "X$additional_includedir" != "X/usr/include"; then |
6035 | 7394 | for dep in $dependency_libs; do |
6036 | 7395 | case "$dep" in |
6037 | 7396 | -L*) |
6038 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
6039 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
6040 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
7397 | dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
7398 | if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ | |
7399 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ | |
7400 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then | |
6041 | 7401 | haveit= |
6042 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
6043 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
7402 | if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ | |
7403 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ | |
7404 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then | |
6044 | 7405 | if test -n "$GCC"; then |
6045 | 7406 | case $host_os in |
6046 | 7407 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
6059 | 7420 | exec_prefix="$acl_save_exec_prefix" |
6060 | 7421 | prefix="$acl_save_prefix" |
6061 | 7422 | |
6062 | if test "X$x" = "X-L$additional_libdir"; then | |
7423 | if test "X$x" = "X-L$dependency_libdir"; then | |
6063 | 7424 | haveit=yes |
6064 | 7425 | break |
6065 | 7426 | fi |
6066 | 7427 | done |
6067 | 7428 | if test -z "$haveit"; then |
6068 | if test -d "$additional_libdir"; then | |
6069 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
7429 | if test -d "$dependency_libdir"; then | |
7430 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir" | |
6070 | 7431 | fi |
6071 | 7432 | fi |
6072 | 7433 | haveit= |
6080 | 7441 | exec_prefix="$acl_save_exec_prefix" |
6081 | 7442 | prefix="$acl_save_prefix" |
6082 | 7443 | |
6083 | if test "X$x" = "X-L$additional_libdir"; then | |
7444 | if test "X$x" = "X-L$dependency_libdir"; then | |
6084 | 7445 | haveit=yes |
6085 | 7446 | break |
6086 | 7447 | fi |
6087 | 7448 | done |
6088 | 7449 | if test -z "$haveit"; then |
6089 | if test -d "$additional_libdir"; then | |
6090 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
7450 | if test -d "$dependency_libdir"; then | |
7451 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir" | |
6091 | 7452 | fi |
6092 | 7453 | fi |
6093 | 7454 | fi |
6176 | 7537 | |
6177 | 7538 | |
6178 | 7539 | |
6179 | ||
6180 | 7540 | am_save_CPPFLAGS="$CPPFLAGS" |
6181 | 7541 | |
6182 | 7542 | for element in $INCICONV; do |
6202 | 7562 | done |
6203 | 7563 | |
6204 | 7564 | |
6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
6206 | $as_echo_n "checking for iconv... " >&6; } | |
6207 | if ${am_cv_func_iconv+:} false; then : | |
6208 | $as_echo_n "(cached) " >&6 | |
6209 | else | |
7565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
7566 | printf %s "checking for iconv... " >&6; } | |
7567 | if test ${am_cv_func_iconv+y} | |
7568 | then : | |
7569 | printf %s "(cached) " >&6 | |
7570 | else $as_nop | |
6210 | 7571 | |
6211 | 7572 | am_cv_func_iconv="no, consider installing GNU libiconv" |
6212 | 7573 | am_cv_lib_iconv=no |
6217 | 7578 | #include <iconv.h> |
6218 | 7579 | |
6219 | 7580 | int |
6220 | main () | |
7581 | main (void) | |
6221 | 7582 | { |
6222 | 7583 | iconv_t cd = iconv_open("",""); |
6223 | 7584 | iconv(cd,NULL,NULL,NULL,NULL); |
6226 | 7587 | return 0; |
6227 | 7588 | } |
6228 | 7589 | _ACEOF |
6229 | if ac_fn_c_try_link "$LINENO"; then : | |
7590 | if ac_fn_c_try_link "$LINENO" | |
7591 | then : | |
6230 | 7592 | am_cv_func_iconv=yes |
6231 | 7593 | fi |
6232 | rm -f core conftest.err conftest.$ac_objext \ | |
7594 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
6233 | 7595 | conftest$ac_exeext conftest.$ac_ext |
6234 | 7596 | if test "$am_cv_func_iconv" != yes; then |
6235 | 7597 | am_save_LIBS="$LIBS" |
6241 | 7603 | #include <iconv.h> |
6242 | 7604 | |
6243 | 7605 | int |
6244 | main () | |
7606 | main (void) | |
6245 | 7607 | { |
6246 | 7608 | iconv_t cd = iconv_open("",""); |
6247 | 7609 | iconv(cd,NULL,NULL,NULL,NULL); |
6250 | 7612 | return 0; |
6251 | 7613 | } |
6252 | 7614 | _ACEOF |
6253 | if ac_fn_c_try_link "$LINENO"; then : | |
7615 | if ac_fn_c_try_link "$LINENO" | |
7616 | then : | |
6254 | 7617 | am_cv_lib_iconv=yes |
6255 | 7618 | am_cv_func_iconv=yes |
6256 | 7619 | fi |
6257 | rm -f core conftest.err conftest.$ac_objext \ | |
7620 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
6258 | 7621 | conftest$ac_exeext conftest.$ac_ext |
6259 | 7622 | LIBS="$am_save_LIBS" |
6260 | 7623 | fi |
6261 | 7624 | |
6262 | 7625 | fi |
6263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
6264 | $as_echo "$am_cv_func_iconv" >&6; } | |
7626 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
7627 | printf "%s\n" "$am_cv_func_iconv" >&6; } | |
6265 | 7628 | if test "$am_cv_func_iconv" = yes; then |
6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
6267 | $as_echo_n "checking for working iconv... " >&6; } | |
6268 | if ${am_cv_func_iconv_works+:} false; then : | |
6269 | $as_echo_n "(cached) " >&6 | |
6270 | else | |
7629 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
7630 | printf %s "checking for working iconv... " >&6; } | |
7631 | if test ${am_cv_func_iconv_works+y} | |
7632 | then : | |
7633 | printf %s "(cached) " >&6 | |
7634 | else $as_nop | |
6271 | 7635 | |
6272 | 7636 | am_save_LIBS="$LIBS" |
6273 | 7637 | if test $am_cv_lib_iconv = yes; then |
6275 | 7639 | fi |
6276 | 7640 | am_cv_func_iconv_works=no |
6277 | 7641 | for ac_iconv_const in '' 'const'; do |
6278 | if test "$cross_compiling" = yes; then : | |
7642 | if test "$cross_compiling" = yes | |
7643 | then : | |
6279 | 7644 | case "$host_os" in |
6280 | 7645 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
6281 | 7646 | *) am_cv_func_iconv_works="guessing yes" ;; |
6282 | 7647 | esac |
6283 | else | |
7648 | else $as_nop | |
6284 | 7649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6285 | 7650 | /* end confdefs.h. */ |
6286 | 7651 | |
6292 | 7657 | #endif |
6293 | 7658 | |
6294 | 7659 | int |
6295 | main () | |
7660 | main (void) | |
6296 | 7661 | { |
6297 | 7662 | int result = 0; |
6298 | 7663 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
6377 | 7742 | #endif |
6378 | 7743 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is |
6379 | 7744 | provided. */ |
6380 | if (/* Try standardized names. */ | |
6381 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
6382 | /* Try IRIX, OSF/1 names. */ | |
6383 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
6384 | /* Try AIX names. */ | |
6385 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
6386 | /* Try HP-UX names. */ | |
6387 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
6388 | result |= 16; | |
7745 | { | |
7746 | /* Try standardized names. */ | |
7747 | iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); | |
7748 | /* Try IRIX, OSF/1 names. */ | |
7749 | iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); | |
7750 | /* Try AIX names. */ | |
7751 | iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); | |
7752 | /* Try HP-UX names. */ | |
7753 | iconv_t cd4 = iconv_open ("utf8", "eucJP"); | |
7754 | if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) | |
7755 | && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) | |
7756 | result |= 16; | |
7757 | if (cd1 != (iconv_t)(-1)) | |
7758 | iconv_close (cd1); | |
7759 | if (cd2 != (iconv_t)(-1)) | |
7760 | iconv_close (cd2); | |
7761 | if (cd3 != (iconv_t)(-1)) | |
7762 | iconv_close (cd3); | |
7763 | if (cd4 != (iconv_t)(-1)) | |
7764 | iconv_close (cd4); | |
7765 | } | |
6389 | 7766 | return result; |
6390 | 7767 | |
6391 | 7768 | ; |
6392 | 7769 | return 0; |
6393 | 7770 | } |
6394 | 7771 | _ACEOF |
6395 | if ac_fn_c_try_run "$LINENO"; then : | |
7772 | if ac_fn_c_try_run "$LINENO" | |
7773 | then : | |
6396 | 7774 | am_cv_func_iconv_works=yes |
6397 | 7775 | fi |
6398 | 7776 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6404 | 7782 | LIBS="$am_save_LIBS" |
6405 | 7783 | |
6406 | 7784 | fi |
6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
6408 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
7785 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
7786 | printf "%s\n" "$am_cv_func_iconv_works" >&6; } | |
6409 | 7787 | case "$am_cv_func_iconv_works" in |
6410 | 7788 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; |
6411 | 7789 | *) am_func_iconv=yes ;; |
6415 | 7793 | fi |
6416 | 7794 | if test "$am_func_iconv" = yes; then |
6417 | 7795 | |
6418 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
7796 | printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h | |
6419 | 7797 | |
6420 | 7798 | fi |
6421 | 7799 | if test "$am_cv_lib_iconv" = yes; then |
6422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
6423 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
6424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
6425 | $as_echo "$LIBICONV" >&6; } | |
7800 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
7801 | printf %s "checking how to link with libiconv... " >&6; } | |
7802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
7803 | printf "%s\n" "$LIBICONV" >&6; } | |
6426 | 7804 | else |
6427 | 7805 | CPPFLAGS="$am_save_CPPFLAGS" |
6428 | 7806 | LIBICONV= |
6432 | 7810 | |
6433 | 7811 | |
6434 | 7812 | if test "$am_cv_func_iconv" = yes; then |
6435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
6436 | $as_echo_n "checking for iconv declaration... " >&6; } | |
6437 | if ${am_cv_proto_iconv+:} false; then : | |
6438 | $as_echo_n "(cached) " >&6 | |
6439 | else | |
7813 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
7814 | printf %s "checking for iconv declaration... " >&6; } | |
7815 | if test ${am_cv_proto_iconv+y} | |
7816 | then : | |
7817 | printf %s "(cached) " >&6 | |
7818 | else $as_nop | |
6440 | 7819 | |
6441 | 7820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6442 | 7821 | /* end confdefs.h. */ |
6454 | 7833 | #endif |
6455 | 7834 | |
6456 | 7835 | int |
6457 | main () | |
7836 | main (void) | |
6458 | 7837 | { |
6459 | 7838 | |
6460 | 7839 | ; |
6461 | 7840 | return 0; |
6462 | 7841 | } |
6463 | 7842 | _ACEOF |
6464 | if ac_fn_c_try_compile "$LINENO"; then : | |
7843 | if ac_fn_c_try_compile "$LINENO" | |
7844 | then : | |
6465 | 7845 | am_cv_proto_iconv_arg1="" |
6466 | else | |
7846 | else $as_nop | |
6467 | 7847 | am_cv_proto_iconv_arg1="const" |
6468 | 7848 | fi |
6469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7849 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6470 | 7850 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
6471 | 7851 | fi |
6472 | 7852 | |
6473 | 7853 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: | |
7854 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: | |
6475 | 7855 | $am_cv_proto_iconv" >&5 |
6476 | $as_echo " | |
7856 | printf "%s\n" " | |
6477 | 7857 | $am_cv_proto_iconv" >&6; } |
6478 | ||
6479 | cat >>confdefs.h <<_ACEOF | |
6480 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
6481 | _ACEOF | |
6482 | ||
6483 | ||
7858 | else | |
7859 | am_cv_proto_iconv_arg1="" | |
6484 | 7860 | fi |
7861 | ||
7862 | printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h | |
7863 | ||
7864 | ||
6485 | 7865 | |
6486 | 7866 | fi |
6487 | 7867 | |
6488 | 7868 | # xxd (distributed with vim) is used in the testsuite |
6489 | 7869 | # Extract the first word of "xxd", so it can be a program name with args. |
6490 | 7870 | set dummy xxd; ac_word=$2 |
6491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6492 | $as_echo_n "checking for $ac_word... " >&6; } | |
6493 | if ${ac_cv_prog_XXD_FOUND+:} false; then : | |
6494 | $as_echo_n "(cached) " >&6 | |
6495 | else | |
7871 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7872 | printf %s "checking for $ac_word... " >&6; } | |
7873 | if test ${ac_cv_prog_XXD_FOUND+y} | |
7874 | then : | |
7875 | printf %s "(cached) " >&6 | |
7876 | else $as_nop | |
6496 | 7877 | if test -n "$XXD_FOUND"; then |
6497 | 7878 | ac_cv_prog_XXD_FOUND="$XXD_FOUND" # Let the user override the test. |
6498 | 7879 | else |
6500 | 7881 | for as_dir in $PATH |
6501 | 7882 | do |
6502 | 7883 | IFS=$as_save_IFS |
6503 | test -z "$as_dir" && as_dir=. | |
7884 | case $as_dir in #((( | |
7885 | '') as_dir=./ ;; | |
7886 | */) ;; | |
7887 | *) as_dir=$as_dir/ ;; | |
7888 | esac | |
6504 | 7889 | for ac_exec_ext in '' $ac_executable_extensions; do |
6505 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7890 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
6506 | 7891 | ac_cv_prog_XXD_FOUND="yes" |
6507 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7892 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6508 | 7893 | break 2 |
6509 | 7894 | fi |
6510 | 7895 | done |
6515 | 7900 | fi |
6516 | 7901 | XXD_FOUND=$ac_cv_prog_XXD_FOUND |
6517 | 7902 | if test -n "$XXD_FOUND"; then |
6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XXD_FOUND" >&5 | |
6519 | $as_echo "$XXD_FOUND" >&6; } | |
7903 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XXD_FOUND" >&5 | |
7904 | printf "%s\n" "$XXD_FOUND" >&6; } | |
6520 | 7905 | else |
6521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6522 | $as_echo "no" >&6; } | |
7906 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7907 | printf "%s\n" "no" >&6; } | |
6523 | 7908 | fi |
6524 | 7909 | |
6525 | 7910 | |
6564 | 7949 | case $ac_val in #( |
6565 | 7950 | *${as_nl}*) |
6566 | 7951 | case $ac_var in #( |
6567 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
6568 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7952 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7953 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
6569 | 7954 | esac |
6570 | 7955 | case $ac_var in #( |
6571 | 7956 | _ | IFS | as_nl) ;; #( |
6595 | 7980 | /^ac_cv_env_/b end |
6596 | 7981 | t clear |
6597 | 7982 | :clear |
6598 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7983 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ | |
6599 | 7984 | t end |
6600 | 7985 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6601 | 7986 | :end' >>confcache |
6602 | 7987 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
6603 | 7988 | if test -w "$cache_file"; then |
6604 | 7989 | if test "x$cache_file" != "x/dev/null"; then |
6605 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
6606 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
7990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
7991 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} | |
6607 | 7992 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
6608 | 7993 | cat confcache >"$cache_file" |
6609 | 7994 | else |
6617 | 8002 | fi |
6618 | 8003 | fi |
6619 | 8004 | else |
6620 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
6621 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
8005 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
8006 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6622 | 8007 | fi |
6623 | 8008 | fi |
6624 | 8009 | rm -f confcache |
6671 | 8056 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
6672 | 8057 | # 1. Remove the extension, and $U if already installed. |
6673 | 8058 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
6674 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
8059 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` | |
6675 | 8060 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
6676 | 8061 | # will be set to the directory where LIBOBJS objects are built. |
6677 | 8062 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
6682 | 8067 | LTLIBOBJS=$ac_ltlibobjs |
6683 | 8068 | |
6684 | 8069 | |
6685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
6686 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
8070 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
8071 | printf %s "checking that generated files are newer than configure... " >&6; } | |
6687 | 8072 | if test -n "$am_sleep_pid"; then |
6688 | 8073 | # Hide warnings about reused PIDs. |
6689 | 8074 | wait $am_sleep_pid 2>/dev/null |
6690 | 8075 | fi |
6691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
6692 | $as_echo "done" >&6; } | |
8076 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
8077 | printf "%s\n" "done" >&6; } | |
6693 | 8078 | if test -n "$EXEEXT"; then |
6694 | 8079 | am__EXEEXT_TRUE= |
6695 | 8080 | am__EXEEXT_FALSE='#' |
6723 | 8108 | ac_write_fail=0 |
6724 | 8109 | ac_clean_files_save=$ac_clean_files |
6725 | 8110 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
6726 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
6727 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8111 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
8112 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} | |
6728 | 8113 | as_write_fail=0 |
6729 | 8114 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
6730 | 8115 | #! $SHELL |
6747 | 8132 | |
6748 | 8133 | # Be more Bourne compatible |
6749 | 8134 | DUALCASE=1; export DUALCASE # for MKS sh |
6750 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
8135 | as_nop=: | |
8136 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
8137 | then : | |
6751 | 8138 | emulate sh |
6752 | 8139 | NULLCMD=: |
6753 | 8140 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
6754 | 8141 | # is contrary to our usage. Disable this feature. |
6755 | 8142 | alias -g '${1+"$@"}'='"$@"' |
6756 | 8143 | setopt NO_GLOB_SUBST |
6757 | else | |
8144 | else $as_nop | |
6758 | 8145 | case `(set -o) 2>/dev/null` in #( |
6759 | 8146 | *posix*) : |
6760 | 8147 | set -o posix ;; #( |
6764 | 8151 | fi |
6765 | 8152 | |
6766 | 8153 | |
8154 | ||
8155 | # Reset variables that may have inherited troublesome values from | |
8156 | # the environment. | |
8157 | ||
8158 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
8159 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
8160 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
8161 | # Quoting is to prevent editors from complaining about space-tab. | |
6767 | 8162 | as_nl=' |
6768 | 8163 | ' |
6769 | 8164 | export as_nl |
6770 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
6771 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6772 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
6773 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
6774 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
6775 | # but without wasting forks for bash or zsh. | |
6776 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
6777 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6778 | as_echo='print -r --' | |
6779 | as_echo_n='print -rn --' | |
6780 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6781 | as_echo='printf %s\n' | |
6782 | as_echo_n='printf %s' | |
6783 | else | |
6784 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
6785 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
6786 | as_echo_n='/usr/ucb/echo -n' | |
6787 | else | |
6788 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
6789 | as_echo_n_body='eval | |
6790 | arg=$1; | |
6791 | case $arg in #( | |
6792 | *"$as_nl"*) | |
6793 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
6794 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
6795 | esac; | |
6796 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
6797 | ' | |
6798 | export as_echo_n_body | |
6799 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
6800 | fi | |
6801 | export as_echo_body | |
6802 | as_echo='sh -c $as_echo_body as_echo' | |
6803 | fi | |
8165 | IFS=" "" $as_nl" | |
8166 | ||
8167 | PS1='$ ' | |
8168 | PS2='> ' | |
8169 | PS4='+ ' | |
8170 | ||
8171 | # Ensure predictable behavior from utilities with locale-dependent output. | |
8172 | LC_ALL=C | |
8173 | export LC_ALL | |
8174 | LANGUAGE=C | |
8175 | export LANGUAGE | |
8176 | ||
8177 | # We cannot yet rely on "unset" to work, but we need these variables | |
8178 | # to be unset--not just set to an empty or harmless value--now, to | |
8179 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
8180 | # also avoids known problems related to "unset" and subshell syntax | |
8181 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
8182 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
8183 | do eval test \${$as_var+y} \ | |
8184 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8185 | done | |
8186 | ||
8187 | # Ensure that fds 0, 1, and 2 are open. | |
8188 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
8189 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
8190 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
6804 | 8191 | |
6805 | 8192 | # The user is always right. |
6806 | if test "${PATH_SEPARATOR+set}" != set; then | |
8193 | if ${PATH_SEPARATOR+false} :; then | |
6807 | 8194 | PATH_SEPARATOR=: |
6808 | 8195 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
6809 | 8196 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
6811 | 8198 | } |
6812 | 8199 | fi |
6813 | 8200 | |
6814 | ||
6815 | # IFS | |
6816 | # We need space, tab and new line, in precisely that order. Quoting is | |
6817 | # there to prevent editors from complaining about space-tab. | |
6818 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6819 | # splitting by setting IFS to empty value.) | |
6820 | IFS=" "" $as_nl" | |
6821 | 8201 | |
6822 | 8202 | # Find who we are. Look in the path if we contain no directory separator. |
6823 | 8203 | as_myself= |
6827 | 8207 | for as_dir in $PATH |
6828 | 8208 | do |
6829 | 8209 | IFS=$as_save_IFS |
6830 | test -z "$as_dir" && as_dir=. | |
6831 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8210 | case $as_dir in #((( | |
8211 | '') as_dir=./ ;; | |
8212 | */) ;; | |
8213 | *) as_dir=$as_dir/ ;; | |
8214 | esac | |
8215 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
6832 | 8216 | done |
6833 | 8217 | IFS=$as_save_IFS |
6834 | 8218 | |
6840 | 8224 | as_myself=$0 |
6841 | 8225 | fi |
6842 | 8226 | if test ! -f "$as_myself"; then |
6843 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
8227 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
6844 | 8228 | exit 1 |
6845 | 8229 | fi |
6846 | 8230 | |
6847 | # Unset variables that we do not need and which cause bugs (e.g. in | |
6848 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
6849 | # suppresses any "Segmentation fault" message there. '((' could | |
6850 | # trigger a bug in pdksh 5.2.14. | |
6851 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
6852 | do eval test x\${$as_var+set} = xset \ | |
6853 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
6854 | done | |
6855 | PS1='$ ' | |
6856 | PS2='> ' | |
6857 | PS4='+ ' | |
6858 | ||
6859 | # NLS nuisances. | |
6860 | LC_ALL=C | |
6861 | export LC_ALL | |
6862 | LANGUAGE=C | |
6863 | export LANGUAGE | |
6864 | ||
6865 | # CDPATH. | |
6866 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
6867 | 8231 | |
6868 | 8232 | |
6869 | 8233 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
6876 | 8240 | as_status=$1; test $as_status -eq 0 && as_status=1 |
6877 | 8241 | if test "$4"; then |
6878 | 8242 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
6879 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
8243 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
6880 | 8244 | fi |
6881 | $as_echo "$as_me: error: $2" >&2 | |
8245 | printf "%s\n" "$as_me: error: $2" >&2 | |
6882 | 8246 | as_fn_exit $as_status |
6883 | 8247 | } # as_fn_error |
8248 | ||
6884 | 8249 | |
6885 | 8250 | |
6886 | 8251 | # as_fn_set_status STATUS |
6909 | 8274 | { eval $1=; unset $1;} |
6910 | 8275 | } |
6911 | 8276 | as_unset=as_fn_unset |
8277 | ||
6912 | 8278 | # as_fn_append VAR VALUE |
6913 | 8279 | # ---------------------- |
6914 | 8280 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
6915 | 8281 | # advantage of any shell optimizations that allow amortized linear growth over |
6916 | 8282 | # repeated appends, instead of the typical quadratic growth present in naive |
6917 | 8283 | # implementations. |
6918 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
8284 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null | |
8285 | then : | |
6919 | 8286 | eval 'as_fn_append () |
6920 | 8287 | { |
6921 | 8288 | eval $1+=\$2 |
6922 | 8289 | }' |
6923 | else | |
8290 | else $as_nop | |
6924 | 8291 | as_fn_append () |
6925 | 8292 | { |
6926 | 8293 | eval $1=\$$1\$2 |
6932 | 8299 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
6933 | 8300 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
6934 | 8301 | # must be portable across $(()) and expr. |
6935 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
8302 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null | |
8303 | then : | |
6936 | 8304 | eval 'as_fn_arith () |
6937 | 8305 | { |
6938 | 8306 | as_val=$(( $* )) |
6939 | 8307 | }' |
6940 | else | |
8308 | else $as_nop | |
6941 | 8309 | as_fn_arith () |
6942 | 8310 | { |
6943 | 8311 | as_val=`expr "$@" || test $? -eq 1` |
6968 | 8336 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6969 | 8337 | X"$0" : 'X\(//\)$' \| \ |
6970 | 8338 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
6971 | $as_echo X/"$0" | | |
8339 | printf "%s\n" X/"$0" | | |
6972 | 8340 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
6973 | 8341 | s//\1/ |
6974 | 8342 | q |
6990 | 8358 | as_cr_digits='0123456789' |
6991 | 8359 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
6992 | 8360 | |
8361 | ||
8362 | # Determine whether it's possible to make 'echo' print without a newline. | |
8363 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
8364 | # for compatibility with existing Makefiles. | |
6993 | 8365 | ECHO_C= ECHO_N= ECHO_T= |
6994 | 8366 | case `echo -n x` in #((((( |
6995 | 8367 | -n*) |
7002 | 8374 | *) |
7003 | 8375 | ECHO_N='-n';; |
7004 | 8376 | esac |
8377 | ||
8378 | # For backward compatibility with old third-party macros, we provide | |
8379 | # the shell variables $as_echo and $as_echo_n. New code should use | |
8380 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
8381 | as_echo='printf %s\n' | |
8382 | as_echo_n='printf %s' | |
7005 | 8383 | |
7006 | 8384 | rm -f conf$$ conf$$.exe conf$$.file |
7007 | 8385 | if test -d conf$$.dir; then |
7044 | 8422 | as_dirs= |
7045 | 8423 | while :; do |
7046 | 8424 | case $as_dir in #( |
7047 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
8425 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7048 | 8426 | *) as_qdir=$as_dir;; |
7049 | 8427 | esac |
7050 | 8428 | as_dirs="'$as_qdir' $as_dirs" |
7053 | 8431 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
7054 | 8432 | X"$as_dir" : 'X\(//\)$' \| \ |
7055 | 8433 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
7056 | $as_echo X"$as_dir" | | |
8434 | printf "%s\n" X"$as_dir" | | |
7057 | 8435 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7058 | 8436 | s//\1/ |
7059 | 8437 | q |
7115 | 8493 | # report actual input values of CONFIG_FILES etc. instead of their |
7116 | 8494 | # values after options handling. |
7117 | 8495 | ac_log=" |
7118 | This file was extended by dosfstools $as_me 4.2, which was | |
7119 | generated by GNU Autoconf 2.69. Invocation command line was | |
8496 | This file was extended by dosfstools $as_me 4.2+git, which was | |
8497 | generated by GNU Autoconf 2.71. Invocation command line was | |
7120 | 8498 | |
7121 | 8499 | CONFIG_FILES = $CONFIG_FILES |
7122 | 8500 | CONFIG_HEADERS = $CONFIG_HEADERS |
7169 | 8547 | Report bugs to the package provider." |
7170 | 8548 | |
7171 | 8549 | _ACEOF |
8550 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` | |
8551 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` | |
7172 | 8552 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7173 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
8553 | ac_cs_config='$ac_cs_config_escaped' | |
7174 | 8554 | ac_cs_version="\\ |
7175 | dosfstools config.status 4.2 | |
7176 | configured by $0, generated by GNU Autoconf 2.69, | |
8555 | dosfstools config.status 4.2+git | |
8556 | configured by $0, generated by GNU Autoconf 2.71, | |
7177 | 8557 | with options \\"\$ac_cs_config\\" |
7178 | 8558 | |
7179 | Copyright (C) 2012 Free Software Foundation, Inc. | |
8559 | Copyright (C) 2021 Free Software Foundation, Inc. | |
7180 | 8560 | This config.status script is free software; the Free Software Foundation |
7181 | 8561 | gives unlimited permission to copy, distribute and modify it." |
7182 | 8562 | |
7216 | 8596 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7217 | 8597 | ac_cs_recheck=: ;; |
7218 | 8598 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7219 | $as_echo "$ac_cs_version"; exit ;; | |
8599 | printf "%s\n" "$ac_cs_version"; exit ;; | |
7220 | 8600 | --config | --confi | --conf | --con | --co | --c ) |
7221 | $as_echo "$ac_cs_config"; exit ;; | |
8601 | printf "%s\n" "$ac_cs_config"; exit ;; | |
7222 | 8602 | --debug | --debu | --deb | --de | --d | -d ) |
7223 | 8603 | debug=: ;; |
7224 | 8604 | --file | --fil | --fi | --f ) |
7225 | 8605 | $ac_shift |
7226 | 8606 | case $ac_optarg in |
7227 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8607 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7228 | 8608 | '') as_fn_error $? "missing file argument" ;; |
7229 | 8609 | esac |
7230 | 8610 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
7231 | 8611 | ac_need_defaults=false;; |
7232 | 8612 | --he | --h | --help | --hel | -h ) |
7233 | $as_echo "$ac_cs_usage"; exit ;; | |
8613 | printf "%s\n" "$ac_cs_usage"; exit ;; | |
7234 | 8614 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7235 | 8615 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
7236 | 8616 | ac_cs_silent=: ;; |
7258 | 8638 | if \$ac_cs_recheck; then |
7259 | 8639 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7260 | 8640 | shift |
7261 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8641 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7262 | 8642 | CONFIG_SHELL='$SHELL' |
7263 | 8643 | export CONFIG_SHELL |
7264 | 8644 | exec "\$@" |
7272 | 8652 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
7273 | 8653 | ## Running $as_me. ## |
7274 | 8654 | _ASBOX |
7275 | $as_echo "$ac_log" | |
8655 | printf "%s\n" "$ac_log" | |
7276 | 8656 | } >&5 |
7277 | 8657 | |
7278 | 8658 | _ACEOF |
7310 | 8690 | # We use the long form for the default assignment because of an extremely |
7311 | 8691 | # bizarre bug on SunOS 4.1.3. |
7312 | 8692 | if $ac_need_defaults; then |
7313 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7314 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8693 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files | |
8694 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands | |
7315 | 8695 | fi |
7316 | 8696 | |
7317 | 8697 | # Have a temporary directory for convenience. Make it in the build tree |
7539 | 8919 | esac || |
7540 | 8920 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7541 | 8921 | esac |
7542 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8922 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
7543 | 8923 | as_fn_append ac_file_inputs " '$ac_f'" |
7544 | 8924 | done |
7545 | 8925 | |
7547 | 8927 | # use $as_me), people would be surprised to read: |
7548 | 8928 | # /* config.h. Generated by config.status. */ |
7549 | 8929 | configure_input='Generated from '` |
7550 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8930 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
7551 | 8931 | `' by configure.' |
7552 | 8932 | if test x"$ac_file" != x-; then |
7553 | 8933 | configure_input="$ac_file. $configure_input" |
7554 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
7555 | $as_echo "$as_me: creating $ac_file" >&6;} | |
8934 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8935 | printf "%s\n" "$as_me: creating $ac_file" >&6;} | |
7556 | 8936 | fi |
7557 | 8937 | # Neutralize special characters interpreted by sed in replacement strings. |
7558 | 8938 | case $configure_input in #( |
7559 | 8939 | *\&* | *\|* | *\\* ) |
7560 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8940 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | | |
7561 | 8941 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
7562 | 8942 | *) ac_sed_conf_input=$configure_input;; |
7563 | 8943 | esac |
7574 | 8954 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
7575 | 8955 | X"$ac_file" : 'X\(//\)$' \| \ |
7576 | 8956 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7577 | $as_echo X"$ac_file" | | |
8957 | printf "%s\n" X"$ac_file" | | |
7578 | 8958 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7579 | 8959 | s//\1/ |
7580 | 8960 | q |
7598 | 8978 | case "$ac_dir" in |
7599 | 8979 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
7600 | 8980 | *) |
7601 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8981 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` | |
7602 | 8982 | # A ".." for each directory in $ac_dir_suffix. |
7603 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8983 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
7604 | 8984 | case $ac_top_builddir_sub in |
7605 | 8985 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
7606 | 8986 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
7662 | 9042 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7663 | 9043 | *datarootdir*) ac_datarootdir_seen=yes;; |
7664 | 9044 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
7665 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
7666 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
9045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
9046 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7667 | 9047 | _ACEOF |
7668 | 9048 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7669 | 9049 | ac_datarootdir_hack=' |
7707 | 9087 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
7708 | 9088 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
7709 | 9089 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
7710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
9090 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7711 | 9091 | which seems to be undefined. Please make sure it is defined" >&5 |
7712 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
9092 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7713 | 9093 | which seems to be undefined. Please make sure it is defined" >&2;} |
7714 | 9094 | |
7715 | 9095 | rm -f "$ac_tmp/stdin" |
7721 | 9101 | ;; |
7722 | 9102 | |
7723 | 9103 | |
7724 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
7725 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
9104 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
9105 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} | |
7726 | 9106 | ;; |
7727 | 9107 | esac |
7728 | 9108 | |
7748 | 9128 | for am_mf |
7749 | 9129 | do |
7750 | 9130 | # Strip MF so we end up with the name of the file. |
7751 | am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` | |
9131 | am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` | |
7752 | 9132 | # Check whether this is an Automake generated Makefile which includes |
7753 | 9133 | # dependency-tracking related rules and includes. |
7754 | 9134 | # Grep'ing the whole file directly is not great: AIX grep has a line |
7760 | 9140 | X"$am_mf" : 'X\(//\)[^/]' \| \ |
7761 | 9141 | X"$am_mf" : 'X\(//\)$' \| \ |
7762 | 9142 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
7763 | $as_echo X"$am_mf" | | |
9143 | printf "%s\n" X"$am_mf" | | |
7764 | 9144 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7765 | 9145 | s//\1/ |
7766 | 9146 | q |
7782 | 9162 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
7783 | 9163 | X"$am_mf" : 'X\(//\)$' \| \ |
7784 | 9164 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
7785 | $as_echo X/"$am_mf" | | |
9165 | printf "%s\n" X/"$am_mf" | | |
7786 | 9166 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
7787 | 9167 | s//\1/ |
7788 | 9168 | q |
7807 | 9187 | (exit $ac_status); } || am_rc=$? |
7808 | 9188 | done |
7809 | 9189 | if test $am_rc -ne 0; then |
7810 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7811 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
9190 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
9191 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
7812 | 9192 | as_fn_error $? "Something went wrong bootstrapping makefile fragments |
7813 | for automatic dependency tracking. Try re-running configure with the | |
9193 | for automatic dependency tracking. If GNU make was not used, consider | |
9194 | re-running the configure script with MAKE=\"gmake\" (or whatever is | |
9195 | necessary). You can also try re-running configure with the | |
7814 | 9196 | '--disable-dependency-tracking' option to at least be able to build |
7815 | 9197 | the package (albeit without support for automatic dependency tracking). |
7816 | 9198 | See \`config.log' for more details" "$LINENO" 5; } |
7856 | 9238 | $ac_cs_success || as_fn_exit 1 |
7857 | 9239 | fi |
7858 | 9240 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
7859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
7860 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
7861 | fi | |
7862 | ||
9241 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
9242 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
9243 | fi | |
9244 | ||
9245 |
13 | 13 | # You should have received a copy of the GNU General Public License |
14 | 14 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | |
16 | AC_INIT([dosfstools], [4.2]) | |
16 | AC_INIT([dosfstools], [4.2+git]) | |
17 | 17 | AC_SUBST([RELEASE_DATE], [2021-01-31]) |
18 | 18 | AM_INIT_AUTOMAKE([1.11 foreign subdir-objects parallel-tests]) |
19 | 19 | |
59 | 59 | sys/ioccom.h \ |
60 | 60 | sys/mkdev.h \ |
61 | 61 | sys/queue.h \ |
62 | sys/sysmacros.h \ | |
62 | 63 | ]) |
63 | 64 | |
64 | 65 | AC_CHECK_HEADERS([endian.h sys/endian.h libkern/OSByteOrder.h]) |
2 | 2 | |
3 | 3 | scriptversion=2018-03-07.03; # UTC |
4 | 4 | |
5 | # Copyright (C) 1999-2018 Free Software Foundation, Inc. | |
5 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
6 | 6 | |
7 | 7 | # This program is free software; you can redistribute it and/or modify |
8 | 8 | # it under the terms of the GNU General Public License as published by |
0 | 0 | #!/bin/sh |
1 | 1 | # install - install a program, script, or datafile |
2 | 2 | |
3 | scriptversion=2018-03-11.20; # UTC | |
3 | scriptversion=2020-11-14.01; # UTC | |
4 | 4 | |
5 | 5 | # This originates from X11R5 (mit/util/scripts/install.sh), which was |
6 | 6 | # later released in X11R6 (xc/config/util/install.sh) with the |
68 | 68 | # Desired mode of installed file. |
69 | 69 | mode=0755 |
70 | 70 | |
71 | # Create dirs (including intermediate dirs) using mode 755. | |
72 | # This is like GNU 'install' as of coreutils 8.32 (2020). | |
73 | mkdir_umask=22 | |
74 | ||
75 | backupsuffix= | |
71 | 76 | chgrpcmd= |
72 | 77 | chmodcmd=$chmodprog |
73 | 78 | chowncmd= |
98 | 103 | --version display version info and exit. |
99 | 104 | |
100 | 105 | -c (ignored) |
101 | -C install only if different (preserve the last data modification time) | |
106 | -C install only if different (preserve data modification time) | |
102 | 107 | -d create directories instead of installing files. |
103 | 108 | -g GROUP $chgrpprog installed files to GROUP. |
104 | 109 | -m MODE $chmodprog installed files to MODE. |
105 | 110 | -o USER $chownprog installed files to USER. |
111 | -p pass -p to $cpprog. | |
106 | 112 | -s $stripprog installed files. |
113 | -S SUFFIX attempt to back up existing files, with suffix SUFFIX. | |
107 | 114 | -t DIRECTORY install into DIRECTORY. |
108 | 115 | -T report an error if DSTFILE is a directory. |
109 | 116 | |
110 | 117 | Environment variables override the default commands: |
111 | 118 | CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG |
112 | 119 | RMPROG STRIPPROG |
120 | ||
121 | By default, rm is invoked with -f; when overridden with RMPROG, | |
122 | it's up to you to specify -f if you want it. | |
123 | ||
124 | If -S is not specified, no backups are attempted. | |
125 | ||
126 | Email bug reports to bug-automake@gnu.org. | |
127 | Automake home page: https://www.gnu.org/software/automake/ | |
113 | 128 | " |
114 | 129 | |
115 | 130 | while test $# -ne 0; do |
136 | 151 | -o) chowncmd="$chownprog $2" |
137 | 152 | shift;; |
138 | 153 | |
154 | -p) cpprog="$cpprog -p";; | |
155 | ||
139 | 156 | -s) stripcmd=$stripprog;; |
157 | ||
158 | -S) backupsuffix="$2" | |
159 | shift;; | |
140 | 160 | |
141 | 161 | -t) |
142 | 162 | is_target_a_directory=always |
254 | 274 | dstdir=$dst |
255 | 275 | test -d "$dstdir" |
256 | 276 | dstdir_status=$? |
277 | # Don't chown directories that already exist. | |
278 | if test $dstdir_status = 0; then | |
279 | chowncmd="" | |
280 | fi | |
257 | 281 | else |
258 | 282 | |
259 | 283 | # Waiting for this to be detected by the "$cpprog $src $dsttmp" command |
300 | 324 | if test $dstdir_status != 0; then |
301 | 325 | case $posix_mkdir in |
302 | 326 | '') |
303 | # Create intermediate dirs using mode 755 as modified by the umask. | |
304 | # This is like FreeBSD 'install' as of 1997-10-28. | |
305 | umask=`umask` | |
306 | case $stripcmd.$umask in | |
307 | # Optimize common cases. | |
308 | *[2367][2367]) mkdir_umask=$umask;; | |
309 | .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; | |
310 | ||
311 | *[0-7]) | |
312 | mkdir_umask=`expr $umask + 22 \ | |
313 | - $umask % 100 % 40 + $umask % 20 \ | |
314 | - $umask % 10 % 4 + $umask % 2 | |
315 | `;; | |
316 | *) mkdir_umask=$umask,go-w;; | |
317 | esac | |
318 | ||
319 | 327 | # With -d, create the new directory with the user-specified mode. |
320 | 328 | # Otherwise, rely on $mkdir_umask. |
321 | 329 | if test -n "$dir_arg"; then |
325 | 333 | fi |
326 | 334 | |
327 | 335 | posix_mkdir=false |
328 | case $umask in | |
329 | *[123567][0-7][0-7]) | |
330 | # POSIX mkdir -p sets u+wx bits regardless of umask, which | |
331 | # is incompatible with FreeBSD 'install' when (umask & 300) != 0. | |
332 | ;; | |
333 | *) | |
334 | # Note that $RANDOM variable is not portable (e.g. dash); Use it | |
335 | # here however when possible just to lower collision chance. | |
336 | tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ | |
337 | ||
338 | trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 | |
339 | ||
340 | # Because "mkdir -p" follows existing symlinks and we likely work | |
341 | # directly in world-writeable /tmp, make sure that the '$tmpdir' | |
342 | # directory is successfully created first before we actually test | |
343 | # 'mkdir -p' feature. | |
344 | if (umask $mkdir_umask && | |
345 | $mkdirprog $mkdir_mode "$tmpdir" && | |
346 | exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 | |
347 | then | |
348 | if test -z "$dir_arg" || { | |
349 | # Check for POSIX incompatibilities with -m. | |
350 | # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | |
351 | # other-writable bit of parent directory when it shouldn't. | |
352 | # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | |
353 | test_tmpdir="$tmpdir/a" | |
354 | ls_ld_tmpdir=`ls -ld "$test_tmpdir"` | |
355 | case $ls_ld_tmpdir in | |
356 | d????-?r-*) different_mode=700;; | |
357 | d????-?--*) different_mode=755;; | |
358 | *) false;; | |
359 | esac && | |
360 | $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { | |
361 | ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` | |
362 | test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" | |
363 | } | |
364 | } | |
365 | then posix_mkdir=: | |
366 | fi | |
367 | rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" | |
368 | else | |
369 | # Remove any dirs left behind by ancient mkdir implementations. | |
370 | rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null | |
371 | fi | |
372 | trap '' 0;; | |
373 | esac;; | |
336 | # The $RANDOM variable is not portable (e.g., dash). Use it | |
337 | # here however when possible just to lower collision chance. | |
338 | tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ | |
339 | ||
340 | trap ' | |
341 | ret=$? | |
342 | rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null | |
343 | exit $ret | |
344 | ' 0 | |
345 | ||
346 | # Because "mkdir -p" follows existing symlinks and we likely work | |
347 | # directly in world-writeable /tmp, make sure that the '$tmpdir' | |
348 | # directory is successfully created first before we actually test | |
349 | # 'mkdir -p'. | |
350 | if (umask $mkdir_umask && | |
351 | $mkdirprog $mkdir_mode "$tmpdir" && | |
352 | exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 | |
353 | then | |
354 | if test -z "$dir_arg" || { | |
355 | # Check for POSIX incompatibilities with -m. | |
356 | # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | |
357 | # other-writable bit of parent directory when it shouldn't. | |
358 | # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | |
359 | test_tmpdir="$tmpdir/a" | |
360 | ls_ld_tmpdir=`ls -ld "$test_tmpdir"` | |
361 | case $ls_ld_tmpdir in | |
362 | d????-?r-*) different_mode=700;; | |
363 | d????-?--*) different_mode=755;; | |
364 | *) false;; | |
365 | esac && | |
366 | $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { | |
367 | ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` | |
368 | test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" | |
369 | } | |
370 | } | |
371 | then posix_mkdir=: | |
372 | fi | |
373 | rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" | |
374 | else | |
375 | # Remove any dirs left behind by ancient mkdir implementations. | |
376 | rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null | |
377 | fi | |
378 | trap '' 0;; | |
374 | 379 | esac |
375 | 380 | |
376 | 381 | if |
381 | 386 | then : |
382 | 387 | else |
383 | 388 | |
384 | # The umask is ridiculous, or mkdir does not conform to POSIX, | |
389 | # mkdir does not conform to POSIX, | |
385 | 390 | # or it failed possibly due to a race condition. Create the |
386 | 391 | # directory the slow way, step by step, checking for races as we go. |
387 | 392 | |
410 | 415 | prefixes= |
411 | 416 | else |
412 | 417 | if $posix_mkdir; then |
413 | (umask=$mkdir_umask && | |
418 | (umask $mkdir_umask && | |
414 | 419 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break |
415 | 420 | # Don't fail if two instances are running concurrently. |
416 | 421 | test -d "$prefix" || exit 1 |
450 | 455 | trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 |
451 | 456 | |
452 | 457 | # Copy the file name to the temp name. |
453 | (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && | |
458 | (umask $cp_umask && | |
459 | { test -z "$stripcmd" || { | |
460 | # Create $dsttmp read-write so that cp doesn't create it read-only, | |
461 | # which would cause strip to fail. | |
462 | if test -z "$doit"; then | |
463 | : >"$dsttmp" # No need to fork-exec 'touch'. | |
464 | else | |
465 | $doit touch "$dsttmp" | |
466 | fi | |
467 | } | |
468 | } && | |
469 | $doit_exec $cpprog "$src" "$dsttmp") && | |
454 | 470 | |
455 | 471 | # and set any options; do chmod last to preserve setuid bits. |
456 | 472 | # |
476 | 492 | then |
477 | 493 | rm -f "$dsttmp" |
478 | 494 | else |
495 | # If $backupsuffix is set, and the file being installed | |
496 | # already exists, attempt a backup. Don't worry if it fails, | |
497 | # e.g., if mv doesn't support -f. | |
498 | if test -n "$backupsuffix" && test -f "$dst"; then | |
499 | $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null | |
500 | fi | |
501 | ||
479 | 502 | # Rename the file to the real destination. |
480 | 503 | $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || |
481 | 504 | |
490 | 513 | # file should still install successfully. |
491 | 514 | { |
492 | 515 | test ! -f "$dst" || |
493 | $doit $rmcmd -f "$dst" 2>/dev/null || | |
516 | $doit $rmcmd "$dst" 2>/dev/null || | |
494 | 517 | { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && |
495 | { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } | |
518 | { $doit $rmcmd "$rmtmp" 2>/dev/null; :; } | |
496 | 519 | } || |
497 | 520 | { echo "$0: cannot unlink or rename $dst" >&2 |
498 | 521 | (exit 1); exit 1 |
0 | # Makefile.in generated by automake 1.16.1 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2018 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
178 | 178 | CHECKATARI = @CHECKATARI@ |
179 | 179 | CPP = @CPP@ |
180 | 180 | CPPFLAGS = @CPPFLAGS@ |
181 | CSCOPE = @CSCOPE@ | |
182 | CTAGS = @CTAGS@ | |
181 | 183 | CYGPATH_W = @CYGPATH_W@ |
182 | 184 | DEFS = @DEFS@ |
183 | 185 | DEPDIR = @DEPDIR@ |
185 | 187 | ECHO_N = @ECHO_N@ |
186 | 188 | ECHO_T = @ECHO_T@ |
187 | 189 | EGREP = @EGREP@ |
190 | ETAGS = @ETAGS@ | |
188 | 191 | EXEEXT = @EXEEXT@ |
189 | 192 | GREP = @GREP@ |
190 | 193 | INSTALL = @INSTALL@ |
355 | 358 | |
356 | 359 | cscope cscopelist: |
357 | 360 | |
358 | ||
359 | 361 | distdir: $(BUILT_SOURCES) |
360 | 362 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
361 | 363 |
96 | 96 | cannot be configured explicitly. |
97 | 97 | It is set implicitly by option \fILanguage for non-Unicode programs\fP available |
98 | 98 | in \fIRegional and Language Options\fP via \fIControl Panel\fP. |
99 | Default DOS codepage for fatlabel is 850. | |
99 | Default DOS codepage for \fBfatlabel\fP is 850. | |
100 | 100 | See following mapping table between DOS codepage and Language for non-Unicode |
101 | 101 | programs: |
102 | 102 | .TS |
192 | 192 | .IP "\fB\-s\fP \fISECTORS-PER-CLUSTER\fP" 4 |
193 | 193 | Specify the number of disk sectors per cluster. |
194 | 194 | Must be a power of 2, i.e. 1, 2, 4, 8, ... 128. |
195 | .IP "\fB\-S\fP \fILOGICAL-SECTOR-SIZE\fP" 4 | |
196 | Specify the number of bytes per logical sector. | |
195 | .IP "\fB\-S\fP \fISECTOR-SIZE\fP" 4 | |
196 | Specify the number of bytes per filesystem sector. | |
197 | 197 | Must be a power of 2 and greater than or equal to 512, i.e. 512, 1024, 2048, |
198 | 198 | 4096, 8192, 16384, or 32768. |
199 | Values larger than 4096 are not conforming to the FAT file system specification | |
199 | Values larger than 4096 are not conforming to the FAT filesystem specification | |
200 | 200 | and may not work everywhere. |
201 | Some operating systems have requirement that filesystem sector size must match | |
202 | logical disk device sector size. So default value is logical disk sector size. | |
201 | 203 | .IP "\fB\-v\fP" 4 |
202 | 204 | Verbose execution. |
203 | 205 | .IP "\fB\-\-offset\fP \fISECTOR\fP" 4 |
2 | 2 | |
3 | 3 | scriptversion=2018-03-07.03; # UTC |
4 | 4 | |
5 | # Copyright (C) 1996-2018 Free Software Foundation, Inc. | |
5 | # Copyright (C) 1996-2021 Free Software Foundation, Inc. | |
6 | 6 | # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. |
7 | 7 | |
8 | 8 | # This program is free software; you can redistribute it and/or modify |
0 | # Makefile.in generated by automake 1.16.1 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2018 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
220 | 220 | unique=`for i in $$list; do \ |
221 | 221 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
222 | 222 | done | $(am__uniquify_input)` |
223 | ETAGS = etags | |
224 | CTAGS = ctags | |
225 | 223 | am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/version.h.in \ |
226 | 224 | $(top_srcdir)/depcomp |
227 | 225 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
238 | 236 | CHECKATARI = @CHECKATARI@ |
239 | 237 | CPP = @CPP@ |
240 | 238 | CPPFLAGS = @CPPFLAGS@ |
239 | CSCOPE = @CSCOPE@ | |
240 | CTAGS = @CTAGS@ | |
241 | 241 | CYGPATH_W = @CYGPATH_W@ |
242 | 242 | DEFS = @DEFS@ |
243 | 243 | DEPDIR = @DEPDIR@ |
245 | 245 | ECHO_N = @ECHO_N@ |
246 | 246 | ECHO_T = @ECHO_T@ |
247 | 247 | EGREP = @EGREP@ |
248 | ETAGS = @ETAGS@ | |
248 | 249 | EXEEXT = @EXEEXT@ |
249 | 250 | GREP = @GREP@ |
250 | 251 | INSTALL = @INSTALL@ |
710 | 711 | |
711 | 712 | distclean-tags: |
712 | 713 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
713 | ||
714 | 714 | distdir: $(BUILT_SOURCES) |
715 | 715 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
716 | 716 |
6 | 6 | #include <sys/types.h> |
7 | 7 | #include <sys/stat.h> |
8 | 8 | #include <sys/ioctl.h> |
9 | #include <sys/sysmacros.h> | |
10 | 9 | #include <unistd.h> |
11 | 10 | #include <stdint.h> |
12 | 11 | #include <stdio.h> |
13 | 12 | #include <limits.h> |
13 | ||
14 | #ifdef HAVE_SYS_SYSMACROS_H | |
15 | #include <sys/sysmacros.h> | |
16 | #endif | |
14 | 17 | |
15 | 18 | #ifdef HAVE_LINUX_HDREG_H |
16 | 19 | #include <linux/hdreg.h> |
135 | 138 | } |
136 | 139 | #endif /* FDGETPRM */ |
137 | 140 | |
138 | #ifdef HAVE_SYS_DISKLABEL_H | |
141 | #ifdef DIOCGDINFO | |
139 | 142 | { |
140 | 143 | /* |
141 | 144 | * This code works for FreeBSD 4.11 i386, except for the full device |
163 | 166 | } |
164 | 167 | } |
165 | 168 | } |
166 | #endif /* HAVE_SYS_DISKLABEL_H */ | |
169 | #endif /* DIOCGDINFO */ | |
167 | 170 | |
168 | 171 | { |
169 | 172 | struct stat st; |
32 | 32 | #include <stdlib.h> |
33 | 33 | #include <sys/types.h> |
34 | 34 | #include <time.h> |
35 | #include <errno.h> | |
36 | #include <ctype.h> | |
35 | 37 | |
36 | 38 | #include "common.h" |
37 | 39 | #include "fsck.fat.h" |
671 | 673 | { |
672 | 674 | time_t now; |
673 | 675 | struct tm *mtime; |
676 | char *source_date_epoch = NULL; | |
674 | 677 | off_t offset; |
675 | 678 | int created; |
676 | 679 | DIR_ENT de; |
686 | 689 | if (de.name[0] == 0xe5) |
687 | 690 | de.name[0] = 0x05; |
688 | 691 | |
689 | now = time(NULL); | |
690 | mtime = (now != (time_t)-1) ? localtime(&now) : NULL; | |
692 | source_date_epoch = getenv("SOURCE_DATE_EPOCH"); | |
693 | if (source_date_epoch) { | |
694 | char *tmp = NULL; | |
695 | long long conversion = 0; | |
696 | errno = 0; | |
697 | conversion = strtoll(source_date_epoch, &tmp, 10); | |
698 | now = conversion; | |
699 | if (!isdigit((unsigned char)*source_date_epoch) || *tmp != '\0' | |
700 | || errno != 0 || (long long)now != conversion) { | |
701 | die("SOURCE_DATE_EPOCH is too big or contains non-digits: \"%s\"", | |
702 | source_date_epoch); | |
703 | } | |
704 | mtime = gmtime(&now); | |
705 | } else { | |
706 | now = time(NULL); | |
707 | mtime = (now != (time_t)-1) ? localtime(&now) : NULL; | |
708 | } | |
709 | ||
691 | 710 | if (mtime && mtime->tm_year >= 80 && mtime->tm_year <= 207) { |
692 | 711 | de.time = htole16((unsigned short)((mtime->tm_sec >> 1) + |
693 | 712 | (mtime->tm_min << 5) + |
743 | 762 | } |
744 | 763 | } |
745 | 764 | |
746 | const char *pretty_label(const char *label) | |
765 | const char *pretty_label(const char *label, char rep) | |
747 | 766 | { |
748 | 767 | static char buffer[256]; |
749 | 768 | char *p; |
756 | 775 | } |
757 | 776 | |
758 | 777 | p = buffer; |
759 | for (i = 0; i <= last && label[i] && p < buffer + sizeof(buffer) - 1; ++i) { | |
760 | if (!dos_char_to_printable(&p, label[i], buffer + sizeof(buffer) - 1 - p)) | |
761 | *p++ = '_'; | |
778 | for (i = 0; i <= last && p < buffer + sizeof(buffer) - 1; ++i) { | |
779 | if (!dos_char_to_printable(&p, label[i], buffer + sizeof(buffer) - 1 - p)) { | |
780 | if (rep) { | |
781 | *p++ = rep; | |
782 | } else if (p + 4 < buffer + sizeof(buffer) - 1) { | |
783 | *p++ = '\\'; | |
784 | *p++ = '0' + (label[i] >> 6); | |
785 | *p++ = '0' + ((label[i] >> 3) & 7); | |
786 | *p++ = '0' + (label[i] & 7); | |
787 | } | |
788 | } | |
762 | 789 | } |
763 | 790 | *p = 0; |
764 | 791 |
32 | 32 | void remove_label(DOS_FS *fs); |
33 | 33 | void write_serial(DOS_FS * fs, uint32_t serial); |
34 | 34 | off_t find_volume_de(DOS_FS * fs, DIR_ENT * de); |
35 | const char *pretty_label(const char *label); | |
35 | const char *pretty_label(const char *label, char rep); | |
36 | 36 | |
37 | 37 | /* Reads the boot sector from the currently open device and initializes *FS */ |
38 | 38 |
119 | 119 | { |
120 | 120 | size_t ret; |
121 | 121 | wchar_t wcs[2]; |
122 | if (!c) | |
123 | return 0; | |
122 | 124 | wcs[0] = (c & 0x80) ? cp850_table[c & 0x7F] : c; |
123 | 125 | wcs[1] = 0; |
124 | 126 | ret = wcstombs(*p, wcs, out_size); |
229 | 231 | size_t bytes_out = out_size; |
230 | 232 | if (!init_conversion(-1)) |
231 | 233 | return 0; |
234 | if (!c) | |
235 | return 0; | |
232 | 236 | if (internal_cp850) |
233 | 237 | return cp850_char_to_printable(p, c, out_size); |
234 | 238 | return iconv(dos_to_local, &pin, &bytes_in, p, &bytes_out) != (size_t)-1; |
152 | 152 | if (!file->offset) |
153 | 153 | return 0; |
154 | 154 | |
155 | /* check if we have neither a long filename nor a short name */ | |
156 | if ((file->lfn == NULL) && (file->dir_ent.lcase & FAT_NO_83NAME)) { | |
157 | return 1; | |
158 | } | |
159 | ||
160 | /* don't complain about the dummy 11 bytes used by patched Linux | |
161 | kernels */ | |
162 | if (file->dir_ent.lcase & FAT_NO_83NAME) | |
163 | return 0; | |
164 | ||
165 | 155 | for (i = 0; i < MSDOS_NAME; i++) { |
166 | 156 | if ((name[i] < ' ' && !(i == 0 && name[0] == 0x05)) || name[i] == 0x7f) |
167 | 157 | return 1; |
273 | 263 | (const char *)file->dir_ent.name, MSDOS_NAME)) |
274 | 264 | break; |
275 | 265 | if (!walk) { |
276 | if (file->dir_ent.lcase & FAT_NO_83NAME) { | |
277 | /* as we only assign a new 8.3 filename, reset flag that 8.3 name is not | |
278 | present */ | |
279 | file->dir_ent.lcase &= ~FAT_NO_83NAME; | |
280 | /* reset the attributes, only keep DIR and VOLUME */ | |
281 | file->dir_ent.attr &= ~(ATTR_DIR | ATTR_VOLUME); | |
282 | fs_write(file->offset, MSDOS_NAME + 2, &file->dir_ent); | |
283 | } else { | |
284 | fs_write(file->offset, MSDOS_NAME, file->dir_ent.name); | |
285 | } | |
266 | fs_write(file->offset, MSDOS_NAME, file->dir_ent.name); | |
286 | 267 | if (file->lfn) { |
287 | 268 | lfn_remove(file->lfn_offset, file->offset); |
288 | 269 | file->lfn = NULL; |
315 | 296 | walk[1] = 0; |
316 | 297 | for (walk = name; *walk == ' ' || *walk == '\t'; walk++) ; |
317 | 298 | if (file_cvt(walk, file->dir_ent.name)) { |
318 | if (file->dir_ent.lcase & FAT_NO_83NAME) { | |
319 | /* as we only assign a new 8.3 filename, reset flag that 8.3 name is not | |
320 | present */ | |
321 | file->dir_ent.lcase &= ~FAT_NO_83NAME; | |
322 | /* reset the attributes, only keep DIR and VOLUME */ | |
323 | file->dir_ent.attr &= ~(ATTR_DIR | ATTR_VOLUME); | |
324 | fs_write(file->offset, MSDOS_NAME + 2, &file->dir_ent); | |
325 | } else { | |
326 | fs_write(file->offset, MSDOS_NAME, file->dir_ent.name); | |
327 | } | |
299 | fs_write(file->offset, MSDOS_NAME, file->dir_ent.name); | |
328 | 300 | if (file->lfn) { |
329 | 301 | lfn_remove(file->lfn_offset, file->offset); |
330 | 302 | file->lfn = NULL; |
427 | 399 | } |
428 | 400 | } |
429 | 401 | } |
430 | if (file->dir_ent.lcase & FAT_NO_83NAME) { | |
431 | /* Some versions of mtools write these directory entries with random data in | |
432 | this field. */ | |
433 | printf("%s\n Is a dot with no 8.3 name flag set, clearing.\n", path_name(file)); | |
434 | file->dir_ent.lcase &= ~FAT_NO_83NAME; | |
435 | MODIFY(file, lcase, file->dir_ent.lcase); | |
436 | } | |
437 | 402 | |
438 | 403 | return 0; |
439 | 404 | |
525 | 490 | break; |
526 | 491 | } |
527 | 492 | if (!(file->dir_ent.attr & ATTR_DIR) && le32toh(file->dir_ent.size) <= |
528 | clusters * fs->cluster_size) { | |
493 | (unsigned long long)clusters * fs->cluster_size) { | |
529 | 494 | printf |
530 | ("%s\n File size is %u bytes, cluster chain length is > %u " | |
531 | "bytes.\n Truncating file to %u bytes.\n", path_name(file), | |
495 | ("%s\n" | |
496 | " File size is %u bytes, cluster chain length is %llu bytes.\n" | |
497 | " Truncating file to %u bytes (%u clusters).\n", | |
498 | path_name(file), | |
532 | 499 | le32toh(file->dir_ent.size), |
533 | (unsigned)clusters * fs->cluster_size, | |
534 | le32toh(file->dir_ent.size)); | |
500 | (unsigned long long)clusters * fs->cluster_size, | |
501 | (((unsigned long long)clusters * fs->cluster_size <= UINT32_MAX) ? | |
502 | (clusters * fs->cluster_size) : UINT32_MAX), | |
503 | clusters); | |
535 | 504 | truncate_file(fs, file, clusters); |
536 | 505 | break; |
537 | 506 | } |
546 | 515 | break; |
547 | 516 | else { |
548 | 517 | if ((unsigned long long)clusters2 * fs->cluster_size >= UINT32_MAX) |
549 | die("Internal error: File size is larger than 2^32-1"); | |
518 | die("Internal error: Cluster chain is larger than 2^32"); | |
550 | 519 | clusters2++; |
551 | 520 | } |
552 | 521 | restart = file->dir_ent.attr & ATTR_DIR; |
553 | 522 | if (!owner->offset) { |
554 | printf(" Truncating second to %u bytes because first " | |
555 | "is FAT32 root dir.\n", | |
556 | (unsigned)clusters * fs->cluster_size); | |
523 | printf(" Truncating second to %llu bytes (%u clusters) " | |
524 | "because first is FAT32 root dir.\n", | |
525 | (unsigned long long)clusters * fs->cluster_size, clusters); | |
557 | 526 | do_trunc = 2; |
558 | 527 | } else if (!file->offset) { |
559 | printf(" Truncating first to %u bytes because second " | |
560 | "is FAT32 root dir.\n", | |
561 | (unsigned)clusters2 * fs->cluster_size); | |
528 | printf(" Truncating first to %llu bytes (%u clusters) " | |
529 | "because second is FAT32 root dir.\n", | |
530 | (unsigned long long)clusters2 * fs->cluster_size, clusters); | |
562 | 531 | do_trunc = 1; |
563 | 532 | } else { |
564 | 533 | char *trunc_first_string; |
566 | 535 | char *noninteractive_string; |
567 | 536 | |
568 | 537 | xasprintf(&trunc_first_string, |
569 | "Truncate first to %u bytes%s", | |
570 | (unsigned)clusters2 * fs->cluster_size, | |
538 | "Truncate first to %llu bytes (clusters %u)%s", | |
539 | (unsigned long long)clusters2 * fs->cluster_size, clusters2, | |
571 | 540 | restart ? " and restart" : ""); |
572 | 541 | xasprintf(&trunc_second_string, |
573 | "Truncate second to %u bytes", | |
574 | (unsigned)clusters * fs->cluster_size); | |
542 | "Truncate second to %llu bytes (clusters %u)", | |
543 | (unsigned long long)clusters * fs->cluster_size, clusters); | |
575 | 544 | xasprintf(&noninteractive_string, |
576 | " Truncating second to %u bytes.", | |
577 | (unsigned)clusters * fs->cluster_size); | |
545 | " Truncating second to %llu bytes (clusters %u).", | |
546 | (unsigned long long)clusters * fs->cluster_size, clusters); | |
578 | 547 | |
579 | 548 | do_trunc = get_choice(2, noninteractive_string, |
580 | 549 | 2, |
596 | 565 | set_fat(fs, prev, -1); |
597 | 566 | else |
598 | 567 | MODIFY_START(owner, 0, fs); |
599 | MODIFY(owner, size, htole32(clusters * fs->cluster_size)); | |
568 | if ((unsigned long long)clusters * fs->cluster_size > UINT32_MAX) | |
569 | MODIFY(owner, size, htole32(UINT32_MAX)); | |
570 | else | |
571 | MODIFY(owner, size, htole32(clusters * fs->cluster_size)); | |
600 | 572 | if (restart) |
601 | 573 | return 1; |
602 | 574 | while (this > 0 && this != -1) { |
607 | 579 | break; |
608 | 580 | } |
609 | 581 | if ((unsigned long long)clusters * fs->cluster_size >= UINT32_MAX) |
610 | die("Internal error: File size is larger than 2^32-1"); | |
582 | die("Internal error: Cluster chain is larger than 2^32"); | |
611 | 583 | clusters++; |
612 | 584 | prev = this; |
613 | 585 | } |
624 | 596 | } |
625 | 597 | set_owner(fs, curr, file); |
626 | 598 | if ((unsigned long long)clusters * fs->cluster_size >= UINT32_MAX) |
627 | die("Internal error: File size is larger than 2^32-1"); | |
599 | die("Internal error: Cluster chain is larger than 2^32"); | |
628 | 600 | clusters++; |
629 | 601 | prev = curr; |
630 | 602 | } |
631 | 603 | if (!(file->dir_ent.attr & ATTR_DIR) && le32toh(file->dir_ent.size) > |
632 | clusters * fs->cluster_size) { | |
604 | (unsigned long long)clusters * fs->cluster_size) { | |
605 | unsigned int new_size; | |
606 | if ((unsigned long long)clusters * fs->cluster_size > UINT32_MAX) | |
607 | new_size = UINT32_MAX; | |
608 | else | |
609 | new_size = clusters * fs->cluster_size; | |
633 | 610 | printf |
634 | ("%s\n File size is %u bytes, cluster chain length is %u bytes." | |
635 | "\n Truncating file to %u bytes.\n", path_name(file), | |
611 | ("%s\n" | |
612 | " File size is %u bytes, cluster chain length is %llu bytes.\n" | |
613 | " Truncating file to %u bytes (%u clusters).\n", | |
614 | path_name(file), | |
636 | 615 | le32toh(file->dir_ent.size), |
637 | (unsigned)clusters * fs->cluster_size, | |
638 | (unsigned)clusters * fs->cluster_size); | |
639 | MODIFY(file, size, | |
640 | htole32(clusters * fs->cluster_size)); | |
616 | (unsigned long long)clusters * fs->cluster_size, | |
617 | new_size, clusters); | |
618 | MODIFY(file, size, htole32(new_size)); | |
641 | 619 | } |
642 | 620 | return 0; |
643 | 621 | } |
1165 | 1143 | |
1166 | 1144 | ret = validate_volume_label(fs->label); |
1167 | 1145 | if (ret & ~0x1) { |
1168 | printf("Label '%s' stored in boot sector is not valid.\n", pretty_label(fs->label)); | |
1146 | printf("Label '%s' stored in boot sector is not valid.\n", pretty_label(fs->label, 0)); | |
1169 | 1147 | switch (get_choice(1, " Auto-removing label from boot sector.", |
1170 | 1148 | 2, |
1171 | 1149 | 1, "Remove invalid label from boot sector", |
1181 | 1159 | return 1; |
1182 | 1160 | } |
1183 | 1161 | } else if ((ret & 0x1) && only_uppercase_label) { |
1184 | printf("Label '%s' stored in boot sector contains lowercase characters.\n", pretty_label(fs->label)); | |
1162 | printf("Label '%s' stored in boot sector contains lowercase characters.\n", pretty_label(fs->label, 0)); | |
1185 | 1163 | switch (get_choice(1, " Auto-changing lowercase characters to uppercase", |
1186 | 1164 | 3, |
1187 | 1165 | 1, "Change lowercase characters to uppercase", |
1228 | 1206 | check_boot_label(fs); |
1229 | 1207 | |
1230 | 1208 | if (offset == 0 && memcmp(fs->label, "NO NAME ", 11) != 0) { |
1231 | printf("Label in boot sector is '%s', but there is no volume label in root directory.\n", pretty_label(fs->label)); | |
1209 | printf("Label in boot sector is '%s', but there is no volume label in root directory.\n", pretty_label(fs->label, 0)); | |
1232 | 1210 | switch (get_choice(1, " Auto-removing label from boot sector.", |
1233 | 1211 | 2, |
1234 | 1212 | 1, "Remove label from boot sector", |
1250 | 1228 | doslabel[0] = 0xe5; |
1251 | 1229 | ret = validate_volume_label(doslabel); |
1252 | 1230 | if (ret & ~0x1) { |
1253 | printf("Volume label '%s' stored in root directory is not valid.\n", pretty_label(doslabel)); | |
1231 | printf("Volume label '%s' stored in root directory is not valid.\n", pretty_label(doslabel, 0)); | |
1254 | 1232 | switch (get_choice(1, " Auto-removing label.", |
1255 | 1233 | 2, |
1256 | 1234 | 1, "Remove invalid label", |
1267 | 1245 | break; |
1268 | 1246 | } |
1269 | 1247 | } else if ((ret & 0x1) && only_uppercase_label) { |
1270 | printf("Volume label '%s' stored in root directory contains lowercase characters.\n", pretty_label(doslabel)); | |
1248 | printf("Volume label '%s' stored in root directory contains lowercase characters.\n", pretty_label(doslabel, 0)); | |
1271 | 1249 | switch (get_choice(1, " Auto-changing lowercase characters to uppercase", |
1272 | 1250 | 3, |
1273 | 1251 | 1, "Change lowercase characters to uppercase", |
1300 | 1278 | again: |
1301 | 1279 | |
1302 | 1280 | if (offset != 0 && memcmp(fs->label, "NO NAME ", 11) == 0 && memcmp(doslabel, "NO NAME ", 11) != 0) { |
1303 | printf("There is no label in boot sector, but there is volume label '%s' stored in root directory\n", pretty_label(doslabel)); | |
1281 | printf("There is no label in boot sector, but there is volume label '%s' stored in root directory\n", pretty_label(doslabel, 0)); | |
1304 | 1282 | switch (get_choice(1, " Auto-copying volume label from root directory to boot sector.", |
1305 | 1283 | 2, |
1306 | 1284 | 1, "Copy volume label from root directory to boot sector", |
1317 | 1295 | } |
1318 | 1296 | |
1319 | 1297 | if (offset != 0 && memcmp(fs->label, "NO NAME ", 11) != 0 && memcmp(fs->label, doslabel, 11) != 0) { |
1320 | strncpy(buffer, pretty_label(doslabel), sizeof(buffer)-1); | |
1298 | strncpy(buffer, pretty_label(doslabel, 0), sizeof(buffer)-1); | |
1321 | 1299 | buffer[sizeof(buffer)-1] = 0; |
1322 | printf("Volume label '%s' stored in root directory and label '%s' stored in boot sector and different.\n", buffer, pretty_label(fs->label)); | |
1300 | printf("Volume label '%s' stored in root directory and label '%s' stored in boot sector and different.\n", buffer, pretty_label(fs->label, 0)); | |
1323 | 1301 | switch (get_choice(1, " Auto-copying volume label from root directory to boot sector.", |
1324 | 1302 | 2, |
1325 | 1303 | 1, "Copy volume label from root directory to boot sector", |
29 | 29 | #include <string.h> |
30 | 30 | #include <stdarg.h> |
31 | 31 | #include <errno.h> |
32 | #include <ctype.h> | |
32 | 33 | #include <wctype.h> |
33 | 34 | #include <termios.h> |
34 | 35 | #include <sys/time.h> |
297 | 298 | uint32_t generate_volume_id(void) |
298 | 299 | { |
299 | 300 | struct timeval now; |
300 | ||
301 | if (gettimeofday(&now, NULL) != 0 || now.tv_sec == (time_t)-1 || now.tv_sec < 0) { | |
301 | char *source_date_epoch = NULL; | |
302 | ||
303 | source_date_epoch = getenv("SOURCE_DATE_EPOCH"); | |
304 | if (source_date_epoch) { | |
305 | char *tmp = NULL; | |
306 | long long conversion = 0; | |
307 | errno = 0; | |
308 | conversion = strtoll(source_date_epoch, &tmp, 10); | |
309 | if (!isdigit((unsigned char)*source_date_epoch) || *tmp != '\0' | |
310 | || errno != 0) { | |
311 | die("SOURCE_DATE_EPOCH is too big or contains non-digits: \"%s\"", | |
312 | source_date_epoch); | |
313 | } | |
314 | return (uint32_t)conversion; | |
315 | } else if (gettimeofday(&now, NULL) != 0 || now.tv_sec == (time_t)-1 || now.tv_sec < 0) { | |
302 | 316 | srand(getpid()); |
303 | 317 | /* rand() returns int from [0,RAND_MAX], therefore only 31 bits */ |
304 | 318 | return (((uint32_t)(rand() & 0xFFFF)) << 16) | ((uint32_t)(rand() & 0xFFFF)); |
345 | 359 | code page) are not allowed. |
346 | 360 | */ |
347 | 361 | for (i = 0; i < 11; i++) { |
348 | if (doslabel[i] < 0x20) | |
362 | if ((unsigned) doslabel[i] < 0x20) | |
349 | 363 | ret |= 0x02; |
350 | 364 | if (doslabel[i] == 0x22 || |
351 | 365 | (doslabel[i] >= 0x2A && doslabel[i] <= 0x2C) || |
23 | 23 | #include <sys/types.h> |
24 | 24 | #include <sys/stat.h> |
25 | 25 | #include <sys/ioctl.h> |
26 | ||
27 | #ifdef HAVE_SYS_SYSMACROS_H | |
26 | 28 | #include <sys/sysmacros.h> |
29 | #endif | |
27 | 30 | |
28 | 31 | #ifdef HAVE_LINUX_LOOP_H |
29 | 32 | #include <linux/loop.h> |
122 | 122 | if (fat_table > fs->nfats) |
123 | 123 | die("Requested FAT table %ld does not exist.", fat_table); |
124 | 124 | if (fat_table > 2) |
125 | die("Reading FAT table greather than 2 is implemented yet."); | |
125 | die("Reading FAT table greather than 2 is not implemented yet."); | |
126 | 126 | |
127 | 127 | /* Clean up from previous pass */ |
128 | 128 | release_fat(fs); |
118 | 118 | if (offset != 0) { |
119 | 119 | if (de.name[0] == 0x05) |
120 | 120 | de.name[0] = 0xe5; |
121 | printf("%s\n", pretty_label((char *)de.name)); | |
121 | printf("%s\n", pretty_label((char *)de.name, '_')); | |
122 | 122 | } |
123 | 123 | |
124 | 124 | if (fs.fat_bits == 32) |
151 | 151 | errno = 0; |
152 | 152 | conversion = strtoll(newserial, &tmp, 16); |
153 | 153 | |
154 | if (!*newserial || isspace(*newserial) || *tmp || conversion < 0) { | |
154 | if (!*newserial || isspace((unsigned char)*newserial) || *tmp || conversion < 0) { | |
155 | 155 | fprintf(stderr, "fatlabel: volume ID must be a hexadecimal number\n"); |
156 | 156 | exit(1); |
157 | 157 | } |
181 | 181 | } |
182 | 182 | |
183 | 183 | |
184 | static void usage(int error, int usage_only) | |
184 | static void usage(char *name, int error, int usage_only) | |
185 | 185 | { |
186 | 186 | FILE *f = error ? stderr : stdout; |
187 | 187 | int status = error ? 1 : 0; |
188 | 188 | |
189 | fprintf(f, "Usage: fatlabel [OPTIONS] DEVICE [NEW]\n"); | |
189 | fprintf(f, "fatlabel " VERSION " (" VERSION_DATE ")\n"); | |
190 | fprintf(f, "Usage: %s [OPTIONS] DEVICE [NEW]\n", name); | |
190 | 191 | if (usage_only) |
191 | 192 | exit(status); |
192 | 193 | |
237 | 238 | case 'c': |
238 | 239 | errno = 0; |
239 | 240 | codepage = strtol(optarg, &tmp, 10); |
240 | if (!*optarg || isspace(*optarg) || *tmp || errno || codepage < 0 || codepage > INT_MAX) { | |
241 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || codepage < 0 || codepage > INT_MAX) { | |
241 | 242 | fprintf(stderr, "Invalid codepage : %s\n", optarg); |
242 | usage(1, 0); | |
243 | usage(argv[0], 1, 0); | |
243 | 244 | } |
244 | 245 | if (!set_dos_codepage(codepage)) |
245 | usage(1, 0); | |
246 | usage(argv[0], 1, 0); | |
246 | 247 | break; |
247 | 248 | |
248 | 249 | case 'V': |
251 | 252 | break; |
252 | 253 | |
253 | 254 | case 'h': |
254 | usage(0, 0); | |
255 | usage(argv[0], 0, 0); | |
255 | 256 | break; |
256 | 257 | |
257 | 258 | case '?': |
258 | usage(1, 0); | |
259 | usage(argv[0], 1, 0); | |
259 | 260 | exit(1); |
260 | 261 | |
261 | 262 | default: |
273 | 274 | } else if (optind == argc - 1) { |
274 | 275 | change = false; |
275 | 276 | } else { |
276 | usage(1, 1); | |
277 | usage(argv[0], 1, 1); | |
277 | 278 | } |
278 | 279 | |
279 | 280 | if (change || reset) |
123 | 123 | rw = interactive = 1; |
124 | 124 | check_atari(); |
125 | 125 | |
126 | printf("fsck.fat " VERSION " (" VERSION_DATE ")\n"); | |
127 | ||
126 | 128 | while ((c = getopt_long(argc, argv, "Aac:d:bfF:lnprStu:UvVwy", |
127 | 129 | long_options, NULL)) != -1) |
128 | 130 | switch (c) { |
144 | 146 | case 'c': |
145 | 147 | errno = 0; |
146 | 148 | codepage = strtol(optarg, &tmp, 10); |
147 | if (!*optarg || isspace(*optarg) || *tmp || errno || codepage < 0 || codepage > INT_MAX) { | |
149 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || codepage < 0 || codepage > INT_MAX) { | |
148 | 150 | fprintf(stderr, "Invalid codepage : %s\n", optarg); |
149 | 151 | usage(argv[0], 2); |
150 | 152 | } |
160 | 162 | case 'F': |
161 | 163 | errno = 0; |
162 | 164 | fat_table = strtol(optarg, &tmp, 10); |
163 | if (!*optarg || isspace(*optarg) || *tmp || errno || fat_table < 0 || fat_table > 255) { | |
165 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || fat_table < 0 || fat_table > 255) { | |
164 | 166 | fprintf(stderr, "Invalid FAT table : %s\n", optarg); |
165 | 167 | usage(argv[0], 2); |
166 | 168 | } |
227 | 229 | if (optind != argc - 1) |
228 | 230 | usage(argv[0], 2); |
229 | 231 | |
230 | printf("fsck.fat " VERSION " (" VERSION_DATE ")\n"); | |
231 | 232 | fs_open(argv[optind], rw); |
232 | 233 | |
233 | 234 | read_boot(&fs); |
123 | 123 | uint32_t next_cluster; /* Most recently allocated cluster. */ |
124 | 124 | uint8_t reserved2[12]; |
125 | 125 | uint32_t boot_sign; |
126 | }; | |
126 | } __attribute__ ((packed)); | |
127 | 127 | |
128 | 128 | typedef struct { |
129 | 129 | uint8_t name[MSDOS_NAME]; /* name including extension */ |
130 | 130 | uint8_t attr; /* attribute bits */ |
131 | uint8_t lcase; /* Case for base and extension */ | |
131 | uint8_t ntbyte; /* Case for base and extension, encryption flags and padding size */ | |
132 | 132 | uint8_t ctime_ms; /* Creation time, milliseconds */ |
133 | 133 | uint16_t ctime; /* Creation time */ |
134 | 134 | uint16_t cdate; /* Creation date */ |
193 | 193 | /* return -16 as a number with fs->fat_bits bits */ |
194 | 194 | #define FAT_EXTD(fs) (((1 << fs->eff_fat_bits)-1) & ~0xf) |
195 | 195 | |
196 | /* marker for files with no 8.3 name */ | |
197 | #define FAT_NO_83NAME 32 | |
198 | ||
199 | 196 | #endif |
42 | 42 | uint8_t name5_10[12]; /* 6 more characters in name */ |
43 | 43 | uint16_t start; /* starting cluster number, 0 in long slots */ |
44 | 44 | uint8_t name11_12[4]; /* last 2 characters in name */ |
45 | } LFN_ENT; | |
45 | } __attribute__ ((packed)) LFN_ENT; | |
46 | 46 | |
47 | 47 | #define LFN_ID_START 0x40 |
48 | 48 | #define LFN_ID_SLOTMASK 0x1f |
406 | 406 | die("lfn_get called with LFN directory entry"); |
407 | 407 | |
408 | 408 | #if 0 |
409 | if (de->lcase) | |
410 | printf("lcase=%02x\n", de->lcase); | |
409 | if (de->ntbyte) | |
410 | printf("ntbyte=%02x\n", de->ntbyte); | |
411 | 411 | #endif |
412 | 412 | |
413 | 413 | if (lfn_slot == -1) |
150 | 150 | uint8_t boot_jump[3]; /* Boot strap short or near jump */ |
151 | 151 | uint8_t system_id[8]; /* Name - can be used to special case |
152 | 152 | partition manager volumes */ |
153 | uint8_t sector_size[2]; /* bytes per logical sector */ | |
153 | uint16_t sector_size; /* bytes per logical sector */ | |
154 | 154 | uint8_t cluster_size; /* sectors/cluster */ |
155 | 155 | uint16_t reserved; /* reserved sectors */ |
156 | 156 | uint8_t fats; /* number of FATs */ |
157 | uint8_t dir_entries[2]; /* root directory entries */ | |
158 | uint8_t sectors[2]; /* number of sectors */ | |
157 | uint16_t dir_entries; /* root directory entries */ | |
158 | uint16_t sectors; /* number of sectors */ | |
159 | 159 | uint8_t media; /* media code (unused) */ |
160 | 160 | uint16_t fat_length; /* sectors/FAT */ |
161 | 161 | uint16_t secs_track; /* sectors per track */ |
467 | 467 | |
468 | 468 | check = end; |
469 | 469 | while (*check) { |
470 | if (!isspace(*check)) { | |
470 | if (!isspace((unsigned char)*check)) { | |
471 | 471 | fprintf(stderr, |
472 | 472 | "Badly formed number in bad blocks file line %d\n", |
473 | 473 | lineno); |
1073 | 1073 | } |
1074 | 1074 | |
1075 | 1075 | /* If is not available then generate random 32 bit disk signature */ |
1076 | if (invariant) | |
1076 | if (invariant || getenv("SOURCE_DATE_EPOCH")) | |
1077 | 1077 | disk_sig = volume_id; |
1078 | 1078 | else if (!disk_sig) |
1079 | 1079 | disk_sig = generate_volume_id(); |
1094 | 1094 | partition[3] = 0; |
1095 | 1095 | |
1096 | 1096 | /* Partition type */ |
1097 | if (le16toh(bs.heads) > 254 || le16toh(bs.secs_track) > 63) { /* CHS values are out of range for MBR, use LBA */ | |
1097 | if (le16toh(bs.heads) > 255 || le16toh(bs.secs_track) > 63) { /* CHS values are out of range for MBR, use LBA */ | |
1098 | 1098 | if (size_fat != 32) |
1099 | 1099 | partition[4] = 0x0E; /* BIG FAT16 (LBA) */ |
1100 | 1100 | else |
1111 | 1111 | partition[4] = 0x0C; /* FAT32 (LBA) */ |
1112 | 1112 | |
1113 | 1113 | /* CHS address of the last sector */ |
1114 | if (le16toh(bs.heads) > 254 || le16toh(bs.secs_track) > 63 || num_sectors >= le16toh(bs.secs_track) * le16toh(bs.heads) * 1024) { | |
1114 | if (le16toh(bs.heads) > 255 || le16toh(bs.secs_track) > 63 || num_sectors >= le16toh(bs.secs_track) * le16toh(bs.heads) * 1024) { | |
1115 | 1115 | /* If CHS address is too large use tuple (1023, 254, 63) */ |
1116 | 1116 | partition[5] = 254; |
1117 | 1117 | partition[6] = 255; |
1135 | 1135 | partition[15] = (num_sectors >> 24) & 0xFF; |
1136 | 1136 | } |
1137 | 1137 | |
1138 | bs.sector_size[0] = (char)(sector_size & 0x00ff); | |
1139 | bs.sector_size[1] = (char)((sector_size & 0xff00) >> 8); | |
1140 | ||
1141 | bs.dir_entries[0] = (char)(root_dir_entries & 0x00ff); | |
1142 | bs.dir_entries[1] = (char)((root_dir_entries & 0xff00) >> 8); | |
1138 | bs.sector_size = htole16((uint16_t) sector_size); | |
1139 | bs.dir_entries = htole16((uint16_t)root_dir_entries); | |
1143 | 1140 | |
1144 | 1141 | if (size_fat == 32) { |
1145 | 1142 | /* set up additional FAT32 fields */ |
1179 | 1176 | "or higher.\n"); |
1180 | 1177 | } |
1181 | 1178 | if (num_sectors >= 65536) { |
1182 | bs.sectors[0] = (char)0; | |
1183 | bs.sectors[1] = (char)0; | |
1179 | bs.sectors = htole16(0); | |
1184 | 1180 | bs.total_sect = htole32(num_sectors); |
1185 | 1181 | } else { |
1186 | bs.sectors[0] = (char)(num_sectors & 0x00ff); | |
1187 | bs.sectors[1] = (char)((num_sectors & 0xff00) >> 8); | |
1182 | bs.sectors = htole16((uint16_t) num_sectors); | |
1188 | 1183 | if (!atari_format) |
1189 | 1184 | bs.total_sect = htole32(0); |
1190 | 1185 | } |
1215 | 1210 | device_name, le16toh(bs.heads), |
1216 | 1211 | (le16toh(bs.heads) != 1) ? "s" : "", le16toh(bs.secs_track), |
1217 | 1212 | (le16toh(bs.secs_track) != 1) ? "s" : ""); |
1218 | printf("hidden sectors 0x%04x;\n", hidden_sectors); | |
1213 | printf("hidden sectors %u;\n", hidden_sectors); | |
1219 | 1214 | printf("logical sector size is %d,\n", sector_size); |
1220 | 1215 | printf("using 0x%02x media descriptor, with %u sectors;\n", |
1221 | 1216 | (int)(bs.media), (unsigned)num_sectors); |
1231 | 1226 | reserved_sectors, (reserved_sectors != 1) ? "s" : ""); |
1232 | 1227 | |
1233 | 1228 | if (size_fat != 32) { |
1234 | unsigned root_dir_entries = | |
1235 | bs.dir_entries[0] + ((bs.dir_entries[1]) * 256); | |
1229 | unsigned root_dir_entries = le16toh(bs.dir_entries); | |
1236 | 1230 | unsigned root_dir_sectors = |
1237 | 1231 | cdiv(root_dir_entries * 32, sector_size); |
1238 | 1232 | printf("Root directory contains %u slots and uses %u sectors.\n", |
1271 | 1265 | |
1272 | 1266 | size_root_dir = (size_fat == 32) ? |
1273 | 1267 | bs.cluster_size * sector_size : |
1274 | (((int)bs.dir_entries[1] * 256 + (int)bs.dir_entries[0]) * | |
1275 | sizeof(struct msdos_dir_entry)); | |
1268 | le16toh(bs.dir_entries) * sizeof(struct msdos_dir_entry); | |
1269 | ||
1276 | 1270 | if ((root_dir = (struct msdos_dir_entry *)malloc(size_root_dir)) == NULL) { |
1277 | 1271 | free(fat); /* Tidy up before we die! */ |
1278 | 1272 | die("unable to allocate space for root directory in memory"); |
1286 | 1280 | de->name[0] = 0x05; |
1287 | 1281 | de->attr = ATTR_VOLUME; |
1288 | 1282 | if (create_time != (time_t)-1) { |
1289 | if (!invariant) | |
1283 | if (!invariant && !getenv("SOURCE_DATE_EPOCH")) | |
1290 | 1284 | ctime = localtime(&create_time); |
1291 | 1285 | else |
1292 | 1286 | ctime = gmtime(&create_time); |
1454 | 1448 | fprintf(stderr, " -v Verbose execution\n"); |
1455 | 1449 | fprintf(stderr, " --variant=TYPE Select variant TYPE of filesystem (standard or Atari)\n"); |
1456 | 1450 | fprintf(stderr, "\n"); |
1457 | fprintf(stderr, " --invariant Use constants for randomly generated or time based values\n"); | |
1458 | 1451 | fprintf(stderr, " --offset=SECTOR Write the filesystem at a specific sector into the device file.\n"); |
1459 | 1452 | fprintf(stderr, " --help Show this help message and exit\n"); |
1460 | 1453 | exit(exitval); |
1476 | 1469 | int blocks_specified = 0; |
1477 | 1470 | struct timeval create_timeval; |
1478 | 1471 | long long conversion; |
1472 | char *source_date_epoch = NULL; | |
1479 | 1473 | |
1480 | 1474 | enum {OPT_HELP=1000, OPT_INVARIANT, OPT_MBR, OPT_VARIANT, OPT_CODEPAGE, OPT_OFFSET}; |
1481 | 1475 | const struct option long_options[] = { |
1496 | 1490 | program_name = p + 1; |
1497 | 1491 | } |
1498 | 1492 | |
1499 | if (gettimeofday(&create_timeval, NULL) == 0 && create_timeval.tv_sec != (time_t)-1) | |
1493 | source_date_epoch = getenv("SOURCE_DATE_EPOCH"); | |
1494 | if (source_date_epoch) { | |
1495 | errno = 0; | |
1496 | conversion = strtoll(source_date_epoch, &tmp, 10); | |
1497 | create_time = conversion; | |
1498 | if (!isdigit((unsigned char)*source_date_epoch) || *tmp != '\0' | |
1499 | || errno != 0 || (long long)create_time != conversion) { | |
1500 | die("SOURCE_DATE_EPOCH is too big or contains non-digits: \"%s\"", | |
1501 | source_date_epoch); | |
1502 | } | |
1503 | } else if (gettimeofday(&create_timeval, NULL) == 0 && create_timeval.tv_sec != (time_t)-1) { | |
1500 | 1504 | create_time = create_timeval.tv_sec; |
1505 | } | |
1506 | ||
1501 | 1507 | volume_id = generate_volume_id(); |
1502 | 1508 | check_atari(); |
1503 | 1509 | |
1518 | 1524 | case 'b': /* b : location of backup boot sector */ |
1519 | 1525 | errno = 0; |
1520 | 1526 | conversion = strtol(optarg, &tmp, 0); |
1521 | if (!*optarg || isspace(*optarg) || *tmp || errno || conversion < 0 || conversion > 0xffff) { | |
1527 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || conversion < 0 || conversion > 0xffff) { | |
1522 | 1528 | printf("Bad location for backup boot sector : %s\n", optarg); |
1523 | 1529 | usage(argv[0], 1); |
1524 | 1530 | } |
1538 | 1544 | case 'D': /* D : Choose Drive Number */ |
1539 | 1545 | errno = 0; |
1540 | 1546 | conversion = strtol(optarg, &tmp, 0); |
1541 | if (!*optarg || isspace(*optarg) || *tmp || errno || conversion < 0x00 || conversion > 0xFF) { | |
1547 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || conversion < 0x00 || conversion > 0xFF) { | |
1542 | 1548 | printf ("Bad drive number: %s\n", optarg); |
1543 | 1549 | usage(argv[0], 1); |
1544 | 1550 | } |
1549 | 1555 | case 'f': /* f : Choose number of FATs */ |
1550 | 1556 | errno = 0; |
1551 | 1557 | conversion = strtol(optarg, &tmp, 0); |
1552 | if (!*optarg || isspace(*optarg) || *tmp || errno || conversion < 1 || conversion > 4) { | |
1558 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || conversion < 1 || conversion > 4) { | |
1553 | 1559 | printf("Bad number of FATs : %s\n", optarg); |
1554 | 1560 | usage(argv[0], 1); |
1555 | 1561 | } |
1559 | 1565 | case 'F': /* F : Choose FAT size */ |
1560 | 1566 | errno = 0; |
1561 | 1567 | conversion = strtol(optarg, &tmp, 0); |
1562 | if (!*optarg || isspace(*optarg) || *tmp || errno || (conversion != 12 && conversion != 16 && conversion != 32)) { | |
1568 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || (conversion != 12 && conversion != 16 && conversion != 32)) { | |
1563 | 1569 | printf("Bad FAT type : %s\n", optarg); |
1564 | 1570 | usage(argv[0], 1); |
1565 | 1571 | } |
1570 | 1576 | case 'g': /* g : geometry: heads and sectors per track */ |
1571 | 1577 | errno = 0; |
1572 | 1578 | conversion = strtol(optarg, &tmp, 0); |
1573 | if (!*optarg || isspace(*optarg) || tmp[0] != '/' || !tmp[1] || isspace(tmp[1]) || errno || conversion <= 0 || conversion > UINT16_MAX) { | |
1579 | if (!*optarg || isspace((unsigned char)*optarg) || tmp[0] != '/' || !tmp[1] || isspace((unsigned char)tmp[1]) || errno || conversion <= 0 || conversion > UINT16_MAX) { | |
1574 | 1580 | printf("Bad format of geometry : %s\n", optarg); |
1575 | 1581 | usage(argv[0], 1); |
1576 | 1582 | } |
1586 | 1592 | case 'h': /* h : number of hidden sectors */ |
1587 | 1593 | errno = 0; |
1588 | 1594 | conversion = strtoll(optarg, &tmp, 0); |
1589 | if (!*optarg || isspace(*optarg) || *tmp || errno || conversion < 0 || conversion > UINT32_MAX) { | |
1595 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || conversion < 0 || conversion > UINT32_MAX) { | |
1590 | 1596 | printf("Bad number of hidden sectors : %s\n", optarg); |
1591 | 1597 | usage(argv[0], 1); |
1592 | 1598 | } |
1602 | 1608 | errno = 0; |
1603 | 1609 | conversion = strtoll(optarg, &tmp, 16); |
1604 | 1610 | |
1605 | if (!*optarg || isspace(*optarg) || *tmp || conversion < 0) { | |
1611 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || conversion < 0) { | |
1606 | 1612 | printf("Volume ID must be a hexadecimal number\n"); |
1607 | 1613 | usage(argv[0], 1); |
1608 | 1614 | } |
1686 | 1692 | case 'M': /* M : FAT Media byte */ |
1687 | 1693 | errno = 0; |
1688 | 1694 | conversion = strtol(optarg, &tmp, 0); |
1689 | if (!*optarg || isspace(*optarg) || *tmp || errno) { | |
1695 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno) { | |
1690 | 1696 | printf("Bad number for media descriptor : %s\n", optarg); |
1691 | 1697 | usage(argv[0], 1); |
1692 | 1698 | } |
1704 | 1710 | case OPT_CODEPAGE: /* --codepage : Code page */ |
1705 | 1711 | errno = 0; |
1706 | 1712 | conversion = strtol(optarg, &tmp, 10); |
1707 | if (!*optarg || isspace(*optarg) || *tmp || errno || conversion < 0 || conversion > INT_MAX) { | |
1713 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || conversion < 0 || conversion > INT_MAX) { | |
1708 | 1714 | fprintf(stderr, "Invalid codepage : %s\n", optarg); |
1709 | 1715 | usage(argv[0], 1); |
1710 | 1716 | } |
1715 | 1721 | case 'r': /* r : Root directory entries */ |
1716 | 1722 | errno = 0; |
1717 | 1723 | conversion = strtol(optarg, &tmp, 0); |
1718 | if (!*optarg || isspace(*optarg) || *tmp || errno || conversion < 16 || conversion > 32768) { | |
1724 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || conversion < 16 || conversion > 32768) { | |
1719 | 1725 | printf("Bad number of root directory entries : %s\n", optarg); |
1720 | 1726 | usage(argv[0], 1); |
1721 | 1727 | } |
1726 | 1732 | case 'R': /* R : number of reserved sectors */ |
1727 | 1733 | errno = 0; |
1728 | 1734 | conversion = strtol(optarg, &tmp, 0); |
1729 | if (!*optarg || isspace(*optarg) || *tmp || errno || conversion < 1 || conversion > 0xffff) { | |
1735 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || conversion < 1 || conversion > 0xffff) { | |
1730 | 1736 | printf("Bad number of reserved sectors : %s\n", optarg); |
1731 | 1737 | usage(argv[0], 1); |
1732 | 1738 | } |
1736 | 1742 | case 's': /* s : Sectors per cluster */ |
1737 | 1743 | errno = 0; |
1738 | 1744 | conversion = strtol(optarg, &tmp, 0); |
1739 | if (!*optarg || isspace(*optarg) || *tmp || errno || (conversion != 1 && conversion != 2 | |
1745 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || (conversion != 1 && conversion != 2 | |
1740 | 1746 | && conversion != 4 && conversion != 8 && conversion != 16 |
1741 | 1747 | && conversion != 32 && conversion != 64 && conversion != 128)) { |
1742 | 1748 | printf("Bad number of sectors per cluster : %s\n", optarg); |
1748 | 1754 | case 'S': /* S : Sector size */ |
1749 | 1755 | errno = 0; |
1750 | 1756 | conversion = strtol(optarg, &tmp, 0); |
1751 | if (!*optarg || isspace(*optarg) || *tmp || errno || (conversion != 512 && conversion != 1024 && | |
1757 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || (conversion != 512 && conversion != 1024 && | |
1752 | 1758 | conversion != 2048 && conversion != 4096 && conversion != 8192 && |
1753 | 1759 | conversion != 16384 && conversion != 32768)) { |
1754 | 1760 | printf("Bad logical sector size : %s\n", optarg); |
1799 | 1805 | case OPT_OFFSET: |
1800 | 1806 | errno = 0; |
1801 | 1807 | conversion = strtoll(optarg, &tmp, 0); |
1802 | if (!*optarg || isspace(*optarg) || *tmp || errno) { | |
1808 | if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno) { | |
1803 | 1809 | printf("Bad number for offset : %s\n", optarg); |
1804 | 1810 | usage(argv[0], 1); |
1805 | 1811 | } |
1837 | 1843 | errno = 0; |
1838 | 1844 | conversion = strtoll(argv[optind], &tmp, 0); |
1839 | 1845 | |
1840 | if (!*argv[optind] || isspace(*argv[optind]) || *tmp || errno || conversion < 0) { | |
1846 | if (!*argv[optind] || isspace((unsigned char)*argv[optind]) || *tmp || errno || conversion < 0) { | |
1841 | 1847 | printf("Bad block count : %s\n", argv[optind]); |
1842 | 1848 | usage(argv[0], 1); |
1843 | 1849 | } |
47 | 47 | struct msdos_dir_entry { |
48 | 48 | uint8_t name[MSDOS_NAME]; /* name including extension */ |
49 | 49 | uint8_t attr; /* attribute bits */ |
50 | uint8_t lcase; /* Case for base and extension */ | |
50 | uint8_t ntbyte; /* Case for base and extension, encryption flags and padding size */ | |
51 | 51 | uint8_t ctime_cs; /* Creation time, centiseconds (0-199) */ |
52 | 52 | uint16_t ctime; /* Creation time */ |
53 | 53 | uint16_t cdate; /* Creation date */ |
2 | 2 | |
3 | 3 | scriptversion=2018-03-07.03; # UTC |
4 | 4 | |
5 | # Copyright (C) 2011-2018 Free Software Foundation, Inc. | |
5 | # Copyright (C) 2011-2021 Free Software Foundation, Inc. | |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify |
8 | 8 | # it under the terms of the GNU General Public License as published by |
41 | 41 | { |
42 | 42 | cat <<END |
43 | 43 | Usage: |
44 | test-driver --test-name=NAME --log-file=PATH --trs-file=PATH | |
45 | [--expect-failure={yes|no}] [--color-tests={yes|no}] | |
46 | [--enable-hard-errors={yes|no}] [--] | |
44 | test-driver --test-name NAME --log-file PATH --trs-file PATH | |
45 | [--expect-failure {yes|no}] [--color-tests {yes|no}] | |
46 | [--enable-hard-errors {yes|no}] [--] | |
47 | 47 | TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS] |
48 | ||
48 | 49 | The '--test-name', '--log-file' and '--trs-file' options are mandatory. |
50 | See the GNU Automake documentation for information. | |
49 | 51 | END |
50 | 52 | } |
51 | 53 | |
102 | 104 | trap "st=141; $do_exit" 13 |
103 | 105 | trap "st=143; $do_exit" 15 |
104 | 106 | |
105 | # Test script is run here. | |
106 | "$@" >$log_file 2>&1 | |
107 | # Test script is run here. We create the file first, then append to it, | |
108 | # to ameliorate tests themselves also writing to the log file. Our tests | |
109 | # don't, but others can (automake bug#35762). | |
110 | : >"$log_file" | |
111 | "$@" >>"$log_file" 2>&1 | |
107 | 112 | estatus=$? |
108 | 113 | |
109 | 114 | if test $enable_hard_errors = no && test $estatus -eq 99; then |
125 | 130 | # know whether the test passed or failed simply by looking at the '.log' |
126 | 131 | # file, without the need of also peaking into the corresponding '.trs' |
127 | 132 | # file (automake bug#11814). |
128 | echo "$res $test_name (exit status: $estatus)" >>$log_file | |
133 | echo "$res $test_name (exit status: $estatus)" >>"$log_file" | |
129 | 134 | |
130 | 135 | # Report outcome to console. |
131 | 136 | echo "${col}${res}${std}: $test_name" |
25 | 25 | check-label-different.fsck \ |
26 | 26 | check-label-only-boot.fsck \ |
27 | 27 | check-label-only-root.fsck \ |
28 | check-encryption_with_invalid_83.fsck \ | |
29 | check-encryption_with_duplicate_dirent.fsck \ | |
28 | 30 | label-fat32_mkdosfs_label1_dosfslabel_empty.label \ |
29 | 31 | label-fat32_mkdosfs_label1_dosfslabel_label2.label \ |
30 | 32 | label-fat32_mkdosfs_label1_dosfslabel_NO_NAME.label \ |
99 | 101 | check-label-only-boot.xxd \ |
100 | 102 | check-label-only-root.fsck \ |
101 | 103 | check-label-only-root.xxd \ |
104 | check-encryption_with_invalid_83.fsck \ | |
105 | check-encryption_with_invalid_83.xxd \ | |
106 | check-encryption_with_duplicate_dirent.fsck \ | |
107 | check-encryption_with_duplicate_dirent.xxd \ | |
102 | 108 | label-fat32_mkdosfs_label1_dosfslabel_empty.label \ |
103 | 109 | label-fat32_mkdosfs_label1_dosfslabel_empty.xxd \ |
104 | 110 | label-fat32_mkdosfs_label1_dosfslabel_label2.label \ |
0 | # Makefile.in generated by automake 1.16.1 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2018 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
298 | 298 | bases='$(TEST_LOGS)'; \ |
299 | 299 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ |
300 | 300 | bases=`echo $$bases` |
301 | AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' | |
301 | 302 | RECHECK_LOGS = $(TEST_LOGS) |
302 | 303 | AM_RECURSIVE_TARGETS = check recheck |
303 | 304 | TEST_SUITE_LOG = test-suite.log |
340 | 341 | CHECKATARI = @CHECKATARI@ |
341 | 342 | CPP = @CPP@ |
342 | 343 | CPPFLAGS = @CPPFLAGS@ |
344 | CSCOPE = @CSCOPE@ | |
345 | CTAGS = @CTAGS@ | |
343 | 346 | CYGPATH_W = @CYGPATH_W@ |
344 | 347 | DEFS = @DEFS@ |
345 | 348 | DEPDIR = @DEPDIR@ |
347 | 350 | ECHO_N = @ECHO_N@ |
348 | 351 | ECHO_T = @ECHO_T@ |
349 | 352 | EGREP = @EGREP@ |
353 | ETAGS = @ETAGS@ | |
350 | 354 | EXEEXT = @EXEEXT@ |
351 | 355 | GREP = @GREP@ |
352 | 356 | INSTALL = @INSTALL@ |
453 | 457 | check-label-different.fsck \ |
454 | 458 | check-label-only-boot.fsck \ |
455 | 459 | check-label-only-root.fsck \ |
460 | check-encryption_with_invalid_83.fsck \ | |
461 | check-encryption_with_duplicate_dirent.fsck \ | |
456 | 462 | label-fat32_mkdosfs_label1_dosfslabel_empty.label \ |
457 | 463 | label-fat32_mkdosfs_label1_dosfslabel_label2.label \ |
458 | 464 | label-fat32_mkdosfs_label1_dosfslabel_NO_NAME.label \ |
524 | 530 | check-label-only-boot.xxd \ |
525 | 531 | check-label-only-root.fsck \ |
526 | 532 | check-label-only-root.xxd \ |
533 | check-encryption_with_invalid_83.fsck \ | |
534 | check-encryption_with_invalid_83.xxd \ | |
535 | check-encryption_with_duplicate_dirent.fsck \ | |
536 | check-encryption_with_duplicate_dirent.xxd \ | |
527 | 537 | label-fat32_mkdosfs_label1_dosfslabel_empty.label \ |
528 | 538 | label-fat32_mkdosfs_label1_dosfslabel_empty.xxd \ |
529 | 539 | label-fat32_mkdosfs_label1_dosfslabel_label2.label \ |
708 | 718 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ |
709 | 719 | fi; \ |
710 | 720 | echo "$${col}$$br$${std}"; \ |
711 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
721 | echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ | |
712 | 722 | echo "$${col}$$br$${std}"; \ |
713 | 723 | create_testsuite_report --maybe-color; \ |
714 | 724 | echo "$$col$$br$$std"; \ |
784 | 794 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
785 | 795 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_LABEL_LOG_DRIVER_FLAGS) $(LABEL_LOG_DRIVER_FLAGS) -- $(LABEL_LOG_COMPILE) \ |
786 | 796 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
787 | ||
788 | 797 | distdir: $(BUILT_SOURCES) |
789 | 798 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
790 | 799 |
0 | 00000000: eb58 904d 5344 4f53 352e 3000 0204 3618 .X.MSDOS5.0...6. | |
1 | 00000010: 0200 0000 00f8 0000 3f00 ff00 8000 0000 ........?....... | |
2 | 00000020: 00e8 0700 e503 0000 0000 0000 0200 0000 ................ | |
3 | 00000030: 0100 0600 0000 0000 0000 0000 0000 0000 ................ | |
4 | 00000040: 8000 2991 fc95 704e 4f20 4e41 4d45 2020 ..)...pNO NAME | |
5 | 00000050: 2020 4641 5433 3220 2020 2020 2020 2020 FAT32 | |
6 | 00000060: 2020 2020 2020 2020 2020 2020 2020 2020 | |
7 | 00000070: 2020 2020 2020 2020 2020 2020 2020 2020 | |
8 | 00000080: 2020 424f 4f54 2043 4f44 4520 2020 2020 BOOT CODE | |
9 | 00000090: 2020 2020 2052 454d 4f56 4544 2020 2020 REMOVED | |
10 | 000000a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
11 | 000000b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
12 | 000000c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
13 | 000000d0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
14 | 000000e0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
15 | 000000f0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
16 | 00000100: 2020 2020 2020 2020 2020 2020 2020 2020 | |
17 | 00000110: 2020 2020 2020 2020 2020 2020 2020 2020 | |
18 | 00000120: 2020 2020 2020 2020 2020 2020 2020 2020 | |
19 | 00000130: 2020 2020 2020 2020 2020 2020 2020 2020 | |
20 | 00000140: 2020 2020 2020 2020 2020 2020 2020 2020 | |
21 | 00000150: 2020 2020 2020 2020 2020 2020 2020 2020 | |
22 | 00000160: 2020 2020 2020 2020 2020 2020 2020 2020 | |
23 | 00000170: 2020 2020 2020 2020 2020 2020 2020 2020 | |
24 | 00000180: 2020 2020 2020 2020 2020 2020 2020 2020 | |
25 | 00000190: 2020 2020 2020 2020 2020 2020 2020 2020 | |
26 | 000001a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
27 | 000001b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
28 | 000001c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
29 | 000001d0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
30 | 000001e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
31 | 000001f0: 0000 0000 0000 0000 ac01 b901 0000 55aa ..............U. | |
32 | 00000200: 5252 6141 0000 0000 0000 0000 0000 0000 RRaA............ | |
33 | 00000210: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
34 | * | |
35 | 000003e0: 0000 0000 7272 4161 f3f1 0100 0f00 0000 ....rrAa........ | |
36 | 000003f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
37 | 00000400: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
38 | * | |
39 | 000005f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
40 | 00000600: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
41 | * | |
42 | 00000c00: eb58 904d 5344 4f53 352e 3000 0204 3618 .X.MSDOS5.0...6. | |
43 | 00000c10: 0200 0000 00f8 0000 3f00 ff00 8000 0000 ........?....... | |
44 | 00000c20: 00e8 0700 e503 0000 0000 0000 0200 0000 ................ | |
45 | 00000c30: 0100 0600 0000 0000 0000 0000 0000 0000 ................ | |
46 | 00000c40: 8000 2991 fc95 704e 4f20 4e41 4d45 2020 ..)...pNO NAME | |
47 | 00000c50: 2020 4641 5433 3220 2020 2020 2020 2020 FAT32 | |
48 | 00000c60: 2020 2020 2020 2020 2020 2020 2020 2020 | |
49 | 00000c70: 2020 2020 2020 2020 2020 2020 2020 2020 | |
50 | 00000c80: 2020 424f 4f54 2043 4f44 4520 2020 2020 BOOT CODE | |
51 | 00000c90: 2020 2020 2052 454d 4f56 4544 2020 2020 REMOVED | |
52 | 00000ca0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
53 | 00000cb0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
54 | 00000cc0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
55 | 00000cd0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
56 | 00000ce0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
57 | 00000cf0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
58 | 00000d00: 2020 2020 2020 2020 2020 2020 2020 2020 | |
59 | 00000d10: 2020 2020 2020 2020 2020 2020 2020 2020 | |
60 | 00000d20: 2020 2020 2020 2020 2020 2020 2020 2020 | |
61 | 00000d30: 2020 2020 2020 2020 2020 2020 2020 2020 | |
62 | 00000d40: 2020 2020 2020 2020 2020 2020 2020 2020 | |
63 | 00000d50: 2020 2020 2020 2020 2020 2020 2020 2020 | |
64 | 00000d60: 2020 2020 2020 2020 2020 2020 2020 2020 | |
65 | 00000d70: 2020 2020 2020 2020 2020 2020 2020 2020 | |
66 | 00000d80: 2020 2020 2020 2020 2020 2020 2020 2020 | |
67 | 00000d90: 2020 2020 2020 2020 2020 2020 2020 2020 | |
68 | 00000da0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
69 | 00000db0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
70 | 00000dc0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
71 | 00000dd0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
72 | 00000de0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
73 | 00000df0: 0000 0000 0000 0000 ac01 b901 0000 55aa ..............U. | |
74 | 00000e00: 5252 6141 0000 0000 0000 0000 0000 0000 RRaA............ | |
75 | 00000e10: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
76 | * | |
77 | 00000fe0: 0000 0000 7272 4161 ffff ffff 0200 0000 ....rrAa........ | |
78 | 00000ff0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
79 | 00001000: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
80 | * | |
81 | 000011f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
82 | 00001200: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
83 | * | |
84 | 00001800: 2020 2020 2020 2020 2020 2020 2020 2020 | |
85 | 00001810: 2020 2020 2020 2020 2020 2020 2020 2020 | |
86 | 00001820: 2020 2020 2020 2020 2020 2020 2020 2020 | |
87 | 00001830: 2020 2020 2020 2020 2020 2020 2020 2020 | |
88 | 00001840: 2020 2020 2020 2020 2020 2020 2020 2020 | |
89 | 00001850: 2020 2020 2020 2020 2020 2020 2020 2020 | |
90 | 00001860: 2020 2020 424f 4f54 2043 4f44 4520 2020 BOOT CODE | |
91 | 00001870: 2020 5245 4d4f 5645 4420 2020 2020 2020 REMOVED | |
92 | 00001880: 2020 2020 2020 2020 2020 2020 2020 2020 | |
93 | 00001890: 2020 2020 2020 2020 2020 2020 2020 2020 | |
94 | 000018a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
95 | 000018b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
96 | 000018c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
97 | 000018d0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
98 | 000018e0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
99 | 000018f0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
100 | 00001900: 2020 2020 2020 2020 2020 2020 2020 2020 | |
101 | 00001910: 2020 2020 2020 2020 2020 2020 2020 2020 | |
102 | 00001920: 2020 2020 2020 2020 2020 2020 2020 2020 | |
103 | 00001930: 2020 2020 2020 2020 2020 2020 2020 2020 | |
104 | 00001940: 2020 2020 2020 2020 2020 2020 2020 2020 | |
105 | 00001950: 2020 2020 2020 2020 2020 2020 2020 2020 | |
106 | 00001960: 2020 2020 2020 2020 2020 2020 2020 2020 | |
107 | 00001970: 2020 2020 2020 2020 2020 2020 2020 2020 | |
108 | 00001980: 2020 2020 2020 2020 2020 2020 2020 2020 | |
109 | 00001990: 2020 2020 2020 2020 2020 2020 2020 2020 | |
110 | 000019a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
111 | 000019b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
112 | 000019c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
113 | 000019d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
114 | 000019e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
115 | 000019f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
116 | 00001a00: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
117 | * | |
118 | 00306c00: f8ff ff0f ffff ffff ffff ff0f ffff ff0f ................ | |
119 | 00306c10: ffff ff0f ffff ff0f ffff ff0f 0a00 0000 ................ | |
120 | 00306c20: 0900 0000 0c00 0000 0b00 0000 ffff ff0f ................ | |
121 | 00306c30: ffff ff0f ffff ff0f ffff ff0f 0000 0000 ................ | |
122 | 00306c40: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
123 | * | |
124 | 00383600: f8ff ff0f ffff ffff ffff ff0f ffff ff0f ................ | |
125 | 00383610: ffff ff0f ffff ff0f ffff ff0f 0a00 0000 ................ | |
126 | 00383620: 0900 0000 0c00 0000 0b00 0000 ffff ff0f ................ | |
127 | 00383630: ffff ff0f ffff ff0f ffff ff0f 0000 0000 ................ | |
128 | 00383640: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
129 | * | |
130 | 00400000: 454e 4352 5950 5449 4f4e 2008 0000 0000 ENCRYPTION ..... | |
131 | 00400010: 0000 0000 0000 90ae 7253 0000 0000 0000 ........rS...... | |
132 | 00400020: 4220 0049 006e 0066 006f 000f 0072 7200 B .I.n.f.o...rr. | |
133 | 00400030: 6d00 6100 7400 6900 6f00 0000 6e00 0000 m.a.t.i.o...n... | |
134 | 00400040: 0153 0079 0073 0074 0065 000f 0072 6d00 .S.y.s.t.e...rm. | |
135 | 00400050: 2000 5600 6f00 6c00 7500 0000 6d00 6500 .V.o.l.u...m.e. | |
136 | 00400060: 5359 5354 454d 7e31 2020 2016 0020 91ae SYSTEM~1 .. .. | |
137 | 00400070: 7253 7253 0000 92ae 7253 0300 0000 0000 rSrS....rS...... | |
138 | 00400080: e564 002e 0074 0078 0074 000f 0059 0000 .d...t.x.t...Y.. | |
139 | 00400090: ffff ffff ffff ffff ffff 0000 ffff ffff ................ | |
140 | 004000a0: e574 0065 0073 0074 005f 000f 0059 6500 .t.e.s.t._...Ye. | |
141 | 004000b0: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
142 | 004000c0: e545 5354 5f45 7e31 5458 5420 018a 99ae .EST_E~1TXT .... | |
143 | 004000d0: 7253 7253 0000 bcae 7253 0700 0000 0000 rSrS....rS...... | |
144 | 004000e0: 2452 4543 5943 4c45 4249 4e16 0004 9aae $RECYCLEBIN..... | |
145 | 004000f0: 7253 7253 0000 9bae 7253 0500 0000 0000 rSrS....rS...... | |
146 | 00400100: e546 5330 2020 2020 544d 5026 0056 c5ae .FS0 TMP&.V.. | |
147 | 00400110: 7253 7253 0000 c6ae 7253 0900 0e00 0000 rSrS....rS...... | |
148 | 00400120: 4264 002e 0074 0078 0074 000f 00c4 2e00 Bd...t.x.t...... | |
149 | 00400130: 5000 4600 4900 4c00 4500 0000 0000 ffff P.F.I.L.E....... | |
150 | 00400140: 0174 0065 0073 0074 005f 000f 00c4 6500 .t.e.s.t._....e. | |
151 | 00400150: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
152 | 00400160: 5445 5354 5f45 7e31 5046 4920 218a 99ae TEST_E~1PFI !... | |
153 | 00400170: 7253 7253 0000 bcae 7253 0700 1010 0000 rSrS....rS...... | |
154 | 00400180: e564 0020 002d 0020 0043 000f 0059 6f00 .d. .-. .C...Yo. | |
155 | 00400190: 7000 7900 2e00 7400 7800 0000 7400 0000 p.y...t.x...t... | |
156 | 004001a0: e574 0065 0073 0074 005f 000f 0059 6500 .t.e.s.t._...Ye. | |
157 | 004001b0: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
158 | 004001c0: e545 5354 5f45 7e31 5458 5420 010a c8ae .EST_E~1TXT .... | |
159 | 004001d0: 7253 7253 0000 c9ae 7253 0000 0000 0000 rSrS....rS...... | |
160 | 004001e0: e550 0046 0049 004c 0045 000f 0064 0000 .P.F.I.L.E...d.. | |
161 | 004001f0: ffff ffff ffff ffff ffff 0000 ffff ffff ................ | |
162 | 00400200: e564 0020 002d 0020 0043 000f 0064 6f00 .d. .-. .C...do. | |
163 | 00400210: 7000 7900 2e00 7400 7800 0000 7400 2e00 p.y...t.x...t... | |
164 | 00400220: e574 0065 0073 0074 005f 000f 0064 6500 .t.e.s.t._...de. | |
165 | 00400230: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
166 | 00400240: e545 5354 5f45 7e32 5046 4920 210a c8ae .EST_E~2PFI !... | |
167 | 00400250: 7253 7253 0000 bcae 7253 0800 1010 0000 rSrS....rS...... | |
168 | 00400260: 4264 005f 0032 002e 0074 000f 00c4 7800 Bd._.2...t....x. | |
169 | 00400270: 7400 2e00 5000 4600 4900 0000 4c00 4500 t...P.F.I...L.E. | |
170 | 00400280: 0174 0065 0073 0074 005f 000f 00c4 6500 .t.e.s.t._....e. | |
171 | 00400290: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
172 | 004002a0: 5445 5354 5f45 7e31 5046 4920 210a c8ae TEST_E~1PFI !... | |
173 | 004002b0: 7253 7253 0000 bcae 7253 0800 1010 0000 rSrS....rS...... | |
174 | 004002c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
175 | * | |
176 | 00400800: 2e20 2020 2020 2020 2020 2010 0020 91ae . .. .. | |
177 | 00400810: 7253 7253 0000 92ae 7253 0300 0000 0000 rSrS....rS...... | |
178 | 00400820: 2e2e 2020 2020 2020 2020 2010 0020 91ae .. .. .. | |
179 | 00400830: 7253 7253 0000 92ae 7253 0000 0000 0000 rSrS....rS...... | |
180 | 00400840: 4274 0000 00ff ffff ffff ff0f 00ce ffff Bt.............. | |
181 | 00400850: ffff ffff ffff ffff ffff 0000 ffff ffff ................ | |
182 | 00400860: 0157 0050 0053 0065 0074 000f 00ce 7400 .W.P.S.e.t....t. | |
183 | 00400870: 6900 6e00 6700 7300 2e00 0000 6400 6100 i.n.g.s.....d.a. | |
184 | 00400880: 5750 5345 5454 7e31 4441 5420 0020 91ae WPSETT~1DAT . .. | |
185 | 00400890: 7253 7253 0000 92ae 7253 0400 0c00 0000 rSrS....rS...... | |
186 | 004008a0: e546 5330 2020 2020 4c4f 4722 0055 c5ae .FS0 LOG".U.. | |
187 | 004008b0: 7253 7253 0000 c6ae 7253 0800 0006 0000 rSrS....rS...... | |
188 | 004008c0: 4544 5020 2020 2020 2020 2010 0042 caae EDP ..B.. | |
189 | 004008d0: 7253 7253 0000 cbae 7253 0d00 0000 0000 rSrS....rS...... | |
190 | 004008e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
191 | * | |
192 | 00401000: 0c00 0000 0e8c 6100 9830 d88a 0000 0000 ......a..0...... | |
193 | 00401010: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
194 | * | |
195 | 00401800: 2e20 2020 2020 2020 2020 2010 0004 9aae . ..... | |
196 | 00401810: 7253 7253 0000 9bae 7253 0500 0000 0000 rSrS....rS...... | |
197 | 00401820: 2e2e 2020 2020 2020 2020 2010 0004 9aae .. ..... | |
198 | 00401830: 7253 7253 0000 9bae 7253 0000 0000 0000 rSrS....rS...... | |
199 | 00401840: 4445 534b 544f 5020 494e 4926 1804 9aae DESKTOP INI&.... | |
200 | 00401850: 7253 7253 0000 9bae 7253 0600 8100 0000 rSrS....rS...... | |
201 | 00401860: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
202 | * | |
203 | 00402000: 5b2e 5368 656c 6c43 6c61 7373 496e 666f [.ShellClassInfo | |
204 | 00402010: 5d0d 0a43 4c53 4944 3d7b 3634 3546 4630 ]..CLSID={645FF0 | |
205 | 00402020: 3430 2d35 3038 312d 3130 3142 2d39 4630 40-5081-101B-9F0 | |
206 | 00402030: 382d 3030 4141 3030 3246 3935 3445 7d0d 8-00AA002F954E}. | |
207 | 00402040: 0a4c 6f63 616c 697a 6564 5265 736f 7572 .LocalizedResour | |
208 | 00402050: 6365 4e61 6d65 3d40 2553 7973 7465 6d52 ceName=@%SystemR | |
209 | 00402060: 6f6f 7425 5c73 7973 7465 6d33 325c 7368 oot%\system32\sh | |
210 | 00402070: 656c 6c33 322e 646c 6c2c 2d38 3936 340d ell32.dll,-8964. | |
211 | 00402080: 0a00 0000 0000 0000 0000 0000 0000 0000 ................ | |
212 | 00402090: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
213 | * | |
214 | 00402800: 0010 0000 0000 0000 0200 0000 0e80 0000 ................ | |
215 | 00402810: be49 c640 12cc b143 9b68 be56 b04b 9565 .I.@...C.h.V.K.e | |
216 | 00402820: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
217 | 00402830: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
218 | 00402840: 5400 0000 0000 0000 0000 0000 0000 0000 T............... | |
219 | 00402850: 0000 0000 0100 0000 4602 0000 1400 0000 ........F....... | |
220 | 00402860: 0001 0000 4601 0000 0000 0000 3201 0000 ....F.......2... | |
221 | 00402870: 1c00 0000 0300 0000 fa00 0000 3800 0000 ............8... | |
222 | 00402880: 0000 0000 0000 0000 0105 0000 0000 0005 ................ | |
223 | 00402890: 1500 0000 506a 80a1 fd79 8bc2 58f9 50cd ....Pj...y..X.P. | |
224 | 004028a0: e903 0000 1400 0000 1400 0000 2800 0000 ............(... | |
225 | 004028b0: 7200 0000 d000 0000 ba66 765d 0835 3412 r........fv].54. | |
226 | 004028c0: f808 2615 08ca 57c3 adcb 12ca 3600 3000 ..&...W.....6.0. | |
227 | 004028d0: 3400 6400 3400 3200 6300 6400 2d00 3500 4.d.4.2.c.d.-.5. | |
228 | 004028e0: 3900 3700 3300 2d00 3400 3900 3600 3200 9.7.3.-.4.9.6.2. | |
229 | 004028f0: 2d00 3800 6100 6200 3700 2d00 3900 3400 -.8.a.b.7.-.9.4. | |
230 | 00402900: 3900 3200 3600 3800 3400 3400 3000 6500 9.2.6.8.4.4.0.e. | |
231 | 00402910: 3300 3500 0000 4d00 6900 6300 7200 6f00 3.5...M.i.c.r.o. | |
232 | 00402920: 7300 6f00 6600 7400 2000 4500 6e00 6800 s.o.f.t. .E.n.h. | |
233 | 00402930: 6100 6e00 6300 6500 6400 2000 4300 7200 a.n.c.e.d. .C.r. | |
234 | 00402940: 7900 7000 7400 6f00 6700 7200 6100 7000 y.p.t.o.g.r.a.p. | |
235 | 00402950: 6800 6900 6300 2000 5000 7200 6f00 7600 h.i.c. .P.r.o.v. | |
236 | 00402960: 6900 6400 6500 7200 2000 7600 3100 2e00 i.d.e.r. .v.1... | |
237 | 00402970: 3000 0000 5500 2800 5500 4000 4400 4500 0...U.(.U.@.D.E. | |
238 | 00402980: 5300 4b00 5400 4f00 5000 2d00 5200 4400 S.K.T.O.P.-.R.D. | |
239 | 00402990: 3300 3400 3100 4800 4100 2900 0000 2245 3.4.1.H.A.)..."E | |
240 | 004029a0: a214 a826 19de edb2 0bb0 d68a 8ef5 ba92 ...&............ | |
241 | 004029b0: 809c 59e8 77fb b155 c9ca 642b 9775 ffcf ..Y.w..U..d+.u.. | |
242 | 004029c0: a2b3 071b e6e2 d522 0731 6cc4 e983 4e0d .......".1l...N. | |
243 | 004029d0: 71b3 ebd1 db75 c0b4 c086 5755 b818 f73d q....u....WU...= | |
244 | 004029e0: d204 7af1 12d7 24de 4155 0e82 1478 2c5d ..z...$.AU...x,] | |
245 | 004029f0: b77a eba6 9dae a497 8464 4211 6b7a df23 .z.......dB.kz.# | |
246 | 00402a00: 9cc8 ea83 d22d 7ef0 9784 df12 1e0d 326c .....-~.......2l | |
247 | 00402a10: 26a9 bae9 4a7c 02a5 3440 0855 3e85 a7d5 &...J|..4@.U>... | |
248 | 00402a20: 9ad8 7e1b 5d13 d593 d576 bd32 0527 35e0 ..~.]....v.2.'5. | |
249 | 00402a30: 01d9 17b0 b6c9 ba4a 048c e158 5a97 e2d2 .......J...XZ... | |
250 | 00402a40: a9c1 7e91 a5f2 e68d ce13 b5db 89dc 7884 ..~...........x. | |
251 | 00402a50: c280 90d7 edaa 4a47 c376 4651 d9c3 2b58 ......JG.vFQ..+X | |
252 | 00402a60: 0561 0bad c3f8 1a7f 2b21 fd96 60e6 189b .a......+!..`... | |
253 | 00402a70: e9d6 82f1 7e05 9ea7 06cb 4bb3 ae98 e5ac ....~.....K..... | |
254 | 00402a80: 9475 2a80 7288 adf1 e14e 88b2 d160 bd03 .u*.r....N...`.. | |
255 | 00402a90: cf8e acdd da24 a1d3 ac39 c8ef b146 0000 .....$...9...F.. | |
256 | 00402aa0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
257 | * | |
258 | 00403000: 0010 0000 0000 0000 0200 0000 0e80 0000 ................ | |
259 | 00403010: 5c1f aca2 f570 f044 a539 725a 50cf cddb \....p.D.9rZP... | |
260 | 00403020: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
261 | 00403030: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
262 | 00403040: 5400 0000 0000 0000 0000 0000 0000 0000 T............... | |
263 | 00403050: 0000 0000 0100 0000 4602 0000 1400 0000 ........F....... | |
264 | 00403060: 0001 0000 4601 0000 0000 0000 3201 0000 ....F.......2... | |
265 | 00403070: 1c00 0000 0300 0000 fa00 0000 3800 0000 ............8... | |
266 | 00403080: 0000 0000 0000 0000 0105 0000 0000 0005 ................ | |
267 | 00403090: 1500 0000 506a 80a1 fd79 8bc2 58f9 50cd ....Pj...y..X.P. | |
268 | 004030a0: e903 0000 1400 0000 1400 0000 2800 0000 ............(... | |
269 | 004030b0: 7200 0000 d000 0000 ba66 765d 0835 3412 r........fv].54. | |
270 | 004030c0: f808 2615 08ca 57c3 adcb 12ca 3600 3000 ..&...W.....6.0. | |
271 | 004030d0: 3400 6400 3400 3200 6300 6400 2d00 3500 4.d.4.2.c.d.-.5. | |
272 | 004030e0: 3900 3700 3300 2d00 3400 3900 3600 3200 9.7.3.-.4.9.6.2. | |
273 | 004030f0: 2d00 3800 6100 6200 3700 2d00 3900 3400 -.8.a.b.7.-.9.4. | |
274 | 00403100: 3900 3200 3600 3800 3400 3400 3000 6500 9.2.6.8.4.4.0.e. | |
275 | 00403110: 3300 3500 0000 4d00 6900 6300 7200 6f00 3.5...M.i.c.r.o. | |
276 | 00403120: 7300 6f00 6600 7400 2000 4500 6e00 6800 s.o.f.t. .E.n.h. | |
277 | 00403130: 6100 6e00 6300 6500 6400 2000 4300 7200 a.n.c.e.d. .C.r. | |
278 | 00403140: 7900 7000 7400 6f00 6700 7200 6100 7000 y.p.t.o.g.r.a.p. | |
279 | 00403150: 6800 6900 6300 2000 5000 7200 6f00 7600 h.i.c. .P.r.o.v. | |
280 | 00403160: 6900 6400 6500 7200 2000 7600 3100 2e00 i.d.e.r. .v.1... | |
281 | 00403170: 3000 0000 5500 2800 5500 4000 4400 4500 0...U.(.U.@.D.E. | |
282 | 00403180: 5300 4b00 5400 4f00 5000 2d00 5200 4400 S.K.T.O.P.-.R.D. | |
283 | 00403190: 3300 3400 3100 4800 4100 2900 0000 2245 3.4.1.H.A.)..."E | |
284 | 004031a0: a214 a826 19de edb2 0bb0 d68a 8ef5 ba92 ...&............ | |
285 | 004031b0: 809c 59e8 77fb b155 c9ca 642b 9775 ffcf ..Y.w..U..d+.u.. | |
286 | 004031c0: a2b3 071b e6e2 d522 0731 6cc4 e983 4e0d .......".1l...N. | |
287 | 004031d0: 71b3 ebd1 db75 c0b4 c086 5755 b818 f73d q....u....WU...= | |
288 | 004031e0: d204 7af1 12d7 24de 4155 0e82 1478 2c5d ..z...$.AU...x,] | |
289 | 004031f0: b77a eba6 9dae a497 8464 4211 6b7a df23 .z.......dB.kz.# | |
290 | 00403200: 9cc8 ea83 d22d 7ef0 9784 df12 1e0d 326c .....-~.......2l | |
291 | 00403210: 26a9 bae9 4a7c 02a5 3440 0855 3e85 a7d5 &...J|..4@.U>... | |
292 | 00403220: 9ad8 7e1b 5d13 d593 d576 bd32 0527 35e0 ..~.]....v.2.'5. | |
293 | 00403230: 01d9 17b0 b6c9 ba4a 048c e158 5a97 e2d2 .......J...XZ... | |
294 | 00403240: a9c1 7e91 a5f2 e68d ce13 b5db 89dc 7884 ..~...........x. | |
295 | 00403250: c280 90d7 edaa 4a47 c376 4651 d9c3 2b58 ......JG.vFQ..+X | |
296 | 00403260: 0561 0bad c3f8 1a7f 2b21 fd96 60e6 189b .a......+!..`... | |
297 | 00403270: e9d6 82f1 7e05 9ea7 06cb 4bb3 ae98 e5ac ....~.....K..... | |
298 | 00403280: 9475 2a80 7288 adf1 e14e 88b2 d160 bd03 .u*.r....N...`.. | |
299 | 00403290: cf8e acdd da24 a1d3 ac39 c8ef b146 0000 .....$...9...F.. | |
300 | 004032a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
301 | * | |
302 | 00404800: abea d5a9 29e0 58db dd45 e2e8 cb1e d513 ....).X..E...... | |
303 | 00404810: dbc7 e9d2 f0a4 ce91 c04f 96b8 22e1 d444 .........O.."..D | |
304 | 00404820: 219b 06b4 01fd eb5b a4d9 5792 e576 84ef !......[..W..v.. | |
305 | 00404830: 0e5d 455b 633b 4d16 1613 08ba e4b9 b96f .]E[c;M........o | |
306 | 00404840: 2f53 5d0d f61a 1086 82cb 38d5 326d 899d /S].......8.2m.. | |
307 | 00404850: ef7f d9df 6814 412c 3215 fb33 cbb8 5f94 ....h.A,2..3.._. | |
308 | 00404860: 8d81 a008 41e0 e5f1 8923 199c b5c6 b91d ....A....#...... | |
309 | 00404870: 832e 1ca7 4795 657e dd20 96dd 2b54 2c39 ....G.e~. ..+T,9 | |
310 | 00404880: fb72 3ad7 8458 7d54 96d9 1a68 b694 24e6 .r:..X}T...h..$. | |
311 | 00404890: 005b 2e36 5dae 0989 941f 173c 1877 2fad .[.6]......<.w/. | |
312 | 004048a0: d5ac fec9 8fb8 726f 8404 19f7 e008 18d3 ......ro........ | |
313 | 004048b0: 5f80 d1bb e7fe 2827 cf1c 4bde f815 d7a6 _.....('..K..... | |
314 | 004048c0: 08f4 3c7b d014 eb01 8674 be5b 5d50 2d84 ..<{.....t.[]P-. | |
315 | 004048d0: de1a dd42 c0b7 4857 30a1 5727 d785 9f8d ...B..HW0.W'.... | |
316 | 004048e0: 166d 8f4a c0cc e6bb 55bc 01e5 8b68 4ebb .m.J....U....hN. | |
317 | 004048f0: 3b7d 60e5 752a 4434 58c8 06d9 8a10 afc4 ;}`.u*D4X....... | |
318 | 00404900: 5bda 724a 1753 8a66 5e67 4142 2a6b 5a26 [.rJ.S.f^gAB*kZ& | |
319 | 00404910: 19e3 9d6b 8f6f a195 7826 af14 9d6a 10ec ...k.o..x&...j.. | |
320 | 00404920: 27de af3a 1d1c 2fed 2483 d643 dc1f e9a4 '..:../.$..C.... | |
321 | 00404930: 5b1b adaf bd76 c07a dfcb 5a98 3839 2aab [....v.z..Z.89*. | |
322 | 00404940: 6f5e 3e52 b1a8 ea93 9e95 b804 5092 aa38 o^>R........P..8 | |
323 | 00404950: 0843 3c81 89d0 f64b 1320 faeb 26a5 d329 .C<....K. ..&..) | |
324 | 00404960: 5024 fe42 060f e582 f15a 9d2a a7cf c516 P$.B.....Z.*.... | |
325 | 00404970: ea0f aaf5 7a19 d1d7 004f 8108 8628 58ef ....z....O...(X. | |
326 | 00404980: e6d4 8ec8 c271 7a4f 7353 20e5 88bf 40e8 .....qzOsS ...@. | |
327 | 00404990: dc5e 8853 0ff5 3dbe f25b b47e 7a89 2bce .^.S..=..[.~z.+. | |
328 | 004049a0: 01d9 6c13 6a36 40e1 0777 ce56 e0d0 c4b0 ..l.j6@..w.V.... | |
329 | 004049b0: dce4 6f40 300a 19aa 688b 0b00 f66b 900a ..o@0...h....k.. | |
330 | 004049c0: 6c90 33b8 5a0c ac95 2bd9 6bf5 72a5 23c2 l.3.Z...+.k.r.#. | |
331 | 004049d0: e6db 80c8 5bba 8e7e 8d47 3395 911d 8dda ....[..~.G3..... | |
332 | 004049e0: fea1 d95b 3657 5b0c a398 8fb4 f5d7 bd0b ...[6W[......... | |
333 | 004049f0: 369e fef6 719e 0cd1 b113 ffea f2bd b274 6...q..........t | |
334 | 00404a00: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
335 | * | |
336 | 00405000: abea d5a9 29e0 58db dd45 e2e8 cb1e d513 ....).X..E...... | |
337 | 00405010: dbc7 e9d2 f0a4 ce91 c04f 96b8 22e1 d444 .........O.."..D | |
338 | 00405020: 219b 06b4 01fd eb5b a4d9 5792 e576 84ef !......[..W..v.. | |
339 | 00405030: 0e5d 455b 633b 4d16 1613 08ba e4b9 b96f .]E[c;M........o | |
340 | 00405040: 2f53 5d0d f61a 1086 82cb 38d5 326d 899d /S].......8.2m.. | |
341 | 00405050: ef7f d9df 6814 412c 3215 fb33 cbb8 5f94 ....h.A,2..3.._. | |
342 | 00405060: 8d81 a008 41e0 e5f1 8923 199c b5c6 b91d ....A....#...... | |
343 | 00405070: 832e 1ca7 4795 657e dd20 96dd 2b54 2c39 ....G.e~. ..+T,9 | |
344 | 00405080: fb72 3ad7 8458 7d54 96d9 1a68 b694 24e6 .r:..X}T...h..$. | |
345 | 00405090: 005b 2e36 5dae 0989 941f 173c 1877 2fad .[.6]......<.w/. | |
346 | 004050a0: d5ac fec9 8fb8 726f 8404 19f7 e008 18d3 ......ro........ | |
347 | 004050b0: 5f80 d1bb e7fe 2827 cf1c 4bde f815 d7a6 _.....('..K..... | |
348 | 004050c0: 08f4 3c7b d014 eb01 8674 be5b 5d50 2d84 ..<{.....t.[]P-. | |
349 | 004050d0: de1a dd42 c0b7 4857 30a1 5727 d785 9f8d ...B..HW0.W'.... | |
350 | 004050e0: 166d 8f4a c0cc e6bb 55bc 01e5 8b68 4ebb .m.J....U....hN. | |
351 | 004050f0: 3b7d 60e5 752a 4434 58c8 06d9 8a10 afc4 ;}`.u*D4X....... | |
352 | 00405100: 5bda 724a 1753 8a66 5e67 4142 2a6b 5a26 [.rJ.S.f^gAB*kZ& | |
353 | 00405110: 19e3 9d6b 8f6f a195 7826 af14 9d6a 10ec ...k.o..x&...j.. | |
354 | 00405120: 27de af3a 1d1c 2fed 2483 d643 dc1f e9a4 '..:../.$..C.... | |
355 | 00405130: 5b1b adaf bd76 c07a dfcb 5a98 3839 2aab [....v.z..Z.89*. | |
356 | 00405140: 6f5e 3e52 b1a8 ea93 9e95 b804 5092 aa38 o^>R........P..8 | |
357 | 00405150: 0843 3c81 89d0 f64b 1320 faeb 26a5 d329 .C<....K. ..&..) | |
358 | 00405160: 5024 fe42 060f e582 f15a 9d2a a7cf c516 P$.B.....Z.*.... | |
359 | 00405170: ea0f aaf5 7a19 d1d7 004f 8108 8628 58ef ....z....O...(X. | |
360 | 00405180: e6d4 8ec8 c271 7a4f 7353 20e5 88bf 40e8 .....qzOsS ...@. | |
361 | 00405190: dc5e 8853 0ff5 3dbe f25b b47e 7a89 2bce .^.S..=..[.~z.+. | |
362 | 004051a0: 01d9 6c13 6a36 40e1 0777 ce56 e0d0 c4b0 ..l.j6@..w.V.... | |
363 | 004051b0: dce4 6f40 300a 19aa 688b 0b00 f66b 900a ..o@0...h....k.. | |
364 | 004051c0: 6c90 33b8 5a0c ac95 2bd9 6bf5 72a5 23c2 l.3.Z...+.k.r.#. | |
365 | 004051d0: e6db 80c8 5bba 8e7e 8d47 3395 911d 8dda ....[..~.G3..... | |
366 | 004051e0: fea1 d95b 3657 5b0c a398 8fb4 f5d7 bd0b ...[6W[......... | |
367 | 004051f0: 369e fef6 719e 0cd1 b113 ffea f2bd b274 6...q..........t | |
368 | 00405200: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
369 | * | |
370 | 00405800: 2e20 2020 2020 2020 2020 2010 0042 caae . ..B.. | |
371 | 00405810: 7253 7253 0000 cbae 7253 0d00 0000 0000 rSrS....rS...... | |
372 | 00405820: 2e2e 2020 2020 2020 2020 2010 0042 caae .. ..B.. | |
373 | 00405830: 7253 7253 0000 cbae 7253 0300 0000 0000 rSrS....rS...... | |
374 | 00405840: 4152 0065 0063 006f 0076 000f 0014 6500 AR.e.c.o.v....e. | |
375 | 00405850: 7200 7900 0000 ffff ffff 0000 ffff ffff r.y............. | |
376 | 00405860: 5245 434f 5645 5259 2020 2010 0042 caae RECOVERY ..B.. | |
377 | 00405870: 7253 7253 0000 cbae 7253 0e00 0000 0000 rSrS....rS...... | |
378 | 00405880: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
379 | * | |
380 | 00406000: 2e20 2020 2020 2020 2020 2010 0042 caae . ..B.. | |
381 | 00406010: 7253 7253 0000 cbae 7253 0e00 0000 0000 rSrS....rS...... | |
382 | 00406020: 2e2e 2020 2020 2020 2020 2010 0042 caae .. ..B.. | |
383 | 00406030: 7253 7253 0000 cbae 7253 0d00 0000 0000 rSrS....rS...... | |
384 | 00406040: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
385 | * | |
386 | 0fcffff0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ |
0 | 00000000: eb58 904d 5344 4f53 352e 3000 0204 3618 .X.MSDOS5.0...6. | |
1 | 00000010: 0200 0000 00f8 0000 3f00 ff00 8000 0000 ........?....... | |
2 | 00000020: 00e8 0700 e503 0000 0000 0000 0200 0000 ................ | |
3 | 00000030: 0100 0600 0000 0000 0000 0000 0000 0000 ................ | |
4 | 00000040: 8000 2991 fc95 7045 4e43 5259 5054 494f ..)...pENCRYPTIO | |
5 | 00000050: 4e20 4641 5433 3220 2020 2020 2020 2020 N FAT32 | |
6 | 00000060: 2020 2020 2020 2020 2020 2020 2020 2020 | |
7 | 00000070: 2020 2020 2020 2020 2020 2020 2020 2020 | |
8 | 00000080: 2020 424f 4f54 2043 4f44 4520 2020 2020 BOOT CODE | |
9 | 00000090: 2020 2020 2052 454d 4f56 4544 2020 2020 REMOVED | |
10 | 000000a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
11 | 000000b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
12 | 000000c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
13 | 000000d0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
14 | 000000e0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
15 | 000000f0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
16 | 00000100: 2020 2020 2020 2020 2020 2020 2020 2020 | |
17 | 00000110: 2020 2020 2020 2020 2020 2020 2020 2020 | |
18 | 00000120: 2020 2020 2020 2020 2020 2020 2020 2020 | |
19 | 00000130: 2020 2020 2020 2020 2020 2020 2020 2020 | |
20 | 00000140: 2020 2020 2020 2020 2020 2020 2020 2020 | |
21 | 00000150: 2020 2020 2020 2020 2020 2020 2020 2020 | |
22 | 00000160: 2020 2020 2020 2020 2020 2020 2020 2020 | |
23 | 00000170: 2020 2020 2020 2020 2020 2020 2020 2020 | |
24 | 00000180: 2020 2020 2020 2020 2020 2020 2020 2020 | |
25 | 00000190: 2020 2020 2020 2020 2020 2020 2020 2020 | |
26 | 000001a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
27 | 000001b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
28 | 000001c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
29 | 000001d0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
30 | 000001e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
31 | 000001f0: 0000 0000 0000 0000 ac01 b901 0000 55aa ..............U. | |
32 | 00000200: 5252 6141 0000 0000 0000 0000 0000 0000 RRaA............ | |
33 | 00000210: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
34 | * | |
35 | 000003e0: 0000 0000 7272 4161 f3f1 0100 0f00 0000 ....rrAa........ | |
36 | 000003f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
37 | 00000400: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
38 | * | |
39 | 000005f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
40 | 00000600: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
41 | * | |
42 | 00000c00: eb58 904d 5344 4f53 352e 3000 0204 3618 .X.MSDOS5.0...6. | |
43 | 00000c10: 0200 0000 00f8 0000 3f00 ff00 8000 0000 ........?....... | |
44 | 00000c20: 00e8 0700 e503 0000 0000 0000 0200 0000 ................ | |
45 | 00000c30: 0100 0600 0000 0000 0000 0000 0000 0000 ................ | |
46 | 00000c40: 8000 2991 fc95 7045 4e43 5259 5054 494f ..)...pENCRYPTIO | |
47 | 00000c50: 4e20 4641 5433 3220 2020 2020 2020 2020 N FAT32 | |
48 | 00000c60: 2020 2020 2020 2020 2020 2020 2020 2020 | |
49 | 00000c70: 2020 2020 2020 2020 2020 2020 2020 2020 | |
50 | 00000c80: 2020 424f 4f54 2043 4f44 4520 2020 2020 BOOT CODE | |
51 | 00000c90: 2020 2020 2052 454d 4f56 4544 2020 2020 REMOVED | |
52 | 00000ca0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
53 | 00000cb0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
54 | 00000cc0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
55 | 00000cd0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
56 | 00000ce0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
57 | 00000cf0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
58 | 00000d00: 2020 2020 2020 2020 2020 2020 2020 2020 | |
59 | 00000d10: 2020 2020 2020 2020 2020 2020 2020 2020 | |
60 | 00000d20: 2020 2020 2020 2020 2020 2020 2020 2020 | |
61 | 00000d30: 2020 2020 2020 2020 2020 2020 2020 2020 | |
62 | 00000d40: 2020 2020 2020 2020 2020 2020 2020 2020 | |
63 | 00000d50: 2020 2020 2020 2020 2020 2020 2020 2020 | |
64 | 00000d60: 2020 2020 2020 2020 2020 2020 2020 2020 | |
65 | 00000d70: 2020 2020 2020 2020 2020 2020 2020 2020 | |
66 | 00000d80: 2020 2020 2020 2020 2020 2020 2020 2020 | |
67 | 00000d90: 2020 2020 2020 2020 2020 2020 2020 2020 | |
68 | 00000da0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
69 | 00000db0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
70 | 00000dc0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
71 | 00000dd0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
72 | 00000de0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
73 | 00000df0: 0000 0000 0000 0000 ac01 b901 0000 55aa ..............U. | |
74 | 00000e00: 5252 6141 0000 0000 0000 0000 0000 0000 RRaA............ | |
75 | 00000e10: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
76 | * | |
77 | 00000fe0: 0000 0000 7272 4161 ffff ffff 0200 0000 ....rrAa........ | |
78 | 00000ff0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
79 | 00001000: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
80 | * | |
81 | 000011f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
82 | 00001200: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
83 | * | |
84 | 00001800: 2020 2020 2020 2020 2020 2020 2020 2020 | |
85 | 00001810: 2020 2020 2020 2020 2020 2020 2020 2020 | |
86 | 00001820: 2020 2020 2020 2020 2020 2020 2020 2020 | |
87 | 00001830: 2020 2020 2020 2020 2020 2020 2020 2020 | |
88 | 00001840: 2020 2020 2020 2020 2020 2020 2020 2020 | |
89 | 00001850: 2020 2020 2020 2020 2020 2020 2020 2020 | |
90 | 00001860: 2020 2020 424f 4f54 2043 4f44 4520 2020 BOOT CODE | |
91 | 00001870: 2020 5245 4d4f 5645 4420 2020 2020 2020 REMOVED | |
92 | 00001880: 2020 2020 2020 2020 2020 2020 2020 2020 | |
93 | 00001890: 2020 2020 2020 2020 2020 2020 2020 2020 | |
94 | 000018a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
95 | 000018b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
96 | 000018c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
97 | 000018d0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
98 | 000018e0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
99 | 000018f0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
100 | 00001900: 2020 2020 2020 2020 2020 2020 2020 2020 | |
101 | 00001910: 2020 2020 2020 2020 2020 2020 2020 2020 | |
102 | 00001920: 2020 2020 2020 2020 2020 2020 2020 2020 | |
103 | 00001930: 2020 2020 2020 2020 2020 2020 2020 2020 | |
104 | 00001940: 2020 2020 2020 2020 2020 2020 2020 2020 | |
105 | 00001950: 2020 2020 2020 2020 2020 2020 2020 2020 | |
106 | 00001960: 2020 2020 2020 2020 2020 2020 2020 2020 | |
107 | 00001970: 2020 2020 2020 2020 2020 2020 2020 2020 | |
108 | 00001980: 2020 2020 2020 2020 2020 2020 2020 2020 | |
109 | 00001990: 2020 2020 2020 2020 2020 2020 2020 2020 | |
110 | 000019a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
111 | 000019b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
112 | 000019c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
113 | 000019d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
114 | 000019e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
115 | 000019f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
116 | 00001a00: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
117 | * | |
118 | 00306c00: f8ff ff0f ffff ffff ffff ff0f ffff ff0f ................ | |
119 | 00306c10: ffff ff0f ffff ff0f ffff ff0f 0a00 0000 ................ | |
120 | 00306c20: 0900 0000 0c00 0000 0b00 0000 ffff ff0f ................ | |
121 | 00306c30: ffff ff0f ffff ff0f ffff ff0f 0000 0000 ................ | |
122 | 00306c40: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
123 | * | |
124 | 00383600: f8ff ff0f ffff ffff ffff ff0f ffff ff0f ................ | |
125 | 00383610: ffff ff0f ffff ff0f ffff ff0f 0a00 0000 ................ | |
126 | 00383620: 0900 0000 0c00 0000 0b00 0000 ffff ff0f ................ | |
127 | 00383630: ffff ff0f ffff ff0f ffff ff0f 0000 0000 ................ | |
128 | 00383640: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
129 | * | |
130 | 00400000: 454e 4352 5950 5449 4f4e 2008 0000 0000 ENCRYPTION ..... | |
131 | 00400010: 0000 0000 0000 90ae 7253 0000 0000 0000 ........rS...... | |
132 | 00400020: 4220 0049 006e 0066 006f 000f 0072 7200 B .I.n.f.o...rr. | |
133 | 00400030: 6d00 6100 7400 6900 6f00 0000 6e00 0000 m.a.t.i.o...n... | |
134 | 00400040: 0153 0079 0073 0074 0065 000f 0072 6d00 .S.y.s.t.e...rm. | |
135 | 00400050: 2000 5600 6f00 6c00 7500 0000 6d00 6500 .V.o.l.u...m.e. | |
136 | 00400060: 5359 5354 454d 7e31 2020 2016 0020 91ae SYSTEM~1 .. .. | |
137 | 00400070: 7253 7253 0000 92ae 7253 0300 0000 0000 rSrS....rS...... | |
138 | 00400080: e564 002e 0074 0078 0074 000f 0059 0000 .d...t.x.t...Y.. | |
139 | 00400090: ffff ffff ffff ffff ffff 0000 ffff ffff ................ | |
140 | 004000a0: e574 0065 0073 0074 005f 000f 0059 6500 .t.e.s.t._...Ye. | |
141 | 004000b0: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
142 | 004000c0: e545 5354 5f45 7e31 5458 5420 018a 99ae .EST_E~1TXT .... | |
143 | 004000d0: 7253 7253 0000 bcae 7253 0700 0000 0000 rSrS....rS...... | |
144 | 004000e0: 2452 4543 5943 4c45 4249 4e16 0004 9aae $RECYCLEBIN..... | |
145 | 004000f0: 7253 7253 0000 9bae 7253 0500 0000 0000 rSrS....rS...... | |
146 | 00400100: e546 5330 2020 2020 544d 5026 0056 c5ae .FS0 TMP&.V.. | |
147 | 00400110: 7253 7253 0000 c6ae 7253 0900 0e00 0000 rSrS....rS...... | |
148 | 00400120: 4264 002e 0074 0078 0074 000f 00c4 2e00 Bd...t.x.t...... | |
149 | 00400130: 5000 4600 4900 4c00 4500 0000 0000 ffff P.F.I.L.E....... | |
150 | 00400140: 0174 0065 0073 0074 005f 000f 00c4 6500 .t.e.s.t._....e. | |
151 | 00400150: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
152 | 00400160: 5445 5354 5f45 7e31 5046 4920 218a 99ae TEST_E~1PFI !... | |
153 | 00400170: 7253 7253 0000 bcae 7253 0700 1010 0000 rSrS....rS...... | |
154 | 00400180: e564 0020 002d 0020 0043 000f 0059 6f00 .d. .-. .C...Yo. | |
155 | 00400190: 7000 7900 2e00 7400 7800 0000 7400 0000 p.y...t.x...t... | |
156 | 004001a0: e574 0065 0073 0074 005f 000f 0059 6500 .t.e.s.t._...Ye. | |
157 | 004001b0: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
158 | 004001c0: e545 5354 5f45 7e31 5458 5420 010a c8ae .EST_E~1TXT .... | |
159 | 004001d0: 7253 7253 0000 c9ae 7253 0000 0000 0000 rSrS....rS...... | |
160 | 004001e0: e550 0046 0049 004c 0045 000f 0064 0000 .P.F.I.L.E...d.. | |
161 | 004001f0: ffff ffff ffff ffff ffff 0000 ffff ffff ................ | |
162 | 00400200: e564 0020 002d 0020 0043 000f 0064 6f00 .d. .-. .C...do. | |
163 | 00400210: 7000 7900 2e00 7400 7800 0000 7400 2e00 p.y...t.x...t... | |
164 | 00400220: e574 0065 0073 0074 005f 000f 0064 6500 .t.e.s.t._...de. | |
165 | 00400230: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
166 | 00400240: e545 5354 5f45 7e32 5046 4920 210a c8ae .EST_E~2PFI !... | |
167 | 00400250: 7253 7253 0000 bcae 7253 0800 1010 0000 rSrS....rS...... | |
168 | 00400260: e500 0000 0000 0000 0000 0000 0000 0000 ................ | |
169 | 00400270: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
170 | 00400280: e500 0000 0000 0000 0000 0000 0000 0000 ................ | |
171 | 00400290: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
172 | 004002a0: 4653 434b 3030 3030 3030 3020 210a c8ae FSCK0000000 !... | |
173 | 004002b0: 7253 7253 0000 bcae 7253 0800 1010 0000 rSrS....rS...... | |
174 | 004002c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
175 | * | |
176 | 00400800: 2e20 2020 2020 2020 2020 2010 0020 91ae . .. .. | |
177 | 00400810: 7253 7253 0000 92ae 7253 0300 0000 0000 rSrS....rS...... | |
178 | 00400820: 2e2e 2020 2020 2020 2020 2010 0020 91ae .. .. .. | |
179 | 00400830: 7253 7253 0000 92ae 7253 0000 0000 0000 rSrS....rS...... | |
180 | 00400840: 4274 0000 00ff ffff ffff ff0f 00ce ffff Bt.............. | |
181 | 00400850: ffff ffff ffff ffff ffff 0000 ffff ffff ................ | |
182 | 00400860: 0157 0050 0053 0065 0074 000f 00ce 7400 .W.P.S.e.t....t. | |
183 | 00400870: 6900 6e00 6700 7300 2e00 0000 6400 6100 i.n.g.s.....d.a. | |
184 | 00400880: 5750 5345 5454 7e31 4441 5420 0020 91ae WPSETT~1DAT . .. | |
185 | 00400890: 7253 7253 0000 92ae 7253 0400 0c00 0000 rSrS....rS...... | |
186 | 004008a0: e546 5330 2020 2020 4c4f 4722 0055 c5ae .FS0 LOG".U.. | |
187 | 004008b0: 7253 7253 0000 c6ae 7253 0800 0006 0000 rSrS....rS...... | |
188 | 004008c0: 4544 5020 2020 2020 2020 2010 0042 caae EDP ..B.. | |
189 | 004008d0: 7253 7253 0000 cbae 7253 0d00 0000 0000 rSrS....rS...... | |
190 | 004008e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
191 | * | |
192 | 00401000: 0c00 0000 0e8c 6100 9830 d88a 0000 0000 ......a..0...... | |
193 | 00401010: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
194 | * | |
195 | 00401800: 2e20 2020 2020 2020 2020 2010 0004 9aae . ..... | |
196 | 00401810: 7253 7253 0000 9bae 7253 0500 0000 0000 rSrS....rS...... | |
197 | 00401820: 2e2e 2020 2020 2020 2020 2010 0004 9aae .. ..... | |
198 | 00401830: 7253 7253 0000 9bae 7253 0000 0000 0000 rSrS....rS...... | |
199 | 00401840: 4445 534b 544f 5020 494e 4926 1804 9aae DESKTOP INI&.... | |
200 | 00401850: 7253 7253 0000 9bae 7253 0600 8100 0000 rSrS....rS...... | |
201 | 00401860: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
202 | * | |
203 | 00402000: 5b2e 5368 656c 6c43 6c61 7373 496e 666f [.ShellClassInfo | |
204 | 00402010: 5d0d 0a43 4c53 4944 3d7b 3634 3546 4630 ]..CLSID={645FF0 | |
205 | 00402020: 3430 2d35 3038 312d 3130 3142 2d39 4630 40-5081-101B-9F0 | |
206 | 00402030: 382d 3030 4141 3030 3246 3935 3445 7d0d 8-00AA002F954E}. | |
207 | 00402040: 0a4c 6f63 616c 697a 6564 5265 736f 7572 .LocalizedResour | |
208 | 00402050: 6365 4e61 6d65 3d40 2553 7973 7465 6d52 ceName=@%SystemR | |
209 | 00402060: 6f6f 7425 5c73 7973 7465 6d33 325c 7368 oot%\system32\sh | |
210 | 00402070: 656c 6c33 322e 646c 6c2c 2d38 3936 340d ell32.dll,-8964. | |
211 | 00402080: 0a00 0000 0000 0000 0000 0000 0000 0000 ................ | |
212 | 00402090: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
213 | * | |
214 | 00402800: 0010 0000 0000 0000 0200 0000 0e80 0000 ................ | |
215 | 00402810: be49 c640 12cc b143 9b68 be56 b04b 9565 .I.@...C.h.V.K.e | |
216 | 00402820: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
217 | 00402830: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
218 | 00402840: 5400 0000 0000 0000 0000 0000 0000 0000 T............... | |
219 | 00402850: 0000 0000 0100 0000 4602 0000 1400 0000 ........F....... | |
220 | 00402860: 0001 0000 4601 0000 0000 0000 3201 0000 ....F.......2... | |
221 | 00402870: 1c00 0000 0300 0000 fa00 0000 3800 0000 ............8... | |
222 | 00402880: 0000 0000 0000 0000 0105 0000 0000 0005 ................ | |
223 | 00402890: 1500 0000 506a 80a1 fd79 8bc2 58f9 50cd ....Pj...y..X.P. | |
224 | 004028a0: e903 0000 1400 0000 1400 0000 2800 0000 ............(... | |
225 | 004028b0: 7200 0000 d000 0000 ba66 765d 0835 3412 r........fv].54. | |
226 | 004028c0: f808 2615 08ca 57c3 adcb 12ca 3600 3000 ..&...W.....6.0. | |
227 | 004028d0: 3400 6400 3400 3200 6300 6400 2d00 3500 4.d.4.2.c.d.-.5. | |
228 | 004028e0: 3900 3700 3300 2d00 3400 3900 3600 3200 9.7.3.-.4.9.6.2. | |
229 | 004028f0: 2d00 3800 6100 6200 3700 2d00 3900 3400 -.8.a.b.7.-.9.4. | |
230 | 00402900: 3900 3200 3600 3800 3400 3400 3000 6500 9.2.6.8.4.4.0.e. | |
231 | 00402910: 3300 3500 0000 4d00 6900 6300 7200 6f00 3.5...M.i.c.r.o. | |
232 | 00402920: 7300 6f00 6600 7400 2000 4500 6e00 6800 s.o.f.t. .E.n.h. | |
233 | 00402930: 6100 6e00 6300 6500 6400 2000 4300 7200 a.n.c.e.d. .C.r. | |
234 | 00402940: 7900 7000 7400 6f00 6700 7200 6100 7000 y.p.t.o.g.r.a.p. | |
235 | 00402950: 6800 6900 6300 2000 5000 7200 6f00 7600 h.i.c. .P.r.o.v. | |
236 | 00402960: 6900 6400 6500 7200 2000 7600 3100 2e00 i.d.e.r. .v.1... | |
237 | 00402970: 3000 0000 5500 2800 5500 4000 4400 4500 0...U.(.U.@.D.E. | |
238 | 00402980: 5300 4b00 5400 4f00 5000 2d00 5200 4400 S.K.T.O.P.-.R.D. | |
239 | 00402990: 3300 3400 3100 4800 4100 2900 0000 2245 3.4.1.H.A.)..."E | |
240 | 004029a0: a214 a826 19de edb2 0bb0 d68a 8ef5 ba92 ...&............ | |
241 | 004029b0: 809c 59e8 77fb b155 c9ca 642b 9775 ffcf ..Y.w..U..d+.u.. | |
242 | 004029c0: a2b3 071b e6e2 d522 0731 6cc4 e983 4e0d .......".1l...N. | |
243 | 004029d0: 71b3 ebd1 db75 c0b4 c086 5755 b818 f73d q....u....WU...= | |
244 | 004029e0: d204 7af1 12d7 24de 4155 0e82 1478 2c5d ..z...$.AU...x,] | |
245 | 004029f0: b77a eba6 9dae a497 8464 4211 6b7a df23 .z.......dB.kz.# | |
246 | 00402a00: 9cc8 ea83 d22d 7ef0 9784 df12 1e0d 326c .....-~.......2l | |
247 | 00402a10: 26a9 bae9 4a7c 02a5 3440 0855 3e85 a7d5 &...J|..4@.U>... | |
248 | 00402a20: 9ad8 7e1b 5d13 d593 d576 bd32 0527 35e0 ..~.]....v.2.'5. | |
249 | 00402a30: 01d9 17b0 b6c9 ba4a 048c e158 5a97 e2d2 .......J...XZ... | |
250 | 00402a40: a9c1 7e91 a5f2 e68d ce13 b5db 89dc 7884 ..~...........x. | |
251 | 00402a50: c280 90d7 edaa 4a47 c376 4651 d9c3 2b58 ......JG.vFQ..+X | |
252 | 00402a60: 0561 0bad c3f8 1a7f 2b21 fd96 60e6 189b .a......+!..`... | |
253 | 00402a70: e9d6 82f1 7e05 9ea7 06cb 4bb3 ae98 e5ac ....~.....K..... | |
254 | 00402a80: 9475 2a80 7288 adf1 e14e 88b2 d160 bd03 .u*.r....N...`.. | |
255 | 00402a90: cf8e acdd da24 a1d3 ac39 c8ef b146 0000 .....$...9...F.. | |
256 | 00402aa0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
257 | * | |
258 | 00403000: 0010 0000 0000 0000 0200 0000 0e80 0000 ................ | |
259 | 00403010: 5c1f aca2 f570 f044 a539 725a 50cf cddb \....p.D.9rZP... | |
260 | 00403020: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
261 | 00403030: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
262 | 00403040: 5400 0000 0000 0000 0000 0000 0000 0000 T............... | |
263 | 00403050: 0000 0000 0100 0000 4602 0000 1400 0000 ........F....... | |
264 | 00403060: 0001 0000 4601 0000 0000 0000 3201 0000 ....F.......2... | |
265 | 00403070: 1c00 0000 0300 0000 fa00 0000 3800 0000 ............8... | |
266 | 00403080: 0000 0000 0000 0000 0105 0000 0000 0005 ................ | |
267 | 00403090: 1500 0000 506a 80a1 fd79 8bc2 58f9 50cd ....Pj...y..X.P. | |
268 | 004030a0: e903 0000 1400 0000 1400 0000 2800 0000 ............(... | |
269 | 004030b0: 7200 0000 d000 0000 ba66 765d 0835 3412 r........fv].54. | |
270 | 004030c0: f808 2615 08ca 57c3 adcb 12ca 3600 3000 ..&...W.....6.0. | |
271 | 004030d0: 3400 6400 3400 3200 6300 6400 2d00 3500 4.d.4.2.c.d.-.5. | |
272 | 004030e0: 3900 3700 3300 2d00 3400 3900 3600 3200 9.7.3.-.4.9.6.2. | |
273 | 004030f0: 2d00 3800 6100 6200 3700 2d00 3900 3400 -.8.a.b.7.-.9.4. | |
274 | 00403100: 3900 3200 3600 3800 3400 3400 3000 6500 9.2.6.8.4.4.0.e. | |
275 | 00403110: 3300 3500 0000 4d00 6900 6300 7200 6f00 3.5...M.i.c.r.o. | |
276 | 00403120: 7300 6f00 6600 7400 2000 4500 6e00 6800 s.o.f.t. .E.n.h. | |
277 | 00403130: 6100 6e00 6300 6500 6400 2000 4300 7200 a.n.c.e.d. .C.r. | |
278 | 00403140: 7900 7000 7400 6f00 6700 7200 6100 7000 y.p.t.o.g.r.a.p. | |
279 | 00403150: 6800 6900 6300 2000 5000 7200 6f00 7600 h.i.c. .P.r.o.v. | |
280 | 00403160: 6900 6400 6500 7200 2000 7600 3100 2e00 i.d.e.r. .v.1... | |
281 | 00403170: 3000 0000 5500 2800 5500 4000 4400 4500 0...U.(.U.@.D.E. | |
282 | 00403180: 5300 4b00 5400 4f00 5000 2d00 5200 4400 S.K.T.O.P.-.R.D. | |
283 | 00403190: 3300 3400 3100 4800 4100 2900 0000 2245 3.4.1.H.A.)..."E | |
284 | 004031a0: a214 a826 19de edb2 0bb0 d68a 8ef5 ba92 ...&............ | |
285 | 004031b0: 809c 59e8 77fb b155 c9ca 642b 9775 ffcf ..Y.w..U..d+.u.. | |
286 | 004031c0: a2b3 071b e6e2 d522 0731 6cc4 e983 4e0d .......".1l...N. | |
287 | 004031d0: 71b3 ebd1 db75 c0b4 c086 5755 b818 f73d q....u....WU...= | |
288 | 004031e0: d204 7af1 12d7 24de 4155 0e82 1478 2c5d ..z...$.AU...x,] | |
289 | 004031f0: b77a eba6 9dae a497 8464 4211 6b7a df23 .z.......dB.kz.# | |
290 | 00403200: 9cc8 ea83 d22d 7ef0 9784 df12 1e0d 326c .....-~.......2l | |
291 | 00403210: 26a9 bae9 4a7c 02a5 3440 0855 3e85 a7d5 &...J|..4@.U>... | |
292 | 00403220: 9ad8 7e1b 5d13 d593 d576 bd32 0527 35e0 ..~.]....v.2.'5. | |
293 | 00403230: 01d9 17b0 b6c9 ba4a 048c e158 5a97 e2d2 .......J...XZ... | |
294 | 00403240: a9c1 7e91 a5f2 e68d ce13 b5db 89dc 7884 ..~...........x. | |
295 | 00403250: c280 90d7 edaa 4a47 c376 4651 d9c3 2b58 ......JG.vFQ..+X | |
296 | 00403260: 0561 0bad c3f8 1a7f 2b21 fd96 60e6 189b .a......+!..`... | |
297 | 00403270: e9d6 82f1 7e05 9ea7 06cb 4bb3 ae98 e5ac ....~.....K..... | |
298 | 00403280: 9475 2a80 7288 adf1 e14e 88b2 d160 bd03 .u*.r....N...`.. | |
299 | 00403290: cf8e acdd da24 a1d3 ac39 c8ef b146 0000 .....$...9...F.. | |
300 | 004032a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
301 | * | |
302 | 00404800: abea d5a9 29e0 58db dd45 e2e8 cb1e d513 ....).X..E...... | |
303 | 00404810: dbc7 e9d2 f0a4 ce91 c04f 96b8 22e1 d444 .........O.."..D | |
304 | 00404820: 219b 06b4 01fd eb5b a4d9 5792 e576 84ef !......[..W..v.. | |
305 | 00404830: 0e5d 455b 633b 4d16 1613 08ba e4b9 b96f .]E[c;M........o | |
306 | 00404840: 2f53 5d0d f61a 1086 82cb 38d5 326d 899d /S].......8.2m.. | |
307 | 00404850: ef7f d9df 6814 412c 3215 fb33 cbb8 5f94 ....h.A,2..3.._. | |
308 | 00404860: 8d81 a008 41e0 e5f1 8923 199c b5c6 b91d ....A....#...... | |
309 | 00404870: 832e 1ca7 4795 657e dd20 96dd 2b54 2c39 ....G.e~. ..+T,9 | |
310 | 00404880: fb72 3ad7 8458 7d54 96d9 1a68 b694 24e6 .r:..X}T...h..$. | |
311 | 00404890: 005b 2e36 5dae 0989 941f 173c 1877 2fad .[.6]......<.w/. | |
312 | 004048a0: d5ac fec9 8fb8 726f 8404 19f7 e008 18d3 ......ro........ | |
313 | 004048b0: 5f80 d1bb e7fe 2827 cf1c 4bde f815 d7a6 _.....('..K..... | |
314 | 004048c0: 08f4 3c7b d014 eb01 8674 be5b 5d50 2d84 ..<{.....t.[]P-. | |
315 | 004048d0: de1a dd42 c0b7 4857 30a1 5727 d785 9f8d ...B..HW0.W'.... | |
316 | 004048e0: 166d 8f4a c0cc e6bb 55bc 01e5 8b68 4ebb .m.J....U....hN. | |
317 | 004048f0: 3b7d 60e5 752a 4434 58c8 06d9 8a10 afc4 ;}`.u*D4X....... | |
318 | 00404900: 5bda 724a 1753 8a66 5e67 4142 2a6b 5a26 [.rJ.S.f^gAB*kZ& | |
319 | 00404910: 19e3 9d6b 8f6f a195 7826 af14 9d6a 10ec ...k.o..x&...j.. | |
320 | 00404920: 27de af3a 1d1c 2fed 2483 d643 dc1f e9a4 '..:../.$..C.... | |
321 | 00404930: 5b1b adaf bd76 c07a dfcb 5a98 3839 2aab [....v.z..Z.89*. | |
322 | 00404940: 6f5e 3e52 b1a8 ea93 9e95 b804 5092 aa38 o^>R........P..8 | |
323 | 00404950: 0843 3c81 89d0 f64b 1320 faeb 26a5 d329 .C<....K. ..&..) | |
324 | 00404960: 5024 fe42 060f e582 f15a 9d2a a7cf c516 P$.B.....Z.*.... | |
325 | 00404970: ea0f aaf5 7a19 d1d7 004f 8108 8628 58ef ....z....O...(X. | |
326 | 00404980: e6d4 8ec8 c271 7a4f 7353 20e5 88bf 40e8 .....qzOsS ...@. | |
327 | 00404990: dc5e 8853 0ff5 3dbe f25b b47e 7a89 2bce .^.S..=..[.~z.+. | |
328 | 004049a0: 01d9 6c13 6a36 40e1 0777 ce56 e0d0 c4b0 ..l.j6@..w.V.... | |
329 | 004049b0: dce4 6f40 300a 19aa 688b 0b00 f66b 900a ..o@0...h....k.. | |
330 | 004049c0: 6c90 33b8 5a0c ac95 2bd9 6bf5 72a5 23c2 l.3.Z...+.k.r.#. | |
331 | 004049d0: e6db 80c8 5bba 8e7e 8d47 3395 911d 8dda ....[..~.G3..... | |
332 | 004049e0: fea1 d95b 3657 5b0c a398 8fb4 f5d7 bd0b ...[6W[......... | |
333 | 004049f0: 369e fef6 719e 0cd1 b113 ffea f2bd b274 6...q..........t | |
334 | 00404a00: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
335 | * | |
336 | 00405000: abea d5a9 29e0 58db dd45 e2e8 cb1e d513 ....).X..E...... | |
337 | 00405010: dbc7 e9d2 f0a4 ce91 c04f 96b8 22e1 d444 .........O.."..D | |
338 | 00405020: 219b 06b4 01fd eb5b a4d9 5792 e576 84ef !......[..W..v.. | |
339 | 00405030: 0e5d 455b 633b 4d16 1613 08ba e4b9 b96f .]E[c;M........o | |
340 | 00405040: 2f53 5d0d f61a 1086 82cb 38d5 326d 899d /S].......8.2m.. | |
341 | 00405050: ef7f d9df 6814 412c 3215 fb33 cbb8 5f94 ....h.A,2..3.._. | |
342 | 00405060: 8d81 a008 41e0 e5f1 8923 199c b5c6 b91d ....A....#...... | |
343 | 00405070: 832e 1ca7 4795 657e dd20 96dd 2b54 2c39 ....G.e~. ..+T,9 | |
344 | 00405080: fb72 3ad7 8458 7d54 96d9 1a68 b694 24e6 .r:..X}T...h..$. | |
345 | 00405090: 005b 2e36 5dae 0989 941f 173c 1877 2fad .[.6]......<.w/. | |
346 | 004050a0: d5ac fec9 8fb8 726f 8404 19f7 e008 18d3 ......ro........ | |
347 | 004050b0: 5f80 d1bb e7fe 2827 cf1c 4bde f815 d7a6 _.....('..K..... | |
348 | 004050c0: 08f4 3c7b d014 eb01 8674 be5b 5d50 2d84 ..<{.....t.[]P-. | |
349 | 004050d0: de1a dd42 c0b7 4857 30a1 5727 d785 9f8d ...B..HW0.W'.... | |
350 | 004050e0: 166d 8f4a c0cc e6bb 55bc 01e5 8b68 4ebb .m.J....U....hN. | |
351 | 004050f0: 3b7d 60e5 752a 4434 58c8 06d9 8a10 afc4 ;}`.u*D4X....... | |
352 | 00405100: 5bda 724a 1753 8a66 5e67 4142 2a6b 5a26 [.rJ.S.f^gAB*kZ& | |
353 | 00405110: 19e3 9d6b 8f6f a195 7826 af14 9d6a 10ec ...k.o..x&...j.. | |
354 | 00405120: 27de af3a 1d1c 2fed 2483 d643 dc1f e9a4 '..:../.$..C.... | |
355 | 00405130: 5b1b adaf bd76 c07a dfcb 5a98 3839 2aab [....v.z..Z.89*. | |
356 | 00405140: 6f5e 3e52 b1a8 ea93 9e95 b804 5092 aa38 o^>R........P..8 | |
357 | 00405150: 0843 3c81 89d0 f64b 1320 faeb 26a5 d329 .C<....K. ..&..) | |
358 | 00405160: 5024 fe42 060f e582 f15a 9d2a a7cf c516 P$.B.....Z.*.... | |
359 | 00405170: ea0f aaf5 7a19 d1d7 004f 8108 8628 58ef ....z....O...(X. | |
360 | 00405180: e6d4 8ec8 c271 7a4f 7353 20e5 88bf 40e8 .....qzOsS ...@. | |
361 | 00405190: dc5e 8853 0ff5 3dbe f25b b47e 7a89 2bce .^.S..=..[.~z.+. | |
362 | 004051a0: 01d9 6c13 6a36 40e1 0777 ce56 e0d0 c4b0 ..l.j6@..w.V.... | |
363 | 004051b0: dce4 6f40 300a 19aa 688b 0b00 f66b 900a ..o@0...h....k.. | |
364 | 004051c0: 6c90 33b8 5a0c ac95 2bd9 6bf5 72a5 23c2 l.3.Z...+.k.r.#. | |
365 | 004051d0: e6db 80c8 5bba 8e7e 8d47 3395 911d 8dda ....[..~.G3..... | |
366 | 004051e0: fea1 d95b 3657 5b0c a398 8fb4 f5d7 bd0b ...[6W[......... | |
367 | 004051f0: 369e fef6 719e 0cd1 b113 ffea f2bd b274 6...q..........t | |
368 | 00405200: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
369 | * | |
370 | 00405800: 2e20 2020 2020 2020 2020 2010 0042 caae . ..B.. | |
371 | 00405810: 7253 7253 0000 cbae 7253 0d00 0000 0000 rSrS....rS...... | |
372 | 00405820: 2e2e 2020 2020 2020 2020 2010 0042 caae .. ..B.. | |
373 | 00405830: 7253 7253 0000 cbae 7253 0300 0000 0000 rSrS....rS...... | |
374 | 00405840: 4152 0065 0063 006f 0076 000f 0014 6500 AR.e.c.o.v....e. | |
375 | 00405850: 7200 7900 0000 ffff ffff 0000 ffff ffff r.y............. | |
376 | 00405860: 5245 434f 5645 5259 2020 2010 0042 caae RECOVERY ..B.. | |
377 | 00405870: 7253 7253 0000 cbae 7253 0e00 0000 0000 rSrS....rS...... | |
378 | 00405880: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
379 | * | |
380 | 00406000: 2e20 2020 2020 2020 2020 2010 0042 caae . ..B.. | |
381 | 00406010: 7253 7253 0000 cbae 7253 0e00 0000 0000 rSrS....rS...... | |
382 | 00406020: 2e2e 2020 2020 2020 2020 2010 0042 caae .. ..B.. | |
383 | 00406030: 7253 7253 0000 cbae 7253 0d00 0000 0000 rSrS....rS...... | |
384 | 00406040: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
385 | * | |
386 | 0fcffff0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ |
0 | 00000000: eb58 904d 5344 4f53 352e 3000 0204 3618 .X.MSDOS5.0...6. | |
1 | 00000010: 0200 0000 00f8 0000 3f00 ff00 8000 0000 ........?....... | |
2 | 00000020: 00e8 0700 e503 0000 0000 0000 0200 0000 ................ | |
3 | 00000030: 0100 0600 0000 0000 0000 0000 0000 0000 ................ | |
4 | 00000040: 8000 2991 fc95 704e 4f20 4e41 4d45 2020 ..)...pNO NAME | |
5 | 00000050: 2020 4641 5433 3220 2020 2020 2020 2020 FAT32 | |
6 | 00000060: 2020 2020 2020 2020 2020 2020 2020 2020 | |
7 | 00000070: 2020 2020 2020 2020 2020 2020 2020 2020 | |
8 | 00000080: 2020 424f 4f54 2043 4f44 4520 2020 2020 BOOT CODE | |
9 | 00000090: 2020 2020 2052 454d 4f56 4544 2020 2020 REMOVED | |
10 | 000000a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
11 | 000000b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
12 | 000000c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
13 | 000000d0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
14 | 000000e0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
15 | 000000f0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
16 | 00000100: 2020 2020 2020 2020 2020 2020 2020 2020 | |
17 | 00000110: 2020 2020 2020 2020 2020 2020 2020 2020 | |
18 | 00000120: 2020 2020 2020 2020 2020 2020 2020 2020 | |
19 | 00000130: 2020 2020 2020 2020 2020 2020 2020 2020 | |
20 | 00000140: 2020 2020 2020 2020 2020 2020 2020 2020 | |
21 | 00000150: 2020 2020 2020 2020 2020 2020 2020 2020 | |
22 | 00000160: 2020 2020 2020 2020 2020 2020 2020 2020 | |
23 | 00000170: 2020 2020 2020 2020 2020 2020 2020 2020 | |
24 | 00000180: 2020 2020 2020 2020 2020 2020 2020 2020 | |
25 | 00000190: 2020 2020 2020 2020 2020 2020 2020 2020 | |
26 | 000001a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
27 | 000001b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
28 | 000001c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
29 | 000001d0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
30 | 000001e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
31 | 000001f0: 0000 0000 0000 0000 ac01 b901 0000 55aa ..............U. | |
32 | 00000200: 5252 6141 0000 0000 0000 0000 0000 0000 RRaA............ | |
33 | 00000210: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
34 | * | |
35 | 000003e0: 0000 0000 7272 4161 f3f1 0100 0f00 0000 ....rrAa........ | |
36 | 000003f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
37 | 00000400: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
38 | * | |
39 | 000005f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
40 | 00000600: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
41 | * | |
42 | 00000c00: eb58 904d 5344 4f53 352e 3000 0204 3618 .X.MSDOS5.0...6. | |
43 | 00000c10: 0200 0000 00f8 0000 3f00 ff00 8000 0000 ........?....... | |
44 | 00000c20: 00e8 0700 e503 0000 0000 0000 0200 0000 ................ | |
45 | 00000c30: 0100 0600 0000 0000 0000 0000 0000 0000 ................ | |
46 | 00000c40: 8000 2991 fc95 704e 4f20 4e41 4d45 2020 ..)...pNO NAME | |
47 | 00000c50: 2020 4641 5433 3220 2020 2020 2020 2020 FAT32 | |
48 | 00000c60: 2020 2020 2020 2020 2020 2020 2020 2020 | |
49 | 00000c70: 2020 2020 2020 2020 2020 2020 2020 2020 | |
50 | 00000c80: 2020 424f 4f54 2043 4f44 4520 2020 2020 BOOT CODE | |
51 | 00000c90: 2020 2020 2052 454d 4f56 4544 2020 2020 REMOVED | |
52 | 00000ca0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
53 | 00000cb0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
54 | 00000cc0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
55 | 00000cd0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
56 | 00000ce0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
57 | 00000cf0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
58 | 00000d00: 2020 2020 2020 2020 2020 2020 2020 2020 | |
59 | 00000d10: 2020 2020 2020 2020 2020 2020 2020 2020 | |
60 | 00000d20: 2020 2020 2020 2020 2020 2020 2020 2020 | |
61 | 00000d30: 2020 2020 2020 2020 2020 2020 2020 2020 | |
62 | 00000d40: 2020 2020 2020 2020 2020 2020 2020 2020 | |
63 | 00000d50: 2020 2020 2020 2020 2020 2020 2020 2020 | |
64 | 00000d60: 2020 2020 2020 2020 2020 2020 2020 2020 | |
65 | 00000d70: 2020 2020 2020 2020 2020 2020 2020 2020 | |
66 | 00000d80: 2020 2020 2020 2020 2020 2020 2020 2020 | |
67 | 00000d90: 2020 2020 2020 2020 2020 2020 2020 2020 | |
68 | 00000da0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
69 | 00000db0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
70 | 00000dc0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
71 | 00000dd0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
72 | 00000de0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
73 | 00000df0: 0000 0000 0000 0000 ac01 b901 0000 55aa ..............U. | |
74 | 00000e00: 5252 6141 0000 0000 0000 0000 0000 0000 RRaA............ | |
75 | 00000e10: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
76 | * | |
77 | 00000fe0: 0000 0000 7272 4161 ffff ffff 0200 0000 ....rrAa........ | |
78 | 00000ff0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
79 | 00001000: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
80 | * | |
81 | 000011f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
82 | 00001200: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
83 | * | |
84 | 00001800: 2020 2020 2020 2020 2020 2020 2020 2020 | |
85 | 00001810: 2020 2020 2020 2020 2020 2020 2020 2020 | |
86 | 00001820: 2020 2020 2020 2020 2020 2020 2020 2020 | |
87 | 00001830: 2020 2020 2020 2020 2020 2020 2020 2020 | |
88 | 00001840: 2020 2020 2020 2020 2020 2020 2020 2020 | |
89 | 00001850: 2020 2020 2020 2020 2020 2020 2020 2020 | |
90 | 00001860: 2020 2020 424f 4f54 2043 4f44 4520 2020 BOOT CODE | |
91 | 00001870: 2020 5245 4d4f 5645 4420 2020 2020 2020 REMOVED | |
92 | 00001880: 2020 2020 2020 2020 2020 2020 2020 2020 | |
93 | 00001890: 2020 2020 2020 2020 2020 2020 2020 2020 | |
94 | 000018a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
95 | 000018b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
96 | 000018c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
97 | 000018d0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
98 | 000018e0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
99 | 000018f0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
100 | 00001900: 2020 2020 2020 2020 2020 2020 2020 2020 | |
101 | 00001910: 2020 2020 2020 2020 2020 2020 2020 2020 | |
102 | 00001920: 2020 2020 2020 2020 2020 2020 2020 2020 | |
103 | 00001930: 2020 2020 2020 2020 2020 2020 2020 2020 | |
104 | 00001940: 2020 2020 2020 2020 2020 2020 2020 2020 | |
105 | 00001950: 2020 2020 2020 2020 2020 2020 2020 2020 | |
106 | 00001960: 2020 2020 2020 2020 2020 2020 2020 2020 | |
107 | 00001970: 2020 2020 2020 2020 2020 2020 2020 2020 | |
108 | 00001980: 2020 2020 2020 2020 2020 2020 2020 2020 | |
109 | 00001990: 2020 2020 2020 2020 2020 2020 2020 2020 | |
110 | 000019a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
111 | 000019b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
112 | 000019c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
113 | 000019d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
114 | 000019e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
115 | 000019f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
116 | 00001a00: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
117 | * | |
118 | 00306c00: f8ff ff0f ffff ffff ffff ff0f ffff ff0f ................ | |
119 | 00306c10: ffff ff0f ffff ff0f ffff ff0f 0a00 0000 ................ | |
120 | 00306c20: 0900 0000 0c00 0000 0b00 0000 ffff ff0f ................ | |
121 | 00306c30: ffff ff0f ffff ff0f ffff ff0f 0000 0000 ................ | |
122 | 00306c40: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
123 | * | |
124 | 00383600: f8ff ff0f ffff ffff ffff ff0f ffff ff0f ................ | |
125 | 00383610: ffff ff0f ffff ff0f ffff ff0f 0a00 0000 ................ | |
126 | 00383620: 0900 0000 0c00 0000 0b00 0000 ffff ff0f ................ | |
127 | 00383630: ffff ff0f ffff ff0f ffff ff0f 0000 0000 ................ | |
128 | 00383640: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
129 | * | |
130 | 00400000: 454e 4352 5950 5449 4f4e 2008 0000 0000 ENCRYPTION ..... | |
131 | 00400010: 0000 0000 0000 90ae 7253 0000 0000 0000 ........rS...... | |
132 | 00400020: 4220 0049 006e 0066 006f 000f 0072 7200 B .I.n.f.o...rr. | |
133 | 00400030: 6d00 6100 7400 6900 6f00 0000 6e00 0000 m.a.t.i.o...n... | |
134 | 00400040: 0153 0079 0073 0074 0065 000f 0072 6d00 .S.y.s.t.e...rm. | |
135 | 00400050: 2000 5600 6f00 6c00 7500 0000 6d00 6500 .V.o.l.u...m.e. | |
136 | 00400060: 5359 5354 454d 7e31 2020 2016 0020 91ae SYSTEM~1 .. .. | |
137 | 00400070: 7253 7253 0000 92ae 7253 0300 0000 0000 rSrS....rS...... | |
138 | 00400080: e564 002e 0074 0078 0074 000f 0059 0000 .d...t.x.t...Y.. | |
139 | 00400090: ffff ffff ffff ffff ffff 0000 ffff ffff ................ | |
140 | 004000a0: e574 0065 0073 0074 005f 000f 0059 6500 .t.e.s.t._...Ye. | |
141 | 004000b0: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
142 | 004000c0: e545 5354 5f45 7e31 5458 5420 018a 99ae .EST_E~1TXT .... | |
143 | 004000d0: 7253 7253 0000 bcae 7253 0700 0000 0000 rSrS....rS...... | |
144 | 004000e0: 2452 4543 5943 4c45 4249 4e16 0004 9aae $RECYCLEBIN..... | |
145 | 004000f0: 7253 7253 0000 9bae 7253 0500 0000 0000 rSrS....rS...... | |
146 | 00400100: e546 5330 2020 2020 544d 5026 0056 c5ae .FS0 TMP&.V.. | |
147 | 00400110: 7253 7253 0000 c6ae 7253 0900 0e00 0000 rSrS....rS...... | |
148 | 00400120: 4264 002e 0074 0078 0074 000f 0041 2e00 Bd...t.x.t...A.. | |
149 | 00400130: 5000 4600 4900 4c00 4500 0000 0000 ffff P.F.I.L.E....... | |
150 | 00400140: 0174 0065 0073 0074 005f 000f 0041 6500 .t.e.s.t._...Ae. | |
151 | 00400150: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
152 | 00400160: 543a 5354 5f45 7e31 5046 4920 218a 99ae T:ST_E~1PFI !... | |
153 | 00400170: 7253 7253 0000 bcae 7253 0700 1010 0000 rSrS....rS...... | |
154 | 00400180: e564 0020 002d 0020 0043 000f 0059 6f00 .d. .-. .C...Yo. | |
155 | 00400190: 7000 7900 2e00 7400 7800 0000 7400 0000 p.y...t.x...t... | |
156 | 004001a0: e574 0065 0073 0074 005f 000f 0059 6500 .t.e.s.t._...Ye. | |
157 | 004001b0: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
158 | 004001c0: e545 5354 5f45 7e31 5458 5420 010a c8ae .EST_E~1TXT .... | |
159 | 004001d0: 7253 7253 0000 c9ae 7253 0000 0000 0000 rSrS....rS...... | |
160 | 004001e0: e550 0046 0049 004c 0045 000f 0064 0000 .P.F.I.L.E...d.. | |
161 | 004001f0: ffff ffff ffff ffff ffff 0000 ffff ffff ................ | |
162 | 00400200: e564 0020 002d 0020 0043 000f 0064 6f00 .d. .-. .C...do. | |
163 | 00400210: 7000 7900 2e00 7400 7800 0000 7400 2e00 p.y...t.x...t... | |
164 | 00400220: e574 0065 0073 0074 005f 000f 0064 6500 .t.e.s.t._...de. | |
165 | 00400230: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
166 | 00400240: e545 5354 5f45 7e32 5046 4920 210a c8ae .EST_E~2PFI !... | |
167 | 00400250: 7253 7253 0000 bcae 7253 0800 1010 0000 rSrS....rS...... | |
168 | 00400260: 4264 005f 0032 002e 0074 000f 0064 7800 Bd._.2...t...dx. | |
169 | 00400270: 7400 2e00 5000 4600 4900 0000 4c00 4500 t...P.F.I...L.E. | |
170 | 00400280: 0174 0065 0073 0074 005f 000f 0064 6500 .t.e.s.t._...de. | |
171 | 00400290: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
172 | 004002a0: 5445 5354 5f45 7e32 5046 4920 210a c8ae TEST_E~2PFI !... | |
173 | 004002b0: 7253 7253 0000 bcae 7253 0800 1010 0000 rSrS....rS...... | |
174 | 004002c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
175 | * | |
176 | 00400800: 2e20 2020 2020 2020 2020 2010 0020 91ae . .. .. | |
177 | 00400810: 7253 7253 0000 92ae 7253 0300 0000 0000 rSrS....rS...... | |
178 | 00400820: 2e2e 2020 2020 2020 2020 2010 0020 91ae .. .. .. | |
179 | 00400830: 7253 7253 0000 92ae 7253 0000 0000 0000 rSrS....rS...... | |
180 | 00400840: 4274 0000 00ff ffff ffff ff0f 00ce ffff Bt.............. | |
181 | 00400850: ffff ffff ffff ffff ffff 0000 ffff ffff ................ | |
182 | 00400860: 0157 0050 0053 0065 0074 000f 00ce 7400 .W.P.S.e.t....t. | |
183 | 00400870: 6900 6e00 6700 7300 2e00 0000 6400 6100 i.n.g.s.....d.a. | |
184 | 00400880: 5750 5345 5454 7e31 4441 5420 0020 91ae WPSETT~1DAT . .. | |
185 | 00400890: 7253 7253 0000 92ae 7253 0400 0c00 0000 rSrS....rS...... | |
186 | 004008a0: e546 5330 2020 2020 4c4f 4722 0055 c5ae .FS0 LOG".U.. | |
187 | 004008b0: 7253 7253 0000 c6ae 7253 0800 0006 0000 rSrS....rS...... | |
188 | 004008c0: 4544 5020 2020 2020 2020 2010 0042 caae EDP ..B.. | |
189 | 004008d0: 7253 7253 0000 cbae 7253 0d00 0000 0000 rSrS....rS...... | |
190 | 004008e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
191 | * | |
192 | 00401000: 0c00 0000 0e8c 6100 9830 d88a 0000 0000 ......a..0...... | |
193 | 00401010: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
194 | * | |
195 | 00401800: 2e20 2020 2020 2020 2020 2010 0004 9aae . ..... | |
196 | 00401810: 7253 7253 0000 9bae 7253 0500 0000 0000 rSrS....rS...... | |
197 | 00401820: 2e2e 2020 2020 2020 2020 2010 0004 9aae .. ..... | |
198 | 00401830: 7253 7253 0000 9bae 7253 0000 0000 0000 rSrS....rS...... | |
199 | 00401840: 4445 534b 544f 5020 494e 4926 1804 9aae DESKTOP INI&.... | |
200 | 00401850: 7253 7253 0000 9bae 7253 0600 8100 0000 rSrS....rS...... | |
201 | 00401860: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
202 | * | |
203 | 00402000: 5b2e 5368 656c 6c43 6c61 7373 496e 666f [.ShellClassInfo | |
204 | 00402010: 5d0d 0a43 4c53 4944 3d7b 3634 3546 4630 ]..CLSID={645FF0 | |
205 | 00402020: 3430 2d35 3038 312d 3130 3142 2d39 4630 40-5081-101B-9F0 | |
206 | 00402030: 382d 3030 4141 3030 3246 3935 3445 7d0d 8-00AA002F954E}. | |
207 | 00402040: 0a4c 6f63 616c 697a 6564 5265 736f 7572 .LocalizedResour | |
208 | 00402050: 6365 4e61 6d65 3d40 2553 7973 7465 6d52 ceName=@%SystemR | |
209 | 00402060: 6f6f 7425 5c73 7973 7465 6d33 325c 7368 oot%\system32\sh | |
210 | 00402070: 656c 6c33 322e 646c 6c2c 2d38 3936 340d ell32.dll,-8964. | |
211 | 00402080: 0a00 0000 0000 0000 0000 0000 0000 0000 ................ | |
212 | 00402090: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
213 | * | |
214 | 00402800: 0010 0000 0000 0000 0200 0000 0e80 0000 ................ | |
215 | 00402810: be49 c640 12cc b143 9b68 be56 b04b 9565 .I.@...C.h.V.K.e | |
216 | 00402820: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
217 | 00402830: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
218 | 00402840: 5400 0000 0000 0000 0000 0000 0000 0000 T............... | |
219 | 00402850: 0000 0000 0100 0000 4602 0000 1400 0000 ........F....... | |
220 | 00402860: 0001 0000 4601 0000 0000 0000 3201 0000 ....F.......2... | |
221 | 00402870: 1c00 0000 0300 0000 fa00 0000 3800 0000 ............8... | |
222 | 00402880: 0000 0000 0000 0000 0105 0000 0000 0005 ................ | |
223 | 00402890: 1500 0000 506a 80a1 fd79 8bc2 58f9 50cd ....Pj...y..X.P. | |
224 | 004028a0: e903 0000 1400 0000 1400 0000 2800 0000 ............(... | |
225 | 004028b0: 7200 0000 d000 0000 ba66 765d 0835 3412 r........fv].54. | |
226 | 004028c0: f808 2615 08ca 57c3 adcb 12ca 3600 3000 ..&...W.....6.0. | |
227 | 004028d0: 3400 6400 3400 3200 6300 6400 2d00 3500 4.d.4.2.c.d.-.5. | |
228 | 004028e0: 3900 3700 3300 2d00 3400 3900 3600 3200 9.7.3.-.4.9.6.2. | |
229 | 004028f0: 2d00 3800 6100 6200 3700 2d00 3900 3400 -.8.a.b.7.-.9.4. | |
230 | 00402900: 3900 3200 3600 3800 3400 3400 3000 6500 9.2.6.8.4.4.0.e. | |
231 | 00402910: 3300 3500 0000 4d00 6900 6300 7200 6f00 3.5...M.i.c.r.o. | |
232 | 00402920: 7300 6f00 6600 7400 2000 4500 6e00 6800 s.o.f.t. .E.n.h. | |
233 | 00402930: 6100 6e00 6300 6500 6400 2000 4300 7200 a.n.c.e.d. .C.r. | |
234 | 00402940: 7900 7000 7400 6f00 6700 7200 6100 7000 y.p.t.o.g.r.a.p. | |
235 | 00402950: 6800 6900 6300 2000 5000 7200 6f00 7600 h.i.c. .P.r.o.v. | |
236 | 00402960: 6900 6400 6500 7200 2000 7600 3100 2e00 i.d.e.r. .v.1... | |
237 | 00402970: 3000 0000 5500 2800 5500 4000 4400 4500 0...U.(.U.@.D.E. | |
238 | 00402980: 5300 4b00 5400 4f00 5000 2d00 5200 4400 S.K.T.O.P.-.R.D. | |
239 | 00402990: 3300 3400 3100 4800 4100 2900 0000 2245 3.4.1.H.A.)..."E | |
240 | 004029a0: a214 a826 19de edb2 0bb0 d68a 8ef5 ba92 ...&............ | |
241 | 004029b0: 809c 59e8 77fb b155 c9ca 642b 9775 ffcf ..Y.w..U..d+.u.. | |
242 | 004029c0: a2b3 071b e6e2 d522 0731 6cc4 e983 4e0d .......".1l...N. | |
243 | 004029d0: 71b3 ebd1 db75 c0b4 c086 5755 b818 f73d q....u....WU...= | |
244 | 004029e0: d204 7af1 12d7 24de 4155 0e82 1478 2c5d ..z...$.AU...x,] | |
245 | 004029f0: b77a eba6 9dae a497 8464 4211 6b7a df23 .z.......dB.kz.# | |
246 | 00402a00: 9cc8 ea83 d22d 7ef0 9784 df12 1e0d 326c .....-~.......2l | |
247 | 00402a10: 26a9 bae9 4a7c 02a5 3440 0855 3e85 a7d5 &...J|..4@.U>... | |
248 | 00402a20: 9ad8 7e1b 5d13 d593 d576 bd32 0527 35e0 ..~.]....v.2.'5. | |
249 | 00402a30: 01d9 17b0 b6c9 ba4a 048c e158 5a97 e2d2 .......J...XZ... | |
250 | 00402a40: a9c1 7e91 a5f2 e68d ce13 b5db 89dc 7884 ..~...........x. | |
251 | 00402a50: c280 90d7 edaa 4a47 c376 4651 d9c3 2b58 ......JG.vFQ..+X | |
252 | 00402a60: 0561 0bad c3f8 1a7f 2b21 fd96 60e6 189b .a......+!..`... | |
253 | 00402a70: e9d6 82f1 7e05 9ea7 06cb 4bb3 ae98 e5ac ....~.....K..... | |
254 | 00402a80: 9475 2a80 7288 adf1 e14e 88b2 d160 bd03 .u*.r....N...`.. | |
255 | 00402a90: cf8e acdd da24 a1d3 ac39 c8ef b146 0000 .....$...9...F.. | |
256 | 00402aa0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
257 | * | |
258 | 00403000: 0010 0000 0000 0000 0200 0000 0e80 0000 ................ | |
259 | 00403010: 5c1f aca2 f570 f044 a539 725a 50cf cddb \....p.D.9rZP... | |
260 | 00403020: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
261 | 00403030: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
262 | 00403040: 5400 0000 0000 0000 0000 0000 0000 0000 T............... | |
263 | 00403050: 0000 0000 0100 0000 4602 0000 1400 0000 ........F....... | |
264 | 00403060: 0001 0000 4601 0000 0000 0000 3201 0000 ....F.......2... | |
265 | 00403070: 1c00 0000 0300 0000 fa00 0000 3800 0000 ............8... | |
266 | 00403080: 0000 0000 0000 0000 0105 0000 0000 0005 ................ | |
267 | 00403090: 1500 0000 506a 80a1 fd79 8bc2 58f9 50cd ....Pj...y..X.P. | |
268 | 004030a0: e903 0000 1400 0000 1400 0000 2800 0000 ............(... | |
269 | 004030b0: 7200 0000 d000 0000 ba66 765d 0835 3412 r........fv].54. | |
270 | 004030c0: f808 2615 08ca 57c3 adcb 12ca 3600 3000 ..&...W.....6.0. | |
271 | 004030d0: 3400 6400 3400 3200 6300 6400 2d00 3500 4.d.4.2.c.d.-.5. | |
272 | 004030e0: 3900 3700 3300 2d00 3400 3900 3600 3200 9.7.3.-.4.9.6.2. | |
273 | 004030f0: 2d00 3800 6100 6200 3700 2d00 3900 3400 -.8.a.b.7.-.9.4. | |
274 | 00403100: 3900 3200 3600 3800 3400 3400 3000 6500 9.2.6.8.4.4.0.e. | |
275 | 00403110: 3300 3500 0000 4d00 6900 6300 7200 6f00 3.5...M.i.c.r.o. | |
276 | 00403120: 7300 6f00 6600 7400 2000 4500 6e00 6800 s.o.f.t. .E.n.h. | |
277 | 00403130: 6100 6e00 6300 6500 6400 2000 4300 7200 a.n.c.e.d. .C.r. | |
278 | 00403140: 7900 7000 7400 6f00 6700 7200 6100 7000 y.p.t.o.g.r.a.p. | |
279 | 00403150: 6800 6900 6300 2000 5000 7200 6f00 7600 h.i.c. .P.r.o.v. | |
280 | 00403160: 6900 6400 6500 7200 2000 7600 3100 2e00 i.d.e.r. .v.1... | |
281 | 00403170: 3000 0000 5500 2800 5500 4000 4400 4500 0...U.(.U.@.D.E. | |
282 | 00403180: 5300 4b00 5400 4f00 5000 2d00 5200 4400 S.K.T.O.P.-.R.D. | |
283 | 00403190: 3300 3400 3100 4800 4100 2900 0000 2245 3.4.1.H.A.)..."E | |
284 | 004031a0: a214 a826 19de edb2 0bb0 d68a 8ef5 ba92 ...&............ | |
285 | 004031b0: 809c 59e8 77fb b155 c9ca 642b 9775 ffcf ..Y.w..U..d+.u.. | |
286 | 004031c0: a2b3 071b e6e2 d522 0731 6cc4 e983 4e0d .......".1l...N. | |
287 | 004031d0: 71b3 ebd1 db75 c0b4 c086 5755 b818 f73d q....u....WU...= | |
288 | 004031e0: d204 7af1 12d7 24de 4155 0e82 1478 2c5d ..z...$.AU...x,] | |
289 | 004031f0: b77a eba6 9dae a497 8464 4211 6b7a df23 .z.......dB.kz.# | |
290 | 00403200: 9cc8 ea83 d22d 7ef0 9784 df12 1e0d 326c .....-~.......2l | |
291 | 00403210: 26a9 bae9 4a7c 02a5 3440 0855 3e85 a7d5 &...J|..4@.U>... | |
292 | 00403220: 9ad8 7e1b 5d13 d593 d576 bd32 0527 35e0 ..~.]....v.2.'5. | |
293 | 00403230: 01d9 17b0 b6c9 ba4a 048c e158 5a97 e2d2 .......J...XZ... | |
294 | 00403240: a9c1 7e91 a5f2 e68d ce13 b5db 89dc 7884 ..~...........x. | |
295 | 00403250: c280 90d7 edaa 4a47 c376 4651 d9c3 2b58 ......JG.vFQ..+X | |
296 | 00403260: 0561 0bad c3f8 1a7f 2b21 fd96 60e6 189b .a......+!..`... | |
297 | 00403270: e9d6 82f1 7e05 9ea7 06cb 4bb3 ae98 e5ac ....~.....K..... | |
298 | 00403280: 9475 2a80 7288 adf1 e14e 88b2 d160 bd03 .u*.r....N...`.. | |
299 | 00403290: cf8e acdd da24 a1d3 ac39 c8ef b146 0000 .....$...9...F.. | |
300 | 004032a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
301 | * | |
302 | 00404800: abea d5a9 29e0 58db dd45 e2e8 cb1e d513 ....).X..E...... | |
303 | 00404810: dbc7 e9d2 f0a4 ce91 c04f 96b8 22e1 d444 .........O.."..D | |
304 | 00404820: 219b 06b4 01fd eb5b a4d9 5792 e576 84ef !......[..W..v.. | |
305 | 00404830: 0e5d 455b 633b 4d16 1613 08ba e4b9 b96f .]E[c;M........o | |
306 | 00404840: 2f53 5d0d f61a 1086 82cb 38d5 326d 899d /S].......8.2m.. | |
307 | 00404850: ef7f d9df 6814 412c 3215 fb33 cbb8 5f94 ....h.A,2..3.._. | |
308 | 00404860: 8d81 a008 41e0 e5f1 8923 199c b5c6 b91d ....A....#...... | |
309 | 00404870: 832e 1ca7 4795 657e dd20 96dd 2b54 2c39 ....G.e~. ..+T,9 | |
310 | 00404880: fb72 3ad7 8458 7d54 96d9 1a68 b694 24e6 .r:..X}T...h..$. | |
311 | 00404890: 005b 2e36 5dae 0989 941f 173c 1877 2fad .[.6]......<.w/. | |
312 | 004048a0: d5ac fec9 8fb8 726f 8404 19f7 e008 18d3 ......ro........ | |
313 | 004048b0: 5f80 d1bb e7fe 2827 cf1c 4bde f815 d7a6 _.....('..K..... | |
314 | 004048c0: 08f4 3c7b d014 eb01 8674 be5b 5d50 2d84 ..<{.....t.[]P-. | |
315 | 004048d0: de1a dd42 c0b7 4857 30a1 5727 d785 9f8d ...B..HW0.W'.... | |
316 | 004048e0: 166d 8f4a c0cc e6bb 55bc 01e5 8b68 4ebb .m.J....U....hN. | |
317 | 004048f0: 3b7d 60e5 752a 4434 58c8 06d9 8a10 afc4 ;}`.u*D4X....... | |
318 | 00404900: 5bda 724a 1753 8a66 5e67 4142 2a6b 5a26 [.rJ.S.f^gAB*kZ& | |
319 | 00404910: 19e3 9d6b 8f6f a195 7826 af14 9d6a 10ec ...k.o..x&...j.. | |
320 | 00404920: 27de af3a 1d1c 2fed 2483 d643 dc1f e9a4 '..:../.$..C.... | |
321 | 00404930: 5b1b adaf bd76 c07a dfcb 5a98 3839 2aab [....v.z..Z.89*. | |
322 | 00404940: 6f5e 3e52 b1a8 ea93 9e95 b804 5092 aa38 o^>R........P..8 | |
323 | 00404950: 0843 3c81 89d0 f64b 1320 faeb 26a5 d329 .C<....K. ..&..) | |
324 | 00404960: 5024 fe42 060f e582 f15a 9d2a a7cf c516 P$.B.....Z.*.... | |
325 | 00404970: ea0f aaf5 7a19 d1d7 004f 8108 8628 58ef ....z....O...(X. | |
326 | 00404980: e6d4 8ec8 c271 7a4f 7353 20e5 88bf 40e8 .....qzOsS ...@. | |
327 | 00404990: dc5e 8853 0ff5 3dbe f25b b47e 7a89 2bce .^.S..=..[.~z.+. | |
328 | 004049a0: 01d9 6c13 6a36 40e1 0777 ce56 e0d0 c4b0 ..l.j6@..w.V.... | |
329 | 004049b0: dce4 6f40 300a 19aa 688b 0b00 f66b 900a ..o@0...h....k.. | |
330 | 004049c0: 6c90 33b8 5a0c ac95 2bd9 6bf5 72a5 23c2 l.3.Z...+.k.r.#. | |
331 | 004049d0: e6db 80c8 5bba 8e7e 8d47 3395 911d 8dda ....[..~.G3..... | |
332 | 004049e0: fea1 d95b 3657 5b0c a398 8fb4 f5d7 bd0b ...[6W[......... | |
333 | 004049f0: 369e fef6 719e 0cd1 b113 ffea f2bd b274 6...q..........t | |
334 | 00404a00: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
335 | * | |
336 | 00405000: abea d5a9 29e0 58db dd45 e2e8 cb1e d513 ....).X..E...... | |
337 | 00405010: dbc7 e9d2 f0a4 ce91 c04f 96b8 22e1 d444 .........O.."..D | |
338 | 00405020: 219b 06b4 01fd eb5b a4d9 5792 e576 84ef !......[..W..v.. | |
339 | 00405030: 0e5d 455b 633b 4d16 1613 08ba e4b9 b96f .]E[c;M........o | |
340 | 00405040: 2f53 5d0d f61a 1086 82cb 38d5 326d 899d /S].......8.2m.. | |
341 | 00405050: ef7f d9df 6814 412c 3215 fb33 cbb8 5f94 ....h.A,2..3.._. | |
342 | 00405060: 8d81 a008 41e0 e5f1 8923 199c b5c6 b91d ....A....#...... | |
343 | 00405070: 832e 1ca7 4795 657e dd20 96dd 2b54 2c39 ....G.e~. ..+T,9 | |
344 | 00405080: fb72 3ad7 8458 7d54 96d9 1a68 b694 24e6 .r:..X}T...h..$. | |
345 | 00405090: 005b 2e36 5dae 0989 941f 173c 1877 2fad .[.6]......<.w/. | |
346 | 004050a0: d5ac fec9 8fb8 726f 8404 19f7 e008 18d3 ......ro........ | |
347 | 004050b0: 5f80 d1bb e7fe 2827 cf1c 4bde f815 d7a6 _.....('..K..... | |
348 | 004050c0: 08f4 3c7b d014 eb01 8674 be5b 5d50 2d84 ..<{.....t.[]P-. | |
349 | 004050d0: de1a dd42 c0b7 4857 30a1 5727 d785 9f8d ...B..HW0.W'.... | |
350 | 004050e0: 166d 8f4a c0cc e6bb 55bc 01e5 8b68 4ebb .m.J....U....hN. | |
351 | 004050f0: 3b7d 60e5 752a 4434 58c8 06d9 8a10 afc4 ;}`.u*D4X....... | |
352 | 00405100: 5bda 724a 1753 8a66 5e67 4142 2a6b 5a26 [.rJ.S.f^gAB*kZ& | |
353 | 00405110: 19e3 9d6b 8f6f a195 7826 af14 9d6a 10ec ...k.o..x&...j.. | |
354 | 00405120: 27de af3a 1d1c 2fed 2483 d643 dc1f e9a4 '..:../.$..C.... | |
355 | 00405130: 5b1b adaf bd76 c07a dfcb 5a98 3839 2aab [....v.z..Z.89*. | |
356 | 00405140: 6f5e 3e52 b1a8 ea93 9e95 b804 5092 aa38 o^>R........P..8 | |
357 | 00405150: 0843 3c81 89d0 f64b 1320 faeb 26a5 d329 .C<....K. ..&..) | |
358 | 00405160: 5024 fe42 060f e582 f15a 9d2a a7cf c516 P$.B.....Z.*.... | |
359 | 00405170: ea0f aaf5 7a19 d1d7 004f 8108 8628 58ef ....z....O...(X. | |
360 | 00405180: e6d4 8ec8 c271 7a4f 7353 20e5 88bf 40e8 .....qzOsS ...@. | |
361 | 00405190: dc5e 8853 0ff5 3dbe f25b b47e 7a89 2bce .^.S..=..[.~z.+. | |
362 | 004051a0: 01d9 6c13 6a36 40e1 0777 ce56 e0d0 c4b0 ..l.j6@..w.V.... | |
363 | 004051b0: dce4 6f40 300a 19aa 688b 0b00 f66b 900a ..o@0...h....k.. | |
364 | 004051c0: 6c90 33b8 5a0c ac95 2bd9 6bf5 72a5 23c2 l.3.Z...+.k.r.#. | |
365 | 004051d0: e6db 80c8 5bba 8e7e 8d47 3395 911d 8dda ....[..~.G3..... | |
366 | 004051e0: fea1 d95b 3657 5b0c a398 8fb4 f5d7 bd0b ...[6W[......... | |
367 | 004051f0: 369e fef6 719e 0cd1 b113 ffea f2bd b274 6...q..........t | |
368 | 00405200: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
369 | * | |
370 | 00405800: 2e20 2020 2020 2020 2020 2010 0042 caae . ..B.. | |
371 | 00405810: 7253 7253 0000 cbae 7253 0d00 0000 0000 rSrS....rS...... | |
372 | 00405820: 2e2e 2020 2020 2020 2020 2010 0042 caae .. ..B.. | |
373 | 00405830: 7253 7253 0000 cbae 7253 0300 0000 0000 rSrS....rS...... | |
374 | 00405840: 4152 0065 0063 006f 0076 000f 0014 6500 AR.e.c.o.v....e. | |
375 | 00405850: 7200 7900 0000 ffff ffff 0000 ffff ffff r.y............. | |
376 | 00405860: 5245 434f 5645 5259 2020 2010 0042 caae RECOVERY ..B.. | |
377 | 00405870: 7253 7253 0000 cbae 7253 0e00 0000 0000 rSrS....rS...... | |
378 | 00405880: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
379 | * | |
380 | 00406000: 2e20 2020 2020 2020 2020 2010 0042 caae . ..B.. | |
381 | 00406010: 7253 7253 0000 cbae 7253 0e00 0000 0000 rSrS....rS...... | |
382 | 00406020: 2e2e 2020 2020 2020 2020 2010 0042 caae .. ..B.. | |
383 | 00406030: 7253 7253 0000 cbae 7253 0d00 0000 0000 rSrS....rS...... | |
384 | 00406040: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
385 | * | |
386 | 0fcffff0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ |
0 | 00000000: eb58 904d 5344 4f53 352e 3000 0204 3618 .X.MSDOS5.0...6. | |
1 | 00000010: 0200 0000 00f8 0000 3f00 ff00 8000 0000 ........?....... | |
2 | 00000020: 00e8 0700 e503 0000 0000 0000 0200 0000 ................ | |
3 | 00000030: 0100 0600 0000 0000 0000 0000 0000 0000 ................ | |
4 | 00000040: 8000 2991 fc95 7045 4e43 5259 5054 494f ..)...pENCRYPTIO | |
5 | 00000050: 4e20 4641 5433 3220 2020 2020 2020 2020 N FAT32 | |
6 | 00000060: 2020 2020 2020 2020 2020 2020 2020 2020 | |
7 | 00000070: 2020 2020 2020 2020 2020 2020 2020 2020 | |
8 | 00000080: 2020 424f 4f54 2043 4f44 4520 2020 2020 BOOT CODE | |
9 | 00000090: 2020 2020 2052 454d 4f56 4544 2020 2020 REMOVED | |
10 | 000000a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
11 | 000000b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
12 | 000000c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
13 | 000000d0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
14 | 000000e0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
15 | 000000f0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
16 | 00000100: 2020 2020 2020 2020 2020 2020 2020 2020 | |
17 | 00000110: 2020 2020 2020 2020 2020 2020 2020 2020 | |
18 | 00000120: 2020 2020 2020 2020 2020 2020 2020 2020 | |
19 | 00000130: 2020 2020 2020 2020 2020 2020 2020 2020 | |
20 | 00000140: 2020 2020 2020 2020 2020 2020 2020 2020 | |
21 | 00000150: 2020 2020 2020 2020 2020 2020 2020 2020 | |
22 | 00000160: 2020 2020 2020 2020 2020 2020 2020 2020 | |
23 | 00000170: 2020 2020 2020 2020 2020 2020 2020 2020 | |
24 | 00000180: 2020 2020 2020 2020 2020 2020 2020 2020 | |
25 | 00000190: 2020 2020 2020 2020 2020 2020 2020 2020 | |
26 | 000001a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
27 | 000001b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
28 | 000001c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
29 | 000001d0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
30 | 000001e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
31 | 000001f0: 0000 0000 0000 0000 ac01 b901 0000 55aa ..............U. | |
32 | 00000200: 5252 6141 0000 0000 0000 0000 0000 0000 RRaA............ | |
33 | 00000210: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
34 | * | |
35 | 000003e0: 0000 0000 7272 4161 f3f1 0100 0f00 0000 ....rrAa........ | |
36 | 000003f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
37 | 00000400: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
38 | * | |
39 | 000005f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
40 | 00000600: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
41 | * | |
42 | 00000c00: eb58 904d 5344 4f53 352e 3000 0204 3618 .X.MSDOS5.0...6. | |
43 | 00000c10: 0200 0000 00f8 0000 3f00 ff00 8000 0000 ........?....... | |
44 | 00000c20: 00e8 0700 e503 0000 0000 0000 0200 0000 ................ | |
45 | 00000c30: 0100 0600 0000 0000 0000 0000 0000 0000 ................ | |
46 | 00000c40: 8000 2991 fc95 7045 4e43 5259 5054 494f ..)...pENCRYPTIO | |
47 | 00000c50: 4e20 4641 5433 3220 2020 2020 2020 2020 N FAT32 | |
48 | 00000c60: 2020 2020 2020 2020 2020 2020 2020 2020 | |
49 | 00000c70: 2020 2020 2020 2020 2020 2020 2020 2020 | |
50 | 00000c80: 2020 424f 4f54 2043 4f44 4520 2020 2020 BOOT CODE | |
51 | 00000c90: 2020 2020 2052 454d 4f56 4544 2020 2020 REMOVED | |
52 | 00000ca0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
53 | 00000cb0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
54 | 00000cc0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
55 | 00000cd0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
56 | 00000ce0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
57 | 00000cf0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
58 | 00000d00: 2020 2020 2020 2020 2020 2020 2020 2020 | |
59 | 00000d10: 2020 2020 2020 2020 2020 2020 2020 2020 | |
60 | 00000d20: 2020 2020 2020 2020 2020 2020 2020 2020 | |
61 | 00000d30: 2020 2020 2020 2020 2020 2020 2020 2020 | |
62 | 00000d40: 2020 2020 2020 2020 2020 2020 2020 2020 | |
63 | 00000d50: 2020 2020 2020 2020 2020 2020 2020 2020 | |
64 | 00000d60: 2020 2020 2020 2020 2020 2020 2020 2020 | |
65 | 00000d70: 2020 2020 2020 2020 2020 2020 2020 2020 | |
66 | 00000d80: 2020 2020 2020 2020 2020 2020 2020 2020 | |
67 | 00000d90: 2020 2020 2020 2020 2020 2020 2020 2020 | |
68 | 00000da0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
69 | 00000db0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
70 | 00000dc0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
71 | 00000dd0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
72 | 00000de0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
73 | 00000df0: 0000 0000 0000 0000 ac01 b901 0000 55aa ..............U. | |
74 | 00000e00: 5252 6141 0000 0000 0000 0000 0000 0000 RRaA............ | |
75 | 00000e10: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
76 | * | |
77 | 00000fe0: 0000 0000 7272 4161 ffff ffff 0200 0000 ....rrAa........ | |
78 | 00000ff0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
79 | 00001000: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
80 | * | |
81 | 000011f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
82 | 00001200: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
83 | * | |
84 | 00001800: 2020 2020 2020 2020 2020 2020 2020 2020 | |
85 | 00001810: 2020 2020 2020 2020 2020 2020 2020 2020 | |
86 | 00001820: 2020 2020 2020 2020 2020 2020 2020 2020 | |
87 | 00001830: 2020 2020 2020 2020 2020 2020 2020 2020 | |
88 | 00001840: 2020 2020 2020 2020 2020 2020 2020 2020 | |
89 | 00001850: 2020 2020 2020 2020 2020 2020 2020 2020 | |
90 | 00001860: 2020 2020 424f 4f54 2043 4f44 4520 2020 BOOT CODE | |
91 | 00001870: 2020 5245 4d4f 5645 4420 2020 2020 2020 REMOVED | |
92 | 00001880: 2020 2020 2020 2020 2020 2020 2020 2020 | |
93 | 00001890: 2020 2020 2020 2020 2020 2020 2020 2020 | |
94 | 000018a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
95 | 000018b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
96 | 000018c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
97 | 000018d0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
98 | 000018e0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
99 | 000018f0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
100 | 00001900: 2020 2020 2020 2020 2020 2020 2020 2020 | |
101 | 00001910: 2020 2020 2020 2020 2020 2020 2020 2020 | |
102 | 00001920: 2020 2020 2020 2020 2020 2020 2020 2020 | |
103 | 00001930: 2020 2020 2020 2020 2020 2020 2020 2020 | |
104 | 00001940: 2020 2020 2020 2020 2020 2020 2020 2020 | |
105 | 00001950: 2020 2020 2020 2020 2020 2020 2020 2020 | |
106 | 00001960: 2020 2020 2020 2020 2020 2020 2020 2020 | |
107 | 00001970: 2020 2020 2020 2020 2020 2020 2020 2020 | |
108 | 00001980: 2020 2020 2020 2020 2020 2020 2020 2020 | |
109 | 00001990: 2020 2020 2020 2020 2020 2020 2020 2020 | |
110 | 000019a0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
111 | 000019b0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
112 | 000019c0: 2020 2020 2020 2020 2020 2020 2020 2020 | |
113 | 000019d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
114 | 000019e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
115 | 000019f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U. | |
116 | 00001a00: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
117 | * | |
118 | 00306c00: f8ff ff0f ffff ffff ffff ff0f ffff ff0f ................ | |
119 | 00306c10: ffff ff0f ffff ff0f ffff ff0f 0a00 0000 ................ | |
120 | 00306c20: 0900 0000 0c00 0000 0b00 0000 ffff ff0f ................ | |
121 | 00306c30: ffff ff0f ffff ff0f ffff ff0f 0000 0000 ................ | |
122 | 00306c40: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
123 | * | |
124 | 00383600: f8ff ff0f ffff ffff ffff ff0f ffff ff0f ................ | |
125 | 00383610: ffff ff0f ffff ff0f ffff ff0f 0a00 0000 ................ | |
126 | 00383620: 0900 0000 0c00 0000 0b00 0000 ffff ff0f ................ | |
127 | 00383630: ffff ff0f ffff ff0f ffff ff0f 0000 0000 ................ | |
128 | 00383640: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
129 | * | |
130 | 00400000: 454e 4352 5950 5449 4f4e 2008 0000 0000 ENCRYPTION ..... | |
131 | 00400010: 0000 0000 0000 90ae 7253 0000 0000 0000 ........rS...... | |
132 | 00400020: 4220 0049 006e 0066 006f 000f 0072 7200 B .I.n.f.o...rr. | |
133 | 00400030: 6d00 6100 7400 6900 6f00 0000 6e00 0000 m.a.t.i.o...n... | |
134 | 00400040: 0153 0079 0073 0074 0065 000f 0072 6d00 .S.y.s.t.e...rm. | |
135 | 00400050: 2000 5600 6f00 6c00 7500 0000 6d00 6500 .V.o.l.u...m.e. | |
136 | 00400060: 5359 5354 454d 7e31 2020 2016 0020 91ae SYSTEM~1 .. .. | |
137 | 00400070: 7253 7253 0000 92ae 7253 0300 0000 0000 rSrS....rS...... | |
138 | 00400080: e564 002e 0074 0078 0074 000f 0059 0000 .d...t.x.t...Y.. | |
139 | 00400090: ffff ffff ffff ffff ffff 0000 ffff ffff ................ | |
140 | 004000a0: e574 0065 0073 0074 005f 000f 0059 6500 .t.e.s.t._...Ye. | |
141 | 004000b0: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
142 | 004000c0: e545 5354 5f45 7e31 5458 5420 018a 99ae .EST_E~1TXT .... | |
143 | 004000d0: 7253 7253 0000 bcae 7253 0700 0000 0000 rSrS....rS...... | |
144 | 004000e0: 2452 4543 5943 4c45 4249 4e16 0004 9aae $RECYCLEBIN..... | |
145 | 004000f0: 7253 7253 0000 9bae 7253 0500 0000 0000 rSrS....rS...... | |
146 | 00400100: e546 5330 2020 2020 544d 5026 0056 c5ae .FS0 TMP&.V.. | |
147 | 00400110: 7253 7253 0000 c6ae 7253 0900 0e00 0000 rSrS....rS...... | |
148 | 00400120: e500 0000 0000 0000 0000 0000 0000 0000 ................ | |
149 | 00400130: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
150 | 00400140: e500 0000 0000 0000 0000 0000 0000 0000 ................ | |
151 | 00400150: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
152 | 00400160: 4653 434b 3030 3030 3030 3020 218a 99ae FSCK0000000 !... | |
153 | 00400170: 7253 7253 0000 bcae 7253 0700 1010 0000 rSrS....rS...... | |
154 | 00400180: e564 0020 002d 0020 0043 000f 0059 6f00 .d. .-. .C...Yo. | |
155 | 00400190: 7000 7900 2e00 7400 7800 0000 7400 0000 p.y...t.x...t... | |
156 | 004001a0: e574 0065 0073 0074 005f 000f 0059 6500 .t.e.s.t._...Ye. | |
157 | 004001b0: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
158 | 004001c0: e545 5354 5f45 7e31 5458 5420 010a c8ae .EST_E~1TXT .... | |
159 | 004001d0: 7253 7253 0000 c9ae 7253 0000 0000 0000 rSrS....rS...... | |
160 | 004001e0: e550 0046 0049 004c 0045 000f 0064 0000 .P.F.I.L.E...d.. | |
161 | 004001f0: ffff ffff ffff ffff ffff 0000 ffff ffff ................ | |
162 | 00400200: e564 0020 002d 0020 0043 000f 0064 6f00 .d. .-. .C...do. | |
163 | 00400210: 7000 7900 2e00 7400 7800 0000 7400 2e00 p.y...t.x...t... | |
164 | 00400220: e574 0065 0073 0074 005f 000f 0064 6500 .t.e.s.t._...de. | |
165 | 00400230: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
166 | 00400240: e545 5354 5f45 7e32 5046 4920 210a c8ae .EST_E~2PFI !... | |
167 | 00400250: 7253 7253 0000 bcae 7253 0800 1010 0000 rSrS....rS...... | |
168 | 00400260: 4264 005f 0032 002e 0074 000f 0064 7800 Bd._.2...t...dx. | |
169 | 00400270: 7400 2e00 5000 4600 4900 0000 4c00 4500 t...P.F.I...L.E. | |
170 | 00400280: 0174 0065 0073 0074 005f 000f 0064 6500 .t.e.s.t._...de. | |
171 | 00400290: 6e00 6300 7200 7900 7000 0000 7400 6500 n.c.r.y.p...t.e. | |
172 | 004002a0: 5445 5354 5f45 7e32 5046 4920 210a c8ae TEST_E~2PFI !... | |
173 | 004002b0: 7253 7253 0000 bcae 7253 0800 1010 0000 rSrS....rS...... | |
174 | 004002c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
175 | * | |
176 | 00400800: 2e20 2020 2020 2020 2020 2010 0020 91ae . .. .. | |
177 | 00400810: 7253 7253 0000 92ae 7253 0300 0000 0000 rSrS....rS...... | |
178 | 00400820: 2e2e 2020 2020 2020 2020 2010 0020 91ae .. .. .. | |
179 | 00400830: 7253 7253 0000 92ae 7253 0000 0000 0000 rSrS....rS...... | |
180 | 00400840: 4274 0000 00ff ffff ffff ff0f 00ce ffff Bt.............. | |
181 | 00400850: ffff ffff ffff ffff ffff 0000 ffff ffff ................ | |
182 | 00400860: 0157 0050 0053 0065 0074 000f 00ce 7400 .W.P.S.e.t....t. | |
183 | 00400870: 6900 6e00 6700 7300 2e00 0000 6400 6100 i.n.g.s.....d.a. | |
184 | 00400880: 5750 5345 5454 7e31 4441 5420 0020 91ae WPSETT~1DAT . .. | |
185 | 00400890: 7253 7253 0000 92ae 7253 0400 0c00 0000 rSrS....rS...... | |
186 | 004008a0: e546 5330 2020 2020 4c4f 4722 0055 c5ae .FS0 LOG".U.. | |
187 | 004008b0: 7253 7253 0000 c6ae 7253 0800 0006 0000 rSrS....rS...... | |
188 | 004008c0: 4544 5020 2020 2020 2020 2010 0042 caae EDP ..B.. | |
189 | 004008d0: 7253 7253 0000 cbae 7253 0d00 0000 0000 rSrS....rS...... | |
190 | 004008e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
191 | * | |
192 | 00401000: 0c00 0000 0e8c 6100 9830 d88a 0000 0000 ......a..0...... | |
193 | 00401010: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
194 | * | |
195 | 00401800: 2e20 2020 2020 2020 2020 2010 0004 9aae . ..... | |
196 | 00401810: 7253 7253 0000 9bae 7253 0500 0000 0000 rSrS....rS...... | |
197 | 00401820: 2e2e 2020 2020 2020 2020 2010 0004 9aae .. ..... | |
198 | 00401830: 7253 7253 0000 9bae 7253 0000 0000 0000 rSrS....rS...... | |
199 | 00401840: 4445 534b 544f 5020 494e 4926 1804 9aae DESKTOP INI&.... | |
200 | 00401850: 7253 7253 0000 9bae 7253 0600 8100 0000 rSrS....rS...... | |
201 | 00401860: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
202 | * | |
203 | 00402000: 5b2e 5368 656c 6c43 6c61 7373 496e 666f [.ShellClassInfo | |
204 | 00402010: 5d0d 0a43 4c53 4944 3d7b 3634 3546 4630 ]..CLSID={645FF0 | |
205 | 00402020: 3430 2d35 3038 312d 3130 3142 2d39 4630 40-5081-101B-9F0 | |
206 | 00402030: 382d 3030 4141 3030 3246 3935 3445 7d0d 8-00AA002F954E}. | |
207 | 00402040: 0a4c 6f63 616c 697a 6564 5265 736f 7572 .LocalizedResour | |
208 | 00402050: 6365 4e61 6d65 3d40 2553 7973 7465 6d52 ceName=@%SystemR | |
209 | 00402060: 6f6f 7425 5c73 7973 7465 6d33 325c 7368 oot%\system32\sh | |
210 | 00402070: 656c 6c33 322e 646c 6c2c 2d38 3936 340d ell32.dll,-8964. | |
211 | 00402080: 0a00 0000 0000 0000 0000 0000 0000 0000 ................ | |
212 | 00402090: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
213 | * | |
214 | 00402800: 0010 0000 0000 0000 0200 0000 0e80 0000 ................ | |
215 | 00402810: be49 c640 12cc b143 9b68 be56 b04b 9565 .I.@...C.h.V.K.e | |
216 | 00402820: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
217 | 00402830: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
218 | 00402840: 5400 0000 0000 0000 0000 0000 0000 0000 T............... | |
219 | 00402850: 0000 0000 0100 0000 4602 0000 1400 0000 ........F....... | |
220 | 00402860: 0001 0000 4601 0000 0000 0000 3201 0000 ....F.......2... | |
221 | 00402870: 1c00 0000 0300 0000 fa00 0000 3800 0000 ............8... | |
222 | 00402880: 0000 0000 0000 0000 0105 0000 0000 0005 ................ | |
223 | 00402890: 1500 0000 506a 80a1 fd79 8bc2 58f9 50cd ....Pj...y..X.P. | |
224 | 004028a0: e903 0000 1400 0000 1400 0000 2800 0000 ............(... | |
225 | 004028b0: 7200 0000 d000 0000 ba66 765d 0835 3412 r........fv].54. | |
226 | 004028c0: f808 2615 08ca 57c3 adcb 12ca 3600 3000 ..&...W.....6.0. | |
227 | 004028d0: 3400 6400 3400 3200 6300 6400 2d00 3500 4.d.4.2.c.d.-.5. | |
228 | 004028e0: 3900 3700 3300 2d00 3400 3900 3600 3200 9.7.3.-.4.9.6.2. | |
229 | 004028f0: 2d00 3800 6100 6200 3700 2d00 3900 3400 -.8.a.b.7.-.9.4. | |
230 | 00402900: 3900 3200 3600 3800 3400 3400 3000 6500 9.2.6.8.4.4.0.e. | |
231 | 00402910: 3300 3500 0000 4d00 6900 6300 7200 6f00 3.5...M.i.c.r.o. | |
232 | 00402920: 7300 6f00 6600 7400 2000 4500 6e00 6800 s.o.f.t. .E.n.h. | |
233 | 00402930: 6100 6e00 6300 6500 6400 2000 4300 7200 a.n.c.e.d. .C.r. | |
234 | 00402940: 7900 7000 7400 6f00 6700 7200 6100 7000 y.p.t.o.g.r.a.p. | |
235 | 00402950: 6800 6900 6300 2000 5000 7200 6f00 7600 h.i.c. .P.r.o.v. | |
236 | 00402960: 6900 6400 6500 7200 2000 7600 3100 2e00 i.d.e.r. .v.1... | |
237 | 00402970: 3000 0000 5500 2800 5500 4000 4400 4500 0...U.(.U.@.D.E. | |
238 | 00402980: 5300 4b00 5400 4f00 5000 2d00 5200 4400 S.K.T.O.P.-.R.D. | |
239 | 00402990: 3300 3400 3100 4800 4100 2900 0000 2245 3.4.1.H.A.)..."E | |
240 | 004029a0: a214 a826 19de edb2 0bb0 d68a 8ef5 ba92 ...&............ | |
241 | 004029b0: 809c 59e8 77fb b155 c9ca 642b 9775 ffcf ..Y.w..U..d+.u.. | |
242 | 004029c0: a2b3 071b e6e2 d522 0731 6cc4 e983 4e0d .......".1l...N. | |
243 | 004029d0: 71b3 ebd1 db75 c0b4 c086 5755 b818 f73d q....u....WU...= | |
244 | 004029e0: d204 7af1 12d7 24de 4155 0e82 1478 2c5d ..z...$.AU...x,] | |
245 | 004029f0: b77a eba6 9dae a497 8464 4211 6b7a df23 .z.......dB.kz.# | |
246 | 00402a00: 9cc8 ea83 d22d 7ef0 9784 df12 1e0d 326c .....-~.......2l | |
247 | 00402a10: 26a9 bae9 4a7c 02a5 3440 0855 3e85 a7d5 &...J|..4@.U>... | |
248 | 00402a20: 9ad8 7e1b 5d13 d593 d576 bd32 0527 35e0 ..~.]....v.2.'5. | |
249 | 00402a30: 01d9 17b0 b6c9 ba4a 048c e158 5a97 e2d2 .......J...XZ... | |
250 | 00402a40: a9c1 7e91 a5f2 e68d ce13 b5db 89dc 7884 ..~...........x. | |
251 | 00402a50: c280 90d7 edaa 4a47 c376 4651 d9c3 2b58 ......JG.vFQ..+X | |
252 | 00402a60: 0561 0bad c3f8 1a7f 2b21 fd96 60e6 189b .a......+!..`... | |
253 | 00402a70: e9d6 82f1 7e05 9ea7 06cb 4bb3 ae98 e5ac ....~.....K..... | |
254 | 00402a80: 9475 2a80 7288 adf1 e14e 88b2 d160 bd03 .u*.r....N...`.. | |
255 | 00402a90: cf8e acdd da24 a1d3 ac39 c8ef b146 0000 .....$...9...F.. | |
256 | 00402aa0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
257 | * | |
258 | 00403000: 0010 0000 0000 0000 0200 0000 0e80 0000 ................ | |
259 | 00403010: 5c1f aca2 f570 f044 a539 725a 50cf cddb \....p.D.9rZP... | |
260 | 00403020: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
261 | 00403030: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
262 | 00403040: 5400 0000 0000 0000 0000 0000 0000 0000 T............... | |
263 | 00403050: 0000 0000 0100 0000 4602 0000 1400 0000 ........F....... | |
264 | 00403060: 0001 0000 4601 0000 0000 0000 3201 0000 ....F.......2... | |
265 | 00403070: 1c00 0000 0300 0000 fa00 0000 3800 0000 ............8... | |
266 | 00403080: 0000 0000 0000 0000 0105 0000 0000 0005 ................ | |
267 | 00403090: 1500 0000 506a 80a1 fd79 8bc2 58f9 50cd ....Pj...y..X.P. | |
268 | 004030a0: e903 0000 1400 0000 1400 0000 2800 0000 ............(... | |
269 | 004030b0: 7200 0000 d000 0000 ba66 765d 0835 3412 r........fv].54. | |
270 | 004030c0: f808 2615 08ca 57c3 adcb 12ca 3600 3000 ..&...W.....6.0. | |
271 | 004030d0: 3400 6400 3400 3200 6300 6400 2d00 3500 4.d.4.2.c.d.-.5. | |
272 | 004030e0: 3900 3700 3300 2d00 3400 3900 3600 3200 9.7.3.-.4.9.6.2. | |
273 | 004030f0: 2d00 3800 6100 6200 3700 2d00 3900 3400 -.8.a.b.7.-.9.4. | |
274 | 00403100: 3900 3200 3600 3800 3400 3400 3000 6500 9.2.6.8.4.4.0.e. | |
275 | 00403110: 3300 3500 0000 4d00 6900 6300 7200 6f00 3.5...M.i.c.r.o. | |
276 | 00403120: 7300 6f00 6600 7400 2000 4500 6e00 6800 s.o.f.t. .E.n.h. | |
277 | 00403130: 6100 6e00 6300 6500 6400 2000 4300 7200 a.n.c.e.d. .C.r. | |
278 | 00403140: 7900 7000 7400 6f00 6700 7200 6100 7000 y.p.t.o.g.r.a.p. | |
279 | 00403150: 6800 6900 6300 2000 5000 7200 6f00 7600 h.i.c. .P.r.o.v. | |
280 | 00403160: 6900 6400 6500 7200 2000 7600 3100 2e00 i.d.e.r. .v.1... | |
281 | 00403170: 3000 0000 5500 2800 5500 4000 4400 4500 0...U.(.U.@.D.E. | |
282 | 00403180: 5300 4b00 5400 4f00 5000 2d00 5200 4400 S.K.T.O.P.-.R.D. | |
283 | 00403190: 3300 3400 3100 4800 4100 2900 0000 2245 3.4.1.H.A.)..."E | |
284 | 004031a0: a214 a826 19de edb2 0bb0 d68a 8ef5 ba92 ...&............ | |
285 | 004031b0: 809c 59e8 77fb b155 c9ca 642b 9775 ffcf ..Y.w..U..d+.u.. | |
286 | 004031c0: a2b3 071b e6e2 d522 0731 6cc4 e983 4e0d .......".1l...N. | |
287 | 004031d0: 71b3 ebd1 db75 c0b4 c086 5755 b818 f73d q....u....WU...= | |
288 | 004031e0: d204 7af1 12d7 24de 4155 0e82 1478 2c5d ..z...$.AU...x,] | |
289 | 004031f0: b77a eba6 9dae a497 8464 4211 6b7a df23 .z.......dB.kz.# | |
290 | 00403200: 9cc8 ea83 d22d 7ef0 9784 df12 1e0d 326c .....-~.......2l | |
291 | 00403210: 26a9 bae9 4a7c 02a5 3440 0855 3e85 a7d5 &...J|..4@.U>... | |
292 | 00403220: 9ad8 7e1b 5d13 d593 d576 bd32 0527 35e0 ..~.]....v.2.'5. | |
293 | 00403230: 01d9 17b0 b6c9 ba4a 048c e158 5a97 e2d2 .......J...XZ... | |
294 | 00403240: a9c1 7e91 a5f2 e68d ce13 b5db 89dc 7884 ..~...........x. | |
295 | 00403250: c280 90d7 edaa 4a47 c376 4651 d9c3 2b58 ......JG.vFQ..+X | |
296 | 00403260: 0561 0bad c3f8 1a7f 2b21 fd96 60e6 189b .a......+!..`... | |
297 | 00403270: e9d6 82f1 7e05 9ea7 06cb 4bb3 ae98 e5ac ....~.....K..... | |
298 | 00403280: 9475 2a80 7288 adf1 e14e 88b2 d160 bd03 .u*.r....N...`.. | |
299 | 00403290: cf8e acdd da24 a1d3 ac39 c8ef b146 0000 .....$...9...F.. | |
300 | 004032a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
301 | * | |
302 | 00404800: abea d5a9 29e0 58db dd45 e2e8 cb1e d513 ....).X..E...... | |
303 | 00404810: dbc7 e9d2 f0a4 ce91 c04f 96b8 22e1 d444 .........O.."..D | |
304 | 00404820: 219b 06b4 01fd eb5b a4d9 5792 e576 84ef !......[..W..v.. | |
305 | 00404830: 0e5d 455b 633b 4d16 1613 08ba e4b9 b96f .]E[c;M........o | |
306 | 00404840: 2f53 5d0d f61a 1086 82cb 38d5 326d 899d /S].......8.2m.. | |
307 | 00404850: ef7f d9df 6814 412c 3215 fb33 cbb8 5f94 ....h.A,2..3.._. | |
308 | 00404860: 8d81 a008 41e0 e5f1 8923 199c b5c6 b91d ....A....#...... | |
309 | 00404870: 832e 1ca7 4795 657e dd20 96dd 2b54 2c39 ....G.e~. ..+T,9 | |
310 | 00404880: fb72 3ad7 8458 7d54 96d9 1a68 b694 24e6 .r:..X}T...h..$. | |
311 | 00404890: 005b 2e36 5dae 0989 941f 173c 1877 2fad .[.6]......<.w/. | |
312 | 004048a0: d5ac fec9 8fb8 726f 8404 19f7 e008 18d3 ......ro........ | |
313 | 004048b0: 5f80 d1bb e7fe 2827 cf1c 4bde f815 d7a6 _.....('..K..... | |
314 | 004048c0: 08f4 3c7b d014 eb01 8674 be5b 5d50 2d84 ..<{.....t.[]P-. | |
315 | 004048d0: de1a dd42 c0b7 4857 30a1 5727 d785 9f8d ...B..HW0.W'.... | |
316 | 004048e0: 166d 8f4a c0cc e6bb 55bc 01e5 8b68 4ebb .m.J....U....hN. | |
317 | 004048f0: 3b7d 60e5 752a 4434 58c8 06d9 8a10 afc4 ;}`.u*D4X....... | |
318 | 00404900: 5bda 724a 1753 8a66 5e67 4142 2a6b 5a26 [.rJ.S.f^gAB*kZ& | |
319 | 00404910: 19e3 9d6b 8f6f a195 7826 af14 9d6a 10ec ...k.o..x&...j.. | |
320 | 00404920: 27de af3a 1d1c 2fed 2483 d643 dc1f e9a4 '..:../.$..C.... | |
321 | 00404930: 5b1b adaf bd76 c07a dfcb 5a98 3839 2aab [....v.z..Z.89*. | |
322 | 00404940: 6f5e 3e52 b1a8 ea93 9e95 b804 5092 aa38 o^>R........P..8 | |
323 | 00404950: 0843 3c81 89d0 f64b 1320 faeb 26a5 d329 .C<....K. ..&..) | |
324 | 00404960: 5024 fe42 060f e582 f15a 9d2a a7cf c516 P$.B.....Z.*.... | |
325 | 00404970: ea0f aaf5 7a19 d1d7 004f 8108 8628 58ef ....z....O...(X. | |
326 | 00404980: e6d4 8ec8 c271 7a4f 7353 20e5 88bf 40e8 .....qzOsS ...@. | |
327 | 00404990: dc5e 8853 0ff5 3dbe f25b b47e 7a89 2bce .^.S..=..[.~z.+. | |
328 | 004049a0: 01d9 6c13 6a36 40e1 0777 ce56 e0d0 c4b0 ..l.j6@..w.V.... | |
329 | 004049b0: dce4 6f40 300a 19aa 688b 0b00 f66b 900a ..o@0...h....k.. | |
330 | 004049c0: 6c90 33b8 5a0c ac95 2bd9 6bf5 72a5 23c2 l.3.Z...+.k.r.#. | |
331 | 004049d0: e6db 80c8 5bba 8e7e 8d47 3395 911d 8dda ....[..~.G3..... | |
332 | 004049e0: fea1 d95b 3657 5b0c a398 8fb4 f5d7 bd0b ...[6W[......... | |
333 | 004049f0: 369e fef6 719e 0cd1 b113 ffea f2bd b274 6...q..........t | |
334 | 00404a00: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
335 | * | |
336 | 00405000: abea d5a9 29e0 58db dd45 e2e8 cb1e d513 ....).X..E...... | |
337 | 00405010: dbc7 e9d2 f0a4 ce91 c04f 96b8 22e1 d444 .........O.."..D | |
338 | 00405020: 219b 06b4 01fd eb5b a4d9 5792 e576 84ef !......[..W..v.. | |
339 | 00405030: 0e5d 455b 633b 4d16 1613 08ba e4b9 b96f .]E[c;M........o | |
340 | 00405040: 2f53 5d0d f61a 1086 82cb 38d5 326d 899d /S].......8.2m.. | |
341 | 00405050: ef7f d9df 6814 412c 3215 fb33 cbb8 5f94 ....h.A,2..3.._. | |
342 | 00405060: 8d81 a008 41e0 e5f1 8923 199c b5c6 b91d ....A....#...... | |
343 | 00405070: 832e 1ca7 4795 657e dd20 96dd 2b54 2c39 ....G.e~. ..+T,9 | |
344 | 00405080: fb72 3ad7 8458 7d54 96d9 1a68 b694 24e6 .r:..X}T...h..$. | |
345 | 00405090: 005b 2e36 5dae 0989 941f 173c 1877 2fad .[.6]......<.w/. | |
346 | 004050a0: d5ac fec9 8fb8 726f 8404 19f7 e008 18d3 ......ro........ | |
347 | 004050b0: 5f80 d1bb e7fe 2827 cf1c 4bde f815 d7a6 _.....('..K..... | |
348 | 004050c0: 08f4 3c7b d014 eb01 8674 be5b 5d50 2d84 ..<{.....t.[]P-. | |
349 | 004050d0: de1a dd42 c0b7 4857 30a1 5727 d785 9f8d ...B..HW0.W'.... | |
350 | 004050e0: 166d 8f4a c0cc e6bb 55bc 01e5 8b68 4ebb .m.J....U....hN. | |
351 | 004050f0: 3b7d 60e5 752a 4434 58c8 06d9 8a10 afc4 ;}`.u*D4X....... | |
352 | 00405100: 5bda 724a 1753 8a66 5e67 4142 2a6b 5a26 [.rJ.S.f^gAB*kZ& | |
353 | 00405110: 19e3 9d6b 8f6f a195 7826 af14 9d6a 10ec ...k.o..x&...j.. | |
354 | 00405120: 27de af3a 1d1c 2fed 2483 d643 dc1f e9a4 '..:../.$..C.... | |
355 | 00405130: 5b1b adaf bd76 c07a dfcb 5a98 3839 2aab [....v.z..Z.89*. | |
356 | 00405140: 6f5e 3e52 b1a8 ea93 9e95 b804 5092 aa38 o^>R........P..8 | |
357 | 00405150: 0843 3c81 89d0 f64b 1320 faeb 26a5 d329 .C<....K. ..&..) | |
358 | 00405160: 5024 fe42 060f e582 f15a 9d2a a7cf c516 P$.B.....Z.*.... | |
359 | 00405170: ea0f aaf5 7a19 d1d7 004f 8108 8628 58ef ....z....O...(X. | |
360 | 00405180: e6d4 8ec8 c271 7a4f 7353 20e5 88bf 40e8 .....qzOsS ...@. | |
361 | 00405190: dc5e 8853 0ff5 3dbe f25b b47e 7a89 2bce .^.S..=..[.~z.+. | |
362 | 004051a0: 01d9 6c13 6a36 40e1 0777 ce56 e0d0 c4b0 ..l.j6@..w.V.... | |
363 | 004051b0: dce4 6f40 300a 19aa 688b 0b00 f66b 900a ..o@0...h....k.. | |
364 | 004051c0: 6c90 33b8 5a0c ac95 2bd9 6bf5 72a5 23c2 l.3.Z...+.k.r.#. | |
365 | 004051d0: e6db 80c8 5bba 8e7e 8d47 3395 911d 8dda ....[..~.G3..... | |
366 | 004051e0: fea1 d95b 3657 5b0c a398 8fb4 f5d7 bd0b ...[6W[......... | |
367 | 004051f0: 369e fef6 719e 0cd1 b113 ffea f2bd b274 6...q..........t | |
368 | 00405200: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
369 | * | |
370 | 00405800: 2e20 2020 2020 2020 2020 2010 0042 caae . ..B.. | |
371 | 00405810: 7253 7253 0000 cbae 7253 0d00 0000 0000 rSrS....rS...... | |
372 | 00405820: 2e2e 2020 2020 2020 2020 2010 0042 caae .. ..B.. | |
373 | 00405830: 7253 7253 0000 cbae 7253 0300 0000 0000 rSrS....rS...... | |
374 | 00405840: 4152 0065 0063 006f 0076 000f 0014 6500 AR.e.c.o.v....e. | |
375 | 00405850: 7200 7900 0000 ffff ffff 0000 ffff ffff r.y............. | |
376 | 00405860: 5245 434f 5645 5259 2020 2010 0042 caae RECOVERY ..B.. | |
377 | 00405870: 7253 7253 0000 cbae 7253 0e00 0000 0000 rSrS....rS...... | |
378 | 00405880: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
379 | * | |
380 | 00406000: 2e20 2020 2020 2020 2020 2010 0042 caae . ..B.. | |
381 | 00406010: 7253 7253 0000 cbae 7253 0e00 0000 0000 rSrS....rS...... | |
382 | 00406020: 2e2e 2020 2020 2020 2020 2010 0042 caae .. ..B.. | |
383 | 00406030: 7253 7253 0000 cbae 7253 0d00 0000 0000 rSrS....rS...... | |
384 | 00406040: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
385 | * | |
386 | 0fcffff0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ |
40 | 40 | fi |
41 | 41 | |
42 | 42 | |
43 | if [ -f "$testname.args" ]; then | |
44 | ARGS=$(cat "$testname.args") | |
43 | if [ -f "${srcdir}/${testname}.args" ]; then | |
44 | ARGS=$(cat "${srcdir}/${testname}.args") | |
45 | 45 | else |
46 | 46 | ARGS= |
47 | 47 | fi |
51 | 51 | rm -f "${testname}.out" "${testname}.refimg" |
52 | 52 | |
53 | 53 | xxd -r "${srcdir}/${testname}.xxd" "${testname}.refimg" || exit 99 |
54 | run_mkfs -C -v --invariant $ARGS "${testname}.out" $SIZE || exit 99 | |
54 | (export SOURCE_DATE_EPOCH=1426325213; run_mkfs -C -v -i 0x1234abcd $ARGS "${testname}.out" $SIZE) || exit 99 | |
55 | 55 | |
56 | 56 | echo |
57 | 57 | echo "Comparing..." |