xlogo 1.0.5.
Timo Aaltonen
4 years ago
15 | 15 | * xclock 1.0.9. |
16 | 16 | * xcursorgen 1.0.7. |
17 | 17 | * xditview 1.0.5. |
18 | * xlogo 1.0.5. | |
18 | 19 | |
19 | 20 | -- Julien Cristau <jcristau@debian.org> Sun, 18 Mar 2018 17:10:35 +0100 |
20 | 21 |
0 | commit 793ce3bb509853c4fab8e04a38ba7ec752176a27 | |
1 | Author: Alan Coopersmith <alan.coopersmith@oracle.com> | |
2 | Date: Sun Mar 3 12:20:21 2019 -0800 | |
3 | ||
4 | xlogo 1.0.5 | |
5 | ||
6 | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> | |
7 | ||
8 | commit 24af373f14cc666285a46b7c8eb6540781c6f519 | |
9 | Author: Alan Coopersmith <alan.coopersmith@oracle.com> | |
10 | Date: Sun Feb 24 14:05:06 2019 -0800 | |
11 | ||
12 | xlogo should not require hitting *both* q and Escape to quit | |
13 | ||
14 | Fixes: https://gitlab.freedesktop.org/xorg/app/xlogo/issues/1 | |
15 | Introduced by commit 28ffd14fbae70a5e01cdcbe2cb9342d3c8816b76 | |
16 | ||
17 | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> | |
18 | ||
19 | commit 66ea3f5a4df0ade8bb95e1772102d98e875c2893 | |
20 | Author: Alan Coopersmith <alan.coopersmith@oracle.com> | |
21 | Date: Wed Nov 21 17:13:17 2018 -0800 | |
22 | ||
23 | Update configure.ac bug URL for gitlab migration | |
24 | ||
25 | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> | |
26 | ||
27 | commit 809e3882d90056eadb1c2cd4acac40b3f4d04345 | |
28 | Author: Alan Coopersmith <alan.coopersmith@oracle.com> | |
29 | Date: Fri Nov 16 22:32:48 2018 -0800 | |
30 | ||
31 | Update README for gitlab migration | |
32 | ||
33 | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> | |
34 | ||
35 | commit bbe0915ba7fdc3c82c03c8db4926c7ec58b62852 | |
36 | Author: Mihail Konev <k.mvc@ya.ru> | |
37 | Date: Thu Jan 26 14:00:21 2017 +1000 | |
38 | ||
39 | autogen: add default patch prefix | |
40 | ||
41 | Signed-off-by: Mihail Konev <k.mvc@ya.ru> | |
42 | ||
43 | commit b2f5c520a7e382e7e823e07e41a953b3325bf89a | |
44 | Author: Emil Velikov <emil.l.velikov@gmail.com> | |
45 | Date: Mon Mar 9 12:00:52 2015 +0000 | |
46 | ||
47 | autogen.sh: use quoted string variables | |
48 | ||
49 | Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent | |
50 | fall-outs, when they contain space. | |
51 | ||
52 | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> | |
53 | Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> | |
54 | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> | |
55 | ||
56 | commit 98d403a4efa3dc388fe21aaebba367b4f80453aa | |
57 | Author: Peter Hutterer <peter.hutterer@who-t.net> | |
58 | Date: Tue Jan 24 10:32:07 2017 +1000 | |
59 | ||
60 | autogen.sh: use exec instead of waiting for configure to finish | |
61 | ||
62 | Syncs the invocation of configure with the one from the server. | |
63 | ||
64 | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> | |
65 | Reviewed-by: Emil Velikov <emil.velikov@collabora.com> | |
66 | ||
67 | commit d4c214ff65ec98989335642780890f1b3fd580db | |
68 | Author: Alan Coopersmith <alan.coopersmith@oracle.com> | |
69 | Date: Sat May 31 22:24:37 2014 -0700 | |
70 | ||
71 | config: Add missing AC_CONFIG_SRCDIR | |
72 | ||
73 | Regroup AC statements under the Autoconf initialization section. | |
74 | Regroup AM statements under the Automake initialization section. | |
75 | ||
76 | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> | |
77 | ||
78 | commit 4ecb39ce273745f29bd4c310bdce9d75761e96f9 | |
79 | Author: Alan Coopersmith <alan.coopersmith@oracle.com> | |
80 | Date: Sat May 31 21:39:32 2014 -0700 | |
81 | ||
82 | autogen.sh: Honor NOCONFIGURE=1 | |
83 | ||
84 | See http://people.gnome.org/~walters/docs/build-api.txt | |
85 | ||
86 | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> | |
87 | ||
88 | commit 376d7eeb080af8f03f9940ea40f5ca59bad561bf | |
89 | Author: Alan Coopersmith <alan.coopersmith@oracle.com> | |
90 | Date: Sat May 31 21:38:41 2014 -0700 | |
91 | ||
92 | configure: Drop AM_MAINTAINER_MODE | |
93 | ||
94 | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> | |
95 | ||
96 | commit 84c0386d7c3db6307566219cbe7fe58d9587585a | |
97 | Author: Eric S. Raymond <esr@thyrsus.com> | |
98 | Date: Thu Aug 23 12:17:12 2012 -0400 | |
99 | ||
100 | Eliminate use of tab stops. Helps with structural translation to DocBook. | |
101 | ||
102 | Signed-off-by: Eric S. Raymond <esr@thyrsus.com> | |
103 | ||
0 | 104 | commit 81f58b56464520fde4e64c0764bc58d5d197b849 |
1 | 105 | Author: Alan Coopersmith <alan.coopersmith@oracle.com> |
2 | 106 | Date: Thu Mar 22 22:49:50 2012 -0700 |
0 | 0 | Installation Instructions |
1 | 1 | ************************* |
2 | 2 | |
3 | Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, | |
4 | 2006, 2007, 2008 Free Software Foundation, Inc. | |
5 | ||
6 | This file is free documentation; the Free Software Foundation gives | |
7 | unlimited permission to copy, distribute and modify it. | |
3 | Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation, | |
4 | 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. | |
8 | 10 | |
9 | 11 | Basic Installation |
10 | 12 | ================== |
12 | 14 | Briefly, the shell commands `./configure; make; make install' should |
13 | 15 | configure, build, and install this package. The following |
14 | 16 | more-detailed instructions are generic; see the `README' file for |
15 | instructions specific to this package. | |
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. | |
16 | 22 | |
17 | 23 | The `configure' shell script attempts to guess correct values for |
18 | 24 | various system-dependent variables used during compilation. It uses |
41 | 47 | you want to change it or regenerate `configure' using a newer version |
42 | 48 | of `autoconf'. |
43 | 49 | |
44 | The simplest way to compile this package is: | |
50 | The simplest way to compile this package is: | |
45 | 51 | |
46 | 52 | 1. `cd' to the directory containing the package's source code and type |
47 | 53 | `./configure' to configure the package for your system. |
52 | 58 | 2. Type `make' to compile the package. |
53 | 59 | |
54 | 60 | 3. Optionally, type `make check' to run any self-tests that come with |
55 | the package. | |
61 | the package, generally using the just-built uninstalled binaries. | |
56 | 62 | |
57 | 63 | 4. Type `make install' to install the programs and any data files and |
58 | documentation. | |
59 | ||
60 | 5. You can remove the program binaries and object files from the | |
64 | documentation. When installing into a prefix owned by root, it is | |
65 | recommended that the package be configured and built as a regular | |
66 | user, and only the `make install' phase executed with root | |
67 | privileges. | |
68 | ||
69 | 5. Optionally, type `make installcheck' to repeat any self-tests, but | |
70 | this time using the binaries in their final installed location. | |
71 | This target does not install anything. Running this target as a | |
72 | regular user, particularly if the prior `make install' required | |
73 | root privileges, verifies that the installation completed | |
74 | correctly. | |
75 | ||
76 | 6. You can remove the program binaries and object files from the | |
61 | 77 | source code directory by typing `make clean'. To also remove the |
62 | 78 | files that `configure' created (so you can compile the package for |
63 | 79 | a different kind of computer), type `make distclean'. There is |
66 | 82 | all sorts of other programs in order to regenerate files that came |
67 | 83 | with the distribution. |
68 | 84 | |
69 | 6. Often, you can also type `make uninstall' to remove the installed | |
70 | files again. | |
85 | 7. Often, you can also type `make uninstall' to remove the installed | |
86 | files again. In practice, not all packages have tested that | |
87 | uninstallation works correctly, even though it is required by the | |
88 | GNU Coding Standards. | |
89 | ||
90 | 8. Some packages, particularly those that use Automake, provide `make | |
91 | distcheck', which can by used by developers to test that all other | |
92 | targets like `make install' and `make uninstall' work correctly. | |
93 | This target is generally not run by end users. | |
71 | 94 | |
72 | 95 | Compilers and Options |
73 | 96 | ===================== |
92 | 115 | own directory. To do this, you can use GNU `make'. `cd' to the |
93 | 116 | directory where you want the object files and executables to go and run |
94 | 117 | the `configure' script. `configure' automatically checks for the |
95 | source code in the directory that `configure' is in and in `..'. | |
118 | source code in the directory that `configure' is in and in `..'. This | |
119 | is known as a "VPATH" build. | |
96 | 120 | |
97 | 121 | With a non-GNU `make', it is safer to compile the package for one |
98 | 122 | architecture at a time in the source code directory. After you have |
119 | 143 | By default, `make install' installs the package's commands under |
120 | 144 | `/usr/local/bin', include files under `/usr/local/include', etc. You |
121 | 145 | can specify an installation prefix other than `/usr/local' by giving |
122 | `configure' the option `--prefix=PREFIX'. | |
146 | `configure' the option `--prefix=PREFIX', where PREFIX must be an | |
147 | absolute file name. | |
123 | 148 | |
124 | 149 | You can specify separate installation prefixes for |
125 | 150 | architecture-specific files and architecture-independent files. If you |
130 | 155 | In addition, if you use an unusual directory layout you can give |
131 | 156 | options like `--bindir=DIR' to specify different values for particular |
132 | 157 | kinds of files. Run `configure --help' for a list of the directories |
133 | you can set and what kinds of files go in them. | |
158 | you can set and what kinds of files go in them. In general, the | |
159 | default for these options is expressed in terms of `${prefix}', so that | |
160 | specifying just `--prefix' will affect all of the other directory | |
161 | specifications that were not explicitly provided. | |
162 | ||
163 | The most portable way to affect installation locations is to pass the | |
164 | correct locations to `configure'; however, many packages provide one or | |
165 | both of the following shortcuts of passing variable assignments to the | |
166 | `make install' command line to change installation locations without | |
167 | having to reconfigure or recompile. | |
168 | ||
169 | The first method involves providing an override variable for each | |
170 | affected directory. For example, `make install | |
171 | prefix=/alternate/directory' will choose an alternate location for all | |
172 | directory configuration variables that were expressed in terms of | |
173 | `${prefix}'. Any directories that were specified during `configure', | |
174 | but not in terms of `${prefix}', must each be overridden at install | |
175 | time for the entire installation to be relocated. The approach of | |
176 | makefile variable overrides for each directory variable is required by | |
177 | the GNU Coding Standards, and ideally causes no recompilation. | |
178 | However, some platforms have known limitations with the semantics of | |
179 | shared libraries that end up requiring recompilation when using this | |
180 | method, particularly noticeable in packages that use GNU Libtool. | |
181 | ||
182 | The second method involves providing the `DESTDIR' variable. For | |
183 | example, `make install DESTDIR=/alternate/directory' will prepend | |
184 | `/alternate/directory' before all installation names. The approach of | |
185 | `DESTDIR' overrides is not required by the GNU Coding Standards, and | |
186 | does not work on platforms that have drive letters. On the other hand, | |
187 | it does better at avoiding recompilation issues, and works well even | |
188 | when some directory options were not specified in terms of `${prefix}' | |
189 | at `configure' time. | |
190 | ||
191 | Optional Features | |
192 | ================= | |
134 | 193 | |
135 | 194 | If the package supports it, you can cause programs to be installed |
136 | 195 | with an extra prefix or suffix on their names by giving `configure' the |
137 | 196 | option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. |
138 | ||
139 | Optional Features | |
140 | ================= | |
141 | 197 | |
142 | 198 | Some packages pay attention to `--enable-FEATURE' options to |
143 | 199 | `configure', where FEATURE indicates an optional part of the package. |
151 | 207 | you can use the `configure' options `--x-includes=DIR' and |
152 | 208 | `--x-libraries=DIR' to specify their locations. |
153 | 209 | |
210 | Some packages offer the ability to configure how verbose the | |
211 | execution of `make' will be. For these packages, running `./configure | |
212 | --enable-silent-rules' sets the default to minimal output, which can be | |
213 | overridden with `make V=1'; while running `./configure | |
214 | --disable-silent-rules' sets the default to verbose, which can be | |
215 | overridden with `make V=0'. | |
216 | ||
154 | 217 | Particular systems |
155 | 218 | ================== |
156 | 219 | |
158 | 221 | CC is not installed, it is recommended to use the following options in |
159 | 222 | order to use an ANSI C compiler: |
160 | 223 | |
161 | ./configure CC="cc -Ae" | |
224 | ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" | |
162 | 225 | |
163 | 226 | and if that doesn't work, install pre-built binaries of GCC for HP-UX. |
227 | ||
228 | HP-UX `make' updates targets which have the same time stamps as | |
229 | their prerequisites, which makes it generally unusable when shipped | |
230 | generated files such as `configure' are involved. Use GNU `make' | |
231 | instead. | |
164 | 232 | |
165 | 233 | On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot |
166 | 234 | parse its `<wchar.h>' header file. The option `-nodtk' can be used as |
172 | 240 | and if that doesn't work, try |
173 | 241 | |
174 | 242 | ./configure CC="cc -nodtk" |
243 | ||
244 | On Solaris, don't put `/usr/ucb' early in your `PATH'. This | |
245 | directory contains several dysfunctional programs; working variants of | |
246 | these programs are available in `/usr/bin'. So, if you need `/usr/ucb' | |
247 | in your `PATH', put it _after_ `/usr/bin'. | |
248 | ||
249 | On Haiku, software installed for all users goes in `/boot/common', | |
250 | not `/usr/local'. It is recommended to use the following options: | |
251 | ||
252 | ./configure --prefix=/boot/common | |
175 | 253 | |
176 | 254 | Specifying the System Type |
177 | 255 | ========================== |
188 | 266 | |
189 | 267 | where SYSTEM can have one of these forms: |
190 | 268 | |
191 | OS KERNEL-OS | |
269 | OS | |
270 | KERNEL-OS | |
192 | 271 | |
193 | 272 | See the file `config.sub' for the possible values of each field. If |
194 | 273 | `config.sub' isn't included in this package, then this package doesn't |
276 | 355 | `configure' can determine that directory automatically. |
277 | 356 | |
278 | 357 | `--prefix=DIR' |
279 | Use DIR as the installation prefix. *Note Installation Names:: | |
358 | Use DIR as the installation prefix. *note Installation Names:: | |
280 | 359 | for more details, including other options available for fine-tuning |
281 | 360 | the installation locations. |
282 | 361 |
0 | # Makefile.in generated by automake 1.11.1 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | |
5 | # Inc. | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
4 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
36 | 35 | |
37 | 36 | |
38 | 37 | VPATH = @srcdir@ |
38 | am__is_gnu_make = { \ | |
39 | if test -z '$(MAKELEVEL)'; then \ | |
40 | false; \ | |
41 | elif test -n '$(MAKE_HOST)'; then \ | |
42 | true; \ | |
43 | elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ | |
44 | true; \ | |
45 | else \ | |
46 | false; \ | |
47 | fi; \ | |
48 | } | |
49 | am__make_running_with_option = \ | |
50 | case $${target_option-} in \ | |
51 | ?) ;; \ | |
52 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
53 | "target option '$${target_option-}' specified" >&2; \ | |
54 | exit 1;; \ | |
55 | esac; \ | |
56 | has_opt=no; \ | |
57 | sane_makeflags=$$MAKEFLAGS; \ | |
58 | if $(am__is_gnu_make); then \ | |
59 | sane_makeflags=$$MFLAGS; \ | |
60 | else \ | |
61 | case $$MAKEFLAGS in \ | |
62 | *\\[\ \ ]*) \ | |
63 | bs=\\; \ | |
64 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
65 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
66 | esac; \ | |
67 | fi; \ | |
68 | skip_next=no; \ | |
69 | strip_trailopt () \ | |
70 | { \ | |
71 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
72 | }; \ | |
73 | for flg in $$sane_makeflags; do \ | |
74 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
75 | case $$flg in \ | |
76 | *=*|--*) continue;; \ | |
77 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
78 | -*I?*) strip_trailopt 'I';; \ | |
79 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
80 | -*O?*) strip_trailopt 'O';; \ | |
81 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
82 | -*l?*) strip_trailopt 'l';; \ | |
83 | -[dEDm]) skip_next=yes;; \ | |
84 | -[JT]) skip_next=yes;; \ | |
85 | esac; \ | |
86 | case $$flg in \ | |
87 | *$$target_option*) has_opt=yes; break;; \ | |
88 | esac; \ | |
89 | done; \ | |
90 | test $$has_opt = yes | |
91 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
92 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
39 | 93 | pkgdatadir = $(datadir)/@PACKAGE@ |
40 | 94 | pkgincludedir = $(includedir)/@PACKAGE@ |
41 | 95 | pkglibdir = $(libdir)/@PACKAGE@ |
60 | 114 | @USE_RENDER_TRUE@ RenderLogo.h |
61 | 115 | |
62 | 116 | subdir = . |
63 | DIST_COMMON = README $(am__configure_deps) $(dist_appdefault_DATA) \ | |
64 | $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ | |
65 | $(srcdir)/config.h.in $(top_srcdir)/configure COPYING \ | |
66 | ChangeLog INSTALL config.guess config.sub depcomp install-sh \ | |
67 | missing | |
68 | 117 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
69 | 118 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
70 | 119 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
71 | 120 | $(ACLOCAL_M4) |
121 | DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ | |
122 | $(am__configure_deps) $(dist_appdefault_DATA) \ | |
123 | $(am__DIST_COMMON) | |
72 | 124 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
73 | 125 | configure.lineno config.status.lineno |
74 | 126 | mkinstalldirs = $(install_sh) -d |
84 | 136 | xlogo_OBJECTS = $(am_xlogo_OBJECTS) |
85 | 137 | am__DEPENDENCIES_1 = |
86 | 138 | xlogo_DEPENDENCIES = $(am__DEPENDENCIES_1) |
139 | AM_V_P = $(am__v_P_@AM_V@) | |
140 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
141 | am__v_P_0 = false | |
142 | am__v_P_1 = : | |
143 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
144 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
145 | am__v_GEN_0 = @echo " GEN " $@; | |
146 | am__v_GEN_1 = | |
147 | AM_V_at = $(am__v_at_@AM_V@) | |
148 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
149 | am__v_at_0 = @ | |
150 | am__v_at_1 = | |
87 | 151 | DEFAULT_INCLUDES = -I.@am__isrc@ |
88 | 152 | depcomp = $(SHELL) $(top_srcdir)/depcomp |
89 | 153 | am__depfiles_maybe = depfiles |
90 | 154 | am__mv = mv -f |
91 | 155 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ |
92 | 156 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
93 | AM_V_CC = $(am__v_CC_$(V)) | |
94 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | |
95 | am__v_CC_0 = @echo " CC " $@; | |
96 | AM_V_at = $(am__v_at_$(V)) | |
97 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | |
98 | am__v_at_0 = @ | |
157 | AM_V_CC = $(am__v_CC_@AM_V@) | |
158 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) | |
159 | am__v_CC_0 = @echo " CC " $@; | |
160 | am__v_CC_1 = | |
99 | 161 | CCLD = $(CC) |
100 | 162 | LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
101 | AM_V_CCLD = $(am__v_CCLD_$(V)) | |
102 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | |
103 | am__v_CCLD_0 = @echo " CCLD " $@; | |
104 | AM_V_GEN = $(am__v_GEN_$(V)) | |
105 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | |
106 | am__v_GEN_0 = @echo " GEN " $@; | |
163 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) | |
164 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) | |
165 | am__v_CCLD_0 = @echo " CCLD " $@; | |
166 | am__v_CCLD_1 = | |
107 | 167 | SOURCES = $(xlogo_SOURCES) |
108 | 168 | DIST_SOURCES = $(am__xlogo_SOURCES_DIST) |
109 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | |
110 | html-recursive info-recursive install-data-recursive \ | |
111 | install-dvi-recursive install-exec-recursive \ | |
112 | install-html-recursive install-info-recursive \ | |
113 | install-pdf-recursive install-ps-recursive install-recursive \ | |
114 | installcheck-recursive installdirs-recursive pdf-recursive \ | |
115 | ps-recursive uninstall-recursive | |
169 | RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ | |
170 | ctags-recursive dvi-recursive html-recursive info-recursive \ | |
171 | install-data-recursive install-dvi-recursive \ | |
172 | install-exec-recursive install-html-recursive \ | |
173 | install-info-recursive install-pdf-recursive \ | |
174 | install-ps-recursive install-recursive installcheck-recursive \ | |
175 | installdirs-recursive pdf-recursive ps-recursive \ | |
176 | tags-recursive uninstall-recursive | |
177 | am__can_run_installinfo = \ | |
178 | case $$AM_UPDATE_INFO_DIR in \ | |
179 | n|no|NO) false;; \ | |
180 | *) (install-info --version) >/dev/null 2>&1;; \ | |
181 | esac | |
116 | 182 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; |
117 | 183 | am__vpath_adj = case $$p in \ |
118 | 184 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ |
134 | 200 | am__base_list = \ |
135 | 201 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ |
136 | 202 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' |
203 | am__uninstall_files_from_dir = { \ | |
204 | test -z "$$files" \ | |
205 | || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ | |
206 | || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ | |
207 | $(am__cd) "$$dir" && rm -f $$files; }; \ | |
208 | } | |
137 | 209 | DATA = $(dist_appdefault_DATA) |
138 | 210 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ |
139 | 211 | distclean-recursive maintainer-clean-recursive |
140 | AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ | |
141 | $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ | |
142 | distdir dist dist-all distcheck | |
212 | am__recursive_targets = \ | |
213 | $(RECURSIVE_TARGETS) \ | |
214 | $(RECURSIVE_CLEAN_TARGETS) \ | |
215 | $(am__extra_recursive_targets) | |
216 | AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ | |
217 | cscope distdir dist dist-all distcheck | |
218 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ | |
219 | $(LISP)config.h.in | |
220 | # Read a list of newline-separated strings from the standard input, | |
221 | # and print each of them once, without duplicates. Input order is | |
222 | # *not* preserved. | |
223 | am__uniquify_input = $(AWK) '\ | |
224 | BEGIN { nonempty = 0; } \ | |
225 | { items[$$0] = 1; nonempty = 1; } \ | |
226 | END { if (nonempty) { for (i in items) print i; }; } \ | |
227 | ' | |
228 | # Make sure the list of sources is unique. This is necessary because, | |
229 | # e.g., the same source file might be shared among _SOURCES variables | |
230 | # for different programs/libraries. | |
231 | am__define_uniq_tagged_files = \ | |
232 | list='$(am__tagged_files)'; \ | |
233 | unique=`for i in $$list; do \ | |
234 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
235 | done | $(am__uniquify_input)` | |
143 | 236 | ETAGS = etags |
144 | 237 | CTAGS = ctags |
238 | CSCOPE = cscope | |
145 | 239 | DIST_SUBDIRS = $(SUBDIRS) |
240 | am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in COPYING \ | |
241 | ChangeLog INSTALL compile config.guess config.sub depcomp \ | |
242 | install-sh missing | |
146 | 243 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
147 | 244 | distdir = $(PACKAGE)-$(VERSION) |
148 | 245 | top_distdir = $(distdir) |
149 | 246 | am__remove_distdir = \ |
150 | { test ! -d "$(distdir)" \ | |
151 | || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ | |
152 | && rm -fr "$(distdir)"; }; } | |
247 | if test -d "$(distdir)"; then \ | |
248 | find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ | |
249 | && rm -rf "$(distdir)" \ | |
250 | || { sleep 5 && rm -rf "$(distdir)"; }; \ | |
251 | else :; fi | |
252 | am__post_remove_distdir = $(am__remove_distdir) | |
153 | 253 | am__relativize = \ |
154 | 254 | dir0=`pwd`; \ |
155 | 255 | sed_first='s,^\([^/]*\)/.*$$,\1,'; \ |
177 | 277 | reldir="$$dir2" |
178 | 278 | DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 |
179 | 279 | GZIP_ENV = --best |
280 | DIST_TARGETS = dist-bzip2 dist-gzip | |
180 | 281 | distuninstallcheck_listfiles = find . -type f -print |
282 | am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | |
283 | | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' | |
181 | 284 | distcleancheck_listfiles = find . -type f -print |
182 | 285 | ACLOCAL = @ACLOCAL@ |
183 | 286 | ADMIN_MAN_DIR = @ADMIN_MAN_DIR@ |
225 | 328 | LIB_MAN_DIR = @LIB_MAN_DIR@ |
226 | 329 | LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@ |
227 | 330 | LTLIBOBJS = @LTLIBOBJS@ |
228 | MAINT = @MAINT@ | |
229 | 331 | MAKEINFO = @MAKEINFO@ |
230 | 332 | MAN_SUBSTS = @MAN_SUBSTS@ |
231 | 333 | MISC_MAN_DIR = @MISC_MAN_DIR@ |
241 | 343 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
242 | 344 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
243 | 345 | PKG_CONFIG = @PKG_CONFIG@ |
346 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
347 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
244 | 348 | SED = @SED@ |
245 | 349 | SET_MAKE = @SET_MAKE@ |
246 | 350 | SHELL = @SHELL@ |
313 | 417 | app-defaults/XLogo-color |
314 | 418 | |
315 | 419 | MAINTAINERCLEANFILES = ChangeLog INSTALL |
420 | EXTRA_DIST = README.md | |
316 | 421 | all: config.h |
317 | 422 | $(MAKE) $(AM_MAKEFLAGS) all-recursive |
318 | 423 | |
319 | 424 | .SUFFIXES: |
320 | 425 | .SUFFIXES: .c .o .obj |
321 | am--refresh: | |
426 | am--refresh: Makefile | |
322 | 427 | @: |
323 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | |
428 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | |
324 | 429 | @for dep in $?; do \ |
325 | 430 | case '$(am__configure_deps)' in \ |
326 | 431 | *$$dep*) \ |
333 | 438 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ |
334 | 439 | $(am__cd) $(top_srcdir) && \ |
335 | 440 | $(AUTOMAKE) --foreign Makefile |
336 | .PRECIOUS: Makefile | |
337 | 441 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
338 | 442 | @case '$?' in \ |
339 | 443 | *config.status*) \ |
347 | 451 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
348 | 452 | $(SHELL) ./config.status --recheck |
349 | 453 | |
350 | $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) | |
454 | $(top_srcdir)/configure: $(am__configure_deps) | |
351 | 455 | $(am__cd) $(srcdir) && $(AUTOCONF) |
352 | $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) | |
456 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | |
353 | 457 | $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) |
354 | 458 | $(am__aclocal_m4_deps): |
355 | 459 | |
356 | 460 | config.h: stamp-h1 |
357 | @if test ! -f $@; then \ | |
358 | rm -f stamp-h1; \ | |
359 | $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ | |
360 | else :; fi | |
461 | @test -f $@ || rm -f stamp-h1 | |
462 | @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 | |
361 | 463 | |
362 | 464 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status |
363 | 465 | @rm -f stamp-h1 |
364 | 466 | cd $(top_builddir) && $(SHELL) ./config.status config.h |
365 | $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) | |
467 | $(srcdir)/config.h.in: $(am__configure_deps) | |
366 | 468 | ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) |
367 | 469 | rm -f stamp-h1 |
368 | 470 | touch $@ |
371 | 473 | -rm -f config.h stamp-h1 |
372 | 474 | install-binPROGRAMS: $(bin_PROGRAMS) |
373 | 475 | @$(NORMAL_INSTALL) |
374 | test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" | |
375 | 476 | @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ |
477 | if test -n "$$list"; then \ | |
478 | echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ | |
479 | $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ | |
480 | fi; \ | |
376 | 481 | for p in $$list; do echo "$$p $$p"; done | \ |
377 | 482 | sed 's/$(EXEEXT)$$//' | \ |
378 | while read p p1; do if test -f $$p; \ | |
379 | then echo "$$p"; echo "$$p"; else :; fi; \ | |
483 | while read p p1; do if test -f $$p \ | |
484 | ; then echo "$$p"; echo "$$p"; else :; fi; \ | |
380 | 485 | done | \ |
381 | sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ | |
486 | sed -e 'p;s,.*/,,;n;h' \ | |
487 | -e 's|.*|.|' \ | |
382 | 488 | -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ |
383 | 489 | sed 'N;N;N;s,\n, ,g' | \ |
384 | 490 | $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ |
399 | 505 | @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ |
400 | 506 | files=`for p in $$list; do echo "$$p"; done | \ |
401 | 507 | sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ |
402 | -e 's/$$/$(EXEEXT)/' `; \ | |
508 | -e 's/$$/$(EXEEXT)/' \ | |
509 | `; \ | |
403 | 510 | test -n "$$list" || exit 0; \ |
404 | 511 | echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ |
405 | 512 | cd "$(DESTDIR)$(bindir)" && rm -f $$files |
406 | 513 | |
407 | 514 | clean-binPROGRAMS: |
408 | 515 | -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) |
409 | xlogo$(EXEEXT): $(xlogo_OBJECTS) $(xlogo_DEPENDENCIES) | |
516 | ||
517 | xlogo$(EXEEXT): $(xlogo_OBJECTS) $(xlogo_DEPENDENCIES) $(EXTRA_xlogo_DEPENDENCIES) | |
410 | 518 | @rm -f xlogo$(EXEEXT) |
411 | 519 | $(AM_V_CCLD)$(LINK) $(xlogo_OBJECTS) $(xlogo_LDADD) $(LIBS) |
412 | 520 | |
423 | 531 | .c.o: |
424 | 532 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
425 | 533 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
426 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | |
427 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
534 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
428 | 535 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
429 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | |
536 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< | |
430 | 537 | |
431 | 538 | .c.obj: |
432 | 539 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` |
433 | 540 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
434 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | |
435 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
541 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
436 | 542 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
437 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | |
543 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` | |
438 | 544 | install-dist_appdefaultDATA: $(dist_appdefault_DATA) |
439 | 545 | @$(NORMAL_INSTALL) |
440 | test -z "$(appdefaultdir)" || $(MKDIR_P) "$(DESTDIR)$(appdefaultdir)" | |
441 | 546 | @list='$(dist_appdefault_DATA)'; test -n "$(appdefaultdir)" || list=; \ |
547 | if test -n "$$list"; then \ | |
548 | echo " $(MKDIR_P) '$(DESTDIR)$(appdefaultdir)'"; \ | |
549 | $(MKDIR_P) "$(DESTDIR)$(appdefaultdir)" || exit 1; \ | |
550 | fi; \ | |
442 | 551 | for p in $$list; do \ |
443 | 552 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
444 | 553 | echo "$$d$$p"; \ |
452 | 561 | @$(NORMAL_UNINSTALL) |
453 | 562 | @list='$(dist_appdefault_DATA)'; test -n "$(appdefaultdir)" || list=; \ |
454 | 563 | files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ |
455 | test -n "$$files" || exit 0; \ | |
456 | echo " ( cd '$(DESTDIR)$(appdefaultdir)' && rm -f" $$files ")"; \ | |
457 | cd "$(DESTDIR)$(appdefaultdir)" && rm -f $$files | |
564 | dir='$(DESTDIR)$(appdefaultdir)'; $(am__uninstall_files_from_dir) | |
458 | 565 | |
459 | 566 | # This directory's subdirectories are mostly independent; you can cd |
460 | # into them and run `make' without going through this Makefile. | |
461 | # To change the values of `make' variables: instead of editing Makefiles, | |
462 | # (1) if the variable is set in `config.status', edit `config.status' | |
463 | # (which will cause the Makefiles to be regenerated when you run `make'); | |
464 | # (2) otherwise, pass the desired values on the `make' command line. | |
465 | $(RECURSIVE_TARGETS): | |
466 | @fail= failcom='exit 1'; \ | |
467 | for f in x $$MAKEFLAGS; do \ | |
468 | case $$f in \ | |
469 | *=* | --[!k]*);; \ | |
470 | *k*) failcom='fail=yes';; \ | |
471 | esac; \ | |
472 | done; \ | |
567 | # into them and run 'make' without going through this Makefile. | |
568 | # To change the values of 'make' variables: instead of editing Makefiles, | |
569 | # (1) if the variable is set in 'config.status', edit 'config.status' | |
570 | # (which will cause the Makefiles to be regenerated when you run 'make'); | |
571 | # (2) otherwise, pass the desired values on the 'make' command line. | |
572 | $(am__recursive_targets): | |
573 | @fail=; \ | |
574 | if $(am__make_keepgoing); then \ | |
575 | failcom='fail=yes'; \ | |
576 | else \ | |
577 | failcom='exit 1'; \ | |
578 | fi; \ | |
473 | 579 | dot_seen=no; \ |
474 | 580 | target=`echo $@ | sed s/-recursive//`; \ |
475 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
581 | case "$@" in \ | |
582 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
583 | *) list='$(SUBDIRS)' ;; \ | |
584 | esac; \ | |
585 | for subdir in $$list; do \ | |
476 | 586 | echo "Making $$target in $$subdir"; \ |
477 | 587 | if test "$$subdir" = "."; then \ |
478 | 588 | dot_seen=yes; \ |
487 | 597 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
488 | 598 | fi; test -z "$$fail" |
489 | 599 | |
490 | $(RECURSIVE_CLEAN_TARGETS): | |
491 | @fail= failcom='exit 1'; \ | |
492 | for f in x $$MAKEFLAGS; do \ | |
493 | case $$f in \ | |
494 | *=* | --[!k]*);; \ | |
495 | *k*) failcom='fail=yes';; \ | |
496 | esac; \ | |
497 | done; \ | |
498 | dot_seen=no; \ | |
499 | case "$@" in \ | |
500 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
501 | *) list='$(SUBDIRS)' ;; \ | |
502 | esac; \ | |
503 | rev=''; for subdir in $$list; do \ | |
504 | if test "$$subdir" = "."; then :; else \ | |
505 | rev="$$subdir $$rev"; \ | |
506 | fi; \ | |
507 | done; \ | |
508 | rev="$$rev ."; \ | |
509 | target=`echo $@ | sed s/-recursive//`; \ | |
510 | for subdir in $$rev; do \ | |
511 | echo "Making $$target in $$subdir"; \ | |
512 | if test "$$subdir" = "."; then \ | |
513 | local_target="$$target-am"; \ | |
514 | else \ | |
515 | local_target="$$target"; \ | |
516 | fi; \ | |
517 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
518 | || eval $$failcom; \ | |
519 | done && test -z "$$fail" | |
520 | tags-recursive: | |
521 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
522 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |
523 | done | |
524 | ctags-recursive: | |
525 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
526 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | |
527 | done | |
528 | ||
529 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
530 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
531 | unique=`for i in $$list; do \ | |
532 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
533 | done | \ | |
534 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
535 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
536 | mkid -fID $$unique | |
537 | tags: TAGS | |
538 | ||
539 | TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
540 | $(TAGS_FILES) $(LISP) | |
600 | ID: $(am__tagged_files) | |
601 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
602 | tags: tags-recursive | |
603 | TAGS: tags | |
604 | ||
605 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
541 | 606 | set x; \ |
542 | 607 | here=`pwd`; \ |
543 | 608 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ |
553 | 618 | set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ |
554 | 619 | fi; \ |
555 | 620 | done; \ |
556 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
557 | unique=`for i in $$list; do \ | |
558 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
559 | done | \ | |
560 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
561 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
621 | $(am__define_uniq_tagged_files); \ | |
562 | 622 | shift; \ |
563 | 623 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
564 | 624 | test -n "$$unique" || unique=$$empty_fix; \ |
570 | 630 | $$unique; \ |
571 | 631 | fi; \ |
572 | 632 | fi |
573 | ctags: CTAGS | |
574 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
575 | $(TAGS_FILES) $(LISP) | |
576 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
577 | unique=`for i in $$list; do \ | |
578 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
579 | done | \ | |
580 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
581 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
633 | ctags: ctags-recursive | |
634 | ||
635 | CTAGS: ctags | |
636 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
637 | $(am__define_uniq_tagged_files); \ | |
582 | 638 | test -z "$(CTAGS_ARGS)$$unique" \ |
583 | 639 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
584 | 640 | $$unique |
587 | 643 | here=`$(am__cd) $(top_builddir) && pwd` \ |
588 | 644 | && $(am__cd) $(top_srcdir) \ |
589 | 645 | && gtags -i $(GTAGS_ARGS) "$$here" |
646 | cscope: cscope.files | |
647 | test ! -s cscope.files \ | |
648 | || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) | |
649 | clean-cscope: | |
650 | -rm -f cscope.files | |
651 | cscope.files: clean-cscope cscopelist | |
652 | cscopelist: cscopelist-recursive | |
653 | ||
654 | cscopelist-am: $(am__tagged_files) | |
655 | list='$(am__tagged_files)'; \ | |
656 | case "$(srcdir)" in \ | |
657 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
658 | *) sdir=$(subdir)/$(srcdir) ;; \ | |
659 | esac; \ | |
660 | for i in $$list; do \ | |
661 | if test -f "$$i"; then \ | |
662 | echo "$(subdir)/$$i"; \ | |
663 | else \ | |
664 | echo "$$sdir/$$i"; \ | |
665 | fi; \ | |
666 | done >> $(top_builddir)/cscope.files | |
590 | 667 | |
591 | 668 | distclean-tags: |
592 | 669 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
670 | -rm -f cscope.out cscope.in.out cscope.po.out cscope.files | |
593 | 671 | |
594 | 672 | distdir: $(DISTFILES) |
595 | 673 | $(am__remove_distdir) |
625 | 703 | done |
626 | 704 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ |
627 | 705 | if test "$$subdir" = .; then :; else \ |
628 | test -d "$(distdir)/$$subdir" \ | |
629 | || $(MKDIR_P) "$(distdir)/$$subdir" \ | |
630 | || exit 1; \ | |
631 | fi; \ | |
632 | done | |
633 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | |
634 | if test "$$subdir" = .; then :; else \ | |
706 | $(am__make_dryrun) \ | |
707 | || test -d "$(distdir)/$$subdir" \ | |
708 | || $(MKDIR_P) "$(distdir)/$$subdir" \ | |
709 | || exit 1; \ | |
635 | 710 | dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ |
636 | 711 | $(am__relativize); \ |
637 | 712 | new_distdir=$$reldir; \ |
663 | 738 | || chmod -R a+r "$(distdir)" |
664 | 739 | dist-gzip: distdir |
665 | 740 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
666 | $(am__remove_distdir) | |
741 | $(am__post_remove_distdir) | |
667 | 742 | dist-bzip2: distdir |
668 | tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 | |
669 | $(am__remove_distdir) | |
670 | ||
671 | dist-lzma: distdir | |
672 | tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma | |
673 | $(am__remove_distdir) | |
743 | tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 | |
744 | $(am__post_remove_distdir) | |
745 | ||
746 | dist-lzip: distdir | |
747 | tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz | |
748 | $(am__post_remove_distdir) | |
674 | 749 | |
675 | 750 | dist-xz: distdir |
676 | tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz | |
677 | $(am__remove_distdir) | |
751 | tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz | |
752 | $(am__post_remove_distdir) | |
678 | 753 | |
679 | 754 | dist-tarZ: distdir |
755 | @echo WARNING: "Support for distribution archives compressed with" \ | |
756 | "legacy program 'compress' is deprecated." >&2 | |
757 | @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 | |
680 | 758 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
681 | $(am__remove_distdir) | |
759 | $(am__post_remove_distdir) | |
682 | 760 | |
683 | 761 | dist-shar: distdir |
762 | @echo WARNING: "Support for shar distribution archives is" \ | |
763 | "deprecated." >&2 | |
764 | @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 | |
684 | 765 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz |
685 | $(am__remove_distdir) | |
766 | $(am__post_remove_distdir) | |
686 | 767 | |
687 | 768 | dist-zip: distdir |
688 | 769 | -rm -f $(distdir).zip |
689 | 770 | zip -rq $(distdir).zip $(distdir) |
690 | $(am__remove_distdir) | |
691 | ||
692 | dist dist-all: distdir | |
693 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
694 | tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 | |
695 | $(am__remove_distdir) | |
771 | $(am__post_remove_distdir) | |
772 | ||
773 | dist dist-all: | |
774 | $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' | |
775 | $(am__post_remove_distdir) | |
696 | 776 | |
697 | 777 | # This target untars the dist file and tries a VPATH configuration. Then |
698 | 778 | # it guarantees that the distribution is self-contained by making another |
703 | 783 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ |
704 | 784 | *.tar.bz2*) \ |
705 | 785 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
706 | *.tar.lzma*) \ | |
707 | lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ | |
786 | *.tar.lz*) \ | |
787 | lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ | |
708 | 788 | *.tar.xz*) \ |
709 | 789 | xz -dc $(distdir).tar.xz | $(am__untar) ;;\ |
710 | 790 | *.tar.Z*) \ |
714 | 794 | *.zip*) \ |
715 | 795 | unzip $(distdir).zip ;;\ |
716 | 796 | esac |
717 | chmod -R a-w $(distdir); chmod a+w $(distdir) | |
718 | mkdir $(distdir)/_build | |
719 | mkdir $(distdir)/_inst | |
797 | chmod -R a-w $(distdir) | |
798 | chmod u+w $(distdir) | |
799 | mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst | |
720 | 800 | chmod a-w $(distdir) |
721 | 801 | test -d $(distdir)/_build || exit 0; \ |
722 | 802 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ |
723 | 803 | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ |
724 | 804 | && am__cwd=`pwd` \ |
725 | && $(am__cd) $(distdir)/_build \ | |
726 | && ../configure --srcdir=.. --prefix="$$dc_install_base" \ | |
805 | && $(am__cd) $(distdir)/_build/sub \ | |
806 | && ../../configure \ | |
807 | $(AM_DISTCHECK_CONFIGURE_FLAGS) \ | |
727 | 808 | $(DISTCHECK_CONFIGURE_FLAGS) \ |
809 | --srcdir=../.. --prefix="$$dc_install_base" \ | |
728 | 810 | && $(MAKE) $(AM_MAKEFLAGS) \ |
729 | 811 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ |
730 | 812 | && $(MAKE) $(AM_MAKEFLAGS) check \ |
747 | 829 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ |
748 | 830 | && cd "$$am__cwd" \ |
749 | 831 | || exit 1 |
750 | $(am__remove_distdir) | |
832 | $(am__post_remove_distdir) | |
751 | 833 | @(echo "$(distdir) archives ready for distribution: "; \ |
752 | 834 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ |
753 | 835 | sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' |
754 | 836 | distuninstallcheck: |
755 | @$(am__cd) '$(distuninstallcheck_dir)' \ | |
756 | && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ | |
837 | @test -n '$(distuninstallcheck_dir)' || { \ | |
838 | echo 'ERROR: trying to run $@ with an empty' \ | |
839 | '$$(distuninstallcheck_dir)' >&2; \ | |
840 | exit 1; \ | |
841 | }; \ | |
842 | $(am__cd) '$(distuninstallcheck_dir)' || { \ | |
843 | echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ | |
844 | exit 1; \ | |
845 | }; \ | |
846 | test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ | |
757 | 847 | || { echo "ERROR: files left after uninstall:" ; \ |
758 | 848 | if test -n "$(DESTDIR)"; then \ |
759 | 849 | echo " (check DESTDIR support)"; \ |
787 | 877 | |
788 | 878 | installcheck: installcheck-recursive |
789 | 879 | install-strip: |
790 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
791 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
792 | `test -z '$(STRIP)' || \ | |
793 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | |
880 | if test -z '$(STRIP)'; then \ | |
881 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
882 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
883 | install; \ | |
884 | else \ | |
885 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
886 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
887 | "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | |
888 | fi | |
794 | 889 | mostlyclean-generic: |
795 | 890 | |
796 | 891 | clean-generic: |
875 | 970 | |
876 | 971 | uninstall-am: uninstall-binPROGRAMS uninstall-dist_appdefaultDATA |
877 | 972 | |
878 | .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ | |
879 | ctags-recursive install-am install-strip tags-recursive | |
880 | ||
881 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | |
882 | all all-am am--refresh check check-am clean clean-binPROGRAMS \ | |
883 | clean-generic ctags ctags-recursive dist dist-all dist-bzip2 \ | |
884 | dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \ | |
885 | dist-zip distcheck distclean distclean-compile \ | |
886 | distclean-generic distclean-hdr distclean-tags distcleancheck \ | |
887 | distdir distuninstallcheck dvi dvi-am html html-am info \ | |
888 | info-am install install-am install-binPROGRAMS install-data \ | |
889 | install-data-am install-dist_appdefaultDATA install-dvi \ | |
890 | install-dvi-am install-exec install-exec-am install-html \ | |
891 | install-html-am install-info install-info-am install-man \ | |
892 | install-pdf install-pdf-am install-ps install-ps-am \ | |
893 | install-strip installcheck installcheck-am installdirs \ | |
894 | installdirs-am maintainer-clean maintainer-clean-generic \ | |
895 | mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \ | |
896 | ps ps-am tags tags-recursive uninstall uninstall-am \ | |
897 | uninstall-binPROGRAMS uninstall-dist_appdefaultDATA | |
973 | .MAKE: $(am__recursive_targets) all install-am install-strip | |
974 | ||
975 | .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ | |
976 | am--refresh check check-am clean clean-binPROGRAMS \ | |
977 | clean-cscope clean-generic cscope cscopelist-am ctags ctags-am \ | |
978 | dist dist-all dist-bzip2 dist-gzip dist-hook dist-lzip \ | |
979 | dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \ | |
980 | distclean-compile distclean-generic distclean-hdr \ | |
981 | distclean-tags distcleancheck distdir distuninstallcheck dvi \ | |
982 | dvi-am html html-am info info-am install install-am \ | |
983 | install-binPROGRAMS install-data install-data-am \ | |
984 | install-dist_appdefaultDATA install-dvi install-dvi-am \ | |
985 | install-exec install-exec-am install-html install-html-am \ | |
986 | install-info install-info-am install-man install-pdf \ | |
987 | install-pdf-am install-ps install-ps-am install-strip \ | |
988 | installcheck installcheck-am installdirs installdirs-am \ | |
989 | maintainer-clean maintainer-clean-generic mostlyclean \ | |
990 | mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ | |
991 | tags tags-am uninstall uninstall-am uninstall-binPROGRAMS \ | |
992 | uninstall-dist_appdefaultDATA | |
993 | ||
994 | .PRECIOUS: Makefile | |
898 | 995 | |
899 | 996 | |
900 | 997 | .PHONY: ChangeLog INSTALL |
0 | The xlogo program simply displays the X Window System logo. | |
1 | ||
2 | All questions regarding this software should be directed at the | |
3 | Xorg mailing list: | |
4 | ||
5 | http://lists.freedesktop.org/mailman/listinfo/xorg | |
6 | ||
7 | Please submit bug reports to the Xorg bugzilla: | |
8 | ||
9 | https://bugs.freedesktop.org/enter_bug.cgi?product=xorg | |
10 | ||
11 | The master development code repository can be found at: | |
12 | ||
13 | git://anongit.freedesktop.org/git/xorg/app/xlogo | |
14 | ||
15 | http://cgit.freedesktop.org/xorg/app/xlogo | |
16 | ||
17 | For patch submission instructions, see: | |
18 | ||
19 | http://www.x.org/wiki/Development/Documentation/SubmittingPatches | |
20 | ||
21 | For more information on the git code manager, see: | |
22 | ||
23 | http://wiki.x.org/wiki/GitPage | |
24 |
0 | The xlogo program simply displays the X Window System logo. | |
1 | ||
2 | All questions regarding this software should be directed at the | |
3 | Xorg mailing list: | |
4 | ||
5 | https://lists.x.org/mailman/listinfo/xorg | |
6 | ||
7 | The master development code repository can be found at: | |
8 | ||
9 | https://gitlab.freedesktop.org/xorg/app/xlogo | |
10 | ||
11 | Please submit bug reports and requests to merge patches there. | |
12 | ||
13 | For patch submission instructions, see: | |
14 | ||
15 | https://www.x.org/wiki/Development/Documentation/SubmittingPatches | |
16 |
0 | # generated automatically by aclocal 1.11.1 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
3 | # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
0 | # generated automatically by aclocal 1.15 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
3 | ||
4 | 4 | # This file is free software; the Free Software Foundation |
5 | 5 | # gives unlimited permission to copy and/or distribute it, |
6 | 6 | # with or without modifications, as long as this notice is preserved. |
10 | 10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
11 | 11 | # PARTICULAR PURPOSE. |
12 | 12 | |
13 | m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) | |
13 | 14 | m4_ifndef([AC_AUTOCONF_VERSION], |
14 | 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
15 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, | |
16 | [m4_warning([this file was generated for autoconf 2.68. | |
16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, | |
17 | [m4_warning([this file was generated for autoconf 2.69. | |
17 | 18 | You have another version of autoconf. It may work, but is not guaranteed to. |
18 | 19 | If you have problems, you may need to regenerate the build system entirely. |
19 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) | |
20 | ||
21 | # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
22 | # | |
23 | # This file is free software; the Free Software Foundation | |
24 | # gives unlimited permission to copy and/or distribute it, | |
25 | # with or without modifications, as long as this notice is preserved. | |
26 | ||
27 | # AM_AUTOMAKE_VERSION(VERSION) | |
28 | # ---------------------------- | |
29 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | |
30 | # generated from the m4 files accompanying Automake X.Y. | |
31 | # (This private macro should not be called outside this file.) | |
32 | AC_DEFUN([AM_AUTOMAKE_VERSION], | |
33 | [am__api_version='1.11' | |
34 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
35 | dnl require some minimum version. Point them to the right macro. | |
36 | m4_if([$1], [1.11.1], [], | |
37 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
38 | ]) | |
39 | ||
40 | # _AM_AUTOCONF_VERSION(VERSION) | |
41 | # ----------------------------- | |
42 | # aclocal traces this macro to find the Autoconf version. | |
43 | # This is a private macro too. Using m4_define simplifies | |
44 | # the logic in aclocal, which can simply ignore this definition. | |
45 | m4_define([_AM_AUTOCONF_VERSION], []) | |
46 | ||
47 | # AM_SET_CURRENT_AUTOMAKE_VERSION | |
48 | # ------------------------------- | |
49 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |
50 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | |
51 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
52 | [AM_AUTOMAKE_VERSION([1.11.1])dnl | |
53 | m4_ifndef([AC_AUTOCONF_VERSION], | |
54 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
55 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |
56 | ||
57 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- | |
58 | ||
59 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
60 | # | |
61 | # This file is free software; the Free Software Foundation | |
62 | # gives unlimited permission to copy and/or distribute it, | |
63 | # with or without modifications, as long as this notice is preserved. | |
64 | ||
65 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | |
66 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | |
67 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | |
68 | # | |
69 | # Of course, Automake must honor this variable whenever it calls a | |
70 | # tool from the auxiliary directory. The problem is that $srcdir (and | |
71 | # therefore $ac_aux_dir as well) can be either absolute or relative, | |
72 | # depending on how configure is run. This is pretty annoying, since | |
73 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
74 | # source directory, any form will work fine, but in subdirectories a | |
75 | # relative path needs to be adjusted first. | |
76 | # | |
77 | # $ac_aux_dir/missing | |
78 | # fails when called from a subdirectory if $ac_aux_dir is relative | |
79 | # $top_srcdir/$ac_aux_dir/missing | |
80 | # fails if $ac_aux_dir is absolute, | |
81 | # fails when called from a subdirectory in a VPATH build with | |
82 | # a relative $ac_aux_dir | |
83 | # | |
84 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
85 | # are both prefixed by $srcdir. In an in-source build this is usually | |
86 | # harmless because $srcdir is `.', but things will broke when you | |
87 | # start a VPATH build or use an absolute $srcdir. | |
88 | # | |
89 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
90 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
91 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
92 | # and then we would define $MISSING as | |
93 | # MISSING="\${SHELL} $am_aux_dir/missing" | |
94 | # This will work as long as MISSING is not called from configure, because | |
95 | # unfortunately $(top_srcdir) has no meaning in configure. | |
96 | # However there are other variables, like CC, which are often used in | |
97 | # configure, and could therefore not use this "fixed" $ac_aux_dir. | |
98 | # | |
99 | # Another solution, used here, is to always expand $ac_aux_dir to an | |
100 | # absolute PATH. The drawback is that using absolute paths prevent a | |
101 | # configured tree to be moved without reconfiguration. | |
102 | ||
103 | AC_DEFUN([AM_AUX_DIR_EXPAND], | |
104 | [dnl Rely on autoconf to set up CDPATH properly. | |
105 | AC_PREREQ([2.50])dnl | |
106 | # expand $ac_aux_dir to an absolute path | |
107 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
108 | ]) | |
109 | ||
110 | # AM_CONDITIONAL -*- Autoconf -*- | |
111 | ||
112 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 | |
113 | # Free Software Foundation, Inc. | |
114 | # | |
115 | # This file is free software; the Free Software Foundation | |
116 | # gives unlimited permission to copy and/or distribute it, | |
117 | # with or without modifications, as long as this notice is preserved. | |
118 | ||
119 | # serial 9 | |
120 | ||
121 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | |
122 | # ------------------------------------- | |
123 | # Define a conditional. | |
124 | AC_DEFUN([AM_CONDITIONAL], | |
125 | [AC_PREREQ(2.52)dnl | |
126 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
127 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
128 | AC_SUBST([$1_TRUE])dnl | |
129 | AC_SUBST([$1_FALSE])dnl | |
130 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl | |
131 | _AM_SUBST_NOTMAKE([$1_FALSE])dnl | |
132 | m4_define([_AM_COND_VALUE_$1], [$2])dnl | |
133 | if $2; then | |
134 | $1_TRUE= | |
135 | $1_FALSE='#' | |
136 | else | |
137 | $1_TRUE='#' | |
138 | $1_FALSE= | |
139 | fi | |
140 | AC_CONFIG_COMMANDS_PRE( | |
141 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | |
142 | AC_MSG_ERROR([[conditional "$1" was never defined. | |
143 | Usually this means the macro was only invoked conditionally.]]) | |
144 | fi])]) | |
145 | ||
146 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 | |
147 | # Free Software Foundation, Inc. | |
148 | # | |
149 | # This file is free software; the Free Software Foundation | |
150 | # gives unlimited permission to copy and/or distribute it, | |
151 | # with or without modifications, as long as this notice is preserved. | |
152 | ||
153 | # serial 10 | |
154 | ||
155 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | |
156 | # written in clear, in which case automake, when reading aclocal.m4, | |
157 | # will think it sees a *use*, and therefore will trigger all it's | |
158 | # C support machinery. Also note that it means that autoscan, seeing | |
159 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | |
160 | ||
161 | ||
162 | # _AM_DEPENDENCIES(NAME) | |
163 | # ---------------------- | |
164 | # See how the compiler implements dependency checking. | |
165 | # NAME is "CC", "CXX", "GCJ", or "OBJC". | |
166 | # We try a few techniques and use that to set a single cache variable. | |
167 | # | |
168 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | |
169 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | |
170 | # dependency, and given that the user is not expected to run this macro, | |
171 | # just rely on AC_PROG_CC. | |
172 | AC_DEFUN([_AM_DEPENDENCIES], | |
173 | [AC_REQUIRE([AM_SET_DEPDIR])dnl | |
174 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | |
175 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl | |
176 | AC_REQUIRE([AM_DEP_TRACK])dnl | |
177 | ||
178 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | |
179 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | |
180 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
181 | [$1], UPC, [depcc="$UPC" am_compiler_list=], | |
182 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
183 | [depcc="$$1" am_compiler_list=]) | |
184 | ||
185 | AC_CACHE_CHECK([dependency style of $depcc], | |
186 | [am_cv_$1_dependencies_compiler_type], | |
187 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
188 | # We make a subdir and do the tests there. Otherwise we can end up | |
189 | # making bogus files that we don't know about and never remove. For | |
190 | # instance it was reported that on HP-UX the gcc test will end up | |
191 | # making a dummy file named `D' -- because `-MD' means `put the output | |
192 | # in D'. | |
193 | mkdir conftest.dir | |
194 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
195 | # using a relative directory. | |
196 | cp "$am_depcomp" conftest.dir | |
197 | cd conftest.dir | |
198 | # We will build objects and dependencies in a subdirectory because | |
199 | # it helps to detect inapplicable dependency modes. For instance | |
200 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
201 | # side effect of compilation, but ICC will put the dependencies in | |
202 | # the current directory while Tru64 will put them in the object | |
203 | # directory. | |
204 | mkdir sub | |
205 | ||
206 | am_cv_$1_dependencies_compiler_type=none | |
207 | if test "$am_compiler_list" = ""; then | |
208 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | |
209 | fi | |
210 | am__universal=false | |
211 | m4_case([$1], [CC], | |
212 | [case " $depcc " in #( | |
213 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
214 | esac], | |
215 | [CXX], | |
216 | [case " $depcc " in #( | |
217 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
218 | esac]) | |
219 | ||
220 | for depmode in $am_compiler_list; do | |
221 | # Setup a source with many dependencies, because some compilers | |
222 | # like to wrap large dependency lists on column 80 (with \), and | |
223 | # we should not choose a depcomp mode which is confused by this. | |
224 | # | |
225 | # We need to recreate these files for each test, as the compiler may | |
226 | # overwrite some of them when testing with obscure command lines. | |
227 | # This happens at least with the AIX C compiler. | |
228 | : > sub/conftest.c | |
229 | for i in 1 2 3 4 5 6; do | |
230 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
231 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
232 | # Solaris 8's {/usr,}/bin/sh. | |
233 | touch sub/conftst$i.h | |
234 | done | |
235 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
236 | ||
237 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
238 | # mode. It turns out that the SunPro C++ compiler does not properly | |
239 | # handle `-M -o', and we need to detect this. Also, some Intel | |
240 | # versions had trouble with output in subdirs | |
241 | am__obj=sub/conftest.${OBJEXT-o} | |
242 | am__minus_obj="-o $am__obj" | |
243 | case $depmode in | |
244 | gcc) | |
245 | # This depmode causes a compiler race in universal mode. | |
246 | test "$am__universal" = false || continue | |
247 | ;; | |
248 | nosideeffect) | |
249 | # after this tag, mechanisms are not by side-effect, so they'll | |
250 | # only be used when explicitly requested | |
251 | if test "x$enable_dependency_tracking" = xyes; then | |
252 | continue | |
253 | else | |
254 | break | |
255 | fi | |
256 | ;; | |
257 | msvisualcpp | msvcmsys) | |
258 | # This compiler won't grok `-c -o', but also, the minuso test has | |
259 | # not run yet. These depmodes are late enough in the game, and | |
260 | # so weak that their functioning should not be impacted. | |
261 | am__obj=conftest.${OBJEXT-o} | |
262 | am__minus_obj= | |
263 | ;; | |
264 | none) break ;; | |
265 | esac | |
266 | if depmode=$depmode \ | |
267 | source=sub/conftest.c object=$am__obj \ | |
268 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
269 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
270 | >/dev/null 2>conftest.err && | |
271 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
272 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
273 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
274 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
275 | # icc doesn't choke on unknown options, it will just issue warnings | |
276 | # or remarks (even with -Werror). So we grep stderr for any message | |
277 | # that says an option was ignored or not supported. | |
278 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
279 | # icc: Command line warning: ignoring option '-M'; no argument required | |
280 | # The diagnosis changed in icc 8.0: | |
281 | # icc: Command line remark: option '-MP' not supported | |
282 | if (grep 'ignoring option' conftest.err || | |
283 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
284 | am_cv_$1_dependencies_compiler_type=$depmode | |
285 | break | |
286 | fi | |
287 | fi | |
288 | done | |
289 | ||
290 | cd .. | |
291 | rm -rf conftest.dir | |
292 | else | |
293 | am_cv_$1_dependencies_compiler_type=none | |
294 | fi | |
295 | ]) | |
296 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) | |
297 | AM_CONDITIONAL([am__fastdep$1], [ | |
298 | test "x$enable_dependency_tracking" != xno \ | |
299 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) | |
300 | ]) | |
301 | ||
302 | ||
303 | # AM_SET_DEPDIR | |
304 | # ------------- | |
305 | # Choose a directory name for dependency files. | |
306 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES | |
307 | AC_DEFUN([AM_SET_DEPDIR], | |
308 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
309 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | |
310 | ]) | |
311 | ||
312 | ||
313 | # AM_DEP_TRACK | |
314 | # ------------ | |
315 | AC_DEFUN([AM_DEP_TRACK], | |
316 | [AC_ARG_ENABLE(dependency-tracking, | |
317 | [ --disable-dependency-tracking speeds up one-time build | |
318 | --enable-dependency-tracking do not reject slow dependency extractors]) | |
319 | if test "x$enable_dependency_tracking" != xno; then | |
320 | am_depcomp="$ac_aux_dir/depcomp" | |
321 | AMDEPBACKSLASH='\' | |
322 | fi | |
323 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | |
324 | AC_SUBST([AMDEPBACKSLASH])dnl | |
325 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |
326 | ]) | |
327 | ||
328 | # Generate code to set up dependency tracking. -*- Autoconf -*- | |
329 | ||
330 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
331 | # Free Software Foundation, Inc. | |
332 | # | |
333 | # This file is free software; the Free Software Foundation | |
334 | # gives unlimited permission to copy and/or distribute it, | |
335 | # with or without modifications, as long as this notice is preserved. | |
336 | ||
337 | #serial 5 | |
338 | ||
339 | # _AM_OUTPUT_DEPENDENCY_COMMANDS | |
340 | # ------------------------------ | |
341 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | |
342 | [{ | |
343 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
344 | # are listed without --file. Let's play safe and only enable the eval | |
345 | # if we detect the quoting. | |
346 | case $CONFIG_FILES in | |
347 | *\'*) eval set x "$CONFIG_FILES" ;; | |
348 | *) set x $CONFIG_FILES ;; | |
349 | esac | |
350 | shift | |
351 | for mf | |
352 | do | |
353 | # Strip MF so we end up with the name of the file. | |
354 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
355 | # Check whether this is an Automake generated Makefile or not. | |
356 | # We used to match only the files named `Makefile.in', but | |
357 | # some people rename them; so instead we look at the file content. | |
358 | # Grep'ing the first line is not enough: some people post-process | |
359 | # each Makefile.in and add a new line on top of each file to say so. | |
360 | # Grep'ing the whole file is not good either: AIX grep has a line | |
361 | # limit of 2048, but all sed's we know have understand at least 4000. | |
362 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
363 | dirpart=`AS_DIRNAME("$mf")` | |
364 | else | |
365 | continue | |
366 | fi | |
367 | # Extract the definition of DEPDIR, am__include, and am__quote | |
368 | # from the Makefile without running `make'. | |
369 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
370 | test -z "$DEPDIR" && continue | |
371 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
372 | test -z "am__include" && continue | |
373 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
374 | # When using ansi2knr, U may be empty or an underscore; expand it | |
375 | U=`sed -n 's/^U = //p' < "$mf"` | |
376 | # Find all dependency output files, they are included files with | |
377 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
378 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
379 | # expansion. | |
380 | for file in `sed -n " | |
381 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
382 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
383 | # Make sure the directory exists. | |
384 | test -f "$dirpart/$file" && continue | |
385 | fdir=`AS_DIRNAME(["$file"])` | |
386 | AS_MKDIR_P([$dirpart/$fdir]) | |
387 | # echo "creating $dirpart/$file" | |
388 | echo '# dummy' > "$dirpart/$file" | |
389 | done | |
390 | done | |
391 | } | |
392 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | |
393 | ||
394 | ||
395 | # AM_OUTPUT_DEPENDENCY_COMMANDS | |
396 | # ----------------------------- | |
397 | # This macro should only be invoked once -- use via AC_REQUIRE. | |
398 | # | |
399 | # This code is only required when automatic dependency tracking | |
400 | # is enabled. FIXME. This creates each `.P' file that we will | |
401 | # need in order to bootstrap the dependency handling code. | |
402 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |
403 | [AC_CONFIG_COMMANDS([depfiles], | |
404 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | |
405 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | |
406 | ]) | |
407 | ||
408 | # Do all the work for Automake. -*- Autoconf -*- | |
409 | ||
410 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
411 | # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. | |
412 | # | |
413 | # This file is free software; the Free Software Foundation | |
414 | # gives unlimited permission to copy and/or distribute it, | |
415 | # with or without modifications, as long as this notice is preserved. | |
416 | ||
417 | # serial 16 | |
418 | ||
419 | # This macro actually does too much. Some checks are only needed if | |
420 | # your package does certain things. But this isn't really a big deal. | |
421 | ||
422 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
423 | # AM_INIT_AUTOMAKE([OPTIONS]) | |
424 | # ----------------------------------------------- | |
425 | # The call with PACKAGE and VERSION arguments is the old style | |
426 | # call (pre autoconf-2.50), which is being phased out. PACKAGE | |
427 | # and VERSION should now be passed to AC_INIT and removed from | |
428 | # the call to AM_INIT_AUTOMAKE. | |
429 | # We support both call styles for the transition. After | |
430 | # the next Automake release, Autoconf can make the AC_INIT | |
431 | # arguments mandatory, and then we can depend on a new Autoconf | |
432 | # release and drop the old call support. | |
433 | AC_DEFUN([AM_INIT_AUTOMAKE], | |
434 | [AC_PREREQ([2.62])dnl | |
435 | dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
436 | dnl the ones we care about. | |
437 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
438 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
439 | AC_REQUIRE([AC_PROG_INSTALL])dnl | |
440 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
441 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
442 | # is not polluted with repeated "-I." | |
443 | AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
444 | # test to see if srcdir already configured | |
445 | if test -f $srcdir/config.status; then | |
446 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
447 | fi | |
448 | fi | |
449 | ||
450 | # test whether we have cygpath | |
451 | if test -z "$CYGPATH_W"; then | |
452 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
453 | CYGPATH_W='cygpath -w' | |
454 | else | |
455 | CYGPATH_W=echo | |
456 | fi | |
457 | fi | |
458 | AC_SUBST([CYGPATH_W]) | |
459 | ||
460 | # Define the identity of the package. | |
461 | dnl Distinguish between old-style and new-style calls. | |
462 | m4_ifval([$2], | |
463 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
464 | AC_SUBST([PACKAGE], [$1])dnl | |
465 | AC_SUBST([VERSION], [$2])], | |
466 | [_AM_SET_OPTIONS([$1])dnl | |
467 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
468 | m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | |
469 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
470 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
471 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
472 | ||
473 | _AM_IF_OPTION([no-define],, | |
474 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | |
475 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | |
476 | ||
477 | # Some tools Automake needs. | |
478 | AC_REQUIRE([AM_SANITY_CHECK])dnl | |
479 | AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
480 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | |
481 | AM_MISSING_PROG(AUTOCONF, autoconf) | |
482 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | |
483 | AM_MISSING_PROG(AUTOHEADER, autoheader) | |
484 | AM_MISSING_PROG(MAKEINFO, makeinfo) | |
485 | AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
486 | AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | |
487 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl | |
488 | # We need awk for the "check" target. The system "awk" is bad on | |
489 | # some platforms. | |
490 | AC_REQUIRE([AC_PROG_AWK])dnl | |
491 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
492 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
493 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
494 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
495 | [_AM_PROG_TAR([v7])])]) | |
496 | _AM_IF_OPTION([no-dependencies],, | |
497 | [AC_PROVIDE_IFELSE([AC_PROG_CC], | |
498 | [_AM_DEPENDENCIES(CC)], | |
499 | [define([AC_PROG_CC], | |
500 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |
501 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
502 | [_AM_DEPENDENCIES(CXX)], | |
503 | [define([AC_PROG_CXX], | |
504 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
505 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
506 | [_AM_DEPENDENCIES(OBJC)], | |
507 | [define([AC_PROG_OBJC], | |
508 | defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | |
509 | ]) | |
510 | _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |
511 | dnl The `parallel-tests' driver may need to know about EXEEXT, so add the | |
512 | dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |
513 | dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
514 | AC_CONFIG_COMMANDS_PRE(dnl | |
515 | [m4_provide_if([_AM_COMPILER_EXEEXT], | |
516 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | |
517 | ]) | |
518 | ||
519 | dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
520 | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | |
521 | dnl mangled by Autoconf and run in a shell conditional statement. | |
522 | m4_define([_AC_COMPILER_EXEEXT], | |
523 | m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | |
524 | ||
525 | ||
526 | # When config.status generates a header, we must update the stamp-h file. | |
527 | # This file resides in the same directory as the config header | |
528 | # that is generated. The stamp files are numbered to have different names. | |
529 | ||
530 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
531 | # loop where config.status creates the headers, so we can generate | |
532 | # our stamp files there. | |
533 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
534 | [# Compute $1's index in $config_headers. | |
535 | _am_arg=$1 | |
536 | _am_stamp_count=1 | |
537 | for _am_header in $config_headers :; do | |
538 | case $_am_header in | |
539 | $_am_arg | $_am_arg:* ) | |
540 | break ;; | |
541 | * ) | |
542 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
543 | esac | |
544 | done | |
545 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |
546 | ||
547 | # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. | |
548 | # | |
549 | # This file is free software; the Free Software Foundation | |
550 | # gives unlimited permission to copy and/or distribute it, | |
551 | # with or without modifications, as long as this notice is preserved. | |
552 | ||
553 | # AM_PROG_INSTALL_SH | |
554 | # ------------------ | |
555 | # Define $install_sh. | |
556 | AC_DEFUN([AM_PROG_INSTALL_SH], | |
557 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
558 | if test x"${install_sh}" != xset; then | |
559 | case $am_aux_dir in | |
560 | *\ * | *\ *) | |
561 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
562 | *) | |
563 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
564 | esac | |
565 | fi | |
566 | AC_SUBST(install_sh)]) | |
567 | ||
568 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | |
569 | # | |
570 | # This file is free software; the Free Software Foundation | |
571 | # gives unlimited permission to copy and/or distribute it, | |
572 | # with or without modifications, as long as this notice is preserved. | |
573 | ||
574 | # serial 2 | |
575 | ||
576 | # Check whether the underlying file-system supports filenames | |
577 | # with a leading dot. For instance MS-DOS doesn't. | |
578 | AC_DEFUN([AM_SET_LEADING_DOT], | |
579 | [rm -rf .tst 2>/dev/null | |
580 | mkdir .tst 2>/dev/null | |
581 | if test -d .tst; then | |
582 | am__leading_dot=. | |
583 | else | |
584 | am__leading_dot=_ | |
585 | fi | |
586 | rmdir .tst 2>/dev/null | |
587 | AC_SUBST([am__leading_dot])]) | |
588 | ||
589 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- | |
590 | # From Jim Meyering | |
591 | ||
592 | # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
593 | # Free Software Foundation, Inc. | |
594 | # | |
595 | # This file is free software; the Free Software Foundation | |
596 | # gives unlimited permission to copy and/or distribute it, | |
597 | # with or without modifications, as long as this notice is preserved. | |
598 | ||
599 | # serial 5 | |
600 | ||
601 | # AM_MAINTAINER_MODE([DEFAULT-MODE]) | |
602 | # ---------------------------------- | |
603 | # Control maintainer-specific portions of Makefiles. | |
604 | # Default is to disable them, unless `enable' is passed literally. | |
605 | # For symmetry, `disable' may be passed as well. Anyway, the user | |
606 | # can override the default with the --enable/--disable switch. | |
607 | AC_DEFUN([AM_MAINTAINER_MODE], | |
608 | [m4_case(m4_default([$1], [disable]), | |
609 | [enable], [m4_define([am_maintainer_other], [disable])], | |
610 | [disable], [m4_define([am_maintainer_other], [enable])], | |
611 | [m4_define([am_maintainer_other], [enable]) | |
612 | m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) | |
613 | AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) | |
614 | dnl maintainer-mode's default is 'disable' unless 'enable' is passed | |
615 | AC_ARG_ENABLE([maintainer-mode], | |
616 | [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful | |
617 | (and sometimes confusing) to the casual installer], | |
618 | [USE_MAINTAINER_MODE=$enableval], | |
619 | [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) | |
620 | AC_MSG_RESULT([$USE_MAINTAINER_MODE]) | |
621 | AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) | |
622 | MAINT=$MAINTAINER_MODE_TRUE | |
623 | AC_SUBST([MAINT])dnl | |
624 | ] | |
625 | ) | |
626 | ||
627 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) | |
628 | ||
629 | # Check to see how 'make' treats includes. -*- Autoconf -*- | |
630 | ||
631 | # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. | |
632 | # | |
633 | # This file is free software; the Free Software Foundation | |
634 | # gives unlimited permission to copy and/or distribute it, | |
635 | # with or without modifications, as long as this notice is preserved. | |
636 | ||
637 | # serial 4 | |
638 | ||
639 | # AM_MAKE_INCLUDE() | |
640 | # ----------------- | |
641 | # Check to see how make treats includes. | |
642 | AC_DEFUN([AM_MAKE_INCLUDE], | |
643 | [am_make=${MAKE-make} | |
644 | cat > confinc << 'END' | |
645 | am__doit: | |
646 | @echo this is the am__doit target | |
647 | .PHONY: am__doit | |
648 | END | |
649 | # If we don't find an include directive, just comment out the code. | |
650 | AC_MSG_CHECKING([for style of include used by $am_make]) | |
651 | am__include="#" | |
652 | am__quote= | |
653 | _am_result=none | |
654 | # First try GNU make style include. | |
655 | echo "include confinc" > confmf | |
656 | # Ignore all kinds of additional output from `make'. | |
657 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
658 | *the\ am__doit\ target*) | |
659 | am__include=include | |
660 | am__quote= | |
661 | _am_result=GNU | |
662 | ;; | |
663 | esac | |
664 | # Now try BSD make style include. | |
665 | if test "$am__include" = "#"; then | |
666 | echo '.include "confinc"' > confmf | |
667 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
668 | *the\ am__doit\ target*) | |
669 | am__include=.include | |
670 | am__quote="\"" | |
671 | _am_result=BSD | |
672 | ;; | |
673 | esac | |
674 | fi | |
675 | AC_SUBST([am__include]) | |
676 | AC_SUBST([am__quote]) | |
677 | AC_MSG_RESULT([$_am_result]) | |
678 | rm -f confinc confmf | |
679 | ]) | |
680 | ||
681 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
682 | ||
683 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |
684 | # Free Software Foundation, Inc. | |
685 | # | |
686 | # This file is free software; the Free Software Foundation | |
687 | # gives unlimited permission to copy and/or distribute it, | |
688 | # with or without modifications, as long as this notice is preserved. | |
689 | ||
690 | # serial 6 | |
691 | ||
692 | # AM_MISSING_PROG(NAME, PROGRAM) | |
693 | # ------------------------------ | |
694 | AC_DEFUN([AM_MISSING_PROG], | |
695 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
696 | $1=${$1-"${am_missing_run}$2"} | |
697 | AC_SUBST($1)]) | |
698 | ||
699 | ||
700 | # AM_MISSING_HAS_RUN | |
701 | # ------------------ | |
702 | # Define MISSING if not defined so far and test if it supports --run. | |
703 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
704 | AC_DEFUN([AM_MISSING_HAS_RUN], | |
705 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
706 | AC_REQUIRE_AUX_FILE([missing])dnl | |
707 | if test x"${MISSING+set}" != xset; then | |
708 | case $am_aux_dir in | |
709 | *\ * | *\ *) | |
710 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
711 | *) | |
712 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
713 | esac | |
714 | fi | |
715 | # Use eval to expand $SHELL | |
716 | if eval "$MISSING --run true"; then | |
717 | am_missing_run="$MISSING --run " | |
718 | else | |
719 | am_missing_run= | |
720 | AC_MSG_WARN([`missing' script is too old or missing]) | |
721 | fi | |
722 | ]) | |
723 | ||
724 | # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
725 | # | |
726 | # This file is free software; the Free Software Foundation | |
727 | # gives unlimited permission to copy and/or distribute it, | |
728 | # with or without modifications, as long as this notice is preserved. | |
729 | ||
730 | # AM_PROG_MKDIR_P | |
731 | # --------------- | |
732 | # Check for `mkdir -p'. | |
733 | AC_DEFUN([AM_PROG_MKDIR_P], | |
734 | [AC_PREREQ([2.60])dnl | |
735 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
736 | dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |
737 | dnl while keeping a definition of mkdir_p for backward compatibility. | |
738 | dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |
739 | dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |
740 | dnl Makefile.ins that do not define MKDIR_P, so we do our own | |
741 | dnl adjustment using top_builddir (which is defined more often than | |
742 | dnl MKDIR_P). | |
743 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
744 | case $mkdir_p in | |
745 | [[\\/$]]* | ?:[[\\/]]*) ;; | |
746 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
747 | esac | |
748 | ]) | |
749 | ||
750 | # Helper functions for option handling. -*- Autoconf -*- | |
751 | ||
752 | # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. | |
753 | # | |
754 | # This file is free software; the Free Software Foundation | |
755 | # gives unlimited permission to copy and/or distribute it, | |
756 | # with or without modifications, as long as this notice is preserved. | |
757 | ||
758 | # serial 4 | |
759 | ||
760 | # _AM_MANGLE_OPTION(NAME) | |
761 | # ----------------------- | |
762 | AC_DEFUN([_AM_MANGLE_OPTION], | |
763 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
764 | ||
765 | # _AM_SET_OPTION(NAME) | |
766 | # ------------------------------ | |
767 | # Set option NAME. Presently that only means defining a flag for this option. | |
768 | AC_DEFUN([_AM_SET_OPTION], | |
769 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
770 | ||
771 | # _AM_SET_OPTIONS(OPTIONS) | |
772 | # ---------------------------------- | |
773 | # OPTIONS is a space-separated list of Automake options. | |
774 | AC_DEFUN([_AM_SET_OPTIONS], | |
775 | [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
776 | ||
777 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
778 | # ------------------------------------------- | |
779 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
780 | AC_DEFUN([_AM_IF_OPTION], | |
781 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
782 | ||
783 | # Check to make sure that the build environment is sane. -*- Autoconf -*- | |
784 | ||
785 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 | |
786 | # Free Software Foundation, Inc. | |
787 | # | |
788 | # This file is free software; the Free Software Foundation | |
789 | # gives unlimited permission to copy and/or distribute it, | |
790 | # with or without modifications, as long as this notice is preserved. | |
791 | ||
792 | # serial 5 | |
793 | ||
794 | # AM_SANITY_CHECK | |
795 | # --------------- | |
796 | AC_DEFUN([AM_SANITY_CHECK], | |
797 | [AC_MSG_CHECKING([whether build environment is sane]) | |
798 | # Just in case | |
799 | sleep 1 | |
800 | echo timestamp > conftest.file | |
801 | # Reject unsafe characters in $srcdir or the absolute working directory | |
802 | # name. Accept space and tab only in the latter. | |
803 | am_lf=' | |
804 | ' | |
805 | case `pwd` in | |
806 | *[[\\\"\#\$\&\'\`$am_lf]]*) | |
807 | AC_MSG_ERROR([unsafe absolute working directory name]);; | |
808 | esac | |
809 | case $srcdir in | |
810 | *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |
811 | AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | |
812 | esac | |
813 | ||
814 | # Do `set' in a subshell so we don't clobber the current shell's | |
815 | # arguments. Must try -L first in case configure is actually a | |
816 | # symlink; some systems play weird games with the mod time of symlinks | |
817 | # (eg FreeBSD returns the mod time of the symlink's containing | |
818 | # directory). | |
819 | if ( | |
820 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
821 | if test "$[*]" = "X"; then | |
822 | # -L didn't work. | |
823 | set X `ls -t "$srcdir/configure" conftest.file` | |
824 | fi | |
825 | rm -f conftest.file | |
826 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
827 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
828 | ||
829 | # If neither matched, then we have a broken ls. This can happen | |
830 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
831 | # broken ls alias from the environment. This has actually | |
832 | # happened. Such a system could not be considered "sane". | |
833 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
834 | alias in your environment]) | |
835 | fi | |
836 | ||
837 | test "$[2]" = conftest.file | |
838 | ) | |
839 | then | |
840 | # Ok. | |
841 | : | |
842 | else | |
843 | AC_MSG_ERROR([newly created file is older than distributed files! | |
844 | Check your system clock]) | |
845 | fi | |
846 | AC_MSG_RESULT(yes)]) | |
847 | ||
848 | # Copyright (C) 2009 Free Software Foundation, Inc. | |
849 | # | |
850 | # This file is free software; the Free Software Foundation | |
851 | # gives unlimited permission to copy and/or distribute it, | |
852 | # with or without modifications, as long as this notice is preserved. | |
853 | ||
854 | # serial 1 | |
855 | ||
856 | # AM_SILENT_RULES([DEFAULT]) | |
857 | # -------------------------- | |
858 | # Enable less verbose build rules; with the default set to DEFAULT | |
859 | # (`yes' being less verbose, `no' or empty being verbose). | |
860 | AC_DEFUN([AM_SILENT_RULES], | |
861 | [AC_ARG_ENABLE([silent-rules], | |
862 | [ --enable-silent-rules less verbose build output (undo: `make V=1') | |
863 | --disable-silent-rules verbose build output (undo: `make V=0')]) | |
864 | case $enable_silent_rules in | |
865 | yes) AM_DEFAULT_VERBOSITY=0;; | |
866 | no) AM_DEFAULT_VERBOSITY=1;; | |
867 | *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; | |
868 | esac | |
869 | AC_SUBST([AM_DEFAULT_VERBOSITY])dnl | |
870 | AM_BACKSLASH='\' | |
871 | AC_SUBST([AM_BACKSLASH])dnl | |
872 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl | |
873 | ]) | |
874 | ||
875 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
876 | # | |
877 | # This file is free software; the Free Software Foundation | |
878 | # gives unlimited permission to copy and/or distribute it, | |
879 | # with or without modifications, as long as this notice is preserved. | |
880 | ||
881 | # AM_PROG_INSTALL_STRIP | |
882 | # --------------------- | |
883 | # One issue with vendor `install' (even GNU) is that you can't | |
884 | # specify the program used to strip binaries. This is especially | |
885 | # annoying in cross-compiling environments, where the build's strip | |
886 | # is unlikely to handle the host's binaries. | |
887 | # Fortunately install-sh will honor a STRIPPROG variable, so we | |
888 | # always use install-sh in `make install-strip', and initialize | |
889 | # STRIPPROG with the value of the STRIP variable (set by the user). | |
890 | AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
891 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
892 | # Installed binaries are usually stripped using `strip' when the user | |
893 | # run `make install-strip'. However `strip' might not be the right | |
894 | # tool to use in cross-compilation environments, therefore Automake | |
895 | # will honor the `STRIP' environment variable to overrule this program. | |
896 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |
897 | if test "$cross_compiling" != no; then | |
898 | AC_CHECK_TOOL([STRIP], [strip], :) | |
899 | fi | |
900 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
901 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
902 | ||
903 | # Copyright (C) 2006, 2008 Free Software Foundation, Inc. | |
904 | # | |
905 | # This file is free software; the Free Software Foundation | |
906 | # gives unlimited permission to copy and/or distribute it, | |
907 | # with or without modifications, as long as this notice is preserved. | |
908 | ||
909 | # serial 2 | |
910 | ||
911 | # _AM_SUBST_NOTMAKE(VARIABLE) | |
912 | # --------------------------- | |
913 | # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
914 | # This macro is traced by Automake. | |
915 | AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
916 | ||
917 | # AM_SUBST_NOTMAKE(VARIABLE) | |
918 | # --------------------------- | |
919 | # Public sister of _AM_SUBST_NOTMAKE. | |
920 | AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |
921 | ||
922 | # Check how to create a tarball. -*- Autoconf -*- | |
923 | ||
924 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc. | |
925 | # | |
926 | # This file is free software; the Free Software Foundation | |
927 | # gives unlimited permission to copy and/or distribute it, | |
928 | # with or without modifications, as long as this notice is preserved. | |
929 | ||
930 | # serial 2 | |
931 | ||
932 | # _AM_PROG_TAR(FORMAT) | |
933 | # -------------------- | |
934 | # Check how to create a tarball in format FORMAT. | |
935 | # FORMAT should be one of `v7', `ustar', or `pax'. | |
936 | # | |
937 | # Substitute a variable $(am__tar) that is a command | |
938 | # writing to stdout a FORMAT-tarball containing the directory | |
939 | # $tardir. | |
940 | # tardir=directory && $(am__tar) > result.tar | |
941 | # | |
942 | # Substitute a variable $(am__untar) that extract such | |
943 | # a tarball read from stdin. | |
944 | # $(am__untar) < result.tar | |
945 | AC_DEFUN([_AM_PROG_TAR], | |
946 | [# Always define AMTAR for backward compatibility. | |
947 | AM_MISSING_PROG([AMTAR], [tar]) | |
948 | m4_if([$1], [v7], | |
949 | [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], | |
950 | [m4_case([$1], [ustar],, [pax],, | |
951 | [m4_fatal([Unknown tar format])]) | |
952 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
953 | # Loop over all known methods to create a tar archive until one works. | |
954 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
955 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
956 | # Do not fold the above two line into one, because Tru64 sh and | |
957 | # Solaris sh will not grok spaces in the rhs of `-'. | |
958 | for _am_tool in $_am_tools | |
959 | do | |
960 | case $_am_tool in | |
961 | gnutar) | |
962 | for _am_tar in tar gnutar gtar; | |
963 | do | |
964 | AM_RUN_LOG([$_am_tar --version]) && break | |
965 | done | |
966 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
967 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
968 | am__untar="$_am_tar -xf -" | |
969 | ;; | |
970 | plaintar) | |
971 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
972 | # ustar tarball either. | |
973 | (tar --version) >/dev/null 2>&1 && continue | |
974 | am__tar='tar chf - "$$tardir"' | |
975 | am__tar_='tar chf - "$tardir"' | |
976 | am__untar='tar xf -' | |
977 | ;; | |
978 | pax) | |
979 | am__tar='pax -L -x $1 -w "$$tardir"' | |
980 | am__tar_='pax -L -x $1 -w "$tardir"' | |
981 | am__untar='pax -r' | |
982 | ;; | |
983 | cpio) | |
984 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
985 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
986 | am__untar='cpio -i -H $1 -d' | |
987 | ;; | |
988 | none) | |
989 | am__tar=false | |
990 | am__tar_=false | |
991 | am__untar=false | |
992 | ;; | |
993 | esac | |
994 | ||
995 | # If the value was cached, stop now. We just wanted to have am__tar | |
996 | # and am__untar set. | |
997 | test -n "${am_cv_prog_tar_$1}" && break | |
998 | ||
999 | # tar/untar a dummy directory, and stop if the command works | |
1000 | rm -rf conftest.dir | |
1001 | mkdir conftest.dir | |
1002 | echo GrepMe > conftest.dir/file | |
1003 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
1004 | rm -rf conftest.dir | |
1005 | if test -s conftest.tar; then | |
1006 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
1007 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
1008 | fi | |
1009 | done | |
1010 | rm -rf conftest.dir | |
1011 | ||
1012 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
1013 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
1014 | AC_SUBST([am__tar]) | |
1015 | AC_SUBST([am__untar]) | |
1016 | ]) # _AM_PROG_TAR | |
1017 | ||
1018 | # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- | |
1019 | # | |
1020 | # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. | |
1021 | # | |
1022 | # This program is free software; you can redistribute it and/or modify | |
1023 | # it under the terms of the GNU General Public License as published by | |
1024 | # the Free Software Foundation; either version 2 of the License, or | |
1025 | # (at your option) any later version. | |
1026 | # | |
1027 | # This program is distributed in the hope that it will be useful, but | |
1028 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
1029 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
1030 | # General Public License for more details. | |
1031 | # | |
1032 | # You should have received a copy of the GNU General Public License | |
1033 | # along with this program; if not, write to the Free Software | |
1034 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
1035 | # | |
1036 | # As a special exception to the GNU General Public License, if you | |
1037 | # distribute this file as part of a program that contains a | |
1038 | # configuration script generated by Autoconf, you may include it under | |
1039 | # the same distribution terms that you use for the rest of that program. | |
1040 | ||
1041 | # PKG_PROG_PKG_CONFIG([MIN-VERSION]) | |
1042 | # ---------------------------------- | |
20 | To do so, use the procedure documented by the package, typically 'autoreconf'.])]) | |
21 | ||
22 | dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- | |
23 | dnl serial 11 (pkg-config-0.29) | |
24 | dnl | |
25 | dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. | |
26 | dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> | |
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]) | |
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. | |
1043 | 79 | AC_DEFUN([PKG_PROG_PKG_CONFIG], |
1044 | 80 | [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
1045 | m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) | |
1046 | AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl | |
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 | ||
1047 | 87 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
1048 | 88 | AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
1049 | 89 | fi |
1056 | 96 | AC_MSG_RESULT([no]) |
1057 | 97 | PKG_CONFIG="" |
1058 | 98 | fi |
1059 | ||
1060 | 99 | fi[]dnl |
1061 | ])# PKG_PROG_PKG_CONFIG | |
1062 | ||
1063 | # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | |
1064 | # | |
1065 | # Check to see whether a particular set of modules exists. Similar | |
1066 | # to PKG_CHECK_MODULES(), but does not set variables or print errors. | |
1067 | # | |
1068 | # | |
1069 | # Similar to PKG_CHECK_MODULES, make sure that the first instance of | |
1070 | # this or PKG_CHECK_MODULES is called, or make sure to call | |
1071 | # PKG_CHECK_EXISTS manually | |
1072 | # -------------------------------------------------------------- | |
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 occurence 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 | |
1073 | 113 | AC_DEFUN([PKG_CHECK_EXISTS], |
1074 | 114 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
1075 | 115 | if test -n "$PKG_CONFIG" && \ |
1076 | 116 | AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then |
1077 | m4_ifval([$2], [$2], [:]) | |
117 | m4_default([$2], [:]) | |
1078 | 118 | m4_ifvaln([$3], [else |
1079 | 119 | $3])dnl |
1080 | 120 | fi]) |
1081 | 121 | |
1082 | ||
1083 | # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) | |
1084 | # --------------------------------------------- | |
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. | |
1085 | 126 | m4_define([_PKG_CONFIG], |
1086 | 127 | [if test -n "$$1"; then |
1087 | 128 | pkg_cv_[]$1="$$1" |
1088 | 129 | elif test -n "$PKG_CONFIG"; then |
1089 | 130 | PKG_CHECK_EXISTS([$3], |
1090 | [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], | |
131 | [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` | |
132 | test "x$?" != "x0" && pkg_failed=yes ], | |
1091 | 133 | [pkg_failed=yes]) |
1092 | 134 | else |
1093 | 135 | pkg_failed=untried |
1094 | 136 | fi[]dnl |
1095 | ])# _PKG_CONFIG | |
1096 | ||
1097 | # _PKG_SHORT_ERRORS_SUPPORTED | |
1098 | # ----------------------------- | |
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. | |
1099 | 142 | AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], |
1100 | 143 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
1101 | 144 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
1103 | 146 | else |
1104 | 147 | _pkg_short_errors_supported=no |
1105 | 148 | fi[]dnl |
1106 | ])# _PKG_SHORT_ERRORS_SUPPORTED | |
1107 | ||
1108 | ||
1109 | # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], | |
1110 | # [ACTION-IF-NOT-FOUND]) | |
1111 | # | |
1112 | # | |
1113 | # Note that if there is a possibility the first call to | |
1114 | # PKG_CHECK_MODULES might not happen, you should be sure to include an | |
1115 | # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac | |
1116 | # | |
1117 | # | |
1118 | # -------------------------------------------------------------- | |
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 | |
1119 | 160 | AC_DEFUN([PKG_CHECK_MODULES], |
1120 | 161 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
1121 | 162 | AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl |
1132 | 173 | See the pkg-config man page for more details.]) |
1133 | 174 | |
1134 | 175 | if test $pkg_failed = yes; then |
176 | AC_MSG_RESULT([no]) | |
1135 | 177 | _PKG_SHORT_ERRORS_SUPPORTED |
1136 | 178 | if test $_pkg_short_errors_supported = yes; then |
1137 | $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` | |
179 | $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` | |
1138 | 180 | else |
1139 | $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` | |
181 | $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` | |
1140 | 182 | fi |
1141 | 183 | # Put the nasty error message in config.log where it belongs |
1142 | 184 | echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD |
1143 | 185 | |
1144 | ifelse([$4], , [AC_MSG_ERROR(dnl | |
186 | m4_default([$4], [AC_MSG_ERROR( | |
1145 | 187 | [Package requirements ($2) were not met: |
1146 | 188 | |
1147 | 189 | $$1_PKG_ERRORS |
1149 | 191 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
1150 | 192 | installed software in a non-standard prefix. |
1151 | 193 | |
1152 | _PKG_TEXT | |
1153 | ])], | |
1154 | [AC_MSG_RESULT([no]) | |
1155 | $4]) | |
194 | _PKG_TEXT])[]dnl | |
195 | ]) | |
1156 | 196 | elif test $pkg_failed = untried; then |
1157 | ifelse([$4], , [AC_MSG_FAILURE(dnl | |
197 | AC_MSG_RESULT([no]) | |
198 | m4_default([$4], [AC_MSG_FAILURE( | |
1158 | 199 | [The pkg-config script could not be found or is too old. Make sure it |
1159 | 200 | is in your PATH or set the PKG_CONFIG environment variable to the full |
1160 | 201 | path to pkg-config. |
1161 | 202 | |
1162 | 203 | _PKG_TEXT |
1163 | 204 | |
1164 | To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], | |
1165 | [$4]) | |
205 | To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl | |
206 | ]) | |
1166 | 207 | else |
1167 | 208 | $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS |
1168 | 209 | $1[]_LIBS=$pkg_cv_[]$1[]_LIBS |
1169 | 210 | AC_MSG_RESULT([yes]) |
1170 | ifelse([$3], , :, [$3]) | |
211 | $3 | |
1171 | 212 | fi[]dnl |
1172 | ])# PKG_CHECK_MODULES | |
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 | |
1173 | 297 | |
1174 | 298 | dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. |
1175 | 299 | dnl |
1176 | dnl Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. | |
1177 | dnl | |
300 | dnl Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. | |
301 | dnl | |
1178 | 302 | dnl Permission is hereby granted, free of charge, to any person obtaining a |
1179 | 303 | dnl copy of this software and associated documentation files (the "Software"), |
1180 | 304 | dnl to deal in the Software without restriction, including without limitation |
1207 | 331 | # [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])]) |
1208 | 332 | # |
1209 | 333 | # |
1210 | # See the "minimum version" comment for each macro you use to see what | |
334 | # See the "minimum version" comment for each macro you use to see what | |
1211 | 335 | # version you require. |
1212 | 336 | m4_defun([XORG_MACROS_VERSION],[ |
1213 | m4_define([vers_have], [1.17]) | |
337 | m4_define([vers_have], [1.19.0]) | |
1214 | 338 | m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.]))) |
1215 | 339 | m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.]))) |
1216 | 340 | m4_if(m4_cmp(maj_have, maj_needed), 0,, |
1230 | 354 | # such as man pages and config files |
1231 | 355 | AC_DEFUN([XORG_PROG_RAWCPP],[ |
1232 | 356 | AC_REQUIRE([AC_PROG_CPP]) |
1233 | AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], | |
357 | AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], | |
1234 | 358 | [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) |
1235 | 359 | |
1236 | 360 | # Check for flag to avoid builtin definitions - assumes unix is predefined, |
1260 | 384 | AC_MSG_RESULT([no]) |
1261 | 385 | else |
1262 | 386 | if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then |
387 | TRADITIONALCPPFLAGS="-traditional" | |
1263 | 388 | RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" |
1264 | 389 | AC_MSG_RESULT([yes]) |
1265 | 390 | else |
1268 | 393 | fi |
1269 | 394 | rm -f conftest.$ac_ext |
1270 | 395 | AC_SUBST(RAWCPPFLAGS) |
396 | AC_SUBST(TRADITIONALCPPFLAGS) | |
1271 | 397 | ]) # XORG_PROG_RAWCPP |
1272 | 398 | |
1273 | 399 | # XORG_MANPAGE_SECTIONS() |
1301 | 427 | |
1302 | 428 | if test x$FILE_MAN_SUFFIX = x ; then |
1303 | 429 | case $host_os in |
1304 | solaris*) FILE_MAN_SUFFIX=4 ;; | |
1305 | *) FILE_MAN_SUFFIX=5 ;; | |
430 | # Solaris 2.0 - 11 use SysV man page sections | |
431 | solaris2.?|solaris2.1[[01]]) FILE_MAN_SUFFIX=4 ;; | |
432 | *) FILE_MAN_SUFFIX=5 ;; | |
1306 | 433 | esac |
1307 | 434 | fi |
1308 | 435 | if test x$FILE_MAN_DIR = x ; then |
1311 | 438 | |
1312 | 439 | if test x$MISC_MAN_SUFFIX = x ; then |
1313 | 440 | case $host_os in |
1314 | solaris*) MISC_MAN_SUFFIX=5 ;; | |
1315 | *) MISC_MAN_SUFFIX=7 ;; | |
441 | # Solaris 2.0 - 11 use SysV man page sections | |
442 | solaris2.?|solaris2.1[[01]]) MISC_MAN_SUFFIX=5 ;; | |
443 | *) MISC_MAN_SUFFIX=7 ;; | |
1316 | 444 | esac |
1317 | 445 | fi |
1318 | 446 | if test x$MISC_MAN_DIR = x ; then |
1321 | 449 | |
1322 | 450 | if test x$DRIVER_MAN_SUFFIX = x ; then |
1323 | 451 | case $host_os in |
1324 | solaris*) DRIVER_MAN_SUFFIX=7 ;; | |
1325 | *) DRIVER_MAN_SUFFIX=4 ;; | |
452 | # Solaris 2.0 - 11 use SysV man page sections | |
453 | solaris2.?|solaris2.1[[01]]) DRIVER_MAN_SUFFIX=7 ;; | |
454 | *) DRIVER_MAN_SUFFIX=4 ;; | |
1326 | 455 | esac |
1327 | 456 | fi |
1328 | 457 | if test x$DRIVER_MAN_DIR = x ; then |
1331 | 460 | |
1332 | 461 | if test x$ADMIN_MAN_SUFFIX = x ; then |
1333 | 462 | case $host_os in |
1334 | solaris*) ADMIN_MAN_SUFFIX=1m ;; | |
1335 | *) ADMIN_MAN_SUFFIX=8 ;; | |
463 | # Solaris 2.0 - 11 use SysV man page sections | |
464 | solaris2.?|solaris2.1[[01]]) ADMIN_MAN_SUFFIX=1m ;; | |
465 | *) ADMIN_MAN_SUFFIX=8 ;; | |
1336 | 466 | esac |
1337 | 467 | fi |
1338 | 468 | if test x$ADMIN_MAN_DIR = x ; then |
1593 | 723 | fi]) |
1594 | 724 | |
1595 | 725 | # Test for the ability of xmlto to generate a text target |
726 | # | |
727 | # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the | |
728 | # following test for empty XML docbook files. | |
729 | # For compatibility reasons use the following empty XML docbook file and if | |
730 | # it fails try it again with a non-empty XML file. | |
1596 | 731 | have_xmlto_text=no |
1597 | 732 | cat > conftest.xml << "EOF" |
1598 | 733 | EOF |
1599 | 734 | AS_IF([test "$have_xmlto" = yes], |
1600 | 735 | [AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1], |
1601 | 736 | [have_xmlto_text=yes], |
1602 | [AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])]) | |
737 | [# Try it again with a non-empty XML file. | |
738 | cat > conftest.xml << "EOF" | |
739 | <x></x> | |
740 | EOF | |
741 | AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1], | |
742 | [have_xmlto_text=yes], | |
743 | [AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])])]) | |
1603 | 744 | rm -f conftest.xml |
1604 | 745 | AM_CONDITIONAL([HAVE_XMLTO_TEXT], [test $have_xmlto_text = yes]) |
1605 | 746 | AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes]) |
1792 | 933 | ]) # XORG_WITH_ASCIIDOC |
1793 | 934 | |
1794 | 935 | # XORG_WITH_DOXYGEN([MIN-VERSION], [DEFAULT]) |
1795 | # -------------------------------- | |
936 | # ------------------------------------------- | |
1796 | 937 | # Minimum version: 1.5.0 |
1797 | 938 | # Minimum version for optional DEFAULT argument: 1.11.0 |
939 | # Minimum version for optional DOT checking: 1.18.0 | |
1798 | 940 | # |
1799 | 941 | # Documentation tools are not always available on all platforms and sometimes |
1800 | 942 | # not at the appropriate level. This macro enables a module to test for the |
1814 | 956 | # |
1815 | 957 | AC_DEFUN([XORG_WITH_DOXYGEN],[ |
1816 | 958 | AC_ARG_VAR([DOXYGEN], [Path to doxygen command]) |
959 | AC_ARG_VAR([DOT], [Path to the dot graphics utility]) | |
1817 | 960 | m4_define([_defopt], m4_default([$2], [auto])) |
1818 | 961 | AC_ARG_WITH(doxygen, |
1819 | 962 | AS_HELP_STRING([--with-doxygen], |
1857 | 1000 | AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed]) |
1858 | 1001 | fi]) |
1859 | 1002 | fi]) |
1003 | ||
1004 | dnl Check for DOT if we have doxygen. The caller decides if it is mandatory | |
1005 | dnl HAVE_DOT is a variable that can be used in your doxygen.in config file: | |
1006 | dnl HAVE_DOT = @HAVE_DOT@ | |
1007 | HAVE_DOT=no | |
1008 | if test "x$have_doxygen" = "xyes"; then | |
1009 | AC_PATH_PROG([DOT], [dot]) | |
1010 | if test "x$DOT" != "x"; then | |
1011 | HAVE_DOT=yes | |
1012 | fi | |
1013 | fi | |
1014 | ||
1015 | AC_SUBST([HAVE_DOT]) | |
1016 | AM_CONDITIONAL([HAVE_DOT], [test "$HAVE_DOT" = "yes"]) | |
1860 | 1017 | AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes]) |
1861 | 1018 | ]) # XORG_WITH_DOXYGEN |
1862 | 1019 | |
2038 | 1195 | fi]) |
2039 | 1196 | AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes]) |
2040 | 1197 | ]) # XORG_WITH_FOP |
1198 | ||
1199 | # XORG_WITH_M4([MIN-VERSION]) | |
1200 | # --------------------------- | |
1201 | # Minimum version: 1.19.0 | |
1202 | # | |
1203 | # This macro attempts to locate an m4 macro processor which supports | |
1204 | # -I option and is only useful for modules relying on M4 in order to | |
1205 | # expand macros in source code files. | |
1206 | # | |
1207 | # Interface to module: | |
1208 | # M4: returns the path of the m4 program found | |
1209 | # returns the path set by the user in the environment | |
1210 | # | |
1211 | AC_DEFUN([XORG_WITH_M4], [ | |
1212 | AC_CACHE_CHECK([for m4 that supports -I option], [ac_cv_path_M4], | |
1213 | [AC_PATH_PROGS_FEATURE_CHECK([M4], [m4 gm4], | |
1214 | [[$ac_path_M4 -I. /dev/null > /dev/null 2>&1 && \ | |
1215 | ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:]], | |
1216 | [AC_MSG_ERROR([could not find m4 that supports -I option])], | |
1217 | [$PATH:/usr/gnu/bin])]) | |
1218 | ||
1219 | AC_SUBST([M4], [$ac_cv_path_M4]) | |
1220 | ]) # XORG_WITH_M4 | |
2041 | 1221 | |
2042 | 1222 | # XORG_WITH_PS2PDF([DEFAULT]) |
2043 | 1223 | # ---------------- |
2493 | 1673 | |
2494 | 1674 | AC_MSG_CHECKING([whether malloc(0) returns NULL]) |
2495 | 1675 | if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then |
2496 | AC_RUN_IFELSE([AC_LANG_PROGRAM([ | |
1676 | AC_CACHE_VAL([xorg_cv_malloc0_returns_null], | |
1677 | [AC_RUN_IFELSE([AC_LANG_PROGRAM([ | |
2497 | 1678 | #include <stdlib.h> |
2498 | 1679 | ],[ |
2499 | 1680 | char *m0, *r0, *c0, *p; |
2503 | 1684 | c0 = calloc(0,10); |
2504 | 1685 | exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); |
2505 | 1686 | ])], |
2506 | [MALLOC_ZERO_RETURNS_NULL=yes], | |
2507 | [MALLOC_ZERO_RETURNS_NULL=no], | |
2508 | [MALLOC_ZERO_RETURNS_NULL=yes]) | |
1687 | [xorg_cv_malloc0_returns_null=yes], | |
1688 | [xorg_cv_malloc0_returns_null=no])]) | |
1689 | MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null | |
2509 | 1690 | fi |
2510 | 1691 | AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) |
2511 | 1692 | |
2716 | 1897 | found="no" |
2717 | 1898 | m4_foreach([flag], m4_cdr($@), [ |
2718 | 1899 | if test $found = "no" ; then |
2719 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
1900 | if test "x$xorg_testset_]CACHE_PREFIX[_unknown_warning_option" = "xyes" ; then | |
2720 | 1901 | PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option" |
2721 | 1902 | fi |
2722 | 1903 | |
2723 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
1904 | if test "x$xorg_testset_]CACHE_PREFIX[_unused_command_line_argument" = "xyes" ; then | |
2724 | 1905 | PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unused-command-line-argument" |
2725 | 1906 | fi |
2726 | 1907 | |
2727 | 1908 | PREFIX[FLAGS]="$PREFIX[FLAGS] ]flag[" |
2728 | 1909 | |
2729 | 1910 | dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname |
2730 | AC_MSG_CHECKING([if ]COMPILER[ supports]flag[]) | |
1911 | AC_MSG_CHECKING([if ]COMPILER[ supports ]flag[]) | |
2731 | 1912 | cacheid=AS_TR_SH([xorg_cv_]CACHE_PREFIX[_flag_]flag[]) |
2732 | 1913 | AC_CACHE_VAL($cacheid, |
2733 | 1914 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([int i;])], |
2794 | 1975 | XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-prototypes]) |
2795 | 1976 | XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wnested-externs]) |
2796 | 1977 | XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wbad-function-cast]) |
2797 | XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wold-style-definition]) | |
1978 | XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wold-style-definition], [-fd]) | |
2798 | 1979 | XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wdeclaration-after-statement]) |
2799 | 1980 | ] |
2800 | 1981 | ) |
2803 | 1984 | XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wunused]) |
2804 | 1985 | XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wuninitialized]) |
2805 | 1986 | XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wshadow]) |
2806 | XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) | |
2807 | 1987 | XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-noreturn]) |
2808 | 1988 | XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-format-attribute]) |
2809 | 1989 | XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls]) |
1990 | XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) | |
2810 | 1991 | |
2811 | 1992 | # These are currently disabled because they are noisy. They will be enabled |
2812 | 1993 | # in the future once the codebase is sufficiently modernized to silence |
2813 | 1994 | # them. For now, I don't want them to drown out the other warnings. |
2814 | # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) | |
2815 | 1995 | # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) |
2816 | 1996 | # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) |
1997 | # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) | |
2817 | 1998 | |
2818 | 1999 | # Turn some warnings into errors, so we don't accidently get successful builds |
2819 | 2000 | # when there are problems that should be fixed. |
2987 | 2168 | # XORG_RELEASE_VERSION |
2988 | 2169 | # -------------------- |
2989 | 2170 | # Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. |
2990 | ||
2171 | ||
2991 | 2172 | AC_DEFUN([XORG_RELEASE_VERSION],[ |
2992 | 2173 | AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], |
2993 | 2174 | [`echo $PACKAGE_VERSION | cut -d . -f 1`], |
3024 | 2205 | AC_SUBST([CHANGELOG_CMD]) |
3025 | 2206 | ]) # XORG_CHANGELOG |
3026 | 2207 | |
2208 | # Copyright (C) 2002-2014 Free Software Foundation, Inc. | |
2209 | # | |
2210 | # This file is free software; the Free Software Foundation | |
2211 | # gives unlimited permission to copy and/or distribute it, | |
2212 | # with or without modifications, as long as this notice is preserved. | |
2213 | ||
2214 | # AM_AUTOMAKE_VERSION(VERSION) | |
2215 | # ---------------------------- | |
2216 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | |
2217 | # generated from the m4 files accompanying Automake X.Y. | |
2218 | # (This private macro should not be called outside this file.) | |
2219 | AC_DEFUN([AM_AUTOMAKE_VERSION], | |
2220 | [am__api_version='1.15' | |
2221 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
2222 | dnl require some minimum version. Point them to the right macro. | |
2223 | m4_if([$1], [1.15], [], | |
2224 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
2225 | ]) | |
2226 | ||
2227 | # _AM_AUTOCONF_VERSION(VERSION) | |
2228 | # ----------------------------- | |
2229 | # aclocal traces this macro to find the Autoconf version. | |
2230 | # This is a private macro too. Using m4_define simplifies | |
2231 | # the logic in aclocal, which can simply ignore this definition. | |
2232 | m4_define([_AM_AUTOCONF_VERSION], []) | |
2233 | ||
2234 | # AM_SET_CURRENT_AUTOMAKE_VERSION | |
2235 | # ------------------------------- | |
2236 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |
2237 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | |
2238 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
2239 | [AM_AUTOMAKE_VERSION([1.15])dnl | |
2240 | m4_ifndef([AC_AUTOCONF_VERSION], | |
2241 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
2242 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |
2243 | ||
2244 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- | |
2245 | ||
2246 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
2247 | # | |
2248 | # This file is free software; the Free Software Foundation | |
2249 | # gives unlimited permission to copy and/or distribute it, | |
2250 | # with or without modifications, as long as this notice is preserved. | |
2251 | ||
2252 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | |
2253 | # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to | |
2254 | # '$srcdir', '$srcdir/..', or '$srcdir/../..'. | |
2255 | # | |
2256 | # Of course, Automake must honor this variable whenever it calls a | |
2257 | # tool from the auxiliary directory. The problem is that $srcdir (and | |
2258 | # therefore $ac_aux_dir as well) can be either absolute or relative, | |
2259 | # depending on how configure is run. This is pretty annoying, since | |
2260 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
2261 | # source directory, any form will work fine, but in subdirectories a | |
2262 | # relative path needs to be adjusted first. | |
2263 | # | |
2264 | # $ac_aux_dir/missing | |
2265 | # fails when called from a subdirectory if $ac_aux_dir is relative | |
2266 | # $top_srcdir/$ac_aux_dir/missing | |
2267 | # fails if $ac_aux_dir is absolute, | |
2268 | # fails when called from a subdirectory in a VPATH build with | |
2269 | # a relative $ac_aux_dir | |
2270 | # | |
2271 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
2272 | # are both prefixed by $srcdir. In an in-source build this is usually | |
2273 | # harmless because $srcdir is '.', but things will broke when you | |
2274 | # start a VPATH build or use an absolute $srcdir. | |
2275 | # | |
2276 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
2277 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
2278 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
2279 | # and then we would define $MISSING as | |
2280 | # MISSING="\${SHELL} $am_aux_dir/missing" | |
2281 | # This will work as long as MISSING is not called from configure, because | |
2282 | # unfortunately $(top_srcdir) has no meaning in configure. | |
2283 | # However there are other variables, like CC, which are often used in | |
2284 | # configure, and could therefore not use this "fixed" $ac_aux_dir. | |
2285 | # | |
2286 | # Another solution, used here, is to always expand $ac_aux_dir to an | |
2287 | # absolute PATH. The drawback is that using absolute paths prevent a | |
2288 | # configured tree to be moved without reconfiguration. | |
2289 | ||
2290 | AC_DEFUN([AM_AUX_DIR_EXPAND], | |
2291 | [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | |
2292 | # Expand $ac_aux_dir to an absolute path. | |
2293 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2294 | ]) | |
2295 | ||
2296 | # AM_CONDITIONAL -*- Autoconf -*- | |
2297 | ||
2298 | # Copyright (C) 1997-2014 Free Software Foundation, Inc. | |
2299 | # | |
2300 | # This file is free software; the Free Software Foundation | |
2301 | # gives unlimited permission to copy and/or distribute it, | |
2302 | # with or without modifications, as long as this notice is preserved. | |
2303 | ||
2304 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | |
2305 | # ------------------------------------- | |
2306 | # Define a conditional. | |
2307 | AC_DEFUN([AM_CONDITIONAL], | |
2308 | [AC_PREREQ([2.52])dnl | |
2309 | m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
2310 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
2311 | AC_SUBST([$1_TRUE])dnl | |
2312 | AC_SUBST([$1_FALSE])dnl | |
2313 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl | |
2314 | _AM_SUBST_NOTMAKE([$1_FALSE])dnl | |
2315 | m4_define([_AM_COND_VALUE_$1], [$2])dnl | |
2316 | if $2; then | |
2317 | $1_TRUE= | |
2318 | $1_FALSE='#' | |
2319 | else | |
2320 | $1_TRUE='#' | |
2321 | $1_FALSE= | |
2322 | fi | |
2323 | AC_CONFIG_COMMANDS_PRE( | |
2324 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | |
2325 | AC_MSG_ERROR([[conditional "$1" was never defined. | |
2326 | Usually this means the macro was only invoked conditionally.]]) | |
2327 | fi])]) | |
2328 | ||
2329 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
2330 | # | |
2331 | # This file is free software; the Free Software Foundation | |
2332 | # gives unlimited permission to copy and/or distribute it, | |
2333 | # with or without modifications, as long as this notice is preserved. | |
2334 | ||
2335 | ||
2336 | # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be | |
2337 | # written in clear, in which case automake, when reading aclocal.m4, | |
2338 | # will think it sees a *use*, and therefore will trigger all it's | |
2339 | # C support machinery. Also note that it means that autoscan, seeing | |
2340 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | |
2341 | ||
2342 | ||
2343 | # _AM_DEPENDENCIES(NAME) | |
2344 | # ---------------------- | |
2345 | # See how the compiler implements dependency checking. | |
2346 | # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". | |
2347 | # We try a few techniques and use that to set a single cache variable. | |
2348 | # | |
2349 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | |
2350 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | |
2351 | # dependency, and given that the user is not expected to run this macro, | |
2352 | # just rely on AC_PROG_CC. | |
2353 | AC_DEFUN([_AM_DEPENDENCIES], | |
2354 | [AC_REQUIRE([AM_SET_DEPDIR])dnl | |
2355 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | |
2356 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl | |
2357 | AC_REQUIRE([AM_DEP_TRACK])dnl | |
2358 | ||
2359 | m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], | |
2360 | [$1], [CXX], [depcc="$CXX" am_compiler_list=], | |
2361 | [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
2362 | [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], | |
2363 | [$1], [UPC], [depcc="$UPC" am_compiler_list=], | |
2364 | [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
2365 | [depcc="$$1" am_compiler_list=]) | |
2366 | ||
2367 | AC_CACHE_CHECK([dependency style of $depcc], | |
2368 | [am_cv_$1_dependencies_compiler_type], | |
2369 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2370 | # We make a subdir and do the tests there. Otherwise we can end up | |
2371 | # making bogus files that we don't know about and never remove. For | |
2372 | # instance it was reported that on HP-UX the gcc test will end up | |
2373 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
2374 | # in D". | |
2375 | rm -rf conftest.dir | |
2376 | mkdir conftest.dir | |
2377 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2378 | # using a relative directory. | |
2379 | cp "$am_depcomp" conftest.dir | |
2380 | cd conftest.dir | |
2381 | # We will build objects and dependencies in a subdirectory because | |
2382 | # it helps to detect inapplicable dependency modes. For instance | |
2383 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
2384 | # side effect of compilation, but ICC will put the dependencies in | |
2385 | # the current directory while Tru64 will put them in the object | |
2386 | # directory. | |
2387 | mkdir sub | |
2388 | ||
2389 | am_cv_$1_dependencies_compiler_type=none | |
2390 | if test "$am_compiler_list" = ""; then | |
2391 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | |
2392 | fi | |
2393 | am__universal=false | |
2394 | m4_case([$1], [CC], | |
2395 | [case " $depcc " in #( | |
2396 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
2397 | esac], | |
2398 | [CXX], | |
2399 | [case " $depcc " in #( | |
2400 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
2401 | esac]) | |
2402 | ||
2403 | for depmode in $am_compiler_list; do | |
2404 | # Setup a source with many dependencies, because some compilers | |
2405 | # like to wrap large dependency lists on column 80 (with \), and | |
2406 | # we should not choose a depcomp mode which is confused by this. | |
2407 | # | |
2408 | # We need to recreate these files for each test, as the compiler may | |
2409 | # overwrite some of them when testing with obscure command lines. | |
2410 | # This happens at least with the AIX C compiler. | |
2411 | : > sub/conftest.c | |
2412 | for i in 1 2 3 4 5 6; do | |
2413 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
2414 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
2415 | # Solaris 10 /bin/sh. | |
2416 | echo '/* dummy */' > sub/conftst$i.h | |
2417 | done | |
2418 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
2419 | ||
2420 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
2421 | # mode. It turns out that the SunPro C++ compiler does not properly | |
2422 | # handle '-M -o', and we need to detect this. Also, some Intel | |
2423 | # versions had trouble with output in subdirs. | |
2424 | am__obj=sub/conftest.${OBJEXT-o} | |
2425 | am__minus_obj="-o $am__obj" | |
2426 | case $depmode in | |
2427 | gcc) | |
2428 | # This depmode causes a compiler race in universal mode. | |
2429 | test "$am__universal" = false || continue | |
2430 | ;; | |
2431 | nosideeffect) | |
2432 | # After this tag, mechanisms are not by side-effect, so they'll | |
2433 | # only be used when explicitly requested. | |
2434 | if test "x$enable_dependency_tracking" = xyes; then | |
2435 | continue | |
2436 | else | |
2437 | break | |
2438 | fi | |
2439 | ;; | |
2440 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
2441 | # This compiler won't grok '-c -o', but also, the minuso test has | |
2442 | # not run yet. These depmodes are late enough in the game, and | |
2443 | # so weak that their functioning should not be impacted. | |
2444 | am__obj=conftest.${OBJEXT-o} | |
2445 | am__minus_obj= | |
2446 | ;; | |
2447 | none) break ;; | |
2448 | esac | |
2449 | if depmode=$depmode \ | |
2450 | source=sub/conftest.c object=$am__obj \ | |
2451 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
2452 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
2453 | >/dev/null 2>conftest.err && | |
2454 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
2455 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
2456 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
2457 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2458 | # icc doesn't choke on unknown options, it will just issue warnings | |
2459 | # or remarks (even with -Werror). So we grep stderr for any message | |
2460 | # that says an option was ignored or not supported. | |
2461 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
2462 | # icc: Command line warning: ignoring option '-M'; no argument required | |
2463 | # The diagnosis changed in icc 8.0: | |
2464 | # icc: Command line remark: option '-MP' not supported | |
2465 | if (grep 'ignoring option' conftest.err || | |
2466 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
2467 | am_cv_$1_dependencies_compiler_type=$depmode | |
2468 | break | |
2469 | fi | |
2470 | fi | |
2471 | done | |
2472 | ||
2473 | cd .. | |
2474 | rm -rf conftest.dir | |
2475 | else | |
2476 | am_cv_$1_dependencies_compiler_type=none | |
2477 | fi | |
2478 | ]) | |
2479 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) | |
2480 | AM_CONDITIONAL([am__fastdep$1], [ | |
2481 | test "x$enable_dependency_tracking" != xno \ | |
2482 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) | |
2483 | ]) | |
2484 | ||
2485 | ||
2486 | # AM_SET_DEPDIR | |
2487 | # ------------- | |
2488 | # Choose a directory name for dependency files. | |
2489 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES. | |
2490 | AC_DEFUN([AM_SET_DEPDIR], | |
2491 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
2492 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | |
2493 | ]) | |
2494 | ||
2495 | ||
2496 | # AM_DEP_TRACK | |
2497 | # ------------ | |
2498 | AC_DEFUN([AM_DEP_TRACK], | |
2499 | [AC_ARG_ENABLE([dependency-tracking], [dnl | |
2500 | AS_HELP_STRING( | |
2501 | [--enable-dependency-tracking], | |
2502 | [do not reject slow dependency extractors]) | |
2503 | AS_HELP_STRING( | |
2504 | [--disable-dependency-tracking], | |
2505 | [speeds up one-time build])]) | |
2506 | if test "x$enable_dependency_tracking" != xno; then | |
2507 | am_depcomp="$ac_aux_dir/depcomp" | |
2508 | AMDEPBACKSLASH='\' | |
2509 | am__nodep='_no' | |
2510 | fi | |
2511 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | |
2512 | AC_SUBST([AMDEPBACKSLASH])dnl | |
2513 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |
2514 | AC_SUBST([am__nodep])dnl | |
2515 | _AM_SUBST_NOTMAKE([am__nodep])dnl | |
2516 | ]) | |
2517 | ||
2518 | # Generate code to set up dependency tracking. -*- Autoconf -*- | |
2519 | ||
2520 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
2521 | # | |
2522 | # This file is free software; the Free Software Foundation | |
2523 | # gives unlimited permission to copy and/or distribute it, | |
2524 | # with or without modifications, as long as this notice is preserved. | |
2525 | ||
2526 | ||
2527 | # _AM_OUTPUT_DEPENDENCY_COMMANDS | |
2528 | # ------------------------------ | |
2529 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | |
2530 | [{ | |
2531 | # Older Autoconf quotes --file arguments for eval, but not when files | |
2532 | # are listed without --file. Let's play safe and only enable the eval | |
2533 | # if we detect the quoting. | |
2534 | case $CONFIG_FILES in | |
2535 | *\'*) eval set x "$CONFIG_FILES" ;; | |
2536 | *) set x $CONFIG_FILES ;; | |
2537 | esac | |
2538 | shift | |
2539 | for mf | |
2540 | do | |
2541 | # Strip MF so we end up with the name of the file. | |
2542 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
2543 | # Check whether this is an Automake generated Makefile or not. | |
2544 | # We used to match only the files named 'Makefile.in', but | |
2545 | # some people rename them; so instead we look at the file content. | |
2546 | # Grep'ing the first line is not enough: some people post-process | |
2547 | # each Makefile.in and add a new line on top of each file to say so. | |
2548 | # Grep'ing the whole file is not good either: AIX grep has a line | |
2549 | # limit of 2048, but all sed's we know have understand at least 4000. | |
2550 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
2551 | dirpart=`AS_DIRNAME("$mf")` | |
2552 | else | |
2553 | continue | |
2554 | fi | |
2555 | # Extract the definition of DEPDIR, am__include, and am__quote | |
2556 | # from the Makefile without running 'make'. | |
2557 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
2558 | test -z "$DEPDIR" && continue | |
2559 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
2560 | test -z "$am__include" && continue | |
2561 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
2562 | # Find all dependency output files, they are included files with | |
2563 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
2564 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
2565 | # expansion. | |
2566 | for file in `sed -n " | |
2567 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
2568 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
2569 | # Make sure the directory exists. | |
2570 | test -f "$dirpart/$file" && continue | |
2571 | fdir=`AS_DIRNAME(["$file"])` | |
2572 | AS_MKDIR_P([$dirpart/$fdir]) | |
2573 | # echo "creating $dirpart/$file" | |
2574 | echo '# dummy' > "$dirpart/$file" | |
2575 | done | |
2576 | done | |
2577 | } | |
2578 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | |
2579 | ||
2580 | ||
2581 | # AM_OUTPUT_DEPENDENCY_COMMANDS | |
2582 | # ----------------------------- | |
2583 | # This macro should only be invoked once -- use via AC_REQUIRE. | |
2584 | # | |
2585 | # This code is only required when automatic dependency tracking | |
2586 | # is enabled. FIXME. This creates each '.P' file that we will | |
2587 | # need in order to bootstrap the dependency handling code. | |
2588 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |
2589 | [AC_CONFIG_COMMANDS([depfiles], | |
2590 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | |
2591 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | |
2592 | ]) | |
2593 | ||
2594 | # Do all the work for Automake. -*- Autoconf -*- | |
2595 | ||
2596 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
2597 | # | |
2598 | # This file is free software; the Free Software Foundation | |
2599 | # gives unlimited permission to copy and/or distribute it, | |
2600 | # with or without modifications, as long as this notice is preserved. | |
2601 | ||
2602 | # This macro actually does too much. Some checks are only needed if | |
2603 | # your package does certain things. But this isn't really a big deal. | |
2604 | ||
2605 | dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. | |
2606 | m4_define([AC_PROG_CC], | |
2607 | m4_defn([AC_PROG_CC]) | |
2608 | [_AM_PROG_CC_C_O | |
2609 | ]) | |
2610 | ||
2611 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
2612 | # AM_INIT_AUTOMAKE([OPTIONS]) | |
2613 | # ----------------------------------------------- | |
2614 | # The call with PACKAGE and VERSION arguments is the old style | |
2615 | # call (pre autoconf-2.50), which is being phased out. PACKAGE | |
2616 | # and VERSION should now be passed to AC_INIT and removed from | |
2617 | # the call to AM_INIT_AUTOMAKE. | |
2618 | # We support both call styles for the transition. After | |
2619 | # the next Automake release, Autoconf can make the AC_INIT | |
2620 | # arguments mandatory, and then we can depend on a new Autoconf | |
2621 | # release and drop the old call support. | |
2622 | AC_DEFUN([AM_INIT_AUTOMAKE], | |
2623 | [AC_PREREQ([2.65])dnl | |
2624 | dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
2625 | dnl the ones we care about. | |
2626 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
2627 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
2628 | AC_REQUIRE([AC_PROG_INSTALL])dnl | |
2629 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2630 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2631 | # is not polluted with repeated "-I." | |
2632 | AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
2633 | # test to see if srcdir already configured | |
2634 | if test -f $srcdir/config.status; then | |
2635 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
2636 | fi | |
2637 | fi | |
2638 | ||
2639 | # test whether we have cygpath | |
2640 | if test -z "$CYGPATH_W"; then | |
2641 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2642 | CYGPATH_W='cygpath -w' | |
2643 | else | |
2644 | CYGPATH_W=echo | |
2645 | fi | |
2646 | fi | |
2647 | AC_SUBST([CYGPATH_W]) | |
2648 | ||
2649 | # Define the identity of the package. | |
2650 | dnl Distinguish between old-style and new-style calls. | |
2651 | m4_ifval([$2], | |
2652 | [AC_DIAGNOSE([obsolete], | |
2653 | [$0: two- and three-arguments forms are deprecated.]) | |
2654 | m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
2655 | AC_SUBST([PACKAGE], [$1])dnl | |
2656 | AC_SUBST([VERSION], [$2])], | |
2657 | [_AM_SET_OPTIONS([$1])dnl | |
2658 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
2659 | m4_if( | |
2660 | m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), | |
2661 | [ok:ok],, | |
2662 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
2663 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
2664 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
2665 | ||
2666 | _AM_IF_OPTION([no-define],, | |
2667 | [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) | |
2668 | AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl | |
2669 | ||
2670 | # Some tools Automake needs. | |
2671 | AC_REQUIRE([AM_SANITY_CHECK])dnl | |
2672 | AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
2673 | AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) | |
2674 | AM_MISSING_PROG([AUTOCONF], [autoconf]) | |
2675 | AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) | |
2676 | AM_MISSING_PROG([AUTOHEADER], [autoheader]) | |
2677 | AM_MISSING_PROG([MAKEINFO], [makeinfo]) | |
2678 | AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
2679 | AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | |
2680 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
2681 | # For better backward compatibility. To be removed once Automake 1.9.x | |
2682 | # dies out for good. For more background, see: | |
2683 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2684 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2685 | AC_SUBST([mkdir_p], ['$(MKDIR_P)']) | |
2686 | # We need awk for the "check" target (and possibly the TAP driver). The | |
2687 | # system "awk" is bad on some platforms. | |
2688 | AC_REQUIRE([AC_PROG_AWK])dnl | |
2689 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
2690 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
2691 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
2692 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
2693 | [_AM_PROG_TAR([v7])])]) | |
2694 | _AM_IF_OPTION([no-dependencies],, | |
2695 | [AC_PROVIDE_IFELSE([AC_PROG_CC], | |
2696 | [_AM_DEPENDENCIES([CC])], | |
2697 | [m4_define([AC_PROG_CC], | |
2698 | m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl | |
2699 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
2700 | [_AM_DEPENDENCIES([CXX])], | |
2701 | [m4_define([AC_PROG_CXX], | |
2702 | m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl | |
2703 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
2704 | [_AM_DEPENDENCIES([OBJC])], | |
2705 | [m4_define([AC_PROG_OBJC], | |
2706 | m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl | |
2707 | AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], | |
2708 | [_AM_DEPENDENCIES([OBJCXX])], | |
2709 | [m4_define([AC_PROG_OBJCXX], | |
2710 | m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl | |
2711 | ]) | |
2712 | AC_REQUIRE([AM_SILENT_RULES])dnl | |
2713 | dnl The testsuite driver may need to know about EXEEXT, so add the | |
2714 | dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This | |
2715 | dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
2716 | AC_CONFIG_COMMANDS_PRE(dnl | |
2717 | [m4_provide_if([_AM_COMPILER_EXEEXT], | |
2718 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | |
2719 | ||
2720 | # POSIX will say in a future version that running "rm -f" with no argument | |
2721 | # is OK; and we want to be able to make that assumption in our Makefile | |
2722 | # recipes. So use an aggressive probe to check that the usage we want is | |
2723 | # actually supported "in the wild" to an acceptable degree. | |
2724 | # See automake bug#10828. | |
2725 | # To make any issue more visible, cause the running configure to be aborted | |
2726 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2727 | # user can still override this though. | |
2728 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2729 | cat >&2 <<'END' | |
2730 | Oops! | |
2731 | ||
2732 | Your 'rm' program seems unable to run without file operands specified | |
2733 | on the command line, even when the '-f' option is present. This is contrary | |
2734 | to the behaviour of most rm programs out there, and not conforming with | |
2735 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2736 | ||
2737 | Please tell bug-automake@gnu.org about your system, including the value | |
2738 | of your $PATH and any error possibly output before this message. This | |
2739 | can help us improve future automake versions. | |
2740 | ||
2741 | END | |
2742 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2743 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2744 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2745 | echo >&2 | |
2746 | else | |
2747 | cat >&2 <<'END' | |
2748 | Aborting the configuration process, to ensure you take notice of the issue. | |
2749 | ||
2750 | You can download and install GNU coreutils to get an 'rm' implementation | |
2751 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2752 | ||
2753 | If you want to complete the configuration process using your problematic | |
2754 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
2755 | to "yes", and re-run configure. | |
2756 | ||
2757 | END | |
2758 | AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) | |
2759 | fi | |
2760 | fi | |
2761 | dnl The trailing newline in this macro's definition is deliberate, for | |
2762 | dnl backward compatibility and to allow trailing 'dnl'-style comments | |
2763 | dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. | |
2764 | ]) | |
2765 | ||
2766 | dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
2767 | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | |
2768 | dnl mangled by Autoconf and run in a shell conditional statement. | |
2769 | m4_define([_AC_COMPILER_EXEEXT], | |
2770 | m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | |
2771 | ||
2772 | # When config.status generates a header, we must update the stamp-h file. | |
2773 | # This file resides in the same directory as the config header | |
2774 | # that is generated. The stamp files are numbered to have different names. | |
2775 | ||
2776 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
2777 | # loop where config.status creates the headers, so we can generate | |
2778 | # our stamp files there. | |
2779 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
2780 | [# Compute $1's index in $config_headers. | |
2781 | _am_arg=$1 | |
2782 | _am_stamp_count=1 | |
2783 | for _am_header in $config_headers :; do | |
2784 | case $_am_header in | |
2785 | $_am_arg | $_am_arg:* ) | |
2786 | break ;; | |
2787 | * ) | |
2788 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
2789 | esac | |
2790 | done | |
2791 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |
2792 | ||
2793 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
2794 | # | |
2795 | # This file is free software; the Free Software Foundation | |
2796 | # gives unlimited permission to copy and/or distribute it, | |
2797 | # with or without modifications, as long as this notice is preserved. | |
2798 | ||
2799 | # AM_PROG_INSTALL_SH | |
2800 | # ------------------ | |
2801 | # Define $install_sh. | |
2802 | AC_DEFUN([AM_PROG_INSTALL_SH], | |
2803 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
2804 | if test x"${install_sh+set}" != xset; then | |
2805 | case $am_aux_dir in | |
2806 | *\ * | *\ *) | |
2807 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2808 | *) | |
2809 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2810 | esac | |
2811 | fi | |
2812 | AC_SUBST([install_sh])]) | |
2813 | ||
2814 | # Copyright (C) 2003-2014 Free Software Foundation, Inc. | |
2815 | # | |
2816 | # This file is free software; the Free Software Foundation | |
2817 | # gives unlimited permission to copy and/or distribute it, | |
2818 | # with or without modifications, as long as this notice is preserved. | |
2819 | ||
2820 | # Check whether the underlying file-system supports filenames | |
2821 | # with a leading dot. For instance MS-DOS doesn't. | |
2822 | AC_DEFUN([AM_SET_LEADING_DOT], | |
2823 | [rm -rf .tst 2>/dev/null | |
2824 | mkdir .tst 2>/dev/null | |
2825 | if test -d .tst; then | |
2826 | am__leading_dot=. | |
2827 | else | |
2828 | am__leading_dot=_ | |
2829 | fi | |
2830 | rmdir .tst 2>/dev/null | |
2831 | AC_SUBST([am__leading_dot])]) | |
2832 | ||
2833 | # Check to see how 'make' treats includes. -*- Autoconf -*- | |
2834 | ||
2835 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
2836 | # | |
2837 | # This file is free software; the Free Software Foundation | |
2838 | # gives unlimited permission to copy and/or distribute it, | |
2839 | # with or without modifications, as long as this notice is preserved. | |
2840 | ||
2841 | # AM_MAKE_INCLUDE() | |
2842 | # ----------------- | |
2843 | # Check to see how make treats includes. | |
2844 | AC_DEFUN([AM_MAKE_INCLUDE], | |
2845 | [am_make=${MAKE-make} | |
2846 | cat > confinc << 'END' | |
2847 | am__doit: | |
2848 | @echo this is the am__doit target | |
2849 | .PHONY: am__doit | |
2850 | END | |
2851 | # If we don't find an include directive, just comment out the code. | |
2852 | AC_MSG_CHECKING([for style of include used by $am_make]) | |
2853 | am__include="#" | |
2854 | am__quote= | |
2855 | _am_result=none | |
2856 | # First try GNU make style include. | |
2857 | echo "include confinc" > confmf | |
2858 | # Ignore all kinds of additional output from 'make'. | |
2859 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
2860 | *the\ am__doit\ target*) | |
2861 | am__include=include | |
2862 | am__quote= | |
2863 | _am_result=GNU | |
2864 | ;; | |
2865 | esac | |
2866 | # Now try BSD make style include. | |
2867 | if test "$am__include" = "#"; then | |
2868 | echo '.include "confinc"' > confmf | |
2869 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
2870 | *the\ am__doit\ target*) | |
2871 | am__include=.include | |
2872 | am__quote="\"" | |
2873 | _am_result=BSD | |
2874 | ;; | |
2875 | esac | |
2876 | fi | |
2877 | AC_SUBST([am__include]) | |
2878 | AC_SUBST([am__quote]) | |
2879 | AC_MSG_RESULT([$_am_result]) | |
2880 | rm -f confinc confmf | |
2881 | ]) | |
2882 | ||
2883 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
2884 | ||
2885 | # Copyright (C) 1997-2014 Free Software Foundation, Inc. | |
2886 | # | |
2887 | # This file is free software; the Free Software Foundation | |
2888 | # gives unlimited permission to copy and/or distribute it, | |
2889 | # with or without modifications, as long as this notice is preserved. | |
2890 | ||
2891 | # AM_MISSING_PROG(NAME, PROGRAM) | |
2892 | # ------------------------------ | |
2893 | AC_DEFUN([AM_MISSING_PROG], | |
2894 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
2895 | $1=${$1-"${am_missing_run}$2"} | |
2896 | AC_SUBST($1)]) | |
2897 | ||
2898 | # AM_MISSING_HAS_RUN | |
2899 | # ------------------ | |
2900 | # Define MISSING if not defined so far and test if it is modern enough. | |
2901 | # If it is, set am_missing_run to use it, otherwise, to nothing. | |
2902 | AC_DEFUN([AM_MISSING_HAS_RUN], | |
2903 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
2904 | AC_REQUIRE_AUX_FILE([missing])dnl | |
2905 | if test x"${MISSING+set}" != xset; then | |
2906 | case $am_aux_dir in | |
2907 | *\ * | *\ *) | |
2908 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2909 | *) | |
2910 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2911 | esac | |
2912 | fi | |
2913 | # Use eval to expand $SHELL | |
2914 | if eval "$MISSING --is-lightweight"; then | |
2915 | am_missing_run="$MISSING " | |
2916 | else | |
2917 | am_missing_run= | |
2918 | AC_MSG_WARN(['missing' script is too old or missing]) | |
2919 | fi | |
2920 | ]) | |
2921 | ||
2922 | # Helper functions for option handling. -*- Autoconf -*- | |
2923 | ||
2924 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
2925 | # | |
2926 | # This file is free software; the Free Software Foundation | |
2927 | # gives unlimited permission to copy and/or distribute it, | |
2928 | # with or without modifications, as long as this notice is preserved. | |
2929 | ||
2930 | # _AM_MANGLE_OPTION(NAME) | |
2931 | # ----------------------- | |
2932 | AC_DEFUN([_AM_MANGLE_OPTION], | |
2933 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
2934 | ||
2935 | # _AM_SET_OPTION(NAME) | |
2936 | # -------------------- | |
2937 | # Set option NAME. Presently that only means defining a flag for this option. | |
2938 | AC_DEFUN([_AM_SET_OPTION], | |
2939 | [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) | |
2940 | ||
2941 | # _AM_SET_OPTIONS(OPTIONS) | |
2942 | # ------------------------ | |
2943 | # OPTIONS is a space-separated list of Automake options. | |
2944 | AC_DEFUN([_AM_SET_OPTIONS], | |
2945 | [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
2946 | ||
2947 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
2948 | # ------------------------------------------- | |
2949 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
2950 | AC_DEFUN([_AM_IF_OPTION], | |
2951 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
2952 | ||
2953 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
2954 | # | |
2955 | # This file is free software; the Free Software Foundation | |
2956 | # gives unlimited permission to copy and/or distribute it, | |
2957 | # with or without modifications, as long as this notice is preserved. | |
2958 | ||
2959 | # _AM_PROG_CC_C_O | |
2960 | # --------------- | |
2961 | # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC | |
2962 | # to automatically call this. | |
2963 | AC_DEFUN([_AM_PROG_CC_C_O], | |
2964 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
2965 | AC_REQUIRE_AUX_FILE([compile])dnl | |
2966 | AC_LANG_PUSH([C])dnl | |
2967 | AC_CACHE_CHECK( | |
2968 | [whether $CC understands -c and -o together], | |
2969 | [am_cv_prog_cc_c_o], | |
2970 | [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) | |
2971 | # Make sure it works both with $CC and with simple cc. | |
2972 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
2973 | # compilers refuse to overwrite an existing .o file with -o, | |
2974 | # though they will create one. | |
2975 | am_cv_prog_cc_c_o=yes | |
2976 | for am_i in 1 2; do | |
2977 | if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ | |
2978 | && test -f conftest2.$ac_objext; then | |
2979 | : OK | |
2980 | else | |
2981 | am_cv_prog_cc_c_o=no | |
2982 | break | |
2983 | fi | |
2984 | done | |
2985 | rm -f core conftest* | |
2986 | unset am_i]) | |
2987 | if test "$am_cv_prog_cc_c_o" != yes; then | |
2988 | # Losing compiler, so override with the script. | |
2989 | # FIXME: It is wrong to rewrite CC. | |
2990 | # But if we don't then we get into trouble of one sort or another. | |
2991 | # A longer-term fix would be to have automake use am__CC in this case, | |
2992 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
2993 | CC="$am_aux_dir/compile $CC" | |
2994 | fi | |
2995 | AC_LANG_POP([C])]) | |
2996 | ||
2997 | # For backward compatibility. | |
2998 | AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) | |
2999 | ||
3000 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
3001 | # | |
3002 | # This file is free software; the Free Software Foundation | |
3003 | # gives unlimited permission to copy and/or distribute it, | |
3004 | # with or without modifications, as long as this notice is preserved. | |
3005 | ||
3006 | # AM_RUN_LOG(COMMAND) | |
3007 | # ------------------- | |
3008 | # Run COMMAND, save the exit status in ac_status, and log it. | |
3009 | # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) | |
3010 | AC_DEFUN([AM_RUN_LOG], | |
3011 | [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD | |
3012 | ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD | |
3013 | ac_status=$? | |
3014 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
3015 | (exit $ac_status); }]) | |
3016 | ||
3017 | # Check to make sure that the build environment is sane. -*- Autoconf -*- | |
3018 | ||
3019 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
3020 | # | |
3021 | # This file is free software; the Free Software Foundation | |
3022 | # gives unlimited permission to copy and/or distribute it, | |
3023 | # with or without modifications, as long as this notice is preserved. | |
3024 | ||
3025 | # AM_SANITY_CHECK | |
3026 | # --------------- | |
3027 | AC_DEFUN([AM_SANITY_CHECK], | |
3028 | [AC_MSG_CHECKING([whether build environment is sane]) | |
3029 | # Reject unsafe characters in $srcdir or the absolute working directory | |
3030 | # name. Accept space and tab only in the latter. | |
3031 | am_lf=' | |
3032 | ' | |
3033 | case `pwd` in | |
3034 | *[[\\\"\#\$\&\'\`$am_lf]]*) | |
3035 | AC_MSG_ERROR([unsafe absolute working directory name]);; | |
3036 | esac | |
3037 | case $srcdir in | |
3038 | *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |
3039 | AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; | |
3040 | esac | |
3041 | ||
3042 | # Do 'set' in a subshell so we don't clobber the current shell's | |
3043 | # arguments. Must try -L first in case configure is actually a | |
3044 | # symlink; some systems play weird games with the mod time of symlinks | |
3045 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3046 | # directory). | |
3047 | if ( | |
3048 | am_has_slept=no | |
3049 | for am_try in 1 2; do | |
3050 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
3051 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3052 | if test "$[*]" = "X"; then | |
3053 | # -L didn't work. | |
3054 | set X `ls -t "$srcdir/configure" conftest.file` | |
3055 | fi | |
3056 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
3057 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
3058 | ||
3059 | # If neither matched, then we have a broken ls. This can happen | |
3060 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3061 | # broken ls alias from the environment. This has actually | |
3062 | # happened. Such a system could not be considered "sane". | |
3063 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
3064 | alias in your environment]) | |
3065 | fi | |
3066 | if test "$[2]" = conftest.file || test $am_try -eq 2; then | |
3067 | break | |
3068 | fi | |
3069 | # Just in case. | |
3070 | sleep 1 | |
3071 | am_has_slept=yes | |
3072 | done | |
3073 | test "$[2]" = conftest.file | |
3074 | ) | |
3075 | then | |
3076 | # Ok. | |
3077 | : | |
3078 | else | |
3079 | AC_MSG_ERROR([newly created file is older than distributed files! | |
3080 | Check your system clock]) | |
3081 | fi | |
3082 | AC_MSG_RESULT([yes]) | |
3083 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
3084 | # generated files are strictly newer. | |
3085 | am_sleep_pid= | |
3086 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3087 | ( sleep 1 ) & | |
3088 | am_sleep_pid=$! | |
3089 | fi | |
3090 | AC_CONFIG_COMMANDS_PRE( | |
3091 | [AC_MSG_CHECKING([that generated files are newer than configure]) | |
3092 | if test -n "$am_sleep_pid"; then | |
3093 | # Hide warnings about reused PIDs. | |
3094 | wait $am_sleep_pid 2>/dev/null | |
3095 | fi | |
3096 | AC_MSG_RESULT([done])]) | |
3097 | rm -f conftest.file | |
3098 | ]) | |
3099 | ||
3100 | # Copyright (C) 2009-2014 Free Software Foundation, Inc. | |
3101 | # | |
3102 | # This file is free software; the Free Software Foundation | |
3103 | # gives unlimited permission to copy and/or distribute it, | |
3104 | # with or without modifications, as long as this notice is preserved. | |
3105 | ||
3106 | # AM_SILENT_RULES([DEFAULT]) | |
3107 | # -------------------------- | |
3108 | # Enable less verbose build rules; with the default set to DEFAULT | |
3109 | # ("yes" being less verbose, "no" or empty being verbose). | |
3110 | AC_DEFUN([AM_SILENT_RULES], | |
3111 | [AC_ARG_ENABLE([silent-rules], [dnl | |
3112 | AS_HELP_STRING( | |
3113 | [--enable-silent-rules], | |
3114 | [less verbose build output (undo: "make V=1")]) | |
3115 | AS_HELP_STRING( | |
3116 | [--disable-silent-rules], | |
3117 | [verbose build output (undo: "make V=0")])dnl | |
3118 | ]) | |
3119 | case $enable_silent_rules in @%:@ ((( | |
3120 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3121 | no) AM_DEFAULT_VERBOSITY=1;; | |
3122 | *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; | |
3123 | esac | |
3124 | dnl | |
3125 | dnl A few 'make' implementations (e.g., NonStop OS and NextStep) | |
3126 | dnl do not support nested variable expansions. | |
3127 | dnl See automake bug#9928 and bug#10237. | |
3128 | am_make=${MAKE-make} | |
3129 | AC_CACHE_CHECK([whether $am_make supports nested variables], | |
3130 | [am_cv_make_support_nested_variables], | |
3131 | [if AS_ECHO([['TRUE=$(BAR$(V)) | |
3132 | BAR0=false | |
3133 | BAR1=true | |
3134 | V=1 | |
3135 | am__doit: | |
3136 | @$(TRUE) | |
3137 | .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then | |
3138 | am_cv_make_support_nested_variables=yes | |
3139 | else | |
3140 | am_cv_make_support_nested_variables=no | |
3141 | fi]) | |
3142 | if test $am_cv_make_support_nested_variables = yes; then | |
3143 | dnl Using '$V' instead of '$(V)' breaks IRIX make. | |
3144 | AM_V='$(V)' | |
3145 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3146 | else | |
3147 | AM_V=$AM_DEFAULT_VERBOSITY | |
3148 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3149 | fi | |
3150 | AC_SUBST([AM_V])dnl | |
3151 | AM_SUBST_NOTMAKE([AM_V])dnl | |
3152 | AC_SUBST([AM_DEFAULT_V])dnl | |
3153 | AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl | |
3154 | AC_SUBST([AM_DEFAULT_VERBOSITY])dnl | |
3155 | AM_BACKSLASH='\' | |
3156 | AC_SUBST([AM_BACKSLASH])dnl | |
3157 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl | |
3158 | ]) | |
3159 | ||
3160 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
3161 | # | |
3162 | # This file is free software; the Free Software Foundation | |
3163 | # gives unlimited permission to copy and/or distribute it, | |
3164 | # with or without modifications, as long as this notice is preserved. | |
3165 | ||
3166 | # AM_PROG_INSTALL_STRIP | |
3167 | # --------------------- | |
3168 | # One issue with vendor 'install' (even GNU) is that you can't | |
3169 | # specify the program used to strip binaries. This is especially | |
3170 | # annoying in cross-compiling environments, where the build's strip | |
3171 | # is unlikely to handle the host's binaries. | |
3172 | # Fortunately install-sh will honor a STRIPPROG variable, so we | |
3173 | # always use install-sh in "make install-strip", and initialize | |
3174 | # STRIPPROG with the value of the STRIP variable (set by the user). | |
3175 | AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
3176 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
3177 | # Installed binaries are usually stripped using 'strip' when the user | |
3178 | # run "make install-strip". However 'strip' might not be the right | |
3179 | # tool to use in cross-compilation environments, therefore Automake | |
3180 | # will honor the 'STRIP' environment variable to overrule this program. | |
3181 | dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. | |
3182 | if test "$cross_compiling" != no; then | |
3183 | AC_CHECK_TOOL([STRIP], [strip], :) | |
3184 | fi | |
3185 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3186 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
3187 | ||
3188 | # Copyright (C) 2006-2014 Free Software Foundation, Inc. | |
3189 | # | |
3190 | # This file is free software; the Free Software Foundation | |
3191 | # gives unlimited permission to copy and/or distribute it, | |
3192 | # with or without modifications, as long as this notice is preserved. | |
3193 | ||
3194 | # _AM_SUBST_NOTMAKE(VARIABLE) | |
3195 | # --------------------------- | |
3196 | # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
3197 | # This macro is traced by Automake. | |
3198 | AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
3199 | ||
3200 | # AM_SUBST_NOTMAKE(VARIABLE) | |
3201 | # -------------------------- | |
3202 | # Public sister of _AM_SUBST_NOTMAKE. | |
3203 | AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |
3204 | ||
3205 | # Check how to create a tarball. -*- Autoconf -*- | |
3206 | ||
3207 | # Copyright (C) 2004-2014 Free Software Foundation, Inc. | |
3208 | # | |
3209 | # This file is free software; the Free Software Foundation | |
3210 | # gives unlimited permission to copy and/or distribute it, | |
3211 | # with or without modifications, as long as this notice is preserved. | |
3212 | ||
3213 | # _AM_PROG_TAR(FORMAT) | |
3214 | # -------------------- | |
3215 | # Check how to create a tarball in format FORMAT. | |
3216 | # FORMAT should be one of 'v7', 'ustar', or 'pax'. | |
3217 | # | |
3218 | # Substitute a variable $(am__tar) that is a command | |
3219 | # writing to stdout a FORMAT-tarball containing the directory | |
3220 | # $tardir. | |
3221 | # tardir=directory && $(am__tar) > result.tar | |
3222 | # | |
3223 | # Substitute a variable $(am__untar) that extract such | |
3224 | # a tarball read from stdin. | |
3225 | # $(am__untar) < result.tar | |
3226 | # | |
3227 | AC_DEFUN([_AM_PROG_TAR], | |
3228 | [# Always define AMTAR for backward compatibility. Yes, it's still used | |
3229 | # in the wild :-( We should find a proper way to deprecate it ... | |
3230 | AC_SUBST([AMTAR], ['$${TAR-tar}']) | |
3231 | ||
3232 | # We'll loop over all known methods to create a tar archive until one works. | |
3233 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
3234 | ||
3235 | m4_if([$1], [v7], | |
3236 | [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | |
3237 | ||
3238 | [m4_case([$1], | |
3239 | [ustar], | |
3240 | [# The POSIX 1988 'ustar' format is defined with fixed-size fields. | |
3241 | # There is notably a 21 bits limit for the UID and the GID. In fact, | |
3242 | # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 | |
3243 | # and bug#13588). | |
3244 | am_max_uid=2097151 # 2^21 - 1 | |
3245 | am_max_gid=$am_max_uid | |
3246 | # The $UID and $GID variables are not portable, so we need to resort | |
3247 | # to the POSIX-mandated id(1) utility. Errors in the 'id' calls | |
3248 | # below are definitely unexpected, so allow the users to see them | |
3249 | # (that is, avoid stderr redirection). | |
3250 | am_uid=`id -u || echo unknown` | |
3251 | am_gid=`id -g || echo unknown` | |
3252 | AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) | |
3253 | if test $am_uid -le $am_max_uid; then | |
3254 | AC_MSG_RESULT([yes]) | |
3255 | else | |
3256 | AC_MSG_RESULT([no]) | |
3257 | _am_tools=none | |
3258 | fi | |
3259 | AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) | |
3260 | if test $am_gid -le $am_max_gid; then | |
3261 | AC_MSG_RESULT([yes]) | |
3262 | else | |
3263 | AC_MSG_RESULT([no]) | |
3264 | _am_tools=none | |
3265 | fi], | |
3266 | ||
3267 | [pax], | |
3268 | [], | |
3269 | ||
3270 | [m4_fatal([Unknown tar format])]) | |
3271 | ||
3272 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
3273 | ||
3274 | # Go ahead even if we have the value already cached. We do so because we | |
3275 | # need to set the values for the 'am__tar' and 'am__untar' variables. | |
3276 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
3277 | ||
3278 | for _am_tool in $_am_tools; do | |
3279 | case $_am_tool in | |
3280 | gnutar) | |
3281 | for _am_tar in tar gnutar gtar; do | |
3282 | AM_RUN_LOG([$_am_tar --version]) && break | |
3283 | done | |
3284 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
3285 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
3286 | am__untar="$_am_tar -xf -" | |
3287 | ;; | |
3288 | plaintar) | |
3289 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
3290 | # ustar tarball either. | |
3291 | (tar --version) >/dev/null 2>&1 && continue | |
3292 | am__tar='tar chf - "$$tardir"' | |
3293 | am__tar_='tar chf - "$tardir"' | |
3294 | am__untar='tar xf -' | |
3295 | ;; | |
3296 | pax) | |
3297 | am__tar='pax -L -x $1 -w "$$tardir"' | |
3298 | am__tar_='pax -L -x $1 -w "$tardir"' | |
3299 | am__untar='pax -r' | |
3300 | ;; | |
3301 | cpio) | |
3302 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
3303 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
3304 | am__untar='cpio -i -H $1 -d' | |
3305 | ;; | |
3306 | none) | |
3307 | am__tar=false | |
3308 | am__tar_=false | |
3309 | am__untar=false | |
3310 | ;; | |
3311 | esac | |
3312 | ||
3313 | # If the value was cached, stop now. We just wanted to have am__tar | |
3314 | # and am__untar set. | |
3315 | test -n "${am_cv_prog_tar_$1}" && break | |
3316 | ||
3317 | # tar/untar a dummy directory, and stop if the command works. | |
3318 | rm -rf conftest.dir | |
3319 | mkdir conftest.dir | |
3320 | echo GrepMe > conftest.dir/file | |
3321 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
3322 | rm -rf conftest.dir | |
3323 | if test -s conftest.tar; then | |
3324 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
3325 | AM_RUN_LOG([cat conftest.dir/file]) | |
3326 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
3327 | fi | |
3328 | done | |
3329 | rm -rf conftest.dir | |
3330 | ||
3331 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
3332 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
3333 | ||
3334 | AC_SUBST([am__tar]) | |
3335 | AC_SUBST([am__untar]) | |
3336 | ]) # _AM_PROG_TAR | |
3337 |
0 | 0 | XLogo*iconPixmap: xlogo32 |
1 | 1 | XLogo*iconMask: xlogo32 |
2 | 2 | XLogo*baseTranslations: #override \ |
3 | <Key>q,<Key>Escape: quit() | |
3 | <Key>q: quit() \n\ | |
4 | <Key>Escape: quit() |
0 | #! /bin/sh | |
1 | # Wrapper for compilers which do not understand '-c -o'. | |
2 | ||
3 | scriptversion=2012-10-14.11; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
6 | # Written by Tom Tromey <tromey@cygnus.com>. | |
7 | # | |
8 | # This program is free software; you can redistribute it and/or modify | |
9 | # it under the terms of the GNU General Public License as published by | |
10 | # the Free Software Foundation; either version 2, or (at your option) | |
11 | # any later version. | |
12 | # | |
13 | # This program is distributed in the hope that it will be useful, | |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | # GNU General Public License for more details. | |
17 | # | |
18 | # You should have received a copy of the GNU General Public License | |
19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
20 | ||
21 | # As a special exception to the GNU General Public License, if you | |
22 | # distribute this file as part of a program that contains a | |
23 | # configuration script generated by Autoconf, you may include it under | |
24 | # the same distribution terms that you use for the rest of that program. | |
25 | ||
26 | # This file is maintained in Automake, please report | |
27 | # bugs to <bug-automake@gnu.org> or send patches to | |
28 | # <automake-patches@gnu.org>. | |
29 | ||
30 | nl=' | |
31 | ' | |
32 | ||
33 | # We need space, tab and new line, in precisely that order. Quoting is | |
34 | # there to prevent tools from complaining about whitespace usage. | |
35 | IFS=" "" $nl" | |
36 | ||
37 | file_conv= | |
38 | ||
39 | # func_file_conv build_file lazy | |
40 | # Convert a $build file to $host form and store it in $file | |
41 | # Currently only supports Windows hosts. If the determined conversion | |
42 | # type is listed in (the comma separated) LAZY, no conversion will | |
43 | # take place. | |
44 | func_file_conv () | |
45 | { | |
46 | file=$1 | |
47 | case $file in | |
48 | / | /[!/]*) # absolute file, and not a UNC file | |
49 | if test -z "$file_conv"; then | |
50 | # lazily determine how to convert abs files | |
51 | case `uname -s` in | |
52 | MINGW*) | |
53 | file_conv=mingw | |
54 | ;; | |
55 | CYGWIN*) | |
56 | file_conv=cygwin | |
57 | ;; | |
58 | *) | |
59 | file_conv=wine | |
60 | ;; | |
61 | esac | |
62 | fi | |
63 | case $file_conv/,$2, in | |
64 | *,$file_conv,*) | |
65 | ;; | |
66 | mingw/*) | |
67 | file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` | |
68 | ;; | |
69 | cygwin/*) | |
70 | file=`cygpath -m "$file" || echo "$file"` | |
71 | ;; | |
72 | wine/*) | |
73 | file=`winepath -w "$file" || echo "$file"` | |
74 | ;; | |
75 | esac | |
76 | ;; | |
77 | esac | |
78 | } | |
79 | ||
80 | # func_cl_dashL linkdir | |
81 | # Make cl look for libraries in LINKDIR | |
82 | func_cl_dashL () | |
83 | { | |
84 | func_file_conv "$1" | |
85 | if test -z "$lib_path"; then | |
86 | lib_path=$file | |
87 | else | |
88 | lib_path="$lib_path;$file" | |
89 | fi | |
90 | linker_opts="$linker_opts -LIBPATH:$file" | |
91 | } | |
92 | ||
93 | # func_cl_dashl library | |
94 | # Do a library search-path lookup for cl | |
95 | func_cl_dashl () | |
96 | { | |
97 | lib=$1 | |
98 | found=no | |
99 | save_IFS=$IFS | |
100 | IFS=';' | |
101 | for dir in $lib_path $LIB | |
102 | do | |
103 | IFS=$save_IFS | |
104 | if $shared && test -f "$dir/$lib.dll.lib"; then | |
105 | found=yes | |
106 | lib=$dir/$lib.dll.lib | |
107 | break | |
108 | fi | |
109 | if test -f "$dir/$lib.lib"; then | |
110 | found=yes | |
111 | lib=$dir/$lib.lib | |
112 | break | |
113 | fi | |
114 | if test -f "$dir/lib$lib.a"; then | |
115 | found=yes | |
116 | lib=$dir/lib$lib.a | |
117 | break | |
118 | fi | |
119 | done | |
120 | IFS=$save_IFS | |
121 | ||
122 | if test "$found" != yes; then | |
123 | lib=$lib.lib | |
124 | fi | |
125 | } | |
126 | ||
127 | # func_cl_wrapper cl arg... | |
128 | # Adjust compile command to suit cl | |
129 | func_cl_wrapper () | |
130 | { | |
131 | # Assume a capable shell | |
132 | lib_path= | |
133 | shared=: | |
134 | linker_opts= | |
135 | for arg | |
136 | do | |
137 | if test -n "$eat"; then | |
138 | eat= | |
139 | else | |
140 | case $1 in | |
141 | -o) | |
142 | # configure might choose to run compile as 'compile cc -o foo foo.c'. | |
143 | eat=1 | |
144 | case $2 in | |
145 | *.o | *.[oO][bB][jJ]) | |
146 | func_file_conv "$2" | |
147 | set x "$@" -Fo"$file" | |
148 | shift | |
149 | ;; | |
150 | *) | |
151 | func_file_conv "$2" | |
152 | set x "$@" -Fe"$file" | |
153 | shift | |
154 | ;; | |
155 | esac | |
156 | ;; | |
157 | -I) | |
158 | eat=1 | |
159 | func_file_conv "$2" mingw | |
160 | set x "$@" -I"$file" | |
161 | shift | |
162 | ;; | |
163 | -I*) | |
164 | func_file_conv "${1#-I}" mingw | |
165 | set x "$@" -I"$file" | |
166 | shift | |
167 | ;; | |
168 | -l) | |
169 | eat=1 | |
170 | func_cl_dashl "$2" | |
171 | set x "$@" "$lib" | |
172 | shift | |
173 | ;; | |
174 | -l*) | |
175 | func_cl_dashl "${1#-l}" | |
176 | set x "$@" "$lib" | |
177 | shift | |
178 | ;; | |
179 | -L) | |
180 | eat=1 | |
181 | func_cl_dashL "$2" | |
182 | ;; | |
183 | -L*) | |
184 | func_cl_dashL "${1#-L}" | |
185 | ;; | |
186 | -static) | |
187 | shared=false | |
188 | ;; | |
189 | -Wl,*) | |
190 | arg=${1#-Wl,} | |
191 | save_ifs="$IFS"; IFS=',' | |
192 | for flag in $arg; do | |
193 | IFS="$save_ifs" | |
194 | linker_opts="$linker_opts $flag" | |
195 | done | |
196 | IFS="$save_ifs" | |
197 | ;; | |
198 | -Xlinker) | |
199 | eat=1 | |
200 | linker_opts="$linker_opts $2" | |
201 | ;; | |
202 | -*) | |
203 | set x "$@" "$1" | |
204 | shift | |
205 | ;; | |
206 | *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) | |
207 | func_file_conv "$1" | |
208 | set x "$@" -Tp"$file" | |
209 | shift | |
210 | ;; | |
211 | *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) | |
212 | func_file_conv "$1" mingw | |
213 | set x "$@" "$file" | |
214 | shift | |
215 | ;; | |
216 | *) | |
217 | set x "$@" "$1" | |
218 | shift | |
219 | ;; | |
220 | esac | |
221 | fi | |
222 | shift | |
223 | done | |
224 | if test -n "$linker_opts"; then | |
225 | linker_opts="-link$linker_opts" | |
226 | fi | |
227 | exec "$@" $linker_opts | |
228 | exit 1 | |
229 | } | |
230 | ||
231 | eat= | |
232 | ||
233 | case $1 in | |
234 | '') | |
235 | echo "$0: No command. Try '$0 --help' for more information." 1>&2 | |
236 | exit 1; | |
237 | ;; | |
238 | -h | --h*) | |
239 | cat <<\EOF | |
240 | Usage: compile [--help] [--version] PROGRAM [ARGS] | |
241 | ||
242 | Wrapper for compilers which do not understand '-c -o'. | |
243 | Remove '-o dest.o' from ARGS, run PROGRAM with the remaining | |
244 | arguments, and rename the output as expected. | |
245 | ||
246 | If you are trying to build a whole package this is not the | |
247 | right script to run: please start by reading the file 'INSTALL'. | |
248 | ||
249 | Report bugs to <bug-automake@gnu.org>. | |
250 | EOF | |
251 | exit $? | |
252 | ;; | |
253 | -v | --v*) | |
254 | echo "compile $scriptversion" | |
255 | exit $? | |
256 | ;; | |
257 | cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) | |
258 | func_cl_wrapper "$@" # Doesn't return... | |
259 | ;; | |
260 | esac | |
261 | ||
262 | ofile= | |
263 | cfile= | |
264 | ||
265 | for arg | |
266 | do | |
267 | if test -n "$eat"; then | |
268 | eat= | |
269 | else | |
270 | case $1 in | |
271 | -o) | |
272 | # configure might choose to run compile as 'compile cc -o foo foo.c'. | |
273 | # So we strip '-o arg' only if arg is an object. | |
274 | eat=1 | |
275 | case $2 in | |
276 | *.o | *.obj) | |
277 | ofile=$2 | |
278 | ;; | |
279 | *) | |
280 | set x "$@" -o "$2" | |
281 | shift | |
282 | ;; | |
283 | esac | |
284 | ;; | |
285 | *.c) | |
286 | cfile=$1 | |
287 | set x "$@" "$1" | |
288 | shift | |
289 | ;; | |
290 | *) | |
291 | set x "$@" "$1" | |
292 | shift | |
293 | ;; | |
294 | esac | |
295 | fi | |
296 | shift | |
297 | done | |
298 | ||
299 | if test -z "$ofile" || test -z "$cfile"; then | |
300 | # If no '-o' option was seen then we might have been invoked from a | |
301 | # pattern rule where we don't need one. That is ok -- this is a | |
302 | # normal compilation that the losing compiler can handle. If no | |
303 | # '.c' file was seen then we are probably linking. That is also | |
304 | # ok. | |
305 | exec "$@" | |
306 | fi | |
307 | ||
308 | # Name of file we expect compiler to create. | |
309 | cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` | |
310 | ||
311 | # Create the lock directory. | |
312 | # Note: use '[/\\:.-]' here to ensure that we don't use the same name | |
313 | # that we are using for the .o file. Also, base the name on the expected | |
314 | # object file name, since that is what matters with a parallel build. | |
315 | lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d | |
316 | while true; do | |
317 | if mkdir "$lockdir" >/dev/null 2>&1; then | |
318 | break | |
319 | fi | |
320 | sleep 1 | |
321 | done | |
322 | # FIXME: race condition here if user kills between mkdir and trap. | |
323 | trap "rmdir '$lockdir'; exit 1" 1 2 15 | |
324 | ||
325 | # Run the compile. | |
326 | "$@" | |
327 | ret=$? | |
328 | ||
329 | if test -f "$cofile"; then | |
330 | test "$cofile" = "$ofile" || mv "$cofile" "$ofile" | |
331 | elif test -f "${cofile}bj"; then | |
332 | test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" | |
333 | fi | |
334 | ||
335 | rmdir "$lockdir" | |
336 | exit $ret | |
337 | ||
338 | # Local Variables: | |
339 | # mode: shell-script | |
340 | # sh-indentation: 2 | |
341 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
342 | # time-stamp-start: "scriptversion=" | |
343 | # time-stamp-format: "%:y-%02m-%02d.%02H" | |
344 | # time-stamp-time-zone: "UTC" | |
345 | # time-stamp-end: "; # UTC" | |
346 | # End: |
0 | 0 | #! /bin/sh |
1 | 1 | # Attempt to guess a canonical system name. |
2 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | |
3 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | |
4 | # Free Software Foundation, Inc. | |
5 | ||
6 | timestamp='2010-08-21' | |
2 | # Copyright 1992-2018 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2018-03-01' | |
7 | 5 | |
8 | 6 | # This file is free software; you can redistribute it and/or modify it |
9 | 7 | # under the terms of the GNU General Public License as published by |
10 | # the Free Software Foundation; either version 2 of the License, or | |
8 | # the Free Software Foundation; either version 3 of the License, or | |
11 | 9 | # (at your option) any later version. |
12 | 10 | # |
13 | 11 | # This program is distributed in the hope that it will be useful, but |
16 | 14 | # General Public License for more details. |
17 | 15 | # |
18 | 16 | # You should have received a copy of the GNU General Public License |
19 | # along with this program; if not, write to the Free Software | |
20 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | |
21 | # 02110-1301, USA. | |
17 | # along with this program; if not, see <https://www.gnu.org/licenses/>. | |
22 | 18 | # |
23 | 19 | # As a special exception to the GNU General Public License, if you |
24 | 20 | # distribute this file as part of a program that contains a |
25 | 21 | # configuration script generated by Autoconf, you may include it under |
26 | # the same distribution terms that you use for the rest of that program. | |
27 | ||
28 | ||
29 | # Originally written by Per Bothner. Please send patches (context | |
30 | # diff format) to <config-patches@gnu.org> and include a ChangeLog | |
31 | # entry. | |
22 | # the same distribution terms that you use for the rest of that | |
23 | # program. This Exception is an additional permission under section 7 | |
24 | # of the GNU General Public License, version 3 ("GPLv3"). | |
32 | 25 | # |
33 | # This script attempts to guess a canonical system name similar to | |
34 | # config.sub. If it succeeds, it prints the system name on stdout, and | |
35 | # exits with 0. Otherwise, it exits with 1. | |
26 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. | |
36 | 27 | # |
37 | 28 | # You can get the latest version of this script from: |
38 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | |
29 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | |
30 | # | |
31 | # Please send patches to <config-patches@gnu.org>. | |
32 | ||
39 | 33 | |
40 | 34 | me=`echo "$0" | sed -e 's,.*/,,'` |
41 | 35 | |
44 | 38 | |
45 | 39 | Output the configuration name of the system \`$me' is run on. |
46 | 40 | |
47 | Operation modes: | |
41 | Options: | |
48 | 42 | -h, --help print this help, then exit |
49 | 43 | -t, --time-stamp print date of last modification, then exit |
50 | 44 | -v, --version print version number, then exit |
55 | 49 | GNU config.guess ($timestamp) |
56 | 50 | |
57 | 51 | Originally written by Per Bothner. |
58 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | |
59 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free | |
60 | Software Foundation, Inc. | |
52 | Copyright 1992-2018 Free Software Foundation, Inc. | |
61 | 53 | |
62 | 54 | This is free software; see the source for copying conditions. There is NO |
63 | 55 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
91 | 83 | exit 1 |
92 | 84 | fi |
93 | 85 | |
94 | trap 'exit 1' HUP INT TERM | |
86 | trap 'exit 1' 1 2 15 | |
95 | 87 | |
96 | 88 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a |
97 | 89 | # compiler to aid in system detection is discouraged as it requires |
105 | 97 | |
106 | 98 | set_cc_for_build=' |
107 | 99 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; |
108 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ; | |
100 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; | |
109 | 101 | : ${TMPDIR=/tmp} ; |
110 | 102 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
111 | 103 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || |
114 | 106 | dummy=$tmp/dummy ; |
115 | 107 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; |
116 | 108 | case $CC_FOR_BUILD,$HOST_CC,$CC in |
117 | ,,) echo "int x;" > $dummy.c ; | |
109 | ,,) echo "int x;" > "$dummy.c" ; | |
118 | 110 | for c in cc gcc c89 c99 ; do |
119 | if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then | |
111 | if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then | |
120 | 112 | CC_FOR_BUILD="$c"; break ; |
121 | 113 | fi ; |
122 | 114 | done ; |
139 | 131 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
140 | 132 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
141 | 133 | |
134 | case "$UNAME_SYSTEM" in | |
135 | Linux|GNU|GNU/*) | |
136 | # If the system lacks a compiler, then just pick glibc. | |
137 | # We could probably try harder. | |
138 | LIBC=gnu | |
139 | ||
140 | eval "$set_cc_for_build" | |
141 | cat <<-EOF > "$dummy.c" | |
142 | #include <features.h> | |
143 | #if defined(__UCLIBC__) | |
144 | LIBC=uclibc | |
145 | #elif defined(__dietlibc__) | |
146 | LIBC=dietlibc | |
147 | #else | |
148 | LIBC=gnu | |
149 | #endif | |
150 | EOF | |
151 | eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" | |
152 | ||
153 | # If ldd exists, use it to detect musl libc. | |
154 | if command -v ldd >/dev/null && \ | |
155 | ldd --version 2>&1 | grep -q ^musl | |
156 | then | |
157 | LIBC=musl | |
158 | fi | |
159 | ;; | |
160 | esac | |
161 | ||
142 | 162 | # Note: order is significant - the case branches are not exclusive. |
143 | 163 | |
144 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | |
164 | case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | |
145 | 165 | *:NetBSD:*:*) |
146 | 166 | # NetBSD (nbsd) targets should (where applicable) match one or |
147 | # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, | |
167 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, | |
148 | 168 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
149 | 169 | # switched to ELF, *-*-netbsd* would select the old |
150 | 170 | # object file format. This provides both forward |
154 | 174 | # Note: NetBSD doesn't particularly care about the vendor |
155 | 175 | # portion of the name. We always set it to "unknown". |
156 | 176 | sysctl="sysctl -n hw.machine_arch" |
157 | UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ | |
158 | /usr/sbin/$sysctl 2>/dev/null || echo unknown)` | |
159 | case "${UNAME_MACHINE_ARCH}" in | |
177 | UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ | |
178 | "/sbin/$sysctl" 2>/dev/null || \ | |
179 | "/usr/sbin/$sysctl" 2>/dev/null || \ | |
180 | echo unknown)` | |
181 | case "$UNAME_MACHINE_ARCH" in | |
160 | 182 | armeb) machine=armeb-unknown ;; |
161 | 183 | arm*) machine=arm-unknown ;; |
162 | 184 | sh3el) machine=shl-unknown ;; |
163 | 185 | sh3eb) machine=sh-unknown ;; |
164 | 186 | sh5el) machine=sh5le-unknown ;; |
165 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; | |
187 | earmv*) | |
188 | arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` | |
189 | endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` | |
190 | machine="${arch}${endian}"-unknown | |
191 | ;; | |
192 | *) machine="$UNAME_MACHINE_ARCH"-unknown ;; | |
166 | 193 | esac |
167 | 194 | # The Operating System including object format, if it has switched |
168 | # to ELF recently, or will in the future. | |
169 | case "${UNAME_MACHINE_ARCH}" in | |
195 | # to ELF recently (or will in the future) and ABI. | |
196 | case "$UNAME_MACHINE_ARCH" in | |
197 | earm*) | |
198 | os=netbsdelf | |
199 | ;; | |
170 | 200 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
171 | eval $set_cc_for_build | |
201 | eval "$set_cc_for_build" | |
172 | 202 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
173 | 203 | | grep -q __ELF__ |
174 | 204 | then |
180 | 210 | fi |
181 | 211 | ;; |
182 | 212 | *) |
183 | os=netbsd | |
213 | os=netbsd | |
214 | ;; | |
215 | esac | |
216 | # Determine ABI tags. | |
217 | case "$UNAME_MACHINE_ARCH" in | |
218 | earm*) | |
219 | expr='s/^earmv[0-9]/-eabi/;s/eb$//' | |
220 | abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` | |
184 | 221 | ;; |
185 | 222 | esac |
186 | 223 | # The OS release |
188 | 225 | # thus, need a distinct triplet. However, they do not need |
189 | 226 | # kernel version information, so it can be replaced with a |
190 | 227 | # suitable tag, in the style of linux-gnu. |
191 | case "${UNAME_VERSION}" in | |
228 | case "$UNAME_VERSION" in | |
192 | 229 | Debian*) |
193 | 230 | release='-gnu' |
194 | 231 | ;; |
195 | 232 | *) |
196 | release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | |
233 | release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` | |
197 | 234 | ;; |
198 | 235 | esac |
199 | 236 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
200 | 237 | # contains redundant information, the shorter form: |
201 | 238 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
202 | echo "${machine}-${os}${release}" | |
239 | echo "$machine-${os}${release}${abi}" | |
240 | exit ;; | |
241 | *:Bitrig:*:*) | |
242 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` | |
243 | echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" | |
203 | 244 | exit ;; |
204 | 245 | *:OpenBSD:*:*) |
205 | 246 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
206 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | |
247 | echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" | |
248 | exit ;; | |
249 | *:LibertyBSD:*:*) | |
250 | UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` | |
251 | echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" | |
252 | exit ;; | |
253 | *:MidnightBSD:*:*) | |
254 | echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" | |
207 | 255 | exit ;; |
208 | 256 | *:ekkoBSD:*:*) |
209 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} | |
257 | echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" | |
210 | 258 | exit ;; |
211 | 259 | *:SolidBSD:*:*) |
212 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} | |
260 | echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" | |
213 | 261 | exit ;; |
214 | 262 | macppc:MirBSD:*:*) |
215 | echo powerpc-unknown-mirbsd${UNAME_RELEASE} | |
263 | echo powerpc-unknown-mirbsd"$UNAME_RELEASE" | |
216 | 264 | exit ;; |
217 | 265 | *:MirBSD:*:*) |
218 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} | |
219 | exit ;; | |
266 | echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" | |
267 | exit ;; | |
268 | *:Sortix:*:*) | |
269 | echo "$UNAME_MACHINE"-unknown-sortix | |
270 | exit ;; | |
271 | *:Redox:*:*) | |
272 | echo "$UNAME_MACHINE"-unknown-redox | |
273 | exit ;; | |
274 | mips:OSF1:*.*) | |
275 | echo mips-dec-osf1 | |
276 | exit ;; | |
220 | 277 | alpha:OSF1:*:*) |
221 | 278 | case $UNAME_RELEASE in |
222 | 279 | *4.0) |
223 | 280 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
224 | 281 | ;; |
225 | 282 | *5.*) |
226 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | |
283 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | |
227 | 284 | ;; |
228 | 285 | esac |
229 | 286 | # According to Compaq, /usr/sbin/psrinfo has been available on |
233 | 290 | ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` |
234 | 291 | case "$ALPHA_CPU_TYPE" in |
235 | 292 | "EV4 (21064)") |
236 | UNAME_MACHINE="alpha" ;; | |
293 | UNAME_MACHINE=alpha ;; | |
237 | 294 | "EV4.5 (21064)") |
238 | UNAME_MACHINE="alpha" ;; | |
295 | UNAME_MACHINE=alpha ;; | |
239 | 296 | "LCA4 (21066/21068)") |
240 | UNAME_MACHINE="alpha" ;; | |
297 | UNAME_MACHINE=alpha ;; | |
241 | 298 | "EV5 (21164)") |
242 | UNAME_MACHINE="alphaev5" ;; | |
299 | UNAME_MACHINE=alphaev5 ;; | |
243 | 300 | "EV5.6 (21164A)") |
244 | UNAME_MACHINE="alphaev56" ;; | |
301 | UNAME_MACHINE=alphaev56 ;; | |
245 | 302 | "EV5.6 (21164PC)") |
246 | UNAME_MACHINE="alphapca56" ;; | |
303 | UNAME_MACHINE=alphapca56 ;; | |
247 | 304 | "EV5.7 (21164PC)") |
248 | UNAME_MACHINE="alphapca57" ;; | |
305 | UNAME_MACHINE=alphapca57 ;; | |
249 | 306 | "EV6 (21264)") |
250 | UNAME_MACHINE="alphaev6" ;; | |
307 | UNAME_MACHINE=alphaev6 ;; | |
251 | 308 | "EV6.7 (21264A)") |
252 | UNAME_MACHINE="alphaev67" ;; | |
309 | UNAME_MACHINE=alphaev67 ;; | |
253 | 310 | "EV6.8CB (21264C)") |
254 | UNAME_MACHINE="alphaev68" ;; | |
311 | UNAME_MACHINE=alphaev68 ;; | |
255 | 312 | "EV6.8AL (21264B)") |
256 | UNAME_MACHINE="alphaev68" ;; | |
313 | UNAME_MACHINE=alphaev68 ;; | |
257 | 314 | "EV6.8CX (21264D)") |
258 | UNAME_MACHINE="alphaev68" ;; | |
315 | UNAME_MACHINE=alphaev68 ;; | |
259 | 316 | "EV6.9A (21264/EV69A)") |
260 | UNAME_MACHINE="alphaev69" ;; | |
317 | UNAME_MACHINE=alphaev69 ;; | |
261 | 318 | "EV7 (21364)") |
262 | UNAME_MACHINE="alphaev7" ;; | |
319 | UNAME_MACHINE=alphaev7 ;; | |
263 | 320 | "EV7.9 (21364A)") |
264 | UNAME_MACHINE="alphaev79" ;; | |
321 | UNAME_MACHINE=alphaev79 ;; | |
265 | 322 | esac |
266 | 323 | # A Pn.n version is a patched version. |
267 | 324 | # A Vn.n version is a released version. |
268 | 325 | # A Tn.n version is a released field test version. |
269 | 326 | # A Xn.n version is an unreleased experimental baselevel. |
270 | 327 | # 1.2 uses "1.2" for uname -r. |
271 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | |
272 | exit ;; | |
273 | Alpha\ *:Windows_NT*:*) | |
274 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
275 | # Should we change UNAME_MACHINE based on the output of uname instead | |
276 | # of the specific Alpha model? | |
277 | echo alpha-pc-interix | |
278 | exit ;; | |
279 | 21064:Windows_NT:50:3) | |
280 | echo alpha-dec-winnt3.5 | |
281 | exit ;; | |
328 | echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" | |
329 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. | |
330 | exitcode=$? | |
331 | trap '' 0 | |
332 | exit $exitcode ;; | |
282 | 333 | Amiga*:UNIX_System_V:4.0:*) |
283 | 334 | echo m68k-unknown-sysv4 |
284 | 335 | exit ;; |
285 | 336 | *:[Aa]miga[Oo][Ss]:*:*) |
286 | echo ${UNAME_MACHINE}-unknown-amigaos | |
337 | echo "$UNAME_MACHINE"-unknown-amigaos | |
287 | 338 | exit ;; |
288 | 339 | *:[Mm]orph[Oo][Ss]:*:*) |
289 | echo ${UNAME_MACHINE}-unknown-morphos | |
340 | echo "$UNAME_MACHINE"-unknown-morphos | |
290 | 341 | exit ;; |
291 | 342 | *:OS/390:*:*) |
292 | 343 | echo i370-ibm-openedition |
295 | 346 | echo s390-ibm-zvmoe |
296 | 347 | exit ;; |
297 | 348 | *:OS400:*:*) |
298 | echo powerpc-ibm-os400 | |
349 | echo powerpc-ibm-os400 | |
299 | 350 | exit ;; |
300 | 351 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
301 | echo arm-acorn-riscix${UNAME_RELEASE} | |
302 | exit ;; | |
303 | arm:riscos:*:*|arm:RISCOS:*:*) | |
352 | echo arm-acorn-riscix"$UNAME_RELEASE" | |
353 | exit ;; | |
354 | arm*:riscos:*:*|arm*:RISCOS:*:*) | |
304 | 355 | echo arm-unknown-riscos |
305 | 356 | exit ;; |
306 | 357 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
325 | 376 | sparc) echo sparc-icl-nx7; exit ;; |
326 | 377 | esac ;; |
327 | 378 | s390x:SunOS:*:*) |
328 | echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
379 | echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" | |
329 | 380 | exit ;; |
330 | 381 | sun4H:SunOS:5.*:*) |
331 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
382 | echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
332 | 383 | exit ;; |
333 | 384 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
334 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
385 | echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" | |
335 | 386 | exit ;; |
336 | 387 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) |
337 | echo i386-pc-auroraux${UNAME_RELEASE} | |
388 | echo i386-pc-auroraux"$UNAME_RELEASE" | |
338 | 389 | exit ;; |
339 | 390 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
340 | eval $set_cc_for_build | |
341 | SUN_ARCH="i386" | |
391 | eval "$set_cc_for_build" | |
392 | SUN_ARCH=i386 | |
342 | 393 | # If there is a compiler, see if it is configured for 64-bit objects. |
343 | 394 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
344 | 395 | # This test works for both compilers. |
345 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
396 | if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | |
346 | 397 | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ |
347 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
398 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
348 | 399 | grep IS_64BIT_ARCH >/dev/null |
349 | 400 | then |
350 | SUN_ARCH="x86_64" | |
401 | SUN_ARCH=x86_64 | |
351 | 402 | fi |
352 | 403 | fi |
353 | echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
404 | echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
354 | 405 | exit ;; |
355 | 406 | sun4*:SunOS:6*:*) |
356 | 407 | # According to config.sub, this is the proper way to canonicalize |
357 | 408 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
358 | 409 | # it's likely to be more like Solaris than SunOS4. |
359 | echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
410 | echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
360 | 411 | exit ;; |
361 | 412 | sun4*:SunOS:*:*) |
362 | 413 | case "`/usr/bin/arch -k`" in |
365 | 416 | ;; |
366 | 417 | esac |
367 | 418 | # Japanese Language versions have a version number like `4.1.3-JL'. |
368 | echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` | |
419 | echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" | |
369 | 420 | exit ;; |
370 | 421 | sun3*:SunOS:*:*) |
371 | echo m68k-sun-sunos${UNAME_RELEASE} | |
422 | echo m68k-sun-sunos"$UNAME_RELEASE" | |
372 | 423 | exit ;; |
373 | 424 | sun*:*:4.2BSD:*) |
374 | 425 | UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
375 | test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 | |
426 | test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 | |
376 | 427 | case "`/bin/arch`" in |
377 | 428 | sun3) |
378 | echo m68k-sun-sunos${UNAME_RELEASE} | |
429 | echo m68k-sun-sunos"$UNAME_RELEASE" | |
379 | 430 | ;; |
380 | 431 | sun4) |
381 | echo sparc-sun-sunos${UNAME_RELEASE} | |
432 | echo sparc-sun-sunos"$UNAME_RELEASE" | |
382 | 433 | ;; |
383 | 434 | esac |
384 | 435 | exit ;; |
385 | 436 | aushp:SunOS:*:*) |
386 | echo sparc-auspex-sunos${UNAME_RELEASE} | |
437 | echo sparc-auspex-sunos"$UNAME_RELEASE" | |
387 | 438 | exit ;; |
388 | 439 | # The situation for MiNT is a little confusing. The machine name |
389 | 440 | # can be virtually everything (everything which is not |
394 | 445 | # MiNT. But MiNT is downward compatible to TOS, so this should |
395 | 446 | # be no problem. |
396 | 447 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
397 | echo m68k-atari-mint${UNAME_RELEASE} | |
448 | echo m68k-atari-mint"$UNAME_RELEASE" | |
398 | 449 | exit ;; |
399 | 450 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
400 | echo m68k-atari-mint${UNAME_RELEASE} | |
401 | exit ;; | |
451 | echo m68k-atari-mint"$UNAME_RELEASE" | |
452 | exit ;; | |
402 | 453 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
403 | echo m68k-atari-mint${UNAME_RELEASE} | |
454 | echo m68k-atari-mint"$UNAME_RELEASE" | |
404 | 455 | exit ;; |
405 | 456 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
406 | echo m68k-milan-mint${UNAME_RELEASE} | |
407 | exit ;; | |
457 | echo m68k-milan-mint"$UNAME_RELEASE" | |
458 | exit ;; | |
408 | 459 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
409 | echo m68k-hades-mint${UNAME_RELEASE} | |
410 | exit ;; | |
460 | echo m68k-hades-mint"$UNAME_RELEASE" | |
461 | exit ;; | |
411 | 462 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
412 | echo m68k-unknown-mint${UNAME_RELEASE} | |
413 | exit ;; | |
463 | echo m68k-unknown-mint"$UNAME_RELEASE" | |
464 | exit ;; | |
414 | 465 | m68k:machten:*:*) |
415 | echo m68k-apple-machten${UNAME_RELEASE} | |
466 | echo m68k-apple-machten"$UNAME_RELEASE" | |
416 | 467 | exit ;; |
417 | 468 | powerpc:machten:*:*) |
418 | echo powerpc-apple-machten${UNAME_RELEASE} | |
469 | echo powerpc-apple-machten"$UNAME_RELEASE" | |
419 | 470 | exit ;; |
420 | 471 | RISC*:Mach:*:*) |
421 | 472 | echo mips-dec-mach_bsd4.3 |
422 | 473 | exit ;; |
423 | 474 | RISC*:ULTRIX:*:*) |
424 | echo mips-dec-ultrix${UNAME_RELEASE} | |
475 | echo mips-dec-ultrix"$UNAME_RELEASE" | |
425 | 476 | exit ;; |
426 | 477 | VAX*:ULTRIX*:*:*) |
427 | echo vax-dec-ultrix${UNAME_RELEASE} | |
478 | echo vax-dec-ultrix"$UNAME_RELEASE" | |
428 | 479 | exit ;; |
429 | 480 | 2020:CLIX:*:* | 2430:CLIX:*:*) |
430 | echo clipper-intergraph-clix${UNAME_RELEASE} | |
481 | echo clipper-intergraph-clix"$UNAME_RELEASE" | |
431 | 482 | exit ;; |
432 | 483 | mips:*:*:UMIPS | mips:*:*:RISCos) |
433 | eval $set_cc_for_build | |
434 | sed 's/^ //' << EOF >$dummy.c | |
484 | eval "$set_cc_for_build" | |
485 | sed 's/^ //' << EOF > "$dummy.c" | |
435 | 486 | #ifdef __cplusplus |
436 | 487 | #include <stdio.h> /* for printf() prototype */ |
437 | 488 | int main (int argc, char *argv[]) { |
440 | 491 | #endif |
441 | 492 | #if defined (host_mips) && defined (MIPSEB) |
442 | 493 | #if defined (SYSTYPE_SYSV) |
443 | printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); | |
494 | printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); | |
444 | 495 | #endif |
445 | 496 | #if defined (SYSTYPE_SVR4) |
446 | printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); | |
497 | printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); | |
447 | 498 | #endif |
448 | 499 | #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) |
449 | printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); | |
500 | printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); | |
450 | 501 | #endif |
451 | 502 | #endif |
452 | 503 | exit (-1); |
453 | 504 | } |
454 | 505 | EOF |
455 | $CC_FOR_BUILD -o $dummy $dummy.c && | |
456 | dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && | |
457 | SYSTEM_NAME=`$dummy $dummyarg` && | |
506 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" && | |
507 | dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && | |
508 | SYSTEM_NAME=`"$dummy" "$dummyarg"` && | |
458 | 509 | { echo "$SYSTEM_NAME"; exit; } |
459 | echo mips-mips-riscos${UNAME_RELEASE} | |
510 | echo mips-mips-riscos"$UNAME_RELEASE" | |
460 | 511 | exit ;; |
461 | 512 | Motorola:PowerMAX_OS:*:*) |
462 | 513 | echo powerpc-motorola-powermax |
480 | 531 | echo m88k-motorola-sysv3 |
481 | 532 | exit ;; |
482 | 533 | AViiON:dgux:*:*) |
483 | # DG/UX returns AViiON for all architectures | |
484 | UNAME_PROCESSOR=`/usr/bin/uname -p` | |
485 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | |
534 | # DG/UX returns AViiON for all architectures | |
535 | UNAME_PROCESSOR=`/usr/bin/uname -p` | |
536 | if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] | |
486 | 537 | then |
487 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ | |
488 | [ ${TARGET_BINARY_INTERFACE}x = x ] | |
538 | if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ | |
539 | [ "$TARGET_BINARY_INTERFACE"x = x ] | |
489 | 540 | then |
490 | echo m88k-dg-dgux${UNAME_RELEASE} | |
541 | echo m88k-dg-dgux"$UNAME_RELEASE" | |
491 | 542 | else |
492 | echo m88k-dg-dguxbcs${UNAME_RELEASE} | |
543 | echo m88k-dg-dguxbcs"$UNAME_RELEASE" | |
493 | 544 | fi |
494 | 545 | else |
495 | echo i586-dg-dgux${UNAME_RELEASE} | |
496 | fi | |
497 | exit ;; | |
546 | echo i586-dg-dgux"$UNAME_RELEASE" | |
547 | fi | |
548 | exit ;; | |
498 | 549 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
499 | 550 | echo m88k-dolphin-sysv3 |
500 | 551 | exit ;; |
509 | 560 | echo m68k-tektronix-bsd |
510 | 561 | exit ;; |
511 | 562 | *:IRIX*:*:*) |
512 | echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` | |
563 | echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" | |
513 | 564 | exit ;; |
514 | 565 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
515 | 566 | echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
521 | 572 | if [ -x /usr/bin/oslevel ] ; then |
522 | 573 | IBM_REV=`/usr/bin/oslevel` |
523 | 574 | else |
524 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | |
525 | fi | |
526 | echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} | |
575 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | |
576 | fi | |
577 | echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" | |
527 | 578 | exit ;; |
528 | 579 | *:AIX:2:3) |
529 | 580 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
530 | eval $set_cc_for_build | |
531 | sed 's/^ //' << EOF >$dummy.c | |
581 | eval "$set_cc_for_build" | |
582 | sed 's/^ //' << EOF > "$dummy.c" | |
532 | 583 | #include <sys/systemcfg.h> |
533 | 584 | |
534 | 585 | main() |
539 | 590 | exit(0); |
540 | 591 | } |
541 | 592 | EOF |
542 | if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` | |
593 | if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` | |
543 | 594 | then |
544 | 595 | echo "$SYSTEM_NAME" |
545 | 596 | else |
553 | 604 | exit ;; |
554 | 605 | *:AIX:*:[4567]) |
555 | 606 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
556 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | |
607 | if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then | |
557 | 608 | IBM_ARCH=rs6000 |
558 | 609 | else |
559 | 610 | IBM_ARCH=powerpc |
560 | 611 | fi |
561 | if [ -x /usr/bin/oslevel ] ; then | |
562 | IBM_REV=`/usr/bin/oslevel` | |
612 | if [ -x /usr/bin/lslpp ] ; then | |
613 | IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | | |
614 | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` | |
563 | 615 | else |
564 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | |
565 | fi | |
566 | echo ${IBM_ARCH}-ibm-aix${IBM_REV} | |
616 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | |
617 | fi | |
618 | echo "$IBM_ARCH"-ibm-aix"$IBM_REV" | |
567 | 619 | exit ;; |
568 | 620 | *:AIX:*:*) |
569 | 621 | echo rs6000-ibm-aix |
570 | 622 | exit ;; |
571 | ibmrt:4.4BSD:*|romp-ibm:BSD:*) | |
623 | ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) | |
572 | 624 | echo romp-ibm-bsd4.4 |
573 | 625 | exit ;; |
574 | 626 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and |
575 | echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to | |
627 | echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to | |
576 | 628 | exit ;; # report: romp-ibm BSD 4.3 |
577 | 629 | *:BOSX:*:*) |
578 | 630 | echo rs6000-bull-bosx |
587 | 639 | echo m68k-hp-bsd4.4 |
588 | 640 | exit ;; |
589 | 641 | 9000/[34678]??:HP-UX:*:*) |
590 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | |
591 | case "${UNAME_MACHINE}" in | |
592 | 9000/31? ) HP_ARCH=m68000 ;; | |
593 | 9000/[34]?? ) HP_ARCH=m68k ;; | |
642 | HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` | |
643 | case "$UNAME_MACHINE" in | |
644 | 9000/31?) HP_ARCH=m68000 ;; | |
645 | 9000/[34]??) HP_ARCH=m68k ;; | |
594 | 646 | 9000/[678][0-9][0-9]) |
595 | 647 | if [ -x /usr/bin/getconf ]; then |
596 | 648 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
597 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | |
598 | case "${sc_cpu_version}" in | |
599 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | |
600 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | |
601 | 532) # CPU_PA_RISC2_0 | |
602 | case "${sc_kernel_bits}" in | |
603 | 32) HP_ARCH="hppa2.0n" ;; | |
604 | 64) HP_ARCH="hppa2.0w" ;; | |
605 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 | |
606 | esac ;; | |
607 | esac | |
649 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | |
650 | case "$sc_cpu_version" in | |
651 | 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 | |
652 | 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 | |
653 | 532) # CPU_PA_RISC2_0 | |
654 | case "$sc_kernel_bits" in | |
655 | 32) HP_ARCH=hppa2.0n ;; | |
656 | 64) HP_ARCH=hppa2.0w ;; | |
657 | '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 | |
658 | esac ;; | |
659 | esac | |
608 | 660 | fi |
609 | if [ "${HP_ARCH}" = "" ]; then | |
610 | eval $set_cc_for_build | |
611 | sed 's/^ //' << EOF >$dummy.c | |
612 | ||
613 | #define _HPUX_SOURCE | |
614 | #include <stdlib.h> | |
615 | #include <unistd.h> | |
616 | ||
617 | int main () | |
618 | { | |
619 | #if defined(_SC_KERNEL_BITS) | |
620 | long bits = sysconf(_SC_KERNEL_BITS); | |
621 | #endif | |
622 | long cpu = sysconf (_SC_CPU_VERSION); | |
623 | ||
624 | switch (cpu) | |
625 | { | |
626 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | |
627 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | |
628 | case CPU_PA_RISC2_0: | |
629 | #if defined(_SC_KERNEL_BITS) | |
630 | switch (bits) | |
631 | { | |
632 | case 64: puts ("hppa2.0w"); break; | |
633 | case 32: puts ("hppa2.0n"); break; | |
634 | default: puts ("hppa2.0"); break; | |
635 | } break; | |
636 | #else /* !defined(_SC_KERNEL_BITS) */ | |
637 | puts ("hppa2.0"); break; | |
638 | #endif | |
639 | default: puts ("hppa1.0"); break; | |
640 | } | |
641 | exit (0); | |
642 | } | |
661 | if [ "$HP_ARCH" = "" ]; then | |
662 | eval "$set_cc_for_build" | |
663 | sed 's/^ //' << EOF > "$dummy.c" | |
664 | ||
665 | #define _HPUX_SOURCE | |
666 | #include <stdlib.h> | |
667 | #include <unistd.h> | |
668 | ||
669 | int main () | |
670 | { | |
671 | #if defined(_SC_KERNEL_BITS) | |
672 | long bits = sysconf(_SC_KERNEL_BITS); | |
673 | #endif | |
674 | long cpu = sysconf (_SC_CPU_VERSION); | |
675 | ||
676 | switch (cpu) | |
677 | { | |
678 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | |
679 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | |
680 | case CPU_PA_RISC2_0: | |
681 | #if defined(_SC_KERNEL_BITS) | |
682 | switch (bits) | |
683 | { | |
684 | case 64: puts ("hppa2.0w"); break; | |
685 | case 32: puts ("hppa2.0n"); break; | |
686 | default: puts ("hppa2.0"); break; | |
687 | } break; | |
688 | #else /* !defined(_SC_KERNEL_BITS) */ | |
689 | puts ("hppa2.0"); break; | |
690 | #endif | |
691 | default: puts ("hppa1.0"); break; | |
692 | } | |
693 | exit (0); | |
694 | } | |
643 | 695 | EOF |
644 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | |
696 | (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` | |
645 | 697 | test -z "$HP_ARCH" && HP_ARCH=hppa |
646 | 698 | fi ;; |
647 | 699 | esac |
648 | if [ ${HP_ARCH} = "hppa2.0w" ] | |
700 | if [ "$HP_ARCH" = hppa2.0w ] | |
649 | 701 | then |
650 | eval $set_cc_for_build | |
702 | eval "$set_cc_for_build" | |
651 | 703 | |
652 | 704 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating |
653 | 705 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler |
658 | 710 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
659 | 711 | # => hppa64-hp-hpux11.23 |
660 | 712 | |
661 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | |
713 | if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | | |
662 | 714 | grep -q __LP64__ |
663 | 715 | then |
664 | HP_ARCH="hppa2.0w" | |
716 | HP_ARCH=hppa2.0w | |
665 | 717 | else |
666 | HP_ARCH="hppa64" | |
718 | HP_ARCH=hppa64 | |
667 | 719 | fi |
668 | 720 | fi |
669 | echo ${HP_ARCH}-hp-hpux${HPUX_REV} | |
721 | echo "$HP_ARCH"-hp-hpux"$HPUX_REV" | |
670 | 722 | exit ;; |
671 | 723 | ia64:HP-UX:*:*) |
672 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | |
673 | echo ia64-hp-hpux${HPUX_REV} | |
724 | HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` | |
725 | echo ia64-hp-hpux"$HPUX_REV" | |
674 | 726 | exit ;; |
675 | 727 | 3050*:HI-UX:*:*) |
676 | eval $set_cc_for_build | |
677 | sed 's/^ //' << EOF >$dummy.c | |
728 | eval "$set_cc_for_build" | |
729 | sed 's/^ //' << EOF > "$dummy.c" | |
678 | 730 | #include <unistd.h> |
679 | 731 | int |
680 | 732 | main () |
699 | 751 | exit (0); |
700 | 752 | } |
701 | 753 | EOF |
702 | $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && | |
754 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && | |
703 | 755 | { echo "$SYSTEM_NAME"; exit; } |
704 | 756 | echo unknown-hitachi-hiuxwe2 |
705 | 757 | exit ;; |
706 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) | |
758 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) | |
707 | 759 | echo hppa1.1-hp-bsd |
708 | 760 | exit ;; |
709 | 761 | 9000/8??:4.3bsd:*:*) |
712 | 764 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) |
713 | 765 | echo hppa1.0-hp-mpeix |
714 | 766 | exit ;; |
715 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) | |
767 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) | |
716 | 768 | echo hppa1.1-hp-osf |
717 | 769 | exit ;; |
718 | 770 | hp8??:OSF1:*:*) |
720 | 772 | exit ;; |
721 | 773 | i*86:OSF1:*:*) |
722 | 774 | if [ -x /usr/sbin/sysversion ] ; then |
723 | echo ${UNAME_MACHINE}-unknown-osf1mk | |
775 | echo "$UNAME_MACHINE"-unknown-osf1mk | |
724 | 776 | else |
725 | echo ${UNAME_MACHINE}-unknown-osf1 | |
777 | echo "$UNAME_MACHINE"-unknown-osf1 | |
726 | 778 | fi |
727 | 779 | exit ;; |
728 | 780 | parisc*:Lites*:*:*) |
730 | 782 | exit ;; |
731 | 783 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
732 | 784 | echo c1-convex-bsd |
733 | exit ;; | |
785 | exit ;; | |
734 | 786 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
735 | 787 | if getsysinfo -f scalar_acc |
736 | 788 | then echo c32-convex-bsd |
737 | 789 | else echo c2-convex-bsd |
738 | 790 | fi |
739 | exit ;; | |
791 | exit ;; | |
740 | 792 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
741 | 793 | echo c34-convex-bsd |
742 | exit ;; | |
794 | exit ;; | |
743 | 795 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
744 | 796 | echo c38-convex-bsd |
745 | exit ;; | |
797 | exit ;; | |
746 | 798 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
747 | 799 | echo c4-convex-bsd |
748 | exit ;; | |
800 | exit ;; | |
749 | 801 | CRAY*Y-MP:*:*:*) |
750 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
802 | echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
751 | 803 | exit ;; |
752 | 804 | CRAY*[A-Z]90:*:*:*) |
753 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | |
805 | echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | |
754 | 806 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ |
755 | 807 | -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ |
756 | 808 | -e 's/\.[^.]*$/.X/' |
757 | 809 | exit ;; |
758 | 810 | CRAY*TS:*:*:*) |
759 | echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
811 | echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
760 | 812 | exit ;; |
761 | 813 | CRAY*T3E:*:*:*) |
762 | echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
814 | echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
763 | 815 | exit ;; |
764 | 816 | CRAY*SV1:*:*:*) |
765 | echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
817 | echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
766 | 818 | exit ;; |
767 | 819 | *:UNICOS/mp:*:*) |
768 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
820 | echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
769 | 821 | exit ;; |
770 | 822 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
771 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | |
772 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
773 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | |
774 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
775 | exit ;; | |
823 | FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` | |
824 | FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` | |
825 | FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` | |
826 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
827 | exit ;; | |
776 | 828 | 5000:UNIX_System_V:4.*:*) |
777 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
778 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | |
779 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
829 | FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` | |
830 | FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` | |
831 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
780 | 832 | exit ;; |
781 | 833 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
782 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | |
834 | echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" | |
783 | 835 | exit ;; |
784 | 836 | sparc*:BSD/OS:*:*) |
785 | echo sparc-unknown-bsdi${UNAME_RELEASE} | |
837 | echo sparc-unknown-bsdi"$UNAME_RELEASE" | |
786 | 838 | exit ;; |
787 | 839 | *:BSD/OS:*:*) |
788 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | |
840 | echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" | |
789 | 841 | exit ;; |
790 | 842 | *:FreeBSD:*:*) |
791 | case ${UNAME_MACHINE} in | |
792 | pc98) | |
793 | echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
843 | UNAME_PROCESSOR=`/usr/bin/uname -p` | |
844 | case "$UNAME_PROCESSOR" in | |
794 | 845 | amd64) |
795 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
796 | *) | |
797 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
846 | UNAME_PROCESSOR=x86_64 ;; | |
847 | i386) | |
848 | UNAME_PROCESSOR=i586 ;; | |
798 | 849 | esac |
850 | echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" | |
799 | 851 | exit ;; |
800 | 852 | i*:CYGWIN*:*) |
801 | echo ${UNAME_MACHINE}-pc-cygwin | |
853 | echo "$UNAME_MACHINE"-pc-cygwin | |
854 | exit ;; | |
855 | *:MINGW64*:*) | |
856 | echo "$UNAME_MACHINE"-pc-mingw64 | |
802 | 857 | exit ;; |
803 | 858 | *:MINGW*:*) |
804 | echo ${UNAME_MACHINE}-pc-mingw32 | |
805 | exit ;; | |
806 | i*:windows32*:*) | |
807 | # uname -m includes "-pc" on this system. | |
808 | echo ${UNAME_MACHINE}-mingw32 | |
859 | echo "$UNAME_MACHINE"-pc-mingw32 | |
860 | exit ;; | |
861 | *:MSYS*:*) | |
862 | echo "$UNAME_MACHINE"-pc-msys | |
809 | 863 | exit ;; |
810 | 864 | i*:PW*:*) |
811 | echo ${UNAME_MACHINE}-pc-pw32 | |
865 | echo "$UNAME_MACHINE"-pc-pw32 | |
812 | 866 | exit ;; |
813 | 867 | *:Interix*:*) |
814 | case ${UNAME_MACHINE} in | |
868 | case "$UNAME_MACHINE" in | |
815 | 869 | x86) |
816 | echo i586-pc-interix${UNAME_RELEASE} | |
870 | echo i586-pc-interix"$UNAME_RELEASE" | |
817 | 871 | exit ;; |
818 | 872 | authenticamd | genuineintel | EM64T) |
819 | echo x86_64-unknown-interix${UNAME_RELEASE} | |
873 | echo x86_64-unknown-interix"$UNAME_RELEASE" | |
820 | 874 | exit ;; |
821 | 875 | IA64) |
822 | echo ia64-unknown-interix${UNAME_RELEASE} | |
876 | echo ia64-unknown-interix"$UNAME_RELEASE" | |
823 | 877 | exit ;; |
824 | 878 | esac ;; |
825 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | |
826 | echo i${UNAME_MACHINE}-pc-mks | |
827 | exit ;; | |
828 | 8664:Windows_NT:*) | |
829 | echo x86_64-pc-mks | |
830 | exit ;; | |
831 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | |
832 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
833 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | |
834 | # UNAME_MACHINE based on the output of uname instead of i386? | |
835 | echo i586-pc-interix | |
836 | exit ;; | |
837 | 879 | i*:UWIN*:*) |
838 | echo ${UNAME_MACHINE}-pc-uwin | |
880 | echo "$UNAME_MACHINE"-pc-uwin | |
839 | 881 | exit ;; |
840 | 882 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) |
841 | 883 | echo x86_64-unknown-cygwin |
842 | 884 | exit ;; |
843 | p*:CYGWIN*:*) | |
844 | echo powerpcle-unknown-cygwin | |
845 | exit ;; | |
846 | 885 | prep*:SunOS:5.*:*) |
847 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
886 | echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
848 | 887 | exit ;; |
849 | 888 | *:GNU:*:*) |
850 | 889 | # the GNU system |
851 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | |
890 | echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" | |
852 | 891 | exit ;; |
853 | 892 | *:GNU/*:*:*) |
854 | 893 | # other systems with GNU libc and userland |
855 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | |
894 | echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" | |
856 | 895 | exit ;; |
857 | 896 | i*86:Minix:*:*) |
858 | echo ${UNAME_MACHINE}-pc-minix | |
897 | echo "$UNAME_MACHINE"-pc-minix | |
898 | exit ;; | |
899 | aarch64:Linux:*:*) | |
900 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
901 | exit ;; | |
902 | aarch64_be:Linux:*:*) | |
903 | UNAME_MACHINE=aarch64_be | |
904 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
859 | 905 | exit ;; |
860 | 906 | alpha:Linux:*:*) |
861 | 907 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
866 | 912 | EV6) UNAME_MACHINE=alphaev6 ;; |
867 | 913 | EV67) UNAME_MACHINE=alphaev67 ;; |
868 | 914 | EV68*) UNAME_MACHINE=alphaev68 ;; |
869 | esac | |
915 | esac | |
870 | 916 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
871 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | |
872 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | |
917 | if test "$?" = 0 ; then LIBC=gnulibc1 ; fi | |
918 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
919 | exit ;; | |
920 | arc:Linux:*:* | arceb:Linux:*:*) | |
921 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
873 | 922 | exit ;; |
874 | 923 | arm*:Linux:*:*) |
875 | eval $set_cc_for_build | |
924 | eval "$set_cc_for_build" | |
876 | 925 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
877 | 926 | | grep -q __ARM_EABI__ |
878 | 927 | then |
879 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
928 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
880 | 929 | else |
881 | echo ${UNAME_MACHINE}-unknown-linux-gnueabi | |
930 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | |
931 | | grep -q __ARM_PCS_VFP | |
932 | then | |
933 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi | |
934 | else | |
935 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf | |
936 | fi | |
882 | 937 | fi |
883 | 938 | exit ;; |
884 | 939 | avr32*:Linux:*:*) |
885 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
940 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
886 | 941 | exit ;; |
887 | 942 | cris:Linux:*:*) |
888 | echo cris-axis-linux-gnu | |
943 | echo "$UNAME_MACHINE"-axis-linux-"$LIBC" | |
889 | 944 | exit ;; |
890 | 945 | crisv32:Linux:*:*) |
891 | echo crisv32-axis-linux-gnu | |
946 | echo "$UNAME_MACHINE"-axis-linux-"$LIBC" | |
947 | exit ;; | |
948 | e2k:Linux:*:*) | |
949 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
892 | 950 | exit ;; |
893 | 951 | frv:Linux:*:*) |
894 | echo frv-unknown-linux-gnu | |
952 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
953 | exit ;; | |
954 | hexagon:Linux:*:*) | |
955 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
895 | 956 | exit ;; |
896 | 957 | i*86:Linux:*:*) |
897 | LIBC=gnu | |
898 | eval $set_cc_for_build | |
899 | sed 's/^ //' << EOF >$dummy.c | |
900 | #ifdef __dietlibc__ | |
901 | LIBC=dietlibc | |
902 | #endif | |
903 | EOF | |
904 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | |
905 | echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | |
958 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC" | |
906 | 959 | exit ;; |
907 | 960 | ia64:Linux:*:*) |
908 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
961 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
962 | exit ;; | |
963 | k1om:Linux:*:*) | |
964 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
909 | 965 | exit ;; |
910 | 966 | m32r*:Linux:*:*) |
911 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
967 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
912 | 968 | exit ;; |
913 | 969 | m68*:Linux:*:*) |
914 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
970 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
915 | 971 | exit ;; |
916 | 972 | mips:Linux:*:* | mips64:Linux:*:*) |
917 | eval $set_cc_for_build | |
918 | sed 's/^ //' << EOF >$dummy.c | |
973 | eval "$set_cc_for_build" | |
974 | sed 's/^ //' << EOF > "$dummy.c" | |
919 | 975 | #undef CPU |
920 | 976 | #undef ${UNAME_MACHINE} |
921 | 977 | #undef ${UNAME_MACHINE}el |
929 | 985 | #endif |
930 | 986 | #endif |
931 | 987 | EOF |
932 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | |
933 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | |
988 | eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" | |
989 | test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } | |
934 | 990 | ;; |
935 | or32:Linux:*:*) | |
936 | echo or32-unknown-linux-gnu | |
991 | mips64el:Linux:*:*) | |
992 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
993 | exit ;; | |
994 | openrisc*:Linux:*:*) | |
995 | echo or1k-unknown-linux-"$LIBC" | |
996 | exit ;; | |
997 | or32:Linux:*:* | or1k*:Linux:*:*) | |
998 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
937 | 999 | exit ;; |
938 | 1000 | padre:Linux:*:*) |
939 | echo sparc-unknown-linux-gnu | |
1001 | echo sparc-unknown-linux-"$LIBC" | |
940 | 1002 | exit ;; |
941 | 1003 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
942 | echo hppa64-unknown-linux-gnu | |
1004 | echo hppa64-unknown-linux-"$LIBC" | |
943 | 1005 | exit ;; |
944 | 1006 | parisc:Linux:*:* | hppa:Linux:*:*) |
945 | 1007 | # Look for CPU level |
946 | 1008 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
947 | PA7*) echo hppa1.1-unknown-linux-gnu ;; | |
948 | PA8*) echo hppa2.0-unknown-linux-gnu ;; | |
949 | *) echo hppa-unknown-linux-gnu ;; | |
1009 | PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; | |
1010 | PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; | |
1011 | *) echo hppa-unknown-linux-"$LIBC" ;; | |
950 | 1012 | esac |
951 | 1013 | exit ;; |
952 | 1014 | ppc64:Linux:*:*) |
953 | echo powerpc64-unknown-linux-gnu | |
1015 | echo powerpc64-unknown-linux-"$LIBC" | |
954 | 1016 | exit ;; |
955 | 1017 | ppc:Linux:*:*) |
956 | echo powerpc-unknown-linux-gnu | |
1018 | echo powerpc-unknown-linux-"$LIBC" | |
1019 | exit ;; | |
1020 | ppc64le:Linux:*:*) | |
1021 | echo powerpc64le-unknown-linux-"$LIBC" | |
1022 | exit ;; | |
1023 | ppcle:Linux:*:*) | |
1024 | echo powerpcle-unknown-linux-"$LIBC" | |
1025 | exit ;; | |
1026 | riscv32:Linux:*:* | riscv64:Linux:*:*) | |
1027 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
957 | 1028 | exit ;; |
958 | 1029 | s390:Linux:*:* | s390x:Linux:*:*) |
959 | echo ${UNAME_MACHINE}-ibm-linux | |
1030 | echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" | |
960 | 1031 | exit ;; |
961 | 1032 | sh64*:Linux:*:*) |
962 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
1033 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
963 | 1034 | exit ;; |
964 | 1035 | sh*:Linux:*:*) |
965 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
1036 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
966 | 1037 | exit ;; |
967 | 1038 | sparc:Linux:*:* | sparc64:Linux:*:*) |
968 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
1039 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
969 | 1040 | exit ;; |
970 | 1041 | tile*:Linux:*:*) |
971 | echo ${UNAME_MACHINE}-tilera-linux-gnu | |
1042 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
972 | 1043 | exit ;; |
973 | 1044 | vax:Linux:*:*) |
974 | echo ${UNAME_MACHINE}-dec-linux-gnu | |
1045 | echo "$UNAME_MACHINE"-dec-linux-"$LIBC" | |
975 | 1046 | exit ;; |
976 | 1047 | x86_64:Linux:*:*) |
977 | echo x86_64-unknown-linux-gnu | |
1048 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC" | |
978 | 1049 | exit ;; |
979 | 1050 | xtensa*:Linux:*:*) |
980 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
1051 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
981 | 1052 | exit ;; |
982 | 1053 | i*86:DYNIX/ptx:4*:*) |
983 | 1054 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
986 | 1057 | echo i386-sequent-sysv4 |
987 | 1058 | exit ;; |
988 | 1059 | i*86:UNIX_SV:4.2MP:2.*) |
989 | # Unixware is an offshoot of SVR4, but it has its own version | |
990 | # number series starting with 2... | |
991 | # I am not positive that other SVR4 systems won't match this, | |
1060 | # Unixware is an offshoot of SVR4, but it has its own version | |
1061 | # number series starting with 2... | |
1062 | # I am not positive that other SVR4 systems won't match this, | |
992 | 1063 | # I just have to hope. -- rms. |
993 | # Use sysv4.2uw... so that sysv4* matches it. | |
994 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} | |
1064 | # Use sysv4.2uw... so that sysv4* matches it. | |
1065 | echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" | |
995 | 1066 | exit ;; |
996 | 1067 | i*86:OS/2:*:*) |
997 | 1068 | # If we were able to find `uname', then EMX Unix compatibility |
998 | 1069 | # is probably installed. |
999 | echo ${UNAME_MACHINE}-pc-os2-emx | |
1070 | echo "$UNAME_MACHINE"-pc-os2-emx | |
1000 | 1071 | exit ;; |
1001 | 1072 | i*86:XTS-300:*:STOP) |
1002 | echo ${UNAME_MACHINE}-unknown-stop | |
1073 | echo "$UNAME_MACHINE"-unknown-stop | |
1003 | 1074 | exit ;; |
1004 | 1075 | i*86:atheos:*:*) |
1005 | echo ${UNAME_MACHINE}-unknown-atheos | |
1076 | echo "$UNAME_MACHINE"-unknown-atheos | |
1006 | 1077 | exit ;; |
1007 | 1078 | i*86:syllable:*:*) |
1008 | echo ${UNAME_MACHINE}-pc-syllable | |
1079 | echo "$UNAME_MACHINE"-pc-syllable | |
1009 | 1080 | exit ;; |
1010 | 1081 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
1011 | echo i386-unknown-lynxos${UNAME_RELEASE} | |
1082 | echo i386-unknown-lynxos"$UNAME_RELEASE" | |
1012 | 1083 | exit ;; |
1013 | 1084 | i*86:*DOS:*:*) |
1014 | echo ${UNAME_MACHINE}-pc-msdosdjgpp | |
1015 | exit ;; | |
1016 | i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) | |
1017 | UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` | |
1085 | echo "$UNAME_MACHINE"-pc-msdosdjgpp | |
1086 | exit ;; | |
1087 | i*86:*:4.*:*) | |
1088 | UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` | |
1018 | 1089 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
1019 | echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} | |
1090 | echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" | |
1020 | 1091 | else |
1021 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} | |
1092 | echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" | |
1022 | 1093 | fi |
1023 | 1094 | exit ;; |
1024 | 1095 | i*86:*:5:[678]*) |
1025 | # UnixWare 7.x, OpenUNIX and OpenServer 6. | |
1096 | # UnixWare 7.x, OpenUNIX and OpenServer 6. | |
1026 | 1097 | case `/bin/uname -X | grep "^Machine"` in |
1027 | 1098 | *486*) UNAME_MACHINE=i486 ;; |
1028 | 1099 | *Pentium) UNAME_MACHINE=i586 ;; |
1029 | 1100 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
1030 | 1101 | esac |
1031 | echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} | |
1102 | echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" | |
1032 | 1103 | exit ;; |
1033 | 1104 | i*86:*:3.2:*) |
1034 | 1105 | if test -f /usr/options/cb.name; then |
1035 | 1106 | UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
1036 | echo ${UNAME_MACHINE}-pc-isc$UNAME_REL | |
1107 | echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL" | |
1037 | 1108 | elif /bin/uname -X 2>/dev/null >/dev/null ; then |
1038 | 1109 | UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` |
1039 | 1110 | (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 |
1043 | 1114 | && UNAME_MACHINE=i686 |
1044 | 1115 | (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ |
1045 | 1116 | && UNAME_MACHINE=i686 |
1046 | echo ${UNAME_MACHINE}-pc-sco$UNAME_REL | |
1117 | echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" | |
1047 | 1118 | else |
1048 | echo ${UNAME_MACHINE}-pc-sysv32 | |
1119 | echo "$UNAME_MACHINE"-pc-sysv32 | |
1049 | 1120 | fi |
1050 | 1121 | exit ;; |
1051 | 1122 | pc:*:*:*) |
1052 | 1123 | # Left here for compatibility: |
1053 | # uname -m prints for DJGPP always 'pc', but it prints nothing about | |
1054 | # the processor, so we play safe by assuming i586. | |
1124 | # uname -m prints for DJGPP always 'pc', but it prints nothing about | |
1125 | # the processor, so we play safe by assuming i586. | |
1055 | 1126 | # Note: whatever this is, it MUST be the same as what config.sub |
1056 | # prints for the "djgpp" host, or else GDB configury will decide that | |
1127 | # prints for the "djgpp" host, or else GDB configure will decide that | |
1057 | 1128 | # this is a cross-build. |
1058 | 1129 | echo i586-pc-msdosdjgpp |
1059 | exit ;; | |
1130 | exit ;; | |
1060 | 1131 | Intel:Mach:3*:*) |
1061 | 1132 | echo i386-pc-mach3 |
1062 | 1133 | exit ;; |
1065 | 1136 | exit ;; |
1066 | 1137 | i860:*:4.*:*) # i860-SVR4 |
1067 | 1138 | if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then |
1068 | echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 | |
1139 | echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 | |
1069 | 1140 | else # Add other i860-SVR4 vendors below as they are discovered. |
1070 | echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 | |
1141 | echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 | |
1071 | 1142 | fi |
1072 | 1143 | exit ;; |
1073 | 1144 | mini*:CTIX:SYS*5:*) |
1087 | 1158 | test -r /etc/.relid \ |
1088 | 1159 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
1089 | 1160 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1090 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | |
1161 | && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } | |
1091 | 1162 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1092 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
1163 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; | |
1093 | 1164 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1094 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
1095 | && { echo i486-ncr-sysv4; exit; } ;; | |
1165 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
1166 | && { echo i486-ncr-sysv4; exit; } ;; | |
1096 | 1167 | NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
1097 | 1168 | OS_REL='.3' |
1098 | 1169 | test -r /etc/.relid \ |
1099 | 1170 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
1100 | 1171 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1101 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | |
1172 | && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } | |
1102 | 1173 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1103 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } | |
1174 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } | |
1104 | 1175 | /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ |
1105 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
1176 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; | |
1106 | 1177 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1107 | echo m68k-unknown-lynxos${UNAME_RELEASE} | |
1178 | echo m68k-unknown-lynxos"$UNAME_RELEASE" | |
1108 | 1179 | exit ;; |
1109 | 1180 | mc68030:UNIX_System_V:4.*:*) |
1110 | 1181 | echo m68k-atari-sysv4 |
1111 | 1182 | exit ;; |
1112 | 1183 | TSUNAMI:LynxOS:2.*:*) |
1113 | echo sparc-unknown-lynxos${UNAME_RELEASE} | |
1184 | echo sparc-unknown-lynxos"$UNAME_RELEASE" | |
1114 | 1185 | exit ;; |
1115 | 1186 | rs6000:LynxOS:2.*:*) |
1116 | echo rs6000-unknown-lynxos${UNAME_RELEASE} | |
1187 | echo rs6000-unknown-lynxos"$UNAME_RELEASE" | |
1117 | 1188 | exit ;; |
1118 | 1189 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
1119 | echo powerpc-unknown-lynxos${UNAME_RELEASE} | |
1190 | echo powerpc-unknown-lynxos"$UNAME_RELEASE" | |
1120 | 1191 | exit ;; |
1121 | 1192 | SM[BE]S:UNIX_SV:*:*) |
1122 | echo mips-dde-sysv${UNAME_RELEASE} | |
1193 | echo mips-dde-sysv"$UNAME_RELEASE" | |
1123 | 1194 | exit ;; |
1124 | 1195 | RM*:ReliantUNIX-*:*:*) |
1125 | 1196 | echo mips-sni-sysv4 |
1130 | 1201 | *:SINIX-*:*:*) |
1131 | 1202 | if uname -p 2>/dev/null >/dev/null ; then |
1132 | 1203 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1133 | echo ${UNAME_MACHINE}-sni-sysv4 | |
1204 | echo "$UNAME_MACHINE"-sni-sysv4 | |
1134 | 1205 | else |
1135 | 1206 | echo ns32k-sni-sysv |
1136 | 1207 | fi |
1137 | 1208 | exit ;; |
1138 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | |
1139 | # says <Richard.M.Bartel@ccMail.Census.GOV> | |
1140 | echo i586-unisys-sysv4 | |
1141 | exit ;; | |
1209 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | |
1210 | # says <Richard.M.Bartel@ccMail.Census.GOV> | |
1211 | echo i586-unisys-sysv4 | |
1212 | exit ;; | |
1142 | 1213 | *:UNIX_System_V:4*:FTX*) |
1143 | 1214 | # From Gerald Hewes <hewes@openmarket.com>. |
1144 | 1215 | # How about differentiating between stratus architectures? -djm |
1150 | 1221 | exit ;; |
1151 | 1222 | i*86:VOS:*:*) |
1152 | 1223 | # From Paul.Green@stratus.com. |
1153 | echo ${UNAME_MACHINE}-stratus-vos | |
1224 | echo "$UNAME_MACHINE"-stratus-vos | |
1154 | 1225 | exit ;; |
1155 | 1226 | *:VOS:*:*) |
1156 | 1227 | # From Paul.Green@stratus.com. |
1157 | 1228 | echo hppa1.1-stratus-vos |
1158 | 1229 | exit ;; |
1159 | 1230 | mc68*:A/UX:*:*) |
1160 | echo m68k-apple-aux${UNAME_RELEASE} | |
1231 | echo m68k-apple-aux"$UNAME_RELEASE" | |
1161 | 1232 | exit ;; |
1162 | 1233 | news*:NEWS-OS:6*:*) |
1163 | 1234 | echo mips-sony-newsos6 |
1164 | 1235 | exit ;; |
1165 | 1236 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
1166 | 1237 | if [ -d /usr/nec ]; then |
1167 | echo mips-nec-sysv${UNAME_RELEASE} | |
1238 | echo mips-nec-sysv"$UNAME_RELEASE" | |
1168 | 1239 | else |
1169 | echo mips-unknown-sysv${UNAME_RELEASE} | |
1170 | fi | |
1171 | exit ;; | |
1240 | echo mips-unknown-sysv"$UNAME_RELEASE" | |
1241 | fi | |
1242 | exit ;; | |
1172 | 1243 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
1173 | 1244 | echo powerpc-be-beos |
1174 | 1245 | exit ;; |
1181 | 1252 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
1182 | 1253 | echo i586-pc-haiku |
1183 | 1254 | exit ;; |
1255 | x86_64:Haiku:*:*) | |
1256 | echo x86_64-unknown-haiku | |
1257 | exit ;; | |
1184 | 1258 | SX-4:SUPER-UX:*:*) |
1185 | echo sx4-nec-superux${UNAME_RELEASE} | |
1259 | echo sx4-nec-superux"$UNAME_RELEASE" | |
1186 | 1260 | exit ;; |
1187 | 1261 | SX-5:SUPER-UX:*:*) |
1188 | echo sx5-nec-superux${UNAME_RELEASE} | |
1262 | echo sx5-nec-superux"$UNAME_RELEASE" | |
1189 | 1263 | exit ;; |
1190 | 1264 | SX-6:SUPER-UX:*:*) |
1191 | echo sx6-nec-superux${UNAME_RELEASE} | |
1265 | echo sx6-nec-superux"$UNAME_RELEASE" | |
1192 | 1266 | exit ;; |
1193 | 1267 | SX-7:SUPER-UX:*:*) |
1194 | echo sx7-nec-superux${UNAME_RELEASE} | |
1268 | echo sx7-nec-superux"$UNAME_RELEASE" | |
1195 | 1269 | exit ;; |
1196 | 1270 | SX-8:SUPER-UX:*:*) |
1197 | echo sx8-nec-superux${UNAME_RELEASE} | |
1271 | echo sx8-nec-superux"$UNAME_RELEASE" | |
1198 | 1272 | exit ;; |
1199 | 1273 | SX-8R:SUPER-UX:*:*) |
1200 | echo sx8r-nec-superux${UNAME_RELEASE} | |
1274 | echo sx8r-nec-superux"$UNAME_RELEASE" | |
1275 | exit ;; | |
1276 | SX-ACE:SUPER-UX:*:*) | |
1277 | echo sxace-nec-superux"$UNAME_RELEASE" | |
1201 | 1278 | exit ;; |
1202 | 1279 | Power*:Rhapsody:*:*) |
1203 | echo powerpc-apple-rhapsody${UNAME_RELEASE} | |
1280 | echo powerpc-apple-rhapsody"$UNAME_RELEASE" | |
1204 | 1281 | exit ;; |
1205 | 1282 | *:Rhapsody:*:*) |
1206 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | |
1283 | echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" | |
1207 | 1284 | exit ;; |
1208 | 1285 | *:Darwin:*:*) |
1209 | 1286 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1210 | case $UNAME_PROCESSOR in | |
1211 | i386) | |
1212 | eval $set_cc_for_build | |
1213 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
1214 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
1215 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1216 | grep IS_64BIT_ARCH >/dev/null | |
1217 | then | |
1218 | UNAME_PROCESSOR="x86_64" | |
1219 | fi | |
1220 | fi ;; | |
1221 | unknown) UNAME_PROCESSOR=powerpc ;; | |
1222 | esac | |
1223 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | |
1287 | eval "$set_cc_for_build" | |
1288 | if test "$UNAME_PROCESSOR" = unknown ; then | |
1289 | UNAME_PROCESSOR=powerpc | |
1290 | fi | |
1291 | if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then | |
1292 | if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | |
1293 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
1294 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1295 | grep IS_64BIT_ARCH >/dev/null | |
1296 | then | |
1297 | case $UNAME_PROCESSOR in | |
1298 | i386) UNAME_PROCESSOR=x86_64 ;; | |
1299 | powerpc) UNAME_PROCESSOR=powerpc64 ;; | |
1300 | esac | |
1301 | fi | |
1302 | # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc | |
1303 | if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ | |
1304 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1305 | grep IS_PPC >/dev/null | |
1306 | then | |
1307 | UNAME_PROCESSOR=powerpc | |
1308 | fi | |
1309 | fi | |
1310 | elif test "$UNAME_PROCESSOR" = i386 ; then | |
1311 | # Avoid executing cc on OS X 10.9, as it ships with a stub | |
1312 | # that puts up a graphical alert prompting to install | |
1313 | # developer tools. Any system running Mac OS X 10.7 or | |
1314 | # later (Darwin 11 and later) is required to have a 64-bit | |
1315 | # processor. This is not true of the ARM version of Darwin | |
1316 | # that Apple uses in portable devices. | |
1317 | UNAME_PROCESSOR=x86_64 | |
1318 | fi | |
1319 | echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" | |
1224 | 1320 | exit ;; |
1225 | 1321 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1226 | 1322 | UNAME_PROCESSOR=`uname -p` |
1227 | if test "$UNAME_PROCESSOR" = "x86"; then | |
1323 | if test "$UNAME_PROCESSOR" = x86; then | |
1228 | 1324 | UNAME_PROCESSOR=i386 |
1229 | 1325 | UNAME_MACHINE=pc |
1230 | 1326 | fi |
1231 | echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | |
1327 | echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" | |
1232 | 1328 | exit ;; |
1233 | 1329 | *:QNX:*:4*) |
1234 | 1330 | echo i386-pc-qnx |
1235 | 1331 | exit ;; |
1236 | NSE-?:NONSTOP_KERNEL:*:*) | |
1237 | echo nse-tandem-nsk${UNAME_RELEASE} | |
1238 | exit ;; | |
1239 | NSR-?:NONSTOP_KERNEL:*:*) | |
1240 | echo nsr-tandem-nsk${UNAME_RELEASE} | |
1332 | NEO-*:NONSTOP_KERNEL:*:*) | |
1333 | echo neo-tandem-nsk"$UNAME_RELEASE" | |
1334 | exit ;; | |
1335 | NSE-*:NONSTOP_KERNEL:*:*) | |
1336 | echo nse-tandem-nsk"$UNAME_RELEASE" | |
1337 | exit ;; | |
1338 | NSR-*:NONSTOP_KERNEL:*:*) | |
1339 | echo nsr-tandem-nsk"$UNAME_RELEASE" | |
1340 | exit ;; | |
1341 | NSV-*:NONSTOP_KERNEL:*:*) | |
1342 | echo nsv-tandem-nsk"$UNAME_RELEASE" | |
1343 | exit ;; | |
1344 | NSX-*:NONSTOP_KERNEL:*:*) | |
1345 | echo nsx-tandem-nsk"$UNAME_RELEASE" | |
1241 | 1346 | exit ;; |
1242 | 1347 | *:NonStop-UX:*:*) |
1243 | 1348 | echo mips-compaq-nonstopux |
1246 | 1351 | echo bs2000-siemens-sysv |
1247 | 1352 | exit ;; |
1248 | 1353 | DS/*:UNIX_System_V:*:*) |
1249 | echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} | |
1354 | echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" | |
1250 | 1355 | exit ;; |
1251 | 1356 | *:Plan9:*:*) |
1252 | 1357 | # "uname -m" is not consistent, so use $cputype instead. 386 |
1253 | 1358 | # is converted to i386 for consistency with other x86 |
1254 | 1359 | # operating systems. |
1255 | if test "$cputype" = "386"; then | |
1360 | if test "$cputype" = 386; then | |
1256 | 1361 | UNAME_MACHINE=i386 |
1257 | 1362 | else |
1258 | 1363 | UNAME_MACHINE="$cputype" |
1259 | 1364 | fi |
1260 | echo ${UNAME_MACHINE}-unknown-plan9 | |
1365 | echo "$UNAME_MACHINE"-unknown-plan9 | |
1261 | 1366 | exit ;; |
1262 | 1367 | *:TOPS-10:*:*) |
1263 | 1368 | echo pdp10-unknown-tops10 |
1278 | 1383 | echo pdp10-unknown-its |
1279 | 1384 | exit ;; |
1280 | 1385 | SEI:*:*:SEIUX) |
1281 | echo mips-sei-seiux${UNAME_RELEASE} | |
1386 | echo mips-sei-seiux"$UNAME_RELEASE" | |
1282 | 1387 | exit ;; |
1283 | 1388 | *:DragonFly:*:*) |
1284 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | |
1389 | echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" | |
1285 | 1390 | exit ;; |
1286 | 1391 | *:*VMS:*:*) |
1287 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
1288 | case "${UNAME_MACHINE}" in | |
1392 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
1393 | case "$UNAME_MACHINE" in | |
1289 | 1394 | A*) echo alpha-dec-vms ; exit ;; |
1290 | 1395 | I*) echo ia64-dec-vms ; exit ;; |
1291 | 1396 | V*) echo vax-dec-vms ; exit ;; |
1294 | 1399 | echo i386-pc-xenix |
1295 | 1400 | exit ;; |
1296 | 1401 | i*86:skyos:*:*) |
1297 | echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' | |
1402 | echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" | |
1298 | 1403 | exit ;; |
1299 | 1404 | i*86:rdos:*:*) |
1300 | echo ${UNAME_MACHINE}-pc-rdos | |
1405 | echo "$UNAME_MACHINE"-pc-rdos | |
1301 | 1406 | exit ;; |
1302 | 1407 | i*86:AROS:*:*) |
1303 | echo ${UNAME_MACHINE}-pc-aros | |
1408 | echo "$UNAME_MACHINE"-pc-aros | |
1409 | exit ;; | |
1410 | x86_64:VMkernel:*:*) | |
1411 | echo "$UNAME_MACHINE"-unknown-esx | |
1412 | exit ;; | |
1413 | amd64:Isilon\ OneFS:*:*) | |
1414 | echo x86_64-unknown-onefs | |
1304 | 1415 | exit ;; |
1305 | 1416 | esac |
1306 | 1417 | |
1307 | #echo '(No uname command or uname output not recognized.)' 1>&2 | |
1308 | #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | |
1309 | ||
1310 | eval $set_cc_for_build | |
1311 | cat >$dummy.c <<EOF | |
1312 | #ifdef _SEQUENT_ | |
1313 | # include <sys/types.h> | |
1314 | # include <sys/utsname.h> | |
1315 | #endif | |
1316 | main () | |
1317 | { | |
1318 | #if defined (sony) | |
1319 | #if defined (MIPSEB) | |
1320 | /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, | |
1321 | I don't know.... */ | |
1322 | printf ("mips-sony-bsd\n"); exit (0); | |
1323 | #else | |
1324 | #include <sys/param.h> | |
1325 | printf ("m68k-sony-newsos%s\n", | |
1326 | #ifdef NEWSOS4 | |
1327 | "4" | |
1328 | #else | |
1329 | "" | |
1330 | #endif | |
1331 | ); exit (0); | |
1332 | #endif | |
1333 | #endif | |
1334 | ||
1335 | #if defined (__arm) && defined (__acorn) && defined (__unix) | |
1336 | printf ("arm-acorn-riscix\n"); exit (0); | |
1337 | #endif | |
1338 | ||
1339 | #if defined (hp300) && !defined (hpux) | |
1340 | printf ("m68k-hp-bsd\n"); exit (0); | |
1341 | #endif | |
1342 | ||
1343 | #if defined (NeXT) | |
1344 | #if !defined (__ARCHITECTURE__) | |
1345 | #define __ARCHITECTURE__ "m68k" | |
1346 | #endif | |
1347 | int version; | |
1348 | version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; | |
1349 | if (version < 4) | |
1350 | printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); | |
1351 | else | |
1352 | printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); | |
1353 | exit (0); | |
1354 | #endif | |
1355 | ||
1356 | #if defined (MULTIMAX) || defined (n16) | |
1357 | #if defined (UMAXV) | |
1358 | printf ("ns32k-encore-sysv\n"); exit (0); | |
1359 | #else | |
1360 | #if defined (CMU) | |
1361 | printf ("ns32k-encore-mach\n"); exit (0); | |
1362 | #else | |
1363 | printf ("ns32k-encore-bsd\n"); exit (0); | |
1364 | #endif | |
1365 | #endif | |
1366 | #endif | |
1367 | ||
1368 | #if defined (__386BSD__) | |
1369 | printf ("i386-pc-bsd\n"); exit (0); | |
1370 | #endif | |
1371 | ||
1372 | #if defined (sequent) | |
1373 | #if defined (i386) | |
1374 | printf ("i386-sequent-dynix\n"); exit (0); | |
1375 | #endif | |
1376 | #if defined (ns32000) | |
1377 | printf ("ns32k-sequent-dynix\n"); exit (0); | |
1378 | #endif | |
1379 | #endif | |
1380 | ||
1381 | #if defined (_SEQUENT_) | |
1382 | struct utsname un; | |
1383 | ||
1384 | uname(&un); | |
1385 | ||
1386 | if (strncmp(un.version, "V2", 2) == 0) { | |
1387 | printf ("i386-sequent-ptx2\n"); exit (0); | |
1388 | } | |
1389 | if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ | |
1390 | printf ("i386-sequent-ptx1\n"); exit (0); | |
1391 | } | |
1392 | printf ("i386-sequent-ptx\n"); exit (0); | |
1393 | ||
1394 | #endif | |
1395 | ||
1396 | #if defined (vax) | |
1397 | # if !defined (ultrix) | |
1398 | # include <sys/param.h> | |
1399 | # if defined (BSD) | |
1400 | # if BSD == 43 | |
1401 | printf ("vax-dec-bsd4.3\n"); exit (0); | |
1402 | # else | |
1403 | # if BSD == 199006 | |
1404 | printf ("vax-dec-bsd4.3reno\n"); exit (0); | |
1405 | # else | |
1406 | printf ("vax-dec-bsd\n"); exit (0); | |
1407 | # endif | |
1408 | # endif | |
1409 | # else | |
1410 | printf ("vax-dec-bsd\n"); exit (0); | |
1411 | # endif | |
1412 | # else | |
1413 | printf ("vax-dec-ultrix\n"); exit (0); | |
1414 | # endif | |
1415 | #endif | |
1416 | ||
1417 | #if defined (alliant) && defined (i860) | |
1418 | printf ("i860-alliant-bsd\n"); exit (0); | |
1419 | #endif | |
1420 | ||
1421 | exit (1); | |
1422 | } | |
1418 | echo "$0: unable to guess system type" >&2 | |
1419 | ||
1420 | case "$UNAME_MACHINE:$UNAME_SYSTEM" in | |
1421 | mips:Linux | mips64:Linux) | |
1422 | # If we got here on MIPS GNU/Linux, output extra information. | |
1423 | cat >&2 <<EOF | |
1424 | ||
1425 | NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize | |
1426 | the system type. Please install a C compiler and try again. | |
1423 | 1427 | EOF |
1424 | ||
1425 | $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && | |
1426 | { echo "$SYSTEM_NAME"; exit; } | |
1427 | ||
1428 | # Apollos put the system type in the environment. | |
1429 | ||
1430 | test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } | |
1431 | ||
1432 | # Convex versions that predate uname can use getsysinfo(1) | |
1433 | ||
1434 | if [ -x /usr/convex/getsysinfo ] | |
1435 | then | |
1436 | case `getsysinfo -f cpu_type` in | |
1437 | c1*) | |
1438 | echo c1-convex-bsd | |
1439 | exit ;; | |
1440 | c2*) | |
1441 | if getsysinfo -f scalar_acc | |
1442 | then echo c32-convex-bsd | |
1443 | else echo c2-convex-bsd | |
1444 | fi | |
1445 | exit ;; | |
1446 | c34*) | |
1447 | echo c34-convex-bsd | |
1448 | exit ;; | |
1449 | c38*) | |
1450 | echo c38-convex-bsd | |
1451 | exit ;; | |
1452 | c4*) | |
1453 | echo c4-convex-bsd | |
1454 | exit ;; | |
1455 | esac | |
1456 | fi | |
1428 | ;; | |
1429 | esac | |
1457 | 1430 | |
1458 | 1431 | cat >&2 <<EOF |
1459 | $0: unable to guess system type | |
1460 | ||
1461 | This script, last modified $timestamp, has failed to recognize | |
1462 | the operating system you are using. It is advised that you | |
1463 | download the most up to date version of the config scripts from | |
1464 | ||
1465 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | |
1432 | ||
1433 | This script (version $timestamp), has failed to recognize the | |
1434 | operating system you are using. If your script is old, overwrite *all* | |
1435 | copies of config.guess and config.sub with the latest versions from: | |
1436 | ||
1437 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | |
1466 | 1438 | and |
1467 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | |
1468 | ||
1469 | If the version you run ($0) is already up to date, please | |
1470 | send the following data and any information you think might be | |
1471 | pertinent to <config-patches@gnu.org> in order to provide the needed | |
1472 | information to handle your system. | |
1439 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | |
1440 | ||
1441 | If $0 has already been updated, send the following data and any | |
1442 | information you think might be pertinent to config-patches@gnu.org to | |
1443 | provide the necessary information to handle your system. | |
1473 | 1444 | |
1474 | 1445 | config.guess timestamp = $timestamp |
1475 | 1446 | |
1488 | 1459 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` |
1489 | 1460 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` |
1490 | 1461 | |
1491 | UNAME_MACHINE = ${UNAME_MACHINE} | |
1492 | UNAME_RELEASE = ${UNAME_RELEASE} | |
1493 | UNAME_SYSTEM = ${UNAME_SYSTEM} | |
1494 | UNAME_VERSION = ${UNAME_VERSION} | |
1462 | UNAME_MACHINE = "$UNAME_MACHINE" | |
1463 | UNAME_RELEASE = "$UNAME_RELEASE" | |
1464 | UNAME_SYSTEM = "$UNAME_SYSTEM" | |
1465 | UNAME_VERSION = "$UNAME_VERSION" | |
1495 | 1466 | EOF |
1496 | 1467 | |
1497 | 1468 | exit 1 |
1498 | 1469 | |
1499 | 1470 | # Local variables: |
1500 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
1471 | # eval: (add-hook 'write-file-functions 'time-stamp) | |
1501 | 1472 | # time-stamp-start: "timestamp='" |
1502 | 1473 | # time-stamp-format: "%:y-%02m-%02d" |
1503 | 1474 | # time-stamp-end: "'" |
0 | 0 | #! /bin/sh |
1 | 1 | # Configuration validation subroutine script. |
2 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | |
3 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | |
4 | # Free Software Foundation, Inc. | |
5 | ||
6 | timestamp='2010-09-11' | |
7 | ||
8 | # This file is (in principle) common to ALL GNU software. | |
9 | # The presence of a machine in this file suggests that SOME GNU software | |
10 | # can handle that machine. It does not imply ALL GNU software can. | |
11 | # | |
12 | # This file is free software; you can redistribute it and/or modify | |
13 | # it under the terms of the GNU General Public License as published by | |
14 | # the Free Software Foundation; either version 2 of the License, or | |
2 | # Copyright 1992-2018 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2018-02-28' | |
5 | ||
6 | # This file is free software; you can redistribute it and/or modify it | |
7 | # under the terms of the GNU General Public License as published by | |
8 | # the Free Software Foundation; either version 3 of the License, or | |
15 | 9 | # (at your option) any later version. |
16 | 10 | # |
17 | # This program is distributed in the hope that it will be useful, | |
18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | # GNU General Public License for more details. | |
11 | # This program is distributed in the hope that it will be useful, but | |
12 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | # General Public License for more details. | |
21 | 15 | # |
22 | 16 | # You should have received a copy of the GNU General Public License |
23 | # along with this program; if not, write to the Free Software | |
24 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | |
25 | # 02110-1301, USA. | |
17 | # along with this program; if not, see <https://www.gnu.org/licenses/>. | |
26 | 18 | # |
27 | 19 | # As a special exception to the GNU General Public License, if you |
28 | 20 | # distribute this file as part of a program that contains a |
29 | 21 | # configuration script generated by Autoconf, you may include it under |
30 | # the same distribution terms that you use for the rest of that program. | |
31 | ||
32 | ||
33 | # Please send patches to <config-patches@gnu.org>. Submit a context | |
34 | # diff and a properly formatted GNU ChangeLog entry. | |
22 | # the same distribution terms that you use for the rest of that | |
23 | # program. This Exception is an additional permission under section 7 | |
24 | # of the GNU General Public License, version 3 ("GPLv3"). | |
25 | ||
26 | ||
27 | # Please send patches to <config-patches@gnu.org>. | |
35 | 28 | # |
36 | 29 | # Configuration subroutine to validate and canonicalize a configuration type. |
37 | 30 | # Supply the specified configuration type as an argument. |
39 | 32 | # Otherwise, we print the canonical config type on stdout and succeed. |
40 | 33 | |
41 | 34 | # You can get the latest version of this script from: |
42 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | |
35 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | |
43 | 36 | |
44 | 37 | # This file is supposed to be the same for all GNU packages |
45 | 38 | # and recognize all the CPU types, system types and aliases |
59 | 52 | me=`echo "$0" | sed -e 's,.*/,,'` |
60 | 53 | |
61 | 54 | usage="\ |
62 | Usage: $0 [OPTION] CPU-MFR-OPSYS | |
63 | $0 [OPTION] ALIAS | |
55 | Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS | |
64 | 56 | |
65 | 57 | Canonicalize a configuration name. |
66 | 58 | |
67 | Operation modes: | |
59 | Options: | |
68 | 60 | -h, --help print this help, then exit |
69 | 61 | -t, --time-stamp print date of last modification, then exit |
70 | 62 | -v, --version print version number, then exit |
74 | 66 | version="\ |
75 | 67 | GNU config.sub ($timestamp) |
76 | 68 | |
77 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | |
78 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free | |
79 | Software Foundation, Inc. | |
69 | Copyright 1992-2018 Free Software Foundation, Inc. | |
80 | 70 | |
81 | 71 | This is free software; see the source for copying conditions. There is NO |
82 | 72 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
103 | 93 | |
104 | 94 | *local*) |
105 | 95 | # First pass through any local machine types. |
106 | echo $1 | |
96 | echo "$1" | |
107 | 97 | exit ;; |
108 | 98 | |
109 | 99 | * ) |
121 | 111 | |
122 | 112 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
123 | 113 | # Here we must recognize all the valid KERNEL-OS combinations. |
124 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | |
114 | maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | |
125 | 115 | case $maybe_os in |
126 | 116 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
127 | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ | |
128 | knetbsd*-gnu* | netbsd*-gnu* | \ | |
129 | kopensolaris*-gnu* | \ | |
117 | linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ | |
118 | knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ | |
119 | kopensolaris*-gnu* | cloudabi*-eabi* | \ | |
130 | 120 | storm-chaos* | os2-emx* | rtmk-nova*) |
131 | 121 | os=-$maybe_os |
132 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | |
122 | basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | |
123 | ;; | |
124 | android-linux) | |
125 | os=-linux-android | |
126 | basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
133 | 127 | ;; |
134 | 128 | *) |
135 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` | |
136 | if [ $basic_machine != $1 ] | |
137 | then os=`echo $1 | sed 's/.*-/-/'` | |
129 | basic_machine=`echo "$1" | sed 's/-[^-]*$//'` | |
130 | if [ "$basic_machine" != "$1" ] | |
131 | then os=`echo "$1" | sed 's/.*-/-/'` | |
138 | 132 | else os=; fi |
139 | 133 | ;; |
140 | 134 | esac |
153 | 147 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
154 | 148 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
155 | 149 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
156 | -apple | -axis | -knuth | -cray | -microblaze) | |
150 | -apple | -axis | -knuth | -cray | -microblaze*) | |
157 | 151 | os= |
158 | 152 | basic_machine=$1 |
159 | 153 | ;; |
160 | -bluegene*) | |
161 | os=-cnk | |
154 | -bluegene*) | |
155 | os=-cnk | |
162 | 156 | ;; |
163 | 157 | -sim | -cisco | -oki | -wec | -winbond) |
164 | 158 | os= |
174 | 168 | os=-chorusos |
175 | 169 | basic_machine=$1 |
176 | 170 | ;; |
177 | -chorusrdb) | |
178 | os=-chorusrdb | |
171 | -chorusrdb) | |
172 | os=-chorusrdb | |
179 | 173 | basic_machine=$1 |
180 | ;; | |
174 | ;; | |
181 | 175 | -hiux*) |
182 | 176 | os=-hiuxwe2 |
183 | 177 | ;; |
184 | 178 | -sco6) |
185 | 179 | os=-sco5v6 |
186 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
180 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
187 | 181 | ;; |
188 | 182 | -sco5) |
189 | 183 | os=-sco3.2v5 |
190 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
184 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
191 | 185 | ;; |
192 | 186 | -sco4) |
193 | 187 | os=-sco3.2v4 |
194 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
188 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
195 | 189 | ;; |
196 | 190 | -sco3.2.[4-9]*) |
197 | 191 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
198 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
192 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
199 | 193 | ;; |
200 | 194 | -sco3.2v[4-9]*) |
201 | 195 | # Don't forget version if it is 3.2v4 or newer. |
202 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
196 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
203 | 197 | ;; |
204 | 198 | -sco5v6*) |
205 | 199 | # Don't forget version if it is 3.2v4 or newer. |
206 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
200 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
207 | 201 | ;; |
208 | 202 | -sco*) |
209 | 203 | os=-sco3.2v2 |
210 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
204 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
211 | 205 | ;; |
212 | 206 | -udk*) |
213 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
207 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
214 | 208 | ;; |
215 | 209 | -isc) |
216 | 210 | os=-isc2.2 |
217 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
211 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
218 | 212 | ;; |
219 | 213 | -clix*) |
220 | 214 | basic_machine=clipper-intergraph |
221 | 215 | ;; |
222 | 216 | -isc*) |
223 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
217 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
218 | ;; | |
219 | -lynx*178) | |
220 | os=-lynxos178 | |
221 | ;; | |
222 | -lynx*5) | |
223 | os=-lynxos5 | |
224 | 224 | ;; |
225 | 225 | -lynx*) |
226 | 226 | os=-lynxos |
227 | 227 | ;; |
228 | 228 | -ptx*) |
229 | basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` | |
230 | ;; | |
231 | -windowsnt*) | |
232 | os=`echo $os | sed -e 's/windowsnt/winnt/'` | |
229 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'` | |
233 | 230 | ;; |
234 | 231 | -psos*) |
235 | 232 | os=-psos |
246 | 243 | # Some are omitted here because they have special meanings below. |
247 | 244 | 1750a | 580 \ |
248 | 245 | | a29k \ |
246 | | aarch64 | aarch64_be \ | |
249 | 247 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
250 | 248 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
251 | 249 | | am33_2.0 \ |
252 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | |
250 | | arc | arceb \ | |
251 | | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | |
252 | | avr | avr32 \ | |
253 | | ba \ | |
254 | | be32 | be64 \ | |
253 | 255 | | bfin \ |
254 | | c4x | clipper \ | |
256 | | c4x | c8051 | clipper \ | |
255 | 257 | | d10v | d30v | dlx | dsp16xx \ |
256 | | fido | fr30 | frv \ | |
258 | | e2k | epiphany \ | |
259 | | fido | fr30 | frv | ft32 \ | |
257 | 260 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
258 | | i370 | i860 | i960 | ia64 \ | |
261 | | hexagon \ | |
262 | | i370 | i860 | i960 | ia16 | ia64 \ | |
259 | 263 | | ip2k | iq2000 \ |
264 | | k1om \ | |
265 | | le32 | le64 \ | |
260 | 266 | | lm32 \ |
261 | 267 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
262 | | maxq | mb | microblaze | mcore | mep | metag \ | |
268 | | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | |
263 | 269 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
264 | 270 | | mips16 \ |
265 | 271 | | mips64 | mips64el \ |
273 | 279 | | mips64vr5900 | mips64vr5900el \ |
274 | 280 | | mipsisa32 | mipsisa32el \ |
275 | 281 | | mipsisa32r2 | mipsisa32r2el \ |
282 | | mipsisa32r6 | mipsisa32r6el \ | |
276 | 283 | | mipsisa64 | mipsisa64el \ |
277 | 284 | | mipsisa64r2 | mipsisa64r2el \ |
285 | | mipsisa64r6 | mipsisa64r6el \ | |
278 | 286 | | mipsisa64sb1 | mipsisa64sb1el \ |
279 | 287 | | mipsisa64sr71k | mipsisa64sr71kel \ |
288 | | mipsr5900 | mipsr5900el \ | |
280 | 289 | | mipstx39 | mipstx39el \ |
281 | 290 | | mn10200 | mn10300 \ |
282 | 291 | | moxie \ |
283 | 292 | | mt \ |
284 | 293 | | msp430 \ |
285 | 294 | | nds32 | nds32le | nds32be \ |
286 | | nios | nios2 \ | |
295 | | nios | nios2 | nios2eb | nios2el \ | |
287 | 296 | | ns16k | ns32k \ |
288 | | or32 \ | |
289 | | pdp10 | pdp11 | pj | pjl \ | |
290 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | |
297 | | open8 | or1k | or1knd | or32 \ | |
298 | | pdp10 | pj | pjl \ | |
299 | | powerpc | powerpc64 | powerpc64le | powerpcle \ | |
300 | | pru \ | |
291 | 301 | | pyramid \ |
292 | | rx \ | |
302 | | riscv32 | riscv64 \ | |
303 | | rl78 | rx \ | |
293 | 304 | | score \ |
294 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | |
305 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | |
295 | 306 | | sh64 | sh64le \ |
296 | 307 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
297 | 308 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
298 | | spu | strongarm \ | |
299 | | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | |
309 | | spu \ | |
310 | | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | |
300 | 311 | | ubicom32 \ |
301 | | v850 | v850e \ | |
302 | | we32k \ | |
303 | | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | |
312 | | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | |
313 | | visium \ | |
314 | | wasm32 \ | |
315 | | x86 | xc16x | xstormy16 | xtensa \ | |
304 | 316 | | z8k | z80) |
305 | 317 | basic_machine=$basic_machine-unknown |
306 | 318 | ;; |
313 | 325 | c6x) |
314 | 326 | basic_machine=tic6x-unknown |
315 | 327 | ;; |
316 | m6811 | m68hc11 | m6812 | m68hc12 | picochip) | |
317 | # Motorola 68HC11/12. | |
328 | leon|leon[3-9]) | |
329 | basic_machine=sparc-$basic_machine | |
330 | ;; | |
331 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) | |
318 | 332 | basic_machine=$basic_machine-unknown |
319 | 333 | os=-none |
320 | 334 | ;; |
321 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) | |
335 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) | |
322 | 336 | ;; |
323 | 337 | ms1) |
324 | 338 | basic_machine=mt-unknown |
339 | ;; | |
340 | ||
341 | strongarm | thumb | xscale) | |
342 | basic_machine=arm-unknown | |
343 | ;; | |
344 | xgate) | |
345 | basic_machine=$basic_machine-unknown | |
346 | os=-none | |
347 | ;; | |
348 | xscaleeb) | |
349 | basic_machine=armeb-unknown | |
350 | ;; | |
351 | ||
352 | xscaleel) | |
353 | basic_machine=armel-unknown | |
325 | 354 | ;; |
326 | 355 | |
327 | 356 | # We use `pc' rather than `unknown' |
332 | 361 | ;; |
333 | 362 | # Object if more than one company name word. |
334 | 363 | *-*-*) |
335 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
364 | echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 | |
336 | 365 | exit 1 |
337 | 366 | ;; |
338 | 367 | # Recognize the basic CPU types with company name. |
339 | 368 | 580-* \ |
340 | 369 | | a29k-* \ |
370 | | aarch64-* | aarch64_be-* \ | |
341 | 371 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
342 | 372 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
343 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | |
373 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | |
344 | 374 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
345 | 375 | | avr-* | avr32-* \ |
376 | | ba-* \ | |
377 | | be32-* | be64-* \ | |
346 | 378 | | bfin-* | bs2000-* \ |
347 | 379 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
348 | | clipper-* | craynv-* | cydra-* \ | |
380 | | c8051-* | clipper-* | craynv-* | cydra-* \ | |
349 | 381 | | d10v-* | d30v-* | dlx-* \ |
350 | | elxsi-* \ | |
382 | | e2k-* | elxsi-* \ | |
351 | 383 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
352 | 384 | | h8300-* | h8500-* \ |
353 | 385 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
354 | | i*86-* | i860-* | i960-* | ia64-* \ | |
386 | | hexagon-* \ | |
387 | | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ | |
355 | 388 | | ip2k-* | iq2000-* \ |
389 | | k1om-* \ | |
390 | | le32-* | le64-* \ | |
356 | 391 | | lm32-* \ |
357 | 392 | | m32c-* | m32r-* | m32rle-* \ |
358 | 393 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
359 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | |
394 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | |
395 | | microblaze-* | microblazeel-* \ | |
360 | 396 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
361 | 397 | | mips16-* \ |
362 | 398 | | mips64-* | mips64el-* \ |
370 | 406 | | mips64vr5900-* | mips64vr5900el-* \ |
371 | 407 | | mipsisa32-* | mipsisa32el-* \ |
372 | 408 | | mipsisa32r2-* | mipsisa32r2el-* \ |
409 | | mipsisa32r6-* | mipsisa32r6el-* \ | |
373 | 410 | | mipsisa64-* | mipsisa64el-* \ |
374 | 411 | | mipsisa64r2-* | mipsisa64r2el-* \ |
412 | | mipsisa64r6-* | mipsisa64r6el-* \ | |
375 | 413 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
376 | 414 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
415 | | mipsr5900-* | mipsr5900el-* \ | |
377 | 416 | | mipstx39-* | mipstx39el-* \ |
378 | 417 | | mmix-* \ |
379 | 418 | | mt-* \ |
380 | 419 | | msp430-* \ |
381 | 420 | | nds32-* | nds32le-* | nds32be-* \ |
382 | | nios-* | nios2-* \ | |
421 | | nios-* | nios2-* | nios2eb-* | nios2el-* \ | |
383 | 422 | | none-* | np1-* | ns16k-* | ns32k-* \ |
423 | | open8-* \ | |
424 | | or1k*-* \ | |
384 | 425 | | orion-* \ |
385 | 426 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
386 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | |
427 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | |
428 | | pru-* \ | |
387 | 429 | | pyramid-* \ |
388 | | romp-* | rs6000-* | rx-* \ | |
430 | | riscv32-* | riscv64-* \ | |
431 | | rl78-* | romp-* | rs6000-* | rx-* \ | |
389 | 432 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
390 | 433 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
391 | 434 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
392 | 435 | | sparclite-* \ |
393 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | |
394 | | tahoe-* | thumb-* \ | |
436 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ | |
437 | | tahoe-* \ | |
395 | 438 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
396 | | tile-* | tilegx-* \ | |
439 | | tile*-* \ | |
397 | 440 | | tron-* \ |
398 | 441 | | ubicom32-* \ |
399 | | v850-* | v850e-* | vax-* \ | |
442 | | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | |
443 | | vax-* \ | |
444 | | visium-* \ | |
445 | | wasm32-* \ | |
400 | 446 | | we32k-* \ |
401 | | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | |
447 | | x86-* | x86_64-* | xc16x-* | xps100-* \ | |
402 | 448 | | xstormy16-* | xtensa*-* \ |
403 | 449 | | ymp-* \ |
404 | 450 | | z8k-* | z80-*) |
410 | 456 | # Recognize the various machine names and aliases which stand |
411 | 457 | # for a CPU type and a company and sometimes even an OS. |
412 | 458 | 386bsd) |
413 | basic_machine=i386-unknown | |
459 | basic_machine=i386-pc | |
414 | 460 | os=-bsd |
415 | 461 | ;; |
416 | 462 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) |
423 | 469 | basic_machine=a29k-amd |
424 | 470 | os=-udi |
425 | 471 | ;; |
426 | abacus) | |
472 | abacus) | |
427 | 473 | basic_machine=abacus-unknown |
428 | 474 | ;; |
429 | 475 | adobe68k) |
444 | 490 | basic_machine=x86_64-pc |
445 | 491 | ;; |
446 | 492 | amd64-*) |
447 | basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` | |
493 | basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
448 | 494 | ;; |
449 | 495 | amdahl) |
450 | 496 | basic_machine=580-amdahl |
473 | 519 | basic_machine=i386-pc |
474 | 520 | os=-aros |
475 | 521 | ;; |
522 | asmjs) | |
523 | basic_machine=asmjs-unknown | |
524 | ;; | |
476 | 525 | aux) |
477 | 526 | basic_machine=m68k-apple |
478 | 527 | os=-aux |
486 | 535 | os=-linux |
487 | 536 | ;; |
488 | 537 | blackfin-*) |
489 | basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` | |
538 | basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
490 | 539 | os=-linux |
491 | 540 | ;; |
492 | 541 | bluegene*) |
494 | 543 | os=-cnk |
495 | 544 | ;; |
496 | 545 | c54x-*) |
497 | basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
546 | basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
498 | 547 | ;; |
499 | 548 | c55x-*) |
500 | basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
549 | basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
501 | 550 | ;; |
502 | 551 | c6x-*) |
503 | basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
552 | basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
504 | 553 | ;; |
505 | 554 | c90) |
506 | 555 | basic_machine=c90-cray |
507 | 556 | os=-unicos |
508 | 557 | ;; |
509 | cegcc) | |
558 | cegcc) | |
510 | 559 | basic_machine=arm-unknown |
511 | 560 | os=-cegcc |
512 | 561 | ;; |
538 | 587 | basic_machine=craynv-cray |
539 | 588 | os=-unicosmp |
540 | 589 | ;; |
541 | cr16) | |
590 | cr16 | cr16-*) | |
542 | 591 | basic_machine=cr16-unknown |
543 | 592 | os=-elf |
544 | 593 | ;; |
589 | 638 | basic_machine=rs6000-bull |
590 | 639 | os=-bosx |
591 | 640 | ;; |
592 | dpx2* | dpx2*-bull) | |
641 | dpx2*) | |
593 | 642 | basic_machine=m68k-bull |
594 | 643 | os=-sysv3 |
644 | ;; | |
645 | e500v[12]) | |
646 | basic_machine=powerpc-unknown | |
647 | os=$os"spe" | |
648 | ;; | |
649 | e500v[12]-*) | |
650 | basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
651 | os=$os"spe" | |
595 | 652 | ;; |
596 | 653 | ebmon29k) |
597 | 654 | basic_machine=a29k-amd |
682 | 739 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) |
683 | 740 | basic_machine=hppa1.0-hp |
684 | 741 | ;; |
685 | hppa-next) | |
686 | os=-nextstep3 | |
687 | ;; | |
688 | 742 | hppaosf) |
689 | 743 | basic_machine=hppa1.1-hp |
690 | 744 | os=-osf |
696 | 750 | i370-ibm* | ibm*) |
697 | 751 | basic_machine=i370-ibm |
698 | 752 | ;; |
699 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? | |
700 | 753 | i*86v32) |
701 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
754 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
702 | 755 | os=-sysv32 |
703 | 756 | ;; |
704 | 757 | i*86v4*) |
705 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
758 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
706 | 759 | os=-sysv4 |
707 | 760 | ;; |
708 | 761 | i*86v) |
709 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
762 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
710 | 763 | os=-sysv |
711 | 764 | ;; |
712 | 765 | i*86sol2) |
713 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
766 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
714 | 767 | os=-solaris2 |
715 | 768 | ;; |
716 | 769 | i386mach) |
717 | 770 | basic_machine=i386-mach |
718 | 771 | os=-mach |
719 | 772 | ;; |
720 | i386-vsta | vsta) | |
773 | vsta) | |
721 | 774 | basic_machine=i386-unknown |
722 | 775 | os=-vsta |
723 | 776 | ;; |
735 | 788 | basic_machine=m68k-isi |
736 | 789 | os=-sysv |
737 | 790 | ;; |
791 | leon-*|leon[3-9]-*) | |
792 | basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` | |
793 | ;; | |
738 | 794 | m68knommu) |
739 | 795 | basic_machine=m68k-unknown |
740 | 796 | os=-linux |
741 | 797 | ;; |
742 | 798 | m68knommu-*) |
743 | basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` | |
799 | basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
744 | 800 | os=-linux |
745 | ;; | |
746 | m88k-omron*) | |
747 | basic_machine=m88k-omron | |
748 | 801 | ;; |
749 | 802 | magnum | m3230) |
750 | 803 | basic_machine=mips-mips |
754 | 807 | basic_machine=ns32k-utek |
755 | 808 | os=-sysv |
756 | 809 | ;; |
757 | microblaze) | |
810 | microblaze*) | |
758 | 811 | basic_machine=microblaze-xilinx |
759 | 812 | ;; |
813 | mingw64) | |
814 | basic_machine=x86_64-pc | |
815 | os=-mingw64 | |
816 | ;; | |
760 | 817 | mingw32) |
761 | basic_machine=i386-pc | |
818 | basic_machine=i686-pc | |
762 | 819 | os=-mingw32 |
763 | 820 | ;; |
764 | 821 | mingw32ce) |
773 | 830 | os=-mint |
774 | 831 | ;; |
775 | 832 | mips3*-*) |
776 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` | |
833 | basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` | |
777 | 834 | ;; |
778 | 835 | mips3*) |
779 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown | |
836 | basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown | |
780 | 837 | ;; |
781 | 838 | monitor) |
782 | 839 | basic_machine=m68k-rom68k |
786 | 843 | basic_machine=powerpc-unknown |
787 | 844 | os=-morphos |
788 | 845 | ;; |
846 | moxiebox) | |
847 | basic_machine=moxie-unknown | |
848 | os=-moxiebox | |
849 | ;; | |
789 | 850 | msdos) |
790 | 851 | basic_machine=i386-pc |
791 | 852 | os=-msdos |
792 | 853 | ;; |
793 | 854 | ms1-*) |
794 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` | |
855 | basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` | |
856 | ;; | |
857 | msys) | |
858 | basic_machine=i686-pc | |
859 | os=-msys | |
795 | 860 | ;; |
796 | 861 | mvs) |
797 | 862 | basic_machine=i370-ibm |
798 | 863 | os=-mvs |
799 | 864 | ;; |
865 | nacl) | |
866 | basic_machine=le32-unknown | |
867 | os=-nacl | |
868 | ;; | |
800 | 869 | ncr3000) |
801 | 870 | basic_machine=i486-ncr |
802 | 871 | os=-sysv4 |
825 | 894 | basic_machine=v70-nec |
826 | 895 | os=-sysv |
827 | 896 | ;; |
828 | next | m*-next ) | |
897 | next | m*-next) | |
829 | 898 | basic_machine=m68k-next |
830 | 899 | case $os in |
831 | 900 | -nextstep* ) |
861 | 930 | np1) |
862 | 931 | basic_machine=np1-gould |
863 | 932 | ;; |
864 | neo-tandem) | |
933 | neo-tandem) | |
865 | 934 | basic_machine=neo-tandem |
866 | 935 | ;; |
867 | nse-tandem) | |
936 | nse-tandem) | |
868 | 937 | basic_machine=nse-tandem |
869 | 938 | ;; |
870 | 939 | nsr-tandem) |
871 | 940 | basic_machine=nsr-tandem |
941 | ;; | |
942 | nsv-tandem) | |
943 | basic_machine=nsv-tandem | |
944 | ;; | |
945 | nsx-tandem) | |
946 | basic_machine=nsx-tandem | |
872 | 947 | ;; |
873 | 948 | op50n-* | op60c-*) |
874 | 949 | basic_machine=hppa1.1-oki |
902 | 977 | os=-linux |
903 | 978 | ;; |
904 | 979 | parisc-*) |
905 | basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` | |
980 | basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
906 | 981 | os=-linux |
907 | 982 | ;; |
908 | 983 | pbd) |
918 | 993 | basic_machine=i386-pc |
919 | 994 | ;; |
920 | 995 | pc98-*) |
921 | basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` | |
996 | basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
922 | 997 | ;; |
923 | 998 | pentium | p5 | k5 | k6 | nexgen | viac3) |
924 | 999 | basic_machine=i586-pc |
933 | 1008 | basic_machine=i786-pc |
934 | 1009 | ;; |
935 | 1010 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
936 | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1011 | basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
937 | 1012 | ;; |
938 | 1013 | pentiumpro-* | p6-* | 6x86-* | athlon-*) |
939 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1014 | basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
940 | 1015 | ;; |
941 | 1016 | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) |
942 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1017 | basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
943 | 1018 | ;; |
944 | 1019 | pentium4-*) |
945 | basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1020 | basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
946 | 1021 | ;; |
947 | 1022 | pn) |
948 | 1023 | basic_machine=pn-gould |
949 | 1024 | ;; |
950 | 1025 | power) basic_machine=power-ibm |
951 | 1026 | ;; |
952 | ppc) basic_machine=powerpc-unknown | |
953 | ;; | |
954 | ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | |
955 | ;; | |
956 | ppcle | powerpclittle | ppc-le | powerpc-little) | |
1027 | ppc | ppcbe) basic_machine=powerpc-unknown | |
1028 | ;; | |
1029 | ppc-* | ppcbe-*) | |
1030 | basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1031 | ;; | |
1032 | ppcle | powerpclittle) | |
957 | 1033 | basic_machine=powerpcle-unknown |
958 | 1034 | ;; |
959 | 1035 | ppcle-* | powerpclittle-*) |
960 | basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1036 | basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
961 | 1037 | ;; |
962 | 1038 | ppc64) basic_machine=powerpc64-unknown |
963 | 1039 | ;; |
964 | ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` | |
965 | ;; | |
966 | ppc64le | powerpc64little | ppc64-le | powerpc64-little) | |
1040 | ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1041 | ;; | |
1042 | ppc64le | powerpc64little) | |
967 | 1043 | basic_machine=powerpc64le-unknown |
968 | 1044 | ;; |
969 | 1045 | ppc64le-* | powerpc64little-*) |
970 | basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1046 | basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
971 | 1047 | ;; |
972 | 1048 | ps2) |
973 | 1049 | basic_machine=i386-ibm |
976 | 1052 | basic_machine=i586-unknown |
977 | 1053 | os=-pw32 |
978 | 1054 | ;; |
979 | rdos) | |
1055 | rdos | rdos64) | |
1056 | basic_machine=x86_64-pc | |
1057 | os=-rdos | |
1058 | ;; | |
1059 | rdos32) | |
980 | 1060 | basic_machine=i386-pc |
981 | 1061 | os=-rdos |
982 | 1062 | ;; |
1017 | 1097 | sequent) |
1018 | 1098 | basic_machine=i386-sequent |
1019 | 1099 | ;; |
1020 | sh) | |
1021 | basic_machine=sh-hitachi | |
1022 | os=-hms | |
1023 | ;; | |
1024 | 1100 | sh5el) |
1025 | 1101 | basic_machine=sh5le-unknown |
1026 | 1102 | ;; |
1027 | sh64) | |
1028 | basic_machine=sh64-unknown | |
1029 | ;; | |
1030 | sparclite-wrs | simso-wrs) | |
1103 | simso-wrs) | |
1031 | 1104 | basic_machine=sparclite-wrs |
1032 | 1105 | os=-vxworks |
1033 | 1106 | ;; |
1045 | 1118 | basic_machine=i860-stratus |
1046 | 1119 | os=-sysv4 |
1047 | 1120 | ;; |
1121 | strongarm-* | thumb-*) | |
1122 | basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1123 | ;; | |
1048 | 1124 | sun2) |
1049 | 1125 | basic_machine=m68000-sun |
1050 | 1126 | ;; |
1101 | 1177 | basic_machine=t90-cray |
1102 | 1178 | os=-unicos |
1103 | 1179 | ;; |
1104 | # This must be matched before tile*. | |
1105 | tilegx*) | |
1106 | basic_machine=tilegx-unknown | |
1107 | os=-linux-gnu | |
1108 | ;; | |
1109 | 1180 | tile*) |
1110 | basic_machine=tile-unknown | |
1181 | basic_machine=$basic_machine-unknown | |
1111 | 1182 | os=-linux-gnu |
1112 | 1183 | ;; |
1113 | 1184 | tx39) |
1170 | 1241 | basic_machine=hppa1.1-winbond |
1171 | 1242 | os=-proelf |
1172 | 1243 | ;; |
1244 | x64) | |
1245 | basic_machine=x86_64-pc | |
1246 | ;; | |
1173 | 1247 | xbox) |
1174 | 1248 | basic_machine=i686-pc |
1175 | 1249 | os=-mingw32 |
1177 | 1251 | xps | xps100) |
1178 | 1252 | basic_machine=xps100-honeywell |
1179 | 1253 | ;; |
1254 | xscale-* | xscalee[bl]-*) | |
1255 | basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` | |
1256 | ;; | |
1180 | 1257 | ymp) |
1181 | 1258 | basic_machine=ymp-cray |
1182 | 1259 | os=-unicos |
1183 | ;; | |
1184 | z8k-*-coff) | |
1185 | basic_machine=z8k-unknown | |
1186 | os=-sim | |
1187 | ;; | |
1188 | z80-*-coff) | |
1189 | basic_machine=z80-unknown | |
1190 | os=-sim | |
1191 | 1260 | ;; |
1192 | 1261 | none) |
1193 | 1262 | basic_machine=none-none |
1217 | 1286 | vax) |
1218 | 1287 | basic_machine=vax-dec |
1219 | 1288 | ;; |
1220 | pdp10) | |
1221 | # there are many clones, so DEC is not a safe bet | |
1222 | basic_machine=pdp10-unknown | |
1223 | ;; | |
1224 | 1289 | pdp11) |
1225 | 1290 | basic_machine=pdp11-dec |
1226 | 1291 | ;; |
1230 | 1295 | sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) |
1231 | 1296 | basic_machine=sh-unknown |
1232 | 1297 | ;; |
1233 | sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) | |
1234 | basic_machine=sparc-sun | |
1235 | ;; | |
1236 | 1298 | cydra) |
1237 | 1299 | basic_machine=cydra-cydrome |
1238 | 1300 | ;; |
1252 | 1314 | # Make sure to match an already-canonicalized machine name. |
1253 | 1315 | ;; |
1254 | 1316 | *) |
1255 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
1317 | echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 | |
1256 | 1318 | exit 1 |
1257 | 1319 | ;; |
1258 | 1320 | esac |
1260 | 1322 | # Here we canonicalize certain aliases for manufacturers. |
1261 | 1323 | case $basic_machine in |
1262 | 1324 | *-digital*) |
1263 | basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` | |
1325 | basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'` | |
1264 | 1326 | ;; |
1265 | 1327 | *-commodore*) |
1266 | basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` | |
1328 | basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'` | |
1267 | 1329 | ;; |
1268 | 1330 | *) |
1269 | 1331 | ;; |
1274 | 1336 | if [ x"$os" != x"" ] |
1275 | 1337 | then |
1276 | 1338 | case $os in |
1277 | # First match some system type aliases | |
1278 | # that might get confused with valid system types. | |
1339 | # First match some system type aliases that might get confused | |
1340 | # with valid system types. | |
1279 | 1341 | # -solaris* is a basic system type, with this one exception. |
1280 | -auroraux) | |
1281 | os=-auroraux | |
1342 | -auroraux) | |
1343 | os=-auroraux | |
1282 | 1344 | ;; |
1283 | 1345 | -solaris1 | -solaris1.*) |
1284 | 1346 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
1286 | 1348 | -solaris) |
1287 | 1349 | os=-solaris2 |
1288 | 1350 | ;; |
1289 | -svr4*) | |
1290 | os=-sysv4 | |
1291 | ;; | |
1292 | 1351 | -unixware*) |
1293 | 1352 | os=-sysv4.2uw |
1294 | 1353 | ;; |
1295 | 1354 | -gnu/linux*) |
1296 | 1355 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` |
1297 | 1356 | ;; |
1298 | # First accept the basic system types. | |
1357 | # es1800 is here to avoid being matched by es* (a different OS) | |
1358 | -es1800*) | |
1359 | os=-ose | |
1360 | ;; | |
1361 | # Now accept the basic system types. | |
1299 | 1362 | # The portable systems comes first. |
1300 | # Each alternative MUST END IN A *, to match a version number. | |
1363 | # Each alternative MUST end in a * to match a version number. | |
1301 | 1364 | # -sysv* is not here because it comes later, after sysvr4. |
1302 | 1365 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1303 | 1366 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
1304 | 1367 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
1305 | | -sym* | -kopensolaris* \ | |
1368 | | -sym* | -kopensolaris* | -plan9* \ | |
1306 | 1369 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1307 | | -aos* | -aros* \ | |
1370 | | -aos* | -aros* | -cloudabi* | -sortix* \ | |
1308 | 1371 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1309 | 1372 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1310 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | |
1311 | | -openbsd* | -solidbsd* \ | |
1373 | | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \ | |
1374 | | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ | |
1312 | 1375 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1313 | 1376 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1314 | 1377 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1315 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | |
1316 | | -chorusos* | -chorusrdb* | -cegcc* \ | |
1317 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | |
1318 | | -mingw32* | -linux-gnu* | -linux-android* \ | |
1319 | | -linux-newlib* | -linux-uclibc* \ | |
1320 | | -uxpv* | -beos* | -mpeix* | -udk* \ | |
1321 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | |
1378 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* | -hcos* \ | |
1379 | | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ | |
1380 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | |
1381 | | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | |
1382 | | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | |
1383 | | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ | |
1384 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \ | |
1322 | 1385 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1323 | 1386 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1324 | 1387 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1325 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | |
1388 | | -morphos* | -superux* | -rtmk* | -windiss* \ | |
1326 | 1389 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1327 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) | |
1390 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ | |
1391 | | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ | |
1392 | | -midnightbsd*) | |
1328 | 1393 | # Remember, each alternative MUST END IN *, to match a version number. |
1329 | 1394 | ;; |
1330 | 1395 | -qnx*) |
1341 | 1406 | -nto*) |
1342 | 1407 | os=`echo $os | sed -e 's|nto|nto-qnx|'` |
1343 | 1408 | ;; |
1344 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | |
1345 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | |
1409 | -sim | -xray | -os68k* | -v88r* \ | |
1410 | | -windows* | -osx | -abug | -netware* | -os9* \ | |
1346 | 1411 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
1347 | 1412 | ;; |
1348 | 1413 | -mac*) |
1349 | os=`echo $os | sed -e 's|mac|macos|'` | |
1414 | os=`echo "$os" | sed -e 's|mac|macos|'` | |
1350 | 1415 | ;; |
1351 | 1416 | -linux-dietlibc) |
1352 | 1417 | os=-linux-dietlibc |
1355 | 1420 | os=`echo $os | sed -e 's|linux|linux-gnu|'` |
1356 | 1421 | ;; |
1357 | 1422 | -sunos5*) |
1358 | os=`echo $os | sed -e 's|sunos5|solaris2|'` | |
1423 | os=`echo "$os" | sed -e 's|sunos5|solaris2|'` | |
1359 | 1424 | ;; |
1360 | 1425 | -sunos6*) |
1361 | os=`echo $os | sed -e 's|sunos6|solaris3|'` | |
1426 | os=`echo "$os" | sed -e 's|sunos6|solaris3|'` | |
1362 | 1427 | ;; |
1363 | 1428 | -opened*) |
1364 | 1429 | os=-openedition |
1365 | 1430 | ;; |
1366 | -os400*) | |
1431 | -os400*) | |
1367 | 1432 | os=-os400 |
1368 | 1433 | ;; |
1369 | 1434 | -wince*) |
1370 | 1435 | os=-wince |
1371 | 1436 | ;; |
1372 | -osfrose*) | |
1373 | os=-osfrose | |
1374 | ;; | |
1375 | -osf*) | |
1376 | os=-osf | |
1377 | ;; | |
1378 | 1437 | -utek*) |
1379 | 1438 | os=-bsd |
1380 | 1439 | ;; |
1399 | 1458 | -nova*) |
1400 | 1459 | os=-rtmk-nova |
1401 | 1460 | ;; |
1402 | -ns2 ) | |
1461 | -ns2) | |
1403 | 1462 | os=-nextstep2 |
1404 | 1463 | ;; |
1405 | 1464 | -nsk*) |
1412 | 1471 | -sinix*) |
1413 | 1472 | os=-sysv4 |
1414 | 1473 | ;; |
1415 | -tpf*) | |
1474 | -tpf*) | |
1416 | 1475 | os=-tpf |
1417 | 1476 | ;; |
1418 | 1477 | -triton*) |
1421 | 1480 | -oss*) |
1422 | 1481 | os=-sysv3 |
1423 | 1482 | ;; |
1424 | -svr4) | |
1483 | -svr4*) | |
1425 | 1484 | os=-sysv4 |
1426 | 1485 | ;; |
1427 | 1486 | -svr3) |
1436 | 1495 | -ose*) |
1437 | 1496 | os=-ose |
1438 | 1497 | ;; |
1439 | -es1800*) | |
1440 | os=-ose | |
1441 | ;; | |
1442 | -xenix) | |
1443 | os=-xenix | |
1444 | ;; | |
1445 | 1498 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1446 | 1499 | os=-mint |
1447 | 1500 | ;; |
1448 | -aros*) | |
1449 | os=-aros | |
1450 | ;; | |
1451 | -kaos*) | |
1452 | os=-kaos | |
1453 | ;; | |
1454 | 1501 | -zvmoe) |
1455 | 1502 | os=-zvmoe |
1456 | 1503 | ;; |
1457 | 1504 | -dicos*) |
1458 | 1505 | os=-dicos |
1459 | 1506 | ;; |
1460 | -nacl*) | |
1461 | ;; | |
1507 | -pikeos*) | |
1508 | # Until real need of OS specific support for | |
1509 | # particular features comes up, bare metal | |
1510 | # configurations are quite functional. | |
1511 | case $basic_machine in | |
1512 | arm*) | |
1513 | os=-eabi | |
1514 | ;; | |
1515 | *) | |
1516 | os=-elf | |
1517 | ;; | |
1518 | esac | |
1519 | ;; | |
1520 | -nacl*) | |
1521 | ;; | |
1522 | -ios) | |
1523 | ;; | |
1462 | 1524 | -none) |
1463 | 1525 | ;; |
1464 | 1526 | *) |
1465 | 1527 | # Get rid of the `-' at the beginning of $os. |
1466 | 1528 | os=`echo $os | sed 's/[^-]*-//'` |
1467 | echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 | |
1529 | echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 | |
1468 | 1530 | exit 1 |
1469 | 1531 | ;; |
1470 | 1532 | esac |
1481 | 1543 | # system, and we'll never get to this point. |
1482 | 1544 | |
1483 | 1545 | case $basic_machine in |
1484 | score-*) | |
1546 | score-*) | |
1485 | 1547 | os=-elf |
1486 | 1548 | ;; |
1487 | spu-*) | |
1549 | spu-*) | |
1488 | 1550 | os=-elf |
1489 | 1551 | ;; |
1490 | 1552 | *-acorn) |
1496 | 1558 | arm*-semi) |
1497 | 1559 | os=-aout |
1498 | 1560 | ;; |
1499 | c4x-* | tic4x-*) | |
1500 | os=-coff | |
1561 | c4x-* | tic4x-*) | |
1562 | os=-coff | |
1563 | ;; | |
1564 | c8051-*) | |
1565 | os=-elf | |
1566 | ;; | |
1567 | hexagon-*) | |
1568 | os=-elf | |
1501 | 1569 | ;; |
1502 | 1570 | tic54x-*) |
1503 | 1571 | os=-coff |
1526 | 1594 | ;; |
1527 | 1595 | m68000-sun) |
1528 | 1596 | os=-sunos3 |
1529 | # This also exists in the configure program, but was not the | |
1530 | # default. | |
1531 | # os=-sunos4 | |
1532 | 1597 | ;; |
1533 | 1598 | m68*-cisco) |
1534 | 1599 | os=-aout |
1535 | 1600 | ;; |
1536 | mep-*) | |
1601 | mep-*) | |
1537 | 1602 | os=-elf |
1538 | 1603 | ;; |
1539 | 1604 | mips*-cisco) |
1551 | 1616 | sparc-* | *-sun) |
1552 | 1617 | os=-sunos4.1.1 |
1553 | 1618 | ;; |
1619 | pru-*) | |
1620 | os=-elf | |
1621 | ;; | |
1554 | 1622 | *-be) |
1555 | 1623 | os=-beos |
1556 | 1624 | ;; |
1557 | *-haiku) | |
1558 | os=-haiku | |
1559 | ;; | |
1560 | 1625 | *-ibm) |
1561 | 1626 | os=-aix |
1562 | 1627 | ;; |
1563 | *-knuth) | |
1628 | *-knuth) | |
1564 | 1629 | os=-mmixware |
1565 | 1630 | ;; |
1566 | 1631 | *-wec) |
1596 | 1661 | m88k-omron*) |
1597 | 1662 | os=-luna |
1598 | 1663 | ;; |
1599 | *-next ) | |
1664 | *-next) | |
1600 | 1665 | os=-nextstep |
1601 | 1666 | ;; |
1602 | 1667 | *-sequent) |
1610 | 1675 | ;; |
1611 | 1676 | i370-*) |
1612 | 1677 | os=-mvs |
1613 | ;; | |
1614 | *-next) | |
1615 | os=-nextstep3 | |
1616 | 1678 | ;; |
1617 | 1679 | *-gould) |
1618 | 1680 | os=-sysv |
1723 | 1785 | vendor=stratus |
1724 | 1786 | ;; |
1725 | 1787 | esac |
1726 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | |
1788 | basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"` | |
1727 | 1789 | ;; |
1728 | 1790 | esac |
1729 | 1791 | |
1730 | echo $basic_machine$os | |
1792 | echo "$basic_machine$os" | |
1731 | 1793 | exit |
1732 | 1794 | |
1733 | 1795 | # Local variables: |
1734 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
1796 | # eval: (add-hook 'write-file-functions 'time-stamp) | |
1735 | 1797 | # time-stamp-start: "timestamp='" |
1736 | 1798 | # time-stamp-format: "%:y-%02m-%02d" |
1737 | 1799 | # time-stamp-end: "'" |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.68 for xlogo 1.0.4. | |
2 | # Generated by GNU Autoconf 2.69 for xlogo 1.0.5. | |
3 | 3 | # |
4 | # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. | |
4 | # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/issues>. | |
5 | 5 | # |
6 | 6 | # |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
9 | # Foundation, Inc. | |
7 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
10 | 8 | # |
11 | 9 | # |
12 | 10 | # This configure script is free software; the Free Software Foundation |
135 | 133 | # CDPATH. |
136 | 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
137 | 135 | |
136 | # Use a proper internal environment variable to ensure we don't fall | |
137 | # into an infinite loop, continuously re-executing ourselves. | |
138 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
139 | _as_can_reexec=no; export _as_can_reexec; | |
140 | # We cannot yet assume a decent shell, so we have to provide a | |
141 | # neutralization value for shells without unset; and this also | |
142 | # works around shells that cannot unset nonexistent variables. | |
143 | # Preserve -v and -x to the replacement shell. | |
144 | BASH_ENV=/dev/null | |
145 | ENV=/dev/null | |
146 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
147 | case $- in # (((( | |
148 | *v*x* | *x*v* ) as_opts=-vx ;; | |
149 | *v* ) as_opts=-v ;; | |
150 | *x* ) as_opts=-x ;; | |
151 | * ) as_opts= ;; | |
152 | esac | |
153 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
154 | # Admittedly, this is quite paranoid, since all the known shells bail | |
155 | # out after a failed `exec'. | |
156 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
157 | as_fn_exit 255 | |
158 | fi | |
159 | # We don't want this to propagate to other subprocesses. | |
160 | { _as_can_reexec=; unset _as_can_reexec;} | |
138 | 161 | if test "x$CONFIG_SHELL" = x; then |
139 | 162 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
140 | 163 | emulate sh |
168 | 191 | else |
169 | 192 | exitcode=1; echo positional parameters were not saved. |
170 | 193 | fi |
171 | test x\$exitcode = x0 || exit 1" | |
194 | test x\$exitcode = x0 || exit 1 | |
195 | test -x / || exit 1" | |
172 | 196 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
173 | 197 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
174 | 198 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
213 | 237 | |
214 | 238 | |
215 | 239 | if test "x$CONFIG_SHELL" != x; then : |
216 | # We cannot yet assume a decent shell, so we have to provide a | |
217 | # neutralization value for shells without unset; and this also | |
218 | # works around shells that cannot unset nonexistent variables. | |
219 | # Preserve -v and -x to the replacement shell. | |
220 | BASH_ENV=/dev/null | |
221 | ENV=/dev/null | |
222 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
223 | export CONFIG_SHELL | |
224 | case $- in # (((( | |
225 | *v*x* | *x*v* ) as_opts=-vx ;; | |
226 | *v* ) as_opts=-v ;; | |
227 | *x* ) as_opts=-x ;; | |
228 | * ) as_opts= ;; | |
229 | esac | |
230 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
240 | export CONFIG_SHELL | |
241 | # We cannot yet assume a decent shell, so we have to provide a | |
242 | # neutralization value for shells without unset; and this also | |
243 | # works around shells that cannot unset nonexistent variables. | |
244 | # Preserve -v and -x to the replacement shell. | |
245 | BASH_ENV=/dev/null | |
246 | ENV=/dev/null | |
247 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
248 | case $- in # (((( | |
249 | *v*x* | *x*v* ) as_opts=-vx ;; | |
250 | *v* ) as_opts=-v ;; | |
251 | *x* ) as_opts=-x ;; | |
252 | * ) as_opts= ;; | |
253 | esac | |
254 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
255 | # Admittedly, this is quite paranoid, since all the known shells bail | |
256 | # out after a failed `exec'. | |
257 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
258 | exit 255 | |
231 | 259 | fi |
232 | 260 | |
233 | 261 | if test x$as_have_required = xno; then : |
238 | 266 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
239 | 267 | else |
240 | 268 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
241 | $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg | |
269 | $0: https://gitlab.freedesktop.org/xorg/app/xlogo/issues | |
242 | 270 | $0: about your system, including any error possibly output |
243 | 271 | $0: before this message. Then install a modern shell, or |
244 | 272 | $0: manually run the script under such a shell if you do |
331 | 359 | |
332 | 360 | |
333 | 361 | } # as_fn_mkdir_p |
362 | ||
363 | # as_fn_executable_p FILE | |
364 | # ----------------------- | |
365 | # Test if FILE is an executable regular file. | |
366 | as_fn_executable_p () | |
367 | { | |
368 | test -f "$1" && test -x "$1" | |
369 | } # as_fn_executable_p | |
334 | 370 | # as_fn_append VAR VALUE |
335 | 371 | # ---------------------- |
336 | 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
452 | 488 | chmod +x "$as_me.lineno" || |
453 | 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
454 | 490 | |
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
492 | # already done that, so ensure we don't try to do so again and fall | |
493 | # in an infinite loop. This has already happened in practice. | |
494 | _as_can_reexec=no; export _as_can_reexec | |
455 | 495 | # Don't try to exec as it changes $[0], causing all sort of problems |
456 | 496 | # (the dirname of $[0] is not the place where we might find the |
457 | 497 | # original and so on. Autoconf is especially sensitive to this). |
486 | 526 | # ... but there are two gotchas: |
487 | 527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
488 | 528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
489 | # In both cases, we have to default to `cp -p'. | |
529 | # In both cases, we have to default to `cp -pR'. | |
490 | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
491 | as_ln_s='cp -p' | |
531 | as_ln_s='cp -pR' | |
492 | 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
493 | 533 | as_ln_s=ln |
494 | 534 | else |
495 | as_ln_s='cp -p' | |
535 | as_ln_s='cp -pR' | |
496 | 536 | fi |
497 | 537 | else |
498 | as_ln_s='cp -p' | |
538 | as_ln_s='cp -pR' | |
499 | 539 | fi |
500 | 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
501 | 541 | rmdir conf$$.dir 2>/dev/null |
507 | 547 | as_mkdir_p=false |
508 | 548 | fi |
509 | 549 | |
510 | if test -x / >/dev/null 2>&1; then | |
511 | as_test_x='test -x' | |
512 | else | |
513 | if ls -dL / >/dev/null 2>&1; then | |
514 | as_ls_L_option=L | |
515 | else | |
516 | as_ls_L_option= | |
517 | fi | |
518 | as_test_x=' | |
519 | eval sh -c '\'' | |
520 | if test -d "$1"; then | |
521 | test -d "$1/."; | |
522 | else | |
523 | case $1 in #( | |
524 | -*)set "./$1";; | |
525 | esac; | |
526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
527 | ???[sx]*):;;*)false;;esac;fi | |
528 | '\'' sh | |
529 | ' | |
530 | fi | |
531 | as_executable_p=$as_test_x | |
550 | as_test_x='test -x' | |
551 | as_executable_p=as_fn_executable_p | |
532 | 552 | |
533 | 553 | # Sed expression to map a string onto a valid CPP name. |
534 | 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
560 | 580 | # Identity of this package. |
561 | 581 | PACKAGE_NAME='xlogo' |
562 | 582 | PACKAGE_TARNAME='xlogo' |
563 | PACKAGE_VERSION='1.0.4' | |
564 | PACKAGE_STRING='xlogo 1.0.4' | |
565 | PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' | |
583 | PACKAGE_VERSION='1.0.5' | |
584 | PACKAGE_STRING='xlogo 1.0.5' | |
585 | PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xlogo/issues' | |
566 | 586 | PACKAGE_URL='' |
567 | 587 | |
588 | ac_unique_file="Makefile.am" | |
568 | 589 | # Factoring default headers for most tests. |
569 | 590 | ac_includes_default="\ |
570 | 591 | #include <stdio.h> |
612 | 633 | XLOGO_CFLAGS |
613 | 634 | USE_RENDER_FALSE |
614 | 635 | USE_RENDER_TRUE |
615 | AM_BACKSLASH | |
616 | AM_DEFAULT_VERBOSITY | |
617 | 636 | MAN_SUBSTS |
618 | 637 | XORG_MAN_PAGE |
619 | 638 | ADMIN_MAN_DIR |
638 | 657 | build_cpu |
639 | 658 | build |
640 | 659 | INSTALL_CMD |
660 | PKG_CONFIG_LIBDIR | |
661 | PKG_CONFIG_PATH | |
641 | 662 | PKG_CONFIG |
642 | 663 | CHANGELOG_CMD |
643 | 664 | STRICT_CFLAGS |
649 | 670 | am__fastdepCC_FALSE |
650 | 671 | am__fastdepCC_TRUE |
651 | 672 | CCDEPMODE |
673 | am__nodep | |
652 | 674 | AMDEPBACKSLASH |
653 | 675 | AMDEP_FALSE |
654 | 676 | AMDEP_TRUE |
662 | 684 | LDFLAGS |
663 | 685 | CFLAGS |
664 | 686 | CC |
665 | MAINT | |
666 | MAINTAINER_MODE_FALSE | |
667 | MAINTAINER_MODE_TRUE | |
687 | AM_BACKSLASH | |
688 | AM_DEFAULT_VERBOSITY | |
689 | AM_DEFAULT_V | |
690 | AM_V | |
668 | 691 | am__untar |
669 | 692 | am__tar |
670 | 693 | AMTAR |
729 | 752 | ac_subst_files='' |
730 | 753 | ac_user_opts=' |
731 | 754 | enable_option_checking |
732 | enable_maintainer_mode | |
755 | enable_silent_rules | |
733 | 756 | enable_dependency_tracking |
734 | 757 | enable_selective_werror |
735 | 758 | enable_strict_compilation |
736 | enable_silent_rules | |
737 | 759 | with_render |
738 | 760 | with_appdefaultdir |
739 | 761 | ' |
747 | 769 | CPPFLAGS |
748 | 770 | CPP |
749 | 771 | PKG_CONFIG |
772 | PKG_CONFIG_PATH | |
773 | PKG_CONFIG_LIBDIR | |
750 | 774 | XLOGO_CFLAGS |
751 | 775 | XLOGO_LIBS |
752 | 776 | APPDEFS_CFLAGS |
1206 | 1230 | if test "x$host_alias" != x; then |
1207 | 1231 | if test "x$build_alias" = x; then |
1208 | 1232 | cross_compiling=maybe |
1209 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | |
1210 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
1211 | 1233 | elif test "x$build_alias" != "x$host_alias"; then |
1212 | 1234 | cross_compiling=yes |
1213 | 1235 | fi |
1293 | 1315 | # Omit some internal or obsolete options to make the list less imposing. |
1294 | 1316 | # This message is too long to be a string in the A/UX 3.1 sh. |
1295 | 1317 | cat <<_ACEOF |
1296 | \`configure' configures xlogo 1.0.4 to adapt to many kinds of systems. | |
1318 | \`configure' configures xlogo 1.0.5 to adapt to many kinds of systems. | |
1297 | 1319 | |
1298 | 1320 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1299 | 1321 | |
1363 | 1385 | |
1364 | 1386 | if test -n "$ac_init_help"; then |
1365 | 1387 | case $ac_init_help in |
1366 | short | recursive ) echo "Configuration of xlogo 1.0.4:";; | |
1388 | short | recursive ) echo "Configuration of xlogo 1.0.5:";; | |
1367 | 1389 | esac |
1368 | 1390 | cat <<\_ACEOF |
1369 | 1391 | |
1371 | 1393 | --disable-option-checking ignore unrecognized --enable/--with options |
1372 | 1394 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1373 | 1395 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1374 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1375 | (and sometimes confusing) to the casual installer | |
1376 | --disable-dependency-tracking speeds up one-time build | |
1377 | --enable-dependency-tracking do not reject slow dependency extractors | |
1396 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1397 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1398 | --enable-dependency-tracking | |
1399 | do not reject slow dependency extractors | |
1400 | --disable-dependency-tracking | |
1401 | speeds up one-time build | |
1378 | 1402 | --disable-selective-werror |
1379 | 1403 | Turn off selective compiler errors. (default: |
1380 | 1404 | enabled) |
1381 | 1405 | --enable-strict-compilation |
1382 | 1406 | Enable all warnings from compiler and make them |
1383 | 1407 | errors (default: disabled) |
1384 | --enable-silent-rules less verbose build output (undo: `make V=1') | |
1385 | --disable-silent-rules verbose build output (undo: `make V=0') | |
1386 | 1408 | |
1387 | 1409 | Optional Packages: |
1388 | 1410 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1402 | 1424 | you have headers in a nonstandard directory <include dir> |
1403 | 1425 | CPP C preprocessor |
1404 | 1426 | PKG_CONFIG path to pkg-config utility |
1427 | PKG_CONFIG_PATH | |
1428 | directories to add to pkg-config's search path | |
1429 | PKG_CONFIG_LIBDIR | |
1430 | path overriding pkg-config's built-in search path | |
1405 | 1431 | XLOGO_CFLAGS |
1406 | 1432 | C compiler flags for XLOGO, overriding pkg-config |
1407 | 1433 | XLOGO_LIBS linker flags for XLOGO, overriding pkg-config |
1413 | 1439 | Use these variables to override the choices made by `configure' or to help |
1414 | 1440 | it to find libraries and programs with nonstandard names/locations. |
1415 | 1441 | |
1416 | Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. | |
1442 | Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/issues>. | |
1417 | 1443 | _ACEOF |
1418 | 1444 | ac_status=$? |
1419 | 1445 | fi |
1476 | 1502 | test -n "$ac_init_help" && exit $ac_status |
1477 | 1503 | if $ac_init_version; then |
1478 | 1504 | cat <<\_ACEOF |
1479 | xlogo configure 1.0.4 | |
1480 | generated by GNU Autoconf 2.68 | |
1481 | ||
1482 | Copyright (C) 2010 Free Software Foundation, Inc. | |
1505 | xlogo configure 1.0.5 | |
1506 | generated by GNU Autoconf 2.69 | |
1507 | ||
1508 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1483 | 1509 | This configure script is free software; the Free Software Foundation |
1484 | 1510 | gives unlimited permission to copy, distribute and modify it. |
1485 | 1511 | _ACEOF |
1711 | 1737 | test ! -s conftest.err |
1712 | 1738 | } && test -s conftest$ac_exeext && { |
1713 | 1739 | test "$cross_compiling" = yes || |
1714 | $as_test_x conftest$ac_exeext | |
1740 | test -x conftest$ac_exeext | |
1715 | 1741 | }; then : |
1716 | 1742 | ac_retval=0 |
1717 | 1743 | else |
1733 | 1759 | This file contains any messages produced by compilers while |
1734 | 1760 | running configure, to aid debugging if configure makes a mistake. |
1735 | 1761 | |
1736 | It was created by xlogo $as_me 1.0.4, which was | |
1737 | generated by GNU Autoconf 2.68. Invocation command line was | |
1762 | It was created by xlogo $as_me 1.0.5, which was | |
1763 | generated by GNU Autoconf 2.69. Invocation command line was | |
1738 | 1764 | |
1739 | 1765 | $ $0 $@ |
1740 | 1766 | |
2081 | 2107 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2082 | 2108 | |
2083 | 2109 | |
2084 | am__api_version='1.11' | |
2110 | ||
2111 | ac_config_headers="$ac_config_headers config.h" | |
2112 | ||
2113 | ||
2114 | # Initialize Automake | |
2115 | am__api_version='1.15' | |
2085 | 2116 | |
2086 | 2117 | ac_aux_dir= |
2087 | 2118 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2149 | 2180 | # by default. |
2150 | 2181 | for ac_prog in ginstall scoinst install; do |
2151 | 2182 | for ac_exec_ext in '' $ac_executable_extensions; do |
2152 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2183 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2153 | 2184 | if test $ac_prog = install && |
2154 | 2185 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2155 | 2186 | # AIX install. It has an incompatible calling convention. |
2207 | 2238 | |
2208 | 2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2209 | 2240 | $as_echo_n "checking whether build environment is sane... " >&6; } |
2210 | # Just in case | |
2211 | sleep 1 | |
2212 | echo timestamp > conftest.file | |
2213 | 2241 | # Reject unsafe characters in $srcdir or the absolute working directory |
2214 | 2242 | # name. Accept space and tab only in the latter. |
2215 | 2243 | am_lf=' |
2220 | 2248 | esac |
2221 | 2249 | case $srcdir in |
2222 | 2250 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
2223 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2251 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2224 | 2252 | esac |
2225 | 2253 | |
2226 | # Do `set' in a subshell so we don't clobber the current shell's | |
2254 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2227 | 2255 | # arguments. Must try -L first in case configure is actually a |
2228 | 2256 | # symlink; some systems play weird games with the mod time of symlinks |
2229 | 2257 | # (eg FreeBSD returns the mod time of the symlink's containing |
2230 | 2258 | # directory). |
2231 | 2259 | if ( |
2232 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2233 | if test "$*" = "X"; then | |
2234 | # -L didn't work. | |
2235 | set X `ls -t "$srcdir/configure" conftest.file` | |
2236 | fi | |
2237 | rm -f conftest.file | |
2238 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2239 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2240 | ||
2241 | # If neither matched, then we have a broken ls. This can happen | |
2242 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2243 | # broken ls alias from the environment. This has actually | |
2244 | # happened. Such a system could not be considered "sane". | |
2245 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2246 | alias in your environment" "$LINENO" 5 | |
2247 | fi | |
2248 | ||
2260 | am_has_slept=no | |
2261 | for am_try in 1 2; do | |
2262 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2263 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2264 | if test "$*" = "X"; then | |
2265 | # -L didn't work. | |
2266 | set X `ls -t "$srcdir/configure" conftest.file` | |
2267 | fi | |
2268 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2269 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2270 | ||
2271 | # If neither matched, then we have a broken ls. This can happen | |
2272 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2273 | # broken ls alias from the environment. This has actually | |
2274 | # happened. Such a system could not be considered "sane". | |
2275 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2276 | alias in your environment" "$LINENO" 5 | |
2277 | fi | |
2278 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2279 | break | |
2280 | fi | |
2281 | # Just in case. | |
2282 | sleep 1 | |
2283 | am_has_slept=yes | |
2284 | done | |
2249 | 2285 | test "$2" = conftest.file |
2250 | 2286 | ) |
2251 | 2287 | then |
2257 | 2293 | fi |
2258 | 2294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2259 | 2295 | $as_echo "yes" >&6; } |
2296 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2297 | # generated files are strictly newer. | |
2298 | am_sleep_pid= | |
2299 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2300 | ( sleep 1 ) & | |
2301 | am_sleep_pid=$! | |
2302 | fi | |
2303 | ||
2304 | rm -f conftest.file | |
2305 | ||
2260 | 2306 | test "$program_prefix" != NONE && |
2261 | 2307 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2262 | 2308 | # Use a double $ so make ignores it. |
2267 | 2313 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2268 | 2314 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
2269 | 2315 | |
2270 | # expand $ac_aux_dir to an absolute path | |
2271 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2316 | # Expand $ac_aux_dir to an absolute path. | |
2317 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2272 | 2318 | |
2273 | 2319 | if test x"${MISSING+set}" != xset; then |
2274 | 2320 | case $am_aux_dir in |
2279 | 2325 | esac |
2280 | 2326 | fi |
2281 | 2327 | # Use eval to expand $SHELL |
2282 | if eval "$MISSING --run true"; then | |
2283 | am_missing_run="$MISSING --run " | |
2328 | if eval "$MISSING --is-lightweight"; then | |
2329 | am_missing_run="$MISSING " | |
2284 | 2330 | else |
2285 | 2331 | am_missing_run= |
2286 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
2287 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2288 | fi | |
2289 | ||
2290 | if test x"${install_sh}" != xset; then | |
2332 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2333 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2334 | fi | |
2335 | ||
2336 | if test x"${install_sh+set}" != xset; then | |
2291 | 2337 | case $am_aux_dir in |
2292 | 2338 | *\ * | *\ *) |
2293 | 2339 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
2296 | 2342 | esac |
2297 | 2343 | fi |
2298 | 2344 | |
2299 | # Installed binaries are usually stripped using `strip' when the user | |
2300 | # run `make install-strip'. However `strip' might not be the right | |
2345 | # Installed binaries are usually stripped using 'strip' when the user | |
2346 | # run "make install-strip". However 'strip' might not be the right | |
2301 | 2347 | # tool to use in cross-compilation environments, therefore Automake |
2302 | # will honor the `STRIP' environment variable to overrule this program. | |
2348 | # will honor the 'STRIP' environment variable to overrule this program. | |
2303 | 2349 | if test "$cross_compiling" != no; then |
2304 | 2350 | if test -n "$ac_tool_prefix"; then |
2305 | 2351 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2318 | 2364 | IFS=$as_save_IFS |
2319 | 2365 | test -z "$as_dir" && as_dir=. |
2320 | 2366 | for ac_exec_ext in '' $ac_executable_extensions; do |
2321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2367 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2322 | 2368 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2323 | 2369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2324 | 2370 | break 2 |
2358 | 2404 | IFS=$as_save_IFS |
2359 | 2405 | test -z "$as_dir" && as_dir=. |
2360 | 2406 | for ac_exec_ext in '' $ac_executable_extensions; do |
2361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2407 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2362 | 2408 | ac_cv_prog_ac_ct_STRIP="strip" |
2363 | 2409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2364 | 2410 | break 2 |
2409 | 2455 | test -z "$as_dir" && as_dir=. |
2410 | 2456 | for ac_prog in mkdir gmkdir; do |
2411 | 2457 | for ac_exec_ext in '' $ac_executable_extensions; do |
2412 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2458 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2413 | 2459 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2414 | 2460 | 'mkdir (GNU coreutils) '* | \ |
2415 | 2461 | 'mkdir (coreutils) '* | \ |
2438 | 2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
2439 | 2485 | $as_echo "$MKDIR_P" >&6; } |
2440 | 2486 | |
2441 | mkdir_p="$MKDIR_P" | |
2442 | case $mkdir_p in | |
2443 | [\\/$]* | ?:[\\/]*) ;; | |
2444 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2445 | esac | |
2446 | ||
2447 | 2487 | for ac_prog in gawk mawk nawk awk |
2448 | 2488 | do |
2449 | 2489 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2462 | 2502 | IFS=$as_save_IFS |
2463 | 2503 | test -z "$as_dir" && as_dir=. |
2464 | 2504 | for ac_exec_ext in '' $ac_executable_extensions; do |
2465 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2505 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2466 | 2506 | ac_cv_prog_AWK="$ac_prog" |
2467 | 2507 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2468 | 2508 | break 2 |
2526 | 2566 | fi |
2527 | 2567 | rmdir .tst 2>/dev/null |
2528 | 2568 | |
2569 | # Check whether --enable-silent-rules was given. | |
2570 | if test "${enable_silent_rules+set}" = set; then : | |
2571 | enableval=$enable_silent_rules; | |
2572 | fi | |
2573 | ||
2574 | case $enable_silent_rules in # ((( | |
2575 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2576 | no) AM_DEFAULT_VERBOSITY=1;; | |
2577 | *) AM_DEFAULT_VERBOSITY=1;; | |
2578 | esac | |
2579 | am_make=${MAKE-make} | |
2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2581 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2582 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2583 | $as_echo_n "(cached) " >&6 | |
2584 | else | |
2585 | if $as_echo 'TRUE=$(BAR$(V)) | |
2586 | BAR0=false | |
2587 | BAR1=true | |
2588 | V=1 | |
2589 | am__doit: | |
2590 | @$(TRUE) | |
2591 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2592 | am_cv_make_support_nested_variables=yes | |
2593 | else | |
2594 | am_cv_make_support_nested_variables=no | |
2595 | fi | |
2596 | fi | |
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2598 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2599 | if test $am_cv_make_support_nested_variables = yes; then | |
2600 | AM_V='$(V)' | |
2601 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2602 | else | |
2603 | AM_V=$AM_DEFAULT_VERBOSITY | |
2604 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2605 | fi | |
2606 | AM_BACKSLASH='\' | |
2607 | ||
2529 | 2608 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2530 | 2609 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2531 | 2610 | # is not polluted with repeated "-I." |
2548 | 2627 | |
2549 | 2628 | # Define the identity of the package. |
2550 | 2629 | PACKAGE='xlogo' |
2551 | VERSION='1.0.4' | |
2630 | VERSION='1.0.5' | |
2552 | 2631 | |
2553 | 2632 | |
2554 | 2633 | cat >>confdefs.h <<_ACEOF |
2576 | 2655 | |
2577 | 2656 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2578 | 2657 | |
2579 | # We need awk for the "check" target. The system "awk" is bad on | |
2580 | # some platforms. | |
2581 | # Always define AMTAR for backward compatibility. | |
2582 | ||
2583 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2584 | ||
2585 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2586 | ||
2587 | ||
2588 | ||
2589 | ||
2590 | ||
2591 | ||
2592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2593 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2594 | # Check whether --enable-maintainer-mode was given. | |
2595 | if test "${enable_maintainer_mode+set}" = set; then : | |
2596 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2597 | else | |
2598 | USE_MAINTAINER_MODE=no | |
2599 | fi | |
2600 | ||
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
2602 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2603 | if test $USE_MAINTAINER_MODE = yes; then | |
2604 | MAINTAINER_MODE_TRUE= | |
2605 | MAINTAINER_MODE_FALSE='#' | |
2606 | else | |
2607 | MAINTAINER_MODE_TRUE='#' | |
2608 | MAINTAINER_MODE_FALSE= | |
2609 | fi | |
2610 | ||
2611 | MAINT=$MAINTAINER_MODE_TRUE | |
2612 | ||
2658 | # For better backward compatibility. To be removed once Automake 1.9.x | |
2659 | # dies out for good. For more background, see: | |
2660 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2661 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2662 | mkdir_p='$(MKDIR_P)' | |
2663 | ||
2664 | # We need awk for the "check" target (and possibly the TAP driver). The | |
2665 | # system "awk" is bad on some platforms. | |
2666 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
2667 | # in the wild :-( We should find a proper way to deprecate it ... | |
2668 | AMTAR='$${TAR-tar}' | |
2669 | ||
2670 | ||
2671 | # We'll loop over all known methods to create a tar archive until one works. | |
2672 | _am_tools='gnutar pax cpio none' | |
2673 | ||
2674 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
2675 | ||
2676 | ||
2677 | ||
2678 | ||
2679 | ||
2680 | ||
2681 | # POSIX will say in a future version that running "rm -f" with no argument | |
2682 | # is OK; and we want to be able to make that assumption in our Makefile | |
2683 | # recipes. So use an aggressive probe to check that the usage we want is | |
2684 | # actually supported "in the wild" to an acceptable degree. | |
2685 | # See automake bug#10828. | |
2686 | # To make any issue more visible, cause the running configure to be aborted | |
2687 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2688 | # user can still override this though. | |
2689 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2690 | cat >&2 <<'END' | |
2691 | Oops! | |
2692 | ||
2693 | Your 'rm' program seems unable to run without file operands specified | |
2694 | on the command line, even when the '-f' option is present. This is contrary | |
2695 | to the behaviour of most rm programs out there, and not conforming with | |
2696 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2697 | ||
2698 | Please tell bug-automake@gnu.org about your system, including the value | |
2699 | of your $PATH and any error possibly output before this message. This | |
2700 | can help us improve future automake versions. | |
2701 | ||
2702 | END | |
2703 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2704 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2705 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2706 | echo >&2 | |
2707 | else | |
2708 | cat >&2 <<'END' | |
2709 | Aborting the configuration process, to ensure you take notice of the issue. | |
2710 | ||
2711 | You can download and install GNU coreutils to get an 'rm' implementation | |
2712 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2713 | ||
2714 | If you want to complete the configuration process using your problematic | |
2715 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
2716 | to "yes", and re-run configure. | |
2717 | ||
2718 | END | |
2719 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
2720 | fi | |
2721 | fi | |
2613 | 2722 | |
2614 | 2723 | |
2615 | 2724 | # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS |
2643 | 2752 | _am_result=none |
2644 | 2753 | # First try GNU make style include. |
2645 | 2754 | echo "include confinc" > confmf |
2646 | # Ignore all kinds of additional output from `make'. | |
2755 | # Ignore all kinds of additional output from 'make'. | |
2647 | 2756 | case `$am_make -s -f confmf 2> /dev/null` in #( |
2648 | 2757 | *the\ am__doit\ target*) |
2649 | 2758 | am__include=include |
2676 | 2785 | if test "x$enable_dependency_tracking" != xno; then |
2677 | 2786 | am_depcomp="$ac_aux_dir/depcomp" |
2678 | 2787 | AMDEPBACKSLASH='\' |
2788 | am__nodep='_no' | |
2679 | 2789 | fi |
2680 | 2790 | if test "x$enable_dependency_tracking" != xno; then |
2681 | 2791 | AMDEP_TRUE= |
2708 | 2818 | IFS=$as_save_IFS |
2709 | 2819 | test -z "$as_dir" && as_dir=. |
2710 | 2820 | for ac_exec_ext in '' $ac_executable_extensions; do |
2711 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2821 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2712 | 2822 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2713 | 2823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2714 | 2824 | break 2 |
2748 | 2858 | IFS=$as_save_IFS |
2749 | 2859 | test -z "$as_dir" && as_dir=. |
2750 | 2860 | for ac_exec_ext in '' $ac_executable_extensions; do |
2751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2861 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2752 | 2862 | ac_cv_prog_ac_ct_CC="gcc" |
2753 | 2863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2754 | 2864 | break 2 |
2801 | 2911 | IFS=$as_save_IFS |
2802 | 2912 | test -z "$as_dir" && as_dir=. |
2803 | 2913 | for ac_exec_ext in '' $ac_executable_extensions; do |
2804 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2914 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2805 | 2915 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2806 | 2916 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2807 | 2917 | break 2 |
2842 | 2952 | IFS=$as_save_IFS |
2843 | 2953 | test -z "$as_dir" && as_dir=. |
2844 | 2954 | for ac_exec_ext in '' $ac_executable_extensions; do |
2845 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2846 | 2956 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2847 | 2957 | ac_prog_rejected=yes |
2848 | 2958 | continue |
2900 | 3010 | IFS=$as_save_IFS |
2901 | 3011 | test -z "$as_dir" && as_dir=. |
2902 | 3012 | for ac_exec_ext in '' $ac_executable_extensions; do |
2903 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3013 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2904 | 3014 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2905 | 3015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2906 | 3016 | break 2 |
2944 | 3054 | IFS=$as_save_IFS |
2945 | 3055 | test -z "$as_dir" && as_dir=. |
2946 | 3056 | for ac_exec_ext in '' $ac_executable_extensions; do |
2947 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3057 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2948 | 3058 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2949 | 3059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2950 | 3060 | break 2 |
3390 | 3500 | /* end confdefs.h. */ |
3391 | 3501 | #include <stdarg.h> |
3392 | 3502 | #include <stdio.h> |
3393 | #include <sys/types.h> | |
3394 | #include <sys/stat.h> | |
3503 | struct stat; | |
3395 | 3504 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3396 | 3505 | struct buf { int x; }; |
3397 | 3506 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3476 | 3585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3477 | 3586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3478 | 3587 | |
3588 | ac_ext=c | |
3589 | ac_cpp='$CPP $CPPFLAGS' | |
3590 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3591 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3592 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3594 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3595 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3596 | $as_echo_n "(cached) " >&6 | |
3597 | else | |
3598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3599 | /* end confdefs.h. */ | |
3600 | ||
3601 | int | |
3602 | main () | |
3603 | { | |
3604 | ||
3605 | ; | |
3606 | return 0; | |
3607 | } | |
3608 | _ACEOF | |
3609 | # Make sure it works both with $CC and with simple cc. | |
3610 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3611 | # compilers refuse to overwrite an existing .o file with -o, | |
3612 | # though they will create one. | |
3613 | am_cv_prog_cc_c_o=yes | |
3614 | for am_i in 1 2; do | |
3615 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3616 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3617 | ac_status=$? | |
3618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3619 | (exit $ac_status); } \ | |
3620 | && test -f conftest2.$ac_objext; then | |
3621 | : OK | |
3622 | else | |
3623 | am_cv_prog_cc_c_o=no | |
3624 | break | |
3625 | fi | |
3626 | done | |
3627 | rm -f core conftest* | |
3628 | unset am_i | |
3629 | fi | |
3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3631 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3632 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3633 | # Losing compiler, so override with the script. | |
3634 | # FIXME: It is wrong to rewrite CC. | |
3635 | # But if we don't then we get into trouble of one sort or another. | |
3636 | # A longer-term fix would be to have automake use am__CC in this case, | |
3637 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3638 | CC="$am_aux_dir/compile $CC" | |
3639 | fi | |
3640 | ac_ext=c | |
3641 | ac_cpp='$CPP $CPPFLAGS' | |
3642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3645 | ||
3646 | ||
3479 | 3647 | depcc="$CC" am_compiler_list= |
3480 | 3648 | |
3481 | 3649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3487 | 3655 | # We make a subdir and do the tests there. Otherwise we can end up |
3488 | 3656 | # making bogus files that we don't know about and never remove. For |
3489 | 3657 | # instance it was reported that on HP-UX the gcc test will end up |
3490 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3491 | # in D'. | |
3658 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
3659 | # in D". | |
3660 | rm -rf conftest.dir | |
3492 | 3661 | mkdir conftest.dir |
3493 | 3662 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3494 | 3663 | # using a relative directory. |
3522 | 3691 | : > sub/conftest.c |
3523 | 3692 | for i in 1 2 3 4 5 6; do |
3524 | 3693 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3525 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3526 | # Solaris 8's {/usr,}/bin/sh. | |
3527 | touch sub/conftst$i.h | |
3694 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
3695 | # Solaris 10 /bin/sh. | |
3696 | echo '/* dummy */' > sub/conftst$i.h | |
3528 | 3697 | done |
3529 | 3698 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3530 | 3699 | |
3531 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3700 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
3532 | 3701 | # mode. It turns out that the SunPro C++ compiler does not properly |
3533 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3534 | # versions had trouble with output in subdirs | |
3702 | # handle '-M -o', and we need to detect this. Also, some Intel | |
3703 | # versions had trouble with output in subdirs. | |
3535 | 3704 | am__obj=sub/conftest.${OBJEXT-o} |
3536 | 3705 | am__minus_obj="-o $am__obj" |
3537 | 3706 | case $depmode in |
3540 | 3709 | test "$am__universal" = false || continue |
3541 | 3710 | ;; |
3542 | 3711 | nosideeffect) |
3543 | # after this tag, mechanisms are not by side-effect, so they'll | |
3544 | # only be used when explicitly requested | |
3712 | # After this tag, mechanisms are not by side-effect, so they'll | |
3713 | # only be used when explicitly requested. | |
3545 | 3714 | if test "x$enable_dependency_tracking" = xyes; then |
3546 | 3715 | continue |
3547 | 3716 | else |
3548 | 3717 | break |
3549 | 3718 | fi |
3550 | 3719 | ;; |
3551 | msvisualcpp | msvcmsys) | |
3552 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3720 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
3721 | # This compiler won't grok '-c -o', but also, the minuso test has | |
3553 | 3722 | # not run yet. These depmodes are late enough in the game, and |
3554 | 3723 | # so weak that their functioning should not be impacted. |
3555 | 3724 | am__obj=conftest.${OBJEXT-o} |
3749 | 3918 | return 0; |
3750 | 3919 | } |
3751 | 3920 | _ACEOF |
3752 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | |
3921 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
3753 | 3922 | do |
3754 | 3923 | CC="$ac_save_CC $ac_arg" |
3755 | 3924 | if ac_fn_c_try_compile "$LINENO"; then : |
3935 | 4104 | for ac_prog in grep ggrep; do |
3936 | 4105 | for ac_exec_ext in '' $ac_executable_extensions; do |
3937 | 4106 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3938 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4107 | as_fn_executable_p "$ac_path_GREP" || continue | |
3939 | 4108 | # Check for GNU ac_path_GREP and select it if it is found. |
3940 | 4109 | # Check for GNU $ac_path_GREP |
3941 | 4110 | case `"$ac_path_GREP" --version 2>&1` in |
4001 | 4170 | for ac_prog in egrep; do |
4002 | 4171 | for ac_exec_ext in '' $ac_executable_extensions; do |
4003 | 4172 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4004 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4173 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4005 | 4174 | # Check for GNU ac_path_EGREP and select it if it is found. |
4006 | 4175 | # Check for GNU $ac_path_EGREP |
4007 | 4176 | case `"$ac_path_EGREP" --version 2>&1` in |
4206 | 4375 | |
4207 | 4376 | |
4208 | 4377 | |
4378 | ||
4379 | ||
4380 | ||
4381 | ||
4382 | ||
4209 | 4383 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
4210 | 4384 | if test -n "$ac_tool_prefix"; then |
4211 | 4385 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
4226 | 4400 | IFS=$as_save_IFS |
4227 | 4401 | test -z "$as_dir" && as_dir=. |
4228 | 4402 | for ac_exec_ext in '' $ac_executable_extensions; do |
4229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4403 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4230 | 4404 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
4231 | 4405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4232 | 4406 | break 2 |
4269 | 4443 | IFS=$as_save_IFS |
4270 | 4444 | test -z "$as_dir" && as_dir=. |
4271 | 4445 | for ac_exec_ext in '' $ac_executable_extensions; do |
4272 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4446 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4273 | 4447 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
4274 | 4448 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4275 | 4449 | break 2 |
4318 | 4492 | $as_echo "no" >&6; } |
4319 | 4493 | PKG_CONFIG="" |
4320 | 4494 | fi |
4321 | ||
4322 | 4495 | fi |
4323 | 4496 | # Make sure we can run config.sub. |
4324 | 4497 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
4413 | 4586 | for ac_prog in sed gsed; do |
4414 | 4587 | for ac_exec_ext in '' $ac_executable_extensions; do |
4415 | 4588 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
4416 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4589 | as_fn_executable_p "$ac_path_SED" || continue | |
4417 | 4590 | # Check for GNU ac_path_SED and select it if it is found. |
4418 | 4591 | # Check for GNU $ac_path_SED |
4419 | 4592 | case `"$ac_path_SED" --version 2>&1` in |
4553 | 4726 | found="no" |
4554 | 4727 | |
4555 | 4728 | if test $found = "no" ; then |
4556 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
4729 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
4557 | 4730 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
4558 | 4731 | fi |
4559 | 4732 | |
4560 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
4733 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
4561 | 4734 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
4562 | 4735 | fi |
4563 | 4736 | |
4564 | 4737 | CFLAGS="$CFLAGS -Wall" |
4565 | 4738 | |
4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 | |
4567 | $as_echo_n "checking if $CC supports-Wall... " >&6; } | |
4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 | |
4740 | $as_echo_n "checking if $CC supports -Wall... " >&6; } | |
4568 | 4741 | cacheid=xorg_cv_cc_flag__Wall |
4569 | 4742 | if eval \${$cacheid+:} false; then : |
4570 | 4743 | $as_echo_n "(cached) " >&6 |
4671 | 4844 | found="no" |
4672 | 4845 | |
4673 | 4846 | if test $found = "no" ; then |
4674 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
4847 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
4675 | 4848 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
4676 | 4849 | fi |
4677 | 4850 | |
4678 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
4851 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
4679 | 4852 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
4680 | 4853 | fi |
4681 | 4854 | |
4682 | 4855 | CFLAGS="$CFLAGS -Wpointer-arith" |
4683 | 4856 | |
4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 | |
4685 | $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } | |
4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 | |
4858 | $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } | |
4686 | 4859 | cacheid=xorg_cv_cc_flag__Wpointer_arith |
4687 | 4860 | if eval \${$cacheid+:} false; then : |
4688 | 4861 | $as_echo_n "(cached) " >&6 |
4789 | 4962 | found="no" |
4790 | 4963 | |
4791 | 4964 | if test $found = "no" ; then |
4792 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
4965 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
4793 | 4966 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
4794 | 4967 | fi |
4795 | 4968 | |
4796 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
4969 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
4797 | 4970 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
4798 | 4971 | fi |
4799 | 4972 | |
4800 | 4973 | CFLAGS="$CFLAGS -Wmissing-declarations" |
4801 | 4974 | |
4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 | |
4803 | $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } | |
4975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 | |
4976 | $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } | |
4804 | 4977 | cacheid=xorg_cv_cc_flag__Wmissing_declarations |
4805 | 4978 | if eval \${$cacheid+:} false; then : |
4806 | 4979 | $as_echo_n "(cached) " >&6 |
4907 | 5080 | found="no" |
4908 | 5081 | |
4909 | 5082 | if test $found = "no" ; then |
4910 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
5083 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
4911 | 5084 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
4912 | 5085 | fi |
4913 | 5086 | |
4914 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
5087 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
4915 | 5088 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
4916 | 5089 | fi |
4917 | 5090 | |
4918 | 5091 | CFLAGS="$CFLAGS -Wformat=2" |
4919 | 5092 | |
4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 | |
4921 | $as_echo_n "checking if $CC supports-Wformat=2... " >&6; } | |
4922 | cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` | |
5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 | |
5094 | $as_echo_n "checking if $CC supports -Wformat=2... " >&6; } | |
5095 | cacheid=xorg_cv_cc_flag__Wformat_2 | |
4923 | 5096 | if eval \${$cacheid+:} false; then : |
4924 | 5097 | $as_echo_n "(cached) " >&6 |
4925 | 5098 | else |
4956 | 5129 | fi |
4957 | 5130 | |
4958 | 5131 | if test $found = "no" ; then |
4959 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
5132 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
4960 | 5133 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
4961 | 5134 | fi |
4962 | 5135 | |
4963 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
5136 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
4964 | 5137 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
4965 | 5138 | fi |
4966 | 5139 | |
4967 | 5140 | CFLAGS="$CFLAGS -Wformat" |
4968 | 5141 | |
4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 | |
4970 | $as_echo_n "checking if $CC supports-Wformat... " >&6; } | |
5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 | |
5143 | $as_echo_n "checking if $CC supports -Wformat... " >&6; } | |
4971 | 5144 | cacheid=xorg_cv_cc_flag__Wformat |
4972 | 5145 | if eval \${$cacheid+:} false; then : |
4973 | 5146 | $as_echo_n "(cached) " >&6 |
5076 | 5249 | found="no" |
5077 | 5250 | |
5078 | 5251 | if test $found = "no" ; then |
5079 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
5252 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
5080 | 5253 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
5081 | 5254 | fi |
5082 | 5255 | |
5083 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
5256 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
5084 | 5257 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
5085 | 5258 | fi |
5086 | 5259 | |
5087 | 5260 | CFLAGS="$CFLAGS -Wstrict-prototypes" |
5088 | 5261 | |
5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 | |
5090 | $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } | |
5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 | |
5263 | $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } | |
5091 | 5264 | cacheid=xorg_cv_cc_flag__Wstrict_prototypes |
5092 | 5265 | if eval \${$cacheid+:} false; then : |
5093 | 5266 | $as_echo_n "(cached) " >&6 |
5194 | 5367 | found="no" |
5195 | 5368 | |
5196 | 5369 | if test $found = "no" ; then |
5197 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
5370 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
5198 | 5371 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
5199 | 5372 | fi |
5200 | 5373 | |
5201 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
5374 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
5202 | 5375 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
5203 | 5376 | fi |
5204 | 5377 | |
5205 | 5378 | CFLAGS="$CFLAGS -Wmissing-prototypes" |
5206 | 5379 | |
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 | |
5208 | $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } | |
5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 | |
5381 | $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } | |
5209 | 5382 | cacheid=xorg_cv_cc_flag__Wmissing_prototypes |
5210 | 5383 | if eval \${$cacheid+:} false; then : |
5211 | 5384 | $as_echo_n "(cached) " >&6 |
5312 | 5485 | found="no" |
5313 | 5486 | |
5314 | 5487 | if test $found = "no" ; then |
5315 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
5488 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
5316 | 5489 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
5317 | 5490 | fi |
5318 | 5491 | |
5319 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
5492 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
5320 | 5493 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
5321 | 5494 | fi |
5322 | 5495 | |
5323 | 5496 | CFLAGS="$CFLAGS -Wnested-externs" |
5324 | 5497 | |
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 | |
5326 | $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } | |
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 | |
5499 | $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } | |
5327 | 5500 | cacheid=xorg_cv_cc_flag__Wnested_externs |
5328 | 5501 | if eval \${$cacheid+:} false; then : |
5329 | 5502 | $as_echo_n "(cached) " >&6 |
5430 | 5603 | found="no" |
5431 | 5604 | |
5432 | 5605 | if test $found = "no" ; then |
5433 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
5606 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
5434 | 5607 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
5435 | 5608 | fi |
5436 | 5609 | |
5437 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
5610 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
5438 | 5611 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
5439 | 5612 | fi |
5440 | 5613 | |
5441 | 5614 | CFLAGS="$CFLAGS -Wbad-function-cast" |
5442 | 5615 | |
5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 | |
5444 | $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } | |
5616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 | |
5617 | $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } | |
5445 | 5618 | cacheid=xorg_cv_cc_flag__Wbad_function_cast |
5446 | 5619 | if eval \${$cacheid+:} false; then : |
5447 | 5620 | $as_echo_n "(cached) " >&6 |
5548 | 5721 | found="no" |
5549 | 5722 | |
5550 | 5723 | if test $found = "no" ; then |
5551 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
5724 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
5552 | 5725 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
5553 | 5726 | fi |
5554 | 5727 | |
5555 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
5728 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
5556 | 5729 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
5557 | 5730 | fi |
5558 | 5731 | |
5559 | 5732 | CFLAGS="$CFLAGS -Wold-style-definition" |
5560 | 5733 | |
5561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 | |
5562 | $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } | |
5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 | |
5735 | $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } | |
5563 | 5736 | cacheid=xorg_cv_cc_flag__Wold_style_definition |
5564 | 5737 | if eval \${$cacheid+:} false; then : |
5565 | 5738 | $as_echo_n "(cached) " >&6 |
5592 | 5765 | $as_echo "$supported" >&6; } |
5593 | 5766 | if test "$supported" = "yes" ; then |
5594 | 5767 | BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" |
5768 | found="yes" | |
5769 | fi | |
5770 | fi | |
5771 | ||
5772 | if test $found = "no" ; then | |
5773 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
5774 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
5775 | fi | |
5776 | ||
5777 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
5778 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
5779 | fi | |
5780 | ||
5781 | CFLAGS="$CFLAGS -fd" | |
5782 | ||
5783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 | |
5784 | $as_echo_n "checking if $CC supports -fd... " >&6; } | |
5785 | cacheid=xorg_cv_cc_flag__fd | |
5786 | if eval \${$cacheid+:} false; then : | |
5787 | $as_echo_n "(cached) " >&6 | |
5788 | else | |
5789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5790 | /* end confdefs.h. */ | |
5791 | int i; | |
5792 | int | |
5793 | main () | |
5794 | { | |
5795 | ||
5796 | ; | |
5797 | return 0; | |
5798 | } | |
5799 | _ACEOF | |
5800 | if ac_fn_c_try_link "$LINENO"; then : | |
5801 | eval $cacheid=yes | |
5802 | else | |
5803 | eval $cacheid=no | |
5804 | fi | |
5805 | rm -f core conftest.err conftest.$ac_objext \ | |
5806 | conftest$ac_exeext conftest.$ac_ext | |
5807 | fi | |
5808 | ||
5809 | ||
5810 | CFLAGS="$xorg_testset_save_CFLAGS" | |
5811 | ||
5812 | eval supported=\$$cacheid | |
5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
5814 | $as_echo "$supported" >&6; } | |
5815 | if test "$supported" = "yes" ; then | |
5816 | BASE_CFLAGS="$BASE_CFLAGS -fd" | |
5595 | 5817 | found="yes" |
5596 | 5818 | fi |
5597 | 5819 | fi |
5666 | 5888 | found="no" |
5667 | 5889 | |
5668 | 5890 | if test $found = "no" ; then |
5669 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
5891 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
5670 | 5892 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
5671 | 5893 | fi |
5672 | 5894 | |
5673 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
5895 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
5674 | 5896 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
5675 | 5897 | fi |
5676 | 5898 | |
5677 | 5899 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" |
5678 | 5900 | |
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 | |
5680 | $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } | |
5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 | |
5902 | $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } | |
5681 | 5903 | cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement |
5682 | 5904 | if eval \${$cacheid+:} false; then : |
5683 | 5905 | $as_echo_n "(cached) " >&6 |
5788 | 6010 | found="no" |
5789 | 6011 | |
5790 | 6012 | if test $found = "no" ; then |
5791 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
6013 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
5792 | 6014 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
5793 | 6015 | fi |
5794 | 6016 | |
5795 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
6017 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
5796 | 6018 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
5797 | 6019 | fi |
5798 | 6020 | |
5799 | 6021 | CFLAGS="$CFLAGS -Wunused" |
5800 | 6022 | |
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 | |
5802 | $as_echo_n "checking if $CC supports-Wunused... " >&6; } | |
6023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 | |
6024 | $as_echo_n "checking if $CC supports -Wunused... " >&6; } | |
5803 | 6025 | cacheid=xorg_cv_cc_flag__Wunused |
5804 | 6026 | if eval \${$cacheid+:} false; then : |
5805 | 6027 | $as_echo_n "(cached) " >&6 |
5906 | 6128 | found="no" |
5907 | 6129 | |
5908 | 6130 | if test $found = "no" ; then |
5909 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
6131 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
5910 | 6132 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
5911 | 6133 | fi |
5912 | 6134 | |
5913 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
6135 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
5914 | 6136 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
5915 | 6137 | fi |
5916 | 6138 | |
5917 | 6139 | CFLAGS="$CFLAGS -Wuninitialized" |
5918 | 6140 | |
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 | |
5920 | $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } | |
6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 | |
6142 | $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } | |
5921 | 6143 | cacheid=xorg_cv_cc_flag__Wuninitialized |
5922 | 6144 | if eval \${$cacheid+:} false; then : |
5923 | 6145 | $as_echo_n "(cached) " >&6 |
6024 | 6246 | found="no" |
6025 | 6247 | |
6026 | 6248 | if test $found = "no" ; then |
6027 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
6249 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6028 | 6250 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
6029 | 6251 | fi |
6030 | 6252 | |
6031 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
6253 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6032 | 6254 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
6033 | 6255 | fi |
6034 | 6256 | |
6035 | 6257 | CFLAGS="$CFLAGS -Wshadow" |
6036 | 6258 | |
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 | |
6038 | $as_echo_n "checking if $CC supports-Wshadow... " >&6; } | |
6259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 | |
6260 | $as_echo_n "checking if $CC supports -Wshadow... " >&6; } | |
6039 | 6261 | cacheid=xorg_cv_cc_flag__Wshadow |
6040 | 6262 | if eval \${$cacheid+:} false; then : |
6041 | 6263 | $as_echo_n "(cached) " >&6 |
6142 | 6364 | found="no" |
6143 | 6365 | |
6144 | 6366 | if test $found = "no" ; then |
6145 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
6367 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6146 | 6368 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
6147 | 6369 | fi |
6148 | 6370 | |
6149 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
6371 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6150 | 6372 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
6151 | 6373 | fi |
6152 | 6374 | |
6153 | CFLAGS="$CFLAGS -Wcast-qual" | |
6154 | ||
6155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 | |
6156 | $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } | |
6157 | cacheid=xorg_cv_cc_flag__Wcast_qual | |
6375 | CFLAGS="$CFLAGS -Wmissing-noreturn" | |
6376 | ||
6377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 | |
6378 | $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } | |
6379 | cacheid=xorg_cv_cc_flag__Wmissing_noreturn | |
6158 | 6380 | if eval \${$cacheid+:} false; then : |
6159 | 6381 | $as_echo_n "(cached) " >&6 |
6160 | 6382 | else |
6185 | 6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 |
6186 | 6408 | $as_echo "$supported" >&6; } |
6187 | 6409 | if test "$supported" = "yes" ; then |
6188 | BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" | |
6410 | BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" | |
6189 | 6411 | found="yes" |
6190 | 6412 | fi |
6191 | 6413 | fi |
6260 | 6482 | found="no" |
6261 | 6483 | |
6262 | 6484 | if test $found = "no" ; then |
6263 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
6485 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6264 | 6486 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
6265 | 6487 | fi |
6266 | 6488 | |
6267 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
6489 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6268 | 6490 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
6269 | 6491 | fi |
6270 | 6492 | |
6271 | CFLAGS="$CFLAGS -Wmissing-noreturn" | |
6272 | ||
6273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 | |
6274 | $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } | |
6275 | cacheid=xorg_cv_cc_flag__Wmissing_noreturn | |
6493 | CFLAGS="$CFLAGS -Wmissing-format-attribute" | |
6494 | ||
6495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 | |
6496 | $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } | |
6497 | cacheid=xorg_cv_cc_flag__Wmissing_format_attribute | |
6276 | 6498 | if eval \${$cacheid+:} false; then : |
6277 | 6499 | $as_echo_n "(cached) " >&6 |
6278 | 6500 | else |
6303 | 6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 |
6304 | 6526 | $as_echo "$supported" >&6; } |
6305 | 6527 | if test "$supported" = "yes" ; then |
6306 | BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" | |
6528 | BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" | |
6307 | 6529 | found="yes" |
6308 | 6530 | fi |
6309 | 6531 | fi |
6378 | 6600 | found="no" |
6379 | 6601 | |
6380 | 6602 | if test $found = "no" ; then |
6381 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
6603 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6382 | 6604 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
6383 | 6605 | fi |
6384 | 6606 | |
6385 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
6607 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6386 | 6608 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
6387 | 6609 | fi |
6388 | 6610 | |
6389 | CFLAGS="$CFLAGS -Wmissing-format-attribute" | |
6390 | ||
6391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 | |
6392 | $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } | |
6393 | cacheid=xorg_cv_cc_flag__Wmissing_format_attribute | |
6611 | CFLAGS="$CFLAGS -Wredundant-decls" | |
6612 | ||
6613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 | |
6614 | $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } | |
6615 | cacheid=xorg_cv_cc_flag__Wredundant_decls | |
6394 | 6616 | if eval \${$cacheid+:} false; then : |
6395 | 6617 | $as_echo_n "(cached) " >&6 |
6396 | 6618 | else |
6421 | 6643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 |
6422 | 6644 | $as_echo "$supported" >&6; } |
6423 | 6645 | if test "$supported" = "yes" ; then |
6424 | BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" | |
6646 | BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" | |
6425 | 6647 | found="yes" |
6426 | 6648 | fi |
6427 | 6649 | fi |
6496 | 6718 | found="no" |
6497 | 6719 | |
6498 | 6720 | if test $found = "no" ; then |
6499 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
6721 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6500 | 6722 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
6501 | 6723 | fi |
6502 | 6724 | |
6503 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
6725 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6504 | 6726 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
6505 | 6727 | fi |
6506 | 6728 | |
6507 | CFLAGS="$CFLAGS -Wredundant-decls" | |
6508 | ||
6509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 | |
6510 | $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } | |
6511 | cacheid=xorg_cv_cc_flag__Wredundant_decls | |
6729 | CFLAGS="$CFLAGS -Wlogical-op" | |
6730 | ||
6731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 | |
6732 | $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } | |
6733 | cacheid=xorg_cv_cc_flag__Wlogical_op | |
6512 | 6734 | if eval \${$cacheid+:} false; then : |
6513 | 6735 | $as_echo_n "(cached) " >&6 |
6514 | 6736 | else |
6539 | 6761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 |
6540 | 6762 | $as_echo "$supported" >&6; } |
6541 | 6763 | if test "$supported" = "yes" ; then |
6542 | BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" | |
6764 | BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" | |
6543 | 6765 | found="yes" |
6544 | 6766 | fi |
6545 | 6767 | fi |
6549 | 6771 | # These are currently disabled because they are noisy. They will be enabled |
6550 | 6772 | # in the future once the codebase is sufficiently modernized to silence |
6551 | 6773 | # them. For now, I don't want them to drown out the other warnings. |
6552 | # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) | |
6553 | 6774 | # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) |
6554 | 6775 | # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) |
6776 | # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) | |
6555 | 6777 | |
6556 | 6778 | # Turn some warnings into errors, so we don't accidently get successful builds |
6557 | 6779 | # when there are problems that should be fixed. |
6626 | 6848 | found="no" |
6627 | 6849 | |
6628 | 6850 | if test $found = "no" ; then |
6629 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
6851 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6630 | 6852 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
6631 | 6853 | fi |
6632 | 6854 | |
6633 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
6855 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6634 | 6856 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
6635 | 6857 | fi |
6636 | 6858 | |
6637 | 6859 | CFLAGS="$CFLAGS -Werror=implicit" |
6638 | 6860 | |
6639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 | |
6640 | $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } | |
6641 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` | |
6861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 | |
6862 | $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } | |
6863 | cacheid=xorg_cv_cc_flag__Werror_implicit | |
6642 | 6864 | if eval \${$cacheid+:} false; then : |
6643 | 6865 | $as_echo_n "(cached) " >&6 |
6644 | 6866 | else |
6675 | 6897 | fi |
6676 | 6898 | |
6677 | 6899 | if test $found = "no" ; then |
6678 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
6900 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6679 | 6901 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
6680 | 6902 | fi |
6681 | 6903 | |
6682 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
6904 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6683 | 6905 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
6684 | 6906 | fi |
6685 | 6907 | |
6686 | 6908 | CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" |
6687 | 6909 | |
6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 | |
6689 | $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } | |
6690 | cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` | |
6910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 | |
6911 | $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } | |
6912 | cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED | |
6691 | 6913 | if eval \${$cacheid+:} false; then : |
6692 | 6914 | $as_echo_n "(cached) " >&6 |
6693 | 6915 | else |
6793 | 7015 | found="no" |
6794 | 7016 | |
6795 | 7017 | if test $found = "no" ; then |
6796 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
7018 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6797 | 7019 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
6798 | 7020 | fi |
6799 | 7021 | |
6800 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
7022 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6801 | 7023 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
6802 | 7024 | fi |
6803 | 7025 | |
6804 | 7026 | CFLAGS="$CFLAGS -Werror=nonnull" |
6805 | 7027 | |
6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 | |
6807 | $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } | |
6808 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` | |
7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 | |
7029 | $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } | |
7030 | cacheid=xorg_cv_cc_flag__Werror_nonnull | |
6809 | 7031 | if eval \${$cacheid+:} false; then : |
6810 | 7032 | $as_echo_n "(cached) " >&6 |
6811 | 7033 | else |
6911 | 7133 | found="no" |
6912 | 7134 | |
6913 | 7135 | if test $found = "no" ; then |
6914 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
7136 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6915 | 7137 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
6916 | 7138 | fi |
6917 | 7139 | |
6918 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
7140 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6919 | 7141 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
6920 | 7142 | fi |
6921 | 7143 | |
6922 | 7144 | CFLAGS="$CFLAGS -Werror=init-self" |
6923 | 7145 | |
6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 | |
6925 | $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } | |
6926 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` | |
7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 | |
7147 | $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } | |
7148 | cacheid=xorg_cv_cc_flag__Werror_init_self | |
6927 | 7149 | if eval \${$cacheid+:} false; then : |
6928 | 7150 | $as_echo_n "(cached) " >&6 |
6929 | 7151 | else |
7029 | 7251 | found="no" |
7030 | 7252 | |
7031 | 7253 | if test $found = "no" ; then |
7032 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
7254 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7033 | 7255 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
7034 | 7256 | fi |
7035 | 7257 | |
7036 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
7258 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7037 | 7259 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
7038 | 7260 | fi |
7039 | 7261 | |
7040 | 7262 | CFLAGS="$CFLAGS -Werror=main" |
7041 | 7263 | |
7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 | |
7043 | $as_echo_n "checking if $CC supports-Werror=main... " >&6; } | |
7044 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` | |
7264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 | |
7265 | $as_echo_n "checking if $CC supports -Werror=main... " >&6; } | |
7266 | cacheid=xorg_cv_cc_flag__Werror_main | |
7045 | 7267 | if eval \${$cacheid+:} false; then : |
7046 | 7268 | $as_echo_n "(cached) " >&6 |
7047 | 7269 | else |
7147 | 7369 | found="no" |
7148 | 7370 | |
7149 | 7371 | if test $found = "no" ; then |
7150 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
7372 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7151 | 7373 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
7152 | 7374 | fi |
7153 | 7375 | |
7154 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
7376 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7155 | 7377 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
7156 | 7378 | fi |
7157 | 7379 | |
7158 | 7380 | CFLAGS="$CFLAGS -Werror=missing-braces" |
7159 | 7381 | |
7160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 | |
7161 | $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } | |
7162 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` | |
7382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 | |
7383 | $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } | |
7384 | cacheid=xorg_cv_cc_flag__Werror_missing_braces | |
7163 | 7385 | if eval \${$cacheid+:} false; then : |
7164 | 7386 | $as_echo_n "(cached) " >&6 |
7165 | 7387 | else |
7265 | 7487 | found="no" |
7266 | 7488 | |
7267 | 7489 | if test $found = "no" ; then |
7268 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
7490 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7269 | 7491 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
7270 | 7492 | fi |
7271 | 7493 | |
7272 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
7494 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7273 | 7495 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
7274 | 7496 | fi |
7275 | 7497 | |
7276 | 7498 | CFLAGS="$CFLAGS -Werror=sequence-point" |
7277 | 7499 | |
7278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 | |
7279 | $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } | |
7280 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` | |
7500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 | |
7501 | $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } | |
7502 | cacheid=xorg_cv_cc_flag__Werror_sequence_point | |
7281 | 7503 | if eval \${$cacheid+:} false; then : |
7282 | 7504 | $as_echo_n "(cached) " >&6 |
7283 | 7505 | else |
7383 | 7605 | found="no" |
7384 | 7606 | |
7385 | 7607 | if test $found = "no" ; then |
7386 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
7608 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7387 | 7609 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
7388 | 7610 | fi |
7389 | 7611 | |
7390 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
7612 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7391 | 7613 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
7392 | 7614 | fi |
7393 | 7615 | |
7394 | 7616 | CFLAGS="$CFLAGS -Werror=return-type" |
7395 | 7617 | |
7396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 | |
7397 | $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } | |
7398 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` | |
7618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 | |
7619 | $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } | |
7620 | cacheid=xorg_cv_cc_flag__Werror_return_type | |
7399 | 7621 | if eval \${$cacheid+:} false; then : |
7400 | 7622 | $as_echo_n "(cached) " >&6 |
7401 | 7623 | else |
7432 | 7654 | fi |
7433 | 7655 | |
7434 | 7656 | if test $found = "no" ; then |
7435 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
7657 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7436 | 7658 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
7437 | 7659 | fi |
7438 | 7660 | |
7439 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
7661 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7440 | 7662 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
7441 | 7663 | fi |
7442 | 7664 | |
7443 | 7665 | CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" |
7444 | 7666 | |
7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 | |
7446 | $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } | |
7447 | cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` | |
7667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 | |
7668 | $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } | |
7669 | cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT | |
7448 | 7670 | if eval \${$cacheid+:} false; then : |
7449 | 7671 | $as_echo_n "(cached) " >&6 |
7450 | 7672 | else |
7550 | 7772 | found="no" |
7551 | 7773 | |
7552 | 7774 | if test $found = "no" ; then |
7553 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
7775 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7554 | 7776 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
7555 | 7777 | fi |
7556 | 7778 | |
7557 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
7779 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7558 | 7780 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
7559 | 7781 | fi |
7560 | 7782 | |
7561 | 7783 | CFLAGS="$CFLAGS -Werror=trigraphs" |
7562 | 7784 | |
7563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 | |
7564 | $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } | |
7565 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` | |
7785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 | |
7786 | $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } | |
7787 | cacheid=xorg_cv_cc_flag__Werror_trigraphs | |
7566 | 7788 | if eval \${$cacheid+:} false; then : |
7567 | 7789 | $as_echo_n "(cached) " >&6 |
7568 | 7790 | else |
7668 | 7890 | found="no" |
7669 | 7891 | |
7670 | 7892 | if test $found = "no" ; then |
7671 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
7893 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7672 | 7894 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
7673 | 7895 | fi |
7674 | 7896 | |
7675 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
7897 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7676 | 7898 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
7677 | 7899 | fi |
7678 | 7900 | |
7679 | 7901 | CFLAGS="$CFLAGS -Werror=array-bounds" |
7680 | 7902 | |
7681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 | |
7682 | $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } | |
7683 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` | |
7903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 | |
7904 | $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } | |
7905 | cacheid=xorg_cv_cc_flag__Werror_array_bounds | |
7684 | 7906 | if eval \${$cacheid+:} false; then : |
7685 | 7907 | $as_echo_n "(cached) " >&6 |
7686 | 7908 | else |
7786 | 8008 | found="no" |
7787 | 8009 | |
7788 | 8010 | if test $found = "no" ; then |
7789 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
8011 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7790 | 8012 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
7791 | 8013 | fi |
7792 | 8014 | |
7793 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
8015 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7794 | 8016 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
7795 | 8017 | fi |
7796 | 8018 | |
7797 | 8019 | CFLAGS="$CFLAGS -Werror=write-strings" |
7798 | 8020 | |
7799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 | |
7800 | $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } | |
7801 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` | |
8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 | |
8022 | $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } | |
8023 | cacheid=xorg_cv_cc_flag__Werror_write_strings | |
7802 | 8024 | if eval \${$cacheid+:} false; then : |
7803 | 8025 | $as_echo_n "(cached) " >&6 |
7804 | 8026 | else |
7904 | 8126 | found="no" |
7905 | 8127 | |
7906 | 8128 | if test $found = "no" ; then |
7907 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
8129 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7908 | 8130 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
7909 | 8131 | fi |
7910 | 8132 | |
7911 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
8133 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7912 | 8134 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
7913 | 8135 | fi |
7914 | 8136 | |
7915 | 8137 | CFLAGS="$CFLAGS -Werror=address" |
7916 | 8138 | |
7917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 | |
7918 | $as_echo_n "checking if $CC supports-Werror=address... " >&6; } | |
7919 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` | |
8139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 | |
8140 | $as_echo_n "checking if $CC supports -Werror=address... " >&6; } | |
8141 | cacheid=xorg_cv_cc_flag__Werror_address | |
7920 | 8142 | if eval \${$cacheid+:} false; then : |
7921 | 8143 | $as_echo_n "(cached) " >&6 |
7922 | 8144 | else |
8022 | 8244 | found="no" |
8023 | 8245 | |
8024 | 8246 | if test $found = "no" ; then |
8025 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
8247 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8026 | 8248 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
8027 | 8249 | fi |
8028 | 8250 | |
8029 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
8251 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8030 | 8252 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
8031 | 8253 | fi |
8032 | 8254 | |
8033 | 8255 | CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" |
8034 | 8256 | |
8035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 | |
8036 | $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } | |
8037 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` | |
8257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 | |
8258 | $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } | |
8259 | cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast | |
8038 | 8260 | if eval \${$cacheid+:} false; then : |
8039 | 8261 | $as_echo_n "(cached) " >&6 |
8040 | 8262 | else |
8071 | 8293 | fi |
8072 | 8294 | |
8073 | 8295 | if test $found = "no" ; then |
8074 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
8296 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8075 | 8297 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
8076 | 8298 | fi |
8077 | 8299 | |
8078 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
8300 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8079 | 8301 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
8080 | 8302 | fi |
8081 | 8303 | |
8082 | 8304 | CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" |
8083 | 8305 | |
8084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 | |
8085 | $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } | |
8086 | cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` | |
8306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 | |
8307 | $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } | |
8308 | cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION | |
8087 | 8309 | if eval \${$cacheid+:} false; then : |
8088 | 8310 | $as_echo_n "(cached) " >&6 |
8089 | 8311 | else |
8189 | 8411 | found="no" |
8190 | 8412 | |
8191 | 8413 | if test $found = "no" ; then |
8192 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
8414 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8193 | 8415 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
8194 | 8416 | fi |
8195 | 8417 | |
8196 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
8418 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8197 | 8419 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
8198 | 8420 | fi |
8199 | 8421 | |
8200 | 8422 | CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" |
8201 | 8423 | |
8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 | |
8203 | $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } | |
8204 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` | |
8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 | |
8425 | $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } | |
8426 | cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast | |
8205 | 8427 | if eval \${$cacheid+:} false; then : |
8206 | 8428 | $as_echo_n "(cached) " >&6 |
8207 | 8429 | else |
8310 | 8532 | found="no" |
8311 | 8533 | |
8312 | 8534 | if test $found = "no" ; then |
8313 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
8535 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8314 | 8536 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
8315 | 8537 | fi |
8316 | 8538 | |
8317 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
8539 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8318 | 8540 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
8319 | 8541 | fi |
8320 | 8542 | |
8321 | 8543 | CFLAGS="$CFLAGS -Wimplicit" |
8322 | 8544 | |
8323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 | |
8324 | $as_echo_n "checking if $CC supports-Wimplicit... " >&6; } | |
8545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 | |
8546 | $as_echo_n "checking if $CC supports -Wimplicit... " >&6; } | |
8325 | 8547 | cacheid=xorg_cv_cc_flag__Wimplicit |
8326 | 8548 | if eval \${$cacheid+:} false; then : |
8327 | 8549 | $as_echo_n "(cached) " >&6 |
8428 | 8650 | found="no" |
8429 | 8651 | |
8430 | 8652 | if test $found = "no" ; then |
8431 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
8653 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8432 | 8654 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
8433 | 8655 | fi |
8434 | 8656 | |
8435 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
8657 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8436 | 8658 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
8437 | 8659 | fi |
8438 | 8660 | |
8439 | 8661 | CFLAGS="$CFLAGS -Wnonnull" |
8440 | 8662 | |
8441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 | |
8442 | $as_echo_n "checking if $CC supports-Wnonnull... " >&6; } | |
8663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 | |
8664 | $as_echo_n "checking if $CC supports -Wnonnull... " >&6; } | |
8443 | 8665 | cacheid=xorg_cv_cc_flag__Wnonnull |
8444 | 8666 | if eval \${$cacheid+:} false; then : |
8445 | 8667 | $as_echo_n "(cached) " >&6 |
8546 | 8768 | found="no" |
8547 | 8769 | |
8548 | 8770 | if test $found = "no" ; then |
8549 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
8771 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8550 | 8772 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
8551 | 8773 | fi |
8552 | 8774 | |
8553 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
8775 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8554 | 8776 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
8555 | 8777 | fi |
8556 | 8778 | |
8557 | 8779 | CFLAGS="$CFLAGS -Winit-self" |
8558 | 8780 | |
8559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 | |
8560 | $as_echo_n "checking if $CC supports-Winit-self... " >&6; } | |
8781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 | |
8782 | $as_echo_n "checking if $CC supports -Winit-self... " >&6; } | |
8561 | 8783 | cacheid=xorg_cv_cc_flag__Winit_self |
8562 | 8784 | if eval \${$cacheid+:} false; then : |
8563 | 8785 | $as_echo_n "(cached) " >&6 |
8664 | 8886 | found="no" |
8665 | 8887 | |
8666 | 8888 | if test $found = "no" ; then |
8667 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
8889 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8668 | 8890 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
8669 | 8891 | fi |
8670 | 8892 | |
8671 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
8893 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8672 | 8894 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
8673 | 8895 | fi |
8674 | 8896 | |
8675 | 8897 | CFLAGS="$CFLAGS -Wmain" |
8676 | 8898 | |
8677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 | |
8678 | $as_echo_n "checking if $CC supports-Wmain... " >&6; } | |
8899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 | |
8900 | $as_echo_n "checking if $CC supports -Wmain... " >&6; } | |
8679 | 8901 | cacheid=xorg_cv_cc_flag__Wmain |
8680 | 8902 | if eval \${$cacheid+:} false; then : |
8681 | 8903 | $as_echo_n "(cached) " >&6 |
8782 | 9004 | found="no" |
8783 | 9005 | |
8784 | 9006 | if test $found = "no" ; then |
8785 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
9007 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8786 | 9008 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
8787 | 9009 | fi |
8788 | 9010 | |
8789 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
9011 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8790 | 9012 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
8791 | 9013 | fi |
8792 | 9014 | |
8793 | 9015 | CFLAGS="$CFLAGS -Wmissing-braces" |
8794 | 9016 | |
8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 | |
8796 | $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } | |
9017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 | |
9018 | $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } | |
8797 | 9019 | cacheid=xorg_cv_cc_flag__Wmissing_braces |
8798 | 9020 | if eval \${$cacheid+:} false; then : |
8799 | 9021 | $as_echo_n "(cached) " >&6 |
8900 | 9122 | found="no" |
8901 | 9123 | |
8902 | 9124 | if test $found = "no" ; then |
8903 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
9125 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8904 | 9126 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
8905 | 9127 | fi |
8906 | 9128 | |
8907 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
9129 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8908 | 9130 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
8909 | 9131 | fi |
8910 | 9132 | |
8911 | 9133 | CFLAGS="$CFLAGS -Wsequence-point" |
8912 | 9134 | |
8913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 | |
8914 | $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } | |
9135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 | |
9136 | $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } | |
8915 | 9137 | cacheid=xorg_cv_cc_flag__Wsequence_point |
8916 | 9138 | if eval \${$cacheid+:} false; then : |
8917 | 9139 | $as_echo_n "(cached) " >&6 |
9018 | 9240 | found="no" |
9019 | 9241 | |
9020 | 9242 | if test $found = "no" ; then |
9021 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
9243 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9022 | 9244 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
9023 | 9245 | fi |
9024 | 9246 | |
9025 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
9247 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9026 | 9248 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
9027 | 9249 | fi |
9028 | 9250 | |
9029 | 9251 | CFLAGS="$CFLAGS -Wreturn-type" |
9030 | 9252 | |
9031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 | |
9032 | $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } | |
9253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 | |
9254 | $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } | |
9033 | 9255 | cacheid=xorg_cv_cc_flag__Wreturn_type |
9034 | 9256 | if eval \${$cacheid+:} false; then : |
9035 | 9257 | $as_echo_n "(cached) " >&6 |
9136 | 9358 | found="no" |
9137 | 9359 | |
9138 | 9360 | if test $found = "no" ; then |
9139 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
9361 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9140 | 9362 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
9141 | 9363 | fi |
9142 | 9364 | |
9143 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
9365 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9144 | 9366 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
9145 | 9367 | fi |
9146 | 9368 | |
9147 | 9369 | CFLAGS="$CFLAGS -Wtrigraphs" |
9148 | 9370 | |
9149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 | |
9150 | $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } | |
9371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 | |
9372 | $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } | |
9151 | 9373 | cacheid=xorg_cv_cc_flag__Wtrigraphs |
9152 | 9374 | if eval \${$cacheid+:} false; then : |
9153 | 9375 | $as_echo_n "(cached) " >&6 |
9254 | 9476 | found="no" |
9255 | 9477 | |
9256 | 9478 | if test $found = "no" ; then |
9257 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
9479 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9258 | 9480 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
9259 | 9481 | fi |
9260 | 9482 | |
9261 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
9483 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9262 | 9484 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
9263 | 9485 | fi |
9264 | 9486 | |
9265 | 9487 | CFLAGS="$CFLAGS -Warray-bounds" |
9266 | 9488 | |
9267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 | |
9268 | $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } | |
9489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 | |
9490 | $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } | |
9269 | 9491 | cacheid=xorg_cv_cc_flag__Warray_bounds |
9270 | 9492 | if eval \${$cacheid+:} false; then : |
9271 | 9493 | $as_echo_n "(cached) " >&6 |
9372 | 9594 | found="no" |
9373 | 9595 | |
9374 | 9596 | if test $found = "no" ; then |
9375 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
9597 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9376 | 9598 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
9377 | 9599 | fi |
9378 | 9600 | |
9379 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
9601 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9380 | 9602 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
9381 | 9603 | fi |
9382 | 9604 | |
9383 | 9605 | CFLAGS="$CFLAGS -Wwrite-strings" |
9384 | 9606 | |
9385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 | |
9386 | $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } | |
9607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 | |
9608 | $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } | |
9387 | 9609 | cacheid=xorg_cv_cc_flag__Wwrite_strings |
9388 | 9610 | if eval \${$cacheid+:} false; then : |
9389 | 9611 | $as_echo_n "(cached) " >&6 |
9490 | 9712 | found="no" |
9491 | 9713 | |
9492 | 9714 | if test $found = "no" ; then |
9493 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
9715 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9494 | 9716 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
9495 | 9717 | fi |
9496 | 9718 | |
9497 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
9719 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9498 | 9720 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
9499 | 9721 | fi |
9500 | 9722 | |
9501 | 9723 | CFLAGS="$CFLAGS -Waddress" |
9502 | 9724 | |
9503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 | |
9504 | $as_echo_n "checking if $CC supports-Waddress... " >&6; } | |
9725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 | |
9726 | $as_echo_n "checking if $CC supports -Waddress... " >&6; } | |
9505 | 9727 | cacheid=xorg_cv_cc_flag__Waddress |
9506 | 9728 | if eval \${$cacheid+:} false; then : |
9507 | 9729 | $as_echo_n "(cached) " >&6 |
9608 | 9830 | found="no" |
9609 | 9831 | |
9610 | 9832 | if test $found = "no" ; then |
9611 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
9833 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9612 | 9834 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
9613 | 9835 | fi |
9614 | 9836 | |
9615 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
9837 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9616 | 9838 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
9617 | 9839 | fi |
9618 | 9840 | |
9619 | 9841 | CFLAGS="$CFLAGS -Wint-to-pointer-cast" |
9620 | 9842 | |
9621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 | |
9622 | $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } | |
9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 | |
9844 | $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } | |
9623 | 9845 | cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast |
9624 | 9846 | if eval \${$cacheid+:} false; then : |
9625 | 9847 | $as_echo_n "(cached) " >&6 |
9726 | 9948 | found="no" |
9727 | 9949 | |
9728 | 9950 | if test $found = "no" ; then |
9729 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
9951 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9730 | 9952 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
9731 | 9953 | fi |
9732 | 9954 | |
9733 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
9955 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9734 | 9956 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
9735 | 9957 | fi |
9736 | 9958 | |
9737 | 9959 | CFLAGS="$CFLAGS -Wpointer-to-int-cast" |
9738 | 9960 | |
9739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 | |
9740 | $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } | |
9961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 | |
9962 | $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } | |
9741 | 9963 | cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast |
9742 | 9964 | if eval \${$cacheid+:} false; then : |
9743 | 9965 | $as_echo_n "(cached) " >&6 |
9877 | 10099 | found="no" |
9878 | 10100 | |
9879 | 10101 | if test $found = "no" ; then |
9880 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
10102 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9881 | 10103 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
9882 | 10104 | fi |
9883 | 10105 | |
9884 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
10106 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9885 | 10107 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
9886 | 10108 | fi |
9887 | 10109 | |
9888 | 10110 | CFLAGS="$CFLAGS -pedantic" |
9889 | 10111 | |
9890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 | |
9891 | $as_echo_n "checking if $CC supports-pedantic... " >&6; } | |
10112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 | |
10113 | $as_echo_n "checking if $CC supports -pedantic... " >&6; } | |
9892 | 10114 | cacheid=xorg_cv_cc_flag__pedantic |
9893 | 10115 | if eval \${$cacheid+:} false; then : |
9894 | 10116 | $as_echo_n "(cached) " >&6 |
9995 | 10217 | found="no" |
9996 | 10218 | |
9997 | 10219 | if test $found = "no" ; then |
9998 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
10220 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9999 | 10221 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
10000 | 10222 | fi |
10001 | 10223 | |
10002 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
10224 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
10003 | 10225 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
10004 | 10226 | fi |
10005 | 10227 | |
10006 | 10228 | CFLAGS="$CFLAGS -Werror" |
10007 | 10229 | |
10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 | |
10009 | $as_echo_n "checking if $CC supports-Werror... " >&6; } | |
10230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 | |
10231 | $as_echo_n "checking if $CC supports -Werror... " >&6; } | |
10010 | 10232 | cacheid=xorg_cv_cc_flag__Werror |
10011 | 10233 | if eval \${$cacheid+:} false; then : |
10012 | 10234 | $as_echo_n "(cached) " >&6 |
10044 | 10266 | fi |
10045 | 10267 | |
10046 | 10268 | if test $found = "no" ; then |
10047 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
10269 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10048 | 10270 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
10049 | 10271 | fi |
10050 | 10272 | |
10051 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
10273 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
10052 | 10274 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
10053 | 10275 | fi |
10054 | 10276 | |
10055 | 10277 | CFLAGS="$CFLAGS -errwarn" |
10056 | 10278 | |
10057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 | |
10058 | $as_echo_n "checking if $CC supports-errwarn... " >&6; } | |
10279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 | |
10280 | $as_echo_n "checking if $CC supports -errwarn... " >&6; } | |
10059 | 10281 | cacheid=xorg_cv_cc_flag__errwarn |
10060 | 10282 | if eval \${$cacheid+:} false; then : |
10061 | 10283 | $as_echo_n "(cached) " >&6 |
10165 | 10387 | found="no" |
10166 | 10388 | |
10167 | 10389 | if test $found = "no" ; then |
10168 | if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | |
10390 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10169 | 10391 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" |
10170 | 10392 | fi |
10171 | 10393 | |
10172 | if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then | |
10394 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
10173 | 10395 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" |
10174 | 10396 | fi |
10175 | 10397 | |
10176 | 10398 | CFLAGS="$CFLAGS -Werror=attributes" |
10177 | 10399 | |
10178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 | |
10179 | $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } | |
10180 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` | |
10400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 | |
10401 | $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } | |
10402 | cacheid=xorg_cv_cc_flag__Werror_attributes | |
10181 | 10403 | if eval \${$cacheid+:} false; then : |
10182 | 10404 | $as_echo_n "(cached) " >&6 |
10183 | 10405 | else |
10284 | 10506 | |
10285 | 10507 | if test x$FILE_MAN_SUFFIX = x ; then |
10286 | 10508 | case $host_os in |
10287 | solaris*) FILE_MAN_SUFFIX=4 ;; | |
10288 | *) FILE_MAN_SUFFIX=5 ;; | |
10509 | # Solaris 2.0 - 11 use SysV man page sections | |
10510 | solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; | |
10511 | *) FILE_MAN_SUFFIX=5 ;; | |
10289 | 10512 | esac |
10290 | 10513 | fi |
10291 | 10514 | if test x$FILE_MAN_DIR = x ; then |
10294 | 10517 | |
10295 | 10518 | if test x$MISC_MAN_SUFFIX = x ; then |
10296 | 10519 | case $host_os in |
10297 | solaris*) MISC_MAN_SUFFIX=5 ;; | |
10298 | *) MISC_MAN_SUFFIX=7 ;; | |
10520 | # Solaris 2.0 - 11 use SysV man page sections | |
10521 | solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; | |
10522 | *) MISC_MAN_SUFFIX=7 ;; | |
10299 | 10523 | esac |
10300 | 10524 | fi |
10301 | 10525 | if test x$MISC_MAN_DIR = x ; then |
10304 | 10528 | |
10305 | 10529 | if test x$DRIVER_MAN_SUFFIX = x ; then |
10306 | 10530 | case $host_os in |
10307 | solaris*) DRIVER_MAN_SUFFIX=7 ;; | |
10308 | *) DRIVER_MAN_SUFFIX=4 ;; | |
10531 | # Solaris 2.0 - 11 use SysV man page sections | |
10532 | solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; | |
10533 | *) DRIVER_MAN_SUFFIX=4 ;; | |
10309 | 10534 | esac |
10310 | 10535 | fi |
10311 | 10536 | if test x$DRIVER_MAN_DIR = x ; then |
10314 | 10539 | |
10315 | 10540 | if test x$ADMIN_MAN_SUFFIX = x ; then |
10316 | 10541 | case $host_os in |
10317 | solaris*) ADMIN_MAN_SUFFIX=1m ;; | |
10318 | *) ADMIN_MAN_SUFFIX=8 ;; | |
10542 | # Solaris 2.0 - 11 use SysV man page sections | |
10543 | solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; | |
10544 | *) ADMIN_MAN_SUFFIX=8 ;; | |
10319 | 10545 | esac |
10320 | 10546 | fi |
10321 | 10547 | if test x$ADMIN_MAN_DIR = x ; then |
10359 | 10585 | enableval=$enable_silent_rules; |
10360 | 10586 | fi |
10361 | 10587 | |
10362 | case $enable_silent_rules in | |
10363 | yes) AM_DEFAULT_VERBOSITY=0;; | |
10364 | no) AM_DEFAULT_VERBOSITY=1;; | |
10365 | *) AM_DEFAULT_VERBOSITY=0;; | |
10588 | case $enable_silent_rules in # ((( | |
10589 | yes) AM_DEFAULT_VERBOSITY=0;; | |
10590 | no) AM_DEFAULT_VERBOSITY=1;; | |
10591 | *) AM_DEFAULT_VERBOSITY=0;; | |
10366 | 10592 | esac |
10593 | am_make=${MAKE-make} | |
10594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
10595 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
10596 | if ${am_cv_make_support_nested_variables+:} false; then : | |
10597 | $as_echo_n "(cached) " >&6 | |
10598 | else | |
10599 | if $as_echo 'TRUE=$(BAR$(V)) | |
10600 | BAR0=false | |
10601 | BAR1=true | |
10602 | V=1 | |
10603 | am__doit: | |
10604 | @$(TRUE) | |
10605 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
10606 | am_cv_make_support_nested_variables=yes | |
10607 | else | |
10608 | am_cv_make_support_nested_variables=no | |
10609 | fi | |
10610 | fi | |
10611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
10612 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
10613 | if test $am_cv_make_support_nested_variables = yes; then | |
10614 | AM_V='$(V)' | |
10615 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
10616 | else | |
10617 | AM_V=$AM_DEFAULT_VERBOSITY | |
10618 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
10619 | fi | |
10367 | 10620 | AM_BACKSLASH='\' |
10368 | 10621 | |
10369 | ||
10370 | ||
10371 | ||
10372 | ac_config_headers="$ac_config_headers config.h" | |
10373 | 10622 | |
10374 | 10623 | |
10375 | 10624 | # Base set of required pkg-config packages |
10430 | 10679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10431 | 10680 | test $ac_status = 0; }; then |
10432 | 10681 | pkg_cv_XLOGO_CFLAGS=`$PKG_CONFIG --cflags "$XLOGO_DEPS" 2>/dev/null` |
10682 | test "x$?" != "x0" && pkg_failed=yes | |
10433 | 10683 | else |
10434 | 10684 | pkg_failed=yes |
10435 | 10685 | fi |
10446 | 10696 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10447 | 10697 | test $ac_status = 0; }; then |
10448 | 10698 | pkg_cv_XLOGO_LIBS=`$PKG_CONFIG --libs "$XLOGO_DEPS" 2>/dev/null` |
10699 | test "x$?" != "x0" && pkg_failed=yes | |
10449 | 10700 | else |
10450 | 10701 | pkg_failed=yes |
10451 | 10702 | fi |
10456 | 10707 | |
10457 | 10708 | |
10458 | 10709 | if test $pkg_failed = yes; then |
10710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10711 | $as_echo "no" >&6; } | |
10459 | 10712 | |
10460 | 10713 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
10461 | 10714 | _pkg_short_errors_supported=yes |
10463 | 10716 | _pkg_short_errors_supported=no |
10464 | 10717 | fi |
10465 | 10718 | if test $_pkg_short_errors_supported = yes; then |
10466 | XLOGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XLOGO_DEPS" 2>&1` | |
10719 | XLOGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1` | |
10467 | 10720 | else |
10468 | XLOGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XLOGO_DEPS" 2>&1` | |
10721 | XLOGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1` | |
10469 | 10722 | fi |
10470 | 10723 | # Put the nasty error message in config.log where it belongs |
10471 | 10724 | echo "$XLOGO_PKG_ERRORS" >&5 |
10479 | 10732 | |
10480 | 10733 | Alternatively, you may set the environment variables XLOGO_CFLAGS |
10481 | 10734 | and XLOGO_LIBS to avoid the need to call pkg-config. |
10482 | See the pkg-config man page for more details. | |
10483 | " "$LINENO" 5 | |
10735 | See the pkg-config man page for more details." "$LINENO" 5 | |
10484 | 10736 | elif test $pkg_failed = untried; then |
10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10738 | $as_echo "no" >&6; } | |
10485 | 10739 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
10486 | 10740 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
10487 | 10741 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
10499 | 10753 | XLOGO_LIBS=$pkg_cv_XLOGO_LIBS |
10500 | 10754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10501 | 10755 | $as_echo "yes" >&6; } |
10502 | : | |
10756 | ||
10503 | 10757 | fi |
10504 | 10758 | |
10505 | 10759 | |
10517 | 10771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10518 | 10772 | test $ac_status = 0; }; then |
10519 | 10773 | pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` |
10774 | test "x$?" != "x0" && pkg_failed=yes | |
10520 | 10775 | else |
10521 | 10776 | pkg_failed=yes |
10522 | 10777 | fi |
10533 | 10788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10534 | 10789 | test $ac_status = 0; }; then |
10535 | 10790 | pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` |
10791 | test "x$?" != "x0" && pkg_failed=yes | |
10536 | 10792 | else |
10537 | 10793 | pkg_failed=yes |
10538 | 10794 | fi |
10543 | 10799 | |
10544 | 10800 | |
10545 | 10801 | if test $pkg_failed = yes; then |
10802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10803 | $as_echo "no" >&6; } | |
10546 | 10804 | |
10547 | 10805 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
10548 | 10806 | _pkg_short_errors_supported=yes |
10550 | 10808 | _pkg_short_errors_supported=no |
10551 | 10809 | fi |
10552 | 10810 | if test $_pkg_short_errors_supported = yes; then |
10553 | APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1` | |
10811 | APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` | |
10554 | 10812 | else |
10555 | APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1` | |
10813 | APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` | |
10556 | 10814 | fi |
10557 | 10815 | # Put the nasty error message in config.log where it belongs |
10558 | 10816 | echo "$APPDEFS_PKG_ERRORS" >&5 |
10566 | 10824 | |
10567 | 10825 | Alternatively, you may set the environment variables APPDEFS_CFLAGS |
10568 | 10826 | and APPDEFS_LIBS to avoid the need to call pkg-config. |
10569 | See the pkg-config man page for more details. | |
10570 | " "$LINENO" 5 | |
10827 | See the pkg-config man page for more details." "$LINENO" 5 | |
10571 | 10828 | elif test $pkg_failed = untried; then |
10829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10830 | $as_echo "no" >&6; } | |
10572 | 10831 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
10573 | 10832 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
10574 | 10833 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
10586 | 10845 | APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS |
10587 | 10846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10588 | 10847 | $as_echo "yes" >&6; } |
10589 | : | |
10848 | ||
10590 | 10849 | fi |
10591 | 10850 | xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` |
10592 | 10851 | |
10710 | 10969 | LTLIBOBJS=$ac_ltlibobjs |
10711 | 10970 | |
10712 | 10971 | |
10972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
10973 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
10974 | if test -n "$am_sleep_pid"; then | |
10975 | # Hide warnings about reused PIDs. | |
10976 | wait $am_sleep_pid 2>/dev/null | |
10977 | fi | |
10978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
10979 | $as_echo "done" >&6; } | |
10713 | 10980 | if test -n "$EXEEXT"; then |
10714 | 10981 | am__EXEEXT_TRUE= |
10715 | 10982 | am__EXEEXT_FALSE='#' |
10718 | 10985 | am__EXEEXT_FALSE= |
10719 | 10986 | fi |
10720 | 10987 | |
10721 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
10722 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
10723 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
10724 | fi | |
10725 | 10988 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
10726 | 10989 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
10727 | 10990 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
11032 | 11295 | # ... but there are two gotchas: |
11033 | 11296 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
11034 | 11297 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
11035 | # In both cases, we have to default to `cp -p'. | |
11298 | # In both cases, we have to default to `cp -pR'. | |
11036 | 11299 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
11037 | as_ln_s='cp -p' | |
11300 | as_ln_s='cp -pR' | |
11038 | 11301 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11039 | 11302 | as_ln_s=ln |
11040 | 11303 | else |
11041 | as_ln_s='cp -p' | |
11304 | as_ln_s='cp -pR' | |
11042 | 11305 | fi |
11043 | 11306 | else |
11044 | as_ln_s='cp -p' | |
11307 | as_ln_s='cp -pR' | |
11045 | 11308 | fi |
11046 | 11309 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
11047 | 11310 | rmdir conf$$.dir 2>/dev/null |
11101 | 11364 | as_mkdir_p=false |
11102 | 11365 | fi |
11103 | 11366 | |
11104 | if test -x / >/dev/null 2>&1; then | |
11105 | as_test_x='test -x' | |
11106 | else | |
11107 | if ls -dL / >/dev/null 2>&1; then | |
11108 | as_ls_L_option=L | |
11109 | else | |
11110 | as_ls_L_option= | |
11111 | fi | |
11112 | as_test_x=' | |
11113 | eval sh -c '\'' | |
11114 | if test -d "$1"; then | |
11115 | test -d "$1/."; | |
11116 | else | |
11117 | case $1 in #( | |
11118 | -*)set "./$1";; | |
11119 | esac; | |
11120 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
11121 | ???[sx]*):;;*)false;;esac;fi | |
11122 | '\'' sh | |
11123 | ' | |
11124 | fi | |
11125 | as_executable_p=$as_test_x | |
11367 | ||
11368 | # as_fn_executable_p FILE | |
11369 | # ----------------------- | |
11370 | # Test if FILE is an executable regular file. | |
11371 | as_fn_executable_p () | |
11372 | { | |
11373 | test -f "$1" && test -x "$1" | |
11374 | } # as_fn_executable_p | |
11375 | as_test_x='test -x' | |
11376 | as_executable_p=as_fn_executable_p | |
11126 | 11377 | |
11127 | 11378 | # Sed expression to map a string onto a valid CPP name. |
11128 | 11379 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
11143 | 11394 | # report actual input values of CONFIG_FILES etc. instead of their |
11144 | 11395 | # values after options handling. |
11145 | 11396 | ac_log=" |
11146 | This file was extended by xlogo $as_me 1.0.4, which was | |
11147 | generated by GNU Autoconf 2.68. Invocation command line was | |
11397 | This file was extended by xlogo $as_me 1.0.5, which was | |
11398 | generated by GNU Autoconf 2.69. Invocation command line was | |
11148 | 11399 | |
11149 | 11400 | CONFIG_FILES = $CONFIG_FILES |
11150 | 11401 | CONFIG_HEADERS = $CONFIG_HEADERS |
11203 | 11454 | Configuration commands: |
11204 | 11455 | $config_commands |
11205 | 11456 | |
11206 | Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." | |
11457 | Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/issues>." | |
11207 | 11458 | |
11208 | 11459 | _ACEOF |
11209 | 11460 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11210 | 11461 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
11211 | 11462 | ac_cs_version="\\ |
11212 | xlogo config.status 1.0.4 | |
11213 | configured by $0, generated by GNU Autoconf 2.68, | |
11463 | xlogo config.status 1.0.5 | |
11464 | configured by $0, generated by GNU Autoconf 2.69, | |
11214 | 11465 | with options \\"\$ac_cs_config\\" |
11215 | 11466 | |
11216 | Copyright (C) 2010 Free Software Foundation, Inc. | |
11467 | Copyright (C) 2012 Free Software Foundation, Inc. | |
11217 | 11468 | This config.status script is free software; the Free Software Foundation |
11218 | 11469 | gives unlimited permission to copy, distribute and modify it." |
11219 | 11470 | |
11304 | 11555 | _ACEOF |
11305 | 11556 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11306 | 11557 | if \$ac_cs_recheck; then |
11307 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
11558 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
11308 | 11559 | shift |
11309 | 11560 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
11310 | 11561 | CONFIG_SHELL='$SHELL' |
11338 | 11589 | for ac_config_target in $ac_config_targets |
11339 | 11590 | do |
11340 | 11591 | case $ac_config_target in |
11592 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
11341 | 11593 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
11342 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
11343 | 11594 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
11344 | 11595 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
11345 | 11596 | |
11938 | 12189 | |
11939 | 12190 | case $ac_file$ac_mode in |
11940 | 12191 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
11941 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
12192 | # Older Autoconf quotes --file arguments for eval, but not when files | |
11942 | 12193 | # are listed without --file. Let's play safe and only enable the eval |
11943 | 12194 | # if we detect the quoting. |
11944 | 12195 | case $CONFIG_FILES in |
11951 | 12202 | # Strip MF so we end up with the name of the file. |
11952 | 12203 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
11953 | 12204 | # Check whether this is an Automake generated Makefile or not. |
11954 | # We used to match only the files named `Makefile.in', but | |
12205 | # We used to match only the files named 'Makefile.in', but | |
11955 | 12206 | # some people rename them; so instead we look at the file content. |
11956 | 12207 | # Grep'ing the first line is not enough: some people post-process |
11957 | 12208 | # each Makefile.in and add a new line on top of each file to say so. |
11985 | 12236 | continue |
11986 | 12237 | fi |
11987 | 12238 | # Extract the definition of DEPDIR, am__include, and am__quote |
11988 | # from the Makefile without running `make'. | |
12239 | # from the Makefile without running 'make'. | |
11989 | 12240 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
11990 | 12241 | test -z "$DEPDIR" && continue |
11991 | 12242 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
11992 | test -z "am__include" && continue | |
12243 | test -z "$am__include" && continue | |
11993 | 12244 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
11994 | # When using ansi2knr, U may be empty or an underscore; expand it | |
11995 | U=`sed -n 's/^U = //p' < "$mf"` | |
11996 | 12245 | # Find all dependency output files, they are included files with |
11997 | 12246 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
11998 | 12247 | # simplest approach to changing $(DEPDIR) to its actual value in the |
11999 | 12248 | # expansion. |
12000 | 12249 | for file in `sed -n " |
12001 | 12250 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
12002 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
12251 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
12003 | 12252 | # Make sure the directory exists. |
12004 | 12253 | test -f "$dirpart/$file" && continue |
12005 | 12254 | fdir=`$as_dirname -- "$file" || |
19 | 19 | dnl |
20 | 20 | dnl Process this file with autoconf to create configure. |
21 | 21 | |
22 | # Initialize Autoconf | |
22 | 23 | AC_PREREQ([2.60]) |
23 | AC_INIT([xlogo], [1.0.4], | |
24 | [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xlogo]) | |
24 | AC_INIT([xlogo], [1.0.5], | |
25 | [https://gitlab.freedesktop.org/xorg/app/xlogo/issues], [xlogo]) | |
26 | AC_CONFIG_SRCDIR([Makefile.am]) | |
27 | AC_CONFIG_HEADERS([config.h]) | |
28 | ||
29 | # Initialize Automake | |
25 | 30 | AM_INIT_AUTOMAKE([foreign dist-bzip2]) |
26 | AM_MAINTAINER_MODE | |
27 | 31 | |
28 | 32 | # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS |
29 | 33 | m4_ifndef([XORG_MACROS_VERSION], |
30 | 34 | [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) |
31 | 35 | XORG_MACROS_VERSION(1.8) |
32 | 36 | XORG_DEFAULT_OPTIONS |
33 | ||
34 | ||
35 | AC_CONFIG_HEADERS([config.h]) | |
36 | 37 | |
37 | 38 | # Base set of required pkg-config packages |
38 | 39 | XLOGO_DEPS="sm xaw7 xmu xt >= 1.0 xext x11" |
0 | 0 | #! /bin/sh |
1 | 1 | # depcomp - compile a program generating dependencies as side-effects |
2 | 2 | |
3 | scriptversion=2009-04-28.21; # UTC | |
4 | ||
5 | # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free | |
6 | # Software Foundation, Inc. | |
3 | scriptversion=2013-05-30.07; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
7 | 6 | |
8 | 7 | # This program is free software; you can redistribute it and/or modify |
9 | 8 | # it under the terms of the GNU General Public License as published by |
27 | 26 | |
28 | 27 | case $1 in |
29 | 28 | '') |
30 | echo "$0: No command. Try \`$0 --help' for more information." 1>&2 | |
31 | exit 1; | |
32 | ;; | |
29 | echo "$0: No command. Try '$0 --help' for more information." 1>&2 | |
30 | exit 1; | |
31 | ;; | |
33 | 32 | -h | --h*) |
34 | 33 | cat <<\EOF |
35 | 34 | Usage: depcomp [--help] [--version] PROGRAM [ARGS] |
39 | 38 | |
40 | 39 | Environment variables: |
41 | 40 | depmode Dependency tracking mode. |
42 | source Source file read by `PROGRAMS ARGS'. | |
43 | object Object file output by `PROGRAMS ARGS'. | |
41 | source Source file read by 'PROGRAMS ARGS'. | |
42 | object Object file output by 'PROGRAMS ARGS'. | |
44 | 43 | DEPDIR directory where to store dependencies. |
45 | 44 | depfile Dependency file to output. |
46 | tmpdepfile Temporary file to use when outputing dependencies. | |
45 | tmpdepfile Temporary file to use when outputting dependencies. | |
47 | 46 | libtool Whether libtool is used (yes/no). |
48 | 47 | |
49 | 48 | Report bugs to <bug-automake@gnu.org>. |
56 | 55 | ;; |
57 | 56 | esac |
58 | 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 | ||
59 | 118 | if test -z "$depmode" || test -z "$source" || test -z "$object"; then |
60 | 119 | echo "depcomp: Variables source, object and depmode must be set" 1>&2 |
61 | 120 | exit 1 |
67 | 126 | tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} |
68 | 127 | |
69 | 128 | rm -f "$tmpdepfile" |
129 | ||
130 | # Avoid interferences from the environment. | |
131 | gccflag= dashmflag= | |
70 | 132 | |
71 | 133 | # Some modes work just like other modes, but use different flags. We |
72 | 134 | # parameterize here, but still list the modes in the big case below, |
79 | 141 | fi |
80 | 142 | |
81 | 143 | if test "$depmode" = dashXmstdout; then |
82 | # This is just like dashmstdout with a different argument. | |
83 | dashmflag=-xM | |
84 | depmode=dashmstdout | |
144 | # This is just like dashmstdout with a different argument. | |
145 | dashmflag=-xM | |
146 | depmode=dashmstdout | |
85 | 147 | fi |
86 | 148 | |
87 | 149 | cygpath_u="cygpath -u -f -" |
88 | 150 | if test "$depmode" = msvcmsys; then |
89 | # This is just like msvisualcpp but w/o cygpath translation. | |
90 | # Just convert the backslash-escaped backslashes to single forward | |
91 | # slashes to satisfy depend.m4 | |
92 | cygpath_u="sed s,\\\\\\\\,/,g" | |
93 | depmode=msvisualcpp | |
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 | |
94 | 170 | fi |
95 | 171 | |
96 | 172 | case "$depmode" in |
113 | 189 | done |
114 | 190 | "$@" |
115 | 191 | stat=$? |
116 | if test $stat -eq 0; then : | |
117 | else | |
192 | if test $stat -ne 0; then | |
118 | 193 | rm -f "$tmpdepfile" |
119 | 194 | exit $stat |
120 | 195 | fi |
122 | 197 | ;; |
123 | 198 | |
124 | 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). | |
125 | 203 | ## There are various ways to get dependency output from gcc. Here's |
126 | 204 | ## why we pick this rather obscure method: |
127 | 205 | ## - Don't want to use -MD because we'd like the dependencies to end |
128 | 206 | ## up in a subdir. Having to rename by hand is ugly. |
129 | 207 | ## (We might end up doing this anyway to support other compilers.) |
130 | 208 | ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like |
131 | ## -MM, not -M (despite what the docs say). | |
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. | |
132 | 211 | ## - Using -M directly means running the compiler twice (even worse |
133 | 212 | ## than renaming). |
134 | 213 | if test -z "$gccflag"; then |
136 | 215 | fi |
137 | 216 | "$@" -Wp,"$gccflag$tmpdepfile" |
138 | 217 | stat=$? |
139 | if test $stat -eq 0; then : | |
140 | else | |
218 | if test $stat -ne 0; then | |
141 | 219 | rm -f "$tmpdepfile" |
142 | 220 | exit $stat |
143 | 221 | fi |
144 | 222 | rm -f "$depfile" |
145 | 223 | echo "$object : \\" > "$depfile" |
146 | alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | |
147 | ## The second -e expression handles DOS-style file names with drive letters. | |
224 | # The second -e expression handles DOS-style file names with drive | |
225 | # letters. | |
148 | 226 | sed -e 's/^[^:]*: / /' \ |
149 | 227 | -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" |
150 | ## This next piece of magic avoids the `deleted header file' problem. | |
228 | ## This next piece of magic avoids the "deleted header file" problem. | |
151 | 229 | ## The problem is that when a header file which appears in a .P file |
152 | 230 | ## is deleted, the dependency causes make to die (because there is |
153 | 231 | ## typically no way to rebuild the header). We avoid this by adding |
154 | 232 | ## dummy dependencies for each header file. Too bad gcc doesn't do |
155 | 233 | ## this for us directly. |
156 | tr ' ' ' | |
157 | ' < "$tmpdepfile" | | |
158 | ## Some versions of gcc put a space before the `:'. On the theory | |
234 | ## Some versions of gcc put a space before the ':'. On the theory | |
159 | 235 | ## that the space means something, we add a space to the output as |
160 | ## well. | |
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. | |
161 | 238 | ## Some versions of the HPUX 10.20 sed can't process this invocation |
162 | 239 | ## correctly. Breaking it into two sed invocations is a workaround. |
163 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
240 | tr ' ' "$nl" < "$tmpdepfile" \ | |
241 | | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | |
242 | | sed -e 's/$/ :/' >> "$depfile" | |
164 | 243 | rm -f "$tmpdepfile" |
165 | 244 | ;; |
166 | 245 | |
178 | 257 | "$@" -MDupdate "$tmpdepfile" |
179 | 258 | fi |
180 | 259 | stat=$? |
181 | if test $stat -eq 0; then : | |
182 | else | |
260 | if test $stat -ne 0; then | |
183 | 261 | rm -f "$tmpdepfile" |
184 | 262 | exit $stat |
185 | 263 | fi |
187 | 265 | |
188 | 266 | if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files |
189 | 267 | echo "$object : \\" > "$depfile" |
190 | ||
191 | 268 | # Clip off the initial element (the dependent). Don't try to be |
192 | 269 | # clever and replace this with sed code, as IRIX sed won't handle |
193 | 270 | # lines with more than a fixed number of characters (4096 in |
194 | 271 | # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; |
195 | # the IRIX cc adds comments like `#:fec' to the end of the | |
272 | # the IRIX cc adds comments like '#:fec' to the end of the | |
196 | 273 | # dependency line. |
197 | tr ' ' ' | |
198 | ' < "$tmpdepfile" \ | |
199 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ | |
200 | tr ' | |
201 | ' ' ' >> "$depfile" | |
274 | tr ' ' "$nl" < "$tmpdepfile" \ | |
275 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | |
276 | | tr "$nl" ' ' >> "$depfile" | |
202 | 277 | echo >> "$depfile" |
203 | ||
204 | 278 | # The second pass generates a dummy entry for each header file. |
205 | tr ' ' ' | |
206 | ' < "$tmpdepfile" \ | |
207 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | |
208 | >> "$depfile" | |
279 | tr ' ' "$nl" < "$tmpdepfile" \ | |
280 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | |
281 | >> "$depfile" | |
209 | 282 | else |
210 | # The sourcefile does not contain any dependencies, so just | |
211 | # store a dummy comment line, to avoid errors with the Makefile | |
212 | # "include basename.Plo" scheme. | |
213 | echo "#dummy" > "$depfile" | |
283 | make_dummy_depfile | |
214 | 284 | fi |
215 | 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 | |
216 | 293 | ;; |
217 | 294 | |
218 | 295 | aix) |
219 | 296 | # The C for AIX Compiler uses -M and outputs the dependencies |
220 | 297 | # in a .u file. In older versions, this file always lives in the |
221 | # current directory. Also, the AIX compiler puts `$object:' at the | |
298 | # current directory. Also, the AIX compiler puts '$object:' at the | |
222 | 299 | # start of each line; $object doesn't have directory information. |
223 | 300 | # Version 6 uses the directory in both cases. |
224 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
225 | test "x$dir" = "x$object" && dir= | |
226 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
301 | set_dir_from "$object" | |
302 | set_base_from "$object" | |
227 | 303 | if test "$libtool" = yes; then |
228 | 304 | tmpdepfile1=$dir$base.u |
229 | 305 | tmpdepfile2=$base.u |
236 | 312 | "$@" -M |
237 | 313 | fi |
238 | 314 | stat=$? |
239 | ||
240 | if test $stat -eq 0; then : | |
241 | else | |
315 | if test $stat -ne 0; then | |
242 | 316 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" |
243 | 317 | exit $stat |
244 | 318 | fi |
247 | 321 | do |
248 | 322 | test -f "$tmpdepfile" && break |
249 | 323 | done |
250 | if test -f "$tmpdepfile"; then | |
251 | # Each line is of the form `foo.o: dependent.h'. | |
252 | # Do two passes, one to just change these to | |
253 | # `$object: dependent.h' and one to simply `dependent.h:'. | |
254 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
255 | # That's a tab and a space in the []. | |
256 | sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
257 | else | |
258 | # The sourcefile does not contain any dependencies, so just | |
259 | # store a dummy comment line, to avoid errors with the Makefile | |
260 | # "include basename.Plo" scheme. | |
261 | echo "#dummy" > "$depfile" | |
262 | fi | |
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" | |
263 | 355 | rm -f "$tmpdepfile" |
264 | 356 | ;; |
265 | 357 | |
266 | icc) | |
267 | # Intel's C compiler understands `-MD -MF file'. However on | |
268 | # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c | |
269 | # ICC 7.0 will fill foo.d with something like | |
270 | # foo.o: sub/foo.c | |
271 | # foo.o: sub/foo.h | |
272 | # which is wrong. We want: | |
273 | # sub/foo.o: sub/foo.c | |
274 | # sub/foo.o: sub/foo.h | |
275 | # sub/foo.c: | |
276 | # sub/foo.h: | |
277 | # ICC 7.1 will output | |
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 | |
278 | 368 | # foo.o: sub/foo.c sub/foo.h |
279 | # and will wrap long lines using \ : | |
369 | # and will wrap long lines using '\' : | |
280 | 370 | # foo.o: sub/foo.c ... \ |
281 | 371 | # sub/foo.h ... \ |
282 | 372 | # ... |
283 | ||
284 | "$@" -MD -MF "$tmpdepfile" | |
285 | stat=$? | |
286 | if test $stat -eq 0; then : | |
287 | else | |
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 | |
288 | 418 | rm -f "$tmpdepfile" |
289 | 419 | exit $stat |
290 | 420 | fi |
296 | 426 | sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" |
297 | 427 | # Some versions of the HPUX 10.20 sed can't process this invocation |
298 | 428 | # correctly. Breaking it into two sed invocations is a workaround. |
299 | sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | | |
300 | sed -e 's/$/ :/' >> "$depfile" | |
429 | sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | |
430 | | sed -e 's/$/ :/' >> "$depfile" | |
301 | 431 | rm -f "$tmpdepfile" |
302 | 432 | ;; |
303 | 433 | |
308 | 438 | # 'foo.d', which lands next to the object file, wherever that |
309 | 439 | # happens to be. |
310 | 440 | # Much of this is similar to the tru64 case; see comments there. |
311 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
312 | test "x$dir" = "x$object" && dir= | |
313 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
441 | set_dir_from "$object" | |
442 | set_base_from "$object" | |
314 | 443 | if test "$libtool" = yes; then |
315 | 444 | tmpdepfile1=$dir$base.d |
316 | 445 | tmpdepfile2=$dir.libs/$base.d |
321 | 450 | "$@" +Maked |
322 | 451 | fi |
323 | 452 | stat=$? |
324 | if test $stat -eq 0; then : | |
325 | else | |
453 | if test $stat -ne 0; then | |
326 | 454 | rm -f "$tmpdepfile1" "$tmpdepfile2" |
327 | 455 | exit $stat |
328 | 456 | fi |
332 | 460 | test -f "$tmpdepfile" && break |
333 | 461 | done |
334 | 462 | if test -f "$tmpdepfile"; then |
335 | sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" | |
336 | # Add `dependent.h:' lines. | |
463 | sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" | |
464 | # Add 'dependent.h:' lines. | |
337 | 465 | sed -ne '2,${ |
338 | s/^ *// | |
339 | s/ \\*$// | |
340 | s/$/:/ | |
341 | p | |
342 | }' "$tmpdepfile" >> "$depfile" | |
466 | s/^ *// | |
467 | s/ \\*$// | |
468 | s/$/:/ | |
469 | p | |
470 | }' "$tmpdepfile" >> "$depfile" | |
343 | 471 | else |
344 | echo "#dummy" > "$depfile" | |
472 | make_dummy_depfile | |
345 | 473 | fi |
346 | 474 | rm -f "$tmpdepfile" "$tmpdepfile2" |
347 | 475 | ;; |
348 | 476 | |
349 | 477 | tru64) |
350 | # The Tru64 compiler uses -MD to generate dependencies as a side | |
351 | # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. | |
352 | # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | |
353 | # dependencies in `foo.d' instead, so we check for that too. | |
354 | # Subdirectories are respected. | |
355 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
356 | test "x$dir" = "x$object" && dir= | |
357 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
358 | ||
359 | if test "$libtool" = yes; then | |
360 | # With Tru64 cc, shared objects can also be used to make a | |
361 | # static library. This mechanism is used in libtool 1.4 series to | |
362 | # handle both shared and static libraries in a single compilation. | |
363 | # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. | |
364 | # | |
365 | # With libtool 1.5 this exception was removed, and libtool now | |
366 | # generates 2 separate objects for the 2 libraries. These two | |
367 | # compilations output dependencies in $dir.libs/$base.o.d and | |
368 | # in $dir$base.o.d. We have to check for both files, because | |
369 | # one of the two compilations can be disabled. We should prefer | |
370 | # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | |
371 | # automatically cleaned when .libs/ is deleted, while ignoring | |
372 | # the former would cause a distcleancheck panic. | |
373 | tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 | |
374 | tmpdepfile2=$dir$base.o.d # libtool 1.5 | |
375 | tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 | |
376 | tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 | |
377 | "$@" -Wc,-MD | |
378 | else | |
379 | tmpdepfile1=$dir$base.o.d | |
380 | tmpdepfile2=$dir$base.d | |
381 | tmpdepfile3=$dir$base.d | |
382 | tmpdepfile4=$dir$base.d | |
383 | "$@" -MD | |
384 | fi | |
385 | ||
386 | stat=$? | |
387 | if test $stat -eq 0; then : | |
388 | else | |
389 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
390 | exit $stat | |
391 | fi | |
392 | ||
393 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
394 | do | |
395 | test -f "$tmpdepfile" && break | |
396 | done | |
397 | if test -f "$tmpdepfile"; then | |
398 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
399 | # That's a tab and a space in the []. | |
400 | sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
401 | else | |
402 | echo "#dummy" > "$depfile" | |
403 | fi | |
404 | rm -f "$tmpdepfile" | |
405 | ;; | |
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 | ;; | |
406 | 564 | |
407 | 565 | #nosideeffect) |
408 | 566 | # This comment above is used by automake to tell side-effect |
421 | 579 | shift |
422 | 580 | fi |
423 | 581 | |
424 | # Remove `-o $object'. | |
582 | # Remove '-o $object'. | |
425 | 583 | IFS=" " |
426 | 584 | for arg |
427 | 585 | do |
441 | 599 | done |
442 | 600 | |
443 | 601 | test -z "$dashmflag" && dashmflag=-M |
444 | # Require at least two characters before searching for `:' | |
602 | # Require at least two characters before searching for ':' | |
445 | 603 | # in the target name. This is to cope with DOS-style filenames: |
446 | # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. | |
604 | # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. | |
447 | 605 | "$@" $dashmflag | |
448 | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" | |
606 | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" | |
449 | 607 | rm -f "$depfile" |
450 | 608 | cat < "$tmpdepfile" > "$depfile" |
451 | tr ' ' ' | |
452 | ' < "$tmpdepfile" | \ | |
453 | ## Some versions of the HPUX 10.20 sed can't process this invocation | |
454 | ## correctly. Breaking it into two sed invocations is a workaround. | |
455 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$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" | |
456 | 614 | rm -f "$tmpdepfile" |
457 | 615 | ;; |
458 | 616 | |
502 | 660 | touch "$tmpdepfile" |
503 | 661 | ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" |
504 | 662 | rm -f "$depfile" |
505 | cat < "$tmpdepfile" > "$depfile" | |
506 | sed '1,2d' "$tmpdepfile" | tr ' ' ' | |
507 | ' | \ | |
508 | ## Some versions of the HPUX 10.20 sed can't process this invocation | |
509 | ## correctly. Breaking it into two sed invocations is a workaround. | |
510 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$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" | |
511 | 672 | rm -f "$tmpdepfile" "$tmpdepfile".bak |
512 | 673 | ;; |
513 | 674 | |
524 | 685 | shift |
525 | 686 | fi |
526 | 687 | |
527 | # Remove `-o $object'. | |
688 | # Remove '-o $object'. | |
528 | 689 | IFS=" " |
529 | 690 | for arg |
530 | 691 | do |
543 | 704 | esac |
544 | 705 | done |
545 | 706 | |
546 | "$@" -E | | |
547 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
548 | -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | | |
549 | sed '$ s: \\$::' > "$tmpdepfile" | |
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" | |
550 | 711 | rm -f "$depfile" |
551 | 712 | echo "$object : \\" > "$depfile" |
552 | 713 | cat < "$tmpdepfile" >> "$depfile" |
578 | 739 | shift |
579 | 740 | ;; |
580 | 741 | "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") |
581 | set fnord "$@" | |
582 | shift | |
583 | shift | |
584 | ;; | |
742 | set fnord "$@" | |
743 | shift | |
744 | shift | |
745 | ;; | |
585 | 746 | *) |
586 | set fnord "$@" "$arg" | |
587 | shift | |
588 | shift | |
589 | ;; | |
747 | set fnord "$@" "$arg" | |
748 | shift | |
749 | shift | |
750 | ;; | |
590 | 751 | esac |
591 | 752 | done |
592 | 753 | "$@" -E 2>/dev/null | |
593 | 754 | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" |
594 | 755 | rm -f "$depfile" |
595 | 756 | echo "$object : \\" > "$depfile" |
596 | sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" | |
597 | echo " " >> "$depfile" | |
757 | sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" | |
758 | echo "$tab" >> "$depfile" | |
598 | 759 | sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" |
599 | 760 | rm -f "$tmpdepfile" |
600 | 761 | ;; |
0 | 0 | #!/bin/sh |
1 | 1 | # install - install a program, script, or datafile |
2 | 2 | |
3 | scriptversion=2009-04-28.21; # UTC | |
3 | scriptversion=2013-12-25.23; # UTC | |
4 | 4 | |
5 | 5 | # This originates from X11R5 (mit/util/scripts/install.sh), which was |
6 | 6 | # later released in X11R6 (xc/config/util/install.sh) with the |
34 | 34 | # FSF changes to this file are in the public domain. |
35 | 35 | # |
36 | 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 | |
37 | # 'make' implicit rules from creating a file called install from it | |
38 | 38 | # when there is no Makefile. |
39 | 39 | # |
40 | 40 | # This script is compatible with the BSD install script, but was written |
41 | 41 | # from scratch. |
42 | 42 | |
43 | tab=' ' | |
43 | 44 | nl=' |
44 | 45 | ' |
45 | IFS=" "" $nl" | |
46 | ||
47 | # set DOITPROG to echo to test this script | |
48 | ||
49 | # Don't use :- since 4.3BSD and earlier shells don't like it. | |
46 | IFS=" $tab$nl" | |
47 | ||
48 | # Set DOITPROG to "echo" to test this script. | |
49 | ||
50 | 50 | doit=${DOITPROG-} |
51 | if test -z "$doit"; then | |
52 | doit_exec=exec | |
53 | else | |
54 | doit_exec=$doit | |
55 | fi | |
51 | doit_exec=${doit:-exec} | |
56 | 52 | |
57 | 53 | # Put in absolute file names if you don't have them in your path; |
58 | 54 | # or use environment vars. |
67 | 63 | rmprog=${RMPROG-rm} |
68 | 64 | stripprog=${STRIPPROG-strip} |
69 | 65 | |
70 | posix_glob='?' | |
71 | initialize_posix_glob=' | |
72 | test "$posix_glob" != "?" || { | |
73 | if (set -f) 2>/dev/null; then | |
74 | posix_glob= | |
75 | else | |
76 | posix_glob=: | |
77 | fi | |
78 | } | |
79 | ' | |
80 | ||
81 | 66 | posix_mkdir= |
82 | 67 | |
83 | 68 | # Desired mode of installed file. |
96 | 81 | dst_arg= |
97 | 82 | |
98 | 83 | copy_on_change=false |
99 | no_target_directory= | |
84 | is_target_a_directory=possibly | |
100 | 85 | |
101 | 86 | usage="\ |
102 | 87 | Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE |
136 | 121 | -d) dir_arg=true;; |
137 | 122 | |
138 | 123 | -g) chgrpcmd="$chgrpprog $2" |
139 | shift;; | |
124 | shift;; | |
140 | 125 | |
141 | 126 | --help) echo "$usage"; exit $?;; |
142 | 127 | |
143 | 128 | -m) mode=$2 |
144 | case $mode in | |
145 | *' '* | *' '* | *' | |
146 | '* | *'*'* | *'?'* | *'['*) | |
147 | echo "$0: invalid mode: $mode" >&2 | |
148 | exit 1;; | |
149 | esac | |
150 | shift;; | |
129 | case $mode in | |
130 | *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) | |
131 | echo "$0: invalid mode: $mode" >&2 | |
132 | exit 1;; | |
133 | esac | |
134 | shift;; | |
151 | 135 | |
152 | 136 | -o) chowncmd="$chownprog $2" |
153 | shift;; | |
137 | shift;; | |
154 | 138 | |
155 | 139 | -s) stripcmd=$stripprog;; |
156 | 140 | |
157 | -t) dst_arg=$2 | |
158 | shift;; | |
159 | ||
160 | -T) no_target_directory=true;; | |
141 | -t) | |
142 | is_target_a_directory=always | |
143 | dst_arg=$2 | |
144 | # Protect names problematic for 'test' and other utilities. | |
145 | case $dst_arg in | |
146 | -* | [=\(\)!]) dst_arg=./$dst_arg;; | |
147 | esac | |
148 | shift;; | |
149 | ||
150 | -T) is_target_a_directory=never;; | |
161 | 151 | |
162 | 152 | --version) echo "$0 $scriptversion"; exit $?;; |
163 | 153 | |
164 | --) shift | |
165 | break;; | |
166 | ||
167 | -*) echo "$0: invalid option: $1" >&2 | |
168 | exit 1;; | |
154 | --) shift | |
155 | break;; | |
156 | ||
157 | -*) echo "$0: invalid option: $1" >&2 | |
158 | exit 1;; | |
169 | 159 | |
170 | 160 | *) break;; |
171 | 161 | esac |
172 | 162 | shift |
173 | 163 | done |
164 | ||
165 | # We allow the use of options -d and -T together, by making -d | |
166 | # take the precedence; this is for compatibility with GNU install. | |
167 | ||
168 | if test -n "$dir_arg"; then | |
169 | if test -n "$dst_arg"; then | |
170 | echo "$0: target directory not allowed when installing a directory." >&2 | |
171 | exit 1 | |
172 | fi | |
173 | fi | |
174 | 174 | |
175 | 175 | if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then |
176 | 176 | # When -d is used, all remaining arguments are directories to create. |
185 | 185 | fi |
186 | 186 | shift # arg |
187 | 187 | dst_arg=$arg |
188 | # Protect names problematic for 'test' and other utilities. | |
189 | case $dst_arg in | |
190 | -* | [=\(\)!]) dst_arg=./$dst_arg;; | |
191 | esac | |
188 | 192 | done |
189 | 193 | fi |
190 | 194 | |
193 | 197 | echo "$0: no input file specified." >&2 |
194 | 198 | exit 1 |
195 | 199 | fi |
196 | # It's OK to call `install-sh -d' without argument. | |
200 | # It's OK to call 'install-sh -d' without argument. | |
197 | 201 | # This can happen when creating conditional directories. |
198 | 202 | exit 0 |
199 | 203 | fi |
200 | 204 | |
201 | 205 | if test -z "$dir_arg"; then |
202 | trap '(exit $?); exit' 1 2 13 15 | |
206 | if test $# -gt 1 || test "$is_target_a_directory" = always; then | |
207 | if test ! -d "$dst_arg"; then | |
208 | echo "$0: $dst_arg: Is not a directory." >&2 | |
209 | exit 1 | |
210 | fi | |
211 | fi | |
212 | fi | |
213 | ||
214 | if test -z "$dir_arg"; then | |
215 | do_exit='(exit $ret); exit $ret' | |
216 | trap "ret=129; $do_exit" 1 | |
217 | trap "ret=130; $do_exit" 2 | |
218 | trap "ret=141; $do_exit" 13 | |
219 | trap "ret=143; $do_exit" 15 | |
203 | 220 | |
204 | 221 | # Set umask so as not to create temps with too-generous modes. |
205 | 222 | # However, 'strip' requires both read and write access to temps. |
210 | 227 | |
211 | 228 | *[0-7]) |
212 | 229 | if test -z "$stripcmd"; then |
213 | u_plus_rw= | |
230 | u_plus_rw= | |
214 | 231 | else |
215 | u_plus_rw='% 200' | |
232 | u_plus_rw='% 200' | |
216 | 233 | fi |
217 | 234 | cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; |
218 | 235 | *) |
219 | 236 | if test -z "$stripcmd"; then |
220 | u_plus_rw= | |
237 | u_plus_rw= | |
221 | 238 | else |
222 | u_plus_rw=,u+rw | |
239 | u_plus_rw=,u+rw | |
223 | 240 | fi |
224 | 241 | cp_umask=$mode$u_plus_rw;; |
225 | 242 | esac |
227 | 244 | |
228 | 245 | for src |
229 | 246 | do |
230 | # Protect names starting with `-'. | |
247 | # Protect names problematic for 'test' and other utilities. | |
231 | 248 | case $src in |
232 | -*) src=./$src;; | |
249 | -* | [=\(\)!]) src=./$src;; | |
233 | 250 | esac |
234 | 251 | |
235 | 252 | if test -n "$dir_arg"; then |
251 | 268 | echo "$0: no destination specified." >&2 |
252 | 269 | exit 1 |
253 | 270 | fi |
254 | ||
255 | 271 | dst=$dst_arg |
256 | # Protect names starting with `-'. | |
257 | case $dst in | |
258 | -*) dst=./$dst;; | |
259 | esac | |
260 | 272 | |
261 | 273 | # If destination is a directory, append the input filename; won't work |
262 | 274 | # if double slashes aren't ignored. |
263 | 275 | if test -d "$dst"; then |
264 | if test -n "$no_target_directory"; then | |
265 | echo "$0: $dst_arg: Is a directory" >&2 | |
266 | exit 1 | |
276 | if test "$is_target_a_directory" = never; then | |
277 | echo "$0: $dst_arg: Is a directory" >&2 | |
278 | exit 1 | |
267 | 279 | fi |
268 | 280 | dstdir=$dst |
269 | 281 | dst=$dstdir/`basename "$src"` |
270 | 282 | dstdir_status=0 |
271 | 283 | else |
272 | # Prefer dirname, but fall back on a substitute if dirname fails. | |
273 | dstdir=` | |
274 | (dirname "$dst") 2>/dev/null || | |
275 | expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
276 | X"$dst" : 'X\(//\)[^/]' \| \ | |
277 | X"$dst" : 'X\(//\)$' \| \ | |
278 | X"$dst" : 'X\(/\)' \| . 2>/dev/null || | |
279 | echo X"$dst" | | |
280 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
281 | s//\1/ | |
282 | q | |
283 | } | |
284 | /^X\(\/\/\)[^/].*/{ | |
285 | s//\1/ | |
286 | q | |
287 | } | |
288 | /^X\(\/\/\)$/{ | |
289 | s//\1/ | |
290 | q | |
291 | } | |
292 | /^X\(\/\).*/{ | |
293 | s//\1/ | |
294 | q | |
295 | } | |
296 | s/.*/./; q' | |
297 | ` | |
298 | ||
284 | dstdir=`dirname "$dst"` | |
299 | 285 | test -d "$dstdir" |
300 | 286 | dstdir_status=$? |
301 | 287 | fi |
306 | 292 | if test $dstdir_status != 0; then |
307 | 293 | case $posix_mkdir in |
308 | 294 | '') |
309 | # Create intermediate dirs using mode 755 as modified by the umask. | |
310 | # This is like FreeBSD 'install' as of 1997-10-28. | |
311 | umask=`umask` | |
312 | case $stripcmd.$umask in | |
313 | # Optimize common cases. | |
314 | *[2367][2367]) mkdir_umask=$umask;; | |
315 | .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; | |
316 | ||
317 | *[0-7]) | |
318 | mkdir_umask=`expr $umask + 22 \ | |
319 | - $umask % 100 % 40 + $umask % 20 \ | |
320 | - $umask % 10 % 4 + $umask % 2 | |
321 | `;; | |
322 | *) mkdir_umask=$umask,go-w;; | |
323 | esac | |
324 | ||
325 | # With -d, create the new directory with the user-specified mode. | |
326 | # Otherwise, rely on $mkdir_umask. | |
327 | if test -n "$dir_arg"; then | |
328 | mkdir_mode=-m$mode | |
329 | else | |
330 | mkdir_mode= | |
331 | fi | |
332 | ||
333 | posix_mkdir=false | |
334 | case $umask in | |
335 | *[123567][0-7][0-7]) | |
336 | # POSIX mkdir -p sets u+wx bits regardless of umask, which | |
337 | # is incompatible with FreeBSD 'install' when (umask & 300) != 0. | |
338 | ;; | |
339 | *) | |
340 | tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ | |
341 | trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 | |
342 | ||
343 | if (umask $mkdir_umask && | |
344 | exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 | |
345 | then | |
346 | if test -z "$dir_arg" || { | |
347 | # Check for POSIX incompatibilities with -m. | |
348 | # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | |
349 | # other-writeable bit of parent directory when it shouldn't. | |
350 | # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | |
351 | ls_ld_tmpdir=`ls -ld "$tmpdir"` | |
352 | case $ls_ld_tmpdir in | |
353 | d????-?r-*) different_mode=700;; | |
354 | d????-?--*) different_mode=755;; | |
355 | *) false;; | |
356 | esac && | |
357 | $mkdirprog -m$different_mode -p -- "$tmpdir" && { | |
358 | ls_ld_tmpdir_1=`ls -ld "$tmpdir"` | |
359 | test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" | |
360 | } | |
361 | } | |
362 | then posix_mkdir=: | |
363 | fi | |
364 | rmdir "$tmpdir/d" "$tmpdir" | |
365 | else | |
366 | # Remove any dirs left behind by ancient mkdir implementations. | |
367 | rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null | |
368 | fi | |
369 | trap '' 0;; | |
370 | esac;; | |
295 | # Create intermediate dirs using mode 755 as modified by the umask. | |
296 | # This is like FreeBSD 'install' as of 1997-10-28. | |
297 | umask=`umask` | |
298 | case $stripcmd.$umask in | |
299 | # Optimize common cases. | |
300 | *[2367][2367]) mkdir_umask=$umask;; | |
301 | .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; | |
302 | ||
303 | *[0-7]) | |
304 | mkdir_umask=`expr $umask + 22 \ | |
305 | - $umask % 100 % 40 + $umask % 20 \ | |
306 | - $umask % 10 % 4 + $umask % 2 | |
307 | `;; | |
308 | *) mkdir_umask=$umask,go-w;; | |
309 | esac | |
310 | ||
311 | # With -d, create the new directory with the user-specified mode. | |
312 | # Otherwise, rely on $mkdir_umask. | |
313 | if test -n "$dir_arg"; then | |
314 | mkdir_mode=-m$mode | |
315 | else | |
316 | mkdir_mode= | |
317 | fi | |
318 | ||
319 | posix_mkdir=false | |
320 | case $umask in | |
321 | *[123567][0-7][0-7]) | |
322 | # POSIX mkdir -p sets u+wx bits regardless of umask, which | |
323 | # is incompatible with FreeBSD 'install' when (umask & 300) != 0. | |
324 | ;; | |
325 | *) | |
326 | tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ | |
327 | trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 | |
328 | ||
329 | if (umask $mkdir_umask && | |
330 | exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 | |
331 | then | |
332 | if test -z "$dir_arg" || { | |
333 | # Check for POSIX incompatibilities with -m. | |
334 | # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | |
335 | # other-writable bit of parent directory when it shouldn't. | |
336 | # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | |
337 | ls_ld_tmpdir=`ls -ld "$tmpdir"` | |
338 | case $ls_ld_tmpdir in | |
339 | d????-?r-*) different_mode=700;; | |
340 | d????-?--*) different_mode=755;; | |
341 | *) false;; | |
342 | esac && | |
343 | $mkdirprog -m$different_mode -p -- "$tmpdir" && { | |
344 | ls_ld_tmpdir_1=`ls -ld "$tmpdir"` | |
345 | test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" | |
346 | } | |
347 | } | |
348 | then posix_mkdir=: | |
349 | fi | |
350 | rmdir "$tmpdir/d" "$tmpdir" | |
351 | else | |
352 | # Remove any dirs left behind by ancient mkdir implementations. | |
353 | rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null | |
354 | fi | |
355 | trap '' 0;; | |
356 | esac;; | |
371 | 357 | esac |
372 | 358 | |
373 | 359 | if |
374 | 360 | $posix_mkdir && ( |
375 | umask $mkdir_umask && | |
376 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" | |
361 | umask $mkdir_umask && | |
362 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" | |
377 | 363 | ) |
378 | 364 | then : |
379 | 365 | else |
383 | 369 | # directory the slow way, step by step, checking for races as we go. |
384 | 370 | |
385 | 371 | case $dstdir in |
386 | /*) prefix='/';; | |
387 | -*) prefix='./';; | |
388 | *) prefix='';; | |
372 | /*) prefix='/';; | |
373 | [-=\(\)!]*) prefix='./';; | |
374 | *) prefix='';; | |
389 | 375 | esac |
390 | ||
391 | eval "$initialize_posix_glob" | |
392 | 376 | |
393 | 377 | oIFS=$IFS |
394 | 378 | IFS=/ |
395 | $posix_glob set -f | |
379 | set -f | |
396 | 380 | set fnord $dstdir |
397 | 381 | shift |
398 | $posix_glob set +f | |
382 | set +f | |
399 | 383 | IFS=$oIFS |
400 | 384 | |
401 | 385 | prefixes= |
402 | 386 | |
403 | 387 | for d |
404 | 388 | do |
405 | test -z "$d" && continue | |
406 | ||
407 | prefix=$prefix$d | |
408 | if test -d "$prefix"; then | |
409 | prefixes= | |
410 | else | |
411 | if $posix_mkdir; then | |
412 | (umask=$mkdir_umask && | |
413 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break | |
414 | # Don't fail if two instances are running concurrently. | |
415 | test -d "$prefix" || exit 1 | |
416 | else | |
417 | case $prefix in | |
418 | *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; | |
419 | *) qprefix=$prefix;; | |
420 | esac | |
421 | prefixes="$prefixes '$qprefix'" | |
422 | fi | |
423 | fi | |
424 | prefix=$prefix/ | |
389 | test X"$d" = X && continue | |
390 | ||
391 | prefix=$prefix$d | |
392 | if test -d "$prefix"; then | |
393 | prefixes= | |
394 | else | |
395 | if $posix_mkdir; then | |
396 | (umask=$mkdir_umask && | |
397 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break | |
398 | # Don't fail if two instances are running concurrently. | |
399 | test -d "$prefix" || exit 1 | |
400 | else | |
401 | case $prefix in | |
402 | *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; | |
403 | *) qprefix=$prefix;; | |
404 | esac | |
405 | prefixes="$prefixes '$qprefix'" | |
406 | fi | |
407 | fi | |
408 | prefix=$prefix/ | |
425 | 409 | done |
426 | 410 | |
427 | 411 | if test -n "$prefixes"; then |
428 | # Don't fail if two instances are running concurrently. | |
429 | (umask $mkdir_umask && | |
430 | eval "\$doit_exec \$mkdirprog $prefixes") || | |
431 | test -d "$dstdir" || exit 1 | |
432 | obsolete_mkdir_used=true | |
412 | # Don't fail if two instances are running concurrently. | |
413 | (umask $mkdir_umask && | |
414 | eval "\$doit_exec \$mkdirprog $prefixes") || | |
415 | test -d "$dstdir" || exit 1 | |
416 | obsolete_mkdir_used=true | |
433 | 417 | fi |
434 | 418 | fi |
435 | 419 | fi |
464 | 448 | |
465 | 449 | # If -C, don't bother to copy if it wouldn't change the file. |
466 | 450 | if $copy_on_change && |
467 | old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && | |
468 | new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && | |
469 | ||
470 | eval "$initialize_posix_glob" && | |
471 | $posix_glob set -f && | |
451 | old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && | |
452 | new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && | |
453 | set -f && | |
472 | 454 | set X $old && old=:$2:$4:$5:$6 && |
473 | 455 | set X $new && new=:$2:$4:$5:$6 && |
474 | $posix_glob set +f && | |
475 | ||
456 | set +f && | |
476 | 457 | test "$old" = "$new" && |
477 | 458 | $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 |
478 | 459 | then |
485 | 466 | # to itself, or perhaps because mv is so ancient that it does not |
486 | 467 | # support -f. |
487 | 468 | { |
488 | # Now remove or move aside any old file at destination location. | |
489 | # We try this two ways since rm can't unlink itself on some | |
490 | # systems and the destination file might be busy for other | |
491 | # reasons. In this case, the final cleanup might fail but the new | |
492 | # file should still install successfully. | |
493 | { | |
494 | test ! -f "$dst" || | |
495 | $doit $rmcmd -f "$dst" 2>/dev/null || | |
496 | { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && | |
497 | { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } | |
498 | } || | |
499 | { echo "$0: cannot unlink or rename $dst" >&2 | |
500 | (exit 1); exit 1 | |
501 | } | |
502 | } && | |
503 | ||
504 | # Now rename the file to the real destination. | |
505 | $doit $mvcmd "$dsttmp" "$dst" | |
469 | # Now remove or move aside any old file at destination location. | |
470 | # We try this two ways since rm can't unlink itself on some | |
471 | # systems and the destination file might be busy for other | |
472 | # reasons. In this case, the final cleanup might fail but the new | |
473 | # file should still install successfully. | |
474 | { | |
475 | test ! -f "$dst" || | |
476 | $doit $rmcmd -f "$dst" 2>/dev/null || | |
477 | { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && | |
478 | { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } | |
479 | } || | |
480 | { echo "$0: cannot unlink or rename $dst" >&2 | |
481 | (exit 1); exit 1 | |
482 | } | |
483 | } && | |
484 | ||
485 | # Now rename the file to the real destination. | |
486 | $doit $mvcmd "$dsttmp" "$dst" | |
506 | 487 | } |
507 | 488 | fi || exit 1 |
508 | 489 |
0 | # Makefile.in generated by automake 1.11.1 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | |
5 | # Inc. | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
4 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
15 | 14 | @SET_MAKE@ |
16 | 15 | |
17 | 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)) | |
18 | 72 | pkgdatadir = $(datadir)/@PACKAGE@ |
19 | 73 | pkgincludedir = $(includedir)/@PACKAGE@ |
20 | 74 | pkglibdir = $(libdir)/@PACKAGE@ |
34 | 88 | build_triplet = @build@ |
35 | 89 | host_triplet = @host@ |
36 | 90 | subdir = man |
37 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | |
38 | 91 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
39 | 92 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
40 | 93 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
41 | 94 | $(ACLOCAL_M4) |
95 | DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) | |
42 | 96 | mkinstalldirs = $(install_sh) -d |
43 | 97 | CONFIG_HEADER = $(top_builddir)/config.h |
44 | 98 | CONFIG_CLEAN_FILES = |
45 | 99 | CONFIG_CLEAN_VPATH_FILES = |
46 | AM_V_GEN = $(am__v_GEN_$(V)) | |
47 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | |
48 | am__v_GEN_0 = @echo " GEN " $@; | |
49 | AM_V_at = $(am__v_at_$(V)) | |
50 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | |
100 | AM_V_P = $(am__v_P_@AM_V@) | |
101 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
102 | am__v_P_0 = false | |
103 | am__v_P_1 = : | |
104 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
105 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
106 | am__v_GEN_0 = @echo " GEN " $@; | |
107 | am__v_GEN_1 = | |
108 | AM_V_at = $(am__v_at_@AM_V@) | |
109 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
51 | 110 | am__v_at_0 = @ |
111 | am__v_at_1 = | |
52 | 112 | SOURCES = |
53 | 113 | DIST_SOURCES = |
114 | am__can_run_installinfo = \ | |
115 | case $$AM_UPDATE_INFO_DIR in \ | |
116 | n|no|NO) false;; \ | |
117 | *) (install-info --version) >/dev/null 2>&1;; \ | |
118 | esac | |
54 | 119 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; |
55 | 120 | am__vpath_adj = case $$p in \ |
56 | 121 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ |
72 | 137 | am__base_list = \ |
73 | 138 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ |
74 | 139 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' |
140 | am__uninstall_files_from_dir = { \ | |
141 | test -z "$$files" \ | |
142 | || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ | |
143 | || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ | |
144 | $(am__cd) "$$dir" && rm -f $$files; }; \ | |
145 | } | |
75 | 146 | am__installdirs = "$(DESTDIR)$(appmandir)" |
76 | 147 | DATA = $(appman_DATA) |
148 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
149 | am__DIST_COMMON = $(srcdir)/Makefile.in | |
77 | 150 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
78 | 151 | ACLOCAL = @ACLOCAL@ |
79 | 152 | ADMIN_MAN_DIR = @ADMIN_MAN_DIR@ |
121 | 194 | LIB_MAN_DIR = @LIB_MAN_DIR@ |
122 | 195 | LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@ |
123 | 196 | LTLIBOBJS = @LTLIBOBJS@ |
124 | MAINT = @MAINT@ | |
125 | 197 | MAKEINFO = @MAKEINFO@ |
126 | 198 | MAN_SUBSTS = @MAN_SUBSTS@ |
127 | 199 | MISC_MAN_DIR = @MISC_MAN_DIR@ |
137 | 209 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
138 | 210 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
139 | 211 | PKG_CONFIG = @PKG_CONFIG@ |
212 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
213 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
140 | 214 | SED = @SED@ |
141 | 215 | SET_MAKE = @SET_MAKE@ |
142 | 216 | SHELL = @SHELL@ |
207 | 281 | |
208 | 282 | .SUFFIXES: |
209 | 283 | .SUFFIXES: .$(APP_MAN_SUFFIX) .man |
210 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | |
284 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | |
211 | 285 | @for dep in $?; do \ |
212 | 286 | case '$(am__configure_deps)' in \ |
213 | 287 | *$$dep*) \ |
219 | 293 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign man/Makefile'; \ |
220 | 294 | $(am__cd) $(top_srcdir) && \ |
221 | 295 | $(AUTOMAKE) --foreign man/Makefile |
222 | .PRECIOUS: Makefile | |
223 | 296 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
224 | 297 | @case '$?' in \ |
225 | 298 | *config.status*) \ |
232 | 305 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
233 | 306 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
234 | 307 | |
235 | $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) | |
308 | $(top_srcdir)/configure: $(am__configure_deps) | |
236 | 309 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
237 | $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) | |
310 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | |
238 | 311 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
239 | 312 | $(am__aclocal_m4_deps): |
240 | 313 | install-appmanDATA: $(appman_DATA) |
241 | 314 | @$(NORMAL_INSTALL) |
242 | test -z "$(appmandir)" || $(MKDIR_P) "$(DESTDIR)$(appmandir)" | |
243 | 315 | @list='$(appman_DATA)'; test -n "$(appmandir)" || list=; \ |
316 | if test -n "$$list"; then \ | |
317 | echo " $(MKDIR_P) '$(DESTDIR)$(appmandir)'"; \ | |
318 | $(MKDIR_P) "$(DESTDIR)$(appmandir)" || exit 1; \ | |
319 | fi; \ | |
244 | 320 | for p in $$list; do \ |
245 | 321 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
246 | 322 | echo "$$d$$p"; \ |
254 | 330 | @$(NORMAL_UNINSTALL) |
255 | 331 | @list='$(appman_DATA)'; test -n "$(appmandir)" || list=; \ |
256 | 332 | files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ |
257 | test -n "$$files" || exit 0; \ | |
258 | echo " ( cd '$(DESTDIR)$(appmandir)' && rm -f" $$files ")"; \ | |
259 | cd "$(DESTDIR)$(appmandir)" && rm -f $$files | |
260 | tags: TAGS | |
261 | TAGS: | |
262 | ||
263 | ctags: CTAGS | |
264 | CTAGS: | |
333 | dir='$(DESTDIR)$(appmandir)'; $(am__uninstall_files_from_dir) | |
334 | tags TAGS: | |
335 | ||
336 | ctags CTAGS: | |
337 | ||
338 | cscope cscopelist: | |
265 | 339 | |
266 | 340 | |
267 | 341 | distdir: $(DISTFILES) |
311 | 385 | |
312 | 386 | installcheck: installcheck-am |
313 | 387 | install-strip: |
314 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
315 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
316 | `test -z '$(STRIP)' || \ | |
317 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | |
388 | if test -z '$(STRIP)'; then \ | |
389 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
390 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
391 | install; \ | |
392 | else \ | |
393 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
394 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
395 | "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | |
396 | fi | |
318 | 397 | mostlyclean-generic: |
319 | 398 | |
320 | 399 | clean-generic: |
395 | 474 | |
396 | 475 | .MAKE: install-am install-strip |
397 | 476 | |
398 | .PHONY: all all-am check check-am clean clean-generic distclean \ | |
399 | distclean-generic distdir dvi dvi-am html html-am info info-am \ | |
400 | install install-am install-appmanDATA install-data \ | |
401 | install-data-am install-dvi install-dvi-am install-exec \ | |
402 | install-exec-am install-html install-html-am install-info \ | |
403 | install-info-am install-man install-pdf install-pdf-am \ | |
404 | install-ps install-ps-am install-strip installcheck \ | |
405 | installcheck-am installdirs maintainer-clean \ | |
477 | .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ | |
478 | ctags-am distclean distclean-generic distdir dvi dvi-am html \ | |
479 | html-am info info-am install install-am install-appmanDATA \ | |
480 | install-data install-data-am install-dvi install-dvi-am \ | |
481 | install-exec install-exec-am install-html install-html-am \ | |
482 | install-info install-info-am install-man install-pdf \ | |
483 | install-pdf-am install-ps install-ps-am install-strip \ | |
484 | installcheck installcheck-am installdirs maintainer-clean \ | |
406 | 485 | maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ |
407 | pdf-am ps ps-am uninstall uninstall-am uninstall-appmanDATA | |
486 | pdf-am ps ps-am tags-am uninstall uninstall-am \ | |
487 | uninstall-appmanDATA | |
488 | ||
489 | .PRECIOUS: Makefile | |
408 | 490 | |
409 | 491 | |
410 | 492 | # String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure |
63 | 63 | is given first, followed by the widget instance name. |
64 | 64 | .sp |
65 | 65 | .nf |
66 | .TA .5i | |
67 | .ta .5i | |
66 | .ft CW | |
68 | 67 | XLogo xlogo |
69 | Logo xlogo | |
68 | Logo xlogo | |
69 | .ft | |
70 | 70 | .fi |
71 | 71 | .sp |
72 | 72 | .SH ENVIRONMENT |
0 | 0 | #! /bin/sh |
1 | # Common stub for a few missing GNU programs while installing. | |
2 | ||
3 | scriptversion=2009-04-28.21; # UTC | |
4 | ||
5 | # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, | |
6 | # 2008, 2009 Free Software Foundation, Inc. | |
7 | # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | |
1 | # Common wrapper for a few potentially missing GNU programs. | |
2 | ||
3 | scriptversion=2013-10-28.13; # UTC | |
4 | ||
5 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
6 | # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | |
8 | 7 | |
9 | 8 | # This program is free software; you can redistribute it and/or modify |
10 | 9 | # it under the terms of the GNU General Public License as published by |
25 | 24 | # the same distribution terms that you use for the rest of that program. |
26 | 25 | |
27 | 26 | if test $# -eq 0; then |
28 | echo 1>&2 "Try \`$0 --help' for more information" | |
27 | echo 1>&2 "Try '$0 --help' for more information" | |
29 | 28 | exit 1 |
30 | 29 | fi |
31 | 30 | |
32 | run=: | |
33 | sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' | |
34 | sed_minuso='s/.* -o \([^ ]*\).*/\1/p' | |
35 | ||
36 | # In the cases where this matters, `missing' is being run in the | |
37 | # srcdir already. | |
38 | if test -f configure.ac; then | |
39 | configure_ac=configure.ac | |
40 | else | |
41 | configure_ac=configure.in | |
42 | fi | |
43 | ||
44 | msg="missing on your system" | |
45 | ||
46 | 31 | case $1 in |
47 | --run) | |
48 | # Try to run requested program, and just exit if it succeeds. | |
49 | run= | |
50 | shift | |
51 | "$@" && exit 0 | |
52 | # Exit code 63 means version mismatch. This often happens | |
53 | # when the user try to use an ancient version of a tool on | |
54 | # a file that requires a minimum version. In this case we | |
55 | # we should proceed has if the program had been absent, or | |
56 | # if --run hadn't been passed. | |
57 | if test $? = 63; then | |
58 | run=: | |
59 | msg="probably too old" | |
60 | fi | |
61 | ;; | |
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 | ;; | |
62 | 43 | |
63 | 44 | -h|--h|--he|--hel|--help) |
64 | 45 | echo "\ |
65 | 46 | $0 [OPTION]... PROGRAM [ARGUMENT]... |
66 | 47 | |
67 | Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an | |
68 | error status if there is no known handling for PROGRAM. | |
48 | Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due | |
49 | to PROGRAM being missing or too old. | |
69 | 50 | |
70 | 51 | Options: |
71 | 52 | -h, --help display this help and exit |
72 | 53 | -v, --version output version information and exit |
73 | --run try to run the given command, and emulate it if it fails | |
74 | 54 | |
75 | 55 | Supported PROGRAM values: |
76 | aclocal touch file \`aclocal.m4' | |
77 | autoconf touch file \`configure' | |
78 | autoheader touch file \`config.h.in' | |
79 | autom4te touch the output file, or create a stub one | |
80 | automake touch all \`Makefile.in' files | |
81 | bison create \`y.tab.[ch]', if possible, from existing .[ch] | |
82 | flex create \`lex.yy.c', if possible, from existing .c | |
83 | help2man touch the output file | |
84 | lex create \`lex.yy.c', if possible, from existing .c | |
85 | makeinfo touch the output file | |
86 | tar try tar, gnutar, gtar, then tar without non-portable flags | |
87 | yacc create \`y.tab.[ch]', if possible, from existing .[ch] | |
88 | ||
89 | Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and | |
90 | \`g' are ignored when checking the name. | |
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. | |
91 | 61 | |
92 | 62 | Send bug reports to <bug-automake@gnu.org>." |
93 | 63 | exit $? |
99 | 69 | ;; |
100 | 70 | |
101 | 71 | -*) |
102 | echo 1>&2 "$0: Unknown \`$1' option" | |
103 | echo 1>&2 "Try \`$0 --help' for more information" | |
72 | echo 1>&2 "$0: unknown '$1' option" | |
73 | echo 1>&2 "Try '$0 --help' for more information" | |
104 | 74 | exit 1 |
105 | 75 | ;; |
106 | 76 | |
107 | 77 | esac |
108 | 78 | |
109 | # normalize program name to check for. | |
110 | program=`echo "$1" | sed ' | |
111 | s/^gnu-//; t | |
112 | s/^gnu//; t | |
113 | s/^g//; t'` | |
114 | ||
115 | # Now exit if we have it, but it failed. Also exit now if we | |
116 | # don't have it and --version was passed (most likely to detect | |
117 | # the program). This is about non-GNU programs, so use $1 not | |
118 | # $program. | |
119 | case $1 in | |
120 | lex*|yacc*) | |
121 | # Not GNU programs, they don't have --version. | |
122 | ;; | |
123 | ||
124 | tar*) | |
125 | if test -n "$run"; then | |
126 | echo 1>&2 "ERROR: \`tar' requires --run" | |
127 | exit 1 | |
128 | elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | |
129 | exit 1 | |
130 | fi | |
131 | ;; | |
132 | ||
133 | *) | |
134 | if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | |
135 | # We have it, but it failed. | |
136 | exit 1 | |
137 | elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | |
138 | # Could not run --version or --help. This is probably someone | |
139 | # running `$TOOL --version' or `$TOOL --help' to check whether | |
140 | # $TOOL exists and not knowing $TOOL uses missing. | |
141 | exit 1 | |
142 | fi | |
143 | ;; | |
144 | esac | |
145 | ||
146 | # If it does not exist, or fails to run (possibly an outdated version), | |
147 | # try to emulate it. | |
148 | case $program in | |
149 | aclocal*) | |
150 | echo 1>&2 "\ | |
151 | WARNING: \`$1' is $msg. You should only need it if | |
152 | you modified \`acinclude.m4' or \`${configure_ac}'. You might want | |
153 | to install the \`Automake' and \`Perl' packages. Grab them from | |
154 | any GNU archive site." | |
155 | touch aclocal.m4 | |
156 | ;; | |
157 | ||
158 | autoconf*) | |
159 | echo 1>&2 "\ | |
160 | WARNING: \`$1' is $msg. You should only need it if | |
161 | you modified \`${configure_ac}'. You might want to install the | |
162 | \`Autoconf' and \`GNU m4' packages. Grab them from any GNU | |
163 | archive site." | |
164 | touch configure | |
165 | ;; | |
166 | ||
167 | autoheader*) | |
168 | echo 1>&2 "\ | |
169 | WARNING: \`$1' is $msg. You should only need it if | |
170 | you modified \`acconfig.h' or \`${configure_ac}'. You might want | |
171 | to install the \`Autoconf' and \`GNU m4' packages. Grab them | |
172 | from any GNU archive site." | |
173 | files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` | |
174 | test -z "$files" && files="config.h" | |
175 | touch_files= | |
176 | for f in $files; do | |
177 | case $f in | |
178 | *:*) touch_files="$touch_files "`echo "$f" | | |
179 | sed -e 's/^[^:]*://' -e 's/:.*//'`;; | |
180 | *) touch_files="$touch_files $f.in";; | |
181 | esac | |
182 | done | |
183 | touch $touch_files | |
184 | ;; | |
185 | ||
186 | automake*) | |
187 | echo 1>&2 "\ | |
188 | WARNING: \`$1' is $msg. You should only need it if | |
189 | you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. | |
190 | You might want to install the \`Automake' and \`Perl' packages. | |
191 | Grab them from any GNU archive site." | |
192 | find . -type f -name Makefile.am -print | | |
193 | sed 's/\.am$/.in/' | | |
194 | while read f; do touch "$f"; done | |
195 | ;; | |
196 | ||
197 | autom4te*) | |
198 | echo 1>&2 "\ | |
199 | WARNING: \`$1' is needed, but is $msg. | |
200 | You might have modified some files without having the | |
201 | proper tools for further handling them. | |
202 | You can get \`$1' as part of \`Autoconf' from any GNU | |
203 | archive site." | |
204 | ||
205 | file=`echo "$*" | sed -n "$sed_output"` | |
206 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
207 | if test -f "$file"; then | |
208 | touch $file | |
209 | else | |
210 | test -z "$file" || exec >$file | |
211 | echo "#! /bin/sh" | |
212 | echo "# Created by GNU Automake missing as a replacement of" | |
213 | echo "# $ $@" | |
214 | echo "exit 0" | |
215 | chmod +x $file | |
216 | exit 1 | |
217 | fi | |
218 | ;; | |
219 | ||
220 | bison*|yacc*) | |
221 | echo 1>&2 "\ | |
222 | WARNING: \`$1' $msg. You should only need it if | |
223 | you modified a \`.y' file. You may need the \`Bison' package | |
224 | in order for those modifications to take effect. You can get | |
225 | \`Bison' from any GNU archive site." | |
226 | rm -f y.tab.c y.tab.h | |
227 | if test $# -ne 1; then | |
228 | eval LASTARG="\${$#}" | |
229 | case $LASTARG in | |
230 | *.y) | |
231 | SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` | |
232 | if test -f "$SRCFILE"; then | |
233 | cp "$SRCFILE" y.tab.c | |
234 | fi | |
235 | SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` | |
236 | if test -f "$SRCFILE"; then | |
237 | cp "$SRCFILE" y.tab.h | |
238 | fi | |
239 | ;; | |
240 | esac | |
241 | fi | |
242 | if test ! -f y.tab.h; then | |
243 | echo >y.tab.h | |
244 | fi | |
245 | if test ! -f y.tab.c; then | |
246 | echo 'main() { return 0; }' >y.tab.c | |
247 | fi | |
248 | ;; | |
249 | ||
250 | lex*|flex*) | |
251 | echo 1>&2 "\ | |
252 | WARNING: \`$1' is $msg. You should only need it if | |
253 | you modified a \`.l' file. You may need the \`Flex' package | |
254 | in order for those modifications to take effect. You can get | |
255 | \`Flex' from any GNU archive site." | |
256 | rm -f lex.yy.c | |
257 | if test $# -ne 1; then | |
258 | eval LASTARG="\${$#}" | |
259 | case $LASTARG in | |
260 | *.l) | |
261 | SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` | |
262 | if test -f "$SRCFILE"; then | |
263 | cp "$SRCFILE" lex.yy.c | |
264 | fi | |
265 | ;; | |
266 | esac | |
267 | fi | |
268 | if test ! -f lex.yy.c; then | |
269 | echo 'main() { return 0; }' >lex.yy.c | |
270 | fi | |
271 | ;; | |
272 | ||
273 | help2man*) | |
274 | echo 1>&2 "\ | |
275 | WARNING: \`$1' is $msg. You should only need it if | |
276 | you modified a dependency of a manual page. You may need the | |
277 | \`Help2man' package in order for those modifications to take | |
278 | effect. You can get \`Help2man' from any GNU archive site." | |
279 | ||
280 | file=`echo "$*" | sed -n "$sed_output"` | |
281 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
282 | if test -f "$file"; then | |
283 | touch $file | |
284 | else | |
285 | test -z "$file" || exec >$file | |
286 | echo ".ab help2man is required to generate this page" | |
287 | exit $? | |
288 | fi | |
289 | ;; | |
290 | ||
291 | makeinfo*) | |
292 | echo 1>&2 "\ | |
293 | WARNING: \`$1' is $msg. You should only need it if | |
294 | you modified a \`.texi' or \`.texinfo' file, or any other file | |
295 | indirectly affecting the aspect of the manual. The spurious | |
296 | call might also be the consequence of using a buggy \`make' (AIX, | |
297 | DU, IRIX). You might want to install the \`Texinfo' package or | |
298 | the \`GNU make' package. Grab either from any GNU archive site." | |
299 | # The file to touch is that specified with -o ... | |
300 | file=`echo "$*" | sed -n "$sed_output"` | |
301 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
302 | if test -z "$file"; then | |
303 | # ... or it is the one specified with @setfilename ... | |
304 | infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` | |
305 | file=`sed -n ' | |
306 | /^@setfilename/{ | |
307 | s/.* \([^ ]*\) *$/\1/ | |
308 | p | |
309 | q | |
310 | }' $infile` | |
311 | # ... or it is derived from the source name (dir/f.texi becomes f.info) | |
312 | test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info | |
313 | fi | |
314 | # If the file does not exist, the user really needs makeinfo; | |
315 | # let's fail without touching anything. | |
316 | test -f $file || exit 1 | |
317 | touch $file | |
318 | ;; | |
319 | ||
320 | tar*) | |
321 | shift | |
322 | ||
323 | # We have already tried tar in the generic part. | |
324 | # Look for gnutar/gtar before invocation to avoid ugly error | |
325 | # messages. | |
326 | if (gnutar --version > /dev/null 2>&1); then | |
327 | gnutar "$@" && exit 0 | |
328 | fi | |
329 | if (gtar --version > /dev/null 2>&1); then | |
330 | gtar "$@" && exit 0 | |
331 | fi | |
332 | firstarg="$1" | |
333 | if shift; then | |
334 | case $firstarg in | |
335 | *o*) | |
336 | firstarg=`echo "$firstarg" | sed s/o//` | |
337 | tar "$firstarg" "$@" && exit 0 | |
338 | ;; | |
339 | esac | |
340 | case $firstarg in | |
341 | *h*) | |
342 | firstarg=`echo "$firstarg" | sed s/h//` | |
343 | tar "$firstarg" "$@" && exit 0 | |
344 | ;; | |
345 | esac | |
346 | fi | |
347 | ||
348 | echo 1>&2 "\ | |
349 | WARNING: I can't seem to be able to run \`tar' with the given arguments. | |
350 | You may want to install GNU tar or Free paxutils, or check the | |
351 | command line arguments." | |
352 | exit 1 | |
353 | ;; | |
354 | ||
355 | *) | |
356 | echo 1>&2 "\ | |
357 | WARNING: \`$1' is needed, and is $msg. | |
358 | You might have modified some files without having the | |
359 | proper tools for further handling them. Check the \`README' file, | |
360 | it often tells you about the needed prerequisites for installing | |
361 | this package. You may also peek at any GNU archive site, in case | |
362 | some other package would contain this missing \`$1' program." | |
363 | exit 1 | |
364 | ;; | |
365 | esac | |
366 | ||
367 | exit 0 | |
79 | # Run the given program, remember its exit status. | |
80 | "$@"; st=$? | |
81 | ||
82 | # If it succeeded, we are done. | |
83 | test $st -eq 0 && exit 0 | |
84 | ||
85 | # Also exit now if we it failed (or wasn't found), and '--version' was | |
86 | # passed; such an option is passed most likely to detect whether the | |
87 | # program is present and works. | |
88 | case $2 in --version|--help) exit $st;; esac | |
89 | ||
90 | # Exit code 63 means version mismatch. This often happens when the user | |
91 | # tries to use an ancient version of a tool on a file that requires a | |
92 | # minimum version. | |
93 | if test $st -eq 63; then | |
94 | msg="probably too old" | |
95 | elif test $st -eq 127; then | |
96 | # Program was missing. | |
97 | msg="missing on your system" | |
98 | else | |
99 | # Program was found and executed, but failed. Give up. | |
100 | exit $st | |
101 | fi | |
102 | ||
103 | perl_URL=http://www.perl.org/ | |
104 | flex_URL=http://flex.sourceforge.net/ | |
105 | gnu_software_URL=http://www.gnu.org/software | |
106 | ||
107 | program_details () | |
108 | { | |
109 | case $1 in | |
110 | aclocal|automake) | |
111 | echo "The '$1' program is part of the GNU Automake package:" | |
112 | echo "<$gnu_software_URL/automake>" | |
113 | echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" | |
114 | echo "<$gnu_software_URL/autoconf>" | |
115 | echo "<$gnu_software_URL/m4/>" | |
116 | echo "<$perl_URL>" | |
117 | ;; | |
118 | autoconf|autom4te|autoheader) | |
119 | echo "The '$1' program is part of the GNU Autoconf package:" | |
120 | echo "<$gnu_software_URL/autoconf/>" | |
121 | echo "It also requires GNU m4 and Perl in order to run:" | |
122 | echo "<$gnu_software_URL/m4/>" | |
123 | echo "<$perl_URL>" | |
124 | ;; | |
125 | esac | |
126 | } | |
127 | ||
128 | give_advice () | |
129 | { | |
130 | # Normalize program name to check for. | |
131 | normalized_program=`echo "$1" | sed ' | |
132 | s/^gnu-//; t | |
133 | s/^gnu//; t | |
134 | s/^g//; t'` | |
135 | ||
136 | printf '%s\n' "'$1' is $msg." | |
137 | ||
138 | configure_deps="'configure.ac' or m4 files included by 'configure.ac'" | |
139 | case $normalized_program in | |
140 | autoconf*) | |
141 | echo "You should only need it if you modified 'configure.ac'," | |
142 | echo "or m4 files included by it." | |
143 | program_details 'autoconf' | |
144 | ;; | |
145 | autoheader*) | |
146 | echo "You should only need it if you modified 'acconfig.h' or" | |
147 | echo "$configure_deps." | |
148 | program_details 'autoheader' | |
149 | ;; | |
150 | automake*) | |
151 | echo "You should only need it if you modified 'Makefile.am' or" | |
152 | echo "$configure_deps." | |
153 | program_details 'automake' | |
154 | ;; | |
155 | aclocal*) | |
156 | echo "You should only need it if you modified 'acinclude.m4' or" | |
157 | echo "$configure_deps." | |
158 | program_details 'aclocal' | |
159 | ;; | |
160 | autom4te*) | |
161 | echo "You might have modified some maintainer files that require" | |
162 | echo "the 'autom4te' program to be rebuilt." | |
163 | program_details 'autom4te' | |
164 | ;; | |
165 | bison*|yacc*) | |
166 | echo "You should only need it if you modified a '.y' file." | |
167 | echo "You may want to install the GNU Bison package:" | |
168 | echo "<$gnu_software_URL/bison/>" | |
169 | ;; | |
170 | lex*|flex*) | |
171 | echo "You should only need it if you modified a '.l' file." | |
172 | echo "You may want to install the Fast Lexical Analyzer package:" | |
173 | echo "<$flex_URL>" | |
174 | ;; | |
175 | help2man*) | |
176 | echo "You should only need it if you modified a dependency" \ | |
177 | "of a man page." | |
178 | echo "You may want to install the GNU Help2man package:" | |
179 | echo "<$gnu_software_URL/help2man/>" | |
180 | ;; | |
181 | makeinfo*) | |
182 | echo "You should only need it if you modified a '.texi' file, or" | |
183 | echo "any other file indirectly affecting the aspect of the manual." | |
184 | echo "You might want to install the Texinfo package:" | |
185 | echo "<$gnu_software_URL/texinfo/>" | |
186 | echo "The spurious makeinfo call might also be the consequence of" | |
187 | echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" | |
188 | echo "want to install GNU make:" | |
189 | echo "<$gnu_software_URL/make/>" | |
190 | ;; | |
191 | *) | |
192 | echo "You might have modified some files without having the proper" | |
193 | echo "tools for further handling them. Check the 'README' file, it" | |
194 | echo "often tells you about the needed prerequisites for installing" | |
195 | echo "this package. You may also peek at any GNU archive site, in" | |
196 | echo "case some other package contains this missing '$1' program." | |
197 | ;; | |
198 | esac | |
199 | } | |
200 | ||
201 | give_advice "$1" | sed -e '1s/^/WARNING: /' \ | |
202 | -e '2,$s/^/ /' >&2 | |
203 | ||
204 | # Propagate the correct exit status (expected to be 127 for a program | |
205 | # not found, 63 for a program that failed due to version mismatch). | |
206 | exit $st | |
368 | 207 | |
369 | 208 | # Local variables: |
370 | 209 | # eval: (add-hook 'write-file-hooks 'time-stamp) |