Codebase list libeatmydata / 34cb243
New upstream snapshot. Debian Janitor 1 year, 7 months ago
26 changed file(s) with 7207 addition(s) and 7323 deletion(s). Raw diff Collapse all Expand all
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
296296 unique=`for i in $$list; do \
297297 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
298298 done | $(am__uniquify_input)`
299 ETAGS = etags
300 CTAGS = ctags
301 CSCOPE = cscope
302299 AM_RECURSIVE_TARGETS = cscope check recheck
303300 am__tty_colors_dummy = \
304301 mgn= red= grn= lgn= blu= brg= std=; \
455452 bases='$(TEST_LOGS)'; \
456453 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
457454 bases=`echo $$bases`
455 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
458456 RECHECK_LOGS = $(TEST_LOGS)
459457 TEST_SUITE_LOG = test-suite.log
460458 TEST_EXTENSIONS = @EXEEXT@ .test
482480 $(top_srcdir)/config/config.sub $(top_srcdir)/config/depcomp \
483481 $(top_srcdir)/config/install-sh $(top_srcdir)/config/ltmain.sh \
484482 $(top_srcdir)/config/missing $(top_srcdir)/config/test-driver \
485 AUTHORS COPYING compile config/compile config/config.guess \
483 AUTHORS COPYING README.md config/compile config/config.guess \
486484 config/config.sub config/depcomp config/install-sh \
487 config/ltmain.sh config/missing depcomp install-sh missing
485 config/ltmain.sh config/missing
488486 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
489487 distdir = $(PACKAGE)-$(VERSION)
490488 top_distdir = $(distdir)
498496 DIST_ARCHIVES = $(distdir).tar.gz
499497 GZIP_ENV = --best
500498 DIST_TARGETS = dist-gzip
499 # Exists only to be overridden by the user if desired.
500 AM_DISTCHECK_DVI_TARGET = dvi
501501 distuninstallcheck_listfiles = find . -type f -print
502502 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
503503 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
513513 CC = @CC@
514514 CCDEPMODE = @CCDEPMODE@
515515 CFLAGS = @CFLAGS@
516 CPP = @CPP@
517516 CPPFLAGS = @CPPFLAGS@
517 CSCOPE = @CSCOPE@
518 CTAGS = @CTAGS@
518519 CYGPATH_W = @CYGPATH_W@
519520 DEFS = @DEFS@
520521 DEPDIR = @DEPDIR@
525526 ECHO_N = @ECHO_N@
526527 ECHO_T = @ECHO_T@
527528 EGREP = @EGREP@
529 ETAGS = @ETAGS@
528530 EXEEXT = @EXEEXT@
529531 FGREP = @FGREP@
532 FILECMD = @FILECMD@
530533 GREP = @GREP@
531534 INSTALL = @INSTALL@
532535 INSTALL_DATA = @INSTALL_DATA@
12451248 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
12461249 fi; \
12471250 echo "$${col}$$br$${std}"; \
1248 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
1251 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
12491252 echo "$${col}$$br$${std}"; \
12501253 create_testsuite_report --maybe-color; \
12511254 echo "$$col$$br$$std"; \
13491352 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
13501353 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
13511354 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
1352
13531355 distdir: $(BUILT_SOURCES)
13541356 $(MAKE) $(AM_MAKEFLAGS) distdir-am
13551357
14711473 $(DISTCHECK_CONFIGURE_FLAGS) \
14721474 --srcdir=../.. --prefix="$$dc_install_base" \
14731475 && $(MAKE) $(AM_MAKEFLAGS) \
1474 && $(MAKE) $(AM_MAKEFLAGS) dvi \
1476 && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
14751477 && $(MAKE) $(AM_MAKEFLAGS) check \
14761478 && $(MAKE) $(AM_MAKEFLAGS) install \
14771479 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
15301532 config.h
15311533 install-binPROGRAMS: install-libLTLIBRARIES
15321534
1535 install-checkPROGRAMS: install-libLTLIBRARIES
1536
15331537 installdirs:
15341538 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(includedir)"; do \
15351539 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
99 ***DO NOT*** use libeatmydata on software where you care about what it stores. It's called lib***EAT-MY-DATA*** for a *reason*.
1010
1111 see http://www.flamingspork.com/projects/libeatmydata
12
13 Installing
14 ------------
15
16 Debian/Ubuntu and friends:
17 ```
18 apt install eatmydata
19 ```
20
21 To build from source, you will need `autoconf`, `autoconf-archive`, `automake`, `libtool`, and a compiler (say, `gcc`).
22
23 Then, build and install like so:
24 ```
25 git clone https://github.com/stewartsmith/libeatmydata.git # (or extract from source tarball)
26 cd libeatmydata
27 autoreconf -i # (if building from git only)
28 ./configure
29 make
30 make check
31 sudo make install
32 ```
33
1234
1335 Usage
1436 -----
6688 Copyright
6789 ---------
6890
69 (C)2007-2016 Stewart Smith
91 (C)2007-2022 Stewart Smith
7092 and other contributors (see AUTHORS)
7193 See LICENSE for full text of GPLv3
0 # generated automatically by aclocal 1.16.2 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.16.5 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1313 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1414 m4_ifndef([AC_AUTOCONF_VERSION],
1515 [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.
1818 You have another version of autoconf. It may work, but is not guaranteed to.
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2121
22 # Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
2323 #
2424 # This file is free software; the Free Software Foundation
2525 # gives unlimited permission to copy and/or distribute it,
3434 [am__api_version='1.16'
3535 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3636 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.16.2], [],
37 m4_if([$1], [1.16.5], [],
3838 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
3939 ])
4040
5050 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5151 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5252 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.16.2])dnl
53 [AM_AUTOMAKE_VERSION([1.16.5])dnl
5454 m4_ifndef([AC_AUTOCONF_VERSION],
5555 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5656 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
5757
5858 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
5959
60 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
60 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
6161 #
6262 # This file is free software; the Free Software Foundation
6363 # gives unlimited permission to copy and/or distribute it,
109109
110110 # AM_CONDITIONAL -*- Autoconf -*-
111111
112 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
112 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
113113 #
114114 # This file is free software; the Free Software Foundation
115115 # gives unlimited permission to copy and/or distribute it,
140140 Usually this means the macro was only invoked conditionally.]])
141141 fi])])
142142
143 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
143 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
144144 #
145145 # This file is free software; the Free Software Foundation
146146 # gives unlimited permission to copy and/or distribute it,
331331
332332 # Generate code to set up dependency tracking. -*- Autoconf -*-
333333
334 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
334 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
335335 #
336336 # This file is free software; the Free Software Foundation
337337 # gives unlimited permission to copy and/or distribute it,
399399
400400 # Do all the work for Automake. -*- Autoconf -*-
401401
402 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
402 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
403403 #
404404 # This file is free software; the Free Software Foundation
405405 # gives unlimited permission to copy and/or distribute it,
427427 # release and drop the old call support.
428428 AC_DEFUN([AM_INIT_AUTOMAKE],
429429 [AC_PREREQ([2.65])dnl
430 m4_ifdef([_$0_ALREADY_INIT],
431 [m4_fatal([$0 expanded multiple times
432 ]m4_defn([_$0_ALREADY_INIT]))],
433 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
430434 dnl Autoconf wants to disallow AM_ names. We explicitly allow
431435 dnl the ones we care about.
432436 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
463467 [_AM_SET_OPTIONS([$1])dnl
464468 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
465469 m4_if(
466 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
470 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
467471 [ok:ok],,
468472 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
469473 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
515519 [m4_define([AC_PROG_OBJCXX],
516520 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
517521 ])
522 # Variables for tags utilities; see am/tags.am
523 if test -z "$CTAGS"; then
524 CTAGS=ctags
525 fi
526 AC_SUBST([CTAGS])
527 if test -z "$ETAGS"; then
528 ETAGS=etags
529 fi
530 AC_SUBST([ETAGS])
531 if test -z "$CSCOPE"; then
532 CSCOPE=cscope
533 fi
534 AC_SUBST([CSCOPE])
535
518536 AC_REQUIRE([AM_SILENT_RULES])dnl
519537 dnl The testsuite driver may need to know about EXEEXT, so add the
520538 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
596614 done
597615 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
598616
599 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
617 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
600618 #
601619 # This file is free software; the Free Software Foundation
602620 # gives unlimited permission to copy and/or distribute it,
617635 fi
618636 AC_SUBST([install_sh])])
619637
620 # Copyright (C) 2003-2020 Free Software Foundation, Inc.
638 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
621639 #
622640 # This file is free software; the Free Software Foundation
623641 # gives unlimited permission to copy and/or distribute it,
638656
639657 # Check to see how 'make' treats includes. -*- Autoconf -*-
640658
641 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
659 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
642660 #
643661 # This file is free software; the Free Software Foundation
644662 # gives unlimited permission to copy and/or distribute it,
681699
682700 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
683701
684 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
702 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
685703 #
686704 # This file is free software; the Free Software Foundation
687705 # gives unlimited permission to copy and/or distribute it,
702720 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
703721 AC_REQUIRE_AUX_FILE([missing])dnl
704722 if test x"${MISSING+set}" != xset; then
705 case $am_aux_dir in
706 *\ * | *\ *)
707 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
708 *)
709 MISSING="\${SHELL} $am_aux_dir/missing" ;;
710 esac
723 MISSING="\${SHELL} '$am_aux_dir/missing'"
711724 fi
712725 # Use eval to expand $SHELL
713726 if eval "$MISSING --is-lightweight"; then
720733
721734 # Helper functions for option handling. -*- Autoconf -*-
722735
723 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
736 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
724737 #
725738 # This file is free software; the Free Software Foundation
726739 # gives unlimited permission to copy and/or distribute it,
749762 AC_DEFUN([_AM_IF_OPTION],
750763 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
751764
752 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
765 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
753766 #
754767 # This file is free software; the Free Software Foundation
755768 # gives unlimited permission to copy and/or distribute it,
796809 # For backward compatibility.
797810 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
798811
799 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
812 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
800813 #
801814 # This file is free software; the Free Software Foundation
802815 # gives unlimited permission to copy and/or distribute it,
815828
816829 # Check to make sure that the build environment is sane. -*- Autoconf -*-
817830
818 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
831 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
819832 #
820833 # This file is free software; the Free Software Foundation
821834 # gives unlimited permission to copy and/or distribute it,
896909 rm -f conftest.file
897910 ])
898911
899 # Copyright (C) 2009-2020 Free Software Foundation, Inc.
912 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
900913 #
901914 # This file is free software; the Free Software Foundation
902915 # gives unlimited permission to copy and/or distribute it,
956969 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
957970 ])
958971
959 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
972 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
960973 #
961974 # This file is free software; the Free Software Foundation
962975 # gives unlimited permission to copy and/or distribute it,
984997 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
985998 AC_SUBST([INSTALL_STRIP_PROGRAM])])
986999
987 # Copyright (C) 2006-2020 Free Software Foundation, Inc.
1000 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
9881001 #
9891002 # This file is free software; the Free Software Foundation
9901003 # gives unlimited permission to copy and/or distribute it,
10031016
10041017 # Check how to create a tarball. -*- Autoconf -*-
10051018
1006 # Copyright (C) 2004-2020 Free Software Foundation, Inc.
1019 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
10071020 #
10081021 # This file is free software; the Free Software Foundation
10091022 # gives unlimited permission to copy and/or distribute it,
+0
-347
compile less more
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
6 # Written by Tom Tromey <tromey@cygnus.com>.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 # This file is maintained in Automake, please report
27 # bugs to <bug-automake@gnu.org> or send patches to
28 # <automake-patches@gnu.org>.
29
30 nl='
31 '
32
33 # We need space, tab and new line, in precisely that order. Quoting is
34 # there to prevent tools from complaining about whitespace usage.
35 IFS=" "" $nl"
36
37 file_conv=
38
39 # func_file_conv build_file lazy
40 # Convert a $build file to $host form and store it in $file
41 # Currently only supports Windows hosts. If the determined conversion
42 # type is listed in (the comma separated) LAZY, no conversion will
43 # take place.
44 func_file_conv ()
45 {
46 file=$1
47 case $file in
48 / | /[!/]*) # absolute file, and not a UNC file
49 if test -z "$file_conv"; then
50 # lazily determine how to convert abs files
51 case `uname -s` in
52 MINGW*)
53 file_conv=mingw
54 ;;
55 CYGWIN*)
56 file_conv=cygwin
57 ;;
58 *)
59 file_conv=wine
60 ;;
61 esac
62 fi
63 case $file_conv/,$2, in
64 *,$file_conv,*)
65 ;;
66 mingw/*)
67 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
68 ;;
69 cygwin/*)
70 file=`cygpath -m "$file" || echo "$file"`
71 ;;
72 wine/*)
73 file=`winepath -w "$file" || echo "$file"`
74 ;;
75 esac
76 ;;
77 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
119 done
120 IFS=$save_IFS
121
122 if test "$found" != yes; then
123 lib=$lib.lib
124 fi
125 }
126
127 # func_cl_wrapper cl arg...
128 # Adjust compile command to suit cl
129 func_cl_wrapper ()
130 {
131 # Assume a capable shell
132 lib_path=
133 shared=:
134 linker_opts=
135 for arg
136 do
137 if test -n "$eat"; then
138 eat=
139 else
140 case $1 in
141 -o)
142 # configure might choose to run compile as 'compile cc -o foo foo.c'.
143 eat=1
144 case $2 in
145 *.o | *.[oO][bB][jJ])
146 func_file_conv "$2"
147 set x "$@" -Fo"$file"
148 shift
149 ;;
150 *)
151 func_file_conv "$2"
152 set x "$@" -Fe"$file"
153 shift
154 ;;
155 esac
156 ;;
157 -I)
158 eat=1
159 func_file_conv "$2" mingw
160 set x "$@" -I"$file"
161 shift
162 ;;
163 -I*)
164 func_file_conv "${1#-I}" mingw
165 set x "$@" -I"$file"
166 shift
167 ;;
168 -l)
169 eat=1
170 func_cl_dashl "$2"
171 set x "$@" "$lib"
172 shift
173 ;;
174 -l*)
175 func_cl_dashl "${1#-l}"
176 set x "$@" "$lib"
177 shift
178 ;;
179 -L)
180 eat=1
181 func_cl_dashL "$2"
182 ;;
183 -L*)
184 func_cl_dashL "${1#-L}"
185 ;;
186 -static)
187 shared=false
188 ;;
189 -Wl,*)
190 arg=${1#-Wl,}
191 save_ifs="$IFS"; IFS=','
192 for flag in $arg; do
193 IFS="$save_ifs"
194 linker_opts="$linker_opts $flag"
195 done
196 IFS="$save_ifs"
197 ;;
198 -Xlinker)
199 eat=1
200 linker_opts="$linker_opts $2"
201 ;;
202 -*)
203 set x "$@" "$1"
204 shift
205 ;;
206 *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
207 func_file_conv "$1"
208 set x "$@" -Tp"$file"
209 shift
210 ;;
211 *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
212 func_file_conv "$1" mingw
213 set x "$@" "$file"
214 shift
215 ;;
216 *)
217 set x "$@" "$1"
218 shift
219 ;;
220 esac
221 fi
222 shift
223 done
224 if test -n "$linker_opts"; then
225 linker_opts="-link$linker_opts"
226 fi
227 exec "$@" $linker_opts
228 exit 1
229 }
230
231 eat=
232
233 case $1 in
234 '')
235 echo "$0: No command. Try '$0 --help' for more information." 1>&2
236 exit 1;
237 ;;
238 -h | --h*)
239 cat <<\EOF
240 Usage: compile [--help] [--version] PROGRAM [ARGS]
241
242 Wrapper for compilers which do not understand '-c -o'.
243 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
244 arguments, and rename the output as expected.
245
246 If you are trying to build a whole package this is not the
247 right script to run: please start by reading the file 'INSTALL'.
248
249 Report bugs to <bug-automake@gnu.org>.
250 EOF
251 exit $?
252 ;;
253 -v | --v*)
254 echo "compile $scriptversion"
255 exit $?
256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
258 func_cl_wrapper "$@" # Doesn't return...
259 ;;
260 esac
261
262 ofile=
263 cfile=
264
265 for arg
266 do
267 if test -n "$eat"; then
268 eat=
269 else
270 case $1 in
271 -o)
272 # configure might choose to run compile as 'compile cc -o foo foo.c'.
273 # So we strip '-o arg' only if arg is an object.
274 eat=1
275 case $2 in
276 *.o | *.obj)
277 ofile=$2
278 ;;
279 *)
280 set x "$@" -o "$2"
281 shift
282 ;;
283 esac
284 ;;
285 *.c)
286 cfile=$1
287 set x "$@" "$1"
288 shift
289 ;;
290 *)
291 set x "$@" "$1"
292 shift
293 ;;
294 esac
295 fi
296 shift
297 done
298
299 if test -z "$ofile" || test -z "$cfile"; then
300 # If no '-o' option was seen then we might have been invoked from a
301 # pattern rule where we don't need one. That is ok -- this is a
302 # normal compilation that the losing compiler can handle. If no
303 # '.c' file was seen then we are probably linking. That is also
304 # ok.
305 exec "$@"
306 fi
307
308 # Name of file we expect compiler to create.
309 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
310
311 # Create the lock directory.
312 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
313 # that we are using for the .o file. Also, base the name on the expected
314 # object file name, since that is what matters with a parallel build.
315 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
316 while true; do
317 if mkdir "$lockdir" >/dev/null 2>&1; then
318 break
319 fi
320 sleep 1
321 done
322 # FIXME: race condition here if user kills between mkdir and trap.
323 trap "rmdir '$lockdir'; exit 1" 1 2 15
324
325 # Run the compile.
326 "$@"
327 ret=$?
328
329 if test -f "$cofile"; then
330 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
331 elif test -f "${cofile}bj"; then
332 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
333 fi
334
335 rmdir "$lockdir"
336 exit $ret
337
338 # Local Variables:
339 # mode: shell-script
340 # sh-indentation: 2
341 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # time-stamp-start: "scriptversion="
343 # time-stamp-format: "%:y-%02m-%02d.%02H"
344 # time-stamp-time-zone: "UTC"
345 # time-stamp-end: "; # UTC"
346 # End:
00 #! /bin/sh
11 # Wrapper for compilers which do not understand '-c -o'.
22
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
1616 # GNU General Public License for more details.
1717 #
1818 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
2121 # As a special exception to the GNU General Public License, if you
2222 # distribute this file as part of a program that contains a
5252 MINGW*)
5353 file_conv=mingw
5454 ;;
55 CYGWIN*)
55 CYGWIN* | MSYS*)
5656 file_conv=cygwin
5757 ;;
5858 *)
6666 mingw/*)
6767 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
6868 ;;
69 cygwin/*)
69 cygwin/* | msys/*)
7070 file=`cygpath -m "$file" || echo "$file"`
7171 ;;
7272 wine/*)
254254 echo "compile $scriptversion"
255255 exit $?
256256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
258 icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
258259 func_cl_wrapper "$@" # Doesn't return...
259260 ;;
260261 esac
338339 # Local Variables:
339340 # mode: shell-script
340341 # sh-indentation: 2
341 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # eval: (add-hook 'before-save-hook 'time-stamp)
342343 # time-stamp-start: "scriptversion="
343344 # time-stamp-format: "%:y-%02m-%02d.%02H"
344 # time-stamp-time-zone: "UTC"
345 # time-stamp-time-zone: "UTC0"
345346 # time-stamp-end: "; # UTC"
346347 # End:
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-01-01'
2 # Copyright 1992-2022 Free Software Foundation, Inc.
3
4 # shellcheck disable=SC2006,SC2268 # see below for rationale
5
6 timestamp='2022-01-09'
57
68 # This file is free software; you can redistribute it and/or modify it
79 # 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
911 # (at your option) any later version.
1012 #
1113 # This program is distributed in the hope that it will be useful, but
1416 # General Public License for more details.
1517 #
1618 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
19 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1820 #
1921 # As a special exception to the GNU General Public License, if you
2022 # distribute this file as part of a program that contains a
2628 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
2729 #
2830 # You can get the latest version of this script from:
29 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
31 # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
3032 #
3133 # Please send patches to <config-patches@gnu.org>.
3234
3335
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.
42
43
3444 me=`echo "$0" | sed -e 's,.*/,,'`
3545
3646 usage="\
3848
3949 Output the configuration name of the system \`$me' is run on.
4050
41 Operation modes:
51 Options:
4252 -h, --help print this help, then exit
4353 -t, --time-stamp print date of last modification, then exit
4454 -v, --version print version number, then exit
4959 GNU config.guess ($timestamp)
5060
5161 Originally written by Per Bothner.
52 Copyright 1992-2015 Free Software Foundation, Inc.
62 Copyright 1992-2022 Free Software Foundation, Inc.
5363
5464 This is free software; see the source for copying conditions. There is NO
5565 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8393 exit 1
8494 fi
8595
86 trap 'exit 1' 1 2 15
96 # Just in case it came from the environment.
97 GUESS=
8798
8899 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
89100 # compiler to aid in system detection is discouraged as it requires
95106
96107 # Portable tmp directory creation inspired by the Autoconf team.
97108
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 }
122139
123140 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
124141 # (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
126143 PATH=$PATH:/.attbin ; export PATH
127144 fi
128145
129146 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
130147 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
132149 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133150
134 case "${UNAME_SYSTEM}" in
151 case $UNAME_SYSTEM in
135152 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
141 cat <<-EOF > $dummy.c
153 LIBC=unknown
154
155 set_cc_for_build
156 cat <<-EOF > "$dummy.c"
142157 #include <features.h>
143158 #if defined(__UCLIBC__)
144159 LIBC=uclibc
145160 #elif defined(__dietlibc__)
146161 LIBC=dietlibc
162 #elif defined(__GLIBC__)
163 LIBC=gnu
147164 #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
149170 #endif
150171 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
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
186 fi
152187 ;;
153188 esac
154189
155190 # Note: order is significant - the case branches are not exclusive.
156191
157 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
192 case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in
158193 *:NetBSD:*:*)
159194 # NetBSD (nbsd) targets should (where applicable) match one or
160195 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
166201 #
167202 # Note: NetBSD doesn't particularly care about the vendor
168203 # portion of the name. We always set it to "unknown".
169 sysctl="sysctl -n hw.machine_arch"
170 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
171 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
172 case "${UNAME_MACHINE_ARCH}" in
204 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
205 /sbin/sysctl -n hw.machine_arch 2>/dev/null || \
206 /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
207 echo unknown)`
208 case $UNAME_MACHINE_ARCH in
209 aarch64eb) machine=aarch64_be-unknown ;;
173210 armeb) machine=armeb-unknown ;;
174211 arm*) machine=arm-unknown ;;
175212 sh3el) machine=shl-unknown ;;
176213 sh3eb) machine=sh-unknown ;;
177214 sh5el) machine=sh5le-unknown ;;
178 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
215 earmv*)
216 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
217 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
218 machine=${arch}${endian}-unknown
219 ;;
220 *) machine=$UNAME_MACHINE_ARCH-unknown ;;
179221 esac
180222 # The Operating System including object format, if it has switched
181 # to ELF recently, or will in the future.
182 case "${UNAME_MACHINE_ARCH}" in
223 # to ELF recently (or will in the future) and ABI.
224 case $UNAME_MACHINE_ARCH in
225 earm*)
226 os=netbsdelf
227 ;;
183228 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
184 eval $set_cc_for_build
229 set_cc_for_build
185230 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
186231 | grep -q __ELF__
187232 then
196241 os=netbsd
197242 ;;
198243 esac
244 # Determine ABI tags.
245 case $UNAME_MACHINE_ARCH in
246 earm*)
247 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
248 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
249 ;;
250 esac
199251 # The OS release
200252 # Debian GNU/NetBSD machines have a different userland, and
201253 # thus, need a distinct triplet. However, they do not need
202254 # kernel version information, so it can be replaced with a
203255 # suitable tag, in the style of linux-gnu.
204 case "${UNAME_VERSION}" in
256 case $UNAME_VERSION in
205257 Debian*)
206258 release='-gnu'
207259 ;;
208260 *)
209 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
261 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
210262 ;;
211263 esac
212264 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
213265 # contains redundant information, the shorter form:
214266 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
215 echo "${machine}-${os}${release}"
216 exit ;;
267 GUESS=$machine-${os}${release}${abi-}
268 ;;
217269 *:Bitrig:*:*)
218270 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
219 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
220 exit ;;
271 GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE
272 ;;
221273 *:OpenBSD:*:*)
222274 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
223 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
224 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 ;;
281 *:LibertyBSD:*:*)
282 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
283 GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE
284 ;;
285 *:MidnightBSD:*:*)
286 GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE
287 ;;
225288 *:ekkoBSD:*:*)
226 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
227 exit ;;
289 GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE
290 ;;
228291 *:SolidBSD:*:*)
229 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
230 exit ;;
292 GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE
293 ;;
294 *:OS108:*:*)
295 GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE
296 ;;
231297 macppc:MirBSD:*:*)
232 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
233 exit ;;
298 GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE
299 ;;
234300 *:MirBSD:*:*)
235 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
236 exit ;;
301 GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE
302 ;;
303 *:Sortix:*:*)
304 GUESS=$UNAME_MACHINE-unknown-sortix
305 ;;
306 *:Twizzler:*:*)
307 GUESS=$UNAME_MACHINE-unknown-twizzler
308 ;;
309 *:Redox:*:*)
310 GUESS=$UNAME_MACHINE-unknown-redox
311 ;;
312 mips:OSF1:*.*)
313 GUESS=mips-dec-osf1
314 ;;
237315 alpha:OSF1:*:*)
316 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
317 trap '' 0
238318 case $UNAME_RELEASE in
239319 *4.0)
240320 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
248328 # covers most systems running today. This code pipes the CPU
249329 # types through head -n 1, so we only detect the type of CPU 0.
250330 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
251 case "$ALPHA_CPU_TYPE" in
331 case $ALPHA_CPU_TYPE in
252332 "EV4 (21064)")
253 UNAME_MACHINE="alpha" ;;
333 UNAME_MACHINE=alpha ;;
254334 "EV4.5 (21064)")
255 UNAME_MACHINE="alpha" ;;
335 UNAME_MACHINE=alpha ;;
256336 "LCA4 (21066/21068)")
257 UNAME_MACHINE="alpha" ;;
337 UNAME_MACHINE=alpha ;;
258338 "EV5 (21164)")
259 UNAME_MACHINE="alphaev5" ;;
339 UNAME_MACHINE=alphaev5 ;;
260340 "EV5.6 (21164A)")
261 UNAME_MACHINE="alphaev56" ;;
341 UNAME_MACHINE=alphaev56 ;;
262342 "EV5.6 (21164PC)")
263 UNAME_MACHINE="alphapca56" ;;
343 UNAME_MACHINE=alphapca56 ;;
264344 "EV5.7 (21164PC)")
265 UNAME_MACHINE="alphapca57" ;;
345 UNAME_MACHINE=alphapca57 ;;
266346 "EV6 (21264)")
267 UNAME_MACHINE="alphaev6" ;;
347 UNAME_MACHINE=alphaev6 ;;
268348 "EV6.7 (21264A)")
269 UNAME_MACHINE="alphaev67" ;;
349 UNAME_MACHINE=alphaev67 ;;
270350 "EV6.8CB (21264C)")
271 UNAME_MACHINE="alphaev68" ;;
351 UNAME_MACHINE=alphaev68 ;;
272352 "EV6.8AL (21264B)")
273 UNAME_MACHINE="alphaev68" ;;
353 UNAME_MACHINE=alphaev68 ;;
274354 "EV6.8CX (21264D)")
275 UNAME_MACHINE="alphaev68" ;;
355 UNAME_MACHINE=alphaev68 ;;
276356 "EV6.9A (21264/EV69A)")
277 UNAME_MACHINE="alphaev69" ;;
357 UNAME_MACHINE=alphaev69 ;;
278358 "EV7 (21364)")
279 UNAME_MACHINE="alphaev7" ;;
359 UNAME_MACHINE=alphaev7 ;;
280360 "EV7.9 (21364A)")
281 UNAME_MACHINE="alphaev79" ;;
361 UNAME_MACHINE=alphaev79 ;;
282362 esac
283363 # A Pn.n version is a patched version.
284364 # A Vn.n version is a released version.
285365 # A Tn.n version is a released field test version.
286366 # A Xn.n version is an unreleased experimental baselevel.
287367 # 1.2 uses "1.2" for uname -r.
288 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
289 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
290 exitcode=$?
291 trap '' 0
292 exit $exitcode ;;
293 Alpha\ *:Windows_NT*:*)
294 # How do we know it's Interix rather than the generic POSIX subsystem?
295 # Should we change UNAME_MACHINE based on the output of uname instead
296 # of the specific Alpha model?
297 echo alpha-pc-interix
298 exit ;;
299 21064:Windows_NT:50:3)
300 echo alpha-dec-winnt3.5
301 exit ;;
368 OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
369 GUESS=$UNAME_MACHINE-dec-osf$OSF_REL
370 ;;
302371 Amiga*:UNIX_System_V:4.0:*)
303 echo m68k-unknown-sysv4
304 exit ;;
372 GUESS=m68k-unknown-sysv4
373 ;;
305374 *:[Aa]miga[Oo][Ss]:*:*)
306 echo ${UNAME_MACHINE}-unknown-amigaos
307 exit ;;
375 GUESS=$UNAME_MACHINE-unknown-amigaos
376 ;;
308377 *:[Mm]orph[Oo][Ss]:*:*)
309 echo ${UNAME_MACHINE}-unknown-morphos
310 exit ;;
378 GUESS=$UNAME_MACHINE-unknown-morphos
379 ;;
311380 *:OS/390:*:*)
312 echo i370-ibm-openedition
313 exit ;;
381 GUESS=i370-ibm-openedition
382 ;;
314383 *:z/VM:*:*)
315 echo s390-ibm-zvmoe
316 exit ;;
384 GUESS=s390-ibm-zvmoe
385 ;;
317386 *:OS400:*:*)
318 echo powerpc-ibm-os400
319 exit ;;
387 GUESS=powerpc-ibm-os400
388 ;;
320389 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
321 echo arm-acorn-riscix${UNAME_RELEASE}
322 exit ;;
390 GUESS=arm-acorn-riscix$UNAME_RELEASE
391 ;;
323392 arm*:riscos:*:*|arm*:RISCOS:*:*)
324 echo arm-unknown-riscos
325 exit ;;
393 GUESS=arm-unknown-riscos
394 ;;
326395 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
327 echo hppa1.1-hitachi-hiuxmpp
328 exit ;;
396 GUESS=hppa1.1-hitachi-hiuxmpp
397 ;;
329398 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
330399 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
331 if test "`(/bin/universe) 2>/dev/null`" = att ; then
332 echo pyramid-pyramid-sysv3
333 else
334 echo pyramid-pyramid-bsd
335 fi
336 exit ;;
400 case `(/bin/universe) 2>/dev/null` in
401 att) GUESS=pyramid-pyramid-sysv3 ;;
402 *) GUESS=pyramid-pyramid-bsd ;;
403 esac
404 ;;
337405 NILE*:*:*:dcosx)
338 echo pyramid-pyramid-svr4
339 exit ;;
406 GUESS=pyramid-pyramid-svr4
407 ;;
340408 DRS?6000:unix:4.0:6*)
341 echo sparc-icl-nx6
342 exit ;;
409 GUESS=sparc-icl-nx6
410 ;;
343411 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
344412 case `/usr/bin/uname -p` in
345 sparc) echo sparc-icl-nx7; exit ;;
346 esac ;;
413 sparc) GUESS=sparc-icl-nx7 ;;
414 esac
415 ;;
347416 s390x:SunOS:*:*)
348 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
349 exit ;;
417 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
418 GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL
419 ;;
350420 sun4H:SunOS:5.*:*)
351 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
352 exit ;;
421 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
422 GUESS=sparc-hal-solaris2$SUN_REL
423 ;;
353424 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
354 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
355 exit ;;
425 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
426 GUESS=sparc-sun-solaris2$SUN_REL
427 ;;
356428 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
357 echo i386-pc-auroraux${UNAME_RELEASE}
358 exit ;;
429 GUESS=i386-pc-auroraux$UNAME_RELEASE
430 ;;
359431 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
360 eval $set_cc_for_build
361 SUN_ARCH="i386"
432 set_cc_for_build
433 SUN_ARCH=i386
362434 # If there is a compiler, see if it is configured for 64-bit objects.
363435 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
364436 # This test works for both compilers.
365 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
437 if test "$CC_FOR_BUILD" != no_compiler_found; then
366438 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
367 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
439 (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \
368440 grep IS_64BIT_ARCH >/dev/null
369441 then
370 SUN_ARCH="x86_64"
442 SUN_ARCH=x86_64
371443 fi
372444 fi
373 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
374 exit ;;
445 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
446 GUESS=$SUN_ARCH-pc-solaris2$SUN_REL
447 ;;
375448 sun4*:SunOS:6*:*)
376449 # According to config.sub, this is the proper way to canonicalize
377450 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
378451 # it's likely to be more like Solaris than SunOS4.
379 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
380 exit ;;
452 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
453 GUESS=sparc-sun-solaris3$SUN_REL
454 ;;
381455 sun4*:SunOS:*:*)
382 case "`/usr/bin/arch -k`" in
456 case `/usr/bin/arch -k` in
383457 Series*|S4*)
384458 UNAME_RELEASE=`uname -v`
385459 ;;
386460 esac
387461 # Japanese Language versions have a version number like `4.1.3-JL'.
388 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
389 exit ;;
462 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'`
463 GUESS=sparc-sun-sunos$SUN_REL
464 ;;
390465 sun3*:SunOS:*:*)
391 echo m68k-sun-sunos${UNAME_RELEASE}
392 exit ;;
466 GUESS=m68k-sun-sunos$UNAME_RELEASE
467 ;;
393468 sun*:*:4.2BSD:*)
394469 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
395 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
396 case "`/bin/arch`" in
470 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
471 case `/bin/arch` in
397472 sun3)
398 echo m68k-sun-sunos${UNAME_RELEASE}
473 GUESS=m68k-sun-sunos$UNAME_RELEASE
399474 ;;
400475 sun4)
401 echo sparc-sun-sunos${UNAME_RELEASE}
476 GUESS=sparc-sun-sunos$UNAME_RELEASE
402477 ;;
403478 esac
404 exit ;;
479 ;;
405480 aushp:SunOS:*:*)
406 echo sparc-auspex-sunos${UNAME_RELEASE}
407 exit ;;
481 GUESS=sparc-auspex-sunos$UNAME_RELEASE
482 ;;
408483 # The situation for MiNT is a little confusing. The machine name
409484 # can be virtually everything (everything which is not
410485 # "atarist" or "atariste" at least should have a processor
414489 # MiNT. But MiNT is downward compatible to TOS, so this should
415490 # be no problem.
416491 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
417 echo m68k-atari-mint${UNAME_RELEASE}
418 exit ;;
492 GUESS=m68k-atari-mint$UNAME_RELEASE
493 ;;
419494 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
420 echo m68k-atari-mint${UNAME_RELEASE}
421 exit ;;
495 GUESS=m68k-atari-mint$UNAME_RELEASE
496 ;;
422497 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
423 echo m68k-atari-mint${UNAME_RELEASE}
424 exit ;;
498 GUESS=m68k-atari-mint$UNAME_RELEASE
499 ;;
425500 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
426 echo m68k-milan-mint${UNAME_RELEASE}
427 exit ;;
501 GUESS=m68k-milan-mint$UNAME_RELEASE
502 ;;
428503 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
429 echo m68k-hades-mint${UNAME_RELEASE}
430 exit ;;
504 GUESS=m68k-hades-mint$UNAME_RELEASE
505 ;;
431506 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
432 echo m68k-unknown-mint${UNAME_RELEASE}
433 exit ;;
507 GUESS=m68k-unknown-mint$UNAME_RELEASE
508 ;;
434509 m68k:machten:*:*)
435 echo m68k-apple-machten${UNAME_RELEASE}
436 exit ;;
510 GUESS=m68k-apple-machten$UNAME_RELEASE
511 ;;
437512 powerpc:machten:*:*)
438 echo powerpc-apple-machten${UNAME_RELEASE}
439 exit ;;
513 GUESS=powerpc-apple-machten$UNAME_RELEASE
514 ;;
440515 RISC*:Mach:*:*)
441 echo mips-dec-mach_bsd4.3
442 exit ;;
516 GUESS=mips-dec-mach_bsd4.3
517 ;;
443518 RISC*:ULTRIX:*:*)
444 echo mips-dec-ultrix${UNAME_RELEASE}
445 exit ;;
519 GUESS=mips-dec-ultrix$UNAME_RELEASE
520 ;;
446521 VAX*:ULTRIX*:*:*)
447 echo vax-dec-ultrix${UNAME_RELEASE}
448 exit ;;
522 GUESS=vax-dec-ultrix$UNAME_RELEASE
523 ;;
449524 2020:CLIX:*:* | 2430:CLIX:*:*)
450 echo clipper-intergraph-clix${UNAME_RELEASE}
451 exit ;;
525 GUESS=clipper-intergraph-clix$UNAME_RELEASE
526 ;;
452527 mips:*:*:UMIPS | mips:*:*:RISCos)
453 eval $set_cc_for_build
454 sed 's/^ //' << EOF >$dummy.c
528 set_cc_for_build
529 sed 's/^ //' << EOF > "$dummy.c"
455530 #ifdef __cplusplus
456531 #include <stdio.h> /* for printf() prototype */
457532 int main (int argc, char *argv[]) {
460535 #endif
461536 #if defined (host_mips) && defined (MIPSEB)
462537 #if defined (SYSTYPE_SYSV)
463 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
538 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
464539 #endif
465540 #if defined (SYSTYPE_SVR4)
466 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
541 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
467542 #endif
468543 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
469 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
544 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
470545 #endif
471546 #endif
472547 exit (-1);
473548 }
474549 EOF
475 $CC_FOR_BUILD -o $dummy $dummy.c &&
476 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
477 SYSTEM_NAME=`$dummy $dummyarg` &&
550 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
551 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
552 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
478553 { echo "$SYSTEM_NAME"; exit; }
479 echo mips-mips-riscos${UNAME_RELEASE}
480 exit ;;
554 GUESS=mips-mips-riscos$UNAME_RELEASE
555 ;;
481556 Motorola:PowerMAX_OS:*:*)
482 echo powerpc-motorola-powermax
483 exit ;;
557 GUESS=powerpc-motorola-powermax
558 ;;
484559 Motorola:*:4.3:PL8-*)
485 echo powerpc-harris-powermax
486 exit ;;
560 GUESS=powerpc-harris-powermax
561 ;;
487562 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
488 echo powerpc-harris-powermax
489 exit ;;
563 GUESS=powerpc-harris-powermax
564 ;;
490565 Night_Hawk:Power_UNIX:*:*)
491 echo powerpc-harris-powerunix
492 exit ;;
566 GUESS=powerpc-harris-powerunix
567 ;;
493568 m88k:CX/UX:7*:*)
494 echo m88k-harris-cxux7
495 exit ;;
569 GUESS=m88k-harris-cxux7
570 ;;
496571 m88k:*:4*:R4*)
497 echo m88k-motorola-sysv4
498 exit ;;
572 GUESS=m88k-motorola-sysv4
573 ;;
499574 m88k:*:3*:R3*)
500 echo m88k-motorola-sysv3
501 exit ;;
575 GUESS=m88k-motorola-sysv3
576 ;;
502577 AViiON:dgux:*:*)
503578 # DG/UX returns AViiON for all architectures
504579 UNAME_PROCESSOR=`/usr/bin/uname -p`
505 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
580 if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
506581 then
507 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
508 [ ${TARGET_BINARY_INTERFACE}x = x ]
582 if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
583 test "$TARGET_BINARY_INTERFACE"x = x
509584 then
510 echo m88k-dg-dgux${UNAME_RELEASE}
585 GUESS=m88k-dg-dgux$UNAME_RELEASE
511586 else
512 echo m88k-dg-dguxbcs${UNAME_RELEASE}
587 GUESS=m88k-dg-dguxbcs$UNAME_RELEASE
513588 fi
514589 else
515 echo i586-dg-dgux${UNAME_RELEASE}
516 fi
517 exit ;;
590 GUESS=i586-dg-dgux$UNAME_RELEASE
591 fi
592 ;;
518593 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
519 echo m88k-dolphin-sysv3
520 exit ;;
594 GUESS=m88k-dolphin-sysv3
595 ;;
521596 M88*:*:R3*:*)
522597 # Delta 88k system running SVR3
523 echo m88k-motorola-sysv3
524 exit ;;
598 GUESS=m88k-motorola-sysv3
599 ;;
525600 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
526 echo m88k-tektronix-sysv3
527 exit ;;
601 GUESS=m88k-tektronix-sysv3
602 ;;
528603 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
529 echo m68k-tektronix-bsd
530 exit ;;
604 GUESS=m68k-tektronix-bsd
605 ;;
531606 *:IRIX*:*:*)
532 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
533 exit ;;
607 IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'`
608 GUESS=mips-sgi-irix$IRIX_REL
609 ;;
534610 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
535 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
536 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 '
537613 i*86:AIX:*:*)
538 echo i386-ibm-aix
539 exit ;;
614 GUESS=i386-ibm-aix
615 ;;
540616 ia64:AIX:*:*)
541 if [ -x /usr/bin/oslevel ] ; then
617 if test -x /usr/bin/oslevel ; then
542618 IBM_REV=`/usr/bin/oslevel`
543619 else
544 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
545 fi
546 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
547 exit ;;
620 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
621 fi
622 GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV
623 ;;
548624 *:AIX:2:3)
549625 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
550 eval $set_cc_for_build
551 sed 's/^ //' << EOF >$dummy.c
626 set_cc_for_build
627 sed 's/^ //' << EOF > "$dummy.c"
552628 #include <sys/systemcfg.h>
553629
554630 main()
559635 exit(0);
560636 }
561637 EOF
562 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
638 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
563639 then
564 echo "$SYSTEM_NAME"
640 GUESS=$SYSTEM_NAME
565641 else
566 echo rs6000-ibm-aix3.2.5
642 GUESS=rs6000-ibm-aix3.2.5
567643 fi
568644 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
569 echo rs6000-ibm-aix3.2.4
645 GUESS=rs6000-ibm-aix3.2.4
570646 else
571 echo rs6000-ibm-aix3.2
572 fi
573 exit ;;
647 GUESS=rs6000-ibm-aix3.2
648 fi
649 ;;
574650 *:AIX:*:[4567])
575651 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
576 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
652 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
577653 IBM_ARCH=rs6000
578654 else
579655 IBM_ARCH=powerpc
580656 fi
581 if [ -x /usr/bin/lslpp ] ; then
582 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 | \
583659 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
584660 else
585 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
586 fi
587 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
588 exit ;;
661 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
662 fi
663 GUESS=$IBM_ARCH-ibm-aix$IBM_REV
664 ;;
589665 *:AIX:*:*)
590 echo rs6000-ibm-aix
591 exit ;;
592 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
593 echo romp-ibm-bsd4.4
594 exit ;;
666 GUESS=rs6000-ibm-aix
667 ;;
668 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
669 GUESS=romp-ibm-bsd4.4
670 ;;
595671 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
596 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
597 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
598674 *:BOSX:*:*)
599 echo rs6000-bull-bosx
600 exit ;;
675 GUESS=rs6000-bull-bosx
676 ;;
601677 DPX/2?00:B.O.S.:*:*)
602 echo m68k-bull-sysv3
603 exit ;;
678 GUESS=m68k-bull-sysv3
679 ;;
604680 9000/[34]??:4.3bsd:1.*:*)
605 echo m68k-hp-bsd
606 exit ;;
681 GUESS=m68k-hp-bsd
682 ;;
607683 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
608 echo m68k-hp-bsd4.4
609 exit ;;
684 GUESS=m68k-hp-bsd4.4
685 ;;
610686 9000/[34678]??:HP-UX:*:*)
611 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
612 case "${UNAME_MACHINE}" in
613 9000/31? ) HP_ARCH=m68000 ;;
614 9000/[34]?? ) HP_ARCH=m68k ;;
687 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
688 case $UNAME_MACHINE in
689 9000/31?) HP_ARCH=m68000 ;;
690 9000/[34]??) HP_ARCH=m68k ;;
615691 9000/[678][0-9][0-9])
616 if [ -x /usr/bin/getconf ]; then
692 if test -x /usr/bin/getconf; then
617693 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
618694 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
619 case "${sc_cpu_version}" in
620 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
621 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
695 case $sc_cpu_version in
696 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
697 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
622698 532) # CPU_PA_RISC2_0
623 case "${sc_kernel_bits}" in
624 32) HP_ARCH="hppa2.0n" ;;
625 64) HP_ARCH="hppa2.0w" ;;
626 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
699 case $sc_kernel_bits in
700 32) HP_ARCH=hppa2.0n ;;
701 64) HP_ARCH=hppa2.0w ;;
702 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
627703 esac ;;
628704 esac
629705 fi
630 if [ "${HP_ARCH}" = "" ]; then
631 eval $set_cc_for_build
632 sed 's/^ //' << EOF >$dummy.c
706 if test "$HP_ARCH" = ""; then
707 set_cc_for_build
708 sed 's/^ //' << EOF > "$dummy.c"
633709
634710 #define _HPUX_SOURCE
635711 #include <stdlib.h>
662738 exit (0);
663739 }
664740 EOF
665 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
741 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
666742 test -z "$HP_ARCH" && HP_ARCH=hppa
667743 fi ;;
668744 esac
669 if [ ${HP_ARCH} = "hppa2.0w" ]
745 if test "$HP_ARCH" = hppa2.0w
670746 then
671 eval $set_cc_for_build
747 set_cc_for_build
672748
673749 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
674750 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
679755 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
680756 # => hppa64-hp-hpux11.23
681757
682 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
758 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
683759 grep -q __LP64__
684760 then
685 HP_ARCH="hppa2.0w"
761 HP_ARCH=hppa2.0w
686762 else
687 HP_ARCH="hppa64"
763 HP_ARCH=hppa64
688764 fi
689765 fi
690 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
691 exit ;;
766 GUESS=$HP_ARCH-hp-hpux$HPUX_REV
767 ;;
692768 ia64:HP-UX:*:*)
693 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
694 echo ia64-hp-hpux${HPUX_REV}
695 exit ;;
769 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
770 GUESS=ia64-hp-hpux$HPUX_REV
771 ;;
696772 3050*:HI-UX:*:*)
697 eval $set_cc_for_build
698 sed 's/^ //' << EOF >$dummy.c
773 set_cc_for_build
774 sed 's/^ //' << EOF > "$dummy.c"
699775 #include <unistd.h>
700776 int
701777 main ()
720796 exit (0);
721797 }
722798 EOF
723 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
799 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
724800 { echo "$SYSTEM_NAME"; exit; }
725 echo unknown-hitachi-hiuxwe2
726 exit ;;
727 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
728 echo hppa1.1-hp-bsd
729 exit ;;
801 GUESS=unknown-hitachi-hiuxwe2
802 ;;
803 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
804 GUESS=hppa1.1-hp-bsd
805 ;;
730806 9000/8??:4.3bsd:*:*)
731 echo hppa1.0-hp-bsd
732 exit ;;
807 GUESS=hppa1.0-hp-bsd
808 ;;
733809 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
734 echo hppa1.0-hp-mpeix
735 exit ;;
736 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
737 echo hppa1.1-hp-osf
738 exit ;;
810 GUESS=hppa1.0-hp-mpeix
811 ;;
812 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
813 GUESS=hppa1.1-hp-osf
814 ;;
739815 hp8??:OSF1:*:*)
740 echo hppa1.0-hp-osf
741 exit ;;
816 GUESS=hppa1.0-hp-osf
817 ;;
742818 i*86:OSF1:*:*)
743 if [ -x /usr/sbin/sysversion ] ; then
744 echo ${UNAME_MACHINE}-unknown-osf1mk
819 if test -x /usr/sbin/sysversion ; then
820 GUESS=$UNAME_MACHINE-unknown-osf1mk
745821 else
746 echo ${UNAME_MACHINE}-unknown-osf1
747 fi
748 exit ;;
822 GUESS=$UNAME_MACHINE-unknown-osf1
823 fi
824 ;;
749825 parisc*:Lites*:*:*)
750 echo hppa1.1-hp-lites
751 exit ;;
826 GUESS=hppa1.1-hp-lites
827 ;;
752828 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
753 echo c1-convex-bsd
754 exit ;;
829 GUESS=c1-convex-bsd
830 ;;
755831 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
756832 if getsysinfo -f scalar_acc
757833 then echo c32-convex-bsd
759835 fi
760836 exit ;;
761837 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
762 echo c34-convex-bsd
763 exit ;;
838 GUESS=c34-convex-bsd
839 ;;
764840 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
765 echo c38-convex-bsd
766 exit ;;
841 GUESS=c38-convex-bsd
842 ;;
767843 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
768 echo c4-convex-bsd
769 exit ;;
844 GUESS=c4-convex-bsd
845 ;;
770846 CRAY*Y-MP:*:*:*)
771 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
772 exit ;;
847 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
848 GUESS=ymp-cray-unicos$CRAY_REL
849 ;;
773850 CRAY*[A-Z]90:*:*:*)
774 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
851 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
775852 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
776853 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
777854 -e 's/\.[^.]*$/.X/'
778855 exit ;;
779856 CRAY*TS:*:*:*)
780 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
781 exit ;;
857 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
858 GUESS=t90-cray-unicos$CRAY_REL
859 ;;
782860 CRAY*T3E:*:*:*)
783 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
784 exit ;;
861 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
862 GUESS=alphaev5-cray-unicosmk$CRAY_REL
863 ;;
785864 CRAY*SV1:*:*:*)
786 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
787 exit ;;
865 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
866 GUESS=sv1-cray-unicos$CRAY_REL
867 ;;
788868 *:UNICOS/mp:*:*)
789 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
790 exit ;;
869 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
870 GUESS=craynv-cray-unicosmp$CRAY_REL
871 ;;
791872 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
792 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
793 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
794 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
795 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
796 exit ;;
873 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
874 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
875 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
876 GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
877 ;;
797878 5000:UNIX_System_V:4.*:*)
798 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
799 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
800 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
801 exit ;;
879 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
880 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
881 GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
882 ;;
802883 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
803 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
804 exit ;;
884 GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE
885 ;;
805886 sparc*:BSD/OS:*:*)
806 echo sparc-unknown-bsdi${UNAME_RELEASE}
807 exit ;;
887 GUESS=sparc-unknown-bsdi$UNAME_RELEASE
888 ;;
808889 *:BSD/OS:*:*)
809 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
810 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 ;;
811905 *:FreeBSD:*:*)
812906 UNAME_PROCESSOR=`/usr/bin/uname -p`
813 case ${UNAME_PROCESSOR} in
907 case $UNAME_PROCESSOR in
814908 amd64)
815 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
816 *)
817 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
909 UNAME_PROCESSOR=x86_64 ;;
910 i386)
911 UNAME_PROCESSOR=i586 ;;
818912 esac
819 exit ;;
913 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
914 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL
915 ;;
820916 i*:CYGWIN*:*)
821 echo ${UNAME_MACHINE}-pc-cygwin
822 exit ;;
917 GUESS=$UNAME_MACHINE-pc-cygwin
918 ;;
823919 *:MINGW64*:*)
824 echo ${UNAME_MACHINE}-pc-mingw64
825 exit ;;
920 GUESS=$UNAME_MACHINE-pc-mingw64
921 ;;
826922 *:MINGW*:*)
827 echo ${UNAME_MACHINE}-pc-mingw32
828 exit ;;
923 GUESS=$UNAME_MACHINE-pc-mingw32
924 ;;
829925 *:MSYS*:*)
830 echo ${UNAME_MACHINE}-pc-msys
831 exit ;;
832 i*:windows32*:*)
833 # uname -m includes "-pc" on this system.
834 echo ${UNAME_MACHINE}-mingw32
835 exit ;;
926 GUESS=$UNAME_MACHINE-pc-msys
927 ;;
836928 i*:PW*:*)
837 echo ${UNAME_MACHINE}-pc-pw32
838 exit ;;
929 GUESS=$UNAME_MACHINE-pc-pw32
930 ;;
931 *:SerenityOS:*:*)
932 GUESS=$UNAME_MACHINE-pc-serenity
933 ;;
839934 *:Interix*:*)
840 case ${UNAME_MACHINE} in
935 case $UNAME_MACHINE in
841936 x86)
842 echo i586-pc-interix${UNAME_RELEASE}
843 exit ;;
937 GUESS=i586-pc-interix$UNAME_RELEASE
938 ;;
844939 authenticamd | genuineintel | EM64T)
845 echo x86_64-unknown-interix${UNAME_RELEASE}
846 exit ;;
940 GUESS=x86_64-unknown-interix$UNAME_RELEASE
941 ;;
847942 IA64)
848 echo ia64-unknown-interix${UNAME_RELEASE}
849 exit ;;
943 GUESS=ia64-unknown-interix$UNAME_RELEASE
944 ;;
850945 esac ;;
851 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
852 echo i${UNAME_MACHINE}-pc-mks
853 exit ;;
854 8664:Windows_NT:*)
855 echo x86_64-pc-mks
856 exit ;;
857 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
858 # How do we know it's Interix rather than the generic POSIX subsystem?
859 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
860 # UNAME_MACHINE based on the output of uname instead of i386?
861 echo i586-pc-interix
862 exit ;;
863946 i*:UWIN*:*)
864 echo ${UNAME_MACHINE}-pc-uwin
865 exit ;;
947 GUESS=$UNAME_MACHINE-pc-uwin
948 ;;
866949 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
867 echo x86_64-unknown-cygwin
868 exit ;;
869 p*:CYGWIN*:*)
870 echo powerpcle-unknown-cygwin
871 exit ;;
950 GUESS=x86_64-pc-cygwin
951 ;;
872952 prep*:SunOS:5.*:*)
873 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
874 exit ;;
953 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
954 GUESS=powerpcle-unknown-solaris2$SUN_REL
955 ;;
875956 *:GNU:*:*)
876957 # the GNU system
877 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
878 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 ;;
879962 *:GNU/*:*:*)
880963 # other systems with GNU libc and userland
881 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
882 exit ;;
883 i*86:Minix:*:*)
884 echo ${UNAME_MACHINE}-pc-minix
885 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 ;;
886971 aarch64:Linux:*:*)
887 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
888 exit ;;
972 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
973 ;;
889974 aarch64_be:Linux:*:*)
890975 UNAME_MACHINE=aarch64_be
891 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
892 exit ;;
976 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
977 ;;
893978 alpha:Linux:*:*)
894 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
895980 EV5) UNAME_MACHINE=alphaev5 ;;
896981 EV56) UNAME_MACHINE=alphaev56 ;;
897982 PCA56) UNAME_MACHINE=alphapca56 ;;
901986 EV68*) UNAME_MACHINE=alphaev68 ;;
902987 esac
903988 objdump --private-headers /bin/sh | grep -q ld.so.1
904 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
905 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
906 exit ;;
907 arc:Linux:*:* | arceb:Linux:*:*)
908 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
909 exit ;;
989 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
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 ;;
910995 arm*:Linux:*:*)
911 eval $set_cc_for_build
996 set_cc_for_build
912997 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
913998 | grep -q __ARM_EABI__
914999 then
915 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1000 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
9161001 else
9171002 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
9181003 | grep -q __ARM_PCS_VFP
9191004 then
920 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
1005 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi
9211006 else
922 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
1007 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf
9231008 fi
9241009 fi
925 exit ;;
1010 ;;
9261011 avr32*:Linux:*:*)
927 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
928 exit ;;
1012 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1013 ;;
9291014 cris:Linux:*:*)
930 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
931 exit ;;
1015 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
1016 ;;
9321017 crisv32:Linux:*:*)
933 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
934 exit ;;
1018 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
1019 ;;
1020 e2k:Linux:*:*)
1021 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1022 ;;
9351023 frv:Linux:*:*)
936 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
937 exit ;;
1024 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1025 ;;
9381026 hexagon:Linux:*:*)
939 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
940 exit ;;
1027 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1028 ;;
9411029 i*86:Linux:*:*)
942 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
943 exit ;;
1030 GUESS=$UNAME_MACHINE-pc-linux-$LIBC
1031 ;;
9441032 ia64:Linux:*:*)
945 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
946 exit ;;
1033 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1034 ;;
1035 k1om:Linux:*:*)
1036 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1037 ;;
1038 loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
1039 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1040 ;;
9471041 m32r*:Linux:*:*)
948 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
949 exit ;;
1042 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1043 ;;
9501044 m68*:Linux:*:*)
951 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
952 exit ;;
1045 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1046 ;;
9531047 mips:Linux:*:* | mips64:Linux:*:*)
954 eval $set_cc_for_build
955 sed 's/^ //' << EOF >$dummy.c
1048 set_cc_for_build
1049 IS_GLIBC=0
1050 test x"${LIBC}" = xgnu && IS_GLIBC=1
1051 sed 's/^ //' << EOF > "$dummy.c"
9561052 #undef CPU
957 #undef ${UNAME_MACHINE}
958 #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
9591081 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
960 CPU=${UNAME_MACHINE}el
1082 MIPS_ENDIAN=el
9611083 #else
9621084 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
963 CPU=${UNAME_MACHINE}
1085 MIPS_ENDIAN=
9641086 #else
965 CPU=
1087 MIPS_ENDIAN=
9661088 #endif
9671089 #endif
9681090 EOF
969 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
970 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; }
1094 ;;
1095 mips64el:Linux:*:*)
1096 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
9711097 ;;
9721098 openrisc*:Linux:*:*)
973 echo or1k-unknown-linux-${LIBC}
974 exit ;;
1099 GUESS=or1k-unknown-linux-$LIBC
1100 ;;
9751101 or32:Linux:*:* | or1k*:Linux:*:*)
976 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
977 exit ;;
1102 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1103 ;;
9781104 padre:Linux:*:*)
979 echo sparc-unknown-linux-${LIBC}
980 exit ;;
1105 GUESS=sparc-unknown-linux-$LIBC
1106 ;;
9811107 parisc64:Linux:*:* | hppa64:Linux:*:*)
982 echo hppa64-unknown-linux-${LIBC}
983 exit ;;
1108 GUESS=hppa64-unknown-linux-$LIBC
1109 ;;
9841110 parisc:Linux:*:* | hppa:Linux:*:*)
9851111 # Look for CPU level
9861112 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
987 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
988 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
989 *) 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 ;;
9901116 esac
991 exit ;;
1117 ;;
9921118 ppc64:Linux:*:*)
993 echo powerpc64-unknown-linux-${LIBC}
994 exit ;;
1119 GUESS=powerpc64-unknown-linux-$LIBC
1120 ;;
9951121 ppc:Linux:*:*)
996 echo powerpc-unknown-linux-${LIBC}
997 exit ;;
1122 GUESS=powerpc-unknown-linux-$LIBC
1123 ;;
9981124 ppc64le:Linux:*:*)
999 echo powerpc64le-unknown-linux-${LIBC}
1000 exit ;;
1125 GUESS=powerpc64le-unknown-linux-$LIBC
1126 ;;
10011127 ppcle:Linux:*:*)
1002 echo powerpcle-unknown-linux-${LIBC}
1003 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 ;;
10041133 s390:Linux:*:* | s390x:Linux:*:*)
1005 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1006 exit ;;
1134 GUESS=$UNAME_MACHINE-ibm-linux-$LIBC
1135 ;;
10071136 sh64*:Linux:*:*)
1008 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1009 exit ;;
1137 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1138 ;;
10101139 sh*:Linux:*:*)
1011 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1012 exit ;;
1140 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1141 ;;
10131142 sparc:Linux:*:* | sparc64:Linux:*:*)
1014 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1015 exit ;;
1143 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1144 ;;
10161145 tile*:Linux:*:*)
1017 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1018 exit ;;
1146 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1147 ;;
10191148 vax:Linux:*:*)
1020 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1021 exit ;;
1149 GUESS=$UNAME_MACHINE-dec-linux-$LIBC
1150 ;;
10221151 x86_64:Linux:*:*)
1023 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1024 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 ;;
10251164 xtensa*:Linux:*:*)
1026 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1027 exit ;;
1165 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1166 ;;
10281167 i*86:DYNIX/ptx:4*:*)
10291168 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10301169 # earlier versions are messed up and put the nodename in both
10311170 # sysname and nodename.
1032 echo i386-sequent-sysv4
1033 exit ;;
1171 GUESS=i386-sequent-sysv4
1172 ;;
10341173 i*86:UNIX_SV:4.2MP:2.*)
10351174 # Unixware is an offshoot of SVR4, but it has its own version
10361175 # number series starting with 2...
10371176 # I am not positive that other SVR4 systems won't match this,
10381177 # I just have to hope. -- rms.
10391178 # Use sysv4.2uw... so that sysv4* matches it.
1040 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1041 exit ;;
1179 GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION
1180 ;;
10421181 i*86:OS/2:*:*)
10431182 # If we were able to find `uname', then EMX Unix compatibility
10441183 # is probably installed.
1045 echo ${UNAME_MACHINE}-pc-os2-emx
1046 exit ;;
1184 GUESS=$UNAME_MACHINE-pc-os2-emx
1185 ;;
10471186 i*86:XTS-300:*:STOP)
1048 echo ${UNAME_MACHINE}-unknown-stop
1049 exit ;;
1187 GUESS=$UNAME_MACHINE-unknown-stop
1188 ;;
10501189 i*86:atheos:*:*)
1051 echo ${UNAME_MACHINE}-unknown-atheos
1052 exit ;;
1190 GUESS=$UNAME_MACHINE-unknown-atheos
1191 ;;
10531192 i*86:syllable:*:*)
1054 echo ${UNAME_MACHINE}-pc-syllable
1055 exit ;;
1193 GUESS=$UNAME_MACHINE-pc-syllable
1194 ;;
10561195 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1057 echo i386-unknown-lynxos${UNAME_RELEASE}
1058 exit ;;
1196 GUESS=i386-unknown-lynxos$UNAME_RELEASE
1197 ;;
10591198 i*86:*DOS:*:*)
1060 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1061 exit ;;
1062 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1063 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1199 GUESS=$UNAME_MACHINE-pc-msdosdjgpp
1200 ;;
1201 i*86:*:4.*:*)
1202 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
10641203 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1065 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1204 GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL
10661205 else
1067 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1068 fi
1069 exit ;;
1206 GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL
1207 fi
1208 ;;
10701209 i*86:*:5:[678]*)
10711210 # UnixWare 7.x, OpenUNIX and OpenServer 6.
10721211 case `/bin/uname -X | grep "^Machine"` in
10741213 *Pentium) UNAME_MACHINE=i586 ;;
10751214 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
10761215 esac
1077 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1078 exit ;;
1216 GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1217 ;;
10791218 i*86:*:3.2:*)
10801219 if test -f /usr/options/cb.name; then
10811220 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1082 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1221 GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL
10831222 elif /bin/uname -X 2>/dev/null >/dev/null ; then
10841223 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
10851224 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
10891228 && UNAME_MACHINE=i686
10901229 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
10911230 && UNAME_MACHINE=i686
1092 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1231 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL
10931232 else
1094 echo ${UNAME_MACHINE}-pc-sysv32
1095 fi
1096 exit ;;
1233 GUESS=$UNAME_MACHINE-pc-sysv32
1234 fi
1235 ;;
10971236 pc:*:*:*)
10981237 # Left here for compatibility:
10991238 # uname -m prints for DJGPP always 'pc', but it prints nothing about
11001239 # the processor, so we play safe by assuming i586.
11011240 # Note: whatever this is, it MUST be the same as what config.sub
1102 # prints for the "djgpp" host, or else GDB configury will decide that
1241 # prints for the "djgpp" host, or else GDB configure will decide that
11031242 # this is a cross-build.
1104 echo i586-pc-msdosdjgpp
1105 exit ;;
1243 GUESS=i586-pc-msdosdjgpp
1244 ;;
11061245 Intel:Mach:3*:*)
1107 echo i386-pc-mach3
1108 exit ;;
1246 GUESS=i386-pc-mach3
1247 ;;
11091248 paragon:*:*:*)
1110 echo i860-intel-osf1
1111 exit ;;
1249 GUESS=i860-intel-osf1
1250 ;;
11121251 i860:*:4.*:*) # i860-SVR4
11131252 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1114 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1253 GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4
11151254 else # Add other i860-SVR4 vendors below as they are discovered.
1116 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1117 fi
1118 exit ;;
1255 GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4
1256 fi
1257 ;;
11191258 mini*:CTIX:SYS*5:*)
11201259 # "miniframe"
1121 echo m68010-convergent-sysv
1122 exit ;;
1260 GUESS=m68010-convergent-sysv
1261 ;;
11231262 mc68k:UNIX:SYSTEM5:3.51m)
1124 echo m68k-convergent-sysv
1125 exit ;;
1263 GUESS=m68k-convergent-sysv
1264 ;;
11261265 M680?0:D-NIX:5.3:*)
1127 echo m68k-diab-dnix
1128 exit ;;
1266 GUESS=m68k-diab-dnix
1267 ;;
11291268 M68*:*:R3V[5678]*:*)
11301269 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
11311270 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)
11331272 test -r /etc/.relid \
11341273 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11351274 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1136 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1275 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11371276 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1138 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1277 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11391278 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
11401279 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11411280 && { echo i486-ncr-sysv4; exit; } ;;
11441283 test -r /etc/.relid \
11451284 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11461285 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1147 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1286 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11481287 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1149 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1288 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
11501289 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1151 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1290 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11521291 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1153 echo m68k-unknown-lynxos${UNAME_RELEASE}
1154 exit ;;
1292 GUESS=m68k-unknown-lynxos$UNAME_RELEASE
1293 ;;
11551294 mc68030:UNIX_System_V:4.*:*)
1156 echo m68k-atari-sysv4
1157 exit ;;
1295 GUESS=m68k-atari-sysv4
1296 ;;
11581297 TSUNAMI:LynxOS:2.*:*)
1159 echo sparc-unknown-lynxos${UNAME_RELEASE}
1160 exit ;;
1298 GUESS=sparc-unknown-lynxos$UNAME_RELEASE
1299 ;;
11611300 rs6000:LynxOS:2.*:*)
1162 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1163 exit ;;
1301 GUESS=rs6000-unknown-lynxos$UNAME_RELEASE
1302 ;;
11641303 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1165 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1166 exit ;;
1304 GUESS=powerpc-unknown-lynxos$UNAME_RELEASE
1305 ;;
11671306 SM[BE]S:UNIX_SV:*:*)
1168 echo mips-dde-sysv${UNAME_RELEASE}
1169 exit ;;
1307 GUESS=mips-dde-sysv$UNAME_RELEASE
1308 ;;
11701309 RM*:ReliantUNIX-*:*:*)
1171 echo mips-sni-sysv4
1172 exit ;;
1310 GUESS=mips-sni-sysv4
1311 ;;
11731312 RM*:SINIX-*:*:*)
1174 echo mips-sni-sysv4
1175 exit ;;
1313 GUESS=mips-sni-sysv4
1314 ;;
11761315 *:SINIX-*:*:*)
11771316 if uname -p 2>/dev/null >/dev/null ; then
11781317 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1179 echo ${UNAME_MACHINE}-sni-sysv4
1318 GUESS=$UNAME_MACHINE-sni-sysv4
11801319 else
1181 echo ns32k-sni-sysv
1182 fi
1183 exit ;;
1320 GUESS=ns32k-sni-sysv
1321 fi
1322 ;;
11841323 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
11851324 # says <Richard.M.Bartel@ccMail.Census.GOV>
1186 echo i586-unisys-sysv4
1187 exit ;;
1325 GUESS=i586-unisys-sysv4
1326 ;;
11881327 *:UNIX_System_V:4*:FTX*)
11891328 # From Gerald Hewes <hewes@openmarket.com>.
11901329 # How about differentiating between stratus architectures? -djm
1191 echo hppa1.1-stratus-sysv4
1192 exit ;;
1330 GUESS=hppa1.1-stratus-sysv4
1331 ;;
11931332 *:*:*:FTX*)
11941333 # From seanf@swdc.stratus.com.
1195 echo i860-stratus-sysv4
1196 exit ;;
1334 GUESS=i860-stratus-sysv4
1335 ;;
11971336 i*86:VOS:*:*)
11981337 # From Paul.Green@stratus.com.
1199 echo ${UNAME_MACHINE}-stratus-vos
1200 exit ;;
1338 GUESS=$UNAME_MACHINE-stratus-vos
1339 ;;
12011340 *:VOS:*:*)
12021341 # From Paul.Green@stratus.com.
1203 echo hppa1.1-stratus-vos
1204 exit ;;
1342 GUESS=hppa1.1-stratus-vos
1343 ;;
12051344 mc68*:A/UX:*:*)
1206 echo m68k-apple-aux${UNAME_RELEASE}
1207 exit ;;
1345 GUESS=m68k-apple-aux$UNAME_RELEASE
1346 ;;
12081347 news*:NEWS-OS:6*:*)
1209 echo mips-sony-newsos6
1210 exit ;;
1348 GUESS=mips-sony-newsos6
1349 ;;
12111350 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1212 if [ -d /usr/nec ]; then
1213 echo mips-nec-sysv${UNAME_RELEASE}
1351 if test -d /usr/nec; then
1352 GUESS=mips-nec-sysv$UNAME_RELEASE
12141353 else
1215 echo mips-unknown-sysv${UNAME_RELEASE}
1216 fi
1217 exit ;;
1354 GUESS=mips-unknown-sysv$UNAME_RELEASE
1355 fi
1356 ;;
12181357 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1219 echo powerpc-be-beos
1220 exit ;;
1358 GUESS=powerpc-be-beos
1359 ;;
12211360 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1222 echo powerpc-apple-beos
1223 exit ;;
1361 GUESS=powerpc-apple-beos
1362 ;;
12241363 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1225 echo i586-pc-beos
1226 exit ;;
1364 GUESS=i586-pc-beos
1365 ;;
12271366 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1228 echo i586-pc-haiku
1229 exit ;;
1367 GUESS=i586-pc-haiku
1368 ;;
12301369 x86_64:Haiku:*:*)
1231 echo x86_64-unknown-haiku
1232 exit ;;
1370 GUESS=x86_64-unknown-haiku
1371 ;;
12331372 SX-4:SUPER-UX:*:*)
1234 echo sx4-nec-superux${UNAME_RELEASE}
1235 exit ;;
1373 GUESS=sx4-nec-superux$UNAME_RELEASE
1374 ;;
12361375 SX-5:SUPER-UX:*:*)
1237 echo sx5-nec-superux${UNAME_RELEASE}
1238 exit ;;
1376 GUESS=sx5-nec-superux$UNAME_RELEASE
1377 ;;
12391378 SX-6:SUPER-UX:*:*)
1240 echo sx6-nec-superux${UNAME_RELEASE}
1241 exit ;;
1379 GUESS=sx6-nec-superux$UNAME_RELEASE
1380 ;;
12421381 SX-7:SUPER-UX:*:*)
1243 echo sx7-nec-superux${UNAME_RELEASE}
1244 exit ;;
1382 GUESS=sx7-nec-superux$UNAME_RELEASE
1383 ;;
12451384 SX-8:SUPER-UX:*:*)
1246 echo sx8-nec-superux${UNAME_RELEASE}
1247 exit ;;
1385 GUESS=sx8-nec-superux$UNAME_RELEASE
1386 ;;
12481387 SX-8R:SUPER-UX:*:*)
1249 echo sx8r-nec-superux${UNAME_RELEASE}
1250 exit ;;
1388 GUESS=sx8r-nec-superux$UNAME_RELEASE
1389 ;;
1390 SX-ACE:SUPER-UX:*:*)
1391 GUESS=sxace-nec-superux$UNAME_RELEASE
1392 ;;
12511393 Power*:Rhapsody:*:*)
1252 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1253 exit ;;
1394 GUESS=powerpc-apple-rhapsody$UNAME_RELEASE
1395 ;;
12541396 *:Rhapsody:*:*)
1255 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1256 exit ;;
1397 GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE
1398 ;;
1399 arm64:Darwin:*:*)
1400 GUESS=aarch64-apple-darwin$UNAME_RELEASE
1401 ;;
12571402 *:Darwin:*:*)
1258 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1259 eval $set_cc_for_build
1260 if test "$UNAME_PROCESSOR" = unknown ; then
1261 UNAME_PROCESSOR=powerpc
1262 fi
1263 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1264 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1265 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1266 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1267 grep IS_64BIT_ARCH >/dev/null
1268 then
1269 case $UNAME_PROCESSOR in
1270 i386) UNAME_PROCESSOR=x86_64 ;;
1271 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1272 esac
1273 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
12741432 fi
12751433 elif test "$UNAME_PROCESSOR" = i386 ; then
1276 # Avoid executing cc on OS X 10.9, as it ships with a stub
1277 # that puts up a graphical alert prompting to install
1278 # developer tools. Any system running Mac OS X 10.7 or
1279 # later (Darwin 11 and later) is required to have a 64-bit
1280 # processor. This is not true of the ARM version of Darwin
1281 # that Apple uses in portable devices.
1282 UNAME_PROCESSOR=x86_64
1283 fi
1284 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1285 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 ;;
12861439 *:procnto*:*:* | *:QNX:[0123456789]*:*)
12871440 UNAME_PROCESSOR=`uname -p`
1288 if test "$UNAME_PROCESSOR" = "x86"; then
1441 if test "$UNAME_PROCESSOR" = x86; then
12891442 UNAME_PROCESSOR=i386
12901443 UNAME_MACHINE=pc
12911444 fi
1292 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1293 exit ;;
1445 GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE
1446 ;;
12941447 *:QNX:*:4*)
1295 echo i386-pc-qnx
1296 exit ;;
1297 NEO-?:NONSTOP_KERNEL:*:*)
1298 echo neo-tandem-nsk${UNAME_RELEASE}
1299 exit ;;
1448 GUESS=i386-pc-qnx
1449 ;;
1450 NEO-*:NONSTOP_KERNEL:*:*)
1451 GUESS=neo-tandem-nsk$UNAME_RELEASE
1452 ;;
13001453 NSE-*:NONSTOP_KERNEL:*:*)
1301 echo nse-tandem-nsk${UNAME_RELEASE}
1302 exit ;;
1303 NSR-?:NONSTOP_KERNEL:*:*)
1304 echo nsr-tandem-nsk${UNAME_RELEASE}
1305 exit ;;
1454 GUESS=nse-tandem-nsk$UNAME_RELEASE
1455 ;;
1456 NSR-*:NONSTOP_KERNEL:*:*)
1457 GUESS=nsr-tandem-nsk$UNAME_RELEASE
1458 ;;
1459 NSV-*:NONSTOP_KERNEL:*:*)
1460 GUESS=nsv-tandem-nsk$UNAME_RELEASE
1461 ;;
1462 NSX-*:NONSTOP_KERNEL:*:*)
1463 GUESS=nsx-tandem-nsk$UNAME_RELEASE
1464 ;;
13061465 *:NonStop-UX:*:*)
1307 echo mips-compaq-nonstopux
1308 exit ;;
1466 GUESS=mips-compaq-nonstopux
1467 ;;
13091468 BS2000:POSIX*:*:*)
1310 echo bs2000-siemens-sysv
1311 exit ;;
1469 GUESS=bs2000-siemens-sysv
1470 ;;
13121471 DS/*:UNIX_System_V:*:*)
1313 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1314 exit ;;
1472 GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE
1473 ;;
13151474 *:Plan9:*:*)
13161475 # "uname -m" is not consistent, so use $cputype instead. 386
13171476 # is converted to i386 for consistency with other x86
13181477 # operating systems.
1319 if test "$cputype" = "386"; then
1478 if test "${cputype-}" = 386; then
13201479 UNAME_MACHINE=i386
1321 else
1322 UNAME_MACHINE="$cputype"
1323 fi
1324 echo ${UNAME_MACHINE}-unknown-plan9
1325 exit ;;
1480 elif test "x${cputype-}" != x; then
1481 UNAME_MACHINE=$cputype
1482 fi
1483 GUESS=$UNAME_MACHINE-unknown-plan9
1484 ;;
13261485 *:TOPS-10:*:*)
1327 echo pdp10-unknown-tops10
1328 exit ;;
1486 GUESS=pdp10-unknown-tops10
1487 ;;
13291488 *:TENEX:*:*)
1330 echo pdp10-unknown-tenex
1331 exit ;;
1489 GUESS=pdp10-unknown-tenex
1490 ;;
13321491 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1333 echo pdp10-dec-tops20
1334 exit ;;
1492 GUESS=pdp10-dec-tops20
1493 ;;
13351494 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1336 echo pdp10-xkl-tops20
1337 exit ;;
1495 GUESS=pdp10-xkl-tops20
1496 ;;
13381497 *:TOPS-20:*:*)
1339 echo pdp10-unknown-tops20
1340 exit ;;
1498 GUESS=pdp10-unknown-tops20
1499 ;;
13411500 *:ITS:*:*)
1342 echo pdp10-unknown-its
1343 exit ;;
1501 GUESS=pdp10-unknown-its
1502 ;;
13441503 SEI:*:*:SEIUX)
1345 echo mips-sei-seiux${UNAME_RELEASE}
1346 exit ;;
1504 GUESS=mips-sei-seiux$UNAME_RELEASE
1505 ;;
13471506 *:DragonFly:*:*)
1348 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1349 exit ;;
1507 DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
1508 GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL
1509 ;;
13501510 *:*VMS:*:*)
13511511 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1352 case "${UNAME_MACHINE}" in
1353 A*) echo alpha-dec-vms ; exit ;;
1354 I*) echo ia64-dec-vms ; exit ;;
1355 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 ;;
13561516 esac ;;
13571517 *:XENIX:*:SysV)
1358 echo i386-pc-xenix
1359 exit ;;
1518 GUESS=i386-pc-xenix
1519 ;;
13601520 i*86:skyos:*:*)
1361 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1362 exit ;;
1521 SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`
1522 GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL
1523 ;;
13631524 i*86:rdos:*:*)
1364 echo ${UNAME_MACHINE}-pc-rdos
1365 exit ;;
1366 i*86:AROS:*:*)
1367 echo ${UNAME_MACHINE}-pc-aros
1368 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 ;;
13691533 x86_64:VMkernel:*:*)
1370 echo ${UNAME_MACHINE}-unknown-esx
1371 exit ;;
1534 GUESS=$UNAME_MACHINE-unknown-esx
1535 ;;
1536 amd64:Isilon\ OneFS:*:*)
1537 GUESS=x86_64-unknown-onefs
1538 ;;
1539 *:Unleashed:*:*)
1540 GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
1541 ;;
13721542 esac
13731543
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
1687 echo "$0: unable to guess system type" >&2
1688
1689 case $UNAME_MACHINE:$UNAME_SYSTEM in
1690 mips:Linux | mips64:Linux)
1691 # If we got here on MIPS GNU/Linux, output extra information.
1692 cat >&2 <<EOF
1693
1694 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1695 the system type. Please install a C compiler and try again.
1696 EOF
1697 ;;
1698 esac
1699
13741700 cat >&2 <<EOF
1375 $0: unable to guess system type
1376
1377 This script, last modified $timestamp, has failed to recognize
1378 the operating system you are using. It is advised that you
1379 download the most up to date version of the config scripts from
1380
1381 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1701
1702 This script (version $timestamp), has failed to recognize the
1703 operating system you are using. If your script is old, overwrite *all*
1704 copies of config.guess and config.sub with the latest versions from:
1705
1706 https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
13821707 and
1383 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1384
1385 If the version you run ($0) is already up to date, please
1386 send the following data and any information you think might be
1387 pertinent to <config-patches@gnu.org> in order to provide the needed
1388 information to handle your system.
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
1717
1718 If $0 has already been updated, send the following data and any
1719 information you think might be pertinent to config-patches@gnu.org to
1720 provide the necessary information to handle your system.
13891721
13901722 config.guess timestamp = $timestamp
13911723
14041736 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
14051737 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
14061738
1407 UNAME_MACHINE = ${UNAME_MACHINE}
1408 UNAME_RELEASE = ${UNAME_RELEASE}
1409 UNAME_SYSTEM = ${UNAME_SYSTEM}
1410 UNAME_VERSION = ${UNAME_VERSION}
1739 UNAME_MACHINE = "$UNAME_MACHINE"
1740 UNAME_RELEASE = "$UNAME_RELEASE"
1741 UNAME_SYSTEM = "$UNAME_SYSTEM"
1742 UNAME_VERSION = "$UNAME_VERSION"
14111743 EOF
1744 fi
14121745
14131746 exit 1
14141747
14151748 # Local variables:
1416 # eval: (add-hook 'write-file-hooks 'time-stamp)
1749 # eval: (add-hook 'before-save-hook 'time-stamp)
14171750 # time-stamp-start: "timestamp='"
14181751 # time-stamp-format: "%:y-%02m-%02d"
14191752 # time-stamp-end: "'"
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-01-01'
2 # Copyright 1992-2022 Free Software Foundation, Inc.
3
4 # shellcheck disable=SC2006,SC2268 # see below for rationale
5
6 timestamp='2022-01-03'
57
68 # This file is free software; you can redistribute it and/or modify it
79 # 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
911 # (at your option) any later version.
1012 #
1113 # This program is distributed in the hope that it will be useful, but
1416 # General Public License for more details.
1517 #
1618 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
19 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1820 #
1921 # As a special exception to the GNU General Public License, if you
2022 # distribute this file as part of a program that contains a
3234 # Otherwise, we print the canonical config type on stdout and succeed.
3335
3436 # You can get the latest version of this script from:
35 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
37 # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
3638
3739 # This file is supposed to be the same for all GNU packages
3840 # and recognize all the CPU types, system types and aliases
4951 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
5052 # It is wrong to echo any other type of specification.
5153
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
5261 me=`echo "$0" | sed -e 's,.*/,,'`
5362
5463 usage="\
55 Usage: $0 [OPTION] CPU-MFR-OPSYS
56 $0 [OPTION] ALIAS
64 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
5765
5866 Canonicalize a configuration name.
5967
60 Operation modes:
68 Options:
6169 -h, --help print this help, then exit
6270 -t, --time-stamp print date of last modification, then exit
6371 -v, --version print version number, then exit
6775 version="\
6876 GNU config.sub ($timestamp)
6977
70 Copyright 1992-2015 Free Software Foundation, Inc.
78 Copyright 1992-2022 Free Software Foundation, Inc.
7179
7280 This is free software; see the source for copying conditions. There is NO
7381 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8997 - ) # Use stdin as input.
9098 break ;;
9199 -* )
92 echo "$me: invalid option $1$help"
100 echo "$me: invalid option $1$help" >&2
93101 exit 1 ;;
94102
95103 *local*)
96104 # First pass through any local machine types.
97 echo $1
105 echo "$1"
98106 exit ;;
99107
100108 * )
110118 exit 1;;
111119 esac
112120
113 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114 # Here we must recognize all the valid KERNEL-OS combinations.
115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
116 case $maybe_os in
117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119 knetbsd*-gnu* | netbsd*-gnu* | \
120 kopensolaris*-gnu* | \
121 storm-chaos* | os2-emx* | rtmk-nova*)
122 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;;
125 android-linux)
126 os=-linux-android
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
128 ;;
129 *)
130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131 if [ $basic_machine != $1 ]
132 then os=`echo $1 | sed 's/.*-/-/'`
133 else os=; fi
134 ;;
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 ;;
135655 esac
136656
137 ### Let's recognize common machines as not being operating systems so
138 ### that things like config.sub decstation-3100 work. We also
139 ### recognize some manufacturers as not being operating systems, so we
140 ### can provide default operating systems below.
141 case $os in
142 -sun*os*)
143 # Prevent following clause from handling this invalid input.
144 ;;
145 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
146 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
147 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151 -apple | -axis | -knuth | -cray | -microblaze*)
152 os=
153 basic_machine=$1
154 ;;
155 -bluegene*)
156 os=-cnk
157 ;;
158 -sim | -cisco | -oki | -wec | -winbond)
159 os=
160 basic_machine=$1
161 ;;
162 -scout)
163 ;;
164 -wrs)
165 os=-vxworks
166 basic_machine=$1
167 ;;
168 -chorusos*)
169 os=-chorusos
170 basic_machine=$1
171 ;;
172 -chorusrdb)
173 os=-chorusrdb
174 basic_machine=$1
175 ;;
176 -hiux*)
177 os=-hiuxwe2
178 ;;
179 -sco6)
180 os=-sco5v6
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
182 ;;
183 -sco5)
184 os=-sco3.2v5
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186 ;;
187 -sco4)
188 os=-sco3.2v4
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190 ;;
191 -sco3.2.[4-9]*)
192 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -sco3.2v[4-9]*)
196 # Don't forget version if it is 3.2v4 or newer.
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
199 -sco5v6*)
200 # Don't forget version if it is 3.2v4 or newer.
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
202 ;;
203 -sco*)
204 os=-sco3.2v2
205 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
206 ;;
207 -udk*)
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
209 ;;
210 -isc)
211 os=-isc2.2
212 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
213 ;;
214 -clix*)
215 basic_machine=clipper-intergraph
216 ;;
217 -isc*)
218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
219 ;;
220 -lynx*178)
221 os=-lynxos178
222 ;;
223 -lynx*5)
224 os=-lynxos5
225 ;;
226 -lynx*)
227 os=-lynxos
228 ;;
229 -ptx*)
230 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
231 ;;
232 -windowsnt*)
233 os=`echo $os | sed -e 's/windowsnt/winnt/'`
234 ;;
235 -psos*)
236 os=-psos
237 ;;
238 -mint | -mint[0-9]*)
239 basic_machine=m68k-atari
240 os=-mint
241 ;;
242 esac
243
244 # Decode aliases for certain CPU-COMPANY combinations.
657 # Decode 1-component or ad-hoc basic machines
245658 case $basic_machine in
246 # Recognize the basic CPU types without company name.
247 # Some are omitted here because they have special meanings below.
248 1750a | 580 \
249 | a29k \
250 | aarch64 | aarch64_be \
251 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
252 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
253 | am33_2.0 \
254 | arc | arceb \
255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256 | avr | avr32 \
257 | be32 | be64 \
258 | bfin \
259 | c4x | c8051 | clipper \
260 | d10v | d30v | dlx | dsp16xx \
261 | epiphany \
262 | fido | fr30 | frv | ft32 \
263 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
264 | hexagon \
265 | i370 | i860 | i960 | ia64 \
266 | ip2k | iq2000 \
267 | k1om \
268 | le32 | le64 \
269 | lm32 \
270 | m32c | m32r | m32rle | m68000 | m68k | m88k \
271 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
272 | mips | mipsbe | mipseb | mipsel | mipsle \
273 | mips16 \
274 | mips64 | mips64el \
275 | mips64octeon | mips64octeonel \
276 | mips64orion | mips64orionel \
277 | mips64r5900 | mips64r5900el \
278 | mips64vr | mips64vrel \
279 | mips64vr4100 | mips64vr4100el \
280 | mips64vr4300 | mips64vr4300el \
281 | mips64vr5000 | mips64vr5000el \
282 | mips64vr5900 | mips64vr5900el \
283 | mipsisa32 | mipsisa32el \
284 | mipsisa32r2 | mipsisa32r2el \
285 | mipsisa32r6 | mipsisa32r6el \
286 | mipsisa64 | mipsisa64el \
287 | mipsisa64r2 | mipsisa64r2el \
288 | mipsisa64r6 | mipsisa64r6el \
289 | mipsisa64sb1 | mipsisa64sb1el \
290 | mipsisa64sr71k | mipsisa64sr71kel \
291 | mipsr5900 | mipsr5900el \
292 | mipstx39 | mipstx39el \
293 | mn10200 | mn10300 \
294 | moxie \
295 | mt \
296 | msp430 \
297 | nds32 | nds32le | nds32be \
298 | nios | nios2 | nios2eb | nios2el \
299 | ns16k | ns32k \
300 | open8 | or1k | or1knd | or32 \
301 | pdp10 | pdp11 | pj | pjl \
302 | powerpc | powerpc64 | powerpc64le | powerpcle \
303 | pyramid \
304 | riscv32 | riscv64 \
305 | rl78 | rx \
306 | score \
307 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
308 | sh64 | sh64le \
309 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
310 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
311 | spu \
312 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
313 | ubicom32 \
314 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
315 | visium \
316 | we32k \
317 | x86 | xc16x | xstormy16 | xtensa \
318 | z8k | z80)
319 basic_machine=$basic_machine-unknown
320 ;;
321 c54x)
322 basic_machine=tic54x-unknown
323 ;;
324 c55x)
325 basic_machine=tic55x-unknown
326 ;;
327 c6x)
328 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
329927 ;;
330928 leon|leon[3-9])
331 basic_machine=sparc-$basic_machine
332 ;;
333 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
334 basic_machine=$basic_machine-unknown
335 os=-none
336 ;;
337 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
338 ;;
339 ms1)
340 basic_machine=mt-unknown
341 ;;
342
343 strongarm | thumb | xscale)
344 basic_machine=arm-unknown
345 ;;
346 xgate)
347 basic_machine=$basic_machine-unknown
348 os=-none
349 ;;
350 xscaleeb)
351 basic_machine=armeb-unknown
352 ;;
353
354 xscaleel)
355 basic_machine=armel-unknown
356 ;;
357
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 ;;
358945 # We use `pc' rather than `unknown'
359946 # because (1) that's what they normally are, and
360947 # (2) the word "unknown" tends to confuse beginning users.
361948 i*86 | x86_64)
362 basic_machine=$basic_machine-pc
363 ;;
364 # Object if more than one company name word.
365 *-*-*)
366 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
367 exit 1
368 ;;
369 # Recognize the basic CPU types with company name.
370 580-* \
371 | a29k-* \
372 | aarch64-* | aarch64_be-* \
373 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
374 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
375 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
376 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
377 | avr-* | avr32-* \
378 | be32-* | be64-* \
379 | bfin-* | bs2000-* \
380 | c[123]* | c30-* | [cjt]90-* | c4x-* \
381 | c8051-* | clipper-* | craynv-* | cydra-* \
382 | d10v-* | d30v-* | dlx-* \
383 | elxsi-* \
384 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
385 | h8300-* | h8500-* \
386 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
387 | hexagon-* \
388 | i*86-* | i860-* | i960-* | ia64-* \
389 | ip2k-* | iq2000-* \
390 | k1om-* \
391 | le32-* | le64-* \
392 | lm32-* \
393 | m32c-* | m32r-* | m32rle-* \
394 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
395 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
396 | microblaze-* | microblazeel-* \
397 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
398 | mips16-* \
399 | mips64-* | mips64el-* \
400 | mips64octeon-* | mips64octeonel-* \
401 | mips64orion-* | mips64orionel-* \
402 | mips64r5900-* | mips64r5900el-* \
403 | mips64vr-* | mips64vrel-* \
404 | mips64vr4100-* | mips64vr4100el-* \
405 | mips64vr4300-* | mips64vr4300el-* \
406 | mips64vr5000-* | mips64vr5000el-* \
407 | mips64vr5900-* | mips64vr5900el-* \
408 | mipsisa32-* | mipsisa32el-* \
409 | mipsisa32r2-* | mipsisa32r2el-* \
410 | mipsisa32r6-* | mipsisa32r6el-* \
411 | mipsisa64-* | mipsisa64el-* \
412 | mipsisa64r2-* | mipsisa64r2el-* \
413 | mipsisa64r6-* | mipsisa64r6el-* \
414 | mipsisa64sb1-* | mipsisa64sb1el-* \
415 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
416 | mipsr5900-* | mipsr5900el-* \
417 | mipstx39-* | mipstx39el-* \
418 | mmix-* \
419 | mt-* \
420 | msp430-* \
421 | nds32-* | nds32le-* | nds32be-* \
422 | nios-* | nios2-* | nios2eb-* | nios2el-* \
423 | none-* | np1-* | ns16k-* | ns32k-* \
424 | open8-* \
425 | or1k*-* \
426 | orion-* \
427 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
428 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
429 | pyramid-* \
430 | rl78-* | romp-* | rs6000-* | rx-* \
431 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
432 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
433 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
434 | sparclite-* \
435 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
436 | tahoe-* \
437 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
438 | tile*-* \
439 | tron-* \
440 | ubicom32-* \
441 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
442 | vax-* \
443 | visium-* \
444 | we32k-* \
445 | x86-* | x86_64-* | xc16x-* | xps100-* \
446 | xstormy16-* | xtensa*-* \
447 | ymp-* \
448 | z8k-* | z80-*)
449 ;;
450 # Recognize the basic CPU types without company name, with glob match.
451 xtensa*)
452 basic_machine=$basic_machine-unknown
453 ;;
454 # Recognize the various machine names and aliases which stand
455 # for a CPU type and a company and sometimes even an OS.
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
1034 amd64-*)
1035 cpu=x86_64
1036 ;;
1037 blackfin-*)
1038 cpu=bfin
1039 basic_os=linux
1040 ;;
1041 c54x-*)
1042 cpu=tic54x
1043 ;;
1044 c55x-*)
1045 cpu=tic55x
1046 ;;
1047 c6x-*)
1048 cpu=tic6x
1049 ;;
1050 e500v[12]-*)
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 ;;
1290 esac
1291 ;;
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
1301 ;;
1302 *)
1303 ;;
1304 esac
1305
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|'`
1342 ;;
1343 *)
1344 kernel=
1345 os=$basic_os
1346 ;;
1347 esac
1348
1349 # Now, normalize the OS (knowing we just have one component, it's not a kernel,
1350 # etc.)
1351 case $os in
1352 # First match some system type aliases that might get confused
1353 # with valid system types.
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
1369 ;;
1370 # es1800 is here to avoid being matched by es* (a different OS)
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]*)
1421 os=`echo "$os" | sed -e 's|mac|macos|'`
1422 ;;
1423 opened*)
1424 os=openedition
1425 ;;
1426 os400*)
1427 os=os400
1428 ;;
1429 sunos5*)
1430 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1431 ;;
1432 sunos6*)
1433 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1434 ;;
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 ;;
4561453 386bsd)
457 basic_machine=i386-unknown
458 os=-bsd
459 ;;
460 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
461 basic_machine=m68000-att
462 ;;
463 3b*)
464 basic_machine=we32k-att
465 ;;
466 a29khif)
467 basic_machine=a29k-amd
468 os=-udi
469 ;;
470 abacus)
471 basic_machine=abacus-unknown
472 ;;
473 adobe68k)
474 basic_machine=m68010-adobe
475 os=-scout
476 ;;
477 alliant | fx80)
478 basic_machine=fx80-alliant
479 ;;
480 altos | altos3068)
481 basic_machine=m68k-altos
482 ;;
483 am29k)
484 basic_machine=a29k-none
485 os=-bsd
486 ;;
487 amd64)
488 basic_machine=x86_64-pc
489 ;;
490 amd64-*)
491 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
492 ;;
493 amdahl)
494 basic_machine=580-amdahl
495 os=-sysv
496 ;;
497 amiga | amiga-*)
498 basic_machine=m68k-unknown
499 ;;
500 amigaos | amigados)
501 basic_machine=m68k-unknown
502 os=-amigaos
503 ;;
504 amigaunix | amix)
505 basic_machine=m68k-unknown
506 os=-sysv4
507 ;;
508 apollo68)
509 basic_machine=m68k-apollo
510 os=-sysv
511 ;;
512 apollo68bsd)
513 basic_machine=m68k-apollo
514 os=-bsd
515 ;;
516 aros)
517 basic_machine=i386-pc
518 os=-aros
519 ;;
520 aux)
521 basic_machine=m68k-apple
522 os=-aux
523 ;;
524 balance)
525 basic_machine=ns32k-sequent
526 os=-dynix
527 ;;
528 blackfin)
529 basic_machine=bfin-unknown
530 os=-linux
531 ;;
532 blackfin-*)
533 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
534 os=-linux
535 ;;
536 bluegene*)
537 basic_machine=powerpc-ibm
538 os=-cnk
539 ;;
540 c54x-*)
541 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
542 ;;
543 c55x-*)
544 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
545 ;;
546 c6x-*)
547 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
548 ;;
549 c90)
550 basic_machine=c90-cray
551 os=-unicos
552 ;;
553 cegcc)
554 basic_machine=arm-unknown
555 os=-cegcc
556 ;;
557 convex-c1)
558 basic_machine=c1-convex
559 os=-bsd
560 ;;
561 convex-c2)
562 basic_machine=c2-convex
563 os=-bsd
564 ;;
565 convex-c32)
566 basic_machine=c32-convex
567 os=-bsd
568 ;;
569 convex-c34)
570 basic_machine=c34-convex
571 os=-bsd
572 ;;
573 convex-c38)
574 basic_machine=c38-convex
575 os=-bsd
576 ;;
577 cray | j90)
578 basic_machine=j90-cray
579 os=-unicos
580 ;;
581 craynv)
582 basic_machine=craynv-cray
583 os=-unicosmp
584 ;;
585 cr16 | cr16-*)
586 basic_machine=cr16-unknown
587 os=-elf
588 ;;
589 crds | unos)
590 basic_machine=m68k-crds
591 ;;
592 crisv32 | crisv32-* | etraxfs*)
593 basic_machine=crisv32-axis
594 ;;
595 cris | cris-* | etrax*)
596 basic_machine=cris-axis
597 ;;
598 crx)
599 basic_machine=crx-unknown
600 os=-elf
601 ;;
602 da30 | da30-*)
603 basic_machine=m68k-da30
604 ;;
605 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
606 basic_machine=mips-dec
607 ;;
608 decsystem10* | dec10*)
609 basic_machine=pdp10-dec
610 os=-tops10
611 ;;
612 decsystem20* | dec20*)
613 basic_machine=pdp10-dec
614 os=-tops20
615 ;;
616 delta | 3300 | motorola-3300 | motorola-delta \
617 | 3300-motorola | delta-motorola)
618 basic_machine=m68k-motorola
619 ;;
620 delta88)
621 basic_machine=m88k-motorola
622 os=-sysv3
623 ;;
624 dicos)
625 basic_machine=i686-pc
626 os=-dicos
627 ;;
628 djgpp)
629 basic_machine=i586-pc
630 os=-msdosdjgpp
631 ;;
632 dpx20 | dpx20-*)
633 basic_machine=rs6000-bull
634 os=-bosx
635 ;;
636 dpx2* | dpx2*-bull)
637 basic_machine=m68k-bull
638 os=-sysv3
639 ;;
640 ebmon29k)
641 basic_machine=a29k-amd
642 os=-ebmon
643 ;;
644 elxsi)
645 basic_machine=elxsi-elxsi
646 os=-bsd
647 ;;
648 encore | umax | mmax)
649 basic_machine=ns32k-encore
650 ;;
651 es1800 | OSE68k | ose68k | ose | OSE)
652 basic_machine=m68k-ericsson
653 os=-ose
654 ;;
655 fx2800)
656 basic_machine=i860-alliant
657 ;;
658 genix)
659 basic_machine=ns32k-ns
660 ;;
661 gmicro)
662 basic_machine=tron-gmicro
663 os=-sysv
664 ;;
665 go32)
666 basic_machine=i386-pc
667 os=-go32
668 ;;
669 h3050r* | hiux*)
670 basic_machine=hppa1.1-hitachi
671 os=-hiuxwe2
672 ;;
673 h8300hms)
674 basic_machine=h8300-hitachi
675 os=-hms
676 ;;
677 h8300xray)
678 basic_machine=h8300-hitachi
679 os=-xray
680 ;;
681 h8500hms)
682 basic_machine=h8500-hitachi
683 os=-hms
684 ;;
685 harris)
686 basic_machine=m88k-harris
687 os=-sysv3
688 ;;
689 hp300-*)
690 basic_machine=m68k-hp
691 ;;
692 hp300bsd)
693 basic_machine=m68k-hp
694 os=-bsd
695 ;;
696 hp300hpux)
697 basic_machine=m68k-hp
698 os=-hpux
699 ;;
700 hp3k9[0-9][0-9] | hp9[0-9][0-9])
701 basic_machine=hppa1.0-hp
702 ;;
703 hp9k2[0-9][0-9] | hp9k31[0-9])
704 basic_machine=m68000-hp
705 ;;
706 hp9k3[2-9][0-9])
707 basic_machine=m68k-hp
708 ;;
709 hp9k6[0-9][0-9] | hp6[0-9][0-9])
710 basic_machine=hppa1.0-hp
711 ;;
712 hp9k7[0-79][0-9] | hp7[0-79][0-9])
713 basic_machine=hppa1.1-hp
714 ;;
715 hp9k78[0-9] | hp78[0-9])
716 # FIXME: really hppa2.0-hp
717 basic_machine=hppa1.1-hp
718 ;;
719 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
720 # FIXME: really hppa2.0-hp
721 basic_machine=hppa1.1-hp
722 ;;
723 hp9k8[0-9][13679] | hp8[0-9][13679])
724 basic_machine=hppa1.1-hp
725 ;;
726 hp9k8[0-9][0-9] | hp8[0-9][0-9])
727 basic_machine=hppa1.0-hp
728 ;;
729 hppa-next)
730 os=-nextstep3
731 ;;
732 hppaosf)
733 basic_machine=hppa1.1-hp
734 os=-osf
735 ;;
736 hppro)
737 basic_machine=hppa1.1-hp
738 os=-proelf
739 ;;
740 i370-ibm* | ibm*)
741 basic_machine=i370-ibm
742 ;;
743 i*86v32)
744 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
745 os=-sysv32
746 ;;
747 i*86v4*)
748 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
749 os=-sysv4
750 ;;
751 i*86v)
752 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
753 os=-sysv
754 ;;
755 i*86sol2)
756 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
757 os=-solaris2
758 ;;
759 i386mach)
760 basic_machine=i386-mach
761 os=-mach
762 ;;
763 i386-vsta | vsta)
764 basic_machine=i386-unknown
765 os=-vsta
766 ;;
767 iris | iris4d)
768 basic_machine=mips-sgi
769 case $os in
770 -irix*)
1454 os=bsd
1455 ;;
1456 ctix* | uts*)
1457 os=sysv
1458 ;;
1459 nova*)
1460 os=rtmk-nova
1461 ;;
1462 ns2)
1463 os=nextstep2
1464 ;;
1465 # Preserve the version number of sinix5.
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*)
1500 # Until real need of OS specific support for
1501 # particular features comes up, bare metal
1502 # configurations are quite functional.
1503 case $cpu in
1504 arm*)
1505 os=eabi
7711506 ;;
7721507 *)
773 os=-irix4
1508 os=elf
7741509 ;;
7751510 esac
7761511 ;;
777 isi68 | isi)
778 basic_machine=m68k-isi
779 os=-sysv
780 ;;
781 leon-*|leon[3-9]-*)
782 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
783 ;;
784 m68knommu)
785 basic_machine=m68k-unknown
786 os=-linux
787 ;;
788 m68knommu-*)
789 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
790 os=-linux
791 ;;
792 m88k-omron*)
793 basic_machine=m88k-omron
794 ;;
795 magnum | m3230)
796 basic_machine=mips-mips
797 os=-sysv
798 ;;
799 merlin)
800 basic_machine=ns32k-utek
801 os=-sysv
802 ;;
803 microblaze*)
804 basic_machine=microblaze-xilinx
805 ;;
806 mingw64)
807 basic_machine=x86_64-pc
808 os=-mingw64
809 ;;
810 mingw32)
811 basic_machine=i686-pc
812 os=-mingw32
813 ;;
814 mingw32ce)
815 basic_machine=arm-unknown
816 os=-mingw32ce
817 ;;
818 miniframe)
819 basic_machine=m68000-convergent
820 ;;
821 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
822 basic_machine=m68k-atari
823 os=-mint
824 ;;
825 mips3*-*)
826 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
827 ;;
828 mips3*)
829 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
830 ;;
831 monitor)
832 basic_machine=m68k-rom68k
833 os=-coff
834 ;;
835 morphos)
836 basic_machine=powerpc-unknown
837 os=-morphos
838 ;;
839 moxiebox)
840 basic_machine=moxie-unknown
841 os=-moxiebox
842 ;;
843 msdos)
844 basic_machine=i386-pc
845 os=-msdos
846 ;;
847 ms1-*)
848 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
849 ;;
850 msys)
851 basic_machine=i686-pc
852 os=-msys
853 ;;
854 mvs)
855 basic_machine=i370-ibm
856 os=-mvs
857 ;;
858 nacl)
859 basic_machine=le32-unknown
860 os=-nacl
861 ;;
862 ncr3000)
863 basic_machine=i486-ncr
864 os=-sysv4
865 ;;
866 netbsd386)
867 basic_machine=i386-unknown
868 os=-netbsd
869 ;;
870 netwinder)
871 basic_machine=armv4l-rebel
872 os=-linux
873 ;;
874 news | news700 | news800 | news900)
875 basic_machine=m68k-sony
876 os=-newsos
877 ;;
878 news1000)
879 basic_machine=m68030-sony
880 os=-newsos
881 ;;
882 news-3600 | risc-news)
883 basic_machine=mips-sony
884 os=-newsos
885 ;;
886 necv70)
887 basic_machine=v70-nec
888 os=-sysv
889 ;;
890 next | m*-next )
891 basic_machine=m68k-next
892 case $os in
893 -nextstep* )
894 ;;
895 -ns2*)
896 os=-nextstep2
897 ;;
898 *)
899 os=-nextstep3
900 ;;
901 esac
902 ;;
903 nh3000)
904 basic_machine=m68k-harris
905 os=-cxux
906 ;;
907 nh[45]000)
908 basic_machine=m88k-harris
909 os=-cxux
910 ;;
911 nindy960)
912 basic_machine=i960-intel
913 os=-nindy
914 ;;
915 mon960)
916 basic_machine=i960-intel
917 os=-mon960
918 ;;
919 nonstopux)
920 basic_machine=mips-compaq
921 os=-nonstopux
922 ;;
923 np1)
924 basic_machine=np1-gould
925 ;;
926 neo-tandem)
927 basic_machine=neo-tandem
928 ;;
929 nse-tandem)
930 basic_machine=nse-tandem
931 ;;
932 nsr-tandem)
933 basic_machine=nsr-tandem
934 ;;
935 op50n-* | op60c-*)
936 basic_machine=hppa1.1-oki
937 os=-proelf
938 ;;
939 openrisc | openrisc-*)
940 basic_machine=or32-unknown
941 ;;
942 os400)
943 basic_machine=powerpc-ibm
944 os=-os400
945 ;;
946 OSE68000 | ose68000)
947 basic_machine=m68000-ericsson
948 os=-ose
949 ;;
950 os68k)
951 basic_machine=m68k-none
952 os=-os68k
953 ;;
954 pa-hitachi)
955 basic_machine=hppa1.1-hitachi
956 os=-hiuxwe2
957 ;;
958 paragon)
959 basic_machine=i860-intel
960 os=-osf
961 ;;
962 parisc)
963 basic_machine=hppa-unknown
964 os=-linux
965 ;;
966 parisc-*)
967 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
968 os=-linux
969 ;;
970 pbd)
971 basic_machine=sparc-tti
972 ;;
973 pbb)
974 basic_machine=m68k-tti
975 ;;
976 pc532 | pc532-*)
977 basic_machine=ns32k-pc532
978 ;;
979 pc98)
980 basic_machine=i386-pc
981 ;;
982 pc98-*)
983 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
984 ;;
985 pentium | p5 | k5 | k6 | nexgen | viac3)
986 basic_machine=i586-pc
987 ;;
988 pentiumpro | p6 | 6x86 | athlon | athlon_*)
989 basic_machine=i686-pc
990 ;;
991 pentiumii | pentium2 | pentiumiii | pentium3)
992 basic_machine=i686-pc
993 ;;
994 pentium4)
995 basic_machine=i786-pc
996 ;;
997 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
998 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
999 ;;
1000 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1001 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1002 ;;
1003 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1004 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1005 ;;
1006 pentium4-*)
1007 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
1008 ;;
1009 pn)
1010 basic_machine=pn-gould
1011 ;;
1012 power) basic_machine=power-ibm
1013 ;;
1014 ppc | ppcbe) basic_machine=powerpc-unknown
1015 ;;
1016 ppc-* | ppcbe-*)
1017 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1018 ;;
1019 ppcle | powerpclittle | ppc-le | powerpc-little)
1020 basic_machine=powerpcle-unknown
1021 ;;
1022 ppcle-* | powerpclittle-*)
1023 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1024 ;;
1025 ppc64) basic_machine=powerpc64-unknown
1026 ;;
1027 ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1028 ;;
1029 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
1030 basic_machine=powerpc64le-unknown
1031 ;;
1032 ppc64le-* | powerpc64little-*)
1033 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1034 ;;
1035 ps2)
1036 basic_machine=i386-ibm
1037 ;;
1038 pw32)
1039 basic_machine=i586-unknown
1040 os=-pw32
1041 ;;
1042 rdos | rdos64)
1043 basic_machine=x86_64-pc
1044 os=-rdos
1045 ;;
1046 rdos32)
1047 basic_machine=i386-pc
1048 os=-rdos
1049 ;;
1050 rom68k)
1051 basic_machine=m68k-rom68k
1052 os=-coff
1053 ;;
1054 rm[46]00)
1055 basic_machine=mips-siemens
1056 ;;
1057 rtpc | rtpc-*)
1058 basic_machine=romp-ibm
1059 ;;
1060 s390 | s390-*)
1061 basic_machine=s390-ibm
1062 ;;
1063 s390x | s390x-*)
1064 basic_machine=s390x-ibm
1065 ;;
1066 sa29200)
1067 basic_machine=a29k-amd
1068 os=-udi
1069 ;;
1070 sb1)
1071 basic_machine=mipsisa64sb1-unknown
1072 ;;
1073 sb1el)
1074 basic_machine=mipsisa64sb1el-unknown
1075 ;;
1076 sde)
1077 basic_machine=mipsisa32-sde
1078 os=-elf
1079 ;;
1080 sei)
1081 basic_machine=mips-sei
1082 os=-seiux
1083 ;;
1084 sequent)
1085 basic_machine=i386-sequent
1086 ;;
1087 sh)
1088 basic_machine=sh-hitachi
1089 os=-hms
1090 ;;
1091 sh5el)
1092 basic_machine=sh5le-unknown
1093 ;;
1094 sh64)
1095 basic_machine=sh64-unknown
1096 ;;
1097 sparclite-wrs | simso-wrs)
1098 basic_machine=sparclite-wrs
1099 os=-vxworks
1100 ;;
1101 sps7)
1102 basic_machine=m68k-bull
1103 os=-sysv2
1104 ;;
1105 spur)
1106 basic_machine=spur-unknown
1107 ;;
1108 st2000)
1109 basic_machine=m68k-tandem
1110 ;;
1111 stratus)
1112 basic_machine=i860-stratus
1113 os=-sysv4
1114 ;;
1115 strongarm-* | thumb-*)
1116 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1117 ;;
1118 sun2)
1119 basic_machine=m68000-sun
1120 ;;
1121 sun2os3)
1122 basic_machine=m68000-sun
1123 os=-sunos3
1124 ;;
1125 sun2os4)
1126 basic_machine=m68000-sun
1127 os=-sunos4
1128 ;;
1129 sun3os3)
1130 basic_machine=m68k-sun
1131 os=-sunos3
1132 ;;
1133 sun3os4)
1134 basic_machine=m68k-sun
1135 os=-sunos4
1136 ;;
1137 sun4os3)
1138 basic_machine=sparc-sun
1139 os=-sunos3
1140 ;;
1141 sun4os4)
1142 basic_machine=sparc-sun
1143 os=-sunos4
1144 ;;
1145 sun4sol2)
1146 basic_machine=sparc-sun
1147 os=-solaris2
1148 ;;
1149 sun3 | sun3-*)
1150 basic_machine=m68k-sun
1151 ;;
1152 sun4)
1153 basic_machine=sparc-sun
1154 ;;
1155 sun386 | sun386i | roadrunner)
1156 basic_machine=i386-sun
1157 ;;
1158 sv1)
1159 basic_machine=sv1-cray
1160 os=-unicos
1161 ;;
1162 symmetry)
1163 basic_machine=i386-sequent
1164 os=-dynix
1165 ;;
1166 t3e)
1167 basic_machine=alphaev5-cray
1168 os=-unicos
1169 ;;
1170 t90)
1171 basic_machine=t90-cray
1172 os=-unicos
1173 ;;
1174 tile*)
1175 basic_machine=$basic_machine-unknown
1176 os=-linux-gnu
1177 ;;
1178 tx39)
1179 basic_machine=mipstx39-unknown
1180 ;;
1181 tx39el)
1182 basic_machine=mipstx39el-unknown
1183 ;;
1184 toad1)
1185 basic_machine=pdp10-xkl
1186 os=-tops20
1187 ;;
1188 tower | tower-32)
1189 basic_machine=m68k-ncr
1190 ;;
1191 tpf)
1192 basic_machine=s390x-ibm
1193 os=-tpf
1194 ;;
1195 udi29k)
1196 basic_machine=a29k-amd
1197 os=-udi
1198 ;;
1199 ultra3)
1200 basic_machine=a29k-nyu
1201 os=-sym1
1202 ;;
1203 v810 | necv810)
1204 basic_machine=v810-nec
1205 os=-none
1206 ;;
1207 vaxv)
1208 basic_machine=vax-dec
1209 os=-sysv
1210 ;;
1211 vms)
1212 basic_machine=vax-dec
1213 os=-vms
1214 ;;
1215 vpp*|vx|vx-*)
1216 basic_machine=f301-fujitsu
1217 ;;
1218 vxworks960)
1219 basic_machine=i960-wrs
1220 os=-vxworks
1221 ;;
1222 vxworks68)
1223 basic_machine=m68k-wrs
1224 os=-vxworks
1225 ;;
1226 vxworks29k)
1227 basic_machine=a29k-wrs
1228 os=-vxworks
1229 ;;
1230 w65*)
1231 basic_machine=w65-wdc
1232 os=-none
1233 ;;
1234 w89k-*)
1235 basic_machine=hppa1.1-winbond
1236 os=-proelf
1237 ;;
1238 xbox)
1239 basic_machine=i686-pc
1240 os=-mingw32
1241 ;;
1242 xps | xps100)
1243 basic_machine=xps100-honeywell
1244 ;;
1245 xscale-* | xscalee[bl]-*)
1246 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1247 ;;
1248 ymp)
1249 basic_machine=ymp-cray
1250 os=-unicos
1251 ;;
1252 z8k-*-coff)
1253 basic_machine=z8k-unknown
1254 os=-sim
1255 ;;
1256 z80-*-coff)
1257 basic_machine=z80-unknown
1258 os=-sim
1259 ;;
1260 none)
1261 basic_machine=none-none
1262 os=-none
1263 ;;
1264
1265 # Here we handle the default manufacturer of certain CPU types. It is in
1266 # some cases the only manufacturer, in others, it is the most popular.
1267 w89k)
1268 basic_machine=hppa1.1-winbond
1269 ;;
1270 op50n)
1271 basic_machine=hppa1.1-oki
1272 ;;
1273 op60c)
1274 basic_machine=hppa1.1-oki
1275 ;;
1276 romp)
1277 basic_machine=romp-ibm
1278 ;;
1279 mmix)
1280 basic_machine=mmix-knuth
1281 ;;
1282 rs6000)
1283 basic_machine=rs6000-ibm
1284 ;;
1285 vax)
1286 basic_machine=vax-dec
1287 ;;
1288 pdp10)
1289 # there are many clones, so DEC is not a safe bet
1290 basic_machine=pdp10-unknown
1291 ;;
1292 pdp11)
1293 basic_machine=pdp11-dec
1294 ;;
1295 we32k)
1296 basic_machine=we32k-att
1297 ;;
1298 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1299 basic_machine=sh-unknown
1300 ;;
1301 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1302 basic_machine=sparc-sun
1303 ;;
1304 cydra)
1305 basic_machine=cydra-cydrome
1306 ;;
1307 orion)
1308 basic_machine=orion-highlevel
1309 ;;
1310 orion105)
1311 basic_machine=clipper-highlevel
1312 ;;
1313 mac | mpw | mac-mpw)
1314 basic_machine=m68k-apple
1315 ;;
1316 pmac | pmac-mpw)
1317 basic_machine=powerpc-apple
1318 ;;
1319 *-unknown)
1320 # Make sure to match an already-canonicalized machine name.
1321 ;;
13221512 *)
1323 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1324 exit 1
1513 # No normalization, but not necessarily accepted, that comes below.
13251514 ;;
13261515 esac
13271516
1328 # Here we canonicalize certain aliases for manufacturers.
1329 case $basic_machine in
1330 *-digital*)
1331 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1332 ;;
1333 *-commodore*)
1334 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1335 ;;
1336 *)
1337 ;;
1338 esac
1339
1340 # Decode manufacturer-specific aliases for certain operating systems.
1341
1342 if [ x"$os" != x"" ]
1343 then
1344 case $os in
1345 # First match some system type aliases
1346 # that might get confused with valid system types.
1347 # -solaris* is a basic system type, with this one exception.
1348 -auroraux)
1349 os=-auroraux
1350 ;;
1351 -solaris1 | -solaris1.*)
1352 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1353 ;;
1354 -solaris)
1355 os=-solaris2
1356 ;;
1357 -svr4*)
1358 os=-sysv4
1359 ;;
1360 -unixware*)
1361 os=-sysv4.2uw
1362 ;;
1363 -gnu/linux*)
1364 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1365 ;;
1366 # First accept the basic system types.
1367 # The portable systems comes first.
1368 # Each alternative MUST END IN A *, to match a version number.
1369 # -sysv* is not here because it comes later, after sysvr4.
1370 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1371 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1372 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1373 | -sym* | -kopensolaris* | -plan9* \
1374 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1375 | -aos* | -aros* \
1376 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1377 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1378 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1379 | -bitrig* | -openbsd* | -solidbsd* \
1380 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1381 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1382 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1383 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1384 | -chorusos* | -chorusrdb* | -cegcc* \
1385 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1386 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1387 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1388 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1389 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1390 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1391 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1392 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1393 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1394 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1395 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
1396 # Remember, each alternative MUST END IN *, to match a version number.
1397 ;;
1398 -qnx*)
1399 case $basic_machine in
1400 x86-* | i*86-*)
1401 ;;
1402 *)
1403 os=-nto$os
1404 ;;
1405 esac
1406 ;;
1407 -nto-qnx*)
1408 ;;
1409 -nto*)
1410 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1411 ;;
1412 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1413 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1414 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1415 ;;
1416 -mac*)
1417 os=`echo $os | sed -e 's|mac|macos|'`
1418 ;;
1419 -linux-dietlibc)
1420 os=-linux-dietlibc
1421 ;;
1422 -linux*)
1423 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1424 ;;
1425 -sunos5*)
1426 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1427 ;;
1428 -sunos6*)
1429 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1430 ;;
1431 -opened*)
1432 os=-openedition
1433 ;;
1434 -os400*)
1435 os=-os400
1436 ;;
1437 -wince*)
1438 os=-wince
1439 ;;
1440 -osfrose*)
1441 os=-osfrose
1442 ;;
1443 -osf*)
1444 os=-osf
1445 ;;
1446 -utek*)
1447 os=-bsd
1448 ;;
1449 -dynix*)
1450 os=-bsd
1451 ;;
1452 -acis*)
1453 os=-aos
1454 ;;
1455 -atheos*)
1456 os=-atheos
1457 ;;
1458 -syllable*)
1459 os=-syllable
1460 ;;
1461 -386bsd)
1462 os=-bsd
1463 ;;
1464 -ctix* | -uts*)
1465 os=-sysv
1466 ;;
1467 -nova*)
1468 os=-rtmk-nova
1469 ;;
1470 -ns2 )
1471 os=-nextstep2
1472 ;;
1473 -nsk*)
1474 os=-nsk
1475 ;;
1476 # Preserve the version number of sinix5.
1477 -sinix5.*)
1478 os=`echo $os | sed -e 's|sinix|sysv|'`
1479 ;;
1480 -sinix*)
1481 os=-sysv4
1482 ;;
1483 -tpf*)
1484 os=-tpf
1485 ;;
1486 -triton*)
1487 os=-sysv3
1488 ;;
1489 -oss*)
1490 os=-sysv3
1491 ;;
1492 -svr4)
1493 os=-sysv4
1494 ;;
1495 -svr3)
1496 os=-sysv3
1497 ;;
1498 -sysvr4)
1499 os=-sysv4
1500 ;;
1501 # This must come after -sysvr4.
1502 -sysv*)
1503 ;;
1504 -ose*)
1505 os=-ose
1506 ;;
1507 -es1800*)
1508 os=-ose
1509 ;;
1510 -xenix)
1511 os=-xenix
1512 ;;
1513 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1514 os=-mint
1515 ;;
1516 -aros*)
1517 os=-aros
1518 ;;
1519 -zvmoe)
1520 os=-zvmoe
1521 ;;
1522 -dicos*)
1523 os=-dicos
1524 ;;
1525 -nacl*)
1526 ;;
1527 -none)
1528 ;;
1529 *)
1530 # Get rid of the `-' at the beginning of $os.
1531 os=`echo $os | sed 's/[^-]*-//'`
1532 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1533 exit 1
1534 ;;
1535 esac
15361517 else
15371518
15381519 # Here we handle the default operating systems that come with various machines.
15451526 # will signal an error saying that MANUFACTURER isn't an operating
15461527 # system, and we'll never get to this point.
15471528
1548 case $basic_machine in
1529 kernel=
1530 case $cpu-$vendor in
15491531 score-*)
1550 os=-elf
1532 os=elf
15511533 ;;
15521534 spu-*)
1553 os=-elf
1535 os=elf
15541536 ;;
15551537 *-acorn)
1556 os=-riscix1.2
1538 os=riscix1.2
15571539 ;;
15581540 arm*-rebel)
1559 os=-linux
1541 kernel=linux
1542 os=gnu
15601543 ;;
15611544 arm*-semi)
1562 os=-aout
1545 os=aout
15631546 ;;
15641547 c4x-* | tic4x-*)
1565 os=-coff
1548 os=coff
15661549 ;;
15671550 c8051-*)
1568 os=-elf
1551 os=elf
1552 ;;
1553 clipper-intergraph)
1554 os=clix
15691555 ;;
15701556 hexagon-*)
1571 os=-elf
1557 os=elf
15721558 ;;
15731559 tic54x-*)
1574 os=-coff
1560 os=coff
15751561 ;;
15761562 tic55x-*)
1577 os=-coff
1563 os=coff
15781564 ;;
15791565 tic6x-*)
1580 os=-coff
1566 os=coff
15811567 ;;
15821568 # This must come before the *-dec entry.
15831569 pdp10-*)
1584 os=-tops20
1570 os=tops20
15851571 ;;
15861572 pdp11-*)
1587 os=-none
1573 os=none
15881574 ;;
15891575 *-dec | vax-*)
1590 os=-ultrix4.2
1576 os=ultrix4.2
15911577 ;;
15921578 m68*-apollo)
1593 os=-domain
1579 os=domain
15941580 ;;
15951581 i386-sun)
1596 os=-sunos4.0.2
1582 os=sunos4.0.2
15971583 ;;
15981584 m68000-sun)
1599 os=-sunos3
1585 os=sunos3
16001586 ;;
16011587 m68*-cisco)
1602 os=-aout
1588 os=aout
16031589 ;;
16041590 mep-*)
1605 os=-elf
1591 os=elf
16061592 ;;
16071593 mips*-cisco)
1608 os=-elf
1594 os=elf
16091595 ;;
16101596 mips*-*)
1611 os=-elf
1597 os=elf
16121598 ;;
16131599 or32-*)
1614 os=-coff
1600 os=coff
16151601 ;;
16161602 *-tti) # must be before sparc entry or we get the wrong os.
1617 os=-sysv3
1603 os=sysv3
16181604 ;;
16191605 sparc-* | *-sun)
1620 os=-sunos4.1.1
1606 os=sunos4.1.1
1607 ;;
1608 pru-*)
1609 os=elf
16211610 ;;
16221611 *-be)
1623 os=-beos
1624 ;;
1625 *-haiku)
1626 os=-haiku
1612 os=beos
16271613 ;;
16281614 *-ibm)
1629 os=-aix
1615 os=aix
16301616 ;;
16311617 *-knuth)
1632 os=-mmixware
1618 os=mmixware
16331619 ;;
16341620 *-wec)
1635 os=-proelf
1621 os=proelf
16361622 ;;
16371623 *-winbond)
1638 os=-proelf
1624 os=proelf
16391625 ;;
16401626 *-oki)
1641 os=-proelf
1627 os=proelf
16421628 ;;
16431629 *-hp)
1644 os=-hpux
1630 os=hpux
16451631 ;;
16461632 *-hitachi)
1647 os=-hiux
1633 os=hiux
16481634 ;;
16491635 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1650 os=-sysv
1636 os=sysv
16511637 ;;
16521638 *-cbm)
1653 os=-amigaos
1639 os=amigaos
16541640 ;;
16551641 *-dg)
1656 os=-dgux
1642 os=dgux
16571643 ;;
16581644 *-dolphin)
1659 os=-sysv3
1645 os=sysv3
16601646 ;;
16611647 m68k-ccur)
1662 os=-rtu
1648 os=rtu
16631649 ;;
16641650 m88k-omron*)
1665 os=-luna
1666 ;;
1667 *-next )
1668 os=-nextstep
1651 os=luna
1652 ;;
1653 *-next)
1654 os=nextstep
16691655 ;;
16701656 *-sequent)
1671 os=-ptx
1657 os=ptx
16721658 ;;
16731659 *-crds)
1674 os=-unos
1660 os=unos
16751661 ;;
16761662 *-ns)
1677 os=-genix
1663 os=genix
16781664 ;;
16791665 i370-*)
1680 os=-mvs
1681 ;;
1682 *-next)
1683 os=-nextstep3
1666 os=mvs
16841667 ;;
16851668 *-gould)
1686 os=-sysv
1669 os=sysv
16871670 ;;
16881671 *-highlevel)
1689 os=-bsd
1672 os=bsd
16901673 ;;
16911674 *-encore)
1692 os=-bsd
1675 os=bsd
16931676 ;;
16941677 *-sgi)
1695 os=-irix
1678 os=irix
16961679 ;;
16971680 *-siemens)
1698 os=-sysv4
1681 os=sysv4
16991682 ;;
17001683 *-masscomp)
1701 os=-rtu
1684 os=rtu
17021685 ;;
17031686 f30[01]-fujitsu | f700-fujitsu)
1704 os=-uxpv
1687 os=uxpv
17051688 ;;
17061689 *-rom68k)
1707 os=-coff
1690 os=coff
17081691 ;;
17091692 *-*bug)
1710 os=-coff
1693 os=coff
17111694 ;;
17121695 *-apple)
1713 os=-macos
1696 os=macos
17141697 ;;
17151698 *-atari*)
1716 os=-mint
1699 os=mint
1700 ;;
1701 *-wrs)
1702 os=vxworks
17171703 ;;
17181704 *)
1719 os=-none
1705 os=none
17201706 ;;
17211707 esac
1708
17221709 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
17231802
17241803 # Here we handle the case where we know the os, and the CPU type, but not the
17251804 # manufacturer. We pick the logical manufacturer.
1726 vendor=unknown
1727 case $basic_machine in
1728 *-unknown)
1729 case $os in
1730 -riscix*)
1805 case $vendor in
1806 unknown)
1807 case $cpu-$os in
1808 *-riscix*)
17311809 vendor=acorn
17321810 ;;
1733 -sunos*)
1811 *-sunos*)
17341812 vendor=sun
17351813 ;;
1736 -cnk*|-aix*)
1814 *-cnk* | *-aix*)
17371815 vendor=ibm
17381816 ;;
1739 -beos*)
1817 *-beos*)
17401818 vendor=be
17411819 ;;
1742 -hpux*)
1820 *-hpux*)
17431821 vendor=hp
17441822 ;;
1745 -mpeix*)
1823 *-mpeix*)
17461824 vendor=hp
17471825 ;;
1748 -hiux*)
1826 *-hiux*)
17491827 vendor=hitachi
17501828 ;;
1751 -unos*)
1829 *-unos*)
17521830 vendor=crds
17531831 ;;
1754 -dgux*)
1832 *-dgux*)
17551833 vendor=dg
17561834 ;;
1757 -luna*)
1835 *-luna*)
17581836 vendor=omron
17591837 ;;
1760 -genix*)
1838 *-genix*)
17611839 vendor=ns
17621840 ;;
1763 -mvs* | -opened*)
1841 *-clix*)
1842 vendor=intergraph
1843 ;;
1844 *-mvs* | *-opened*)
17641845 vendor=ibm
17651846 ;;
1766 -os400*)
1847 *-os400*)
17671848 vendor=ibm
17681849 ;;
1769 -ptx*)
1850 s390-* | s390x-*)
1851 vendor=ibm
1852 ;;
1853 *-ptx*)
17701854 vendor=sequent
17711855 ;;
1772 -tpf*)
1856 *-tpf*)
17731857 vendor=ibm
17741858 ;;
1775 -vxsim* | -vxworks* | -windiss*)
1859 *-vxsim* | *-vxworks* | *-windiss*)
17761860 vendor=wrs
17771861 ;;
1778 -aux*)
1862 *-aux*)
17791863 vendor=apple
17801864 ;;
1781 -hms*)
1865 *-hms*)
17821866 vendor=hitachi
17831867 ;;
1784 -mpw* | -macos*)
1868 *-mpw* | *-macos*)
17851869 vendor=apple
17861870 ;;
1787 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1871 *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
17881872 vendor=atari
17891873 ;;
1790 -vos*)
1874 *-vos*)
17911875 vendor=stratus
17921876 ;;
17931877 esac
1794 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
17951878 ;;
17961879 esac
17971880
1798 echo $basic_machine$os
1881 echo "$cpu-$vendor-${kernel:+$kernel-}$os"
17991882 exit
18001883
18011884 # Local variables:
1802 # eval: (add-hook 'write-file-hooks 'time-stamp)
1885 # eval: (add-hook 'before-save-hook 'time-stamp)
18031886 # time-stamp-start: "timestamp='"
18041887 # time-stamp-format: "%:y-%02m-%02d"
18051888 # time-stamp-end: "'"
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
1515 # GNU General Public License for more details.
1616
1717 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
2020 # As a special exception to the GNU General Public License, if you
2121 # distribute this file as part of a program that contains a
782782 # Local Variables:
783783 # mode: shell-script
784784 # sh-indentation: 2
785 # eval: (add-hook 'write-file-hooks 'time-stamp)
785 # eval: (add-hook 'before-save-hook 'time-stamp)
786786 # time-stamp-start: "scriptversion="
787787 # time-stamp-format: "%:y-%02m-%02d.%02H"
788 # time-stamp-time-zone: "UTC"
788 # time-stamp-time-zone: "UTC0"
789789 # time-stamp-end: "; # UTC"
790790 # End:
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2013-12-25.23; # UTC
3 scriptversion=2020-11-14.01; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
6868 # Desired mode of installed file.
6969 mode=0755
7070
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=
7176 chgrpcmd=
7277 chmodcmd=$chmodprog
7378 chowncmd=
98103 --version display version info and exit.
99104
100105 -c (ignored)
101 -C install only if different (preserve the last data modification time)
106 -C install only if different (preserve data modification time)
102107 -d create directories instead of installing files.
103108 -g GROUP $chgrpprog installed files to GROUP.
104109 -m MODE $chmodprog installed files to MODE.
105110 -o USER $chownprog installed files to USER.
111 -p pass -p to $cpprog.
106112 -s $stripprog installed files.
113 -S SUFFIX attempt to back up existing files, with suffix SUFFIX.
107114 -t DIRECTORY install into DIRECTORY.
108115 -T report an error if DSTFILE is a directory.
109116
110117 Environment variables override the default commands:
111118 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
112119 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/
113128 "
114129
115130 while test $# -ne 0; do
136151 -o) chowncmd="$chownprog $2"
137152 shift;;
138153
154 -p) cpprog="$cpprog -p";;
155
139156 -s) stripcmd=$stripprog;;
157
158 -S) backupsuffix="$2"
159 shift;;
140160
141161 -t)
142162 is_target_a_directory=always
254274 dstdir=$dst
255275 test -d "$dstdir"
256276 dstdir_status=$?
277 # Don't chown directories that already exist.
278 if test $dstdir_status = 0; then
279 chowncmd=""
280 fi
257281 else
258282
259283 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
270294 fi
271295 dst=$dst_arg
272296
273 # If destination is a directory, append the input filename; won't work
274 # if double slashes aren't ignored.
297 # If destination is a directory, append the input filename.
275298 if test -d "$dst"; then
276299 if test "$is_target_a_directory" = never; then
277300 echo "$0: $dst_arg: Is a directory" >&2
278301 exit 1
279302 fi
280303 dstdir=$dst
281 dst=$dstdir/`basename "$src"`
304 dstbase=`basename "$src"`
305 case $dst in
306 */) dst=$dst$dstbase;;
307 *) dst=$dst/$dstbase;;
308 esac
282309 dstdir_status=0
283310 else
284311 dstdir=`dirname "$dst"`
287314 fi
288315 fi
289316
317 case $dstdir in
318 */) dstdirslash=$dstdir;;
319 *) dstdirslash=$dstdir/;;
320 esac
321
290322 obsolete_mkdir_used=false
291323
292324 if test $dstdir_status != 0; then
293325 case $posix_mkdir in
294326 '')
295 # Create intermediate dirs using mode 755 as modified by the umask.
296 # This is like FreeBSD 'install' as of 1997-10-28.
297 umask=`umask`
298 case $stripcmd.$umask in
299 # Optimize common cases.
300 *[2367][2367]) mkdir_umask=$umask;;
301 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
302
303 *[0-7])
304 mkdir_umask=`expr $umask + 22 \
305 - $umask % 100 % 40 + $umask % 20 \
306 - $umask % 10 % 4 + $umask % 2
307 `;;
308 *) mkdir_umask=$umask,go-w;;
309 esac
310
311327 # With -d, create the new directory with the user-specified mode.
312328 # Otherwise, rely on $mkdir_umask.
313329 if test -n "$dir_arg"; then
317333 fi
318334
319335 posix_mkdir=false
320 case $umask in
321 *[123567][0-7][0-7])
322 # POSIX mkdir -p sets u+wx bits regardless of umask, which
323 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
324 ;;
325 *)
326 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
327 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
328
329 if (umask $mkdir_umask &&
330 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
331 then
332 if test -z "$dir_arg" || {
333 # Check for POSIX incompatibilities with -m.
334 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
335 # other-writable bit of parent directory when it shouldn't.
336 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
337 ls_ld_tmpdir=`ls -ld "$tmpdir"`
338 case $ls_ld_tmpdir in
339 d????-?r-*) different_mode=700;;
340 d????-?--*) different_mode=755;;
341 *) false;;
342 esac &&
343 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
344 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
345 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
346 }
347 }
348 then posix_mkdir=:
349 fi
350 rmdir "$tmpdir/d" "$tmpdir"
351 else
352 # Remove any dirs left behind by ancient mkdir implementations.
353 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
354 fi
355 trap '' 0;;
356 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;;
357379 esac
358380
359381 if
364386 then :
365387 else
366388
367 # The umask is ridiculous, or mkdir does not conform to POSIX,
389 # mkdir does not conform to POSIX,
368390 # or it failed possibly due to a race condition. Create the
369391 # directory the slow way, step by step, checking for races as we go.
370392
393415 prefixes=
394416 else
395417 if $posix_mkdir; then
396 (umask=$mkdir_umask &&
418 (umask $mkdir_umask &&
397419 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
398420 # Don't fail if two instances are running concurrently.
399421 test -d "$prefix" || exit 1
426448 else
427449
428450 # Make a couple of temp file names in the proper directory.
429 dsttmp=$dstdir/_inst.$$_
430 rmtmp=$dstdir/_rm.$$_
451 dsttmp=${dstdirslash}_inst.$$_
452 rmtmp=${dstdirslash}_rm.$$_
431453
432454 # Trap to clean up those temp files at exit.
433455 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
434456
435457 # Copy the file name to the temp name.
436 (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") &&
437470
438471 # and set any options; do chmod last to preserve setuid bits.
439472 #
459492 then
460493 rm -f "$dsttmp"
461494 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
462502 # Rename the file to the real destination.
463503 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
464504
473513 # file should still install successfully.
474514 {
475515 test ! -f "$dst" ||
476 $doit $rmcmd -f "$dst" 2>/dev/null ||
516 $doit $rmcmd "$dst" 2>/dev/null ||
477517 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
478 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
518 { $doit $rmcmd "$rmtmp" 2>/dev/null; :; }
479519 } ||
480520 { echo "$0: cannot unlink or rename $dst" >&2
481521 (exit 1); exit 1
492532 done
493533
494534 # Local variables:
495 # eval: (add-hook 'write-file-hooks 'time-stamp)
535 # eval: (add-hook 'before-save-hook 'time-stamp)
496536 # time-stamp-start: "scriptversion="
497537 # time-stamp-format: "%:y-%02m-%02d.%02H"
498 # time-stamp-time-zone: "UTC"
538 # time-stamp-time-zone: "UTC0"
499539 # time-stamp-end: "; # UTC"
500540 # End:
0 #! /bin/sh
0 #! /usr/bin/env sh
11 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
2 ## by inline-source v2014-01-03.01
3
4 # libtool (GNU libtool) 2.4.6
2 ## by inline-source v2019-02-19.15
3
4 # libtool (GNU libtool) 2.4.7
55 # Provide generalized library-building support services.
66 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
77
8 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
8 # Copyright (C) 1996-2019, 2021-2022 Free Software Foundation, Inc.
99 # This is free software; see the source for copying conditions. There is NO
1010 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1111
3030
3131 PROGRAM=libtool
3232 PACKAGE=libtool
33 VERSION=2.4.6
34 package_revision=2.4.6
33 VERSION="2.4.7 Debian-2.4.7-4"
34 package_revision=2.4.7
3535
3636
3737 ## ------ ##
6363 # libraries, which are installed to $pkgauxdir.
6464
6565 # Set a version string for this script.
66 scriptversion=2015-01-20.17; # UTC
66 scriptversion=2019-02-19.15; # UTC
6767
6868 # General shell script boiler plate, and helper functions.
6969 # Written by Gary V. Vaughan, 2004
7070
71 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
72 # This is free software; see the source for copying conditions. There is NO
73 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
74
75 # This program is free software; you can redistribute it and/or modify
76 # it under the terms of the GNU General Public License as published by
77 # the Free Software Foundation; either version 3 of the License, or
78 # (at your option) any later version.
79
80 # As a special exception to the GNU General Public License, if you distribute
81 # this file as part of a program or library that is built using GNU Libtool,
82 # you may include this file under the same distribution terms that you use
83 # for the rest of that program.
84
85 # This program is distributed in the hope that it will be useful,
86 # but WITHOUT ANY WARRANTY; without even the implied warranty of
87 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
88 # General Public License for more details.
89
90 # You should have received a copy of the GNU General Public License
91 # along with this program. If not, see <http://www.gnu.org/licenses/>.
92
93 # Please report bugs or propose patches to gary@gnu.org.
71 # This is free software. There is NO warranty; not even for
72 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
73 #
74 # Copyright (C) 2004-2019, 2021 Bootstrap Authors
75 #
76 # This file is dual licensed under the terms of the MIT license
77 # <https://opensource.org/license/MIT>, and GPL version 2 or later
78 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
79 # these licenses when using or redistributing this software or any of
80 # the files within it. See the URLs above, or the file `LICENSE`
81 # included in the Bootstrap distribution for the full license texts.
82
83 # Please report bugs or propose patches to:
84 # <https://github.com/gnulib-modules/bootstrap/issues>
9485
9586
9687 ## ------ ##
138129 _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
139130 fi"
140131 done
141
142 # CDPATH.
143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
132 # These NLS vars are set unconditionally (bootstrap issue #24). Unset those
133 # in case the environment reset is needed later and the $save_* variant is not
134 # defined (see the code above).
135 LC_ALL=C
136 LANGUAGE=C
137 export LANGUAGE LC_ALL
144138
145139 # Make sure IFS has a sensible default
146140 sp=' '
157151 }
158152 fi
159153
154
155 # func_unset VAR
156 # --------------
157 # Portably unset VAR.
158 # In some shells, an 'unset VAR' statement leaves a non-zero return
159 # status if VAR is already unset, which might be problematic if the
160 # statement is used at the end of a function (thus poisoning its return
161 # value) or when 'set -e' is active (causing even a spurious abort of
162 # the script in this case).
163 func_unset ()
164 {
165 { eval $1=; (eval unset $1) >/dev/null 2>&1 && eval unset $1 || : ; }
166 }
167
168
169 # Make sure CDPATH doesn't cause `cd` commands to output the target dir.
170 func_unset CDPATH
171
172 # Make sure ${,E,F}GREP behave sanely.
173 func_unset GREP_OPTIONS
160174
161175
162176 ## ------------------------- ##
258272 rm -f conftest.in conftest.tmp conftest.nl conftest.out
259273 }
260274
261 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin
275 func_path_progs "sed gsed" func_check_prog_sed "$PATH:/usr/xpg4/bin"
262276 rm -f conftest.sed
263277 SED=$func_path_progs_result
264278 }
294308 rm -f conftest.in conftest.tmp conftest.nl conftest.out
295309 }
296310
297 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin
311 func_path_progs "grep ggrep" func_check_prog_grep "$PATH:/usr/xpg4/bin"
298312 GREP=$func_path_progs_result
299313 }
300314
359373 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g
360374 s/\n//g"
361375
376 # require_check_ifs_backslash
377 # ---------------------------
378 # Check if we can use backslash as IFS='\' separator, and set
379 # $check_ifs_backshlash_broken to ':' or 'false'.
380 require_check_ifs_backslash=func_require_check_ifs_backslash
381 func_require_check_ifs_backslash ()
382 {
383 _G_save_IFS=$IFS
384 IFS='\'
385 _G_check_ifs_backshlash='a\\b'
386 for _G_i in $_G_check_ifs_backshlash
387 do
388 case $_G_i in
389 a)
390 check_ifs_backshlash_broken=false
391 ;;
392 '')
393 break
394 ;;
395 *)
396 check_ifs_backshlash_broken=:
397 break
398 ;;
399 esac
400 done
401 IFS=$_G_save_IFS
402 require_check_ifs_backslash=:
403 }
404
362405
363406 ## ----------------- ##
364407 ## Global variables. ##
386429 # putting '$debug_cmd' at the start of all your functions, you can get
387430 # bash to show function call trace with:
388431 #
389 # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
432 # debug_cmd='echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
390433 debug_cmd=${debug_cmd-":"}
391434 exit_cmd=:
392435
579622 {
580623 $debug_cmd
581624
582 func_quote_for_eval "$2"
583 eval "$1+=\\ \$func_quote_for_eval_result"
625 func_quote_arg pretty "$2"
626 eval "$1+=\\ \$func_quote_arg_result"
584627 }'
585628 else
586629 func_append_quoted ()
587630 {
588631 $debug_cmd
589632
590 func_quote_for_eval "$2"
591 eval "$1=\$$1\\ \$func_quote_for_eval_result"
633 func_quote_arg pretty "$2"
634 eval "$1=\$$1\\ \$func_quote_arg_result"
592635 }
593636 fi
594637
10901133 }
10911134
10921135
1093 # func_quote_for_eval ARG...
1094 # --------------------------
1095 # Aesthetically quote ARGs to be evaled later.
1096 # This function returns two values:
1097 # i) func_quote_for_eval_result
1098 # double-quoted, suitable for a subsequent eval
1099 # ii) func_quote_for_eval_unquoted_result
1100 # has all characters that are still active within double
1101 # quotes backslashified.
1102 func_quote_for_eval ()
1136 # func_quote_portable EVAL ARG
1137 # ----------------------------
1138 # Internal function to portably implement func_quote_arg. Note that we still
1139 # keep attention to performance here so we as much as possible try to avoid
1140 # calling sed binary (so far O(N) complexity as long as func_append is O(1)).
1141 func_quote_portable ()
11031142 {
11041143 $debug_cmd
11051144
1106 func_quote_for_eval_unquoted_result=
1107 func_quote_for_eval_result=
1108 while test 0 -lt $#; do
1145 $require_check_ifs_backslash
1146
1147 func_quote_portable_result=$2
1148
1149 # one-time-loop (easy break)
1150 while true
1151 do
1152 if $1; then
1153 func_quote_portable_result=`$ECHO "$2" | $SED \
1154 -e "$sed_double_quote_subst" -e "$sed_double_backslash"`
1155 break
1156 fi
1157
1158 # Quote for eval.
1159 case $func_quote_portable_result in
1160 *[\\\`\"\$]*)
1161 # Fallback to sed for $func_check_bs_ifs_broken=:, or when the string
1162 # contains the shell wildcard characters.
1163 case $check_ifs_backshlash_broken$func_quote_portable_result in
1164 :*|*[\[\*\?]*)
1165 func_quote_portable_result=`$ECHO "$func_quote_portable_result" \
1166 | $SED "$sed_quote_subst"`
1167 break
1168 ;;
1169 esac
1170
1171 func_quote_portable_old_IFS=$IFS
1172 for _G_char in '\' '`' '"' '$'
1173 do
1174 # STATE($1) PREV($2) SEPARATOR($3)
1175 set start "" ""
1176 func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy
1177 IFS=$_G_char
1178 for _G_part in $func_quote_portable_result
1179 do
1180 case $1 in
1181 quote)
1182 func_append func_quote_portable_result "$3$2"
1183 set quote "$_G_part" "\\$_G_char"
1184 ;;
1185 start)
1186 set first "" ""
1187 func_quote_portable_result=
1188 ;;
1189 first)
1190 set quote "$_G_part" ""
1191 ;;
1192 esac
1193 done
1194 done
1195 IFS=$func_quote_portable_old_IFS
1196 ;;
1197 *) ;;
1198 esac
1199 break
1200 done
1201
1202 func_quote_portable_unquoted_result=$func_quote_portable_result
1203 case $func_quote_portable_result in
1204 # double-quote args containing shell metacharacters to delay
1205 # word splitting, command substitution and variable expansion
1206 # for a subsequent eval.
1207 # many bourne shells cannot handle close brackets correctly
1208 # in scan sets, so we specify it separately.
1209 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1210 func_quote_portable_result=\"$func_quote_portable_result\"
1211 ;;
1212 esac
1213 }
1214
1215
1216 # func_quotefast_eval ARG
1217 # -----------------------
1218 # Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG',
1219 # but optimized for speed. Result is stored in $func_quotefast_eval.
1220 if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
1221 printf -v _GL_test_printf_tilde %q '~'
1222 if test '\~' = "$_GL_test_printf_tilde"; then
1223 func_quotefast_eval ()
1224 {
1225 printf -v func_quotefast_eval_result %q "$1"
1226 }
1227 else
1228 # Broken older Bash implementations. Make those faster too if possible.
1229 func_quotefast_eval ()
1230 {
11091231 case $1 in
1110 *[\\\`\"\$]*)
1111 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
1112 *)
1113 _G_unquoted_arg=$1 ;;
1114 esac
1115 if test -n "$func_quote_for_eval_unquoted_result"; then
1116 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1117 else
1118 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
1119 fi
1120
1121 case $_G_unquoted_arg in
1122 # Double-quote args containing shell metacharacters to delay
1123 # word splitting, command substitution and variable expansion
1124 # for a subsequent eval.
1125 # Many Bourne shells cannot handle close brackets correctly
1126 # in scan sets, so we specify it separately.
1127 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1128 _G_quoted_arg=\"$_G_unquoted_arg\"
1232 '~'*)
1233 func_quote_portable false "$1"
1234 func_quotefast_eval_result=$func_quote_portable_result
11291235 ;;
11301236 *)
1131 _G_quoted_arg=$_G_unquoted_arg
1132 ;;
1237 printf -v func_quotefast_eval_result %q "$1"
1238 ;;
11331239 esac
1134
1135 if test -n "$func_quote_for_eval_result"; then
1136 func_append func_quote_for_eval_result " $_G_quoted_arg"
1240 }
1241 fi
1242 else
1243 func_quotefast_eval ()
1244 {
1245 func_quote_portable false "$1"
1246 func_quotefast_eval_result=$func_quote_portable_result
1247 }
1248 fi
1249
1250
1251 # func_quote_arg MODEs ARG
1252 # ------------------------
1253 # Quote one ARG to be evaled later. MODEs argument may contain zero or more
1254 # specifiers listed below separated by ',' character. This function returns two
1255 # values:
1256 # i) func_quote_arg_result
1257 # double-quoted (when needed), suitable for a subsequent eval
1258 # ii) func_quote_arg_unquoted_result
1259 # has all characters that are still active within double
1260 # quotes backslashified. Available only if 'unquoted' is specified.
1261 #
1262 # Available modes:
1263 # ----------------
1264 # 'eval' (default)
1265 # - escape shell special characters
1266 # 'expand'
1267 # - the same as 'eval'; but do not quote variable references
1268 # 'pretty'
1269 # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might
1270 # be used later in func_quote to get output like: 'echo "a b"' instead
1271 # of 'echo a\ b'. This is slower than default on some shells.
1272 # 'unquoted'
1273 # - produce also $func_quote_arg_unquoted_result which does not contain
1274 # wrapping double-quotes.
1275 #
1276 # Examples for 'func_quote_arg pretty,unquoted string':
1277 #
1278 # string | *_result | *_unquoted_result
1279 # ------------+-----------------------+-------------------
1280 # " | \" | \"
1281 # a b | "a b" | a b
1282 # "a b" | "\"a b\"" | \"a b\"
1283 # * | "*" | *
1284 # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\"
1285 #
1286 # Examples for 'func_quote_arg pretty,unquoted,expand string':
1287 #
1288 # string | *_result | *_unquoted_result
1289 # --------------+---------------------+--------------------
1290 # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\"
1291 func_quote_arg ()
1292 {
1293 _G_quote_expand=false
1294 case ,$1, in
1295 *,expand,*)
1296 _G_quote_expand=:
1297 ;;
1298 esac
1299
1300 case ,$1, in
1301 *,pretty,*|*,expand,*|*,unquoted,*)
1302 func_quote_portable $_G_quote_expand "$2"
1303 func_quote_arg_result=$func_quote_portable_result
1304 func_quote_arg_unquoted_result=$func_quote_portable_unquoted_result
1305 ;;
1306 *)
1307 # Faster quote-for-eval for some shells.
1308 func_quotefast_eval "$2"
1309 func_quote_arg_result=$func_quotefast_eval_result
1310 ;;
1311 esac
1312 }
1313
1314
1315 # func_quote MODEs ARGs...
1316 # ------------------------
1317 # Quote all ARGs to be evaled later and join them into single command. See
1318 # func_quote_arg's description for more info.
1319 func_quote ()
1320 {
1321 $debug_cmd
1322 _G_func_quote_mode=$1 ; shift
1323 func_quote_result=
1324 while test 0 -lt $#; do
1325 func_quote_arg "$_G_func_quote_mode" "$1"
1326 if test -n "$func_quote_result"; then
1327 func_append func_quote_result " $func_quote_arg_result"
11371328 else
1138 func_append func_quote_for_eval_result "$_G_quoted_arg"
1329 func_append func_quote_result "$func_quote_arg_result"
11391330 fi
11401331 shift
11411332 done
1142 }
1143
1144
1145 # func_quote_for_expand ARG
1146 # -------------------------
1147 # Aesthetically quote ARG to be evaled later; same as above,
1148 # but do not quote variable references.
1149 func_quote_for_expand ()
1150 {
1151 $debug_cmd
1152
1153 case $1 in
1154 *[\\\`\"]*)
1155 _G_arg=`$ECHO "$1" | $SED \
1156 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
1157 *)
1158 _G_arg=$1 ;;
1159 esac
1160
1161 case $_G_arg in
1162 # Double-quote args containing shell metacharacters to delay
1163 # word splitting and command substitution for a subsequent eval.
1164 # Many Bourne shells cannot handle close brackets correctly
1165 # in scan sets, so we specify it separately.
1166 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1167 _G_arg=\"$_G_arg\"
1168 ;;
1169 esac
1170
1171 func_quote_for_expand_result=$_G_arg
11721333 }
11731334
11741335
12141375 _G_cmd=$1
12151376 _G_fail_exp=${2-':'}
12161377
1217 func_quote_for_expand "$_G_cmd"
1218 eval "func_notquiet $func_quote_for_expand_result"
1378 func_quote_arg pretty,expand "$_G_cmd"
1379 eval "func_notquiet $func_quote_arg_result"
12191380
12201381 $opt_dry_run || {
12211382 eval "$_G_cmd"
12401401 _G_fail_exp=${2-':'}
12411402
12421403 $opt_quiet || {
1243 func_quote_for_expand "$_G_cmd"
1244 eval "func_echo $func_quote_for_expand_result"
1404 func_quote_arg expand,pretty "$_G_cmd"
1405 eval "func_echo $func_quote_arg_result"
12451406 }
12461407
12471408 $opt_dry_run || {
13681529 # End:
13691530 #! /bin/sh
13701531
1371 # Set a version string for this script.
1372 scriptversion=2014-01-07.03; # UTC
1373
13741532 # A portable, pluggable option parser for Bourne shell.
13751533 # Written by Gary V. Vaughan, 2010
13761534
1377 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1378 # This is free software; see the source for copying conditions. There is NO
1379 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1380
1381 # This program is free software: you can redistribute it and/or modify
1382 # it under the terms of the GNU General Public License as published by
1383 # the Free Software Foundation, either version 3 of the License, or
1384 # (at your option) any later version.
1385
1386 # This program is distributed in the hope that it will be useful,
1387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1389 # GNU General Public License for more details.
1390
1391 # You should have received a copy of the GNU General Public License
1392 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1393
1394 # Please report bugs or propose patches to gary@gnu.org.
1535 # This is free software. There is NO warranty; not even for
1536 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1537 #
1538 # Copyright (C) 2010-2019, 2021 Bootstrap Authors
1539 #
1540 # This file is dual licensed under the terms of the MIT license
1541 # <https://opensource.org/license/MIT>, and GPL version 2 or later
1542 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
1543 # these licenses when using or redistributing this software or any of
1544 # the files within it. See the URLs above, or the file `LICENSE`
1545 # included in the Bootstrap distribution for the full license texts.
1546
1547 # Please report bugs or propose patches to:
1548 # <https://github.com/gnulib-modules/bootstrap/issues>
1549
1550 # Set a version string for this script.
1551 scriptversion=2019-02-19.15; # UTC
13951552
13961553
13971554 ## ------ ##
14141571 #
14151572 # In order for the '--version' option to work, you will need to have a
14161573 # suitably formatted comment like the one at the top of this file
1417 # starting with '# Written by ' and ending with '# warranty; '.
1574 # starting with '# Written by ' and ending with '# Copyright'.
14181575 #
14191576 # For '-h' and '--help' to work, you will also need a one line
14201577 # description of your script's purpose in a comment directly above the
14261583 # to display verbose messages only when your user has specified
14271584 # '--verbose'.
14281585 #
1429 # After sourcing this file, you can plug processing for additional
1586 # After sourcing this file, you can plug in processing for additional
14301587 # options by amending the variables from the 'Configuration' section
14311588 # below, and following the instructions in the 'Option parsing'
14321589 # section further down.
14751632 ## ------------------------- ##
14761633
14771634 # This section contains functions for adding, removing, and running hooks
1478 # to the main code. A hook is just a named list of of function, that can
1479 # be run in order later on.
1635 # in the main code. A hook is just a list of function names that can be
1636 # run in order later on.
14801637
14811638 # func_hookable FUNC_NAME
14821639 # -----------------------
15091666
15101667 # func_remove_hook FUNC_NAME HOOK_FUNC
15111668 # ------------------------------------
1512 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1669 # Remove HOOK_FUNC from the list of hook functions to be called by
1670 # FUNC_NAME.
15131671 func_remove_hook ()
15141672 {
15151673 $debug_cmd
15161674
15171675 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1676 }
1677
1678
1679 # func_propagate_result FUNC_NAME_A FUNC_NAME_B
1680 # ---------------------------------------------
1681 # If the *_result variable of FUNC_NAME_A _is set_, assign its value to
1682 # *_result variable of FUNC_NAME_B.
1683 func_propagate_result ()
1684 {
1685 $debug_cmd
1686
1687 func_propagate_result_result=:
1688 if eval "test \"\${${1}_result+set}\" = set"
1689 then
1690 eval "${2}_result=\$${1}_result"
1691 else
1692 func_propagate_result_result=false
1693 fi
15181694 }
15191695
15201696
15211697 # func_run_hooks FUNC_NAME [ARG]...
15221698 # ---------------------------------
15231699 # Run all hook functions registered to FUNC_NAME.
1524 # It is assumed that the list of hook functions contains nothing more
1700 # It's assumed that the list of hook functions contains nothing more
15251701 # than a whitespace-delimited list of legal shell function names, and
15261702 # no effort is wasted trying to catch shell meta-characters or preserve
15271703 # whitespace.
15291705 {
15301706 $debug_cmd
15311707
1708 _G_rc_run_hooks=false
1709
15321710 case " $hookable_fns " in
15331711 *" $1 "*) ;;
1534 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1712 *) func_fatal_error "'$1' does not support hook functions." ;;
15351713 esac
15361714
15371715 eval _G_hook_fns=\$$1_hooks; shift
15381716
15391717 for _G_hook in $_G_hook_fns; do
1540 eval $_G_hook '"$@"'
1541
1542 # store returned options list back into positional
1543 # parameters for next 'cmd' execution.
1544 eval _G_hook_result=\$${_G_hook}_result
1545 eval set dummy "$_G_hook_result"; shift
1718 func_unset "${_G_hook}_result"
1719 eval $_G_hook '${1+"$@"}'
1720 func_propagate_result $_G_hook func_run_hooks
1721 if $func_propagate_result_result; then
1722 eval set dummy "$func_run_hooks_result"; shift
1723 fi
15461724 done
1547
1548 func_quote_for_eval ${1+"$@"}
1549 func_run_hooks_result=$func_quote_for_eval_result
15501725 }
15511726
15521727
15561731 ## --------------- ##
15571732
15581733 # In order to add your own option parsing hooks, you must accept the
1559 # full positional parameter list in your hook function, remove any
1560 # options that you action, and then pass back the remaining unprocessed
1561 # options in '<hooked_function_name>_result', escaped suitably for
1562 # 'eval'. Like this:
1734 # full positional parameter list from your hook function. You may remove
1735 # or edit any options that you action, and then pass back the remaining
1736 # unprocessed options in '<hooked_function_name>_result', escaped
1737 # suitably for 'eval'.
1738 #
1739 # The '<hooked_function_name>_result' variable is automatically unset
1740 # before your hook gets called; for best performance, only set the
1741 # *_result variable when necessary (i.e. don't call the 'func_quote'
1742 # function unnecessarily because it can be an expensive operation on some
1743 # machines).
1744 #
1745 # Like this:
15631746 #
15641747 # my_options_prep ()
15651748 # {
15691752 # usage_message=$usage_message'
15701753 # -s, --silent don'\''t print informational messages
15711754 # '
1572 #
1573 # func_quote_for_eval ${1+"$@"}
1574 # my_options_prep_result=$func_quote_for_eval_result
1755 # # No change in '$@' (ignored completely by this hook). Leave
1756 # # my_options_prep_result variable intact.
15751757 # }
15761758 # func_add_hook func_options_prep my_options_prep
15771759 #
15801762 # {
15811763 # $debug_cmd
15821764 #
1583 # # Note that for efficiency, we parse as many options as we can
1765 # args_changed=false
1766 #
1767 # # Note that, for efficiency, we parse as many options as we can
15841768 # # recognise in a loop before passing the remainder back to the
15851769 # # caller on the first unrecognised argument we encounter.
15861770 # while test $# -gt 0; do
15871771 # opt=$1; shift
15881772 # case $opt in
1589 # --silent|-s) opt_silent=: ;;
1773 # --silent|-s) opt_silent=:
1774 # args_changed=:
1775 # ;;
15901776 # # Separate non-argument short options:
15911777 # -s*) func_split_short_opt "$_G_opt"
15921778 # set dummy "$func_split_short_opt_name" \
15931779 # "-$func_split_short_opt_arg" ${1+"$@"}
15941780 # shift
1781 # args_changed=:
15951782 # ;;
1596 # *) set dummy "$_G_opt" "$*"; shift; break ;;
1783 # *) # Make sure the first unrecognised option "$_G_opt"
1784 # # is added back to "$@" in case we need it later,
1785 # # if $args_changed was set to 'true'.
1786 # set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
15971787 # esac
15981788 # done
15991789 #
1600 # func_quote_for_eval ${1+"$@"}
1601 # my_silent_option_result=$func_quote_for_eval_result
1790 # # Only call 'func_quote' here if we processed at least one argument.
1791 # if $args_changed; then
1792 # func_quote eval ${1+"$@"}
1793 # my_silent_option_result=$func_quote_result
1794 # fi
16021795 # }
16031796 # func_add_hook func_parse_options my_silent_option
16041797 #
16091802 #
16101803 # $opt_silent && $opt_verbose && func_fatal_help "\
16111804 # '--silent' and '--verbose' options are mutually exclusive."
1612 #
1613 # func_quote_for_eval ${1+"$@"}
1614 # my_option_validation_result=$func_quote_for_eval_result
16151805 # }
16161806 # func_add_hook func_validate_options my_option_validation
16171807 #
1618 # You'll alse need to manually amend $usage_message to reflect the extra
1808 # You'll also need to manually amend $usage_message to reflect the extra
16191809 # options you parse. It's preferable to append if you can, so that
16201810 # multiple option parsing hooks can be added safely.
1811
1812
1813 # func_options_finish [ARG]...
1814 # ----------------------------
1815 # Finishing the option parse loop (call 'func_options' hooks ATM).
1816 func_options_finish ()
1817 {
1818 $debug_cmd
1819
1820 func_run_hooks func_options ${1+"$@"}
1821 func_propagate_result func_run_hooks func_options_finish
1822 }
16211823
16221824
16231825 # func_options [ARG]...
16291831 {
16301832 $debug_cmd
16311833
1632 func_options_prep ${1+"$@"}
1633 eval func_parse_options \
1634 ${func_options_prep_result+"$func_options_prep_result"}
1635 eval func_validate_options \
1636 ${func_parse_options_result+"$func_parse_options_result"}
1637
1638 eval func_run_hooks func_options \
1639 ${func_validate_options_result+"$func_validate_options_result"}
1640
1641 # save modified positional parameters for caller
1642 func_options_result=$func_run_hooks_result
1834 _G_options_quoted=false
1835
1836 for my_func in options_prep parse_options validate_options options_finish
1837 do
1838 func_unset func_${my_func}_result
1839 func_unset func_run_hooks_result
1840 eval func_$my_func '${1+"$@"}'
1841 func_propagate_result func_$my_func func_options
1842 if $func_propagate_result_result; then
1843 eval set dummy "$func_options_result"; shift
1844 _G_options_quoted=:
1845 fi
1846 done
1847
1848 $_G_options_quoted || {
1849 # As we (func_options) are top-level options-parser function and
1850 # nobody quoted "$@" for us yet, we need to do it explicitly for
1851 # caller.
1852 func_quote eval ${1+"$@"}
1853 func_options_result=$func_quote_result
1854 }
16431855 }
16441856
16451857
16481860 # All initialisations required before starting the option parse loop.
16491861 # Note that when calling hook functions, we pass through the list of
16501862 # positional parameters. If a hook function modifies that list, and
1651 # needs to propogate that back to rest of this script, then the complete
1652 # modified list must be put in 'func_run_hooks_result' before
1653 # returning.
1863 # needs to propagate that back to rest of this script, then the complete
1864 # modified list must be put in 'func_run_hooks_result' before returning.
16541865 func_hookable func_options_prep
16551866 func_options_prep ()
16561867 {
16611872 opt_warning_types=
16621873
16631874 func_run_hooks func_options_prep ${1+"$@"}
1664
1665 # save modified positional parameters for caller
1666 func_options_prep_result=$func_run_hooks_result
1875 func_propagate_result func_run_hooks func_options_prep
16671876 }
16681877
16691878
16751884 {
16761885 $debug_cmd
16771886
1678 func_parse_options_result=
1679
1887 _G_parse_options_requote=false
16801888 # this just eases exit handling
16811889 while test $# -gt 0; do
16821890 # Defer to hook functions for initial option parsing, so they
16831891 # get priority in the event of reusing an option name.
16841892 func_run_hooks func_parse_options ${1+"$@"}
1685
1686 # Adjust func_parse_options positional parameters to match
1687 eval set dummy "$func_run_hooks_result"; shift
1893 func_propagate_result func_run_hooks func_parse_options
1894 if $func_propagate_result_result; then
1895 eval set dummy "$func_parse_options_result"; shift
1896 # Even though we may have changed "$@", we passed the "$@" array
1897 # down into the hook and it quoted it for us (because we are in
1898 # this if-branch). No need to quote it again.
1899 _G_parse_options_requote=false
1900 fi
16881901
16891902 # Break out of the loop if we already parsed every option.
16901903 test $# -gt 0 || break
16911904
1905 # We expect that one of the options parsed in this function matches
1906 # and thus we remove _G_opt from "$@" and need to re-quote.
1907 _G_match_parse_options=:
16921908 _G_opt=$1
16931909 shift
16941910 case $_G_opt in
16951911 --debug|-x) debug_cmd='set -x'
1696 func_echo "enabling shell trace mode"
1912 func_echo "enabling shell trace mode" >&2
16971913 $debug_cmd
16981914 ;;
16991915
17031919 ;;
17041920
17051921 --warnings|--warning|-W)
1706 test $# = 0 && func_missing_arg $_G_opt && break
1922 if test $# = 0 && func_missing_arg $_G_opt; then
1923 _G_parse_options_requote=:
1924 break
1925 fi
17071926 case " $warning_categories $1" in
17081927 *" $1 "*)
17091928 # trailing space prevents matching last $1 above
17561975 shift
17571976 ;;
17581977
1759 --) break ;;
1978 --) _G_parse_options_requote=: ; break ;;
17601979 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1761 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
1980 *) set dummy "$_G_opt" ${1+"$@"}; shift
1981 _G_match_parse_options=false
1982 break
1983 ;;
17621984 esac
1985
1986 if $_G_match_parse_options; then
1987 _G_parse_options_requote=:
1988 fi
17631989 done
17641990
1765 # save modified positional parameters for caller
1766 func_quote_for_eval ${1+"$@"}
1767 func_parse_options_result=$func_quote_for_eval_result
1991 if $_G_parse_options_requote; then
1992 # save modified positional parameters for caller
1993 func_quote eval ${1+"$@"}
1994 func_parse_options_result=$func_quote_result
1995 fi
17681996 }
17691997
17701998
17812009 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
17822010
17832011 func_run_hooks func_validate_options ${1+"$@"}
2012 func_propagate_result func_run_hooks func_validate_options
17842013
17852014 # Bail if the options were screwed!
17862015 $exit_cmd $EXIT_FAILURE
1787
1788 # save modified positional parameters for caller
1789 func_validate_options_result=$func_run_hooks_result
17902016 }
17912017
17922018
18422068
18432069 # func_split_equals STRING
18442070 # ------------------------
1845 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
1846 # splitting STRING at the '=' sign.
2071 # Set func_split_equals_lhs and func_split_equals_rhs shell variables
2072 # after splitting STRING at the '=' sign.
18472073 test -z "$_G_HAVE_XSI_OPS" \
18482074 && (eval 'x=a/b/c;
18492075 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
18582084
18592085 func_split_equals_lhs=${1%%=*}
18602086 func_split_equals_rhs=${1#*=}
1861 test "x$func_split_equals_lhs" = "x$1" \
1862 && func_split_equals_rhs=
2087 if test "x$func_split_equals_lhs" = "x$1"; then
2088 func_split_equals_rhs=
2089 fi
18632090 }'
18642091 else
18652092 # ...otherwise fall back to using expr, which is often a shell builtin.
18692096
18702097 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
18712098 func_split_equals_rhs=
1872 test "x$func_split_equals_lhs" = "x$1" \
2099 test "x$func_split_equals_lhs=" = "x$1" \
18732100 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
18742101 }
18752102 fi #func_split_equals
18952122 {
18962123 $debug_cmd
18972124
1898 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
2125 func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'`
18992126 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
19002127 }
19012128 fi #func_split_short_opt
19372164 # func_version
19382165 # ------------
19392166 # Echo version message to standard output and exit.
2167 # The version message is extracted from the calling file's header
2168 # comments, with leading '# ' stripped:
2169 # 1. First display the progname and version
2170 # 2. Followed by the header comment line matching /^# Written by /
2171 # 3. Then a blank line followed by the first following line matching
2172 # /^# Copyright /
2173 # 4. Immediately followed by any lines between the previous matches,
2174 # except lines preceding the intervening completely blank line.
2175 # For example, see the header comments of this file.
19402176 func_version ()
19412177 {
19422178 $debug_cmd
19432179
19442180 printf '%s\n' "$progname $scriptversion"
19452181 $SED -n '
1946 /(C)/!b go
1947 :more
1948 /\./!{
1949 N
1950 s|\n# | |
1951 b more
2182 /^# Written by /!b
2183 s|^# ||; p; n
2184
2185 :fwd2blnk
2186 /./ {
2187 n
2188 b fwd2blnk
19522189 }
1953 :go
1954 /^# Written by /,/# warranty; / {
1955 s|^# ||
1956 s|^# *$||
1957 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
1958 p
2190 p; n
2191
2192 :holdwrnt
2193 s|^# ||
2194 s|^# *$||
2195 /^Copyright /!{
2196 /./H
2197 n
2198 b holdwrnt
19592199 }
1960 /^# Written by / {
1961 s|^# ||
1962 p
1963 }
1964 /^warranty; /q' < "$progpath"
2200
2201 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2202 G
2203 s|\(\n\)\n*|\1|g
2204 p; q' < "$progpath"
19652205
19662206 exit $?
19672207 }
19712211 # mode: shell-script
19722212 # sh-indentation: 2
19732213 # eval: (add-hook 'before-save-hook 'time-stamp)
1974 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2214 # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC"
19752215 # time-stamp-time-zone: "UTC"
19762216 # End:
19772217
19782218 # Set a version string.
1979 scriptversion='(GNU libtool) 2.4.6'
2219 scriptversion='(GNU libtool) 2.4.7'
19802220
19812221
19822222 # func_echo ARG...
20672307 compiler: $LTCC
20682308 compiler flags: $LTCFLAGS
20692309 linker: $LD (gnu? $with_gnu_ld)
2070 version: $progname (GNU libtool) 2.4.6
2310 version: $progname $scriptversion Debian-2.4.7-4
20712311 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
20722312 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
20732313
20742314 Report bugs to <bug-libtool@gnu.org>.
2075 GNU libtool home page: <http://www.gnu.org/software/libtool/>.
2315 GNU libtool home page: <http://www.gnu.org/s/libtool/>.
20762316 General help using GNU software: <http://www.gnu.org/gethelp/>."
20772317 exit 0
20782318 }
21232363 # a configuration failure hint, and exit.
21242364 func_fatal_configuration ()
21252365 {
2126 func__fatal_error ${1+"$@"} \
2366 func_fatal_error ${1+"$@"} \
21272367 "See the $PACKAGE documentation for more information." \
21282368 "Fatal configuration error."
21292369 }
22692509 nonopt=
22702510 preserve_args=
22712511
2512 _G_rc_lt_options_prep=:
2513
2514 _G_rc_lt_options_prep=:
2515
22722516 # Shorthand for --mode=foo, only valid as the first argument
22732517 case $1 in
22742518 clean|clea|cle|cl)
22922536 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
22932537 shift; set dummy --mode uninstall ${1+"$@"}; shift
22942538 ;;
2539 *)
2540 _G_rc_lt_options_prep=false
2541 ;;
22952542 esac
22962543
2297 # Pass back the list of options.
2298 func_quote_for_eval ${1+"$@"}
2299 libtool_options_prep_result=$func_quote_for_eval_result
2544 if $_G_rc_lt_options_prep; then
2545 # Pass back the list of options.
2546 func_quote eval ${1+"$@"}
2547 libtool_options_prep_result=$func_quote_result
2548 fi
23002549 }
23012550 func_add_hook func_options_prep libtool_options_prep
23022551
23082557 {
23092558 $debug_cmd
23102559
2560 _G_rc_lt_parse_options=false
2561
23112562 # Perform our own loop to consume as many options as possible in
23122563 # each iteration.
23132564 while test $# -gt 0; do
2565 _G_match_lt_parse_options=:
23142566 _G_opt=$1
23152567 shift
23162568 case $_G_opt in
23852637 func_append preserve_args " $_G_opt"
23862638 ;;
23872639
2388 # An option not handled by this hook function:
2389 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
2640 # An option not handled by this hook function:
2641 *) set dummy "$_G_opt" ${1+"$@"} ; shift
2642 _G_match_lt_parse_options=false
2643 break
2644 ;;
23902645 esac
2646 $_G_match_lt_parse_options && _G_rc_lt_parse_options=:
23912647 done
23922648
2393
2394 # save modified positional parameters for caller
2395 func_quote_for_eval ${1+"$@"}
2396 libtool_parse_options_result=$func_quote_for_eval_result
2649 if $_G_rc_lt_parse_options; then
2650 # save modified positional parameters for caller
2651 func_quote eval ${1+"$@"}
2652 libtool_parse_options_result=$func_quote_result
2653 fi
23972654 }
23982655 func_add_hook func_parse_options libtool_parse_options
23992656
24502707 }
24512708
24522709 # Pass back the unparsed argument list
2453 func_quote_for_eval ${1+"$@"}
2454 libtool_validate_options_result=$func_quote_for_eval_result
2710 func_quote eval ${1+"$@"}
2711 libtool_validate_options_result=$func_quote_result
24552712 }
24562713 func_add_hook func_validate_options libtool_validate_options
24572714
34173674 esac
34183675 done
34193676
3420 func_quote_for_eval "$libobj"
3421 test "X$libobj" != "X$func_quote_for_eval_result" \
3677 func_quote_arg pretty "$libobj"
3678 test "X$libobj" != "X$func_quote_arg_result" \
34223679 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
34233680 && func_warning "libobj name '$libobj' may not contain shell special characters."
34243681 func_dirname_and_basename "$obj" "/" ""
34913748
34923749 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
34933750 srcfile=$func_to_tool_file_result
3494 func_quote_for_eval "$srcfile"
3495 qsrcfile=$func_quote_for_eval_result
3751 func_quote_arg pretty "$srcfile"
3752 qsrcfile=$func_quote_arg_result
34963753
34973754 # Only build a PIC object if we are building libtool libraries.
34983755 if test yes = "$build_libtool_libs"; then
36473904 -prefer-non-pic try to build non-PIC objects only
36483905 -shared do not build a '.o' file suitable for static linking
36493906 -static only build a '.o' file suitable for static linking
3650 -Wc,FLAG pass FLAG directly to the compiler
3907 -Wc,FLAG
3908 -Xcompiler FLAG pass FLAG directly to the compiler
36513909
36523910 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
36533911 from the given SOURCEFILE.
37534011 -weak LIBNAME declare that the target provides the LIBNAME interface
37544012 -Wc,FLAG
37554013 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
4014 -Wa,FLAG
4015 -Xassembler FLAG pass linker-specific FLAG directly to the assembler
37564016 -Wl,FLAG
37574017 -Xlinker FLAG pass linker-specific FLAG directly to the linker
37584018 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
40954355 case $nonopt in *shtool*) :;; *) false;; esac
40964356 then
40974357 # Aesthetically quote it.
4098 func_quote_for_eval "$nonopt"
4099 install_prog="$func_quote_for_eval_result "
4358 func_quote_arg pretty "$nonopt"
4359 install_prog="$func_quote_arg_result "
41004360 arg=$1
41014361 shift
41024362 else
41064366
41074367 # The real first argument should be the name of the installation program.
41084368 # Aesthetically quote it.
4109 func_quote_for_eval "$arg"
4110 func_append install_prog "$func_quote_for_eval_result"
4369 func_quote_arg pretty "$arg"
4370 func_append install_prog "$func_quote_arg_result"
41114371 install_shared_prog=$install_prog
41124372 case " $install_prog " in
41134373 *[\\\ /]cp\ *) install_cp=: ;;
41644424 esac
41654425
41664426 # Aesthetically quote the argument.
4167 func_quote_for_eval "$arg"
4168 func_append install_prog " $func_quote_for_eval_result"
4427 func_quote_arg pretty "$arg"
4428 func_append install_prog " $func_quote_arg_result"
41694429 if test -n "$arg2"; then
4170 func_quote_for_eval "$arg2"
4430 func_quote_arg pretty "$arg2"
41714431 fi
4172 func_append install_shared_prog " $func_quote_for_eval_result"
4432 func_append install_shared_prog " $func_quote_arg_result"
41734433 done
41744434
41754435 test -z "$install_prog" && \
41804440
41814441 if test -n "$install_override_mode" && $no_mode; then
41824442 if $install_cp; then :; else
4183 func_quote_for_eval "$install_override_mode"
4184 func_append install_shared_prog " -m $func_quote_for_eval_result"
4443 func_quote_arg pretty "$install_override_mode"
4444 func_append install_shared_prog " -m $func_quote_arg_result"
41854445 fi
41864446 fi
41874447
44774737 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
44784738
44794739 $opt_quiet || {
4480 func_quote_for_expand "$relink_command"
4481 eval "func_echo $func_quote_for_expand_result"
4740 func_quote_arg expand,pretty "$relink_command"
4741 eval "func_echo $func_quote_arg_result"
44824742 }
44834743 if eval "$relink_command"; then :
44844744 else
52575517 if test \"\$libtool_execute_magic\" != \"$magic\"; then
52585518 file=\"\$0\""
52595519
5260 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
5520 func_quote_arg pretty "$ECHO"
5521 qECHO=$func_quote_arg_result
52615522 $ECHO "\
52625523
52635524 # A function that is used when there is no print builtin or printf.
52675528 \$1
52685529 _LTECHO_EOF'
52695530 }
5270 ECHO=\"$qECHO\"
5531 ECHO=$qECHO
52715532 fi
52725533
52735534 # Very basic option parsing. These options are (a) specific to
66106871 while test "$#" -gt 0; do
66116872 arg=$1
66126873 shift
6613 func_quote_for_eval "$arg"
6614 qarg=$func_quote_for_eval_unquoted_result
6615 func_append libtool_args " $func_quote_for_eval_result"
6874 func_quote_arg pretty,unquoted "$arg"
6875 qarg=$func_quote_arg_unquoted_result
6876 func_append libtool_args " $func_quote_arg_result"
66166877
66176878 # If the previous option needs an argument, assign it.
66186879 if test -n "$prev"; then
68487109 prev=
68497110 continue
68507111 ;;
7112 xassembler)
7113 func_append compiler_flags " -Xassembler $qarg"
7114 prev=
7115 func_append compile_command " -Xassembler $qarg"
7116 func_append finalize_command " -Xassembler $qarg"
7117 continue
7118 ;;
68517119 xcclinker)
68527120 func_append linker_flags " $qarg"
68537121 func_append compiler_flags " $qarg"
70187286 # These systems don't actually have a C library (as such)
70197287 test X-lc = "X$arg" && continue
70207288 ;;
7021 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7289 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
70227290 # Do not include libc due to us having libc/libc_r.
70237291 test X-lc = "X$arg" && continue
70247292 ;;
70387306 esac
70397307 elif test X-lc_r = "X$arg"; then
70407308 case $host in
7041 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7309 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
70427310 # Do not include libc_r directly, use -pthread flag.
70437311 continue
70447312 ;;
70687336 prev=xcompiler
70697337 continue
70707338 ;;
7071
7072 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7339 # Solaris ld rejects as of 11.4. Refer to Oracle bug 22985199.
7340 -pthread)
7341 case $host in
7342 *solaris2*) ;;
7343 *)
7344 case "$new_inherited_linker_flags " in
7345 *" $arg "*) ;;
7346 * ) func_append new_inherited_linker_flags " $arg" ;;
7347 esac
7348 ;;
7349 esac
7350 continue
7351 ;;
7352 -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \
70737353 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
70747354 func_append compiler_flags " $arg"
70757355 func_append compile_command " $arg"
72107490 save_ifs=$IFS; IFS=,
72117491 for flag in $args; do
72127492 IFS=$save_ifs
7213 func_quote_for_eval "$flag"
7214 func_append arg " $func_quote_for_eval_result"
7215 func_append compiler_flags " $func_quote_for_eval_result"
7493 func_quote_arg pretty "$flag"
7494 func_append arg " $func_quote_arg_result"
7495 func_append compiler_flags " $func_quote_arg_result"
72167496 done
72177497 IFS=$save_ifs
72187498 func_stripname ' ' '' "$arg"
72267506 save_ifs=$IFS; IFS=,
72277507 for flag in $args; do
72287508 IFS=$save_ifs
7229 func_quote_for_eval "$flag"
7230 func_append arg " $wl$func_quote_for_eval_result"
7231 func_append compiler_flags " $wl$func_quote_for_eval_result"
7232 func_append linker_flags " $func_quote_for_eval_result"
7509 func_quote_arg pretty "$flag"
7510 func_append arg " $wl$func_quote_arg_result"
7511 func_append compiler_flags " $wl$func_quote_arg_result"
7512 func_append linker_flags " $func_quote_arg_result"
72337513 done
72347514 IFS=$save_ifs
72357515 func_stripname ' ' '' "$arg"
72367516 arg=$func_stripname_result
72377517 ;;
72387518
7519 -Xassembler)
7520 prev=xassembler
7521 continue
7522 ;;
7523
72397524 -Xcompiler)
72407525 prev=xcompiler
72417526 continue
72537538
72547539 # -msg_* for osf cc
72557540 -msg_*)
7256 func_quote_for_eval "$arg"
7257 arg=$func_quote_for_eval_result
7541 func_quote_arg pretty "$arg"
7542 arg=$func_quote_arg_result
72587543 ;;
72597544
72607545 # Flags to be passed through unchanged, with rationale:
72717556 # -tp=* Portland pgcc target processor selection
72727557 # --sysroot=* for sysroot support
72737558 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7559 # -specs=* GCC specs files
72747560 # -stdlib=* select c++ std lib with clang
7561 # -fsanitize=* Clang/GCC memory and address sanitizer
7562 # -fuse-ld=* Linker select flags for GCC
7563 # -static-* direct GCC to link specific libraries statically
7564 # -fcilkplus Cilk Plus language extension features for C/C++
7565 # -Wa,* Pass flags directly to the assembler
72757566 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
72767567 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7277 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*)
7278 func_quote_for_eval "$arg"
7279 arg=$func_quote_for_eval_result
7568 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7569 -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus|-Wa,*)
7570 func_quote_arg pretty "$arg"
7571 arg=$func_quote_arg_result
72807572 func_append compile_command " $arg"
72817573 func_append finalize_command " $arg"
72827574 func_append compiler_flags " $arg"
72977589 continue
72987590 else
72997591 # Otherwise treat like 'Some other compiler flag' below
7300 func_quote_for_eval "$arg"
7301 arg=$func_quote_for_eval_result
7592 func_quote_arg pretty "$arg"
7593 arg=$func_quote_arg_result
73027594 fi
73037595 ;;
73047596
73057597 # Some other compiler flag.
73067598 -* | +*)
7307 func_quote_for_eval "$arg"
7308 arg=$func_quote_for_eval_result
7599 func_quote_arg pretty "$arg"
7600 arg=$func_quote_arg_result
73097601 ;;
73107602
73117603 *.$objext)
74257717 *)
74267718 # Unknown arguments in both finalize_command and compile_command need
74277719 # to be aesthetically quoted because they are evaled later.
7428 func_quote_for_eval "$arg"
7429 arg=$func_quote_for_eval_result
7720 func_quote_arg pretty "$arg"
7721 arg=$func_quote_arg_result
74307722 ;;
74317723 esac # arg
74327724
75677859 case $pass in
75687860 dlopen) libs=$dlfiles ;;
75697861 dlpreopen) libs=$dlprefiles ;;
7570 link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
7862 link)
7863 libs="$deplibs %DEPLIBS%"
7864 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
7865 ;;
75717866 esac
75727867 fi
75737868 if test lib,dlpreopen = "$linkmode,$pass"; then
78868181 # It is a libtool convenience library, so add in its objects.
78878182 func_append convenience " $ladir/$objdir/$old_library"
78888183 func_append old_convenience " $ladir/$objdir/$old_library"
8184 tmp_libs=
8185 for deplib in $dependency_libs; do
8186 deplibs="$deplib $deplibs"
8187 if $opt_preserve_dup_deps; then
8188 case "$tmp_libs " in
8189 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
8190 esac
8191 fi
8192 func_append tmp_libs " $deplib"
8193 done
78898194 elif test prog != "$linkmode" && test lib != "$linkmode"; then
78908195 func_fatal_error "'$lib' is not a convenience library"
78918196 fi
7892 tmp_libs=
7893 for deplib in $dependency_libs; do
7894 deplibs="$deplib $deplibs"
7895 if $opt_preserve_dup_deps; then
7896 case "$tmp_libs " in
7897 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
7898 esac
7899 fi
7900 func_append tmp_libs " $deplib"
7901 done
79028197 continue
79038198 fi # $pass = conv
79048199
86318926 test CXX = "$tagname" && {
86328927 case $host_os in
86338928 linux*)
8634 case `$CC -V 2>&1 | sed 5q` in
8929 case `$CC -V 2>&1 | $SED 5q` in
86358930 *Sun\ C*) # Sun C++ 5.9
86368931 func_suncc_cstd_abi
86378932
88049099 #
88059100 case $version_type in
88069101 # correct linux to gnu/linux during the next big refactor
8807 darwin|freebsd-elf|linux|osf|windows|none)
9102 darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none)
88089103 func_arith $number_major + $number_minor
88099104 current=$func_arith_result
88109105 age=$number_minor
88219116 age=$number_minor
88229117 revision=$number_minor
88239118 lt_irix_increment=no
9119 ;;
9120 *)
9121 func_fatal_configuration "$modename: unknown library version type '$version_type'"
88249122 ;;
88259123 esac
88269124 ;;
88959193 versuffix=.$current.$revision
88969194 ;;
88979195
8898 freebsd-elf)
9196 freebsd-elf | midnightbsd-elf)
88999197 func_arith $current - $age
89009198 major=.$func_arith_result
89019199 versuffix=$major.$age.$revision
91219419 *-*-netbsd*)
91229420 # Don't link with libc until the a.out ld.so is fixed.
91239421 ;;
9124 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
9422 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
91259423 # Do not include libc due to us having libc/libc_r.
91269424 ;;
91279425 *-*-sco3.2v5* | *-*-sco5v6*)
993210230 for cmd in $concat_cmds; do
993310231 IFS=$save_ifs
993410232 $opt_quiet || {
9935 func_quote_for_expand "$cmd"
9936 eval "func_echo $func_quote_for_expand_result"
10233 func_quote_arg expand,pretty "$cmd"
10234 eval "func_echo $func_quote_arg_result"
993710235 }
993810236 $opt_dry_run || eval "$cmd" || {
993910237 lt_exit=$?
1002610324 eval cmd=\"$cmd\"
1002710325 IFS=$save_ifs
1002810326 $opt_quiet || {
10029 func_quote_for_expand "$cmd"
10030 eval "func_echo $func_quote_for_expand_result"
10327 func_quote_arg expand,pretty "$cmd"
10328 eval "func_echo $func_quote_arg_result"
1003110329 }
1003210330 $opt_dry_run || eval "$cmd" || {
1003310331 lt_exit=$?
1050110799 elif eval var_value=\$$var; test -z "$var_value"; then
1050210800 relink_command="$var=; export $var; $relink_command"
1050310801 else
10504 func_quote_for_eval "$var_value"
10505 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
10802 func_quote_arg pretty "$var_value"
10803 relink_command="$var=$func_quote_arg_result; export $var; $relink_command"
1050610804 fi
1050710805 done
10508 relink_command="(cd `pwd`; $relink_command)"
10509 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
10806 func_quote eval cd "`pwd`"
10807 func_quote_arg pretty,unquoted "($func_quote_result; $relink_command)"
10808 relink_command=$func_quote_arg_unquoted_result
1051010809 fi
1051110810
1051210811 # Only actually do things if not in dry run mode.
1074611045 elif eval var_value=\$$var; test -z "$var_value"; then
1074711046 relink_command="$var=; export $var; $relink_command"
1074811047 else
10749 func_quote_for_eval "$var_value"
10750 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
11048 func_quote_arg pretty,unquoted "$var_value"
11049 relink_command="$var=$func_quote_arg_unquoted_result; export $var; $relink_command"
1075111050 fi
1075211051 done
1075311052 # Quote the link command for shipping.
10754 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10755 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
11053 func_quote eval cd "`pwd`"
11054 relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
11055 func_quote_arg pretty,unquoted "$relink_command"
11056 relink_command=$func_quote_arg_unquoted_result
1075611057 if test yes = "$hardcode_automatic"; then
1075711058 relink_command=
1075811059 fi
00 #! /bin/sh
11 # Common wrapper for a few potentially missing GNU programs.
22
3 scriptversion=2013-10-28.13; # UTC
4
5 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
66 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
77
88 # This program is free software; you can redistribute it and/or modify
1616 # GNU General Public License for more details.
1717
1818 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
2121 # As a special exception to the GNU General Public License, if you
2222 # distribute this file as part of a program that contains a
100100 exit $st
101101 fi
102102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
103 perl_URL=https://www.perl.org/
104 flex_URL=https://github.com/westes/flex
105 gnu_software_URL=https://www.gnu.org/software
106106
107107 program_details ()
108108 {
206206 exit $st
207207
208208 # Local variables:
209 # eval: (add-hook 'write-file-hooks 'time-stamp)
209 # eval: (add-hook 'before-save-hook 'time-stamp)
210210 # time-stamp-start: "scriptversion="
211211 # time-stamp-format: "%:y-%02m-%02d.%02H"
212 # time-stamp-time-zone: "UTC"
212 # time-stamp-time-zone: "UTC0"
213213 # time-stamp-end: "; # UTC"
214214 # End:
00 #! /bin/sh
11 # test-driver - basic testsuite driver script.
22
3 scriptversion=2013-07-13.22; # UTC
3 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 2011-2014 Free Software Foundation, Inc.
5 # Copyright (C) 2011-2021 Free Software Foundation, Inc.
66 #
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
1515 # GNU General Public License for more details.
1616 #
1717 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
2020 # As a special exception to the GNU General Public License, if you
2121 # distribute this file as part of a program that contains a
4141 {
4242 cat <<END
4343 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}] [--]
4747 TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
48
4849 The '--test-name', '--log-file' and '--trs-file' options are mandatory.
50 See the GNU Automake documentation for information.
4951 END
5052 }
5153
102104 trap "st=141; $do_exit" 13
103105 trap "st=143; $do_exit" 15
104106
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
107112 estatus=$?
108113
109114 if test $enable_hard_errors = no && test $estatus -eq 99; then
125130 # know whether the test passed or failed simply by looking at the '.log'
126131 # file, without the need of also peaking into the corresponding '.trs'
127132 # file (automake bug#11814).
128 echo "$res $test_name (exit status: $estatus)" >>$log_file
133 echo "$res $test_name (exit status: $estatus)" >>"$log_file"
129134
130135 # Report outcome to console.
131136 echo "${col}${res}${std}: $test_name"
139144 # Local Variables:
140145 # mode: shell-script
141146 # sh-indentation: 2
142 # eval: (add-hook 'write-file-hooks 'time-stamp)
147 # eval: (add-hook 'before-save-hook 'time-stamp)
143148 # time-stamp-start: "scriptversion="
144149 # time-stamp-format: "%:y-%02m-%02d.%02H"
145 # time-stamp-time-zone: "UTC"
150 # time-stamp-time-zone: "UTC0"
146151 # time-stamp-end: "; # UTC"
147152 # End:
1616 /* Define to 1 if you have the <inttypes.h> header file. */
1717 #undef HAVE_INTTYPES_H
1818
19 /* Define to 1 if you have the <memory.h> header file. */
20 #undef HAVE_MEMORY_H
19 /* Define to 1 if you have the <minix/config.h> header file. */
20 #undef HAVE_MINIX_CONFIG_H
2121
2222 /* Define to 1 if you have the `open64' function. */
2323 #undef HAVE_OPEN64
2727
2828 /* Define to 1 if you have the <stdint.h> header file. */
2929 #undef HAVE_STDINT_H
30
31 /* Define to 1 if you have the <stdio.h> header file. */
32 #undef HAVE_STDIO_H
3033
3134 /* Define to 1 if you have the <stdlib.h> header file. */
3235 #undef HAVE_STDLIB_H
5154
5255 /* Define to 1 if you have the <unistd.h> header file. */
5356 #undef HAVE_UNISTD_H
57
58 /* Define to 1 if you have the <wchar.h> header file. */
59 #undef HAVE_WCHAR_H
5460
5561 /* Define to the sub-directory where libtool stores uninstalled libraries. */
5662 #undef LT_OBJDIR
8288 /* The size of `mode_t', as computed by sizeof. */
8389 #undef SIZEOF_MODE_T
8490
85 /* Define to 1 if you have the ANSI C header files. */
91 /* Define to 1 if all of the C90 standard headers exist (not just the ones
92 required in a freestanding environment). This macro is provided for
93 backward compatibility; new code need not use it. */
8694 #undef STDC_HEADERS
8795
8896 /* If the compiler supports a TLS storage class define it to that here */
92100 #ifndef _ALL_SOURCE
93101 # undef _ALL_SOURCE
94102 #endif
103 /* Enable general extensions on macOS. */
104 #ifndef _DARWIN_C_SOURCE
105 # undef _DARWIN_C_SOURCE
106 #endif
107 /* Enable general extensions on Solaris. */
108 #ifndef __EXTENSIONS__
109 # undef __EXTENSIONS__
110 #endif
95111 /* Enable GNU extensions on systems that have them. */
96112 #ifndef _GNU_SOURCE
97113 # undef _GNU_SOURCE
98114 #endif
99 /* Enable threading extensions on Solaris. */
115 /* Enable X/Open compliant socket functions that do not require linking
116 with -lxnet on HP-UX 11.11. */
117 #ifndef _HPUX_ALT_XOPEN_SOCKET_API
118 # undef _HPUX_ALT_XOPEN_SOCKET_API
119 #endif
120 /* Identify the host operating system as Minix.
121 This macro does not affect the system headers' behavior.
122 A future release of Autoconf may stop defining this macro. */
123 #ifndef _MINIX
124 # undef _MINIX
125 #endif
126 /* Enable general extensions on NetBSD.
127 Enable NetBSD compatibility extensions on Minix. */
128 #ifndef _NETBSD_SOURCE
129 # undef _NETBSD_SOURCE
130 #endif
131 /* Enable OpenBSD compatibility extensions on NetBSD.
132 Oddly enough, this does nothing on OpenBSD. */
133 #ifndef _OPENBSD_SOURCE
134 # undef _OPENBSD_SOURCE
135 #endif
136 /* Define to 1 if needed for POSIX-compatible behavior. */
137 #ifndef _POSIX_SOURCE
138 # undef _POSIX_SOURCE
139 #endif
140 /* Define to 2 if needed for POSIX-compatible behavior. */
141 #ifndef _POSIX_1_SOURCE
142 # undef _POSIX_1_SOURCE
143 #endif
144 /* Enable POSIX-compatible threading on Solaris. */
100145 #ifndef _POSIX_PTHREAD_SEMANTICS
101146 # undef _POSIX_PTHREAD_SEMANTICS
147 #endif
148 /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */
149 #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
150 # undef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
151 #endif
152 /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */
153 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
154 # undef __STDC_WANT_IEC_60559_BFP_EXT__
155 #endif
156 /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */
157 #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
158 # undef __STDC_WANT_IEC_60559_DFP_EXT__
159 #endif
160 /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
161 #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
162 # undef __STDC_WANT_IEC_60559_FUNCS_EXT__
163 #endif
164 /* Enable extensions specified by ISO/IEC TS 18661-3:2015. */
165 #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
166 # undef __STDC_WANT_IEC_60559_TYPES_EXT__
167 #endif
168 /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */
169 #ifndef __STDC_WANT_LIB_EXT2__
170 # undef __STDC_WANT_LIB_EXT2__
171 #endif
172 /* Enable extensions specified by ISO/IEC 24747:2009. */
173 #ifndef __STDC_WANT_MATH_SPEC_FUNCS__
174 # undef __STDC_WANT_MATH_SPEC_FUNCS__
102175 #endif
103176 /* Enable extensions on HP NonStop. */
104177 #ifndef _TANDEM_SOURCE
105178 # undef _TANDEM_SOURCE
106179 #endif
107 /* Enable general extensions on Solaris. */
108 #ifndef __EXTENSIONS__
109 # undef __EXTENSIONS__
180 /* Enable X/Open extensions. Define to 500 only if necessary
181 to make mbstate_t available. */
182 #ifndef _XOPEN_SOURCE
183 # undef _XOPEN_SOURCE
110184 #endif
111185
112186
113187 /* Version number of package */
114188 #undef VERSION
115
116 /* Define to 1 if on MINIX. */
117 #undef _MINIX
118
119 /* Define to 2 if the system does not provide POSIX.1 features except with
120 this defined. */
121 #undef _POSIX_1_SOURCE
122
123 /* Define to 1 if you need to in order for `stat' and other things to work. */
124 #undef _POSIX_SOURCE
+3474
-2666
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for libeatmydata 130.
2 # Generated by GNU Autoconf 2.71 for libeatmydata 131.
33 #
44 # Report bugs to <http://www.flamingspork.com/projects/libeatmydata>.
55 #
66 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
8 # Inc.
89 #
910 #
1011 # This configure script is free software; the Free Software Foundation
1516
1617 # Be more Bourne compatible
1718 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 as_nop=:
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
1922 emulate sh
2023 NULLCMD=:
2124 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2225 # is contrary to our usage. Disable this feature.
2326 alias -g '${1+"$@"}'='"$@"'
2427 setopt NO_GLOB_SUBST
25 else
28 else $as_nop
2629 case `(set -o) 2>/dev/null` in #(
2730 *posix*) :
2831 set -o posix ;; #(
3235 fi
3336
3437
38
39 # Reset variables that may have inherited troublesome values from
40 # the environment.
41
42 # IFS needs to be set, to space, tab, and newline, in precisely that order.
43 # (If _AS_PATH_WALK were called with IFS unset, it would have the
44 # side effect of setting IFS to empty, thus disabling word splitting.)
45 # Quoting is to prevent editors from complaining about space-tab.
3546 as_nl='
3647 '
3748 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
49 IFS=" "" $as_nl"
50
51 PS1='$ '
52 PS2='> '
53 PS4='+ '
54
55 # Ensure predictable behavior from utilities with locale-dependent output.
56 LC_ALL=C
57 export LC_ALL
58 LANGUAGE=C
59 export LANGUAGE
60
61 # We cannot yet rely on "unset" to work, but we need these variables
62 # to be unset--not just set to an empty or harmless value--now, to
63 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
64 # also avoids known problems related to "unset" and subshell syntax
65 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
66 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
67 do eval test \${$as_var+y} \
68 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
69 done
70
71 # Ensure that fds 0, 1, and 2 are open.
72 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
73 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
74 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7275
7376 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
77 if ${PATH_SEPARATOR+false} :; then
7578 PATH_SEPARATOR=:
7679 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7780 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7982 }
8083 fi
8184
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
8985
9086 # Find who we are. Look in the path if we contain no directory separator.
9187 as_myself=
9591 for as_dir in $PATH
9692 do
9793 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
94 case $as_dir in #(((
95 '') as_dir=./ ;;
96 */) ;;
97 *) as_dir=$as_dir/ ;;
98 esac
99 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
100100 done
101101 IFS=$as_save_IFS
102102
108108 as_myself=$0
109109 fi
110110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112112 exit 1
113113 fi
114114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135115
136116 # Use a proper internal environment variable to ensure we don't fall
137117 # into an infinite loop, continuously re-executing ourselves.
153133 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154134 # Admittedly, this is quite paranoid, since all the known shells bail
155135 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
136 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
137 exit 255
158138 fi
159139 # We don't want this to propagate to other subprocesses.
160140 { _as_can_reexec=; unset _as_can_reexec;}
161141 if test "x$CONFIG_SHELL" = x; then
162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 as_bourne_compatible="as_nop=:
143 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
163145 emulate sh
164146 NULLCMD=:
165147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166148 # is contrary to our usage. Disable this feature.
167149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
168150 setopt NO_GLOB_SUBST
169 else
151 else \$as_nop
170152 case \`(set -o) 2>/dev/null\` in #(
171153 *posix*) :
172154 set -o posix ;; #(
186168 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187169 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188170 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
171 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
172 then :
173
174 else \$as_nop
192175 exitcode=1; echo positional parameters were not saved.
193176 fi
194177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
195180 test -x / || exit 1"
196181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test \$(( 1 + 1 )) = 2 || exit 1
201185
202186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206190 PATH=/empty FPATH=/empty; export PATH FPATH
207191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
209 if (eval "$as_required") 2>/dev/null; then :
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
210196 as_have_required=yes
211 else
197 else $as_nop
212198 as_have_required=no
213199 fi
214 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215
216 else
200 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
201 then :
202
203 else $as_nop
217204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218205 as_found=false
219206 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220207 do
221208 IFS=$as_save_IFS
222 test -z "$as_dir" && as_dir=.
209 case $as_dir in #(((
210 '') as_dir=./ ;;
211 */) ;;
212 *) as_dir=$as_dir/ ;;
213 esac
223214 as_found=:
224215 case $as_dir in #(
225216 /*)
226217 for as_base in sh bash ksh sh5; do
227218 # Try only shells that exist, to save several forks.
228 as_shell=$as_dir/$as_base
219 as_shell=$as_dir$as_base
229220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
230 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
222 then :
231223 CONFIG_SHELL=$as_shell as_have_required=yes
232 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
225 then :
233226 break 2
234227 fi
235228 fi
237230 esac
238231 as_found=false
239232 done
240 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
241 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 IFS=$as_save_IFS
234 if $as_found
235 then :
236
237 else $as_nop
238 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
239 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
240 then :
242241 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi; }
244 IFS=$as_save_IFS
245
246
247 if test "x$CONFIG_SHELL" != x; then :
242 fi
243 fi
244
245
246 if test "x$CONFIG_SHELL" != x
247 then :
248248 export CONFIG_SHELL
249249 # We cannot yet assume a decent shell, so we have to provide a
250250 # neutralization value for shells without unset; and this also
262262 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
263263 # Admittedly, this is quite paranoid, since all the known shells bail
264264 # out after a failed `exec'.
265 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
266266 exit 255
267267 fi
268268
269 if test x$as_have_required = xno; then :
270 $as_echo "$0: This script requires a shell more modern than all"
271 $as_echo "$0: the shells that I found on your system."
272 if test x${ZSH_VERSION+set} = xset ; then
273 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 if test x$as_have_required = xno
270 then :
271 printf "%s\n" "$0: This script requires a shell more modern than all"
272 printf "%s\n" "$0: the shells that I found on your system."
273 if test ${ZSH_VERSION+y} ; then
274 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275276 else
276 $as_echo "$0: Please tell bug-autoconf@gnu.org and
277 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
277278 $0: http://www.flamingspork.com/projects/libeatmydata about
278279 $0: your system, including any error possibly output before
279280 $0: this message. Then install a modern shell, or manually
301302 }
302303 as_unset=as_fn_unset
303304
305
304306 # as_fn_set_status STATUS
305307 # -----------------------
306308 # Set $? to STATUS, without forking.
318320 as_fn_set_status $1
319321 exit $1
320322 } # as_fn_exit
323 # as_fn_nop
324 # ---------
325 # Do nothing but, unlike ":", preserve the value of $?.
326 as_fn_nop ()
327 {
328 return $?
329 }
330 as_nop=as_fn_nop
321331
322332 # as_fn_mkdir_p
323333 # -------------
332342 as_dirs=
333343 while :; do
334344 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
345 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336346 *) as_qdir=$as_dir;;
337347 esac
338348 as_dirs="'$as_qdir' $as_dirs"
341351 X"$as_dir" : 'X\(//\)[^/]' \| \
342352 X"$as_dir" : 'X\(//\)$' \| \
343353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
354 printf "%s\n" X"$as_dir" |
345355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346356 s//\1/
347357 q
380390 # advantage of any shell optimizations that allow amortized linear growth over
381391 # repeated appends, instead of the typical quadratic growth present in naive
382392 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
393 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
394 then :
384395 eval 'as_fn_append ()
385396 {
386397 eval $1+=\$2
387398 }'
388 else
399 else $as_nop
389400 as_fn_append ()
390401 {
391402 eval $1=\$$1\$2
397408 # Perform arithmetic evaluation on the ARGs, and store the result in the
398409 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399410 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
411 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
412 then :
401413 eval 'as_fn_arith ()
402414 {
403415 as_val=$(( $* ))
404416 }'
405 else
417 else $as_nop
406418 as_fn_arith ()
407419 {
408420 as_val=`expr "$@" || test $? -eq 1`
409421 }
410422 fi # as_fn_arith
411423
424 # as_fn_nop
425 # ---------
426 # Do nothing but, unlike ":", preserve the value of $?.
427 as_fn_nop ()
428 {
429 return $?
430 }
431 as_nop=as_fn_nop
412432
413433 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414434 # ----------------------------------------
420440 as_status=$1; test $as_status -eq 0 && as_status=1
421441 if test "$4"; then
422442 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424444 fi
425 $as_echo "$as_me: error: $2" >&2
445 printf "%s\n" "$as_me: error: $2" >&2
426446 as_fn_exit $as_status
427447 } # as_fn_error
428448
449469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450470 X"$0" : 'X\(//\)$' \| \
451471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 $as_echo X/"$0" |
472 printf "%s\n" X/"$0" |
453473 sed '/^.*\/\([^/][^/]*\)\/*$/{
454474 s//\1/
455475 q
493513 s/-\n.*//
494514 ' >$as_me.lineno &&
495515 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
516 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497517
498518 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499519 # already done that, so ensure we don't try to do so again and fall
507527 exit
508528 }
509529
530
531 # Determine whether it's possible to make 'echo' print without a newline.
532 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
533 # for compatibility with existing Makefiles.
510534 ECHO_C= ECHO_N= ECHO_T=
511535 case `echo -n x` in #(((((
512536 -n*)
519543 *)
520544 ECHO_N='-n';;
521545 esac
546
547 # For backward compatibility with old third-party macros, we provide
548 # the shell variables $as_echo and $as_echo_n. New code should use
549 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
550 as_echo='printf %s\n'
551 as_echo_n='printf %s'
552
522553
523554 rm -f conf$$ conf$$.exe conf$$.file
524555 if test -d conf$$.dir; then
589620 # Identity of this package.
590621 PACKAGE_NAME='libeatmydata'
591622 PACKAGE_TARNAME='libeatmydata'
592 PACKAGE_VERSION='130'
593 PACKAGE_STRING='libeatmydata 130'
623 PACKAGE_VERSION='131'
624 PACKAGE_STRING='libeatmydata 131'
594625 PACKAGE_BUGREPORT='http://www.flamingspork.com/projects/libeatmydata'
595626 PACKAGE_URL=''
596627
597628 ac_unique_file="libeatmydata/libeatmydata.c"
598629 # Factoring default headers for most tests.
599630 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
603634 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
635 #ifdef HAVE_STDLIB_H
608636 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614637 #endif
615638 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619639 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623640 #endif
624641 #ifdef HAVE_INTTYPES_H
625642 # include <inttypes.h>
627644 #ifdef HAVE_STDINT_H
628645 # include <stdint.h>
629646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
630656 #ifdef HAVE_UNISTD_H
631657 # include <unistd.h>
632658 #endif"
633659
634 ac_header_list=
660 ac_header_c_list=
635661 ac_subst_vars='am__EXEEXT_FALSE
636662 am__EXEEXT_TRUE
637663 LTLIBOBJS
650676 AR
651677 DLLTOOL
652678 OBJDUMP
679 FILECMD
653680 LN_S
654681 NM
655682 ac_ct_DUMPBIN
656683 DUMPBIN
657684 LD
658685 FGREP
686 EGREP
687 GREP
659688 SED
660689 LIBTOOL
661690 AM_BACKSLASH
662691 AM_DEFAULT_VERBOSITY
663692 AM_DEFAULT_V
664693 AM_V
694 CSCOPE
695 ETAGS
696 CTAGS
665697 am__fastdepCC_FALSE
666698 am__fastdepCC_TRUE
667699 CCDEPMODE
694726 INSTALL_DATA
695727 INSTALL_SCRIPT
696728 INSTALL_PROGRAM
697 EGREP
698 GREP
699 CPP
700729 OBJEXT
701730 EXEEXT
702731 ac_ct_CC
778807 LDFLAGS
779808 LIBS
780809 CPPFLAGS
781 CPP
782810 LT_SYS_LIBRARY_PATH'
783811
784812
848876 *) ac_optarg=yes ;;
849877 esac
850878
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
853879 case $ac_dashdash$ac_option in
854880 --)
855881 ac_dashdash=yes ;;
890916 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891917 # Reject names that are not valid shell variable names.
892918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: $ac_useropt"
919 as_fn_error $? "invalid feature name: \`$ac_useropt'"
894920 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
896922 case $ac_user_opts in
897923 *"
898924 "enable_$ac_useropt"
916942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917943 # Reject names that are not valid shell variable names.
918944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
945 as_fn_error $? "invalid feature name: \`$ac_useropt'"
920946 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
922948 case $ac_user_opts in
923949 *"
924950 "enable_$ac_useropt"
11291155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11301156 # Reject names that are not valid shell variable names.
11311157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1158 as_fn_error $? "invalid package name: \`$ac_useropt'"
11331159 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11351161 case $ac_user_opts in
11361162 *"
11371163 "with_$ac_useropt"
11451171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11461172 # Reject names that are not valid shell variable names.
11471173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: $ac_useropt"
1174 as_fn_error $? "invalid package name: \`$ac_useropt'"
11491175 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11511177 case $ac_user_opts in
11521178 *"
11531179 "with_$ac_useropt"
11911217
11921218 *)
11931219 # FIXME: should be removed in autoconf 3.0.
1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
11951221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
11971223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
11981224 ;;
11991225
12091235 case $enable_option_checking in
12101236 no) ;;
12111237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12131239 esac
12141240 fi
12151241
12731299 X"$as_myself" : 'X\(//\)[^/]' \| \
12741300 X"$as_myself" : 'X\(//\)$' \| \
12751301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276 $as_echo X"$as_myself" |
1302 printf "%s\n" X"$as_myself" |
12771303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12781304 s//\1/
12791305 q
13301356 # Omit some internal or obsolete options to make the list less imposing.
13311357 # This message is too long to be a string in the A/UX 3.1 sh.
13321358 cat <<_ACEOF
1333 \`configure' configures libeatmydata 130 to adapt to many kinds of systems.
1359 \`configure' configures libeatmydata 131 to adapt to many kinds of systems.
13341360
13351361 Usage: $0 [OPTION]... [VAR=VALUE]...
13361362
14021428
14031429 if test -n "$ac_init_help"; then
14041430 case $ac_init_help in
1405 short | recursive ) echo "Configuration of libeatmydata 130:";;
1431 short | recursive ) echo "Configuration of libeatmydata 131:";;
14061432 esac
14071433 cat <<\_ACEOF
14081434
14421468 LIBS libraries to pass to the linker, e.g. -l<library>
14431469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14441470 you have headers in a nonstandard directory <include dir>
1445 CPP C preprocessor
14461471 LT_SYS_LIBRARY_PATH
14471472 User-defined run-time library search path.
14481473
14651490 case "$ac_dir" in
14661491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14671492 *)
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1493 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14691494 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1495 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14711496 case $ac_top_builddir_sub in
14721497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14731498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14951520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14961521
14971522 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1523 # Check for configure.gnu first; this name is used for a wrapper for
1524 # Metaconfig's "Configure" on case-insensitive file systems.
14991525 if test -f "$ac_srcdir/configure.gnu"; then
15001526 echo &&
15011527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
15031529 echo &&
15041530 $SHELL "$ac_srcdir/configure" --help=recursive
15051531 else
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15071533 fi || ac_status=$?
15081534 cd "$ac_pwd" || { ac_status=$?; break; }
15091535 done
15121538 test -n "$ac_init_help" && exit $ac_status
15131539 if $ac_init_version; then
15141540 cat <<\_ACEOF
1515 libeatmydata configure 130
1516 generated by GNU Autoconf 2.69
1517
1518 Copyright (C) 2012 Free Software Foundation, Inc.
1541 libeatmydata configure 131
1542 generated by GNU Autoconf 2.71
1543
1544 Copyright (C) 2021 Free Software Foundation, Inc.
15191545 This configure script is free software; the Free Software Foundation
15201546 gives unlimited permission to copy, distribute and modify it.
15211547 _ACEOF
15321558 ac_fn_c_try_compile ()
15331559 {
15341560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1561 rm -f conftest.$ac_objext conftest.beam
15361562 if { { ac_try="$ac_compile"
15371563 case "(($ac_try" in
15381564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391565 *) ac_try_echo=$ac_try;;
15401566 esac
15411567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1568 printf "%s\n" "$ac_try_echo"; } >&5
15431569 (eval "$ac_compile") 2>conftest.err
15441570 ac_status=$?
15451571 if test -s conftest.err; then
15471573 cat conftest.er1 >&5
15481574 mv -f conftest.er1 conftest.err
15491575 fi
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15511577 test $ac_status = 0; } && {
15521578 test -z "$ac_c_werror_flag" ||
15531579 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1580 } && test -s conftest.$ac_objext
1581 then :
15551582 ac_retval=0
1556 else
1557 $as_echo "$as_me: failed program was:" >&5
1583 else $as_nop
1584 printf "%s\n" "$as_me: failed program was:" >&5
15581585 sed 's/^/| /' conftest.$ac_ext >&5
15591586
15601587 ac_retval=1
15631590 as_fn_set_status $ac_retval
15641591
15651592 } # ac_fn_c_try_compile
1566
1567 # ac_fn_c_try_cpp LINENO
1568 # ----------------------
1569 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_cpp ()
1571 {
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 if { { ac_try="$ac_cpp conftest.$ac_ext"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } > conftest.i && {
1589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 }; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598 fi
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1601
1602 } # ac_fn_c_try_cpp
1603
1604 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1605 # -------------------------------------------------------
1606 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1607 # the include files in INCLUDES and setting the cache variable VAR
1608 # accordingly.
1609 ac_fn_c_check_header_mongrel ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 if eval \${$3+:} false; then :
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614 $as_echo_n "checking for $2... " >&6; }
1615 if eval \${$3+:} false; then :
1616 $as_echo_n "(cached) " >&6
1617 fi
1618 eval ac_res=\$$3
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1621 else
1622 # Is the header compilable?
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1624 $as_echo_n "checking $2 usability... " >&6; }
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 $4
1628 #include <$2>
1629 _ACEOF
1630 if ac_fn_c_try_compile "$LINENO"; then :
1631 ac_header_compiler=yes
1632 else
1633 ac_header_compiler=no
1634 fi
1635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1637 $as_echo "$ac_header_compiler" >&6; }
1638
1639 # Is the header present?
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1641 $as_echo_n "checking $2 presence... " >&6; }
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1644 #include <$2>
1645 _ACEOF
1646 if ac_fn_c_try_cpp "$LINENO"; then :
1647 ac_header_preproc=yes
1648 else
1649 ac_header_preproc=no
1650 fi
1651 rm -f conftest.err conftest.i conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1653 $as_echo "$ac_header_preproc" >&6; }
1654
1655 # So? What about this header?
1656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1657 yes:no: )
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1659 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662 ;;
1663 no:yes:* )
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1665 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1667 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1669 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1671 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 ( $as_echo "## ---------------------------------------------------------------- ##
1675 ## Report this to http://www.flamingspork.com/projects/libeatmydata ##
1676 ## ---------------------------------------------------------------- ##"
1677 ) | sed "s/^/$as_me: WARNING: /" >&2
1678 ;;
1679 esac
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683 $as_echo_n "(cached) " >&6
1684 else
1685 eval "$3=\$ac_header_compiler"
1686 fi
1687 eval ac_res=\$$3
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693 } # ac_fn_c_check_header_mongrel
1694
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1699 ac_fn_c_try_run ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=$ac_status
1730 fi
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_run
17361593
17371594 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
17381595 # -------------------------------------------------------
17411598 ac_fn_c_check_header_compile ()
17421599 {
17431600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1748 else
1601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602 printf %s "checking for $2... " >&6; }
1603 if eval test \${$3+y}
1604 then :
1605 printf %s "(cached) " >&6
1606 else $as_nop
17491607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17501608 /* end confdefs.h. */
17511609 $4
17521610 #include <$2>
17531611 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"; then :
1612 if ac_fn_c_try_compile "$LINENO"
1613 then :
17551614 eval "$3=yes"
1756 else
1615 else $as_nop
17571616 eval "$3=no"
17581617 fi
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17601619 fi
17611620 eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 printf "%s\n" "$ac_res" >&6; }
17641623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17651624
17661625 } # ac_fn_c_check_header_compile
17711630 ac_fn_c_try_link ()
17721631 {
17731632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext conftest$ac_exeext
1633 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
17751634 if { { ac_try="$ac_link"
17761635 case "(($ac_try" in
17771636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781637 *) ac_try_echo=$ac_try;;
17791638 esac
17801639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1640 printf "%s\n" "$ac_try_echo"; } >&5
17821641 (eval "$ac_link") 2>conftest.err
17831642 ac_status=$?
17841643 if test -s conftest.err; then
17861645 cat conftest.er1 >&5
17871646 mv -f conftest.er1 conftest.err
17881647 fi
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17901649 test $ac_status = 0; } && {
17911650 test -z "$ac_c_werror_flag" ||
17921651 test ! -s conftest.err
17931652 } && test -s conftest$ac_exeext && {
17941653 test "$cross_compiling" = yes ||
17951654 test -x conftest$ac_exeext
1796 }; then :
1655 }
1656 then :
17971657 ac_retval=0
1798 else
1799 $as_echo "$as_me: failed program was:" >&5
1658 else $as_nop
1659 printf "%s\n" "$as_me: failed program was:" >&5
18001660 sed 's/^/| /' conftest.$ac_ext >&5
18011661
18021662 ac_retval=1
18171677 ac_fn_c_check_func ()
18181678 {
18191679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1824 else
1680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 printf %s "checking for $2... " >&6; }
1682 if eval test \${$3+y}
1683 then :
1684 printf %s "(cached) " >&6
1685 else $as_nop
18251686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18261687 /* end confdefs.h. */
18271688 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
18291690 #define $2 innocuous_$2
18301691
18311692 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1835
1836 #ifdef __STDC__
1837 # include <limits.h>
1838 #else
1839 # include <assert.h>
1840 #endif
1841
1693 which can conflict with char $2 (); below. */
1694
1695 #include <limits.h>
18421696 #undef $2
18431697
18441698 /* Override any GCC internal prototype to avoid an error.
18561710 #endif
18571711
18581712 int
1859 main ()
1713 main (void)
18601714 {
18611715 return $2 ();
18621716 ;
18631717 return 0;
18641718 }
18651719 _ACEOF
1866 if ac_fn_c_try_link "$LINENO"; then :
1720 if ac_fn_c_try_link "$LINENO"
1721 then :
18671722 eval "$3=yes"
1868 else
1723 else $as_nop
18691724 eval "$3=no"
18701725 fi
1871 rm -f core conftest.err conftest.$ac_objext \
1726 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18721727 conftest$ac_exeext conftest.$ac_ext
18731728 fi
18741729 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 printf "%s\n" "$ac_res" >&6; }
18771732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18781733
18791734 } # ac_fn_c_check_func
1735
1736 # ac_fn_c_try_run LINENO
1737 # ----------------------
1738 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1739 # executables *can* be run.
1740 ac_fn_c_try_run ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_link"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 printf "%s\n" "$ac_try_echo"; } >&5
1750 (eval "$ac_link") 2>&5
1751 ac_status=$?
1752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1754 { { case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 printf "%s\n" "$ac_try_echo"; } >&5
1760 (eval "$ac_try") 2>&5
1761 ac_status=$?
1762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; }; }
1764 then :
1765 ac_retval=0
1766 else $as_nop
1767 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1768 printf "%s\n" "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=$ac_status
1772 fi
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_run
18801778
18811779 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
18821780 # --------------------------------------------
18921790 /* end confdefs.h. */
18931791 $4
18941792 int
1895 main ()
1793 main (void)
18961794 {
18971795 static int test_array [1 - 2 * !(($2) >= 0)];
18981796 test_array [0] = 0;
19021800 return 0;
19031801 }
19041802 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1803 if ac_fn_c_try_compile "$LINENO"
1804 then :
19061805 ac_lo=0 ac_mid=0
19071806 while :; do
19081807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19091808 /* end confdefs.h. */
19101809 $4
19111810 int
1912 main ()
1811 main (void)
19131812 {
19141813 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
19151814 test_array [0] = 0;
19191818 return 0;
19201819 }
19211820 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1821 if ac_fn_c_try_compile "$LINENO"
1822 then :
19231823 ac_hi=$ac_mid; break
1924 else
1824 else $as_nop
19251825 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
19261826 if test $ac_lo -le $ac_mid; then
19271827 ac_lo= ac_hi=
19291829 fi
19301830 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
19311831 fi
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19331833 done
1934 else
1834 else $as_nop
19351835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19361836 /* end confdefs.h. */
19371837 $4
19381838 int
1939 main ()
1839 main (void)
19401840 {
19411841 static int test_array [1 - 2 * !(($2) < 0)];
19421842 test_array [0] = 0;
19461846 return 0;
19471847 }
19481848 _ACEOF
1949 if ac_fn_c_try_compile "$LINENO"; then :
1849 if ac_fn_c_try_compile "$LINENO"
1850 then :
19501851 ac_hi=-1 ac_mid=-1
19511852 while :; do
19521853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19531854 /* end confdefs.h. */
19541855 $4
19551856 int
1956 main ()
1857 main (void)
19571858 {
19581859 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
19591860 test_array [0] = 0;
19631864 return 0;
19641865 }
19651866 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"; then :
1867 if ac_fn_c_try_compile "$LINENO"
1868 then :
19671869 ac_lo=$ac_mid; break
1968 else
1870 else $as_nop
19691871 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
19701872 if test $ac_mid -le $ac_hi; then
19711873 ac_lo= ac_hi=
19731875 fi
19741876 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
19751877 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19771879 done
1978 else
1880 else $as_nop
19791881 ac_lo= ac_hi=
19801882 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19841886 # Binary search between lo and hi bounds.
19851887 while test "x$ac_lo" != "x$ac_hi"; do
19861888 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
19881890 /* end confdefs.h. */
19891891 $4
19901892 int
1991 main ()
1893 main (void)
19921894 {
19931895 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
19941896 test_array [0] = 0;
19981900 return 0;
19991901 }
20001902 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
1903 if ac_fn_c_try_compile "$LINENO"
1904 then :
20021905 ac_hi=$ac_mid
2003 else
1906 else $as_nop
20041907 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
20051908 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20071910 done
20081911 case $ac_lo in #((
20091912 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
20131916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20141917 /* end confdefs.h. */
20151918 $4
2016 static long int longval () { return $2; }
2017 static unsigned long int ulongval () { return $2; }
1919 static long int longval (void) { return $2; }
1920 static unsigned long int ulongval (void) { return $2; }
20181921 #include <stdio.h>
20191922 #include <stdlib.h>
20201923 int
2021 main ()
1924 main (void)
20221925 {
20231926
20241927 FILE *f = fopen ("conftest.val", "w");
20461949 return 0;
20471950 }
20481951 _ACEOF
2049 if ac_fn_c_try_run "$LINENO"; then :
1952 if ac_fn_c_try_run "$LINENO"
1953 then :
20501954 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2051 else
1955 else $as_nop
20521956 ac_retval=1
20531957 fi
20541958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20681972 ac_fn_c_check_type ()
20691973 {
20701974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
1975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 printf %s "checking for $2... " >&6; }
1977 if eval test \${$3+y}
1978 then :
1979 printf %s "(cached) " >&6
1980 else $as_nop
20761981 eval "$3=no"
20771982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20781983 /* end confdefs.h. */
20791984 $4
20801985 int
2081 main ()
1986 main (void)
20821987 {
20831988 if (sizeof ($2))
20841989 return 0;
20861991 return 0;
20871992 }
20881993 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
1994 if ac_fn_c_try_compile "$LINENO"
1995 then :
20901996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20911997 /* end confdefs.h. */
20921998 $4
20931999 int
2094 main ()
2000 main (void)
20952001 {
20962002 if (sizeof (($2)))
20972003 return 0;
20992005 return 0;
21002006 }
21012007 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103
2104 else
2008 if ac_fn_c_try_compile "$LINENO"
2009 then :
2010
2011 else $as_nop
21052012 eval "$3=yes"
21062013 fi
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21102017 fi
21112018 eval ac_res=\$$3
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 printf "%s\n" "$ac_res" >&6; }
21142021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21152022
21162023 } # ac_fn_c_check_type
21172024
2118 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2119 # ---------------------------------------------
2025 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2026 # ------------------------------------------------------------------
21202027 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2121 # accordingly.
2122 ac_fn_c_check_decl ()
2028 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2029 ac_fn_check_decl ()
21232030 {
21242031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21252032 as_decl_name=`echo $2|sed 's/ *(.*//'`
2033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2034 printf %s "checking whether $as_decl_name is declared... " >&6; }
2035 if eval test \${$3+y}
2036 then :
2037 printf %s "(cached) " >&6
2038 else $as_nop
21262039 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2128 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2129 if eval \${$3+:} false; then :
2130 $as_echo_n "(cached) " >&6
2131 else
2040 eval ac_save_FLAGS=\$$6
2041 as_fn_append $6 " $5"
21322042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21332043 /* end confdefs.h. */
21342044 $4
21352045 int
2136 main ()
2046 main (void)
21372047 {
21382048 #ifndef $as_decl_name
21392049 #ifdef __cplusplus
21472057 return 0;
21482058 }
21492059 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2060 if ac_fn_c_try_compile "$LINENO"
2061 then :
21512062 eval "$3=yes"
2152 else
2063 else $as_nop
21532064 eval "$3=no"
21542065 fi
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2067 eval $6=\$ac_save_FLAGS
2068
21562069 fi
21572070 eval ac_res=\$$3
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159 $as_echo "$ac_res" >&6; }
2071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 printf "%s\n" "$ac_res" >&6; }
21602073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21612074
2162 } # ac_fn_c_check_decl
2075 } # ac_fn_check_decl
2076 ac_configure_args_raw=
2077 for ac_arg
2078 do
2079 case $ac_arg in
2080 *\'*)
2081 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2082 esac
2083 as_fn_append ac_configure_args_raw " '$ac_arg'"
2084 done
2085
2086 case $ac_configure_args_raw in
2087 *$as_nl*)
2088 ac_safe_unquote= ;;
2089 *)
2090 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2091 ac_unsafe_a="$ac_unsafe_z#~"
2092 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2093 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2094 esac
2095
21632096 cat >config.log <<_ACEOF
21642097 This file contains any messages produced by compilers while
21652098 running configure, to aid debugging if configure makes a mistake.
21662099
2167 It was created by libeatmydata $as_me 130, which was
2168 generated by GNU Autoconf 2.69. Invocation command line was
2169
2170 $ $0 $@
2100 It was created by libeatmydata $as_me 131, which was
2101 generated by GNU Autoconf 2.71. Invocation command line was
2102
2103 $ $0$ac_configure_args_raw
21712104
21722105 _ACEOF
21732106 exec 5>>config.log
22002133 for as_dir in $PATH
22012134 do
22022135 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=.
2204 $as_echo "PATH: $as_dir"
2136 case $as_dir in #(((
2137 '') as_dir=./ ;;
2138 */) ;;
2139 *) as_dir=$as_dir/ ;;
2140 esac
2141 printf "%s\n" "PATH: $as_dir"
22052142 done
22062143 IFS=$as_save_IFS
22072144
22362173 | -silent | --silent | --silen | --sile | --sil)
22372174 continue ;;
22382175 *\'*)
2239 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22402177 esac
22412178 case $ac_pass in
22422179 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
22712208 # WARNING: Use '\'' to represent an apostrophe within the trap.
22722209 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
22732210 trap 'exit_status=$?
2211 # Sanitize IFS.
2212 IFS=" "" $as_nl"
22742213 # Save into config.log some information that might help in debugging.
22752214 {
22762215 echo
22772216
2278 $as_echo "## ---------------- ##
2217 printf "%s\n" "## ---------------- ##
22792218 ## Cache variables. ##
22802219 ## ---------------- ##"
22812220 echo
22862225 case $ac_val in #(
22872226 *${as_nl}*)
22882227 case $ac_var in #(
2289 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2290 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2228 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2229 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22912230 esac
22922231 case $ac_var in #(
22932232 _ | IFS | as_nl) ;; #(
23112250 )
23122251 echo
23132252
2314 $as_echo "## ----------------- ##
2253 printf "%s\n" "## ----------------- ##
23152254 ## Output variables. ##
23162255 ## ----------------- ##"
23172256 echo
23192258 do
23202259 eval ac_val=\$$ac_var
23212260 case $ac_val in
2322 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
23232262 esac
2324 $as_echo "$ac_var='\''$ac_val'\''"
2263 printf "%s\n" "$ac_var='\''$ac_val'\''"
23252264 done | sort
23262265 echo
23272266
23282267 if test -n "$ac_subst_files"; then
2329 $as_echo "## ------------------- ##
2268 printf "%s\n" "## ------------------- ##
23302269 ## File substitutions. ##
23312270 ## ------------------- ##"
23322271 echo
23342273 do
23352274 eval ac_val=\$$ac_var
23362275 case $ac_val in
2337 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
23382277 esac
2339 $as_echo "$ac_var='\''$ac_val'\''"
2278 printf "%s\n" "$ac_var='\''$ac_val'\''"
23402279 done | sort
23412280 echo
23422281 fi
23432282
23442283 if test -s confdefs.h; then
2345 $as_echo "## ----------- ##
2284 printf "%s\n" "## ----------- ##
23462285 ## confdefs.h. ##
23472286 ## ----------- ##"
23482287 echo
23502289 echo
23512290 fi
23522291 test "$ac_signal" != 0 &&
2353 $as_echo "$as_me: caught signal $ac_signal"
2354 $as_echo "$as_me: exit $exit_status"
2292 printf "%s\n" "$as_me: caught signal $ac_signal"
2293 printf "%s\n" "$as_me: exit $exit_status"
23552294 } >&5
23562295 rm -f core *.core core.conftest.* &&
23572296 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
23652304 # confdefs.h avoids OS command line length limits that DEFS can exceed.
23662305 rm -f -r conftest* confdefs.h
23672306
2368 $as_echo "/* confdefs.h */" > confdefs.h
2307 printf "%s\n" "/* confdefs.h */" > confdefs.h
23692308
23702309 # Predefined preprocessor variables.
23712310
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_NAME "$PACKAGE_NAME"
2374 _ACEOF
2375
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2378 _ACEOF
2379
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2382 _ACEOF
2383
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_STRING "$PACKAGE_STRING"
2386 _ACEOF
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2390 _ACEOF
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_URL "$PACKAGE_URL"
2394 _ACEOF
2311 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2312
2313 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2314
2315 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2316
2317 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2318
2319 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2320
2321 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
23952322
23962323
23972324 # Let the site file select an alternate cache file if it wants to.
23982325 # Prefer an explicitly selected file to automatically selected ones.
2399 ac_site_file1=NONE
2400 ac_site_file2=NONE
24012326 if test -n "$CONFIG_SITE"; then
2402 # We do not want a PATH search for config.site.
2403 case $CONFIG_SITE in #((
2404 -*) ac_site_file1=./$CONFIG_SITE;;
2405 */*) ac_site_file1=$CONFIG_SITE;;
2406 *) ac_site_file1=./$CONFIG_SITE;;
2407 esac
2327 ac_site_files="$CONFIG_SITE"
24082328 elif test "x$prefix" != xNONE; then
2409 ac_site_file1=$prefix/share/config.site
2410 ac_site_file2=$prefix/etc/config.site
2329 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
24112330 else
2412 ac_site_file1=$ac_default_prefix/share/config.site
2413 ac_site_file2=$ac_default_prefix/etc/config.site
2414 fi
2415 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2331 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2332 fi
2333
2334 for ac_site_file in $ac_site_files
24162335 do
2417 test "x$ac_site_file" = xNONE && continue
2418 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2420 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2336 case $ac_site_file in #(
2337 */*) :
2338 ;; #(
2339 *) :
2340 ac_site_file=./$ac_site_file ;;
2341 esac
2342 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2344 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
24212345 sed 's/^/| /' "$ac_site_file" >&5
24222346 . "$ac_site_file" \
2423 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2347 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2348 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24252349 as_fn_error $? "failed to load site script $ac_site_file
24262350 See \`config.log' for more details" "$LINENO" 5; }
24272351 fi
24312355 # Some versions of bash will fail to source /dev/null (special files
24322356 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
24332357 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2435 $as_echo "$as_me: loading cache $cache_file" >&6;}
2358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2359 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
24362360 case $cache_file in
24372361 [\\/]* | ?:[\\/]* ) . "$cache_file";;
24382362 *) . "./$cache_file";;
24392363 esac
24402364 fi
24412365 else
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2443 $as_echo "$as_me: creating cache $cache_file" >&6;}
2366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2367 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
24442368 >$cache_file
24452369 fi
24462370
2447 as_fn_append ac_header_list " pthread.h"
2371 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2372 # Test code for whether the C compiler supports C89 (global declarations)
2373 ac_c_conftest_c89_globals='
2374 /* Does the compiler advertise C89 conformance?
2375 Do not test the value of __STDC__, because some compilers set it to 0
2376 while being otherwise adequately conformant. */
2377 #if !defined __STDC__
2378 # error "Compiler does not advertise C89 conformance"
2379 #endif
2380
2381 #include <stddef.h>
2382 #include <stdarg.h>
2383 struct stat;
2384 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2385 struct buf { int x; };
2386 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2387 static char *e (p, i)
2388 char **p;
2389 int i;
2390 {
2391 return p[i];
2392 }
2393 static char *f (char * (*g) (char **, int), char **p, ...)
2394 {
2395 char *s;
2396 va_list v;
2397 va_start (v,p);
2398 s = g (p, va_arg (v,int));
2399 va_end (v);
2400 return s;
2401 }
2402
2403 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2404 function prototypes and stuff, but not \xHH hex character constants.
2405 These do not provoke an error unfortunately, instead are silently treated
2406 as an "x". The following induces an error, until -std is added to get
2407 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2408 array size at least. It is necessary to write \x00 == 0 to get something
2409 that is true only with -std. */
2410 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2411
2412 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2413 inside strings and character constants. */
2414 #define FOO(x) '\''x'\''
2415 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2416
2417 int test (int i, double x);
2418 struct s1 {int (*f) (int a);};
2419 struct s2 {int (*f) (double a);};
2420 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2421 int, int);'
2422
2423 # Test code for whether the C compiler supports C89 (body of main).
2424 ac_c_conftest_c89_main='
2425 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2426 '
2427
2428 # Test code for whether the C compiler supports C99 (global declarations)
2429 ac_c_conftest_c99_globals='
2430 // Does the compiler advertise C99 conformance?
2431 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2432 # error "Compiler does not advertise C99 conformance"
2433 #endif
2434
2435 #include <stdbool.h>
2436 extern int puts (const char *);
2437 extern int printf (const char *, ...);
2438 extern int dprintf (int, const char *, ...);
2439 extern void *malloc (size_t);
2440
2441 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2442 // dprintf is used instead of fprintf to avoid needing to declare
2443 // FILE and stderr.
2444 #define debug(...) dprintf (2, __VA_ARGS__)
2445 #define showlist(...) puts (#__VA_ARGS__)
2446 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2447 static void
2448 test_varargs_macros (void)
2449 {
2450 int x = 1234;
2451 int y = 5678;
2452 debug ("Flag");
2453 debug ("X = %d\n", x);
2454 showlist (The first, second, and third items.);
2455 report (x>y, "x is %d but y is %d", x, y);
2456 }
2457
2458 // Check long long types.
2459 #define BIG64 18446744073709551615ull
2460 #define BIG32 4294967295ul
2461 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2462 #if !BIG_OK
2463 #error "your preprocessor is broken"
2464 #endif
2465 #if BIG_OK
2466 #else
2467 #error "your preprocessor is broken"
2468 #endif
2469 static long long int bignum = -9223372036854775807LL;
2470 static unsigned long long int ubignum = BIG64;
2471
2472 struct incomplete_array
2473 {
2474 int datasize;
2475 double data[];
2476 };
2477
2478 struct named_init {
2479 int number;
2480 const wchar_t *name;
2481 double average;
2482 };
2483
2484 typedef const char *ccp;
2485
2486 static inline int
2487 test_restrict (ccp restrict text)
2488 {
2489 // See if C++-style comments work.
2490 // Iterate through items via the restricted pointer.
2491 // Also check for declarations in for loops.
2492 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2493 continue;
2494 return 0;
2495 }
2496
2497 // Check varargs and va_copy.
2498 static bool
2499 test_varargs (const char *format, ...)
2500 {
2501 va_list args;
2502 va_start (args, format);
2503 va_list args_copy;
2504 va_copy (args_copy, args);
2505
2506 const char *str = "";
2507 int number = 0;
2508 float fnumber = 0;
2509
2510 while (*format)
2511 {
2512 switch (*format++)
2513 {
2514 case '\''s'\'': // string
2515 str = va_arg (args_copy, const char *);
2516 break;
2517 case '\''d'\'': // int
2518 number = va_arg (args_copy, int);
2519 break;
2520 case '\''f'\'': // float
2521 fnumber = va_arg (args_copy, double);
2522 break;
2523 default:
2524 break;
2525 }
2526 }
2527 va_end (args_copy);
2528 va_end (args);
2529
2530 return *str && number && fnumber;
2531 }
2532 '
2533
2534 # Test code for whether the C compiler supports C99 (body of main).
2535 ac_c_conftest_c99_main='
2536 // Check bool.
2537 _Bool success = false;
2538 success |= (argc != 0);
2539
2540 // Check restrict.
2541 if (test_restrict ("String literal") == 0)
2542 success = true;
2543 char *restrict newvar = "Another string";
2544
2545 // Check varargs.
2546 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2547 test_varargs_macros ();
2548
2549 // Check flexible array members.
2550 struct incomplete_array *ia =
2551 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2552 ia->datasize = 10;
2553 for (int i = 0; i < ia->datasize; ++i)
2554 ia->data[i] = i * 1.234;
2555
2556 // Check named initializers.
2557 struct named_init ni = {
2558 .number = 34,
2559 .name = L"Test wide string",
2560 .average = 543.34343,
2561 };
2562
2563 ni.number = 58;
2564
2565 int dynamic_array[ni.number];
2566 dynamic_array[0] = argv[0][0];
2567 dynamic_array[ni.number - 1] = 543;
2568
2569 // work around unused variable warnings
2570 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2571 || dynamic_array[ni.number - 1] != 543);
2572 '
2573
2574 # Test code for whether the C compiler supports C11 (global declarations)
2575 ac_c_conftest_c11_globals='
2576 // Does the compiler advertise C11 conformance?
2577 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2578 # error "Compiler does not advertise C11 conformance"
2579 #endif
2580
2581 // Check _Alignas.
2582 char _Alignas (double) aligned_as_double;
2583 char _Alignas (0) no_special_alignment;
2584 extern char aligned_as_int;
2585 char _Alignas (0) _Alignas (int) aligned_as_int;
2586
2587 // Check _Alignof.
2588 enum
2589 {
2590 int_alignment = _Alignof (int),
2591 int_array_alignment = _Alignof (int[100]),
2592 char_alignment = _Alignof (char)
2593 };
2594 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2595
2596 // Check _Noreturn.
2597 int _Noreturn does_not_return (void) { for (;;) continue; }
2598
2599 // Check _Static_assert.
2600 struct test_static_assert
2601 {
2602 int x;
2603 _Static_assert (sizeof (int) <= sizeof (long int),
2604 "_Static_assert does not work in struct");
2605 long int y;
2606 };
2607
2608 // Check UTF-8 literals.
2609 #define u8 syntax error!
2610 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2611
2612 // Check duplicate typedefs.
2613 typedef long *long_ptr;
2614 typedef long int *long_ptr;
2615 typedef long_ptr long_ptr;
2616
2617 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2618 struct anonymous
2619 {
2620 union {
2621 struct { int i; int j; };
2622 struct { int k; long int l; } w;
2623 };
2624 int m;
2625 } v1;
2626 '
2627
2628 # Test code for whether the C compiler supports C11 (body of main).
2629 ac_c_conftest_c11_main='
2630 _Static_assert ((offsetof (struct anonymous, i)
2631 == offsetof (struct anonymous, w.k)),
2632 "Anonymous union alignment botch");
2633 v1.i = 2;
2634 v1.w.k = 5;
2635 ok |= v1.i != 5;
2636 '
2637
2638 # Test code for whether the C compiler supports C11 (complete).
2639 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2640 ${ac_c_conftest_c99_globals}
2641 ${ac_c_conftest_c11_globals}
2642
2643 int
2644 main (int argc, char **argv)
2645 {
2646 int ok = 0;
2647 ${ac_c_conftest_c89_main}
2648 ${ac_c_conftest_c99_main}
2649 ${ac_c_conftest_c11_main}
2650 return ok;
2651 }
2652 "
2653
2654 # Test code for whether the C compiler supports C99 (complete).
2655 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2656 ${ac_c_conftest_c99_globals}
2657
2658 int
2659 main (int argc, char **argv)
2660 {
2661 int ok = 0;
2662 ${ac_c_conftest_c89_main}
2663 ${ac_c_conftest_c99_main}
2664 return ok;
2665 }
2666 "
2667
2668 # Test code for whether the C compiler supports C89 (complete).
2669 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2670
2671 int
2672 main (int argc, char **argv)
2673 {
2674 int ok = 0;
2675 ${ac_c_conftest_c89_main}
2676 return ok;
2677 }
2678 "
2679
2680 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2681 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2682 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2683 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2684 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2685 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2686 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2687 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2688 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2689 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2690 as_fn_append ac_header_c_list " pthread.h pthread_h HAVE_PTHREAD_H"
2691
2692 # Auxiliary files required by this configure script.
2693 ac_aux_files="ltmain.sh missing install-sh compile config.guess config.sub"
2694
2695 # Locations in which to look for auxiliary files.
2696 ac_aux_dir_candidates="${srcdir}/config"
2697
2698 # Search for a directory containing all of the required auxiliary files,
2699 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2700 # If we don't find one directory that contains all the files we need,
2701 # we report the set of missing files from the *first* directory in
2702 # $ac_aux_dir_candidates and give up.
2703 ac_missing_aux_files=""
2704 ac_first_candidate=:
2705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 as_found=false
2708 for as_dir in $ac_aux_dir_candidates
2709 do
2710 IFS=$as_save_IFS
2711 case $as_dir in #(((
2712 '') as_dir=./ ;;
2713 */) ;;
2714 *) as_dir=$as_dir/ ;;
2715 esac
2716 as_found=:
2717
2718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2719 ac_aux_dir_found=yes
2720 ac_install_sh=
2721 for ac_aux in $ac_aux_files
2722 do
2723 # As a special case, if "install-sh" is required, that requirement
2724 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2725 # and $ac_install_sh is set appropriately for whichever one is found.
2726 if test x"$ac_aux" = x"install-sh"
2727 then
2728 if test -f "${as_dir}install-sh"; then
2729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2730 ac_install_sh="${as_dir}install-sh -c"
2731 elif test -f "${as_dir}install.sh"; then
2732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2733 ac_install_sh="${as_dir}install.sh -c"
2734 elif test -f "${as_dir}shtool"; then
2735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2736 ac_install_sh="${as_dir}shtool install -c"
2737 else
2738 ac_aux_dir_found=no
2739 if $ac_first_candidate; then
2740 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2741 else
2742 break
2743 fi
2744 fi
2745 else
2746 if test -f "${as_dir}${ac_aux}"; then
2747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2748 else
2749 ac_aux_dir_found=no
2750 if $ac_first_candidate; then
2751 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2752 else
2753 break
2754 fi
2755 fi
2756 fi
2757 done
2758 if test "$ac_aux_dir_found" = yes; then
2759 ac_aux_dir="$as_dir"
2760 break
2761 fi
2762 ac_first_candidate=false
2763
2764 as_found=false
2765 done
2766 IFS=$as_save_IFS
2767 if $as_found
2768 then :
2769
2770 else $as_nop
2771 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2772 fi
2773
2774
2775 # These three variables are undocumented and unsupported,
2776 # and are intended to be withdrawn in a future Autoconf release.
2777 # They can cause serious problems if a builder's source tree is in a directory
2778 # whose full name contains unusual characters.
2779 if test -f "${ac_aux_dir}config.guess"; then
2780 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2781 fi
2782 if test -f "${ac_aux_dir}config.sub"; then
2783 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2784 fi
2785 if test -f "$ac_aux_dir/configure"; then
2786 ac_configure="$SHELL ${ac_aux_dir}configure"
2787 fi
2788
24482789 # Check that the precious variables saved in the cache have kept the same
24492790 # value.
24502791 ac_cache_corrupted=false
24552796 eval ac_new_val=\$ac_env_${ac_var}_value
24562797 case $ac_old_set,$ac_new_set in
24572798 set,)
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2459 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2800 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
24602801 ac_cache_corrupted=: ;;
24612802 ,set)
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2463 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2804 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
24642805 ac_cache_corrupted=: ;;
24652806 ,);;
24662807 *)
24692810 ac_old_val_w=`echo x $ac_old_val`
24702811 ac_new_val_w=`echo x $ac_new_val`
24712812 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2473 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2814 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
24742815 ac_cache_corrupted=:
24752816 else
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2477 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2818 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
24782819 eval $ac_var=\$ac_old_val
24792820 fi
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2481 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2483 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2822 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2824 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
24842825 fi;;
24852826 esac
24862827 # Pass precious variables to config.status.
24872828 if test "$ac_new_set" = set; then
24882829 case $ac_new_val in
2489 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2830 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
24902831 *) ac_arg=$ac_var=$ac_new_val ;;
24912832 esac
24922833 case " $ac_configure_args " in
24962837 fi
24972838 done
24982839 if $ac_cache_corrupted; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2502 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2503 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2841 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2843 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2844 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2845 and start over" "$LINENO" 5
25042846 fi
25052847 ## -------------------- ##
25062848 ## Main body of script. ##
25142856
25152857
25162858
2517 ac_aux_dir=
2518 for ac_dir in config "$srcdir"/config; do
2519 if test -f "$ac_dir/install-sh"; then
2520 ac_aux_dir=$ac_dir
2521 ac_install_sh="$ac_aux_dir/install-sh -c"
2522 break
2523 elif test -f "$ac_dir/install.sh"; then
2524 ac_aux_dir=$ac_dir
2525 ac_install_sh="$ac_aux_dir/install.sh -c"
2526 break
2527 elif test -f "$ac_dir/shtool"; then
2528 ac_aux_dir=$ac_dir
2529 ac_install_sh="$ac_aux_dir/shtool install -c"
2530 break
2531 fi
2532 done
2533 if test -z "$ac_aux_dir"; then
2534 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2535 fi
2536
2537 # These three variables are undocumented and unsupported,
2538 # and are intended to be withdrawn in a future Autoconf release.
2539 # They can cause serious problems if a builder's source tree is in a directory
2540 # whose full name contains unusual characters.
2541 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2542 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2543 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2544
2545
2546
2547
2548 # Make sure we can run config.sub.
2549 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2550 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2551
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2553 $as_echo_n "checking build system type... " >&6; }
2554 if ${ac_cv_build+:} false; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2859
2860
2861
2862
2863
2864
2865 # Make sure we can run config.sub.
2866 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2867 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2868
2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2870 printf %s "checking build system type... " >&6; }
2871 if test ${ac_cv_build+y}
2872 then :
2873 printf %s "(cached) " >&6
2874 else $as_nop
25572875 ac_build_alias=$build_alias
25582876 test "x$ac_build_alias" = x &&
2559 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2877 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
25602878 test "x$ac_build_alias" = x &&
25612879 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2562 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2563 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2564
2565 fi
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2567 $as_echo "$ac_cv_build" >&6; }
2880 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2881 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2882
2883 fi
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2885 printf "%s\n" "$ac_cv_build" >&6; }
25682886 case $ac_cv_build in
25692887 *-*-*) ;;
25702888 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
25832901 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
25842902
25852903
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2587 $as_echo_n "checking host system type... " >&6; }
2588 if ${ac_cv_host+:} false; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2905 printf %s "checking host system type... " >&6; }
2906 if test ${ac_cv_host+y}
2907 then :
2908 printf %s "(cached) " >&6
2909 else $as_nop
25912910 if test "x$host_alias" = x; then
25922911 ac_cv_host=$ac_cv_build
25932912 else
2594 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2595 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2596 fi
2597
2598 fi
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2600 $as_echo "$ac_cv_host" >&6; }
2913 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2914 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2915 fi
2916
2917 fi
2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2919 printf "%s\n" "$ac_cv_host" >&6; }
26012920 case $ac_cv_host in
26022921 *-*-*) ;;
26032922 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
26162935 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
26172936
26182937
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2620 $as_echo_n "checking target system type... " >&6; }
2621 if ${ac_cv_target+:} false; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2939 printf %s "checking target system type... " >&6; }
2940 if test ${ac_cv_target+y}
2941 then :
2942 printf %s "(cached) " >&6
2943 else $as_nop
26242944 if test "x$target_alias" = x; then
26252945 ac_cv_target=$ac_cv_host
26262946 else
2627 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2628 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2629 fi
2630
2631 fi
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2633 $as_echo "$ac_cv_target" >&6; }
2947 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2948 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2949 fi
2950
2951 fi
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2953 printf "%s\n" "$ac_cv_target" >&6; }
26342954 case $ac_cv_target in
26352955 *-*-*) ;;
26362956 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
26632983 # Double any \ or $.
26642984 # By default was `s,x,x', remove it if useless.
26652985 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2666 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2986 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
26672997
26682998 # Expand $ac_aux_dir to an absolute path.
26692999 am_aux_dir=`cd "$ac_aux_dir" && pwd`
26763006 if test -n "$ac_tool_prefix"; then
26773007 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
26783008 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if ${ac_cv_prog_CC+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 printf %s "checking for $ac_word... " >&6; }
3011 if test ${ac_cv_prog_CC+y}
3012 then :
3013 printf %s "(cached) " >&6
3014 else $as_nop
26843015 if test -n "$CC"; then
26853016 ac_cv_prog_CC="$CC" # Let the user override the test.
26863017 else
26883019 for as_dir in $PATH
26893020 do
26903021 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
3022 case $as_dir in #(((
3023 '') as_dir=./ ;;
3024 */) ;;
3025 *) as_dir=$as_dir/ ;;
3026 esac
26923027 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26943029 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26963031 break 2
26973032 fi
26983033 done
27033038 fi
27043039 CC=$ac_cv_prog_CC
27053040 if test -n "$CC"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2707 $as_echo "$CC" >&6; }
3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042 printf "%s\n" "$CC" >&6; }
27083043 else
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 printf "%s\n" "no" >&6; }
27113046 fi
27123047
27133048
27163051 ac_ct_CC=$CC
27173052 # Extract the first word of "gcc", so it can be a program name with args.
27183053 set dummy gcc; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 printf %s "checking for $ac_word... " >&6; }
3056 if test ${ac_cv_prog_ac_ct_CC+y}
3057 then :
3058 printf %s "(cached) " >&6
3059 else $as_nop
27243060 if test -n "$ac_ct_CC"; then
27253061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
27263062 else
27283064 for as_dir in $PATH
27293065 do
27303066 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
3067 case $as_dir in #(((
3068 '') as_dir=./ ;;
3069 */) ;;
3070 *) as_dir=$as_dir/ ;;
3071 esac
27323072 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27343074 ac_cv_prog_ac_ct_CC="gcc"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27363076 break 2
27373077 fi
27383078 done
27433083 fi
27443084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
27453085 if test -n "$ac_ct_CC"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2747 $as_echo "$ac_ct_CC" >&6; }
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3087 printf "%s\n" "$ac_ct_CC" >&6; }
27483088 else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 printf "%s\n" "no" >&6; }
27513091 fi
27523092
27533093 if test "x$ac_ct_CC" = x; then
27553095 else
27563096 case $cross_compiling:$ac_tool_warned in
27573097 yes:)
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3099 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27603100 ac_tool_warned=yes ;;
27613101 esac
27623102 CC=$ac_ct_CC
27693109 if test -n "$ac_tool_prefix"; then
27703110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
27713111 set dummy ${ac_tool_prefix}cc; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if ${ac_cv_prog_CC+:} false; then :
2775 $as_echo_n "(cached) " >&6
2776 else
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 printf %s "checking for $ac_word... " >&6; }
3114 if test ${ac_cv_prog_CC+y}
3115 then :
3116 printf %s "(cached) " >&6
3117 else $as_nop
27773118 if test -n "$CC"; then
27783119 ac_cv_prog_CC="$CC" # Let the user override the test.
27793120 else
27813122 for as_dir in $PATH
27823123 do
27833124 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
3125 case $as_dir in #(((
3126 '') as_dir=./ ;;
3127 */) ;;
3128 *) as_dir=$as_dir/ ;;
3129 esac
27853130 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27873132 ac_cv_prog_CC="${ac_tool_prefix}cc"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27893134 break 2
27903135 fi
27913136 done
27963141 fi
27973142 CC=$ac_cv_prog_CC
27983143 if test -n "$CC"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2800 $as_echo "$CC" >&6; }
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145 printf "%s\n" "$CC" >&6; }
28013146 else
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 printf "%s\n" "no" >&6; }
28043149 fi
28053150
28063151
28093154 if test -z "$CC"; then
28103155 # Extract the first word of "cc", so it can be a program name with args.
28113156 set dummy cc; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_CC+:} false; then :
2815 $as_echo_n "(cached) " >&6
2816 else
3157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 printf %s "checking for $ac_word... " >&6; }
3159 if test ${ac_cv_prog_CC+y}
3160 then :
3161 printf %s "(cached) " >&6
3162 else $as_nop
28173163 if test -n "$CC"; then
28183164 ac_cv_prog_CC="$CC" # Let the user override the test.
28193165 else
28223168 for as_dir in $PATH
28233169 do
28243170 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
3171 case $as_dir in #(((
3172 '') as_dir=./ ;;
3173 */) ;;
3174 *) as_dir=$as_dir/ ;;
3175 esac
28263176 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3178 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
28293179 ac_prog_rejected=yes
28303180 continue
28313181 fi
28323182 ac_cv_prog_CC="cc"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28343184 break 2
28353185 fi
28363186 done
28463196 # However, it has the same basename, so the bogon will be chosen
28473197 # first if we set CC to just the basename; use the full file name.
28483198 shift
2849 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3199 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
28503200 fi
28513201 fi
28523202 fi
28533203 fi
28543204 CC=$ac_cv_prog_CC
28553205 if test -n "$CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857 $as_echo "$CC" >&6; }
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3207 printf "%s\n" "$CC" >&6; }
28583208 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 printf "%s\n" "no" >&6; }
28613211 fi
28623212
28633213
28683218 do
28693219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28703220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 printf %s "checking for $ac_word... " >&6; }
3223 if test ${ac_cv_prog_CC+y}
3224 then :
3225 printf %s "(cached) " >&6
3226 else $as_nop
28763227 if test -n "$CC"; then
28773228 ac_cv_prog_CC="$CC" # Let the user override the test.
28783229 else
28803231 for as_dir in $PATH
28813232 do
28823233 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
3234 case $as_dir in #(((
3235 '') as_dir=./ ;;
3236 */) ;;
3237 *) as_dir=$as_dir/ ;;
3238 esac
28843239 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28863241 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28883243 break 2
28893244 fi
28903245 done
28953250 fi
28963251 CC=$ac_cv_prog_CC
28973252 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 printf "%s\n" "$CC" >&6; }
29003255 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 printf "%s\n" "no" >&6; }
29033258 fi
29043259
29053260
29123267 do
29133268 # Extract the first word of "$ac_prog", so it can be a program name with args.
29143269 set dummy $ac_prog; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2918 $as_echo_n "(cached) " >&6
2919 else
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 printf %s "checking for $ac_word... " >&6; }
3272 if test ${ac_cv_prog_ac_ct_CC+y}
3273 then :
3274 printf %s "(cached) " >&6
3275 else $as_nop
29203276 if test -n "$ac_ct_CC"; then
29213277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
29223278 else
29243280 for as_dir in $PATH
29253281 do
29263282 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
3283 case $as_dir in #(((
3284 '') as_dir=./ ;;
3285 */) ;;
3286 *) as_dir=$as_dir/ ;;
3287 esac
29283288 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29303290 ac_cv_prog_ac_ct_CC="$ac_prog"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29323292 break 2
29333293 fi
29343294 done
29393299 fi
29403300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
29413301 if test -n "$ac_ct_CC"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2943 $as_echo "$ac_ct_CC" >&6; }
3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303 printf "%s\n" "$ac_ct_CC" >&6; }
29443304 else
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 printf "%s\n" "no" >&6; }
29473307 fi
29483308
29493309
29553315 else
29563316 case $cross_compiling:$ac_tool_warned in
29573317 yes:)
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3319 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29603320 ac_tool_warned=yes ;;
29613321 esac
29623322 CC=$ac_ct_CC
29643324 fi
29653325
29663326 fi
2967
2968
2969 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 if test -z "$CC"; then
3328 if test -n "$ac_tool_prefix"; then
3329 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3330 set dummy ${ac_tool_prefix}clang; ac_word=$2
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 printf %s "checking for $ac_word... " >&6; }
3333 if test ${ac_cv_prog_CC+y}
3334 then :
3335 printf %s "(cached) " >&6
3336 else $as_nop
3337 if test -n "$CC"; then
3338 ac_cv_prog_CC="$CC" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3342 do
3343 IFS=$as_save_IFS
3344 case $as_dir in #(((
3345 '') as_dir=./ ;;
3346 */) ;;
3347 *) as_dir=$as_dir/ ;;
3348 esac
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3351 ac_cv_prog_CC="${ac_tool_prefix}clang"
3352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3353 break 2
3354 fi
3355 done
3356 done
3357 IFS=$as_save_IFS
3358
3359 fi
3360 fi
3361 CC=$ac_cv_prog_CC
3362 if test -n "$CC"; then
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364 printf "%s\n" "$CC" >&6; }
3365 else
3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 printf "%s\n" "no" >&6; }
3368 fi
3369
3370
3371 fi
3372 if test -z "$ac_cv_prog_CC"; then
3373 ac_ct_CC=$CC
3374 # Extract the first word of "clang", so it can be a program name with args.
3375 set dummy clang; ac_word=$2
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 printf %s "checking for $ac_word... " >&6; }
3378 if test ${ac_cv_prog_ac_ct_CC+y}
3379 then :
3380 printf %s "(cached) " >&6
3381 else $as_nop
3382 if test -n "$ac_ct_CC"; then
3383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388 IFS=$as_save_IFS
3389 case $as_dir in #(((
3390 '') as_dir=./ ;;
3391 */) ;;
3392 *) as_dir=$as_dir/ ;;
3393 esac
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3396 ac_cv_prog_ac_ct_CC="clang"
3397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3398 break 2
3399 fi
3400 done
3401 done
3402 IFS=$as_save_IFS
3403
3404 fi
3405 fi
3406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3407 if test -n "$ac_ct_CC"; then
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3409 printf "%s\n" "$ac_ct_CC" >&6; }
3410 else
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 printf "%s\n" "no" >&6; }
3413 fi
3414
3415 if test "x$ac_ct_CC" = x; then
3416 CC=""
3417 else
3418 case $cross_compiling:$ac_tool_warned in
3419 yes:)
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3421 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3422 ac_tool_warned=yes ;;
3423 esac
3424 CC=$ac_ct_CC
3425 fi
3426 else
3427 CC="$ac_cv_prog_CC"
3428 fi
3429
3430 fi
3431
3432
3433 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
29713435 as_fn_error $? "no acceptable C compiler found in \$PATH
29723436 See \`config.log' for more details" "$LINENO" 5; }
29733437
29743438 # Provide some information about the compiler.
2975 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
29763440 set X $ac_compile
29773441 ac_compiler=$2
2978 for ac_option in --version -v -V -qversion; do
3442 for ac_option in --version -v -V -qversion -version; do
29793443 { { ac_try="$ac_compiler $ac_option >&5"
29803444 case "(($ac_try" in
29813445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29823446 *) ac_try_echo=$ac_try;;
29833447 esac
29843448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985 $as_echo "$ac_try_echo"; } >&5
3449 printf "%s\n" "$ac_try_echo"; } >&5
29863450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
29873451 ac_status=$?
29883452 if test -s conftest.err; then
29923456 cat conftest.er1 >&5
29933457 fi
29943458 rm -f conftest.er1 conftest.err
2995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29963460 test $ac_status = 0; }
29973461 done
29983462
30003464 /* end confdefs.h. */
30013465
30023466 int
3003 main ()
3467 main (void)
30043468 {
30053469
30063470 ;
30123476 # Try to create an executable without -o first, disregard a.out.
30133477 # It will help us diagnose broken compilers, and finding out an intuition
30143478 # of exeext.
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3016 $as_echo_n "checking whether the C compiler works... " >&6; }
3017 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3480 printf %s "checking whether the C compiler works... " >&6; }
3481 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
30183482
30193483 # The possible output files:
30203484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
30353499 *) ac_try_echo=$ac_try;;
30363500 esac
30373501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038 $as_echo "$ac_try_echo"; } >&5
3502 printf "%s\n" "$ac_try_echo"; } >&5
30393503 (eval "$ac_link_default") 2>&5
30403504 ac_status=$?
3041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042 test $ac_status = 0; }; then :
3505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }
3507 then :
30433508 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
30443509 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
30453510 # in a Makefile. We should not override ac_cv_exeext if it was cached,
30563521 # certainly right.
30573522 break;;
30583523 *.* )
3059 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3524 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
30603525 then :; else
30613526 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
30623527 fi
30723537 done
30733538 test "$ac_cv_exeext" = no && ac_cv_exeext=
30743539
3075 else
3540 else $as_nop
30763541 ac_file=''
30773542 fi
3078 if test -z "$ac_file"; then :
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 $as_echo "$as_me: failed program was:" >&5
3543 if test -z "$ac_file"
3544 then :
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 printf "%s\n" "no" >&6; }
3547 printf "%s\n" "$as_me: failed program was:" >&5
30823548 sed 's/^/| /' conftest.$ac_ext >&5
30833549
3084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
30863552 as_fn_error 77 "C compiler cannot create executables
30873553 See \`config.log' for more details" "$LINENO" 5; }
3088 else
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090 $as_echo "yes" >&6; }
3091 fi
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3093 $as_echo_n "checking for C compiler default output file name... " >&6; }
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3095 $as_echo "$ac_file" >&6; }
3554 else $as_nop
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3556 printf "%s\n" "yes" >&6; }
3557 fi
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3559 printf %s "checking for C compiler default output file name... " >&6; }
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3561 printf "%s\n" "$ac_file" >&6; }
30963562 ac_exeext=$ac_cv_exeext
30973563
30983564 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
30993565 ac_clean_files=$ac_clean_files_save
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3101 $as_echo_n "checking for suffix of executables... " >&6; }
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3567 printf %s "checking for suffix of executables... " >&6; }
31023568 if { { ac_try="$ac_link"
31033569 case "(($ac_try" in
31043570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31053571 *) ac_try_echo=$ac_try;;
31063572 esac
31073573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3108 $as_echo "$ac_try_echo"; } >&5
3574 printf "%s\n" "$ac_try_echo"; } >&5
31093575 (eval "$ac_link") 2>&5
31103576 ac_status=$?
3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112 test $ac_status = 0; }; then :
3577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }
3579 then :
31133580 # If both `conftest.exe' and `conftest' are `present' (well, observable)
31143581 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
31153582 # work properly (i.e., refer to `conftest.exe'), while it won't with
31233590 * ) break;;
31243591 esac
31253592 done
3126 else
3127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 else $as_nop
3594 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
31293596 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
31303597 See \`config.log' for more details" "$LINENO" 5; }
31313598 fi
31323599 rm -f conftest conftest$ac_cv_exeext
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3134 $as_echo "$ac_cv_exeext" >&6; }
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3601 printf "%s\n" "$ac_cv_exeext" >&6; }
31353602
31363603 rm -f conftest.$ac_ext
31373604 EXEEXT=$ac_cv_exeext
31403607 /* end confdefs.h. */
31413608 #include <stdio.h>
31423609 int
3143 main ()
3610 main (void)
31443611 {
31453612 FILE *f = fopen ("conftest.out", "w");
31463613 return ferror (f) || fclose (f) != 0;
31523619 ac_clean_files="$ac_clean_files conftest.out"
31533620 # Check that the compiler produces executables we can run. If not, either
31543621 # the compiler is broken, or we cross compile.
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3156 $as_echo_n "checking whether we are cross compiling... " >&6; }
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3623 printf %s "checking whether we are cross compiling... " >&6; }
31573624 if test "$cross_compiling" != yes; then
31583625 { { ac_try="$ac_link"
31593626 case "(($ac_try" in
31613628 *) ac_try_echo=$ac_try;;
31623629 esac
31633630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3631 printf "%s\n" "$ac_try_echo"; } >&5
31653632 (eval "$ac_link") 2>&5
31663633 ac_status=$?
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31683635 test $ac_status = 0; }
31693636 if { ac_try='./conftest$ac_cv_exeext'
31703637 { { case "(($ac_try" in
31723639 *) ac_try_echo=$ac_try;;
31733640 esac
31743641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3642 printf "%s\n" "$ac_try_echo"; } >&5
31763643 (eval "$ac_try") 2>&5
31773644 ac_status=$?
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31793646 test $ac_status = 0; }; }; then
31803647 cross_compiling=no
31813648 else
31823649 if test "$cross_compiling" = maybe; then
31833650 cross_compiling=yes
31843651 else
3185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error $? "cannot run C compiled programs.
3652 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3654 as_fn_error 77 "cannot run C compiled programs.
31883655 If you meant to cross compile, use \`--host'.
31893656 See \`config.log' for more details" "$LINENO" 5; }
31903657 fi
31913658 fi
31923659 fi
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3194 $as_echo "$cross_compiling" >&6; }
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3661 printf "%s\n" "$cross_compiling" >&6; }
31953662
31963663 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
31973664 ac_clean_files=$ac_clean_files_save
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3199 $as_echo_n "checking for suffix of object files... " >&6; }
3200 if ${ac_cv_objext+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3666 printf %s "checking for suffix of object files... " >&6; }
3667 if test ${ac_cv_objext+y}
3668 then :
3669 printf %s "(cached) " >&6
3670 else $as_nop
32033671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32043672 /* end confdefs.h. */
32053673
32063674 int
3207 main ()
3675 main (void)
32083676 {
32093677
32103678 ;
32183686 *) ac_try_echo=$ac_try;;
32193687 esac
32203688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221 $as_echo "$ac_try_echo"; } >&5
3689 printf "%s\n" "$ac_try_echo"; } >&5
32223690 (eval "$ac_compile") 2>&5
32233691 ac_status=$?
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }; then :
3692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693 test $ac_status = 0; }
3694 then :
32263695 for ac_file in conftest.o conftest.obj conftest.*; do
32273696 test -f "$ac_file" || continue;
32283697 case $ac_file in
32313700 break;;
32323701 esac
32333702 done
3234 else
3235 $as_echo "$as_me: failed program was:" >&5
3703 else $as_nop
3704 printf "%s\n" "$as_me: failed program was:" >&5
32363705 sed 's/^/| /' conftest.$ac_ext >&5
32373706
3238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
32403709 as_fn_error $? "cannot compute suffix of object files: cannot compile
32413710 See \`config.log' for more details" "$LINENO" 5; }
32423711 fi
32433712 rm -f conftest.$ac_cv_objext conftest.$ac_ext
32443713 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3246 $as_echo "$ac_cv_objext" >&6; }
3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3715 printf "%s\n" "$ac_cv_objext" >&6; }
32473716 OBJEXT=$ac_cv_objext
32483717 ac_objext=$OBJEXT
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3250 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3251 if ${ac_cv_c_compiler_gnu+:} false; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3719 printf %s "checking whether the compiler supports GNU C... " >&6; }
3720 if test ${ac_cv_c_compiler_gnu+y}
3721 then :
3722 printf %s "(cached) " >&6
3723 else $as_nop
32543724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32553725 /* end confdefs.h. */
32563726
32573727 int
3258 main ()
3728 main (void)
32593729 {
32603730 #ifndef __GNUC__
32613731 choke me
32653735 return 0;
32663736 }
32673737 _ACEOF
3268 if ac_fn_c_try_compile "$LINENO"; then :
3738 if ac_fn_c_try_compile "$LINENO"
3739 then :
32693740 ac_compiler_gnu=yes
3270 else
3741 else $as_nop
32713742 ac_compiler_gnu=no
32723743 fi
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32743745 ac_cv_c_compiler_gnu=$ac_compiler_gnu
32753746
32763747 fi
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3278 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3749 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751
32793752 if test $ac_compiler_gnu = yes; then
32803753 GCC=yes
32813754 else
32823755 GCC=
32833756 fi
3284 ac_test_CFLAGS=${CFLAGS+set}
3757 ac_test_CFLAGS=${CFLAGS+y}
32853758 ac_save_CFLAGS=$CFLAGS
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3287 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3288 if ${ac_cv_prog_cc_g+:} false; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3760 printf %s "checking whether $CC accepts -g... " >&6; }
3761 if test ${ac_cv_prog_cc_g+y}
3762 then :
3763 printf %s "(cached) " >&6
3764 else $as_nop
32913765 ac_save_c_werror_flag=$ac_c_werror_flag
32923766 ac_c_werror_flag=yes
32933767 ac_cv_prog_cc_g=no
32963770 /* end confdefs.h. */
32973771
32983772 int
3299 main ()
3773 main (void)
33003774 {
33013775
33023776 ;
33033777 return 0;
33043778 }
33053779 _ACEOF
3306 if ac_fn_c_try_compile "$LINENO"; then :
3780 if ac_fn_c_try_compile "$LINENO"
3781 then :
33073782 ac_cv_prog_cc_g=yes
3308 else
3783 else $as_nop
33093784 CFLAGS=""
33103785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33113786 /* end confdefs.h. */
33123787
33133788 int
3314 main ()
3789 main (void)
33153790 {
33163791
33173792 ;
33183793 return 0;
33193794 }
33203795 _ACEOF
3321 if ac_fn_c_try_compile "$LINENO"; then :
3322
3323 else
3796 if ac_fn_c_try_compile "$LINENO"
3797 then :
3798
3799 else $as_nop
33243800 ac_c_werror_flag=$ac_save_c_werror_flag
33253801 CFLAGS="-g"
33263802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33273803 /* end confdefs.h. */
33283804
33293805 int
3330 main ()
3806 main (void)
33313807 {
33323808
33333809 ;
33343810 return 0;
33353811 }
33363812 _ACEOF
3337 if ac_fn_c_try_compile "$LINENO"; then :
3813 if ac_fn_c_try_compile "$LINENO"
3814 then :
33383815 ac_cv_prog_cc_g=yes
33393816 fi
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 fi
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 fi
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3818 fi
3819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3820 fi
3821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33453822 ac_c_werror_flag=$ac_save_c_werror_flag
33463823 fi
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3348 $as_echo "$ac_cv_prog_cc_g" >&6; }
3349 if test "$ac_test_CFLAGS" = set; then
3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3825 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3826 if test $ac_test_CFLAGS; then
33503827 CFLAGS=$ac_save_CFLAGS
33513828 elif test $ac_cv_prog_cc_g = yes; then
33523829 if test "$GCC" = yes; then
33613838 CFLAGS=
33623839 fi
33633840 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3365 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3366 if ${ac_cv_prog_cc_c89+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3841 ac_prog_cc_stdc=no
3842 if test x$ac_prog_cc_stdc = xno
3843 then :
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3845 printf %s "checking for $CC option to enable C11 features... " >&6; }
3846 if test ${ac_cv_prog_cc_c11+y}
3847 then :
3848 printf %s "(cached) " >&6
3849 else $as_nop
3850 ac_cv_prog_cc_c11=no
3851 ac_save_CC=$CC
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854 $ac_c_conftest_c11_program
3855 _ACEOF
3856 for ac_arg in '' -std=gnu11
3857 do
3858 CC="$ac_save_CC $ac_arg"
3859 if ac_fn_c_try_compile "$LINENO"
3860 then :
3861 ac_cv_prog_cc_c11=$ac_arg
3862 fi
3863 rm -f core conftest.err conftest.$ac_objext conftest.beam
3864 test "x$ac_cv_prog_cc_c11" != "xno" && break
3865 done
3866 rm -f conftest.$ac_ext
3867 CC=$ac_save_CC
3868 fi
3869
3870 if test "x$ac_cv_prog_cc_c11" = xno
3871 then :
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3873 printf "%s\n" "unsupported" >&6; }
3874 else $as_nop
3875 if test "x$ac_cv_prog_cc_c11" = x
3876 then :
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3878 printf "%s\n" "none needed" >&6; }
3879 else $as_nop
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3881 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3882 CC="$CC $ac_cv_prog_cc_c11"
3883 fi
3884 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3885 ac_prog_cc_stdc=c11
3886 fi
3887 fi
3888 if test x$ac_prog_cc_stdc = xno
3889 then :
3890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3891 printf %s "checking for $CC option to enable C99 features... " >&6; }
3892 if test ${ac_cv_prog_cc_c99+y}
3893 then :
3894 printf %s "(cached) " >&6
3895 else $as_nop
3896 ac_cv_prog_cc_c99=no
3897 ac_save_CC=$CC
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3900 $ac_c_conftest_c99_program
3901 _ACEOF
3902 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3903 do
3904 CC="$ac_save_CC $ac_arg"
3905 if ac_fn_c_try_compile "$LINENO"
3906 then :
3907 ac_cv_prog_cc_c99=$ac_arg
3908 fi
3909 rm -f core conftest.err conftest.$ac_objext conftest.beam
3910 test "x$ac_cv_prog_cc_c99" != "xno" && break
3911 done
3912 rm -f conftest.$ac_ext
3913 CC=$ac_save_CC
3914 fi
3915
3916 if test "x$ac_cv_prog_cc_c99" = xno
3917 then :
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3919 printf "%s\n" "unsupported" >&6; }
3920 else $as_nop
3921 if test "x$ac_cv_prog_cc_c99" = x
3922 then :
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3924 printf "%s\n" "none needed" >&6; }
3925 else $as_nop
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3927 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3928 CC="$CC $ac_cv_prog_cc_c99"
3929 fi
3930 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3931 ac_prog_cc_stdc=c99
3932 fi
3933 fi
3934 if test x$ac_prog_cc_stdc = xno
3935 then :
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3937 printf %s "checking for $CC option to enable C89 features... " >&6; }
3938 if test ${ac_cv_prog_cc_c89+y}
3939 then :
3940 printf %s "(cached) " >&6
3941 else $as_nop
33693942 ac_cv_prog_cc_c89=no
33703943 ac_save_CC=$CC
33713944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33723945 /* end confdefs.h. */
3373 #include <stdarg.h>
3374 #include <stdio.h>
3375 struct stat;
3376 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3377 struct buf { int x; };
3378 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3379 static char *e (p, i)
3380 char **p;
3381 int i;
3382 {
3383 return p[i];
3384 }
3385 static char *f (char * (*g) (char **, int), char **p, ...)
3386 {
3387 char *s;
3388 va_list v;
3389 va_start (v,p);
3390 s = g (p, va_arg (v,int));
3391 va_end (v);
3392 return s;
3393 }
3394
3395 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3396 function prototypes and stuff, but not '\xHH' hex character constants.
3397 These don't provoke an error unfortunately, instead are silently treated
3398 as 'x'. The following induces an error, until -std is added to get
3399 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3400 array size at least. It's necessary to write '\x00'==0 to get something
3401 that's true only with -std. */
3402 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3403
3404 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3405 inside strings and character constants. */
3406 #define FOO(x) 'x'
3407 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3408
3409 int test (int i, double x);
3410 struct s1 {int (*f) (int a);};
3411 struct s2 {int (*f) (double a);};
3412 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3413 int argc;
3414 char **argv;
3415 int
3416 main ()
3417 {
3418 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3419 ;
3420 return 0;
3421 }
3946 $ac_c_conftest_c89_program
34223947 _ACEOF
3423 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3424 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3948 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
34253949 do
34263950 CC="$ac_save_CC $ac_arg"
3427 if ac_fn_c_try_compile "$LINENO"; then :
3951 if ac_fn_c_try_compile "$LINENO"
3952 then :
34283953 ac_cv_prog_cc_c89=$ac_arg
34293954 fi
3430 rm -f core conftest.err conftest.$ac_objext
3955 rm -f core conftest.err conftest.$ac_objext conftest.beam
34313956 test "x$ac_cv_prog_cc_c89" != "xno" && break
34323957 done
34333958 rm -f conftest.$ac_ext
34343959 CC=$ac_save_CC
3435
3436 fi
3437 # AC_CACHE_VAL
3438 case "x$ac_cv_prog_cc_c89" in
3439 x)
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3441 $as_echo "none needed" >&6; } ;;
3442 xno)
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3444 $as_echo "unsupported" >&6; } ;;
3445 *)
3446 CC="$CC $ac_cv_prog_cc_c89"
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3448 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3449 esac
3450 if test "x$ac_cv_prog_cc_c89" != xno; then :
3451
3960 fi
3961
3962 if test "x$ac_cv_prog_cc_c89" = xno
3963 then :
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3965 printf "%s\n" "unsupported" >&6; }
3966 else $as_nop
3967 if test "x$ac_cv_prog_cc_c89" = x
3968 then :
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3970 printf "%s\n" "none needed" >&6; }
3971 else $as_nop
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3973 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3974 CC="$CC $ac_cv_prog_cc_c89"
3975 fi
3976 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3977 ac_prog_cc_stdc=c89
3978 fi
34523979 fi
34533980
34543981 ac_ext=c
34573984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34583985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34593986
3460 ac_ext=c
3987
3988 ac_ext=c
34613989 ac_cpp='$CPP $CPPFLAGS'
34623990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34633991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34643992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3466 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3467 if ${am_cv_prog_cc_c_o+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3994 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3995 if test ${am_cv_prog_cc_c_o+y}
3996 then :
3997 printf %s "(cached) " >&6
3998 else $as_nop
34703999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34714000 /* end confdefs.h. */
34724001
34734002 int
3474 main ()
4003 main (void)
34754004 {
34764005
34774006 ;
34994028 rm -f core conftest*
35004029 unset am_i
35014030 fi
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3503 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4032 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
35044033 if test "$am_cv_prog_cc_c_o" != yes; then
35054034 # Losing compiler, so override with the script.
35064035 # FIXME: It is wrong to rewrite CC.
35174046
35184047
35194048
3520 ac_ext=c
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3526 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3527 # On Suns, sometimes $CPP names a directory.
3528 if test -n "$CPP" && test -d "$CPP"; then
3529 CPP=
3530 fi
3531 if test -z "$CPP"; then
3532 if ${ac_cv_prog_CPP+:} false; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 # Double quotes because CPP needs to be expanded
3536 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3537 do
3538 ac_preproc_ok=false
3539 for ac_c_preproc_warn_flag in '' yes
4049 ac_header= ac_cache=
4050 for ac_item in $ac_header_c_list
35404051 do
3541 # Use a header file that comes with gcc, so configuring glibc
3542 # with a fresh cross-compiler works.
3543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3544 # <limits.h> exists even on freestanding compilers.
3545 # On the NeXT, cc -E runs the code through the compiler's parser,
3546 # not just through cpp. "Syntax error" is here to catch this case.
4052 if test $ac_cache; then
4053 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4054 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4055 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4056 fi
4057 ac_header= ac_cache=
4058 elif test $ac_header; then
4059 ac_cache=$ac_item
4060 else
4061 ac_header=$ac_item
4062 fi
4063 done
4064
4065
4066
4067
4068
4069
4070
4071
4072 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4073 then :
4074
4075 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4076
4077 fi
4078
4079
4080
4081
4082
4083
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4085 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4086 if test ${ac_cv_safe_to_define___extensions__+y}
4087 then :
4088 printf %s "(cached) " >&6
4089 else $as_nop
35474090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35484091 /* end confdefs.h. */
3549 #ifdef __STDC__
3550 # include <limits.h>
3551 #else
3552 # include <assert.h>
3553 #endif
3554 Syntax error
3555 _ACEOF
3556 if ac_fn_c_try_cpp "$LINENO"; then :
3557
3558 else
3559 # Broken: fails on valid input.
3560 continue
3561 fi
3562 rm -f conftest.err conftest.i conftest.$ac_ext
3563
3564 # OK, works on sane cases. Now check whether nonexistent headers
3565 # can be detected and how.
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3568 #include <ac_nonexistent.h>
3569 _ACEOF
3570 if ac_fn_c_try_cpp "$LINENO"; then :
3571 # Broken: success on invalid input.
3572 continue
3573 else
3574 # Passes both tests.
3575 ac_preproc_ok=:
3576 break
3577 fi
3578 rm -f conftest.err conftest.i conftest.$ac_ext
3579
3580 done
3581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3582 rm -f conftest.i conftest.err conftest.$ac_ext
3583 if $ac_preproc_ok; then :
3584 break
3585 fi
3586
3587 done
3588 ac_cv_prog_CPP=$CPP
3589
3590 fi
3591 CPP=$ac_cv_prog_CPP
3592 else
3593 ac_cv_prog_CPP=$CPP
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3596 $as_echo "$CPP" >&6; }
3597 ac_preproc_ok=false
3598 for ac_c_preproc_warn_flag in '' yes
3599 do
3600 # Use a header file that comes with gcc, so configuring glibc
3601 # with a fresh cross-compiler works.
3602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3603 # <limits.h> exists even on freestanding compilers.
3604 # On the NeXT, cc -E runs the code through the compiler's parser,
3605 # not just through cpp. "Syntax error" is here to catch this case.
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3608 #ifdef __STDC__
3609 # include <limits.h>
3610 #else
3611 # include <assert.h>
3612 #endif
3613 Syntax error
3614 _ACEOF
3615 if ac_fn_c_try_cpp "$LINENO"; then :
3616
3617 else
3618 # Broken: fails on valid input.
3619 continue
3620 fi
3621 rm -f conftest.err conftest.i conftest.$ac_ext
3622
3623 # OK, works on sane cases. Now check whether nonexistent headers
3624 # can be detected and how.
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3627 #include <ac_nonexistent.h>
3628 _ACEOF
3629 if ac_fn_c_try_cpp "$LINENO"; then :
3630 # Broken: success on invalid input.
3631 continue
3632 else
3633 # Passes both tests.
3634 ac_preproc_ok=:
3635 break
3636 fi
3637 rm -f conftest.err conftest.i conftest.$ac_ext
3638
3639 done
3640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3641 rm -f conftest.i conftest.err conftest.$ac_ext
3642 if $ac_preproc_ok; then :
3643
3644 else
3645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3648 See \`config.log' for more details" "$LINENO" 5; }
3649 fi
3650
3651 ac_ext=c
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656
3657
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3659 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3660 if ${ac_cv_path_GREP+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if test -z "$GREP"; then
3664 ac_path_GREP_found=false
3665 # Loop through the user's path and test for each of PROGNAME-LIST
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3668 do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_prog in grep ggrep; do
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3674 as_fn_executable_p "$ac_path_GREP" || continue
3675 # Check for GNU ac_path_GREP and select it if it is found.
3676 # Check for GNU $ac_path_GREP
3677 case `"$ac_path_GREP" --version 2>&1` in
3678 *GNU*)
3679 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3680 *)
3681 ac_count=0
3682 $as_echo_n 0123456789 >"conftest.in"
3683 while :
3684 do
3685 cat "conftest.in" "conftest.in" >"conftest.tmp"
3686 mv "conftest.tmp" "conftest.in"
3687 cp "conftest.in" "conftest.nl"
3688 $as_echo 'GREP' >> "conftest.nl"
3689 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3691 as_fn_arith $ac_count + 1 && ac_count=$as_val
3692 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3693 # Best one so far, save it but keep looking for a better one
3694 ac_cv_path_GREP="$ac_path_GREP"
3695 ac_path_GREP_max=$ac_count
3696 fi
3697 # 10*(2^10) chars as input seems more than enough
3698 test $ac_count -gt 10 && break
3699 done
3700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3701 esac
3702
3703 $ac_path_GREP_found && break 3
3704 done
3705 done
3706 done
3707 IFS=$as_save_IFS
3708 if test -z "$ac_cv_path_GREP"; then
3709 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3710 fi
3711 else
3712 ac_cv_path_GREP=$GREP
3713 fi
3714
3715 fi
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3717 $as_echo "$ac_cv_path_GREP" >&6; }
3718 GREP="$ac_cv_path_GREP"
3719
3720
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3722 $as_echo_n "checking for egrep... " >&6; }
3723 if ${ac_cv_path_EGREP+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3727 then ac_cv_path_EGREP="$GREP -E"
3728 else
3729 if test -z "$EGREP"; then
3730 ac_path_EGREP_found=false
3731 # Loop through the user's path and test for each of PROGNAME-LIST
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3734 do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_prog in egrep; do
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3740 as_fn_executable_p "$ac_path_EGREP" || continue
3741 # Check for GNU ac_path_EGREP and select it if it is found.
3742 # Check for GNU $ac_path_EGREP
3743 case `"$ac_path_EGREP" --version 2>&1` in
3744 *GNU*)
3745 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3746 *)
3747 ac_count=0
3748 $as_echo_n 0123456789 >"conftest.in"
3749 while :
3750 do
3751 cat "conftest.in" "conftest.in" >"conftest.tmp"
3752 mv "conftest.tmp" "conftest.in"
3753 cp "conftest.in" "conftest.nl"
3754 $as_echo 'EGREP' >> "conftest.nl"
3755 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3757 as_fn_arith $ac_count + 1 && ac_count=$as_val
3758 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3759 # Best one so far, save it but keep looking for a better one
3760 ac_cv_path_EGREP="$ac_path_EGREP"
3761 ac_path_EGREP_max=$ac_count
3762 fi
3763 # 10*(2^10) chars as input seems more than enough
3764 test $ac_count -gt 10 && break
3765 done
3766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3767 esac
3768
3769 $ac_path_EGREP_found && break 3
3770 done
3771 done
3772 done
3773 IFS=$as_save_IFS
3774 if test -z "$ac_cv_path_EGREP"; then
3775 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3776 fi
3777 else
3778 ac_cv_path_EGREP=$EGREP
3779 fi
3780
3781 fi
3782 fi
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3784 $as_echo "$ac_cv_path_EGREP" >&6; }
3785 EGREP="$ac_cv_path_EGREP"
3786
3787
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3789 $as_echo_n "checking for ANSI C header files... " >&6; }
3790 if ${ac_cv_header_stdc+:} false; then :
3791 $as_echo_n "(cached) " >&6
3792 else
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795 #include <stdlib.h>
3796 #include <stdarg.h>
3797 #include <string.h>
3798 #include <float.h>
3799
4092
4093 # define __EXTENSIONS__ 1
4094 $ac_includes_default
38004095 int
3801 main ()
4096 main (void)
38024097 {
38034098
38044099 ;
38054100 return 0;
38064101 }
38074102 _ACEOF
3808 if ac_fn_c_try_compile "$LINENO"; then :
3809 ac_cv_header_stdc=yes
3810 else
3811 ac_cv_header_stdc=no
3812 fi
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814
3815 if test $ac_cv_header_stdc = yes; then
3816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4103 if ac_fn_c_try_compile "$LINENO"
4104 then :
4105 ac_cv_safe_to_define___extensions__=yes
4106 else $as_nop
4107 ac_cv_safe_to_define___extensions__=no
4108 fi
4109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4110 fi
4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4112 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4113
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4115 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4116 if test ${ac_cv_should_define__xopen_source+y}
4117 then :
4118 printf %s "(cached) " >&6
4119 else $as_nop
4120 ac_cv_should_define__xopen_source=no
4121 if test $ac_cv_header_wchar_h = yes
4122 then :
38174123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38184124 /* end confdefs.h. */
3819 #include <string.h>
3820
3821 _ACEOF
3822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3823 $EGREP "memchr" >/dev/null 2>&1; then :
3824
3825 else
3826 ac_cv_header_stdc=no
3827 fi
3828 rm -f conftest*
3829
3830 fi
3831
3832 if test $ac_cv_header_stdc = yes; then
3833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836 #include <stdlib.h>
3837
3838 _ACEOF
3839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3840 $EGREP "free" >/dev/null 2>&1; then :
3841
3842 else
3843 ac_cv_header_stdc=no
3844 fi
3845 rm -f conftest*
3846
3847 fi
3848
3849 if test $ac_cv_header_stdc = yes; then
3850 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3851 if test "$cross_compiling" = yes; then :
3852 :
3853 else
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #include <ctype.h>
3857 #include <stdlib.h>
3858 #if ((' ' & 0x0FF) == 0x020)
3859 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3860 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3861 #else
3862 # define ISLOWER(c) \
3863 (('a' <= (c) && (c) <= 'i') \
3864 || ('j' <= (c) && (c) <= 'r') \
3865 || ('s' <= (c) && (c) <= 'z'))
3866 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3867 #endif
3868
3869 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4125
4126 #include <wchar.h>
4127 mbstate_t x;
38704128 int
3871 main ()
3872 {
3873 int i;
3874 for (i = 0; i < 256; i++)
3875 if (XOR (islower (i), ISLOWER (i))
3876 || toupper (i) != TOUPPER (i))
3877 return 2;
3878 return 0;
3879 }
3880 _ACEOF
3881 if ac_fn_c_try_run "$LINENO"; then :
3882
3883 else
3884 ac_cv_header_stdc=no
3885 fi
3886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3887 conftest.$ac_objext conftest.beam conftest.$ac_ext
3888 fi
3889
3890 fi
3891 fi
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3893 $as_echo "$ac_cv_header_stdc" >&6; }
3894 if test $ac_cv_header_stdc = yes; then
3895
3896 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3897
3898 fi
3899
3900 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3901 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3902 inttypes.h stdint.h unistd.h
3903 do :
3904 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3905 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3906 "
3907 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3908 cat >>confdefs.h <<_ACEOF
3909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3910 _ACEOF
3911
3912 fi
3913
3914 done
3915
3916
3917
3918 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3919 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3920 MINIX=yes
3921 else
3922 MINIX=
3923 fi
3924
3925
3926 if test "$MINIX" = yes; then
3927
3928 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3929
3930
3931 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3932
3933
3934 $as_echo "#define _MINIX 1" >>confdefs.h
3935
3936 fi
3937
3938
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3940 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3941 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3942 $as_echo_n "(cached) " >&6
3943 else
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3946
3947 # define __EXTENSIONS__ 1
3948 $ac_includes_default
3949 int
3950 main ()
4129 main (void)
39514130 {
39524131
39534132 ;
39544133 return 0;
39554134 }
39564135 _ACEOF
3957 if ac_fn_c_try_compile "$LINENO"; then :
3958 ac_cv_safe_to_define___extensions__=yes
3959 else
3960 ac_cv_safe_to_define___extensions__=no
3961 fi
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 fi
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3965 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3966 test $ac_cv_safe_to_define___extensions__ = yes &&
3967 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3968
3969 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3970
3971 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3972
3973 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3974
3975 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3976
4136 if ac_fn_c_try_compile "$LINENO"
4137 then :
4138
4139 else $as_nop
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142
4143 #define _XOPEN_SOURCE 500
4144 #include <wchar.h>
4145 mbstate_t x;
4146 int
4147 main (void)
4148 {
4149
4150 ;
4151 return 0;
4152 }
4153 _ACEOF
4154 if ac_fn_c_try_compile "$LINENO"
4155 then :
4156 ac_cv_should_define__xopen_source=yes
4157 fi
4158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4159 fi
4160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4161 fi
4162 fi
4163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4164 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4165
4166 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4167
4168 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4169
4170 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4171
4172 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4173
4174 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4175
4176 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4177
4178 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4179
4180 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4181
4182 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4183
4184 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4185
4186 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4187
4188 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4189
4190 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4191
4192 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4193
4194 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4195
4196 if test $ac_cv_header_minix_config_h = yes
4197 then :
4198 MINIX=yes
4199 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4200
4201 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4202
4203 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4204
4205 else $as_nop
4206 MINIX=
4207 fi
4208 if test $ac_cv_safe_to_define___extensions__ = yes
4209 then :
4210 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4211
4212 fi
4213 if test $ac_cv_should_define__xopen_source = yes
4214 then :
4215 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4216
4217 fi
39774218
39784219
39794220 am__api_version='1.16'
39804221
3981 # Find a good install program. We prefer a C program (faster),
4222
4223 # Find a good install program. We prefer a C program (faster),
39824224 # so one script is as good as another. But avoid the broken or
39834225 # incompatible versions:
39844226 # SysV /etc/install, /usr/sbin/install
39924234 # OS/2's system install, which has a completely different semantic
39934235 # ./install, which can be erroneously created by make from ./install.sh.
39944236 # Reject install programs that cannot install multiple files.
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3996 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4238 printf %s "checking for a BSD-compatible install... " >&6; }
39974239 if test -z "$INSTALL"; then
3998 if ${ac_cv_path_install+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4240 if test ${ac_cv_path_install+y}
4241 then :
4242 printf %s "(cached) " >&6
4243 else $as_nop
40014244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40024245 for as_dir in $PATH
40034246 do
40044247 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 # Account for people who put trailing slashes in PATH elements.
4007 case $as_dir/ in #((
4008 ./ | .// | /[cC]/* | \
4248 case $as_dir in #(((
4249 '') as_dir=./ ;;
4250 */) ;;
4251 *) as_dir=$as_dir/ ;;
4252 esac
4253 # Account for fact that we put trailing slashes in our PATH walk.
4254 case $as_dir in #((
4255 ./ | /[cC]/* | \
40094256 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
40104257 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
40114258 /usr/ucb/* ) ;;
40154262 # by default.
40164263 for ac_prog in ginstall scoinst install; do
40174264 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4265 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
40194266 if test $ac_prog = install &&
4020 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4267 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40214268 # AIX install. It has an incompatible calling convention.
40224269 :
40234270 elif test $ac_prog = install &&
4024 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4271 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40254272 # program-specific install script used by HP pwplus--don't use.
40264273 :
40274274 else
40294276 echo one > conftest.one
40304277 echo two > conftest.two
40314278 mkdir conftest.dir
4032 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4279 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
40334280 test -s conftest.one && test -s conftest.two &&
40344281 test -s conftest.dir/conftest.one &&
40354282 test -s conftest.dir/conftest.two
40364283 then
4037 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4284 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
40384285 break 3
40394286 fi
40404287 fi
40504297 rm -rf conftest.one conftest.two conftest.dir
40514298
40524299 fi
4053 if test "${ac_cv_path_install+set}" = set; then
4300 if test ${ac_cv_path_install+y}; then
40544301 INSTALL=$ac_cv_path_install
40554302 else
40564303 # As a last resort, use the slow shell script. Don't cache a
40604307 INSTALL=$ac_install_sh
40614308 fi
40624309 fi
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4064 $as_echo "$INSTALL" >&6; }
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4311 printf "%s\n" "$INSTALL" >&6; }
40654312
40664313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40674314 # It thinks the first close brace ends the variable substitution.
40714318
40724319 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40734320
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4075 $as_echo_n "checking whether build environment is sane... " >&6; }
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4322 printf %s "checking whether build environment is sane... " >&6; }
40764323 # Reject unsafe characters in $srcdir or the absolute working directory
40774324 # name. Accept space and tab only in the latter.
40784325 am_lf='
41264373 as_fn_error $? "newly created file is older than distributed files!
41274374 Check your system clock" "$LINENO" 5
41284375 fi
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4130 $as_echo "yes" >&6; }
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4377 printf "%s\n" "yes" >&6; }
41314378 # If we didn't sleep, we still need to ensure time stamps of config.status and
41324379 # generated files are strictly newer.
41334380 am_sleep_pid=
41384385
41394386 rm -f conftest.file
41404387
4141 if test x"${MISSING+set}" != xset; then
4142 case $am_aux_dir in
4143 *\ * | *\ *)
4144 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4145 *)
4146 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4147 esac
4388
4389 if test x"${MISSING+set}" != xset; then
4390 MISSING="\${SHELL} '$am_aux_dir/missing'"
41484391 fi
41494392 # Use eval to expand $SHELL
41504393 if eval "$MISSING --is-lightweight"; then
41514394 am_missing_run="$MISSING "
41524395 else
41534396 am_missing_run=
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4155 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4398 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
41564399 fi
41574400
41584401 if test x"${install_sh+set}" != xset; then
41724415 if test -n "$ac_tool_prefix"; then
41734416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41744417 set dummy ${ac_tool_prefix}strip; ac_word=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if ${ac_cv_prog_STRIP+:} false; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 printf %s "checking for $ac_word... " >&6; }
4420 if test ${ac_cv_prog_STRIP+y}
4421 then :
4422 printf %s "(cached) " >&6
4423 else $as_nop
41804424 if test -n "$STRIP"; then
41814425 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41824426 else
41844428 for as_dir in $PATH
41854429 do
41864430 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4431 case $as_dir in #(((
4432 '') as_dir=./ ;;
4433 */) ;;
4434 *) as_dir=$as_dir/ ;;
4435 esac
41884436 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
41904438 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
41924440 break 2
41934441 fi
41944442 done
41994447 fi
42004448 STRIP=$ac_cv_prog_STRIP
42014449 if test -n "$STRIP"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4203 $as_echo "$STRIP" >&6; }
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4451 printf "%s\n" "$STRIP" >&6; }
42044452 else
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 printf "%s\n" "no" >&6; }
42074455 fi
42084456
42094457
42124460 ac_ct_STRIP=$STRIP
42134461 # Extract the first word of "strip", so it can be a program name with args.
42144462 set dummy strip; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 printf %s "checking for $ac_word... " >&6; }
4465 if test ${ac_cv_prog_ac_ct_STRIP+y}
4466 then :
4467 printf %s "(cached) " >&6
4468 else $as_nop
42204469 if test -n "$ac_ct_STRIP"; then
42214470 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
42224471 else
42244473 for as_dir in $PATH
42254474 do
42264475 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4476 case $as_dir in #(((
4477 '') as_dir=./ ;;
4478 */) ;;
4479 *) as_dir=$as_dir/ ;;
4480 esac
42284481 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
42304483 ac_cv_prog_ac_ct_STRIP="strip"
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
42324485 break 2
42334486 fi
42344487 done
42394492 fi
42404493 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
42414494 if test -n "$ac_ct_STRIP"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4243 $as_echo "$ac_ct_STRIP" >&6; }
4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4496 printf "%s\n" "$ac_ct_STRIP" >&6; }
42444497 else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 printf "%s\n" "no" >&6; }
42474500 fi
42484501
42494502 if test "x$ac_ct_STRIP" = x; then
42514504 else
42524505 case $cross_compiling:$ac_tool_warned in
42534506 yes:)
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4508 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
42564509 ac_tool_warned=yes ;;
42574510 esac
42584511 STRIP=$ac_ct_STRIP
42644517 fi
42654518 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
42664519
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4268 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4520
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4522 printf %s "checking for a race-free mkdir -p... " >&6; }
42694523 if test -z "$MKDIR_P"; then
4270 if ${ac_cv_path_mkdir+:} false; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4524 if test ${ac_cv_path_mkdir+y}
4525 then :
4526 printf %s "(cached) " >&6
4527 else $as_nop
42734528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42744529 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
42754530 do
42764531 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4532 case $as_dir in #(((
4533 '') as_dir=./ ;;
4534 */) ;;
4535 *) as_dir=$as_dir/ ;;
4536 esac
42784537 for ac_prog in mkdir gmkdir; do
42794538 for ac_exec_ext in '' $ac_executable_extensions; do
4280 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4281 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4282 'mkdir (GNU coreutils) '* | \
4283 'mkdir (coreutils) '* | \
4539 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4540 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4541 'mkdir ('*'coreutils) '* | \
4542 'BusyBox '* | \
42844543 'mkdir (fileutils) '4.1*)
4285 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4544 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
42864545 break 3;;
42874546 esac
42884547 done
42934552 fi
42944553
42954554 test -d ./--version && rmdir ./--version
4296 if test "${ac_cv_path_mkdir+set}" = set; then
4555 if test ${ac_cv_path_mkdir+y}; then
42974556 MKDIR_P="$ac_cv_path_mkdir -p"
42984557 else
42994558 # As a last resort, use the slow shell script. Don't cache a
43034562 MKDIR_P="$ac_install_sh -d"
43044563 fi
43054564 fi
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4307 $as_echo "$MKDIR_P" >&6; }
4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4566 printf "%s\n" "$MKDIR_P" >&6; }
43084567
43094568 for ac_prog in gawk mawk nawk awk
43104569 do
43114570 # Extract the first word of "$ac_prog", so it can be a program name with args.
43124571 set dummy $ac_prog; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if ${ac_cv_prog_AWK+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 printf %s "checking for $ac_word... " >&6; }
4574 if test ${ac_cv_prog_AWK+y}
4575 then :
4576 printf %s "(cached) " >&6
4577 else $as_nop
43184578 if test -n "$AWK"; then
43194579 ac_cv_prog_AWK="$AWK" # Let the user override the test.
43204580 else
43224582 for as_dir in $PATH
43234583 do
43244584 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4585 case $as_dir in #(((
4586 '') as_dir=./ ;;
4587 */) ;;
4588 *) as_dir=$as_dir/ ;;
4589 esac
43264590 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43284592 ac_cv_prog_AWK="$ac_prog"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43304594 break 2
43314595 fi
43324596 done
43374601 fi
43384602 AWK=$ac_cv_prog_AWK
43394603 if test -n "$AWK"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4341 $as_echo "$AWK" >&6; }
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4605 printf "%s\n" "$AWK" >&6; }
43424606 else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 $as_echo "no" >&6; }
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 printf "%s\n" "no" >&6; }
43454609 fi
43464610
43474611
43484612 test -n "$AWK" && break
43494613 done
43504614
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4352 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4616 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
43534617 set x ${MAKE-make}
4354 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4355 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4618 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4619 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4620 then :
4621 printf %s "(cached) " >&6
4622 else $as_nop
43584623 cat >conftest.make <<\_ACEOF
43594624 SHELL = /bin/sh
43604625 all:
43704635 rm -f conftest.make
43714636 fi
43724637 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4374 $as_echo "yes" >&6; }
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4639 printf "%s\n" "yes" >&6; }
43754640 SET_MAKE=
43764641 else
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 printf "%s\n" "no" >&6; }
43794644 SET_MAKE="MAKE=${MAKE-make}"
43804645 fi
43814646
43924657
43934658 ac_config_commands="$ac_config_commands depfiles"
43944659
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4396 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4661 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
43974662 cat > confinc.mk << 'END'
43984663 am__doit:
43994664 @echo this is the am__doit target >confinc.out
44294694 fi
44304695 done
44314696 rm -f confinc.* confmf.*
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4433 $as_echo "${_am_result}" >&6; }
4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4698 printf "%s\n" "${_am_result}" >&6; }
44344699
44354700 # Check whether --enable-dependency-tracking was given.
4436 if test "${enable_dependency_tracking+set}" = set; then :
4701 if test ${enable_dependency_tracking+y}
4702 then :
44374703 enableval=$enable_dependency_tracking;
44384704 fi
44394705
44524718
44534719
44544720 # Check whether --enable-silent-rules was given.
4455 if test "${enable_silent_rules+set}" = set; then :
4721 if test ${enable_silent_rules+y}
4722 then :
44564723 enableval=$enable_silent_rules;
44574724 fi
44584725
44624729 *) AM_DEFAULT_VERBOSITY=1;;
44634730 esac
44644731 am_make=${MAKE-make}
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4466 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4467 if ${am_cv_make_support_nested_variables+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 if $as_echo 'TRUE=$(BAR$(V))
4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4733 printf %s "checking whether $am_make supports nested variables... " >&6; }
4734 if test ${am_cv_make_support_nested_variables+y}
4735 then :
4736 printf %s "(cached) " >&6
4737 else $as_nop
4738 if printf "%s\n" 'TRUE=$(BAR$(V))
44714739 BAR0=false
44724740 BAR1=true
44734741 V=1
44794747 am_cv_make_support_nested_variables=no
44804748 fi
44814749 fi
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4483 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4751 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
44844752 if test $am_cv_make_support_nested_variables = yes; then
44854753 AM_V='$(V)'
44864754 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
45124780
45134781 # Define the identity of the package.
45144782 PACKAGE='libeatmydata'
4515 VERSION='130'
4516
4517
4518 cat >>confdefs.h <<_ACEOF
4519 #define PACKAGE "$PACKAGE"
4520 _ACEOF
4521
4522
4523 cat >>confdefs.h <<_ACEOF
4524 #define VERSION "$VERSION"
4525 _ACEOF
4783 VERSION='131'
4784
4785
4786 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4787
4788
4789 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
45264790
45274791 # Some tools Automake needs.
45284792
45684832 # (that is, avoid stderr redirection).
45694833 am_uid=`id -u || echo unknown`
45704834 am_gid=`id -g || echo unknown`
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4572 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4836 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
45734837 if test $am_uid -le $am_max_uid; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4575 $as_echo "yes" >&6; }
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4839 printf "%s\n" "yes" >&6; }
45764840 else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 printf "%s\n" "no" >&6; }
45794843 _am_tools=none
45804844 fi
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4582 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4846 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
45834847 if test $am_gid -le $am_max_gid; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4585 $as_echo "yes" >&6; }
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4849 printf "%s\n" "yes" >&6; }
45864850 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 printf "%s\n" "no" >&6; }
45894853 _am_tools=none
45904854 fi
45914855
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4593 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4857 printf %s "checking how to create a ustar tar archive... " >&6; }
45944858
45954859 # Go ahead even if we have the value already cached. We do so because we
45964860 # need to set the values for the 'am__tar' and 'am__untar' variables.
46654929 done
46664930 rm -rf conftest.dir
46674931
4668 if ${am_cv_prog_tar_ustar+:} false; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4932 if test ${am_cv_prog_tar_ustar+y}
4933 then :
4934 printf %s "(cached) " >&6
4935 else $as_nop
46714936 am_cv_prog_tar_ustar=$_am_tool
46724937 fi
46734938
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4675 $as_echo "$am_cv_prog_tar_ustar" >&6; }
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4940 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
46764941
46774942
46784943
46804945
46814946 depcc="$CC" am_compiler_list=
46824947
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4684 $as_echo_n "checking dependency style of $depcc... " >&6; }
4685 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4949 printf %s "checking dependency style of $depcc... " >&6; }
4950 if test ${am_cv_CC_dependencies_compiler_type+y}
4951 then :
4952 printf %s "(cached) " >&6
4953 else $as_nop
46884954 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
46894955 # We make a subdir and do the tests there. Otherwise we can end up
46904956 # making bogus files that we don't know about and never remove. For
47915057 fi
47925058
47935059 fi
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4795 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5061 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
47965062 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
47975063
47985064 if
48035069 else
48045070 am__fastdepCC_TRUE='#'
48055071 am__fastdepCC_FALSE=
5072 fi
5073
5074
5075 # Variables for tags utilities; see am/tags.am
5076 if test -z "$CTAGS"; then
5077 CTAGS=ctags
5078 fi
5079
5080 if test -z "$ETAGS"; then
5081 ETAGS=etags
5082 fi
5083
5084 if test -z "$CSCOPE"; then
5085 CSCOPE=cscope
48065086 fi
48075087
48085088
48555135
48565136 case `pwd` in
48575137 *\ * | *\ *)
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4859 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5139 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
48605140 esac
48615141
48625142
48635143
4864 macro_version='2.4.6'
4865 macro_revision='2.4.6'
5144 macro_version='2.4.7'
5145 macro_revision='2.4.7'
5146
48665147
48675148
48685149
48995180 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
49005181 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
49015182
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4903 $as_echo_n "checking how to print strings... " >&6; }
5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5184 printf %s "checking how to print strings... " >&6; }
49045185 # Test print first, because it will be a builtin if present.
49055186 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
49065187 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
49265207 }
49275208
49285209 case $ECHO in
4929 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4930 $as_echo "printf" >&6; } ;;
4931 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4932 $as_echo "print -r" >&6; } ;;
4933 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4934 $as_echo "cat" >&6; } ;;
5210 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5211 printf "%s\n" "printf" >&6; } ;;
5212 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5213 printf "%s\n" "print -r" >&6; } ;;
5214 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5215 printf "%s\n" "cat" >&6; } ;;
49355216 esac
49365217
49375218
49475228
49485229
49495230
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4951 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4952 if ${ac_cv_path_SED+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5232 printf %s "checking for a sed that does not truncate output... " >&6; }
5233 if test ${ac_cv_path_SED+y}
5234 then :
5235 printf %s "(cached) " >&6
5236 else $as_nop
49555237 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
49565238 for ac_i in 1 2 3 4 5 6 7; do
49575239 ac_script="$ac_script$as_nl$ac_script"
49655247 for as_dir in $PATH
49665248 do
49675249 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_prog in sed gsed; do
5250 case $as_dir in #(((
5251 '') as_dir=./ ;;
5252 */) ;;
5253 *) as_dir=$as_dir/ ;;
5254 esac
5255 for ac_prog in sed gsed
5256 do
49705257 for ac_exec_ext in '' $ac_executable_extensions; do
4971 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5258 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
49725259 as_fn_executable_p "$ac_path_SED" || continue
49735260 # Check for GNU ac_path_SED and select it if it is found.
49745261 # Check for GNU $ac_path_SED
49775264 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
49785265 *)
49795266 ac_count=0
4980 $as_echo_n 0123456789 >"conftest.in"
5267 printf %s 0123456789 >"conftest.in"
49815268 while :
49825269 do
49835270 cat "conftest.in" "conftest.in" >"conftest.tmp"
49845271 mv "conftest.tmp" "conftest.in"
49855272 cp "conftest.in" "conftest.nl"
4986 $as_echo '' >> "conftest.nl"
5273 printf "%s\n" '' >> "conftest.nl"
49875274 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
49885275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
49895276 as_fn_arith $ac_count + 1 && ac_count=$as_val
50115298 fi
50125299
50135300 fi
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5015 $as_echo "$ac_cv_path_SED" >&6; }
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5302 printf "%s\n" "$ac_cv_path_SED" >&6; }
50165303 SED="$ac_cv_path_SED"
50175304 rm -f conftest.sed
50185305
50295316
50305317
50315318
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5033 $as_echo_n "checking for fgrep... " >&6; }
5034 if ${ac_cv_path_FGREP+:} false; then :
5035 $as_echo_n "(cached) " >&6
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5320 printf %s "checking for grep that handles long lines and -e... " >&6; }
5321 if test ${ac_cv_path_GREP+y}
5322 then :
5323 printf %s "(cached) " >&6
5324 else $as_nop
5325 if test -z "$GREP"; then
5326 ac_path_GREP_found=false
5327 # Loop through the user's path and test for each of PROGNAME-LIST
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5330 do
5331 IFS=$as_save_IFS
5332 case $as_dir in #(((
5333 '') as_dir=./ ;;
5334 */) ;;
5335 *) as_dir=$as_dir/ ;;
5336 esac
5337 for ac_prog in grep ggrep
5338 do
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5341 as_fn_executable_p "$ac_path_GREP" || continue
5342 # Check for GNU ac_path_GREP and select it if it is found.
5343 # Check for GNU $ac_path_GREP
5344 case `"$ac_path_GREP" --version 2>&1` in
5345 *GNU*)
5346 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5347 *)
5348 ac_count=0
5349 printf %s 0123456789 >"conftest.in"
5350 while :
5351 do
5352 cat "conftest.in" "conftest.in" >"conftest.tmp"
5353 mv "conftest.tmp" "conftest.in"
5354 cp "conftest.in" "conftest.nl"
5355 printf "%s\n" 'GREP' >> "conftest.nl"
5356 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5357 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5358 as_fn_arith $ac_count + 1 && ac_count=$as_val
5359 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5360 # Best one so far, save it but keep looking for a better one
5361 ac_cv_path_GREP="$ac_path_GREP"
5362 ac_path_GREP_max=$ac_count
5363 fi
5364 # 10*(2^10) chars as input seems more than enough
5365 test $ac_count -gt 10 && break
5366 done
5367 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5368 esac
5369
5370 $ac_path_GREP_found && break 3
5371 done
5372 done
5373 done
5374 IFS=$as_save_IFS
5375 if test -z "$ac_cv_path_GREP"; then
5376 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5377 fi
50365378 else
5379 ac_cv_path_GREP=$GREP
5380 fi
5381
5382 fi
5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5384 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5385 GREP="$ac_cv_path_GREP"
5386
5387
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5389 printf %s "checking for egrep... " >&6; }
5390 if test ${ac_cv_path_EGREP+y}
5391 then :
5392 printf %s "(cached) " >&6
5393 else $as_nop
5394 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5395 then ac_cv_path_EGREP="$GREP -E"
5396 else
5397 if test -z "$EGREP"; then
5398 ac_path_EGREP_found=false
5399 # Loop through the user's path and test for each of PROGNAME-LIST
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5402 do
5403 IFS=$as_save_IFS
5404 case $as_dir in #(((
5405 '') as_dir=./ ;;
5406 */) ;;
5407 *) as_dir=$as_dir/ ;;
5408 esac
5409 for ac_prog in egrep
5410 do
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5413 as_fn_executable_p "$ac_path_EGREP" || continue
5414 # Check for GNU ac_path_EGREP and select it if it is found.
5415 # Check for GNU $ac_path_EGREP
5416 case `"$ac_path_EGREP" --version 2>&1` in
5417 *GNU*)
5418 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5419 *)
5420 ac_count=0
5421 printf %s 0123456789 >"conftest.in"
5422 while :
5423 do
5424 cat "conftest.in" "conftest.in" >"conftest.tmp"
5425 mv "conftest.tmp" "conftest.in"
5426 cp "conftest.in" "conftest.nl"
5427 printf "%s\n" 'EGREP' >> "conftest.nl"
5428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5430 as_fn_arith $ac_count + 1 && ac_count=$as_val
5431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5432 # Best one so far, save it but keep looking for a better one
5433 ac_cv_path_EGREP="$ac_path_EGREP"
5434 ac_path_EGREP_max=$ac_count
5435 fi
5436 # 10*(2^10) chars as input seems more than enough
5437 test $ac_count -gt 10 && break
5438 done
5439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5440 esac
5441
5442 $ac_path_EGREP_found && break 3
5443 done
5444 done
5445 done
5446 IFS=$as_save_IFS
5447 if test -z "$ac_cv_path_EGREP"; then
5448 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5449 fi
5450 else
5451 ac_cv_path_EGREP=$EGREP
5452 fi
5453
5454 fi
5455 fi
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5457 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5458 EGREP="$ac_cv_path_EGREP"
5459
5460
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5462 printf %s "checking for fgrep... " >&6; }
5463 if test ${ac_cv_path_FGREP+y}
5464 then :
5465 printf %s "(cached) " >&6
5466 else $as_nop
50375467 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
50385468 then ac_cv_path_FGREP="$GREP -F"
50395469 else
50445474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
50455475 do
50465476 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_prog in fgrep; do
5477 case $as_dir in #(((
5478 '') as_dir=./ ;;
5479 */) ;;
5480 *) as_dir=$as_dir/ ;;
5481 esac
5482 for ac_prog in fgrep
5483 do
50495484 for ac_exec_ext in '' $ac_executable_extensions; do
5050 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5485 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
50515486 as_fn_executable_p "$ac_path_FGREP" || continue
50525487 # Check for GNU ac_path_FGREP and select it if it is found.
50535488 # Check for GNU $ac_path_FGREP
50565491 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
50575492 *)
50585493 ac_count=0
5059 $as_echo_n 0123456789 >"conftest.in"
5494 printf %s 0123456789 >"conftest.in"
50605495 while :
50615496 do
50625497 cat "conftest.in" "conftest.in" >"conftest.tmp"
50635498 mv "conftest.tmp" "conftest.in"
50645499 cp "conftest.in" "conftest.nl"
5065 $as_echo 'FGREP' >> "conftest.nl"
5500 printf "%s\n" 'FGREP' >> "conftest.nl"
50665501 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
50675502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
50685503 as_fn_arith $ac_count + 1 && ac_count=$as_val
50915526
50925527 fi
50935528 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5095 $as_echo "$ac_cv_path_FGREP" >&6; }
5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5530 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
50965531 FGREP="$ac_cv_path_FGREP"
50975532
50985533
51175552
51185553
51195554 # Check whether --with-gnu-ld was given.
5120 if test "${with_gnu_ld+set}" = set; then :
5555 if test ${with_gnu_ld+y}
5556 then :
51215557 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5122 else
5558 else $as_nop
51235559 with_gnu_ld=no
51245560 fi
51255561
51265562 ac_prog=ld
51275563 if test yes = "$GCC"; then
51285564 # Check if gcc -print-prog-name=ld gives a path.
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5130 $as_echo_n "checking for ld used by $CC... " >&6; }
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5566 printf %s "checking for ld used by $CC... " >&6; }
51315567 case $host in
51325568 *-*-mingw*)
51335569 # gcc leaves a trailing carriage return, which upsets mingw
51565592 ;;
51575593 esac
51585594 elif test yes = "$with_gnu_ld"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5160 $as_echo_n "checking for GNU ld... " >&6; }
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5596 printf %s "checking for GNU ld... " >&6; }
51615597 else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5163 $as_echo_n "checking for non-GNU ld... " >&6; }
5164 fi
5165 if ${lt_cv_path_LD+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5599 printf %s "checking for non-GNU ld... " >&6; }
5600 fi
5601 if test ${lt_cv_path_LD+y}
5602 then :
5603 printf %s "(cached) " >&6
5604 else $as_nop
51685605 if test -z "$LD"; then
51695606 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
51705607 for ac_dir in $PATH; do
51935630
51945631 LD=$lt_cv_path_LD
51955632 if test -n "$LD"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5197 $as_echo "$LD" >&6; }
5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5634 printf "%s\n" "$LD" >&6; }
51985635 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 printf "%s\n" "no" >&6; }
52015638 fi
52025639 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5204 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5205 if ${lt_cv_prog_gnu_ld+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5641 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5642 if test ${lt_cv_prog_gnu_ld+y}
5643 then :
5644 printf %s "(cached) " >&6
5645 else $as_nop
52085646 # I'd rather use --version here, but apparently some GNU lds only accept -v.
52095647 case `$LD -v 2>&1 </dev/null` in
52105648 *GNU* | *'with BFD'*)
52155653 ;;
52165654 esac
52175655 fi
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5219 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5657 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
52205658 with_gnu_ld=$lt_cv_prog_gnu_ld
52215659
52225660
52275665
52285666
52295667
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5231 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5232 if ${lt_cv_path_NM+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5669 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5670 if test ${lt_cv_path_NM+y}
5671 then :
5672 printf %s "(cached) " >&6
5673 else $as_nop
52355674 if test -n "$NM"; then
52365675 # Let the user override the test.
52375676 lt_cv_path_NM=$NM
52565695 mingw*) lt_bad_file=conftest.nm/nofile ;;
52575696 *) lt_bad_file=/dev/null ;;
52585697 esac
5259 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5698 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
52605699 *$lt_bad_file* | *'Invalid file or object type'*)
52615700 lt_cv_path_NM="$tmp_nm -B"
52625701 break 2
52635702 ;;
52645703 *)
5265 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5704 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
52665705 */dev/null*)
52675706 lt_cv_path_NM="$tmp_nm -p"
52685707 break 2
52815720 : ${lt_cv_path_NM=no}
52825721 fi
52835722 fi
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5285 $as_echo "$lt_cv_path_NM" >&6; }
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5724 printf "%s\n" "$lt_cv_path_NM" >&6; }
52865725 if test no != "$lt_cv_path_NM"; then
52875726 NM=$lt_cv_path_NM
52885727 else
52955734 do
52965735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
52975736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_prog_DUMPBIN+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 printf %s "checking for $ac_word... " >&6; }
5739 if test ${ac_cv_prog_DUMPBIN+y}
5740 then :
5741 printf %s "(cached) " >&6
5742 else $as_nop
53035743 if test -n "$DUMPBIN"; then
53045744 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
53055745 else
53075747 for as_dir in $PATH
53085748 do
53095749 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5750 case $as_dir in #(((
5751 '') as_dir=./ ;;
5752 */) ;;
5753 *) as_dir=$as_dir/ ;;
5754 esac
53115755 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
53135757 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
53155759 break 2
53165760 fi
53175761 done
53225766 fi
53235767 DUMPBIN=$ac_cv_prog_DUMPBIN
53245768 if test -n "$DUMPBIN"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5326 $as_echo "$DUMPBIN" >&6; }
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5770 printf "%s\n" "$DUMPBIN" >&6; }
53275771 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 printf "%s\n" "no" >&6; }
53305774 fi
53315775
53325776
53395783 do
53405784 # Extract the first word of "$ac_prog", so it can be a program name with args.
53415785 set dummy $ac_prog; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787 printf %s "checking for $ac_word... " >&6; }
5788 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5789 then :
5790 printf %s "(cached) " >&6
5791 else $as_nop
53475792 if test -n "$ac_ct_DUMPBIN"; then
53485793 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
53495794 else
53515796 for as_dir in $PATH
53525797 do
53535798 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5799 case $as_dir in #(((
5800 '') as_dir=./ ;;
5801 */) ;;
5802 *) as_dir=$as_dir/ ;;
5803 esac
53555804 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
53575806 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
53595808 break 2
53605809 fi
53615810 done
53665815 fi
53675816 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
53685817 if test -n "$ac_ct_DUMPBIN"; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5370 $as_echo "$ac_ct_DUMPBIN" >&6; }
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5819 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
53715820 else
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 printf "%s\n" "no" >&6; }
53745823 fi
53755824
53765825
53825831 else
53835832 case $cross_compiling:$ac_tool_warned in
53845833 yes:)
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5835 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
53875836 ac_tool_warned=yes ;;
53885837 esac
53895838 DUMPBIN=$ac_ct_DUMPBIN
53905839 fi
53915840 fi
53925841
5393 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5842 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
53945843 *COFF*)
53955844 DUMPBIN="$DUMPBIN -symbols -headers"
53965845 ;;
54115860
54125861
54135862
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5415 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5416 if ${lt_cv_nm_interface+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5864 printf %s "checking the name lister ($NM) interface... " >&6; }
5865 if test ${lt_cv_nm_interface+y}
5866 then :
5867 printf %s "(cached) " >&6
5868 else $as_nop
54195869 lt_cv_nm_interface="BSD nm"
54205870 echo "int some_variable = 0;" > conftest.$ac_ext
54215871 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
54315881 fi
54325882 rm -f conftest*
54335883 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5435 $as_echo "$lt_cv_nm_interface" >&6; }
5436
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5438 $as_echo_n "checking whether ln -s works... " >&6; }
5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5885 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5886
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5888 printf %s "checking whether ln -s works... " >&6; }
54395889 LN_S=$as_ln_s
54405890 if test "$LN_S" = "ln -s"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5442 $as_echo "yes" >&6; }
5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5892 printf "%s\n" "yes" >&6; }
54435893 else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5445 $as_echo "no, using $LN_S" >&6; }
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5895 printf "%s\n" "no, using $LN_S" >&6; }
54465896 fi
54475897
54485898 # find the maximum length of command line arguments
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5450 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5451 if ${lt_cv_sys_max_cmd_len+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5900 printf %s "checking the maximum length of command line arguments... " >&6; }
5901 if test ${lt_cv_sys_max_cmd_len+y}
5902 then :
5903 printf %s "(cached) " >&6
5904 else $as_nop
54545905 i=0
54555906 teststring=ABCD
54565907
54925943 lt_cv_sys_max_cmd_len=8192;
54935944 ;;
54945945
5495 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5946 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
54965947 # This has been around since 386BSD, at least. Likely further.
54975948 if test -x /sbin/sysctl; then
54985949 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
55355986 sysv5* | sco5v6* | sysv4.2uw2*)
55365987 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
55375988 if test -n "$kargmax"; then
5538 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5989 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
55395990 else
55405991 lt_cv_sys_max_cmd_len=32768
55415992 fi
55776028 fi
55786029
55796030 if test -n "$lt_cv_sys_max_cmd_len"; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5581 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6032 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
55826033 else
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5584 $as_echo "none" >&6; }
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6035 printf "%s\n" "none" >&6; }
55856036 fi
55866037 max_cmd_len=$lt_cv_sys_max_cmd_len
55876038
56256076
56266077
56276078
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5629 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5630 if ${lt_cv_to_host_file_cmd+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6080 printf %s "checking how to convert $build file names to $host format... " >&6; }
6081 if test ${lt_cv_to_host_file_cmd+y}
6082 then :
6083 printf %s "(cached) " >&6
6084 else $as_nop
56336085 case $host in
56346086 *-*-mingw* )
56356087 case $build in
56656117 fi
56666118
56676119 to_host_file_cmd=$lt_cv_to_host_file_cmd
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5669 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5670
5671
5672
5673
5674
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5676 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5677 if ${lt_cv_to_tool_file_cmd+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6121 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6122
6123
6124
6125
6126
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6128 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6129 if test ${lt_cv_to_tool_file_cmd+y}
6130 then :
6131 printf %s "(cached) " >&6
6132 else $as_nop
56806133 #assume ordinary cross tools, or native build.
56816134 lt_cv_to_tool_file_cmd=func_convert_file_noop
56826135 case $host in
56926145 fi
56936146
56946147 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5696 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5697
5698
5699
5700
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5703 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5704 if ${lt_cv_ld_reload_flag+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6149 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6150
6151
6152
6153
6154
6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6156 printf %s "checking for $LD option to reload object files... " >&6; }
6157 if test ${lt_cv_ld_reload_flag+y}
6158 then :
6159 printf %s "(cached) " >&6
6160 else $as_nop
57076161 lt_cv_ld_reload_flag='-r'
57086162 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5710 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6164 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
57116165 reload_flag=$lt_cv_ld_reload_flag
57126166 case $reload_flag in
57136167 "" | " "*) ;;
57386192
57396193
57406194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}file; ac_word=$2
6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 printf %s "checking for $ac_word... " >&6; }
6199 if test ${ac_cv_prog_FILECMD+y}
6200 then :
6201 printf %s "(cached) " >&6
6202 else $as_nop
6203 if test -n "$FILECMD"; then
6204 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209 IFS=$as_save_IFS
6210 case $as_dir in #(((
6211 '') as_dir=./ ;;
6212 */) ;;
6213 *) as_dir=$as_dir/ ;;
6214 esac
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 FILECMD=$ac_cv_prog_FILECMD
6228 if test -n "$FILECMD"; then
6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6230 printf "%s\n" "$FILECMD" >&6; }
6231 else
6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 printf "%s\n" "no" >&6; }
6234 fi
6235
6236
6237 fi
6238 if test -z "$ac_cv_prog_FILECMD"; then
6239 ac_ct_FILECMD=$FILECMD
6240 # Extract the first word of "file", so it can be a program name with args.
6241 set dummy file; ac_word=$2
6242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 printf %s "checking for $ac_word... " >&6; }
6244 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6245 then :
6246 printf %s "(cached) " >&6
6247 else $as_nop
6248 if test -n "$ac_ct_FILECMD"; then
6249 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6250 else
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254 IFS=$as_save_IFS
6255 case $as_dir in #(((
6256 '') as_dir=./ ;;
6257 */) ;;
6258 *) as_dir=$as_dir/ ;;
6259 esac
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6262 ac_cv_prog_ac_ct_FILECMD="file"
6263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6273 if test -n "$ac_ct_FILECMD"; then
6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6275 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6276 else
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 printf "%s\n" "no" >&6; }
6279 fi
6280
6281 if test "x$ac_ct_FILECMD" = x; then
6282 FILECMD=":"
6283 else
6284 case $cross_compiling:$ac_tool_warned in
6285 yes:)
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6287 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288 ac_tool_warned=yes ;;
6289 esac
6290 FILECMD=$ac_ct_FILECMD
6291 fi
6292 else
6293 FILECMD="$ac_cv_prog_FILECMD"
6294 fi
6295
6296
6297
6298
6299
6300
6301
6302 if test -n "$ac_tool_prefix"; then
57416303 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
57426304 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_OBJDUMP+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 printf %s "checking for $ac_word... " >&6; }
6307 if test ${ac_cv_prog_OBJDUMP+y}
6308 then :
6309 printf %s "(cached) " >&6
6310 else $as_nop
57486311 if test -n "$OBJDUMP"; then
57496312 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
57506313 else
57526315 for as_dir in $PATH
57536316 do
57546317 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
6318 case $as_dir in #(((
6319 '') as_dir=./ ;;
6320 */) ;;
6321 *) as_dir=$as_dir/ ;;
6322 esac
57566323 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57586325 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57606327 break 2
57616328 fi
57626329 done
57676334 fi
57686335 OBJDUMP=$ac_cv_prog_OBJDUMP
57696336 if test -n "$OBJDUMP"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5771 $as_echo "$OBJDUMP" >&6; }
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6338 printf "%s\n" "$OBJDUMP" >&6; }
57726339 else
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 printf "%s\n" "no" >&6; }
57756342 fi
57766343
57776344
57806347 ac_ct_OBJDUMP=$OBJDUMP
57816348 # Extract the first word of "objdump", so it can be a program name with args.
57826349 set dummy objdump; ac_word=$2
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784 $as_echo_n "checking for $ac_word... " >&6; }
5785 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5786 $as_echo_n "(cached) " >&6
5787 else
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 printf %s "checking for $ac_word... " >&6; }
6352 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6353 then :
6354 printf %s "(cached) " >&6
6355 else $as_nop
57886356 if test -n "$ac_ct_OBJDUMP"; then
57896357 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
57906358 else
57926360 for as_dir in $PATH
57936361 do
57946362 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
6363 case $as_dir in #(((
6364 '') as_dir=./ ;;
6365 */) ;;
6366 *) as_dir=$as_dir/ ;;
6367 esac
57966368 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57986370 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
58006372 break 2
58016373 fi
58026374 done
58076379 fi
58086380 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
58096381 if test -n "$ac_ct_OBJDUMP"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5811 $as_echo "$ac_ct_OBJDUMP" >&6; }
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6383 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
58126384 else
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 printf "%s\n" "no" >&6; }
58156387 fi
58166388
58176389 if test "x$ac_ct_OBJDUMP" = x; then
58196391 else
58206392 case $cross_compiling:$ac_tool_warned in
58216393 yes:)
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
58246396 ac_tool_warned=yes ;;
58256397 esac
58266398 OBJDUMP=$ac_ct_OBJDUMP
58396411
58406412
58416413
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5843 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5844 if ${lt_cv_deplibs_check_method+:} false; then :
5845 $as_echo_n "(cached) " >&6
5846 else
6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6415 printf %s "checking how to recognize dependent libraries... " >&6; }
6416 if test ${lt_cv_deplibs_check_method+y}
6417 then :
6418 printf %s "(cached) " >&6
6419 else $as_nop
58476420 lt_cv_file_magic_cmd='$MAGIC_CMD'
58486421 lt_cv_file_magic_test_file=
58496422 lt_cv_deplibs_check_method='unknown'
58696442
58706443 bsdi[45]*)
58716444 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5872 lt_cv_file_magic_cmd='/usr/bin/file -L'
6445 lt_cv_file_magic_cmd='$FILECMD -L'
58736446 lt_cv_file_magic_test_file=/shlib/libc.so
58746447 ;;
58756448
59036476 lt_cv_deplibs_check_method=pass_all
59046477 ;;
59056478
5906 freebsd* | dragonfly*)
6479 freebsd* | dragonfly* | midnightbsd*)
59076480 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
59086481 case $host_cpu in
59096482 i*86 )
59106483 # Not sure whether the presence of OpenBSD here was a mistake.
59116484 # Let's accept both of them until this is cleared up.
59126485 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5913 lt_cv_file_magic_cmd=/usr/bin/file
6486 lt_cv_file_magic_cmd=$FILECMD
59146487 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
59156488 ;;
59166489 esac
59246497 ;;
59256498
59266499 hpux10.20* | hpux11*)
5927 lt_cv_file_magic_cmd=/usr/bin/file
6500 lt_cv_file_magic_cmd=$FILECMD
59286501 case $host_cpu in
59296502 ia64*)
59306503 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
59616534 lt_cv_deplibs_check_method=pass_all
59626535 ;;
59636536
5964 netbsd*)
6537 netbsd* | netbsdelf*-gnu)
59656538 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
59666539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
59676540 else
59716544
59726545 newos6*)
59736546 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5974 lt_cv_file_magic_cmd=/usr/bin/file
6547 lt_cv_file_magic_cmd=$FILECMD
59756548 lt_cv_file_magic_test_file=/usr/lib/libnls.so
59766549 ;;
59776550
60396612 esac
60406613
60416614 fi
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6043 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6616 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
60446617
60456618 file_magic_glob=
60466619 want_nocaseglob=no
60846657 if test -n "$ac_tool_prefix"; then
60856658 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
60866659 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_prog_DLLTOOL+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661 printf %s "checking for $ac_word... " >&6; }
6662 if test ${ac_cv_prog_DLLTOOL+y}
6663 then :
6664 printf %s "(cached) " >&6
6665 else $as_nop
60926666 if test -n "$DLLTOOL"; then
60936667 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
60946668 else
60966670 for as_dir in $PATH
60976671 do
60986672 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6673 case $as_dir in #(((
6674 '') as_dir=./ ;;
6675 */) ;;
6676 *) as_dir=$as_dir/ ;;
6677 esac
61006678 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
61026680 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
61046682 break 2
61056683 fi
61066684 done
61116689 fi
61126690 DLLTOOL=$ac_cv_prog_DLLTOOL
61136691 if test -n "$DLLTOOL"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6115 $as_echo "$DLLTOOL" >&6; }
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6693 printf "%s\n" "$DLLTOOL" >&6; }
61166694 else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 printf "%s\n" "no" >&6; }
61196697 fi
61206698
61216699
61246702 ac_ct_DLLTOOL=$DLLTOOL
61256703 # Extract the first word of "dlltool", so it can be a program name with args.
61266704 set dummy dlltool; ac_word=$2
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 $as_echo_n "checking for $ac_word... " >&6; }
6129 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 printf %s "checking for $ac_word... " >&6; }
6707 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6708 then :
6709 printf %s "(cached) " >&6
6710 else $as_nop
61326711 if test -n "$ac_ct_DLLTOOL"; then
61336712 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
61346713 else
61366715 for as_dir in $PATH
61376716 do
61386717 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
6718 case $as_dir in #(((
6719 '') as_dir=./ ;;
6720 */) ;;
6721 *) as_dir=$as_dir/ ;;
6722 esac
61406723 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
61426725 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
61446727 break 2
61456728 fi
61466729 done
61516734 fi
61526735 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
61536736 if test -n "$ac_ct_DLLTOOL"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6155 $as_echo "$ac_ct_DLLTOOL" >&6; }
6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6738 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
61566739 else
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 $as_echo "no" >&6; }
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 printf "%s\n" "no" >&6; }
61596742 fi
61606743
61616744 if test "x$ac_ct_DLLTOOL" = x; then
61636746 else
61646747 case $cross_compiling:$ac_tool_warned in
61656748 yes:)
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
61686751 ac_tool_warned=yes ;;
61696752 esac
61706753 DLLTOOL=$ac_ct_DLLTOOL
61846767
61856768
61866769
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6188 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6189 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6190 $as_echo_n "(cached) " >&6
6191 else
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6771 printf %s "checking how to associate runtime and link libraries... " >&6; }
6772 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6773 then :
6774 printf %s "(cached) " >&6
6775 else $as_nop
61926776 lt_cv_sharedlib_from_linklib_cmd='unknown'
61936777
61946778 case $host_os in
62116795 esac
62126796
62136797 fi
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6215 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6799 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
62166800 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
62176801 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
62186802
62276811 do
62286812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
62296813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 $as_echo_n "checking for $ac_word... " >&6; }
6232 if ${ac_cv_prog_AR+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 printf %s "checking for $ac_word... " >&6; }
6816 if test ${ac_cv_prog_AR+y}
6817 then :
6818 printf %s "(cached) " >&6
6819 else $as_nop
62356820 if test -n "$AR"; then
62366821 ac_cv_prog_AR="$AR" # Let the user override the test.
62376822 else
62396824 for as_dir in $PATH
62406825 do
62416826 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6827 case $as_dir in #(((
6828 '') as_dir=./ ;;
6829 */) ;;
6830 *) as_dir=$as_dir/ ;;
6831 esac
62436832 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
62456834 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
62476836 break 2
62486837 fi
62496838 done
62546843 fi
62556844 AR=$ac_cv_prog_AR
62566845 if test -n "$AR"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6258 $as_echo "$AR" >&6; }
6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6847 printf "%s\n" "$AR" >&6; }
62596848 else
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 printf "%s\n" "no" >&6; }
62626851 fi
62636852
62646853
62716860 do
62726861 # Extract the first word of "$ac_prog", so it can be a program name with args.
62736862 set dummy $ac_prog; ac_word=$2
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 printf %s "checking for $ac_word... " >&6; }
6865 if test ${ac_cv_prog_ac_ct_AR+y}
6866 then :
6867 printf %s "(cached) " >&6
6868 else $as_nop
62796869 if test -n "$ac_ct_AR"; then
62806870 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
62816871 else
62836873 for as_dir in $PATH
62846874 do
62856875 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6876 case $as_dir in #(((
6877 '') as_dir=./ ;;
6878 */) ;;
6879 *) as_dir=$as_dir/ ;;
6880 esac
62876881 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
62896883 ac_cv_prog_ac_ct_AR="$ac_prog"
6290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
62916885 break 2
62926886 fi
62936887 done
62986892 fi
62996893 ac_ct_AR=$ac_cv_prog_ac_ct_AR
63006894 if test -n "$ac_ct_AR"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6302 $as_echo "$ac_ct_AR" >&6; }
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6896 printf "%s\n" "$ac_ct_AR" >&6; }
63036897 else
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 printf "%s\n" "no" >&6; }
63066900 fi
63076901
63086902
63146908 else
63156909 case $cross_compiling:$ac_tool_warned in
63166910 yes:)
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
63196913 ac_tool_warned=yes ;;
63206914 esac
63216915 AR=$ac_ct_AR
63236917 fi
63246918
63256919 : ${AR=ar}
6326 : ${AR_FLAGS=cru}
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6339 $as_echo_n "checking for archiver @FILE support... " >&6; }
6340 if ${lt_cv_ar_at_file+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6920
6921
6922
6923
6924
6925
6926 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6927 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6928 # higher priority because thats what people were doing historically (setting
6929 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6930 # variable obsoleted/removed.
6931
6932 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6933 lt_ar_flags=$AR_FLAGS
6934
6935
6936
6937
6938
6939
6940 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6941 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6942
6943
6944
6945
6946
6947
6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6949 printf %s "checking for archiver @FILE support... " >&6; }
6950 if test ${lt_cv_ar_at_file+y}
6951 then :
6952 printf %s "(cached) " >&6
6953 else $as_nop
63436954 lt_cv_ar_at_file=no
63446955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63456956 /* end confdefs.h. */
63466957
63476958 int
6348 main ()
6959 main (void)
63496960 {
63506961
63516962 ;
63526963 return 0;
63536964 }
63546965 _ACEOF
6355 if ac_fn_c_try_compile "$LINENO"; then :
6966 if ac_fn_c_try_compile "$LINENO"
6967 then :
63566968 echo conftest.$ac_objext > conftest.lst
63576969 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
63586970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
63596971 (eval $lt_ar_try) 2>&5
63606972 ac_status=$?
6361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63626974 test $ac_status = 0; }
63636975 if test 0 -eq "$ac_status"; then
63646976 # Ensure the archiver fails upon bogus file names.
63666978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
63676979 (eval $lt_ar_try) 2>&5
63686980 ac_status=$?
6369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63706982 test $ac_status = 0; }
63716983 if test 0 -ne "$ac_status"; then
63726984 lt_cv_ar_at_file=@
63756987 rm -f conftest.* libconftest.a
63766988
63776989 fi
6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379
6380 fi
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6382 $as_echo "$lt_cv_ar_at_file" >&6; }
6990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6991
6992 fi
6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6994 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
63836995
63846996 if test no = "$lt_cv_ar_at_file"; then
63856997 archiver_list_spec=
63967008 if test -n "$ac_tool_prefix"; then
63977009 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
63987010 set dummy ${ac_tool_prefix}strip; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_STRIP+:} false; then :
6402 $as_echo_n "(cached) " >&6
6403 else
7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 printf %s "checking for $ac_word... " >&6; }
7013 if test ${ac_cv_prog_STRIP+y}
7014 then :
7015 printf %s "(cached) " >&6
7016 else $as_nop
64047017 if test -n "$STRIP"; then
64057018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
64067019 else
64087021 for as_dir in $PATH
64097022 do
64107023 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
7024 case $as_dir in #(((
7025 '') as_dir=./ ;;
7026 */) ;;
7027 *) as_dir=$as_dir/ ;;
7028 esac
64127029 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
64147031 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
64167033 break 2
64177034 fi
64187035 done
64237040 fi
64247041 STRIP=$ac_cv_prog_STRIP
64257042 if test -n "$STRIP"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6427 $as_echo "$STRIP" >&6; }
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7044 printf "%s\n" "$STRIP" >&6; }
64287045 else
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 printf "%s\n" "no" >&6; }
64317048 fi
64327049
64337050
64367053 ac_ct_STRIP=$STRIP
64377054 # Extract the first word of "strip", so it can be a program name with args.
64387055 set dummy strip; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443 else
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 printf %s "checking for $ac_word... " >&6; }
7058 if test ${ac_cv_prog_ac_ct_STRIP+y}
7059 then :
7060 printf %s "(cached) " >&6
7061 else $as_nop
64447062 if test -n "$ac_ct_STRIP"; then
64457063 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
64467064 else
64487066 for as_dir in $PATH
64497067 do
64507068 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
7069 case $as_dir in #(((
7070 '') as_dir=./ ;;
7071 */) ;;
7072 *) as_dir=$as_dir/ ;;
7073 esac
64527074 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
64547076 ac_cv_prog_ac_ct_STRIP="strip"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
64567078 break 2
64577079 fi
64587080 done
64637085 fi
64647086 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
64657087 if test -n "$ac_ct_STRIP"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6467 $as_echo "$ac_ct_STRIP" >&6; }
7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7089 printf "%s\n" "$ac_ct_STRIP" >&6; }
64687090 else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 printf "%s\n" "no" >&6; }
64717093 fi
64727094
64737095 if test "x$ac_ct_STRIP" = x; then
64757097 else
64767098 case $cross_compiling:$ac_tool_warned in
64777099 yes:)
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
64807102 ac_tool_warned=yes ;;
64817103 esac
64827104 STRIP=$ac_ct_STRIP
64957117 if test -n "$ac_tool_prefix"; then
64967118 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
64977119 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if ${ac_cv_prog_RANLIB+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 printf %s "checking for $ac_word... " >&6; }
7122 if test ${ac_cv_prog_RANLIB+y}
7123 then :
7124 printf %s "(cached) " >&6
7125 else $as_nop
65037126 if test -n "$RANLIB"; then
65047127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
65057128 else
65077130 for as_dir in $PATH
65087131 do
65097132 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
7133 case $as_dir in #(((
7134 '') as_dir=./ ;;
7135 */) ;;
7136 *) as_dir=$as_dir/ ;;
7137 esac
65117138 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
65137140 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
65157142 break 2
65167143 fi
65177144 done
65227149 fi
65237150 RANLIB=$ac_cv_prog_RANLIB
65247151 if test -n "$RANLIB"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6526 $as_echo "$RANLIB" >&6; }
7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7153 printf "%s\n" "$RANLIB" >&6; }
65277154 else
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 printf "%s\n" "no" >&6; }
65307157 fi
65317158
65327159
65357162 ac_ct_RANLIB=$RANLIB
65367163 # Extract the first word of "ranlib", so it can be a program name with args.
65377164 set dummy ranlib; ac_word=$2
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539 $as_echo_n "checking for $ac_word... " >&6; }
6540 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6541 $as_echo_n "(cached) " >&6
6542 else
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 printf %s "checking for $ac_word... " >&6; }
7167 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7168 then :
7169 printf %s "(cached) " >&6
7170 else $as_nop
65437171 if test -n "$ac_ct_RANLIB"; then
65447172 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
65457173 else
65477175 for as_dir in $PATH
65487176 do
65497177 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
7178 case $as_dir in #(((
7179 '') as_dir=./ ;;
7180 */) ;;
7181 *) as_dir=$as_dir/ ;;
7182 esac
65517183 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
65537185 ac_cv_prog_ac_ct_RANLIB="ranlib"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
65557187 break 2
65567188 fi
65577189 done
65627194 fi
65637195 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
65647196 if test -n "$ac_ct_RANLIB"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6566 $as_echo "$ac_ct_RANLIB" >&6; }
7197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7198 printf "%s\n" "$ac_ct_RANLIB" >&6; }
65677199 else
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 printf "%s\n" "no" >&6; }
65707202 fi
65717203
65727204 if test "x$ac_ct_RANLIB" = x; then
65747206 else
65757207 case $cross_compiling:$ac_tool_warned in
65767208 yes:)
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7210 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
65797211 ac_tool_warned=yes ;;
65807212 esac
65817213 RANLIB=$ac_ct_RANLIB
66647296
66657297
66667298 # Check for command to grab the raw symbol name followed by C symbol from nm.
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6668 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6669 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
7299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7300 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7301 if test ${lt_cv_sys_global_symbol_pipe+y}
7302 then :
7303 printf %s "(cached) " >&6
7304 else $as_nop
66727305
66737306 # These are sane defaults that work on at least a few old systems.
66747307 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
67237356
67247357 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
67257358 # Gets list of data symbols to import.
6726 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7359 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
67277360 # Adjust the below global symbol transforms to fixup imported variables.
67287361 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
67297362 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
67417374 # Transform an extracted symbol line into a proper C declaration.
67427375 # Some systems (esp. on ia64) link data and code symbols differently,
67437376 # so use this general approach.
6744 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7377 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
67457378 $lt_cdecl_hook\
67467379 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
67477380 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
67487381
67497382 # Transform an extracted symbol line into symbol name and symbol address
6750 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7383 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
67517384 $lt_c_name_hook\
67527385 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
67537386 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
67547387
67557388 # Transform an extracted symbol line into symbol name with lib prefix and
67567389 # symbol address.
6757 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7390 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
67587391 $lt_c_name_lib_hook\
67597392 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
67607393 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
67787411 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
67797412 # Fake it for dumpbin and say T for any non-static function,
67807413 # D for any global variable and I for any imported variable.
6781 # Also find C++ and __fastcall symbols from MSVC++,
7414 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
67827415 # which start with @ or ?.
67837416 lt_cv_sys_global_symbol_pipe="$AWK '"\
67847417 " {last_section=section; section=\$ 3};"\
67967429 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
67977430 " ' prfx=^$ac_symprfx"
67987431 else
6799 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7432 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
68007433 fi
6801 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7434 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
68027435
68037436 # Check to see that the pipe works correctly.
68047437 pipe_works=no
68207453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
68217454 (eval $ac_compile) 2>&5
68227455 ac_status=$?
6823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68247457 test $ac_status = 0; }; then
68257458 # Now try to grab the symbols.
68267459 nlist=conftest.nm
6827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6828 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6829 ac_status=$?
6830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6831 test $ac_status = 0; } && test -s "$nlist"; then
7460 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7461 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
68327462 # Try sorting and uniquifying the output.
68337463 if sort "$nlist" | uniq > "$nlist"T; then
68347464 mv -f "$nlist"T "$nlist"
68967526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
68977527 (eval $ac_link) 2>&5
68987528 ac_status=$?
6899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69007530 test $ac_status = 0; } && test -s conftest$ac_exeext; then
69017531 pipe_works=yes
69027532 fi
69317561 lt_cv_sys_global_symbol_to_cdecl=
69327562 fi
69337563 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6935 $as_echo "failed" >&6; }
7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7565 printf "%s\n" "failed" >&6; }
69367566 else
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6938 $as_echo "ok" >&6; }
7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7568 printf "%s\n" "ok" >&6; }
69397569 fi
69407570
69417571 # Response file support.
69817611
69827612
69837613
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6985 $as_echo_n "checking for sysroot... " >&6; }
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7615 printf %s "checking for sysroot... " >&6; }
69867616
69877617 # Check whether --with-sysroot was given.
6988 if test "${with_sysroot+set}" = set; then :
7618 if test ${with_sysroot+y}
7619 then :
69897620 withval=$with_sysroot;
6990 else
7621 else $as_nop
69917622 with_sysroot=no
69927623 fi
69937624
70007631 fi
70017632 ;; #(
70027633 /*)
7003 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7634 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
70047635 ;; #(
70057636 no|'')
70067637 ;; #(
70077638 *)
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7009 $as_echo "$with_sysroot" >&6; }
7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7640 printf "%s\n" "$with_sysroot" >&6; }
70107641 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
70117642 ;;
70127643 esac
70137644
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7015 $as_echo "${lt_sysroot:-no}" >&6; }
7016
7017
7018
7019
7020
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7022 $as_echo_n "checking for a working dd... " >&6; }
7023 if ${ac_cv_path_lt_DD+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7646 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7647
7648
7649
7650
7651
7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7653 printf %s "checking for a working dd... " >&6; }
7654 if test ${ac_cv_path_lt_DD+y}
7655 then :
7656 printf %s "(cached) " >&6
7657 else $as_nop
70267658 printf 0123456789abcdef0123456789abcdef >conftest.i
70277659 cat conftest.i conftest.i >conftest2.i
70287660 : ${lt_DD:=$DD}
70337665 for as_dir in $PATH
70347666 do
70357667 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_prog in dd; do
7668 case $as_dir in #(((
7669 '') as_dir=./ ;;
7670 */) ;;
7671 *) as_dir=$as_dir/ ;;
7672 esac
7673 for ac_prog in dd
7674 do
70387675 for ac_exec_ext in '' $ac_executable_extensions; do
7039 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7676 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
70407677 as_fn_executable_p "$ac_path_lt_DD" || continue
70417678 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
70427679 cmp -s conftest.i conftest.out \
70567693
70577694 rm -f conftest.i conftest2.i conftest.out
70587695 fi
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7060 $as_echo "$ac_cv_path_lt_DD" >&6; }
7061
7062
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7064 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7065 if ${lt_cv_truncate_bin+:} false; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7697 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7698
7699
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7701 printf %s "checking how to truncate binary pipes... " >&6; }
7702 if test ${lt_cv_truncate_bin+y}
7703 then :
7704 printf %s "(cached) " >&6
7705 else $as_nop
70687706 printf 0123456789abcdef0123456789abcdef >conftest.i
70697707 cat conftest.i conftest.i >conftest2.i
70707708 lt_cv_truncate_bin=
70757713 rm -f conftest.i conftest2.i conftest.out
70767714 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
70777715 fi
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7079 $as_echo "$lt_cv_truncate_bin" >&6; }
7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7717 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
70807718
70817719
70827720
70997737 }
71007738
71017739 # Check whether --enable-libtool-lock was given.
7102 if test "${enable_libtool_lock+set}" = set; then :
7740 if test ${enable_libtool_lock+y}
7741 then :
71037742 enableval=$enable_libtool_lock;
71047743 fi
71057744
71157754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
71167755 (eval $ac_compile) 2>&5
71177756 ac_status=$?
7118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71197758 test $ac_status = 0; }; then
7120 case `/usr/bin/file conftest.$ac_objext` in
7759 case `$FILECMD conftest.$ac_objext` in
71217760 *ELF-32*)
71227761 HPUX_IA64_MODE=32
71237762 ;;
71357774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
71367775 (eval $ac_compile) 2>&5
71377776 ac_status=$?
7138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71397778 test $ac_status = 0; }; then
71407779 if test yes = "$lt_cv_prog_gnu_ld"; then
7141 case `/usr/bin/file conftest.$ac_objext` in
7780 case `$FILECMD conftest.$ac_objext` in
71427781 *32-bit*)
71437782 LD="${LD-ld} -melf32bsmip"
71447783 ;;
71507789 ;;
71517790 esac
71527791 else
7153 case `/usr/bin/file conftest.$ac_objext` in
7792 case `$FILECMD conftest.$ac_objext` in
71547793 *32-bit*)
71557794 LD="${LD-ld} -32"
71567795 ;;
71737812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
71747813 (eval $ac_compile) 2>&5
71757814 ac_status=$?
7176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71777816 test $ac_status = 0; }; then
71787817 emul=elf
7179 case `/usr/bin/file conftest.$ac_objext` in
7818 case `$FILECMD conftest.$ac_objext` in
71807819 *32-bit*)
71817820 emul="${emul}32"
71827821 ;;
71847823 emul="${emul}64"
71857824 ;;
71867825 esac
7187 case `/usr/bin/file conftest.$ac_objext` in
7826 case `$FILECMD conftest.$ac_objext` in
71887827 *MSB*)
71897828 emul="${emul}btsmip"
71907829 ;;
71927831 emul="${emul}ltsmip"
71937832 ;;
71947833 esac
7195 case `/usr/bin/file conftest.$ac_objext` in
7834 case `$FILECMD conftest.$ac_objext` in
71967835 *N32*)
71977836 emul="${emul}n32"
71987837 ;;
72147853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
72157854 (eval $ac_compile) 2>&5
72167855 ac_status=$?
7217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72187857 test $ac_status = 0; }; then
7219 case `/usr/bin/file conftest.o` in
7858 case `$FILECMD conftest.o` in
72207859 *32-bit*)
72217860 case $host in
72227861 x86_64-*kfreebsd*-gnu)
72237862 LD="${LD-ld} -m elf_i386_fbsd"
72247863 ;;
72257864 x86_64-*linux*)
7226 case `/usr/bin/file conftest.o` in
7865 case `$FILECMD conftest.o` in
72277866 *x86-64*)
72287867 LD="${LD-ld} -m elf32_x86_64"
72297868 ;;
72777916 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
72787917 SAVE_CFLAGS=$CFLAGS
72797918 CFLAGS="$CFLAGS -belf"
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7281 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7282 if ${lt_cv_cc_needs_belf+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7920 printf %s "checking whether the C compiler needs -belf... " >&6; }
7921 if test ${lt_cv_cc_needs_belf+y}
7922 then :
7923 printf %s "(cached) " >&6
7924 else $as_nop
72857925 ac_ext=c
72867926 ac_cpp='$CPP $CPPFLAGS'
72877927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72927932 /* end confdefs.h. */
72937933
72947934 int
7295 main ()
7935 main (void)
72967936 {
72977937
72987938 ;
72997939 return 0;
73007940 }
73017941 _ACEOF
7302 if ac_fn_c_try_link "$LINENO"; then :
7942 if ac_fn_c_try_link "$LINENO"
7943 then :
73037944 lt_cv_cc_needs_belf=yes
7304 else
7945 else $as_nop
73057946 lt_cv_cc_needs_belf=no
73067947 fi
7307 rm -f core conftest.err conftest.$ac_objext \
7948 rm -f core conftest.err conftest.$ac_objext conftest.beam \
73087949 conftest$ac_exeext conftest.$ac_ext
73097950 ac_ext=c
73107951 ac_cpp='$CPP $CPPFLAGS'
73137954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
73147955
73157956 fi
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7317 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7958 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
73187959 if test yes != "$lt_cv_cc_needs_belf"; then
73197960 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
73207961 CFLAGS=$SAVE_CFLAGS
73277968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
73287969 (eval $ac_compile) 2>&5
73297970 ac_status=$?
7330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73317972 test $ac_status = 0; }; then
7332 case `/usr/bin/file conftest.o` in
7973 case `$FILECMD conftest.o` in
73337974 *64-bit*)
73347975 case $lt_cv_prog_gnu_ld in
73357976 yes*)
73648005 if test -n "$ac_tool_prefix"; then
73658006 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
73668007 set dummy ${ac_tool_prefix}mt; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 printf %s "checking for $ac_word... " >&6; }
8010 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8011 then :
8012 printf %s "(cached) " >&6
8013 else $as_nop
73728014 if test -n "$MANIFEST_TOOL"; then
73738015 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
73748016 else
73768018 for as_dir in $PATH
73778019 do
73788020 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
8021 case $as_dir in #(((
8022 '') as_dir=./ ;;
8023 */) ;;
8024 *) as_dir=$as_dir/ ;;
8025 esac
73808026 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
73828028 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
73848030 break 2
73858031 fi
73868032 done
73918037 fi
73928038 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
73938039 if test -n "$MANIFEST_TOOL"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7395 $as_echo "$MANIFEST_TOOL" >&6; }
8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8041 printf "%s\n" "$MANIFEST_TOOL" >&6; }
73968042 else
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 printf "%s\n" "no" >&6; }
73998045 fi
74008046
74018047
74048050 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
74058051 # Extract the first word of "mt", so it can be a program name with args.
74068052 set dummy mt; ac_word=$2
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408 $as_echo_n "checking for $ac_word... " >&6; }
7409 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7410 $as_echo_n "(cached) " >&6
7411 else
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 printf %s "checking for $ac_word... " >&6; }
8055 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8056 then :
8057 printf %s "(cached) " >&6
8058 else $as_nop
74128059 if test -n "$ac_ct_MANIFEST_TOOL"; then
74138060 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
74148061 else
74168063 for as_dir in $PATH
74178064 do
74188065 IFS=$as_save_IFS
7419 test -z "$as_dir" && as_dir=.
8066 case $as_dir in #(((
8067 '') as_dir=./ ;;
8068 */) ;;
8069 *) as_dir=$as_dir/ ;;
8070 esac
74208071 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
74228073 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
74248075 break 2
74258076 fi
74268077 done
74318082 fi
74328083 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
74338084 if test -n "$ac_ct_MANIFEST_TOOL"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7435 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8086 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
74368087 else
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 printf "%s\n" "no" >&6; }
74398090 fi
74408091
74418092 if test "x$ac_ct_MANIFEST_TOOL" = x; then
74438094 else
74448095 case $cross_compiling:$ac_tool_warned in
74458096 yes:)
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8098 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
74488099 ac_tool_warned=yes ;;
74498100 esac
74508101 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
74548105 fi
74558106
74568107 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7458 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7459 if ${lt_cv_path_mainfest_tool+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8109 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8110 if test ${lt_cv_path_mainfest_tool+y}
8111 then :
8112 printf %s "(cached) " >&6
8113 else $as_nop
74628114 lt_cv_path_mainfest_tool=no
74638115 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
74648116 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
74688120 fi
74698121 rm -f conftest*
74708122 fi
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7472 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8124 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
74738125 if test yes != "$lt_cv_path_mainfest_tool"; then
74748126 MANIFEST_TOOL=:
74758127 fi
74848136 if test -n "$ac_tool_prefix"; then
74858137 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
74868138 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7490 $as_echo_n "(cached) " >&6
7491 else
8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140 printf %s "checking for $ac_word... " >&6; }
8141 if test ${ac_cv_prog_DSYMUTIL+y}
8142 then :
8143 printf %s "(cached) " >&6
8144 else $as_nop
74928145 if test -n "$DSYMUTIL"; then
74938146 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
74948147 else
74968149 for as_dir in $PATH
74978150 do
74988151 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
8152 case $as_dir in #(((
8153 '') as_dir=./ ;;
8154 */) ;;
8155 *) as_dir=$as_dir/ ;;
8156 esac
75008157 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
75028159 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
75048161 break 2
75058162 fi
75068163 done
75118168 fi
75128169 DSYMUTIL=$ac_cv_prog_DSYMUTIL
75138170 if test -n "$DSYMUTIL"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7515 $as_echo "$DSYMUTIL" >&6; }
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8172 printf "%s\n" "$DSYMUTIL" >&6; }
75168173 else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 printf "%s\n" "no" >&6; }
75198176 fi
75208177
75218178
75248181 ac_ct_DSYMUTIL=$DSYMUTIL
75258182 # Extract the first word of "dsymutil", so it can be a program name with args.
75268183 set dummy dsymutil; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7530 $as_echo_n "(cached) " >&6
7531 else
8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 printf %s "checking for $ac_word... " >&6; }
8186 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8187 then :
8188 printf %s "(cached) " >&6
8189 else $as_nop
75328190 if test -n "$ac_ct_DSYMUTIL"; then
75338191 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
75348192 else
75368194 for as_dir in $PATH
75378195 do
75388196 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
8197 case $as_dir in #(((
8198 '') as_dir=./ ;;
8199 */) ;;
8200 *) as_dir=$as_dir/ ;;
8201 esac
75408202 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
75428204 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
75448206 break 2
75458207 fi
75468208 done
75518213 fi
75528214 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
75538215 if test -n "$ac_ct_DSYMUTIL"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7555 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8217 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
75568218 else
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220 printf "%s\n" "no" >&6; }
75598221 fi
75608222
75618223 if test "x$ac_ct_DSYMUTIL" = x; then
75638225 else
75648226 case $cross_compiling:$ac_tool_warned in
75658227 yes:)
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8229 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
75688230 ac_tool_warned=yes ;;
75698231 esac
75708232 DSYMUTIL=$ac_ct_DSYMUTIL
75768238 if test -n "$ac_tool_prefix"; then
75778239 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
75788240 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if ${ac_cv_prog_NMEDIT+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583 else
8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242 printf %s "checking for $ac_word... " >&6; }
8243 if test ${ac_cv_prog_NMEDIT+y}
8244 then :
8245 printf %s "(cached) " >&6
8246 else $as_nop
75848247 if test -n "$NMEDIT"; then
75858248 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
75868249 else
75888251 for as_dir in $PATH
75898252 do
75908253 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
8254 case $as_dir in #(((
8255 '') as_dir=./ ;;
8256 */) ;;
8257 *) as_dir=$as_dir/ ;;
8258 esac
75928259 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
75948261 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
75968263 break 2
75978264 fi
75988265 done
76038270 fi
76048271 NMEDIT=$ac_cv_prog_NMEDIT
76058272 if test -n "$NMEDIT"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7607 $as_echo "$NMEDIT" >&6; }
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8274 printf "%s\n" "$NMEDIT" >&6; }
76088275 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
8276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 printf "%s\n" "no" >&6; }
76118278 fi
76128279
76138280
76168283 ac_ct_NMEDIT=$NMEDIT
76178284 # Extract the first word of "nmedit", so it can be a program name with args.
76188285 set dummy nmedit; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623 else
8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8287 printf %s "checking for $ac_word... " >&6; }
8288 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8289 then :
8290 printf %s "(cached) " >&6
8291 else $as_nop
76248292 if test -n "$ac_ct_NMEDIT"; then
76258293 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
76268294 else
76288296 for as_dir in $PATH
76298297 do
76308298 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
8299 case $as_dir in #(((
8300 '') as_dir=./ ;;
8301 */) ;;
8302 *) as_dir=$as_dir/ ;;
8303 esac
76328304 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
76348306 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
76368308 break 2
76378309 fi
76388310 done
76438315 fi
76448316 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
76458317 if test -n "$ac_ct_NMEDIT"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7647 $as_echo "$ac_ct_NMEDIT" >&6; }
8318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8319 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
76488320 else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 printf "%s\n" "no" >&6; }
76518323 fi
76528324
76538325 if test "x$ac_ct_NMEDIT" = x; then
76558327 else
76568328 case $cross_compiling:$ac_tool_warned in
76578329 yes:)
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8331 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
76608332 ac_tool_warned=yes ;;
76618333 esac
76628334 NMEDIT=$ac_ct_NMEDIT
76688340 if test -n "$ac_tool_prefix"; then
76698341 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
76708342 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_prog_LIPO+:} false; then :
7674 $as_echo_n "(cached) " >&6
7675 else
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 printf %s "checking for $ac_word... " >&6; }
8345 if test ${ac_cv_prog_LIPO+y}
8346 then :
8347 printf %s "(cached) " >&6
8348 else $as_nop
76768349 if test -n "$LIPO"; then
76778350 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
76788351 else
76808353 for as_dir in $PATH
76818354 do
76828355 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
8356 case $as_dir in #(((
8357 '') as_dir=./ ;;
8358 */) ;;
8359 *) as_dir=$as_dir/ ;;
8360 esac
76848361 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
76868363 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
76888365 break 2
76898366 fi
76908367 done
76958372 fi
76968373 LIPO=$ac_cv_prog_LIPO
76978374 if test -n "$LIPO"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7699 $as_echo "$LIPO" >&6; }
8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8376 printf "%s\n" "$LIPO" >&6; }
77008377 else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 printf "%s\n" "no" >&6; }
77038380 fi
77048381
77058382
77088385 ac_ct_LIPO=$LIPO
77098386 # Extract the first word of "lipo", so it can be a program name with args.
77108387 set dummy lipo; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 printf %s "checking for $ac_word... " >&6; }
8390 if test ${ac_cv_prog_ac_ct_LIPO+y}
8391 then :
8392 printf %s "(cached) " >&6
8393 else $as_nop
77168394 if test -n "$ac_ct_LIPO"; then
77178395 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
77188396 else
77208398 for as_dir in $PATH
77218399 do
77228400 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
8401 case $as_dir in #(((
8402 '') as_dir=./ ;;
8403 */) ;;
8404 *) as_dir=$as_dir/ ;;
8405 esac
77248406 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
77268408 ac_cv_prog_ac_ct_LIPO="lipo"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
77288410 break 2
77298411 fi
77308412 done
77358417 fi
77368418 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
77378419 if test -n "$ac_ct_LIPO"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7739 $as_echo "$ac_ct_LIPO" >&6; }
8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8421 printf "%s\n" "$ac_ct_LIPO" >&6; }
77408422 else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
8423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 printf "%s\n" "no" >&6; }
77438425 fi
77448426
77458427 if test "x$ac_ct_LIPO" = x; then
77478429 else
77488430 case $cross_compiling:$ac_tool_warned in
77498431 yes:)
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8433 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
77528434 ac_tool_warned=yes ;;
77538435 esac
77548436 LIPO=$ac_ct_LIPO
77608442 if test -n "$ac_tool_prefix"; then
77618443 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
77628444 set dummy ${ac_tool_prefix}otool; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if ${ac_cv_prog_OTOOL+:} false; then :
7766 $as_echo_n "(cached) " >&6
7767 else
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 printf %s "checking for $ac_word... " >&6; }
8447 if test ${ac_cv_prog_OTOOL+y}
8448 then :
8449 printf %s "(cached) " >&6
8450 else $as_nop
77688451 if test -n "$OTOOL"; then
77698452 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
77708453 else
77728455 for as_dir in $PATH
77738456 do
77748457 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
8458 case $as_dir in #(((
8459 '') as_dir=./ ;;
8460 */) ;;
8461 *) as_dir=$as_dir/ ;;
8462 esac
77768463 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8464 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
77788465 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
77808467 break 2
77818468 fi
77828469 done
77878474 fi
77888475 OTOOL=$ac_cv_prog_OTOOL
77898476 if test -n "$OTOOL"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7791 $as_echo "$OTOOL" >&6; }
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8478 printf "%s\n" "$OTOOL" >&6; }
77928479 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 printf "%s\n" "no" >&6; }
77958482 fi
77968483
77978484
78008487 ac_ct_OTOOL=$OTOOL
78018488 # Extract the first word of "otool", so it can be a program name with args.
78028489 set dummy otool; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
8490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8491 printf %s "checking for $ac_word... " >&6; }
8492 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8493 then :
8494 printf %s "(cached) " >&6
8495 else $as_nop
78088496 if test -n "$ac_ct_OTOOL"; then
78098497 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
78108498 else
78128500 for as_dir in $PATH
78138501 do
78148502 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
8503 case $as_dir in #(((
8504 '') as_dir=./ ;;
8505 */) ;;
8506 *) as_dir=$as_dir/ ;;
8507 esac
78168508 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
78188510 ac_cv_prog_ac_ct_OTOOL="otool"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
78208512 break 2
78218513 fi
78228514 done
78278519 fi
78288520 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
78298521 if test -n "$ac_ct_OTOOL"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7831 $as_echo "$ac_ct_OTOOL" >&6; }
8522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8523 printf "%s\n" "$ac_ct_OTOOL" >&6; }
78328524 else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 printf "%s\n" "no" >&6; }
78358527 fi
78368528
78378529 if test "x$ac_ct_OTOOL" = x; then
78398531 else
78408532 case $cross_compiling:$ac_tool_warned in
78418533 yes:)
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8535 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
78448536 ac_tool_warned=yes ;;
78458537 esac
78468538 OTOOL=$ac_ct_OTOOL
78528544 if test -n "$ac_tool_prefix"; then
78538545 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
78548546 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if ${ac_cv_prog_OTOOL64+:} false; then :
7858 $as_echo_n "(cached) " >&6
7859 else
8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 printf %s "checking for $ac_word... " >&6; }
8549 if test ${ac_cv_prog_OTOOL64+y}
8550 then :
8551 printf %s "(cached) " >&6
8552 else $as_nop
78608553 if test -n "$OTOOL64"; then
78618554 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
78628555 else
78648557 for as_dir in $PATH
78658558 do
78668559 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
8560 case $as_dir in #(((
8561 '') as_dir=./ ;;
8562 */) ;;
8563 *) as_dir=$as_dir/ ;;
8564 esac
78688565 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
78708567 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
78728569 break 2
78738570 fi
78748571 done
78798576 fi
78808577 OTOOL64=$ac_cv_prog_OTOOL64
78818578 if test -n "$OTOOL64"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7883 $as_echo "$OTOOL64" >&6; }
8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8580 printf "%s\n" "$OTOOL64" >&6; }
78848581 else
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 printf "%s\n" "no" >&6; }
78878584 fi
78888585
78898586
78928589 ac_ct_OTOOL64=$OTOOL64
78938590 # Extract the first word of "otool64", so it can be a program name with args.
78948591 set dummy otool64; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7898 $as_echo_n "(cached) " >&6
7899 else
8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 printf %s "checking for $ac_word... " >&6; }
8594 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8595 then :
8596 printf %s "(cached) " >&6
8597 else $as_nop
79008598 if test -n "$ac_ct_OTOOL64"; then
79018599 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
79028600 else
79048602 for as_dir in $PATH
79058603 do
79068604 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
8605 case $as_dir in #(((
8606 '') as_dir=./ ;;
8607 */) ;;
8608 *) as_dir=$as_dir/ ;;
8609 esac
79088610 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
79108612 ac_cv_prog_ac_ct_OTOOL64="otool64"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
79128614 break 2
79138615 fi
79148616 done
79198621 fi
79208622 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
79218623 if test -n "$ac_ct_OTOOL64"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7923 $as_echo "$ac_ct_OTOOL64" >&6; }
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8625 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
79248626 else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 printf "%s\n" "no" >&6; }
79278629 fi
79288630
79298631 if test "x$ac_ct_OTOOL64" = x; then
79318633 else
79328634 case $cross_compiling:$ac_tool_warned in
79338635 yes:)
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8637 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
79368638 ac_tool_warned=yes ;;
79378639 esac
79388640 OTOOL64=$ac_ct_OTOOL64
79678669
79688670
79698671
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7971 $as_echo_n "checking for -single_module linker flag... " >&6; }
7972 if ${lt_cv_apple_cc_single_mod+:} false; then :
7973 $as_echo_n "(cached) " >&6
7974 else
8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8673 printf %s "checking for -single_module linker flag... " >&6; }
8674 if test ${lt_cv_apple_cc_single_mod+y}
8675 then :
8676 printf %s "(cached) " >&6
8677 else $as_nop
79758678 lt_cv_apple_cc_single_mod=no
79768679 if test -z "$LT_MULTI_MODULE"; then
79778680 # By default we will add the -single_module flag. You can override
80008703 rm -f conftest.*
80018704 fi
80028705 fi
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8004 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8005
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8007 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8008 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8707 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8708
8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8710 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8711 if test ${lt_cv_ld_exported_symbols_list+y}
8712 then :
8713 printf %s "(cached) " >&6
8714 else $as_nop
80118715 lt_cv_ld_exported_symbols_list=no
80128716 save_LDFLAGS=$LDFLAGS
80138717 echo "_main" > conftest.sym
80168720 /* end confdefs.h. */
80178721
80188722 int
8019 main ()
8723 main (void)
80208724 {
80218725
80228726 ;
80238727 return 0;
80248728 }
80258729 _ACEOF
8026 if ac_fn_c_try_link "$LINENO"; then :
8730 if ac_fn_c_try_link "$LINENO"
8731 then :
80278732 lt_cv_ld_exported_symbols_list=yes
8028 else
8733 else $as_nop
80298734 lt_cv_ld_exported_symbols_list=no
80308735 fi
8031 rm -f core conftest.err conftest.$ac_objext \
8736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
80328737 conftest$ac_exeext conftest.$ac_ext
80338738 LDFLAGS=$save_LDFLAGS
80348739
80358740 fi
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8037 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8038
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8040 $as_echo_n "checking for -force_load linker flag... " >&6; }
8041 if ${lt_cv_ld_force_load+:} false; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8742 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8743
8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8745 printf %s "checking for -force_load linker flag... " >&6; }
8746 if test ${lt_cv_ld_force_load+y}
8747 then :
8748 printf %s "(cached) " >&6
8749 else $as_nop
80448750 lt_cv_ld_force_load=no
80458751 cat > conftest.c << _LT_EOF
80468752 int forced_loaded() { return 2;}
80478753 _LT_EOF
80488754 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
80498755 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8050 echo "$AR cru libconftest.a conftest.o" >&5
8051 $AR cru libconftest.a conftest.o 2>&5
8756 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8757 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
80528758 echo "$RANLIB libconftest.a" >&5
80538759 $RANLIB libconftest.a 2>&5
80548760 cat > conftest.c << _LT_EOF
80688774 rm -rf conftest.dSYM
80698775
80708776 fi
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8072 $as_echo "$lt_cv_ld_force_load" >&6; }
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8778 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
80738779 case $host_os in
80748780 rhapsody* | darwin1.[012])
80758781 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
80768782 darwin1.*)
80778783 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8078 darwin*) # darwin 5.x on
8079 # if running on 10.5 or later, the deployment target defaults
8080 # to the OS version, if on x86, and 10.4, the deployment
8081 # target defaults to 10.4. Don't you love it?
8082 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8083 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8084 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8085 10.[012][,.]*)
8086 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8087 10.*)
8088 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8784 darwin*)
8785 case $MACOSX_DEPLOYMENT_TARGET,$host in
8786 10.[012],*|,*powerpc*-darwin[5-8]*)
8787 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8788 *)
8789 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
80898790 esac
80908791 ;;
80918792 esac
81408841 esac
81418842 }
81428843
8143 for ac_header in dlfcn.h
8144 do :
8145 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8844 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
81468845 "
8147 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8148 cat >>confdefs.h <<_ACEOF
8149 #define HAVE_DLFCN_H 1
8150 _ACEOF
8151
8152 fi
8153
8154 done
8846 if test "x$ac_cv_header_dlfcn_h" = xyes
8847 then :
8848 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8849
8850 fi
81558851
81568852
81578853
81688864
81698865
81708866 # Check whether --enable-shared was given.
8171 if test "${enable_shared+set}" = set; then :
8867 if test ${enable_shared+y}
8868 then :
81728869 enableval=$enable_shared; p=${PACKAGE-default}
81738870 case $enableval in
81748871 yes) enable_shared=yes ;;
81868883 IFS=$lt_save_ifs
81878884 ;;
81888885 esac
8189 else
8886 else $as_nop
81908887 enable_shared=yes
81918888 fi
81928889
81998896
82008897
82018898 # Check whether --enable-static was given.
8202 if test "${enable_static+set}" = set; then :
8899 if test ${enable_static+y}
8900 then :
82038901 enableval=$enable_static; p=${PACKAGE-default}
82048902 case $enableval in
82058903 yes) enable_static=yes ;;
82178915 IFS=$lt_save_ifs
82188916 ;;
82198917 esac
8220 else
8918 else $as_nop
82218919 enable_static=yes
82228920 fi
82238921
82318929
82328930
82338931 # Check whether --with-pic was given.
8234 if test "${with_pic+set}" = set; then :
8932 if test ${with_pic+y}
8933 then :
82358934 withval=$with_pic; lt_p=${PACKAGE-default}
82368935 case $withval in
82378936 yes|no) pic_mode=$withval ;;
82488947 IFS=$lt_save_ifs
82498948 ;;
82508949 esac
8251 else
8950 else $as_nop
82528951 pic_mode=default
82538952 fi
82548953
82608959
82618960
82628961 # Check whether --enable-fast-install was given.
8263 if test "${enable_fast_install+set}" = set; then :
8962 if test ${enable_fast_install+y}
8963 then :
82648964 enableval=$enable_fast_install; p=${PACKAGE-default}
82658965 case $enableval in
82668966 yes) enable_fast_install=yes ;;
82788978 IFS=$lt_save_ifs
82798979 ;;
82808980 esac
8281 else
8981 else $as_nop
82828982 enable_fast_install=yes
82838983 fi
82848984
82928992 shared_archive_member_spec=
82938993 case $host,$enable_shared in
82948994 power*-*-aix[5-9]*,yes)
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8296 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8996 printf %s "checking which variant of shared library versioning to provide... " >&6; }
82978997
82988998 # Check whether --with-aix-soname was given.
8299 if test "${with_aix_soname+set}" = set; then :
8999 if test ${with_aix_soname+y}
9000 then :
83009001 withval=$with_aix_soname; case $withval in
83019002 aix|svr4|both)
83029003 ;;
83059006 ;;
83069007 esac
83079008 lt_cv_with_aix_soname=$with_aix_soname
8308 else
8309 if ${lt_cv_with_aix_soname+:} false; then :
8310 $as_echo_n "(cached) " >&6
8311 else
9009 else $as_nop
9010 if test ${lt_cv_with_aix_soname+y}
9011 then :
9012 printf %s "(cached) " >&6
9013 else $as_nop
83129014 lt_cv_with_aix_soname=aix
83139015 fi
83149016
83159017 with_aix_soname=$lt_cv_with_aix_soname
83169018 fi
83179019
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8319 $as_echo "$with_aix_soname" >&6; }
9020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9021 printf "%s\n" "$with_aix_soname" >&6; }
83209022 if test aix != "$with_aix_soname"; then
83219023 # For the AIX way of multilib, we name the shared archive member
83229024 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
83989100 setopt NO_GLOB_SUBST
83999101 fi
84009102
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8402 $as_echo_n "checking for objdir... " >&6; }
8403 if ${lt_cv_objdir+:} false; then :
8404 $as_echo_n "(cached) " >&6
8405 else
9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9104 printf %s "checking for objdir... " >&6; }
9105 if test ${lt_cv_objdir+y}
9106 then :
9107 printf %s "(cached) " >&6
9108 else $as_nop
84069109 rm -f .libs 2>/dev/null
84079110 mkdir .libs 2>/dev/null
84089111 if test -d .libs; then
84139116 fi
84149117 rmdir .libs 2>/dev/null
84159118 fi
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8417 $as_echo "$lt_cv_objdir" >&6; }
9119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9120 printf "%s\n" "$lt_cv_objdir" >&6; }
84189121 objdir=$lt_cv_objdir
84199122
84209123
84219124
84229125
84239126
8424 cat >>confdefs.h <<_ACEOF
8425 #define LT_OBJDIR "$lt_cv_objdir/"
8426 _ACEOF
9127 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
84279128
84289129
84299130
84449145 ofile=libtool
84459146 can_build_shared=yes
84469147
8447 # All known linkers require a '.a' archive for static linking (except MSVC,
8448 # which needs '.lib').
9148 # All known linkers require a '.a' archive for static linking (except MSVC and
9149 # ICC, which need '.lib').
84499150 libext=a
84509151
84519152 with_gnu_ld=$lt_cv_prog_gnu_ld
84699170 case $deplibs_check_method in
84709171 file_magic*)
84719172 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8473 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8474 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8475 $as_echo_n "(cached) " >&6
8476 else
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9174 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9175 if test ${lt_cv_path_MAGIC_CMD+y}
9176 then :
9177 printf %s "(cached) " >&6
9178 else $as_nop
84779179 case $MAGIC_CMD in
84789180 [\\/*] | ?:[\\/]*)
84799181 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
85229224
85239225 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
85249226 if test -n "$MAGIC_CMD"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8526 $as_echo "$MAGIC_CMD" >&6; }
9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9228 printf "%s\n" "$MAGIC_CMD" >&6; }
85279229 else
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
9230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 printf "%s\n" "no" >&6; }
85309232 fi
85319233
85329234
85359237
85369238 if test -z "$lt_cv_path_MAGIC_CMD"; then
85379239 if test -n "$ac_tool_prefix"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8539 $as_echo_n "checking for file... " >&6; }
8540 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9241 printf %s "checking for file... " >&6; }
9242 if test ${lt_cv_path_MAGIC_CMD+y}
9243 then :
9244 printf %s "(cached) " >&6
9245 else $as_nop
85439246 case $MAGIC_CMD in
85449247 [\\/*] | ?:[\\/]*)
85459248 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
85889291
85899292 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
85909293 if test -n "$MAGIC_CMD"; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8592 $as_echo "$MAGIC_CMD" >&6; }
9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9295 printf "%s\n" "$MAGIC_CMD" >&6; }
85939296 else
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595 $as_echo "no" >&6; }
9297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298 printf "%s\n" "no" >&6; }
85969299 fi
85979300
85989301
86779380 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
86789381 esac
86799382
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8681 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8682 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9384 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9385 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9386 then :
9387 printf %s "(cached) " >&6
9388 else $as_nop
86859389 lt_cv_prog_compiler_rtti_exceptions=no
86869390 ac_outfile=conftest.$ac_objext
86879391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
87129416 $RM conftest*
87139417
87149418 fi
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8716 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9420 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
87179421
87189422 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
87199423 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
89089612 ecc*)
89099613 lt_prog_compiler_wl='-Wl,'
89109614 lt_prog_compiler_pic='-KPIC'
9615 lt_prog_compiler_static='-static'
9616 ;;
9617 # flang / f18. f95 an alias for gfortran or flang on Debian
9618 flang* | f18* | f95*)
9619 lt_prog_compiler_wl='-Wl,'
9620 lt_prog_compiler_pic='-fPIC'
89119621 lt_prog_compiler_static='-static'
89129622 ;;
89139623 # icc used to be incompatible with GCC.
89549664 lt_prog_compiler_static='-qstaticlink'
89559665 ;;
89569666 *)
8957 case `$CC -V 2>&1 | sed 5q` in
9667 case `$CC -V 2>&1 | $SED 5q` in
89589668 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
89599669 # Sun Fortran 8.3 passes all unrecognized flags to the linker
89609670 lt_prog_compiler_pic='-KPIC'
90709780 ;;
90719781 esac
90729782
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9074 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9075 if ${lt_cv_prog_compiler_pic+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9784 printf %s "checking for $compiler option to produce PIC... " >&6; }
9785 if test ${lt_cv_prog_compiler_pic+y}
9786 then :
9787 printf %s "(cached) " >&6
9788 else $as_nop
90789789 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
90799790 fi
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9081 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9792 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
90829793 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
90839794
90849795 #
90859796 # Check to make sure the PIC flag actually works.
90869797 #
90879798 if test -n "$lt_prog_compiler_pic"; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9089 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9090 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9800 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9801 if test ${lt_cv_prog_compiler_pic_works+y}
9802 then :
9803 printf %s "(cached) " >&6
9804 else $as_nop
90939805 lt_cv_prog_compiler_pic_works=no
90949806 ac_outfile=conftest.$ac_objext
90959807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
91209832 $RM conftest*
91219833
91229834 fi
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9124 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9836 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
91259837
91269838 if test yes = "$lt_cv_prog_compiler_pic_works"; then
91279839 case $lt_prog_compiler_pic in
91499861 # Check to make sure the static flag actually works.
91509862 #
91519863 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9153 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9154 if ${lt_cv_prog_compiler_static_works+:} false; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9865 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9866 if test ${lt_cv_prog_compiler_static_works+y}
9867 then :
9868 printf %s "(cached) " >&6
9869 else $as_nop
91579870 lt_cv_prog_compiler_static_works=no
91589871 save_LDFLAGS=$LDFLAGS
91599872 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
91779890 LDFLAGS=$save_LDFLAGS
91789891
91799892 fi
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9181 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9894 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
91829895
91839896 if test yes = "$lt_cv_prog_compiler_static_works"; then
91849897 :
91929905
91939906
91949907
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9196 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9197 if ${lt_cv_prog_compiler_c_o+:} false; then :
9198 $as_echo_n "(cached) " >&6
9199 else
9908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9909 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9910 if test ${lt_cv_prog_compiler_c_o+y}
9911 then :
9912 printf %s "(cached) " >&6
9913 else $as_nop
92009914 lt_cv_prog_compiler_c_o=no
92019915 $RM -r conftest 2>/dev/null
92029916 mkdir conftest
92399953 $RM conftest*
92409954
92419955 fi
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9243 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9244
9245
9246
9247
9248
9249
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9251 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9252 if ${lt_cv_prog_compiler_c_o+:} false; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9957 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9958
9959
9960
9961
9962
9963
9964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9965 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9966 if test ${lt_cv_prog_compiler_c_o+y}
9967 then :
9968 printf %s "(cached) " >&6
9969 else $as_nop
92559970 lt_cv_prog_compiler_c_o=no
92569971 $RM -r conftest 2>/dev/null
92579972 mkdir conftest
929410009 $RM conftest*
929510010
929610011 fi
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9298 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10013 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
929910014
930010015
930110016
930310018 hard_links=nottested
930410019 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
930510020 # do not overwrite the value of need_locks provided by the user
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9307 $as_echo_n "checking if we can lock with hard links... " >&6; }
10021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10022 printf %s "checking if we can lock with hard links... " >&6; }
930810023 hard_links=yes
930910024 $RM conftest*
931010025 ln conftest.a conftest.b 2>/dev/null && hard_links=no
931110026 touch conftest.a
931210027 ln conftest.a conftest.b 2>&5 || hard_links=no
931310028 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9315 $as_echo "$hard_links" >&6; }
10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10030 printf "%s\n" "$hard_links" >&6; }
931610031 if test no = "$hard_links"; then
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9318 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10033 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
931910034 need_locks=warn
932010035 fi
932110036 else
932710042
932810043
932910044
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9331 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10046 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
933210047
933310048 runpath_var=
933410049 allow_undefined_flag=
937210087
937310088 case $host_os in
937410089 cygwin* | mingw* | pw32* | cegcc*)
9375 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10090 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
937610091 # When not using gcc, we currently assume that we are using
9377 # Microsoft Visual C++.
10092 # Microsoft Visual C++ or Intel C++ Compiler.
937810093 if test yes != "$GCC"; then
937910094 with_gnu_ld=no
938010095 fi
938110096 ;;
938210097 interix*)
9383 # we just hope/assume this is gcc and not c89 (= MSVC++)
10098 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
938410099 with_gnu_ld=yes
938510100 ;;
938610101 openbsd* | bitrig*)
938710102 with_gnu_ld=no
10103 ;;
10104 linux* | k*bsd*-gnu | gnu*)
10105 link_all_deplibs=no
938810106 ;;
938910107 esac
939010108
943210150 whole_archive_flag_spec=
943310151 fi
943410152 supports_anon_versioning=no
9435 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10153 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
943610154 *GNU\ gold*) supports_anon_versioning=yes ;;
943710155 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
943810156 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
954410262 emximp -o $lib $output_objdir/$libname.def'
954510263 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
954610264 enable_shared_with_static_runtimes=yes
10265 file_list_spec='@'
954710266 ;;
954810267
954910268 interix[3-9]*)
955810277 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
955910278 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
956010279 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9561 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10280 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
956210281 ;;
956310282
956410283 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
960110320 compiler_needs_object=yes
960210321 ;;
960310322 esac
9604 case `$CC -V 2>&1 | sed 5q` in
10323 case `$CC -V 2>&1 | $SED 5q` in
960510324 *Sun\ C*) # Sun C 5.9
960610325 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
960710326 compiler_needs_object=yes
961310332
961410333 if test yes = "$supports_anon_versioning"; then
961510334 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9616 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10335 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
961710336 echo "local: *; };" >> $output_objdir/$libname.ver~
961810337 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
961910338 fi
962010339
962110340 case $cc_basename in
962210341 tcc*)
10342 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
962310343 export_dynamic_flag_spec='-rdynamic'
962410344 ;;
962510345 xlf* | bgf* | bgxlf* | mpixlf*)
962910349 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
963010350 if test yes = "$supports_anon_versioning"; then
963110351 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10352 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
963310353 echo "local: *; };" >> $output_objdir/$libname.ver~
963410354 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
963510355 fi
964010360 fi
964110361 ;;
964210362
9643 netbsd*)
10363 netbsd* | netbsdelf*-gnu)
964410364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
964510365 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
964610366 wlarc=
976110481 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
976210482 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
976310483 else
9764 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10484 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
976510485 fi
976610486 aix_use_runtimelinking=no
976710487
988310603 if test set = "${lt_cv_aix_libpath+set}"; then
988410604 aix_libpath=$lt_cv_aix_libpath
988510605 else
9886 if ${lt_cv_aix_libpath_+:} false; then :
9887 $as_echo_n "(cached) " >&6
9888 else
10606 if test ${lt_cv_aix_libpath_+y}
10607 then :
10608 printf %s "(cached) " >&6
10609 else $as_nop
988910610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
989010611 /* end confdefs.h. */
989110612
989210613 int
9893 main ()
10614 main (void)
989410615 {
989510616
989610617 ;
989710618 return 0;
989810619 }
989910620 _ACEOF
9900 if ac_fn_c_try_link "$LINENO"; then :
10621 if ac_fn_c_try_link "$LINENO"
10622 then :
990110623
990210624 lt_aix_libpath_sed='
990310625 /Import File Strings/,/^$/ {
991210634 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
991310635 fi
991410636 fi
9915 rm -f core conftest.err conftest.$ac_objext \
10637 rm -f core conftest.err conftest.$ac_objext conftest.beam \
991610638 conftest$ac_exeext conftest.$ac_ext
991710639 if test -z "$lt_cv_aix_libpath_"; then
991810640 lt_cv_aix_libpath_=/usr/lib:/lib
993610658 if test set = "${lt_cv_aix_libpath+set}"; then
993710659 aix_libpath=$lt_cv_aix_libpath
993810660 else
9939 if ${lt_cv_aix_libpath_+:} false; then :
9940 $as_echo_n "(cached) " >&6
9941 else
10661 if test ${lt_cv_aix_libpath_+y}
10662 then :
10663 printf %s "(cached) " >&6
10664 else $as_nop
994210665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
994310666 /* end confdefs.h. */
994410667
994510668 int
9946 main ()
10669 main (void)
994710670 {
994810671
994910672 ;
995010673 return 0;
995110674 }
995210675 _ACEOF
9953 if ac_fn_c_try_link "$LINENO"; then :
10676 if ac_fn_c_try_link "$LINENO"
10677 then :
995410678
995510679 lt_aix_libpath_sed='
995610680 /Import File Strings/,/^$/ {
996510689 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
996610690 fi
996710691 fi
9968 rm -f core conftest.err conftest.$ac_objext \
10692 rm -f core conftest.err conftest.$ac_objext conftest.beam \
996910693 conftest$ac_exeext conftest.$ac_ext
997010694 if test -z "$lt_cv_aix_libpath_"; then
997110695 lt_cv_aix_libpath_=/usr/lib:/lib
1002810752
1002910753 cygwin* | mingw* | pw32* | cegcc*)
1003010754 # When not using gcc, we currently assume that we are using
10031 # Microsoft Visual C++.
10755 # Microsoft Visual C++ or Intel C++ Compiler.
1003210756 # hardcode_libdir_flag_spec is actually meaningless, as there is
1003310757 # no search path for DLLs.
1003410758 case $cc_basename in
10035 cl*)
10036 # Native MSVC
10759 cl* | icl*)
10760 # Native MSVC or ICC
1003710761 hardcode_libdir_flag_spec=' '
1003810762 allow_undefined_flag=unsupported
1003910763 always_export_symbols=yes
1007410798 fi'
1007510799 ;;
1007610800 *)
10077 # Assume MSVC wrapper
10801 # Assume MSVC and ICC wrapper
1007810802 hardcode_libdir_flag_spec=' '
1007910803 allow_undefined_flag=unsupported
1008010804 # Tell ltmain to make .lib files, not .a files.
1011510839 output_verbose_link_cmd=func_echo_all
1011610840 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
1011710841 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10118 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10119 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10842 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10843 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1012010844
1012110845 else
1012210846 ld_shlibs=no
1015010874 ;;
1015110875
1015210876 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10153 freebsd* | dragonfly*)
10877 freebsd* | dragonfly* | midnightbsd*)
1015410878 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1015510879 hardcode_libdir_flag_spec='-R$libdir'
1015610880 hardcode_direct=yes
1021610940
1021710941 # Older versions of the 11.00 compiler do not understand -b yet
1021810942 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10220 $as_echo_n "checking if $CC understands -b... " >&6; }
10221 if ${lt_cv_prog_compiler__b+:} false; then :
10222 $as_echo_n "(cached) " >&6
10223 else
10943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10944 printf %s "checking if $CC understands -b... " >&6; }
10945 if test ${lt_cv_prog_compiler__b+y}
10946 then :
10947 printf %s "(cached) " >&6
10948 else $as_nop
1022410949 lt_cv_prog_compiler__b=no
1022510950 save_LDFLAGS=$LDFLAGS
1022610951 LDFLAGS="$LDFLAGS -b"
1024410969 LDFLAGS=$save_LDFLAGS
1024510970
1024610971 fi
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10248 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10973 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
1024910974
1025010975 if test yes = "$lt_cv_prog_compiler__b"; then
1025110976 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1028511010 # work, assume that -exports_file does not work either and
1028611011 # implicitly export all symbols.
1028711012 # This should be the same for all languages, so no per-tag cache variable.
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10289 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10290 if ${lt_cv_irix_exported_symbol+:} false; then :
10291 $as_echo_n "(cached) " >&6
10292 else
11013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11014 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11015 if test ${lt_cv_irix_exported_symbol+y}
11016 then :
11017 printf %s "(cached) " >&6
11018 else $as_nop
1029311019 save_LDFLAGS=$LDFLAGS
1029411020 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
1029511021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1029611022 /* end confdefs.h. */
1029711023 int foo (void) { return 0; }
1029811024 _ACEOF
10299 if ac_fn_c_try_link "$LINENO"; then :
11025 if ac_fn_c_try_link "$LINENO"
11026 then :
1030011027 lt_cv_irix_exported_symbol=yes
10301 else
11028 else $as_nop
1030211029 lt_cv_irix_exported_symbol=no
1030311030 fi
10304 rm -f core conftest.err conftest.$ac_objext \
11031 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1030511032 conftest$ac_exeext conftest.$ac_ext
1030611033 LDFLAGS=$save_LDFLAGS
1030711034 fi
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10309 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11036 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
1031011037 if test yes = "$lt_cv_irix_exported_symbol"; then
1031111038 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
1031211039 fi
11040 link_all_deplibs=no
1031311041 else
1031411042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
1031511043 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
1032711055 # Fabrice Bellard et al's Tiny C Compiler
1032811056 ld_shlibs=yes
1032911057 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11058 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1033011059 ;;
1033111060 esac
1033211061 ;;
1033311062
10334 netbsd*)
11063 netbsd* | netbsdelf*-gnu)
1033511064 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1033611065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1033711066 else
1039811127 emximp -o $lib $output_objdir/$libname.def'
1039911128 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
1040011129 enable_shared_with_static_runtimes=yes
11130 file_list_spec='@'
1040111131 ;;
1040211132
1040311133 osf3*)
1058611316 fi
1058711317 fi
1058811318
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10590 $as_echo "$ld_shlibs" >&6; }
11319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11320 printf "%s\n" "$ld_shlibs" >&6; }
1059111321 test no = "$ld_shlibs" && can_build_shared=no
1059211322
1059311323 with_gnu_ld=$with_gnu_ld
1062311353 # Test whether the compiler implicitly links with -lc since on some
1062411354 # systems, -lgcc has to come before -lc. If gcc already passes -lc
1062511355 # to ld, don't add -lc before -lgcc.
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10627 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10628 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10629 $as_echo_n "(cached) " >&6
10630 else
11356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11357 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11358 if test ${lt_cv_archive_cmds_need_lc+y}
11359 then :
11360 printf %s "(cached) " >&6
11361 else $as_nop
1063111362 $RM conftest*
1063211363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1063311364
1063411365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1063511366 (eval $ac_compile) 2>&5
1063611367 ac_status=$?
10637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1063811369 test $ac_status = 0; } 2>conftest.err; then
1063911370 soname=conftest
1064011371 lib=conftest
1065211383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1065311384 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1065411385 ac_status=$?
10655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1065611387 test $ac_status = 0; }
1065711388 then
1065811389 lt_cv_archive_cmds_need_lc=no
1066611397 $RM conftest*
1066711398
1066811399 fi
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10670 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11401 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
1067111402 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1067211403 ;;
1067311404 esac
1082611557
1082711558
1082811559
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10830 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11561 printf %s "checking dynamic linker characteristics... " >&6; }
1083111562
1083211563 if test yes = "$GCC"; then
1083311564 case $host_os in
1108911820 case $host_os in
1109011821 cygwin*)
1109111822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11092 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11823 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1109311824
1109411825 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1109511826 ;;
1109911830 ;;
1110011831 pw32*)
1110111832 # pw32 DLLs use 'pw' prefix rather than 'lib'
11102 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11833 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1110311834 ;;
1110411835 esac
1110511836 dynamic_linker='Win32 ld.exe'
1110611837 ;;
1110711838
11108 *,cl*)
11109 # Native MSVC
11839 *,cl* | *,icl*)
11840 # Native MSVC or ICC
1111011841 libname_spec='$name'
1111111842 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1111211843 library_names_spec='$libname.dll.lib'
1112511856 done
1112611857 IFS=$lt_save_ifs
1112711858 # Convert to MSYS style.
11128 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11859 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1112911860 ;;
1113011861 cygwin*)
1113111862 # Convert to unix form, then to dos form, then back to unix form
1116211893 ;;
1116311894
1116411895 *)
11165 # Assume MSVC wrapper
11896 # Assume MSVC and ICC wrapper
1116611897 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1116711898 dynamic_linker='Win32 ld.exe'
1116811899 ;;
1119511926 shlibpath_var=LD_LIBRARY_PATH
1119611927 ;;
1119711928
11198 freebsd* | dragonfly*)
11929 freebsd* | dragonfly* | midnightbsd*)
1119911930 # DragonFly does not have aout. When/if they implement a new
1120011931 # versioning mechanism, adjust this.
1120111932 if test -x /usr/bin/objformat; then
1138812119 shlibpath_overrides_runpath=no
1138912120
1139012121 # Some binutils ld are patched to set DT_RUNPATH
11391 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11392 $as_echo_n "(cached) " >&6
11393 else
12122 if test ${lt_cv_shlibpath_overrides_runpath+y}
12123 then :
12124 printf %s "(cached) " >&6
12125 else $as_nop
1139412126 lt_cv_shlibpath_overrides_runpath=no
1139512127 save_LDFLAGS=$LDFLAGS
1139612128 save_libdir=$libdir
1140012132 /* end confdefs.h. */
1140112133
1140212134 int
11403 main ()
12135 main (void)
1140412136 {
1140512137
1140612138 ;
1140712139 return 0;
1140812140 }
1140912141 _ACEOF
11410 if ac_fn_c_try_link "$LINENO"; then :
11411 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12142 if ac_fn_c_try_link "$LINENO"
12143 then :
12144 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12145 then :
1141212146 lt_cv_shlibpath_overrides_runpath=yes
1141312147 fi
1141412148 fi
11415 rm -f core conftest.err conftest.$ac_objext \
12149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1141612150 conftest$ac_exeext conftest.$ac_ext
1141712151 LDFLAGS=$save_LDFLAGS
1141812152 libdir=$save_libdir
1142512159 # Some rework will be needed to allow for fast_install
1142612160 # before this can be enabled.
1142712161 hardcode_into_libs=yes
11428
11429 # Add ABI-specific directories to the system library path.
11430 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
1143112162
1143212163 # Ideally, we could use ldconfig to report *all* directores which are
1143312164 # searched for libraries, however this is still not possible. Aside from not
1143712168 # appending ld.so.conf contents (and includes) to the search path.
1143812169 if test -f /etc/ld.so.conf; then
1143912170 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11440 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12171 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1144112172 fi
1144212173
1144312174 # We used to test for /lib/ld.so.1 and disable shared libraries on
1144712178 # people can always --disable-shared, the test was removed, and we
1144812179 # assume the GNU/Linux dynamic linker is in use.
1144912180 dynamic_linker='GNU/Linux ld.so'
12181 ;;
12182
12183 netbsdelf*-gnu)
12184 version_type=linux
12185 need_lib_prefix=no
12186 need_version=no
12187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12188 soname_spec='${libname}${release}${shared_ext}$major'
12189 shlibpath_var=LD_LIBRARY_PATH
12190 shlibpath_overrides_runpath=no
12191 hardcode_into_libs=yes
12192 dynamic_linker='NetBSD ld.elf_so'
1145012193 ;;
1145112194
1145212195 netbsd*)
1164712390 dynamic_linker=no
1164812391 ;;
1164912392 esac
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11651 $as_echo "$dynamic_linker" >&6; }
12393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12394 printf "%s\n" "$dynamic_linker" >&6; }
1165212395 test no = "$dynamic_linker" && can_build_shared=no
1165312396
1165412397 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1176912512
1177012513
1177112514
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11773 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12516 printf %s "checking how to hardcode library paths into programs... " >&6; }
1177412517 hardcode_action=
1177512518 if test -n "$hardcode_libdir_flag_spec" ||
1177612519 test -n "$runpath_var" ||
1179412537 # directories.
1179512538 hardcode_action=unsupported
1179612539 fi
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11798 $as_echo "$hardcode_action" >&6; }
12540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12541 printf "%s\n" "$hardcode_action" >&6; }
1179912542
1180012543 if test relink = "$hardcode_action" ||
1180112544 test yes = "$inherit_rpath"; then
1183912582
1184012583 darwin*)
1184112584 # if libdl is installed we need to link against it
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11843 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11844 if ${ac_cv_lib_dl_dlopen+:} false; then :
11845 $as_echo_n "(cached) " >&6
11846 else
12585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12586 printf %s "checking for dlopen in -ldl... " >&6; }
12587 if test ${ac_cv_lib_dl_dlopen+y}
12588 then :
12589 printf %s "(cached) " >&6
12590 else $as_nop
1184712591 ac_check_lib_save_LIBS=$LIBS
1184812592 LIBS="-ldl $LIBS"
1184912593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1185212596 /* Override any GCC internal prototype to avoid an error.
1185312597 Use char because int might match the return type of a GCC
1185412598 builtin and then its argument prototype would still apply. */
11855 #ifdef __cplusplus
11856 extern "C"
11857 #endif
1185812599 char dlopen ();
1185912600 int
11860 main ()
12601 main (void)
1186112602 {
1186212603 return dlopen ();
1186312604 ;
1186412605 return 0;
1186512606 }
1186612607 _ACEOF
11867 if ac_fn_c_try_link "$LINENO"; then :
12608 if ac_fn_c_try_link "$LINENO"
12609 then :
1186812610 ac_cv_lib_dl_dlopen=yes
11869 else
12611 else $as_nop
1187012612 ac_cv_lib_dl_dlopen=no
1187112613 fi
11872 rm -f core conftest.err conftest.$ac_objext \
12614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1187312615 conftest$ac_exeext conftest.$ac_ext
1187412616 LIBS=$ac_check_lib_save_LIBS
1187512617 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11877 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11878 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12619 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12620 if test "x$ac_cv_lib_dl_dlopen" = xyes
12621 then :
1187912622 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11880 else
12623 else $as_nop
1188112624
1188212625 lt_cv_dlopen=dyld
1188312626 lt_cv_dlopen_libs=
1189712640
1189812641 *)
1189912642 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11900 if test "x$ac_cv_func_shl_load" = xyes; then :
12643 if test "x$ac_cv_func_shl_load" = xyes
12644 then :
1190112645 lt_cv_dlopen=shl_load
11902 else
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11904 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11905 if ${ac_cv_lib_dld_shl_load+:} false; then :
11906 $as_echo_n "(cached) " >&6
11907 else
12646 else $as_nop
12647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12648 printf %s "checking for shl_load in -ldld... " >&6; }
12649 if test ${ac_cv_lib_dld_shl_load+y}
12650 then :
12651 printf %s "(cached) " >&6
12652 else $as_nop
1190812653 ac_check_lib_save_LIBS=$LIBS
1190912654 LIBS="-ldld $LIBS"
1191012655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1191312658 /* Override any GCC internal prototype to avoid an error.
1191412659 Use char because int might match the return type of a GCC
1191512660 builtin and then its argument prototype would still apply. */
11916 #ifdef __cplusplus
11917 extern "C"
11918 #endif
1191912661 char shl_load ();
1192012662 int
11921 main ()
12663 main (void)
1192212664 {
1192312665 return shl_load ();
1192412666 ;
1192512667 return 0;
1192612668 }
1192712669 _ACEOF
11928 if ac_fn_c_try_link "$LINENO"; then :
12670 if ac_fn_c_try_link "$LINENO"
12671 then :
1192912672 ac_cv_lib_dld_shl_load=yes
11930 else
12673 else $as_nop
1193112674 ac_cv_lib_dld_shl_load=no
1193212675 fi
11933 rm -f core conftest.err conftest.$ac_objext \
12676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1193412677 conftest$ac_exeext conftest.$ac_ext
1193512678 LIBS=$ac_check_lib_save_LIBS
1193612679 fi
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11938 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11939 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12681 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12682 if test "x$ac_cv_lib_dld_shl_load" = xyes
12683 then :
1194012684 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11941 else
12685 else $as_nop
1194212686 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11943 if test "x$ac_cv_func_dlopen" = xyes; then :
12687 if test "x$ac_cv_func_dlopen" = xyes
12688 then :
1194412689 lt_cv_dlopen=dlopen
11945 else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11947 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11948 if ${ac_cv_lib_dl_dlopen+:} false; then :
11949 $as_echo_n "(cached) " >&6
11950 else
12690 else $as_nop
12691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12692 printf %s "checking for dlopen in -ldl... " >&6; }
12693 if test ${ac_cv_lib_dl_dlopen+y}
12694 then :
12695 printf %s "(cached) " >&6
12696 else $as_nop
1195112697 ac_check_lib_save_LIBS=$LIBS
1195212698 LIBS="-ldl $LIBS"
1195312699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1195612702 /* Override any GCC internal prototype to avoid an error.
1195712703 Use char because int might match the return type of a GCC
1195812704 builtin and then its argument prototype would still apply. */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
1196212705 char dlopen ();
1196312706 int
11964 main ()
12707 main (void)
1196512708 {
1196612709 return dlopen ();
1196712710 ;
1196812711 return 0;
1196912712 }
1197012713 _ACEOF
11971 if ac_fn_c_try_link "$LINENO"; then :
12714 if ac_fn_c_try_link "$LINENO"
12715 then :
1197212716 ac_cv_lib_dl_dlopen=yes
11973 else
12717 else $as_nop
1197412718 ac_cv_lib_dl_dlopen=no
1197512719 fi
11976 rm -f core conftest.err conftest.$ac_objext \
12720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1197712721 conftest$ac_exeext conftest.$ac_ext
1197812722 LIBS=$ac_check_lib_save_LIBS
1197912723 fi
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11981 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11982 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12725 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12726 if test "x$ac_cv_lib_dl_dlopen" = xyes
12727 then :
1198312728 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11986 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11987 if ${ac_cv_lib_svld_dlopen+:} false; then :
11988 $as_echo_n "(cached) " >&6
11989 else
12729 else $as_nop
12730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12731 printf %s "checking for dlopen in -lsvld... " >&6; }
12732 if test ${ac_cv_lib_svld_dlopen+y}
12733 then :
12734 printf %s "(cached) " >&6
12735 else $as_nop
1199012736 ac_check_lib_save_LIBS=$LIBS
1199112737 LIBS="-lsvld $LIBS"
1199212738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1199512741 /* Override any GCC internal prototype to avoid an error.
1199612742 Use char because int might match the return type of a GCC
1199712743 builtin and then its argument prototype would still apply. */
11998 #ifdef __cplusplus
11999 extern "C"
12000 #endif
1200112744 char dlopen ();
1200212745 int
12003 main ()
12746 main (void)
1200412747 {
1200512748 return dlopen ();
1200612749 ;
1200712750 return 0;
1200812751 }
1200912752 _ACEOF
12010 if ac_fn_c_try_link "$LINENO"; then :
12753 if ac_fn_c_try_link "$LINENO"
12754 then :
1201112755 ac_cv_lib_svld_dlopen=yes
12012 else
12756 else $as_nop
1201312757 ac_cv_lib_svld_dlopen=no
1201412758 fi
12015 rm -f core conftest.err conftest.$ac_objext \
12759 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1201612760 conftest$ac_exeext conftest.$ac_ext
1201712761 LIBS=$ac_check_lib_save_LIBS
1201812762 fi
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12020 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12021 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12764 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12765 if test "x$ac_cv_lib_svld_dlopen" = xyes
12766 then :
1202212767 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12023 else
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12025 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12026 if ${ac_cv_lib_dld_dld_link+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12768 else $as_nop
12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12770 printf %s "checking for dld_link in -ldld... " >&6; }
12771 if test ${ac_cv_lib_dld_dld_link+y}
12772 then :
12773 printf %s "(cached) " >&6
12774 else $as_nop
1202912775 ac_check_lib_save_LIBS=$LIBS
1203012776 LIBS="-ldld $LIBS"
1203112777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1203412780 /* Override any GCC internal prototype to avoid an error.
1203512781 Use char because int might match the return type of a GCC
1203612782 builtin and then its argument prototype would still apply. */
12037 #ifdef __cplusplus
12038 extern "C"
12039 #endif
1204012783 char dld_link ();
1204112784 int
12042 main ()
12785 main (void)
1204312786 {
1204412787 return dld_link ();
1204512788 ;
1204612789 return 0;
1204712790 }
1204812791 _ACEOF
12049 if ac_fn_c_try_link "$LINENO"; then :
12792 if ac_fn_c_try_link "$LINENO"
12793 then :
1205012794 ac_cv_lib_dld_dld_link=yes
12051 else
12795 else $as_nop
1205212796 ac_cv_lib_dld_dld_link=no
1205312797 fi
12054 rm -f core conftest.err conftest.$ac_objext \
12798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1205512799 conftest$ac_exeext conftest.$ac_ext
1205612800 LIBS=$ac_check_lib_save_LIBS
1205712801 fi
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12059 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12060 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12803 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12804 if test "x$ac_cv_lib_dld_dld_link" = xyes
12805 then :
1206112806 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1206212807 fi
1206312808
1209612841 save_LIBS=$LIBS
1209712842 LIBS="$lt_cv_dlopen_libs $LIBS"
1209812843
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12100 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12101 if ${lt_cv_dlopen_self+:} false; then :
12102 $as_echo_n "(cached) " >&6
12103 else
12844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12845 printf %s "checking whether a program can dlopen itself... " >&6; }
12846 if test ${lt_cv_dlopen_self+y}
12847 then :
12848 printf %s "(cached) " >&6
12849 else $as_nop
1210412850 if test yes = "$cross_compiling"; then :
1210512851 lt_cv_dlopen_self=cross
1210612852 else
1217912925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1218012926 (eval $ac_link) 2>&5
1218112927 ac_status=$?
12182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1218312929 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1218412930 (./conftest; exit; ) >&5 2>/dev/null
1218512931 lt_status=$?
1219712943
1219812944
1219912945 fi
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12201 $as_echo "$lt_cv_dlopen_self" >&6; }
12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12947 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
1220212948
1220312949 if test yes = "$lt_cv_dlopen_self"; then
1220412950 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12206 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12207 if ${lt_cv_dlopen_self_static+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12952 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12953 if test ${lt_cv_dlopen_self_static+y}
12954 then :
12955 printf %s "(cached) " >&6
12956 else $as_nop
1221012957 if test yes = "$cross_compiling"; then :
1221112958 lt_cv_dlopen_self_static=cross
1221212959 else
1228513032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1228613033 (eval $ac_link) 2>&5
1228713034 ac_status=$?
12288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1228913036 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1229013037 (./conftest; exit; ) >&5 2>/dev/null
1229113038 lt_status=$?
1230313050
1230413051
1230513052 fi
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12307 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13054 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
1230813055 fi
1230913056
1231013057 CPPFLAGS=$save_CPPFLAGS
1234213089
1234313090 striplib=
1234413091 old_striplib=
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12346 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12347 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12348 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12349 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12351 $as_echo "yes" >&6; }
13092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13093 printf %s "checking whether stripping libraries is possible... " >&6; }
13094 if test -z "$STRIP"; then
13095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096 printf "%s\n" "no" >&6; }
1235213097 else
12353 # FIXME - insert some real tests, host_os isn't really good enough
12354 case $host_os in
12355 darwin*)
12356 if test -n "$STRIP"; then
13098 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13099 old_striplib="$STRIP --strip-debug"
13100 striplib="$STRIP --strip-unneeded"
13101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13102 printf "%s\n" "yes" >&6; }
13103 else
13104 case $host_os in
13105 darwin*)
13106 # FIXME - insert some real tests, host_os isn't really good enough
1235713107 striplib="$STRIP -x"
1235813108 old_striplib="$STRIP -S"
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12360 $as_echo "yes" >&6; }
12361 else
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12364 fi
12365 ;;
12366 *)
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12369 ;;
12370 esac
13109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13110 printf "%s\n" "yes" >&6; }
13111 ;;
13112 freebsd*)
13113 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13114 old_striplib="$STRIP --strip-debug"
13115 striplib="$STRIP --strip-unneeded"
13116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13117 printf "%s\n" "yes" >&6; }
13118 else
13119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 printf "%s\n" "no" >&6; }
13121 fi
13122 ;;
13123 *)
13124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125 printf "%s\n" "no" >&6; }
13126 ;;
13127 esac
13128 fi
1237113129 fi
1237213130
1237313131
1238213140
1238313141
1238413142 # Report what library types will actually be built
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12386 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12388 $as_echo "$can_build_shared" >&6; }
12389
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12391 $as_echo_n "checking whether to build shared libraries... " >&6; }
13143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13144 printf %s "checking if libtool supports shared libraries... " >&6; }
13145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13146 printf "%s\n" "$can_build_shared" >&6; }
13147
13148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13149 printf %s "checking whether to build shared libraries... " >&6; }
1239213150 test no = "$can_build_shared" && enable_shared=no
1239313151
1239413152 # On AIX, shared libraries and static libraries use the same namespace, and
1241213170 fi
1241313171 ;;
1241413172 esac
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12416 $as_echo "$enable_shared" >&6; }
12417
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12419 $as_echo_n "checking whether to build static libraries... " >&6; }
13173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13174 printf "%s\n" "$enable_shared" >&6; }
13175
13176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13177 printf %s "checking whether to build static libraries... " >&6; }
1242013178 # Make sure either enable_shared or enable_static is yes.
1242113179 test yes = "$enable_shared" || enable_static=yes
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12423 $as_echo "$enable_static" >&6; }
13180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13181 printf "%s\n" "$enable_static" >&6; }
1242413182
1242513183
1242613184
1246213220
1246313221
1246413222 # Check whether --enable-silent-rules was given.
12465 if test "${enable_silent_rules+set}" = set; then :
13223 if test ${enable_silent_rules+y}
13224 then :
1246613225 enableval=$enable_silent_rules;
1246713226 fi
1246813227
1247213231 *) AM_DEFAULT_VERBOSITY=0;;
1247313232 esac
1247413233 am_make=${MAKE-make}
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12476 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12477 if ${am_cv_make_support_nested_variables+:} false; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12480 if $as_echo 'TRUE=$(BAR$(V))
13234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13235 printf %s "checking whether $am_make supports nested variables... " >&6; }
13236 if test ${am_cv_make_support_nested_variables+y}
13237 then :
13238 printf %s "(cached) " >&6
13239 else $as_nop
13240 if printf "%s\n" 'TRUE=$(BAR$(V))
1248113241 BAR0=false
1248213242 BAR1=true
1248313243 V=1
1248913249 am_cv_make_support_nested_variables=no
1249013250 fi
1249113251 fi
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12493 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13253 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
1249413254 if test $am_cv_make_support_nested_variables = yes; then
1249513255 AM_V='$(V)'
1249613256 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1250413264
1250513265
1250613266
12507 for ac_header in $ac_header_list
12508 do :
12509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12510 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12511 "
12512 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12513 cat >>confdefs.h <<_ACEOF
12514 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12515 _ACEOF
12516
12517 fi
12518
12519 done
12520
12521
12522
12523
12524
1252513267 # The cast to long int works around a bug in the HP C Compiler
1252613268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
1252713269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
1252813270 # This bug is HP SR number 8606223364.
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mode_t" >&5
12530 $as_echo_n "checking size of mode_t... " >&6; }
12531 if ${ac_cv_sizeof_mode_t+:} false; then :
12532 $as_echo_n "(cached) " >&6
12533 else
12534 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (mode_t))" "ac_cv_sizeof_mode_t" "$ac_includes_default"; then :
12535
12536 else
13271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of mode_t" >&5
13272 printf %s "checking size of mode_t... " >&6; }
13273 if test ${ac_cv_sizeof_mode_t+y}
13274 then :
13275 printf %s "(cached) " >&6
13276 else $as_nop
13277 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (mode_t))" "ac_cv_sizeof_mode_t" "$ac_includes_default"
13278 then :
13279
13280 else $as_nop
1253713281 if test "$ac_cv_type_mode_t" = yes; then
12538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13282 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13283 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1254013284 as_fn_error 77 "cannot compute sizeof (mode_t)
1254113285 See \`config.log' for more details" "$LINENO" 5; }
1254213286 else
1254513289 fi
1254613290
1254713291 fi
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mode_t" >&5
12549 $as_echo "$ac_cv_sizeof_mode_t" >&6; }
12550
12551
12552
12553 cat >>confdefs.h <<_ACEOF
12554 #define SIZEOF_MODE_T $ac_cv_sizeof_mode_t
12555 _ACEOF
13292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mode_t" >&5
13293 printf "%s\n" "$ac_cv_sizeof_mode_t" >&6; }
13294
13295
13296
13297 printf "%s\n" "#define SIZEOF_MODE_T $ac_cv_sizeof_mode_t" >>confdefs.h
1255613298
1255713299
1255813300 # The cast to long int works around a bug in the HP C Compiler
1255913301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
1256013302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
1256113303 # This bug is HP SR number 8606223364.
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12563 $as_echo_n "checking size of int... " >&6; }
12564 if ${ac_cv_sizeof_int+:} false; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12567 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12568
12569 else
13304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13305 printf %s "checking size of int... " >&6; }
13306 if test ${ac_cv_sizeof_int+y}
13307 then :
13308 printf %s "(cached) " >&6
13309 else $as_nop
13310 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
13311 then :
13312
13313 else $as_nop
1257013314 if test "$ac_cv_type_int" = yes; then
12571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13315 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13316 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1257313317 as_fn_error 77 "cannot compute sizeof (int)
1257413318 See \`config.log' for more details" "$LINENO" 5; }
1257513319 else
1257813322 fi
1257913323
1258013324 fi
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12582 $as_echo "$ac_cv_sizeof_int" >&6; }
12583
12584
12585
12586 cat >>confdefs.h <<_ACEOF
12587 #define SIZEOF_INT $ac_cv_sizeof_int
12588 _ACEOF
13325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13326 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
13327
13328
13329
13330 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
1258913331
1259013332
1259113333
1259513337 #endif
1259613338
1259713339 "
12598 if test "x$ac_cv_type_pthread_barrier_t" = xyes; then :
13340 if test "x$ac_cv_type_pthread_barrier_t" = xyes
13341 then :
1259913342
1260013343 fi
1260113344
1260913352 fi
1261013353
1261113354
12612 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
12613 if test "x$ac_cv_have_decl_fdatasync" = xyes; then :
13355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13356 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13357 if test ${ac_cv_c_undeclared_builtin_options+y}
13358 then :
13359 printf %s "(cached) " >&6
13360 else $as_nop
13361 ac_save_CFLAGS=$CFLAGS
13362 ac_cv_c_undeclared_builtin_options='cannot detect'
13363 for ac_arg in '' -fno-builtin; do
13364 CFLAGS="$ac_save_CFLAGS $ac_arg"
13365 # This test program should *not* compile successfully.
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13368
13369 int
13370 main (void)
13371 {
13372 (void) strchr;
13373 ;
13374 return 0;
13375 }
13376 _ACEOF
13377 if ac_fn_c_try_compile "$LINENO"
13378 then :
13379
13380 else $as_nop
13381 # This test program should compile successfully.
13382 # No library function is consistently available on
13383 # freestanding implementations, so test against a dummy
13384 # declaration. Include always-available headers on the
13385 # off chance that they somehow elicit warnings.
13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13388 #include <float.h>
13389 #include <limits.h>
13390 #include <stdarg.h>
13391 #include <stddef.h>
13392 extern void ac_decl (int, char *);
13393
13394 int
13395 main (void)
13396 {
13397 (void) ac_decl (0, (char *) 0);
13398 (void) ac_decl;
13399
13400 ;
13401 return 0;
13402 }
13403 _ACEOF
13404 if ac_fn_c_try_compile "$LINENO"
13405 then :
13406 if test x"$ac_arg" = x
13407 then :
13408 ac_cv_c_undeclared_builtin_options='none needed'
13409 else $as_nop
13410 ac_cv_c_undeclared_builtin_options=$ac_arg
13411 fi
13412 break
13413 fi
13414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13415 fi
13416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13417 done
13418 CFLAGS=$ac_save_CFLAGS
13419
13420 fi
13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13422 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13423 case $ac_cv_c_undeclared_builtin_options in #(
13424 'cannot detect') :
13425 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13426 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13427 as_fn_error $? "cannot make $CC report undeclared builtins
13428 See \`config.log' for more details" "$LINENO" 5; } ;; #(
13429 'none needed') :
13430 ac_c_undeclared_builtin_options='' ;; #(
13431 *) :
13432 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13433 esac
13434
13435 ac_fn_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13436 if test "x$ac_cv_have_decl_fdatasync" = xyes
13437 then :
1261413438 ac_have_decl=1
12615 else
13439 else $as_nop
1261613440 ac_have_decl=0
1261713441 fi
12618
12619 cat >>confdefs.h <<_ACEOF
12620 #define HAVE_DECL_FDATASYNC $ac_have_decl
12621 _ACEOF
12622
12623 for ac_func in fdatasync
12624 do :
12625 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
12626 if test "x$ac_cv_func_fdatasync" = xyes; then :
12627 cat >>confdefs.h <<_ACEOF
12628 #define HAVE_FDATASYNC 1
12629 _ACEOF
12630
12631 fi
12632 done
12633
12634 ac_fn_c_check_decl "$LINENO" "sync_file_range" "ac_cv_have_decl_sync_file_range" "$ac_includes_default"
12635 if test "x$ac_cv_have_decl_sync_file_range" = xyes; then :
13442 printf "%s\n" "#define HAVE_DECL_FDATASYNC $ac_have_decl" >>confdefs.h
13443
13444 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13445 if test "x$ac_cv_func_fdatasync" = xyes
13446 then :
13447 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13448
13449 fi
13450
13451 ac_fn_check_decl "$LINENO" "sync_file_range" "ac_cv_have_decl_sync_file_range" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13452 if test "x$ac_cv_have_decl_sync_file_range" = xyes
13453 then :
1263613454 ac_have_decl=1
12637 else
13455 else $as_nop
1263813456 ac_have_decl=0
1263913457 fi
12640
12641 cat >>confdefs.h <<_ACEOF
12642 #define HAVE_DECL_SYNC_FILE_RANGE $ac_have_decl
12643 _ACEOF
12644
12645 for ac_func in sync_file_range
12646 do :
12647 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
12648 if test "x$ac_cv_func_sync_file_range" = xyes; then :
12649 cat >>confdefs.h <<_ACEOF
12650 #define HAVE_SYNC_FILE_RANGE 1
12651 _ACEOF
12652
12653 fi
12654 done
12655
12656 for ac_func in open64
12657 do :
12658 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
12659 if test "x$ac_cv_func_open64" = xyes; then :
12660 cat >>confdefs.h <<_ACEOF
12661 #define HAVE_OPEN64 1
12662 _ACEOF
12663
12664 fi
12665 done
12666
12667 for ac_func in syncfs
12668 do :
12669 ac_fn_c_check_func "$LINENO" "syncfs" "ac_cv_func_syncfs"
12670 if test "x$ac_cv_func_syncfs" = xyes; then :
12671 cat >>confdefs.h <<_ACEOF
12672 #define HAVE_SYNCFS 1
12673 _ACEOF
12674
12675 fi
12676 done
12677
12678
12679
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
12681 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
12682 if ${ac_cv_tls+:} false; then :
12683 $as_echo_n "(cached) " >&6
12684 else
13458 printf "%s\n" "#define HAVE_DECL_SYNC_FILE_RANGE $ac_have_decl" >>confdefs.h
13459
13460 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13461 if test "x$ac_cv_func_sync_file_range" = xyes
13462 then :
13463 printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13464
13465 fi
13466
13467 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13468 if test "x$ac_cv_func_open64" = xyes
13469 then :
13470 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13471
13472 fi
13473
13474 ac_fn_c_check_func "$LINENO" "syncfs" "ac_cv_func_syncfs"
13475 if test "x$ac_cv_func_syncfs" = xyes
13476 then :
13477 printf "%s\n" "#define HAVE_SYNCFS 1" >>confdefs.h
13478
13479 fi
13480
13481
13482
13483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
13484 printf %s "checking for thread local storage (TLS) class... " >&6; }
13485 if test ${ac_cv_tls+y}
13486 then :
13487 printf %s "(cached) " >&6
13488 else $as_nop
1268513489 for ax_tls_keyword in thread_local _Thread_local __thread '__declspec(thread)' none; do
1268613490 case $ax_tls_keyword in #(
1268713491 none) :
1269613500 exit(1);
1269713501 }
1269813502 int
12699 main ()
13503 main (void)
1270013504 {
1270113505
1270213506 ;
1270313507 return 0;
1270413508 }
1270513509 _ACEOF
12706 if ac_fn_c_try_compile "$LINENO"; then :
13510 if ac_fn_c_try_compile "$LINENO"
13511 then :
1270713512 ac_cv_tls=$ax_tls_keyword ; break
12708 else
13513 else $as_nop
1270913514 ac_cv_tls=none
1271013515
1271113516 fi
12712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
13517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1271313518 esac
1271413519 done
1271513520
1271613521 fi
1271713522
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
12719 $as_echo "$ac_cv_tls" >&6; }
12720
12721 if test "$ac_cv_tls" != "none"; then :
12722
12723 cat >>confdefs.h <<_ACEOF
12724 #define TLS $ac_cv_tls
12725 _ACEOF
13523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
13524 printf "%s\n" "$ac_cv_tls" >&6; }
13525
13526 if test "$ac_cv_tls" != "none"
13527 then :
13528
13529 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
1272613530
1272713531 :
12728 else
13532 else $as_nop
1272913533 :
1273013534 fi
1273113535
1276013564 case $ac_val in #(
1276113565 *${as_nl}*)
1276213566 case $ac_var in #(
12763 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12764 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13567 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13568 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1276513569 esac
1276613570 case $ac_var in #(
1276713571 _ | IFS | as_nl) ;; #(
1279113595 /^ac_cv_env_/b end
1279213596 t clear
1279313597 :clear
12794 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13598 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1279513599 t end
1279613600 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1279713601 :end' >>confcache
1279813602 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1279913603 if test -w "$cache_file"; then
1280013604 if test "x$cache_file" != "x/dev/null"; then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12802 $as_echo "$as_me: updating cache $cache_file" >&6;}
13605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13606 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1280313607 if test ! -f "$cache_file" || test -h "$cache_file"; then
1280413608 cat confcache >"$cache_file"
1280513609 else
1281313617 fi
1281413618 fi
1281513619 else
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12817 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13621 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1281813622 fi
1281913623 fi
1282013624 rm -f confcache
1283113635 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1283213636 # 1. Remove the extension, and $U if already installed.
1283313637 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12834 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13638 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1283513639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
1283613640 # will be set to the directory where LIBOBJS objects are built.
1283713641 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1284213646 LTLIBOBJS=$ac_ltlibobjs
1284313647
1284413648
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12846 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13650 printf %s "checking that generated files are newer than configure... " >&6; }
1284713651 if test -n "$am_sleep_pid"; then
1284813652 # Hide warnings about reused PIDs.
1284913653 wait $am_sleep_pid 2>/dev/null
1285013654 fi
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12852 $as_echo "done" >&6; }
13655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13656 printf "%s\n" "done" >&6; }
1285313657 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1285413658 as_fn_error $? "conditional \"AMDEP\" was never defined.
1285513659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1287513679 ac_write_fail=0
1287613680 ac_clean_files_save=$ac_clean_files
1287713681 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12879 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13683 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1288013684 as_write_fail=0
1288113685 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1288213686 #! $SHELL
1289913703
1290013704 # Be more Bourne compatible
1290113705 DUALCASE=1; export DUALCASE # for MKS sh
12902 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13706 as_nop=:
13707 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13708 then :
1290313709 emulate sh
1290413710 NULLCMD=:
1290513711 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1290613712 # is contrary to our usage. Disable this feature.
1290713713 alias -g '${1+"$@"}'='"$@"'
1290813714 setopt NO_GLOB_SUBST
12909 else
13715 else $as_nop
1291013716 case `(set -o) 2>/dev/null` in #(
1291113717 *posix*) :
1291213718 set -o posix ;; #(
1291613722 fi
1291713723
1291813724
13725
13726 # Reset variables that may have inherited troublesome values from
13727 # the environment.
13728
13729 # IFS needs to be set, to space, tab, and newline, in precisely that order.
13730 # (If _AS_PATH_WALK were called with IFS unset, it would have the
13731 # side effect of setting IFS to empty, thus disabling word splitting.)
13732 # Quoting is to prevent editors from complaining about space-tab.
1291913733 as_nl='
1292013734 '
1292113735 export as_nl
12922 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12923 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12924 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12925 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12926 # Prefer a ksh shell builtin over an external printf program on Solaris,
12927 # but without wasting forks for bash or zsh.
12928 if test -z "$BASH_VERSION$ZSH_VERSION" \
12929 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12930 as_echo='print -r --'
12931 as_echo_n='print -rn --'
12932 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12933 as_echo='printf %s\n'
12934 as_echo_n='printf %s'
12935 else
12936 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12937 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12938 as_echo_n='/usr/ucb/echo -n'
12939 else
12940 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12941 as_echo_n_body='eval
12942 arg=$1;
12943 case $arg in #(
12944 *"$as_nl"*)
12945 expr "X$arg" : "X\\(.*\\)$as_nl";
12946 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12947 esac;
12948 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12949 '
12950 export as_echo_n_body
12951 as_echo_n='sh -c $as_echo_n_body as_echo'
12952 fi
12953 export as_echo_body
12954 as_echo='sh -c $as_echo_body as_echo'
12955 fi
13736 IFS=" "" $as_nl"
13737
13738 PS1='$ '
13739 PS2='> '
13740 PS4='+ '
13741
13742 # Ensure predictable behavior from utilities with locale-dependent output.
13743 LC_ALL=C
13744 export LC_ALL
13745 LANGUAGE=C
13746 export LANGUAGE
13747
13748 # We cannot yet rely on "unset" to work, but we need these variables
13749 # to be unset--not just set to an empty or harmless value--now, to
13750 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
13751 # also avoids known problems related to "unset" and subshell syntax
13752 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13753 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13754 do eval test \${$as_var+y} \
13755 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13756 done
13757
13758 # Ensure that fds 0, 1, and 2 are open.
13759 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13760 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13761 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1295613762
1295713763 # The user is always right.
12958 if test "${PATH_SEPARATOR+set}" != set; then
13764 if ${PATH_SEPARATOR+false} :; then
1295913765 PATH_SEPARATOR=:
1296013766 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
1296113767 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
1296313769 }
1296413770 fi
1296513771
12966
12967 # IFS
12968 # We need space, tab and new line, in precisely that order. Quoting is
12969 # there to prevent editors from complaining about space-tab.
12970 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12971 # splitting by setting IFS to empty value.)
12972 IFS=" "" $as_nl"
1297313772
1297413773 # Find who we are. Look in the path if we contain no directory separator.
1297513774 as_myself=
1297913778 for as_dir in $PATH
1298013779 do
1298113780 IFS=$as_save_IFS
12982 test -z "$as_dir" && as_dir=.
12983 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13781 case $as_dir in #(((
13782 '') as_dir=./ ;;
13783 */) ;;
13784 *) as_dir=$as_dir/ ;;
13785 esac
13786 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1298413787 done
1298513788 IFS=$as_save_IFS
1298613789
1299213795 as_myself=$0
1299313796 fi
1299413797 if test ! -f "$as_myself"; then
12995 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13798 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1299613799 exit 1
1299713800 fi
1299813801
12999 # Unset variables that we do not need and which cause bugs (e.g. in
13000 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13001 # suppresses any "Segmentation fault" message there. '((' could
13002 # trigger a bug in pdksh 5.2.14.
13003 for as_var in BASH_ENV ENV MAIL MAILPATH
13004 do eval test x\${$as_var+set} = xset \
13005 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13006 done
13007 PS1='$ '
13008 PS2='> '
13009 PS4='+ '
13010
13011 # NLS nuisances.
13012 LC_ALL=C
13013 export LC_ALL
13014 LANGUAGE=C
13015 export LANGUAGE
13016
13017 # CDPATH.
13018 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1301913802
1302013803
1302113804 # as_fn_error STATUS ERROR [LINENO LOG_FD]
1302813811 as_status=$1; test $as_status -eq 0 && as_status=1
1302913812 if test "$4"; then
1303013813 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13031 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1303213815 fi
13033 $as_echo "$as_me: error: $2" >&2
13816 printf "%s\n" "$as_me: error: $2" >&2
1303413817 as_fn_exit $as_status
1303513818 } # as_fn_error
13819
1303613820
1303713821
1303813822 # as_fn_set_status STATUS
1306113845 { eval $1=; unset $1;}
1306213846 }
1306313847 as_unset=as_fn_unset
13848
1306413849 # as_fn_append VAR VALUE
1306513850 # ----------------------
1306613851 # Append the text in VALUE to the end of the definition contained in VAR. Take
1306713852 # advantage of any shell optimizations that allow amortized linear growth over
1306813853 # repeated appends, instead of the typical quadratic growth present in naive
1306913854 # implementations.
13070 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13855 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
13856 then :
1307113857 eval 'as_fn_append ()
1307213858 {
1307313859 eval $1+=\$2
1307413860 }'
13075 else
13861 else $as_nop
1307613862 as_fn_append ()
1307713863 {
1307813864 eval $1=\$$1\$2
1308413870 # Perform arithmetic evaluation on the ARGs, and store the result in the
1308513871 # global $as_val. Take advantage of shells that can avoid forks. The arguments
1308613872 # must be portable across $(()) and expr.
13087 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13873 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
13874 then :
1308813875 eval 'as_fn_arith ()
1308913876 {
1309013877 as_val=$(( $* ))
1309113878 }'
13092 else
13879 else $as_nop
1309313880 as_fn_arith ()
1309413881 {
1309513882 as_val=`expr "$@" || test $? -eq 1`
1312013907 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1312113908 X"$0" : 'X\(//\)$' \| \
1312213909 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13123 $as_echo X/"$0" |
13910 printf "%s\n" X/"$0" |
1312413911 sed '/^.*\/\([^/][^/]*\)\/*$/{
1312513912 s//\1/
1312613913 q
1314213929 as_cr_digits='0123456789'
1314313930 as_cr_alnum=$as_cr_Letters$as_cr_digits
1314413931
13932
13933 # Determine whether it's possible to make 'echo' print without a newline.
13934 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
13935 # for compatibility with existing Makefiles.
1314513936 ECHO_C= ECHO_N= ECHO_T=
1314613937 case `echo -n x` in #(((((
1314713938 -n*)
1315413945 *)
1315513946 ECHO_N='-n';;
1315613947 esac
13948
13949 # For backward compatibility with old third-party macros, we provide
13950 # the shell variables $as_echo and $as_echo_n. New code should use
13951 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
13952 as_echo='printf %s\n'
13953 as_echo_n='printf %s'
1315713954
1315813955 rm -f conf$$ conf$$.exe conf$$.file
1315913956 if test -d conf$$.dir; then
1319613993 as_dirs=
1319713994 while :; do
1319813995 case $as_dir in #(
13199 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13996 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1320013997 *) as_qdir=$as_dir;;
1320113998 esac
1320213999 as_dirs="'$as_qdir' $as_dirs"
1320514002 X"$as_dir" : 'X\(//\)[^/]' \| \
1320614003 X"$as_dir" : 'X\(//\)$' \| \
1320714004 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13208 $as_echo X"$as_dir" |
14005 printf "%s\n" X"$as_dir" |
1320914006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321014007 s//\1/
1321114008 q
1326714064 # report actual input values of CONFIG_FILES etc. instead of their
1326814065 # values after options handling.
1326914066 ac_log="
13270 This file was extended by libeatmydata $as_me 130, which was
13271 generated by GNU Autoconf 2.69. Invocation command line was
14067 This file was extended by libeatmydata $as_me 131, which was
14068 generated by GNU Autoconf 2.71. Invocation command line was
1327214069
1327314070 CONFIG_FILES = $CONFIG_FILES
1327414071 CONFIG_HEADERS = $CONFIG_HEADERS
1333014127 Report bugs to <http://www.flamingspork.com/projects/libeatmydata>."
1333114128
1333214129 _ACEOF
14130 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14131 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1333314132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13334 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14133 ac_cs_config='$ac_cs_config_escaped'
1333514134 ac_cs_version="\\
13336 libeatmydata config.status 130
13337 configured by $0, generated by GNU Autoconf 2.69,
14135 libeatmydata config.status 131
14136 configured by $0, generated by GNU Autoconf 2.71,
1333814137 with options \\"\$ac_cs_config\\"
1333914138
13340 Copyright (C) 2012 Free Software Foundation, Inc.
14139 Copyright (C) 2021 Free Software Foundation, Inc.
1334114140 This config.status script is free software; the Free Software Foundation
1334214141 gives unlimited permission to copy, distribute and modify it."
1334314142
1337714176 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1337814177 ac_cs_recheck=: ;;
1337914178 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13380 $as_echo "$ac_cs_version"; exit ;;
14179 printf "%s\n" "$ac_cs_version"; exit ;;
1338114180 --config | --confi | --conf | --con | --co | --c )
13382 $as_echo "$ac_cs_config"; exit ;;
14181 printf "%s\n" "$ac_cs_config"; exit ;;
1338314182 --debug | --debu | --deb | --de | --d | -d )
1338414183 debug=: ;;
1338514184 --file | --fil | --fi | --f )
1338614185 $ac_shift
1338714186 case $ac_optarg in
13388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14187 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1338914188 '') as_fn_error $? "missing file argument" ;;
1339014189 esac
1339114190 as_fn_append CONFIG_FILES " '$ac_optarg'"
1339314192 --header | --heade | --head | --hea )
1339414193 $ac_shift
1339514194 case $ac_optarg in
13396 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14195 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1339714196 esac
1339814197 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1339914198 ac_need_defaults=false;;
1340214201 as_fn_error $? "ambiguous option: \`$1'
1340314202 Try \`$0 --help' for more information.";;
1340414203 --help | --hel | -h )
13405 $as_echo "$ac_cs_usage"; exit ;;
14204 printf "%s\n" "$ac_cs_usage"; exit ;;
1340614205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1340714206 | -silent | --silent | --silen | --sile | --sil | --si | --s)
1340814207 ac_cs_silent=: ;;
1343014229 if \$ac_cs_recheck; then
1343114230 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1343214231 shift
13433 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14232 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1343414233 CONFIG_SHELL='$SHELL'
1343514234 export CONFIG_SHELL
1343614235 exec "\$@"
1344414243 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1344514244 ## Running $as_me. ##
1344614245 _ASBOX
13447 $as_echo "$ac_log"
14246 printf "%s\n" "$ac_log"
1344814247 } >&5
1344914248
1345014249 _ACEOF
1349614295 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
1349714296 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
1349814297 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14298 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
1349914299 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1350014300 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
1350114301 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
1350414304 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
1350514305 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
1350614306 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14307 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
1350714308 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
1350814309 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
1350914310 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
1362414425 lt_SP2NL \
1362514426 lt_NL2SP \
1362614427 reload_flag \
14428 FILECMD \
1362714429 OBJDUMP \
1362814430 deplibs_check_method \
1362914431 file_magic_cmd \
1363214434 DLLTOOL \
1363314435 sharedlib_from_linklib_cmd \
1363414436 AR \
13635 AR_FLAGS \
1363614437 archiver_list_spec \
1363714438 STRIP \
1363814439 RANLIB \
1376114562 # We use the long form for the default assignment because of an extremely
1376214563 # bizarre bug on SunOS 4.1.3.
1376314564 if $ac_need_defaults; then
13764 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13765 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13766 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14565 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
14566 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
14567 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1376714568 fi
1376814569
1376914570 # Have a temporary directory for convenience. Make it in the build tree
1409914900 esac ||
1410014901 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1410114902 esac
14102 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14903 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1410314904 as_fn_append ac_file_inputs " '$ac_f'"
1410414905 done
1410514906
1410714908 # use $as_me), people would be surprised to read:
1410814909 # /* config.h. Generated by config.status. */
1410914910 configure_input='Generated from '`
14110 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14911 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1411114912 `' by configure.'
1411214913 if test x"$ac_file" != x-; then
1411314914 configure_input="$ac_file. $configure_input"
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14115 $as_echo "$as_me: creating $ac_file" >&6;}
14915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14916 printf "%s\n" "$as_me: creating $ac_file" >&6;}
1411614917 fi
1411714918 # Neutralize special characters interpreted by sed in replacement strings.
1411814919 case $configure_input in #(
1411914920 *\&* | *\|* | *\\* )
14120 ac_sed_conf_input=`$as_echo "$configure_input" |
14921 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1412114922 sed 's/[\\\\&|]/\\\\&/g'`;; #(
1412214923 *) ac_sed_conf_input=$configure_input;;
1412314924 esac
1413414935 X"$ac_file" : 'X\(//\)[^/]' \| \
1413514936 X"$ac_file" : 'X\(//\)$' \| \
1413614937 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14137 $as_echo X"$ac_file" |
14938 printf "%s\n" X"$ac_file" |
1413814939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413914940 s//\1/
1414014941 q
1415814959 case "$ac_dir" in
1415914960 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416014961 *)
14161 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14962 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1416214963 # A ".." for each directory in $ac_dir_suffix.
14163 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14964 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1416414965 case $ac_top_builddir_sub in
1416514966 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416614967 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1422215023 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1422315024 *datarootdir*) ac_datarootdir_seen=yes;;
1422415025 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14226 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15027 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1422715028 _ACEOF
1422815029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1422915030 ac_datarootdir_hack='
1426715068 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1426815069 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
1426915070 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1427115072 which seems to be undefined. Please make sure it is defined" >&5
14272 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15073 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1427315074 which seems to be undefined. Please make sure it is defined" >&2;}
1427415075
1427515076 rm -f "$ac_tmp/stdin"
1428515086 #
1428615087 if test x"$ac_file" != x-; then
1428715088 {
14288 $as_echo "/* $configure_input */" \
15089 printf "%s\n" "/* $configure_input */" >&1 \
1428915090 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1429015091 } >"$ac_tmp/config.h" \
1429115092 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1429215093 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14294 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15095 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1429515096 else
1429615097 rm -f "$ac_file"
1429715098 mv "$ac_tmp/config.h" "$ac_file" \
1429815099 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1429915100 fi
1430015101 else
14301 $as_echo "/* $configure_input */" \
15102 printf "%s\n" "/* $configure_input */" >&1 \
1430215103 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1430315104 || as_fn_error $? "could not create -" "$LINENO" 5
1430415105 fi
1431815119 X"$_am_arg" : 'X\(//\)[^/]' \| \
1431915120 X"$_am_arg" : 'X\(//\)$' \| \
1432015121 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14321 $as_echo X"$_am_arg" |
15122 printf "%s\n" X"$_am_arg" |
1432215123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432315124 s//\1/
1432415125 q
1433815139 s/.*/./; q'`/stamp-h$_am_stamp_count
1433915140 ;;
1434015141
14341 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14342 $as_echo "$as_me: executing $ac_file commands" >&6;}
15142 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15143 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
1434315144 ;;
1434415145 esac
1434515146
1436515166 for am_mf
1436615167 do
1436715168 # Strip MF so we end up with the name of the file.
14368 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15169 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
1436915170 # Check whether this is an Automake generated Makefile which includes
1437015171 # dependency-tracking related rules and includes.
1437115172 # Grep'ing the whole file directly is not great: AIX grep has a line
1437715178 X"$am_mf" : 'X\(//\)[^/]' \| \
1437815179 X"$am_mf" : 'X\(//\)$' \| \
1437915180 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14380 $as_echo X"$am_mf" |
15181 printf "%s\n" X"$am_mf" |
1438115182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1438215183 s//\1/
1438315184 q
1439915200 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
1440015201 X"$am_mf" : 'X\(//\)$' \| \
1440115202 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14402 $as_echo X/"$am_mf" |
15203 printf "%s\n" X/"$am_mf" |
1440315204 sed '/^.*\/\([^/][^/]*\)\/*$/{
1440415205 s//\1/
1440515206 q
1442415225 (exit $ac_status); } || am_rc=$?
1442515226 done
1442615227 if test $am_rc -ne 0; then
14427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15228 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15229 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1442915230 as_fn_error $? "Something went wrong bootstrapping makefile fragments
1443015231 for automatic dependency tracking. If GNU make was not used, consider
1443115232 re-running the configure script with MAKE=\"gmake\" (or whatever is
1445615257 cat <<_LT_EOF >> "$cfgfile"
1445715258 #! $SHELL
1445815259 # Generated automatically by $as_me ($PACKAGE) $VERSION
14459 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1446015260 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1446115261
1446215262 # Provide generalized library-building support services.
1457615376 # convert \$build files to toolchain format.
1457715377 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1457815378
15379 # A file(cmd) program that detects file types.
15380 FILECMD=$lt_FILECMD
15381
1457915382 # An object symbol dumper.
1458015383 OBJDUMP=$lt_OBJDUMP
1458115384
1460015403 # The archiver.
1460115404 AR=$lt_AR
1460215405
15406 # Flags to create an archive (by configure).
15407 lt_ar_flags=$lt_ar_flags
15408
1460315409 # Flags to create an archive.
14604 AR_FLAGS=$lt_AR_FLAGS
15410 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
1460515411
1460615412 # How to feed a file listing to the archiver.
1460715413 archiver_list_spec=$lt_archiver_list_spec
1496915775 esac
1497015776
1497115777
15778
1497215779 ltmain=$ac_aux_dir/ltmain.sh
1497315780
1497415781
1497615783 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1497715784 # text mode, it properly converts lines to CR/LF. This bash problem
1497815785 # is reportedly fixed, but why not run on old versions too?
14979 sed '$q' "$ltmain" >> "$cfgfile" \
15786 $SED '$q' "$ltmain" >> "$cfgfile" \
1498015787 || (rm -f "$cfgfile"; exit 1)
1498115788
1498215789 mv -f "$cfgfile" "$ofile" ||
1501815825 $ac_cs_success || as_fn_exit 1
1501915826 fi
1502015827 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15022 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15023 fi
15024
15025
15828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15829 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15830 fi
15831
15832
15833
1010 #
1111
1212
13 AC_INIT([libeatmydata],[130], [http://www.flamingspork.com/projects/libeatmydata])
13 AC_INIT([libeatmydata],[131], [http://www.flamingspork.com/projects/libeatmydata])
1414 AC_CONFIG_SRCDIR([libeatmydata/libeatmydata.c])
1515 AC_CONFIG_AUX_DIR([config])
1616 AC_CONFIG_MACRO_DIR([m4])
0 libeatmydata (130+git20220331.1.8803646-1) UNRELEASED; urgency=low
1
2 * New upstream snapshot.
3
4 -- Debian Janitor <janitor@jelmer.uk> Mon, 03 Oct 2022 00:12:13 -0000
5
06 libeatmydata (130-2) unstable; urgency=medium
17
28 * The new symbol is not available on kbsd (but it's on hurd).
+0
-791
depcomp less more
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program that contains a
22 # configuration script generated by Autoconf, you may include it under
23 # the same distribution terms that you use for the rest of that program.
24
25 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
26
27 case $1 in
28 '')
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
32 -h | --h*)
33 cat <<\EOF
34 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
35
36 Run PROGRAMS ARGS to compile a file, generating dependencies
37 as side-effects.
38
39 Environment variables:
40 depmode Dependency tracking mode.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
43 DEPDIR directory where to store dependencies.
44 depfile Dependency file to output.
45 tmpdepfile Temporary file to use when outputting dependencies.
46 libtool Whether libtool is used (yes/no).
47
48 Report bugs to <bug-automake@gnu.org>.
49 EOF
50 exit $?
51 ;;
52 -v | --v*)
53 echo "depcomp $scriptversion"
54 exit $?
55 ;;
56 esac
57
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
106 # A tabulation character.
107 tab=' '
108 # A newline character.
109 nl='
110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
117
118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
120 exit 1
121 fi
122
123 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
124 depfile=${depfile-`echo "$object" |
125 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
127
128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
132
133 # Some modes work just like other modes, but use different flags. We
134 # parameterize here, but still list the modes in the big case below,
135 # to make depend.m4 easier to write. Note that we *cannot* use a case
136 # here, because this file can only contain one case statement.
137 if test "$depmode" = hp; then
138 # HP compiler uses -M and no extra arg.
139 gccflag=-M
140 depmode=gcc
141 fi
142
143 if test "$depmode" = dashXmstdout; then
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
147 fi
148
149 cygpath_u="cygpath -u -f -"
150 if test "$depmode" = msvcmsys; then
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
156 fi
157
158 if test "$depmode" = msvc7msys; then
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
164 fi
165
166 if test "$depmode" = xlc; then
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
170 fi
171
172 case "$depmode" in
173 gcc3)
174 ## gcc 3 implements dependency tracking that does exactly what
175 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
176 ## it if -MD -MP comes after the -MF stuff. Hmm.
177 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
178 ## the command line argument order; so add the flags where they
179 ## appear in depend2.am. Note that the slowdown incurred here
180 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
181 for arg
182 do
183 case $arg in
184 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
185 *) set fnord "$@" "$arg" ;;
186 esac
187 shift # fnord
188 shift # $arg
189 done
190 "$@"
191 stat=$?
192 if test $stat -ne 0; then
193 rm -f "$tmpdepfile"
194 exit $stat
195 fi
196 mv "$tmpdepfile" "$depfile"
197 ;;
198
199 gcc)
200 ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
201 ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
202 ## (see the conditional assignment to $gccflag above).
203 ## There are various ways to get dependency output from gcc. Here's
204 ## why we pick this rather obscure method:
205 ## - Don't want to use -MD because we'd like the dependencies to end
206 ## up in a subdir. Having to rename by hand is ugly.
207 ## (We might end up doing this anyway to support other compilers.)
208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
211 ## - Using -M directly means running the compiler twice (even worse
212 ## than renaming).
213 if test -z "$gccflag"; then
214 gccflag=-MD,
215 fi
216 "$@" -Wp,"$gccflag$tmpdepfile"
217 stat=$?
218 if test $stat -ne 0; then
219 rm -f "$tmpdepfile"
220 exit $stat
221 fi
222 rm -f "$depfile"
223 echo "$object : \\" > "$depfile"
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
226 sed -e 's/^[^:]*: / /' \
227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
228 ## This next piece of magic avoids the "deleted header file" problem.
229 ## The problem is that when a header file which appears in a .P file
230 ## is deleted, the dependency causes make to die (because there is
231 ## typically no way to rebuild the header). We avoid this by adding
232 ## dummy dependencies for each header file. Too bad gcc doesn't do
233 ## this for us directly.
234 ## Some versions of gcc put a space before the ':'. On the theory
235 ## that the space means something, we add a space to the output as
236 ## well. hp depmode also adds that space, but also prefixes the VPATH
237 ## to the object. Take care to not repeat it in the output.
238 ## Some versions of the HPUX 10.20 sed can't process this invocation
239 ## correctly. Breaking it into two sed invocations is a workaround.
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
243 rm -f "$tmpdepfile"
244 ;;
245
246 hp)
247 # This case exists only to let depend.m4 do its work. It works by
248 # looking at the text of this script. This case will never be run,
249 # since it is checked for above.
250 exit 1
251 ;;
252
253 sgi)
254 if test "$libtool" = yes; then
255 "$@" "-Wp,-MDupdate,$tmpdepfile"
256 else
257 "$@" -MDupdate "$tmpdepfile"
258 fi
259 stat=$?
260 if test $stat -ne 0; then
261 rm -f "$tmpdepfile"
262 exit $stat
263 fi
264 rm -f "$depfile"
265
266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
267 echo "$object : \\" > "$depfile"
268 # Clip off the initial element (the dependent). Don't try to be
269 # clever and replace this with sed code, as IRIX sed won't handle
270 # lines with more than a fixed number of characters (4096 in
271 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
272 # the IRIX cc adds comments like '#:fec' to the end of the
273 # dependency line.
274 tr ' ' "$nl" < "$tmpdepfile" \
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
277 echo >> "$depfile"
278 # The second pass generates a dummy entry for each header file.
279 tr ' ' "$nl" < "$tmpdepfile" \
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
282 else
283 make_dummy_depfile
284 fi
285 rm -f "$tmpdepfile"
286 ;;
287
288 xlc)
289 # This case exists only to let depend.m4 do its work. It works by
290 # looking at the text of this script. This case will never be run,
291 # since it is checked for above.
292 exit 1
293 ;;
294
295 aix)
296 # The C for AIX Compiler uses -M and outputs the dependencies
297 # in a .u file. In older versions, this file always lives in the
298 # current directory. Also, the AIX compiler puts '$object:' at the
299 # start of each line; $object doesn't have directory information.
300 # Version 6 uses the directory in both cases.
301 set_dir_from "$object"
302 set_base_from "$object"
303 if test "$libtool" = yes; then
304 tmpdepfile1=$dir$base.u
305 tmpdepfile2=$base.u
306 tmpdepfile3=$dir.libs/$base.u
307 "$@" -Wc,-M
308 else
309 tmpdepfile1=$dir$base.u
310 tmpdepfile2=$dir$base.u
311 tmpdepfile3=$dir$base.u
312 "$@" -M
313 fi
314 stat=$?
315 if test $stat -ne 0; then
316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
317 exit $stat
318 fi
319
320 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
321 do
322 test -f "$tmpdepfile" && break
323 done
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
355 rm -f "$tmpdepfile"
356 ;;
357
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
368 # foo.o: sub/foo.c sub/foo.h
369 # and will wrap long lines using '\' :
370 # foo.o: sub/foo.c ... \
371 # sub/foo.h ... \
372 # ...
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
418 rm -f "$tmpdepfile"
419 exit $stat
420 fi
421 rm -f "$depfile"
422 # Each line is of the form `foo.o: dependent.h',
423 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
424 # Do two passes, one to just change these to
425 # `$object: dependent.h' and one to simply `dependent.h:'.
426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
427 # Some versions of the HPUX 10.20 sed can't process this invocation
428 # correctly. Breaking it into two sed invocations is a workaround.
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
431 rm -f "$tmpdepfile"
432 ;;
433
434 hp2)
435 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
436 # compilers, which have integrated preprocessors. The correct option
437 # to use with these is +Maked; it writes dependencies to a file named
438 # 'foo.d', which lands next to the object file, wherever that
439 # happens to be.
440 # Much of this is similar to the tru64 case; see comments there.
441 set_dir_from "$object"
442 set_base_from "$object"
443 if test "$libtool" = yes; then
444 tmpdepfile1=$dir$base.d
445 tmpdepfile2=$dir.libs/$base.d
446 "$@" -Wc,+Maked
447 else
448 tmpdepfile1=$dir$base.d
449 tmpdepfile2=$dir$base.d
450 "$@" +Maked
451 fi
452 stat=$?
453 if test $stat -ne 0; then
454 rm -f "$tmpdepfile1" "$tmpdepfile2"
455 exit $stat
456 fi
457
458 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
459 do
460 test -f "$tmpdepfile" && break
461 done
462 if test -f "$tmpdepfile"; then
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
464 # Add 'dependent.h:' lines.
465 sed -ne '2,${
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
471 else
472 make_dummy_depfile
473 fi
474 rm -f "$tmpdepfile" "$tmpdepfile2"
475 ;;
476
477 tru64)
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
518
519 msvc7)
520 if test "$libtool" = yes; then
521 showIncludes=-Wc,-showIncludes
522 else
523 showIncludes=-showIncludes
524 fi
525 "$@" $showIncludes > "$tmpdepfile"
526 stat=$?
527 grep -v '^Note: including file: ' "$tmpdepfile"
528 if test $stat -ne 0; then
529 rm -f "$tmpdepfile"
530 exit $stat
531 fi
532 rm -f "$depfile"
533 echo "$object : \\" > "$depfile"
534 # The first sed program below extracts the file names and escapes
535 # backslashes for cygpath. The second sed program outputs the file
536 # name when reading, but also accumulates all include files in the
537 # hold buffer in order to output them again at the end. This only
538 # works with sed implementations that can handle large buffers.
539 sed < "$tmpdepfile" -n '
540 /^Note: including file: *\(.*\)/ {
541 s//\1/
542 s/\\/\\\\/g
543 p
544 }' | $cygpath_u | sort -u | sed -n '
545 s/ /\\ /g
546 s/\(.*\)/'"$tab"'\1 \\/p
547 s/.\(.*\) \\/\1:/
548 H
549 $ {
550 s/.*/'"$tab"'/
551 G
552 p
553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
555 rm -f "$tmpdepfile"
556 ;;
557
558 msvc7msys)
559 # This case exists only to let depend.m4 do its work. It works by
560 # looking at the text of this script. This case will never be run,
561 # since it is checked for above.
562 exit 1
563 ;;
564
565 #nosideeffect)
566 # This comment above is used by automake to tell side-effect
567 # dependency tracking mechanisms from slower ones.
568
569 dashmstdout)
570 # Important note: in order to support this mode, a compiler *must*
571 # always write the preprocessed file to stdout, regardless of -o.
572 "$@" || exit $?
573
574 # Remove the call to Libtool.
575 if test "$libtool" = yes; then
576 while test "X$1" != 'X--mode=compile'; do
577 shift
578 done
579 shift
580 fi
581
582 # Remove '-o $object'.
583 IFS=" "
584 for arg
585 do
586 case $arg in
587 -o)
588 shift
589 ;;
590 $object)
591 shift
592 ;;
593 *)
594 set fnord "$@" "$arg"
595 shift # fnord
596 shift # $arg
597 ;;
598 esac
599 done
600
601 test -z "$dashmflag" && dashmflag=-M
602 # Require at least two characters before searching for ':'
603 # in the target name. This is to cope with DOS-style filenames:
604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
605 "$@" $dashmflag |
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
607 rm -f "$depfile"
608 cat < "$tmpdepfile" > "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
614 rm -f "$tmpdepfile"
615 ;;
616
617 dashXmstdout)
618 # This case only exists to satisfy depend.m4. It is never actually
619 # run, as this mode is specially recognized in the preamble.
620 exit 1
621 ;;
622
623 makedepend)
624 "$@" || exit $?
625 # Remove any Libtool call
626 if test "$libtool" = yes; then
627 while test "X$1" != 'X--mode=compile'; do
628 shift
629 done
630 shift
631 fi
632 # X makedepend
633 shift
634 cleared=no eat=no
635 for arg
636 do
637 case $cleared in
638 no)
639 set ""; shift
640 cleared=yes ;;
641 esac
642 if test $eat = yes; then
643 eat=no
644 continue
645 fi
646 case "$arg" in
647 -D*|-I*)
648 set fnord "$@" "$arg"; shift ;;
649 # Strip any option that makedepend may not understand. Remove
650 # the object too, otherwise makedepend will parse it as a source file.
651 -arch)
652 eat=yes ;;
653 -*|$object)
654 ;;
655 *)
656 set fnord "$@" "$arg"; shift ;;
657 esac
658 done
659 obj_suffix=`echo "$object" | sed 's/^.*\././'`
660 touch "$tmpdepfile"
661 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
662 rm -f "$depfile"
663 # makedepend may prepend the VPATH from the source file name to the object.
664 # No need to regex-escape $object, excess matching of '.' is harmless.
665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
666 # Some versions of the HPUX 10.20 sed can't process the last invocation
667 # correctly. Breaking it into two sed invocations is a workaround.
668 sed '1,2d' "$tmpdepfile" \
669 | tr ' ' "$nl" \
670 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
671 | sed -e 's/$/ :/' >> "$depfile"
672 rm -f "$tmpdepfile" "$tmpdepfile".bak
673 ;;
674
675 cpp)
676 # Important note: in order to support this mode, a compiler *must*
677 # always write the preprocessed file to stdout.
678 "$@" || exit $?
679
680 # Remove the call to Libtool.
681 if test "$libtool" = yes; then
682 while test "X$1" != 'X--mode=compile'; do
683 shift
684 done
685 shift
686 fi
687
688 # Remove '-o $object'.
689 IFS=" "
690 for arg
691 do
692 case $arg in
693 -o)
694 shift
695 ;;
696 $object)
697 shift
698 ;;
699 *)
700 set fnord "$@" "$arg"
701 shift # fnord
702 shift # $arg
703 ;;
704 esac
705 done
706
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
711 rm -f "$depfile"
712 echo "$object : \\" > "$depfile"
713 cat < "$tmpdepfile" >> "$depfile"
714 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
715 rm -f "$tmpdepfile"
716 ;;
717
718 msvisualcpp)
719 # Important note: in order to support this mode, a compiler *must*
720 # always write the preprocessed file to stdout.
721 "$@" || exit $?
722
723 # Remove the call to Libtool.
724 if test "$libtool" = yes; then
725 while test "X$1" != 'X--mode=compile'; do
726 shift
727 done
728 shift
729 fi
730
731 IFS=" "
732 for arg
733 do
734 case "$arg" in
735 -o)
736 shift
737 ;;
738 $object)
739 shift
740 ;;
741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
742 set fnord "$@"
743 shift
744 shift
745 ;;
746 *)
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
751 esac
752 done
753 "$@" -E 2>/dev/null |
754 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
755 rm -f "$depfile"
756 echo "$object : \\" > "$depfile"
757 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
758 echo "$tab" >> "$depfile"
759 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
760 rm -f "$tmpdepfile"
761 ;;
762
763 msvcmsys)
764 # This case exists only to let depend.m4 do its work. It works by
765 # looking at the text of this script. This case will never be run,
766 # since it is checked for above.
767 exit 1
768 ;;
769
770 none)
771 exec "$@"
772 ;;
773
774 *)
775 echo "Unknown depmode $depmode" 1>&2
776 exit 1
777 ;;
778 esac
779
780 exit 0
781
782 # Local Variables:
783 # mode: shell-script
784 # sh-indentation: 2
785 # eval: (add-hook 'write-file-hooks 'time-stamp)
786 # time-stamp-start: "scriptversion="
787 # time-stamp-format: "%:y-%02m-%02d.%02H"
788 # time-stamp-time-zone: "UTC"
789 # time-stamp-end: "; # UTC"
790 # End:
+0
-501
install-sh less more
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2013-12-25.23; # UTC
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # 'make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch.
42
43 tab=' '
44 nl='
45 '
46 IFS=" $tab$nl"
47
48 # Set DOITPROG to "echo" to test this script.
49
50 doit=${DOITPROG-}
51 doit_exec=${doit:-exec}
52
53 # Put in absolute file names if you don't have them in your path;
54 # or use environment vars.
55
56 chgrpprog=${CHGRPPROG-chgrp}
57 chmodprog=${CHMODPROG-chmod}
58 chownprog=${CHOWNPROG-chown}
59 cmpprog=${CMPPROG-cmp}
60 cpprog=${CPPROG-cp}
61 mkdirprog=${MKDIRPROG-mkdir}
62 mvprog=${MVPROG-mv}
63 rmprog=${RMPROG-rm}
64 stripprog=${STRIPPROG-strip}
65
66 posix_mkdir=
67
68 # Desired mode of installed file.
69 mode=0755
70
71 chgrpcmd=
72 chmodcmd=$chmodprog
73 chowncmd=
74 mvcmd=$mvprog
75 rmcmd="$rmprog -f"
76 stripcmd=
77
78 src=
79 dst=
80 dir_arg=
81 dst_arg=
82
83 copy_on_change=false
84 is_target_a_directory=possibly
85
86 usage="\
87 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
88 or: $0 [OPTION]... SRCFILES... DIRECTORY
89 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
90 or: $0 [OPTION]... -d DIRECTORIES...
91
92 In the 1st form, copy SRCFILE to DSTFILE.
93 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
94 In the 4th, create DIRECTORIES.
95
96 Options:
97 --help display this help and exit.
98 --version display version info and exit.
99
100 -c (ignored)
101 -C install only if different (preserve the last data modification time)
102 -d create directories instead of installing files.
103 -g GROUP $chgrpprog installed files to GROUP.
104 -m MODE $chmodprog installed files to MODE.
105 -o USER $chownprog installed files to USER.
106 -s $stripprog installed files.
107 -t DIRECTORY install into DIRECTORY.
108 -T report an error if DSTFILE is a directory.
109
110 Environment variables override the default commands:
111 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
112 RMPROG STRIPPROG
113 "
114
115 while test $# -ne 0; do
116 case $1 in
117 -c) ;;
118
119 -C) copy_on_change=true;;
120
121 -d) dir_arg=true;;
122
123 -g) chgrpcmd="$chgrpprog $2"
124 shift;;
125
126 --help) echo "$usage"; exit $?;;
127
128 -m) mode=$2
129 case $mode in
130 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
131 echo "$0: invalid mode: $mode" >&2
132 exit 1;;
133 esac
134 shift;;
135
136 -o) chowncmd="$chownprog $2"
137 shift;;
138
139 -s) stripcmd=$stripprog;;
140
141 -t)
142 is_target_a_directory=always
143 dst_arg=$2
144 # Protect names problematic for 'test' and other utilities.
145 case $dst_arg in
146 -* | [=\(\)!]) dst_arg=./$dst_arg;;
147 esac
148 shift;;
149
150 -T) is_target_a_directory=never;;
151
152 --version) echo "$0 $scriptversion"; exit $?;;
153
154 --) shift
155 break;;
156
157 -*) echo "$0: invalid option: $1" >&2
158 exit 1;;
159
160 *) break;;
161 esac
162 shift
163 done
164
165 # We allow the use of options -d and -T together, by making -d
166 # take the precedence; this is for compatibility with GNU install.
167
168 if test -n "$dir_arg"; then
169 if test -n "$dst_arg"; then
170 echo "$0: target directory not allowed when installing a directory." >&2
171 exit 1
172 fi
173 fi
174
175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
176 # When -d is used, all remaining arguments are directories to create.
177 # When -t is used, the destination is already specified.
178 # Otherwise, the last argument is the destination. Remove it from $@.
179 for arg
180 do
181 if test -n "$dst_arg"; then
182 # $@ is not empty: it contains at least $arg.
183 set fnord "$@" "$dst_arg"
184 shift # fnord
185 fi
186 shift # arg
187 dst_arg=$arg
188 # Protect names problematic for 'test' and other utilities.
189 case $dst_arg in
190 -* | [=\(\)!]) dst_arg=./$dst_arg;;
191 esac
192 done
193 fi
194
195 if test $# -eq 0; then
196 if test -z "$dir_arg"; then
197 echo "$0: no input file specified." >&2
198 exit 1
199 fi
200 # It's OK to call 'install-sh -d' without argument.
201 # This can happen when creating conditional directories.
202 exit 0
203 fi
204
205 if test -z "$dir_arg"; then
206 if test $# -gt 1 || test "$is_target_a_directory" = always; then
207 if test ! -d "$dst_arg"; then
208 echo "$0: $dst_arg: Is not a directory." >&2
209 exit 1
210 fi
211 fi
212 fi
213
214 if test -z "$dir_arg"; then
215 do_exit='(exit $ret); exit $ret'
216 trap "ret=129; $do_exit" 1
217 trap "ret=130; $do_exit" 2
218 trap "ret=141; $do_exit" 13
219 trap "ret=143; $do_exit" 15
220
221 # Set umask so as not to create temps with too-generous modes.
222 # However, 'strip' requires both read and write access to temps.
223 case $mode in
224 # Optimize common cases.
225 *644) cp_umask=133;;
226 *755) cp_umask=22;;
227
228 *[0-7])
229 if test -z "$stripcmd"; then
230 u_plus_rw=
231 else
232 u_plus_rw='% 200'
233 fi
234 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
235 *)
236 if test -z "$stripcmd"; then
237 u_plus_rw=
238 else
239 u_plus_rw=,u+rw
240 fi
241 cp_umask=$mode$u_plus_rw;;
242 esac
243 fi
244
245 for src
246 do
247 # Protect names problematic for 'test' and other utilities.
248 case $src in
249 -* | [=\(\)!]) src=./$src;;
250 esac
251
252 if test -n "$dir_arg"; then
253 dst=$src
254 dstdir=$dst
255 test -d "$dstdir"
256 dstdir_status=$?
257 else
258
259 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
260 # might cause directories to be created, which would be especially bad
261 # if $src (and thus $dsttmp) contains '*'.
262 if test ! -f "$src" && test ! -d "$src"; then
263 echo "$0: $src does not exist." >&2
264 exit 1
265 fi
266
267 if test -z "$dst_arg"; then
268 echo "$0: no destination specified." >&2
269 exit 1
270 fi
271 dst=$dst_arg
272
273 # If destination is a directory, append the input filename; won't work
274 # if double slashes aren't ignored.
275 if test -d "$dst"; then
276 if test "$is_target_a_directory" = never; then
277 echo "$0: $dst_arg: Is a directory" >&2
278 exit 1
279 fi
280 dstdir=$dst
281 dst=$dstdir/`basename "$src"`
282 dstdir_status=0
283 else
284 dstdir=`dirname "$dst"`
285 test -d "$dstdir"
286 dstdir_status=$?
287 fi
288 fi
289
290 obsolete_mkdir_used=false
291
292 if test $dstdir_status != 0; then
293 case $posix_mkdir in
294 '')
295 # Create intermediate dirs using mode 755 as modified by the umask.
296 # This is like FreeBSD 'install' as of 1997-10-28.
297 umask=`umask`
298 case $stripcmd.$umask in
299 # Optimize common cases.
300 *[2367][2367]) mkdir_umask=$umask;;
301 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
302
303 *[0-7])
304 mkdir_umask=`expr $umask + 22 \
305 - $umask % 100 % 40 + $umask % 20 \
306 - $umask % 10 % 4 + $umask % 2
307 `;;
308 *) mkdir_umask=$umask,go-w;;
309 esac
310
311 # With -d, create the new directory with the user-specified mode.
312 # Otherwise, rely on $mkdir_umask.
313 if test -n "$dir_arg"; then
314 mkdir_mode=-m$mode
315 else
316 mkdir_mode=
317 fi
318
319 posix_mkdir=false
320 case $umask in
321 *[123567][0-7][0-7])
322 # POSIX mkdir -p sets u+wx bits regardless of umask, which
323 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
324 ;;
325 *)
326 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
327 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
328
329 if (umask $mkdir_umask &&
330 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
331 then
332 if test -z "$dir_arg" || {
333 # Check for POSIX incompatibilities with -m.
334 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
335 # other-writable bit of parent directory when it shouldn't.
336 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
337 ls_ld_tmpdir=`ls -ld "$tmpdir"`
338 case $ls_ld_tmpdir in
339 d????-?r-*) different_mode=700;;
340 d????-?--*) different_mode=755;;
341 *) false;;
342 esac &&
343 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
344 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
345 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
346 }
347 }
348 then posix_mkdir=:
349 fi
350 rmdir "$tmpdir/d" "$tmpdir"
351 else
352 # Remove any dirs left behind by ancient mkdir implementations.
353 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
354 fi
355 trap '' 0;;
356 esac;;
357 esac
358
359 if
360 $posix_mkdir && (
361 umask $mkdir_umask &&
362 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
363 )
364 then :
365 else
366
367 # The umask is ridiculous, or mkdir does not conform to POSIX,
368 # or it failed possibly due to a race condition. Create the
369 # directory the slow way, step by step, checking for races as we go.
370
371 case $dstdir in
372 /*) prefix='/';;
373 [-=\(\)!]*) prefix='./';;
374 *) prefix='';;
375 esac
376
377 oIFS=$IFS
378 IFS=/
379 set -f
380 set fnord $dstdir
381 shift
382 set +f
383 IFS=$oIFS
384
385 prefixes=
386
387 for d
388 do
389 test X"$d" = X && continue
390
391 prefix=$prefix$d
392 if test -d "$prefix"; then
393 prefixes=
394 else
395 if $posix_mkdir; then
396 (umask=$mkdir_umask &&
397 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
398 # Don't fail if two instances are running concurrently.
399 test -d "$prefix" || exit 1
400 else
401 case $prefix in
402 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
403 *) qprefix=$prefix;;
404 esac
405 prefixes="$prefixes '$qprefix'"
406 fi
407 fi
408 prefix=$prefix/
409 done
410
411 if test -n "$prefixes"; then
412 # Don't fail if two instances are running concurrently.
413 (umask $mkdir_umask &&
414 eval "\$doit_exec \$mkdirprog $prefixes") ||
415 test -d "$dstdir" || exit 1
416 obsolete_mkdir_used=true
417 fi
418 fi
419 fi
420
421 if test -n "$dir_arg"; then
422 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
423 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
424 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
425 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
426 else
427
428 # Make a couple of temp file names in the proper directory.
429 dsttmp=$dstdir/_inst.$$_
430 rmtmp=$dstdir/_rm.$$_
431
432 # Trap to clean up those temp files at exit.
433 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
434
435 # Copy the file name to the temp name.
436 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
437
438 # and set any options; do chmod last to preserve setuid bits.
439 #
440 # If any of these fail, we abort the whole thing. If we want to
441 # ignore errors from any of these, just make sure not to ignore
442 # errors from the above "$doit $cpprog $src $dsttmp" command.
443 #
444 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
445 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
446 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
447 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
448
449 # If -C, don't bother to copy if it wouldn't change the file.
450 if $copy_on_change &&
451 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
452 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
453 set -f &&
454 set X $old && old=:$2:$4:$5:$6 &&
455 set X $new && new=:$2:$4:$5:$6 &&
456 set +f &&
457 test "$old" = "$new" &&
458 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
459 then
460 rm -f "$dsttmp"
461 else
462 # Rename the file to the real destination.
463 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
464
465 # The rename failed, perhaps because mv can't rename something else
466 # to itself, or perhaps because mv is so ancient that it does not
467 # support -f.
468 {
469 # Now remove or move aside any old file at destination location.
470 # We try this two ways since rm can't unlink itself on some
471 # systems and the destination file might be busy for other
472 # reasons. In this case, the final cleanup might fail but the new
473 # file should still install successfully.
474 {
475 test ! -f "$dst" ||
476 $doit $rmcmd -f "$dst" 2>/dev/null ||
477 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
478 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
479 } ||
480 { echo "$0: cannot unlink or rename $dst" >&2
481 (exit 1); exit 1
482 }
483 } &&
484
485 # Now rename the file to the real destination.
486 $doit $mvcmd "$dsttmp" "$dst"
487 }
488 fi || exit 1
489
490 trap '' 0
491 fi
492 done
493
494 # Local variables:
495 # eval: (add-hook 'write-file-hooks 'time-stamp)
496 # time-stamp-start: "scriptversion="
497 # time-stamp-format: "%:y-%02m-%02d.%02H"
498 # time-stamp-time-zone: "UTC"
499 # time-stamp-end: "; # UTC"
500 # End:
2929 int main(int argc, char* argv[])
3030 {
3131 (void)argc; (void)argv;
32 #ifdef HAVE_SYNCFS
3233 int fd;
3334 int i;
3435 ssize_t ret;
4344 }
4445 close(fd);
4546 unlink("syncfstestdata");
47 #endif
4648 return 0;
4749 }
00 Name: libeatmydata
1 Version: 130
1 Version: 131
22 Release: 1%{?dist}
33 Group: Development/Tools
44 License: GPLv3
00 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
11 #
2 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
2 # Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software
3 # Foundation, Inc.
34 # Written by Gordon Matzigkeit, 1996
45 #
56 # This file is free software; the Free Software Foundation gives
3031 # along with this program. If not, see <http://www.gnu.org/licenses/>.
3132 ])
3233
33 # serial 58 LT_INIT
34 # serial 59 LT_INIT
3435
3536
3637 # LT_PREREQ(VERSION)
180181 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
181182 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
182183 m4_require([_LT_CMD_RELOAD])dnl
184 m4_require([_LT_DECL_FILECMD])dnl
183185 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
184186 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
185187 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
218220 ofile=libtool
219221 can_build_shared=yes
220222
221 # All known linkers require a '.a' archive for static linking (except MSVC,
222 # which needs '.lib').
223 # All known linkers require a '.a' archive for static linking (except MSVC and
224 # ICC, which need '.lib').
223225 libext=a
224226
225227 with_gnu_ld=$lt_cv_prog_gnu_ld
727729 cat <<_LT_EOF >> "$cfgfile"
728730 #! $SHELL
729731 # Generated automatically by $as_me ($PACKAGE) $VERSION
730 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
731732 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
732733
733734 # Provide generalized library-building support services.
777778 # if finds mixed CR/LF and LF-only lines. Since sed operates in
778779 # text mode, it properly converts lines to CR/LF. This bash problem
779780 # is reportedly fixed, but why not run on old versions too?
780 sed '$q' "$ltmain" >> "$cfgfile" \
781 $SED '$q' "$ltmain" >> "$cfgfile" \
781782 || (rm -f "$cfgfile"; exit 1)
782783
783784 mv -f "$cfgfile" "$ofile" ||
10411042 _LT_EOF
10421043 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
10431044 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1044 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1045 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1045 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1046 $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
10461047 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
10471048 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
10481049 cat > conftest.c << _LT_EOF
10661067 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10671068 darwin1.*)
10681069 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1069 darwin*) # darwin 5.x on
1070 # if running on 10.5 or later, the deployment target defaults
1071 # to the OS version, if on x86, and 10.4, the deployment
1072 # target defaults to 10.4. Don't you love it?
1073 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1074 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1075 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1076 10.[[012]][[,.]]*)
1077 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1078 10.*)
1079 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1070 darwin*)
1071 case $MACOSX_DEPLOYMENT_TARGET,$host in
1072 10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
1073 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1074 *)
1075 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10801076 esac
10811077 ;;
10821078 esac
11251121 output_verbose_link_cmd=func_echo_all
11261122 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11271123 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1128 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
1129 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1124 _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
1125 _LT_TAGVAR(module_expsym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11301126 m4_if([$1], [CXX],
11311127 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
11321128 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
1133 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
1129 _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
11341130 fi
11351131 ],[])
11361132 else
12441240 # _LT_WITH_SYSROOT
12451241 # ----------------
12461242 AC_DEFUN([_LT_WITH_SYSROOT],
1247 [AC_MSG_CHECKING([for sysroot])
1243 [m4_require([_LT_DECL_SED])dnl
1244 AC_MSG_CHECKING([for sysroot])
12481245 AC_ARG_WITH([sysroot],
12491246 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
12501247 [Search for dependent libraries within DIR (or the compiler's sysroot
12611258 fi
12621259 ;; #(
12631260 /*)
1264 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1261 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
12651262 ;; #(
12661263 no|'')
12671264 ;; #(
12911288 # options accordingly.
12921289 echo 'int i;' > conftest.$ac_ext
12931290 if AC_TRY_EVAL(ac_compile); then
1294 case `/usr/bin/file conftest.$ac_objext` in
1291 case `$FILECMD conftest.$ac_objext` in
12951292 *ELF-32*)
12961293 HPUX_IA64_MODE=32
12971294 ;;
13081305 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
13091306 if AC_TRY_EVAL(ac_compile); then
13101307 if test yes = "$lt_cv_prog_gnu_ld"; then
1311 case `/usr/bin/file conftest.$ac_objext` in
1308 case `$FILECMD conftest.$ac_objext` in
13121309 *32-bit*)
13131310 LD="${LD-ld} -melf32bsmip"
13141311 ;;
13201317 ;;
13211318 esac
13221319 else
1323 case `/usr/bin/file conftest.$ac_objext` in
1320 case `$FILECMD conftest.$ac_objext` in
13241321 *32-bit*)
13251322 LD="${LD-ld} -32"
13261323 ;;
13421339 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
13431340 if AC_TRY_EVAL(ac_compile); then
13441341 emul=elf
1345 case `/usr/bin/file conftest.$ac_objext` in
1342 case `$FILECMD conftest.$ac_objext` in
13461343 *32-bit*)
13471344 emul="${emul}32"
13481345 ;;
13501347 emul="${emul}64"
13511348 ;;
13521349 esac
1353 case `/usr/bin/file conftest.$ac_objext` in
1350 case `$FILECMD conftest.$ac_objext` in
13541351 *MSB*)
13551352 emul="${emul}btsmip"
13561353 ;;
13581355 emul="${emul}ltsmip"
13591356 ;;
13601357 esac
1361 case `/usr/bin/file conftest.$ac_objext` in
1358 case `$FILECMD conftest.$ac_objext` in
13621359 *N32*)
13631360 emul="${emul}n32"
13641361 ;;
13781375 # not appear in the list.
13791376 echo 'int i;' > conftest.$ac_ext
13801377 if AC_TRY_EVAL(ac_compile); then
1381 case `/usr/bin/file conftest.o` in
1378 case `$FILECMD conftest.o` in
13821379 *32-bit*)
13831380 case $host in
13841381 x86_64-*kfreebsd*-gnu)
13851382 LD="${LD-ld} -m elf_i386_fbsd"
13861383 ;;
13871384 x86_64-*linux*)
1388 case `/usr/bin/file conftest.o` in
1385 case `$FILECMD conftest.o` in
13891386 *x86-64*)
13901387 LD="${LD-ld} -m elf32_x86_64"
13911388 ;;
14531450 # options accordingly.
14541451 echo 'int i;' > conftest.$ac_ext
14551452 if AC_TRY_EVAL(ac_compile); then
1456 case `/usr/bin/file conftest.o` in
1453 case `$FILECMD conftest.o` in
14571454 *64-bit*)
14581455 case $lt_cv_prog_gnu_ld in
14591456 yes*)
14921489 m4_defun([_LT_PROG_AR],
14931490 [AC_CHECK_TOOLS(AR, [ar], false)
14941491 : ${AR=ar}
1495 : ${AR_FLAGS=cru}
14961492 _LT_DECL([], [AR], [1], [The archiver])
1497 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1493
1494 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
1495 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
1496 # higher priority because thats what people were doing historically (setting
1497 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
1498 # variable obsoleted/removed.
1499
1500 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
1501 lt_ar_flags=$AR_FLAGS
1502 _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)])
1503
1504 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
1505 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
1506 _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
1507 [Flags to create an archive])
14981508
14991509 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
15001510 [lt_cv_ar_at_file=no
17131723 lt_cv_sys_max_cmd_len=8192;
17141724 ;;
17151725
1716 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
1726 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
17171727 # This has been around since 386BSD, at least. Likely further.
17181728 if test -x /sbin/sysctl; then
17191729 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
17561766 sysv5* | sco5v6* | sysv4.2uw2*)
17571767 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
17581768 if test -n "$kargmax"; then
1759 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1769 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'`
17601770 else
17611771 lt_cv_sys_max_cmd_len=32768
17621772 fi
22062216 striplib=
22072217 old_striplib=
22082218 AC_MSG_CHECKING([whether stripping libraries is possible])
2209 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2210 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2211 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2212 AC_MSG_RESULT([yes])
2219 if test -z "$STRIP"; then
2220 AC_MSG_RESULT([no])
22132221 else
2214 # FIXME - insert some real tests, host_os isn't really good enough
2215 case $host_os in
2216 darwin*)
2217 if test -n "$STRIP"; then
2222 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2223 old_striplib="$STRIP --strip-debug"
2224 striplib="$STRIP --strip-unneeded"
2225 AC_MSG_RESULT([yes])
2226 else
2227 case $host_os in
2228 darwin*)
2229 # FIXME - insert some real tests, host_os isn't really good enough
22182230 striplib="$STRIP -x"
22192231 old_striplib="$STRIP -S"
22202232 AC_MSG_RESULT([yes])
2221 else
2233 ;;
2234 freebsd*)
2235 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
2236 old_striplib="$STRIP --strip-debug"
2237 striplib="$STRIP --strip-unneeded"
2238 AC_MSG_RESULT([yes])
2239 else
2240 AC_MSG_RESULT([no])
2241 fi
2242 ;;
2243 *)
22222244 AC_MSG_RESULT([no])
2223 fi
2224 ;;
2225 *)
2226 AC_MSG_RESULT([no])
2227 ;;
2228 esac
2245 ;;
2246 esac
2247 fi
22292248 fi
22302249 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
22312250 _LT_DECL([], [striplib], [1])
25482567 case $host_os in
25492568 cygwin*)
25502569 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2551 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2570 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
25522571 m4_if([$1], [],[
25532572 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
25542573 ;;
25582577 ;;
25592578 pw32*)
25602579 # pw32 DLLs use 'pw' prefix rather than 'lib'
2561 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2580 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
25622581 ;;
25632582 esac
25642583 dynamic_linker='Win32 ld.exe'
25652584 ;;
25662585
2567 *,cl*)
2568 # Native MSVC
2586 *,cl* | *,icl*)
2587 # Native MSVC or ICC
25692588 libname_spec='$name'
25702589 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
25712590 library_names_spec='$libname.dll.lib'
25842603 done
25852604 IFS=$lt_save_ifs
25862605 # Convert to MSYS style.
2587 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
25882607 ;;
25892608 cygwin*)
25902609 # Convert to unix form, then to dos form, then back to unix form
26212640 ;;
26222641
26232642 *)
2624 # Assume MSVC wrapper
2643 # Assume MSVC and ICC wrapper
26252644 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
26262645 dynamic_linker='Win32 ld.exe'
26272646 ;;
26542673 shlibpath_var=LD_LIBRARY_PATH
26552674 ;;
26562675
2657 freebsd* | dragonfly*)
2676 freebsd* | dragonfly* | midnightbsd*)
26582677 # DragonFly does not have aout. When/if they implement a new
26592678 # versioning mechanism, adjust this.
26602679 if test -x /usr/bin/objformat; then
28662885 # before this can be enabled.
28672886 hardcode_into_libs=yes
28682887
2869 # Add ABI-specific directories to the system library path.
2870 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2871
28722888 # Ideally, we could use ldconfig to report *all* directores which are
28732889 # searched for libraries, however this is still not possible. Aside from not
28742890 # being certain /sbin/ldconfig is available, command
28772893 # appending ld.so.conf contents (and includes) to the search path.
28782894 if test -f /etc/ld.so.conf; then
28792895 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2880 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2896 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
28812897 fi
28822898
28832899 # We used to test for /lib/ld.so.1 and disable shared libraries on
28872903 # people can always --disable-shared, the test was removed, and we
28882904 # assume the GNU/Linux dynamic linker is in use.
28892905 dynamic_linker='GNU/Linux ld.so'
2906 ;;
2907
2908 netbsdelf*-gnu)
2909 version_type=linux
2910 need_lib_prefix=no
2911 need_version=no
2912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2913 soname_spec='${libname}${release}${shared_ext}$major'
2914 shlibpath_var=LD_LIBRARY_PATH
2915 shlibpath_overrides_runpath=no
2916 hardcode_into_libs=yes
2917 dynamic_linker='NetBSD ld.elf_so'
28902918 ;;
28912919
28922920 netbsd*)
34563484
34573485 bsdi[[45]]*)
34583486 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3459 lt_cv_file_magic_cmd='/usr/bin/file -L'
3487 lt_cv_file_magic_cmd='$FILECMD -L'
34603488 lt_cv_file_magic_test_file=/shlib/libc.so
34613489 ;;
34623490
34903518 lt_cv_deplibs_check_method=pass_all
34913519 ;;
34923520
3493 freebsd* | dragonfly*)
3521 freebsd* | dragonfly* | midnightbsd*)
34943522 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
34953523 case $host_cpu in
34963524 i*86 )
34973525 # Not sure whether the presence of OpenBSD here was a mistake.
34983526 # Let's accept both of them until this is cleared up.
34993527 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3500 lt_cv_file_magic_cmd=/usr/bin/file
3528 lt_cv_file_magic_cmd=$FILECMD
35013529 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
35023530 ;;
35033531 esac
35113539 ;;
35123540
35133541 hpux10.20* | hpux11*)
3514 lt_cv_file_magic_cmd=/usr/bin/file
3542 lt_cv_file_magic_cmd=$FILECMD
35153543 case $host_cpu in
35163544 ia64*)
35173545 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
35483576 lt_cv_deplibs_check_method=pass_all
35493577 ;;
35503578
3551 netbsd*)
3579 netbsd* | netbsdelf*-gnu)
35523580 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
35533581 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
35543582 else
35583586
35593587 newos6*)
35603588 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3561 lt_cv_file_magic_cmd=/usr/bin/file
3589 lt_cv_file_magic_cmd=$FILECMD
35623590 lt_cv_file_magic_test_file=/usr/lib/libnls.so
35633591 ;;
35643592
36853713 mingw*) lt_bad_file=conftest.nm/nofile ;;
36863714 *) lt_bad_file=/dev/null ;;
36873715 esac
3688 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3716 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
36893717 *$lt_bad_file* | *'Invalid file or object type'*)
36903718 lt_cv_path_NM="$tmp_nm -B"
36913719 break 2
36923720 ;;
36933721 *)
3694 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3722 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
36953723 */dev/null*)
36963724 lt_cv_path_NM="$tmp_nm -p"
36973725 break 2
37173745 # Let the user override the test.
37183746 else
37193747 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3720 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3748 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
37213749 *COFF*)
37223750 DUMPBIN="$DUMPBIN -symbols -headers"
37233751 ;;
39573985
39583986 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
39593987 # Gets list of data symbols to import.
3960 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3988 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
39613989 # Adjust the below global symbol transforms to fixup imported variables.
39623990 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
39633991 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
39754003 # Transform an extracted symbol line into a proper C declaration.
39764004 # Some systems (esp. on ia64) link data and code symbols differently,
39774005 # so use this general approach.
3978 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
4006 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
39794007 $lt_cdecl_hook\
39804008 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
39814009 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
39824010
39834011 # Transform an extracted symbol line into symbol name and symbol address
3984 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
4012 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
39854013 $lt_c_name_hook\
39864014 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
39874015 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
39884016
39894017 # Transform an extracted symbol line into symbol name with lib prefix and
39904018 # symbol address.
3991 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4019 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
39924020 $lt_c_name_lib_hook\
39934021 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
39944022 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
40124040 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
40134041 # Fake it for dumpbin and say T for any non-static function,
40144042 # D for any global variable and I for any imported variable.
4015 # Also find C++ and __fastcall symbols from MSVC++,
4043 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
40164044 # which start with @ or ?.
40174045 lt_cv_sys_global_symbol_pipe="$AWK ['"\
40184046 " {last_section=section; section=\$ 3};"\
40304058 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
40314059 " ' prfx=^$ac_symprfx]"
40324060 else
4033 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4061 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
40344062 fi
4035 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4063 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
40364064
40374065 # Check to see that the pipe works correctly.
40384066 pipe_works=no
40544082 if AC_TRY_EVAL(ac_compile); then
40554083 # Now try to grab the symbols.
40564084 nlist=conftest.nm
4057 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4085 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD
4086 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then
40584087 # Try sorting and uniquifying the output.
40594088 if sort "$nlist" | uniq > "$nlist"T; then
40604089 mv -f "$nlist"T "$nlist"
43194348 ;;
43204349 esac
43214350 ;;
4322 freebsd* | dragonfly*)
4351 freebsd* | dragonfly* | midnightbsd*)
43234352 # FreeBSD uses GNU C++
43244353 ;;
43254354 hpux9* | hpux10* | hpux11*)
44024431 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
44034432 ;;
44044433 *)
4405 case `$CC -V 2>&1 | sed 5q` in
4434 case `$CC -V 2>&1 | $SED 5q` in
44064435 *Sun\ C*)
44074436 # Sun C++ 5.9
44084437 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
44264455 ;;
44274456 esac
44284457 ;;
4429 netbsd*)
4458 netbsd* | netbsdelf*-gnu)
44304459 ;;
44314460 *qnx* | *nto*)
44324461 # QNX uses GNU C++, but need to define -shared option too, otherwise
46944723 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
46954724 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
46964725 ;;
4726 # flang / f18. f95 an alias for gfortran or flang on Debian
4727 flang* | f18* | f95*)
4728 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4729 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4730 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4731 ;;
46974732 # icc used to be incompatible with GCC.
46984733 # ICC 10 doesn't accept -KPIC any more.
46994734 icc* | ifort*)
47384773 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
47394774 ;;
47404775 *)
4741 case `$CC -V 2>&1 | sed 5q` in
4776 case `$CC -V 2>&1 | $SED 5q` in
47424777 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
47434778 # Sun Fortran 8.3 passes all unrecognized flags to the linker
47444779 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
49214956 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
49224957 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
49234958 else
4924 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
4959 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
49254960 fi
49264961 ;;
49274962 pw32*)
49294964 ;;
49304965 cygwin* | mingw* | cegcc*)
49314966 case $cc_basename in
4932 cl*)
4967 cl* | icl*)
49334968 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
49344969 ;;
49354970 *)
49374972 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
49384973 ;;
49394974 esac
4975 ;;
4976 linux* | k*bsd*-gnu | gnu*)
4977 _LT_TAGVAR(link_all_deplibs, $1)=no
49404978 ;;
49414979 *)
49424980 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
49865024
49875025 case $host_os in
49885026 cygwin* | mingw* | pw32* | cegcc*)
4989 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5027 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
49905028 # When not using gcc, we currently assume that we are using
4991 # Microsoft Visual C++.
5029 # Microsoft Visual C++ or Intel C++ Compiler.
49925030 if test yes != "$GCC"; then
49935031 with_gnu_ld=no
49945032 fi
49955033 ;;
49965034 interix*)
4997 # we just hope/assume this is gcc and not c89 (= MSVC++)
5035 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
49985036 with_gnu_ld=yes
49995037 ;;
50005038 openbsd* | bitrig*)
50015039 with_gnu_ld=no
5040 ;;
5041 linux* | k*bsd*-gnu | gnu*)
5042 _LT_TAGVAR(link_all_deplibs, $1)=no
50025043 ;;
50035044 esac
50045045
50465087 _LT_TAGVAR(whole_archive_flag_spec, $1)=
50475088 fi
50485089 supports_anon_versioning=no
5049 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
5090 case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
50505091 *GNU\ gold*) supports_anon_versioning=yes ;;
50515092 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
50525093 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
51585199 emximp -o $lib $output_objdir/$libname.def'
51595200 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
51605201 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5202 _LT_TAGVAR(file_list_spec, $1)='@'
51615203 ;;
51625204
51635205 interix[[3-9]]*)
51725214 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
51735215 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
51745216 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5175 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5217 _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
51765218 ;;
51775219
51785220 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
52155257 _LT_TAGVAR(compiler_needs_object, $1)=yes
52165258 ;;
52175259 esac
5218 case `$CC -V 2>&1 | sed 5q` in
5260 case `$CC -V 2>&1 | $SED 5q` in
52195261 *Sun\ C*) # Sun C 5.9
52205262 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
52215263 _LT_TAGVAR(compiler_needs_object, $1)=yes
52275269
52285270 if test yes = "$supports_anon_versioning"; then
52295271 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5230 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5272 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
52315273 echo "local: *; };" >> $output_objdir/$libname.ver~
52325274 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
52335275 fi
52345276
52355277 case $cc_basename in
52365278 tcc*)
5279 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
52375280 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
52385281 ;;
52395282 xlf* | bgf* | bgxlf* | mpixlf*)
52435286 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
52445287 if test yes = "$supports_anon_versioning"; then
52455288 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5289 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
52475290 echo "local: *; };" >> $output_objdir/$libname.ver~
52485291 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
52495292 fi
52545297 fi
52555298 ;;
52565299
5257 netbsd*)
5300 netbsd* | netbsdelf*-gnu)
52585301 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
52595302 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
52605303 wlarc=
53755418 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
53765419 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
53775420 else
5378 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5421 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
53795422 fi
53805423 aix_use_runtimelinking=no
53815424
55585601
55595602 cygwin* | mingw* | pw32* | cegcc*)
55605603 # When not using gcc, we currently assume that we are using
5561 # Microsoft Visual C++.
5604 # Microsoft Visual C++ or Intel C++ Compiler.
55625605 # hardcode_libdir_flag_spec is actually meaningless, as there is
55635606 # no search path for DLLs.
55645607 case $cc_basename in
5565 cl*)
5566 # Native MSVC
5608 cl* | icl*)
5609 # Native MSVC or ICC
55675610 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
55685611 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
55695612 _LT_TAGVAR(always_export_symbols, $1)=yes
56045647 fi'
56055648 ;;
56065649 *)
5607 # Assume MSVC wrapper
5650 # Assume MSVC and ICC wrapper
56085651 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
56095652 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
56105653 # Tell ltmain to make .lib files, not .a files.
56525695 ;;
56535696
56545697 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5655 freebsd* | dragonfly*)
5698 freebsd* | dragonfly* | midnightbsd*)
56565699 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
56575700 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
56585701 _LT_TAGVAR(hardcode_direct, $1)=yes
57755818 if test yes = "$lt_cv_irix_exported_symbol"; then
57765819 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
57775820 fi
5821 _LT_TAGVAR(link_all_deplibs, $1)=no
57785822 else
57795823 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
57805824 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
57925836 # Fabrice Bellard et al's Tiny C Compiler
57935837 _LT_TAGVAR(ld_shlibs, $1)=yes
57945838 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5839 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
57955840 ;;
57965841 esac
57975842 ;;
57985843
5799 netbsd*)
5844 netbsd* | netbsdelf*-gnu)
58005845 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
58015846 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
58025847 else
58635908 emximp -o $lib $output_objdir/$libname.def'
58645909 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
58655910 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5911 _LT_TAGVAR(file_list_spec, $1)='@'
58665912 ;;
58675913
58685914 osf3*)
64226468 # Commands to make compiler produce verbose output that lists
64236469 # what "hidden" libraries, object files and flags are used when
64246470 # linking a shared library.
6425 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6471 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
64266472
64276473 else
64286474 GXX=no
66336679
66346680 cygwin* | mingw* | pw32* | cegcc*)
66356681 case $GXX,$cc_basename in
6636 ,cl* | no,cl*)
6637 # Native MSVC
6682 ,cl* | no,cl* | ,icl* | no,icl*)
6683 # Native MSVC or ICC
66386684 # hardcode_libdir_flag_spec is actually meaningless, as there is
66396685 # no search path for DLLs.
66406686 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
67326778 emximp -o $lib $output_objdir/$libname.def'
67336779 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
67346780 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6781 _LT_TAGVAR(file_list_spec, $1)='@'
67356782 ;;
67366783
67376784 dgux*)
67626809 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
67636810 ;;
67646811
6765 freebsd* | dragonfly*)
6812 freebsd* | dragonfly* | midnightbsd*)
67666813 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
67676814 # conventions
67686815 _LT_TAGVAR(ld_shlibs, $1)=yes
67976844 # explicitly linking system object files so we need to strip them
67986845 # from the output so that they don't get included in the library
67996846 # dependencies.
6800 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6847 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
68016848 ;;
68026849 *)
68036850 if test yes = "$GXX"; then
68626909 # explicitly linking system object files so we need to strip them
68636910 # from the output so that they don't get included in the library
68646911 # dependencies.
6865 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6912 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
68666913 ;;
68676914 *)
68686915 if test yes = "$GXX"; then
68996946 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
69006947 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
69016948 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6902 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6949 _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
69036950 ;;
69046951 irix5* | irix6*)
69056952 case $cc_basename in
70397086 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
70407087 if test yes = "$supports_anon_versioning"; then
70417088 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7089 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
70437090 echo "local: *; };" >> $output_objdir/$libname.ver~
70447091 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
70457092 fi
70467093 ;;
70477094 *)
7048 case `$CC -V 2>&1 | sed 5q` in
7095 case `$CC -V 2>&1 | $SED 5q` in
70497096 *Sun\ C*)
70507097 # Sun C++ 5.9
70517098 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
72017248 # Commands to make compiler produce verbose output that lists
72027249 # what "hidden" libraries, object files and flags are used when
72037250 # linking a shared library.
7204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7251 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
72057252
72067253 else
72077254 # FIXME: insert proper C++ library support
72857332 # Commands to make compiler produce verbose output that lists
72867333 # what "hidden" libraries, object files and flags are used when
72877334 # linking a shared library.
7288 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7335 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
72897336 else
72907337 # g++ 2.7 appears to require '-G' NOT '-shared' on this
72917338 # platform.
72967343 # Commands to make compiler produce verbose output that lists
72977344 # what "hidden" libraries, object files and flags are used when
72987345 # linking a shared library.
7299 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7346 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
73007347 fi
73017348
73027349 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
81908237 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
81918238 AC_SUBST([DLLTOOL])
81928239 ])
8240
8241 # _LT_DECL_FILECMD
8242 # ----------------
8243 # Check for a file(cmd) program that can be used to detect file type and magic
8244 m4_defun([_LT_DECL_FILECMD],
8245 [AC_CHECK_TOOL([FILECMD], [file], [:])
8246 _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types])
8247 ])# _LD_DECL_FILECMD
81938248
81948249 # _LT_DECL_SED
81958250 # ------------
00 # Helper functions for option handling. -*- Autoconf -*-
11 #
2 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
3 # Foundation, Inc.
2 # Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free
3 # Software Foundation, Inc.
44 # Written by Gary V. Vaughan, 2004
55 #
66 # This file is free software; the Free Software Foundation gives
00 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
2 # Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software
33 # Foundation, Inc.
44 # Written by Gary V. Vaughan, 2004
55 #
00 # ltversion.m4 -- version numbers -*- Autoconf -*-
11 #
2 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
2 # Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation,
3 # Inc.
34 # Written by Scott James Remnant, 2004
45 #
56 # This file is free software; the Free Software Foundation gives
89
910 # @configure_input@
1011
11 # serial 4179 ltversion.m4
12 # serial 4245 ltversion.m4
1213 # This file is part of GNU Libtool
1314
14 m4_define([LT_PACKAGE_VERSION], [2.4.6])
15 m4_define([LT_PACKAGE_REVISION], [2.4.6])
15 m4_define([LT_PACKAGE_VERSION], [2.4.7])
16 m4_define([LT_PACKAGE_REVISION], [2.4.7])
1617
1718 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.4.6'
19 macro_revision='2.4.6'
19 [macro_version='2.4.7'
20 macro_revision='2.4.7'
2021 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
2122 _LT_DECL(, macro_revision, 0)
2223 ])
00 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
3 # Foundation, Inc.
2 # Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free
3 # Software Foundation, Inc.
44 # Written by Scott James Remnant, 2004.
55 #
66 # This file is free software; the Free Software Foundation gives
+0
-215
missing less more
0 #! /bin/sh
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2013-10-28.13; # UTC
4
5 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 if test $# -eq 0; then
27 echo 1>&2 "Try '$0 --help' for more information"
28 exit 1
29 fi
30
31 case $1 in
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
43
44 -h|--h|--he|--hel|--help)
45 echo "\
46 $0 [OPTION]... PROGRAM [ARGUMENT]...
47
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
50
51 Options:
52 -h, --help display this help and exit
53 -v, --version output version information and exit
54
55 Supported PROGRAM values:
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
58
59 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
60 'g' are ignored when checking the name.
61
62 Send bug reports to <bug-automake@gnu.org>."
63 exit $?
64 ;;
65
66 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
67 echo "missing $scriptversion (GNU Automake)"
68 exit $?
69 ;;
70
71 -*)
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
74 exit 1
75 ;;
76
77 esac
78
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'autom4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
207
208 # Local variables:
209 # eval: (add-hook 'write-file-hooks 'time-stamp)
210 # time-stamp-start: "scriptversion="
211 # time-stamp-format: "%:y-%02m-%02d.%02H"
212 # time-stamp-time-zone: "UTC"
213 # time-stamp-end: "; # UTC"
214 # End: