Import upstream version 0.4.1+git20220201
Kali Janitor
1 year, 4 months ago
0 | *.o | |
1 | *.sw[op] | |
2 | Makefile | |
3 | Makefile.in | |
4 | configure | |
5 | autom4te.cache/ | |
6 | compile | |
7 | config.guess | |
8 | config.h | |
9 | config.h.in | |
10 | config.in | |
11 | config.log | |
12 | config.sub | |
13 | config.status | |
14 | src/.deps/ | |
15 | depcomp | |
16 | src/kal | |
17 | missing | |
18 | stamp-h1 | |
19 | install-sh | |
20 | INSTALL | |
21 | aclocal.m4 | |
22 | ltmain.sh |
0 | language: cpp | |
1 | compiler: | |
2 | - gcc | |
3 | - clang | |
4 | os: | |
5 | - osx | |
6 | - linux | |
7 | ||
8 | script: ./bootstrap && ./configure && make | |
9 | ||
10 | addons: | |
11 | apt: | |
12 | packages: | |
13 | - libfftw3-dev | |
14 | - librtlsdr-dev | |
15 | - libusb-1.0-0-dev | |
16 | ||
17 | before_install: | |
18 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi | |
19 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install fftw librtlsdr libusb ; fi |
0 | Installation Instructions | |
1 | ************************* | |
2 | ||
3 | Copyright (C) 1994-1996, 1999-2002, 2004-2017, 2020-2021 Free | |
4 | Software Foundation, Inc. | |
5 | ||
6 | Copying and distribution of this file, with or without modification, | |
7 | are permitted in any medium without royalty provided the copyright | |
8 | notice and this notice are preserved. This file is offered as-is, | |
9 | without warranty of any kind. | |
10 | ||
11 | Basic Installation | |
12 | ================== | |
13 | ||
14 | Briefly, the shell command './configure && make && make install' | |
15 | should configure, build, and install this package. The following | |
16 | more-detailed instructions are generic; see the 'README' file for | |
17 | instructions specific to this package. Some packages provide this | |
18 | 'INSTALL' file but do not implement all of the features documented | |
19 | below. The lack of an optional feature in a given package is not | |
20 | necessarily a bug. More recommendations for GNU packages can be found | |
21 | in *note Makefile Conventions: (standards)Makefile Conventions. | |
22 | ||
23 | The 'configure' shell script attempts to guess correct values for | |
24 | various system-dependent variables used during compilation. It uses | |
25 | those values to create a 'Makefile' in each directory of the package. | |
26 | It may also create one or more '.h' files containing system-dependent | |
27 | definitions. Finally, it creates a shell script 'config.status' that | |
28 | you can run in the future to recreate the current configuration, and a | |
29 | file 'config.log' containing compiler output (useful mainly for | |
30 | debugging 'configure'). | |
31 | ||
32 | It can also use an optional file (typically called 'config.cache' and | |
33 | enabled with '--cache-file=config.cache' or simply '-C') that saves the | |
34 | results of its tests to speed up reconfiguring. Caching is disabled by | |
35 | default to prevent problems with accidental use of stale cache files. | |
36 | ||
37 | If you need to do unusual things to compile the package, please try | |
38 | to figure out how 'configure' could check whether to do them, and mail | |
39 | diffs or instructions to the address given in the 'README' so they can | |
40 | be considered for the next release. If you are using the cache, and at | |
41 | some point 'config.cache' contains results you don't want to keep, you | |
42 | may remove or edit it. | |
43 | ||
44 | The file 'configure.ac' (or 'configure.in') is used to create | |
45 | 'configure' by a program called 'autoconf'. You need 'configure.ac' if | |
46 | you want to change it or regenerate 'configure' using a newer version of | |
47 | 'autoconf'. | |
48 | ||
49 | The simplest way to compile this package is: | |
50 | ||
51 | 1. 'cd' to the directory containing the package's source code and type | |
52 | './configure' to configure the package for your system. | |
53 | ||
54 | Running 'configure' might take a while. While running, it prints | |
55 | some messages telling which features it is checking for. | |
56 | ||
57 | 2. Type 'make' to compile the package. | |
58 | ||
59 | 3. Optionally, type 'make check' to run any self-tests that come with | |
60 | the package, generally using the just-built uninstalled binaries. | |
61 | ||
62 | 4. Type 'make install' to install the programs and any data files and | |
63 | documentation. When installing into a prefix owned by root, it is | |
64 | recommended that the package be configured and built as a regular | |
65 | user, and only the 'make install' phase executed with root | |
66 | privileges. | |
67 | ||
68 | 5. Optionally, type 'make installcheck' to repeat any self-tests, but | |
69 | this time using the binaries in their final installed location. | |
70 | This target does not install anything. Running this target as a | |
71 | regular user, particularly if the prior 'make install' required | |
72 | root privileges, verifies that the installation completed | |
73 | correctly. | |
74 | ||
75 | 6. You can remove the program binaries and object files from the | |
76 | source code directory by typing 'make clean'. To also remove the | |
77 | files that 'configure' created (so you can compile the package for | |
78 | a different kind of computer), type 'make distclean'. There is | |
79 | also a 'make maintainer-clean' target, but that is intended mainly | |
80 | for the package's developers. If you use it, you may have to get | |
81 | all sorts of other programs in order to regenerate files that came | |
82 | with the distribution. | |
83 | ||
84 | 7. Often, you can also type 'make uninstall' to remove the installed | |
85 | files again. In practice, not all packages have tested that | |
86 | uninstallation works correctly, even though it is required by the | |
87 | GNU Coding Standards. | |
88 | ||
89 | 8. Some packages, particularly those that use Automake, provide 'make | |
90 | distcheck', which can by used by developers to test that all other | |
91 | targets like 'make install' and 'make uninstall' work correctly. | |
92 | This target is generally not run by end users. | |
93 | ||
94 | Compilers and Options | |
95 | ===================== | |
96 | ||
97 | Some systems require unusual options for compilation or linking that | |
98 | the 'configure' script does not know about. Run './configure --help' | |
99 | for details on some of the pertinent environment variables. | |
100 | ||
101 | You can give 'configure' initial values for configuration parameters | |
102 | by setting variables in the command line or in the environment. Here is | |
103 | an example: | |
104 | ||
105 | ./configure CC=c99 CFLAGS=-g LIBS=-lposix | |
106 | ||
107 | *Note Defining Variables::, for more details. | |
108 | ||
109 | Compiling For Multiple Architectures | |
110 | ==================================== | |
111 | ||
112 | You can compile the package for more than one kind of computer at the | |
113 | same time, by placing the object files for each architecture in their | |
114 | own directory. To do this, you can use GNU 'make'. 'cd' to the | |
115 | directory where you want the object files and executables to go and run | |
116 | the 'configure' script. 'configure' automatically checks for the source | |
117 | code in the directory that 'configure' is in and in '..'. This is known | |
118 | as a "VPATH" build. | |
119 | ||
120 | With a non-GNU 'make', it is safer to compile the package for one | |
121 | architecture at a time in the source code directory. After you have | |
122 | installed the package for one architecture, use 'make distclean' before | |
123 | reconfiguring for another architecture. | |
124 | ||
125 | On MacOS X 10.5 and later systems, you can create libraries and | |
126 | executables that work on multiple system types--known as "fat" or | |
127 | "universal" binaries--by specifying multiple '-arch' options to the | |
128 | compiler but only a single '-arch' option to the preprocessor. Like | |
129 | this: | |
130 | ||
131 | ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | |
132 | CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | |
133 | CPP="gcc -E" CXXCPP="g++ -E" | |
134 | ||
135 | This is not guaranteed to produce working output in all cases, you | |
136 | may have to build one architecture at a time and combine the results | |
137 | using the 'lipo' tool if you have problems. | |
138 | ||
139 | Installation Names | |
140 | ================== | |
141 | ||
142 | By default, 'make install' installs the package's commands under | |
143 | '/usr/local/bin', include files under '/usr/local/include', etc. You | |
144 | can specify an installation prefix other than '/usr/local' by giving | |
145 | 'configure' the option '--prefix=PREFIX', where PREFIX must be an | |
146 | absolute file name. | |
147 | ||
148 | You can specify separate installation prefixes for | |
149 | architecture-specific files and architecture-independent files. If you | |
150 | pass the option '--exec-prefix=PREFIX' to 'configure', the package uses | |
151 | PREFIX as the prefix for installing programs and libraries. | |
152 | Documentation and other data files still use the regular prefix. | |
153 | ||
154 | In addition, if you use an unusual directory layout you can give | |
155 | options like '--bindir=DIR' to specify different values for particular | |
156 | kinds of files. Run 'configure --help' for a list of the directories | |
157 | you can set and what kinds of files go in them. In general, the default | |
158 | for these options is expressed in terms of '${prefix}', so that | |
159 | specifying just '--prefix' will affect all of the other directory | |
160 | specifications that were not explicitly provided. | |
161 | ||
162 | The most portable way to affect installation locations is to pass the | |
163 | correct locations to 'configure'; however, many packages provide one or | |
164 | both of the following shortcuts of passing variable assignments to the | |
165 | 'make install' command line to change installation locations without | |
166 | having to reconfigure or recompile. | |
167 | ||
168 | The first method involves providing an override variable for each | |
169 | affected directory. For example, 'make install | |
170 | prefix=/alternate/directory' will choose an alternate location for all | |
171 | directory configuration variables that were expressed in terms of | |
172 | '${prefix}'. Any directories that were specified during 'configure', | |
173 | but not in terms of '${prefix}', must each be overridden at install time | |
174 | for the entire installation to be relocated. The approach of makefile | |
175 | variable overrides for each directory variable is required by the GNU | |
176 | Coding Standards, and ideally causes no recompilation. However, some | |
177 | platforms have known limitations with the semantics of shared libraries | |
178 | that end up requiring recompilation when using this method, particularly | |
179 | noticeable in packages that use GNU Libtool. | |
180 | ||
181 | The second method involves providing the 'DESTDIR' variable. For | |
182 | example, 'make install DESTDIR=/alternate/directory' will prepend | |
183 | '/alternate/directory' before all installation names. The approach of | |
184 | 'DESTDIR' overrides is not required by the GNU Coding Standards, and | |
185 | does not work on platforms that have drive letters. On the other hand, | |
186 | it does better at avoiding recompilation issues, and works well even | |
187 | when some directory options were not specified in terms of '${prefix}' | |
188 | at 'configure' time. | |
189 | ||
190 | Optional Features | |
191 | ================= | |
192 | ||
193 | If the package supports it, you can cause programs to be installed | |
194 | with an extra prefix or suffix on their names by giving 'configure' the | |
195 | option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'. | |
196 | ||
197 | Some packages pay attention to '--enable-FEATURE' options to | |
198 | 'configure', where FEATURE indicates an optional part of the package. | |
199 | They may also pay attention to '--with-PACKAGE' options, where PACKAGE | |
200 | is something like 'gnu-as' or 'x' (for the X Window System). The | |
201 | 'README' should mention any '--enable-' and '--with-' options that the | |
202 | package recognizes. | |
203 | ||
204 | For packages that use the X Window System, 'configure' can usually | |
205 | find the X include and library files automatically, but if it doesn't, | |
206 | you can use the 'configure' options '--x-includes=DIR' and | |
207 | '--x-libraries=DIR' to specify their locations. | |
208 | ||
209 | Some packages offer the ability to configure how verbose the | |
210 | execution of 'make' will be. For these packages, running './configure | |
211 | --enable-silent-rules' sets the default to minimal output, which can be | |
212 | overridden with 'make V=1'; while running './configure | |
213 | --disable-silent-rules' sets the default to verbose, which can be | |
214 | overridden with 'make V=0'. | |
215 | ||
216 | Particular systems | |
217 | ================== | |
218 | ||
219 | On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC | |
220 | is not installed, it is recommended to use the following options in | |
221 | order to use an ANSI C compiler: | |
222 | ||
223 | ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" | |
224 | ||
225 | and if that doesn't work, install pre-built binaries of GCC for HP-UX. | |
226 | ||
227 | HP-UX 'make' updates targets which have the same timestamps as their | |
228 | prerequisites, which makes it generally unusable when shipped generated | |
229 | files such as 'configure' are involved. Use GNU 'make' instead. | |
230 | ||
231 | On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot | |
232 | parse its '<wchar.h>' header file. The option '-nodtk' can be used as a | |
233 | workaround. If GNU CC is not installed, it is therefore recommended to | |
234 | try | |
235 | ||
236 | ./configure CC="cc" | |
237 | ||
238 | and if that doesn't work, try | |
239 | ||
240 | ./configure CC="cc -nodtk" | |
241 | ||
242 | On Solaris, don't put '/usr/ucb' early in your 'PATH'. This | |
243 | directory contains several dysfunctional programs; working variants of | |
244 | these programs are available in '/usr/bin'. So, if you need '/usr/ucb' | |
245 | in your 'PATH', put it _after_ '/usr/bin'. | |
246 | ||
247 | On Haiku, software installed for all users goes in '/boot/common', | |
248 | not '/usr/local'. It is recommended to use the following options: | |
249 | ||
250 | ./configure --prefix=/boot/common | |
251 | ||
252 | Specifying the System Type | |
253 | ========================== | |
254 | ||
255 | There may be some features 'configure' cannot figure out | |
256 | automatically, but needs to determine by the type of machine the package | |
257 | will run on. Usually, assuming the package is built to be run on the | |
258 | _same_ architectures, 'configure' can figure that out, but if it prints | |
259 | a message saying it cannot guess the machine type, give it the | |
260 | '--build=TYPE' option. TYPE can either be a short name for the system | |
261 | type, such as 'sun4', or a canonical name which has the form: | |
262 | ||
263 | CPU-COMPANY-SYSTEM | |
264 | ||
265 | where SYSTEM can have one of these forms: | |
266 | ||
267 | OS | |
268 | KERNEL-OS | |
269 | ||
270 | See the file 'config.sub' for the possible values of each field. If | |
271 | 'config.sub' isn't included in this package, then this package doesn't | |
272 | need to know the machine type. | |
273 | ||
274 | If you are _building_ compiler tools for cross-compiling, you should | |
275 | use the option '--target=TYPE' to select the type of system they will | |
276 | produce code for. | |
277 | ||
278 | If you want to _use_ a cross compiler, that generates code for a | |
279 | platform different from the build platform, you should specify the | |
280 | "host" platform (i.e., that on which the generated programs will | |
281 | eventually be run) with '--host=TYPE'. | |
282 | ||
283 | Sharing Defaults | |
284 | ================ | |
285 | ||
286 | If you want to set default values for 'configure' scripts to share, | |
287 | you can create a site shell script called 'config.site' that gives | |
288 | default values for variables like 'CC', 'cache_file', and 'prefix'. | |
289 | 'configure' looks for 'PREFIX/share/config.site' if it exists, then | |
290 | 'PREFIX/etc/config.site' if it exists. Or, you can set the | |
291 | 'CONFIG_SITE' environment variable to the location of the site script. | |
292 | A warning: not all 'configure' scripts look for a site script. | |
293 | ||
294 | Defining Variables | |
295 | ================== | |
296 | ||
297 | Variables not defined in a site shell script can be set in the | |
298 | environment passed to 'configure'. However, some packages may run | |
299 | configure again during the build, and the customized values of these | |
300 | variables may be lost. In order to avoid this problem, you should set | |
301 | them in the 'configure' command line, using 'VAR=value'. For example: | |
302 | ||
303 | ./configure CC=/usr/local2/bin/gcc | |
304 | ||
305 | causes the specified 'gcc' to be used as the C compiler (unless it is | |
306 | overridden in the site shell script). | |
307 | ||
308 | Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an | |
309 | Autoconf limitation. Until the limitation is lifted, you can use this | |
310 | workaround: | |
311 | ||
312 | CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash | |
313 | ||
314 | 'configure' Invocation | |
315 | ====================== | |
316 | ||
317 | 'configure' recognizes the following options to control how it | |
318 | operates. | |
319 | ||
320 | '--help' | |
321 | '-h' | |
322 | Print a summary of all of the options to 'configure', and exit. | |
323 | ||
324 | '--help=short' | |
325 | '--help=recursive' | |
326 | Print a summary of the options unique to this package's | |
327 | 'configure', and exit. The 'short' variant lists options used only | |
328 | in the top level, while the 'recursive' variant lists options also | |
329 | present in any nested packages. | |
330 | ||
331 | '--version' | |
332 | '-V' | |
333 | Print the version of Autoconf used to generate the 'configure' | |
334 | script, and exit. | |
335 | ||
336 | '--cache-file=FILE' | |
337 | Enable the cache: use and save the results of the tests in FILE, | |
338 | traditionally 'config.cache'. FILE defaults to '/dev/null' to | |
339 | disable caching. | |
340 | ||
341 | '--config-cache' | |
342 | '-C' | |
343 | Alias for '--cache-file=config.cache'. | |
344 | ||
345 | '--quiet' | |
346 | '--silent' | |
347 | '-q' | |
348 | Do not print messages saying which checks are being made. To | |
349 | suppress all normal output, redirect it to '/dev/null' (any error | |
350 | messages will still be shown). | |
351 | ||
352 | '--srcdir=DIR' | |
353 | Look for the package's source code in directory DIR. Usually | |
354 | 'configure' can determine that directory automatically. | |
355 | ||
356 | '--prefix=DIR' | |
357 | Use DIR as the installation prefix. *note Installation Names:: for | |
358 | more details, including other options available for fine-tuning the | |
359 | installation locations. | |
360 | ||
361 | '--no-create' | |
362 | '-n' | |
363 | Run the configure checks, but stop before creating any output | |
364 | files. | |
365 | ||
366 | 'configure' also accepts some other, not widely useful, options. Run | |
367 | 'configure --help' for more details. |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | # @configure_input@ | |
2 | ||
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | ||
5 | # This Makefile.in is free software; the Free Software Foundation | |
6 | # gives unlimited permission to copy and/or distribute it, | |
7 | # with or without modifications, as long as this notice is preserved. | |
8 | ||
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
12 | # PARTICULAR PURPOSE. | |
13 | ||
14 | @SET_MAKE@ | |
15 | VPATH = @srcdir@ | |
16 | am__is_gnu_make = { \ | |
17 | if test -z '$(MAKELEVEL)'; then \ | |
18 | false; \ | |
19 | elif test -n '$(MAKE_HOST)'; then \ | |
20 | true; \ | |
21 | elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ | |
22 | true; \ | |
23 | else \ | |
24 | false; \ | |
25 | fi; \ | |
26 | } | |
27 | am__make_running_with_option = \ | |
28 | case $${target_option-} in \ | |
29 | ?) ;; \ | |
30 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
31 | "target option '$${target_option-}' specified" >&2; \ | |
32 | exit 1;; \ | |
33 | esac; \ | |
34 | has_opt=no; \ | |
35 | sane_makeflags=$$MAKEFLAGS; \ | |
36 | if $(am__is_gnu_make); then \ | |
37 | sane_makeflags=$$MFLAGS; \ | |
38 | else \ | |
39 | case $$MAKEFLAGS in \ | |
40 | *\\[\ \ ]*) \ | |
41 | bs=\\; \ | |
42 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
43 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
44 | esac; \ | |
45 | fi; \ | |
46 | skip_next=no; \ | |
47 | strip_trailopt () \ | |
48 | { \ | |
49 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
50 | }; \ | |
51 | for flg in $$sane_makeflags; do \ | |
52 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
53 | case $$flg in \ | |
54 | *=*|--*) continue;; \ | |
55 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
56 | -*I?*) strip_trailopt 'I';; \ | |
57 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
58 | -*O?*) strip_trailopt 'O';; \ | |
59 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
60 | -*l?*) strip_trailopt 'l';; \ | |
61 | -[dEDm]) skip_next=yes;; \ | |
62 | -[JT]) skip_next=yes;; \ | |
63 | esac; \ | |
64 | case $$flg in \ | |
65 | *$$target_option*) has_opt=yes; break;; \ | |
66 | esac; \ | |
67 | done; \ | |
68 | test $$has_opt = yes | |
69 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
70 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
71 | pkgdatadir = $(datadir)/@PACKAGE@ | |
72 | pkgincludedir = $(includedir)/@PACKAGE@ | |
73 | pkglibdir = $(libdir)/@PACKAGE@ | |
74 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | |
75 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | |
76 | install_sh_DATA = $(install_sh) -c -m 644 | |
77 | install_sh_PROGRAM = $(install_sh) -c | |
78 | install_sh_SCRIPT = $(install_sh) -c | |
79 | INSTALL_HEADER = $(INSTALL_DATA) | |
80 | transform = $(program_transform_name) | |
81 | NORMAL_INSTALL = : | |
82 | PRE_INSTALL = : | |
83 | POST_INSTALL = : | |
84 | NORMAL_UNINSTALL = : | |
85 | PRE_UNINSTALL = : | |
86 | POST_UNINSTALL = : | |
87 | build_triplet = @build@ | |
88 | host_triplet = @host@ | |
89 | subdir = . | |
90 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
91 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | |
92 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
93 | $(ACLOCAL_M4) | |
94 | DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ | |
95 | $(am__configure_deps) $(am__DIST_COMMON) | |
96 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | |
97 | configure.lineno config.status.lineno | |
98 | mkinstalldirs = $(install_sh) -d | |
99 | CONFIG_HEADER = config.h | |
100 | CONFIG_CLEAN_FILES = | |
101 | CONFIG_CLEAN_VPATH_FILES = | |
102 | AM_V_P = $(am__v_P_@AM_V@) | |
103 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
104 | am__v_P_0 = false | |
105 | am__v_P_1 = : | |
106 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
107 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
108 | am__v_GEN_0 = @echo " GEN " $@; | |
109 | am__v_GEN_1 = | |
110 | AM_V_at = $(am__v_at_@AM_V@) | |
111 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
112 | am__v_at_0 = @ | |
113 | am__v_at_1 = | |
114 | SOURCES = | |
115 | DIST_SOURCES = | |
116 | RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ | |
117 | ctags-recursive dvi-recursive html-recursive info-recursive \ | |
118 | install-data-recursive install-dvi-recursive \ | |
119 | install-exec-recursive install-html-recursive \ | |
120 | install-info-recursive install-pdf-recursive \ | |
121 | install-ps-recursive install-recursive installcheck-recursive \ | |
122 | installdirs-recursive pdf-recursive ps-recursive \ | |
123 | tags-recursive uninstall-recursive | |
124 | am__can_run_installinfo = \ | |
125 | case $$AM_UPDATE_INFO_DIR in \ | |
126 | n|no|NO) false;; \ | |
127 | *) (install-info --version) >/dev/null 2>&1;; \ | |
128 | esac | |
129 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ | |
130 | distclean-recursive maintainer-clean-recursive | |
131 | am__recursive_targets = \ | |
132 | $(RECURSIVE_TARGETS) \ | |
133 | $(RECURSIVE_CLEAN_TARGETS) \ | |
134 | $(am__extra_recursive_targets) | |
135 | AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ | |
136 | cscope distdir distdir-am dist dist-all distcheck | |
137 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \ | |
138 | config.h.in | |
139 | # Read a list of newline-separated strings from the standard input, | |
140 | # and print each of them once, without duplicates. Input order is | |
141 | # *not* preserved. | |
142 | am__uniquify_input = $(AWK) '\ | |
143 | BEGIN { nonempty = 0; } \ | |
144 | { items[$$0] = 1; nonempty = 1; } \ | |
145 | END { if (nonempty) { for (i in items) print i; }; } \ | |
146 | ' | |
147 | # Make sure the list of sources is unique. This is necessary because, | |
148 | # e.g., the same source file might be shared among _SOURCES variables | |
149 | # for different programs/libraries. | |
150 | am__define_uniq_tagged_files = \ | |
151 | list='$(am__tagged_files)'; \ | |
152 | unique=`for i in $$list; do \ | |
153 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
154 | done | $(am__uniquify_input)` | |
155 | DIST_SUBDIRS = $(SUBDIRS) | |
156 | am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in AUTHORS \ | |
157 | COPYING ChangeLog INSTALL NEWS README README.md compile \ | |
158 | config.guess config.sub install-sh missing | |
159 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |
160 | distdir = $(PACKAGE)-$(VERSION) | |
161 | top_distdir = $(distdir) | |
162 | am__remove_distdir = \ | |
163 | if test -d "$(distdir)"; then \ | |
164 | find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ | |
165 | && rm -rf "$(distdir)" \ | |
166 | || { sleep 5 && rm -rf "$(distdir)"; }; \ | |
167 | else :; fi | |
168 | am__post_remove_distdir = $(am__remove_distdir) | |
169 | am__relativize = \ | |
170 | dir0=`pwd`; \ | |
171 | sed_first='s,^\([^/]*\)/.*$$,\1,'; \ | |
172 | sed_rest='s,^[^/]*/*,,'; \ | |
173 | sed_last='s,^.*/\([^/]*\)$$,\1,'; \ | |
174 | sed_butlast='s,/*[^/]*$$,,'; \ | |
175 | while test -n "$$dir1"; do \ | |
176 | first=`echo "$$dir1" | sed -e "$$sed_first"`; \ | |
177 | if test "$$first" != "."; then \ | |
178 | if test "$$first" = ".."; then \ | |
179 | dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ | |
180 | dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ | |
181 | else \ | |
182 | first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ | |
183 | if test "$$first2" = "$$first"; then \ | |
184 | dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ | |
185 | else \ | |
186 | dir2="../$$dir2"; \ | |
187 | fi; \ | |
188 | dir0="$$dir0"/"$$first"; \ | |
189 | fi; \ | |
190 | fi; \ | |
191 | dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ | |
192 | done; \ | |
193 | reldir="$$dir2" | |
194 | DIST_ARCHIVES = $(distdir).tar.gz | |
195 | GZIP_ENV = --best | |
196 | DIST_TARGETS = dist-gzip | |
197 | # Exists only to be overridden by the user if desired. | |
198 | AM_DISTCHECK_DVI_TARGET = dvi | |
199 | distuninstallcheck_listfiles = find . -type f -print | |
200 | am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | |
201 | | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' | |
202 | distcleancheck_listfiles = find . -type f -print | |
203 | ACLOCAL = @ACLOCAL@ | |
204 | AMTAR = @AMTAR@ | |
205 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | |
206 | AUTOCONF = @AUTOCONF@ | |
207 | AUTOHEADER = @AUTOHEADER@ | |
208 | AUTOMAKE = @AUTOMAKE@ | |
209 | AWK = @AWK@ | |
210 | CC = @CC@ | |
211 | CCDEPMODE = @CCDEPMODE@ | |
212 | CFLAGS = @CFLAGS@ | |
213 | CPPFLAGS = @CPPFLAGS@ | |
214 | CSCOPE = @CSCOPE@ | |
215 | CTAGS = @CTAGS@ | |
216 | CXX = @CXX@ | |
217 | CXXDEPMODE = @CXXDEPMODE@ | |
218 | CXXFLAGS = @CXXFLAGS@ | |
219 | CYGPATH_W = @CYGPATH_W@ | |
220 | DEFS = @DEFS@ | |
221 | DEPDIR = @DEPDIR@ | |
222 | ECHO_C = @ECHO_C@ | |
223 | ECHO_N = @ECHO_N@ | |
224 | ECHO_T = @ECHO_T@ | |
225 | ETAGS = @ETAGS@ | |
226 | EXEEXT = @EXEEXT@ | |
227 | FFTW3_CFLAGS = @FFTW3_CFLAGS@ | |
228 | FFTW3_LIBS = @FFTW3_LIBS@ | |
229 | INSTALL = @INSTALL@ | |
230 | INSTALL_DATA = @INSTALL_DATA@ | |
231 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
232 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
233 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
234 | LDFLAGS = @LDFLAGS@ | |
235 | LIBOBJS = @LIBOBJS@ | |
236 | LIBRTLSDR_CFLAGS = @LIBRTLSDR_CFLAGS@ | |
237 | LIBRTLSDR_LIBS = @LIBRTLSDR_LIBS@ | |
238 | LIBS = @LIBS@ | |
239 | LN_S = @LN_S@ | |
240 | LRT_FLAGS = @LRT_FLAGS@ | |
241 | LTLIBOBJS = @LTLIBOBJS@ | |
242 | MAKEINFO = @MAKEINFO@ | |
243 | MKDIR_P = @MKDIR_P@ | |
244 | OBJEXT = @OBJEXT@ | |
245 | PACKAGE = @PACKAGE@ | |
246 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
247 | PACKAGE_NAME = @PACKAGE_NAME@ | |
248 | PACKAGE_STRING = @PACKAGE_STRING@ | |
249 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
250 | PACKAGE_URL = @PACKAGE_URL@ | |
251 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
252 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
253 | PKG_CONFIG = @PKG_CONFIG@ | |
254 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
255 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
256 | POW_LIB = @POW_LIB@ | |
257 | RANLIB = @RANLIB@ | |
258 | SET_MAKE = @SET_MAKE@ | |
259 | SHELL = @SHELL@ | |
260 | STRIP = @STRIP@ | |
261 | VERSION = @VERSION@ | |
262 | abs_builddir = @abs_builddir@ | |
263 | abs_srcdir = @abs_srcdir@ | |
264 | abs_top_builddir = @abs_top_builddir@ | |
265 | abs_top_srcdir = @abs_top_srcdir@ | |
266 | ac_ct_CC = @ac_ct_CC@ | |
267 | ac_ct_CXX = @ac_ct_CXX@ | |
268 | am__include = @am__include@ | |
269 | am__leading_dot = @am__leading_dot@ | |
270 | am__quote = @am__quote@ | |
271 | am__tar = @am__tar@ | |
272 | am__untar = @am__untar@ | |
273 | bindir = @bindir@ | |
274 | build = @build@ | |
275 | build_alias = @build_alias@ | |
276 | build_cpu = @build_cpu@ | |
277 | build_os = @build_os@ | |
278 | build_vendor = @build_vendor@ | |
279 | builddir = @builddir@ | |
280 | datadir = @datadir@ | |
281 | datarootdir = @datarootdir@ | |
282 | docdir = @docdir@ | |
283 | dvidir = @dvidir@ | |
284 | exec_prefix = @exec_prefix@ | |
285 | host = @host@ | |
286 | host_alias = @host_alias@ | |
287 | host_cpu = @host_cpu@ | |
288 | host_os = @host_os@ | |
289 | host_vendor = @host_vendor@ | |
290 | htmldir = @htmldir@ | |
291 | includedir = @includedir@ | |
292 | infodir = @infodir@ | |
293 | install_sh = @install_sh@ | |
294 | libdir = @libdir@ | |
295 | libexecdir = @libexecdir@ | |
296 | localedir = @localedir@ | |
297 | localstatedir = @localstatedir@ | |
298 | mandir = @mandir@ | |
299 | mkdir_p = @mkdir_p@ | |
300 | oldincludedir = @oldincludedir@ | |
301 | pdfdir = @pdfdir@ | |
302 | prefix = @prefix@ | |
303 | program_transform_name = @program_transform_name@ | |
304 | psdir = @psdir@ | |
305 | runstatedir = @runstatedir@ | |
306 | sbindir = @sbindir@ | |
307 | sharedstatedir = @sharedstatedir@ | |
308 | srcdir = @srcdir@ | |
309 | sysconfdir = @sysconfdir@ | |
310 | target_alias = @target_alias@ | |
311 | top_build_prefix = @top_build_prefix@ | |
312 | top_builddir = @top_builddir@ | |
313 | top_srcdir = @top_srcdir@ | |
314 | SUBDIRS = src | |
315 | CLEANFILES = README | |
316 | all: config.h | |
317 | $(MAKE) $(AM_MAKEFLAGS) all-recursive | |
318 | ||
319 | .SUFFIXES: | |
320 | am--refresh: Makefile | |
321 | @: | |
322 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | |
323 | @for dep in $?; do \ | |
324 | case '$(am__configure_deps)' in \ | |
325 | *$$dep*) \ | |
326 | echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ | |
327 | $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ | |
328 | && exit 0; \ | |
329 | exit 1;; \ | |
330 | esac; \ | |
331 | done; \ | |
332 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ | |
333 | $(am__cd) $(top_srcdir) && \ | |
334 | $(AUTOMAKE) --gnu Makefile | |
335 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
336 | @case '$?' in \ | |
337 | *config.status*) \ | |
338 | echo ' $(SHELL) ./config.status'; \ | |
339 | $(SHELL) ./config.status;; \ | |
340 | *) \ | |
341 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \ | |
342 | cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ | |
343 | esac; | |
344 | ||
345 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
346 | $(SHELL) ./config.status --recheck | |
347 | ||
348 | $(top_srcdir)/configure: $(am__configure_deps) | |
349 | $(am__cd) $(srcdir) && $(AUTOCONF) | |
350 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | |
351 | $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | |
352 | $(am__aclocal_m4_deps): | |
353 | ||
354 | config.h: stamp-h1 | |
355 | @test -f $@ || rm -f stamp-h1 | |
356 | @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 | |
357 | ||
358 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status | |
359 | @rm -f stamp-h1 | |
360 | cd $(top_builddir) && $(SHELL) ./config.status config.h | |
361 | $(srcdir)/config.h.in: $(am__configure_deps) | |
362 | ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) | |
363 | rm -f stamp-h1 | |
364 | touch $@ | |
365 | ||
366 | distclean-hdr: | |
367 | -rm -f config.h stamp-h1 | |
368 | ||
369 | # This directory's subdirectories are mostly independent; you can cd | |
370 | # into them and run 'make' without going through this Makefile. | |
371 | # To change the values of 'make' variables: instead of editing Makefiles, | |
372 | # (1) if the variable is set in 'config.status', edit 'config.status' | |
373 | # (which will cause the Makefiles to be regenerated when you run 'make'); | |
374 | # (2) otherwise, pass the desired values on the 'make' command line. | |
375 | $(am__recursive_targets): | |
376 | @fail=; \ | |
377 | if $(am__make_keepgoing); then \ | |
378 | failcom='fail=yes'; \ | |
379 | else \ | |
380 | failcom='exit 1'; \ | |
381 | fi; \ | |
382 | dot_seen=no; \ | |
383 | target=`echo $@ | sed s/-recursive//`; \ | |
384 | case "$@" in \ | |
385 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
386 | *) list='$(SUBDIRS)' ;; \ | |
387 | esac; \ | |
388 | for subdir in $$list; do \ | |
389 | echo "Making $$target in $$subdir"; \ | |
390 | if test "$$subdir" = "."; then \ | |
391 | dot_seen=yes; \ | |
392 | local_target="$$target-am"; \ | |
393 | else \ | |
394 | local_target="$$target"; \ | |
395 | fi; \ | |
396 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
397 | || eval $$failcom; \ | |
398 | done; \ | |
399 | if test "$$dot_seen" = "no"; then \ | |
400 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | |
401 | fi; test -z "$$fail" | |
402 | ||
403 | ID: $(am__tagged_files) | |
404 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
405 | tags: tags-recursive | |
406 | TAGS: tags | |
407 | ||
408 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
409 | set x; \ | |
410 | here=`pwd`; \ | |
411 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | |
412 | include_option=--etags-include; \ | |
413 | empty_fix=.; \ | |
414 | else \ | |
415 | include_option=--include; \ | |
416 | empty_fix=; \ | |
417 | fi; \ | |
418 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
419 | if test "$$subdir" = .; then :; else \ | |
420 | test ! -f $$subdir/TAGS || \ | |
421 | set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ | |
422 | fi; \ | |
423 | done; \ | |
424 | $(am__define_uniq_tagged_files); \ | |
425 | shift; \ | |
426 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | |
427 | test -n "$$unique" || unique=$$empty_fix; \ | |
428 | if test $$# -gt 0; then \ | |
429 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
430 | "$$@" $$unique; \ | |
431 | else \ | |
432 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
433 | $$unique; \ | |
434 | fi; \ | |
435 | fi | |
436 | ctags: ctags-recursive | |
437 | ||
438 | CTAGS: ctags | |
439 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
440 | $(am__define_uniq_tagged_files); \ | |
441 | test -z "$(CTAGS_ARGS)$$unique" \ | |
442 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | |
443 | $$unique | |
444 | ||
445 | GTAGS: | |
446 | here=`$(am__cd) $(top_builddir) && pwd` \ | |
447 | && $(am__cd) $(top_srcdir) \ | |
448 | && gtags -i $(GTAGS_ARGS) "$$here" | |
449 | cscope: cscope.files | |
450 | test ! -s cscope.files \ | |
451 | || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) | |
452 | clean-cscope: | |
453 | -rm -f cscope.files | |
454 | cscope.files: clean-cscope cscopelist | |
455 | cscopelist: cscopelist-recursive | |
456 | ||
457 | cscopelist-am: $(am__tagged_files) | |
458 | list='$(am__tagged_files)'; \ | |
459 | case "$(srcdir)" in \ | |
460 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
461 | *) sdir=$(subdir)/$(srcdir) ;; \ | |
462 | esac; \ | |
463 | for i in $$list; do \ | |
464 | if test -f "$$i"; then \ | |
465 | echo "$(subdir)/$$i"; \ | |
466 | else \ | |
467 | echo "$$sdir/$$i"; \ | |
468 | fi; \ | |
469 | done >> $(top_builddir)/cscope.files | |
470 | ||
471 | distclean-tags: | |
472 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | |
473 | -rm -f cscope.out cscope.in.out cscope.po.out cscope.files | |
474 | distdir: $(BUILT_SOURCES) | |
475 | $(MAKE) $(AM_MAKEFLAGS) distdir-am | |
476 | ||
477 | distdir-am: $(DISTFILES) | |
478 | $(am__remove_distdir) | |
479 | test -d "$(distdir)" || mkdir "$(distdir)" | |
480 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
481 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
482 | list='$(DISTFILES)'; \ | |
483 | dist_files=`for file in $$list; do echo $$file; done | \ | |
484 | sed -e "s|^$$srcdirstrip/||;t" \ | |
485 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |
486 | case $$dist_files in \ | |
487 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | |
488 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |
489 | sort -u` ;; \ | |
490 | esac; \ | |
491 | for file in $$dist_files; do \ | |
492 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | |
493 | if test -d $$d/$$file; then \ | |
494 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |
495 | if test -d "$(distdir)/$$file"; then \ | |
496 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
497 | fi; \ | |
498 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | |
499 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | |
500 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
501 | fi; \ | |
502 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | |
503 | else \ | |
504 | test -f "$(distdir)/$$file" \ | |
505 | || cp -p $$d/$$file "$(distdir)/$$file" \ | |
506 | || exit 1; \ | |
507 | fi; \ | |
508 | done | |
509 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | |
510 | if test "$$subdir" = .; then :; else \ | |
511 | $(am__make_dryrun) \ | |
512 | || test -d "$(distdir)/$$subdir" \ | |
513 | || $(MKDIR_P) "$(distdir)/$$subdir" \ | |
514 | || exit 1; \ | |
515 | dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ | |
516 | $(am__relativize); \ | |
517 | new_distdir=$$reldir; \ | |
518 | dir1=$$subdir; dir2="$(top_distdir)"; \ | |
519 | $(am__relativize); \ | |
520 | new_top_distdir=$$reldir; \ | |
521 | echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ | |
522 | echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ | |
523 | ($(am__cd) $$subdir && \ | |
524 | $(MAKE) $(AM_MAKEFLAGS) \ | |
525 | top_distdir="$$new_top_distdir" \ | |
526 | distdir="$$new_distdir" \ | |
527 | am__remove_distdir=: \ | |
528 | am__skip_length_check=: \ | |
529 | am__skip_mode_fix=: \ | |
530 | distdir) \ | |
531 | || exit 1; \ | |
532 | fi; \ | |
533 | done | |
534 | -test -n "$(am__skip_mode_fix)" \ | |
535 | || find "$(distdir)" -type d ! -perm -755 \ | |
536 | -exec chmod u+rwx,go+rx {} \; -o \ | |
537 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | |
538 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | |
539 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ | |
540 | || chmod -R a+r "$(distdir)" | |
541 | dist-gzip: distdir | |
542 | tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz | |
543 | $(am__post_remove_distdir) | |
544 | ||
545 | dist-bzip2: distdir | |
546 | tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 | |
547 | $(am__post_remove_distdir) | |
548 | ||
549 | dist-lzip: distdir | |
550 | tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz | |
551 | $(am__post_remove_distdir) | |
552 | ||
553 | dist-xz: distdir | |
554 | tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz | |
555 | $(am__post_remove_distdir) | |
556 | ||
557 | dist-zstd: distdir | |
558 | tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst | |
559 | $(am__post_remove_distdir) | |
560 | ||
561 | dist-tarZ: distdir | |
562 | @echo WARNING: "Support for distribution archives compressed with" \ | |
563 | "legacy program 'compress' is deprecated." >&2 | |
564 | @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 | |
565 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z | |
566 | $(am__post_remove_distdir) | |
567 | ||
568 | dist-shar: distdir | |
569 | @echo WARNING: "Support for shar distribution archives is" \ | |
570 | "deprecated." >&2 | |
571 | @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 | |
572 | shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz | |
573 | $(am__post_remove_distdir) | |
574 | ||
575 | dist-zip: distdir | |
576 | -rm -f $(distdir).zip | |
577 | zip -rq $(distdir).zip $(distdir) | |
578 | $(am__post_remove_distdir) | |
579 | ||
580 | dist dist-all: | |
581 | $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' | |
582 | $(am__post_remove_distdir) | |
583 | ||
584 | # This target untars the dist file and tries a VPATH configuration. Then | |
585 | # it guarantees that the distribution is self-contained by making another | |
586 | # tarfile. | |
587 | distcheck: dist | |
588 | case '$(DIST_ARCHIVES)' in \ | |
589 | *.tar.gz*) \ | |
590 | eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ | |
591 | *.tar.bz2*) \ | |
592 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ | |
593 | *.tar.lz*) \ | |
594 | lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ | |
595 | *.tar.xz*) \ | |
596 | xz -dc $(distdir).tar.xz | $(am__untar) ;;\ | |
597 | *.tar.Z*) \ | |
598 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | |
599 | *.shar.gz*) \ | |
600 | eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ | |
601 | *.zip*) \ | |
602 | unzip $(distdir).zip ;;\ | |
603 | *.tar.zst*) \ | |
604 | zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ | |
605 | esac | |
606 | chmod -R a-w $(distdir) | |
607 | chmod u+w $(distdir) | |
608 | mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst | |
609 | chmod a-w $(distdir) | |
610 | test -d $(distdir)/_build || exit 0; \ | |
611 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ | |
612 | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | |
613 | && am__cwd=`pwd` \ | |
614 | && $(am__cd) $(distdir)/_build/sub \ | |
615 | && ../../configure \ | |
616 | $(AM_DISTCHECK_CONFIGURE_FLAGS) \ | |
617 | $(DISTCHECK_CONFIGURE_FLAGS) \ | |
618 | --srcdir=../.. --prefix="$$dc_install_base" \ | |
619 | && $(MAKE) $(AM_MAKEFLAGS) \ | |
620 | && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \ | |
621 | && $(MAKE) $(AM_MAKEFLAGS) check \ | |
622 | && $(MAKE) $(AM_MAKEFLAGS) install \ | |
623 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | |
624 | && $(MAKE) $(AM_MAKEFLAGS) uninstall \ | |
625 | && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ | |
626 | distuninstallcheck \ | |
627 | && chmod -R a-w "$$dc_install_base" \ | |
628 | && ({ \ | |
629 | (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ | |
630 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ | |
631 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ | |
632 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ | |
633 | distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ | |
634 | } || { rm -rf "$$dc_destdir"; exit 1; }) \ | |
635 | && rm -rf "$$dc_destdir" \ | |
636 | && $(MAKE) $(AM_MAKEFLAGS) dist \ | |
637 | && rm -rf $(DIST_ARCHIVES) \ | |
638 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ | |
639 | && cd "$$am__cwd" \ | |
640 | || exit 1 | |
641 | $(am__post_remove_distdir) | |
642 | @(echo "$(distdir) archives ready for distribution: "; \ | |
643 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ | |
644 | sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' | |
645 | distuninstallcheck: | |
646 | @test -n '$(distuninstallcheck_dir)' || { \ | |
647 | echo 'ERROR: trying to run $@ with an empty' \ | |
648 | '$$(distuninstallcheck_dir)' >&2; \ | |
649 | exit 1; \ | |
650 | }; \ | |
651 | $(am__cd) '$(distuninstallcheck_dir)' || { \ | |
652 | echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ | |
653 | exit 1; \ | |
654 | }; \ | |
655 | test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ | |
656 | || { echo "ERROR: files left after uninstall:" ; \ | |
657 | if test -n "$(DESTDIR)"; then \ | |
658 | echo " (check DESTDIR support)"; \ | |
659 | fi ; \ | |
660 | $(distuninstallcheck_listfiles) ; \ | |
661 | exit 1; } >&2 | |
662 | distcleancheck: distclean | |
663 | @if test '$(srcdir)' = . ; then \ | |
664 | echo "ERROR: distcleancheck can only run from a VPATH build" ; \ | |
665 | exit 1 ; \ | |
666 | fi | |
667 | @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ | |
668 | || { echo "ERROR: files left in build directory after distclean:" ; \ | |
669 | $(distcleancheck_listfiles) ; \ | |
670 | exit 1; } >&2 | |
671 | check-am: all-am | |
672 | check: check-recursive | |
673 | all-am: Makefile config.h | |
674 | installdirs: installdirs-recursive | |
675 | installdirs-am: | |
676 | install: install-recursive | |
677 | install-exec: install-exec-recursive | |
678 | install-data: install-data-recursive | |
679 | uninstall: uninstall-recursive | |
680 | ||
681 | install-am: all-am | |
682 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
683 | ||
684 | installcheck: installcheck-recursive | |
685 | install-strip: | |
686 | if test -z '$(STRIP)'; then \ | |
687 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
688 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
689 | install; \ | |
690 | else \ | |
691 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
692 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
693 | "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | |
694 | fi | |
695 | mostlyclean-generic: | |
696 | ||
697 | clean-generic: | |
698 | -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) | |
699 | ||
700 | distclean-generic: | |
701 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
702 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | |
703 | ||
704 | maintainer-clean-generic: | |
705 | @echo "This command is intended for maintainers to use" | |
706 | @echo "it deletes files that may require special tools to rebuild." | |
707 | clean: clean-recursive | |
708 | ||
709 | clean-am: clean-generic mostlyclean-am | |
710 | ||
711 | distclean: distclean-recursive | |
712 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
713 | -rm -f Makefile | |
714 | distclean-am: clean-am distclean-generic distclean-hdr distclean-tags | |
715 | ||
716 | dvi: dvi-recursive | |
717 | ||
718 | dvi-am: | |
719 | ||
720 | html: html-recursive | |
721 | ||
722 | html-am: | |
723 | ||
724 | info: info-recursive | |
725 | ||
726 | info-am: | |
727 | ||
728 | install-data-am: | |
729 | ||
730 | install-dvi: install-dvi-recursive | |
731 | ||
732 | install-dvi-am: | |
733 | ||
734 | install-exec-am: | |
735 | ||
736 | install-html: install-html-recursive | |
737 | ||
738 | install-html-am: | |
739 | ||
740 | install-info: install-info-recursive | |
741 | ||
742 | install-info-am: | |
743 | ||
744 | install-man: | |
745 | ||
746 | install-pdf: install-pdf-recursive | |
747 | ||
748 | install-pdf-am: | |
749 | ||
750 | install-ps: install-ps-recursive | |
751 | ||
752 | install-ps-am: | |
753 | ||
754 | installcheck-am: | |
755 | ||
756 | maintainer-clean: maintainer-clean-recursive | |
757 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
758 | -rm -rf $(top_srcdir)/autom4te.cache | |
759 | -rm -f Makefile | |
760 | maintainer-clean-am: distclean-am maintainer-clean-generic | |
761 | ||
762 | mostlyclean: mostlyclean-recursive | |
763 | ||
764 | mostlyclean-am: mostlyclean-generic | |
765 | ||
766 | pdf: pdf-recursive | |
767 | ||
768 | pdf-am: | |
769 | ||
770 | ps: ps-recursive | |
771 | ||
772 | ps-am: | |
773 | ||
774 | uninstall-am: | |
775 | ||
776 | .MAKE: $(am__recursive_targets) all install-am install-strip | |
777 | ||
778 | .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ | |
779 | am--refresh check check-am clean clean-cscope clean-generic \ | |
780 | cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ | |
781 | dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ | |
782 | dist-zstd distcheck distclean distclean-generic distclean-hdr \ | |
783 | distclean-tags distcleancheck distdir distuninstallcheck dvi \ | |
784 | dvi-am html html-am info info-am install install-am \ | |
785 | install-data install-data-am install-dvi install-dvi-am \ | |
786 | install-exec install-exec-am install-html install-html-am \ | |
787 | install-info install-info-am install-man install-pdf \ | |
788 | install-pdf-am install-ps install-ps-am install-strip \ | |
789 | installcheck installcheck-am installdirs installdirs-am \ | |
790 | maintainer-clean maintainer-clean-generic mostlyclean \ | |
791 | mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ | |
792 | uninstall-am | |
793 | ||
794 | .PRECIOUS: Makefile | |
795 | ||
796 | ||
797 | README: README.md | |
798 | cp README.md README | |
799 | ||
800 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
801 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
802 | .NOEXPORT: |
0 | SUMMARY | |
1 | ======= | |
2 | ||
3 | Kalibrate, or kal, can scan for GSM base stations in a given frequency band and can use those GSM base stations to calculate the local oscillator frequency offset. | |
4 | ||
5 | The description below is for original kal - this version has been modified for RTL-SDR dongles. | |
6 | ||
7 | This project can work only correct the a small offset of ppm. You need to either | |
8 | get a rough initial estimate yourself, or use a project which can correct larger | |
9 | offsets automatically. For example https://github.com/viraptor/fm_tune or | |
10 | https://github.com/JiaoXianjun/LTE-Cell-Scanner | |
11 | ||
12 | WHAT | |
13 | ==== | |
14 | ||
15 | On Clocks | |
16 | --------- | |
17 | ||
18 | The USRP1, similar to a number of devices, has a built-in oscillator which is only guaranteed accurate to within 20 parts per million (ppm). (Although in practice the USRP oscillator is normally closer to 3ppm.) This is sufficient for a number of purposes, but not for others. Fortunately, the USRP also supports an external oscillator. For example, the Clock Tamer, the KSP 52MHz and the FA-SY 1 are all accurate clocks that work well with the USRP. | |
19 | ||
20 | Normally, these external clocks must be calibrated to ensure they are set as accurately as possible. An oscilloscope is probably the best way to determine the accuracy of these clocks. However a good oscilloscope is expensive and not everyone has access to one. There are other ways to calibrate these devices -- the FA-SY 1 documentation discusses using the WWV time signals. Similarly, GSM base stations are required to be accurate to within 0.05ppm and so they can also provide an accurate reference clock. | |
21 | ||
22 | If you own a USRP daughterboard that covers the GSM frequencies in your area, using a GSM base station is a particularly convenient. | |
23 | ||
24 | Description | |
25 | ----------- | |
26 | ||
27 | A base station transmits a frequency correction burst on the Frequency Correction CHannel (FCCH) in regular positions. The FCCH repeats every 51 TDMA frames and the frequency correction burst is located in timeslot 0 of frames 0, 10, 20, 30, and 40. | |
28 | ||
29 | A frequency correction burst consists of a certain bit pattern which, after modulation, is a sine wave with frequency one quarter that of the GSM bit rate. I.e., `(1625000 / 6) / 4 = 67708.3 Hz`. By searching a channel for this pure tone, a mobile station can determine its clock offset by determining how far away from 67708.3Hz the received frequency is. | |
30 | ||
31 | There are many ways which a pure tone can be identified. For example, one can capture a burst of data and then examine it with a Fourier transformation to determine if most of the power in the signal is at a certain frequency. Alternatively, one can define a band-pass filter at 67708.3 Hz and then compare the power of the signal before and after it passes through the filter. However, both of these methods have drawbacks. The FFT method requires significant resources and cannot easily detect the frequency correction burst edge. The filter method either isn't accurate or cannot detect larger offsets. Multiple filters can be used, but that requires significant resources. | |
32 | ||
33 | `kal` uses a hybrid of the FFT and filter methods. The filter kal uses is an adaptive filter as described in the paper: | |
34 | ||
35 | G. Narendra Varma, Usha Sahu, G. Prabhu Charan, *Robust Frequency Burst Detection Algorithm for GSM/GPRS*. | |
36 | ||
37 | An Adaptive Line Equalizer (ALE) attempts to predict the input signal by adapting its filter coefficients. The prediction is compared with the actual signal and the coefficients are adapted so that the error is minimized. If the input contains a strong narrow-band signal embedded in wide-band noise, the filter output will be a pure sine at the same frequency and almost free of the wide-band noise. | |
38 | ||
39 | `kal` applies the ALE to the buffer and calculates the error between the ALE prediction and the input signal at each point in the signal. kal then calculates the average of all the errors. When the error drops below the average for the length of a frequency correction burst, this indicates a detected burst. | |
40 | ||
41 | Once we have the location of the frequency correction burst, we must determine what frequency it is at so we can calculate the offset from 67708.3 Hz. We take the input signal corresponding to the low error levels and run that through a FFT. The largest peak in the FFT output corresponds to the detected frequency of the frequency correction burst. This peak is then used to determine the frequency offset. | |
42 | ||
43 | Any noise in the system affects the measurements and so kal averages the results a number of times before displaying the offset. The range of values as well as the standard deviation is displayed so that an estimate of the measurement accuracy can be made. | |
44 | ||
45 | HOW | |
46 | === | |
47 | ||
48 | kal uses the GNU Autoconf system and should be easily built on most \*nix platforms. | |
49 | ||
50 | Debian example: | |
51 | ``` | |
52 | $ git clone https://github.com/steve-m/kalibrate-rtl.git | |
53 | $ sudo apt-get install libtool libfftw3-dev | |
54 | ``` | |
55 | ||
56 | ``` | |
57 | jl@thinkfoo:~/src$ cd kal-v0.4.1 | |
58 | jl@thinkfoo:~/src/kal-v0.4.1$ ./bootstrap && CXXFLAGS='-W -Wall -O3' ./configure && make | |
59 | [...] | |
60 | jl@thinkfoo:~/src/kal-v0.4.1$ src/kal -h | |
61 | kalibrate v0.4.1, Copyright (c) 2010, Joshua Lackey | |
62 | ||
63 | Usage: | |
64 | GSM Base Station Scan: | |
65 | kal <-s band indicator> [options] | |
66 | ||
67 | Clock Offset Calculation: | |
68 | kal <-f frequency | -c channel> [options] | |
69 | ||
70 | Where options are: | |
71 | -s band to scan (GSM850, GSM900, EGSM, DCS, PCS) | |
72 | -f frequency of nearby GSM base station | |
73 | -c channel of nearby GSM base station | |
74 | -b band indicator (GSM850, GSM900, EGSM, DCS, PCS) | |
75 | -R side A (0) or B (1), defaults to B | |
76 | -A antenna TX/RX (0) or RX2 (1), defaults to RX2 | |
77 | -g gain as % of range, defaults to 45% | |
78 | -F FPGA master clock frequency, defaults to 52MHz | |
79 | -v verbose | |
80 | -D enable debug messages | |
81 | -h help | |
82 | jl@thinkfoo:~/src/kal-v0.4.1$ src/kal -s 850 | |
83 | kal: Scanning for GSM-850 base stations. | |
84 | GSM-850: | |
85 | chan: 128 (869.2MHz - 13Hz) power: 9400.80 | |
86 | chan: 131 (869.8MHz + 7Hz) power: 4081.75 | |
87 | chan: 139 (871.4MHz + 10Hz) power: 2936.20 | |
88 | chan: 145 (872.6MHz - 7Hz) power: 33605.48 | |
89 | jl@thinkfoo:~/src/kal-v0.4.1$ src/kal -c 145 | |
90 | kal: Calculating clock frequency offset. | |
91 | Using GSM-850 channel 145 (872.6MHz) | |
92 | average [min, max] (range, stddev) | |
93 | - 1Hz [-8, 7] (14, 3.948722) | |
94 | overruns: 0 | |
95 | not found: 0 | |
96 | ``` | |
97 | ||
98 | WHO | |
99 | === | |
100 | ||
101 | I'd like to thank Alexander Chemeris for his valuable input, ideas, and his testing of a large number of alpha versions. I'd also like to thank Mark J. Blair for his help getting kal to work with Mac OS X. | |
102 | ||
103 | I'd also like to thank Mark J. Blair for his help getting kal to work with Mac OS X. (And also for helping me realize that I never actually used the -F parameter...) | |
104 | ||
105 | Copyright (c) 2010, Joshua Lackey ([email protected]) modified for use with rtl-sdr devices, | |
106 | ||
107 | Copyright (c) 2012, Steve Markgraf ([email protected]) | |
108 | ||
109 | Temporary maintenance: Stan Pitucha ([email protected]) | |
110 | ||
111 |
46 | 46 | === |
47 | 47 | |
48 | 48 | kal uses the GNU Autoconf system and should be easily built on most \*nix platforms. |
49 | ||
50 | Debian example: | |
51 | ``` | |
52 | $ git clone https://github.com/steve-m/kalibrate-rtl.git | |
53 | $ sudo apt-get install libtool libfftw3-dev | |
54 | ``` | |
49 | 55 | |
50 | 56 | ``` |
51 | 57 | jl@thinkfoo:~/src$ cd kal-v0.4.1 |
0 | # generated automatically by aclocal 1.16.5 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2021 Free Software Foundation, Inc. | |
3 | ||
4 | # This file is free software; the Free Software Foundation | |
5 | # gives unlimited permission to copy and/or distribute it, | |
6 | # with or without modifications, as long as this notice is preserved. | |
7 | ||
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
11 | # PARTICULAR PURPOSE. | |
12 | ||
13 | m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) | |
14 | m4_ifndef([AC_AUTOCONF_VERSION], | |
15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, | |
17 | [m4_warning([this file was generated for autoconf 2.71. | |
18 | You have another version of autoconf. It may work, but is not guaranteed to. | |
19 | If you have problems, you may need to regenerate the build system entirely. | |
20 | To do so, use the procedure documented by the package, typically 'autoreconf'.])]) | |
21 | ||
22 | # pkg.m4 - Macros to locate and use pkg-config. -*- Autoconf -*- | |
23 | # serial 12 (pkg-config-0.29.2) | |
24 | ||
25 | dnl Copyright © 2004 Scott James Remnant <[email protected]>. | |
26 | dnl Copyright © 2012-2015 Dan Nicholson <[email protected]> | |
27 | dnl | |
28 | dnl This program is free software; you can redistribute it and/or modify | |
29 | dnl it under the terms of the GNU General Public License as published by | |
30 | dnl the Free Software Foundation; either version 2 of the License, or | |
31 | dnl (at your option) any later version. | |
32 | dnl | |
33 | dnl This program is distributed in the hope that it will be useful, but | |
34 | dnl WITHOUT ANY WARRANTY; without even the implied warranty of | |
35 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
36 | dnl General Public License for more details. | |
37 | dnl | |
38 | dnl You should have received a copy of the GNU General Public License | |
39 | dnl along with this program; if not, write to the Free Software | |
40 | dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
41 | dnl 02111-1307, USA. | |
42 | dnl | |
43 | dnl As a special exception to the GNU General Public License, if you | |
44 | dnl distribute this file as part of a program that contains a | |
45 | dnl configuration script generated by Autoconf, you may include it under | |
46 | dnl the same distribution terms that you use for the rest of that | |
47 | dnl program. | |
48 | ||
49 | dnl PKG_PREREQ(MIN-VERSION) | |
50 | dnl ----------------------- | |
51 | dnl Since: 0.29 | |
52 | dnl | |
53 | dnl Verify that the version of the pkg-config macros are at least | |
54 | dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's | |
55 | dnl installed version of pkg-config, this checks the developer's version | |
56 | dnl of pkg.m4 when generating configure. | |
57 | dnl | |
58 | dnl To ensure that this macro is defined, also add: | |
59 | dnl m4_ifndef([PKG_PREREQ], | |
60 | dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) | |
61 | dnl | |
62 | dnl See the "Since" comment for each macro you use to see what version | |
63 | dnl of the macros you require. | |
64 | m4_defun([PKG_PREREQ], | |
65 | [m4_define([PKG_MACROS_VERSION], [0.29.2]) | |
66 | m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, | |
67 | [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) | |
68 | ])dnl PKG_PREREQ | |
69 | ||
70 | dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) | |
71 | dnl ---------------------------------- | |
72 | dnl Since: 0.16 | |
73 | dnl | |
74 | dnl Search for the pkg-config tool and set the PKG_CONFIG variable to | |
75 | dnl first found in the path. Checks that the version of pkg-config found | |
76 | dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is | |
77 | dnl used since that's the first version where most current features of | |
78 | dnl pkg-config existed. | |
79 | AC_DEFUN([PKG_PROG_PKG_CONFIG], | |
80 | [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) | |
81 | m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) | |
82 | m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) | |
83 | AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) | |
84 | AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) | |
85 | AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) | |
86 | ||
87 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
88 | AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) | |
89 | fi | |
90 | if test -n "$PKG_CONFIG"; then | |
91 | _pkg_min_version=m4_default([$1], [0.9.0]) | |
92 | AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) | |
93 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
94 | AC_MSG_RESULT([yes]) | |
95 | else | |
96 | AC_MSG_RESULT([no]) | |
97 | PKG_CONFIG="" | |
98 | fi | |
99 | fi[]dnl | |
100 | ])dnl PKG_PROG_PKG_CONFIG | |
101 | ||
102 | dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | |
103 | dnl ------------------------------------------------------------------- | |
104 | dnl Since: 0.18 | |
105 | dnl | |
106 | dnl Check to see whether a particular set of modules exists. Similar to | |
107 | dnl PKG_CHECK_MODULES(), but does not set variables or print errors. | |
108 | dnl | |
109 | dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | |
110 | dnl only at the first occurrence in configure.ac, so if the first place | |
111 | dnl it's called might be skipped (such as if it is within an "if", you | |
112 | dnl have to call PKG_CHECK_EXISTS manually | |
113 | AC_DEFUN([PKG_CHECK_EXISTS], | |
114 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | |
115 | if test -n "$PKG_CONFIG" && \ | |
116 | AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then | |
117 | m4_default([$2], [:]) | |
118 | m4_ifvaln([$3], [else | |
119 | $3])dnl | |
120 | fi]) | |
121 | ||
122 | dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) | |
123 | dnl --------------------------------------------- | |
124 | dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting | |
125 | dnl pkg_failed based on the result. | |
126 | m4_define([_PKG_CONFIG], | |
127 | [if test -n "$$1"; then | |
128 | pkg_cv_[]$1="$$1" | |
129 | elif test -n "$PKG_CONFIG"; then | |
130 | PKG_CHECK_EXISTS([$3], | |
131 | [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` | |
132 | test "x$?" != "x0" && pkg_failed=yes ], | |
133 | [pkg_failed=yes]) | |
134 | else | |
135 | pkg_failed=untried | |
136 | fi[]dnl | |
137 | ])dnl _PKG_CONFIG | |
138 | ||
139 | dnl _PKG_SHORT_ERRORS_SUPPORTED | |
140 | dnl --------------------------- | |
141 | dnl Internal check to see if pkg-config supports short errors. | |
142 | AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], | |
143 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | |
144 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
145 | _pkg_short_errors_supported=yes | |
146 | else | |
147 | _pkg_short_errors_supported=no | |
148 | fi[]dnl | |
149 | ])dnl _PKG_SHORT_ERRORS_SUPPORTED | |
150 | ||
151 | ||
152 | dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], | |
153 | dnl [ACTION-IF-NOT-FOUND]) | |
154 | dnl -------------------------------------------------------------- | |
155 | dnl Since: 0.4.0 | |
156 | dnl | |
157 | dnl Note that if there is a possibility the first call to | |
158 | dnl PKG_CHECK_MODULES might not happen, you should be sure to include an | |
159 | dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac | |
160 | AC_DEFUN([PKG_CHECK_MODULES], | |
161 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | |
162 | AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl | |
163 | AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl | |
164 | ||
165 | pkg_failed=no | |
166 | AC_MSG_CHECKING([for $2]) | |
167 | ||
168 | _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) | |
169 | _PKG_CONFIG([$1][_LIBS], [libs], [$2]) | |
170 | ||
171 | m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS | |
172 | and $1[]_LIBS to avoid the need to call pkg-config. | |
173 | See the pkg-config man page for more details.]) | |
174 | ||
175 | if test $pkg_failed = yes; then | |
176 | AC_MSG_RESULT([no]) | |
177 | _PKG_SHORT_ERRORS_SUPPORTED | |
178 | if test $_pkg_short_errors_supported = yes; then | |
179 | $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` | |
180 | else | |
181 | $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` | |
182 | fi | |
183 | # Put the nasty error message in config.log where it belongs | |
184 | echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD | |
185 | ||
186 | m4_default([$4], [AC_MSG_ERROR( | |
187 | [Package requirements ($2) were not met: | |
188 | ||
189 | $$1_PKG_ERRORS | |
190 | ||
191 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
192 | installed software in a non-standard prefix. | |
193 | ||
194 | _PKG_TEXT])[]dnl | |
195 | ]) | |
196 | elif test $pkg_failed = untried; then | |
197 | AC_MSG_RESULT([no]) | |
198 | m4_default([$4], [AC_MSG_FAILURE( | |
199 | [The pkg-config script could not be found or is too old. Make sure it | |
200 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
201 | path to pkg-config. | |
202 | ||
203 | _PKG_TEXT | |
204 | ||
205 | To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl | |
206 | ]) | |
207 | else | |
208 | $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS | |
209 | $1[]_LIBS=$pkg_cv_[]$1[]_LIBS | |
210 | AC_MSG_RESULT([yes]) | |
211 | $3 | |
212 | fi[]dnl | |
213 | ])dnl PKG_CHECK_MODULES | |
214 | ||
215 | ||
216 | dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], | |
217 | dnl [ACTION-IF-NOT-FOUND]) | |
218 | dnl --------------------------------------------------------------------- | |
219 | dnl Since: 0.29 | |
220 | dnl | |
221 | dnl Checks for existence of MODULES and gathers its build flags with | |
222 | dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags | |
223 | dnl and VARIABLE-PREFIX_LIBS from --libs. | |
224 | dnl | |
225 | dnl Note that if there is a possibility the first call to | |
226 | dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to | |
227 | dnl include an explicit call to PKG_PROG_PKG_CONFIG in your | |
228 | dnl configure.ac. | |
229 | AC_DEFUN([PKG_CHECK_MODULES_STATIC], | |
230 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | |
231 | _save_PKG_CONFIG=$PKG_CONFIG | |
232 | PKG_CONFIG="$PKG_CONFIG --static" | |
233 | PKG_CHECK_MODULES($@) | |
234 | PKG_CONFIG=$_save_PKG_CONFIG[]dnl | |
235 | ])dnl PKG_CHECK_MODULES_STATIC | |
236 | ||
237 | ||
238 | dnl PKG_INSTALLDIR([DIRECTORY]) | |
239 | dnl ------------------------- | |
240 | dnl Since: 0.27 | |
241 | dnl | |
242 | dnl Substitutes the variable pkgconfigdir as the location where a module | |
243 | dnl should install pkg-config .pc files. By default the directory is | |
244 | dnl $libdir/pkgconfig, but the default can be changed by passing | |
245 | dnl DIRECTORY. The user can override through the --with-pkgconfigdir | |
246 | dnl parameter. | |
247 | AC_DEFUN([PKG_INSTALLDIR], | |
248 | [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) | |
249 | m4_pushdef([pkg_description], | |
250 | [pkg-config installation directory @<:@]pkg_default[@:>@]) | |
251 | AC_ARG_WITH([pkgconfigdir], | |
252 | [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, | |
253 | [with_pkgconfigdir=]pkg_default) | |
254 | AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) | |
255 | m4_popdef([pkg_default]) | |
256 | m4_popdef([pkg_description]) | |
257 | ])dnl PKG_INSTALLDIR | |
258 | ||
259 | ||
260 | dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) | |
261 | dnl -------------------------------- | |
262 | dnl Since: 0.27 | |
263 | dnl | |
264 | dnl Substitutes the variable noarch_pkgconfigdir as the location where a | |
265 | dnl module should install arch-independent pkg-config .pc files. By | |
266 | dnl default the directory is $datadir/pkgconfig, but the default can be | |
267 | dnl changed by passing DIRECTORY. The user can override through the | |
268 | dnl --with-noarch-pkgconfigdir parameter. | |
269 | AC_DEFUN([PKG_NOARCH_INSTALLDIR], | |
270 | [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) | |
271 | m4_pushdef([pkg_description], | |
272 | [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) | |
273 | AC_ARG_WITH([noarch-pkgconfigdir], | |
274 | [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, | |
275 | [with_noarch_pkgconfigdir=]pkg_default) | |
276 | AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) | |
277 | m4_popdef([pkg_default]) | |
278 | m4_popdef([pkg_description]) | |
279 | ])dnl PKG_NOARCH_INSTALLDIR | |
280 | ||
281 | ||
282 | dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, | |
283 | dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | |
284 | dnl ------------------------------------------- | |
285 | dnl Since: 0.28 | |
286 | dnl | |
287 | dnl Retrieves the value of the pkg-config variable for the given module. | |
288 | AC_DEFUN([PKG_CHECK_VAR], | |
289 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | |
290 | AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl | |
291 | ||
292 | _PKG_CONFIG([$1], [variable="][$3]["], [$2]) | |
293 | AS_VAR_COPY([$1], [pkg_cv_][$1]) | |
294 | ||
295 | AS_VAR_IF([$1], [""], [$5], [$4])dnl | |
296 | ])dnl PKG_CHECK_VAR | |
297 | ||
298 | dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, | |
299 | dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], | |
300 | dnl [DESCRIPTION], [DEFAULT]) | |
301 | dnl ------------------------------------------ | |
302 | dnl | |
303 | dnl Prepare a "--with-" configure option using the lowercase | |
304 | dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and | |
305 | dnl PKG_CHECK_MODULES in a single macro. | |
306 | AC_DEFUN([PKG_WITH_MODULES], | |
307 | [ | |
308 | m4_pushdef([with_arg], m4_tolower([$1])) | |
309 | ||
310 | m4_pushdef([description], | |
311 | [m4_default([$5], [build with ]with_arg[ support])]) | |
312 | ||
313 | m4_pushdef([def_arg], [m4_default([$6], [auto])]) | |
314 | m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) | |
315 | m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) | |
316 | ||
317 | m4_case(def_arg, | |
318 | [yes],[m4_pushdef([with_without], [--without-]with_arg)], | |
319 | [m4_pushdef([with_without],[--with-]with_arg)]) | |
320 | ||
321 | AC_ARG_WITH(with_arg, | |
322 | AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, | |
323 | [AS_TR_SH([with_]with_arg)=def_arg]) | |
324 | ||
325 | AS_CASE([$AS_TR_SH([with_]with_arg)], | |
326 | [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], | |
327 | [auto],[PKG_CHECK_MODULES([$1],[$2], | |
328 | [m4_n([def_action_if_found]) $3], | |
329 | [m4_n([def_action_if_not_found]) $4])]) | |
330 | ||
331 | m4_popdef([with_arg]) | |
332 | m4_popdef([description]) | |
333 | m4_popdef([def_arg]) | |
334 | ||
335 | ])dnl PKG_WITH_MODULES | |
336 | ||
337 | dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, | |
338 | dnl [DESCRIPTION], [DEFAULT]) | |
339 | dnl ----------------------------------------------- | |
340 | dnl | |
341 | dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES | |
342 | dnl check._[VARIABLE-PREFIX] is exported as make variable. | |
343 | AC_DEFUN([PKG_HAVE_WITH_MODULES], | |
344 | [ | |
345 | PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) | |
346 | ||
347 | AM_CONDITIONAL([HAVE_][$1], | |
348 | [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) | |
349 | ])dnl PKG_HAVE_WITH_MODULES | |
350 | ||
351 | dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, | |
352 | dnl [DESCRIPTION], [DEFAULT]) | |
353 | dnl ------------------------------------------------------ | |
354 | dnl | |
355 | dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after | |
356 | dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make | |
357 | dnl and preprocessor variable. | |
358 | AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], | |
359 | [ | |
360 | PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) | |
361 | ||
362 | AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], | |
363 | [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) | |
364 | ])dnl PKG_HAVE_DEFINE_WITH_MODULES | |
365 | ||
366 | # Copyright (C) 2002-2021 Free Software Foundation, Inc. | |
367 | # | |
368 | # This file is free software; the Free Software Foundation | |
369 | # gives unlimited permission to copy and/or distribute it, | |
370 | # with or without modifications, as long as this notice is preserved. | |
371 | ||
372 | # AM_AUTOMAKE_VERSION(VERSION) | |
373 | # ---------------------------- | |
374 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | |
375 | # generated from the m4 files accompanying Automake X.Y. | |
376 | # (This private macro should not be called outside this file.) | |
377 | AC_DEFUN([AM_AUTOMAKE_VERSION], | |
378 | [am__api_version='1.16' | |
379 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
380 | dnl require some minimum version. Point them to the right macro. | |
381 | m4_if([$1], [1.16.5], [], | |
382 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
383 | ]) | |
384 | ||
385 | # _AM_AUTOCONF_VERSION(VERSION) | |
386 | # ----------------------------- | |
387 | # aclocal traces this macro to find the Autoconf version. | |
388 | # This is a private macro too. Using m4_define simplifies | |
389 | # the logic in aclocal, which can simply ignore this definition. | |
390 | m4_define([_AM_AUTOCONF_VERSION], []) | |
391 | ||
392 | # AM_SET_CURRENT_AUTOMAKE_VERSION | |
393 | # ------------------------------- | |
394 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |
395 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | |
396 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
397 | [AM_AUTOMAKE_VERSION([1.16.5])dnl | |
398 | m4_ifndef([AC_AUTOCONF_VERSION], | |
399 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
400 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |
401 | ||
402 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- | |
403 | ||
404 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
405 | # | |
406 | # This file is free software; the Free Software Foundation | |
407 | # gives unlimited permission to copy and/or distribute it, | |
408 | # with or without modifications, as long as this notice is preserved. | |
409 | ||
410 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | |
411 | # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to | |
412 | # '$srcdir', '$srcdir/..', or '$srcdir/../..'. | |
413 | # | |
414 | # Of course, Automake must honor this variable whenever it calls a | |
415 | # tool from the auxiliary directory. The problem is that $srcdir (and | |
416 | # therefore $ac_aux_dir as well) can be either absolute or relative, | |
417 | # depending on how configure is run. This is pretty annoying, since | |
418 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
419 | # source directory, any form will work fine, but in subdirectories a | |
420 | # relative path needs to be adjusted first. | |
421 | # | |
422 | # $ac_aux_dir/missing | |
423 | # fails when called from a subdirectory if $ac_aux_dir is relative | |
424 | # $top_srcdir/$ac_aux_dir/missing | |
425 | # fails if $ac_aux_dir is absolute, | |
426 | # fails when called from a subdirectory in a VPATH build with | |
427 | # a relative $ac_aux_dir | |
428 | # | |
429 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
430 | # are both prefixed by $srcdir. In an in-source build this is usually | |
431 | # harmless because $srcdir is '.', but things will broke when you | |
432 | # start a VPATH build or use an absolute $srcdir. | |
433 | # | |
434 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
435 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
436 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
437 | # and then we would define $MISSING as | |
438 | # MISSING="\${SHELL} $am_aux_dir/missing" | |
439 | # This will work as long as MISSING is not called from configure, because | |
440 | # unfortunately $(top_srcdir) has no meaning in configure. | |
441 | # However there are other variables, like CC, which are often used in | |
442 | # configure, and could therefore not use this "fixed" $ac_aux_dir. | |
443 | # | |
444 | # Another solution, used here, is to always expand $ac_aux_dir to an | |
445 | # absolute PATH. The drawback is that using absolute paths prevent a | |
446 | # configured tree to be moved without reconfiguration. | |
447 | ||
448 | AC_DEFUN([AM_AUX_DIR_EXPAND], | |
449 | [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | |
450 | # Expand $ac_aux_dir to an absolute path. | |
451 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
452 | ]) | |
453 | ||
454 | # AM_CONDITIONAL -*- Autoconf -*- | |
455 | ||
456 | # Copyright (C) 1997-2021 Free Software Foundation, Inc. | |
457 | # | |
458 | # This file is free software; the Free Software Foundation | |
459 | # gives unlimited permission to copy and/or distribute it, | |
460 | # with or without modifications, as long as this notice is preserved. | |
461 | ||
462 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | |
463 | # ------------------------------------- | |
464 | # Define a conditional. | |
465 | AC_DEFUN([AM_CONDITIONAL], | |
466 | [AC_PREREQ([2.52])dnl | |
467 | m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
468 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
469 | AC_SUBST([$1_TRUE])dnl | |
470 | AC_SUBST([$1_FALSE])dnl | |
471 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl | |
472 | _AM_SUBST_NOTMAKE([$1_FALSE])dnl | |
473 | m4_define([_AM_COND_VALUE_$1], [$2])dnl | |
474 | if $2; then | |
475 | $1_TRUE= | |
476 | $1_FALSE='#' | |
477 | else | |
478 | $1_TRUE='#' | |
479 | $1_FALSE= | |
480 | fi | |
481 | AC_CONFIG_COMMANDS_PRE( | |
482 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | |
483 | AC_MSG_ERROR([[conditional "$1" was never defined. | |
484 | Usually this means the macro was only invoked conditionally.]]) | |
485 | fi])]) | |
486 | ||
487 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
488 | # | |
489 | # This file is free software; the Free Software Foundation | |
490 | # gives unlimited permission to copy and/or distribute it, | |
491 | # with or without modifications, as long as this notice is preserved. | |
492 | ||
493 | ||
494 | # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be | |
495 | # written in clear, in which case automake, when reading aclocal.m4, | |
496 | # will think it sees a *use*, and therefore will trigger all it's | |
497 | # C support machinery. Also note that it means that autoscan, seeing | |
498 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | |
499 | ||
500 | ||
501 | # _AM_DEPENDENCIES(NAME) | |
502 | # ---------------------- | |
503 | # See how the compiler implements dependency checking. | |
504 | # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". | |
505 | # We try a few techniques and use that to set a single cache variable. | |
506 | # | |
507 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | |
508 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | |
509 | # dependency, and given that the user is not expected to run this macro, | |
510 | # just rely on AC_PROG_CC. | |
511 | AC_DEFUN([_AM_DEPENDENCIES], | |
512 | [AC_REQUIRE([AM_SET_DEPDIR])dnl | |
513 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | |
514 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl | |
515 | AC_REQUIRE([AM_DEP_TRACK])dnl | |
516 | ||
517 | m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], | |
518 | [$1], [CXX], [depcc="$CXX" am_compiler_list=], | |
519 | [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
520 | [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], | |
521 | [$1], [UPC], [depcc="$UPC" am_compiler_list=], | |
522 | [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
523 | [depcc="$$1" am_compiler_list=]) | |
524 | ||
525 | AC_CACHE_CHECK([dependency style of $depcc], | |
526 | [am_cv_$1_dependencies_compiler_type], | |
527 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
528 | # We make a subdir and do the tests there. Otherwise we can end up | |
529 | # making bogus files that we don't know about and never remove. For | |
530 | # instance it was reported that on HP-UX the gcc test will end up | |
531 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
532 | # in D". | |
533 | rm -rf conftest.dir | |
534 | mkdir conftest.dir | |
535 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
536 | # using a relative directory. | |
537 | cp "$am_depcomp" conftest.dir | |
538 | cd conftest.dir | |
539 | # We will build objects and dependencies in a subdirectory because | |
540 | # it helps to detect inapplicable dependency modes. For instance | |
541 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
542 | # side effect of compilation, but ICC will put the dependencies in | |
543 | # the current directory while Tru64 will put them in the object | |
544 | # directory. | |
545 | mkdir sub | |
546 | ||
547 | am_cv_$1_dependencies_compiler_type=none | |
548 | if test "$am_compiler_list" = ""; then | |
549 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | |
550 | fi | |
551 | am__universal=false | |
552 | m4_case([$1], [CC], | |
553 | [case " $depcc " in #( | |
554 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
555 | esac], | |
556 | [CXX], | |
557 | [case " $depcc " in #( | |
558 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
559 | esac]) | |
560 | ||
561 | for depmode in $am_compiler_list; do | |
562 | # Setup a source with many dependencies, because some compilers | |
563 | # like to wrap large dependency lists on column 80 (with \), and | |
564 | # we should not choose a depcomp mode which is confused by this. | |
565 | # | |
566 | # We need to recreate these files for each test, as the compiler may | |
567 | # overwrite some of them when testing with obscure command lines. | |
568 | # This happens at least with the AIX C compiler. | |
569 | : > sub/conftest.c | |
570 | for i in 1 2 3 4 5 6; do | |
571 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
572 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
573 | # Solaris 10 /bin/sh. | |
574 | echo '/* dummy */' > sub/conftst$i.h | |
575 | done | |
576 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
577 | ||
578 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
579 | # mode. It turns out that the SunPro C++ compiler does not properly | |
580 | # handle '-M -o', and we need to detect this. Also, some Intel | |
581 | # versions had trouble with output in subdirs. | |
582 | am__obj=sub/conftest.${OBJEXT-o} | |
583 | am__minus_obj="-o $am__obj" | |
584 | case $depmode in | |
585 | gcc) | |
586 | # This depmode causes a compiler race in universal mode. | |
587 | test "$am__universal" = false || continue | |
588 | ;; | |
589 | nosideeffect) | |
590 | # After this tag, mechanisms are not by side-effect, so they'll | |
591 | # only be used when explicitly requested. | |
592 | if test "x$enable_dependency_tracking" = xyes; then | |
593 | continue | |
594 | else | |
595 | break | |
596 | fi | |
597 | ;; | |
598 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
599 | # This compiler won't grok '-c -o', but also, the minuso test has | |
600 | # not run yet. These depmodes are late enough in the game, and | |
601 | # so weak that their functioning should not be impacted. | |
602 | am__obj=conftest.${OBJEXT-o} | |
603 | am__minus_obj= | |
604 | ;; | |
605 | none) break ;; | |
606 | esac | |
607 | if depmode=$depmode \ | |
608 | source=sub/conftest.c object=$am__obj \ | |
609 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
610 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
611 | >/dev/null 2>conftest.err && | |
612 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
613 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
614 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
615 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
616 | # icc doesn't choke on unknown options, it will just issue warnings | |
617 | # or remarks (even with -Werror). So we grep stderr for any message | |
618 | # that says an option was ignored or not supported. | |
619 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
620 | # icc: Command line warning: ignoring option '-M'; no argument required | |
621 | # The diagnosis changed in icc 8.0: | |
622 | # icc: Command line remark: option '-MP' not supported | |
623 | if (grep 'ignoring option' conftest.err || | |
624 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
625 | am_cv_$1_dependencies_compiler_type=$depmode | |
626 | break | |
627 | fi | |
628 | fi | |
629 | done | |
630 | ||
631 | cd .. | |
632 | rm -rf conftest.dir | |
633 | else | |
634 | am_cv_$1_dependencies_compiler_type=none | |
635 | fi | |
636 | ]) | |
637 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) | |
638 | AM_CONDITIONAL([am__fastdep$1], [ | |
639 | test "x$enable_dependency_tracking" != xno \ | |
640 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) | |
641 | ]) | |
642 | ||
643 | ||
644 | # AM_SET_DEPDIR | |
645 | # ------------- | |
646 | # Choose a directory name for dependency files. | |
647 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES. | |
648 | AC_DEFUN([AM_SET_DEPDIR], | |
649 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
650 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | |
651 | ]) | |
652 | ||
653 | ||
654 | # AM_DEP_TRACK | |
655 | # ------------ | |
656 | AC_DEFUN([AM_DEP_TRACK], | |
657 | [AC_ARG_ENABLE([dependency-tracking], [dnl | |
658 | AS_HELP_STRING( | |
659 | [--enable-dependency-tracking], | |
660 | [do not reject slow dependency extractors]) | |
661 | AS_HELP_STRING( | |
662 | [--disable-dependency-tracking], | |
663 | [speeds up one-time build])]) | |
664 | if test "x$enable_dependency_tracking" != xno; then | |
665 | am_depcomp="$ac_aux_dir/depcomp" | |
666 | AMDEPBACKSLASH='\' | |
667 | am__nodep='_no' | |
668 | fi | |
669 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | |
670 | AC_SUBST([AMDEPBACKSLASH])dnl | |
671 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |
672 | AC_SUBST([am__nodep])dnl | |
673 | _AM_SUBST_NOTMAKE([am__nodep])dnl | |
674 | ]) | |
675 | ||
676 | # Generate code to set up dependency tracking. -*- Autoconf -*- | |
677 | ||
678 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
679 | # | |
680 | # This file is free software; the Free Software Foundation | |
681 | # gives unlimited permission to copy and/or distribute it, | |
682 | # with or without modifications, as long as this notice is preserved. | |
683 | ||
684 | # _AM_OUTPUT_DEPENDENCY_COMMANDS | |
685 | # ------------------------------ | |
686 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | |
687 | [{ | |
688 | # Older Autoconf quotes --file arguments for eval, but not when files | |
689 | # are listed without --file. Let's play safe and only enable the eval | |
690 | # if we detect the quoting. | |
691 | # TODO: see whether this extra hack can be removed once we start | |
692 | # requiring Autoconf 2.70 or later. | |
693 | AS_CASE([$CONFIG_FILES], | |
694 | [*\'*], [eval set x "$CONFIG_FILES"], | |
695 | [*], [set x $CONFIG_FILES]) | |
696 | shift | |
697 | # Used to flag and report bootstrapping failures. | |
698 | am_rc=0 | |
699 | for am_mf | |
700 | do | |
701 | # Strip MF so we end up with the name of the file. | |
702 | am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` | |
703 | # Check whether this is an Automake generated Makefile which includes | |
704 | # dependency-tracking related rules and includes. | |
705 | # Grep'ing the whole file directly is not great: AIX grep has a line | |
706 | # limit of 2048, but all sed's we know have understand at least 4000. | |
707 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ | |
708 | || continue | |
709 | am_dirpart=`AS_DIRNAME(["$am_mf"])` | |
710 | am_filepart=`AS_BASENAME(["$am_mf"])` | |
711 | AM_RUN_LOG([cd "$am_dirpart" \ | |
712 | && sed -e '/# am--include-marker/d' "$am_filepart" \ | |
713 | | $MAKE -f - am--depfiles]) || am_rc=$? | |
714 | done | |
715 | if test $am_rc -ne 0; then | |
716 | AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments | |
717 | for automatic dependency tracking. If GNU make was not used, consider | |
718 | re-running the configure script with MAKE="gmake" (or whatever is | |
719 | necessary). You can also try re-running configure with the | |
720 | '--disable-dependency-tracking' option to at least be able to build | |
721 | the package (albeit without support for automatic dependency tracking).]) | |
722 | fi | |
723 | AS_UNSET([am_dirpart]) | |
724 | AS_UNSET([am_filepart]) | |
725 | AS_UNSET([am_mf]) | |
726 | AS_UNSET([am_rc]) | |
727 | rm -f conftest-deps.mk | |
728 | } | |
729 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | |
730 | ||
731 | ||
732 | # AM_OUTPUT_DEPENDENCY_COMMANDS | |
733 | # ----------------------------- | |
734 | # This macro should only be invoked once -- use via AC_REQUIRE. | |
735 | # | |
736 | # This code is only required when automatic dependency tracking is enabled. | |
737 | # This creates each '.Po' and '.Plo' makefile fragment that we'll need in | |
738 | # order to bootstrap the dependency handling code. | |
739 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |
740 | [AC_CONFIG_COMMANDS([depfiles], | |
741 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | |
742 | [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) | |
743 | ||
744 | # Do all the work for Automake. -*- Autoconf -*- | |
745 | ||
746 | # Copyright (C) 1996-2021 Free Software Foundation, Inc. | |
747 | # | |
748 | # This file is free software; the Free Software Foundation | |
749 | # gives unlimited permission to copy and/or distribute it, | |
750 | # with or without modifications, as long as this notice is preserved. | |
751 | ||
752 | # This macro actually does too much. Some checks are only needed if | |
753 | # your package does certain things. But this isn't really a big deal. | |
754 | ||
755 | dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. | |
756 | m4_define([AC_PROG_CC], | |
757 | m4_defn([AC_PROG_CC]) | |
758 | [_AM_PROG_CC_C_O | |
759 | ]) | |
760 | ||
761 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
762 | # AM_INIT_AUTOMAKE([OPTIONS]) | |
763 | # ----------------------------------------------- | |
764 | # The call with PACKAGE and VERSION arguments is the old style | |
765 | # call (pre autoconf-2.50), which is being phased out. PACKAGE | |
766 | # and VERSION should now be passed to AC_INIT and removed from | |
767 | # the call to AM_INIT_AUTOMAKE. | |
768 | # We support both call styles for the transition. After | |
769 | # the next Automake release, Autoconf can make the AC_INIT | |
770 | # arguments mandatory, and then we can depend on a new Autoconf | |
771 | # release and drop the old call support. | |
772 | AC_DEFUN([AM_INIT_AUTOMAKE], | |
773 | [AC_PREREQ([2.65])dnl | |
774 | m4_ifdef([_$0_ALREADY_INIT], | |
775 | [m4_fatal([$0 expanded multiple times | |
776 | ]m4_defn([_$0_ALREADY_INIT]))], | |
777 | [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl | |
778 | dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
779 | dnl the ones we care about. | |
780 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
781 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
782 | AC_REQUIRE([AC_PROG_INSTALL])dnl | |
783 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
784 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
785 | # is not polluted with repeated "-I." | |
786 | AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
787 | # test to see if srcdir already configured | |
788 | if test -f $srcdir/config.status; then | |
789 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
790 | fi | |
791 | fi | |
792 | ||
793 | # test whether we have cygpath | |
794 | if test -z "$CYGPATH_W"; then | |
795 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
796 | CYGPATH_W='cygpath -w' | |
797 | else | |
798 | CYGPATH_W=echo | |
799 | fi | |
800 | fi | |
801 | AC_SUBST([CYGPATH_W]) | |
802 | ||
803 | # Define the identity of the package. | |
804 | dnl Distinguish between old-style and new-style calls. | |
805 | m4_ifval([$2], | |
806 | [AC_DIAGNOSE([obsolete], | |
807 | [$0: two- and three-arguments forms are deprecated.]) | |
808 | m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
809 | AC_SUBST([PACKAGE], [$1])dnl | |
810 | AC_SUBST([VERSION], [$2])], | |
811 | [_AM_SET_OPTIONS([$1])dnl | |
812 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
813 | m4_if( | |
814 | m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), | |
815 | [ok:ok],, | |
816 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
817 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
818 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
819 | ||
820 | _AM_IF_OPTION([no-define],, | |
821 | [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) | |
822 | AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl | |
823 | ||
824 | # Some tools Automake needs. | |
825 | AC_REQUIRE([AM_SANITY_CHECK])dnl | |
826 | AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
827 | AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) | |
828 | AM_MISSING_PROG([AUTOCONF], [autoconf]) | |
829 | AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) | |
830 | AM_MISSING_PROG([AUTOHEADER], [autoheader]) | |
831 | AM_MISSING_PROG([MAKEINFO], [makeinfo]) | |
832 | AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
833 | AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | |
834 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
835 | # For better backward compatibility. To be removed once Automake 1.9.x | |
836 | # dies out for good. For more background, see: | |
837 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
838 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
839 | AC_SUBST([mkdir_p], ['$(MKDIR_P)']) | |
840 | # We need awk for the "check" target (and possibly the TAP driver). The | |
841 | # system "awk" is bad on some platforms. | |
842 | AC_REQUIRE([AC_PROG_AWK])dnl | |
843 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
844 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
845 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
846 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
847 | [_AM_PROG_TAR([v7])])]) | |
848 | _AM_IF_OPTION([no-dependencies],, | |
849 | [AC_PROVIDE_IFELSE([AC_PROG_CC], | |
850 | [_AM_DEPENDENCIES([CC])], | |
851 | [m4_define([AC_PROG_CC], | |
852 | m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl | |
853 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
854 | [_AM_DEPENDENCIES([CXX])], | |
855 | [m4_define([AC_PROG_CXX], | |
856 | m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl | |
857 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
858 | [_AM_DEPENDENCIES([OBJC])], | |
859 | [m4_define([AC_PROG_OBJC], | |
860 | m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl | |
861 | AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], | |
862 | [_AM_DEPENDENCIES([OBJCXX])], | |
863 | [m4_define([AC_PROG_OBJCXX], | |
864 | m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl | |
865 | ]) | |
866 | # Variables for tags utilities; see am/tags.am | |
867 | if test -z "$CTAGS"; then | |
868 | CTAGS=ctags | |
869 | fi | |
870 | AC_SUBST([CTAGS]) | |
871 | if test -z "$ETAGS"; then | |
872 | ETAGS=etags | |
873 | fi | |
874 | AC_SUBST([ETAGS]) | |
875 | if test -z "$CSCOPE"; then | |
876 | CSCOPE=cscope | |
877 | fi | |
878 | AC_SUBST([CSCOPE]) | |
879 | ||
880 | AC_REQUIRE([AM_SILENT_RULES])dnl | |
881 | dnl The testsuite driver may need to know about EXEEXT, so add the | |
882 | dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This | |
883 | dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
884 | AC_CONFIG_COMMANDS_PRE(dnl | |
885 | [m4_provide_if([_AM_COMPILER_EXEEXT], | |
886 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | |
887 | ||
888 | # POSIX will say in a future version that running "rm -f" with no argument | |
889 | # is OK; and we want to be able to make that assumption in our Makefile | |
890 | # recipes. So use an aggressive probe to check that the usage we want is | |
891 | # actually supported "in the wild" to an acceptable degree. | |
892 | # See automake bug#10828. | |
893 | # To make any issue more visible, cause the running configure to be aborted | |
894 | # by default if the 'rm' program in use doesn't match our expectations; the | |
895 | # user can still override this though. | |
896 | if rm -f && rm -fr && rm -rf; then : OK; else | |
897 | cat >&2 <<'END' | |
898 | Oops! | |
899 | ||
900 | Your 'rm' program seems unable to run without file operands specified | |
901 | on the command line, even when the '-f' option is present. This is contrary | |
902 | to the behaviour of most rm programs out there, and not conforming with | |
903 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
904 | ||
905 | Please tell [email protected] about your system, including the value | |
906 | of your $PATH and any error possibly output before this message. This | |
907 | can help us improve future automake versions. | |
908 | ||
909 | END | |
910 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
911 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
912 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
913 | echo >&2 | |
914 | else | |
915 | cat >&2 <<'END' | |
916 | Aborting the configuration process, to ensure you take notice of the issue. | |
917 | ||
918 | You can download and install GNU coreutils to get an 'rm' implementation | |
919 | that behaves properly: <https://www.gnu.org/software/coreutils/>. | |
920 | ||
921 | If you want to complete the configuration process using your problematic | |
922 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
923 | to "yes", and re-run configure. | |
924 | ||
925 | END | |
926 | AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) | |
927 | fi | |
928 | fi | |
929 | dnl The trailing newline in this macro's definition is deliberate, for | |
930 | dnl backward compatibility and to allow trailing 'dnl'-style comments | |
931 | dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. | |
932 | ]) | |
933 | ||
934 | dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
935 | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | |
936 | dnl mangled by Autoconf and run in a shell conditional statement. | |
937 | m4_define([_AC_COMPILER_EXEEXT], | |
938 | m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | |
939 | ||
940 | # When config.status generates a header, we must update the stamp-h file. | |
941 | # This file resides in the same directory as the config header | |
942 | # that is generated. The stamp files are numbered to have different names. | |
943 | ||
944 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
945 | # loop where config.status creates the headers, so we can generate | |
946 | # our stamp files there. | |
947 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
948 | [# Compute $1's index in $config_headers. | |
949 | _am_arg=$1 | |
950 | _am_stamp_count=1 | |
951 | for _am_header in $config_headers :; do | |
952 | case $_am_header in | |
953 | $_am_arg | $_am_arg:* ) | |
954 | break ;; | |
955 | * ) | |
956 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
957 | esac | |
958 | done | |
959 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |
960 | ||
961 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
962 | # | |
963 | # This file is free software; the Free Software Foundation | |
964 | # gives unlimited permission to copy and/or distribute it, | |
965 | # with or without modifications, as long as this notice is preserved. | |
966 | ||
967 | # AM_PROG_INSTALL_SH | |
968 | # ------------------ | |
969 | # Define $install_sh. | |
970 | AC_DEFUN([AM_PROG_INSTALL_SH], | |
971 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
972 | if test x"${install_sh+set}" != xset; then | |
973 | case $am_aux_dir in | |
974 | *\ * | *\ *) | |
975 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
976 | *) | |
977 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
978 | esac | |
979 | fi | |
980 | AC_SUBST([install_sh])]) | |
981 | ||
982 | # Copyright (C) 2003-2021 Free Software Foundation, Inc. | |
983 | # | |
984 | # This file is free software; the Free Software Foundation | |
985 | # gives unlimited permission to copy and/or distribute it, | |
986 | # with or without modifications, as long as this notice is preserved. | |
987 | ||
988 | # Check whether the underlying file-system supports filenames | |
989 | # with a leading dot. For instance MS-DOS doesn't. | |
990 | AC_DEFUN([AM_SET_LEADING_DOT], | |
991 | [rm -rf .tst 2>/dev/null | |
992 | mkdir .tst 2>/dev/null | |
993 | if test -d .tst; then | |
994 | am__leading_dot=. | |
995 | else | |
996 | am__leading_dot=_ | |
997 | fi | |
998 | rmdir .tst 2>/dev/null | |
999 | AC_SUBST([am__leading_dot])]) | |
1000 | ||
1001 | # Check to see how 'make' treats includes. -*- Autoconf -*- | |
1002 | ||
1003 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
1004 | # | |
1005 | # This file is free software; the Free Software Foundation | |
1006 | # gives unlimited permission to copy and/or distribute it, | |
1007 | # with or without modifications, as long as this notice is preserved. | |
1008 | ||
1009 | # AM_MAKE_INCLUDE() | |
1010 | # ----------------- | |
1011 | # Check whether make has an 'include' directive that can support all | |
1012 | # the idioms we need for our automatic dependency tracking code. | |
1013 | AC_DEFUN([AM_MAKE_INCLUDE], | |
1014 | [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) | |
1015 | cat > confinc.mk << 'END' | |
1016 | am__doit: | |
1017 | @echo this is the am__doit target >confinc.out | |
1018 | .PHONY: am__doit | |
1019 | END | |
1020 | am__include="#" | |
1021 | am__quote= | |
1022 | # BSD make does it like this. | |
1023 | echo '.include "confinc.mk" # ignored' > confmf.BSD | |
1024 | # Other make implementations (GNU, Solaris 10, AIX) do it like this. | |
1025 | echo 'include confinc.mk # ignored' > confmf.GNU | |
1026 | _am_result=no | |
1027 | for s in GNU BSD; do | |
1028 | AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) | |
1029 | AS_CASE([$?:`cat confinc.out 2>/dev/null`], | |
1030 | ['0:this is the am__doit target'], | |
1031 | [AS_CASE([$s], | |
1032 | [BSD], [am__include='.include' am__quote='"'], | |
1033 | [am__include='include' am__quote=''])]) | |
1034 | if test "$am__include" != "#"; then | |
1035 | _am_result="yes ($s style)" | |
1036 | break | |
1037 | fi | |
1038 | done | |
1039 | rm -f confinc.* confmf.* | |
1040 | AC_MSG_RESULT([${_am_result}]) | |
1041 | AC_SUBST([am__include])]) | |
1042 | AC_SUBST([am__quote])]) | |
1043 | ||
1044 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
1045 | ||
1046 | # Copyright (C) 1997-2021 Free Software Foundation, Inc. | |
1047 | # | |
1048 | # This file is free software; the Free Software Foundation | |
1049 | # gives unlimited permission to copy and/or distribute it, | |
1050 | # with or without modifications, as long as this notice is preserved. | |
1051 | ||
1052 | # AM_MISSING_PROG(NAME, PROGRAM) | |
1053 | # ------------------------------ | |
1054 | AC_DEFUN([AM_MISSING_PROG], | |
1055 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
1056 | $1=${$1-"${am_missing_run}$2"} | |
1057 | AC_SUBST($1)]) | |
1058 | ||
1059 | # AM_MISSING_HAS_RUN | |
1060 | # ------------------ | |
1061 | # Define MISSING if not defined so far and test if it is modern enough. | |
1062 | # If it is, set am_missing_run to use it, otherwise, to nothing. | |
1063 | AC_DEFUN([AM_MISSING_HAS_RUN], | |
1064 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
1065 | AC_REQUIRE_AUX_FILE([missing])dnl | |
1066 | if test x"${MISSING+set}" != xset; then | |
1067 | MISSING="\${SHELL} '$am_aux_dir/missing'" | |
1068 | fi | |
1069 | # Use eval to expand $SHELL | |
1070 | if eval "$MISSING --is-lightweight"; then | |
1071 | am_missing_run="$MISSING " | |
1072 | else | |
1073 | am_missing_run= | |
1074 | AC_MSG_WARN(['missing' script is too old or missing]) | |
1075 | fi | |
1076 | ]) | |
1077 | ||
1078 | # Helper functions for option handling. -*- Autoconf -*- | |
1079 | ||
1080 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
1081 | # | |
1082 | # This file is free software; the Free Software Foundation | |
1083 | # gives unlimited permission to copy and/or distribute it, | |
1084 | # with or without modifications, as long as this notice is preserved. | |
1085 | ||
1086 | # _AM_MANGLE_OPTION(NAME) | |
1087 | # ----------------------- | |
1088 | AC_DEFUN([_AM_MANGLE_OPTION], | |
1089 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
1090 | ||
1091 | # _AM_SET_OPTION(NAME) | |
1092 | # -------------------- | |
1093 | # Set option NAME. Presently that only means defining a flag for this option. | |
1094 | AC_DEFUN([_AM_SET_OPTION], | |
1095 | [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) | |
1096 | ||
1097 | # _AM_SET_OPTIONS(OPTIONS) | |
1098 | # ------------------------ | |
1099 | # OPTIONS is a space-separated list of Automake options. | |
1100 | AC_DEFUN([_AM_SET_OPTIONS], | |
1101 | [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
1102 | ||
1103 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
1104 | # ------------------------------------------- | |
1105 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
1106 | AC_DEFUN([_AM_IF_OPTION], | |
1107 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
1108 | ||
1109 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
1110 | # | |
1111 | # This file is free software; the Free Software Foundation | |
1112 | # gives unlimited permission to copy and/or distribute it, | |
1113 | # with or without modifications, as long as this notice is preserved. | |
1114 | ||
1115 | # _AM_PROG_CC_C_O | |
1116 | # --------------- | |
1117 | # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC | |
1118 | # to automatically call this. | |
1119 | AC_DEFUN([_AM_PROG_CC_C_O], | |
1120 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
1121 | AC_REQUIRE_AUX_FILE([compile])dnl | |
1122 | AC_LANG_PUSH([C])dnl | |
1123 | AC_CACHE_CHECK( | |
1124 | [whether $CC understands -c and -o together], | |
1125 | [am_cv_prog_cc_c_o], | |
1126 | [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) | |
1127 | # Make sure it works both with $CC and with simple cc. | |
1128 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
1129 | # compilers refuse to overwrite an existing .o file with -o, | |
1130 | # though they will create one. | |
1131 | am_cv_prog_cc_c_o=yes | |
1132 | for am_i in 1 2; do | |
1133 | if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ | |
1134 | && test -f conftest2.$ac_objext; then | |
1135 | : OK | |
1136 | else | |
1137 | am_cv_prog_cc_c_o=no | |
1138 | break | |
1139 | fi | |
1140 | done | |
1141 | rm -f core conftest* | |
1142 | unset am_i]) | |
1143 | if test "$am_cv_prog_cc_c_o" != yes; then | |
1144 | # Losing compiler, so override with the script. | |
1145 | # FIXME: It is wrong to rewrite CC. | |
1146 | # But if we don't then we get into trouble of one sort or another. | |
1147 | # A longer-term fix would be to have automake use am__CC in this case, | |
1148 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
1149 | CC="$am_aux_dir/compile $CC" | |
1150 | fi | |
1151 | AC_LANG_POP([C])]) | |
1152 | ||
1153 | # For backward compatibility. | |
1154 | AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) | |
1155 | ||
1156 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
1157 | # | |
1158 | # This file is free software; the Free Software Foundation | |
1159 | # gives unlimited permission to copy and/or distribute it, | |
1160 | # with or without modifications, as long as this notice is preserved. | |
1161 | ||
1162 | # AM_RUN_LOG(COMMAND) | |
1163 | # ------------------- | |
1164 | # Run COMMAND, save the exit status in ac_status, and log it. | |
1165 | # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) | |
1166 | AC_DEFUN([AM_RUN_LOG], | |
1167 | [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD | |
1168 | ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD | |
1169 | ac_status=$? | |
1170 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
1171 | (exit $ac_status); }]) | |
1172 | ||
1173 | # Check to make sure that the build environment is sane. -*- Autoconf -*- | |
1174 | ||
1175 | # Copyright (C) 1996-2021 Free Software Foundation, Inc. | |
1176 | # | |
1177 | # This file is free software; the Free Software Foundation | |
1178 | # gives unlimited permission to copy and/or distribute it, | |
1179 | # with or without modifications, as long as this notice is preserved. | |
1180 | ||
1181 | # AM_SANITY_CHECK | |
1182 | # --------------- | |
1183 | AC_DEFUN([AM_SANITY_CHECK], | |
1184 | [AC_MSG_CHECKING([whether build environment is sane]) | |
1185 | # Reject unsafe characters in $srcdir or the absolute working directory | |
1186 | # name. Accept space and tab only in the latter. | |
1187 | am_lf=' | |
1188 | ' | |
1189 | case `pwd` in | |
1190 | *[[\\\"\#\$\&\'\`$am_lf]]*) | |
1191 | AC_MSG_ERROR([unsafe absolute working directory name]);; | |
1192 | esac | |
1193 | case $srcdir in | |
1194 | *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |
1195 | AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; | |
1196 | esac | |
1197 | ||
1198 | # Do 'set' in a subshell so we don't clobber the current shell's | |
1199 | # arguments. Must try -L first in case configure is actually a | |
1200 | # symlink; some systems play weird games with the mod time of symlinks | |
1201 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1202 | # directory). | |
1203 | if ( | |
1204 | am_has_slept=no | |
1205 | for am_try in 1 2; do | |
1206 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
1207 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
1208 | if test "$[*]" = "X"; then | |
1209 | # -L didn't work. | |
1210 | set X `ls -t "$srcdir/configure" conftest.file` | |
1211 | fi | |
1212 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
1213 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
1214 | ||
1215 | # If neither matched, then we have a broken ls. This can happen | |
1216 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1217 | # broken ls alias from the environment. This has actually | |
1218 | # happened. Such a system could not be considered "sane". | |
1219 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
1220 | alias in your environment]) | |
1221 | fi | |
1222 | if test "$[2]" = conftest.file || test $am_try -eq 2; then | |
1223 | break | |
1224 | fi | |
1225 | # Just in case. | |
1226 | sleep 1 | |
1227 | am_has_slept=yes | |
1228 | done | |
1229 | test "$[2]" = conftest.file | |
1230 | ) | |
1231 | then | |
1232 | # Ok. | |
1233 | : | |
1234 | else | |
1235 | AC_MSG_ERROR([newly created file is older than distributed files! | |
1236 | Check your system clock]) | |
1237 | fi | |
1238 | AC_MSG_RESULT([yes]) | |
1239 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
1240 | # generated files are strictly newer. | |
1241 | am_sleep_pid= | |
1242 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
1243 | ( sleep 1 ) & | |
1244 | am_sleep_pid=$! | |
1245 | fi | |
1246 | AC_CONFIG_COMMANDS_PRE( | |
1247 | [AC_MSG_CHECKING([that generated files are newer than configure]) | |
1248 | if test -n "$am_sleep_pid"; then | |
1249 | # Hide warnings about reused PIDs. | |
1250 | wait $am_sleep_pid 2>/dev/null | |
1251 | fi | |
1252 | AC_MSG_RESULT([done])]) | |
1253 | rm -f conftest.file | |
1254 | ]) | |
1255 | ||
1256 | # Copyright (C) 2009-2021 Free Software Foundation, Inc. | |
1257 | # | |
1258 | # This file is free software; the Free Software Foundation | |
1259 | # gives unlimited permission to copy and/or distribute it, | |
1260 | # with or without modifications, as long as this notice is preserved. | |
1261 | ||
1262 | # AM_SILENT_RULES([DEFAULT]) | |
1263 | # -------------------------- | |
1264 | # Enable less verbose build rules; with the default set to DEFAULT | |
1265 | # ("yes" being less verbose, "no" or empty being verbose). | |
1266 | AC_DEFUN([AM_SILENT_RULES], | |
1267 | [AC_ARG_ENABLE([silent-rules], [dnl | |
1268 | AS_HELP_STRING( | |
1269 | [--enable-silent-rules], | |
1270 | [less verbose build output (undo: "make V=1")]) | |
1271 | AS_HELP_STRING( | |
1272 | [--disable-silent-rules], | |
1273 | [verbose build output (undo: "make V=0")])dnl | |
1274 | ]) | |
1275 | case $enable_silent_rules in @%:@ ((( | |
1276 | yes) AM_DEFAULT_VERBOSITY=0;; | |
1277 | no) AM_DEFAULT_VERBOSITY=1;; | |
1278 | *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; | |
1279 | esac | |
1280 | dnl | |
1281 | dnl A few 'make' implementations (e.g., NonStop OS and NextStep) | |
1282 | dnl do not support nested variable expansions. | |
1283 | dnl See automake bug#9928 and bug#10237. | |
1284 | am_make=${MAKE-make} | |
1285 | AC_CACHE_CHECK([whether $am_make supports nested variables], | |
1286 | [am_cv_make_support_nested_variables], | |
1287 | [if AS_ECHO([['TRUE=$(BAR$(V)) | |
1288 | BAR0=false | |
1289 | BAR1=true | |
1290 | V=1 | |
1291 | am__doit: | |
1292 | @$(TRUE) | |
1293 | .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then | |
1294 | am_cv_make_support_nested_variables=yes | |
1295 | else | |
1296 | am_cv_make_support_nested_variables=no | |
1297 | fi]) | |
1298 | if test $am_cv_make_support_nested_variables = yes; then | |
1299 | dnl Using '$V' instead of '$(V)' breaks IRIX make. | |
1300 | AM_V='$(V)' | |
1301 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
1302 | else | |
1303 | AM_V=$AM_DEFAULT_VERBOSITY | |
1304 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
1305 | fi | |
1306 | AC_SUBST([AM_V])dnl | |
1307 | AM_SUBST_NOTMAKE([AM_V])dnl | |
1308 | AC_SUBST([AM_DEFAULT_V])dnl | |
1309 | AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl | |
1310 | AC_SUBST([AM_DEFAULT_VERBOSITY])dnl | |
1311 | AM_BACKSLASH='\' | |
1312 | AC_SUBST([AM_BACKSLASH])dnl | |
1313 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl | |
1314 | ]) | |
1315 | ||
1316 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. | |
1317 | # | |
1318 | # This file is free software; the Free Software Foundation | |
1319 | # gives unlimited permission to copy and/or distribute it, | |
1320 | # with or without modifications, as long as this notice is preserved. | |
1321 | ||
1322 | # AM_PROG_INSTALL_STRIP | |
1323 | # --------------------- | |
1324 | # One issue with vendor 'install' (even GNU) is that you can't | |
1325 | # specify the program used to strip binaries. This is especially | |
1326 | # annoying in cross-compiling environments, where the build's strip | |
1327 | # is unlikely to handle the host's binaries. | |
1328 | # Fortunately install-sh will honor a STRIPPROG variable, so we | |
1329 | # always use install-sh in "make install-strip", and initialize | |
1330 | # STRIPPROG with the value of the STRIP variable (set by the user). | |
1331 | AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
1332 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
1333 | # Installed binaries are usually stripped using 'strip' when the user | |
1334 | # run "make install-strip". However 'strip' might not be the right | |
1335 | # tool to use in cross-compilation environments, therefore Automake | |
1336 | # will honor the 'STRIP' environment variable to overrule this program. | |
1337 | dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. | |
1338 | if test "$cross_compiling" != no; then | |
1339 | AC_CHECK_TOOL([STRIP], [strip], :) | |
1340 | fi | |
1341 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
1342 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
1343 | ||
1344 | # Copyright (C) 2006-2021 Free Software Foundation, Inc. | |
1345 | # | |
1346 | # This file is free software; the Free Software Foundation | |
1347 | # gives unlimited permission to copy and/or distribute it, | |
1348 | # with or without modifications, as long as this notice is preserved. | |
1349 | ||
1350 | # _AM_SUBST_NOTMAKE(VARIABLE) | |
1351 | # --------------------------- | |
1352 | # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
1353 | # This macro is traced by Automake. | |
1354 | AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
1355 | ||
1356 | # AM_SUBST_NOTMAKE(VARIABLE) | |
1357 | # -------------------------- | |
1358 | # Public sister of _AM_SUBST_NOTMAKE. | |
1359 | AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |
1360 | ||
1361 | # Check how to create a tarball. -*- Autoconf -*- | |
1362 | ||
1363 | # Copyright (C) 2004-2021 Free Software Foundation, Inc. | |
1364 | # | |
1365 | # This file is free software; the Free Software Foundation | |
1366 | # gives unlimited permission to copy and/or distribute it, | |
1367 | # with or without modifications, as long as this notice is preserved. | |
1368 | ||
1369 | # _AM_PROG_TAR(FORMAT) | |
1370 | # -------------------- | |
1371 | # Check how to create a tarball in format FORMAT. | |
1372 | # FORMAT should be one of 'v7', 'ustar', or 'pax'. | |
1373 | # | |
1374 | # Substitute a variable $(am__tar) that is a command | |
1375 | # writing to stdout a FORMAT-tarball containing the directory | |
1376 | # $tardir. | |
1377 | # tardir=directory && $(am__tar) > result.tar | |
1378 | # | |
1379 | # Substitute a variable $(am__untar) that extract such | |
1380 | # a tarball read from stdin. | |
1381 | # $(am__untar) < result.tar | |
1382 | # | |
1383 | AC_DEFUN([_AM_PROG_TAR], | |
1384 | [# Always define AMTAR for backward compatibility. Yes, it's still used | |
1385 | # in the wild :-( We should find a proper way to deprecate it ... | |
1386 | AC_SUBST([AMTAR], ['$${TAR-tar}']) | |
1387 | ||
1388 | # We'll loop over all known methods to create a tar archive until one works. | |
1389 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
1390 | ||
1391 | m4_if([$1], [v7], | |
1392 | [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | |
1393 | ||
1394 | [m4_case([$1], | |
1395 | [ustar], | |
1396 | [# The POSIX 1988 'ustar' format is defined with fixed-size fields. | |
1397 | # There is notably a 21 bits limit for the UID and the GID. In fact, | |
1398 | # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 | |
1399 | # and bug#13588). | |
1400 | am_max_uid=2097151 # 2^21 - 1 | |
1401 | am_max_gid=$am_max_uid | |
1402 | # The $UID and $GID variables are not portable, so we need to resort | |
1403 | # to the POSIX-mandated id(1) utility. Errors in the 'id' calls | |
1404 | # below are definitely unexpected, so allow the users to see them | |
1405 | # (that is, avoid stderr redirection). | |
1406 | am_uid=`id -u || echo unknown` | |
1407 | am_gid=`id -g || echo unknown` | |
1408 | AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) | |
1409 | if test $am_uid -le $am_max_uid; then | |
1410 | AC_MSG_RESULT([yes]) | |
1411 | else | |
1412 | AC_MSG_RESULT([no]) | |
1413 | _am_tools=none | |
1414 | fi | |
1415 | AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) | |
1416 | if test $am_gid -le $am_max_gid; then | |
1417 | AC_MSG_RESULT([yes]) | |
1418 | else | |
1419 | AC_MSG_RESULT([no]) | |
1420 | _am_tools=none | |
1421 | fi], | |
1422 | ||
1423 | [pax], | |
1424 | [], | |
1425 | ||
1426 | [m4_fatal([Unknown tar format])]) | |
1427 | ||
1428 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
1429 | ||
1430 | # Go ahead even if we have the value already cached. We do so because we | |
1431 | # need to set the values for the 'am__tar' and 'am__untar' variables. | |
1432 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
1433 | ||
1434 | for _am_tool in $_am_tools; do | |
1435 | case $_am_tool in | |
1436 | gnutar) | |
1437 | for _am_tar in tar gnutar gtar; do | |
1438 | AM_RUN_LOG([$_am_tar --version]) && break | |
1439 | done | |
1440 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
1441 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
1442 | am__untar="$_am_tar -xf -" | |
1443 | ;; | |
1444 | plaintar) | |
1445 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
1446 | # ustar tarball either. | |
1447 | (tar --version) >/dev/null 2>&1 && continue | |
1448 | am__tar='tar chf - "$$tardir"' | |
1449 | am__tar_='tar chf - "$tardir"' | |
1450 | am__untar='tar xf -' | |
1451 | ;; | |
1452 | pax) | |
1453 | am__tar='pax -L -x $1 -w "$$tardir"' | |
1454 | am__tar_='pax -L -x $1 -w "$tardir"' | |
1455 | am__untar='pax -r' | |
1456 | ;; | |
1457 | cpio) | |
1458 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
1459 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
1460 | am__untar='cpio -i -H $1 -d' | |
1461 | ;; | |
1462 | none) | |
1463 | am__tar=false | |
1464 | am__tar_=false | |
1465 | am__untar=false | |
1466 | ;; | |
1467 | esac | |
1468 | ||
1469 | # If the value was cached, stop now. We just wanted to have am__tar | |
1470 | # and am__untar set. | |
1471 | test -n "${am_cv_prog_tar_$1}" && break | |
1472 | ||
1473 | # tar/untar a dummy directory, and stop if the command works. | |
1474 | rm -rf conftest.dir | |
1475 | mkdir conftest.dir | |
1476 | echo GrepMe > conftest.dir/file | |
1477 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
1478 | rm -rf conftest.dir | |
1479 | if test -s conftest.tar; then | |
1480 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
1481 | AM_RUN_LOG([cat conftest.dir/file]) | |
1482 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
1483 | fi | |
1484 | done | |
1485 | rm -rf conftest.dir | |
1486 | ||
1487 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
1488 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
1489 | ||
1490 | AC_SUBST([am__tar]) | |
1491 | AC_SUBST([am__untar]) | |
1492 | ]) # _AM_PROG_TAR | |
1493 |
0 | #!/bin/bash | |
1 | ||
2 | set -e | |
3 | ||
4 | rm -rf config.cache autom4te*.cache | |
5 | #autoreconf --install | |
6 | ||
7 | case `uname` in | |
8 | Darwin*) | |
9 | glibtoolize --automake ;; | |
10 | *) | |
11 | libtoolize --automake ;; | |
12 | esac | |
13 | ||
14 | aclocal | |
15 | autoconf | |
16 | autoheader | |
17 | automake --add-missing |
0 | #! /bin/sh | |
1 | # Wrapper for compilers which do not understand '-c -o'. | |
2 | ||
3 | scriptversion=2018-03-07.03; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
6 | # Written by Tom Tromey <[email protected]>. | |
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 <https://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 <[email protected]> or send patches to | |
28 | # <[email protected]>. | |
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* | MSYS*) | |
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/* | msys/*) | |
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 <[email protected]>. | |
250 | EOF | |
251 | exit $? | |
252 | ;; | |
253 | -v | --v*) | |
254 | echo "compile $scriptversion" | |
255 | exit $? | |
256 | ;; | |
257 | cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ | |
258 | icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) | |
259 | func_cl_wrapper "$@" # Doesn't return... | |
260 | ;; | |
261 | esac | |
262 | ||
263 | ofile= | |
264 | cfile= | |
265 | ||
266 | for arg | |
267 | do | |
268 | if test -n "$eat"; then | |
269 | eat= | |
270 | else | |
271 | case $1 in | |
272 | -o) | |
273 | # configure might choose to run compile as 'compile cc -o foo foo.c'. | |
274 | # So we strip '-o arg' only if arg is an object. | |
275 | eat=1 | |
276 | case $2 in | |
277 | *.o | *.obj) | |
278 | ofile=$2 | |
279 | ;; | |
280 | *) | |
281 | set x "$@" -o "$2" | |
282 | shift | |
283 | ;; | |
284 | esac | |
285 | ;; | |
286 | *.c) | |
287 | cfile=$1 | |
288 | set x "$@" "$1" | |
289 | shift | |
290 | ;; | |
291 | *) | |
292 | set x "$@" "$1" | |
293 | shift | |
294 | ;; | |
295 | esac | |
296 | fi | |
297 | shift | |
298 | done | |
299 | ||
300 | if test -z "$ofile" || test -z "$cfile"; then | |
301 | # If no '-o' option was seen then we might have been invoked from a | |
302 | # pattern rule where we don't need one. That is ok -- this is a | |
303 | # normal compilation that the losing compiler can handle. If no | |
304 | # '.c' file was seen then we are probably linking. That is also | |
305 | # ok. | |
306 | exec "$@" | |
307 | fi | |
308 | ||
309 | # Name of file we expect compiler to create. | |
310 | cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` | |
311 | ||
312 | # Create the lock directory. | |
313 | # Note: use '[/\\:.-]' here to ensure that we don't use the same name | |
314 | # that we are using for the .o file. Also, base the name on the expected | |
315 | # object file name, since that is what matters with a parallel build. | |
316 | lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d | |
317 | while true; do | |
318 | if mkdir "$lockdir" >/dev/null 2>&1; then | |
319 | break | |
320 | fi | |
321 | sleep 1 | |
322 | done | |
323 | # FIXME: race condition here if user kills between mkdir and trap. | |
324 | trap "rmdir '$lockdir'; exit 1" 1 2 15 | |
325 | ||
326 | # Run the compile. | |
327 | "$@" | |
328 | ret=$? | |
329 | ||
330 | if test -f "$cofile"; then | |
331 | test "$cofile" = "$ofile" || mv "$cofile" "$ofile" | |
332 | elif test -f "${cofile}bj"; then | |
333 | test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" | |
334 | fi | |
335 | ||
336 | rmdir "$lockdir" | |
337 | exit $ret | |
338 | ||
339 | # Local Variables: | |
340 | # mode: shell-script | |
341 | # sh-indentation: 2 | |
342 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
343 | # time-stamp-start: "scriptversion=" | |
344 | # time-stamp-format: "%:y-%02m-%02d.%02H" | |
345 | # time-stamp-time-zone: "UTC0" | |
346 | # time-stamp-end: "; # UTC" | |
347 | # End: |
0 | #! /bin/sh | |
1 | # Attempt to guess a canonical system name. | |
2 | # Copyright 1992-2022 Free Software Foundation, Inc. | |
3 | ||
4 | # shellcheck disable=SC2006,SC2268 # see below for rationale | |
5 | ||
6 | timestamp='2022-01-09' | |
7 | ||
8 | # This file is free software; you can redistribute it and/or modify it | |
9 | # under the terms of the GNU General Public License as published by | |
10 | # the Free Software Foundation, either version 3 of the License, or | |
11 | # (at your option) any later version. | |
12 | # | |
13 | # This program is distributed in the hope that it will be useful, but | |
14 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | # 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 <https://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 | |
25 | # program. This Exception is an additional permission under section 7 | |
26 | # of the GNU General Public License, version 3 ("GPLv3"). | |
27 | # | |
28 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. | |
29 | # | |
30 | # You can get the latest version of this script from: | |
31 | # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess | |
32 | # | |
33 | # Please send patches to <[email protected]>. | |
34 | ||
35 | ||
36 | # The "shellcheck disable" line above the timestamp inhibits complaints | |
37 | # about features and limitations of the classic Bourne shell that were | |
38 | # superseded or lifted in POSIX. However, this script identifies a wide | |
39 | # variety of pre-POSIX systems that do not have POSIX shells at all, and | |
40 | # even some reasonably current systems (Solaris 10 as case-in-point) still | |
41 | # have a pre-POSIX /bin/sh. | |
42 | ||
43 | ||
44 | me=`echo "$0" | sed -e 's,.*/,,'` | |
45 | ||
46 | usage="\ | |
47 | Usage: $0 [OPTION] | |
48 | ||
49 | Output the configuration name of the system \`$me' is run on. | |
50 | ||
51 | Options: | |
52 | -h, --help print this help, then exit | |
53 | -t, --time-stamp print date of last modification, then exit | |
54 | -v, --version print version number, then exit | |
55 | ||
56 | Report bugs and patches to <[email protected]>." | |
57 | ||
58 | version="\ | |
59 | GNU config.guess ($timestamp) | |
60 | ||
61 | Originally written by Per Bothner. | |
62 | Copyright 1992-2022 Free Software Foundation, Inc. | |
63 | ||
64 | This is free software; see the source for copying conditions. There is NO | |
65 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | |
66 | ||
67 | help=" | |
68 | Try \`$me --help' for more information." | |
69 | ||
70 | # Parse command line | |
71 | while test $# -gt 0 ; do | |
72 | case $1 in | |
73 | --time-stamp | --time* | -t ) | |
74 | echo "$timestamp" ; exit ;; | |
75 | --version | -v ) | |
76 | echo "$version" ; exit ;; | |
77 | --help | --h* | -h ) | |
78 | echo "$usage"; exit ;; | |
79 | -- ) # Stop option processing | |
80 | shift; break ;; | |
81 | - ) # Use stdin as input. | |
82 | break ;; | |
83 | -* ) | |
84 | echo "$me: invalid option $1$help" >&2 | |
85 | exit 1 ;; | |
86 | * ) | |
87 | break ;; | |
88 | esac | |
89 | done | |
90 | ||
91 | if test $# != 0; then | |
92 | echo "$me: too many arguments$help" >&2 | |
93 | exit 1 | |
94 | fi | |
95 | ||
96 | # Just in case it came from the environment. | |
97 | GUESS= | |
98 | ||
99 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a | |
100 | # compiler to aid in system detection is discouraged as it requires | |
101 | # temporary files to be created and, as you can see below, it is a | |
102 | # headache to deal with in a portable fashion. | |
103 | ||
104 | # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still | |
105 | # use `HOST_CC' if defined, but it is deprecated. | |
106 | ||
107 | # Portable tmp directory creation inspired by the Autoconf team. | |
108 | ||
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 | } | |
139 | ||
140 | # This is needed to find uname on a Pyramid OSx when run in the BSD universe. | |
141 | # ([email protected] 1994-08-24) | |
142 | if test -f /.attbin/uname ; then | |
143 | PATH=$PATH:/.attbin ; export PATH | |
144 | fi | |
145 | ||
146 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown | |
147 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown | |
148 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown | |
149 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown | |
150 | ||
151 | case $UNAME_SYSTEM in | |
152 | Linux|GNU|GNU/*) | |
153 | LIBC=unknown | |
154 | ||
155 | set_cc_for_build | |
156 | cat <<-EOF > "$dummy.c" | |
157 | #include <features.h> | |
158 | #if defined(__UCLIBC__) | |
159 | LIBC=uclibc | |
160 | #elif defined(__dietlibc__) | |
161 | LIBC=dietlibc | |
162 | #elif defined(__GLIBC__) | |
163 | LIBC=gnu | |
164 | #else | |
165 | #include <stdarg.h> | |
166 | /* First heuristic to detect musl libc. */ | |
167 | #ifdef __DEFINED_va_list | |
168 | LIBC=musl | |
169 | #endif | |
170 | #endif | |
171 | EOF | |
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 | |
187 | ;; | |
188 | esac | |
189 | ||
190 | # Note: order is significant - the case branches are not exclusive. | |
191 | ||
192 | case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in | |
193 | *:NetBSD:*:*) | |
194 | # NetBSD (nbsd) targets should (where applicable) match one or | |
195 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, | |
196 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | |
197 | # switched to ELF, *-*-netbsd* would select the old | |
198 | # object file format. This provides both forward | |
199 | # compatibility and a consistent mechanism for selecting the | |
200 | # object file format. | |
201 | # | |
202 | # Note: NetBSD doesn't particularly care about the vendor | |
203 | # portion of the name. We always set it to "unknown". | |
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 ;; | |
210 | armeb) machine=armeb-unknown ;; | |
211 | arm*) machine=arm-unknown ;; | |
212 | sh3el) machine=shl-unknown ;; | |
213 | sh3eb) machine=sh-unknown ;; | |
214 | sh5el) machine=sh5le-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 ;; | |
221 | esac | |
222 | # The Operating System including object format, if it has switched | |
223 | # to ELF recently (or will in the future) and ABI. | |
224 | case $UNAME_MACHINE_ARCH in | |
225 | earm*) | |
226 | os=netbsdelf | |
227 | ;; | |
228 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) | |
229 | set_cc_for_build | |
230 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |
231 | | grep -q __ELF__ | |
232 | then | |
233 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). | |
234 | # Return netbsd for either. FIX? | |
235 | os=netbsd | |
236 | else | |
237 | os=netbsdelf | |
238 | fi | |
239 | ;; | |
240 | *) | |
241 | os=netbsd | |
242 | ;; | |
243 | 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 | |
251 | # The OS release | |
252 | # Debian GNU/NetBSD machines have a different userland, and | |
253 | # thus, need a distinct triplet. However, they do not need | |
254 | # kernel version information, so it can be replaced with a | |
255 | # suitable tag, in the style of linux-gnu. | |
256 | case $UNAME_VERSION in | |
257 | Debian*) | |
258 | release='-gnu' | |
259 | ;; | |
260 | *) | |
261 | release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` | |
262 | ;; | |
263 | esac | |
264 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | |
265 | # contains redundant information, the shorter form: | |
266 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | |
267 | GUESS=$machine-${os}${release}${abi-} | |
268 | ;; | |
269 | *:Bitrig:*:*) | |
270 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` | |
271 | GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE | |
272 | ;; | |
273 | *:OpenBSD:*:*) | |
274 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | |
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 | ;; | |
288 | *:ekkoBSD:*:*) | |
289 | GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE | |
290 | ;; | |
291 | *:SolidBSD:*:*) | |
292 | GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE | |
293 | ;; | |
294 | *:OS108:*:*) | |
295 | GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE | |
296 | ;; | |
297 | macppc:MirBSD:*:*) | |
298 | GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE | |
299 | ;; | |
300 | *:MirBSD:*:*) | |
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 | ;; | |
315 | alpha:OSF1:*:*) | |
316 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. | |
317 | trap '' 0 | |
318 | case $UNAME_RELEASE in | |
319 | *4.0) | |
320 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` | |
321 | ;; | |
322 | *5.*) | |
323 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | |
324 | ;; | |
325 | esac | |
326 | # According to Compaq, /usr/sbin/psrinfo has been available on | |
327 | # OSF/1 and Tru64 systems produced since 1995. I hope that | |
328 | # covers most systems running today. This code pipes the CPU | |
329 | # types through head -n 1, so we only detect the type of CPU 0. | |
330 | ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` | |
331 | case $ALPHA_CPU_TYPE in | |
332 | "EV4 (21064)") | |
333 | UNAME_MACHINE=alpha ;; | |
334 | "EV4.5 (21064)") | |
335 | UNAME_MACHINE=alpha ;; | |
336 | "LCA4 (21066/21068)") | |
337 | UNAME_MACHINE=alpha ;; | |
338 | "EV5 (21164)") | |
339 | UNAME_MACHINE=alphaev5 ;; | |
340 | "EV5.6 (21164A)") | |
341 | UNAME_MACHINE=alphaev56 ;; | |
342 | "EV5.6 (21164PC)") | |
343 | UNAME_MACHINE=alphapca56 ;; | |
344 | "EV5.7 (21164PC)") | |
345 | UNAME_MACHINE=alphapca57 ;; | |
346 | "EV6 (21264)") | |
347 | UNAME_MACHINE=alphaev6 ;; | |
348 | "EV6.7 (21264A)") | |
349 | UNAME_MACHINE=alphaev67 ;; | |
350 | "EV6.8CB (21264C)") | |
351 | UNAME_MACHINE=alphaev68 ;; | |
352 | "EV6.8AL (21264B)") | |
353 | UNAME_MACHINE=alphaev68 ;; | |
354 | "EV6.8CX (21264D)") | |
355 | UNAME_MACHINE=alphaev68 ;; | |
356 | "EV6.9A (21264/EV69A)") | |
357 | UNAME_MACHINE=alphaev69 ;; | |
358 | "EV7 (21364)") | |
359 | UNAME_MACHINE=alphaev7 ;; | |
360 | "EV7.9 (21364A)") | |
361 | UNAME_MACHINE=alphaev79 ;; | |
362 | esac | |
363 | # A Pn.n version is a patched version. | |
364 | # A Vn.n version is a released version. | |
365 | # A Tn.n version is a released field test version. | |
366 | # A Xn.n version is an unreleased experimental baselevel. | |
367 | # 1.2 uses "1.2" for uname -r. | |
368 | OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` | |
369 | GUESS=$UNAME_MACHINE-dec-osf$OSF_REL | |
370 | ;; | |
371 | Amiga*:UNIX_System_V:4.0:*) | |
372 | GUESS=m68k-unknown-sysv4 | |
373 | ;; | |
374 | *:[Aa]miga[Oo][Ss]:*:*) | |
375 | GUESS=$UNAME_MACHINE-unknown-amigaos | |
376 | ;; | |
377 | *:[Mm]orph[Oo][Ss]:*:*) | |
378 | GUESS=$UNAME_MACHINE-unknown-morphos | |
379 | ;; | |
380 | *:OS/390:*:*) | |
381 | GUESS=i370-ibm-openedition | |
382 | ;; | |
383 | *:z/VM:*:*) | |
384 | GUESS=s390-ibm-zvmoe | |
385 | ;; | |
386 | *:OS400:*:*) | |
387 | GUESS=powerpc-ibm-os400 | |
388 | ;; | |
389 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | |
390 | GUESS=arm-acorn-riscix$UNAME_RELEASE | |
391 | ;; | |
392 | arm*:riscos:*:*|arm*:RISCOS:*:*) | |
393 | GUESS=arm-unknown-riscos | |
394 | ;; | |
395 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) | |
396 | GUESS=hppa1.1-hitachi-hiuxmpp | |
397 | ;; | |
398 | Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) | |
399 | # [email protected] (Earle F. Ake) contributed MIS and NILE. | |
400 | case `(/bin/universe) 2>/dev/null` in | |
401 | att) GUESS=pyramid-pyramid-sysv3 ;; | |
402 | *) GUESS=pyramid-pyramid-bsd ;; | |
403 | esac | |
404 | ;; | |
405 | NILE*:*:*:dcosx) | |
406 | GUESS=pyramid-pyramid-svr4 | |
407 | ;; | |
408 | DRS?6000:unix:4.0:6*) | |
409 | GUESS=sparc-icl-nx6 | |
410 | ;; | |
411 | DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) | |
412 | case `/usr/bin/uname -p` in | |
413 | sparc) GUESS=sparc-icl-nx7 ;; | |
414 | esac | |
415 | ;; | |
416 | s390x:SunOS:*:*) | |
417 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` | |
418 | GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL | |
419 | ;; | |
420 | sun4H:SunOS:5.*:*) | |
421 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` | |
422 | GUESS=sparc-hal-solaris2$SUN_REL | |
423 | ;; | |
424 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | |
425 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` | |
426 | GUESS=sparc-sun-solaris2$SUN_REL | |
427 | ;; | |
428 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) | |
429 | GUESS=i386-pc-auroraux$UNAME_RELEASE | |
430 | ;; | |
431 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) | |
432 | set_cc_for_build | |
433 | SUN_ARCH=i386 | |
434 | # If there is a compiler, see if it is configured for 64-bit objects. | |
435 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. | |
436 | # This test works for both compilers. | |
437 | if test "$CC_FOR_BUILD" != no_compiler_found; then | |
438 | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
439 | (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ | |
440 | grep IS_64BIT_ARCH >/dev/null | |
441 | then | |
442 | SUN_ARCH=x86_64 | |
443 | fi | |
444 | fi | |
445 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` | |
446 | GUESS=$SUN_ARCH-pc-solaris2$SUN_REL | |
447 | ;; | |
448 | sun4*:SunOS:6*:*) | |
449 | # According to config.sub, this is the proper way to canonicalize | |
450 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but | |
451 | # it's likely to be more like Solaris than SunOS4. | |
452 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` | |
453 | GUESS=sparc-sun-solaris3$SUN_REL | |
454 | ;; | |
455 | sun4*:SunOS:*:*) | |
456 | case `/usr/bin/arch -k` in | |
457 | Series*|S4*) | |
458 | UNAME_RELEASE=`uname -v` | |
459 | ;; | |
460 | esac | |
461 | # Japanese Language versions have a version number like `4.1.3-JL'. | |
462 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` | |
463 | GUESS=sparc-sun-sunos$SUN_REL | |
464 | ;; | |
465 | sun3*:SunOS:*:*) | |
466 | GUESS=m68k-sun-sunos$UNAME_RELEASE | |
467 | ;; | |
468 | sun*:*:4.2BSD:*) | |
469 | UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` | |
470 | test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 | |
471 | case `/bin/arch` in | |
472 | sun3) | |
473 | GUESS=m68k-sun-sunos$UNAME_RELEASE | |
474 | ;; | |
475 | sun4) | |
476 | GUESS=sparc-sun-sunos$UNAME_RELEASE | |
477 | ;; | |
478 | esac | |
479 | ;; | |
480 | aushp:SunOS:*:*) | |
481 | GUESS=sparc-auspex-sunos$UNAME_RELEASE | |
482 | ;; | |
483 | # The situation for MiNT is a little confusing. The machine name | |
484 | # can be virtually everything (everything which is not | |
485 | # "atarist" or "atariste" at least should have a processor | |
486 | # > m68000). The system name ranges from "MiNT" over "FreeMiNT" | |
487 | # to the lowercase version "mint" (or "freemint"). Finally | |
488 | # the system name "TOS" denotes a system which is actually not | |
489 | # MiNT. But MiNT is downward compatible to TOS, so this should | |
490 | # be no problem. | |
491 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) | |
492 | GUESS=m68k-atari-mint$UNAME_RELEASE | |
493 | ;; | |
494 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) | |
495 | GUESS=m68k-atari-mint$UNAME_RELEASE | |
496 | ;; | |
497 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) | |
498 | GUESS=m68k-atari-mint$UNAME_RELEASE | |
499 | ;; | |
500 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) | |
501 | GUESS=m68k-milan-mint$UNAME_RELEASE | |
502 | ;; | |
503 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) | |
504 | GUESS=m68k-hades-mint$UNAME_RELEASE | |
505 | ;; | |
506 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | |
507 | GUESS=m68k-unknown-mint$UNAME_RELEASE | |
508 | ;; | |
509 | m68k:machten:*:*) | |
510 | GUESS=m68k-apple-machten$UNAME_RELEASE | |
511 | ;; | |
512 | powerpc:machten:*:*) | |
513 | GUESS=powerpc-apple-machten$UNAME_RELEASE | |
514 | ;; | |
515 | RISC*:Mach:*:*) | |
516 | GUESS=mips-dec-mach_bsd4.3 | |
517 | ;; | |
518 | RISC*:ULTRIX:*:*) | |
519 | GUESS=mips-dec-ultrix$UNAME_RELEASE | |
520 | ;; | |
521 | VAX*:ULTRIX*:*:*) | |
522 | GUESS=vax-dec-ultrix$UNAME_RELEASE | |
523 | ;; | |
524 | 2020:CLIX:*:* | 2430:CLIX:*:*) | |
525 | GUESS=clipper-intergraph-clix$UNAME_RELEASE | |
526 | ;; | |
527 | mips:*:*:UMIPS | mips:*:*:RISCos) | |
528 | set_cc_for_build | |
529 | sed 's/^ //' << EOF > "$dummy.c" | |
530 | #ifdef __cplusplus | |
531 | #include <stdio.h> /* for printf() prototype */ | |
532 | int main (int argc, char *argv[]) { | |
533 | #else | |
534 | int main (argc, argv) int argc; char *argv[]; { | |
535 | #endif | |
536 | #if defined (host_mips) && defined (MIPSEB) | |
537 | #if defined (SYSTYPE_SYSV) | |
538 | printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); | |
539 | #endif | |
540 | #if defined (SYSTYPE_SVR4) | |
541 | printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); | |
542 | #endif | |
543 | #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) | |
544 | printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); | |
545 | #endif | |
546 | #endif | |
547 | exit (-1); | |
548 | } | |
549 | EOF | |
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"` && | |
553 | { echo "$SYSTEM_NAME"; exit; } | |
554 | GUESS=mips-mips-riscos$UNAME_RELEASE | |
555 | ;; | |
556 | Motorola:PowerMAX_OS:*:*) | |
557 | GUESS=powerpc-motorola-powermax | |
558 | ;; | |
559 | Motorola:*:4.3:PL8-*) | |
560 | GUESS=powerpc-harris-powermax | |
561 | ;; | |
562 | Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) | |
563 | GUESS=powerpc-harris-powermax | |
564 | ;; | |
565 | Night_Hawk:Power_UNIX:*:*) | |
566 | GUESS=powerpc-harris-powerunix | |
567 | ;; | |
568 | m88k:CX/UX:7*:*) | |
569 | GUESS=m88k-harris-cxux7 | |
570 | ;; | |
571 | m88k:*:4*:R4*) | |
572 | GUESS=m88k-motorola-sysv4 | |
573 | ;; | |
574 | m88k:*:3*:R3*) | |
575 | GUESS=m88k-motorola-sysv3 | |
576 | ;; | |
577 | AViiON:dgux:*:*) | |
578 | # DG/UX returns AViiON for all architectures | |
579 | UNAME_PROCESSOR=`/usr/bin/uname -p` | |
580 | if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 | |
581 | then | |
582 | if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ | |
583 | test "$TARGET_BINARY_INTERFACE"x = x | |
584 | then | |
585 | GUESS=m88k-dg-dgux$UNAME_RELEASE | |
586 | else | |
587 | GUESS=m88k-dg-dguxbcs$UNAME_RELEASE | |
588 | fi | |
589 | else | |
590 | GUESS=i586-dg-dgux$UNAME_RELEASE | |
591 | fi | |
592 | ;; | |
593 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) | |
594 | GUESS=m88k-dolphin-sysv3 | |
595 | ;; | |
596 | M88*:*:R3*:*) | |
597 | # Delta 88k system running SVR3 | |
598 | GUESS=m88k-motorola-sysv3 | |
599 | ;; | |
600 | XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) | |
601 | GUESS=m88k-tektronix-sysv3 | |
602 | ;; | |
603 | Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) | |
604 | GUESS=m68k-tektronix-bsd | |
605 | ;; | |
606 | *:IRIX*:*:*) | |
607 | IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` | |
608 | GUESS=mips-sgi-irix$IRIX_REL | |
609 | ;; | |
610 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. | |
611 | GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id | |
612 | ;; # Note that: echo "'`uname -s`'" gives 'AIX ' | |
613 | i*86:AIX:*:*) | |
614 | GUESS=i386-ibm-aix | |
615 | ;; | |
616 | ia64:AIX:*:*) | |
617 | if test -x /usr/bin/oslevel ; then | |
618 | IBM_REV=`/usr/bin/oslevel` | |
619 | else | |
620 | IBM_REV=$UNAME_VERSION.$UNAME_RELEASE | |
621 | fi | |
622 | GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV | |
623 | ;; | |
624 | *:AIX:2:3) | |
625 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then | |
626 | set_cc_for_build | |
627 | sed 's/^ //' << EOF > "$dummy.c" | |
628 | #include <sys/systemcfg.h> | |
629 | ||
630 | main() | |
631 | { | |
632 | if (!__power_pc()) | |
633 | exit(1); | |
634 | puts("powerpc-ibm-aix3.2.5"); | |
635 | exit(0); | |
636 | } | |
637 | EOF | |
638 | if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` | |
639 | then | |
640 | GUESS=$SYSTEM_NAME | |
641 | else | |
642 | GUESS=rs6000-ibm-aix3.2.5 | |
643 | fi | |
644 | elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then | |
645 | GUESS=rs6000-ibm-aix3.2.4 | |
646 | else | |
647 | GUESS=rs6000-ibm-aix3.2 | |
648 | fi | |
649 | ;; | |
650 | *:AIX:*:[4567]) | |
651 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | |
652 | if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then | |
653 | IBM_ARCH=rs6000 | |
654 | else | |
655 | IBM_ARCH=powerpc | |
656 | fi | |
657 | if test -x /usr/bin/lslpp ; then | |
658 | IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ | |
659 | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` | |
660 | else | |
661 | IBM_REV=$UNAME_VERSION.$UNAME_RELEASE | |
662 | fi | |
663 | GUESS=$IBM_ARCH-ibm-aix$IBM_REV | |
664 | ;; | |
665 | *:AIX:*:*) | |
666 | GUESS=rs6000-ibm-aix | |
667 | ;; | |
668 | ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) | |
669 | GUESS=romp-ibm-bsd4.4 | |
670 | ;; | |
671 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and | |
672 | GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to | |
673 | ;; # report: romp-ibm BSD 4.3 | |
674 | *:BOSX:*:*) | |
675 | GUESS=rs6000-bull-bosx | |
676 | ;; | |
677 | DPX/2?00:B.O.S.:*:*) | |
678 | GUESS=m68k-bull-sysv3 | |
679 | ;; | |
680 | 9000/[34]??:4.3bsd:1.*:*) | |
681 | GUESS=m68k-hp-bsd | |
682 | ;; | |
683 | hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) | |
684 | GUESS=m68k-hp-bsd4.4 | |
685 | ;; | |
686 | 9000/[34678]??:HP-UX:*:*) | |
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 ;; | |
691 | 9000/[678][0-9][0-9]) | |
692 | if test -x /usr/bin/getconf; then | |
693 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | |
694 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | |
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 | |
698 | 532) # CPU_PA_RISC2_0 | |
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 | |
703 | esac ;; | |
704 | esac | |
705 | fi | |
706 | if test "$HP_ARCH" = ""; then | |
707 | set_cc_for_build | |
708 | sed 's/^ //' << EOF > "$dummy.c" | |
709 | ||
710 | #define _HPUX_SOURCE | |
711 | #include <stdlib.h> | |
712 | #include <unistd.h> | |
713 | ||
714 | int main () | |
715 | { | |
716 | #if defined(_SC_KERNEL_BITS) | |
717 | long bits = sysconf(_SC_KERNEL_BITS); | |
718 | #endif | |
719 | long cpu = sysconf (_SC_CPU_VERSION); | |
720 | ||
721 | switch (cpu) | |
722 | { | |
723 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | |
724 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | |
725 | case CPU_PA_RISC2_0: | |
726 | #if defined(_SC_KERNEL_BITS) | |
727 | switch (bits) | |
728 | { | |
729 | case 64: puts ("hppa2.0w"); break; | |
730 | case 32: puts ("hppa2.0n"); break; | |
731 | default: puts ("hppa2.0"); break; | |
732 | } break; | |
733 | #else /* !defined(_SC_KERNEL_BITS) */ | |
734 | puts ("hppa2.0"); break; | |
735 | #endif | |
736 | default: puts ("hppa1.0"); break; | |
737 | } | |
738 | exit (0); | |
739 | } | |
740 | EOF | |
741 | (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` | |
742 | test -z "$HP_ARCH" && HP_ARCH=hppa | |
743 | fi ;; | |
744 | esac | |
745 | if test "$HP_ARCH" = hppa2.0w | |
746 | then | |
747 | set_cc_for_build | |
748 | ||
749 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating | |
750 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler | |
751 | # generating 64-bit code. GNU and HP use different nomenclature: | |
752 | # | |
753 | # $ CC_FOR_BUILD=cc ./config.guess | |
754 | # => hppa2.0w-hp-hpux11.23 | |
755 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess | |
756 | # => hppa64-hp-hpux11.23 | |
757 | ||
758 | if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | | |
759 | grep -q __LP64__ | |
760 | then | |
761 | HP_ARCH=hppa2.0w | |
762 | else | |
763 | HP_ARCH=hppa64 | |
764 | fi | |
765 | fi | |
766 | GUESS=$HP_ARCH-hp-hpux$HPUX_REV | |
767 | ;; | |
768 | ia64:HP-UX:*:*) | |
769 | HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` | |
770 | GUESS=ia64-hp-hpux$HPUX_REV | |
771 | ;; | |
772 | 3050*:HI-UX:*:*) | |
773 | set_cc_for_build | |
774 | sed 's/^ //' << EOF > "$dummy.c" | |
775 | #include <unistd.h> | |
776 | int | |
777 | main () | |
778 | { | |
779 | long cpu = sysconf (_SC_CPU_VERSION); | |
780 | /* The order matters, because CPU_IS_HP_MC68K erroneously returns | |
781 | true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct | |
782 | results, however. */ | |
783 | if (CPU_IS_PA_RISC (cpu)) | |
784 | { | |
785 | switch (cpu) | |
786 | { | |
787 | case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; | |
788 | case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; | |
789 | case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; | |
790 | default: puts ("hppa-hitachi-hiuxwe2"); break; | |
791 | } | |
792 | } | |
793 | else if (CPU_IS_HP_MC68K (cpu)) | |
794 | puts ("m68k-hitachi-hiuxwe2"); | |
795 | else puts ("unknown-hitachi-hiuxwe2"); | |
796 | exit (0); | |
797 | } | |
798 | EOF | |
799 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && | |
800 | { echo "$SYSTEM_NAME"; exit; } | |
801 | GUESS=unknown-hitachi-hiuxwe2 | |
802 | ;; | |
803 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) | |
804 | GUESS=hppa1.1-hp-bsd | |
805 | ;; | |
806 | 9000/8??:4.3bsd:*:*) | |
807 | GUESS=hppa1.0-hp-bsd | |
808 | ;; | |
809 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) | |
810 | GUESS=hppa1.0-hp-mpeix | |
811 | ;; | |
812 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) | |
813 | GUESS=hppa1.1-hp-osf | |
814 | ;; | |
815 | hp8??:OSF1:*:*) | |
816 | GUESS=hppa1.0-hp-osf | |
817 | ;; | |
818 | i*86:OSF1:*:*) | |
819 | if test -x /usr/sbin/sysversion ; then | |
820 | GUESS=$UNAME_MACHINE-unknown-osf1mk | |
821 | else | |
822 | GUESS=$UNAME_MACHINE-unknown-osf1 | |
823 | fi | |
824 | ;; | |
825 | parisc*:Lites*:*:*) | |
826 | GUESS=hppa1.1-hp-lites | |
827 | ;; | |
828 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) | |
829 | GUESS=c1-convex-bsd | |
830 | ;; | |
831 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) | |
832 | if getsysinfo -f scalar_acc | |
833 | then echo c32-convex-bsd | |
834 | else echo c2-convex-bsd | |
835 | fi | |
836 | exit ;; | |
837 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) | |
838 | GUESS=c34-convex-bsd | |
839 | ;; | |
840 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) | |
841 | GUESS=c38-convex-bsd | |
842 | ;; | |
843 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) | |
844 | GUESS=c4-convex-bsd | |
845 | ;; | |
846 | CRAY*Y-MP:*:*:*) | |
847 | CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` | |
848 | GUESS=ymp-cray-unicos$CRAY_REL | |
849 | ;; | |
850 | CRAY*[A-Z]90:*:*:*) | |
851 | echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | |
852 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ | |
853 | -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ | |
854 | -e 's/\.[^.]*$/.X/' | |
855 | exit ;; | |
856 | CRAY*TS:*:*:*) | |
857 | CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` | |
858 | GUESS=t90-cray-unicos$CRAY_REL | |
859 | ;; | |
860 | CRAY*T3E:*:*:*) | |
861 | CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` | |
862 | GUESS=alphaev5-cray-unicosmk$CRAY_REL | |
863 | ;; | |
864 | CRAY*SV1:*:*:*) | |
865 | CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` | |
866 | GUESS=sv1-cray-unicos$CRAY_REL | |
867 | ;; | |
868 | *:UNICOS/mp:*:*) | |
869 | CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` | |
870 | GUESS=craynv-cray-unicosmp$CRAY_REL | |
871 | ;; | |
872 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) | |
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 | ;; | |
878 | 5000:UNIX_System_V:4.*:*) | |
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 | ;; | |
883 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) | |
884 | GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE | |
885 | ;; | |
886 | sparc*:BSD/OS:*:*) | |
887 | GUESS=sparc-unknown-bsdi$UNAME_RELEASE | |
888 | ;; | |
889 | *:BSD/OS:*:*) | |
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 | ;; | |
905 | *:FreeBSD:*:*) | |
906 | UNAME_PROCESSOR=`/usr/bin/uname -p` | |
907 | case $UNAME_PROCESSOR in | |
908 | amd64) | |
909 | UNAME_PROCESSOR=x86_64 ;; | |
910 | i386) | |
911 | UNAME_PROCESSOR=i586 ;; | |
912 | esac | |
913 | FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` | |
914 | GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL | |
915 | ;; | |
916 | i*:CYGWIN*:*) | |
917 | GUESS=$UNAME_MACHINE-pc-cygwin | |
918 | ;; | |
919 | *:MINGW64*:*) | |
920 | GUESS=$UNAME_MACHINE-pc-mingw64 | |
921 | ;; | |
922 | *:MINGW*:*) | |
923 | GUESS=$UNAME_MACHINE-pc-mingw32 | |
924 | ;; | |
925 | *:MSYS*:*) | |
926 | GUESS=$UNAME_MACHINE-pc-msys | |
927 | ;; | |
928 | i*:PW*:*) | |
929 | GUESS=$UNAME_MACHINE-pc-pw32 | |
930 | ;; | |
931 | *:SerenityOS:*:*) | |
932 | GUESS=$UNAME_MACHINE-pc-serenity | |
933 | ;; | |
934 | *:Interix*:*) | |
935 | case $UNAME_MACHINE in | |
936 | x86) | |
937 | GUESS=i586-pc-interix$UNAME_RELEASE | |
938 | ;; | |
939 | authenticamd | genuineintel | EM64T) | |
940 | GUESS=x86_64-unknown-interix$UNAME_RELEASE | |
941 | ;; | |
942 | IA64) | |
943 | GUESS=ia64-unknown-interix$UNAME_RELEASE | |
944 | ;; | |
945 | esac ;; | |
946 | i*:UWIN*:*) | |
947 | GUESS=$UNAME_MACHINE-pc-uwin | |
948 | ;; | |
949 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) | |
950 | GUESS=x86_64-pc-cygwin | |
951 | ;; | |
952 | prep*:SunOS:5.*:*) | |
953 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` | |
954 | GUESS=powerpcle-unknown-solaris2$SUN_REL | |
955 | ;; | |
956 | *:GNU:*:*) | |
957 | # the GNU system | |
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 | ;; | |
962 | *:GNU/*:*:*) | |
963 | # other systems with GNU libc and userland | |
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 | ;; | |
971 | aarch64:Linux:*:*) | |
972 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
973 | ;; | |
974 | aarch64_be:Linux:*:*) | |
975 | UNAME_MACHINE=aarch64_be | |
976 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
977 | ;; | |
978 | alpha:Linux:*:*) | |
979 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in | |
980 | EV5) UNAME_MACHINE=alphaev5 ;; | |
981 | EV56) UNAME_MACHINE=alphaev56 ;; | |
982 | PCA56) UNAME_MACHINE=alphapca56 ;; | |
983 | PCA57) UNAME_MACHINE=alphapca56 ;; | |
984 | EV6) UNAME_MACHINE=alphaev6 ;; | |
985 | EV67) UNAME_MACHINE=alphaev67 ;; | |
986 | EV68*) UNAME_MACHINE=alphaev68 ;; | |
987 | esac | |
988 | objdump --private-headers /bin/sh | grep -q ld.so.1 | |
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 | ;; | |
995 | arm*:Linux:*:*) | |
996 | set_cc_for_build | |
997 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |
998 | | grep -q __ARM_EABI__ | |
999 | then | |
1000 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1001 | else | |
1002 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | |
1003 | | grep -q __ARM_PCS_VFP | |
1004 | then | |
1005 | GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi | |
1006 | else | |
1007 | GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf | |
1008 | fi | |
1009 | fi | |
1010 | ;; | |
1011 | avr32*:Linux:*:*) | |
1012 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1013 | ;; | |
1014 | cris:Linux:*:*) | |
1015 | GUESS=$UNAME_MACHINE-axis-linux-$LIBC | |
1016 | ;; | |
1017 | crisv32:Linux:*:*) | |
1018 | GUESS=$UNAME_MACHINE-axis-linux-$LIBC | |
1019 | ;; | |
1020 | e2k:Linux:*:*) | |
1021 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1022 | ;; | |
1023 | frv:Linux:*:*) | |
1024 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1025 | ;; | |
1026 | hexagon:Linux:*:*) | |
1027 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1028 | ;; | |
1029 | i*86:Linux:*:*) | |
1030 | GUESS=$UNAME_MACHINE-pc-linux-$LIBC | |
1031 | ;; | |
1032 | ia64:Linux:*:*) | |
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 | ;; | |
1041 | m32r*:Linux:*:*) | |
1042 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1043 | ;; | |
1044 | m68*:Linux:*:*) | |
1045 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1046 | ;; | |
1047 | mips:Linux:*:* | mips64:Linux:*:*) | |
1048 | set_cc_for_build | |
1049 | IS_GLIBC=0 | |
1050 | test x"${LIBC}" = xgnu && IS_GLIBC=1 | |
1051 | sed 's/^ //' << EOF > "$dummy.c" | |
1052 | #undef CPU | |
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 | ||
1081 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | |
1082 | MIPS_ENDIAN=el | |
1083 | #else | |
1084 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | |
1085 | MIPS_ENDIAN= | |
1086 | #else | |
1087 | MIPS_ENDIAN= | |
1088 | #endif | |
1089 | #endif | |
1090 | EOF | |
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 | |
1097 | ;; | |
1098 | openrisc*:Linux:*:*) | |
1099 | GUESS=or1k-unknown-linux-$LIBC | |
1100 | ;; | |
1101 | or32:Linux:*:* | or1k*:Linux:*:*) | |
1102 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1103 | ;; | |
1104 | padre:Linux:*:*) | |
1105 | GUESS=sparc-unknown-linux-$LIBC | |
1106 | ;; | |
1107 | parisc64:Linux:*:* | hppa64:Linux:*:*) | |
1108 | GUESS=hppa64-unknown-linux-$LIBC | |
1109 | ;; | |
1110 | parisc:Linux:*:* | hppa:Linux:*:*) | |
1111 | # Look for CPU level | |
1112 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | |
1113 | PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; | |
1114 | PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; | |
1115 | *) GUESS=hppa-unknown-linux-$LIBC ;; | |
1116 | esac | |
1117 | ;; | |
1118 | ppc64:Linux:*:*) | |
1119 | GUESS=powerpc64-unknown-linux-$LIBC | |
1120 | ;; | |
1121 | ppc:Linux:*:*) | |
1122 | GUESS=powerpc-unknown-linux-$LIBC | |
1123 | ;; | |
1124 | ppc64le:Linux:*:*) | |
1125 | GUESS=powerpc64le-unknown-linux-$LIBC | |
1126 | ;; | |
1127 | ppcle:Linux:*:*) | |
1128 | GUESS=powerpcle-unknown-linux-$LIBC | |
1129 | ;; | |
1130 | riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) | |
1131 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1132 | ;; | |
1133 | s390:Linux:*:* | s390x:Linux:*:*) | |
1134 | GUESS=$UNAME_MACHINE-ibm-linux-$LIBC | |
1135 | ;; | |
1136 | sh64*:Linux:*:*) | |
1137 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1138 | ;; | |
1139 | sh*:Linux:*:*) | |
1140 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1141 | ;; | |
1142 | sparc:Linux:*:* | sparc64:Linux:*:*) | |
1143 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1144 | ;; | |
1145 | tile*:Linux:*:*) | |
1146 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1147 | ;; | |
1148 | vax:Linux:*:*) | |
1149 | GUESS=$UNAME_MACHINE-dec-linux-$LIBC | |
1150 | ;; | |
1151 | x86_64:Linux:*:*) | |
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 | ;; | |
1164 | xtensa*:Linux:*:*) | |
1165 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | |
1166 | ;; | |
1167 | i*86:DYNIX/ptx:4*:*) | |
1168 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | |
1169 | # earlier versions are messed up and put the nodename in both | |
1170 | # sysname and nodename. | |
1171 | GUESS=i386-sequent-sysv4 | |
1172 | ;; | |
1173 | i*86:UNIX_SV:4.2MP:2.*) | |
1174 | # Unixware is an offshoot of SVR4, but it has its own version | |
1175 | # number series starting with 2... | |
1176 | # I am not positive that other SVR4 systems won't match this, | |
1177 | # I just have to hope. -- rms. | |
1178 | # Use sysv4.2uw... so that sysv4* matches it. | |
1179 | GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION | |
1180 | ;; | |
1181 | i*86:OS/2:*:*) | |
1182 | # If we were able to find `uname', then EMX Unix compatibility | |
1183 | # is probably installed. | |
1184 | GUESS=$UNAME_MACHINE-pc-os2-emx | |
1185 | ;; | |
1186 | i*86:XTS-300:*:STOP) | |
1187 | GUESS=$UNAME_MACHINE-unknown-stop | |
1188 | ;; | |
1189 | i*86:atheos:*:*) | |
1190 | GUESS=$UNAME_MACHINE-unknown-atheos | |
1191 | ;; | |
1192 | i*86:syllable:*:*) | |
1193 | GUESS=$UNAME_MACHINE-pc-syllable | |
1194 | ;; | |
1195 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) | |
1196 | GUESS=i386-unknown-lynxos$UNAME_RELEASE | |
1197 | ;; | |
1198 | i*86:*DOS:*:*) | |
1199 | GUESS=$UNAME_MACHINE-pc-msdosdjgpp | |
1200 | ;; | |
1201 | i*86:*:4.*:*) | |
1202 | UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` | |
1203 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then | |
1204 | GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL | |
1205 | else | |
1206 | GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL | |
1207 | fi | |
1208 | ;; | |
1209 | i*86:*:5:[678]*) | |
1210 | # UnixWare 7.x, OpenUNIX and OpenServer 6. | |
1211 | case `/bin/uname -X | grep "^Machine"` in | |
1212 | *486*) UNAME_MACHINE=i486 ;; | |
1213 | *Pentium) UNAME_MACHINE=i586 ;; | |
1214 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; | |
1215 | esac | |
1216 | GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} | |
1217 | ;; | |
1218 | i*86:*:3.2:*) | |
1219 | if test -f /usr/options/cb.name; then | |
1220 | UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` | |
1221 | GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL | |
1222 | elif /bin/uname -X 2>/dev/null >/dev/null ; then | |
1223 | UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` | |
1224 | (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 | |
1225 | (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ | |
1226 | && UNAME_MACHINE=i586 | |
1227 | (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ | |
1228 | && UNAME_MACHINE=i686 | |
1229 | (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ | |
1230 | && UNAME_MACHINE=i686 | |
1231 | GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL | |
1232 | else | |
1233 | GUESS=$UNAME_MACHINE-pc-sysv32 | |
1234 | fi | |
1235 | ;; | |
1236 | pc:*:*:*) | |
1237 | # Left here for compatibility: | |
1238 | # uname -m prints for DJGPP always 'pc', but it prints nothing about | |
1239 | # the processor, so we play safe by assuming i586. | |
1240 | # Note: whatever this is, it MUST be the same as what config.sub | |
1241 | # prints for the "djgpp" host, or else GDB configure will decide that | |
1242 | # this is a cross-build. | |
1243 | GUESS=i586-pc-msdosdjgpp | |
1244 | ;; | |
1245 | Intel:Mach:3*:*) | |
1246 | GUESS=i386-pc-mach3 | |
1247 | ;; | |
1248 | paragon:*:*:*) | |
1249 | GUESS=i860-intel-osf1 | |
1250 | ;; | |
1251 | i860:*:4.*:*) # i860-SVR4 | |
1252 | if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then | |
1253 | GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 | |
1254 | else # Add other i860-SVR4 vendors below as they are discovered. | |
1255 | GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 | |
1256 | fi | |
1257 | ;; | |
1258 | mini*:CTIX:SYS*5:*) | |
1259 | # "miniframe" | |
1260 | GUESS=m68010-convergent-sysv | |
1261 | ;; | |
1262 | mc68k:UNIX:SYSTEM5:3.51m) | |
1263 | GUESS=m68k-convergent-sysv | |
1264 | ;; | |
1265 | M680?0:D-NIX:5.3:*) | |
1266 | GUESS=m68k-diab-dnix | |
1267 | ;; | |
1268 | M68*:*:R3V[5678]*:*) | |
1269 | test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; | |
1270 | 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) | |
1271 | OS_REL='' | |
1272 | test -r /etc/.relid \ | |
1273 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` | |
1274 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
1275 | && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } | |
1276 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | |
1277 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; | |
1278 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) | |
1279 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
1280 | && { echo i486-ncr-sysv4; exit; } ;; | |
1281 | NCR*:*:4.2:* | MPRAS*:*:4.2:*) | |
1282 | OS_REL='.3' | |
1283 | test -r /etc/.relid \ | |
1284 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` | |
1285 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
1286 | && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } | |
1287 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | |
1288 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } | |
1289 | /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ | |
1290 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; | |
1291 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) | |
1292 | GUESS=m68k-unknown-lynxos$UNAME_RELEASE | |
1293 | ;; | |
1294 | mc68030:UNIX_System_V:4.*:*) | |
1295 | GUESS=m68k-atari-sysv4 | |
1296 | ;; | |
1297 | TSUNAMI:LynxOS:2.*:*) | |
1298 | GUESS=sparc-unknown-lynxos$UNAME_RELEASE | |
1299 | ;; | |
1300 | rs6000:LynxOS:2.*:*) | |
1301 | GUESS=rs6000-unknown-lynxos$UNAME_RELEASE | |
1302 | ;; | |
1303 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) | |
1304 | GUESS=powerpc-unknown-lynxos$UNAME_RELEASE | |
1305 | ;; | |
1306 | SM[BE]S:UNIX_SV:*:*) | |
1307 | GUESS=mips-dde-sysv$UNAME_RELEASE | |
1308 | ;; | |
1309 | RM*:ReliantUNIX-*:*:*) | |
1310 | GUESS=mips-sni-sysv4 | |
1311 | ;; | |
1312 | RM*:SINIX-*:*:*) | |
1313 | GUESS=mips-sni-sysv4 | |
1314 | ;; | |
1315 | *:SINIX-*:*:*) | |
1316 | if uname -p 2>/dev/null >/dev/null ; then | |
1317 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
1318 | GUESS=$UNAME_MACHINE-sni-sysv4 | |
1319 | else | |
1320 | GUESS=ns32k-sni-sysv | |
1321 | fi | |
1322 | ;; | |
1323 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | |
1324 | # says <[email protected]> | |
1325 | GUESS=i586-unisys-sysv4 | |
1326 | ;; | |
1327 | *:UNIX_System_V:4*:FTX*) | |
1328 | # From Gerald Hewes <[email protected]>. | |
1329 | # How about differentiating between stratus architectures? -djm | |
1330 | GUESS=hppa1.1-stratus-sysv4 | |
1331 | ;; | |
1332 | *:*:*:FTX*) | |
1333 | # From [email protected]. | |
1334 | GUESS=i860-stratus-sysv4 | |
1335 | ;; | |
1336 | i*86:VOS:*:*) | |
1337 | # From [email protected]. | |
1338 | GUESS=$UNAME_MACHINE-stratus-vos | |
1339 | ;; | |
1340 | *:VOS:*:*) | |
1341 | # From [email protected]. | |
1342 | GUESS=hppa1.1-stratus-vos | |
1343 | ;; | |
1344 | mc68*:A/UX:*:*) | |
1345 | GUESS=m68k-apple-aux$UNAME_RELEASE | |
1346 | ;; | |
1347 | news*:NEWS-OS:6*:*) | |
1348 | GUESS=mips-sony-newsos6 | |
1349 | ;; | |
1350 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) | |
1351 | if test -d /usr/nec; then | |
1352 | GUESS=mips-nec-sysv$UNAME_RELEASE | |
1353 | else | |
1354 | GUESS=mips-unknown-sysv$UNAME_RELEASE | |
1355 | fi | |
1356 | ;; | |
1357 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. | |
1358 | GUESS=powerpc-be-beos | |
1359 | ;; | |
1360 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. | |
1361 | GUESS=powerpc-apple-beos | |
1362 | ;; | |
1363 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. | |
1364 | GUESS=i586-pc-beos | |
1365 | ;; | |
1366 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. | |
1367 | GUESS=i586-pc-haiku | |
1368 | ;; | |
1369 | x86_64:Haiku:*:*) | |
1370 | GUESS=x86_64-unknown-haiku | |
1371 | ;; | |
1372 | SX-4:SUPER-UX:*:*) | |
1373 | GUESS=sx4-nec-superux$UNAME_RELEASE | |
1374 | ;; | |
1375 | SX-5:SUPER-UX:*:*) | |
1376 | GUESS=sx5-nec-superux$UNAME_RELEASE | |
1377 | ;; | |
1378 | SX-6:SUPER-UX:*:*) | |
1379 | GUESS=sx6-nec-superux$UNAME_RELEASE | |
1380 | ;; | |
1381 | SX-7:SUPER-UX:*:*) | |
1382 | GUESS=sx7-nec-superux$UNAME_RELEASE | |
1383 | ;; | |
1384 | SX-8:SUPER-UX:*:*) | |
1385 | GUESS=sx8-nec-superux$UNAME_RELEASE | |
1386 | ;; | |
1387 | SX-8R:SUPER-UX:*:*) | |
1388 | GUESS=sx8r-nec-superux$UNAME_RELEASE | |
1389 | ;; | |
1390 | SX-ACE:SUPER-UX:*:*) | |
1391 | GUESS=sxace-nec-superux$UNAME_RELEASE | |
1392 | ;; | |
1393 | Power*:Rhapsody:*:*) | |
1394 | GUESS=powerpc-apple-rhapsody$UNAME_RELEASE | |
1395 | ;; | |
1396 | *:Rhapsody:*:*) | |
1397 | GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE | |
1398 | ;; | |
1399 | arm64:Darwin:*:*) | |
1400 | GUESS=aarch64-apple-darwin$UNAME_RELEASE | |
1401 | ;; | |
1402 | *:Darwin:*:*) | |
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 | |
1432 | fi | |
1433 | elif test "$UNAME_PROCESSOR" = i386 ; then | |
1434 | # uname -m returns i386 or x86_64 | |
1435 | UNAME_PROCESSOR=$UNAME_MACHINE | |
1436 | fi | |
1437 | GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE | |
1438 | ;; | |
1439 | *:procnto*:*:* | *:QNX:[0123456789]*:*) | |
1440 | UNAME_PROCESSOR=`uname -p` | |
1441 | if test "$UNAME_PROCESSOR" = x86; then | |
1442 | UNAME_PROCESSOR=i386 | |
1443 | UNAME_MACHINE=pc | |
1444 | fi | |
1445 | GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE | |
1446 | ;; | |
1447 | *:QNX:*:4*) | |
1448 | GUESS=i386-pc-qnx | |
1449 | ;; | |
1450 | NEO-*:NONSTOP_KERNEL:*:*) | |
1451 | GUESS=neo-tandem-nsk$UNAME_RELEASE | |
1452 | ;; | |
1453 | NSE-*:NONSTOP_KERNEL:*:*) | |
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 | ;; | |
1465 | *:NonStop-UX:*:*) | |
1466 | GUESS=mips-compaq-nonstopux | |
1467 | ;; | |
1468 | BS2000:POSIX*:*:*) | |
1469 | GUESS=bs2000-siemens-sysv | |
1470 | ;; | |
1471 | DS/*:UNIX_System_V:*:*) | |
1472 | GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE | |
1473 | ;; | |
1474 | *:Plan9:*:*) | |
1475 | # "uname -m" is not consistent, so use $cputype instead. 386 | |
1476 | # is converted to i386 for consistency with other x86 | |
1477 | # operating systems. | |
1478 | if test "${cputype-}" = 386; then | |
1479 | UNAME_MACHINE=i386 | |
1480 | elif test "x${cputype-}" != x; then | |
1481 | UNAME_MACHINE=$cputype | |
1482 | fi | |
1483 | GUESS=$UNAME_MACHINE-unknown-plan9 | |
1484 | ;; | |
1485 | *:TOPS-10:*:*) | |
1486 | GUESS=pdp10-unknown-tops10 | |
1487 | ;; | |
1488 | *:TENEX:*:*) | |
1489 | GUESS=pdp10-unknown-tenex | |
1490 | ;; | |
1491 | KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) | |
1492 | GUESS=pdp10-dec-tops20 | |
1493 | ;; | |
1494 | XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) | |
1495 | GUESS=pdp10-xkl-tops20 | |
1496 | ;; | |
1497 | *:TOPS-20:*:*) | |
1498 | GUESS=pdp10-unknown-tops20 | |
1499 | ;; | |
1500 | *:ITS:*:*) | |
1501 | GUESS=pdp10-unknown-its | |
1502 | ;; | |
1503 | SEI:*:*:SEIUX) | |
1504 | GUESS=mips-sei-seiux$UNAME_RELEASE | |
1505 | ;; | |
1506 | *:DragonFly:*:*) | |
1507 | DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` | |
1508 | GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL | |
1509 | ;; | |
1510 | *:*VMS:*:*) | |
1511 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
1512 | case $UNAME_MACHINE in | |
1513 | A*) GUESS=alpha-dec-vms ;; | |
1514 | I*) GUESS=ia64-dec-vms ;; | |
1515 | V*) GUESS=vax-dec-vms ;; | |
1516 | esac ;; | |
1517 | *:XENIX:*:SysV) | |
1518 | GUESS=i386-pc-xenix | |
1519 | ;; | |
1520 | i*86:skyos:*:*) | |
1521 | SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` | |
1522 | GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL | |
1523 | ;; | |
1524 | i*86:rdos:*:*) | |
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 | ;; | |
1533 | x86_64:VMkernel:*:*) | |
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 | ;; | |
1542 | esac | |
1543 | ||
1544 | # Do we have a guess based on uname results? | |
1545 | if test "x$GUESS" != x; then | |
1546 | echo "$GUESS" | |
1547 | exit | |
1548 | fi | |
1549 | ||
1550 | # No uname command or uname output not recognized. | |
1551 | set_cc_for_build | |
1552 | cat > "$dummy.c" <<EOF | |
1553 | #ifdef _SEQUENT_ | |
1554 | #include <sys/types.h> | |
1555 | #include <sys/utsname.h> | |
1556 | #endif | |
1557 | #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) | |
1558 | #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) | |
1559 | #include <signal.h> | |
1560 | #if defined(_SIZE_T_) || defined(SIGLOST) | |
1561 | #include <sys/utsname.h> | |
1562 | #endif | |
1563 | #endif | |
1564 | #endif | |
1565 | main () | |
1566 | { | |
1567 | #if defined (sony) | |
1568 | #if defined (MIPSEB) | |
1569 | /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, | |
1570 | I don't know.... */ | |
1571 | printf ("mips-sony-bsd\n"); exit (0); | |
1572 | #else | |
1573 | #include <sys/param.h> | |
1574 | printf ("m68k-sony-newsos%s\n", | |
1575 | #ifdef NEWSOS4 | |
1576 | "4" | |
1577 | #else | |
1578 | "" | |
1579 | #endif | |
1580 | ); exit (0); | |
1581 | #endif | |
1582 | #endif | |
1583 | ||
1584 | #if defined (NeXT) | |
1585 | #if !defined (__ARCHITECTURE__) | |
1586 | #define __ARCHITECTURE__ "m68k" | |
1587 | #endif | |
1588 | int version; | |
1589 | version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; | |
1590 | if (version < 4) | |
1591 | printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); | |
1592 | else | |
1593 | printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); | |
1594 | exit (0); | |
1595 | #endif | |
1596 | ||
1597 | #if defined (MULTIMAX) || defined (n16) | |
1598 | #if defined (UMAXV) | |
1599 | printf ("ns32k-encore-sysv\n"); exit (0); | |
1600 | #else | |
1601 | #if defined (CMU) | |
1602 | printf ("ns32k-encore-mach\n"); exit (0); | |
1603 | #else | |
1604 | printf ("ns32k-encore-bsd\n"); exit (0); | |
1605 | #endif | |
1606 | #endif | |
1607 | #endif | |
1608 | ||
1609 | #if defined (__386BSD__) | |
1610 | printf ("i386-pc-bsd\n"); exit (0); | |
1611 | #endif | |
1612 | ||
1613 | #if defined (sequent) | |
1614 | #if defined (i386) | |
1615 | printf ("i386-sequent-dynix\n"); exit (0); | |
1616 | #endif | |
1617 | #if defined (ns32000) | |
1618 | printf ("ns32k-sequent-dynix\n"); exit (0); | |
1619 | #endif | |
1620 | #endif | |
1621 | ||
1622 | #if defined (_SEQUENT_) | |
1623 | struct utsname un; | |
1624 | ||
1625 | uname(&un); | |
1626 | if (strncmp(un.version, "V2", 2) == 0) { | |
1627 | printf ("i386-sequent-ptx2\n"); exit (0); | |
1628 | } | |
1629 | if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ | |
1630 | printf ("i386-sequent-ptx1\n"); exit (0); | |
1631 | } | |
1632 | printf ("i386-sequent-ptx\n"); exit (0); | |
1633 | #endif | |
1634 | ||
1635 | #if defined (vax) | |
1636 | #if !defined (ultrix) | |
1637 | #include <sys/param.h> | |
1638 | #if defined (BSD) | |
1639 | #if BSD == 43 | |
1640 | printf ("vax-dec-bsd4.3\n"); exit (0); | |
1641 | #else | |
1642 | #if BSD == 199006 | |
1643 | printf ("vax-dec-bsd4.3reno\n"); exit (0); | |
1644 | #else | |
1645 | printf ("vax-dec-bsd\n"); exit (0); | |
1646 | #endif | |
1647 | #endif | |
1648 | #else | |
1649 | printf ("vax-dec-bsd\n"); exit (0); | |
1650 | #endif | |
1651 | #else | |
1652 | #if defined(_SIZE_T_) || defined(SIGLOST) | |
1653 | struct utsname un; | |
1654 | uname (&un); | |
1655 | printf ("vax-dec-ultrix%s\n", un.release); exit (0); | |
1656 | #else | |
1657 | printf ("vax-dec-ultrix\n"); exit (0); | |
1658 | #endif | |
1659 | #endif | |
1660 | #endif | |
1661 | #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) | |
1662 | #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) | |
1663 | #if defined(_SIZE_T_) || defined(SIGLOST) | |
1664 | struct utsname *un; | |
1665 | uname (&un); | |
1666 | printf ("mips-dec-ultrix%s\n", un.release); exit (0); | |
1667 | #else | |
1668 | printf ("mips-dec-ultrix\n"); exit (0); | |
1669 | #endif | |
1670 | #endif | |
1671 | #endif | |
1672 | ||
1673 | #if defined (alliant) && defined (i860) | |
1674 | printf ("i860-alliant-bsd\n"); exit (0); | |
1675 | #endif | |
1676 | ||
1677 | exit (1); | |
1678 | } | |
1679 | EOF | |
1680 | ||
1681 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && | |
1682 | { echo "$SYSTEM_NAME"; exit; } | |
1683 | ||
1684 | # Apollos put the system type in the environment. | |
1685 | test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } | |
1686 | ||
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 | ||
1700 | cat >&2 <<EOF | |
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 | |
1707 | and | |
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 [email protected] to | |
1720 | provide the necessary information to handle your system. | |
1721 | ||
1722 | config.guess timestamp = $timestamp | |
1723 | ||
1724 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1725 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1726 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1727 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1728 | ||
1729 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` | |
1730 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null` | |
1731 | ||
1732 | hostinfo = `(hostinfo) 2>/dev/null` | |
1733 | /bin/universe = `(/bin/universe) 2>/dev/null` | |
1734 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` | |
1735 | /bin/arch = `(/bin/arch) 2>/dev/null` | |
1736 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` | |
1737 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` | |
1738 | ||
1739 | UNAME_MACHINE = "$UNAME_MACHINE" | |
1740 | UNAME_RELEASE = "$UNAME_RELEASE" | |
1741 | UNAME_SYSTEM = "$UNAME_SYSTEM" | |
1742 | UNAME_VERSION = "$UNAME_VERSION" | |
1743 | EOF | |
1744 | fi | |
1745 | ||
1746 | exit 1 | |
1747 | ||
1748 | # Local variables: | |
1749 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
1750 | # time-stamp-start: "timestamp='" | |
1751 | # time-stamp-format: "%:y-%02m-%02d" | |
1752 | # time-stamp-end: "'" | |
1753 | # End: |
0 | /* config.h.in. Generated from configure.ac by autoheader. */ | |
1 | ||
2 | /* building for OpenBSD */ | |
3 | #undef D_HOST_OPENBSD | |
4 | ||
5 | /* building without shared memory */ | |
6 | #undef D_HOST_OSX | |
7 | ||
8 | /* Dithering not available in rtlsdr */ | |
9 | #undef HAVE_DITHERING | |
10 | ||
11 | /* Define to 1 if you have the `floor' function. */ | |
12 | #undef HAVE_FLOOR | |
13 | ||
14 | /* Define to 1 if you have the `getpagesize' function. */ | |
15 | #undef HAVE_GETPAGESIZE | |
16 | ||
17 | /* Define to 1 if you have the <inttypes.h> header file. */ | |
18 | #undef HAVE_INTTYPES_H | |
19 | ||
20 | /* Define to 1 if you have the <libgen.h> header file. */ | |
21 | #undef HAVE_LIBGEN_H | |
22 | ||
23 | /* Define to 1 if you have the `memset' function. */ | |
24 | #undef HAVE_MEMSET | |
25 | ||
26 | /* Define to 1 if you have the `sqrt' function. */ | |
27 | #undef HAVE_SQRT | |
28 | ||
29 | /* Define to 1 if stdbool.h conforms to C99. */ | |
30 | #undef HAVE_STDBOOL_H | |
31 | ||
32 | /* Define to 1 if you have the <stdint.h> header file. */ | |
33 | #undef HAVE_STDINT_H | |
34 | ||
35 | /* Define to 1 if you have the <stdio.h> header file. */ | |
36 | #undef HAVE_STDIO_H | |
37 | ||
38 | /* Define to 1 if you have the <stdlib.h> header file. */ | |
39 | #undef HAVE_STDLIB_H | |
40 | ||
41 | /* Define to 1 if you have the <strings.h> header file. */ | |
42 | #undef HAVE_STRINGS_H | |
43 | ||
44 | /* Define to 1 if you have the <string.h> header file. */ | |
45 | #undef HAVE_STRING_H | |
46 | ||
47 | /* Define to 1 if you have the `strtol' function. */ | |
48 | #undef HAVE_STRTOL | |
49 | ||
50 | /* Define to 1 if you have the `strtoul' function. */ | |
51 | #undef HAVE_STRTOUL | |
52 | ||
53 | /* Define to 1 if you have the <sys/stat.h> header file. */ | |
54 | #undef HAVE_SYS_STAT_H | |
55 | ||
56 | /* Define to 1 if you have the <sys/time.h> header file. */ | |
57 | #undef HAVE_SYS_TIME_H | |
58 | ||
59 | /* Define to 1 if you have the <sys/types.h> header file. */ | |
60 | #undef HAVE_SYS_TYPES_H | |
61 | ||
62 | /* Define to 1 if you have the <unistd.h> header file. */ | |
63 | #undef HAVE_UNISTD_H | |
64 | ||
65 | /* Define to 1 if the system has the type `_Bool'. */ | |
66 | #undef HAVE__BOOL | |
67 | ||
68 | /* Name of package */ | |
69 | #undef PACKAGE | |
70 | ||
71 | /* Define to the address where bug reports for this package should be sent. */ | |
72 | #undef PACKAGE_BUGREPORT | |
73 | ||
74 | /* Define to the full name of this package. */ | |
75 | #undef PACKAGE_NAME | |
76 | ||
77 | /* Define to the full name and version of this package. */ | |
78 | #undef PACKAGE_STRING | |
79 | ||
80 | /* Define to the one symbol short name of this package. */ | |
81 | #undef PACKAGE_TARNAME | |
82 | ||
83 | /* Define to the home page for this package. */ | |
84 | #undef PACKAGE_URL | |
85 | ||
86 | /* Define to the version of this package. */ | |
87 | #undef PACKAGE_VERSION | |
88 | ||
89 | /* Define to 1 if all of the C90 standard headers exist (not just the ones | |
90 | required in a freestanding environment). This macro is provided for | |
91 | backward compatibility; new code need not use it. */ | |
92 | #undef STDC_HEADERS | |
93 | ||
94 | /* Version number of package */ | |
95 | #undef VERSION | |
96 | ||
97 | /* Define to `__inline__' or `__inline' if that's what the C compiler | |
98 | calls it, or to nothing if 'inline' is not supported under any name. */ | |
99 | #ifndef __cplusplus | |
100 | #undef inline | |
101 | #endif |
0 | #! /bin/sh | |
1 | # Configuration validation subroutine script. | |
2 | # Copyright 1992-2022 Free Software Foundation, Inc. | |
3 | ||
4 | # shellcheck disable=SC2006,SC2268 # see below for rationale | |
5 | ||
6 | timestamp='2022-01-03' | |
7 | ||
8 | # This file is free software; you can redistribute it and/or modify it | |
9 | # under the terms of the GNU General Public License as published by | |
10 | # the Free Software Foundation, either version 3 of the License, or | |
11 | # (at your option) any later version. | |
12 | # | |
13 | # This program is distributed in the hope that it will be useful, but | |
14 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | # 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 <https://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 | |
25 | # program. This Exception is an additional permission under section 7 | |
26 | # of the GNU General Public License, version 3 ("GPLv3"). | |
27 | ||
28 | ||
29 | # Please send patches to <[email protected]>. | |
30 | # | |
31 | # Configuration subroutine to validate and canonicalize a configuration type. | |
32 | # Supply the specified configuration type as an argument. | |
33 | # If it is invalid, we print an error message on stderr and exit with code 1. | |
34 | # Otherwise, we print the canonical config type on stdout and succeed. | |
35 | ||
36 | # You can get the latest version of this script from: | |
37 | # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub | |
38 | ||
39 | # This file is supposed to be the same for all GNU packages | |
40 | # and recognize all the CPU types, system types and aliases | |
41 | # that are meaningful with *any* GNU software. | |
42 | # Each package is responsible for reporting which valid configurations | |
43 | # it does not support. The user should be able to distinguish | |
44 | # a failure to support a valid configuration from a meaningless | |
45 | # configuration. | |
46 | ||
47 | # The goal of this file is to map all the various variations of a given | |
48 | # machine specification into a single specification in the form: | |
49 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | |
50 | # or in some cases, the newer four-part form: | |
51 | # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM | |
52 | # It is wrong to echo any other type of specification. | |
53 | ||
54 | # The "shellcheck disable" line above the timestamp inhibits complaints | |
55 | # about features and limitations of the classic Bourne shell that were | |
56 | # superseded or lifted in POSIX. However, this script identifies a wide | |
57 | # variety of pre-POSIX systems that do not have POSIX shells at all, and | |
58 | # even some reasonably current systems (Solaris 10 as case-in-point) still | |
59 | # have a pre-POSIX /bin/sh. | |
60 | ||
61 | me=`echo "$0" | sed -e 's,.*/,,'` | |
62 | ||
63 | usage="\ | |
64 | Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS | |
65 | ||
66 | Canonicalize a configuration name. | |
67 | ||
68 | Options: | |
69 | -h, --help print this help, then exit | |
70 | -t, --time-stamp print date of last modification, then exit | |
71 | -v, --version print version number, then exit | |
72 | ||
73 | Report bugs and patches to <[email protected]>." | |
74 | ||
75 | version="\ | |
76 | GNU config.sub ($timestamp) | |
77 | ||
78 | Copyright 1992-2022 Free Software Foundation, Inc. | |
79 | ||
80 | This is free software; see the source for copying conditions. There is NO | |
81 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | |
82 | ||
83 | help=" | |
84 | Try \`$me --help' for more information." | |
85 | ||
86 | # Parse command line | |
87 | while test $# -gt 0 ; do | |
88 | case $1 in | |
89 | --time-stamp | --time* | -t ) | |
90 | echo "$timestamp" ; exit ;; | |
91 | --version | -v ) | |
92 | echo "$version" ; exit ;; | |
93 | --help | --h* | -h ) | |
94 | echo "$usage"; exit ;; | |
95 | -- ) # Stop option processing | |
96 | shift; break ;; | |
97 | - ) # Use stdin as input. | |
98 | break ;; | |
99 | -* ) | |
100 | echo "$me: invalid option $1$help" >&2 | |
101 | exit 1 ;; | |
102 | ||
103 | *local*) | |
104 | # First pass through any local machine types. | |
105 | echo "$1" | |
106 | exit ;; | |
107 | ||
108 | * ) | |
109 | break ;; | |
110 | esac | |
111 | done | |
112 | ||
113 | case $# in | |
114 | 0) echo "$me: missing argument$help" >&2 | |
115 | exit 1;; | |
116 | 1) ;; | |
117 | *) echo "$me: too many arguments$help" >&2 | |
118 | exit 1;; | |
119 | esac | |
120 | ||
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 | ;; | |
655 | esac | |
656 | ||
657 | # Decode 1-component or ad-hoc basic machines | |
658 | case $basic_machine in | |
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 | |
927 | ;; | |
928 | leon|leon[3-9]) | |
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 | ;; | |
945 | # We use `pc' rather than `unknown' | |
946 | # because (1) that's what they normally are, and | |
947 | # (2) the word "unknown" tends to confuse beginning users. | |
948 | i*86 | x86_64) | |
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 | ;; | |
1453 | 386bsd) | |
1454 | os=bsd | |
1455 | ;; | |
1456 | ctix* | uts*) | |
1457 | os=sysv | |
1458 | ;; | |
1459 | nova*) | |
1460 | os=rtmk-nova | |
1461 | ;; | |
1462 | ns2) | |
1463 | os=nextstep2 | |
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 | |
1506 | ;; | |
1507 | *) | |
1508 | os=elf | |
1509 | ;; | |
1510 | esac | |
1511 | ;; | |
1512 | *) | |
1513 | # No normalization, but not necessarily accepted, that comes below. | |
1514 | ;; | |
1515 | esac | |
1516 | ||
1517 | else | |
1518 | ||
1519 | # Here we handle the default operating systems that come with various machines. | |
1520 | # The value should be what the vendor currently ships out the door with their | |
1521 | # machine or put another way, the most popular os provided with the machine. | |
1522 | ||
1523 | # Note that if you're going to try to match "-MANUFACTURER" here (say, | |
1524 | # "-sun"), then you have to tell the case statement up towards the top | |
1525 | # that MANUFACTURER isn't an operating system. Otherwise, code above | |
1526 | # will signal an error saying that MANUFACTURER isn't an operating | |
1527 | # system, and we'll never get to this point. | |
1528 | ||
1529 | kernel= | |
1530 | case $cpu-$vendor in | |
1531 | score-*) | |
1532 | os=elf | |
1533 | ;; | |
1534 | spu-*) | |
1535 | os=elf | |
1536 | ;; | |
1537 | *-acorn) | |
1538 | os=riscix1.2 | |
1539 | ;; | |
1540 | arm*-rebel) | |
1541 | kernel=linux | |
1542 | os=gnu | |
1543 | ;; | |
1544 | arm*-semi) | |
1545 | os=aout | |
1546 | ;; | |
1547 | c4x-* | tic4x-*) | |
1548 | os=coff | |
1549 | ;; | |
1550 | c8051-*) | |
1551 | os=elf | |
1552 | ;; | |
1553 | clipper-intergraph) | |
1554 | os=clix | |
1555 | ;; | |
1556 | hexagon-*) | |
1557 | os=elf | |
1558 | ;; | |
1559 | tic54x-*) | |
1560 | os=coff | |
1561 | ;; | |
1562 | tic55x-*) | |
1563 | os=coff | |
1564 | ;; | |
1565 | tic6x-*) | |
1566 | os=coff | |
1567 | ;; | |
1568 | # This must come before the *-dec entry. | |
1569 | pdp10-*) | |
1570 | os=tops20 | |
1571 | ;; | |
1572 | pdp11-*) | |
1573 | os=none | |
1574 | ;; | |
1575 | *-dec | vax-*) | |
1576 | os=ultrix4.2 | |
1577 | ;; | |
1578 | m68*-apollo) | |
1579 | os=domain | |
1580 | ;; | |
1581 | i386-sun) | |
1582 | os=sunos4.0.2 | |
1583 | ;; | |
1584 | m68000-sun) | |
1585 | os=sunos3 | |
1586 | ;; | |
1587 | m68*-cisco) | |
1588 | os=aout | |
1589 | ;; | |
1590 | mep-*) | |
1591 | os=elf | |
1592 | ;; | |
1593 | mips*-cisco) | |
1594 | os=elf | |
1595 | ;; | |
1596 | mips*-*) | |
1597 | os=elf | |
1598 | ;; | |
1599 | or32-*) | |
1600 | os=coff | |
1601 | ;; | |
1602 | *-tti) # must be before sparc entry or we get the wrong os. | |
1603 | os=sysv3 | |
1604 | ;; | |
1605 | sparc-* | *-sun) | |
1606 | os=sunos4.1.1 | |
1607 | ;; | |
1608 | pru-*) | |
1609 | os=elf | |
1610 | ;; | |
1611 | *-be) | |
1612 | os=beos | |
1613 | ;; | |
1614 | *-ibm) | |
1615 | os=aix | |
1616 | ;; | |
1617 | *-knuth) | |
1618 | os=mmixware | |
1619 | ;; | |
1620 | *-wec) | |
1621 | os=proelf | |
1622 | ;; | |
1623 | *-winbond) | |
1624 | os=proelf | |
1625 | ;; | |
1626 | *-oki) | |
1627 | os=proelf | |
1628 | ;; | |
1629 | *-hp) | |
1630 | os=hpux | |
1631 | ;; | |
1632 | *-hitachi) | |
1633 | os=hiux | |
1634 | ;; | |
1635 | i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) | |
1636 | os=sysv | |
1637 | ;; | |
1638 | *-cbm) | |
1639 | os=amigaos | |
1640 | ;; | |
1641 | *-dg) | |
1642 | os=dgux | |
1643 | ;; | |
1644 | *-dolphin) | |
1645 | os=sysv3 | |
1646 | ;; | |
1647 | m68k-ccur) | |
1648 | os=rtu | |
1649 | ;; | |
1650 | m88k-omron*) | |
1651 | os=luna | |
1652 | ;; | |
1653 | *-next) | |
1654 | os=nextstep | |
1655 | ;; | |
1656 | *-sequent) | |
1657 | os=ptx | |
1658 | ;; | |
1659 | *-crds) | |
1660 | os=unos | |
1661 | ;; | |
1662 | *-ns) | |
1663 | os=genix | |
1664 | ;; | |
1665 | i370-*) | |
1666 | os=mvs | |
1667 | ;; | |
1668 | *-gould) | |
1669 | os=sysv | |
1670 | ;; | |
1671 | *-highlevel) | |
1672 | os=bsd | |
1673 | ;; | |
1674 | *-encore) | |
1675 | os=bsd | |
1676 | ;; | |
1677 | *-sgi) | |
1678 | os=irix | |
1679 | ;; | |
1680 | *-siemens) | |
1681 | os=sysv4 | |
1682 | ;; | |
1683 | *-masscomp) | |
1684 | os=rtu | |
1685 | ;; | |
1686 | f30[01]-fujitsu | f700-fujitsu) | |
1687 | os=uxpv | |
1688 | ;; | |
1689 | *-rom68k) | |
1690 | os=coff | |
1691 | ;; | |
1692 | *-*bug) | |
1693 | os=coff | |
1694 | ;; | |
1695 | *-apple) | |
1696 | os=macos | |
1697 | ;; | |
1698 | *-atari*) | |
1699 | os=mint | |
1700 | ;; | |
1701 | *-wrs) | |
1702 | os=vxworks | |
1703 | ;; | |
1704 | *) | |
1705 | os=none | |
1706 | ;; | |
1707 | esac | |
1708 | ||
1709 | fi | |
1710 | ||
1711 | # Now, validate our (potentially fixed-up) OS. | |
1712 | case $os in | |
1713 | # Sometimes we do "kernel-libc", so those need to count as OSes. | |
1714 | musl* | newlib* | relibc* | uclibc*) | |
1715 | ;; | |
1716 | # Likewise for "kernel-abi" | |
1717 | eabi* | gnueabi*) | |
1718 | ;; | |
1719 | # VxWorks passes extra cpu info in the 4th filed. | |
1720 | simlinux | simwindows | spe) | |
1721 | ;; | |
1722 | # Now accept the basic system types. | |
1723 | # The portable systems comes first. | |
1724 | # Each alternative MUST end in a * to match a version number. | |
1725 | gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ | |
1726 | | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ | |
1727 | | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ | |
1728 | | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ | |
1729 | | hiux* | abug | nacl* | netware* | windows* \ | |
1730 | | os9* | macos* | osx* | ios* \ | |
1731 | | mpw* | magic* | mmixware* | mon960* | lnews* \ | |
1732 | | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ | |
1733 | | aos* | aros* | cloudabi* | sortix* | twizzler* \ | |
1734 | | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ | |
1735 | | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \ | |
1736 | | mirbsd* | netbsd* | dicos* | openedition* | ose* \ | |
1737 | | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \ | |
1738 | | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \ | |
1739 | | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \ | |
1740 | | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \ | |
1741 | | udi* | lites* | ieee* | go32* | aux* | hcos* \ | |
1742 | | chorusrdb* | cegcc* | glidix* | serenity* \ | |
1743 | | cygwin* | msys* | pe* | moss* | proelf* | rtems* \ | |
1744 | | midipix* | mingw32* | mingw64* | mint* \ | |
1745 | | uxpv* | beos* | mpeix* | udk* | moxiebox* \ | |
1746 | | interix* | uwin* | mks* | rhapsody* | darwin* \ | |
1747 | | openstep* | oskit* | conix* | pw32* | nonstopux* \ | |
1748 | | storm-chaos* | tops10* | tenex* | tops20* | its* \ | |
1749 | | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \ | |
1750 | | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \ | |
1751 | | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \ | |
1752 | | skyos* | haiku* | rdos* | toppers* | drops* | es* \ | |
1753 | | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ | |
1754 | | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ | |
1755 | | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ | |
1756 | | fiwix* ) | |
1757 | ;; | |
1758 | # This one is extra strict with allowed versions | |
1759 | sco3.2v2 | sco3.2v[4-9]* | sco5v6*) | |
1760 | # Don't forget version if it is 3.2v4 or newer. | |
1761 | ;; | |
1762 | none) | |
1763 | ;; | |
1764 | *) | |
1765 | echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2 | |
1766 | exit 1 | |
1767 | ;; | |
1768 | esac | |
1769 | ||
1770 | # As a final step for OS-related things, validate the OS-kernel combination | |
1771 | # (given a valid OS), if there is a kernel. | |
1772 | case $kernel-$os in | |
1773 | linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \ | |
1774 | | linux-musl* | linux-relibc* | linux-uclibc* ) | |
1775 | ;; | |
1776 | uclinux-uclibc* ) | |
1777 | ;; | |
1778 | -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* ) | |
1779 | # These are just libc implementations, not actual OSes, and thus | |
1780 | # require a kernel. | |
1781 | echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 | |
1782 | exit 1 | |
1783 | ;; | |
1784 | kfreebsd*-gnu* | kopensolaris*-gnu*) | |
1785 | ;; | |
1786 | vxworks-simlinux | vxworks-simwindows | vxworks-spe) | |
1787 | ;; | |
1788 | nto-qnx*) | |
1789 | ;; | |
1790 | os2-emx) | |
1791 | ;; | |
1792 | *-eabi* | *-gnueabi*) | |
1793 | ;; | |
1794 | -*) | |
1795 | # Blank kernel with real OS is always fine. | |
1796 | ;; | |
1797 | *-*) | |
1798 | echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 | |
1799 | exit 1 | |
1800 | ;; | |
1801 | esac | |
1802 | ||
1803 | # Here we handle the case where we know the os, and the CPU type, but not the | |
1804 | # manufacturer. We pick the logical manufacturer. | |
1805 | case $vendor in | |
1806 | unknown) | |
1807 | case $cpu-$os in | |
1808 | *-riscix*) | |
1809 | vendor=acorn | |
1810 | ;; | |
1811 | *-sunos*) | |
1812 | vendor=sun | |
1813 | ;; | |
1814 | *-cnk* | *-aix*) | |
1815 | vendor=ibm | |
1816 | ;; | |
1817 | *-beos*) | |
1818 | vendor=be | |
1819 | ;; | |
1820 | *-hpux*) | |
1821 | vendor=hp | |
1822 | ;; | |
1823 | *-mpeix*) | |
1824 | vendor=hp | |
1825 | ;; | |
1826 | *-hiux*) | |
1827 | vendor=hitachi | |
1828 | ;; | |
1829 | *-unos*) | |
1830 | vendor=crds | |
1831 | ;; | |
1832 | *-dgux*) | |
1833 | vendor=dg | |
1834 | ;; | |
1835 | *-luna*) | |
1836 | vendor=omron | |
1837 | ;; | |
1838 | *-genix*) | |
1839 | vendor=ns | |
1840 | ;; | |
1841 | *-clix*) | |
1842 | vendor=intergraph | |
1843 | ;; | |
1844 | *-mvs* | *-opened*) | |
1845 | vendor=ibm | |
1846 | ;; | |
1847 | *-os400*) | |
1848 | vendor=ibm | |
1849 | ;; | |
1850 | s390-* | s390x-*) | |
1851 | vendor=ibm | |
1852 | ;; | |
1853 | *-ptx*) | |
1854 | vendor=sequent | |
1855 | ;; | |
1856 | *-tpf*) | |
1857 | vendor=ibm | |
1858 | ;; | |
1859 | *-vxsim* | *-vxworks* | *-windiss*) | |
1860 | vendor=wrs | |
1861 | ;; | |
1862 | *-aux*) | |
1863 | vendor=apple | |
1864 | ;; | |
1865 | *-hms*) | |
1866 | vendor=hitachi | |
1867 | ;; | |
1868 | *-mpw* | *-macos*) | |
1869 | vendor=apple | |
1870 | ;; | |
1871 | *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) | |
1872 | vendor=atari | |
1873 | ;; | |
1874 | *-vos*) | |
1875 | vendor=stratus | |
1876 | ;; | |
1877 | esac | |
1878 | ;; | |
1879 | esac | |
1880 | ||
1881 | echo "$cpu-$vendor-${kernel:+$kernel-}$os" | |
1882 | exit | |
1883 | ||
1884 | # Local variables: | |
1885 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
1886 | # time-stamp-start: "timestamp='" | |
1887 | # time-stamp-format: "%:y-%02m-%02d" | |
1888 | # time-stamp-end: "'" | |
1889 | # End: |
0 | #! /bin/sh | |
1 | # Guess values for system-dependent variables and create Makefiles. | |
2 | # Generated by GNU Autoconf 2.71 for kalibrate 0.4.1. | |
3 | # | |
4 | # Report bugs to <[email protected]>. | |
5 | # | |
6 | # | |
7 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, | |
8 | # Inc. | |
9 | # | |
10 | # | |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
13 | ## -------------------- ## | |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
16 | ||
17 | # Be more Bourne compatible | |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | as_nop=: | |
20 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
21 | then : | |
22 | emulate sh | |
23 | NULLCMD=: | |
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
25 | # is contrary to our usage. Disable this feature. | |
26 | alias -g '${1+"$@"}'='"$@"' | |
27 | setopt NO_GLOB_SUBST | |
28 | else $as_nop | |
29 | case `(set -o) 2>/dev/null` in #( | |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
34 | esac | |
35 | fi | |
36 | ||
37 | ||
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. | |
46 | as_nl=' | |
47 | ' | |
48 | export as_nl | |
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 | |
75 | ||
76 | # The user is always right. | |
77 | if ${PATH_SEPARATOR+false} :; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
83 | fi | |
84 | ||
85 | ||
86 | # Find who we are. Look in the path if we contain no directory separator. | |
87 | as_myself= | |
88 | case $0 in #(( | |
89 | *[\\/]* ) as_myself=$0 ;; | |
90 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
91 | for as_dir in $PATH | |
92 | do | |
93 | IFS=$as_save_IFS | |
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 | |
100 | done | |
101 | IFS=$as_save_IFS | |
102 | ||
103 | ;; | |
104 | esac | |
105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
106 | # in which case we are not to be found in the path. | |
107 | if test "x$as_myself" = x; then | |
108 | as_myself=$0 | |
109 | fi | |
110 | if test ! -f "$as_myself"; then | |
111 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
112 | exit 1 | |
113 | fi | |
114 | ||
115 | ||
116 | # Use a proper internal environment variable to ensure we don't fall | |
117 | # into an infinite loop, continuously re-executing ourselves. | |
118 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
119 | _as_can_reexec=no; export _as_can_reexec; | |
120 | # We cannot yet assume a decent shell, so we have to provide a | |
121 | # neutralization value for shells without unset; and this also | |
122 | # works around shells that cannot unset nonexistent variables. | |
123 | # Preserve -v and -x to the replacement shell. | |
124 | BASH_ENV=/dev/null | |
125 | ENV=/dev/null | |
126 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
127 | case $- in # (((( | |
128 | *v*x* | *x*v* ) as_opts=-vx ;; | |
129 | *v* ) as_opts=-v ;; | |
130 | *x* ) as_opts=-x ;; | |
131 | * ) as_opts= ;; | |
132 | esac | |
133 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
134 | # Admittedly, this is quite paranoid, since all the known shells bail | |
135 | # out after a failed `exec'. | |
136 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
137 | exit 255 | |
138 | fi | |
139 | # We don't want this to propagate to other subprocesses. | |
140 | { _as_can_reexec=; unset _as_can_reexec;} | |
141 | if test "x$CONFIG_SHELL" = x; then | |
142 | as_bourne_compatible="as_nop=: | |
143 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
144 | then : | |
145 | emulate sh | |
146 | NULLCMD=: | |
147 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
148 | # is contrary to our usage. Disable this feature. | |
149 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
150 | setopt NO_GLOB_SUBST | |
151 | else \$as_nop | |
152 | case \`(set -o) 2>/dev/null\` in #( | |
153 | *posix*) : | |
154 | set -o posix ;; #( | |
155 | *) : | |
156 | ;; | |
157 | esac | |
158 | fi | |
159 | " | |
160 | as_required="as_fn_return () { (exit \$1); } | |
161 | as_fn_success () { as_fn_return 0; } | |
162 | as_fn_failure () { as_fn_return 1; } | |
163 | as_fn_ret_success () { return 0; } | |
164 | as_fn_ret_failure () { return 1; } | |
165 | ||
166 | exitcode=0 | |
167 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
168 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
169 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
170 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
171 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) | |
172 | then : | |
173 | ||
174 | else \$as_nop | |
175 | exitcode=1; echo positional parameters were not saved. | |
176 | fi | |
177 | test x\$exitcode = x0 || exit 1 | |
178 | blah=\$(echo \$(echo blah)) | |
179 | test x\"\$blah\" = xblah || exit 1 | |
180 | test -x / || exit 1" | |
181 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
182 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
183 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
184 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" | |
185 | if (eval "$as_required") 2>/dev/null | |
186 | then : | |
187 | as_have_required=yes | |
188 | else $as_nop | |
189 | as_have_required=no | |
190 | fi | |
191 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null | |
192 | then : | |
193 | ||
194 | else $as_nop | |
195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
196 | as_found=false | |
197 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
198 | do | |
199 | IFS=$as_save_IFS | |
200 | case $as_dir in #((( | |
201 | '') as_dir=./ ;; | |
202 | */) ;; | |
203 | *) as_dir=$as_dir/ ;; | |
204 | esac | |
205 | as_found=: | |
206 | case $as_dir in #( | |
207 | /*) | |
208 | for as_base in sh bash ksh sh5; do | |
209 | # Try only shells that exist, to save several forks. | |
210 | as_shell=$as_dir$as_base | |
211 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
212 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
213 | then : | |
214 | CONFIG_SHELL=$as_shell as_have_required=yes | |
215 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null | |
216 | then : | |
217 | break 2 | |
218 | fi | |
219 | fi | |
220 | done;; | |
221 | esac | |
222 | as_found=false | |
223 | done | |
224 | IFS=$as_save_IFS | |
225 | if $as_found | |
226 | then : | |
227 | ||
228 | else $as_nop | |
229 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
230 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
231 | then : | |
232 | CONFIG_SHELL=$SHELL as_have_required=yes | |
233 | fi | |
234 | fi | |
235 | ||
236 | ||
237 | if test "x$CONFIG_SHELL" != x | |
238 | then : | |
239 | export CONFIG_SHELL | |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
258 | fi | |
259 | ||
260 | if test x$as_have_required = xno | |
261 | then : | |
262 | printf "%s\n" "$0: This script requires a shell more modern than all" | |
263 | printf "%s\n" "$0: the shells that I found on your system." | |
264 | if test ${ZSH_VERSION+y} ; then | |
265 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
266 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." | |
267 | else | |
268 | printf "%s\n" "$0: Please tell [email protected] and [email protected] about | |
269 | $0: your system, including any error possibly output before | |
270 | $0: this message. Then install a modern shell, or manually | |
271 | $0: run the script under such a shell if you do have one." | |
272 | fi | |
273 | exit 1 | |
274 | fi | |
275 | fi | |
276 | fi | |
277 | SHELL=${CONFIG_SHELL-/bin/sh} | |
278 | export SHELL | |
279 | # Unset more variables known to interfere with behavior of common tools. | |
280 | CLICOLOR_FORCE= GREP_OPTIONS= | |
281 | unset CLICOLOR_FORCE GREP_OPTIONS | |
282 | ||
283 | ## --------------------- ## | |
284 | ## M4sh Shell Functions. ## | |
285 | ## --------------------- ## | |
286 | # as_fn_unset VAR | |
287 | # --------------- | |
288 | # Portably unset VAR. | |
289 | as_fn_unset () | |
290 | { | |
291 | { eval $1=; unset $1;} | |
292 | } | |
293 | as_unset=as_fn_unset | |
294 | ||
295 | ||
296 | # as_fn_set_status STATUS | |
297 | # ----------------------- | |
298 | # Set $? to STATUS, without forking. | |
299 | as_fn_set_status () | |
300 | { | |
301 | return $1 | |
302 | } # as_fn_set_status | |
303 | ||
304 | # as_fn_exit STATUS | |
305 | # ----------------- | |
306 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
307 | as_fn_exit () | |
308 | { | |
309 | set +e | |
310 | as_fn_set_status $1 | |
311 | exit $1 | |
312 | } # as_fn_exit | |
313 | # as_fn_nop | |
314 | # --------- | |
315 | # Do nothing but, unlike ":", preserve the value of $?. | |
316 | as_fn_nop () | |
317 | { | |
318 | return $? | |
319 | } | |
320 | as_nop=as_fn_nop | |
321 | ||
322 | # as_fn_mkdir_p | |
323 | # ------------- | |
324 | # Create "$as_dir" as a directory, including parents if necessary. | |
325 | as_fn_mkdir_p () | |
326 | { | |
327 | ||
328 | case $as_dir in #( | |
329 | -*) as_dir=./$as_dir;; | |
330 | esac | |
331 | test -d "$as_dir" || eval $as_mkdir_p || { | |
332 | as_dirs= | |
333 | while :; do | |
334 | case $as_dir in #( | |
335 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
336 | *) as_qdir=$as_dir;; | |
337 | esac | |
338 | as_dirs="'$as_qdir' $as_dirs" | |
339 | as_dir=`$as_dirname -- "$as_dir" || | |
340 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
341 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
342 | X"$as_dir" : 'X\(//\)$' \| \ | |
343 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
344 | printf "%s\n" X"$as_dir" | | |
345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
346 | s//\1/ | |
347 | q | |
348 | } | |
349 | /^X\(\/\/\)[^/].*/{ | |
350 | s//\1/ | |
351 | q | |
352 | } | |
353 | /^X\(\/\/\)$/{ | |
354 | s//\1/ | |
355 | q | |
356 | } | |
357 | /^X\(\/\).*/{ | |
358 | s//\1/ | |
359 | q | |
360 | } | |
361 | s/.*/./; q'` | |
362 | test -d "$as_dir" && break | |
363 | done | |
364 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
365 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
366 | ||
367 | ||
368 | } # as_fn_mkdir_p | |
369 | ||
370 | # as_fn_executable_p FILE | |
371 | # ----------------------- | |
372 | # Test if FILE is an executable regular file. | |
373 | as_fn_executable_p () | |
374 | { | |
375 | test -f "$1" && test -x "$1" | |
376 | } # as_fn_executable_p | |
377 | # as_fn_append VAR VALUE | |
378 | # ---------------------- | |
379 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
380 | # advantage of any shell optimizations that allow amortized linear growth over | |
381 | # repeated appends, instead of the typical quadratic growth present in naive | |
382 | # implementations. | |
383 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null | |
384 | then : | |
385 | eval 'as_fn_append () | |
386 | { | |
387 | eval $1+=\$2 | |
388 | }' | |
389 | else $as_nop | |
390 | as_fn_append () | |
391 | { | |
392 | eval $1=\$$1\$2 | |
393 | } | |
394 | fi # as_fn_append | |
395 | ||
396 | # as_fn_arith ARG... | |
397 | # ------------------ | |
398 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
400 | # must be portable across $(()) and expr. | |
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null | |
402 | then : | |
403 | eval 'as_fn_arith () | |
404 | { | |
405 | as_val=$(( $* )) | |
406 | }' | |
407 | else $as_nop | |
408 | as_fn_arith () | |
409 | { | |
410 | as_val=`expr "$@" || test $? -eq 1` | |
411 | } | |
412 | fi # as_fn_arith | |
413 | ||
414 | # as_fn_nop | |
415 | # --------- | |
416 | # Do nothing but, unlike ":", preserve the value of $?. | |
417 | as_fn_nop () | |
418 | { | |
419 | return $? | |
420 | } | |
421 | as_nop=as_fn_nop | |
422 | ||
423 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
424 | # ---------------------------------------- | |
425 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
426 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
427 | # script with STATUS, using 1 if that was 0. | |
428 | as_fn_error () | |
429 | { | |
430 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
431 | if test "$4"; then | |
432 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
433 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
434 | fi | |
435 | printf "%s\n" "$as_me: error: $2" >&2 | |
436 | as_fn_exit $as_status | |
437 | } # as_fn_error | |
438 | ||
439 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
440 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
441 | as_expr=expr | |
442 | else | |
443 | as_expr=false | |
444 | fi | |
445 | ||
446 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
447 | as_basename=basename | |
448 | else | |
449 | as_basename=false | |
450 | fi | |
451 | ||
452 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
453 | as_dirname=dirname | |
454 | else | |
455 | as_dirname=false | |
456 | fi | |
457 | ||
458 | as_me=`$as_basename -- "$0" || | |
459 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
460 | X"$0" : 'X\(//\)$' \| \ | |
461 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
462 | printf "%s\n" X/"$0" | | |
463 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
464 | s//\1/ | |
465 | q | |
466 | } | |
467 | /^X\/\(\/\/\)$/{ | |
468 | s//\1/ | |
469 | q | |
470 | } | |
471 | /^X\/\(\/\).*/{ | |
472 | s//\1/ | |
473 | q | |
474 | } | |
475 | s/.*/./; q'` | |
476 | ||
477 | # Avoid depending upon Character Ranges. | |
478 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
479 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
480 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
481 | as_cr_digits='0123456789' | |
482 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
483 | ||
484 | ||
485 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
486 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
487 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
488 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
489 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
490 | sed -n ' | |
491 | p | |
492 | /[$]LINENO/= | |
493 | ' <$as_myself | | |
494 | sed ' | |
495 | s/[$]LINENO.*/&-/ | |
496 | t lineno | |
497 | b | |
498 | :lineno | |
499 | N | |
500 | :loop | |
501 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
502 | t loop | |
503 | s/-\n.*// | |
504 | ' >$as_me.lineno && | |
505 | chmod +x "$as_me.lineno" || | |
506 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
507 | ||
508 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
509 | # already done that, so ensure we don't try to do so again and fall | |
510 | # in an infinite loop. This has already happened in practice. | |
511 | _as_can_reexec=no; export _as_can_reexec | |
512 | # Don't try to exec as it changes $[0], causing all sort of problems | |
513 | # (the dirname of $[0] is not the place where we might find the | |
514 | # original and so on. Autoconf is especially sensitive to this). | |
515 | . "./$as_me.lineno" | |
516 | # Exit status is that of the last command. | |
517 | exit | |
518 | } | |
519 | ||
520 | ||
521 | # Determine whether it's possible to make 'echo' print without a newline. | |
522 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
523 | # for compatibility with existing Makefiles. | |
524 | ECHO_C= ECHO_N= ECHO_T= | |
525 | case `echo -n x` in #((((( | |
526 | -n*) | |
527 | case `echo 'xy\c'` in | |
528 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
529 | xy) ECHO_C='\c';; | |
530 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
531 | ECHO_T=' ';; | |
532 | esac;; | |
533 | *) | |
534 | ECHO_N='-n';; | |
535 | esac | |
536 | ||
537 | # For backward compatibility with old third-party macros, we provide | |
538 | # the shell variables $as_echo and $as_echo_n. New code should use | |
539 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
540 | as_echo='printf %s\n' | |
541 | as_echo_n='printf %s' | |
542 | ||
543 | ||
544 | rm -f conf$$ conf$$.exe conf$$.file | |
545 | if test -d conf$$.dir; then | |
546 | rm -f conf$$.dir/conf$$.file | |
547 | else | |
548 | rm -f conf$$.dir | |
549 | mkdir conf$$.dir 2>/dev/null | |
550 | fi | |
551 | if (echo >conf$$.file) 2>/dev/null; then | |
552 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
553 | as_ln_s='ln -s' | |
554 | # ... but there are two gotchas: | |
555 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
556 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
557 | # In both cases, we have to default to `cp -pR'. | |
558 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
559 | as_ln_s='cp -pR' | |
560 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
561 | as_ln_s=ln | |
562 | else | |
563 | as_ln_s='cp -pR' | |
564 | fi | |
565 | else | |
566 | as_ln_s='cp -pR' | |
567 | fi | |
568 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
569 | rmdir conf$$.dir 2>/dev/null | |
570 | ||
571 | if mkdir -p . 2>/dev/null; then | |
572 | as_mkdir_p='mkdir -p "$as_dir"' | |
573 | else | |
574 | test -d ./-p && rmdir ./-p | |
575 | as_mkdir_p=false | |
576 | fi | |
577 | ||
578 | as_test_x='test -x' | |
579 | as_executable_p=as_fn_executable_p | |
580 | ||
581 | # Sed expression to map a string onto a valid CPP name. | |
582 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
583 | ||
584 | # Sed expression to map a string onto a valid variable name. | |
585 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
586 | ||
587 | ||
588 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
589 | exec 6>&1 | |
590 | ||
591 | # Name of the host. | |
592 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
593 | # so uname gets run too. | |
594 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
595 | ||
596 | # | |
597 | # Initializations. | |
598 | # | |
599 | ac_default_prefix=/usr/local | |
600 | ac_clean_files= | |
601 | ac_config_libobj_dir=. | |
602 | LIBOBJS= | |
603 | cross_compiling=no | |
604 | subdirs= | |
605 | MFLAGS= | |
606 | MAKEFLAGS= | |
607 | ||
608 | # Identity of this package. | |
609 | PACKAGE_NAME='kalibrate' | |
610 | PACKAGE_TARNAME='kal' | |
611 | PACKAGE_VERSION='0.4.1' | |
612 | PACKAGE_STRING='kalibrate 0.4.1' | |
613 | PACKAGE_BUGREPORT='[email protected]' | |
614 | PACKAGE_URL='' | |
615 | ||
616 | ac_unique_file="src/fcch_detector.cc" | |
617 | # Factoring default headers for most tests. | |
618 | ac_includes_default="\ | |
619 | #include <stddef.h> | |
620 | #ifdef HAVE_STDIO_H | |
621 | # include <stdio.h> | |
622 | #endif | |
623 | #ifdef HAVE_STDLIB_H | |
624 | # include <stdlib.h> | |
625 | #endif | |
626 | #ifdef HAVE_STRING_H | |
627 | # include <string.h> | |
628 | #endif | |
629 | #ifdef HAVE_INTTYPES_H | |
630 | # include <inttypes.h> | |
631 | #endif | |
632 | #ifdef HAVE_STDINT_H | |
633 | # include <stdint.h> | |
634 | #endif | |
635 | #ifdef HAVE_STRINGS_H | |
636 | # include <strings.h> | |
637 | #endif | |
638 | #ifdef HAVE_SYS_TYPES_H | |
639 | # include <sys/types.h> | |
640 | #endif | |
641 | #ifdef HAVE_SYS_STAT_H | |
642 | # include <sys/stat.h> | |
643 | #endif | |
644 | #ifdef HAVE_UNISTD_H | |
645 | # include <unistd.h> | |
646 | #endif" | |
647 | ||
648 | ac_header_c_list= | |
649 | ac_subst_vars='am__EXEEXT_FALSE | |
650 | am__EXEEXT_TRUE | |
651 | LTLIBOBJS | |
652 | LRT_FLAGS | |
653 | host_os | |
654 | host_vendor | |
655 | host_cpu | |
656 | host | |
657 | build_os | |
658 | build_vendor | |
659 | build_cpu | |
660 | build | |
661 | LIBRTLSDR_LIBS | |
662 | LIBRTLSDR_CFLAGS | |
663 | FFTW3_LIBS | |
664 | FFTW3_CFLAGS | |
665 | PKG_CONFIG_LIBDIR | |
666 | PKG_CONFIG_PATH | |
667 | PKG_CONFIG | |
668 | LIBOBJS | |
669 | POW_LIB | |
670 | RANLIB | |
671 | LN_S | |
672 | am__fastdepCC_FALSE | |
673 | am__fastdepCC_TRUE | |
674 | CCDEPMODE | |
675 | ac_ct_CC | |
676 | CFLAGS | |
677 | CC | |
678 | am__fastdepCXX_FALSE | |
679 | am__fastdepCXX_TRUE | |
680 | CXXDEPMODE | |
681 | am__nodep | |
682 | AMDEPBACKSLASH | |
683 | AMDEP_FALSE | |
684 | AMDEP_TRUE | |
685 | am__include | |
686 | DEPDIR | |
687 | OBJEXT | |
688 | EXEEXT | |
689 | ac_ct_CXX | |
690 | CPPFLAGS | |
691 | LDFLAGS | |
692 | CXXFLAGS | |
693 | CXX | |
694 | AM_BACKSLASH | |
695 | AM_DEFAULT_VERBOSITY | |
696 | AM_DEFAULT_V | |
697 | AM_V | |
698 | CSCOPE | |
699 | ETAGS | |
700 | CTAGS | |
701 | am__untar | |
702 | am__tar | |
703 | AMTAR | |
704 | am__leading_dot | |
705 | SET_MAKE | |
706 | AWK | |
707 | mkdir_p | |
708 | MKDIR_P | |
709 | INSTALL_STRIP_PROGRAM | |
710 | STRIP | |
711 | install_sh | |
712 | MAKEINFO | |
713 | AUTOHEADER | |
714 | AUTOMAKE | |
715 | AUTOCONF | |
716 | ACLOCAL | |
717 | VERSION | |
718 | PACKAGE | |
719 | CYGPATH_W | |
720 | am__isrc | |
721 | INSTALL_DATA | |
722 | INSTALL_SCRIPT | |
723 | INSTALL_PROGRAM | |
724 | target_alias | |
725 | host_alias | |
726 | build_alias | |
727 | LIBS | |
728 | ECHO_T | |
729 | ECHO_N | |
730 | ECHO_C | |
731 | DEFS | |
732 | mandir | |
733 | localedir | |
734 | libdir | |
735 | psdir | |
736 | pdfdir | |
737 | dvidir | |
738 | htmldir | |
739 | infodir | |
740 | docdir | |
741 | oldincludedir | |
742 | includedir | |
743 | runstatedir | |
744 | localstatedir | |
745 | sharedstatedir | |
746 | sysconfdir | |
747 | datadir | |
748 | datarootdir | |
749 | libexecdir | |
750 | sbindir | |
751 | bindir | |
752 | program_transform_name | |
753 | prefix | |
754 | exec_prefix | |
755 | PACKAGE_URL | |
756 | PACKAGE_BUGREPORT | |
757 | PACKAGE_STRING | |
758 | PACKAGE_VERSION | |
759 | PACKAGE_TARNAME | |
760 | PACKAGE_NAME | |
761 | PATH_SEPARATOR | |
762 | SHELL | |
763 | am__quote' | |
764 | ac_subst_files='' | |
765 | ac_user_opts=' | |
766 | enable_option_checking | |
767 | enable_silent_rules | |
768 | enable_dependency_tracking | |
769 | ' | |
770 | ac_precious_vars='build_alias | |
771 | host_alias | |
772 | target_alias | |
773 | CXX | |
774 | CXXFLAGS | |
775 | LDFLAGS | |
776 | LIBS | |
777 | CPPFLAGS | |
778 | CCC | |
779 | CC | |
780 | CFLAGS | |
781 | PKG_CONFIG | |
782 | PKG_CONFIG_PATH | |
783 | PKG_CONFIG_LIBDIR | |
784 | FFTW3_CFLAGS | |
785 | FFTW3_LIBS | |
786 | LIBRTLSDR_CFLAGS | |
787 | LIBRTLSDR_LIBS' | |
788 | ||
789 | ||
790 | # Initialize some variables set by options. | |
791 | ac_init_help= | |
792 | ac_init_version=false | |
793 | ac_unrecognized_opts= | |
794 | ac_unrecognized_sep= | |
795 | # The variables have the same names as the options, with | |
796 | # dashes changed to underlines. | |
797 | cache_file=/dev/null | |
798 | exec_prefix=NONE | |
799 | no_create= | |
800 | no_recursion= | |
801 | prefix=NONE | |
802 | program_prefix=NONE | |
803 | program_suffix=NONE | |
804 | program_transform_name=s,x,x, | |
805 | silent= | |
806 | site= | |
807 | srcdir= | |
808 | verbose= | |
809 | x_includes=NONE | |
810 | x_libraries=NONE | |
811 | ||
812 | # Installation directory options. | |
813 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
814 | # and all the variables that are supposed to be based on exec_prefix | |
815 | # by default will actually change. | |
816 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
817 | # (The list follows the same order as the GNU Coding Standards.) | |
818 | bindir='${exec_prefix}/bin' | |
819 | sbindir='${exec_prefix}/sbin' | |
820 | libexecdir='${exec_prefix}/libexec' | |
821 | datarootdir='${prefix}/share' | |
822 | datadir='${datarootdir}' | |
823 | sysconfdir='${prefix}/etc' | |
824 | sharedstatedir='${prefix}/com' | |
825 | localstatedir='${prefix}/var' | |
826 | runstatedir='${localstatedir}/run' | |
827 | includedir='${prefix}/include' | |
828 | oldincludedir='/usr/include' | |
829 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
830 | infodir='${datarootdir}/info' | |
831 | htmldir='${docdir}' | |
832 | dvidir='${docdir}' | |
833 | pdfdir='${docdir}' | |
834 | psdir='${docdir}' | |
835 | libdir='${exec_prefix}/lib' | |
836 | localedir='${datarootdir}/locale' | |
837 | mandir='${datarootdir}/man' | |
838 | ||
839 | ac_prev= | |
840 | ac_dashdash= | |
841 | for ac_option | |
842 | do | |
843 | # If the previous option needs an argument, assign it. | |
844 | if test -n "$ac_prev"; then | |
845 | eval $ac_prev=\$ac_option | |
846 | ac_prev= | |
847 | continue | |
848 | fi | |
849 | ||
850 | case $ac_option in | |
851 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
852 | *=) ac_optarg= ;; | |
853 | *) ac_optarg=yes ;; | |
854 | esac | |
855 | ||
856 | case $ac_dashdash$ac_option in | |
857 | --) | |
858 | ac_dashdash=yes ;; | |
859 | ||
860 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
861 | ac_prev=bindir ;; | |
862 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
863 | bindir=$ac_optarg ;; | |
864 | ||
865 | -build | --build | --buil | --bui | --bu) | |
866 | ac_prev=build_alias ;; | |
867 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
868 | build_alias=$ac_optarg ;; | |
869 | ||
870 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
871 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
872 | ac_prev=cache_file ;; | |
873 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
874 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
875 | cache_file=$ac_optarg ;; | |
876 | ||
877 | --config-cache | -C) | |
878 | cache_file=config.cache ;; | |
879 | ||
880 | -datadir | --datadir | --datadi | --datad) | |
881 | ac_prev=datadir ;; | |
882 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
883 | datadir=$ac_optarg ;; | |
884 | ||
885 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
886 | | --dataroo | --dataro | --datar) | |
887 | ac_prev=datarootdir ;; | |
888 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
889 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
890 | datarootdir=$ac_optarg ;; | |
891 | ||
892 | -disable-* | --disable-*) | |
893 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
894 | # Reject names that are not valid shell variable names. | |
895 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
896 | as_fn_error $? "invalid feature name: \`$ac_useropt'" | |
897 | ac_useropt_orig=$ac_useropt | |
898 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
899 | case $ac_user_opts in | |
900 | *" | |
901 | "enable_$ac_useropt" | |
902 | "*) ;; | |
903 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
904 | ac_unrecognized_sep=', ';; | |
905 | esac | |
906 | eval enable_$ac_useropt=no ;; | |
907 | ||
908 | -docdir | --docdir | --docdi | --doc | --do) | |
909 | ac_prev=docdir ;; | |
910 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
911 | docdir=$ac_optarg ;; | |
912 | ||
913 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
914 | ac_prev=dvidir ;; | |
915 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
916 | dvidir=$ac_optarg ;; | |
917 | ||
918 | -enable-* | --enable-*) | |
919 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
920 | # Reject names that are not valid shell variable names. | |
921 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
922 | as_fn_error $? "invalid feature name: \`$ac_useropt'" | |
923 | ac_useropt_orig=$ac_useropt | |
924 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
925 | case $ac_user_opts in | |
926 | *" | |
927 | "enable_$ac_useropt" | |
928 | "*) ;; | |
929 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
930 | ac_unrecognized_sep=', ';; | |
931 | esac | |
932 | eval enable_$ac_useropt=\$ac_optarg ;; | |
933 | ||
934 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
935 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
936 | | --exec | --exe | --ex) | |
937 | ac_prev=exec_prefix ;; | |
938 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
939 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
940 | | --exec=* | --exe=* | --ex=*) | |
941 | exec_prefix=$ac_optarg ;; | |
942 | ||
943 | -gas | --gas | --ga | --g) | |
944 | # Obsolete; use --with-gas. | |
945 | with_gas=yes ;; | |
946 | ||
947 | -help | --help | --hel | --he | -h) | |
948 | ac_init_help=long ;; | |
949 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
950 | ac_init_help=recursive ;; | |
951 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
952 | ac_init_help=short ;; | |
953 | ||
954 | -host | --host | --hos | --ho) | |
955 | ac_prev=host_alias ;; | |
956 | -host=* | --host=* | --hos=* | --ho=*) | |
957 | host_alias=$ac_optarg ;; | |
958 | ||
959 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
960 | ac_prev=htmldir ;; | |
961 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
962 | | --ht=*) | |
963 | htmldir=$ac_optarg ;; | |
964 | ||
965 | -includedir | --includedir | --includedi | --included | --include \ | |
966 | | --includ | --inclu | --incl | --inc) | |
967 | ac_prev=includedir ;; | |
968 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
969 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
970 | includedir=$ac_optarg ;; | |
971 | ||
972 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
973 | ac_prev=infodir ;; | |
974 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
975 | infodir=$ac_optarg ;; | |
976 | ||
977 | -libdir | --libdir | --libdi | --libd) | |
978 | ac_prev=libdir ;; | |
979 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
980 | libdir=$ac_optarg ;; | |
981 | ||
982 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
983 | | --libexe | --libex | --libe) | |
984 | ac_prev=libexecdir ;; | |
985 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
986 | | --libexe=* | --libex=* | --libe=*) | |
987 | libexecdir=$ac_optarg ;; | |
988 | ||
989 | -localedir | --localedir | --localedi | --localed | --locale) | |
990 | ac_prev=localedir ;; | |
991 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
992 | localedir=$ac_optarg ;; | |
993 | ||
994 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
995 | | --localstate | --localstat | --localsta | --localst | --locals) | |
996 | ac_prev=localstatedir ;; | |
997 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
998 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
999 | localstatedir=$ac_optarg ;; | |
1000 | ||
1001 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1002 | ac_prev=mandir ;; | |
1003 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1004 | mandir=$ac_optarg ;; | |
1005 | ||
1006 | -nfp | --nfp | --nf) | |
1007 | # Obsolete; use --without-fp. | |
1008 | with_fp=no ;; | |
1009 | ||
1010 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1011 | | --no-cr | --no-c | -n) | |
1012 | no_create=yes ;; | |
1013 | ||
1014 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1015 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1016 | no_recursion=yes ;; | |
1017 | ||
1018 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1019 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1020 | | --oldin | --oldi | --old | --ol | --o) | |
1021 | ac_prev=oldincludedir ;; | |
1022 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1023 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1024 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1025 | oldincludedir=$ac_optarg ;; | |
1026 | ||
1027 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1028 | ac_prev=prefix ;; | |
1029 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1030 | prefix=$ac_optarg ;; | |
1031 | ||
1032 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1033 | | --program-pre | --program-pr | --program-p) | |
1034 | ac_prev=program_prefix ;; | |
1035 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1036 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1037 | program_prefix=$ac_optarg ;; | |
1038 | ||
1039 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1040 | | --program-suf | --program-su | --program-s) | |
1041 | ac_prev=program_suffix ;; | |
1042 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1043 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1044 | program_suffix=$ac_optarg ;; | |
1045 | ||
1046 | -program-transform-name | --program-transform-name \ | |
1047 | | --program-transform-nam | --program-transform-na \ | |
1048 | | --program-transform-n | --program-transform- \ | |
1049 | | --program-transform | --program-transfor \ | |
1050 | | --program-transfo | --program-transf \ | |
1051 | | --program-trans | --program-tran \ | |
1052 | | --progr-tra | --program-tr | --program-t) | |
1053 | ac_prev=program_transform_name ;; | |
1054 | -program-transform-name=* | --program-transform-name=* \ | |
1055 | | --program-transform-nam=* | --program-transform-na=* \ | |
1056 | | --program-transform-n=* | --program-transform-=* \ | |
1057 | | --program-transform=* | --program-transfor=* \ | |
1058 | | --program-transfo=* | --program-transf=* \ | |
1059 | | --program-trans=* | --program-tran=* \ | |
1060 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1061 | program_transform_name=$ac_optarg ;; | |
1062 | ||
1063 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1064 | ac_prev=pdfdir ;; | |
1065 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1066 | pdfdir=$ac_optarg ;; | |
1067 | ||
1068 | -psdir | --psdir | --psdi | --psd | --ps) | |
1069 | ac_prev=psdir ;; | |
1070 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1071 | psdir=$ac_optarg ;; | |
1072 | ||
1073 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1074 | | -silent | --silent | --silen | --sile | --sil) | |
1075 | silent=yes ;; | |
1076 | ||
1077 | -runstatedir | --runstatedir | --runstatedi | --runstated \ | |
1078 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1079 | | --run | --ru | --r) | |
1080 | ac_prev=runstatedir ;; | |
1081 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1082 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1083 | | --run=* | --ru=* | --r=*) | |
1084 | runstatedir=$ac_optarg ;; | |
1085 | ||
1086 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1087 | ac_prev=sbindir ;; | |
1088 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1089 | | --sbi=* | --sb=*) | |
1090 | sbindir=$ac_optarg ;; | |
1091 | ||
1092 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1093 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1094 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1095 | | --sha | --sh) | |
1096 | ac_prev=sharedstatedir ;; | |
1097 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1098 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1099 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1100 | | --sha=* | --sh=*) | |
1101 | sharedstatedir=$ac_optarg ;; | |
1102 | ||
1103 | -site | --site | --sit) | |
1104 | ac_prev=site ;; | |
1105 | -site=* | --site=* | --sit=*) | |
1106 | site=$ac_optarg ;; | |
1107 | ||
1108 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1109 | ac_prev=srcdir ;; | |
1110 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1111 | srcdir=$ac_optarg ;; | |
1112 | ||
1113 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1114 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1115 | ac_prev=sysconfdir ;; | |
1116 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1117 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1118 | sysconfdir=$ac_optarg ;; | |
1119 | ||
1120 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1121 | ac_prev=target_alias ;; | |
1122 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1123 | target_alias=$ac_optarg ;; | |
1124 | ||
1125 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1126 | verbose=yes ;; | |
1127 | ||
1128 | -version | --version | --versio | --versi | --vers | -V) | |
1129 | ac_init_version=: ;; | |
1130 | ||
1131 | -with-* | --with-*) | |
1132 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1133 | # Reject names that are not valid shell variable names. | |
1134 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1135 | as_fn_error $? "invalid package name: \`$ac_useropt'" | |
1136 | ac_useropt_orig=$ac_useropt | |
1137 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1138 | case $ac_user_opts in | |
1139 | *" | |
1140 | "with_$ac_useropt" | |
1141 | "*) ;; | |
1142 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1143 | ac_unrecognized_sep=', ';; | |
1144 | esac | |
1145 | eval with_$ac_useropt=\$ac_optarg ;; | |
1146 | ||
1147 | -without-* | --without-*) | |
1148 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1149 | # Reject names that are not valid shell variable names. | |
1150 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1151 | as_fn_error $? "invalid package name: \`$ac_useropt'" | |
1152 | ac_useropt_orig=$ac_useropt | |
1153 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1154 | case $ac_user_opts in | |
1155 | *" | |
1156 | "with_$ac_useropt" | |
1157 | "*) ;; | |
1158 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1159 | ac_unrecognized_sep=', ';; | |
1160 | esac | |
1161 | eval with_$ac_useropt=no ;; | |
1162 | ||
1163 | --x) | |
1164 | # Obsolete; use --with-x. | |
1165 | with_x=yes ;; | |
1166 | ||
1167 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1168 | | --x-incl | --x-inc | --x-in | --x-i) | |
1169 | ac_prev=x_includes ;; | |
1170 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1171 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1172 | x_includes=$ac_optarg ;; | |
1173 | ||
1174 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1175 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1176 | ac_prev=x_libraries ;; | |
1177 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1178 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1179 | x_libraries=$ac_optarg ;; | |
1180 | ||
1181 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1182 | Try \`$0 --help' for more information" | |
1183 | ;; | |
1184 | ||
1185 | *=*) | |
1186 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1187 | # Reject names that are not valid shell variable names. | |
1188 | case $ac_envvar in #( | |
1189 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1190 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1191 | esac | |
1192 | eval $ac_envvar=\$ac_optarg | |
1193 | export $ac_envvar ;; | |
1194 | ||
1195 | *) | |
1196 | # FIXME: should be removed in autoconf 3.0. | |
1197 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1198 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1199 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1200 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1201 | ;; | |
1202 | ||
1203 | esac | |
1204 | done | |
1205 | ||
1206 | if test -n "$ac_prev"; then | |
1207 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1208 | as_fn_error $? "missing argument to $ac_option" | |
1209 | fi | |
1210 | ||
1211 | if test -n "$ac_unrecognized_opts"; then | |
1212 | case $enable_option_checking in | |
1213 | no) ;; | |
1214 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1215 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1216 | esac | |
1217 | fi | |
1218 | ||
1219 | # Check all directory arguments for consistency. | |
1220 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1221 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1222 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1223 | libdir localedir mandir runstatedir | |
1224 | do | |
1225 | eval ac_val=\$$ac_var | |
1226 | # Remove trailing slashes. | |
1227 | case $ac_val in | |
1228 | */ ) | |
1229 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1230 | eval $ac_var=\$ac_val;; | |
1231 | esac | |
1232 | # Be sure to have absolute directory names. | |
1233 | case $ac_val in | |
1234 | [\\/$]* | ?:[\\/]* ) continue;; | |
1235 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1236 | esac | |
1237 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1238 | done | |
1239 | ||
1240 | # There might be people who depend on the old broken behavior: `$host' | |
1241 | # used to hold the argument of --host etc. | |
1242 | # FIXME: To remove some day. | |
1243 | build=$build_alias | |
1244 | host=$host_alias | |
1245 | target=$target_alias | |
1246 | ||
1247 | # FIXME: To remove some day. | |
1248 | if test "x$host_alias" != x; then | |
1249 | if test "x$build_alias" = x; then | |
1250 | cross_compiling=maybe | |
1251 | elif test "x$build_alias" != "x$host_alias"; then | |
1252 | cross_compiling=yes | |
1253 | fi | |
1254 | fi | |
1255 | ||
1256 | ac_tool_prefix= | |
1257 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1258 | ||
1259 | test "$silent" = yes && exec 6>/dev/null | |
1260 | ||
1261 | ||
1262 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1263 | ac_ls_di=`ls -di .` && | |
1264 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1265 | as_fn_error $? "working directory cannot be determined" | |
1266 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1267 | as_fn_error $? "pwd does not report name of working directory" | |
1268 | ||
1269 | ||
1270 | # Find the source files, if location was not specified. | |
1271 | if test -z "$srcdir"; then | |
1272 | ac_srcdir_defaulted=yes | |
1273 | # Try the directory containing this script, then the parent directory. | |
1274 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1275 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1276 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1277 | X"$as_myself" : 'X\(//\)$' \| \ | |
1278 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1279 | printf "%s\n" X"$as_myself" | | |
1280 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1281 | s//\1/ | |
1282 | q | |
1283 | } | |
1284 | /^X\(\/\/\)[^/].*/{ | |
1285 | s//\1/ | |
1286 | q | |
1287 | } | |
1288 | /^X\(\/\/\)$/{ | |
1289 | s//\1/ | |
1290 | q | |
1291 | } | |
1292 | /^X\(\/\).*/{ | |
1293 | s//\1/ | |
1294 | q | |
1295 | } | |
1296 | s/.*/./; q'` | |
1297 | srcdir=$ac_confdir | |
1298 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1299 | srcdir=.. | |
1300 | fi | |
1301 | else | |
1302 | ac_srcdir_defaulted=no | |
1303 | fi | |
1304 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1305 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1306 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1307 | fi | |
1308 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1309 | ac_abs_confdir=`( | |
1310 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1311 | pwd)` | |
1312 | # When building in place, set srcdir=. | |
1313 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1314 | srcdir=. | |
1315 | fi | |
1316 | # Remove unnecessary trailing slashes from srcdir. | |
1317 | # Double slashes in file names in object file debugging info | |
1318 | # mess up M-x gdb in Emacs. | |
1319 | case $srcdir in | |
1320 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1321 | esac | |
1322 | for ac_var in $ac_precious_vars; do | |
1323 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1324 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1325 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1326 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1327 | done | |
1328 | ||
1329 | # | |
1330 | # Report the --help message. | |
1331 | # | |
1332 | if test "$ac_init_help" = "long"; then | |
1333 | # Omit some internal or obsolete options to make the list less imposing. | |
1334 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1335 | cat <<_ACEOF | |
1336 | \`configure' configures kalibrate 0.4.1 to adapt to many kinds of systems. | |
1337 | ||
1338 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1339 | ||
1340 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1341 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1342 | ||
1343 | Defaults for the options are specified in brackets. | |
1344 | ||
1345 | Configuration: | |
1346 | -h, --help display this help and exit | |
1347 | --help=short display options specific to this package | |
1348 | --help=recursive display the short help of all the included packages | |
1349 | -V, --version display version information and exit | |
1350 | -q, --quiet, --silent do not print \`checking ...' messages | |
1351 | --cache-file=FILE cache test results in FILE [disabled] | |
1352 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1353 | -n, --no-create do not create output files | |
1354 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1355 | ||
1356 | Installation directories: | |
1357 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1358 | [$ac_default_prefix] | |
1359 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1360 | [PREFIX] | |
1361 | ||
1362 | By default, \`make install' will install all the files in | |
1363 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1364 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1365 | for instance \`--prefix=\$HOME'. | |
1366 | ||
1367 | For better control, use the options below. | |
1368 | ||
1369 | Fine tuning of the installation directories: | |
1370 | --bindir=DIR user executables [EPREFIX/bin] | |
1371 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1372 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1373 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1374 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1375 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1376 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] | |
1377 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1378 | --includedir=DIR C header files [PREFIX/include] | |
1379 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1380 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1381 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1382 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1383 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1384 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1385 | --docdir=DIR documentation root [DATAROOTDIR/doc/kal] | |
1386 | --htmldir=DIR html documentation [DOCDIR] | |
1387 | --dvidir=DIR dvi documentation [DOCDIR] | |
1388 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1389 | --psdir=DIR ps documentation [DOCDIR] | |
1390 | _ACEOF | |
1391 | ||
1392 | cat <<\_ACEOF | |
1393 | ||
1394 | Program names: | |
1395 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1396 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1397 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1398 | ||
1399 | System types: | |
1400 | --build=BUILD configure for building on BUILD [guessed] | |
1401 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1402 | _ACEOF | |
1403 | fi | |
1404 | ||
1405 | if test -n "$ac_init_help"; then | |
1406 | case $ac_init_help in | |
1407 | short | recursive ) echo "Configuration of kalibrate 0.4.1:";; | |
1408 | esac | |
1409 | cat <<\_ACEOF | |
1410 | ||
1411 | Optional Features: | |
1412 | --disable-option-checking ignore unrecognized --enable/--with options | |
1413 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1414 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1415 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1416 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1417 | --enable-dependency-tracking | |
1418 | do not reject slow dependency extractors | |
1419 | --disable-dependency-tracking | |
1420 | speeds up one-time build | |
1421 | ||
1422 | Some influential environment variables: | |
1423 | CXX C++ compiler command | |
1424 | CXXFLAGS C++ compiler flags | |
1425 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1426 | nonstandard directory <lib dir> | |
1427 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1428 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1429 | you have headers in a nonstandard directory <include dir> | |
1430 | CC C compiler command | |
1431 | CFLAGS C compiler flags | |
1432 | PKG_CONFIG path to pkg-config utility | |
1433 | PKG_CONFIG_PATH | |
1434 | directories to add to pkg-config's search path | |
1435 | PKG_CONFIG_LIBDIR | |
1436 | path overriding pkg-config's built-in search path | |
1437 | FFTW3_CFLAGS | |
1438 | C compiler flags for FFTW3, overriding pkg-config | |
1439 | FFTW3_LIBS linker flags for FFTW3, overriding pkg-config | |
1440 | LIBRTLSDR_CFLAGS | |
1441 | C compiler flags for LIBRTLSDR, overriding pkg-config | |
1442 | LIBRTLSDR_LIBS | |
1443 | linker flags for LIBRTLSDR, overriding pkg-config | |
1444 | ||
1445 | Use these variables to override the choices made by `configure' or to help | |
1446 | it to find libraries and programs with nonstandard names/locations. | |
1447 | ||
1448 | Report bugs to <[email protected]>. | |
1449 | _ACEOF | |
1450 | ac_status=$? | |
1451 | fi | |
1452 | ||
1453 | if test "$ac_init_help" = "recursive"; then | |
1454 | # If there are subdirs, report their specific --help. | |
1455 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1456 | test -d "$ac_dir" || | |
1457 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1458 | continue | |
1459 | ac_builddir=. | |
1460 | ||
1461 | case "$ac_dir" in | |
1462 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1463 | *) | |
1464 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` | |
1465 | # A ".." for each directory in $ac_dir_suffix. | |
1466 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1467 | case $ac_top_builddir_sub in | |
1468 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1469 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1470 | esac ;; | |
1471 | esac | |
1472 | ac_abs_top_builddir=$ac_pwd | |
1473 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1474 | # for backward compatibility: | |
1475 | ac_top_builddir=$ac_top_build_prefix | |
1476 | ||
1477 | case $srcdir in | |
1478 | .) # We are building in place. | |
1479 | ac_srcdir=. | |
1480 | ac_top_srcdir=$ac_top_builddir_sub | |
1481 | ac_abs_top_srcdir=$ac_pwd ;; | |
1482 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1483 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1484 | ac_top_srcdir=$srcdir | |
1485 | ac_abs_top_srcdir=$srcdir ;; | |
1486 | *) # Relative name. | |
1487 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1488 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1489 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1490 | esac | |
1491 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1492 | ||
1493 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1494 | # Check for configure.gnu first; this name is used for a wrapper for | |
1495 | # Metaconfig's "Configure" on case-insensitive file systems. | |
1496 | if test -f "$ac_srcdir/configure.gnu"; then | |
1497 | echo && | |
1498 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1499 | elif test -f "$ac_srcdir/configure"; then | |
1500 | echo && | |
1501 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1502 | else | |
1503 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1504 | fi || ac_status=$? | |
1505 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1506 | done | |
1507 | fi | |
1508 | ||
1509 | test -n "$ac_init_help" && exit $ac_status | |
1510 | if $ac_init_version; then | |
1511 | cat <<\_ACEOF | |
1512 | kalibrate configure 0.4.1 | |
1513 | generated by GNU Autoconf 2.71 | |
1514 | ||
1515 | Copyright (C) 2021 Free Software Foundation, Inc. | |
1516 | This configure script is free software; the Free Software Foundation | |
1517 | gives unlimited permission to copy, distribute and modify it. | |
1518 | _ACEOF | |
1519 | exit | |
1520 | fi | |
1521 | ||
1522 | ## ------------------------ ## | |
1523 | ## Autoconf initialization. ## | |
1524 | ## ------------------------ ## | |
1525 | ||
1526 | # ac_fn_cxx_try_compile LINENO | |
1527 | # ---------------------------- | |
1528 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1529 | ac_fn_cxx_try_compile () | |
1530 | { | |
1531 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1532 | rm -f conftest.$ac_objext conftest.beam | |
1533 | if { { ac_try="$ac_compile" | |
1534 | case "(($ac_try" in | |
1535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1536 | *) ac_try_echo=$ac_try;; | |
1537 | esac | |
1538 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1539 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1540 | (eval "$ac_compile") 2>conftest.err | |
1541 | ac_status=$? | |
1542 | if test -s conftest.err; then | |
1543 | grep -v '^ *+' conftest.err >conftest.er1 | |
1544 | cat conftest.er1 >&5 | |
1545 | mv -f conftest.er1 conftest.err | |
1546 | fi | |
1547 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1548 | test $ac_status = 0; } && { | |
1549 | test -z "$ac_cxx_werror_flag" || | |
1550 | test ! -s conftest.err | |
1551 | } && test -s conftest.$ac_objext | |
1552 | then : | |
1553 | ac_retval=0 | |
1554 | else $as_nop | |
1555 | printf "%s\n" "$as_me: failed program was:" >&5 | |
1556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1557 | ||
1558 | ac_retval=1 | |
1559 | fi | |
1560 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1561 | as_fn_set_status $ac_retval | |
1562 | ||
1563 | } # ac_fn_cxx_try_compile | |
1564 | ||
1565 | # ac_fn_c_try_compile LINENO | |
1566 | # -------------------------- | |
1567 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1568 | ac_fn_c_try_compile () | |
1569 | { | |
1570 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1571 | rm -f conftest.$ac_objext conftest.beam | |
1572 | if { { ac_try="$ac_compile" | |
1573 | case "(($ac_try" in | |
1574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1575 | *) ac_try_echo=$ac_try;; | |
1576 | esac | |
1577 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1578 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1579 | (eval "$ac_compile") 2>conftest.err | |
1580 | ac_status=$? | |
1581 | if test -s conftest.err; then | |
1582 | grep -v '^ *+' conftest.err >conftest.er1 | |
1583 | cat conftest.er1 >&5 | |
1584 | mv -f conftest.er1 conftest.err | |
1585 | fi | |
1586 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1587 | test $ac_status = 0; } && { | |
1588 | test -z "$ac_c_werror_flag" || | |
1589 | test ! -s conftest.err | |
1590 | } && test -s conftest.$ac_objext | |
1591 | then : | |
1592 | ac_retval=0 | |
1593 | else $as_nop | |
1594 | printf "%s\n" "$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_compile | |
1603 | ||
1604 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1605 | # ------------------------------------------------------- | |
1606 | # Tests whether HEADER exists and can be compiled using the include files in | |
1607 | # INCLUDES, setting the cache variable VAR accordingly. | |
1608 | ac_fn_c_check_header_compile () | |
1609 | { | |
1610 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1611 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1612 | printf %s "checking for $2... " >&6; } | |
1613 | if eval test \${$3+y} | |
1614 | then : | |
1615 | printf %s "(cached) " >&6 | |
1616 | else $as_nop | |
1617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1618 | /* end confdefs.h. */ | |
1619 | $4 | |
1620 | #include <$2> | |
1621 | _ACEOF | |
1622 | if ac_fn_c_try_compile "$LINENO" | |
1623 | then : | |
1624 | eval "$3=yes" | |
1625 | else $as_nop | |
1626 | eval "$3=no" | |
1627 | fi | |
1628 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1629 | fi | |
1630 | eval ac_res=\$$3 | |
1631 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1632 | printf "%s\n" "$ac_res" >&6; } | |
1633 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1634 | ||
1635 | } # ac_fn_c_check_header_compile | |
1636 | ||
1637 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1638 | # ------------------------------------------- | |
1639 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1640 | # variable VAR accordingly. | |
1641 | ac_fn_c_check_type () | |
1642 | { | |
1643 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1645 | printf %s "checking for $2... " >&6; } | |
1646 | if eval test \${$3+y} | |
1647 | then : | |
1648 | printf %s "(cached) " >&6 | |
1649 | else $as_nop | |
1650 | eval "$3=no" | |
1651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1652 | /* end confdefs.h. */ | |
1653 | $4 | |
1654 | int | |
1655 | main (void) | |
1656 | { | |
1657 | if (sizeof ($2)) | |
1658 | return 0; | |
1659 | ; | |
1660 | return 0; | |
1661 | } | |
1662 | _ACEOF | |
1663 | if ac_fn_c_try_compile "$LINENO" | |
1664 | then : | |
1665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1666 | /* end confdefs.h. */ | |
1667 | $4 | |
1668 | int | |
1669 | main (void) | |
1670 | { | |
1671 | if (sizeof (($2))) | |
1672 | return 0; | |
1673 | ; | |
1674 | return 0; | |
1675 | } | |
1676 | _ACEOF | |
1677 | if ac_fn_c_try_compile "$LINENO" | |
1678 | then : | |
1679 | ||
1680 | else $as_nop | |
1681 | eval "$3=yes" | |
1682 | fi | |
1683 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1684 | fi | |
1685 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1686 | fi | |
1687 | eval ac_res=\$$3 | |
1688 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1689 | printf "%s\n" "$ac_res" >&6; } | |
1690 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1691 | ||
1692 | } # ac_fn_c_check_type | |
1693 | ||
1694 | # ac_fn_c_try_run LINENO | |
1695 | # ---------------------- | |
1696 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that | |
1697 | # executables *can* be run. | |
1698 | ac_fn_c_try_run () | |
1699 | { | |
1700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1701 | if { { ac_try="$ac_link" | |
1702 | case "(($ac_try" in | |
1703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1704 | *) ac_try_echo=$ac_try;; | |
1705 | esac | |
1706 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1707 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1708 | (eval "$ac_link") 2>&5 | |
1709 | ac_status=$? | |
1710 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1711 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1712 | { { case "(($ac_try" in | |
1713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1714 | *) ac_try_echo=$ac_try;; | |
1715 | esac | |
1716 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1717 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1718 | (eval "$ac_try") 2>&5 | |
1719 | ac_status=$? | |
1720 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1721 | test $ac_status = 0; }; } | |
1722 | then : | |
1723 | ac_retval=0 | |
1724 | else $as_nop | |
1725 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 | |
1726 | printf "%s\n" "$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 | |
1736 | ||
1737 | # ac_fn_c_try_link LINENO | |
1738 | # ----------------------- | |
1739 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1740 | ac_fn_c_try_link () | |
1741 | { | |
1742 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1743 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext | |
1744 | if { { ac_try="$ac_link" | |
1745 | case "(($ac_try" in | |
1746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1747 | *) ac_try_echo=$ac_try;; | |
1748 | esac | |
1749 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1750 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1751 | (eval "$ac_link") 2>conftest.err | |
1752 | ac_status=$? | |
1753 | if test -s conftest.err; then | |
1754 | grep -v '^ *+' conftest.err >conftest.er1 | |
1755 | cat conftest.er1 >&5 | |
1756 | mv -f conftest.er1 conftest.err | |
1757 | fi | |
1758 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1759 | test $ac_status = 0; } && { | |
1760 | test -z "$ac_c_werror_flag" || | |
1761 | test ! -s conftest.err | |
1762 | } && test -s conftest$ac_exeext && { | |
1763 | test "$cross_compiling" = yes || | |
1764 | test -x conftest$ac_exeext | |
1765 | } | |
1766 | then : | |
1767 | ac_retval=0 | |
1768 | else $as_nop | |
1769 | printf "%s\n" "$as_me: failed program was:" >&5 | |
1770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1771 | ||
1772 | ac_retval=1 | |
1773 | fi | |
1774 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1775 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1776 | # interfere with the next link command; also delete a directory that is | |
1777 | # left behind by Apple's compiler. We do this before executing the actions. | |
1778 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1779 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1780 | as_fn_set_status $ac_retval | |
1781 | ||
1782 | } # ac_fn_c_try_link | |
1783 | ||
1784 | # ac_fn_c_check_func LINENO FUNC VAR | |
1785 | # ---------------------------------- | |
1786 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1787 | ac_fn_c_check_func () | |
1788 | { | |
1789 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1791 | printf %s "checking for $2... " >&6; } | |
1792 | if eval test \${$3+y} | |
1793 | then : | |
1794 | printf %s "(cached) " >&6 | |
1795 | else $as_nop | |
1796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1797 | /* end confdefs.h. */ | |
1798 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1799 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1800 | #define $2 innocuous_$2 | |
1801 | ||
1802 | /* System header to define __stub macros and hopefully few prototypes, | |
1803 | which can conflict with char $2 (); below. */ | |
1804 | ||
1805 | #include <limits.h> | |
1806 | #undef $2 | |
1807 | ||
1808 | /* Override any GCC internal prototype to avoid an error. | |
1809 | Use char because int might match the return type of a GCC | |
1810 | builtin and then its argument prototype would still apply. */ | |
1811 | #ifdef __cplusplus | |
1812 | extern "C" | |
1813 | #endif | |
1814 | char $2 (); | |
1815 | /* The GNU C library defines this for functions which it implements | |
1816 | to always fail with ENOSYS. Some functions are actually named | |
1817 | something starting with __ and the normal name is an alias. */ | |
1818 | #if defined __stub_$2 || defined __stub___$2 | |
1819 | choke me | |
1820 | #endif | |
1821 | ||
1822 | int | |
1823 | main (void) | |
1824 | { | |
1825 | return $2 (); | |
1826 | ; | |
1827 | return 0; | |
1828 | } | |
1829 | _ACEOF | |
1830 | if ac_fn_c_try_link "$LINENO" | |
1831 | then : | |
1832 | eval "$3=yes" | |
1833 | else $as_nop | |
1834 | eval "$3=no" | |
1835 | fi | |
1836 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
1837 | conftest$ac_exeext conftest.$ac_ext | |
1838 | fi | |
1839 | eval ac_res=\$$3 | |
1840 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1841 | printf "%s\n" "$ac_res" >&6; } | |
1842 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1843 | ||
1844 | } # ac_fn_c_check_func | |
1845 | ac_configure_args_raw= | |
1846 | for ac_arg | |
1847 | do | |
1848 | case $ac_arg in | |
1849 | *\'*) | |
1850 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1851 | esac | |
1852 | as_fn_append ac_configure_args_raw " '$ac_arg'" | |
1853 | done | |
1854 | ||
1855 | case $ac_configure_args_raw in | |
1856 | *$as_nl*) | |
1857 | ac_safe_unquote= ;; | |
1858 | *) | |
1859 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. | |
1860 | ac_unsafe_a="$ac_unsafe_z#~" | |
1861 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" | |
1862 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; | |
1863 | esac | |
1864 | ||
1865 | cat >config.log <<_ACEOF | |
1866 | This file contains any messages produced by compilers while | |
1867 | running configure, to aid debugging if configure makes a mistake. | |
1868 | ||
1869 | It was created by kalibrate $as_me 0.4.1, which was | |
1870 | generated by GNU Autoconf 2.71. Invocation command line was | |
1871 | ||
1872 | $ $0$ac_configure_args_raw | |
1873 | ||
1874 | _ACEOF | |
1875 | exec 5>>config.log | |
1876 | { | |
1877 | cat <<_ASUNAME | |
1878 | ## --------- ## | |
1879 | ## Platform. ## | |
1880 | ## --------- ## | |
1881 | ||
1882 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1883 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1884 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1885 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1886 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1887 | ||
1888 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1889 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1890 | ||
1891 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1892 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1893 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1894 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1895 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1896 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1897 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1898 | ||
1899 | _ASUNAME | |
1900 | ||
1901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1902 | for as_dir in $PATH | |
1903 | do | |
1904 | IFS=$as_save_IFS | |
1905 | case $as_dir in #((( | |
1906 | '') as_dir=./ ;; | |
1907 | */) ;; | |
1908 | *) as_dir=$as_dir/ ;; | |
1909 | esac | |
1910 | printf "%s\n" "PATH: $as_dir" | |
1911 | done | |
1912 | IFS=$as_save_IFS | |
1913 | ||
1914 | } >&5 | |
1915 | ||
1916 | cat >&5 <<_ACEOF | |
1917 | ||
1918 | ||
1919 | ## ----------- ## | |
1920 | ## Core tests. ## | |
1921 | ## ----------- ## | |
1922 | ||
1923 | _ACEOF | |
1924 | ||
1925 | ||
1926 | # Keep a trace of the command line. | |
1927 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1928 | # Strip out --silent because we don't want to record it for future runs. | |
1929 | # Also quote any args containing shell meta-characters. | |
1930 | # Make two passes to allow for proper duplicate-argument suppression. | |
1931 | ac_configure_args= | |
1932 | ac_configure_args0= | |
1933 | ac_configure_args1= | |
1934 | ac_must_keep_next=false | |
1935 | for ac_pass in 1 2 | |
1936 | do | |
1937 | for ac_arg | |
1938 | do | |
1939 | case $ac_arg in | |
1940 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1941 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1942 | | -silent | --silent | --silen | --sile | --sil) | |
1943 | continue ;; | |
1944 | *\'*) | |
1945 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1946 | esac | |
1947 | case $ac_pass in | |
1948 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1949 | 2) | |
1950 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
1951 | if test $ac_must_keep_next = true; then | |
1952 | ac_must_keep_next=false # Got value, back to normal. | |
1953 | else | |
1954 | case $ac_arg in | |
1955 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1956 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1957 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1958 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1959 | case "$ac_configure_args0 " in | |
1960 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1961 | esac | |
1962 | ;; | |
1963 | -* ) ac_must_keep_next=true ;; | |
1964 | esac | |
1965 | fi | |
1966 | as_fn_append ac_configure_args " '$ac_arg'" | |
1967 | ;; | |
1968 | esac | |
1969 | done | |
1970 | done | |
1971 | { ac_configure_args0=; unset ac_configure_args0;} | |
1972 | { ac_configure_args1=; unset ac_configure_args1;} | |
1973 | ||
1974 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1975 | # config.log. We remove comments because anyway the quotes in there | |
1976 | # would cause problems or look ugly. | |
1977 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1978 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1979 | trap 'exit_status=$? | |
1980 | # Sanitize IFS. | |
1981 | IFS=" "" $as_nl" | |
1982 | # Save into config.log some information that might help in debugging. | |
1983 | { | |
1984 | echo | |
1985 | ||
1986 | printf "%s\n" "## ---------------- ## | |
1987 | ## Cache variables. ## | |
1988 | ## ---------------- ##" | |
1989 | echo | |
1990 | # The following way of writing the cache mishandles newlines in values, | |
1991 | ( | |
1992 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1993 | eval ac_val=\$$ac_var | |
1994 | case $ac_val in #( | |
1995 | *${as_nl}*) | |
1996 | case $ac_var in #( | |
1997 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1998 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1999 | esac | |
2000 | case $ac_var in #( | |
2001 | _ | IFS | as_nl) ;; #( | |
2002 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2003 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2004 | esac ;; | |
2005 | esac | |
2006 | done | |
2007 | (set) 2>&1 | | |
2008 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2009 | *${as_nl}ac_space=\ *) | |
2010 | sed -n \ | |
2011 | "s/'\''/'\''\\\\'\'''\''/g; | |
2012 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2013 | ;; #( | |
2014 | *) | |
2015 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2016 | ;; | |
2017 | esac | | |
2018 | sort | |
2019 | ) | |
2020 | echo | |
2021 | ||
2022 | printf "%s\n" "## ----------------- ## | |
2023 | ## Output variables. ## | |
2024 | ## ----------------- ##" | |
2025 | echo | |
2026 | for ac_var in $ac_subst_vars | |
2027 | do | |
2028 | eval ac_val=\$$ac_var | |
2029 | case $ac_val in | |
2030 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2031 | esac | |
2032 | printf "%s\n" "$ac_var='\''$ac_val'\''" | |
2033 | done | sort | |
2034 | echo | |
2035 | ||
2036 | if test -n "$ac_subst_files"; then | |
2037 | printf "%s\n" "## ------------------- ## | |
2038 | ## File substitutions. ## | |
2039 | ## ------------------- ##" | |
2040 | echo | |
2041 | for ac_var in $ac_subst_files | |
2042 | do | |
2043 | eval ac_val=\$$ac_var | |
2044 | case $ac_val in | |
2045 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2046 | esac | |
2047 | printf "%s\n" "$ac_var='\''$ac_val'\''" | |
2048 | done | sort | |
2049 | echo | |
2050 | fi | |
2051 | ||
2052 | if test -s confdefs.h; then | |
2053 | printf "%s\n" "## ----------- ## | |
2054 | ## confdefs.h. ## | |
2055 | ## ----------- ##" | |
2056 | echo | |
2057 | cat confdefs.h | |
2058 | echo | |
2059 | fi | |
2060 | test "$ac_signal" != 0 && | |
2061 | printf "%s\n" "$as_me: caught signal $ac_signal" | |
2062 | printf "%s\n" "$as_me: exit $exit_status" | |
2063 | } >&5 | |
2064 | rm -f core *.core core.conftest.* && | |
2065 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2066 | exit $exit_status | |
2067 | ' 0 | |
2068 | for ac_signal in 1 2 13 15; do | |
2069 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2070 | done | |
2071 | ac_signal=0 | |
2072 | ||
2073 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2074 | rm -f -r conftest* confdefs.h | |
2075 | ||
2076 | printf "%s\n" "/* confdefs.h */" > confdefs.h | |
2077 | ||
2078 | # Predefined preprocessor variables. | |
2079 | ||
2080 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h | |
2081 | ||
2082 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h | |
2083 | ||
2084 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h | |
2085 | ||
2086 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h | |
2087 | ||
2088 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h | |
2089 | ||
2090 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h | |
2091 | ||
2092 | ||
2093 | # Let the site file select an alternate cache file if it wants to. | |
2094 | # Prefer an explicitly selected file to automatically selected ones. | |
2095 | if test -n "$CONFIG_SITE"; then | |
2096 | ac_site_files="$CONFIG_SITE" | |
2097 | elif test "x$prefix" != xNONE; then | |
2098 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" | |
2099 | else | |
2100 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
2101 | fi | |
2102 | ||
2103 | for ac_site_file in $ac_site_files | |
2104 | do | |
2105 | case $ac_site_file in #( | |
2106 | */*) : | |
2107 | ;; #( | |
2108 | *) : | |
2109 | ac_site_file=./$ac_site_file ;; | |
2110 | esac | |
2111 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then | |
2112 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2113 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} | |
2114 | sed 's/^/| /' "$ac_site_file" >&5 | |
2115 | . "$ac_site_file" \ | |
2116 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2117 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
2118 | as_fn_error $? "failed to load site script $ac_site_file | |
2119 | See \`config.log' for more details" "$LINENO" 5; } | |
2120 | fi | |
2121 | done | |
2122 | ||
2123 | if test -r "$cache_file"; then | |
2124 | # Some versions of bash will fail to source /dev/null (special files | |
2125 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2126 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2127 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2128 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} | |
2129 | case $cache_file in | |
2130 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2131 | *) . "./$cache_file";; | |
2132 | esac | |
2133 | fi | |
2134 | else | |
2135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2136 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} | |
2137 | >$cache_file | |
2138 | fi | |
2139 | ||
2140 | # Test code for whether the C++ compiler supports C++98 (global declarations) | |
2141 | ac_cxx_conftest_cxx98_globals=' | |
2142 | // Does the compiler advertise C++98 conformance? | |
2143 | #if !defined __cplusplus || __cplusplus < 199711L | |
2144 | # error "Compiler does not advertise C++98 conformance" | |
2145 | #endif | |
2146 | ||
2147 | // These inclusions are to reject old compilers that | |
2148 | // lack the unsuffixed header files. | |
2149 | #include <cstdlib> | |
2150 | #include <exception> | |
2151 | ||
2152 | // <cassert> and <cstring> are *not* freestanding headers in C++98. | |
2153 | extern void assert (int); | |
2154 | namespace std { | |
2155 | extern int strcmp (const char *, const char *); | |
2156 | } | |
2157 | ||
2158 | // Namespaces, exceptions, and templates were all added after "C++ 2.0". | |
2159 | using std::exception; | |
2160 | using std::strcmp; | |
2161 | ||
2162 | namespace { | |
2163 | ||
2164 | void test_exception_syntax() | |
2165 | { | |
2166 | try { | |
2167 | throw "test"; | |
2168 | } catch (const char *s) { | |
2169 | // Extra parentheses suppress a warning when building autoconf itself, | |
2170 | // due to lint rules shared with more typical C programs. | |
2171 | assert (!(strcmp) (s, "test")); | |
2172 | } | |
2173 | } | |
2174 | ||
2175 | template <typename T> struct test_template | |
2176 | { | |
2177 | T const val; | |
2178 | explicit test_template(T t) : val(t) {} | |
2179 | template <typename U> T add(U u) { return static_cast<T>(u) + val; } | |
2180 | }; | |
2181 | ||
2182 | } // anonymous namespace | |
2183 | ' | |
2184 | ||
2185 | # Test code for whether the C++ compiler supports C++98 (body of main) | |
2186 | ac_cxx_conftest_cxx98_main=' | |
2187 | assert (argc); | |
2188 | assert (! argv[0]); | |
2189 | { | |
2190 | test_exception_syntax (); | |
2191 | test_template<double> tt (2.0); | |
2192 | assert (tt.add (4) == 6.0); | |
2193 | assert (true && !false); | |
2194 | } | |
2195 | ' | |
2196 | ||
2197 | # Test code for whether the C++ compiler supports C++11 (global declarations) | |
2198 | ac_cxx_conftest_cxx11_globals=' | |
2199 | // Does the compiler advertise C++ 2011 conformance? | |
2200 | #if !defined __cplusplus || __cplusplus < 201103L | |
2201 | # error "Compiler does not advertise C++11 conformance" | |
2202 | #endif | |
2203 | ||
2204 | namespace cxx11test | |
2205 | { | |
2206 | constexpr int get_val() { return 20; } | |
2207 | ||
2208 | struct testinit | |
2209 | { | |
2210 | int i; | |
2211 | double d; | |
2212 | }; | |
2213 | ||
2214 | class delegate | |
2215 | { | |
2216 | public: | |
2217 | delegate(int n) : n(n) {} | |
2218 | delegate(): delegate(2354) {} | |
2219 | ||
2220 | virtual int getval() { return this->n; }; | |
2221 | protected: | |
2222 | int n; | |
2223 | }; | |
2224 | ||
2225 | class overridden : public delegate | |
2226 | { | |
2227 | public: | |
2228 | overridden(int n): delegate(n) {} | |
2229 | virtual int getval() override final { return this->n * 2; } | |
2230 | }; | |
2231 | ||
2232 | class nocopy | |
2233 | { | |
2234 | public: | |
2235 | nocopy(int i): i(i) {} | |
2236 | nocopy() = default; | |
2237 | nocopy(const nocopy&) = delete; | |
2238 | nocopy & operator=(const nocopy&) = delete; | |
2239 | private: | |
2240 | int i; | |
2241 | }; | |
2242 | ||
2243 | // for testing lambda expressions | |
2244 | template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) | |
2245 | { | |
2246 | return f(v); | |
2247 | } | |
2248 | ||
2249 | // for testing variadic templates and trailing return types | |
2250 | template <typename V> auto sum(V first) -> V | |
2251 | { | |
2252 | return first; | |
2253 | } | |
2254 | template <typename V, typename... Args> auto sum(V first, Args... rest) -> V | |
2255 | { | |
2256 | return first + sum(rest...); | |
2257 | } | |
2258 | } | |
2259 | ' | |
2260 | ||
2261 | # Test code for whether the C++ compiler supports C++11 (body of main) | |
2262 | ac_cxx_conftest_cxx11_main=' | |
2263 | { | |
2264 | // Test auto and decltype | |
2265 | auto a1 = 6538; | |
2266 | auto a2 = 48573953.4; | |
2267 | auto a3 = "String literal"; | |
2268 | ||
2269 | int total = 0; | |
2270 | for (auto i = a3; *i; ++i) { total += *i; } | |
2271 | ||
2272 | decltype(a2) a4 = 34895.034; | |
2273 | } | |
2274 | { | |
2275 | // Test constexpr | |
2276 | short sa[cxx11test::get_val()] = { 0 }; | |
2277 | } | |
2278 | { | |
2279 | // Test initializer lists | |
2280 | cxx11test::testinit il = { 4323, 435234.23544 }; | |
2281 | } | |
2282 | { | |
2283 | // Test range-based for | |
2284 | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, | |
2285 | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; | |
2286 | for (auto &x : array) { x += 23; } | |
2287 | } | |
2288 | { | |
2289 | // Test lambda expressions | |
2290 | using cxx11test::eval; | |
2291 | assert (eval ([](int x) { return x*2; }, 21) == 42); | |
2292 | double d = 2.0; | |
2293 | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); | |
2294 | assert (d == 5.0); | |
2295 | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); | |
2296 | assert (d == 5.0); | |
2297 | } | |
2298 | { | |
2299 | // Test use of variadic templates | |
2300 | using cxx11test::sum; | |
2301 | auto a = sum(1); | |
2302 | auto b = sum(1, 2); | |
2303 | auto c = sum(1.0, 2.0, 3.0); | |
2304 | } | |
2305 | { | |
2306 | // Test constructor delegation | |
2307 | cxx11test::delegate d1; | |
2308 | cxx11test::delegate d2(); | |
2309 | cxx11test::delegate d3(45); | |
2310 | } | |
2311 | { | |
2312 | // Test override and final | |
2313 | cxx11test::overridden o1(55464); | |
2314 | } | |
2315 | { | |
2316 | // Test nullptr | |
2317 | char *c = nullptr; | |
2318 | } | |
2319 | { | |
2320 | // Test template brackets | |
2321 | test_template<::test_template<int>> v(test_template<int>(12)); | |
2322 | } | |
2323 | { | |
2324 | // Unicode literals | |
2325 | char const *utf8 = u8"UTF-8 string \u2500"; | |
2326 | char16_t const *utf16 = u"UTF-8 string \u2500"; | |
2327 | char32_t const *utf32 = U"UTF-32 string \u2500"; | |
2328 | } | |
2329 | ' | |
2330 | ||
2331 | # Test code for whether the C compiler supports C++11 (complete). | |
2332 | ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} | |
2333 | ${ac_cxx_conftest_cxx11_globals} | |
2334 | ||
2335 | int | |
2336 | main (int argc, char **argv) | |
2337 | { | |
2338 | int ok = 0; | |
2339 | ${ac_cxx_conftest_cxx98_main} | |
2340 | ${ac_cxx_conftest_cxx11_main} | |
2341 | return ok; | |
2342 | } | |
2343 | " | |
2344 | ||
2345 | # Test code for whether the C compiler supports C++98 (complete). | |
2346 | ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} | |
2347 | int | |
2348 | main (int argc, char **argv) | |
2349 | { | |
2350 | int ok = 0; | |
2351 | ${ac_cxx_conftest_cxx98_main} | |
2352 | return ok; | |
2353 | } | |
2354 | " | |
2355 | ||
2356 | # Test code for whether the C compiler supports C89 (global declarations) | |
2357 | ac_c_conftest_c89_globals=' | |
2358 | /* Does the compiler advertise C89 conformance? | |
2359 | Do not test the value of __STDC__, because some compilers set it to 0 | |
2360 | while being otherwise adequately conformant. */ | |
2361 | #if !defined __STDC__ | |
2362 | # error "Compiler does not advertise C89 conformance" | |
2363 | #endif | |
2364 | ||
2365 | #include <stddef.h> | |
2366 | #include <stdarg.h> | |
2367 | struct stat; | |
2368 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | |
2369 | struct buf { int x; }; | |
2370 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | |
2371 | static char *e (p, i) | |
2372 | char **p; | |
2373 | int i; | |
2374 | { | |
2375 | return p[i]; | |
2376 | } | |
2377 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2378 | { | |
2379 | char *s; | |
2380 | va_list v; | |
2381 | va_start (v,p); | |
2382 | s = g (p, va_arg (v,int)); | |
2383 | va_end (v); | |
2384 | return s; | |
2385 | } | |
2386 | ||
2387 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2388 | function prototypes and stuff, but not \xHH hex character constants. | |
2389 | These do not provoke an error unfortunately, instead are silently treated | |
2390 | as an "x". The following induces an error, until -std is added to get | |
2391 | proper ANSI mode. Curiously \x00 != x always comes out true, for an | |
2392 | array size at least. It is necessary to write \x00 == 0 to get something | |
2393 | that is true only with -std. */ | |
2394 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; | |
2395 | ||
2396 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2397 | inside strings and character constants. */ | |
2398 | #define FOO(x) '\''x'\'' | |
2399 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; | |
2400 | ||
2401 | int test (int i, double x); | |
2402 | struct s1 {int (*f) (int a);}; | |
2403 | struct s2 {int (*f) (double a);}; | |
2404 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | |
2405 | int, int);' | |
2406 | ||
2407 | # Test code for whether the C compiler supports C89 (body of main). | |
2408 | ac_c_conftest_c89_main=' | |
2409 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | |
2410 | ' | |
2411 | ||
2412 | # Test code for whether the C compiler supports C99 (global declarations) | |
2413 | ac_c_conftest_c99_globals=' | |
2414 | // Does the compiler advertise C99 conformance? | |
2415 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L | |
2416 | # error "Compiler does not advertise C99 conformance" | |
2417 | #endif | |
2418 | ||
2419 | #include <stdbool.h> | |
2420 | extern int puts (const char *); | |
2421 | extern int printf (const char *, ...); | |
2422 | extern int dprintf (int, const char *, ...); | |
2423 | extern void *malloc (size_t); | |
2424 | ||
2425 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
2426 | // dprintf is used instead of fprintf to avoid needing to declare | |
2427 | // FILE and stderr. | |
2428 | #define debug(...) dprintf (2, __VA_ARGS__) | |
2429 | #define showlist(...) puts (#__VA_ARGS__) | |
2430 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
2431 | static void | |
2432 | test_varargs_macros (void) | |
2433 | { | |
2434 | int x = 1234; | |
2435 | int y = 5678; | |
2436 | debug ("Flag"); | |
2437 | debug ("X = %d\n", x); | |
2438 | showlist (The first, second, and third items.); | |
2439 | report (x>y, "x is %d but y is %d", x, y); | |
2440 | } | |
2441 | ||
2442 | // Check long long types. | |
2443 | #define BIG64 18446744073709551615ull | |
2444 | #define BIG32 4294967295ul | |
2445 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
2446 | #if !BIG_OK | |
2447 | #error "your preprocessor is broken" | |
2448 | #endif | |
2449 | #if BIG_OK | |
2450 | #else | |
2451 | #error "your preprocessor is broken" | |
2452 | #endif | |
2453 | static long long int bignum = -9223372036854775807LL; | |
2454 | static unsigned long long int ubignum = BIG64; | |
2455 | ||
2456 | struct incomplete_array | |
2457 | { | |
2458 | int datasize; | |
2459 | double data[]; | |
2460 | }; | |
2461 | ||
2462 | struct named_init { | |
2463 | int number; | |
2464 | const wchar_t *name; | |
2465 | double average; | |
2466 | }; | |
2467 | ||
2468 | typedef const char *ccp; | |
2469 | ||
2470 | static inline int | |
2471 | test_restrict (ccp restrict text) | |
2472 | { | |
2473 | // See if C++-style comments work. | |
2474 | // Iterate through items via the restricted pointer. | |
2475 | // Also check for declarations in for loops. | |
2476 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) | |
2477 | continue; | |
2478 | return 0; | |
2479 | } | |
2480 | ||
2481 | // Check varargs and va_copy. | |
2482 | static bool | |
2483 | test_varargs (const char *format, ...) | |
2484 | { | |
2485 | va_list args; | |
2486 | va_start (args, format); | |
2487 | va_list args_copy; | |
2488 | va_copy (args_copy, args); | |
2489 | ||
2490 | const char *str = ""; | |
2491 | int number = 0; | |
2492 | float fnumber = 0; | |
2493 | ||
2494 | while (*format) | |
2495 | { | |
2496 | switch (*format++) | |
2497 | { | |
2498 | case '\''s'\'': // string | |
2499 | str = va_arg (args_copy, const char *); | |
2500 | break; | |
2501 | case '\''d'\'': // int | |
2502 | number = va_arg (args_copy, int); | |
2503 | break; | |
2504 | case '\''f'\'': // float | |
2505 | fnumber = va_arg (args_copy, double); | |
2506 | break; | |
2507 | default: | |
2508 | break; | |
2509 | } | |
2510 | } | |
2511 | va_end (args_copy); | |
2512 | va_end (args); | |
2513 | ||
2514 | return *str && number && fnumber; | |
2515 | } | |
2516 | ' | |
2517 | ||
2518 | # Test code for whether the C compiler supports C99 (body of main). | |
2519 | ac_c_conftest_c99_main=' | |
2520 | // Check bool. | |
2521 | _Bool success = false; | |
2522 | success |= (argc != 0); | |
2523 | ||
2524 | // Check restrict. | |
2525 | if (test_restrict ("String literal") == 0) | |
2526 | success = true; | |
2527 | char *restrict newvar = "Another string"; | |
2528 | ||
2529 | // Check varargs. | |
2530 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); | |
2531 | test_varargs_macros (); | |
2532 | ||
2533 | // Check flexible array members. | |
2534 | struct incomplete_array *ia = | |
2535 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
2536 | ia->datasize = 10; | |
2537 | for (int i = 0; i < ia->datasize; ++i) | |
2538 | ia->data[i] = i * 1.234; | |
2539 | ||
2540 | // Check named initializers. | |
2541 | struct named_init ni = { | |
2542 | .number = 34, | |
2543 | .name = L"Test wide string", | |
2544 | .average = 543.34343, | |
2545 | }; | |
2546 | ||
2547 | ni.number = 58; | |
2548 | ||
2549 | int dynamic_array[ni.number]; | |
2550 | dynamic_array[0] = argv[0][0]; | |
2551 | dynamic_array[ni.number - 1] = 543; | |
2552 | ||
2553 | // work around unused variable warnings | |
2554 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' | |
2555 | || dynamic_array[ni.number - 1] != 543); | |
2556 | ' | |
2557 | ||
2558 | # Test code for whether the C compiler supports C11 (global declarations) | |
2559 | ac_c_conftest_c11_globals=' | |
2560 | // Does the compiler advertise C11 conformance? | |
2561 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
2562 | # error "Compiler does not advertise C11 conformance" | |
2563 | #endif | |
2564 | ||
2565 | // Check _Alignas. | |
2566 | char _Alignas (double) aligned_as_double; | |
2567 | char _Alignas (0) no_special_alignment; | |
2568 | extern char aligned_as_int; | |
2569 | char _Alignas (0) _Alignas (int) aligned_as_int; | |
2570 | ||
2571 | // Check _Alignof. | |
2572 | enum | |
2573 | { | |
2574 | int_alignment = _Alignof (int), | |
2575 | int_array_alignment = _Alignof (int[100]), | |
2576 | char_alignment = _Alignof (char) | |
2577 | }; | |
2578 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); | |
2579 | ||
2580 | // Check _Noreturn. | |
2581 | int _Noreturn does_not_return (void) { for (;;) continue; } | |
2582 | ||
2583 | // Check _Static_assert. | |
2584 | struct test_static_assert | |
2585 | { | |
2586 | int x; | |
2587 | _Static_assert (sizeof (int) <= sizeof (long int), | |
2588 | "_Static_assert does not work in struct"); | |
2589 | long int y; | |
2590 | }; | |
2591 | ||
2592 | // Check UTF-8 literals. | |
2593 | #define u8 syntax error! | |
2594 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; | |
2595 | ||
2596 | // Check duplicate typedefs. | |
2597 | typedef long *long_ptr; | |
2598 | typedef long int *long_ptr; | |
2599 | typedef long_ptr long_ptr; | |
2600 | ||
2601 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. | |
2602 | struct anonymous | |
2603 | { | |
2604 | union { | |
2605 | struct { int i; int j; }; | |
2606 | struct { int k; long int l; } w; | |
2607 | }; | |
2608 | int m; | |
2609 | } v1; | |
2610 | ' | |
2611 | ||
2612 | # Test code for whether the C compiler supports C11 (body of main). | |
2613 | ac_c_conftest_c11_main=' | |
2614 | _Static_assert ((offsetof (struct anonymous, i) | |
2615 | == offsetof (struct anonymous, w.k)), | |
2616 | "Anonymous union alignment botch"); | |
2617 | v1.i = 2; | |
2618 | v1.w.k = 5; | |
2619 | ok |= v1.i != 5; | |
2620 | ' | |
2621 | ||
2622 | # Test code for whether the C compiler supports C11 (complete). | |
2623 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} | |
2624 | ${ac_c_conftest_c99_globals} | |
2625 | ${ac_c_conftest_c11_globals} | |
2626 | ||
2627 | int | |
2628 | main (int argc, char **argv) | |
2629 | { | |
2630 | int ok = 0; | |
2631 | ${ac_c_conftest_c89_main} | |
2632 | ${ac_c_conftest_c99_main} | |
2633 | ${ac_c_conftest_c11_main} | |
2634 | return ok; | |
2635 | } | |
2636 | " | |
2637 | ||
2638 | # Test code for whether the C compiler supports C99 (complete). | |
2639 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} | |
2640 | ${ac_c_conftest_c99_globals} | |
2641 | ||
2642 | int | |
2643 | main (int argc, char **argv) | |
2644 | { | |
2645 | int ok = 0; | |
2646 | ${ac_c_conftest_c89_main} | |
2647 | ${ac_c_conftest_c99_main} | |
2648 | return ok; | |
2649 | } | |
2650 | " | |
2651 | ||
2652 | # Test code for whether the C compiler supports C89 (complete). | |
2653 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} | |
2654 | ||
2655 | int | |
2656 | main (int argc, char **argv) | |
2657 | { | |
2658 | int ok = 0; | |
2659 | ${ac_c_conftest_c89_main} | |
2660 | return ok; | |
2661 | } | |
2662 | " | |
2663 | ||
2664 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" | |
2665 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" | |
2666 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" | |
2667 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" | |
2668 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" | |
2669 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" | |
2670 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" | |
2671 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" | |
2672 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" | |
2673 | ||
2674 | # Auxiliary files required by this configure script. | |
2675 | ac_aux_files="config.guess config.sub compile missing install-sh" | |
2676 | ||
2677 | # Locations in which to look for auxiliary files. | |
2678 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." | |
2679 | ||
2680 | # Search for a directory containing all of the required auxiliary files, | |
2681 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. | |
2682 | # If we don't find one directory that contains all the files we need, | |
2683 | # we report the set of missing files from the *first* directory in | |
2684 | # $ac_aux_dir_candidates and give up. | |
2685 | ac_missing_aux_files="" | |
2686 | ac_first_candidate=: | |
2687 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 | |
2688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2689 | as_found=false | |
2690 | for as_dir in $ac_aux_dir_candidates | |
2691 | do | |
2692 | IFS=$as_save_IFS | |
2693 | case $as_dir in #((( | |
2694 | '') as_dir=./ ;; | |
2695 | */) ;; | |
2696 | *) as_dir=$as_dir/ ;; | |
2697 | esac | |
2698 | as_found=: | |
2699 | ||
2700 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 | |
2701 | ac_aux_dir_found=yes | |
2702 | ac_install_sh= | |
2703 | for ac_aux in $ac_aux_files | |
2704 | do | |
2705 | # As a special case, if "install-sh" is required, that requirement | |
2706 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", | |
2707 | # and $ac_install_sh is set appropriately for whichever one is found. | |
2708 | if test x"$ac_aux" = x"install-sh" | |
2709 | then | |
2710 | if test -f "${as_dir}install-sh"; then | |
2711 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 | |
2712 | ac_install_sh="${as_dir}install-sh -c" | |
2713 | elif test -f "${as_dir}install.sh"; then | |
2714 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 | |
2715 | ac_install_sh="${as_dir}install.sh -c" | |
2716 | elif test -f "${as_dir}shtool"; then | |
2717 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 | |
2718 | ac_install_sh="${as_dir}shtool install -c" | |
2719 | else | |
2720 | ac_aux_dir_found=no | |
2721 | if $ac_first_candidate; then | |
2722 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" | |
2723 | else | |
2724 | break | |
2725 | fi | |
2726 | fi | |
2727 | else | |
2728 | if test -f "${as_dir}${ac_aux}"; then | |
2729 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 | |
2730 | else | |
2731 | ac_aux_dir_found=no | |
2732 | if $ac_first_candidate; then | |
2733 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" | |
2734 | else | |
2735 | break | |
2736 | fi | |
2737 | fi | |
2738 | fi | |
2739 | done | |
2740 | if test "$ac_aux_dir_found" = yes; then | |
2741 | ac_aux_dir="$as_dir" | |
2742 | break | |
2743 | fi | |
2744 | ac_first_candidate=false | |
2745 | ||
2746 | as_found=false | |
2747 | done | |
2748 | IFS=$as_save_IFS | |
2749 | if $as_found | |
2750 | then : | |
2751 | ||
2752 | else $as_nop | |
2753 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 | |
2754 | fi | |
2755 | ||
2756 | ||
2757 | # These three variables are undocumented and unsupported, | |
2758 | # and are intended to be withdrawn in a future Autoconf release. | |
2759 | # They can cause serious problems if a builder's source tree is in a directory | |
2760 | # whose full name contains unusual characters. | |
2761 | if test -f "${ac_aux_dir}config.guess"; then | |
2762 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" | |
2763 | fi | |
2764 | if test -f "${ac_aux_dir}config.sub"; then | |
2765 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" | |
2766 | fi | |
2767 | if test -f "$ac_aux_dir/configure"; then | |
2768 | ac_configure="$SHELL ${ac_aux_dir}configure" | |
2769 | fi | |
2770 | ||
2771 | # Check that the precious variables saved in the cache have kept the same | |
2772 | # value. | |
2773 | ac_cache_corrupted=false | |
2774 | for ac_var in $ac_precious_vars; do | |
2775 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2776 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2777 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2778 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2779 | case $ac_old_set,$ac_new_set in | |
2780 | set,) | |
2781 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2782 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2783 | ac_cache_corrupted=: ;; | |
2784 | ,set) | |
2785 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2786 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2787 | ac_cache_corrupted=: ;; | |
2788 | ,);; | |
2789 | *) | |
2790 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2791 | # differences in whitespace do not lead to failure. | |
2792 | ac_old_val_w=`echo x $ac_old_val` | |
2793 | ac_new_val_w=`echo x $ac_new_val` | |
2794 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2795 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2796 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2797 | ac_cache_corrupted=: | |
2798 | else | |
2799 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2800 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2801 | eval $ac_var=\$ac_old_val | |
2802 | fi | |
2803 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2804 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} | |
2805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2806 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} | |
2807 | fi;; | |
2808 | esac | |
2809 | # Pass precious variables to config.status. | |
2810 | if test "$ac_new_set" = set; then | |
2811 | case $ac_new_val in | |
2812 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2813 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2814 | esac | |
2815 | case " $ac_configure_args " in | |
2816 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2817 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2818 | esac | |
2819 | fi | |
2820 | done | |
2821 | if $ac_cache_corrupted; then | |
2822 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2823 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
2824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2825 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2826 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' | |
2827 | and start over" "$LINENO" 5 | |
2828 | fi | |
2829 | ## -------------------- ## | |
2830 | ## Main body of script. ## | |
2831 | ## -------------------- ## | |
2832 | ||
2833 | ac_ext=c | |
2834 | ac_cpp='$CPP $CPPFLAGS' | |
2835 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2836 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2837 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2838 | ||
2839 | ||
2840 | ||
2841 | am__api_version='1.16' | |
2842 | ||
2843 | ||
2844 | ||
2845 | # Find a good install program. We prefer a C program (faster), | |
2846 | # so one script is as good as another. But avoid the broken or | |
2847 | # incompatible versions: | |
2848 | # SysV /etc/install, /usr/sbin/install | |
2849 | # SunOS /usr/etc/install | |
2850 | # IRIX /sbin/install | |
2851 | # AIX /bin/install | |
2852 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2853 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2854 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2855 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2856 | # OS/2's system install, which has a completely different semantic | |
2857 | # ./install, which can be erroneously created by make from ./install.sh. | |
2858 | # Reject install programs that cannot install multiple files. | |
2859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2860 | printf %s "checking for a BSD-compatible install... " >&6; } | |
2861 | if test -z "$INSTALL"; then | |
2862 | if test ${ac_cv_path_install+y} | |
2863 | then : | |
2864 | printf %s "(cached) " >&6 | |
2865 | else $as_nop | |
2866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2867 | for as_dir in $PATH | |
2868 | do | |
2869 | IFS=$as_save_IFS | |
2870 | case $as_dir in #((( | |
2871 | '') as_dir=./ ;; | |
2872 | */) ;; | |
2873 | *) as_dir=$as_dir/ ;; | |
2874 | esac | |
2875 | # Account for fact that we put trailing slashes in our PATH walk. | |
2876 | case $as_dir in #(( | |
2877 | ./ | /[cC]/* | \ | |
2878 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2879 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2880 | /usr/ucb/* ) ;; | |
2881 | *) | |
2882 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2883 | # Don't use installbsd from OSF since it installs stuff as root | |
2884 | # by default. | |
2885 | for ac_prog in ginstall scoinst install; do | |
2886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2887 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then | |
2888 | if test $ac_prog = install && | |
2889 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2890 | # AIX install. It has an incompatible calling convention. | |
2891 | : | |
2892 | elif test $ac_prog = install && | |
2893 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2894 | # program-specific install script used by HP pwplus--don't use. | |
2895 | : | |
2896 | else | |
2897 | rm -rf conftest.one conftest.two conftest.dir | |
2898 | echo one > conftest.one | |
2899 | echo two > conftest.two | |
2900 | mkdir conftest.dir | |
2901 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && | |
2902 | test -s conftest.one && test -s conftest.two && | |
2903 | test -s conftest.dir/conftest.one && | |
2904 | test -s conftest.dir/conftest.two | |
2905 | then | |
2906 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" | |
2907 | break 3 | |
2908 | fi | |
2909 | fi | |
2910 | fi | |
2911 | done | |
2912 | done | |
2913 | ;; | |
2914 | esac | |
2915 | ||
2916 | done | |
2917 | IFS=$as_save_IFS | |
2918 | ||
2919 | rm -rf conftest.one conftest.two conftest.dir | |
2920 | ||
2921 | fi | |
2922 | if test ${ac_cv_path_install+y}; then | |
2923 | INSTALL=$ac_cv_path_install | |
2924 | else | |
2925 | # As a last resort, use the slow shell script. Don't cache a | |
2926 | # value for INSTALL within a source directory, because that will | |
2927 | # break other packages using the cache if that directory is | |
2928 | # removed, or if the value is a relative name. | |
2929 | INSTALL=$ac_install_sh | |
2930 | fi | |
2931 | fi | |
2932 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2933 | printf "%s\n" "$INSTALL" >&6; } | |
2934 | ||
2935 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2936 | # It thinks the first close brace ends the variable substitution. | |
2937 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2938 | ||
2939 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2940 | ||
2941 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2942 | ||
2943 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2944 | printf %s "checking whether build environment is sane... " >&6; } | |
2945 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2946 | # name. Accept space and tab only in the latter. | |
2947 | am_lf=' | |
2948 | ' | |
2949 | case `pwd` in | |
2950 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2951 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2952 | esac | |
2953 | case $srcdir in | |
2954 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2955 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2956 | esac | |
2957 | ||
2958 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2959 | # arguments. Must try -L first in case configure is actually a | |
2960 | # symlink; some systems play weird games with the mod time of symlinks | |
2961 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2962 | # directory). | |
2963 | if ( | |
2964 | am_has_slept=no | |
2965 | for am_try in 1 2; do | |
2966 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2967 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2968 | if test "$*" = "X"; then | |
2969 | # -L didn't work. | |
2970 | set X `ls -t "$srcdir/configure" conftest.file` | |
2971 | fi | |
2972 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2973 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2974 | ||
2975 | # If neither matched, then we have a broken ls. This can happen | |
2976 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2977 | # broken ls alias from the environment. This has actually | |
2978 | # happened. Such a system could not be considered "sane". | |
2979 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2980 | alias in your environment" "$LINENO" 5 | |
2981 | fi | |
2982 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2983 | break | |
2984 | fi | |
2985 | # Just in case. | |
2986 | sleep 1 | |
2987 | am_has_slept=yes | |
2988 | done | |
2989 | test "$2" = conftest.file | |
2990 | ) | |
2991 | then | |
2992 | # Ok. | |
2993 | : | |
2994 | else | |
2995 | as_fn_error $? "newly created file is older than distributed files! | |
2996 | Check your system clock" "$LINENO" 5 | |
2997 | fi | |
2998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2999 | printf "%s\n" "yes" >&6; } | |
3000 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
3001 | # generated files are strictly newer. | |
3002 | am_sleep_pid= | |
3003 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3004 | ( sleep 1 ) & | |
3005 | am_sleep_pid=$! | |
3006 | fi | |
3007 | ||
3008 | rm -f conftest.file | |
3009 | ||
3010 | test "$program_prefix" != NONE && | |
3011 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
3012 | # Use a double $ so make ignores it. | |
3013 | test "$program_suffix" != NONE && | |
3014 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
3015 | # Double any \ or $. | |
3016 | # By default was `s,x,x', remove it if useless. | |
3017 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
3018 | program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` | |
3019 | ||
3020 | ||
3021 | # Expand $ac_aux_dir to an absolute path. | |
3022 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
3023 | ||
3024 | ||
3025 | if test x"${MISSING+set}" != xset; then | |
3026 | MISSING="\${SHELL} '$am_aux_dir/missing'" | |
3027 | fi | |
3028 | # Use eval to expand $SHELL | |
3029 | if eval "$MISSING --is-lightweight"; then | |
3030 | am_missing_run="$MISSING " | |
3031 | else | |
3032 | am_missing_run= | |
3033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
3034 | printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
3035 | fi | |
3036 | ||
3037 | if test x"${install_sh+set}" != xset; then | |
3038 | case $am_aux_dir in | |
3039 | *\ * | *\ *) | |
3040 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3041 | *) | |
3042 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3043 | esac | |
3044 | fi | |
3045 | ||
3046 | # Installed binaries are usually stripped using 'strip' when the user | |
3047 | # run "make install-strip". However 'strip' might not be the right | |
3048 | # tool to use in cross-compilation environments, therefore Automake | |
3049 | # will honor the 'STRIP' environment variable to overrule this program. | |
3050 | if test "$cross_compiling" != no; then | |
3051 | if test -n "$ac_tool_prefix"; then | |
3052 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3053 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
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_STRIP+y} | |
3057 | then : | |
3058 | printf %s "(cached) " >&6 | |
3059 | else $as_nop | |
3060 | if test -n "$STRIP"; then | |
3061 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3062 | else | |
3063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3064 | for as_dir in $PATH | |
3065 | do | |
3066 | IFS=$as_save_IFS | |
3067 | case $as_dir in #((( | |
3068 | '') as_dir=./ ;; | |
3069 | */) ;; | |
3070 | *) as_dir=$as_dir/ ;; | |
3071 | esac | |
3072 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3073 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3074 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3075 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3076 | break 2 | |
3077 | fi | |
3078 | done | |
3079 | done | |
3080 | IFS=$as_save_IFS | |
3081 | ||
3082 | fi | |
3083 | fi | |
3084 | STRIP=$ac_cv_prog_STRIP | |
3085 | if test -n "$STRIP"; then | |
3086 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3087 | printf "%s\n" "$STRIP" >&6; } | |
3088 | else | |
3089 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3090 | printf "%s\n" "no" >&6; } | |
3091 | fi | |
3092 | ||
3093 | ||
3094 | fi | |
3095 | if test -z "$ac_cv_prog_STRIP"; then | |
3096 | ac_ct_STRIP=$STRIP | |
3097 | # Extract the first word of "strip", so it can be a program name with args. | |
3098 | set dummy strip; ac_word=$2 | |
3099 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3100 | printf %s "checking for $ac_word... " >&6; } | |
3101 | if test ${ac_cv_prog_ac_ct_STRIP+y} | |
3102 | then : | |
3103 | printf %s "(cached) " >&6 | |
3104 | else $as_nop | |
3105 | if test -n "$ac_ct_STRIP"; then | |
3106 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3107 | else | |
3108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3109 | for as_dir in $PATH | |
3110 | do | |
3111 | IFS=$as_save_IFS | |
3112 | case $as_dir in #((( | |
3113 | '') as_dir=./ ;; | |
3114 | */) ;; | |
3115 | *) as_dir=$as_dir/ ;; | |
3116 | esac | |
3117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3118 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3119 | ac_cv_prog_ac_ct_STRIP="strip" | |
3120 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3121 | break 2 | |
3122 | fi | |
3123 | done | |
3124 | done | |
3125 | IFS=$as_save_IFS | |
3126 | ||
3127 | fi | |
3128 | fi | |
3129 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3130 | if test -n "$ac_ct_STRIP"; then | |
3131 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3132 | printf "%s\n" "$ac_ct_STRIP" >&6; } | |
3133 | else | |
3134 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3135 | printf "%s\n" "no" >&6; } | |
3136 | fi | |
3137 | ||
3138 | if test "x$ac_ct_STRIP" = x; then | |
3139 | STRIP=":" | |
3140 | else | |
3141 | case $cross_compiling:$ac_tool_warned in | |
3142 | yes:) | |
3143 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3144 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3145 | ac_tool_warned=yes ;; | |
3146 | esac | |
3147 | STRIP=$ac_ct_STRIP | |
3148 | fi | |
3149 | else | |
3150 | STRIP="$ac_cv_prog_STRIP" | |
3151 | fi | |
3152 | ||
3153 | fi | |
3154 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3155 | ||
3156 | ||
3157 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 | |
3158 | printf %s "checking for a race-free mkdir -p... " >&6; } | |
3159 | if test -z "$MKDIR_P"; then | |
3160 | if test ${ac_cv_path_mkdir+y} | |
3161 | then : | |
3162 | printf %s "(cached) " >&6 | |
3163 | else $as_nop | |
3164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3165 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3166 | do | |
3167 | IFS=$as_save_IFS | |
3168 | case $as_dir in #((( | |
3169 | '') as_dir=./ ;; | |
3170 | */) ;; | |
3171 | *) as_dir=$as_dir/ ;; | |
3172 | esac | |
3173 | for ac_prog in mkdir gmkdir; do | |
3174 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3175 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue | |
3176 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3177 | 'mkdir ('*'coreutils) '* | \ | |
3178 | 'BusyBox '* | \ | |
3179 | 'mkdir (fileutils) '4.1*) | |
3180 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext | |
3181 | break 3;; | |
3182 | esac | |
3183 | done | |
3184 | done | |
3185 | done | |
3186 | IFS=$as_save_IFS | |
3187 | ||
3188 | fi | |
3189 | ||
3190 | test -d ./--version && rmdir ./--version | |
3191 | if test ${ac_cv_path_mkdir+y}; then | |
3192 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3193 | else | |
3194 | # As a last resort, use the slow shell script. Don't cache a | |
3195 | # value for MKDIR_P within a source directory, because that will | |
3196 | # break other packages using the cache if that directory is | |
3197 | # removed, or if the value is a relative name. | |
3198 | MKDIR_P="$ac_install_sh -d" | |
3199 | fi | |
3200 | fi | |
3201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3202 | printf "%s\n" "$MKDIR_P" >&6; } | |
3203 | ||
3204 | for ac_prog in gawk mawk nawk awk | |
3205 | do | |
3206 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3207 | set dummy $ac_prog; ac_word=$2 | |
3208 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3209 | printf %s "checking for $ac_word... " >&6; } | |
3210 | if test ${ac_cv_prog_AWK+y} | |
3211 | then : | |
3212 | printf %s "(cached) " >&6 | |
3213 | else $as_nop | |
3214 | if test -n "$AWK"; then | |
3215 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3216 | else | |
3217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3218 | for as_dir in $PATH | |
3219 | do | |
3220 | IFS=$as_save_IFS | |
3221 | case $as_dir in #((( | |
3222 | '') as_dir=./ ;; | |
3223 | */) ;; | |
3224 | *) as_dir=$as_dir/ ;; | |
3225 | esac | |
3226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3227 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3228 | ac_cv_prog_AWK="$ac_prog" | |
3229 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3230 | break 2 | |
3231 | fi | |
3232 | done | |
3233 | done | |
3234 | IFS=$as_save_IFS | |
3235 | ||
3236 | fi | |
3237 | fi | |
3238 | AWK=$ac_cv_prog_AWK | |
3239 | if test -n "$AWK"; then | |
3240 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3241 | printf "%s\n" "$AWK" >&6; } | |
3242 | else | |
3243 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3244 | printf "%s\n" "no" >&6; } | |
3245 | fi | |
3246 | ||
3247 | ||
3248 | test -n "$AWK" && break | |
3249 | done | |
3250 | ||
3251 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3252 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3253 | set x ${MAKE-make} | |
3254 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3255 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} | |
3256 | then : | |
3257 | printf %s "(cached) " >&6 | |
3258 | else $as_nop | |
3259 | cat >conftest.make <<\_ACEOF | |
3260 | SHELL = /bin/sh | |
3261 | all: | |
3262 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3263 | _ACEOF | |
3264 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3265 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3266 | *@@@%%%=?*=@@@%%%*) | |
3267 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3268 | *) | |
3269 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3270 | esac | |
3271 | rm -f conftest.make | |
3272 | fi | |
3273 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3274 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3275 | printf "%s\n" "yes" >&6; } | |
3276 | SET_MAKE= | |
3277 | else | |
3278 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3279 | printf "%s\n" "no" >&6; } | |
3280 | SET_MAKE="MAKE=${MAKE-make}" | |
3281 | fi | |
3282 | ||
3283 | rm -rf .tst 2>/dev/null | |
3284 | mkdir .tst 2>/dev/null | |
3285 | if test -d .tst; then | |
3286 | am__leading_dot=. | |
3287 | else | |
3288 | am__leading_dot=_ | |
3289 | fi | |
3290 | rmdir .tst 2>/dev/null | |
3291 | ||
3292 | # Check whether --enable-silent-rules was given. | |
3293 | if test ${enable_silent_rules+y} | |
3294 | then : | |
3295 | enableval=$enable_silent_rules; | |
3296 | fi | |
3297 | ||
3298 | case $enable_silent_rules in # ((( | |
3299 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3300 | no) AM_DEFAULT_VERBOSITY=1;; | |
3301 | *) AM_DEFAULT_VERBOSITY=1;; | |
3302 | esac | |
3303 | am_make=${MAKE-make} | |
3304 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3305 | printf %s "checking whether $am_make supports nested variables... " >&6; } | |
3306 | if test ${am_cv_make_support_nested_variables+y} | |
3307 | then : | |
3308 | printf %s "(cached) " >&6 | |
3309 | else $as_nop | |
3310 | if printf "%s\n" 'TRUE=$(BAR$(V)) | |
3311 | BAR0=false | |
3312 | BAR1=true | |
3313 | V=1 | |
3314 | am__doit: | |
3315 | @$(TRUE) | |
3316 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3317 | am_cv_make_support_nested_variables=yes | |
3318 | else | |
3319 | am_cv_make_support_nested_variables=no | |
3320 | fi | |
3321 | fi | |
3322 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3323 | printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } | |
3324 | if test $am_cv_make_support_nested_variables = yes; then | |
3325 | AM_V='$(V)' | |
3326 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3327 | else | |
3328 | AM_V=$AM_DEFAULT_VERBOSITY | |
3329 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3330 | fi | |
3331 | AM_BACKSLASH='\' | |
3332 | ||
3333 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3334 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3335 | # is not polluted with repeated "-I." | |
3336 | am__isrc=' -I$(srcdir)' | |
3337 | # test to see if srcdir already configured | |
3338 | if test -f $srcdir/config.status; then | |
3339 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3340 | fi | |
3341 | fi | |
3342 | ||
3343 | # test whether we have cygpath | |
3344 | if test -z "$CYGPATH_W"; then | |
3345 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3346 | CYGPATH_W='cygpath -w' | |
3347 | else | |
3348 | CYGPATH_W=echo | |
3349 | fi | |
3350 | fi | |
3351 | ||
3352 | ||
3353 | # Define the identity of the package. | |
3354 | PACKAGE='kal' | |
3355 | VERSION='0.4.1' | |
3356 | ||
3357 | ||
3358 | printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h | |
3359 | ||
3360 | ||
3361 | printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h | |
3362 | ||
3363 | # Some tools Automake needs. | |
3364 | ||
3365 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3366 | ||
3367 | ||
3368 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3369 | ||
3370 | ||
3371 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3372 | ||
3373 | ||
3374 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3375 | ||
3376 | ||
3377 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3378 | ||
3379 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3380 | # dies out for good. For more background, see: | |
3381 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3382 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3383 | mkdir_p='$(MKDIR_P)' | |
3384 | ||
3385 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3386 | # system "awk" is bad on some platforms. | |
3387 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3388 | # in the wild :-( We should find a proper way to deprecate it ... | |
3389 | AMTAR='$${TAR-tar}' | |
3390 | ||
3391 | ||
3392 | # We'll loop over all known methods to create a tar archive until one works. | |
3393 | _am_tools='gnutar pax cpio none' | |
3394 | ||
3395 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3396 | ||
3397 | ||
3398 | ||
3399 | ||
3400 | ||
3401 | # Variables for tags utilities; see am/tags.am | |
3402 | if test -z "$CTAGS"; then | |
3403 | CTAGS=ctags | |
3404 | fi | |
3405 | ||
3406 | if test -z "$ETAGS"; then | |
3407 | ETAGS=etags | |
3408 | fi | |
3409 | ||
3410 | if test -z "$CSCOPE"; then | |
3411 | CSCOPE=cscope | |
3412 | fi | |
3413 | ||
3414 | ||
3415 | ||
3416 | # POSIX will say in a future version that running "rm -f" with no argument | |
3417 | # is OK; and we want to be able to make that assumption in our Makefile | |
3418 | # recipes. So use an aggressive probe to check that the usage we want is | |
3419 | # actually supported "in the wild" to an acceptable degree. | |
3420 | # See automake bug#10828. | |
3421 | # To make any issue more visible, cause the running configure to be aborted | |
3422 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3423 | # user can still override this though. | |
3424 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3425 | cat >&2 <<'END' | |
3426 | Oops! | |
3427 | ||
3428 | Your 'rm' program seems unable to run without file operands specified | |
3429 | on the command line, even when the '-f' option is present. This is contrary | |
3430 | to the behaviour of most rm programs out there, and not conforming with | |
3431 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3432 | ||
3433 | Please tell [email protected] about your system, including the value | |
3434 | of your $PATH and any error possibly output before this message. This | |
3435 | can help us improve future automake versions. | |
3436 | ||
3437 | END | |
3438 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3439 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3440 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3441 | echo >&2 | |
3442 | else | |
3443 | cat >&2 <<'END' | |
3444 | Aborting the configuration process, to ensure you take notice of the issue. | |
3445 | ||
3446 | You can download and install GNU coreutils to get an 'rm' implementation | |
3447 | that behaves properly: <https://www.gnu.org/software/coreutils/>. | |
3448 | ||
3449 | If you want to complete the configuration process using your problematic | |
3450 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3451 | to "yes", and re-run configure. | |
3452 | ||
3453 | END | |
3454 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3455 | fi | |
3456 | fi | |
3457 | ||
3458 | ac_config_headers="$ac_config_headers config.h" | |
3459 | ||
3460 | ||
3461 | # Checks for programs. | |
3462 | ||
3463 | ||
3464 | ||
3465 | ||
3466 | ||
3467 | ||
3468 | ac_ext=cpp | |
3469 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3470 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3471 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3472 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3473 | if test -z "$CXX"; then | |
3474 | if test -n "$CCC"; then | |
3475 | CXX=$CCC | |
3476 | else | |
3477 | if test -n "$ac_tool_prefix"; then | |
3478 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ | |
3479 | do | |
3480 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3481 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3482 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3483 | printf %s "checking for $ac_word... " >&6; } | |
3484 | if test ${ac_cv_prog_CXX+y} | |
3485 | then : | |
3486 | printf %s "(cached) " >&6 | |
3487 | else $as_nop | |
3488 | if test -n "$CXX"; then | |
3489 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3490 | else | |
3491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3492 | for as_dir in $PATH | |
3493 | do | |
3494 | IFS=$as_save_IFS | |
3495 | case $as_dir in #((( | |
3496 | '') as_dir=./ ;; | |
3497 | */) ;; | |
3498 | *) as_dir=$as_dir/ ;; | |
3499 | esac | |
3500 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3501 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3502 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3503 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3504 | break 2 | |
3505 | fi | |
3506 | done | |
3507 | done | |
3508 | IFS=$as_save_IFS | |
3509 | ||
3510 | fi | |
3511 | fi | |
3512 | CXX=$ac_cv_prog_CXX | |
3513 | if test -n "$CXX"; then | |
3514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3515 | printf "%s\n" "$CXX" >&6; } | |
3516 | else | |
3517 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3518 | printf "%s\n" "no" >&6; } | |
3519 | fi | |
3520 | ||
3521 | ||
3522 | test -n "$CXX" && break | |
3523 | done | |
3524 | fi | |
3525 | if test -z "$CXX"; then | |
3526 | ac_ct_CXX=$CXX | |
3527 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ | |
3528 | do | |
3529 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3530 | set dummy $ac_prog; ac_word=$2 | |
3531 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3532 | printf %s "checking for $ac_word... " >&6; } | |
3533 | if test ${ac_cv_prog_ac_ct_CXX+y} | |
3534 | then : | |
3535 | printf %s "(cached) " >&6 | |
3536 | else $as_nop | |
3537 | if test -n "$ac_ct_CXX"; then | |
3538 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3539 | else | |
3540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3541 | for as_dir in $PATH | |
3542 | do | |
3543 | IFS=$as_save_IFS | |
3544 | case $as_dir in #((( | |
3545 | '') as_dir=./ ;; | |
3546 | */) ;; | |
3547 | *) as_dir=$as_dir/ ;; | |
3548 | esac | |
3549 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3550 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3551 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3552 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3553 | break 2 | |
3554 | fi | |
3555 | done | |
3556 | done | |
3557 | IFS=$as_save_IFS | |
3558 | ||
3559 | fi | |
3560 | fi | |
3561 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3562 | if test -n "$ac_ct_CXX"; then | |
3563 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3564 | printf "%s\n" "$ac_ct_CXX" >&6; } | |
3565 | else | |
3566 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3567 | printf "%s\n" "no" >&6; } | |
3568 | fi | |
3569 | ||
3570 | ||
3571 | test -n "$ac_ct_CXX" && break | |
3572 | done | |
3573 | ||
3574 | if test "x$ac_ct_CXX" = x; then | |
3575 | CXX="g++" | |
3576 | else | |
3577 | case $cross_compiling:$ac_tool_warned in | |
3578 | yes:) | |
3579 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3580 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3581 | ac_tool_warned=yes ;; | |
3582 | esac | |
3583 | CXX=$ac_ct_CXX | |
3584 | fi | |
3585 | fi | |
3586 | ||
3587 | fi | |
3588 | fi | |
3589 | # Provide some information about the compiler. | |
3590 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
3591 | set X $ac_compile | |
3592 | ac_compiler=$2 | |
3593 | for ac_option in --version -v -V -qversion; do | |
3594 | { { ac_try="$ac_compiler $ac_option >&5" | |
3595 | case "(($ac_try" in | |
3596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3597 | *) ac_try_echo=$ac_try;; | |
3598 | esac | |
3599 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3600 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3601 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3602 | ac_status=$? | |
3603 | if test -s conftest.err; then | |
3604 | sed '10a\ | |
3605 | ... rest of stderr output deleted ... | |
3606 | 10q' conftest.err >conftest.er1 | |
3607 | cat conftest.er1 >&5 | |
3608 | fi | |
3609 | rm -f conftest.er1 conftest.err | |
3610 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3611 | test $ac_status = 0; } | |
3612 | done | |
3613 | ||
3614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3615 | /* end confdefs.h. */ | |
3616 | ||
3617 | int | |
3618 | main (void) | |
3619 | { | |
3620 | ||
3621 | ; | |
3622 | return 0; | |
3623 | } | |
3624 | _ACEOF | |
3625 | ac_clean_files_save=$ac_clean_files | |
3626 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3627 | # Try to create an executable without -o first, disregard a.out. | |
3628 | # It will help us diagnose broken compilers, and finding out an intuition | |
3629 | # of exeext. | |
3630 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 | |
3631 | printf %s "checking whether the C++ compiler works... " >&6; } | |
3632 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3633 | ||
3634 | # The possible output files: | |
3635 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3636 | ||
3637 | ac_rmfiles= | |
3638 | for ac_file in $ac_files | |
3639 | do | |
3640 | case $ac_file in | |
3641 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3642 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3643 | esac | |
3644 | done | |
3645 | rm -f $ac_rmfiles | |
3646 | ||
3647 | if { { ac_try="$ac_link_default" | |
3648 | case "(($ac_try" in | |
3649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3650 | *) ac_try_echo=$ac_try;; | |
3651 | esac | |
3652 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3653 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3654 | (eval "$ac_link_default") 2>&5 | |
3655 | ac_status=$? | |
3656 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3657 | test $ac_status = 0; } | |
3658 | then : | |
3659 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3660 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3661 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3662 | # so that the user can short-circuit this test for compilers unknown to | |
3663 | # Autoconf. | |
3664 | for ac_file in $ac_files '' | |
3665 | do | |
3666 | test -f "$ac_file" || continue | |
3667 | case $ac_file in | |
3668 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3669 | ;; | |
3670 | [ab].out ) | |
3671 | # We found the default executable, but exeext='' is most | |
3672 | # certainly right. | |
3673 | break;; | |
3674 | *.* ) | |
3675 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; | |
3676 | then :; else | |
3677 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3678 | fi | |
3679 | # We set ac_cv_exeext here because the later test for it is not | |
3680 | # safe: cross compilers may not add the suffix if given an `-o' | |
3681 | # argument, so we may need to know it at that point already. | |
3682 | # Even if this section looks crufty: it has the advantage of | |
3683 | # actually working. | |
3684 | break;; | |
3685 | * ) | |
3686 | break;; | |
3687 | esac | |
3688 | done | |
3689 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3690 | ||
3691 | else $as_nop | |
3692 | ac_file='' | |
3693 | fi | |
3694 | if test -z "$ac_file" | |
3695 | then : | |
3696 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3697 | printf "%s\n" "no" >&6; } | |
3698 | printf "%s\n" "$as_me: failed program was:" >&5 | |
3699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3700 | ||
3701 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3702 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3703 | as_fn_error 77 "C++ compiler cannot create executables | |
3704 | See \`config.log' for more details" "$LINENO" 5; } | |
3705 | else $as_nop | |
3706 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3707 | printf "%s\n" "yes" >&6; } | |
3708 | fi | |
3709 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 | |
3710 | printf %s "checking for C++ compiler default output file name... " >&6; } | |
3711 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3712 | printf "%s\n" "$ac_file" >&6; } | |
3713 | ac_exeext=$ac_cv_exeext | |
3714 | ||
3715 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3716 | ac_clean_files=$ac_clean_files_save | |
3717 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3718 | printf %s "checking for suffix of executables... " >&6; } | |
3719 | if { { ac_try="$ac_link" | |
3720 | case "(($ac_try" in | |
3721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3722 | *) ac_try_echo=$ac_try;; | |
3723 | esac | |
3724 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3725 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3726 | (eval "$ac_link") 2>&5 | |
3727 | ac_status=$? | |
3728 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3729 | test $ac_status = 0; } | |
3730 | then : | |
3731 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3732 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3733 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3734 | # `rm'. | |
3735 | for ac_file in conftest.exe conftest conftest.*; do | |
3736 | test -f "$ac_file" || continue | |
3737 | case $ac_file in | |
3738 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3739 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3740 | break;; | |
3741 | * ) break;; | |
3742 | esac | |
3743 | done | |
3744 | else $as_nop | |
3745 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3746 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3747 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3748 | See \`config.log' for more details" "$LINENO" 5; } | |
3749 | fi | |
3750 | rm -f conftest conftest$ac_cv_exeext | |
3751 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3752 | printf "%s\n" "$ac_cv_exeext" >&6; } | |
3753 | ||
3754 | rm -f conftest.$ac_ext | |
3755 | EXEEXT=$ac_cv_exeext | |
3756 | ac_exeext=$EXEEXT | |
3757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3758 | /* end confdefs.h. */ | |
3759 | #include <stdio.h> | |
3760 | int | |
3761 | main (void) | |
3762 | { | |
3763 | FILE *f = fopen ("conftest.out", "w"); | |
3764 | return ferror (f) || fclose (f) != 0; | |
3765 | ||
3766 | ; | |
3767 | return 0; | |
3768 | } | |
3769 | _ACEOF | |
3770 | ac_clean_files="$ac_clean_files conftest.out" | |
3771 | # Check that the compiler produces executables we can run. If not, either | |
3772 | # the compiler is broken, or we cross compile. | |
3773 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3774 | printf %s "checking whether we are cross compiling... " >&6; } | |
3775 | if test "$cross_compiling" != yes; then | |
3776 | { { ac_try="$ac_link" | |
3777 | case "(($ac_try" in | |
3778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3779 | *) ac_try_echo=$ac_try;; | |
3780 | esac | |
3781 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3782 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3783 | (eval "$ac_link") 2>&5 | |
3784 | ac_status=$? | |
3785 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3786 | test $ac_status = 0; } | |
3787 | if { ac_try='./conftest$ac_cv_exeext' | |
3788 | { { case "(($ac_try" in | |
3789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3790 | *) ac_try_echo=$ac_try;; | |
3791 | esac | |
3792 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3793 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3794 | (eval "$ac_try") 2>&5 | |
3795 | ac_status=$? | |
3796 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3797 | test $ac_status = 0; }; }; then | |
3798 | cross_compiling=no | |
3799 | else | |
3800 | if test "$cross_compiling" = maybe; then | |
3801 | cross_compiling=yes | |
3802 | else | |
3803 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3804 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3805 | as_fn_error 77 "cannot run C++ compiled programs. | |
3806 | If you meant to cross compile, use \`--host'. | |
3807 | See \`config.log' for more details" "$LINENO" 5; } | |
3808 | fi | |
3809 | fi | |
3810 | fi | |
3811 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3812 | printf "%s\n" "$cross_compiling" >&6; } | |
3813 | ||
3814 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3815 | ac_clean_files=$ac_clean_files_save | |
3816 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3817 | printf %s "checking for suffix of object files... " >&6; } | |
3818 | if test ${ac_cv_objext+y} | |
3819 | then : | |
3820 | printf %s "(cached) " >&6 | |
3821 | else $as_nop | |
3822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3823 | /* end confdefs.h. */ | |
3824 | ||
3825 | int | |
3826 | main (void) | |
3827 | { | |
3828 | ||
3829 | ; | |
3830 | return 0; | |
3831 | } | |
3832 | _ACEOF | |
3833 | rm -f conftest.o conftest.obj | |
3834 | if { { ac_try="$ac_compile" | |
3835 | case "(($ac_try" in | |
3836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3837 | *) ac_try_echo=$ac_try;; | |
3838 | esac | |
3839 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3840 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3841 | (eval "$ac_compile") 2>&5 | |
3842 | ac_status=$? | |
3843 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3844 | test $ac_status = 0; } | |
3845 | then : | |
3846 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3847 | test -f "$ac_file" || continue; | |
3848 | case $ac_file in | |
3849 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3850 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3851 | break;; | |
3852 | esac | |
3853 | done | |
3854 | else $as_nop | |
3855 | printf "%s\n" "$as_me: failed program was:" >&5 | |
3856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3857 | ||
3858 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3859 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3860 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3861 | See \`config.log' for more details" "$LINENO" 5; } | |
3862 | fi | |
3863 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3864 | fi | |
3865 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3866 | printf "%s\n" "$ac_cv_objext" >&6; } | |
3867 | OBJEXT=$ac_cv_objext | |
3868 | ac_objext=$OBJEXT | |
3869 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 | |
3870 | printf %s "checking whether the compiler supports GNU C++... " >&6; } | |
3871 | if test ${ac_cv_cxx_compiler_gnu+y} | |
3872 | then : | |
3873 | printf %s "(cached) " >&6 | |
3874 | else $as_nop | |
3875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3876 | /* end confdefs.h. */ | |
3877 | ||
3878 | int | |
3879 | main (void) | |
3880 | { | |
3881 | #ifndef __GNUC__ | |
3882 | choke me | |
3883 | #endif | |
3884 | ||
3885 | ; | |
3886 | return 0; | |
3887 | } | |
3888 | _ACEOF | |
3889 | if ac_fn_cxx_try_compile "$LINENO" | |
3890 | then : | |
3891 | ac_compiler_gnu=yes | |
3892 | else $as_nop | |
3893 | ac_compiler_gnu=no | |
3894 | fi | |
3895 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3896 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3897 | ||
3898 | fi | |
3899 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3900 | printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } | |
3901 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3902 | ||
3903 | if test $ac_compiler_gnu = yes; then | |
3904 | GXX=yes | |
3905 | else | |
3906 | GXX= | |
3907 | fi | |
3908 | ac_test_CXXFLAGS=${CXXFLAGS+y} | |
3909 | ac_save_CXXFLAGS=$CXXFLAGS | |
3910 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3911 | printf %s "checking whether $CXX accepts -g... " >&6; } | |
3912 | if test ${ac_cv_prog_cxx_g+y} | |
3913 | then : | |
3914 | printf %s "(cached) " >&6 | |
3915 | else $as_nop | |
3916 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3917 | ac_cxx_werror_flag=yes | |
3918 | ac_cv_prog_cxx_g=no | |
3919 | CXXFLAGS="-g" | |
3920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3921 | /* end confdefs.h. */ | |
3922 | ||
3923 | int | |
3924 | main (void) | |
3925 | { | |
3926 | ||
3927 | ; | |
3928 | return 0; | |
3929 | } | |
3930 | _ACEOF | |
3931 | if ac_fn_cxx_try_compile "$LINENO" | |
3932 | then : | |
3933 | ac_cv_prog_cxx_g=yes | |
3934 | else $as_nop | |
3935 | CXXFLAGS="" | |
3936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3937 | /* end confdefs.h. */ | |
3938 | ||
3939 | int | |
3940 | main (void) | |
3941 | { | |
3942 | ||
3943 | ; | |
3944 | return 0; | |
3945 | } | |
3946 | _ACEOF | |
3947 | if ac_fn_cxx_try_compile "$LINENO" | |
3948 | then : | |
3949 | ||
3950 | else $as_nop | |
3951 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3952 | CXXFLAGS="-g" | |
3953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3954 | /* end confdefs.h. */ | |
3955 | ||
3956 | int | |
3957 | main (void) | |
3958 | { | |
3959 | ||
3960 | ; | |
3961 | return 0; | |
3962 | } | |
3963 | _ACEOF | |
3964 | if ac_fn_cxx_try_compile "$LINENO" | |
3965 | then : | |
3966 | ac_cv_prog_cxx_g=yes | |
3967 | fi | |
3968 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3969 | fi | |
3970 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3971 | fi | |
3972 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3973 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3974 | fi | |
3975 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
3976 | printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } | |
3977 | if test $ac_test_CXXFLAGS; then | |
3978 | CXXFLAGS=$ac_save_CXXFLAGS | |
3979 | elif test $ac_cv_prog_cxx_g = yes; then | |
3980 | if test "$GXX" = yes; then | |
3981 | CXXFLAGS="-g -O2" | |
3982 | else | |
3983 | CXXFLAGS="-g" | |
3984 | fi | |
3985 | else | |
3986 | if test "$GXX" = yes; then | |
3987 | CXXFLAGS="-O2" | |
3988 | else | |
3989 | CXXFLAGS= | |
3990 | fi | |
3991 | fi | |
3992 | ac_prog_cxx_stdcxx=no | |
3993 | if test x$ac_prog_cxx_stdcxx = xno | |
3994 | then : | |
3995 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 | |
3996 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } | |
3997 | if test ${ac_cv_prog_cxx_11+y} | |
3998 | then : | |
3999 | printf %s "(cached) " >&6 | |
4000 | else $as_nop | |
4001 | ac_cv_prog_cxx_11=no | |
4002 | ac_save_CXX=$CXX | |
4003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4004 | /* end confdefs.h. */ | |
4005 | $ac_cxx_conftest_cxx11_program | |
4006 | _ACEOF | |
4007 | for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA | |
4008 | do | |
4009 | CXX="$ac_save_CXX $ac_arg" | |
4010 | if ac_fn_cxx_try_compile "$LINENO" | |
4011 | then : | |
4012 | ac_cv_prog_cxx_cxx11=$ac_arg | |
4013 | fi | |
4014 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4015 | test "x$ac_cv_prog_cxx_cxx11" != "xno" && break | |
4016 | done | |
4017 | rm -f conftest.$ac_ext | |
4018 | CXX=$ac_save_CXX | |
4019 | fi | |
4020 | ||
4021 | if test "x$ac_cv_prog_cxx_cxx11" = xno | |
4022 | then : | |
4023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4024 | printf "%s\n" "unsupported" >&6; } | |
4025 | else $as_nop | |
4026 | if test "x$ac_cv_prog_cxx_cxx11" = x | |
4027 | then : | |
4028 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4029 | printf "%s\n" "none needed" >&6; } | |
4030 | else $as_nop | |
4031 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 | |
4032 | printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } | |
4033 | CXX="$CXX $ac_cv_prog_cxx_cxx11" | |
4034 | fi | |
4035 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 | |
4036 | ac_prog_cxx_stdcxx=cxx11 | |
4037 | fi | |
4038 | fi | |
4039 | if test x$ac_prog_cxx_stdcxx = xno | |
4040 | then : | |
4041 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 | |
4042 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } | |
4043 | if test ${ac_cv_prog_cxx_98+y} | |
4044 | then : | |
4045 | printf %s "(cached) " >&6 | |
4046 | else $as_nop | |
4047 | ac_cv_prog_cxx_98=no | |
4048 | ac_save_CXX=$CXX | |
4049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4050 | /* end confdefs.h. */ | |
4051 | $ac_cxx_conftest_cxx98_program | |
4052 | _ACEOF | |
4053 | for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA | |
4054 | do | |
4055 | CXX="$ac_save_CXX $ac_arg" | |
4056 | if ac_fn_cxx_try_compile "$LINENO" | |
4057 | then : | |
4058 | ac_cv_prog_cxx_cxx98=$ac_arg | |
4059 | fi | |
4060 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4061 | test "x$ac_cv_prog_cxx_cxx98" != "xno" && break | |
4062 | done | |
4063 | rm -f conftest.$ac_ext | |
4064 | CXX=$ac_save_CXX | |
4065 | fi | |
4066 | ||
4067 | if test "x$ac_cv_prog_cxx_cxx98" = xno | |
4068 | then : | |
4069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4070 | printf "%s\n" "unsupported" >&6; } | |
4071 | else $as_nop | |
4072 | if test "x$ac_cv_prog_cxx_cxx98" = x | |
4073 | then : | |
4074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4075 | printf "%s\n" "none needed" >&6; } | |
4076 | else $as_nop | |
4077 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 | |
4078 | printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } | |
4079 | CXX="$CXX $ac_cv_prog_cxx_cxx98" | |
4080 | fi | |
4081 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 | |
4082 | ac_prog_cxx_stdcxx=cxx98 | |
4083 | fi | |
4084 | fi | |
4085 | ||
4086 | ac_ext=c | |
4087 | ac_cpp='$CPP $CPPFLAGS' | |
4088 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4089 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4090 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4091 | DEPDIR="${am__leading_dot}deps" | |
4092 | ||
4093 | ac_config_commands="$ac_config_commands depfiles" | |
4094 | ||
4095 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 | |
4096 | printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } | |
4097 | cat > confinc.mk << 'END' | |
4098 | am__doit: | |
4099 | @echo this is the am__doit target >confinc.out | |
4100 | .PHONY: am__doit | |
4101 | END | |
4102 | am__include="#" | |
4103 | am__quote= | |
4104 | # BSD make does it like this. | |
4105 | echo '.include "confinc.mk" # ignored' > confmf.BSD | |
4106 | # Other make implementations (GNU, Solaris 10, AIX) do it like this. | |
4107 | echo 'include confinc.mk # ignored' > confmf.GNU | |
4108 | _am_result=no | |
4109 | for s in GNU BSD; do | |
4110 | { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 | |
4111 | (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 | |
4112 | ac_status=$? | |
4113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4114 | (exit $ac_status); } | |
4115 | case $?:`cat confinc.out 2>/dev/null` in #( | |
4116 | '0:this is the am__doit target') : | |
4117 | case $s in #( | |
4118 | BSD) : | |
4119 | am__include='.include' am__quote='"' ;; #( | |
4120 | *) : | |
4121 | am__include='include' am__quote='' ;; | |
4122 | esac ;; #( | |
4123 | *) : | |
4124 | ;; | |
4125 | esac | |
4126 | if test "$am__include" != "#"; then | |
4127 | _am_result="yes ($s style)" | |
4128 | break | |
4129 | fi | |
4130 | done | |
4131 | rm -f confinc.* confmf.* | |
4132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 | |
4133 | printf "%s\n" "${_am_result}" >&6; } | |
4134 | ||
4135 | # Check whether --enable-dependency-tracking was given. | |
4136 | if test ${enable_dependency_tracking+y} | |
4137 | then : | |
4138 | enableval=$enable_dependency_tracking; | |
4139 | fi | |
4140 | ||
4141 | if test "x$enable_dependency_tracking" != xno; then | |
4142 | am_depcomp="$ac_aux_dir/depcomp" | |
4143 | AMDEPBACKSLASH='\' | |
4144 | am__nodep='_no' | |
4145 | fi | |
4146 | if test "x$enable_dependency_tracking" != xno; then | |
4147 | AMDEP_TRUE= | |
4148 | AMDEP_FALSE='#' | |
4149 | else | |
4150 | AMDEP_TRUE='#' | |
4151 | AMDEP_FALSE= | |
4152 | fi | |
4153 | ||
4154 | ||
4155 | ||
4156 | depcc="$CXX" am_compiler_list= | |
4157 | ||
4158 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4159 | printf %s "checking dependency style of $depcc... " >&6; } | |
4160 | if test ${am_cv_CXX_dependencies_compiler_type+y} | |
4161 | then : | |
4162 | printf %s "(cached) " >&6 | |
4163 | else $as_nop | |
4164 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4165 | # We make a subdir and do the tests there. Otherwise we can end up | |
4166 | # making bogus files that we don't know about and never remove. For | |
4167 | # instance it was reported that on HP-UX the gcc test will end up | |
4168 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4169 | # in D". | |
4170 | rm -rf conftest.dir | |
4171 | mkdir conftest.dir | |
4172 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4173 | # using a relative directory. | |
4174 | cp "$am_depcomp" conftest.dir | |
4175 | cd conftest.dir | |
4176 | # We will build objects and dependencies in a subdirectory because | |
4177 | # it helps to detect inapplicable dependency modes. For instance | |
4178 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4179 | # side effect of compilation, but ICC will put the dependencies in | |
4180 | # the current directory while Tru64 will put them in the object | |
4181 | # directory. | |
4182 | mkdir sub | |
4183 | ||
4184 | am_cv_CXX_dependencies_compiler_type=none | |
4185 | if test "$am_compiler_list" = ""; then | |
4186 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4187 | fi | |
4188 | am__universal=false | |
4189 | case " $depcc " in #( | |
4190 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4191 | esac | |
4192 | ||
4193 | for depmode in $am_compiler_list; do | |
4194 | # Setup a source with many dependencies, because some compilers | |
4195 | # like to wrap large dependency lists on column 80 (with \), and | |
4196 | # we should not choose a depcomp mode which is confused by this. | |
4197 | # | |
4198 | # We need to recreate these files for each test, as the compiler may | |
4199 | # overwrite some of them when testing with obscure command lines. | |
4200 | # This happens at least with the AIX C compiler. | |
4201 | : > sub/conftest.c | |
4202 | for i in 1 2 3 4 5 6; do | |
4203 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4204 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4205 | # Solaris 10 /bin/sh. | |
4206 | echo '/* dummy */' > sub/conftst$i.h | |
4207 | done | |
4208 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4209 | ||
4210 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4211 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4212 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4213 | # versions had trouble with output in subdirs. | |
4214 | am__obj=sub/conftest.${OBJEXT-o} | |
4215 | am__minus_obj="-o $am__obj" | |
4216 | case $depmode in | |
4217 | gcc) | |
4218 | # This depmode causes a compiler race in universal mode. | |
4219 | test "$am__universal" = false || continue | |
4220 | ;; | |
4221 | nosideeffect) | |
4222 | # After this tag, mechanisms are not by side-effect, so they'll | |
4223 | # only be used when explicitly requested. | |
4224 | if test "x$enable_dependency_tracking" = xyes; then | |
4225 | continue | |
4226 | else | |
4227 | break | |
4228 | fi | |
4229 | ;; | |
4230 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4231 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4232 | # not run yet. These depmodes are late enough in the game, and | |
4233 | # so weak that their functioning should not be impacted. | |
4234 | am__obj=conftest.${OBJEXT-o} | |
4235 | am__minus_obj= | |
4236 | ;; | |
4237 | none) break ;; | |
4238 | esac | |
4239 | if depmode=$depmode \ | |
4240 | source=sub/conftest.c object=$am__obj \ | |
4241 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4242 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4243 | >/dev/null 2>conftest.err && | |
4244 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4245 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4246 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4247 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4248 | # icc doesn't choke on unknown options, it will just issue warnings | |
4249 | # or remarks (even with -Werror). So we grep stderr for any message | |
4250 | # that says an option was ignored or not supported. | |
4251 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4252 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4253 | # The diagnosis changed in icc 8.0: | |
4254 | # icc: Command line remark: option '-MP' not supported | |
4255 | if (grep 'ignoring option' conftest.err || | |
4256 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4257 | am_cv_CXX_dependencies_compiler_type=$depmode | |
4258 | break | |
4259 | fi | |
4260 | fi | |
4261 | done | |
4262 | ||
4263 | cd .. | |
4264 | rm -rf conftest.dir | |
4265 | else | |
4266 | am_cv_CXX_dependencies_compiler_type=none | |
4267 | fi | |
4268 | ||
4269 | fi | |
4270 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4271 | printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4272 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
4273 | ||
4274 | if | |
4275 | test "x$enable_dependency_tracking" != xno \ | |
4276 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4277 | am__fastdepCXX_TRUE= | |
4278 | am__fastdepCXX_FALSE='#' | |
4279 | else | |
4280 | am__fastdepCXX_TRUE='#' | |
4281 | am__fastdepCXX_FALSE= | |
4282 | fi | |
4283 | ||
4284 | ||
4285 | ||
4286 | ||
4287 | ||
4288 | ||
4289 | ||
4290 | ||
4291 | ||
4292 | ||
4293 | ||
4294 | ac_ext=c | |
4295 | ac_cpp='$CPP $CPPFLAGS' | |
4296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4299 | if test -n "$ac_tool_prefix"; then | |
4300 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4301 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4303 | printf %s "checking for $ac_word... " >&6; } | |
4304 | if test ${ac_cv_prog_CC+y} | |
4305 | then : | |
4306 | printf %s "(cached) " >&6 | |
4307 | else $as_nop | |
4308 | if test -n "$CC"; then | |
4309 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4310 | else | |
4311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4312 | for as_dir in $PATH | |
4313 | do | |
4314 | IFS=$as_save_IFS | |
4315 | case $as_dir in #((( | |
4316 | '') as_dir=./ ;; | |
4317 | */) ;; | |
4318 | *) as_dir=$as_dir/ ;; | |
4319 | esac | |
4320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4321 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4322 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4323 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4324 | break 2 | |
4325 | fi | |
4326 | done | |
4327 | done | |
4328 | IFS=$as_save_IFS | |
4329 | ||
4330 | fi | |
4331 | fi | |
4332 | CC=$ac_cv_prog_CC | |
4333 | if test -n "$CC"; then | |
4334 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4335 | printf "%s\n" "$CC" >&6; } | |
4336 | else | |
4337 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4338 | printf "%s\n" "no" >&6; } | |
4339 | fi | |
4340 | ||
4341 | ||
4342 | fi | |
4343 | if test -z "$ac_cv_prog_CC"; then | |
4344 | ac_ct_CC=$CC | |
4345 | # Extract the first word of "gcc", so it can be a program name with args. | |
4346 | set dummy gcc; ac_word=$2 | |
4347 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4348 | printf %s "checking for $ac_word... " >&6; } | |
4349 | if test ${ac_cv_prog_ac_ct_CC+y} | |
4350 | then : | |
4351 | printf %s "(cached) " >&6 | |
4352 | else $as_nop | |
4353 | if test -n "$ac_ct_CC"; then | |
4354 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4355 | else | |
4356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4357 | for as_dir in $PATH | |
4358 | do | |
4359 | IFS=$as_save_IFS | |
4360 | case $as_dir in #((( | |
4361 | '') as_dir=./ ;; | |
4362 | */) ;; | |
4363 | *) as_dir=$as_dir/ ;; | |
4364 | esac | |
4365 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4366 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4367 | ac_cv_prog_ac_ct_CC="gcc" | |
4368 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4369 | break 2 | |
4370 | fi | |
4371 | done | |
4372 | done | |
4373 | IFS=$as_save_IFS | |
4374 | ||
4375 | fi | |
4376 | fi | |
4377 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4378 | if test -n "$ac_ct_CC"; then | |
4379 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4380 | printf "%s\n" "$ac_ct_CC" >&6; } | |
4381 | else | |
4382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4383 | printf "%s\n" "no" >&6; } | |
4384 | fi | |
4385 | ||
4386 | if test "x$ac_ct_CC" = x; then | |
4387 | CC="" | |
4388 | else | |
4389 | case $cross_compiling:$ac_tool_warned in | |
4390 | yes:) | |
4391 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4392 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4393 | ac_tool_warned=yes ;; | |
4394 | esac | |
4395 | CC=$ac_ct_CC | |
4396 | fi | |
4397 | else | |
4398 | CC="$ac_cv_prog_CC" | |
4399 | fi | |
4400 | ||
4401 | if test -z "$CC"; then | |
4402 | if test -n "$ac_tool_prefix"; then | |
4403 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4404 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4405 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4406 | printf %s "checking for $ac_word... " >&6; } | |
4407 | if test ${ac_cv_prog_CC+y} | |
4408 | then : | |
4409 | printf %s "(cached) " >&6 | |
4410 | else $as_nop | |
4411 | if test -n "$CC"; then | |
4412 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4413 | else | |
4414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4415 | for as_dir in $PATH | |
4416 | do | |
4417 | IFS=$as_save_IFS | |
4418 | case $as_dir in #((( | |
4419 | '') as_dir=./ ;; | |
4420 | */) ;; | |
4421 | *) as_dir=$as_dir/ ;; | |
4422 | esac | |
4423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4424 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4425 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4426 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4427 | break 2 | |
4428 | fi | |
4429 | done | |
4430 | done | |
4431 | IFS=$as_save_IFS | |
4432 | ||
4433 | fi | |
4434 | fi | |
4435 | CC=$ac_cv_prog_CC | |
4436 | if test -n "$CC"; then | |
4437 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4438 | printf "%s\n" "$CC" >&6; } | |
4439 | else | |
4440 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4441 | printf "%s\n" "no" >&6; } | |
4442 | fi | |
4443 | ||
4444 | ||
4445 | fi | |
4446 | fi | |
4447 | if test -z "$CC"; then | |
4448 | # Extract the first word of "cc", so it can be a program name with args. | |
4449 | set dummy cc; ac_word=$2 | |
4450 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4451 | printf %s "checking for $ac_word... " >&6; } | |
4452 | if test ${ac_cv_prog_CC+y} | |
4453 | then : | |
4454 | printf %s "(cached) " >&6 | |
4455 | else $as_nop | |
4456 | if test -n "$CC"; then | |
4457 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4458 | else | |
4459 | ac_prog_rejected=no | |
4460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4461 | for as_dir in $PATH | |
4462 | do | |
4463 | IFS=$as_save_IFS | |
4464 | case $as_dir in #((( | |
4465 | '') as_dir=./ ;; | |
4466 | */) ;; | |
4467 | *) as_dir=$as_dir/ ;; | |
4468 | esac | |
4469 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4470 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4471 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4472 | ac_prog_rejected=yes | |
4473 | continue | |
4474 | fi | |
4475 | ac_cv_prog_CC="cc" | |
4476 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4477 | break 2 | |
4478 | fi | |
4479 | done | |
4480 | done | |
4481 | IFS=$as_save_IFS | |
4482 | ||
4483 | if test $ac_prog_rejected = yes; then | |
4484 | # We found a bogon in the path, so make sure we never use it. | |
4485 | set dummy $ac_cv_prog_CC | |
4486 | shift | |
4487 | if test $# != 0; then | |
4488 | # We chose a different compiler from the bogus one. | |
4489 | # However, it has the same basename, so the bogon will be chosen | |
4490 | # first if we set CC to just the basename; use the full file name. | |
4491 | shift | |
4492 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" | |
4493 | fi | |
4494 | fi | |
4495 | fi | |
4496 | fi | |
4497 | CC=$ac_cv_prog_CC | |
4498 | if test -n "$CC"; then | |
4499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4500 | printf "%s\n" "$CC" >&6; } | |
4501 | else | |
4502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4503 | printf "%s\n" "no" >&6; } | |
4504 | fi | |
4505 | ||
4506 | ||
4507 | fi | |
4508 | if test -z "$CC"; then | |
4509 | if test -n "$ac_tool_prefix"; then | |
4510 | for ac_prog in cl.exe | |
4511 | do | |
4512 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4513 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4515 | printf %s "checking for $ac_word... " >&6; } | |
4516 | if test ${ac_cv_prog_CC+y} | |
4517 | then : | |
4518 | printf %s "(cached) " >&6 | |
4519 | else $as_nop | |
4520 | if test -n "$CC"; then | |
4521 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4522 | else | |
4523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4524 | for as_dir in $PATH | |
4525 | do | |
4526 | IFS=$as_save_IFS | |
4527 | case $as_dir in #((( | |
4528 | '') as_dir=./ ;; | |
4529 | */) ;; | |
4530 | *) as_dir=$as_dir/ ;; | |
4531 | esac | |
4532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4533 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4534 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4535 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4536 | break 2 | |
4537 | fi | |
4538 | done | |
4539 | done | |
4540 | IFS=$as_save_IFS | |
4541 | ||
4542 | fi | |
4543 | fi | |
4544 | CC=$ac_cv_prog_CC | |
4545 | if test -n "$CC"; then | |
4546 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4547 | printf "%s\n" "$CC" >&6; } | |
4548 | else | |
4549 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4550 | printf "%s\n" "no" >&6; } | |
4551 | fi | |
4552 | ||
4553 | ||
4554 | test -n "$CC" && break | |
4555 | done | |
4556 | fi | |
4557 | if test -z "$CC"; then | |
4558 | ac_ct_CC=$CC | |
4559 | for ac_prog in cl.exe | |
4560 | do | |
4561 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4562 | set dummy $ac_prog; ac_word=$2 | |
4563 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4564 | printf %s "checking for $ac_word... " >&6; } | |
4565 | if test ${ac_cv_prog_ac_ct_CC+y} | |
4566 | then : | |
4567 | printf %s "(cached) " >&6 | |
4568 | else $as_nop | |
4569 | if test -n "$ac_ct_CC"; then | |
4570 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4571 | else | |
4572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4573 | for as_dir in $PATH | |
4574 | do | |
4575 | IFS=$as_save_IFS | |
4576 | case $as_dir in #((( | |
4577 | '') as_dir=./ ;; | |
4578 | */) ;; | |
4579 | *) as_dir=$as_dir/ ;; | |
4580 | esac | |
4581 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4582 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4583 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4584 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4585 | break 2 | |
4586 | fi | |
4587 | done | |
4588 | done | |
4589 | IFS=$as_save_IFS | |
4590 | ||
4591 | fi | |
4592 | fi | |
4593 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4594 | if test -n "$ac_ct_CC"; then | |
4595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4596 | printf "%s\n" "$ac_ct_CC" >&6; } | |
4597 | else | |
4598 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4599 | printf "%s\n" "no" >&6; } | |
4600 | fi | |
4601 | ||
4602 | ||
4603 | test -n "$ac_ct_CC" && break | |
4604 | done | |
4605 | ||
4606 | if test "x$ac_ct_CC" = x; then | |
4607 | CC="" | |
4608 | else | |
4609 | case $cross_compiling:$ac_tool_warned in | |
4610 | yes:) | |
4611 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4612 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4613 | ac_tool_warned=yes ;; | |
4614 | esac | |
4615 | CC=$ac_ct_CC | |
4616 | fi | |
4617 | fi | |
4618 | ||
4619 | fi | |
4620 | if test -z "$CC"; then | |
4621 | if test -n "$ac_tool_prefix"; then | |
4622 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
4623 | set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
4624 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4625 | printf %s "checking for $ac_word... " >&6; } | |
4626 | if test ${ac_cv_prog_CC+y} | |
4627 | then : | |
4628 | printf %s "(cached) " >&6 | |
4629 | else $as_nop | |
4630 | if test -n "$CC"; then | |
4631 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4632 | else | |
4633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4634 | for as_dir in $PATH | |
4635 | do | |
4636 | IFS=$as_save_IFS | |
4637 | case $as_dir in #((( | |
4638 | '') as_dir=./ ;; | |
4639 | */) ;; | |
4640 | *) as_dir=$as_dir/ ;; | |
4641 | esac | |
4642 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4643 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4644 | ac_cv_prog_CC="${ac_tool_prefix}clang" | |
4645 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4646 | break 2 | |
4647 | fi | |
4648 | done | |
4649 | done | |
4650 | IFS=$as_save_IFS | |
4651 | ||
4652 | fi | |
4653 | fi | |
4654 | CC=$ac_cv_prog_CC | |
4655 | if test -n "$CC"; then | |
4656 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4657 | printf "%s\n" "$CC" >&6; } | |
4658 | else | |
4659 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4660 | printf "%s\n" "no" >&6; } | |
4661 | fi | |
4662 | ||
4663 | ||
4664 | fi | |
4665 | if test -z "$ac_cv_prog_CC"; then | |
4666 | ac_ct_CC=$CC | |
4667 | # Extract the first word of "clang", so it can be a program name with args. | |
4668 | set dummy clang; ac_word=$2 | |
4669 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4670 | printf %s "checking for $ac_word... " >&6; } | |
4671 | if test ${ac_cv_prog_ac_ct_CC+y} | |
4672 | then : | |
4673 | printf %s "(cached) " >&6 | |
4674 | else $as_nop | |
4675 | if test -n "$ac_ct_CC"; then | |
4676 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4677 | else | |
4678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4679 | for as_dir in $PATH | |
4680 | do | |
4681 | IFS=$as_save_IFS | |
4682 | case $as_dir in #((( | |
4683 | '') as_dir=./ ;; | |
4684 | */) ;; | |
4685 | *) as_dir=$as_dir/ ;; | |
4686 | esac | |
4687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4688 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4689 | ac_cv_prog_ac_ct_CC="clang" | |
4690 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4691 | break 2 | |
4692 | fi | |
4693 | done | |
4694 | done | |
4695 | IFS=$as_save_IFS | |
4696 | ||
4697 | fi | |
4698 | fi | |
4699 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4700 | if test -n "$ac_ct_CC"; then | |
4701 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4702 | printf "%s\n" "$ac_ct_CC" >&6; } | |
4703 | else | |
4704 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4705 | printf "%s\n" "no" >&6; } | |
4706 | fi | |
4707 | ||
4708 | if test "x$ac_ct_CC" = x; then | |
4709 | CC="" | |
4710 | else | |
4711 | case $cross_compiling:$ac_tool_warned in | |
4712 | yes:) | |
4713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4714 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4715 | ac_tool_warned=yes ;; | |
4716 | esac | |
4717 | CC=$ac_ct_CC | |
4718 | fi | |
4719 | else | |
4720 | CC="$ac_cv_prog_CC" | |
4721 | fi | |
4722 | ||
4723 | fi | |
4724 | ||
4725 | ||
4726 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4727 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
4728 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
4729 | See \`config.log' for more details" "$LINENO" 5; } | |
4730 | ||
4731 | # Provide some information about the compiler. | |
4732 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4733 | set X $ac_compile | |
4734 | ac_compiler=$2 | |
4735 | for ac_option in --version -v -V -qversion -version; do | |
4736 | { { ac_try="$ac_compiler $ac_option >&5" | |
4737 | case "(($ac_try" in | |
4738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4739 | *) ac_try_echo=$ac_try;; | |
4740 | esac | |
4741 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4742 | printf "%s\n" "$ac_try_echo"; } >&5 | |
4743 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4744 | ac_status=$? | |
4745 | if test -s conftest.err; then | |
4746 | sed '10a\ | |
4747 | ... rest of stderr output deleted ... | |
4748 | 10q' conftest.err >conftest.er1 | |
4749 | cat conftest.er1 >&5 | |
4750 | fi | |
4751 | rm -f conftest.er1 conftest.err | |
4752 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4753 | test $ac_status = 0; } | |
4754 | done | |
4755 | ||
4756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 | |
4757 | printf %s "checking whether the compiler supports GNU C... " >&6; } | |
4758 | if test ${ac_cv_c_compiler_gnu+y} | |
4759 | then : | |
4760 | printf %s "(cached) " >&6 | |
4761 | else $as_nop | |
4762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4763 | /* end confdefs.h. */ | |
4764 | ||
4765 | int | |
4766 | main (void) | |
4767 | { | |
4768 | #ifndef __GNUC__ | |
4769 | choke me | |
4770 | #endif | |
4771 | ||
4772 | ; | |
4773 | return 0; | |
4774 | } | |
4775 | _ACEOF | |
4776 | if ac_fn_c_try_compile "$LINENO" | |
4777 | then : | |
4778 | ac_compiler_gnu=yes | |
4779 | else $as_nop | |
4780 | ac_compiler_gnu=no | |
4781 | fi | |
4782 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4783 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4784 | ||
4785 | fi | |
4786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4787 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
4788 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4789 | ||
4790 | if test $ac_compiler_gnu = yes; then | |
4791 | GCC=yes | |
4792 | else | |
4793 | GCC= | |
4794 | fi | |
4795 | ac_test_CFLAGS=${CFLAGS+y} | |
4796 | ac_save_CFLAGS=$CFLAGS | |
4797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4798 | printf %s "checking whether $CC accepts -g... " >&6; } | |
4799 | if test ${ac_cv_prog_cc_g+y} | |
4800 | then : | |
4801 | printf %s "(cached) " >&6 | |
4802 | else $as_nop | |
4803 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4804 | ac_c_werror_flag=yes | |
4805 | ac_cv_prog_cc_g=no | |
4806 | CFLAGS="-g" | |
4807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4808 | /* end confdefs.h. */ | |
4809 | ||
4810 | int | |
4811 | main (void) | |
4812 | { | |
4813 | ||
4814 | ; | |
4815 | return 0; | |
4816 | } | |
4817 | _ACEOF | |
4818 | if ac_fn_c_try_compile "$LINENO" | |
4819 | then : | |
4820 | ac_cv_prog_cc_g=yes | |
4821 | else $as_nop | |
4822 | CFLAGS="" | |
4823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4824 | /* end confdefs.h. */ | |
4825 | ||
4826 | int | |
4827 | main (void) | |
4828 | { | |
4829 | ||
4830 | ; | |
4831 | return 0; | |
4832 | } | |
4833 | _ACEOF | |
4834 | if ac_fn_c_try_compile "$LINENO" | |
4835 | then : | |
4836 | ||
4837 | else $as_nop | |
4838 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4839 | CFLAGS="-g" | |
4840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4841 | /* end confdefs.h. */ | |
4842 | ||
4843 | int | |
4844 | main (void) | |
4845 | { | |
4846 | ||
4847 | ; | |
4848 | return 0; | |
4849 | } | |
4850 | _ACEOF | |
4851 | if ac_fn_c_try_compile "$LINENO" | |
4852 | then : | |
4853 | ac_cv_prog_cc_g=yes | |
4854 | fi | |
4855 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4856 | fi | |
4857 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4858 | fi | |
4859 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4860 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4861 | fi | |
4862 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4863 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
4864 | if test $ac_test_CFLAGS; then | |
4865 | CFLAGS=$ac_save_CFLAGS | |
4866 | elif test $ac_cv_prog_cc_g = yes; then | |
4867 | if test "$GCC" = yes; then | |
4868 | CFLAGS="-g -O2" | |
4869 | else | |
4870 | CFLAGS="-g" | |
4871 | fi | |
4872 | else | |
4873 | if test "$GCC" = yes; then | |
4874 | CFLAGS="-O2" | |
4875 | else | |
4876 | CFLAGS= | |
4877 | fi | |
4878 | fi | |
4879 | ac_prog_cc_stdc=no | |
4880 | if test x$ac_prog_cc_stdc = xno | |
4881 | then : | |
4882 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
4883 | printf %s "checking for $CC option to enable C11 features... " >&6; } | |
4884 | if test ${ac_cv_prog_cc_c11+y} | |
4885 | then : | |
4886 | printf %s "(cached) " >&6 | |
4887 | else $as_nop | |
4888 | ac_cv_prog_cc_c11=no | |
4889 | ac_save_CC=$CC | |
4890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4891 | /* end confdefs.h. */ | |
4892 | $ac_c_conftest_c11_program | |
4893 | _ACEOF | |
4894 | for ac_arg in '' -std=gnu11 | |
4895 | do | |
4896 | CC="$ac_save_CC $ac_arg" | |
4897 | if ac_fn_c_try_compile "$LINENO" | |
4898 | then : | |
4899 | ac_cv_prog_cc_c11=$ac_arg | |
4900 | fi | |
4901 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4902 | test "x$ac_cv_prog_cc_c11" != "xno" && break | |
4903 | done | |
4904 | rm -f conftest.$ac_ext | |
4905 | CC=$ac_save_CC | |
4906 | fi | |
4907 | ||
4908 | if test "x$ac_cv_prog_cc_c11" = xno | |
4909 | then : | |
4910 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4911 | printf "%s\n" "unsupported" >&6; } | |
4912 | else $as_nop | |
4913 | if test "x$ac_cv_prog_cc_c11" = x | |
4914 | then : | |
4915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4916 | printf "%s\n" "none needed" >&6; } | |
4917 | else $as_nop | |
4918 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
4919 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
4920 | CC="$CC $ac_cv_prog_cc_c11" | |
4921 | fi | |
4922 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
4923 | ac_prog_cc_stdc=c11 | |
4924 | fi | |
4925 | fi | |
4926 | if test x$ac_prog_cc_stdc = xno | |
4927 | then : | |
4928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
4929 | printf %s "checking for $CC option to enable C99 features... " >&6; } | |
4930 | if test ${ac_cv_prog_cc_c99+y} | |
4931 | then : | |
4932 | printf %s "(cached) " >&6 | |
4933 | else $as_nop | |
4934 | ac_cv_prog_cc_c99=no | |
4935 | ac_save_CC=$CC | |
4936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4937 | /* end confdefs.h. */ | |
4938 | $ac_c_conftest_c99_program | |
4939 | _ACEOF | |
4940 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
4941 | do | |
4942 | CC="$ac_save_CC $ac_arg" | |
4943 | if ac_fn_c_try_compile "$LINENO" | |
4944 | then : | |
4945 | ac_cv_prog_cc_c99=$ac_arg | |
4946 | fi | |
4947 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4948 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
4949 | done | |
4950 | rm -f conftest.$ac_ext | |
4951 | CC=$ac_save_CC | |
4952 | fi | |
4953 | ||
4954 | if test "x$ac_cv_prog_cc_c99" = xno | |
4955 | then : | |
4956 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4957 | printf "%s\n" "unsupported" >&6; } | |
4958 | else $as_nop | |
4959 | if test "x$ac_cv_prog_cc_c99" = x | |
4960 | then : | |
4961 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4962 | printf "%s\n" "none needed" >&6; } | |
4963 | else $as_nop | |
4964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
4965 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
4966 | CC="$CC $ac_cv_prog_cc_c99" | |
4967 | fi | |
4968 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
4969 | ac_prog_cc_stdc=c99 | |
4970 | fi | |
4971 | fi | |
4972 | if test x$ac_prog_cc_stdc = xno | |
4973 | then : | |
4974 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
4975 | printf %s "checking for $CC option to enable C89 features... " >&6; } | |
4976 | if test ${ac_cv_prog_cc_c89+y} | |
4977 | then : | |
4978 | printf %s "(cached) " >&6 | |
4979 | else $as_nop | |
4980 | ac_cv_prog_cc_c89=no | |
4981 | ac_save_CC=$CC | |
4982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4983 | /* end confdefs.h. */ | |
4984 | $ac_c_conftest_c89_program | |
4985 | _ACEOF | |
4986 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4987 | do | |
4988 | CC="$ac_save_CC $ac_arg" | |
4989 | if ac_fn_c_try_compile "$LINENO" | |
4990 | then : | |
4991 | ac_cv_prog_cc_c89=$ac_arg | |
4992 | fi | |
4993 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4994 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4995 | done | |
4996 | rm -f conftest.$ac_ext | |
4997 | CC=$ac_save_CC | |
4998 | fi | |
4999 | ||
5000 | if test "x$ac_cv_prog_cc_c89" = xno | |
5001 | then : | |
5002 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5003 | printf "%s\n" "unsupported" >&6; } | |
5004 | else $as_nop | |
5005 | if test "x$ac_cv_prog_cc_c89" = x | |
5006 | then : | |
5007 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5008 | printf "%s\n" "none needed" >&6; } | |
5009 | else $as_nop | |
5010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5011 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | |
5012 | CC="$CC $ac_cv_prog_cc_c89" | |
5013 | fi | |
5014 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
5015 | ac_prog_cc_stdc=c89 | |
5016 | fi | |
5017 | fi | |
5018 | ||
5019 | ac_ext=c | |
5020 | ac_cpp='$CPP $CPPFLAGS' | |
5021 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5022 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5023 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5024 | ||
5025 | ||
5026 | ac_ext=c | |
5027 | ac_cpp='$CPP $CPPFLAGS' | |
5028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5031 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5032 | printf %s "checking whether $CC understands -c and -o together... " >&6; } | |
5033 | if test ${am_cv_prog_cc_c_o+y} | |
5034 | then : | |
5035 | printf %s "(cached) " >&6 | |
5036 | else $as_nop | |
5037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5038 | /* end confdefs.h. */ | |
5039 | ||
5040 | int | |
5041 | main (void) | |
5042 | { | |
5043 | ||
5044 | ; | |
5045 | return 0; | |
5046 | } | |
5047 | _ACEOF | |
5048 | # Make sure it works both with $CC and with simple cc. | |
5049 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5050 | # compilers refuse to overwrite an existing .o file with -o, | |
5051 | # though they will create one. | |
5052 | am_cv_prog_cc_c_o=yes | |
5053 | for am_i in 1 2; do | |
5054 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5055 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5056 | ac_status=$? | |
5057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5058 | (exit $ac_status); } \ | |
5059 | && test -f conftest2.$ac_objext; then | |
5060 | : OK | |
5061 | else | |
5062 | am_cv_prog_cc_c_o=no | |
5063 | break | |
5064 | fi | |
5065 | done | |
5066 | rm -f core conftest* | |
5067 | unset am_i | |
5068 | fi | |
5069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5070 | printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } | |
5071 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5072 | # Losing compiler, so override with the script. | |
5073 | # FIXME: It is wrong to rewrite CC. | |
5074 | # But if we don't then we get into trouble of one sort or another. | |
5075 | # A longer-term fix would be to have automake use am__CC in this case, | |
5076 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5077 | CC="$am_aux_dir/compile $CC" | |
5078 | fi | |
5079 | ac_ext=c | |
5080 | ac_cpp='$CPP $CPPFLAGS' | |
5081 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5082 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5083 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5084 | ||
5085 | ||
5086 | depcc="$CC" am_compiler_list= | |
5087 | ||
5088 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5089 | printf %s "checking dependency style of $depcc... " >&6; } | |
5090 | if test ${am_cv_CC_dependencies_compiler_type+y} | |
5091 | then : | |
5092 | printf %s "(cached) " >&6 | |
5093 | else $as_nop | |
5094 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5095 | # We make a subdir and do the tests there. Otherwise we can end up | |
5096 | # making bogus files that we don't know about and never remove. For | |
5097 | # instance it was reported that on HP-UX the gcc test will end up | |
5098 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
5099 | # in D". | |
5100 | rm -rf conftest.dir | |
5101 | mkdir conftest.dir | |
5102 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5103 | # using a relative directory. | |
5104 | cp "$am_depcomp" conftest.dir | |
5105 | cd conftest.dir | |
5106 | # We will build objects and dependencies in a subdirectory because | |
5107 | # it helps to detect inapplicable dependency modes. For instance | |
5108 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5109 | # side effect of compilation, but ICC will put the dependencies in | |
5110 | # the current directory while Tru64 will put them in the object | |
5111 | # directory. | |
5112 | mkdir sub | |
5113 | ||
5114 | am_cv_CC_dependencies_compiler_type=none | |
5115 | if test "$am_compiler_list" = ""; then | |
5116 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5117 | fi | |
5118 | am__universal=false | |
5119 | case " $depcc " in #( | |
5120 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5121 | esac | |
5122 | ||
5123 | for depmode in $am_compiler_list; do | |
5124 | # Setup a source with many dependencies, because some compilers | |
5125 | # like to wrap large dependency lists on column 80 (with \), and | |
5126 | # we should not choose a depcomp mode which is confused by this. | |
5127 | # | |
5128 | # We need to recreate these files for each test, as the compiler may | |
5129 | # overwrite some of them when testing with obscure command lines. | |
5130 | # This happens at least with the AIX C compiler. | |
5131 | : > sub/conftest.c | |
5132 | for i in 1 2 3 4 5 6; do | |
5133 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5134 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
5135 | # Solaris 10 /bin/sh. | |
5136 | echo '/* dummy */' > sub/conftst$i.h | |
5137 | done | |
5138 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5139 | ||
5140 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
5141 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5142 | # handle '-M -o', and we need to detect this. Also, some Intel | |
5143 | # versions had trouble with output in subdirs. | |
5144 | am__obj=sub/conftest.${OBJEXT-o} | |
5145 | am__minus_obj="-o $am__obj" | |
5146 | case $depmode in | |
5147 | gcc) | |
5148 | # This depmode causes a compiler race in universal mode. | |
5149 | test "$am__universal" = false || continue | |
5150 | ;; | |
5151 | nosideeffect) | |
5152 | # After this tag, mechanisms are not by side-effect, so they'll | |
5153 | # only be used when explicitly requested. | |
5154 | if test "x$enable_dependency_tracking" = xyes; then | |
5155 | continue | |
5156 | else | |
5157 | break | |
5158 | fi | |
5159 | ;; | |
5160 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
5161 | # This compiler won't grok '-c -o', but also, the minuso test has | |
5162 | # not run yet. These depmodes are late enough in the game, and | |
5163 | # so weak that their functioning should not be impacted. | |
5164 | am__obj=conftest.${OBJEXT-o} | |
5165 | am__minus_obj= | |
5166 | ;; | |
5167 | none) break ;; | |
5168 | esac | |
5169 | if depmode=$depmode \ | |
5170 | source=sub/conftest.c object=$am__obj \ | |
5171 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5172 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5173 | >/dev/null 2>conftest.err && | |
5174 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5175 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5176 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5177 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5178 | # icc doesn't choke on unknown options, it will just issue warnings | |
5179 | # or remarks (even with -Werror). So we grep stderr for any message | |
5180 | # that says an option was ignored or not supported. | |
5181 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5182 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5183 | # The diagnosis changed in icc 8.0: | |
5184 | # icc: Command line remark: option '-MP' not supported | |
5185 | if (grep 'ignoring option' conftest.err || | |
5186 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5187 | am_cv_CC_dependencies_compiler_type=$depmode | |
5188 | break | |
5189 | fi | |
5190 | fi | |
5191 | done | |
5192 | ||
5193 | cd .. | |
5194 | rm -rf conftest.dir | |
5195 | else | |
5196 | am_cv_CC_dependencies_compiler_type=none | |
5197 | fi | |
5198 | ||
5199 | fi | |
5200 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5201 | printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5202 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5203 | ||
5204 | if | |
5205 | test "x$enable_dependency_tracking" != xno \ | |
5206 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5207 | am__fastdepCC_TRUE= | |
5208 | am__fastdepCC_FALSE='#' | |
5209 | else | |
5210 | am__fastdepCC_TRUE='#' | |
5211 | am__fastdepCC_FALSE= | |
5212 | fi | |
5213 | ||
5214 | ||
5215 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5216 | printf %s "checking whether ln -s works... " >&6; } | |
5217 | LN_S=$as_ln_s | |
5218 | if test "$LN_S" = "ln -s"; then | |
5219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5220 | printf "%s\n" "yes" >&6; } | |
5221 | else | |
5222 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5223 | printf "%s\n" "no, using $LN_S" >&6; } | |
5224 | fi | |
5225 | ||
5226 | if test -n "$ac_tool_prefix"; then | |
5227 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5228 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5229 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5230 | printf %s "checking for $ac_word... " >&6; } | |
5231 | if test ${ac_cv_prog_RANLIB+y} | |
5232 | then : | |
5233 | printf %s "(cached) " >&6 | |
5234 | else $as_nop | |
5235 | if test -n "$RANLIB"; then | |
5236 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5237 | else | |
5238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5239 | for as_dir in $PATH | |
5240 | do | |
5241 | IFS=$as_save_IFS | |
5242 | case $as_dir in #((( | |
5243 | '') as_dir=./ ;; | |
5244 | */) ;; | |
5245 | *) as_dir=$as_dir/ ;; | |
5246 | esac | |
5247 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5248 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5249 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5250 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5251 | break 2 | |
5252 | fi | |
5253 | done | |
5254 | done | |
5255 | IFS=$as_save_IFS | |
5256 | ||
5257 | fi | |
5258 | fi | |
5259 | RANLIB=$ac_cv_prog_RANLIB | |
5260 | if test -n "$RANLIB"; then | |
5261 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5262 | printf "%s\n" "$RANLIB" >&6; } | |
5263 | else | |
5264 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5265 | printf "%s\n" "no" >&6; } | |
5266 | fi | |
5267 | ||
5268 | ||
5269 | fi | |
5270 | if test -z "$ac_cv_prog_RANLIB"; then | |
5271 | ac_ct_RANLIB=$RANLIB | |
5272 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5273 | set dummy ranlib; ac_word=$2 | |
5274 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5275 | printf %s "checking for $ac_word... " >&6; } | |
5276 | if test ${ac_cv_prog_ac_ct_RANLIB+y} | |
5277 | then : | |
5278 | printf %s "(cached) " >&6 | |
5279 | else $as_nop | |
5280 | if test -n "$ac_ct_RANLIB"; then | |
5281 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5282 | else | |
5283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5284 | for as_dir in $PATH | |
5285 | do | |
5286 | IFS=$as_save_IFS | |
5287 | case $as_dir in #((( | |
5288 | '') as_dir=./ ;; | |
5289 | */) ;; | |
5290 | *) as_dir=$as_dir/ ;; | |
5291 | esac | |
5292 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5293 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5294 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5295 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5296 | break 2 | |
5297 | fi | |
5298 | done | |
5299 | done | |
5300 | IFS=$as_save_IFS | |
5301 | ||
5302 | fi | |
5303 | fi | |
5304 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5305 | if test -n "$ac_ct_RANLIB"; then | |
5306 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5307 | printf "%s\n" "$ac_ct_RANLIB" >&6; } | |
5308 | else | |
5309 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5310 | printf "%s\n" "no" >&6; } | |
5311 | fi | |
5312 | ||
5313 | if test "x$ac_ct_RANLIB" = x; then | |
5314 | RANLIB=":" | |
5315 | else | |
5316 | case $cross_compiling:$ac_tool_warned in | |
5317 | yes:) | |
5318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5319 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5320 | ac_tool_warned=yes ;; | |
5321 | esac | |
5322 | RANLIB=$ac_ct_RANLIB | |
5323 | fi | |
5324 | else | |
5325 | RANLIB="$ac_cv_prog_RANLIB" | |
5326 | fi | |
5327 | ||
5328 | ||
5329 | # Checks for header files. | |
5330 | ||
5331 | ac_header= ac_cache= | |
5332 | for ac_item in $ac_header_c_list | |
5333 | do | |
5334 | if test $ac_cache; then | |
5335 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" | |
5336 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then | |
5337 | printf "%s\n" "#define $ac_item 1" >> confdefs.h | |
5338 | fi | |
5339 | ac_header= ac_cache= | |
5340 | elif test $ac_header; then | |
5341 | ac_cache=$ac_item | |
5342 | else | |
5343 | ac_header=$ac_item | |
5344 | fi | |
5345 | done | |
5346 | ||
5347 | ||
5348 | ||
5349 | ||
5350 | ||
5351 | ||
5352 | ||
5353 | ||
5354 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes | |
5355 | then : | |
5356 | ||
5357 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h | |
5358 | ||
5359 | fi | |
5360 | ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
5361 | if test "x$ac_cv_header_stdlib_h" = xyes | |
5362 | then : | |
5363 | printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h | |
5364 | ||
5365 | fi | |
5366 | ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" | |
5367 | if test "x$ac_cv_header_string_h" = xyes | |
5368 | then : | |
5369 | printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h | |
5370 | ||
5371 | fi | |
5372 | ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" | |
5373 | if test "x$ac_cv_header_sys_time_h" = xyes | |
5374 | then : | |
5375 | printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h | |
5376 | ||
5377 | fi | |
5378 | ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
5379 | if test "x$ac_cv_header_unistd_h" = xyes | |
5380 | then : | |
5381 | printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h | |
5382 | ||
5383 | fi | |
5384 | ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | |
5385 | if test "x$ac_cv_header_libgen_h" = xyes | |
5386 | then : | |
5387 | printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h | |
5388 | ||
5389 | fi | |
5390 | ||
5391 | ||
5392 | # Checks for typedefs, structures, and compiler characteristics. | |
5393 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" | |
5394 | if test "x$ac_cv_type__Bool" = xyes | |
5395 | then : | |
5396 | ||
5397 | printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h | |
5398 | ||
5399 | ||
5400 | fi | |
5401 | ||
5402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 | |
5403 | printf %s "checking for stdbool.h that conforms to C99... " >&6; } | |
5404 | if test ${ac_cv_header_stdbool_h+y} | |
5405 | then : | |
5406 | printf %s "(cached) " >&6 | |
5407 | else $as_nop | |
5408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5409 | /* end confdefs.h. */ | |
5410 | #include <stdbool.h> | |
5411 | ||
5412 | #ifndef __bool_true_false_are_defined | |
5413 | #error "__bool_true_false_are_defined is not defined" | |
5414 | #endif | |
5415 | char a[__bool_true_false_are_defined == 1 ? 1 : -1]; | |
5416 | ||
5417 | /* Regardless of whether this is C++ or "_Bool" is a | |
5418 | valid type name, "true" and "false" should be usable | |
5419 | in #if expressions and integer constant expressions, | |
5420 | and "bool" should be a valid type name. */ | |
5421 | ||
5422 | #if !true | |
5423 | #error "'true' is not true" | |
5424 | #endif | |
5425 | #if true != 1 | |
5426 | #error "'true' is not equal to 1" | |
5427 | #endif | |
5428 | char b[true == 1 ? 1 : -1]; | |
5429 | char c[true]; | |
5430 | ||
5431 | #if false | |
5432 | #error "'false' is not false" | |
5433 | #endif | |
5434 | #if false != 0 | |
5435 | #error "'false' is not equal to 0" | |
5436 | #endif | |
5437 | char d[false == 0 ? 1 : -1]; | |
5438 | ||
5439 | enum { e = false, f = true, g = false * true, h = true * 256 }; | |
5440 | ||
5441 | char i[(bool) 0.5 == true ? 1 : -1]; | |
5442 | char j[(bool) 0.0 == false ? 1 : -1]; | |
5443 | char k[sizeof (bool) > 0 ? 1 : -1]; | |
5444 | ||
5445 | struct sb { bool s: 1; bool t; } s; | |
5446 | char l[sizeof s.t > 0 ? 1 : -1]; | |
5447 | ||
5448 | /* The following fails for | |
5449 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ | |
5450 | bool m[h]; | |
5451 | char n[sizeof m == h * sizeof m[0] ? 1 : -1]; | |
5452 | char o[-1 - (bool) 0 < 0 ? 1 : -1]; | |
5453 | /* Catch a bug in an HP-UX C compiler. See | |
5454 | https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | |
5455 | https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html | |
5456 | */ | |
5457 | bool p = true; | |
5458 | bool *pp = &p; | |
5459 | ||
5460 | /* C 1999 specifies that bool, true, and false are to be | |
5461 | macros, but C++ 2011 and later overrule this. */ | |
5462 | #if __cplusplus < 201103 | |
5463 | #ifndef bool | |
5464 | #error "bool is not defined" | |
5465 | #endif | |
5466 | #ifndef false | |
5467 | #error "false is not defined" | |
5468 | #endif | |
5469 | #ifndef true | |
5470 | #error "true is not defined" | |
5471 | #endif | |
5472 | #endif | |
5473 | ||
5474 | /* If _Bool is available, repeat with it all the tests | |
5475 | above that used bool. */ | |
5476 | #ifdef HAVE__BOOL | |
5477 | struct sB { _Bool s: 1; _Bool t; } t; | |
5478 | ||
5479 | char q[(_Bool) 0.5 == true ? 1 : -1]; | |
5480 | char r[(_Bool) 0.0 == false ? 1 : -1]; | |
5481 | char u[sizeof (_Bool) > 0 ? 1 : -1]; | |
5482 | char v[sizeof t.t > 0 ? 1 : -1]; | |
5483 | ||
5484 | _Bool w[h]; | |
5485 | char x[sizeof m == h * sizeof m[0] ? 1 : -1]; | |
5486 | char y[-1 - (_Bool) 0 < 0 ? 1 : -1]; | |
5487 | _Bool z = true; | |
5488 | _Bool *pz = &p; | |
5489 | #endif | |
5490 | ||
5491 | int | |
5492 | main (void) | |
5493 | { | |
5494 | ||
5495 | bool ps = &s; | |
5496 | *pp |= p; | |
5497 | *pp |= ! p; | |
5498 | ||
5499 | #ifdef HAVE__BOOL | |
5500 | _Bool pt = &t; | |
5501 | *pz |= z; | |
5502 | *pz |= ! z; | |
5503 | #endif | |
5504 | ||
5505 | /* Refer to every declared value, so they cannot be | |
5506 | discarded as unused. */ | |
5507 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k | |
5508 | + !l + !m + !n + !o + !p + !pp + !ps | |
5509 | #ifdef HAVE__BOOL | |
5510 | + !q + !r + !u + !v + !w + !x + !y + !z + !pt | |
5511 | #endif | |
5512 | ); | |
5513 | ||
5514 | ; | |
5515 | return 0; | |
5516 | } | |
5517 | _ACEOF | |
5518 | if ac_fn_c_try_compile "$LINENO" | |
5519 | then : | |
5520 | ac_cv_header_stdbool_h=yes | |
5521 | else $as_nop | |
5522 | ac_cv_header_stdbool_h=no | |
5523 | fi | |
5524 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5525 | fi | |
5526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 | |
5527 | printf "%s\n" "$ac_cv_header_stdbool_h" >&6; } | |
5528 | ||
5529 | if test $ac_cv_header_stdbool_h = yes; then | |
5530 | ||
5531 | printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h | |
5532 | ||
5533 | fi | |
5534 | ||
5535 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
5536 | printf %s "checking for inline... " >&6; } | |
5537 | if test ${ac_cv_c_inline+y} | |
5538 | then : | |
5539 | printf %s "(cached) " >&6 | |
5540 | else $as_nop | |
5541 | ac_cv_c_inline=no | |
5542 | for ac_kw in inline __inline__ __inline; do | |
5543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5544 | /* end confdefs.h. */ | |
5545 | #ifndef __cplusplus | |
5546 | typedef int foo_t; | |
5547 | static $ac_kw foo_t static_foo (void) {return 0; } | |
5548 | $ac_kw foo_t foo (void) {return 0; } | |
5549 | #endif | |
5550 | ||
5551 | _ACEOF | |
5552 | if ac_fn_c_try_compile "$LINENO" | |
5553 | then : | |
5554 | ac_cv_c_inline=$ac_kw | |
5555 | fi | |
5556 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5557 | test "$ac_cv_c_inline" != no && break | |
5558 | done | |
5559 | ||
5560 | fi | |
5561 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
5562 | printf "%s\n" "$ac_cv_c_inline" >&6; } | |
5563 | ||
5564 | case $ac_cv_c_inline in | |
5565 | inline | yes) ;; | |
5566 | *) | |
5567 | case $ac_cv_c_inline in | |
5568 | no) ac_val=;; | |
5569 | *) ac_val=$ac_cv_c_inline;; | |
5570 | esac | |
5571 | cat >>confdefs.h <<_ACEOF | |
5572 | #ifndef __cplusplus | |
5573 | #define inline $ac_val | |
5574 | #endif | |
5575 | _ACEOF | |
5576 | ;; | |
5577 | esac | |
5578 | ||
5579 | ||
5580 | # Checks for library functions. | |
5581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 | |
5582 | printf %s "checking for working strtod... " >&6; } | |
5583 | if test ${ac_cv_func_strtod+y} | |
5584 | then : | |
5585 | printf %s "(cached) " >&6 | |
5586 | else $as_nop | |
5587 | if test "$cross_compiling" = yes | |
5588 | then : | |
5589 | ac_cv_func_strtod=no | |
5590 | else $as_nop | |
5591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5592 | /* end confdefs.h. */ | |
5593 | ||
5594 | $ac_includes_default | |
5595 | #ifndef strtod | |
5596 | double strtod (); | |
5597 | #endif | |
5598 | int | |
5599 | main (void) | |
5600 | { | |
5601 | { | |
5602 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
5603 | char *string = " +69"; | |
5604 | char *term; | |
5605 | double value; | |
5606 | value = strtod (string, &term); | |
5607 | if (value != 69 || term != (string + 4)) | |
5608 | return 1; | |
5609 | } | |
5610 | ||
5611 | { | |
5612 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
5613 | terminating character under some conditions. */ | |
5614 | char *string = "NaN"; | |
5615 | char *term; | |
5616 | strtod (string, &term); | |
5617 | if (term != string && *(term - 1) == 0) | |
5618 | return 1; | |
5619 | } | |
5620 | return 0; | |
5621 | } | |
5622 | ||
5623 | _ACEOF | |
5624 | if ac_fn_c_try_run "$LINENO" | |
5625 | then : | |
5626 | ac_cv_func_strtod=yes | |
5627 | else $as_nop | |
5628 | ac_cv_func_strtod=no | |
5629 | fi | |
5630 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5631 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5632 | fi | |
5633 | ||
5634 | fi | |
5635 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | |
5636 | printf "%s\n" "$ac_cv_func_strtod" >&6; } | |
5637 | if test $ac_cv_func_strtod = no; then | |
5638 | case " $LIBOBJS " in | |
5639 | *" strtod.$ac_objext "* ) ;; | |
5640 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
5641 | ;; | |
5642 | esac | |
5643 | ||
5644 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" | |
5645 | if test "x$ac_cv_func_pow" = xyes | |
5646 | then : | |
5647 | ||
5648 | fi | |
5649 | ||
5650 | if test $ac_cv_func_pow = no; then | |
5651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
5652 | printf %s "checking for pow in -lm... " >&6; } | |
5653 | if test ${ac_cv_lib_m_pow+y} | |
5654 | then : | |
5655 | printf %s "(cached) " >&6 | |
5656 | else $as_nop | |
5657 | ac_check_lib_save_LIBS=$LIBS | |
5658 | LIBS="-lm $LIBS" | |
5659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5660 | /* end confdefs.h. */ | |
5661 | ||
5662 | /* Override any GCC internal prototype to avoid an error. | |
5663 | Use char because int might match the return type of a GCC | |
5664 | builtin and then its argument prototype would still apply. */ | |
5665 | char pow (); | |
5666 | int | |
5667 | main (void) | |
5668 | { | |
5669 | return pow (); | |
5670 | ; | |
5671 | return 0; | |
5672 | } | |
5673 | _ACEOF | |
5674 | if ac_fn_c_try_link "$LINENO" | |
5675 | then : | |
5676 | ac_cv_lib_m_pow=yes | |
5677 | else $as_nop | |
5678 | ac_cv_lib_m_pow=no | |
5679 | fi | |
5680 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
5681 | conftest$ac_exeext conftest.$ac_ext | |
5682 | LIBS=$ac_check_lib_save_LIBS | |
5683 | fi | |
5684 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 | |
5685 | printf "%s\n" "$ac_cv_lib_m_pow" >&6; } | |
5686 | if test "x$ac_cv_lib_m_pow" = xyes | |
5687 | then : | |
5688 | POW_LIB=-lm | |
5689 | else $as_nop | |
5690 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 | |
5691 | printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
5692 | fi | |
5693 | ||
5694 | fi | |
5695 | ||
5696 | fi | |
5697 | ||
5698 | ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor" | |
5699 | if test "x$ac_cv_func_floor" = xyes | |
5700 | then : | |
5701 | printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h | |
5702 | ||
5703 | fi | |
5704 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
5705 | if test "x$ac_cv_func_getpagesize" = xyes | |
5706 | then : | |
5707 | printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h | |
5708 | ||
5709 | fi | |
5710 | ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" | |
5711 | if test "x$ac_cv_func_memset" = xyes | |
5712 | then : | |
5713 | printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h | |
5714 | ||
5715 | fi | |
5716 | ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt" | |
5717 | if test "x$ac_cv_func_sqrt" = xyes | |
5718 | then : | |
5719 | printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h | |
5720 | ||
5721 | fi | |
5722 | ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" | |
5723 | if test "x$ac_cv_func_strtoul" = xyes | |
5724 | then : | |
5725 | printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h | |
5726 | ||
5727 | fi | |
5728 | ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" | |
5729 | if test "x$ac_cv_func_strtol" = xyes | |
5730 | then : | |
5731 | printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h | |
5732 | ||
5733 | fi | |
5734 | ||
5735 | ||
5736 | # Checks for libraries. | |
5737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5 | |
5738 | printf %s "checking for library containing basename... " >&6; } | |
5739 | if test ${ac_cv_search_basename+y} | |
5740 | then : | |
5741 | printf %s "(cached) " >&6 | |
5742 | else $as_nop | |
5743 | ac_func_search_save_LIBS=$LIBS | |
5744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5745 | /* end confdefs.h. */ | |
5746 | ||
5747 | /* Override any GCC internal prototype to avoid an error. | |
5748 | Use char because int might match the return type of a GCC | |
5749 | builtin and then its argument prototype would still apply. */ | |
5750 | char basename (); | |
5751 | int | |
5752 | main (void) | |
5753 | { | |
5754 | return basename (); | |
5755 | ; | |
5756 | return 0; | |
5757 | } | |
5758 | _ACEOF | |
5759 | for ac_lib in '' rt | |
5760 | do | |
5761 | if test -z "$ac_lib"; then | |
5762 | ac_res="none required" | |
5763 | else | |
5764 | ac_res=-l$ac_lib | |
5765 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5766 | fi | |
5767 | if ac_fn_c_try_link "$LINENO" | |
5768 | then : | |
5769 | ac_cv_search_basename=$ac_res | |
5770 | fi | |
5771 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
5772 | conftest$ac_exeext | |
5773 | if test ${ac_cv_search_basename+y} | |
5774 | then : | |
5775 | break | |
5776 | fi | |
5777 | done | |
5778 | if test ${ac_cv_search_basename+y} | |
5779 | then : | |
5780 | ||
5781 | else $as_nop | |
5782 | ac_cv_search_basename=no | |
5783 | fi | |
5784 | rm conftest.$ac_ext | |
5785 | LIBS=$ac_func_search_save_LIBS | |
5786 | fi | |
5787 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5 | |
5788 | printf "%s\n" "$ac_cv_search_basename" >&6; } | |
5789 | ac_res=$ac_cv_search_basename | |
5790 | if test "$ac_res" != no | |
5791 | then : | |
5792 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5793 | ||
5794 | fi | |
5795 | ||
5796 | ||
5797 | ||
5798 | ||
5799 | ||
5800 | ||
5801 | ||
5802 | ||
5803 | ||
5804 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
5805 | if test -n "$ac_tool_prefix"; then | |
5806 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
5807 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
5808 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5809 | printf %s "checking for $ac_word... " >&6; } | |
5810 | if test ${ac_cv_path_PKG_CONFIG+y} | |
5811 | then : | |
5812 | printf %s "(cached) " >&6 | |
5813 | else $as_nop | |
5814 | case $PKG_CONFIG in | |
5815 | [\\/]* | ?:[\\/]*) | |
5816 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
5817 | ;; | |
5818 | *) | |
5819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5820 | for as_dir in $PATH | |
5821 | do | |
5822 | IFS=$as_save_IFS | |
5823 | case $as_dir in #((( | |
5824 | '') as_dir=./ ;; | |
5825 | */) ;; | |
5826 | *) as_dir=$as_dir/ ;; | |
5827 | esac | |
5828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5829 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5830 | ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
5831 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5832 | break 2 | |
5833 | fi | |
5834 | done | |
5835 | done | |
5836 | IFS=$as_save_IFS | |
5837 | ||
5838 | ;; | |
5839 | esac | |
5840 | fi | |
5841 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
5842 | if test -n "$PKG_CONFIG"; then | |
5843 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
5844 | printf "%s\n" "$PKG_CONFIG" >&6; } | |
5845 | else | |
5846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5847 | printf "%s\n" "no" >&6; } | |
5848 | fi | |
5849 | ||
5850 | ||
5851 | fi | |
5852 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
5853 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
5854 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
5855 | set dummy pkg-config; ac_word=$2 | |
5856 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5857 | printf %s "checking for $ac_word... " >&6; } | |
5858 | if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} | |
5859 | then : | |
5860 | printf %s "(cached) " >&6 | |
5861 | else $as_nop | |
5862 | case $ac_pt_PKG_CONFIG in | |
5863 | [\\/]* | ?:[\\/]*) | |
5864 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
5865 | ;; | |
5866 | *) | |
5867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5868 | for as_dir in $PATH | |
5869 | do | |
5870 | IFS=$as_save_IFS | |
5871 | case $as_dir in #((( | |
5872 | '') as_dir=./ ;; | |
5873 | */) ;; | |
5874 | *) as_dir=$as_dir/ ;; | |
5875 | esac | |
5876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5877 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5878 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
5879 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5880 | break 2 | |
5881 | fi | |
5882 | done | |
5883 | done | |
5884 | IFS=$as_save_IFS | |
5885 | ||
5886 | ;; | |
5887 | esac | |
5888 | fi | |
5889 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
5890 | if test -n "$ac_pt_PKG_CONFIG"; then | |
5891 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
5892 | printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } | |
5893 | else | |
5894 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5895 | printf "%s\n" "no" >&6; } | |
5896 | fi | |
5897 | ||
5898 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
5899 | PKG_CONFIG="" | |
5900 | else | |
5901 | case $cross_compiling:$ac_tool_warned in | |
5902 | yes:) | |
5903 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5904 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5905 | ac_tool_warned=yes ;; | |
5906 | esac | |
5907 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
5908 | fi | |
5909 | else | |
5910 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
5911 | fi | |
5912 | ||
5913 | fi | |
5914 | if test -n "$PKG_CONFIG"; then | |
5915 | _pkg_min_version=0.9.0 | |
5916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
5917 | printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
5918 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
5919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5920 | printf "%s\n" "yes" >&6; } | |
5921 | else | |
5922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5923 | printf "%s\n" "no" >&6; } | |
5924 | PKG_CONFIG="" | |
5925 | fi | |
5926 | fi | |
5927 | ||
5928 | pkg_failed=no | |
5929 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fftw3 >= 3.0" >&5 | |
5930 | printf %s "checking for fftw3 >= 3.0... " >&6; } | |
5931 | ||
5932 | if test -n "$FFTW3_CFLAGS"; then | |
5933 | pkg_cv_FFTW3_CFLAGS="$FFTW3_CFLAGS" | |
5934 | elif test -n "$PKG_CONFIG"; then | |
5935 | if test -n "$PKG_CONFIG" && \ | |
5936 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0\""; } >&5 | |
5937 | ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0") 2>&5 | |
5938 | ac_status=$? | |
5939 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5940 | test $ac_status = 0; }; then | |
5941 | pkg_cv_FFTW3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0" 2>/dev/null` | |
5942 | test "x$?" != "x0" && pkg_failed=yes | |
5943 | else | |
5944 | pkg_failed=yes | |
5945 | fi | |
5946 | else | |
5947 | pkg_failed=untried | |
5948 | fi | |
5949 | if test -n "$FFTW3_LIBS"; then | |
5950 | pkg_cv_FFTW3_LIBS="$FFTW3_LIBS" | |
5951 | elif test -n "$PKG_CONFIG"; then | |
5952 | if test -n "$PKG_CONFIG" && \ | |
5953 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0\""; } >&5 | |
5954 | ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0") 2>&5 | |
5955 | ac_status=$? | |
5956 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5957 | test $ac_status = 0; }; then | |
5958 | pkg_cv_FFTW3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0" 2>/dev/null` | |
5959 | test "x$?" != "x0" && pkg_failed=yes | |
5960 | else | |
5961 | pkg_failed=yes | |
5962 | fi | |
5963 | else | |
5964 | pkg_failed=untried | |
5965 | fi | |
5966 | ||
5967 | ||
5968 | ||
5969 | if test $pkg_failed = yes; then | |
5970 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5971 | printf "%s\n" "no" >&6; } | |
5972 | ||
5973 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
5974 | _pkg_short_errors_supported=yes | |
5975 | else | |
5976 | _pkg_short_errors_supported=no | |
5977 | fi | |
5978 | if test $_pkg_short_errors_supported = yes; then | |
5979 | FFTW3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0" 2>&1` | |
5980 | else | |
5981 | FFTW3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0" 2>&1` | |
5982 | fi | |
5983 | # Put the nasty error message in config.log where it belongs | |
5984 | echo "$FFTW3_PKG_ERRORS" >&5 | |
5985 | ||
5986 | as_fn_error $? "Package requirements (fftw3 >= 3.0) were not met: | |
5987 | ||
5988 | $FFTW3_PKG_ERRORS | |
5989 | ||
5990 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
5991 | installed software in a non-standard prefix. | |
5992 | ||
5993 | Alternatively, you may set the environment variables FFTW3_CFLAGS | |
5994 | and FFTW3_LIBS to avoid the need to call pkg-config. | |
5995 | See the pkg-config man page for more details." "$LINENO" 5 | |
5996 | elif test $pkg_failed = untried; then | |
5997 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5998 | printf "%s\n" "no" >&6; } | |
5999 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6000 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
6001 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
6002 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
6003 | path to pkg-config. | |
6004 | ||
6005 | Alternatively, you may set the environment variables FFTW3_CFLAGS | |
6006 | and FFTW3_LIBS to avoid the need to call pkg-config. | |
6007 | See the pkg-config man page for more details. | |
6008 | ||
6009 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
6010 | See \`config.log' for more details" "$LINENO" 5; } | |
6011 | else | |
6012 | FFTW3_CFLAGS=$pkg_cv_FFTW3_CFLAGS | |
6013 | FFTW3_LIBS=$pkg_cv_FFTW3_LIBS | |
6014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6015 | printf "%s\n" "yes" >&6; } | |
6016 | ||
6017 | fi | |
6018 | ||
6019 | ||
6020 | ||
6021 | ||
6022 | pkg_failed=no | |
6023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtlsdr" >&5 | |
6024 | printf %s "checking for librtlsdr... " >&6; } | |
6025 | ||
6026 | if test -n "$LIBRTLSDR_CFLAGS"; then | |
6027 | pkg_cv_LIBRTLSDR_CFLAGS="$LIBRTLSDR_CFLAGS" | |
6028 | elif test -n "$PKG_CONFIG"; then | |
6029 | if test -n "$PKG_CONFIG" && \ | |
6030 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librtlsdr\""; } >&5 | |
6031 | ($PKG_CONFIG --exists --print-errors "librtlsdr") 2>&5 | |
6032 | ac_status=$? | |
6033 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6034 | test $ac_status = 0; }; then | |
6035 | pkg_cv_LIBRTLSDR_CFLAGS=`$PKG_CONFIG --cflags "librtlsdr" 2>/dev/null` | |
6036 | test "x$?" != "x0" && pkg_failed=yes | |
6037 | else | |
6038 | pkg_failed=yes | |
6039 | fi | |
6040 | else | |
6041 | pkg_failed=untried | |
6042 | fi | |
6043 | if test -n "$LIBRTLSDR_LIBS"; then | |
6044 | pkg_cv_LIBRTLSDR_LIBS="$LIBRTLSDR_LIBS" | |
6045 | elif test -n "$PKG_CONFIG"; then | |
6046 | if test -n "$PKG_CONFIG" && \ | |
6047 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librtlsdr\""; } >&5 | |
6048 | ($PKG_CONFIG --exists --print-errors "librtlsdr") 2>&5 | |
6049 | ac_status=$? | |
6050 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6051 | test $ac_status = 0; }; then | |
6052 | pkg_cv_LIBRTLSDR_LIBS=`$PKG_CONFIG --libs "librtlsdr" 2>/dev/null` | |
6053 | test "x$?" != "x0" && pkg_failed=yes | |
6054 | else | |
6055 | pkg_failed=yes | |
6056 | fi | |
6057 | else | |
6058 | pkg_failed=untried | |
6059 | fi | |
6060 | ||
6061 | ||
6062 | ||
6063 | if test $pkg_failed = yes; then | |
6064 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6065 | printf "%s\n" "no" >&6; } | |
6066 | ||
6067 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
6068 | _pkg_short_errors_supported=yes | |
6069 | else | |
6070 | _pkg_short_errors_supported=no | |
6071 | fi | |
6072 | if test $_pkg_short_errors_supported = yes; then | |
6073 | LIBRTLSDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librtlsdr" 2>&1` | |
6074 | else | |
6075 | LIBRTLSDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librtlsdr" 2>&1` | |
6076 | fi | |
6077 | # Put the nasty error message in config.log where it belongs | |
6078 | echo "$LIBRTLSDR_PKG_ERRORS" >&5 | |
6079 | ||
6080 | as_fn_error $? "Package requirements (librtlsdr) were not met: | |
6081 | ||
6082 | $LIBRTLSDR_PKG_ERRORS | |
6083 | ||
6084 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
6085 | installed software in a non-standard prefix. | |
6086 | ||
6087 | Alternatively, you may set the environment variables LIBRTLSDR_CFLAGS | |
6088 | and LIBRTLSDR_LIBS to avoid the need to call pkg-config. | |
6089 | See the pkg-config man page for more details." "$LINENO" 5 | |
6090 | elif test $pkg_failed = untried; then | |
6091 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6092 | printf "%s\n" "no" >&6; } | |
6093 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6094 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
6095 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
6096 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
6097 | path to pkg-config. | |
6098 | ||
6099 | Alternatively, you may set the environment variables LIBRTLSDR_CFLAGS | |
6100 | and LIBRTLSDR_LIBS to avoid the need to call pkg-config. | |
6101 | See the pkg-config man page for more details. | |
6102 | ||
6103 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
6104 | See \`config.log' for more details" "$LINENO" 5; } | |
6105 | else | |
6106 | LIBRTLSDR_CFLAGS=$pkg_cv_LIBRTLSDR_CFLAGS | |
6107 | LIBRTLSDR_LIBS=$pkg_cv_LIBRTLSDR_LIBS | |
6108 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6109 | printf "%s\n" "yes" >&6; } | |
6110 | ||
6111 | fi | |
6112 | ||
6113 | ||
6114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rtlsdr_set_dithering in -lrtlsdr" >&5 | |
6115 | printf %s "checking for rtlsdr_set_dithering in -lrtlsdr... " >&6; } | |
6116 | if test ${ac_cv_lib_rtlsdr_rtlsdr_set_dithering+y} | |
6117 | then : | |
6118 | printf %s "(cached) " >&6 | |
6119 | else $as_nop | |
6120 | ac_check_lib_save_LIBS=$LIBS | |
6121 | LIBS="-lrtlsdr $LIBS" | |
6122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6123 | /* end confdefs.h. */ | |
6124 | ||
6125 | /* Override any GCC internal prototype to avoid an error. | |
6126 | Use char because int might match the return type of a GCC | |
6127 | builtin and then its argument prototype would still apply. */ | |
6128 | char rtlsdr_set_dithering (); | |
6129 | int | |
6130 | main (void) | |
6131 | { | |
6132 | return rtlsdr_set_dithering (); | |
6133 | ; | |
6134 | return 0; | |
6135 | } | |
6136 | _ACEOF | |
6137 | if ac_fn_c_try_link "$LINENO" | |
6138 | then : | |
6139 | ac_cv_lib_rtlsdr_rtlsdr_set_dithering=yes | |
6140 | else $as_nop | |
6141 | ac_cv_lib_rtlsdr_rtlsdr_set_dithering=no | |
6142 | fi | |
6143 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
6144 | conftest$ac_exeext conftest.$ac_ext | |
6145 | LIBS=$ac_check_lib_save_LIBS | |
6146 | fi | |
6147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtlsdr_rtlsdr_set_dithering" >&5 | |
6148 | printf "%s\n" "$ac_cv_lib_rtlsdr_rtlsdr_set_dithering" >&6; } | |
6149 | if test "x$ac_cv_lib_rtlsdr_rtlsdr_set_dithering" = xyes | |
6150 | then : | |
6151 | ||
6152 | printf "%s\n" "#define HAVE_DITHERING 1" >>confdefs.h | |
6153 | ||
6154 | else $as_nop | |
6155 | ||
6156 | printf "%s\n" "#define HAVE_DITHERING 0" >>confdefs.h | |
6157 | ||
6158 | fi | |
6159 | ||
6160 | ||
6161 | # OSX doesn't support System V shared memory | |
6162 | ||
6163 | ||
6164 | # Make sure we can run config.sub. | |
6165 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || | |
6166 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 | |
6167 | ||
6168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
6169 | printf %s "checking build system type... " >&6; } | |
6170 | if test ${ac_cv_build+y} | |
6171 | then : | |
6172 | printf %s "(cached) " >&6 | |
6173 | else $as_nop | |
6174 | ac_build_alias=$build_alias | |
6175 | test "x$ac_build_alias" = x && | |
6176 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` | |
6177 | test "x$ac_build_alias" = x && | |
6178 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
6179 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || | |
6180 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 | |
6181 | ||
6182 | fi | |
6183 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
6184 | printf "%s\n" "$ac_cv_build" >&6; } | |
6185 | case $ac_cv_build in | |
6186 | *-*-*) ;; | |
6187 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
6188 | esac | |
6189 | build=$ac_cv_build | |
6190 | ac_save_IFS=$IFS; IFS='-' | |
6191 | set x $ac_cv_build | |
6192 | shift | |
6193 | build_cpu=$1 | |
6194 | build_vendor=$2 | |
6195 | shift; shift | |
6196 | # Remember, the first character of IFS is used to create $*, | |
6197 | # except with old shells: | |
6198 | build_os=$* | |
6199 | IFS=$ac_save_IFS | |
6200 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
6201 | ||
6202 | ||
6203 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
6204 | printf %s "checking host system type... " >&6; } | |
6205 | if test ${ac_cv_host+y} | |
6206 | then : | |
6207 | printf %s "(cached) " >&6 | |
6208 | else $as_nop | |
6209 | if test "x$host_alias" = x; then | |
6210 | ac_cv_host=$ac_cv_build | |
6211 | else | |
6212 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || | |
6213 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 | |
6214 | fi | |
6215 | ||
6216 | fi | |
6217 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
6218 | printf "%s\n" "$ac_cv_host" >&6; } | |
6219 | case $ac_cv_host in | |
6220 | *-*-*) ;; | |
6221 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
6222 | esac | |
6223 | host=$ac_cv_host | |
6224 | ac_save_IFS=$IFS; IFS='-' | |
6225 | set x $ac_cv_host | |
6226 | shift | |
6227 | host_cpu=$1 | |
6228 | host_vendor=$2 | |
6229 | shift; shift | |
6230 | # Remember, the first character of IFS is used to create $*, | |
6231 | # except with old shells: | |
6232 | host_os=$* | |
6233 | IFS=$ac_save_IFS | |
6234 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
6235 | ||
6236 | ||
6237 | case "$host_os" in | |
6238 | darwin*) | |
6239 | ||
6240 | printf "%s\n" "#define D_HOST_OSX /**/" >>confdefs.h | |
6241 | ||
6242 | LRT_FLAGS="" | |
6243 | ||
6244 | ;; | |
6245 | openbsd*) | |
6246 | ||
6247 | printf "%s\n" "#define D_HOST_OPENBSD /**/" >>confdefs.h | |
6248 | ||
6249 | ;; | |
6250 | *) | |
6251 | LRT_FLAGS="-lrt" | |
6252 | ||
6253 | ;; | |
6254 | esac | |
6255 | ||
6256 | case "$host_cpu" in | |
6257 | arm*|mips*) | |
6258 | ||
6259 | printf "%s\n" "#define D_HOST_OSX /**/" >>confdefs.h | |
6260 | ||
6261 | ;; | |
6262 | esac | |
6263 | ||
6264 | ac_config_files="$ac_config_files Makefile src/Makefile" | |
6265 | ||
6266 | cat >confcache <<\_ACEOF | |
6267 | # This file is a shell script that caches the results of configure | |
6268 | # tests run on this system so they can be shared between configure | |
6269 | # scripts and configure runs, see configure's option --config-cache. | |
6270 | # It is not useful on other systems. If it contains results you don't | |
6271 | # want to keep, you may remove or edit it. | |
6272 | # | |
6273 | # config.status only pays attention to the cache file if you give it | |
6274 | # the --recheck option to rerun configure. | |
6275 | # | |
6276 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
6277 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6278 | # following values. | |
6279 | ||
6280 | _ACEOF | |
6281 | ||
6282 | # The following way of writing the cache mishandles newlines in values, | |
6283 | # but we know of no workaround that is simple, portable, and efficient. | |
6284 | # So, we kill variables containing newlines. | |
6285 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6286 | # and sets the high bit in the cache file unless we assign to the vars. | |
6287 | ( | |
6288 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
6289 | eval ac_val=\$$ac_var | |
6290 | case $ac_val in #( | |
6291 | *${as_nl}*) | |
6292 | case $ac_var in #( | |
6293 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
6294 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
6295 | esac | |
6296 | case $ac_var in #( | |
6297 | _ | IFS | as_nl) ;; #( | |
6298 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
6299 | *) { eval $ac_var=; unset $ac_var;} ;; | |
6300 | esac ;; | |
6301 | esac | |
6302 | done | |
6303 | ||
6304 | (set) 2>&1 | | |
6305 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
6306 | *${as_nl}ac_space=\ *) | |
6307 | # `set' does not quote correctly, so add quotes: double-quote | |
6308 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
6309 | sed -n \ | |
6310 | "s/'/'\\\\''/g; | |
6311 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
6312 | ;; #( | |
6313 | *) | |
6314 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6315 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
6316 | ;; | |
6317 | esac | | |
6318 | sort | |
6319 | ) | | |
6320 | sed ' | |
6321 | /^ac_cv_env_/b end | |
6322 | t clear | |
6323 | :clear | |
6324 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ | |
6325 | t end | |
6326 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
6327 | :end' >>confcache | |
6328 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6329 | if test -w "$cache_file"; then | |
6330 | if test "x$cache_file" != "x/dev/null"; then | |
6331 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
6332 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} | |
6333 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
6334 | cat confcache >"$cache_file" | |
6335 | else | |
6336 | case $cache_file in #( | |
6337 | */* | ?:*) | |
6338 | mv -f confcache "$cache_file"$$ && | |
6339 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
6340 | *) | |
6341 | mv -f confcache "$cache_file" ;; | |
6342 | esac | |
6343 | fi | |
6344 | fi | |
6345 | else | |
6346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
6347 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6348 | fi | |
6349 | fi | |
6350 | rm -f confcache | |
6351 | ||
6352 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6353 | # Let make expand exec_prefix. | |
6354 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6355 | ||
6356 | DEFS=-DHAVE_CONFIG_H | |
6357 | ||
6358 | ac_libobjs= | |
6359 | ac_ltlibobjs= | |
6360 | U= | |
6361 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6362 | # 1. Remove the extension, and $U if already installed. | |
6363 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
6364 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` | |
6365 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
6366 | # will be set to the directory where LIBOBJS objects are built. | |
6367 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
6368 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
6369 | done | |
6370 | LIBOBJS=$ac_libobjs | |
6371 | ||
6372 | LTLIBOBJS=$ac_ltlibobjs | |
6373 | ||
6374 | ||
6375 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
6376 | printf %s "checking that generated files are newer than configure... " >&6; } | |
6377 | if test -n "$am_sleep_pid"; then | |
6378 | # Hide warnings about reused PIDs. | |
6379 | wait $am_sleep_pid 2>/dev/null | |
6380 | fi | |
6381 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
6382 | printf "%s\n" "done" >&6; } | |
6383 | if test -n "$EXEEXT"; then | |
6384 | am__EXEEXT_TRUE= | |
6385 | am__EXEEXT_FALSE='#' | |
6386 | else | |
6387 | am__EXEEXT_TRUE='#' | |
6388 | am__EXEEXT_FALSE= | |
6389 | fi | |
6390 | ||
6391 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
6392 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
6393 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6394 | fi | |
6395 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
6396 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
6397 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6398 | fi | |
6399 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
6400 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
6401 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6402 | fi | |
6403 | ||
6404 | : "${CONFIG_STATUS=./config.status}" | |
6405 | ac_write_fail=0 | |
6406 | ac_clean_files_save=$ac_clean_files | |
6407 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
6408 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
6409 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} | |
6410 | as_write_fail=0 | |
6411 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
6412 | #! $SHELL | |
6413 | # Generated by $as_me. | |
6414 | # Run this file to recreate the current configuration. | |
6415 | # Compiler output produced by configure, useful for debugging | |
6416 | # configure, is in config.log if it exists. | |
6417 | ||
6418 | debug=false | |
6419 | ac_cs_recheck=false | |
6420 | ac_cs_silent=false | |
6421 | ||
6422 | SHELL=\${CONFIG_SHELL-$SHELL} | |
6423 | export SHELL | |
6424 | _ASEOF | |
6425 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
6426 | ## -------------------- ## | |
6427 | ## M4sh Initialization. ## | |
6428 | ## -------------------- ## | |
6429 | ||
6430 | # Be more Bourne compatible | |
6431 | DUALCASE=1; export DUALCASE # for MKS sh | |
6432 | as_nop=: | |
6433 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
6434 | then : | |
6435 | emulate sh | |
6436 | NULLCMD=: | |
6437 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
6438 | # is contrary to our usage. Disable this feature. | |
6439 | alias -g '${1+"$@"}'='"$@"' | |
6440 | setopt NO_GLOB_SUBST | |
6441 | else $as_nop | |
6442 | case `(set -o) 2>/dev/null` in #( | |
6443 | *posix*) : | |
6444 | set -o posix ;; #( | |
6445 | *) : | |
6446 | ;; | |
6447 | esac | |
6448 | fi | |
6449 | ||
6450 | ||
6451 | ||
6452 | # Reset variables that may have inherited troublesome values from | |
6453 | # the environment. | |
6454 | ||
6455 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
6456 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
6457 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
6458 | # Quoting is to prevent editors from complaining about space-tab. | |
6459 | as_nl=' | |
6460 | ' | |
6461 | export as_nl | |
6462 | IFS=" "" $as_nl" | |
6463 | ||
6464 | PS1='$ ' | |
6465 | PS2='> ' | |
6466 | PS4='+ ' | |
6467 | ||
6468 | # Ensure predictable behavior from utilities with locale-dependent output. | |
6469 | LC_ALL=C | |
6470 | export LC_ALL | |
6471 | LANGUAGE=C | |
6472 | export LANGUAGE | |
6473 | ||
6474 | # We cannot yet rely on "unset" to work, but we need these variables | |
6475 | # to be unset--not just set to an empty or harmless value--now, to | |
6476 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
6477 | # also avoids known problems related to "unset" and subshell syntax | |
6478 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
6479 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
6480 | do eval test \${$as_var+y} \ | |
6481 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
6482 | done | |
6483 | ||
6484 | # Ensure that fds 0, 1, and 2 are open. | |
6485 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
6486 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
6487 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
6488 | ||
6489 | # The user is always right. | |
6490 | if ${PATH_SEPARATOR+false} :; then | |
6491 | PATH_SEPARATOR=: | |
6492 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
6493 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
6494 | PATH_SEPARATOR=';' | |
6495 | } | |
6496 | fi | |
6497 | ||
6498 | ||
6499 | # Find who we are. Look in the path if we contain no directory separator. | |
6500 | as_myself= | |
6501 | case $0 in #(( | |
6502 | *[\\/]* ) as_myself=$0 ;; | |
6503 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6504 | for as_dir in $PATH | |
6505 | do | |
6506 | IFS=$as_save_IFS | |
6507 | case $as_dir in #((( | |
6508 | '') as_dir=./ ;; | |
6509 | */) ;; | |
6510 | *) as_dir=$as_dir/ ;; | |
6511 | esac | |
6512 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
6513 | done | |
6514 | IFS=$as_save_IFS | |
6515 | ||
6516 | ;; | |
6517 | esac | |
6518 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6519 | # in which case we are not to be found in the path. | |
6520 | if test "x$as_myself" = x; then | |
6521 | as_myself=$0 | |
6522 | fi | |
6523 | if test ! -f "$as_myself"; then | |
6524 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
6525 | exit 1 | |
6526 | fi | |
6527 | ||
6528 | ||
6529 | ||
6530 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
6531 | # ---------------------------------------- | |
6532 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
6533 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
6534 | # script with STATUS, using 1 if that was 0. | |
6535 | as_fn_error () | |
6536 | { | |
6537 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
6538 | if test "$4"; then | |
6539 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6540 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
6541 | fi | |
6542 | printf "%s\n" "$as_me: error: $2" >&2 | |
6543 | as_fn_exit $as_status | |
6544 | } # as_fn_error | |
6545 | ||
6546 | ||
6547 | ||
6548 | # as_fn_set_status STATUS | |
6549 | # ----------------------- | |
6550 | # Set $? to STATUS, without forking. | |
6551 | as_fn_set_status () | |
6552 | { | |
6553 | return $1 | |
6554 | } # as_fn_set_status | |
6555 | ||
6556 | # as_fn_exit STATUS | |
6557 | # ----------------- | |
6558 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
6559 | as_fn_exit () | |
6560 | { | |
6561 | set +e | |
6562 | as_fn_set_status $1 | |
6563 | exit $1 | |
6564 | } # as_fn_exit | |
6565 | ||
6566 | # as_fn_unset VAR | |
6567 | # --------------- | |
6568 | # Portably unset VAR. | |
6569 | as_fn_unset () | |
6570 | { | |
6571 | { eval $1=; unset $1;} | |
6572 | } | |
6573 | as_unset=as_fn_unset | |
6574 | ||
6575 | # as_fn_append VAR VALUE | |
6576 | # ---------------------- | |
6577 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
6578 | # advantage of any shell optimizations that allow amortized linear growth over | |
6579 | # repeated appends, instead of the typical quadratic growth present in naive | |
6580 | # implementations. | |
6581 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null | |
6582 | then : | |
6583 | eval 'as_fn_append () | |
6584 | { | |
6585 | eval $1+=\$2 | |
6586 | }' | |
6587 | else $as_nop | |
6588 | as_fn_append () | |
6589 | { | |
6590 | eval $1=\$$1\$2 | |
6591 | } | |
6592 | fi # as_fn_append | |
6593 | ||
6594 | # as_fn_arith ARG... | |
6595 | # ------------------ | |
6596 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
6597 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
6598 | # must be portable across $(()) and expr. | |
6599 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null | |
6600 | then : | |
6601 | eval 'as_fn_arith () | |
6602 | { | |
6603 | as_val=$(( $* )) | |
6604 | }' | |
6605 | else $as_nop | |
6606 | as_fn_arith () | |
6607 | { | |
6608 | as_val=`expr "$@" || test $? -eq 1` | |
6609 | } | |
6610 | fi # as_fn_arith | |
6611 | ||
6612 | ||
6613 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
6614 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6615 | as_expr=expr | |
6616 | else | |
6617 | as_expr=false | |
6618 | fi | |
6619 | ||
6620 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
6621 | as_basename=basename | |
6622 | else | |
6623 | as_basename=false | |
6624 | fi | |
6625 | ||
6626 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
6627 | as_dirname=dirname | |
6628 | else | |
6629 | as_dirname=false | |
6630 | fi | |
6631 | ||
6632 | as_me=`$as_basename -- "$0" || | |
6633 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
6634 | X"$0" : 'X\(//\)$' \| \ | |
6635 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
6636 | printf "%s\n" X/"$0" | | |
6637 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
6638 | s//\1/ | |
6639 | q | |
6640 | } | |
6641 | /^X\/\(\/\/\)$/{ | |
6642 | s//\1/ | |
6643 | q | |
6644 | } | |
6645 | /^X\/\(\/\).*/{ | |
6646 | s//\1/ | |
6647 | q | |
6648 | } | |
6649 | s/.*/./; q'` | |
6650 | ||
6651 | # Avoid depending upon Character Ranges. | |
6652 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6653 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6654 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6655 | as_cr_digits='0123456789' | |
6656 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6657 | ||
6658 | ||
6659 | # Determine whether it's possible to make 'echo' print without a newline. | |
6660 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
6661 | # for compatibility with existing Makefiles. | |
6662 | ECHO_C= ECHO_N= ECHO_T= | |
6663 | case `echo -n x` in #((((( | |
6664 | -n*) | |
6665 | case `echo 'xy\c'` in | |
6666 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
6667 | xy) ECHO_C='\c';; | |
6668 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
6669 | ECHO_T=' ';; | |
6670 | esac;; | |
6671 | *) | |
6672 | ECHO_N='-n';; | |
6673 | esac | |
6674 | ||
6675 | # For backward compatibility with old third-party macros, we provide | |
6676 | # the shell variables $as_echo and $as_echo_n. New code should use | |
6677 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
6678 | as_echo='printf %s\n' | |
6679 | as_echo_n='printf %s' | |
6680 | ||
6681 | rm -f conf$$ conf$$.exe conf$$.file | |
6682 | if test -d conf$$.dir; then | |
6683 | rm -f conf$$.dir/conf$$.file | |
6684 | else | |
6685 | rm -f conf$$.dir | |
6686 | mkdir conf$$.dir 2>/dev/null | |
6687 | fi | |
6688 | if (echo >conf$$.file) 2>/dev/null; then | |
6689 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
6690 | as_ln_s='ln -s' | |
6691 | # ... but there are two gotchas: | |
6692 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
6693 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
6694 | # In both cases, we have to default to `cp -pR'. | |
6695 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
6696 | as_ln_s='cp -pR' | |
6697 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
6698 | as_ln_s=ln | |
6699 | else | |
6700 | as_ln_s='cp -pR' | |
6701 | fi | |
6702 | else | |
6703 | as_ln_s='cp -pR' | |
6704 | fi | |
6705 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
6706 | rmdir conf$$.dir 2>/dev/null | |
6707 | ||
6708 | ||
6709 | # as_fn_mkdir_p | |
6710 | # ------------- | |
6711 | # Create "$as_dir" as a directory, including parents if necessary. | |
6712 | as_fn_mkdir_p () | |
6713 | { | |
6714 | ||
6715 | case $as_dir in #( | |
6716 | -*) as_dir=./$as_dir;; | |
6717 | esac | |
6718 | test -d "$as_dir" || eval $as_mkdir_p || { | |
6719 | as_dirs= | |
6720 | while :; do | |
6721 | case $as_dir in #( | |
6722 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
6723 | *) as_qdir=$as_dir;; | |
6724 | esac | |
6725 | as_dirs="'$as_qdir' $as_dirs" | |
6726 | as_dir=`$as_dirname -- "$as_dir" || | |
6727 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6728 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6729 | X"$as_dir" : 'X\(//\)$' \| \ | |
6730 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6731 | printf "%s\n" X"$as_dir" | | |
6732 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6733 | s//\1/ | |
6734 | q | |
6735 | } | |
6736 | /^X\(\/\/\)[^/].*/{ | |
6737 | s//\1/ | |
6738 | q | |
6739 | } | |
6740 | /^X\(\/\/\)$/{ | |
6741 | s//\1/ | |
6742 | q | |
6743 | } | |
6744 | /^X\(\/\).*/{ | |
6745 | s//\1/ | |
6746 | q | |
6747 | } | |
6748 | s/.*/./; q'` | |
6749 | test -d "$as_dir" && break | |
6750 | done | |
6751 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
6752 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
6753 | ||
6754 | ||
6755 | } # as_fn_mkdir_p | |
6756 | if mkdir -p . 2>/dev/null; then | |
6757 | as_mkdir_p='mkdir -p "$as_dir"' | |
6758 | else | |
6759 | test -d ./-p && rmdir ./-p | |
6760 | as_mkdir_p=false | |
6761 | fi | |
6762 | ||
6763 | ||
6764 | # as_fn_executable_p FILE | |
6765 | # ----------------------- | |
6766 | # Test if FILE is an executable regular file. | |
6767 | as_fn_executable_p () | |
6768 | { | |
6769 | test -f "$1" && test -x "$1" | |
6770 | } # as_fn_executable_p | |
6771 | as_test_x='test -x' | |
6772 | as_executable_p=as_fn_executable_p | |
6773 | ||
6774 | # Sed expression to map a string onto a valid CPP name. | |
6775 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
6776 | ||
6777 | # Sed expression to map a string onto a valid variable name. | |
6778 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6779 | ||
6780 | ||
6781 | exec 6>&1 | |
6782 | ## ----------------------------------- ## | |
6783 | ## Main body of $CONFIG_STATUS script. ## | |
6784 | ## ----------------------------------- ## | |
6785 | _ASEOF | |
6786 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
6787 | ||
6788 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6789 | # Save the log message, to keep $0 and so on meaningful, and to | |
6790 | # report actual input values of CONFIG_FILES etc. instead of their | |
6791 | # values after options handling. | |
6792 | ac_log=" | |
6793 | This file was extended by kalibrate $as_me 0.4.1, which was | |
6794 | generated by GNU Autoconf 2.71. Invocation command line was | |
6795 | ||
6796 | CONFIG_FILES = $CONFIG_FILES | |
6797 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6798 | CONFIG_LINKS = $CONFIG_LINKS | |
6799 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6800 | $ $0 $@ | |
6801 | ||
6802 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
6803 | " | |
6804 | ||
6805 | _ACEOF | |
6806 | ||
6807 | case $ac_config_files in *" | |
6808 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
6809 | esac | |
6810 | ||
6811 | case $ac_config_headers in *" | |
6812 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
6813 | esac | |
6814 | ||
6815 | ||
6816 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6817 | # Files that config.status was made for. | |
6818 | config_files="$ac_config_files" | |
6819 | config_headers="$ac_config_headers" | |
6820 | config_commands="$ac_config_commands" | |
6821 | ||
6822 | _ACEOF | |
6823 | ||
6824 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6825 | ac_cs_usage="\ | |
6826 | \`$as_me' instantiates files and other configuration actions | |
6827 | from templates according to the current configuration. Unless the files | |
6828 | and actions are specified as TAGs, all are instantiated by default. | |
6829 | ||
6830 | Usage: $0 [OPTION]... [TAG]... | |
6831 | ||
6832 | -h, --help print this help, then exit | |
6833 | -V, --version print version number and configuration settings, then exit | |
6834 | --config print configuration, then exit | |
6835 | -q, --quiet, --silent | |
6836 | do not print progress messages | |
6837 | -d, --debug don't remove temporary files | |
6838 | --recheck update $as_me by reconfiguring in the same conditions | |
6839 | --file=FILE[:TEMPLATE] | |
6840 | instantiate the configuration file FILE | |
6841 | --header=FILE[:TEMPLATE] | |
6842 | instantiate the configuration header FILE | |
6843 | ||
6844 | Configuration files: | |
6845 | $config_files | |
6846 | ||
6847 | Configuration headers: | |
6848 | $config_headers | |
6849 | ||
6850 | Configuration commands: | |
6851 | $config_commands | |
6852 | ||
6853 | Report bugs to <[email protected]>." | |
6854 | ||
6855 | _ACEOF | |
6856 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` | |
6857 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` | |
6858 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6859 | ac_cs_config='$ac_cs_config_escaped' | |
6860 | ac_cs_version="\\ | |
6861 | kalibrate config.status 0.4.1 | |
6862 | configured by $0, generated by GNU Autoconf 2.71, | |
6863 | with options \\"\$ac_cs_config\\" | |
6864 | ||
6865 | Copyright (C) 2021 Free Software Foundation, Inc. | |
6866 | This config.status script is free software; the Free Software Foundation | |
6867 | gives unlimited permission to copy, distribute and modify it." | |
6868 | ||
6869 | ac_pwd='$ac_pwd' | |
6870 | srcdir='$srcdir' | |
6871 | INSTALL='$INSTALL' | |
6872 | MKDIR_P='$MKDIR_P' | |
6873 | AWK='$AWK' | |
6874 | test -n "\$AWK" || AWK=awk | |
6875 | _ACEOF | |
6876 | ||
6877 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6878 | # The default lists apply if the user does not specify any file. | |
6879 | ac_need_defaults=: | |
6880 | while test $# != 0 | |
6881 | do | |
6882 | case $1 in | |
6883 | --*=?*) | |
6884 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
6885 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
6886 | ac_shift=: | |
6887 | ;; | |
6888 | --*=) | |
6889 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
6890 | ac_optarg= | |
6891 | ac_shift=: | |
6892 | ;; | |
6893 | *) | |
6894 | ac_option=$1 | |
6895 | ac_optarg=$2 | |
6896 | ac_shift=shift | |
6897 | ;; | |
6898 | esac | |
6899 | ||
6900 | case $ac_option in | |
6901 | # Handling of the options. | |
6902 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6903 | ac_cs_recheck=: ;; | |
6904 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
6905 | printf "%s\n" "$ac_cs_version"; exit ;; | |
6906 | --config | --confi | --conf | --con | --co | --c ) | |
6907 | printf "%s\n" "$ac_cs_config"; exit ;; | |
6908 | --debug | --debu | --deb | --de | --d | -d ) | |
6909 | debug=: ;; | |
6910 | --file | --fil | --fi | --f ) | |
6911 | $ac_shift | |
6912 | case $ac_optarg in | |
6913 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6914 | '') as_fn_error $? "missing file argument" ;; | |
6915 | esac | |
6916 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
6917 | ac_need_defaults=false;; | |
6918 | --header | --heade | --head | --hea ) | |
6919 | $ac_shift | |
6920 | case $ac_optarg in | |
6921 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6922 | esac | |
6923 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
6924 | ac_need_defaults=false;; | |
6925 | --he | --h) | |
6926 | # Conflict between --help and --header | |
6927 | as_fn_error $? "ambiguous option: \`$1' | |
6928 | Try \`$0 --help' for more information.";; | |
6929 | --help | --hel | -h ) | |
6930 | printf "%s\n" "$ac_cs_usage"; exit ;; | |
6931 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
6932 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6933 | ac_cs_silent=: ;; | |
6934 | ||
6935 | # This is an error. | |
6936 | -*) as_fn_error $? "unrecognized option: \`$1' | |
6937 | Try \`$0 --help' for more information." ;; | |
6938 | ||
6939 | *) as_fn_append ac_config_targets " $1" | |
6940 | ac_need_defaults=false ;; | |
6941 | ||
6942 | esac | |
6943 | shift | |
6944 | done | |
6945 | ||
6946 | ac_configure_extra_args= | |
6947 | ||
6948 | if $ac_cs_silent; then | |
6949 | exec 6>/dev/null | |
6950 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
6951 | fi | |
6952 | ||
6953 | _ACEOF | |
6954 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6955 | if \$ac_cs_recheck; then | |
6956 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
6957 | shift | |
6958 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 | |
6959 | CONFIG_SHELL='$SHELL' | |
6960 | export CONFIG_SHELL | |
6961 | exec "\$@" | |
6962 | fi | |
6963 | ||
6964 | _ACEOF | |
6965 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6966 | exec 5>>config.log | |
6967 | { | |
6968 | echo | |
6969 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6970 | ## Running $as_me. ## | |
6971 | _ASBOX | |
6972 | printf "%s\n" "$ac_log" | |
6973 | } >&5 | |
6974 | ||
6975 | _ACEOF | |
6976 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6977 | # | |
6978 | # INIT-COMMANDS | |
6979 | # | |
6980 | AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" | |
6981 | ||
6982 | _ACEOF | |
6983 | ||
6984 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6985 | ||
6986 | # Handling of arguments. | |
6987 | for ac_config_target in $ac_config_targets | |
6988 | do | |
6989 | case $ac_config_target in | |
6990 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
6991 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
6992 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
6993 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
6994 | ||
6995 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
6996 | esac | |
6997 | done | |
6998 | ||
6999 | ||
7000 | # If the user did not use the arguments to specify the items to instantiate, | |
7001 | # then the envvar interface is used. Set only those that are not. | |
7002 | # We use the long form for the default assignment because of an extremely | |
7003 | # bizarre bug on SunOS 4.1.3. | |
7004 | if $ac_need_defaults; then | |
7005 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files | |
7006 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers | |
7007 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands | |
7008 | fi | |
7009 | ||
7010 | # Have a temporary directory for convenience. Make it in the build tree | |
7011 | # simply because there is no reason against having it here, and in addition, | |
7012 | # creating and moving files from /tmp can sometimes cause problems. | |
7013 | # Hook for its removal unless debugging. | |
7014 | # Note that there is a small window in which the directory will not be cleaned: | |
7015 | # after its creation but before its name has been assigned to `$tmp'. | |
7016 | $debug || | |
7017 | { | |
7018 | tmp= ac_tmp= | |
7019 | trap 'exit_status=$? | |
7020 | : "${ac_tmp:=$tmp}" | |
7021 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
7022 | ' 0 | |
7023 | trap 'as_fn_exit 1' 1 2 13 15 | |
7024 | } | |
7025 | # Create a (secure) tmp directory for tmp files. | |
7026 | ||
7027 | { | |
7028 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
7029 | test -d "$tmp" | |
7030 | } || | |
7031 | { | |
7032 | tmp=./conf$$-$RANDOM | |
7033 | (umask 077 && mkdir "$tmp") | |
7034 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
7035 | ac_tmp=$tmp | |
7036 | ||
7037 | # Set up the scripts for CONFIG_FILES section. | |
7038 | # No need to generate them if there are no CONFIG_FILES. | |
7039 | # This happens for instance with `./config.status config.h'. | |
7040 | if test -n "$CONFIG_FILES"; then | |
7041 | ||
7042 | ||
7043 | ac_cr=`echo X | tr X '\015'` | |
7044 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
7045 | # But we know of no other shell where ac_cr would be empty at this | |
7046 | # point, so we can use a bashism as a fallback. | |
7047 | if test "x$ac_cr" = x; then | |
7048 | eval ac_cr=\$\'\\r\' | |
7049 | fi | |
7050 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
7051 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
7052 | ac_cs_awk_cr='\\r' | |
7053 | else | |
7054 | ac_cs_awk_cr=$ac_cr | |
7055 | fi | |
7056 | ||
7057 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
7058 | _ACEOF | |
7059 | ||
7060 | ||
7061 | { | |
7062 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
7063 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7064 | echo "_ACEOF" | |
7065 | } >conf$$subs.sh || | |
7066 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7067 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
7068 | ac_delim='%!_!# ' | |
7069 | for ac_last_try in false false false false false :; do | |
7070 | . ./conf$$subs.sh || | |
7071 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7072 | ||
7073 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
7074 | if test $ac_delim_n = $ac_delim_num; then | |
7075 | break | |
7076 | elif $ac_last_try; then | |
7077 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7078 | else | |
7079 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7080 | fi | |
7081 | done | |
7082 | rm -f conf$$subs.sh | |
7083 | ||
7084 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7085 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
7086 | _ACEOF | |
7087 | sed -n ' | |
7088 | h | |
7089 | s/^/S["/; s/!.*/"]=/ | |
7090 | p | |
7091 | g | |
7092 | s/^[^!]*!// | |
7093 | :repl | |
7094 | t repl | |
7095 | s/'"$ac_delim"'$// | |
7096 | t delim | |
7097 | :nl | |
7098 | h | |
7099 | s/\(.\{148\}\)..*/\1/ | |
7100 | t more1 | |
7101 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
7102 | p | |
7103 | n | |
7104 | b repl | |
7105 | :more1 | |
7106 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7107 | p | |
7108 | g | |
7109 | s/.\{148\}// | |
7110 | t nl | |
7111 | :delim | |
7112 | h | |
7113 | s/\(.\{148\}\)..*/\1/ | |
7114 | t more2 | |
7115 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
7116 | p | |
7117 | b | |
7118 | :more2 | |
7119 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7120 | p | |
7121 | g | |
7122 | s/.\{148\}// | |
7123 | t delim | |
7124 | ' <conf$$subs.awk | sed ' | |
7125 | /^[^""]/{ | |
7126 | N | |
7127 | s/\n// | |
7128 | } | |
7129 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
7130 | rm -f conf$$subs.awk | |
7131 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7132 | _ACAWK | |
7133 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
7134 | for (key in S) S_is_set[key] = 1 | |
7135 | FS = "" | |
7136 | ||
7137 | } | |
7138 | { | |
7139 | line = $ 0 | |
7140 | nfields = split(line, field, "@") | |
7141 | substed = 0 | |
7142 | len = length(field[1]) | |
7143 | for (i = 2; i < nfields; i++) { | |
7144 | key = field[i] | |
7145 | keylen = length(key) | |
7146 | if (S_is_set[key]) { | |
7147 | value = S[key] | |
7148 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
7149 | len += length(value) + length(field[++i]) | |
7150 | substed = 1 | |
7151 | } else | |
7152 | len += 1 + keylen | |
7153 | } | |
7154 | ||
7155 | print line | |
7156 | } | |
7157 | ||
7158 | _ACAWK | |
7159 | _ACEOF | |
7160 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7161 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
7162 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
7163 | else | |
7164 | cat | |
7165 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
7166 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
7167 | _ACEOF | |
7168 | ||
7169 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
7170 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7171 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7172 | # (actually we leave an empty line to preserve line numbers). | |
7173 | if test "x$srcdir" = x.; then | |
7174 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
7175 | h | |
7176 | s/// | |
7177 | s/^/:/ | |
7178 | s/[ ]*$/:/ | |
7179 | s/:\$(srcdir):/:/g | |
7180 | s/:\${srcdir}:/:/g | |
7181 | s/:@srcdir@:/:/g | |
7182 | s/^:*// | |
7183 | s/:*$// | |
7184 | x | |
7185 | s/\(=[ ]*\).*/\1/ | |
7186 | G | |
7187 | s/\n// | |
7188 | s/^[^=]*=[ ]*$// | |
7189 | }' | |
7190 | fi | |
7191 | ||
7192 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7193 | fi # test -n "$CONFIG_FILES" | |
7194 | ||
7195 | # Set up the scripts for CONFIG_HEADERS section. | |
7196 | # No need to generate them if there are no CONFIG_HEADERS. | |
7197 | # This happens for instance with `./config.status Makefile'. | |
7198 | if test -n "$CONFIG_HEADERS"; then | |
7199 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
7200 | BEGIN { | |
7201 | _ACEOF | |
7202 | ||
7203 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
7204 | # here-document in config.status, that substitutes the proper values into | |
7205 | # config.h.in to produce config.h. | |
7206 | ||
7207 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
7208 | # handling of long lines. | |
7209 | ac_delim='%!_!# ' | |
7210 | for ac_last_try in false false :; do | |
7211 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
7212 | if test -z "$ac_tt"; then | |
7213 | break | |
7214 | elif $ac_last_try; then | |
7215 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
7216 | else | |
7217 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7218 | fi | |
7219 | done | |
7220 | ||
7221 | # For the awk script, D is an array of macro values keyed by name, | |
7222 | # likewise P contains macro parameters if any. Preserve backslash | |
7223 | # newline sequences. | |
7224 | ||
7225 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
7226 | sed -n ' | |
7227 | s/.\{148\}/&'"$ac_delim"'/g | |
7228 | t rset | |
7229 | :rset | |
7230 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
7231 | t def | |
7232 | d | |
7233 | :def | |
7234 | s/\\$// | |
7235 | t bsnl | |
7236 | s/["\\]/\\&/g | |
7237 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7238 | D["\1"]=" \3"/p | |
7239 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
7240 | d | |
7241 | :bsnl | |
7242 | s/["\\]/\\&/g | |
7243 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7244 | D["\1"]=" \3\\\\\\n"\\/p | |
7245 | t cont | |
7246 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
7247 | t cont | |
7248 | d | |
7249 | :cont | |
7250 | n | |
7251 | s/.\{148\}/&'"$ac_delim"'/g | |
7252 | t clear | |
7253 | :clear | |
7254 | s/\\$// | |
7255 | t bsnlc | |
7256 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
7257 | d | |
7258 | :bsnlc | |
7259 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
7260 | b cont | |
7261 | ' <confdefs.h | sed ' | |
7262 | s/'"$ac_delim"'/"\\\ | |
7263 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
7264 | ||
7265 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7266 | for (key in D) D_is_set[key] = 1 | |
7267 | FS = "" | |
7268 | } | |
7269 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
7270 | line = \$ 0 | |
7271 | split(line, arg, " ") | |
7272 | if (arg[1] == "#") { | |
7273 | defundef = arg[2] | |
7274 | mac1 = arg[3] | |
7275 | } else { | |
7276 | defundef = substr(arg[1], 2) | |
7277 | mac1 = arg[2] | |
7278 | } | |
7279 | split(mac1, mac2, "(") #) | |
7280 | macro = mac2[1] | |
7281 | prefix = substr(line, 1, index(line, defundef) - 1) | |
7282 | if (D_is_set[macro]) { | |
7283 | # Preserve the white space surrounding the "#". | |
7284 | print prefix "define", macro P[macro] D[macro] | |
7285 | next | |
7286 | } else { | |
7287 | # Replace #undef with comments. This is necessary, for example, | |
7288 | # in the case of _POSIX_SOURCE, which is predefined and required | |
7289 | # on some systems where configure will not decide to define it. | |
7290 | if (defundef == "undef") { | |
7291 | print "/*", prefix defundef, macro, "*/" | |
7292 | next | |
7293 | } | |
7294 | } | |
7295 | } | |
7296 | { print } | |
7297 | _ACAWK | |
7298 | _ACEOF | |
7299 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7300 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
7301 | fi # test -n "$CONFIG_HEADERS" | |
7302 | ||
7303 | ||
7304 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
7305 | shift | |
7306 | for ac_tag | |
7307 | do | |
7308 | case $ac_tag in | |
7309 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
7310 | esac | |
7311 | case $ac_mode$ac_tag in | |
7312 | :[FHL]*:*);; | |
7313 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
7314 | :[FH]-) ac_tag=-:-;; | |
7315 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
7316 | esac | |
7317 | ac_save_IFS=$IFS | |
7318 | IFS=: | |
7319 | set x $ac_tag | |
7320 | IFS=$ac_save_IFS | |
7321 | shift | |
7322 | ac_file=$1 | |
7323 | shift | |
7324 | ||
7325 | case $ac_mode in | |
7326 | :L) ac_source=$1;; | |
7327 | :[FH]) | |
7328 | ac_file_inputs= | |
7329 | for ac_f | |
7330 | do | |
7331 | case $ac_f in | |
7332 | -) ac_f="$ac_tmp/stdin";; | |
7333 | *) # Look for the file first in the build tree, then in the source tree | |
7334 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7335 | # because $ac_f cannot contain `:'. | |
7336 | test -f "$ac_f" || | |
7337 | case $ac_f in | |
7338 | [\\/$]*) false;; | |
7339 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7340 | esac || | |
7341 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
7342 | esac | |
7343 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
7344 | as_fn_append ac_file_inputs " '$ac_f'" | |
7345 | done | |
7346 | ||
7347 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7348 | # use $as_me), people would be surprised to read: | |
7349 | # /* config.h. Generated by config.status. */ | |
7350 | configure_input='Generated from '` | |
7351 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
7352 | `' by configure.' | |
7353 | if test x"$ac_file" != x-; then | |
7354 | configure_input="$ac_file. $configure_input" | |
7355 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
7356 | printf "%s\n" "$as_me: creating $ac_file" >&6;} | |
7357 | fi | |
7358 | # Neutralize special characters interpreted by sed in replacement strings. | |
7359 | case $configure_input in #( | |
7360 | *\&* | *\|* | *\\* ) | |
7361 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | | |
7362 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
7363 | *) ac_sed_conf_input=$configure_input;; | |
7364 | esac | |
7365 | ||
7366 | case $ac_tag in | |
7367 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
7368 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
7369 | esac | |
7370 | ;; | |
7371 | esac | |
7372 | ||
7373 | ac_dir=`$as_dirname -- "$ac_file" || | |
7374 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7375 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7376 | X"$ac_file" : 'X\(//\)$' \| \ | |
7377 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
7378 | printf "%s\n" X"$ac_file" | | |
7379 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7380 | s//\1/ | |
7381 | q | |
7382 | } | |
7383 | /^X\(\/\/\)[^/].*/{ | |
7384 | s//\1/ | |
7385 | q | |
7386 | } | |
7387 | /^X\(\/\/\)$/{ | |
7388 | s//\1/ | |
7389 | q | |
7390 | } | |
7391 | /^X\(\/\).*/{ | |
7392 | s//\1/ | |
7393 | q | |
7394 | } | |
7395 | s/.*/./; q'` | |
7396 | as_dir="$ac_dir"; as_fn_mkdir_p | |
7397 | ac_builddir=. | |
7398 | ||
7399 | case "$ac_dir" in | |
7400 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7401 | *) | |
7402 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` | |
7403 | # A ".." for each directory in $ac_dir_suffix. | |
7404 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
7405 | case $ac_top_builddir_sub in | |
7406 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7407 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7408 | esac ;; | |
7409 | esac | |
7410 | ac_abs_top_builddir=$ac_pwd | |
7411 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7412 | # for backward compatibility: | |
7413 | ac_top_builddir=$ac_top_build_prefix | |
7414 | ||
7415 | case $srcdir in | |
7416 | .) # We are building in place. | |
7417 | ac_srcdir=. | |
7418 | ac_top_srcdir=$ac_top_builddir_sub | |
7419 | ac_abs_top_srcdir=$ac_pwd ;; | |
7420 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
7421 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7422 | ac_top_srcdir=$srcdir | |
7423 | ac_abs_top_srcdir=$srcdir ;; | |
7424 | *) # Relative name. | |
7425 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7426 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7427 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
7428 | esac | |
7429 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
7430 | ||
7431 | ||
7432 | case $ac_mode in | |
7433 | :F) | |
7434 | # | |
7435 | # CONFIG_FILE | |
7436 | # | |
7437 | ||
7438 | case $INSTALL in | |
7439 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7440 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
7441 | esac | |
7442 | ac_MKDIR_P=$MKDIR_P | |
7443 | case $MKDIR_P in | |
7444 | [\\/$]* | ?:[\\/]* ) ;; | |
7445 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
7446 | esac | |
7447 | _ACEOF | |
7448 | ||
7449 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7450 | # If the template does not know about datarootdir, expand it. | |
7451 | # FIXME: This hack should be removed a few years after 2.60. | |
7452 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7453 | ac_sed_dataroot=' | |
7454 | /datarootdir/ { | |
7455 | p | |
7456 | q | |
7457 | } | |
7458 | /@datadir@/p | |
7459 | /@docdir@/p | |
7460 | /@infodir@/p | |
7461 | /@localedir@/p | |
7462 | /@mandir@/p' | |
7463 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7464 | *datarootdir*) ac_datarootdir_seen=yes;; | |
7465 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
7467 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7468 | _ACEOF | |
7469 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7470 | ac_datarootdir_hack=' | |
7471 | s&@datadir@&$datadir&g | |
7472 | s&@docdir@&$docdir&g | |
7473 | s&@infodir@&$infodir&g | |
7474 | s&@localedir@&$localedir&g | |
7475 | s&@mandir@&$mandir&g | |
7476 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
7477 | esac | |
7478 | _ACEOF | |
7479 | ||
7480 | # Neutralize VPATH when `$srcdir' = `.'. | |
7481 | # Shell code in configure.ac might set extrasub. | |
7482 | # FIXME: do we really want to maintain this feature? | |
7483 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7484 | ac_sed_extra="$ac_vpsub | |
7485 | $extrasub | |
7486 | _ACEOF | |
7487 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7488 | :t | |
7489 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7490 | s|@configure_input@|$ac_sed_conf_input|;t t | |
7491 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
7492 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
7493 | s&@srcdir@&$ac_srcdir&;t t | |
7494 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
7495 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
7496 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
7497 | s&@builddir@&$ac_builddir&;t t | |
7498 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
7499 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
7500 | s&@INSTALL@&$ac_INSTALL&;t t | |
7501 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
7502 | $ac_datarootdir_hack | |
7503 | " | |
7504 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
7505 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
7506 | ||
7507 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
7508 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
7509 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
7510 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
7511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7512 | which seems to be undefined. Please make sure it is defined" >&5 | |
7513 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7514 | which seems to be undefined. Please make sure it is defined" >&2;} | |
7515 | ||
7516 | rm -f "$ac_tmp/stdin" | |
7517 | case $ac_file in | |
7518 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
7519 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
7520 | esac \ | |
7521 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
7522 | ;; | |
7523 | :H) | |
7524 | # | |
7525 | # CONFIG_HEADER | |
7526 | # | |
7527 | if test x"$ac_file" != x-; then | |
7528 | { | |
7529 | printf "%s\n" "/* $configure_input */" >&1 \ | |
7530 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
7531 | } >"$ac_tmp/config.h" \ | |
7532 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
7533 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
7534 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
7535 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} | |
7536 | else | |
7537 | rm -f "$ac_file" | |
7538 | mv "$ac_tmp/config.h" "$ac_file" \ | |
7539 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
7540 | fi | |
7541 | else | |
7542 | printf "%s\n" "/* $configure_input */" >&1 \ | |
7543 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
7544 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
7545 | fi | |
7546 | # Compute "$ac_file"'s index in $config_headers. | |
7547 | _am_arg="$ac_file" | |
7548 | _am_stamp_count=1 | |
7549 | for _am_header in $config_headers :; do | |
7550 | case $_am_header in | |
7551 | $_am_arg | $_am_arg:* ) | |
7552 | break ;; | |
7553 | * ) | |
7554 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
7555 | esac | |
7556 | done | |
7557 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
7558 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7559 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
7560 | X"$_am_arg" : 'X\(//\)$' \| \ | |
7561 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
7562 | printf "%s\n" X"$_am_arg" | | |
7563 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7564 | s//\1/ | |
7565 | q | |
7566 | } | |
7567 | /^X\(\/\/\)[^/].*/{ | |
7568 | s//\1/ | |
7569 | q | |
7570 | } | |
7571 | /^X\(\/\/\)$/{ | |
7572 | s//\1/ | |
7573 | q | |
7574 | } | |
7575 | /^X\(\/\).*/{ | |
7576 | s//\1/ | |
7577 | q | |
7578 | } | |
7579 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
7580 | ;; | |
7581 | ||
7582 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
7583 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} | |
7584 | ;; | |
7585 | esac | |
7586 | ||
7587 | ||
7588 | case $ac_file$ac_mode in | |
7589 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
7590 | # Older Autoconf quotes --file arguments for eval, but not when files | |
7591 | # are listed without --file. Let's play safe and only enable the eval | |
7592 | # if we detect the quoting. | |
7593 | # TODO: see whether this extra hack can be removed once we start | |
7594 | # requiring Autoconf 2.70 or later. | |
7595 | case $CONFIG_FILES in #( | |
7596 | *\'*) : | |
7597 | eval set x "$CONFIG_FILES" ;; #( | |
7598 | *) : | |
7599 | set x $CONFIG_FILES ;; #( | |
7600 | *) : | |
7601 | ;; | |
7602 | esac | |
7603 | shift | |
7604 | # Used to flag and report bootstrapping failures. | |
7605 | am_rc=0 | |
7606 | for am_mf | |
7607 | do | |
7608 | # Strip MF so we end up with the name of the file. | |
7609 | am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` | |
7610 | # Check whether this is an Automake generated Makefile which includes | |
7611 | # dependency-tracking related rules and includes. | |
7612 | # Grep'ing the whole file directly is not great: AIX grep has a line | |
7613 | # limit of 2048, but all sed's we know have understand at least 4000. | |
7614 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ | |
7615 | || continue | |
7616 | am_dirpart=`$as_dirname -- "$am_mf" || | |
7617 | $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7618 | X"$am_mf" : 'X\(//\)[^/]' \| \ | |
7619 | X"$am_mf" : 'X\(//\)$' \| \ | |
7620 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || | |
7621 | printf "%s\n" X"$am_mf" | | |
7622 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7623 | s//\1/ | |
7624 | q | |
7625 | } | |
7626 | /^X\(\/\/\)[^/].*/{ | |
7627 | s//\1/ | |
7628 | q | |
7629 | } | |
7630 | /^X\(\/\/\)$/{ | |
7631 | s//\1/ | |
7632 | q | |
7633 | } | |
7634 | /^X\(\/\).*/{ | |
7635 | s//\1/ | |
7636 | q | |
7637 | } | |
7638 | s/.*/./; q'` | |
7639 | am_filepart=`$as_basename -- "$am_mf" || | |
7640 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ | |
7641 | X"$am_mf" : 'X\(//\)$' \| \ | |
7642 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || | |
7643 | printf "%s\n" X/"$am_mf" | | |
7644 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
7645 | s//\1/ | |
7646 | q | |
7647 | } | |
7648 | /^X\/\(\/\/\)$/{ | |
7649 | s//\1/ | |
7650 | q | |
7651 | } | |
7652 | /^X\/\(\/\).*/{ | |
7653 | s//\1/ | |
7654 | q | |
7655 | } | |
7656 | s/.*/./; q'` | |
7657 | { echo "$as_me:$LINENO: cd "$am_dirpart" \ | |
7658 | && sed -e '/# am--include-marker/d' "$am_filepart" \ | |
7659 | | $MAKE -f - am--depfiles" >&5 | |
7660 | (cd "$am_dirpart" \ | |
7661 | && sed -e '/# am--include-marker/d' "$am_filepart" \ | |
7662 | | $MAKE -f - am--depfiles) >&5 2>&5 | |
7663 | ac_status=$? | |
7664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7665 | (exit $ac_status); } || am_rc=$? | |
7666 | done | |
7667 | if test $am_rc -ne 0; then | |
7668 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7669 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
7670 | as_fn_error $? "Something went wrong bootstrapping makefile fragments | |
7671 | for automatic dependency tracking. If GNU make was not used, consider | |
7672 | re-running the configure script with MAKE=\"gmake\" (or whatever is | |
7673 | necessary). You can also try re-running configure with the | |
7674 | '--disable-dependency-tracking' option to at least be able to build | |
7675 | the package (albeit without support for automatic dependency tracking). | |
7676 | See \`config.log' for more details" "$LINENO" 5; } | |
7677 | fi | |
7678 | { am_dirpart=; unset am_dirpart;} | |
7679 | { am_filepart=; unset am_filepart;} | |
7680 | { am_mf=; unset am_mf;} | |
7681 | { am_rc=; unset am_rc;} | |
7682 | rm -f conftest-deps.mk | |
7683 | } | |
7684 | ;; | |
7685 | ||
7686 | esac | |
7687 | done # for ac_tag | |
7688 | ||
7689 | ||
7690 | as_fn_exit 0 | |
7691 | _ACEOF | |
7692 | ac_clean_files=$ac_clean_files_save | |
7693 | ||
7694 | test $ac_write_fail = 0 || | |
7695 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
7696 | ||
7697 | ||
7698 | # configure is writing to config.log, and then calls config.status. | |
7699 | # config.status does its own redirection, appending to config.log. | |
7700 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7701 | # by configure, so config.status won't be able to write to it; its | |
7702 | # output is simply discarded. So we exec the FD to /dev/null, | |
7703 | # effectively closing config.log, so it can be properly (re)opened and | |
7704 | # appended to by config.status. When coming back to configure, we | |
7705 | # need to make the FD available again. | |
7706 | if test "$no_create" != yes; then | |
7707 | ac_cs_success=: | |
7708 | ac_config_status_args= | |
7709 | test "$silent" = yes && | |
7710 | ac_config_status_args="$ac_config_status_args --quiet" | |
7711 | exec 5>/dev/null | |
7712 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
7713 | exec 5>>config.log | |
7714 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7715 | # would make configure fail if this is the last instruction. | |
7716 | $ac_cs_success || as_fn_exit 1 | |
7717 | fi | |
7718 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
7719 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
7720 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
7721 | fi | |
7722 | ||
7723 |
52 | 52 | esac |
53 | 53 | |
54 | 54 | case "$host_cpu" in |
55 | arm*) | |
55 | arm*|mips*) | |
56 | 56 | AC_DEFINE([D_HOST_OSX], [], [building without shared memory]) |
57 | 57 | ;; |
58 | 58 | esac |
0 | #! /bin/sh | |
1 | # depcomp - compile a program generating dependencies as side-effects | |
2 | ||
3 | scriptversion=2018-03-07.03; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2021 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 <https://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 <[email protected]>. | |
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 <[email protected]>. | |
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 'before-save-hook 'time-stamp) | |
786 | # time-stamp-start: "scriptversion=" | |
787 | # time-stamp-format: "%:y-%02m-%02d.%02H" | |
788 | # time-stamp-time-zone: "UTC0" | |
789 | # time-stamp-end: "; # UTC" | |
790 | # End: |
0 | #!/bin/sh | |
1 | # install - install a program, script, or datafile | |
2 | ||
3 | scriptversion=2020-11-14.01; # 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 | # 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= | |
76 | chgrpcmd= | |
77 | chmodcmd=$chmodprog | |
78 | chowncmd= | |
79 | mvcmd=$mvprog | |
80 | rmcmd="$rmprog -f" | |
81 | stripcmd= | |
82 | ||
83 | src= | |
84 | dst= | |
85 | dir_arg= | |
86 | dst_arg= | |
87 | ||
88 | copy_on_change=false | |
89 | is_target_a_directory=possibly | |
90 | ||
91 | usage="\ | |
92 | Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE | |
93 | or: $0 [OPTION]... SRCFILES... DIRECTORY | |
94 | or: $0 [OPTION]... -t DIRECTORY SRCFILES... | |
95 | or: $0 [OPTION]... -d DIRECTORIES... | |
96 | ||
97 | In the 1st form, copy SRCFILE to DSTFILE. | |
98 | In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. | |
99 | In the 4th, create DIRECTORIES. | |
100 | ||
101 | Options: | |
102 | --help display this help and exit. | |
103 | --version display version info and exit. | |
104 | ||
105 | -c (ignored) | |
106 | -C install only if different (preserve data modification time) | |
107 | -d create directories instead of installing files. | |
108 | -g GROUP $chgrpprog installed files to GROUP. | |
109 | -m MODE $chmodprog installed files to MODE. | |
110 | -o USER $chownprog installed files to USER. | |
111 | -p pass -p to $cpprog. | |
112 | -s $stripprog installed files. | |
113 | -S SUFFIX attempt to back up existing files, with suffix SUFFIX. | |
114 | -t DIRECTORY install into DIRECTORY. | |
115 | -T report an error if DSTFILE is a directory. | |
116 | ||
117 | Environment variables override the default commands: | |
118 | CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG | |
119 | RMPROG STRIPPROG | |
120 | ||
121 | By default, rm is invoked with -f; when overridden with RMPROG, | |
122 | it's up to you to specify -f if you want it. | |
123 | ||
124 | If -S is not specified, no backups are attempted. | |
125 | ||
126 | Email bug reports to [email protected]. | |
127 | Automake home page: https://www.gnu.org/software/automake/ | |
128 | " | |
129 | ||
130 | while test $# -ne 0; do | |
131 | case $1 in | |
132 | -c) ;; | |
133 | ||
134 | -C) copy_on_change=true;; | |
135 | ||
136 | -d) dir_arg=true;; | |
137 | ||
138 | -g) chgrpcmd="$chgrpprog $2" | |
139 | shift;; | |
140 | ||
141 | --help) echo "$usage"; exit $?;; | |
142 | ||
143 | -m) mode=$2 | |
144 | case $mode in | |
145 | *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) | |
146 | echo "$0: invalid mode: $mode" >&2 | |
147 | exit 1;; | |
148 | esac | |
149 | shift;; | |
150 | ||
151 | -o) chowncmd="$chownprog $2" | |
152 | shift;; | |
153 | ||
154 | -p) cpprog="$cpprog -p";; | |
155 | ||
156 | -s) stripcmd=$stripprog;; | |
157 | ||
158 | -S) backupsuffix="$2" | |
159 | shift;; | |
160 | ||
161 | -t) | |
162 | is_target_a_directory=always | |
163 | dst_arg=$2 | |
164 | # Protect names problematic for 'test' and other utilities. | |
165 | case $dst_arg in | |
166 | -* | [=\(\)!]) dst_arg=./$dst_arg;; | |
167 | esac | |
168 | shift;; | |
169 | ||
170 | -T) is_target_a_directory=never;; | |
171 | ||
172 | --version) echo "$0 $scriptversion"; exit $?;; | |
173 | ||
174 | --) shift | |
175 | break;; | |
176 | ||
177 | -*) echo "$0: invalid option: $1" >&2 | |
178 | exit 1;; | |
179 | ||
180 | *) break;; | |
181 | esac | |
182 | shift | |
183 | done | |
184 | ||
185 | # We allow the use of options -d and -T together, by making -d | |
186 | # take the precedence; this is for compatibility with GNU install. | |
187 | ||
188 | if test -n "$dir_arg"; then | |
189 | if test -n "$dst_arg"; then | |
190 | echo "$0: target directory not allowed when installing a directory." >&2 | |
191 | exit 1 | |
192 | fi | |
193 | fi | |
194 | ||
195 | if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then | |
196 | # When -d is used, all remaining arguments are directories to create. | |
197 | # When -t is used, the destination is already specified. | |
198 | # Otherwise, the last argument is the destination. Remove it from $@. | |
199 | for arg | |
200 | do | |
201 | if test -n "$dst_arg"; then | |
202 | # $@ is not empty: it contains at least $arg. | |
203 | set fnord "$@" "$dst_arg" | |
204 | shift # fnord | |
205 | fi | |
206 | shift # arg | |
207 | dst_arg=$arg | |
208 | # Protect names problematic for 'test' and other utilities. | |
209 | case $dst_arg in | |
210 | -* | [=\(\)!]) dst_arg=./$dst_arg;; | |
211 | esac | |
212 | done | |
213 | fi | |
214 | ||
215 | if test $# -eq 0; then | |
216 | if test -z "$dir_arg"; then | |
217 | echo "$0: no input file specified." >&2 | |
218 | exit 1 | |
219 | fi | |
220 | # It's OK to call 'install-sh -d' without argument. | |
221 | # This can happen when creating conditional directories. | |
222 | exit 0 | |
223 | fi | |
224 | ||
225 | if test -z "$dir_arg"; then | |
226 | if test $# -gt 1 || test "$is_target_a_directory" = always; then | |
227 | if test ! -d "$dst_arg"; then | |
228 | echo "$0: $dst_arg: Is not a directory." >&2 | |
229 | exit 1 | |
230 | fi | |
231 | fi | |
232 | fi | |
233 | ||
234 | if test -z "$dir_arg"; then | |
235 | do_exit='(exit $ret); exit $ret' | |
236 | trap "ret=129; $do_exit" 1 | |
237 | trap "ret=130; $do_exit" 2 | |
238 | trap "ret=141; $do_exit" 13 | |
239 | trap "ret=143; $do_exit" 15 | |
240 | ||
241 | # Set umask so as not to create temps with too-generous modes. | |
242 | # However, 'strip' requires both read and write access to temps. | |
243 | case $mode in | |
244 | # Optimize common cases. | |
245 | *644) cp_umask=133;; | |
246 | *755) cp_umask=22;; | |
247 | ||
248 | *[0-7]) | |
249 | if test -z "$stripcmd"; then | |
250 | u_plus_rw= | |
251 | else | |
252 | u_plus_rw='% 200' | |
253 | fi | |
254 | cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; | |
255 | *) | |
256 | if test -z "$stripcmd"; then | |
257 | u_plus_rw= | |
258 | else | |
259 | u_plus_rw=,u+rw | |
260 | fi | |
261 | cp_umask=$mode$u_plus_rw;; | |
262 | esac | |
263 | fi | |
264 | ||
265 | for src | |
266 | do | |
267 | # Protect names problematic for 'test' and other utilities. | |
268 | case $src in | |
269 | -* | [=\(\)!]) src=./$src;; | |
270 | esac | |
271 | ||
272 | if test -n "$dir_arg"; then | |
273 | dst=$src | |
274 | dstdir=$dst | |
275 | test -d "$dstdir" | |
276 | dstdir_status=$? | |
277 | # Don't chown directories that already exist. | |
278 | if test $dstdir_status = 0; then | |
279 | chowncmd="" | |
280 | fi | |
281 | else | |
282 | ||
283 | # Waiting for this to be detected by the "$cpprog $src $dsttmp" command | |
284 | # might cause directories to be created, which would be especially bad | |
285 | # if $src (and thus $dsttmp) contains '*'. | |
286 | if test ! -f "$src" && test ! -d "$src"; then | |
287 | echo "$0: $src does not exist." >&2 | |
288 | exit 1 | |
289 | fi | |
290 | ||
291 | if test -z "$dst_arg"; then | |
292 | echo "$0: no destination specified." >&2 | |
293 | exit 1 | |
294 | fi | |
295 | dst=$dst_arg | |
296 | ||
297 | # If destination is a directory, append the input filename. | |
298 | if test -d "$dst"; then | |
299 | if test "$is_target_a_directory" = never; then | |
300 | echo "$0: $dst_arg: Is a directory" >&2 | |
301 | exit 1 | |
302 | fi | |
303 | dstdir=$dst | |
304 | dstbase=`basename "$src"` | |
305 | case $dst in | |
306 | */) dst=$dst$dstbase;; | |
307 | *) dst=$dst/$dstbase;; | |
308 | esac | |
309 | dstdir_status=0 | |
310 | else | |
311 | dstdir=`dirname "$dst"` | |
312 | test -d "$dstdir" | |
313 | dstdir_status=$? | |
314 | fi | |
315 | fi | |
316 | ||
317 | case $dstdir in | |
318 | */) dstdirslash=$dstdir;; | |
319 | *) dstdirslash=$dstdir/;; | |
320 | esac | |
321 | ||
322 | obsolete_mkdir_used=false | |
323 | ||
324 | if test $dstdir_status != 0; then | |
325 | case $posix_mkdir in | |
326 | '') | |
327 | # With -d, create the new directory with the user-specified mode. | |
328 | # Otherwise, rely on $mkdir_umask. | |
329 | if test -n "$dir_arg"; then | |
330 | mkdir_mode=-m$mode | |
331 | else | |
332 | mkdir_mode= | |
333 | fi | |
334 | ||
335 | posix_mkdir=false | |
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;; | |
379 | esac | |
380 | ||
381 | if | |
382 | $posix_mkdir && ( | |
383 | umask $mkdir_umask && | |
384 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" | |
385 | ) | |
386 | then : | |
387 | else | |
388 | ||
389 | # mkdir does not conform to POSIX, | |
390 | # or it failed possibly due to a race condition. Create the | |
391 | # directory the slow way, step by step, checking for races as we go. | |
392 | ||
393 | case $dstdir in | |
394 | /*) prefix='/';; | |
395 | [-=\(\)!]*) prefix='./';; | |
396 | *) prefix='';; | |
397 | esac | |
398 | ||
399 | oIFS=$IFS | |
400 | IFS=/ | |
401 | set -f | |
402 | set fnord $dstdir | |
403 | shift | |
404 | set +f | |
405 | IFS=$oIFS | |
406 | ||
407 | prefixes= | |
408 | ||
409 | for d | |
410 | do | |
411 | test X"$d" = X && continue | |
412 | ||
413 | prefix=$prefix$d | |
414 | if test -d "$prefix"; then | |
415 | prefixes= | |
416 | else | |
417 | if $posix_mkdir; then | |
418 | (umask $mkdir_umask && | |
419 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break | |
420 | # Don't fail if two instances are running concurrently. | |
421 | test -d "$prefix" || exit 1 | |
422 | else | |
423 | case $prefix in | |
424 | *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; | |
425 | *) qprefix=$prefix;; | |
426 | esac | |
427 | prefixes="$prefixes '$qprefix'" | |
428 | fi | |
429 | fi | |
430 | prefix=$prefix/ | |
431 | done | |
432 | ||
433 | if test -n "$prefixes"; then | |
434 | # Don't fail if two instances are running concurrently. | |
435 | (umask $mkdir_umask && | |
436 | eval "\$doit_exec \$mkdirprog $prefixes") || | |
437 | test -d "$dstdir" || exit 1 | |
438 | obsolete_mkdir_used=true | |
439 | fi | |
440 | fi | |
441 | fi | |
442 | ||
443 | if test -n "$dir_arg"; then | |
444 | { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && | |
445 | { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && | |
446 | { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || | |
447 | test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 | |
448 | else | |
449 | ||
450 | # Make a couple of temp file names in the proper directory. | |
451 | dsttmp=${dstdirslash}_inst.$$_ | |
452 | rmtmp=${dstdirslash}_rm.$$_ | |
453 | ||
454 | # Trap to clean up those temp files at exit. | |
455 | trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 | |
456 | ||
457 | # Copy the file name to the temp name. | |
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") && | |
470 | ||
471 | # and set any options; do chmod last to preserve setuid bits. | |
472 | # | |
473 | # If any of these fail, we abort the whole thing. If we want to | |
474 | # ignore errors from any of these, just make sure not to ignore | |
475 | # errors from the above "$doit $cpprog $src $dsttmp" command. | |
476 | # | |
477 | { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && | |
478 | { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && | |
479 | { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && | |
480 | { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && | |
481 | ||
482 | # If -C, don't bother to copy if it wouldn't change the file. | |
483 | if $copy_on_change && | |
484 | old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && | |
485 | new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && | |
486 | set -f && | |
487 | set X $old && old=:$2:$4:$5:$6 && | |
488 | set X $new && new=:$2:$4:$5:$6 && | |
489 | set +f && | |
490 | test "$old" = "$new" && | |
491 | $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 | |
492 | then | |
493 | rm -f "$dsttmp" | |
494 | else | |
495 | # If $backupsuffix is set, and the file being installed | |
496 | # already exists, attempt a backup. Don't worry if it fails, | |
497 | # e.g., if mv doesn't support -f. | |
498 | if test -n "$backupsuffix" && test -f "$dst"; then | |
499 | $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null | |
500 | fi | |
501 | ||
502 | # Rename the file to the real destination. | |
503 | $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || | |
504 | ||
505 | # The rename failed, perhaps because mv can't rename something else | |
506 | # to itself, or perhaps because mv is so ancient that it does not | |
507 | # support -f. | |
508 | { | |
509 | # Now remove or move aside any old file at destination location. | |
510 | # We try this two ways since rm can't unlink itself on some | |
511 | # systems and the destination file might be busy for other | |
512 | # reasons. In this case, the final cleanup might fail but the new | |
513 | # file should still install successfully. | |
514 | { | |
515 | test ! -f "$dst" || | |
516 | $doit $rmcmd "$dst" 2>/dev/null || | |
517 | { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && | |
518 | { $doit $rmcmd "$rmtmp" 2>/dev/null; :; } | |
519 | } || | |
520 | { echo "$0: cannot unlink or rename $dst" >&2 | |
521 | (exit 1); exit 1 | |
522 | } | |
523 | } && | |
524 | ||
525 | # Now rename the file to the real destination. | |
526 | $doit $mvcmd "$dsttmp" "$dst" | |
527 | } | |
528 | fi || exit 1 | |
529 | ||
530 | trap '' 0 | |
531 | fi | |
532 | done | |
533 | ||
534 | # Local variables: | |
535 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
536 | # time-stamp-start: "scriptversion=" | |
537 | # time-stamp-format: "%:y-%02m-%02d.%02H" | |
538 | # time-stamp-time-zone: "UTC0" | |
539 | # time-stamp-end: "; # UTC" | |
540 | # End: |
0 | #! /bin/sh | |
1 | # Common wrapper for a few potentially missing GNU programs. | |
2 | ||
3 | scriptversion=2018-03-07.03; # UTC | |
4 | ||
5 | # Copyright (C) 1996-2021 Free Software Foundation, Inc. | |
6 | # Originally written by Fran,cois Pinard <[email protected]>, 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 <https://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 <[email protected]>." | |
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=https://www.perl.org/ | |
104 | flex_URL=https://github.com/westes/flex | |
105 | gnu_software_URL=https://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 'before-save-hook 'time-stamp) | |
210 | # time-stamp-start: "scriptversion=" | |
211 | # time-stamp-format: "%:y-%02m-%02d.%02H" | |
212 | # time-stamp-time-zone: "UTC0" | |
213 | # time-stamp-end: "; # UTC" | |
214 | # End: |
0 | # Makefile.in generated by automake 1.16.5 from Makefile.am. | |
1 | # @configure_input@ | |
2 | ||
3 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. | |
4 | ||
5 | # This Makefile.in is free software; the Free Software Foundation | |
6 | # gives unlimited permission to copy and/or distribute it, | |
7 | # with or without modifications, as long as this notice is preserved. | |
8 | ||
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
12 | # PARTICULAR PURPOSE. | |
13 | ||
14 | @SET_MAKE@ | |
15 | ||
16 | VPATH = @srcdir@ | |
17 | am__is_gnu_make = { \ | |
18 | if test -z '$(MAKELEVEL)'; then \ | |
19 | false; \ | |
20 | elif test -n '$(MAKE_HOST)'; then \ | |
21 | true; \ | |
22 | elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ | |
23 | true; \ | |
24 | else \ | |
25 | false; \ | |
26 | fi; \ | |
27 | } | |
28 | am__make_running_with_option = \ | |
29 | case $${target_option-} in \ | |
30 | ?) ;; \ | |
31 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
32 | "target option '$${target_option-}' specified" >&2; \ | |
33 | exit 1;; \ | |
34 | esac; \ | |
35 | has_opt=no; \ | |
36 | sane_makeflags=$$MAKEFLAGS; \ | |
37 | if $(am__is_gnu_make); then \ | |
38 | sane_makeflags=$$MFLAGS; \ | |
39 | else \ | |
40 | case $$MAKEFLAGS in \ | |
41 | *\\[\ \ ]*) \ | |
42 | bs=\\; \ | |
43 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
44 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
45 | esac; \ | |
46 | fi; \ | |
47 | skip_next=no; \ | |
48 | strip_trailopt () \ | |
49 | { \ | |
50 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
51 | }; \ | |
52 | for flg in $$sane_makeflags; do \ | |
53 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
54 | case $$flg in \ | |
55 | *=*|--*) continue;; \ | |
56 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
57 | -*I?*) strip_trailopt 'I';; \ | |
58 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
59 | -*O?*) strip_trailopt 'O';; \ | |
60 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
61 | -*l?*) strip_trailopt 'l';; \ | |
62 | -[dEDm]) skip_next=yes;; \ | |
63 | -[JT]) skip_next=yes;; \ | |
64 | esac; \ | |
65 | case $$flg in \ | |
66 | *$$target_option*) has_opt=yes; break;; \ | |
67 | esac; \ | |
68 | done; \ | |
69 | test $$has_opt = yes | |
70 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
71 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
72 | pkgdatadir = $(datadir)/@PACKAGE@ | |
73 | pkgincludedir = $(includedir)/@PACKAGE@ | |
74 | pkglibdir = $(libdir)/@PACKAGE@ | |
75 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | |
76 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | |
77 | install_sh_DATA = $(install_sh) -c -m 644 | |
78 | install_sh_PROGRAM = $(install_sh) -c | |
79 | install_sh_SCRIPT = $(install_sh) -c | |
80 | INSTALL_HEADER = $(INSTALL_DATA) | |
81 | transform = $(program_transform_name) | |
82 | NORMAL_INSTALL = : | |
83 | PRE_INSTALL = : | |
84 | POST_INSTALL = : | |
85 | NORMAL_UNINSTALL = : | |
86 | PRE_UNINSTALL = : | |
87 | POST_UNINSTALL = : | |
88 | build_triplet = @build@ | |
89 | host_triplet = @host@ | |
90 | bin_PROGRAMS = kal$(EXEEXT) | |
91 | subdir = src | |
92 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
93 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | |
94 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
95 | $(ACLOCAL_M4) | |
96 | DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) | |
97 | mkinstalldirs = $(install_sh) -d | |
98 | CONFIG_HEADER = $(top_builddir)/config.h | |
99 | CONFIG_CLEAN_FILES = | |
100 | CONFIG_CLEAN_VPATH_FILES = | |
101 | am__installdirs = "$(DESTDIR)$(bindir)" | |
102 | PROGRAMS = $(bin_PROGRAMS) | |
103 | am_kal_OBJECTS = kal-arfcn_freq.$(OBJEXT) kal-c0_detect.$(OBJEXT) \ | |
104 | kal-circular_buffer.$(OBJEXT) kal-fcch_detector.$(OBJEXT) \ | |
105 | kal-kal.$(OBJEXT) kal-offset.$(OBJEXT) \ | |
106 | kal-usrp_source.$(OBJEXT) kal-util.$(OBJEXT) | |
107 | kal_OBJECTS = $(am_kal_OBJECTS) | |
108 | am__DEPENDENCIES_1 = | |
109 | kal_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ | |
110 | $(am__DEPENDENCIES_1) | |
111 | kal_LINK = $(CXXLD) $(kal_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ | |
112 | $(LDFLAGS) -o $@ | |
113 | AM_V_P = $(am__v_P_@AM_V@) | |
114 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
115 | am__v_P_0 = false | |
116 | am__v_P_1 = : | |
117 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
118 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
119 | am__v_GEN_0 = @echo " GEN " $@; | |
120 | am__v_GEN_1 = | |
121 | AM_V_at = $(am__v_at_@AM_V@) | |
122 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
123 | am__v_at_0 = @ | |
124 | am__v_at_1 = | |
125 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | |
126 | depcomp = $(SHELL) $(top_srcdir)/depcomp | |
127 | am__maybe_remake_depfiles = depfiles | |
128 | am__depfiles_remade = ./$(DEPDIR)/kal-arfcn_freq.Po \ | |
129 | ./$(DEPDIR)/kal-c0_detect.Po \ | |
130 | ./$(DEPDIR)/kal-circular_buffer.Po \ | |
131 | ./$(DEPDIR)/kal-fcch_detector.Po ./$(DEPDIR)/kal-kal.Po \ | |
132 | ./$(DEPDIR)/kal-offset.Po ./$(DEPDIR)/kal-usrp_source.Po \ | |
133 | ./$(DEPDIR)/kal-util.Po | |
134 | am__mv = mv -f | |
135 | AM_V_lt = $(am__v_lt_@AM_V@) | |
136 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) | |
137 | am__v_lt_0 = --silent | |
138 | am__v_lt_1 = | |
139 | CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | |
140 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) | |
141 | AM_V_CXX = $(am__v_CXX_@AM_V@) | |
142 | am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) | |
143 | am__v_CXX_0 = @echo " CXX " $@; | |
144 | am__v_CXX_1 = | |
145 | CXXLD = $(CXX) | |
146 | CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ | |
147 | -o $@ | |
148 | AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) | |
149 | am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) | |
150 | am__v_CXXLD_0 = @echo " CXXLD " $@; | |
151 | am__v_CXXLD_1 = | |
152 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | |
153 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
154 | AM_V_CC = $(am__v_CC_@AM_V@) | |
155 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) | |
156 | am__v_CC_0 = @echo " CC " $@; | |
157 | am__v_CC_1 = | |
158 | CCLD = $(CC) | |
159 | LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | |
160 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) | |
161 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) | |
162 | am__v_CCLD_0 = @echo " CCLD " $@; | |
163 | am__v_CCLD_1 = | |
164 | SOURCES = $(kal_SOURCES) | |
165 | DIST_SOURCES = $(kal_SOURCES) | |
166 | am__can_run_installinfo = \ | |
167 | case $$AM_UPDATE_INFO_DIR in \ | |
168 | n|no|NO) false;; \ | |
169 | *) (install-info --version) >/dev/null 2>&1;; \ | |
170 | esac | |
171 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
172 | # Read a list of newline-separated strings from the standard input, | |
173 | # and print each of them once, without duplicates. Input order is | |
174 | # *not* preserved. | |
175 | am__uniquify_input = $(AWK) '\ | |
176 | BEGIN { nonempty = 0; } \ | |
177 | { items[$$0] = 1; nonempty = 1; } \ | |
178 | END { if (nonempty) { for (i in items) print i; }; } \ | |
179 | ' | |
180 | # Make sure the list of sources is unique. This is necessary because, | |
181 | # e.g., the same source file might be shared among _SOURCES variables | |
182 | # for different programs/libraries. | |
183 | am__define_uniq_tagged_files = \ | |
184 | list='$(am__tagged_files)'; \ | |
185 | unique=`for i in $$list; do \ | |
186 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
187 | done | $(am__uniquify_input)` | |
188 | am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp | |
189 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |
190 | ACLOCAL = @ACLOCAL@ | |
191 | AMTAR = @AMTAR@ | |
192 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | |
193 | AUTOCONF = @AUTOCONF@ | |
194 | AUTOHEADER = @AUTOHEADER@ | |
195 | AUTOMAKE = @AUTOMAKE@ | |
196 | AWK = @AWK@ | |
197 | CC = @CC@ | |
198 | CCDEPMODE = @CCDEPMODE@ | |
199 | CFLAGS = @CFLAGS@ | |
200 | CPPFLAGS = @CPPFLAGS@ | |
201 | CSCOPE = @CSCOPE@ | |
202 | CTAGS = @CTAGS@ | |
203 | CXX = @CXX@ | |
204 | CXXDEPMODE = @CXXDEPMODE@ | |
205 | CXXFLAGS = @CXXFLAGS@ | |
206 | CYGPATH_W = @CYGPATH_W@ | |
207 | DEFS = @DEFS@ | |
208 | DEPDIR = @DEPDIR@ | |
209 | ECHO_C = @ECHO_C@ | |
210 | ECHO_N = @ECHO_N@ | |
211 | ECHO_T = @ECHO_T@ | |
212 | ETAGS = @ETAGS@ | |
213 | EXEEXT = @EXEEXT@ | |
214 | FFTW3_CFLAGS = @FFTW3_CFLAGS@ | |
215 | FFTW3_LIBS = @FFTW3_LIBS@ | |
216 | INSTALL = @INSTALL@ | |
217 | INSTALL_DATA = @INSTALL_DATA@ | |
218 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
219 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
220 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
221 | LDFLAGS = @LDFLAGS@ | |
222 | LIBOBJS = @LIBOBJS@ | |
223 | LIBRTLSDR_CFLAGS = @LIBRTLSDR_CFLAGS@ | |
224 | LIBRTLSDR_LIBS = @LIBRTLSDR_LIBS@ | |
225 | LIBS = @LIBS@ | |
226 | LN_S = @LN_S@ | |
227 | LRT_FLAGS = @LRT_FLAGS@ | |
228 | LTLIBOBJS = @LTLIBOBJS@ | |
229 | MAKEINFO = @MAKEINFO@ | |
230 | MKDIR_P = @MKDIR_P@ | |
231 | OBJEXT = @OBJEXT@ | |
232 | PACKAGE = @PACKAGE@ | |
233 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
234 | PACKAGE_NAME = @PACKAGE_NAME@ | |
235 | PACKAGE_STRING = @PACKAGE_STRING@ | |
236 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
237 | PACKAGE_URL = @PACKAGE_URL@ | |
238 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
239 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
240 | PKG_CONFIG = @PKG_CONFIG@ | |
241 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
242 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
243 | POW_LIB = @POW_LIB@ | |
244 | RANLIB = @RANLIB@ | |
245 | SET_MAKE = @SET_MAKE@ | |
246 | SHELL = @SHELL@ | |
247 | STRIP = @STRIP@ | |
248 | VERSION = @VERSION@ | |
249 | abs_builddir = @abs_builddir@ | |
250 | abs_srcdir = @abs_srcdir@ | |
251 | abs_top_builddir = @abs_top_builddir@ | |
252 | abs_top_srcdir = @abs_top_srcdir@ | |
253 | ac_ct_CC = @ac_ct_CC@ | |
254 | ac_ct_CXX = @ac_ct_CXX@ | |
255 | am__include = @am__include@ | |
256 | am__leading_dot = @am__leading_dot@ | |
257 | am__quote = @am__quote@ | |
258 | am__tar = @am__tar@ | |
259 | am__untar = @am__untar@ | |
260 | bindir = @bindir@ | |
261 | build = @build@ | |
262 | build_alias = @build_alias@ | |
263 | build_cpu = @build_cpu@ | |
264 | build_os = @build_os@ | |
265 | build_vendor = @build_vendor@ | |
266 | builddir = @builddir@ | |
267 | datadir = @datadir@ | |
268 | datarootdir = @datarootdir@ | |
269 | docdir = @docdir@ | |
270 | dvidir = @dvidir@ | |
271 | exec_prefix = @exec_prefix@ | |
272 | host = @host@ | |
273 | host_alias = @host_alias@ | |
274 | host_cpu = @host_cpu@ | |
275 | host_os = @host_os@ | |
276 | host_vendor = @host_vendor@ | |
277 | htmldir = @htmldir@ | |
278 | includedir = @includedir@ | |
279 | infodir = @infodir@ | |
280 | install_sh = @install_sh@ | |
281 | libdir = @libdir@ | |
282 | libexecdir = @libexecdir@ | |
283 | localedir = @localedir@ | |
284 | localstatedir = @localstatedir@ | |
285 | mandir = @mandir@ | |
286 | mkdir_p = @mkdir_p@ | |
287 | oldincludedir = @oldincludedir@ | |
288 | pdfdir = @pdfdir@ | |
289 | prefix = @prefix@ | |
290 | program_transform_name = @program_transform_name@ | |
291 | psdir = @psdir@ | |
292 | runstatedir = @runstatedir@ | |
293 | sbindir = @sbindir@ | |
294 | sharedstatedir = @sharedstatedir@ | |
295 | srcdir = @srcdir@ | |
296 | sysconfdir = @sysconfdir@ | |
297 | target_alias = @target_alias@ | |
298 | top_build_prefix = @top_build_prefix@ | |
299 | top_builddir = @top_builddir@ | |
300 | top_srcdir = @top_srcdir@ | |
301 | kal_SOURCES = \ | |
302 | arfcn_freq.cc \ | |
303 | c0_detect.cc \ | |
304 | circular_buffer.cc \ | |
305 | fcch_detector.cc \ | |
306 | kal.cc \ | |
307 | offset.cc \ | |
308 | usrp_source.cc \ | |
309 | util.cc\ | |
310 | arfcn_freq.h \ | |
311 | c0_detect.h \ | |
312 | circular_buffer.h \ | |
313 | fcch_detector.h \ | |
314 | offset.h \ | |
315 | usrp_complex.h \ | |
316 | usrp_source.h \ | |
317 | util.h\ | |
318 | version.h | |
319 | ||
320 | kal_CXXFLAGS = $(FFTW3_CFLAGS) $(LIBRTLSDR_CFLAGS) | |
321 | kal_LDADD = $(FFTW3_LIBS) $(LIBRTLSDR_LIBS) $(LRT_FLAGS) | |
322 | all: all-am | |
323 | ||
324 | .SUFFIXES: | |
325 | .SUFFIXES: .cc .o .obj | |
326 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | |
327 | @for dep in $?; do \ | |
328 | case '$(am__configure_deps)' in \ | |
329 | *$$dep*) \ | |
330 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | |
331 | && { if test -f $@; then exit 0; else break; fi; }; \ | |
332 | exit 1;; \ | |
333 | esac; \ | |
334 | done; \ | |
335 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ | |
336 | $(am__cd) $(top_srcdir) && \ | |
337 | $(AUTOMAKE) --gnu src/Makefile | |
338 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
339 | @case '$?' in \ | |
340 | *config.status*) \ | |
341 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | |
342 | *) \ | |
343 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ | |
344 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ | |
345 | esac; | |
346 | ||
347 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
348 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | |
349 | ||
350 | $(top_srcdir)/configure: $(am__configure_deps) | |
351 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | |
352 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | |
353 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | |
354 | $(am__aclocal_m4_deps): | |
355 | install-binPROGRAMS: $(bin_PROGRAMS) | |
356 | @$(NORMAL_INSTALL) | |
357 | @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ | |
358 | if test -n "$$list"; then \ | |
359 | echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ | |
360 | $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ | |
361 | fi; \ | |
362 | for p in $$list; do echo "$$p $$p"; done | \ | |
363 | sed 's/$(EXEEXT)$$//' | \ | |
364 | while read p p1; do if test -f $$p \ | |
365 | ; then echo "$$p"; echo "$$p"; else :; fi; \ | |
366 | done | \ | |
367 | sed -e 'p;s,.*/,,;n;h' \ | |
368 | -e 's|.*|.|' \ | |
369 | -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ | |
370 | sed 'N;N;N;s,\n, ,g' | \ | |
371 | $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ | |
372 | { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ | |
373 | if ($$2 == $$4) files[d] = files[d] " " $$1; \ | |
374 | else { print "f", $$3 "/" $$4, $$1; } } \ | |
375 | END { for (d in files) print "f", d, files[d] }' | \ | |
376 | while read type dir files; do \ | |
377 | if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ | |
378 | test -z "$$files" || { \ | |
379 | echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ | |
380 | $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ | |
381 | } \ | |
382 | ; done | |
383 | ||
384 | uninstall-binPROGRAMS: | |
385 | @$(NORMAL_UNINSTALL) | |
386 | @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ | |
387 | files=`for p in $$list; do echo "$$p"; done | \ | |
388 | sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ | |
389 | -e 's/$$/$(EXEEXT)/' \ | |
390 | `; \ | |
391 | test -n "$$list" || exit 0; \ | |
392 | echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ | |
393 | cd "$(DESTDIR)$(bindir)" && rm -f $$files | |
394 | ||
395 | clean-binPROGRAMS: | |
396 | -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) | |
397 | ||
398 | kal$(EXEEXT): $(kal_OBJECTS) $(kal_DEPENDENCIES) $(EXTRA_kal_DEPENDENCIES) | |
399 | @rm -f kal$(EXEEXT) | |
400 | $(AM_V_CXXLD)$(kal_LINK) $(kal_OBJECTS) $(kal_LDADD) $(LIBS) | |
401 | ||
402 | mostlyclean-compile: | |
403 | -rm -f *.$(OBJEXT) | |
404 | ||
405 | distclean-compile: | |
406 | -rm -f *.tab.c | |
407 | ||
408 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kal-arfcn_freq.Po@am__quote@ # am--include-marker | |
409 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kal-c0_detect.Po@am__quote@ # am--include-marker | |
410 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kal-circular_buffer.Po@am__quote@ # am--include-marker | |
411 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kal-fcch_detector.Po@am__quote@ # am--include-marker | |
412 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kal-kal.Po@am__quote@ # am--include-marker | |
413 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kal-offset.Po@am__quote@ # am--include-marker | |
414 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kal-usrp_source.Po@am__quote@ # am--include-marker | |
415 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kal-util.Po@am__quote@ # am--include-marker | |
416 | ||
417 | $(am__depfiles_remade): | |
418 | @$(MKDIR_P) $(@D) | |
419 | @echo '# dummy' >$@-t && $(am__mv) $@-t $@ | |
420 | ||
421 | am--depfiles: $(am__depfiles_remade) | |
422 | ||
423 | .cc.o: | |
424 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |
425 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
426 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
427 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
428 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< | |
429 | ||
430 | .cc.obj: | |
431 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | |
432 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
433 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
434 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
435 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` | |
436 | ||
437 | kal-arfcn_freq.o: arfcn_freq.cc | |
438 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-arfcn_freq.o -MD -MP -MF $(DEPDIR)/kal-arfcn_freq.Tpo -c -o kal-arfcn_freq.o `test -f 'arfcn_freq.cc' || echo '$(srcdir)/'`arfcn_freq.cc | |
439 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-arfcn_freq.Tpo $(DEPDIR)/kal-arfcn_freq.Po | |
440 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arfcn_freq.cc' object='kal-arfcn_freq.o' libtool=no @AMDEPBACKSLASH@ | |
441 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
442 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-arfcn_freq.o `test -f 'arfcn_freq.cc' || echo '$(srcdir)/'`arfcn_freq.cc | |
443 | ||
444 | kal-arfcn_freq.obj: arfcn_freq.cc | |
445 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-arfcn_freq.obj -MD -MP -MF $(DEPDIR)/kal-arfcn_freq.Tpo -c -o kal-arfcn_freq.obj `if test -f 'arfcn_freq.cc'; then $(CYGPATH_W) 'arfcn_freq.cc'; else $(CYGPATH_W) '$(srcdir)/arfcn_freq.cc'; fi` | |
446 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-arfcn_freq.Tpo $(DEPDIR)/kal-arfcn_freq.Po | |
447 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arfcn_freq.cc' object='kal-arfcn_freq.obj' libtool=no @AMDEPBACKSLASH@ | |
448 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
449 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-arfcn_freq.obj `if test -f 'arfcn_freq.cc'; then $(CYGPATH_W) 'arfcn_freq.cc'; else $(CYGPATH_W) '$(srcdir)/arfcn_freq.cc'; fi` | |
450 | ||
451 | kal-c0_detect.o: c0_detect.cc | |
452 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-c0_detect.o -MD -MP -MF $(DEPDIR)/kal-c0_detect.Tpo -c -o kal-c0_detect.o `test -f 'c0_detect.cc' || echo '$(srcdir)/'`c0_detect.cc | |
453 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-c0_detect.Tpo $(DEPDIR)/kal-c0_detect.Po | |
454 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='c0_detect.cc' object='kal-c0_detect.o' libtool=no @AMDEPBACKSLASH@ | |
455 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
456 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-c0_detect.o `test -f 'c0_detect.cc' || echo '$(srcdir)/'`c0_detect.cc | |
457 | ||
458 | kal-c0_detect.obj: c0_detect.cc | |
459 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-c0_detect.obj -MD -MP -MF $(DEPDIR)/kal-c0_detect.Tpo -c -o kal-c0_detect.obj `if test -f 'c0_detect.cc'; then $(CYGPATH_W) 'c0_detect.cc'; else $(CYGPATH_W) '$(srcdir)/c0_detect.cc'; fi` | |
460 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-c0_detect.Tpo $(DEPDIR)/kal-c0_detect.Po | |
461 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='c0_detect.cc' object='kal-c0_detect.obj' libtool=no @AMDEPBACKSLASH@ | |
462 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
463 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-c0_detect.obj `if test -f 'c0_detect.cc'; then $(CYGPATH_W) 'c0_detect.cc'; else $(CYGPATH_W) '$(srcdir)/c0_detect.cc'; fi` | |
464 | ||
465 | kal-circular_buffer.o: circular_buffer.cc | |
466 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-circular_buffer.o -MD -MP -MF $(DEPDIR)/kal-circular_buffer.Tpo -c -o kal-circular_buffer.o `test -f 'circular_buffer.cc' || echo '$(srcdir)/'`circular_buffer.cc | |
467 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-circular_buffer.Tpo $(DEPDIR)/kal-circular_buffer.Po | |
468 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='circular_buffer.cc' object='kal-circular_buffer.o' libtool=no @AMDEPBACKSLASH@ | |
469 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
470 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-circular_buffer.o `test -f 'circular_buffer.cc' || echo '$(srcdir)/'`circular_buffer.cc | |
471 | ||
472 | kal-circular_buffer.obj: circular_buffer.cc | |
473 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-circular_buffer.obj -MD -MP -MF $(DEPDIR)/kal-circular_buffer.Tpo -c -o kal-circular_buffer.obj `if test -f 'circular_buffer.cc'; then $(CYGPATH_W) 'circular_buffer.cc'; else $(CYGPATH_W) '$(srcdir)/circular_buffer.cc'; fi` | |
474 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-circular_buffer.Tpo $(DEPDIR)/kal-circular_buffer.Po | |
475 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='circular_buffer.cc' object='kal-circular_buffer.obj' libtool=no @AMDEPBACKSLASH@ | |
476 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
477 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-circular_buffer.obj `if test -f 'circular_buffer.cc'; then $(CYGPATH_W) 'circular_buffer.cc'; else $(CYGPATH_W) '$(srcdir)/circular_buffer.cc'; fi` | |
478 | ||
479 | kal-fcch_detector.o: fcch_detector.cc | |
480 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-fcch_detector.o -MD -MP -MF $(DEPDIR)/kal-fcch_detector.Tpo -c -o kal-fcch_detector.o `test -f 'fcch_detector.cc' || echo '$(srcdir)/'`fcch_detector.cc | |
481 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-fcch_detector.Tpo $(DEPDIR)/kal-fcch_detector.Po | |
482 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='fcch_detector.cc' object='kal-fcch_detector.o' libtool=no @AMDEPBACKSLASH@ | |
483 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
484 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-fcch_detector.o `test -f 'fcch_detector.cc' || echo '$(srcdir)/'`fcch_detector.cc | |
485 | ||
486 | kal-fcch_detector.obj: fcch_detector.cc | |
487 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-fcch_detector.obj -MD -MP -MF $(DEPDIR)/kal-fcch_detector.Tpo -c -o kal-fcch_detector.obj `if test -f 'fcch_detector.cc'; then $(CYGPATH_W) 'fcch_detector.cc'; else $(CYGPATH_W) '$(srcdir)/fcch_detector.cc'; fi` | |
488 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-fcch_detector.Tpo $(DEPDIR)/kal-fcch_detector.Po | |
489 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='fcch_detector.cc' object='kal-fcch_detector.obj' libtool=no @AMDEPBACKSLASH@ | |
490 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
491 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-fcch_detector.obj `if test -f 'fcch_detector.cc'; then $(CYGPATH_W) 'fcch_detector.cc'; else $(CYGPATH_W) '$(srcdir)/fcch_detector.cc'; fi` | |
492 | ||
493 | kal-kal.o: kal.cc | |
494 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-kal.o -MD -MP -MF $(DEPDIR)/kal-kal.Tpo -c -o kal-kal.o `test -f 'kal.cc' || echo '$(srcdir)/'`kal.cc | |
495 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-kal.Tpo $(DEPDIR)/kal-kal.Po | |
496 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='kal.cc' object='kal-kal.o' libtool=no @AMDEPBACKSLASH@ | |
497 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
498 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-kal.o `test -f 'kal.cc' || echo '$(srcdir)/'`kal.cc | |
499 | ||
500 | kal-kal.obj: kal.cc | |
501 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-kal.obj -MD -MP -MF $(DEPDIR)/kal-kal.Tpo -c -o kal-kal.obj `if test -f 'kal.cc'; then $(CYGPATH_W) 'kal.cc'; else $(CYGPATH_W) '$(srcdir)/kal.cc'; fi` | |
502 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-kal.Tpo $(DEPDIR)/kal-kal.Po | |
503 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='kal.cc' object='kal-kal.obj' libtool=no @AMDEPBACKSLASH@ | |
504 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
505 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-kal.obj `if test -f 'kal.cc'; then $(CYGPATH_W) 'kal.cc'; else $(CYGPATH_W) '$(srcdir)/kal.cc'; fi` | |
506 | ||
507 | kal-offset.o: offset.cc | |
508 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-offset.o -MD -MP -MF $(DEPDIR)/kal-offset.Tpo -c -o kal-offset.o `test -f 'offset.cc' || echo '$(srcdir)/'`offset.cc | |
509 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-offset.Tpo $(DEPDIR)/kal-offset.Po | |
510 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='offset.cc' object='kal-offset.o' libtool=no @AMDEPBACKSLASH@ | |
511 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
512 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-offset.o `test -f 'offset.cc' || echo '$(srcdir)/'`offset.cc | |
513 | ||
514 | kal-offset.obj: offset.cc | |
515 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-offset.obj -MD -MP -MF $(DEPDIR)/kal-offset.Tpo -c -o kal-offset.obj `if test -f 'offset.cc'; then $(CYGPATH_W) 'offset.cc'; else $(CYGPATH_W) '$(srcdir)/offset.cc'; fi` | |
516 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-offset.Tpo $(DEPDIR)/kal-offset.Po | |
517 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='offset.cc' object='kal-offset.obj' libtool=no @AMDEPBACKSLASH@ | |
518 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
519 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-offset.obj `if test -f 'offset.cc'; then $(CYGPATH_W) 'offset.cc'; else $(CYGPATH_W) '$(srcdir)/offset.cc'; fi` | |
520 | ||
521 | kal-usrp_source.o: usrp_source.cc | |
522 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-usrp_source.o -MD -MP -MF $(DEPDIR)/kal-usrp_source.Tpo -c -o kal-usrp_source.o `test -f 'usrp_source.cc' || echo '$(srcdir)/'`usrp_source.cc | |
523 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-usrp_source.Tpo $(DEPDIR)/kal-usrp_source.Po | |
524 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='usrp_source.cc' object='kal-usrp_source.o' libtool=no @AMDEPBACKSLASH@ | |
525 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
526 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-usrp_source.o `test -f 'usrp_source.cc' || echo '$(srcdir)/'`usrp_source.cc | |
527 | ||
528 | kal-usrp_source.obj: usrp_source.cc | |
529 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-usrp_source.obj -MD -MP -MF $(DEPDIR)/kal-usrp_source.Tpo -c -o kal-usrp_source.obj `if test -f 'usrp_source.cc'; then $(CYGPATH_W) 'usrp_source.cc'; else $(CYGPATH_W) '$(srcdir)/usrp_source.cc'; fi` | |
530 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-usrp_source.Tpo $(DEPDIR)/kal-usrp_source.Po | |
531 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='usrp_source.cc' object='kal-usrp_source.obj' libtool=no @AMDEPBACKSLASH@ | |
532 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
533 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-usrp_source.obj `if test -f 'usrp_source.cc'; then $(CYGPATH_W) 'usrp_source.cc'; else $(CYGPATH_W) '$(srcdir)/usrp_source.cc'; fi` | |
534 | ||
535 | kal-util.o: util.cc | |
536 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-util.o -MD -MP -MF $(DEPDIR)/kal-util.Tpo -c -o kal-util.o `test -f 'util.cc' || echo '$(srcdir)/'`util.cc | |
537 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-util.Tpo $(DEPDIR)/kal-util.Po | |
538 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='util.cc' object='kal-util.o' libtool=no @AMDEPBACKSLASH@ | |
539 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
540 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-util.o `test -f 'util.cc' || echo '$(srcdir)/'`util.cc | |
541 | ||
542 | kal-util.obj: util.cc | |
543 | @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -MT kal-util.obj -MD -MP -MF $(DEPDIR)/kal-util.Tpo -c -o kal-util.obj `if test -f 'util.cc'; then $(CYGPATH_W) 'util.cc'; else $(CYGPATH_W) '$(srcdir)/util.cc'; fi` | |
544 | @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/kal-util.Tpo $(DEPDIR)/kal-util.Po | |
545 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='util.cc' object='kal-util.obj' libtool=no @AMDEPBACKSLASH@ | |
546 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
547 | @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kal_CXXFLAGS) $(CXXFLAGS) -c -o kal-util.obj `if test -f 'util.cc'; then $(CYGPATH_W) 'util.cc'; else $(CYGPATH_W) '$(srcdir)/util.cc'; fi` | |
548 | ||
549 | ID: $(am__tagged_files) | |
550 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
551 | tags: tags-am | |
552 | TAGS: tags | |
553 | ||
554 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
555 | set x; \ | |
556 | here=`pwd`; \ | |
557 | $(am__define_uniq_tagged_files); \ | |
558 | shift; \ | |
559 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | |
560 | test -n "$$unique" || unique=$$empty_fix; \ | |
561 | if test $$# -gt 0; then \ | |
562 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
563 | "$$@" $$unique; \ | |
564 | else \ | |
565 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
566 | $$unique; \ | |
567 | fi; \ | |
568 | fi | |
569 | ctags: ctags-am | |
570 | ||
571 | CTAGS: ctags | |
572 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
573 | $(am__define_uniq_tagged_files); \ | |
574 | test -z "$(CTAGS_ARGS)$$unique" \ | |
575 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | |
576 | $$unique | |
577 | ||
578 | GTAGS: | |
579 | here=`$(am__cd) $(top_builddir) && pwd` \ | |
580 | && $(am__cd) $(top_srcdir) \ | |
581 | && gtags -i $(GTAGS_ARGS) "$$here" | |
582 | cscopelist: cscopelist-am | |
583 | ||
584 | cscopelist-am: $(am__tagged_files) | |
585 | list='$(am__tagged_files)'; \ | |
586 | case "$(srcdir)" in \ | |
587 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
588 | *) sdir=$(subdir)/$(srcdir) ;; \ | |
589 | esac; \ | |
590 | for i in $$list; do \ | |
591 | if test -f "$$i"; then \ | |
592 | echo "$(subdir)/$$i"; \ | |
593 | else \ | |
594 | echo "$$sdir/$$i"; \ | |
595 | fi; \ | |
596 | done >> $(top_builddir)/cscope.files | |
597 | ||
598 | distclean-tags: | |
599 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | |
600 | distdir: $(BUILT_SOURCES) | |
601 | $(MAKE) $(AM_MAKEFLAGS) distdir-am | |
602 | ||
603 | distdir-am: $(DISTFILES) | |
604 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
605 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
606 | list='$(DISTFILES)'; \ | |
607 | dist_files=`for file in $$list; do echo $$file; done | \ | |
608 | sed -e "s|^$$srcdirstrip/||;t" \ | |
609 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |
610 | case $$dist_files in \ | |
611 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | |
612 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |
613 | sort -u` ;; \ | |
614 | esac; \ | |
615 | for file in $$dist_files; do \ | |
616 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | |
617 | if test -d $$d/$$file; then \ | |
618 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |
619 | if test -d "$(distdir)/$$file"; then \ | |
620 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
621 | fi; \ | |
622 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | |
623 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | |
624 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
625 | fi; \ | |
626 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | |
627 | else \ | |
628 | test -f "$(distdir)/$$file" \ | |
629 | || cp -p $$d/$$file "$(distdir)/$$file" \ | |
630 | || exit 1; \ | |
631 | fi; \ | |
632 | done | |
633 | check-am: all-am | |
634 | check: check-am | |
635 | all-am: Makefile $(PROGRAMS) | |
636 | installdirs: | |
637 | for dir in "$(DESTDIR)$(bindir)"; do \ | |
638 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | |
639 | done | |
640 | install: install-am | |
641 | install-exec: install-exec-am | |
642 | install-data: install-data-am | |
643 | uninstall: uninstall-am | |
644 | ||
645 | install-am: all-am | |
646 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
647 | ||
648 | installcheck: installcheck-am | |
649 | install-strip: | |
650 | if test -z '$(STRIP)'; then \ | |
651 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
652 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
653 | install; \ | |
654 | else \ | |
655 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
656 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
657 | "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | |
658 | fi | |
659 | mostlyclean-generic: | |
660 | ||
661 | clean-generic: | |
662 | ||
663 | distclean-generic: | |
664 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
665 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | |
666 | ||
667 | maintainer-clean-generic: | |
668 | @echo "This command is intended for maintainers to use" | |
669 | @echo "it deletes files that may require special tools to rebuild." | |
670 | clean: clean-am | |
671 | ||
672 | clean-am: clean-binPROGRAMS clean-generic mostlyclean-am | |
673 | ||
674 | distclean: distclean-am | |
675 | -rm -f ./$(DEPDIR)/kal-arfcn_freq.Po | |
676 | -rm -f ./$(DEPDIR)/kal-c0_detect.Po | |
677 | -rm -f ./$(DEPDIR)/kal-circular_buffer.Po | |
678 | -rm -f ./$(DEPDIR)/kal-fcch_detector.Po | |
679 | -rm -f ./$(DEPDIR)/kal-kal.Po | |
680 | -rm -f ./$(DEPDIR)/kal-offset.Po | |
681 | -rm -f ./$(DEPDIR)/kal-usrp_source.Po | |
682 | -rm -f ./$(DEPDIR)/kal-util.Po | |
683 | -rm -f Makefile | |
684 | distclean-am: clean-am distclean-compile distclean-generic \ | |
685 | distclean-tags | |
686 | ||
687 | dvi: dvi-am | |
688 | ||
689 | dvi-am: | |
690 | ||
691 | html: html-am | |
692 | ||
693 | html-am: | |
694 | ||
695 | info: info-am | |
696 | ||
697 | info-am: | |
698 | ||
699 | install-data-am: | |
700 | ||
701 | install-dvi: install-dvi-am | |
702 | ||
703 | install-dvi-am: | |
704 | ||
705 | install-exec-am: install-binPROGRAMS | |
706 | ||
707 | install-html: install-html-am | |
708 | ||
709 | install-html-am: | |
710 | ||
711 | install-info: install-info-am | |
712 | ||
713 | install-info-am: | |
714 | ||
715 | install-man: | |
716 | ||
717 | install-pdf: install-pdf-am | |
718 | ||
719 | install-pdf-am: | |
720 | ||
721 | install-ps: install-ps-am | |
722 | ||
723 | install-ps-am: | |
724 | ||
725 | installcheck-am: | |
726 | ||
727 | maintainer-clean: maintainer-clean-am | |
728 | -rm -f ./$(DEPDIR)/kal-arfcn_freq.Po | |
729 | -rm -f ./$(DEPDIR)/kal-c0_detect.Po | |
730 | -rm -f ./$(DEPDIR)/kal-circular_buffer.Po | |
731 | -rm -f ./$(DEPDIR)/kal-fcch_detector.Po | |
732 | -rm -f ./$(DEPDIR)/kal-kal.Po | |
733 | -rm -f ./$(DEPDIR)/kal-offset.Po | |
734 | -rm -f ./$(DEPDIR)/kal-usrp_source.Po | |
735 | -rm -f ./$(DEPDIR)/kal-util.Po | |
736 | -rm -f Makefile | |
737 | maintainer-clean-am: distclean-am maintainer-clean-generic | |
738 | ||
739 | mostlyclean: mostlyclean-am | |
740 | ||
741 | mostlyclean-am: mostlyclean-compile mostlyclean-generic | |
742 | ||
743 | pdf: pdf-am | |
744 | ||
745 | pdf-am: | |
746 | ||
747 | ps: ps-am | |
748 | ||
749 | ps-am: | |
750 | ||
751 | uninstall-am: uninstall-binPROGRAMS | |
752 | ||
753 | .MAKE: install-am install-strip | |
754 | ||
755 | .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ | |
756 | clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \ | |
757 | distclean distclean-compile distclean-generic distclean-tags \ | |
758 | distdir dvi dvi-am html html-am info info-am install \ | |
759 | install-am install-binPROGRAMS install-data install-data-am \ | |
760 | install-dvi install-dvi-am install-exec install-exec-am \ | |
761 | install-html install-html-am install-info install-info-am \ | |
762 | install-man install-pdf install-pdf-am install-ps \ | |
763 | install-ps-am install-strip installcheck installcheck-am \ | |
764 | installdirs maintainer-clean maintainer-clean-generic \ | |
765 | mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \ | |
766 | ps ps-am tags tags-am uninstall uninstall-am \ | |
767 | uninstall-binPROGRAMS | |
768 | ||
769 | .PRECIOUS: Makefile | |
770 | ||
771 | ||
772 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
773 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
774 | .NOEXPORT: |