Commit MetaInfo

Revision36b43b946834c0babc8a7083bff9447c9568b518 (tree)
Time2020-07-04 19:08:07
Authorsimphone
Commitersimphone

Log Message

makedepend 1.0.5

Change Summary

Incremental Difference

diff -r 000000000000 -r 36b43b946834 build/makedepend/AUTHORS
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/build/makedepend/AUTHORS Sat Jul 04 06:08:07 2020 -0400
@@ -0,0 +1,18 @@
1+[List assembled from incomplete history information. Please send updates
2+ to xorg@lists.freedesktop.org if we've missed any contributors.]
3+
4+Original author:
5+ Todd Brunhoff, Tektronix, Inc. and MIT Project Athena
6+
7+ifparser author:
8+ Jim Fulton, Network Computing Devices, Inc.
9+
10+Additional contributors:
11+ David Dawes
12+ Egbert Eich
13+ Alexander Gottwald
14+ Harold L Hunt II
15+ Mark La France
16+ Mark Snitily
17+ Alexander Stohr
18+
diff -r 000000000000 -r 36b43b946834 build/makedepend/COPYING
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/build/makedepend/COPYING Sat Jul 04 06:08:07 2020 -0400
@@ -0,0 +1,50 @@
1+Most of the source is covered by this copyright notice & license:
2+
3+Copyright (c) 1993, 1994, 1998 The Open Group
4+
5+Permission to use, copy, modify, distribute, and sell this software and its
6+documentation for any purpose is hereby granted without fee, provided that
7+the above copyright notice appear in all copies and that both that
8+copyright notice and this permission notice appear in supporting
9+documentation.
10+
11+The above copyright notice and this permission notice shall be included in
12+all copies or substantial portions of the Software.
13+
14+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18+AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20+
21+Except as contained in this notice, the name of The Open Group shall not be
22+used in advertising or otherwise to promote the sale, use or other dealings
23+in this Software without prior written authorization from The Open Group.
24+
25+------------------------------------------------------------------------------
26+
27+ifparser.c & ifparser.h are covered by this copyright notice & license:
28+
29+Copyright 1992 Network Computing Devices, Inc.
30+
31+Permission to use, copy, modify, and distribute this software and its
32+documentation for any purpose and without fee is hereby granted, provided
33+that the above copyright notice appear in all copies and that both that
34+copyright notice and this permission notice appear in supporting
35+documentation, and that the name of Network Computing Devices may not be
36+used in advertising or publicity pertaining to distribution of the software
37+without specific, written prior permission. Network Computing Devices makes
38+no representations about the suitability of this software for any purpose.
39+It is provided ``as is'' without express or implied warranty.
40+
41+NETWORK COMPUTING DEVICES DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
42+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
43+IN NO EVENT SHALL NETWORK COMPUTING DEVICES BE LIABLE FOR ANY SPECIAL,
44+INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
45+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
46+OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
47+PERFORMANCE OF THIS SOFTWARE.
48+
49+------------------------------------------------------------------------------
50+
diff -r 000000000000 -r 36b43b946834 build/makedepend/ChangeLog
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/build/makedepend/ChangeLog Sat Jul 04 06:08:07 2020 -0400
@@ -0,0 +1,746 @@
1+commit 30859adfd6a6523a92a637ca26bd61ce59680a1b
2+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
3+Date: Mon Jul 22 22:14:36 2013 -0700
4+
5+ makedepend 1.0.5
6+
7+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
8+
9+commit 5b6d3797eae3bac824cf72c0c8f64f51e3d4eaef
10+Author: Julien Cristau <jcristau@debian.org>
11+Date: Mon Jul 1 18:57:12 2013 +0200
12+
13+ Don't crash if an option's argument is missing
14+
15+ Avoid dereferencing argv[argc].
16+
17+ See http://www.forallsecure.com/bug-reports/011f1a55f79a5501b36008d6ee0d40e8b6644569/
18+
19+ Reported-by: Alexandre Rebert <alexandre@cmu.edu>
20+ Signed-off-by: Julien Cristau <jcristau@debian.org>
21+ Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
22+
23+commit 107c2fcf5c7576ee66ee23926f0431b6db27a07a
24+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
25+Date: Sat Feb 23 09:57:51 2013 -0800
26+
27+ Assume signal handlers return void, as C89 requires
28+
29+ Drops use of autoconf's obsolete AC_TYPE_SIGNAL
30+
31+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
32+
33+commit b2c6d0d0f64d419590c7cd77aae4890866665cba
34+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
35+Date: Tue Feb 12 18:36:30 2013 -0800
36+
37+ Bug 56091 - Unsafe use of strcpy() in makedepend
38+
39+ Use memmove for potentially overlapping copies.
40+
41+ Reported-by: Laurence Jupp <laurence@narya.org>
42+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
43+ Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
44+
45+commit 897e25de0cf27bd345130912a6da34b0c802a0ca
46+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
47+Date: Tue Feb 12 18:33:44 2013 -0800
48+
49+ Store len in a size_t instead of an int in redirect()
50+
51+ Fixes clang warnings about converting back & forth:
52+
53+ main.c:761:8: warning: implicit conversion loses integer precision: 'size_t'
54+ (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
55+ len = strlen(line);
56+ ~ ^~~~~~~~~~~~
57+ main.c:763:41: warning: implicit conversion changes signedness: 'int' to
58+ 'size_t' (aka 'unsigned long') [-Wsign-conversion]
59+ if (*buf == '#' && strncmp(line, buf, len) == 0)
60+ ~~~~~~~ ^~~
61+
62+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
63+
64+commit 87fd28cd5a5acfe6e91c97c4af0a469e1e86cbd5
65+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
66+Date: Sun Jan 20 22:45:53 2013 -0800
67+
68+ Mark fatalerr & catch as _X_NORETURN
69+
70+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
71+
72+commit 637c59e78f699a824e78316cb8ca3113bb5c738b
73+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
74+Date: Sat Jan 12 14:40:40 2013 -0800
75+
76+ Replace deprecated Automake INCLUDES variable with AM_CPPFLAGS
77+
78+ Excerpt https://lists.gnu.org/archive/html/automake/2012-12/msg00038.html
79+
80+ - Support for the long-deprecated INCLUDES variable will be removed
81+ altogether in Automake 1.14. The AM_CPPFLAGS variable should be
82+ used instead.
83+
84+ This variable was deprecated in Automake releases prior to 1.10, which is
85+ the current minimum level required to build X.
86+
87+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
88+ Reviewed-by: Julien Cristau <jcristau@debian.org>
89+
90+commit 059e9be5a7321974b190d786d426b2ae27be8c56
91+Author: Glenn Burkhardt <gbburkhardt@gmail.com>
92+Date: Fri Jan 11 22:09:54 2013 -0800
93+
94+ Bug 52099 - makedepend rename fails on CIFS mounted shares
95+
96+ Patch v1: https://bugs.freedesktop.org/attachment.cgi?id=64218
97+
98+ v2: modified by Alan Coopersmith to restore Makefile to original name
99+ if contents cannot be read, instead of leaving it moved to .bak name.
100+
101+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
102+
103+commit bb29c304c09aba567af0f0d77a63f0202c3836c6
104+Author: Colin Walters <walters@verbum.org>
105+Date: Wed Jan 4 17:37:06 2012 -0500
106+
107+ autogen.sh: Implement GNOME Build API
108+
109+ http://people.gnome.org/~walters/docs/build-api.txt
110+
111+ Signed-off-by: Adam Jackson <ajax@redhat.com>
112+
113+commit 9685da3e7136e01a7bc780d81667abf5897b87a6
114+Author: Adam Jackson <ajax@redhat.com>
115+Date: Wed Jan 16 12:59:58 2013 -0500
116+
117+ configure: Drop AM_MAINTAINER_MODE
118+
119+ Signed-off-by: Adam Jackson <ajax@redhat.com>
120+
121+commit 8e4373712409e2411652cf0697c33d91e95fd405
122+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
123+Date: Fri Jan 11 22:29:19 2013 -0800
124+
125+ Fix a comment typo
126+
127+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
128+
129+commit 3a28a2a0146c4979281ffea641dede9a32df08f9
130+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
131+Date: Sat Jan 5 09:55:04 2013 -0800
132+
133+ Convert more sprintf calls to snprintf
134+
135+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
136+
137+commit 639071ff3446b0df53078be1ff5820c812313aa7
138+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
139+Date: Sat Jan 5 09:42:33 2013 -0800
140+
141+ Remove unnecessary casts from malloc/realloc calls
142+
143+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
144+
145+commit 1b5e7ee6483415d7093f3d5395c4832fa69f0a28
146+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
147+Date: Sat Jan 5 09:25:43 2013 -0800
148+
149+ Remove fallbacks for Imake configuration, assume autoconf
150+
151+ For the original 6.9/7.0 release, we supported using either autoconf or
152+ imake to generate configuration. For releases after that, we're only
153+ supporting autoconf, so no longer need to check & fall back to imake.
154+
155+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
156+
157+commit 4db1a4f15ef704b6b6faf1741054d59cb527298a
158+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
159+Date: Sat Jan 5 09:15:28 2013 -0800
160+
161+ Move i_listlen in struct inclist for better packing in 64-bit builds
162+
163+ Putting it with another int instead of between two pointers gets rid
164+ of two places where 4 bytes each had to be padded into the structure
165+ for alignment.
166+
167+ Reduces the size of an individual struct from 64 bytes to 56 bytes,
168+ and of the inclist[ MAXFILES ] array from 128k to 112k.
169+
170+ Found by clang:
171+ ./def.h:111:18: warning: padding struct 'struct inclist' with 4 bytes to align 'i_defs' [-Wpadded]
172+ struct symtab **i_defs; /* symbol table for this file and its
173+ ^
174+ ./def.h:114:12: warning: padding struct 'struct inclist' with 4 bytes to align 'i_merged' [-Wpadded]
175+ boolean *i_merged; /* whether we have merged child
176+
177+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
178+
179+commit c5378d3e7bb79880b9ea6f7f055393ae42eae55f
180+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
181+Date: Sat Jan 5 09:05:17 2013 -0800
182+
183+ config: Remove unnecessary calls from configure.ac
184+
185+ AC_PROG_CC is provided by XORG_DEFAULT_OPTIONS now
186+ PKG_CONFIG_MODULES handles AC_SUBST of the CFLAGS & LIBS variables
187+
188+commit 3db923e80852b088b1d0583bad7fca05e173efdc
189+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
190+Date: Sat Jan 5 09:01:03 2013 -0800
191+
192+ Update configure.ac initialization to X.Org standard form
193+
194+ Regroup AC statements under the Autoconf initialization section.
195+ Regroup AM statements under the Automake initialization section.
196+ Add missing AC_CONFIG_SRCDIR
197+
198+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
199+
200+commit 6d70e2776b41977a87bbe32220f4d3f8a62dc763
201+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
202+Date: Fri Jan 4 20:07:43 2013 -0800
203+
204+ unifdef -U__UNIXOS2__
205+
206+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
207+
208+commit 01238aa25c3bb1e0c909f63dd3bc97c48bd8bf6d
209+Author: Marko Lindqvist <cazfi74@gmail.com>
210+Date: Fri Jan 4 20:02:33 2013 -0800
211+
212+ Bug 59005 - makedepend: Build with automake-1.13 broken
213+
214+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
215+
216+commit 49d72ba286c1ddd99cf1e6477ee2b6af59007341
217+Author: Julien Cristau <jcristau@debian.org>
218+Date: Wed Mar 14 19:49:14 2012 +0100
219+
220+ configure.ac: use AM_MAINTAINER_MODE
221+
222+commit b6605e3945eaaabbd090672f33e888d394f9a4f0
223+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
224+Date: Wed Mar 7 21:52:14 2012 -0800
225+
226+ makedepend 1.0.4
227+
228+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
229+
230+commit cb8bbc06de0baf2dff4a703e6d2bb47bdf90d896
231+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
232+Date: Fri Oct 7 18:07:24 2011 -0700
233+
234+ define(): Avoid assigning constant string to non-const char *
235+
236+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
237+
238+commit b9770941ae829ad2cb985efe809d6e3dd690648b
239+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
240+Date: Fri Oct 7 18:02:34 2011 -0700
241+
242+ Call strdup directly, instead of via copy macro
243+
244+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
245+
246+commit 0ecf5f3251033ab6efa1a0d881f75ed9ce60b5a4
247+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
248+Date: Fri Oct 7 18:00:39 2011 -0700
249+
250+ Add const attributes to fix gcc -Wwrite-strings warnings
251+
252+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
253+
254+commit 97ae52f80f9e382917889bde1913367572e89012
255+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
256+Date: Fri Oct 7 17:47:36 2011 -0700
257+
258+ Move extern variable declarations to common header (def.h)
259+
260+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
261+
262+commit 3602fb0b7ba2bde9c73610693dbb50534fe42b81
263+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
264+Date: Fri Oct 7 17:34:17 2011 -0700
265+
266+ Strip trailing whitespace
267+
268+ Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}'
269+ git diff -w & git diff -b show no diffs from this change
270+
271+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
272+
273+commit c1f32dc1d4c1758065468e1f5d34707099f59f33
274+Author: Stuart Kreitman <Stuart.Kreitman@Oracle.COM>
275+Date: Mon May 24 14:21:21 2010 -0700
276+
277+ Raise MAXFILES from 1024 to 2048
278+
279+ Required in order to build OpenTTD on Solaris
280+ http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6917536
281+
282+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
283+
284+commit cc23acdd80fa0cad53e46f99cd0ff5998ec7f607
285+Author: Cyril Brulebois <kibi@debian.org>
286+Date: Sun Oct 31 15:50:36 2010 +0100
287+
288+ Fix bashism: shell string comparison is =, not ==.
289+
290+ Signed-off-by: Cyril Brulebois <kibi@debian.org>
291+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
292+
293+commit 186aae76a84860d0efef638ff499ab1968fffd75
294+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
295+Date: Fri Oct 29 22:53:25 2010 -0700
296+
297+ Add README with pointers to mailing list, bugzilla & git repos
298+
299+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
300+
301+commit e67389ecc0c425bcfec0a3184ee48919e0e2c61a
302+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
303+Date: Fri Oct 29 22:45:35 2010 -0700
304+
305+ makedepend 1.0.3
306+
307+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
308+
309+commit bf25a6cb4888e5cf6827cd51cb7ee282cfb6cf47
310+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
311+Date: Fri Oct 29 22:39:51 2010 -0700
312+
313+ config: upgrade to util-macros 1.8 for additional man page support
314+
315+ Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS
316+ The value of MAN_SUBST is the same for all X.Org packages.
317+
318+ Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS
319+ Enables use of platform appropriate version of sed.
320+
321+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
322+
323+commit 7963cc382a3a351410b1342a9783df3af8516944
324+Author: Gaetan Nadon <memsize@videotron.ca>
325+Date: Tue Jul 20 18:45:18 2010 -0400
326+
327+ config: update AC_PREREQ statement to 2.60
328+
329+ Unrelated to the previous patches, the new value simply reflects
330+ the reality that the minimum level for autoconf to configure
331+ all x.org modules is 2.60 dated June 2006.
332+
333+ ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz
334+
335+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
336+
337+commit 58bd34e6c3662ef06e9ef0dd78d69f003df42bdc
338+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
339+Date: Fri May 14 21:14:44 2010 -0700
340+
341+ Convert testcase from bug 28045 into automake "make check" test
342+
343+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
344+
345+commit 8522c314da7537169996476fe5ba411f720a09fe
346+Author: Martin Pärtel <lagitus@mbnet.fi>
347+Date: Fri May 14 21:00:15 2010 -0700
348+
349+ Bug 28045 - makedepend fails on directory named like an include file
350+
351+ <https://bugs.freedesktop.org/show_bug.cgi?id=28045>
352+
353+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
354+
355+commit c976a7fc7c21772c00de9e61178cf467c6a10b57
356+Author: Alan Coopersmith <alan.coopersmith@sun.com>
357+Date: Sat Oct 10 22:08:09 2009 -0700
358+
359+ makedepend 1.0.2
360+
361+ Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
362+
363+commit c2abfbb9ea21bec53706295064c328e5d2721abd
364+Author: Alan Coopersmith <alan.coopersmith@sun.com>
365+Date: Sat Oct 10 22:07:44 2009 -0700
366+
367+ Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONS
368+
369+ Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
370+
371+commit f3bbd454d8220a0c30c1a788965a7f16501350ab
372+Author: Alan Coopersmith <alan.coopersmith@sun.com>
373+Date: Sat Oct 10 21:03:53 2009 -0700
374+
375+ Remove CVS/RCS version tags
376+
377+ Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
378+
379+commit 42ee120e8c49c5f9aaba35689e09f9ecef407758
380+Author: Alan Coopersmith <alan.coopersmith@sun.com>
381+Date: Tue Mar 24 18:47:23 2009 -0700
382+
383+ Fix gcc, sparse & lint warnings
384+
385+ cppsetup.c:74:9: warning: Using plain integer as NULL pointer
386+
387+ parse.c: In function `gobble':
388+ parse.c:94: warning: int format, long int arg (arg 2)
389+ parse.c: In function `find_includes':
390+ parse.c:641: warning: int format, long int arg (arg 2)
391+ parse.c:664: warning: int format, long int arg (arg 2)
392+ parse.c:677: warning: int format, long int arg (arg 2)
393+ parse.c:684: warning: int format, long int arg (arg 2)
394+
395+ pr.c: In function `add_include':
396+ pr.c:57: warning: int format, long int arg (arg 4)
397+ pr.c:59: warning: int format, long int arg (arg 3)
398+
399+ declared global, could be static
400+ sig_act main.c(142)
401+ predefs main.c:imakemdep.h(51)
402+
403+ Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
404+
405+commit c7c7197d265a299c82c6629fba867730aad81375
406+Author: Alan Coopersmith <alan.coopersmith@sun.com>
407+Date: Tue Mar 24 18:22:37 2009 -0700
408+
409+ Increased constification
410+
411+ Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
412+
413+commit a6a8afb0a82a175822077442f44865c75ab70ff1
414+Author: Alan Coopersmith <alan.coopersmith@sun.com>
415+Date: Tue Mar 24 17:34:42 2009 -0700
416+
417+ Remove #ifdef'ed code that's never used
418+
419+ Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
420+
421+commit 3e8c1a2a8e7db49b06f602c2fc5a8108d74dd384
422+Author: Alan Coopersmith <alan.coopersmith@sun.com>
423+Date: Tue Mar 24 17:27:47 2009 -0700
424+
425+ Remove ifdef checks for macII left over from ancient A/UX 3.0 support
426+
427+ Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
428+
429+commit e3bc51e4ea2dce1901c4f7ce43df2f456ececdcf
430+Author: Alan Coopersmith <alan.coopersmith@sun.com>
431+Date: Tue Mar 24 17:25:56 2009 -0700
432+
433+ Use XORG_CHANGELOG, XORG_CWARNFLAGS, and XORG_WITH_LINT macros
434+
435+ Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
436+
437+commit cc3112b6d0434d8e7ecbe3832a5aa48cd0f5185d
438+Author: Alan Coopersmith <alan.coopersmith@sun.com>
439+Date: Tue Mar 24 16:34:45 2009 -0700
440+
441+ Add additional predefines needed to match Solaris compilers
442+
443+ Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
444+
445+commit f871e026bedc296c235dae02e533617fe9a4d3f2
446+Author: Alan Coopersmith <alan.coopersmith@sun.com>
447+Date: Tue Mar 24 16:16:47 2009 -0700
448+
449+ Delete portions of imakemdep.h not used by makedepend
450+
451+ This header was shared by imake & makedepend in the monolith, but each
452+ got its own copy in the modular builds.
453+
454+ Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
455+
456+commit 26cb2802170d349fa1b2ab2237e6f2c0d1df1709
457+Author: Alan Coopersmith <alan.coopersmith@sun.com>
458+Date: Tue Mar 24 16:02:55 2009 -0700
459+
460+ Add .gitignore
461+
462+ Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
463+
464+commit 4d821427ac3e7e3de86f46e3b1e638c65758b774
465+Author: Alan Coopersmith <alan.coopersmith@sun.com>
466+Date: Tue Mar 24 16:00:19 2009 -0700
467+
468+ Use AM_CPPFLAGS instead of makedepend_CPPFLAGS to avoid mangled .o names
469+
470+ Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
471+
472+commit 617fc1304afdca2fb82e3a65d9a4999058d86021
473+Author: James Cloos <cloos@jhcloos.com>
474+Date: Thu Dec 6 16:39:17 2007 -0500
475+
476+ Replace static ChangeLog with dist-hook to generate from git log
477+
478+commit 5239f25be018b2e9cf3620d5c1c62bac4e1e116d
479+Author: Jeremy C. Reed <reed@glacier.reedmedia.net>
480+Date: Wed Mar 21 15:27:57 2007 -0500
481+
482+ Update version for release.
483+
484+commit e2bea6a0278f182f9cc8b7bac660da49d24d2e50
485+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
486+Date: Fri Jun 2 19:21:52 2006 +0000
487+
488+ Coverity #925: Pointer "file" dereferenced before NULL check
489+
490+commit fbb0a1b59b410a5873cf33c4cedc32f32ea03a59
491+Author: Kevin E Martin <kem@kem.org>
492+Date: Thu Dec 15 00:24:40 2005 +0000
493+
494+ Update package version number for final X11R7 release candidate.
495+
496+commit cbb537c9276302f56c82c0dd010db400bd605f57
497+Author: Adam Jackson <ajax@nwnk.net>
498+Date: Fri Dec 9 18:27:47 2005 +0000
499+
500+ Bug #4380: Avoid dividing by zero in gccmakedepend (Vincent Le Ligeour)
501+
502+commit 34c35bcb3851909468c679c2014b6197c7be270e
503+Author: Kevin E Martin <kem@kem.org>
504+Date: Tue Dec 6 22:48:47 2005 +0000
505+
506+ Change *man_SOURCES ==> *man_PRE to fix autotools warnings.
507+
508+commit c30b8896d6a6e1272e7e703cac5866802a5e30a2
509+Author: Kevin E Martin <kem@kem.org>
510+Date: Sat Dec 3 05:49:47 2005 +0000
511+
512+ Update package version number for X11R7 RC3 release.
513+
514+commit 0f756745a930e995fb529ffe34cd7f7d36c68d4a
515+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
516+Date: Mon Nov 28 22:00:24 2005 +0000
517+
518+ Change *mandir targets to use new *_MAN_DIR variables set by xorg-macros.m4
519+ update to fix bug #5167 (Linux prefers *.1x man pages in man1 subdir)
520+
521+commit 9bd896db001a270770506c25232435ddeb7a7f22
522+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
523+Date: Sun Nov 20 03:24:01 2005 +0000
524+
525+ Remove duplicate setting of EXTRA_DIST
526+
527+commit 3a5f945b6e15c6799b2a796f82ed1222140fc62d
528+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
529+Date: Sat Nov 12 20:04:58 2005 +0000
530+
531+ Substitute variables in man page
532+ [Also resync Changelog with monolith]
533+
534+commit aaa64b9dc41b6b3ed3f5acd7eb2b517c3499a521
535+Author: Kevin E Martin <kem@kem.org>
536+Date: Wed Nov 9 21:25:57 2005 +0000
537+
538+ Update package version number for X11R7 RC2 release.
539+
540+commit 3ead9564d1f63a1080c97b1ba44af17a74938485
541+Author: Kean Johnson <kean@armory.com>
542+Date: Tue Nov 8 06:33:24 2005 +0000
543+
544+ See ChangeLog entry 2005-11-07 for details.
545+
546+commit d13a9d5d03bf5ebab5c847bdc616f276971d39d8
547+Author: Kevin E Martin <kem@kem.org>
548+Date: Wed Oct 19 02:48:17 2005 +0000
549+
550+ Update package version number for RC1 release.
551+
552+commit 3b21840ce7b2c7825c40dd3f0463d66aee692fc6
553+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
554+Date: Mon Oct 3 16:17:10 2005 +0000
555+
556+ Bug #3812 <https://bugs.freedesktop.org/show_bug.cgi?id=3812> Patch #3462
557+ <https://bugs.freedesktop.org/attachment.cgi?id=3462> GNU/kFreeBSD
558+ Imake support (Robert Millan)
559+
560+commit f002b90281e623b7611565a49a5d12fb517800ae
561+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
562+Date: Mon Aug 1 02:13:55 2005 +0000
563+
564+ Pass through __BUILTIN_VA_STRUCT and __BUILTIN_VA_ARG_INCR defines in
565+ makedepend so it doesn't issue errors when source files include
566+ <varargs.h> or <stdarg.h> on Solaris 10.
567+
568+commit ddabc8840aee8a90ea6b7f6fe8f1af7f692a2576
569+Author: Kevin E Martin <kem@kem.org>
570+Date: Fri Jul 29 21:22:58 2005 +0000
571+
572+ Various changes preparing packages for RC0:
573+ - Verify and update package version numbers as needed
574+ - Implement versioning scheme
575+ - Change bug address to point to bugzilla bug entry form
576+ - Disable loadable i18n in libX11 by default (use --enable-loadable-i18n to
577+ reenable it)
578+ - Fix makedepend to use pkgconfig and pass distcheck
579+ - Update build script to build macros first
580+ - Update modular Xorg version
581+
582+commit c8e6f83244036256d3f56c35ec8c60f03dc51275
583+Author: Kevin E Martin <kem@kem.org>
584+Date: Fri Jul 29 18:42:37 2005 +0000
585+
586+ Update #includes to use <X11/*.h> for modularization.
587+
588+commit 275c17136006f9d3929c9547642f1ed3f95d5683
589+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
590+Date: Tue Jul 5 19:02:01 2005 +0000
591+
592+ Bugzilla #2901 <https://bugs.freedesktop.org/show_bug.cgi?id=2901> Patch
593+ #2320 <https://bugs.freedesktop.org/attachment.cgi?id=2320>
594+ Remove warning about whitespace in pre-processor defines. (Peter
595+ Breitenlohner)
596+
597+commit 9debe1d47d8869949b15f5ea43222f5b22465b32
598+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
599+Date: Sun May 22 19:01:58 2005 +0000
600+
601+ Add makedepend man page
602+
603+commit 1ee2b235655779213e8b5e0455104161a88a536c
604+Author: Adam Jackson <ajax@nwnk.net>
605+Date: Thu May 19 00:22:44 2005 +0000
606+
607+ revert last change, didn't do right thing at all, sorry for the noise
608+
609+commit d22b9d44523591e042569112aaba3b7437dd4c7e
610+Author: Adam Jackson <ajax@nwnk.net>
611+Date: Thu May 19 00:10:23 2005 +0000
612+
613+ Require automake 1.7 in AM_INIT_AUTOMAKE
614+
615+commit b0e61cfcfbb56696597eb65511c74ad901d62b58
616+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
617+Date: Sun May 15 21:16:24 2005 +0000
618+
619+ Initial attempt at autotooling/modular conversion of makedepend
620+
621+commit dabc4c7abcba043e206745bdb101aafb48c00c71
622+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
623+Date: Sun May 15 21:06:38 2005 +0000
624+
625+ [Modularization/autotooling project] Add support for building with autoconf
626+ #ifdefs if present. #include "makedepend-config.h" if HAVE_CONFIG_H is
627+ defined.
628+
629+commit 4a64cca6526e26c93f7011ba5e4fedb511af4560
630+Author: Roland Mainz <roland.mainz@nrubsig.org>
631+Date: Wed Mar 2 11:20:29 2005 +0000
632+
633+ xc/config/cf/DragonFly.cf
634+ xc/config/cf/Imake.cf
635+ xc/config/cf/Imakefile
636+ xc/config/imake/imake.c
637+ xc/config/imake/imakemdep.h
638+ xc/extras/drm/shared/drm.h
639+ xc/include/Xos_r.h
640+ xc/lib/xtrans/Xtranssock.c
641+ xc/programs/Xserver/hw/xfree86/os-support/xf86_OSlib.h
642+ xc/programs/Xserver/hw/xfree86/os-support/xf86_libc.h
643+ xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_agp.c
644+ //bugs.freedesktop.org/show_bug.cgi?id=1712) attachment #2004
645+ (https://bugs.freedesktop.org/attachment.cgi?id=2004): Add support for
646+ DragonFly/BSD platform. Patch by Jeroen Ruigrok <asmodai@tendra.org>
647+ and Mike Verona <firedragonfly@gmail.com>.
648+
649+commit a2abf77f552d3930d07721e2aa388bb8d87a621a
650+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
651+Date: Wed Jan 19 22:28:20 2005 +0000
652+
653+ Pass through additional #defines for Solaris. (Sun bug id #5097074 - Alan
654+ Coopersmith)
655+
656+commit 33dd47009fe09ce9e5628df51914821d416be78d
657+Author: Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>
658+Date: Mon Nov 15 15:06:52 2004 +0000
659+
660+ Bufzilla #1802, http://freedesktop.org/bugzilla/show_bug.cgi?id=1802 Added
661+ mingw (Win32) port
662+
663+commit 67b078bc115ca3c52545b9dacb2b0fc0a1c9e90e
664+Author: Egbert Eich <eich@suse.de>
665+Date: Tue Oct 19 13:50:06 2004 +0000
666+
667+ Enabling modules and DRI for Linux HPPA.
668+ Removing hpsocket.c as it isn't used anywhere any more (Bugzilla #1584).
669+
670+commit 967895bc594e45f065a97005a248ef71139eb269
671+Author: Egbert Eich <eich@suse.de>
672+Date: Mon Oct 18 14:26:35 2004 +0000
673+
674+ powerpc/powerpc64 build fixes.
675+
676+commit f1300e657659259b4082ad83de3b59a7b6b1094b
677+Author: Kevin E Martin <kem@kem.org>
678+Date: Wed Aug 11 21:14:02 2004 +0000
679+
680+ Apply PPC64 build patch (Bug #303, Mike A. Harris, Alan Coopersmith).
681+
682+commit 1529cb60b2652030598008c151678100ffc3f9ac
683+Author: Egbert Eich <eich@suse.de>
684+Date: Thu May 6 17:31:17 2004 +0000
685+
686+ BugZilla #601: Fixing makedepend choking on floating point exception
687+ because CHAR_BIT is defined to __CHAR_BIT__ which is a compiler
688+ intrinsic define. BugZilla #605: Fixing build on IA64 which is broken
689+ due to the inclusion of the kernel header asm/page.h. Kernel headers
690+ however don't work with
691+ -ansi. The inclusion of asm/page.h can however savely be removed as it
692+ there are plenty of other ways to determine the page size.
693+
694+commit 25324cd43b4735cafa7b6900ad23356f44077bc6
695+Author: Egbert Eich <eich@suse.de>
696+Date: Fri Apr 23 18:42:00 2004 +0000
697+
698+ Merging XORG-CURRENT into trunk
699+
700+commit 97527faa1b2b9f66be7171454161f273b986ee46
701+Author: Egbert Eich <eich@suse.de>
702+Date: Sun Mar 14 08:27:26 2004 +0000
703+
704+ Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004
705+
706+commit cc985b59a40838d617ec2c5b03771620e56fe461
707+Author: Egbert Eich <eich@suse.de>
708+Date: Wed Mar 3 12:09:38 2004 +0000
709+
710+ Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004
711+
712+commit 9820a186a6d0e6b16909264c67f49b0a858ac07c
713+Author: Egbert Eich <eich@suse.de>
714+Date: Thu Feb 26 13:34:16 2004 +0000
715+
716+ readding XFree86's cvs IDs
717+
718+commit d5b34044c15be35736038c188d2681cf7cfb63a9
719+Author: Egbert Eich <eich@suse.de>
720+Date: Thu Feb 26 09:21:14 2004 +0000
721+
722+ Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004
723+
724+commit 7ff0f162b4f5a062dd4e58e7ce110757f539465b
725+Author: Egbert Eich <eich@suse.de>
726+Date: Thu Jan 29 08:06:33 2004 +0000
727+
728+ Importing vendor version xf86-012804-2330 on Thu Jan 29 00:06:33 PST 2004
729+
730+commit 200c9bd9793c0d2dbefd1f0a2be197a2d4e3a364
731+Author: Kaleb Keithley <kaleb@freedesktop.org>
732+Date: Tue Nov 25 19:26:56 2003 +0000
733+
734+ XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folks
735+
736+commit a15b8ac6912cef59d7e1ba7a80e58466e2c9fcba
737+Author: Kaleb Keithley <kaleb@freedesktop.org>
738+Date: Fri Nov 14 16:48:20 2003 +0000
739+
740+ XFree86 4.3.0.1
741+
742+commit ac5d447a2f18bdd07d5f97bb27cd9d065e30f683
743+Author: Kaleb Keithley <kaleb@freedesktop.org>
744+Date: Fri Nov 14 15:54:29 2003 +0000
745+
746+ R6.6 is the Xorg base-line
diff -r 000000000000 -r 36b43b946834 build/makedepend/Makefile.am
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/build/makedepend/Makefile.am Sat Jul 04 06:08:07 2020 -0400
@@ -0,0 +1,73 @@
1+
2+bin_PROGRAMS = makedepend
3+
4+makedepend_SOURCES = include.c \
5+ main.c \
6+ parse.c \
7+ pr.c \
8+ cppsetup.c \
9+ ifparser.c \
10+ ifparser.h \
11+ def.h \
12+ imakemdep.h
13+
14+AM_CPPFLAGS = -DOBJSUFFIX=\".${OBJEXT}\" -DINCLUDEDIR=\"/usr/include\"
15+AM_CPPFLAGS += $(X_CFLAGS)
16+AM_CFLAGS = $(CWARNFLAGS)
17+
18+EXTRA_DIST = autogen.sh makedepend.man
19+
20+# Man page
21+appmandir = $(APP_MAN_DIR)
22+
23+appman_PRE = makedepend.man
24+appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
25+
26+CLEANFILES = $(appman_DATA)
27+
28+# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
29+MAN_SUBSTS += \
30+ -e 's|__cpp__|$(RAWCPP)|g'
31+
32+SUFFIXES = .$(APP_MAN_SUFFIX) .man
33+
34+.man.$(APP_MAN_SUFFIX):
35+ $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
36+
37+EXTRA_DIST += ChangeLog
38+MAINTAINERCLEANFILES = ChangeLog
39+
40+.PHONY: ChangeLog
41+
42+ChangeLog:
43+ $(CHANGELOG_CMD)
44+
45+dist-hook: ChangeLog
46+
47+if LINT
48+ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
49+ $(AM_CPPFLAGS) $(CPPFLAGS)
50+
51+lint:
52+ $(LINT) $(ALL_LINT_FLAGS) $(makedepend_SOURCES)
53+endif LINT
54+
55+### Test cases - mostly for bug fixes submitted with a test case so far
56+TESTS =
57+
58+# Absolute path to srcdir & builddir top that test scripts can reference
59+TEST_BUILDDIR_PATH = `cd $(top_builddir) && pwd`
60+TEST_SRCDIR_PATH = `cd $(top_srcdir) && pwd`
61+
62+# Path to makedepend command being tested that can be found from test subdirs
63+TESTS_ENVIRONMENT = MAKEDEPEND="$(TEST_BUILDDIR_PATH)/makedepend"
64+
65+# Path to writable testdirectory in build directory
66+TESTS_ENVIRONMENT += test_builddir="$(TEST_BUILDDIR_PATH)/tests"
67+
68+# Path to testcase files in source directory
69+TESTS_ENVIRONMENT += test_srcdir="$(TEST_SRCDIR_PATH)/tests"
70+
71+# Test for https://bugs.freedesktop.org/show_bug.cgi?id=28045
72+TESTS += tests/28045/makedep.sh
73+EXTRA_DIST += tests/28045/makedep.sh tests/28045/foo.cpp
diff -r 000000000000 -r 36b43b946834 build/makedepend/Makefile.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/build/makedepend/Makefile.in Sat Jul 04 06:08:07 2020 -0400
@@ -0,0 +1,1236 @@
1+# Makefile.in generated by automake 1.14 from Makefile.am.
2+# @configure_input@
3+
4+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
5+
6+# This Makefile.in is free software; the Free Software Foundation
7+# gives unlimited permission to copy and/or distribute it,
8+# with or without modifications, as long as this notice is preserved.
9+
10+# This program is distributed in the hope that it will be useful,
11+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13+# PARTICULAR PURPOSE.
14+
15+@SET_MAKE@
16+
17+
18+VPATH = @srcdir@
19+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
20+am__make_running_with_option = \
21+ case $${target_option-} in \
22+ ?) ;; \
23+ *) echo "am__make_running_with_option: internal error: invalid" \
24+ "target option '$${target_option-}' specified" >&2; \
25+ exit 1;; \
26+ esac; \
27+ has_opt=no; \
28+ sane_makeflags=$$MAKEFLAGS; \
29+ if $(am__is_gnu_make); then \
30+ sane_makeflags=$$MFLAGS; \
31+ else \
32+ case $$MAKEFLAGS in \
33+ *\\[\ \ ]*) \
34+ bs=\\; \
35+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
36+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
37+ esac; \
38+ fi; \
39+ skip_next=no; \
40+ strip_trailopt () \
41+ { \
42+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
43+ }; \
44+ for flg in $$sane_makeflags; do \
45+ test $$skip_next = yes && { skip_next=no; continue; }; \
46+ case $$flg in \
47+ *=*|--*) continue;; \
48+ -*I) strip_trailopt 'I'; skip_next=yes;; \
49+ -*I?*) strip_trailopt 'I';; \
50+ -*O) strip_trailopt 'O'; skip_next=yes;; \
51+ -*O?*) strip_trailopt 'O';; \
52+ -*l) strip_trailopt 'l'; skip_next=yes;; \
53+ -*l?*) strip_trailopt 'l';; \
54+ -[dEDm]) skip_next=yes;; \
55+ -[JT]) skip_next=yes;; \
56+ esac; \
57+ case $$flg in \
58+ *$$target_option*) has_opt=yes; break;; \
59+ esac; \
60+ done; \
61+ test $$has_opt = yes
62+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
63+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
64+pkgdatadir = $(datadir)/@PACKAGE@
65+pkgincludedir = $(includedir)/@PACKAGE@
66+pkglibdir = $(libdir)/@PACKAGE@
67+pkglibexecdir = $(libexecdir)/@PACKAGE@
68+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
69+install_sh_DATA = $(install_sh) -c -m 644
70+install_sh_PROGRAM = $(install_sh) -c
71+install_sh_SCRIPT = $(install_sh) -c
72+INSTALL_HEADER = $(INSTALL_DATA)
73+transform = $(program_transform_name)
74+NORMAL_INSTALL = :
75+PRE_INSTALL = :
76+POST_INSTALL = :
77+NORMAL_UNINSTALL = :
78+PRE_UNINSTALL = :
79+POST_UNINSTALL = :
80+build_triplet = @build@
81+host_triplet = @host@
82+bin_PROGRAMS = makedepend$(EXEEXT)
83+subdir = .
84+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
85+ $(top_srcdir)/configure $(am__configure_deps) \
86+ $(srcdir)/makedepend-config.h.in depcomp test-driver AUTHORS \
87+ COPYING ChangeLog README compile config.guess config.sub \
88+ install-sh missing
89+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
90+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
91+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
92+ $(ACLOCAL_M4)
93+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
94+ configure.lineno config.status.lineno
95+mkinstalldirs = $(install_sh) -d
96+CONFIG_HEADER = makedepend-config.h
97+CONFIG_CLEAN_FILES =
98+CONFIG_CLEAN_VPATH_FILES =
99+am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appmandir)"
100+PROGRAMS = $(bin_PROGRAMS)
101+am_makedepend_OBJECTS = include.$(OBJEXT) main.$(OBJEXT) \
102+ parse.$(OBJEXT) pr.$(OBJEXT) cppsetup.$(OBJEXT) \
103+ ifparser.$(OBJEXT)
104+makedepend_OBJECTS = $(am_makedepend_OBJECTS)
105+makedepend_LDADD = $(LDADD)
106+AM_V_P = $(am__v_P_@AM_V@)
107+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
108+am__v_P_0 = false
109+am__v_P_1 = :
110+AM_V_GEN = $(am__v_GEN_@AM_V@)
111+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
112+am__v_GEN_0 = @echo " GEN " $@;
113+am__v_GEN_1 =
114+AM_V_at = $(am__v_at_@AM_V@)
115+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
116+am__v_at_0 = @
117+am__v_at_1 =
118+DEFAULT_INCLUDES = -I.@am__isrc@
119+depcomp = $(SHELL) $(top_srcdir)/depcomp
120+am__depfiles_maybe = depfiles
121+am__mv = mv -f
122+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
123+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
124+AM_V_CC = $(am__v_CC_@AM_V@)
125+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
126+am__v_CC_0 = @echo " CC " $@;
127+am__v_CC_1 =
128+CCLD = $(CC)
129+LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
130+AM_V_CCLD = $(am__v_CCLD_@AM_V@)
131+am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
132+am__v_CCLD_0 = @echo " CCLD " $@;
133+am__v_CCLD_1 =
134+SOURCES = $(makedepend_SOURCES)
135+DIST_SOURCES = $(makedepend_SOURCES)
136+am__can_run_installinfo = \
137+ case $$AM_UPDATE_INFO_DIR in \
138+ n|no|NO) false;; \
139+ *) (install-info --version) >/dev/null 2>&1;; \
140+ esac
141+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
142+am__vpath_adj = case $$p in \
143+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
144+ *) f=$$p;; \
145+ esac;
146+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
147+am__install_max = 40
148+am__nobase_strip_setup = \
149+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
150+am__nobase_strip = \
151+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
152+am__nobase_list = $(am__nobase_strip_setup); \
153+ for p in $$list; do echo "$$p $$p"; done | \
154+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
155+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
156+ if (++n[$$2] == $(am__install_max)) \
157+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
158+ END { for (dir in files) print dir, files[dir] }'
159+am__base_list = \
160+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
161+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
162+am__uninstall_files_from_dir = { \
163+ test -z "$$files" \
164+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
165+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
166+ $(am__cd) "$$dir" && rm -f $$files; }; \
167+ }
168+DATA = $(appman_DATA)
169+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
170+ $(LISP)makedepend-config.h.in
171+# Read a list of newline-separated strings from the standard input,
172+# and print each of them once, without duplicates. Input order is
173+# *not* preserved.
174+am__uniquify_input = $(AWK) '\
175+ BEGIN { nonempty = 0; } \
176+ { items[$$0] = 1; nonempty = 1; } \
177+ END { if (nonempty) { for (i in items) print i; }; } \
178+'
179+# Make sure the list of sources is unique. This is necessary because,
180+# e.g., the same source file might be shared among _SOURCES variables
181+# for different programs/libraries.
182+am__define_uniq_tagged_files = \
183+ list='$(am__tagged_files)'; \
184+ unique=`for i in $$list; do \
185+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
186+ done | $(am__uniquify_input)`
187+ETAGS = etags
188+CTAGS = ctags
189+CSCOPE = cscope
190+AM_RECURSIVE_TARGETS = cscope check recheck
191+am__tty_colors_dummy = \
192+ mgn= red= grn= lgn= blu= brg= std=; \
193+ am__color_tests=no
194+am__tty_colors = { \
195+ $(am__tty_colors_dummy); \
196+ if test "X$(AM_COLOR_TESTS)" = Xno; then \
197+ am__color_tests=no; \
198+ elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
199+ am__color_tests=yes; \
200+ elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
201+ am__color_tests=yes; \
202+ fi; \
203+ if test $$am__color_tests = yes; then \
204+ red=''; \
205+ grn=''; \
206+ lgn=''; \
207+ blu=''; \
208+ mgn=''; \
209+ brg=''; \
210+ std=''; \
211+ fi; \
212+}
213+am__recheck_rx = ^[ ]*:recheck:[ ]*
214+am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
215+am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
216+# A command that, given a newline-separated list of test names on the
217+# standard input, print the name of the tests that are to be re-run
218+# upon "make recheck".
219+am__list_recheck_tests = $(AWK) '{ \
220+ recheck = 1; \
221+ while ((rc = (getline line < ($$0 ".trs"))) != 0) \
222+ { \
223+ if (rc < 0) \
224+ { \
225+ if ((getline line2 < ($$0 ".log")) < 0) \
226+ recheck = 0; \
227+ break; \
228+ } \
229+ else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
230+ { \
231+ recheck = 0; \
232+ break; \
233+ } \
234+ else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
235+ { \
236+ break; \
237+ } \
238+ }; \
239+ if (recheck) \
240+ print $$0; \
241+ close ($$0 ".trs"); \
242+ close ($$0 ".log"); \
243+}'
244+# A command that, given a newline-separated list of test names on the
245+# standard input, create the global log from their .trs and .log files.
246+am__create_global_log = $(AWK) ' \
247+function fatal(msg) \
248+{ \
249+ print "fatal: making $@: " msg | "cat >&2"; \
250+ exit 1; \
251+} \
252+function rst_section(header) \
253+{ \
254+ print header; \
255+ len = length(header); \
256+ for (i = 1; i <= len; i = i + 1) \
257+ printf "="; \
258+ printf "\n\n"; \
259+} \
260+{ \
261+ copy_in_global_log = 1; \
262+ global_test_result = "RUN"; \
263+ while ((rc = (getline line < ($$0 ".trs"))) != 0) \
264+ { \
265+ if (rc < 0) \
266+ fatal("failed to read from " $$0 ".trs"); \
267+ if (line ~ /$(am__global_test_result_rx)/) \
268+ { \
269+ sub("$(am__global_test_result_rx)", "", line); \
270+ sub("[ ]*$$", "", line); \
271+ global_test_result = line; \
272+ } \
273+ else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
274+ copy_in_global_log = 0; \
275+ }; \
276+ if (copy_in_global_log) \
277+ { \
278+ rst_section(global_test_result ": " $$0); \
279+ while ((rc = (getline line < ($$0 ".log"))) != 0) \
280+ { \
281+ if (rc < 0) \
282+ fatal("failed to read from " $$0 ".log"); \
283+ print line; \
284+ }; \
285+ printf "\n"; \
286+ }; \
287+ close ($$0 ".trs"); \
288+ close ($$0 ".log"); \
289+}'
290+# Restructured Text title.
291+am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
292+# Solaris 10 'make', and several other traditional 'make' implementations,
293+# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
294+# by disabling -e (using the XSI extension "set +e") if it's set.
295+am__sh_e_setup = case $$- in *e*) set +e;; esac
296+# Default flags passed to test drivers.
297+am__common_driver_flags = \
298+ --color-tests "$$am__color_tests" \
299+ --enable-hard-errors "$$am__enable_hard_errors" \
300+ --expect-failure "$$am__expect_failure"
301+# To be inserted before the command running the test. Creates the
302+# directory for the log if needed. Stores in $dir the directory
303+# containing $f, in $tst the test, in $log the log. Executes the
304+# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
305+# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
306+# will run the test scripts (or their associated LOG_COMPILER, if
307+# thy have one).
308+am__check_pre = \
309+$(am__sh_e_setup); \
310+$(am__vpath_adj_setup) $(am__vpath_adj) \
311+$(am__tty_colors); \
312+srcdir=$(srcdir); export srcdir; \
313+case "$@" in \
314+ */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
315+ *) am__odir=.;; \
316+esac; \
317+test "x$$am__odir" = x"." || test -d "$$am__odir" \
318+ || $(MKDIR_P) "$$am__odir" || exit $$?; \
319+if test -f "./$$f"; then dir=./; \
320+elif test -f "$$f"; then dir=; \
321+else dir="$(srcdir)/"; fi; \
322+tst=$$dir$$f; log='$@'; \
323+if test -n '$(DISABLE_HARD_ERRORS)'; then \
324+ am__enable_hard_errors=no; \
325+else \
326+ am__enable_hard_errors=yes; \
327+fi; \
328+case " $(XFAIL_TESTS) " in \
329+ *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
330+ am__expect_failure=yes;; \
331+ *) \
332+ am__expect_failure=no;; \
333+esac; \
334+$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
335+# A shell command to get the names of the tests scripts with any registered
336+# extension removed (i.e., equivalently, the names of the test logs, with
337+# the '.log' extension removed). The result is saved in the shell variable
338+# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
339+# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
340+# since that might cause problem with VPATH rewrites for suffix-less tests.
341+# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
342+am__set_TESTS_bases = \
343+ bases='$(TEST_LOGS)'; \
344+ bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
345+ bases=`echo $$bases`
346+RECHECK_LOGS = $(TEST_LOGS)
347+TEST_SUITE_LOG = test-suite.log
348+TEST_EXTENSIONS = @EXEEXT@ .test
349+LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
350+LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
351+am__set_b = \
352+ case '$@' in \
353+ */*) \
354+ case '$*' in \
355+ */*) b='$*';; \
356+ *) b=`echo '$@' | sed 's/\.log$$//'`; \
357+ esac;; \
358+ *) \
359+ b='$*';; \
360+ esac
361+am__test_logs1 = $(TESTS:=.log)
362+am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
363+TEST_LOGS = $(am__test_logs2:.test.log=.log)
364+TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
365+TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
366+ $(TEST_LOG_FLAGS)
367+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
368+distdir = $(PACKAGE)-$(VERSION)
369+top_distdir = $(distdir)
370+am__remove_distdir = \
371+ if test -d "$(distdir)"; then \
372+ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
373+ && rm -rf "$(distdir)" \
374+ || { sleep 5 && rm -rf "$(distdir)"; }; \
375+ else :; fi
376+am__post_remove_distdir = $(am__remove_distdir)
377+DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
378+GZIP_ENV = --best
379+DIST_TARGETS = dist-bzip2 dist-gzip
380+distuninstallcheck_listfiles = find . -type f -print
381+am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
382+ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
383+distcleancheck_listfiles = find . -type f -print
384+ACLOCAL = @ACLOCAL@
385+ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
386+ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
387+AMTAR = @AMTAR@
388+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
389+APP_MAN_DIR = @APP_MAN_DIR@
390+APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
391+AUTOCONF = @AUTOCONF@
392+AUTOHEADER = @AUTOHEADER@
393+AUTOMAKE = @AUTOMAKE@
394+AWK = @AWK@
395+BASE_CFLAGS = @BASE_CFLAGS@
396+CC = @CC@
397+CCDEPMODE = @CCDEPMODE@
398+CFLAGS = @CFLAGS@
399+CHANGELOG_CMD = @CHANGELOG_CMD@
400+CPP = @CPP@
401+CPPFLAGS = @CPPFLAGS@
402+CWARNFLAGS = @CWARNFLAGS@
403+CYGPATH_W = @CYGPATH_W@
404+DEFS = @DEFS@
405+DEPDIR = @DEPDIR@
406+DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
407+DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
408+ECHO_C = @ECHO_C@
409+ECHO_N = @ECHO_N@
410+ECHO_T = @ECHO_T@
411+EGREP = @EGREP@
412+EXEEXT = @EXEEXT@
413+FILE_MAN_DIR = @FILE_MAN_DIR@
414+FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
415+GREP = @GREP@
416+INSTALL = @INSTALL@
417+INSTALL_CMD = @INSTALL_CMD@
418+INSTALL_DATA = @INSTALL_DATA@
419+INSTALL_PROGRAM = @INSTALL_PROGRAM@
420+INSTALL_SCRIPT = @INSTALL_SCRIPT@
421+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
422+LDFLAGS = @LDFLAGS@
423+LIBOBJS = @LIBOBJS@
424+LIBS = @LIBS@
425+LIB_MAN_DIR = @LIB_MAN_DIR@
426+LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
427+LINT = @LINT@
428+LINT_FLAGS = @LINT_FLAGS@
429+LTLIBOBJS = @LTLIBOBJS@
430+MAKEINFO = @MAKEINFO@
431+
432+# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
433+MAN_SUBSTS = @MAN_SUBSTS@ -e 's|__cpp__|$(RAWCPP)|g'
434+MISC_MAN_DIR = @MISC_MAN_DIR@
435+MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
436+MKDIR_P = @MKDIR_P@
437+OBJEXT = @OBJEXT@
438+PACKAGE = @PACKAGE@
439+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
440+PACKAGE_NAME = @PACKAGE_NAME@
441+PACKAGE_STRING = @PACKAGE_STRING@
442+PACKAGE_TARNAME = @PACKAGE_TARNAME@
443+PACKAGE_URL = @PACKAGE_URL@
444+PACKAGE_VERSION = @PACKAGE_VERSION@
445+PATH_SEPARATOR = @PATH_SEPARATOR@
446+PKG_CONFIG = @PKG_CONFIG@
447+SED = @SED@
448+SET_MAKE = @SET_MAKE@
449+SHELL = @SHELL@
450+STRICT_CFLAGS = @STRICT_CFLAGS@
451+STRIP = @STRIP@
452+VERSION = @VERSION@
453+XORG_MAN_PAGE = @XORG_MAN_PAGE@
454+X_CFLAGS = @X_CFLAGS@
455+X_LIBS = @X_LIBS@
456+abs_builddir = @abs_builddir@
457+abs_srcdir = @abs_srcdir@
458+abs_top_builddir = @abs_top_builddir@
459+abs_top_srcdir = @abs_top_srcdir@
460+ac_ct_CC = @ac_ct_CC@
461+am__include = @am__include@
462+am__leading_dot = @am__leading_dot@
463+am__quote = @am__quote@
464+am__tar = @am__tar@
465+am__untar = @am__untar@
466+bindir = @bindir@
467+build = @build@
468+build_alias = @build_alias@
469+build_cpu = @build_cpu@
470+build_os = @build_os@
471+build_vendor = @build_vendor@
472+builddir = @builddir@
473+datadir = @datadir@
474+datarootdir = @datarootdir@
475+docdir = @docdir@
476+dvidir = @dvidir@
477+exec_prefix = @exec_prefix@
478+host = @host@
479+host_alias = @host_alias@
480+host_cpu = @host_cpu@
481+host_os = @host_os@
482+host_vendor = @host_vendor@
483+htmldir = @htmldir@
484+includedir = @includedir@
485+infodir = @infodir@
486+install_sh = @install_sh@
487+libdir = @libdir@
488+libexecdir = @libexecdir@
489+localedir = @localedir@
490+localstatedir = @localstatedir@
491+mandir = @mandir@
492+mkdir_p = @mkdir_p@
493+oldincludedir = @oldincludedir@
494+pdfdir = @pdfdir@
495+prefix = @prefix@
496+program_transform_name = @program_transform_name@
497+psdir = @psdir@
498+sbindir = @sbindir@
499+sharedstatedir = @sharedstatedir@
500+srcdir = @srcdir@
501+sysconfdir = @sysconfdir@
502+target_alias = @target_alias@
503+top_build_prefix = @top_build_prefix@
504+top_builddir = @top_builddir@
505+top_srcdir = @top_srcdir@
506+makedepend_SOURCES = include.c \
507+ main.c \
508+ parse.c \
509+ pr.c \
510+ cppsetup.c \
511+ ifparser.c \
512+ ifparser.h \
513+ def.h \
514+ imakemdep.h
515+
516+AM_CPPFLAGS = -DOBJSUFFIX=\".${OBJEXT}\" -DINCLUDEDIR=\"/usr/include\" \
517+ $(X_CFLAGS)
518+AM_CFLAGS = $(CWARNFLAGS)
519+EXTRA_DIST = autogen.sh makedepend.man ChangeLog \
520+ tests/28045/makedep.sh tests/28045/foo.cpp
521+
522+# Man page
523+appmandir = $(APP_MAN_DIR)
524+appman_PRE = makedepend.man
525+appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
526+CLEANFILES = $(appman_DATA)
527+SUFFIXES = .$(APP_MAN_SUFFIX) .man
528+MAINTAINERCLEANFILES = ChangeLog
529+@LINT_TRUE@ALL_LINT_FLAGS = $(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
530+@LINT_TRUE@ $(AM_CPPFLAGS) $(CPPFLAGS)
531+
532+
533+### Test cases - mostly for bug fixes submitted with a test case so far
534+
535+# Test for https://bugs.freedesktop.org/show_bug.cgi?id=28045
536+TESTS = tests/28045/makedep.sh
537+
538+# Absolute path to srcdir & builddir top that test scripts can reference
539+TEST_BUILDDIR_PATH = `cd $(top_builddir) && pwd`
540+TEST_SRCDIR_PATH = `cd $(top_srcdir) && pwd`
541+
542+# Path to makedepend command being tested that can be found from test subdirs
543+
544+# Path to writable testdirectory in build directory
545+
546+# Path to testcase files in source directory
547+TESTS_ENVIRONMENT = MAKEDEPEND="$(TEST_BUILDDIR_PATH)/makedepend" \
548+ test_builddir="$(TEST_BUILDDIR_PATH)/tests" \
549+ test_srcdir="$(TEST_SRCDIR_PATH)/tests"
550+all: makedepend-config.h
551+ $(MAKE) $(AM_MAKEFLAGS) all-am
552+
553+.SUFFIXES:
554+.SUFFIXES: .$(APP_MAN_SUFFIX) .man .c .log .o .obj .test .test$(EXEEXT) .trs
555+am--refresh: Makefile
556+ @:
557+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
558+ @for dep in $?; do \
559+ case '$(am__configure_deps)' in \
560+ *$$dep*) \
561+ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
562+ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
563+ && exit 0; \
564+ exit 1;; \
565+ esac; \
566+ done; \
567+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
568+ $(am__cd) $(top_srcdir) && \
569+ $(AUTOMAKE) --foreign Makefile
570+.PRECIOUS: Makefile
571+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
572+ @case '$?' in \
573+ *config.status*) \
574+ echo ' $(SHELL) ./config.status'; \
575+ $(SHELL) ./config.status;; \
576+ *) \
577+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
578+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
579+ esac;
580+
581+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
582+ $(SHELL) ./config.status --recheck
583+
584+$(top_srcdir)/configure: $(am__configure_deps)
585+ $(am__cd) $(srcdir) && $(AUTOCONF)
586+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
587+ $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
588+$(am__aclocal_m4_deps):
589+
590+makedepend-config.h: stamp-h1
591+ @test -f $@ || rm -f stamp-h1
592+ @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
593+
594+stamp-h1: $(srcdir)/makedepend-config.h.in $(top_builddir)/config.status
595+ @rm -f stamp-h1
596+ cd $(top_builddir) && $(SHELL) ./config.status makedepend-config.h
597+$(srcdir)/makedepend-config.h.in: $(am__configure_deps)
598+ ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
599+ rm -f stamp-h1
600+ touch $@
601+
602+distclean-hdr:
603+ -rm -f makedepend-config.h stamp-h1
604+install-binPROGRAMS: $(bin_PROGRAMS)
605+ @$(NORMAL_INSTALL)
606+ @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
607+ if test -n "$$list"; then \
608+ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
609+ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
610+ fi; \
611+ for p in $$list; do echo "$$p $$p"; done | \
612+ sed 's/$(EXEEXT)$$//' | \
613+ while read p p1; do if test -f $$p \
614+ ; then echo "$$p"; echo "$$p"; else :; fi; \
615+ done | \
616+ sed -e 'p;s,.*/,,;n;h' \
617+ -e 's|.*|.|' \
618+ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
619+ sed 'N;N;N;s,\n, ,g' | \
620+ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
621+ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
622+ if ($$2 == $$4) files[d] = files[d] " " $$1; \
623+ else { print "f", $$3 "/" $$4, $$1; } } \
624+ END { for (d in files) print "f", d, files[d] }' | \
625+ while read type dir files; do \
626+ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
627+ test -z "$$files" || { \
628+ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
629+ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
630+ } \
631+ ; done
632+
633+uninstall-binPROGRAMS:
634+ @$(NORMAL_UNINSTALL)
635+ @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
636+ files=`for p in $$list; do echo "$$p"; done | \
637+ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
638+ -e 's/$$/$(EXEEXT)/' \
639+ `; \
640+ test -n "$$list" || exit 0; \
641+ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
642+ cd "$(DESTDIR)$(bindir)" && rm -f $$files
643+
644+clean-binPROGRAMS:
645+ -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
646+
647+makedepend$(EXEEXT): $(makedepend_OBJECTS) $(makedepend_DEPENDENCIES) $(EXTRA_makedepend_DEPENDENCIES)
648+ @rm -f makedepend$(EXEEXT)
649+ $(AM_V_CCLD)$(LINK) $(makedepend_OBJECTS) $(makedepend_LDADD) $(LIBS)
650+
651+mostlyclean-compile:
652+ -rm -f *.$(OBJEXT)
653+
654+distclean-compile:
655+ -rm -f *.tab.c
656+
657+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cppsetup.Po@am__quote@
658+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ifparser.Po@am__quote@
659+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/include.Po@am__quote@
660+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
661+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parse.Po@am__quote@
662+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pr.Po@am__quote@
663+
664+.c.o:
665+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
666+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
667+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
668+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
669+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
670+
671+.c.obj:
672+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
673+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
674+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
675+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
676+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
677+install-appmanDATA: $(appman_DATA)
678+ @$(NORMAL_INSTALL)
679+ @list='$(appman_DATA)'; test -n "$(appmandir)" || list=; \
680+ if test -n "$$list"; then \
681+ echo " $(MKDIR_P) '$(DESTDIR)$(appmandir)'"; \
682+ $(MKDIR_P) "$(DESTDIR)$(appmandir)" || exit 1; \
683+ fi; \
684+ for p in $$list; do \
685+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
686+ echo "$$d$$p"; \
687+ done | $(am__base_list) | \
688+ while read files; do \
689+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appmandir)'"; \
690+ $(INSTALL_DATA) $$files "$(DESTDIR)$(appmandir)" || exit $$?; \
691+ done
692+
693+uninstall-appmanDATA:
694+ @$(NORMAL_UNINSTALL)
695+ @list='$(appman_DATA)'; test -n "$(appmandir)" || list=; \
696+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
697+ dir='$(DESTDIR)$(appmandir)'; $(am__uninstall_files_from_dir)
698+
699+ID: $(am__tagged_files)
700+ $(am__define_uniq_tagged_files); mkid -fID $$unique
701+tags: tags-am
702+TAGS: tags
703+
704+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
705+ set x; \
706+ here=`pwd`; \
707+ $(am__define_uniq_tagged_files); \
708+ shift; \
709+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
710+ test -n "$$unique" || unique=$$empty_fix; \
711+ if test $$# -gt 0; then \
712+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
713+ "$$@" $$unique; \
714+ else \
715+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
716+ $$unique; \
717+ fi; \
718+ fi
719+ctags: ctags-am
720+
721+CTAGS: ctags
722+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
723+ $(am__define_uniq_tagged_files); \
724+ test -z "$(CTAGS_ARGS)$$unique" \
725+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
726+ $$unique
727+
728+GTAGS:
729+ here=`$(am__cd) $(top_builddir) && pwd` \
730+ && $(am__cd) $(top_srcdir) \
731+ && gtags -i $(GTAGS_ARGS) "$$here"
732+cscope: cscope.files
733+ test ! -s cscope.files \
734+ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
735+clean-cscope:
736+ -rm -f cscope.files
737+cscope.files: clean-cscope cscopelist
738+cscopelist: cscopelist-am
739+
740+cscopelist-am: $(am__tagged_files)
741+ list='$(am__tagged_files)'; \
742+ case "$(srcdir)" in \
743+ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
744+ *) sdir=$(subdir)/$(srcdir) ;; \
745+ esac; \
746+ for i in $$list; do \
747+ if test -f "$$i"; then \
748+ echo "$(subdir)/$$i"; \
749+ else \
750+ echo "$$sdir/$$i"; \
751+ fi; \
752+ done >> $(top_builddir)/cscope.files
753+
754+distclean-tags:
755+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
756+ -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
757+
758+# Recover from deleted '.trs' file; this should ensure that
759+# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
760+# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
761+# to avoid problems with "make -n".
762+.log.trs:
763+ rm -f $< $@
764+ $(MAKE) $(AM_MAKEFLAGS) $<
765+
766+# Leading 'am--fnord' is there to ensure the list of targets does not
767+# expand to empty, as could happen e.g. with make check TESTS=''.
768+am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
769+am--force-recheck:
770+ @:
771+
772+$(TEST_SUITE_LOG): $(TEST_LOGS)
773+ @$(am__set_TESTS_bases); \
774+ am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
775+ redo_bases=`for i in $$bases; do \
776+ am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
777+ done`; \
778+ if test -n "$$redo_bases"; then \
779+ redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
780+ redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
781+ if $(am__make_dryrun); then :; else \
782+ rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
783+ fi; \
784+ fi; \
785+ if test -n "$$am__remaking_logs"; then \
786+ echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
787+ "recursion detected" >&2; \
788+ else \
789+ am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
790+ fi; \
791+ if $(am__make_dryrun); then :; else \
792+ st=0; \
793+ errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
794+ for i in $$redo_bases; do \
795+ test -f $$i.trs && test -r $$i.trs \
796+ || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
797+ test -f $$i.log && test -r $$i.log \
798+ || { echo "$$errmsg $$i.log" >&2; st=1; }; \
799+ done; \
800+ test $$st -eq 0 || exit 1; \
801+ fi
802+ @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
803+ ws='[ ]'; \
804+ results=`for b in $$bases; do echo $$b.trs; done`; \
805+ test -n "$$results" || results=/dev/null; \
806+ all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
807+ pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
808+ fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
809+ skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
810+ xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
811+ xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
812+ error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
813+ if test `expr $$fail + $$xpass + $$error` -eq 0; then \
814+ success=true; \
815+ else \
816+ success=false; \
817+ fi; \
818+ br='==================='; br=$$br$$br$$br$$br; \
819+ result_count () \
820+ { \
821+ if test x"$$1" = x"--maybe-color"; then \
822+ maybe_colorize=yes; \
823+ elif test x"$$1" = x"--no-color"; then \
824+ maybe_colorize=no; \
825+ else \
826+ echo "$@: invalid 'result_count' usage" >&2; exit 4; \
827+ fi; \
828+ shift; \
829+ desc=$$1 count=$$2; \
830+ if test $$maybe_colorize = yes && test $$count -gt 0; then \
831+ color_start=$$3 color_end=$$std; \
832+ else \
833+ color_start= color_end=; \
834+ fi; \
835+ echo "$${color_start}# $$desc $$count$${color_end}"; \
836+ }; \
837+ create_testsuite_report () \
838+ { \
839+ result_count $$1 "TOTAL:" $$all "$$brg"; \
840+ result_count $$1 "PASS: " $$pass "$$grn"; \
841+ result_count $$1 "SKIP: " $$skip "$$blu"; \
842+ result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
843+ result_count $$1 "FAIL: " $$fail "$$red"; \
844+ result_count $$1 "XPASS:" $$xpass "$$red"; \
845+ result_count $$1 "ERROR:" $$error "$$mgn"; \
846+ }; \
847+ { \
848+ echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
849+ $(am__rst_title); \
850+ create_testsuite_report --no-color; \
851+ echo; \
852+ echo ".. contents:: :depth: 2"; \
853+ echo; \
854+ for b in $$bases; do echo $$b; done \
855+ | $(am__create_global_log); \
856+ } >$(TEST_SUITE_LOG).tmp || exit 1; \
857+ mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
858+ if $$success; then \
859+ col="$$grn"; \
860+ else \
861+ col="$$red"; \
862+ test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
863+ fi; \
864+ echo "$${col}$$br$${std}"; \
865+ echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
866+ echo "$${col}$$br$${std}"; \
867+ create_testsuite_report --maybe-color; \
868+ echo "$$col$$br$$std"; \
869+ if $$success; then :; else \
870+ echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
871+ if test -n "$(PACKAGE_BUGREPORT)"; then \
872+ echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
873+ fi; \
874+ echo "$$col$$br$$std"; \
875+ fi; \
876+ $$success || exit 1
877+
878+check-TESTS:
879+ @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
880+ @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
881+ @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
882+ @set +e; $(am__set_TESTS_bases); \
883+ log_list=`for i in $$bases; do echo $$i.log; done`; \
884+ trs_list=`for i in $$bases; do echo $$i.trs; done`; \
885+ log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
886+ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
887+ exit $$?;
888+recheck: all
889+ @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
890+ @set +e; $(am__set_TESTS_bases); \
891+ bases=`for i in $$bases; do echo $$i; done \
892+ | $(am__list_recheck_tests)` || exit 1; \
893+ log_list=`for i in $$bases; do echo $$i.log; done`; \
894+ log_list=`echo $$log_list`; \
895+ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
896+ am__force_recheck=am--force-recheck \
897+ TEST_LOGS="$$log_list"; \
898+ exit $$?
899+tests/28045/makedep.sh.log: tests/28045/makedep.sh
900+ @p='tests/28045/makedep.sh'; \
901+ b='tests/28045/makedep.sh'; \
902+ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
903+ --log-file $$b.log --trs-file $$b.trs \
904+ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
905+ "$$tst" $(AM_TESTS_FD_REDIRECT)
906+.test.log:
907+ @p='$<'; \
908+ $(am__set_b); \
909+ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
910+ --log-file $$b.log --trs-file $$b.trs \
911+ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
912+ "$$tst" $(AM_TESTS_FD_REDIRECT)
913+@am__EXEEXT_TRUE@.test$(EXEEXT).log:
914+@am__EXEEXT_TRUE@ @p='$<'; \
915+@am__EXEEXT_TRUE@ $(am__set_b); \
916+@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
917+@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
918+@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
919+@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
920+
921+distdir: $(DISTFILES)
922+ $(am__remove_distdir)
923+ test -d "$(distdir)" || mkdir "$(distdir)"
924+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
925+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
926+ list='$(DISTFILES)'; \
927+ dist_files=`for file in $$list; do echo $$file; done | \
928+ sed -e "s|^$$srcdirstrip/||;t" \
929+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
930+ case $$dist_files in \
931+ */*) $(MKDIR_P) `echo "$$dist_files" | \
932+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
933+ sort -u` ;; \
934+ esac; \
935+ for file in $$dist_files; do \
936+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
937+ if test -d $$d/$$file; then \
938+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
939+ if test -d "$(distdir)/$$file"; then \
940+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
941+ fi; \
942+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
943+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
944+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
945+ fi; \
946+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
947+ else \
948+ test -f "$(distdir)/$$file" \
949+ || cp -p $$d/$$file "$(distdir)/$$file" \
950+ || exit 1; \
951+ fi; \
952+ done
953+ $(MAKE) $(AM_MAKEFLAGS) \
954+ top_distdir="$(top_distdir)" distdir="$(distdir)" \
955+ dist-hook
956+ -test -n "$(am__skip_mode_fix)" \
957+ || find "$(distdir)" -type d ! -perm -755 \
958+ -exec chmod u+rwx,go+rx {} \; -o \
959+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
960+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
961+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
962+ || chmod -R a+r "$(distdir)"
963+dist-gzip: distdir
964+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
965+ $(am__post_remove_distdir)
966+dist-bzip2: distdir
967+ tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
968+ $(am__post_remove_distdir)
969+
970+dist-lzip: distdir
971+ tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
972+ $(am__post_remove_distdir)
973+
974+dist-xz: distdir
975+ tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
976+ $(am__post_remove_distdir)
977+
978+dist-tarZ: distdir
979+ @echo WARNING: "Support for shar distribution archives is" \
980+ "deprecated." >&2
981+ @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
982+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
983+ $(am__post_remove_distdir)
984+
985+dist-shar: distdir
986+ @echo WARNING: "Support for distribution archives compressed with" \
987+ "legacy program 'compress' is deprecated." >&2
988+ @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
989+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
990+ $(am__post_remove_distdir)
991+
992+dist-zip: distdir
993+ -rm -f $(distdir).zip
994+ zip -rq $(distdir).zip $(distdir)
995+ $(am__post_remove_distdir)
996+
997+dist dist-all:
998+ $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
999+ $(am__post_remove_distdir)
1000+
1001+# This target untars the dist file and tries a VPATH configuration. Then
1002+# it guarantees that the distribution is self-contained by making another
1003+# tarfile.
1004+distcheck: dist
1005+ case '$(DIST_ARCHIVES)' in \
1006+ *.tar.gz*) \
1007+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
1008+ *.tar.bz2*) \
1009+ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
1010+ *.tar.lz*) \
1011+ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
1012+ *.tar.xz*) \
1013+ xz -dc $(distdir).tar.xz | $(am__untar) ;;\
1014+ *.tar.Z*) \
1015+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
1016+ *.shar.gz*) \
1017+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
1018+ *.zip*) \
1019+ unzip $(distdir).zip ;;\
1020+ esac
1021+ chmod -R a-w $(distdir)
1022+ chmod u+w $(distdir)
1023+ mkdir $(distdir)/_build $(distdir)/_inst
1024+ chmod a-w $(distdir)
1025+ test -d $(distdir)/_build || exit 0; \
1026+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
1027+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
1028+ && am__cwd=`pwd` \
1029+ && $(am__cd) $(distdir)/_build \
1030+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
1031+ $(AM_DISTCHECK_CONFIGURE_FLAGS) \
1032+ $(DISTCHECK_CONFIGURE_FLAGS) \
1033+ && $(MAKE) $(AM_MAKEFLAGS) \
1034+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
1035+ && $(MAKE) $(AM_MAKEFLAGS) check \
1036+ && $(MAKE) $(AM_MAKEFLAGS) install \
1037+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
1038+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
1039+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
1040+ distuninstallcheck \
1041+ && chmod -R a-w "$$dc_install_base" \
1042+ && ({ \
1043+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
1044+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
1045+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
1046+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
1047+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
1048+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
1049+ && rm -rf "$$dc_destdir" \
1050+ && $(MAKE) $(AM_MAKEFLAGS) dist \
1051+ && rm -rf $(DIST_ARCHIVES) \
1052+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
1053+ && cd "$$am__cwd" \
1054+ || exit 1
1055+ $(am__post_remove_distdir)
1056+ @(echo "$(distdir) archives ready for distribution: "; \
1057+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
1058+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
1059+distuninstallcheck:
1060+ @test -n '$(distuninstallcheck_dir)' || { \
1061+ echo 'ERROR: trying to run $@ with an empty' \
1062+ '$$(distuninstallcheck_dir)' >&2; \
1063+ exit 1; \
1064+ }; \
1065+ $(am__cd) '$(distuninstallcheck_dir)' || { \
1066+ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
1067+ exit 1; \
1068+ }; \
1069+ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
1070+ || { echo "ERROR: files left after uninstall:" ; \
1071+ if test -n "$(DESTDIR)"; then \
1072+ echo " (check DESTDIR support)"; \
1073+ fi ; \
1074+ $(distuninstallcheck_listfiles) ; \
1075+ exit 1; } >&2
1076+distcleancheck: distclean
1077+ @if test '$(srcdir)' = . ; then \
1078+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
1079+ exit 1 ; \
1080+ fi
1081+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
1082+ || { echo "ERROR: files left in build directory after distclean:" ; \
1083+ $(distcleancheck_listfiles) ; \
1084+ exit 1; } >&2
1085+check-am: all-am
1086+ $(MAKE) $(AM_MAKEFLAGS) check-TESTS
1087+check: check-am
1088+all-am: Makefile $(PROGRAMS) $(DATA) makedepend-config.h
1089+installdirs:
1090+ for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appmandir)"; do \
1091+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1092+ done
1093+install: install-am
1094+install-exec: install-exec-am
1095+install-data: install-data-am
1096+uninstall: uninstall-am
1097+
1098+install-am: all-am
1099+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1100+
1101+installcheck: installcheck-am
1102+install-strip:
1103+ if test -z '$(STRIP)'; then \
1104+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1105+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1106+ install; \
1107+ else \
1108+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1109+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1110+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1111+ fi
1112+mostlyclean-generic:
1113+ -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
1114+ -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
1115+ -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1116+
1117+clean-generic:
1118+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
1119+
1120+distclean-generic:
1121+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1122+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
1123+
1124+maintainer-clean-generic:
1125+ @echo "This command is intended for maintainers to use"
1126+ @echo "it deletes files that may require special tools to rebuild."
1127+ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
1128+clean: clean-am
1129+
1130+clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
1131+
1132+distclean: distclean-am
1133+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1134+ -rm -rf ./$(DEPDIR)
1135+ -rm -f Makefile
1136+distclean-am: clean-am distclean-compile distclean-generic \
1137+ distclean-hdr distclean-tags
1138+
1139+dvi: dvi-am
1140+
1141+dvi-am:
1142+
1143+html: html-am
1144+
1145+html-am:
1146+
1147+info: info-am
1148+
1149+info-am:
1150+
1151+install-data-am: install-appmanDATA
1152+
1153+install-dvi: install-dvi-am
1154+
1155+install-dvi-am:
1156+
1157+install-exec-am: install-binPROGRAMS
1158+
1159+install-html: install-html-am
1160+
1161+install-html-am:
1162+
1163+install-info: install-info-am
1164+
1165+install-info-am:
1166+
1167+install-man:
1168+
1169+install-pdf: install-pdf-am
1170+
1171+install-pdf-am:
1172+
1173+install-ps: install-ps-am
1174+
1175+install-ps-am:
1176+
1177+installcheck-am:
1178+
1179+maintainer-clean: maintainer-clean-am
1180+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1181+ -rm -rf $(top_srcdir)/autom4te.cache
1182+ -rm -rf ./$(DEPDIR)
1183+ -rm -f Makefile
1184+maintainer-clean-am: distclean-am maintainer-clean-generic
1185+
1186+mostlyclean: mostlyclean-am
1187+
1188+mostlyclean-am: mostlyclean-compile mostlyclean-generic
1189+
1190+pdf: pdf-am
1191+
1192+pdf-am:
1193+
1194+ps: ps-am
1195+
1196+ps-am:
1197+
1198+uninstall-am: uninstall-appmanDATA uninstall-binPROGRAMS
1199+
1200+.MAKE: all check-am install-am install-strip
1201+
1202+.PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-TESTS \
1203+ check-am clean clean-binPROGRAMS clean-cscope clean-generic \
1204+ cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
1205+ dist-gzip dist-hook dist-lzip dist-shar dist-tarZ dist-xz \
1206+ dist-zip distcheck distclean distclean-compile \
1207+ distclean-generic distclean-hdr distclean-tags distcleancheck \
1208+ distdir distuninstallcheck dvi dvi-am html html-am info \
1209+ info-am install install-am install-appmanDATA \
1210+ install-binPROGRAMS install-data install-data-am install-dvi \
1211+ install-dvi-am install-exec install-exec-am install-html \
1212+ install-html-am install-info install-info-am install-man \
1213+ install-pdf install-pdf-am install-ps install-ps-am \
1214+ install-strip installcheck installcheck-am installdirs \
1215+ maintainer-clean maintainer-clean-generic mostlyclean \
1216+ mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
1217+ recheck tags tags-am uninstall uninstall-am \
1218+ uninstall-appmanDATA uninstall-binPROGRAMS
1219+
1220+
1221+.man.$(APP_MAN_SUFFIX):
1222+ $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1223+
1224+.PHONY: ChangeLog
1225+
1226+ChangeLog:
1227+ $(CHANGELOG_CMD)
1228+
1229+dist-hook: ChangeLog
1230+
1231+@LINT_TRUE@lint:
1232+@LINT_TRUE@ $(LINT) $(ALL_LINT_FLAGS) $(makedepend_SOURCES)
1233+
1234+# Tell versions [3.59,3.63) of GNU make to not export all variables.
1235+# Otherwise a system limit (for SysV at least) may be exceeded.
1236+.NOEXPORT:
diff -r 000000000000 -r 36b43b946834 build/makedepend/README
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/build/makedepend/README Sat Jul 04 06:08:07 2020 -0400
@@ -0,0 +1,25 @@
1+makedepend - create dependencies in makefiles
2+
3+All questions regarding this software should be directed at the
4+Xorg mailing list:
5+
6+ http://lists.freedesktop.org/mailman/listinfo/xorg
7+
8+Please submit bug reports to the Xorg bugzilla:
9+
10+ https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
11+
12+The master development code repository can be found at:
13+
14+ git://anongit.freedesktop.org/git/xorg/util/makedepend
15+
16+ http://cgit.freedesktop.org/xorg/util/makedepend
17+
18+For patch submission instructions, see:
19+
20+ http://www.x.org/wiki/Development/Documentation/SubmittingPatches
21+
22+For more information on the git code manager, see:
23+
24+ http://wiki.x.org/wiki/GitPage
25+
diff -r 000000000000 -r 36b43b946834 build/makedepend/aclocal.m4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/build/makedepend/aclocal.m4 Sat Jul 04 06:08:07 2020 -0400
@@ -0,0 +1,3158 @@
1+# generated automatically by aclocal 1.14 -*- Autoconf -*-
2+
3+# Copyright (C) 1996-2013 Free Software Foundation, Inc.
4+
5+# This file is free software; the Free Software Foundation
6+# gives unlimited permission to copy and/or distribute it,
7+# with or without modifications, as long as this notice is preserved.
8+
9+# This program is distributed in the hope that it will be useful,
10+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12+# PARTICULAR PURPOSE.
13+
14+m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15+m4_ifndef([AC_AUTOCONF_VERSION],
16+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17+m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
18+[m4_warning([this file was generated for autoconf 2.68.
19+You have another version of autoconf. It may work, but is not guaranteed to.
20+If you have problems, you may need to regenerate the build system entirely.
21+To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22+
23+# Copyright (C) 2002-2013 Free Software Foundation, Inc.
24+#
25+# This file is free software; the Free Software Foundation
26+# gives unlimited permission to copy and/or distribute it,
27+# with or without modifications, as long as this notice is preserved.
28+
29+# AM_AUTOMAKE_VERSION(VERSION)
30+# ----------------------------
31+# Automake X.Y traces this macro to ensure aclocal.m4 has been
32+# generated from the m4 files accompanying Automake X.Y.
33+# (This private macro should not be called outside this file.)
34+AC_DEFUN([AM_AUTOMAKE_VERSION],
35+[am__api_version='1.14'
36+dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
37+dnl require some minimum version. Point them to the right macro.
38+m4_if([$1], [1.14], [],
39+ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
40+])
41+
42+# _AM_AUTOCONF_VERSION(VERSION)
43+# -----------------------------
44+# aclocal traces this macro to find the Autoconf version.
45+# This is a private macro too. Using m4_define simplifies
46+# the logic in aclocal, which can simply ignore this definition.
47+m4_define([_AM_AUTOCONF_VERSION], [])
48+
49+# AM_SET_CURRENT_AUTOMAKE_VERSION
50+# -------------------------------
51+# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
52+# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
53+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
54+[AM_AUTOMAKE_VERSION([1.14])dnl
55+m4_ifndef([AC_AUTOCONF_VERSION],
56+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
57+_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58+
59+# AM_AUX_DIR_EXPAND -*- Autoconf -*-
60+
61+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
62+#
63+# This file is free software; the Free Software Foundation
64+# gives unlimited permission to copy and/or distribute it,
65+# with or without modifications, as long as this notice is preserved.
66+
67+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
68+# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
69+# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
70+#
71+# Of course, Automake must honor this variable whenever it calls a
72+# tool from the auxiliary directory. The problem is that $srcdir (and
73+# therefore $ac_aux_dir as well) can be either absolute or relative,
74+# depending on how configure is run. This is pretty annoying, since
75+# it makes $ac_aux_dir quite unusable in subdirectories: in the top
76+# source directory, any form will work fine, but in subdirectories a
77+# relative path needs to be adjusted first.
78+#
79+# $ac_aux_dir/missing
80+# fails when called from a subdirectory if $ac_aux_dir is relative
81+# $top_srcdir/$ac_aux_dir/missing
82+# fails if $ac_aux_dir is absolute,
83+# fails when called from a subdirectory in a VPATH build with
84+# a relative $ac_aux_dir
85+#
86+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
87+# are both prefixed by $srcdir. In an in-source build this is usually
88+# harmless because $srcdir is '.', but things will broke when you
89+# start a VPATH build or use an absolute $srcdir.
90+#
91+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
92+# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
93+# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
94+# and then we would define $MISSING as
95+# MISSING="\${SHELL} $am_aux_dir/missing"
96+# This will work as long as MISSING is not called from configure, because
97+# unfortunately $(top_srcdir) has no meaning in configure.
98+# However there are other variables, like CC, which are often used in
99+# configure, and could therefore not use this "fixed" $ac_aux_dir.
100+#
101+# Another solution, used here, is to always expand $ac_aux_dir to an
102+# absolute PATH. The drawback is that using absolute paths prevent a
103+# configured tree to be moved without reconfiguration.
104+
105+AC_DEFUN([AM_AUX_DIR_EXPAND],
106+[dnl Rely on autoconf to set up CDPATH properly.
107+AC_PREREQ([2.50])dnl
108+# expand $ac_aux_dir to an absolute path
109+am_aux_dir=`cd $ac_aux_dir && pwd`
110+])
111+
112+# AM_CONDITIONAL -*- Autoconf -*-
113+
114+# Copyright (C) 1997-2013 Free Software Foundation, Inc.
115+#
116+# This file is free software; the Free Software Foundation
117+# gives unlimited permission to copy and/or distribute it,
118+# with or without modifications, as long as this notice is preserved.
119+
120+# AM_CONDITIONAL(NAME, SHELL-CONDITION)
121+# -------------------------------------
122+# Define a conditional.
123+AC_DEFUN([AM_CONDITIONAL],
124+[AC_PREREQ([2.52])dnl
125+ m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
126+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
127+AC_SUBST([$1_TRUE])dnl
128+AC_SUBST([$1_FALSE])dnl
129+_AM_SUBST_NOTMAKE([$1_TRUE])dnl
130+_AM_SUBST_NOTMAKE([$1_FALSE])dnl
131+m4_define([_AM_COND_VALUE_$1], [$2])dnl
132+if $2; then
133+ $1_TRUE=
134+ $1_FALSE='#'
135+else
136+ $1_TRUE='#'
137+ $1_FALSE=
138+fi
139+AC_CONFIG_COMMANDS_PRE(
140+[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
141+ AC_MSG_ERROR([[conditional "$1" was never defined.
142+Usually this means the macro was only invoked conditionally.]])
143+fi])])
144+
145+# Copyright (C) 1999-2013 Free Software Foundation, Inc.
146+#
147+# This file is free software; the Free Software Foundation
148+# gives unlimited permission to copy and/or distribute it,
149+# with or without modifications, as long as this notice is preserved.
150+
151+
152+# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
153+# written in clear, in which case automake, when reading aclocal.m4,
154+# will think it sees a *use*, and therefore will trigger all it's
155+# C support machinery. Also note that it means that autoscan, seeing
156+# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
157+
158+
159+# _AM_DEPENDENCIES(NAME)
160+# ----------------------
161+# See how the compiler implements dependency checking.
162+# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
163+# We try a few techniques and use that to set a single cache variable.
164+#
165+# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
166+# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
167+# dependency, and given that the user is not expected to run this macro,
168+# just rely on AC_PROG_CC.
169+AC_DEFUN([_AM_DEPENDENCIES],
170+[AC_REQUIRE([AM_SET_DEPDIR])dnl
171+AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
172+AC_REQUIRE([AM_MAKE_INCLUDE])dnl
173+AC_REQUIRE([AM_DEP_TRACK])dnl
174+
175+m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
176+ [$1], [CXX], [depcc="$CXX" am_compiler_list=],
177+ [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
178+ [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
179+ [$1], [UPC], [depcc="$UPC" am_compiler_list=],
180+ [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
181+ [depcc="$$1" am_compiler_list=])
182+
183+AC_CACHE_CHECK([dependency style of $depcc],
184+ [am_cv_$1_dependencies_compiler_type],
185+[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
186+ # We make a subdir and do the tests there. Otherwise we can end up
187+ # making bogus files that we don't know about and never remove. For
188+ # instance it was reported that on HP-UX the gcc test will end up
189+ # making a dummy file named 'D' -- because '-MD' means "put the output
190+ # in D".
191+ rm -rf conftest.dir
192+ mkdir conftest.dir
193+ # Copy depcomp to subdir because otherwise we won't find it if we're
194+ # using a relative directory.
195+ cp "$am_depcomp" conftest.dir
196+ cd conftest.dir
197+ # We will build objects and dependencies in a subdirectory because
198+ # it helps to detect inapplicable dependency modes. For instance
199+ # both Tru64's cc and ICC support -MD to output dependencies as a
200+ # side effect of compilation, but ICC will put the dependencies in
201+ # the current directory while Tru64 will put them in the object
202+ # directory.
203+ mkdir sub
204+
205+ am_cv_$1_dependencies_compiler_type=none
206+ if test "$am_compiler_list" = ""; then
207+ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
208+ fi
209+ am__universal=false
210+ m4_case([$1], [CC],
211+ [case " $depcc " in #(
212+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
213+ esac],
214+ [CXX],
215+ [case " $depcc " in #(
216+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
217+ esac])
218+
219+ for depmode in $am_compiler_list; do
220+ # Setup a source with many dependencies, because some compilers
221+ # like to wrap large dependency lists on column 80 (with \), and
222+ # we should not choose a depcomp mode which is confused by this.
223+ #
224+ # We need to recreate these files for each test, as the compiler may
225+ # overwrite some of them when testing with obscure command lines.
226+ # This happens at least with the AIX C compiler.
227+ : > sub/conftest.c
228+ for i in 1 2 3 4 5 6; do
229+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
230+ # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
231+ # Solaris 10 /bin/sh.
232+ echo '/* dummy */' > sub/conftst$i.h
233+ done
234+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
235+
236+ # We check with '-c' and '-o' for the sake of the "dashmstdout"
237+ # mode. It turns out that the SunPro C++ compiler does not properly
238+ # handle '-M -o', and we need to detect this. Also, some Intel
239+ # versions had trouble with output in subdirs.
240+ am__obj=sub/conftest.${OBJEXT-o}
241+ am__minus_obj="-o $am__obj"
242+ case $depmode in
243+ gcc)
244+ # This depmode causes a compiler race in universal mode.
245+ test "$am__universal" = false || continue
246+ ;;
247+ nosideeffect)
248+ # After this tag, mechanisms are not by side-effect, so they'll
249+ # only be used when explicitly requested.
250+ if test "x$enable_dependency_tracking" = xyes; then
251+ continue
252+ else
253+ break
254+ fi
255+ ;;
256+ msvc7 | msvc7msys | msvisualcpp | msvcmsys)
257+ # This compiler won't grok '-c -o', but also, the minuso test has
258+ # not run yet. These depmodes are late enough in the game, and
259+ # so weak that their functioning should not be impacted.
260+ am__obj=conftest.${OBJEXT-o}
261+ am__minus_obj=
262+ ;;
263+ none) break ;;
264+ esac
265+ if depmode=$depmode \
266+ source=sub/conftest.c object=$am__obj \
267+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
268+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
269+ >/dev/null 2>conftest.err &&
270+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
271+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
272+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
273+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
274+ # icc doesn't choke on unknown options, it will just issue warnings
275+ # or remarks (even with -Werror). So we grep stderr for any message
276+ # that says an option was ignored or not supported.
277+ # When given -MP, icc 7.0 and 7.1 complain thusly:
278+ # icc: Command line warning: ignoring option '-M'; no argument required
279+ # The diagnosis changed in icc 8.0:
280+ # icc: Command line remark: option '-MP' not supported
281+ if (grep 'ignoring option' conftest.err ||
282+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
283+ am_cv_$1_dependencies_compiler_type=$depmode
284+ break
285+ fi
286+ fi
287+ done
288+
289+ cd ..
290+ rm -rf conftest.dir
291+else
292+ am_cv_$1_dependencies_compiler_type=none
293+fi
294+])
295+AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
296+AM_CONDITIONAL([am__fastdep$1], [
297+ test "x$enable_dependency_tracking" != xno \
298+ && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
299+])
300+
301+
302+# AM_SET_DEPDIR
303+# -------------
304+# Choose a directory name for dependency files.
305+# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
306+AC_DEFUN([AM_SET_DEPDIR],
307+[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
308+AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
309+])
310+
311+
312+# AM_DEP_TRACK
313+# ------------
314+AC_DEFUN([AM_DEP_TRACK],
315+[AC_ARG_ENABLE([dependency-tracking], [dnl
316+AS_HELP_STRING(
317+ [--enable-dependency-tracking],
318+ [do not reject slow dependency extractors])
319+AS_HELP_STRING(
320+ [--disable-dependency-tracking],
321+ [speeds up one-time build])])
322+if test "x$enable_dependency_tracking" != xno; then
323+ am_depcomp="$ac_aux_dir/depcomp"
324+ AMDEPBACKSLASH='\'
325+ am__nodep='_no'
326+fi
327+AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
328+AC_SUBST([AMDEPBACKSLASH])dnl
329+_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
330+AC_SUBST([am__nodep])dnl
331+_AM_SUBST_NOTMAKE([am__nodep])dnl
332+])
333+
334+# Generate code to set up dependency tracking. -*- Autoconf -*-
335+
336+# Copyright (C) 1999-2013 Free Software Foundation, Inc.
337+#
338+# This file is free software; the Free Software Foundation
339+# gives unlimited permission to copy and/or distribute it,
340+# with or without modifications, as long as this notice is preserved.
341+
342+
343+# _AM_OUTPUT_DEPENDENCY_COMMANDS
344+# ------------------------------
345+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
346+[{
347+ # Older Autoconf quotes --file arguments for eval, but not when files
348+ # are listed without --file. Let's play safe and only enable the eval
349+ # if we detect the quoting.
350+ case $CONFIG_FILES in
351+ *\'*) eval set x "$CONFIG_FILES" ;;
352+ *) set x $CONFIG_FILES ;;
353+ esac
354+ shift
355+ for mf
356+ do
357+ # Strip MF so we end up with the name of the file.
358+ mf=`echo "$mf" | sed -e 's/:.*$//'`
359+ # Check whether this is an Automake generated Makefile or not.
360+ # We used to match only the files named 'Makefile.in', but
361+ # some people rename them; so instead we look at the file content.
362+ # Grep'ing the first line is not enough: some people post-process
363+ # each Makefile.in and add a new line on top of each file to say so.
364+ # Grep'ing the whole file is not good either: AIX grep has a line
365+ # limit of 2048, but all sed's we know have understand at least 4000.
366+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
367+ dirpart=`AS_DIRNAME("$mf")`
368+ else
369+ continue
370+ fi
371+ # Extract the definition of DEPDIR, am__include, and am__quote
372+ # from the Makefile without running 'make'.
373+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
374+ test -z "$DEPDIR" && continue
375+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
376+ test -z "$am__include" && continue
377+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
378+ # Find all dependency output files, they are included files with
379+ # $(DEPDIR) in their names. We invoke sed twice because it is the
380+ # simplest approach to changing $(DEPDIR) to its actual value in the
381+ # expansion.
382+ for file in `sed -n "
383+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
384+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
385+ # Make sure the directory exists.
386+ test -f "$dirpart/$file" && continue
387+ fdir=`AS_DIRNAME(["$file"])`
388+ AS_MKDIR_P([$dirpart/$fdir])
389+ # echo "creating $dirpart/$file"
390+ echo '# dummy' > "$dirpart/$file"
391+ done
392+ done
393+}
394+])# _AM_OUTPUT_DEPENDENCY_COMMANDS
395+
396+
397+# AM_OUTPUT_DEPENDENCY_COMMANDS
398+# -----------------------------
399+# This macro should only be invoked once -- use via AC_REQUIRE.
400+#
401+# This code is only required when automatic dependency tracking
402+# is enabled. FIXME. This creates each '.P' file that we will
403+# need in order to bootstrap the dependency handling code.
404+AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
405+[AC_CONFIG_COMMANDS([depfiles],
406+ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
407+ [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
408+])
409+
410+# Do all the work for Automake. -*- Autoconf -*-
411+
412+# Copyright (C) 1996-2013 Free Software Foundation, Inc.
413+#
414+# This file is free software; the Free Software Foundation
415+# gives unlimited permission to copy and/or distribute it,
416+# with or without modifications, as long as this notice is preserved.
417+
418+# This macro actually does too much. Some checks are only needed if
419+# your package does certain things. But this isn't really a big deal.
420+
421+dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
422+m4_define([AC_PROG_CC],
423+m4_defn([AC_PROG_CC])
424+[_AM_PROG_CC_C_O
425+])
426+
427+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
428+# AM_INIT_AUTOMAKE([OPTIONS])
429+# -----------------------------------------------
430+# The call with PACKAGE and VERSION arguments is the old style
431+# call (pre autoconf-2.50), which is being phased out. PACKAGE
432+# and VERSION should now be passed to AC_INIT and removed from
433+# the call to AM_INIT_AUTOMAKE.
434+# We support both call styles for the transition. After
435+# the next Automake release, Autoconf can make the AC_INIT
436+# arguments mandatory, and then we can depend on a new Autoconf
437+# release and drop the old call support.
438+AC_DEFUN([AM_INIT_AUTOMAKE],
439+[AC_PREREQ([2.65])dnl
440+dnl Autoconf wants to disallow AM_ names. We explicitly allow
441+dnl the ones we care about.
442+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
443+AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
444+AC_REQUIRE([AC_PROG_INSTALL])dnl
445+if test "`cd $srcdir && pwd`" != "`pwd`"; then
446+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
447+ # is not polluted with repeated "-I."
448+ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
449+ # test to see if srcdir already configured
450+ if test -f $srcdir/config.status; then
451+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
452+ fi
453+fi
454+
455+# test whether we have cygpath
456+if test -z "$CYGPATH_W"; then
457+ if (cygpath --version) >/dev/null 2>/dev/null; then
458+ CYGPATH_W='cygpath -w'
459+ else
460+ CYGPATH_W=echo
461+ fi
462+fi
463+AC_SUBST([CYGPATH_W])
464+
465+# Define the identity of the package.
466+dnl Distinguish between old-style and new-style calls.
467+m4_ifval([$2],
468+[AC_DIAGNOSE([obsolete],
469+ [$0: two- and three-arguments forms are deprecated.])
470+m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
471+ AC_SUBST([PACKAGE], [$1])dnl
472+ AC_SUBST([VERSION], [$2])],
473+[_AM_SET_OPTIONS([$1])dnl
474+dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
475+m4_if(
476+ m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
477+ [ok:ok],,
478+ [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
479+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
480+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
481+
482+_AM_IF_OPTION([no-define],,
483+[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
484+ AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
485+
486+# Some tools Automake needs.
487+AC_REQUIRE([AM_SANITY_CHECK])dnl
488+AC_REQUIRE([AC_ARG_PROGRAM])dnl
489+AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
490+AM_MISSING_PROG([AUTOCONF], [autoconf])
491+AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
492+AM_MISSING_PROG([AUTOHEADER], [autoheader])
493+AM_MISSING_PROG([MAKEINFO], [makeinfo])
494+AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
495+AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
496+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
497+# For better backward compatibility. To be removed once Automake 1.9.x
498+# dies out for good. For more background, see:
499+# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
500+# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
501+AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
502+# We need awk for the "check" target. The system "awk" is bad on
503+# some platforms.
504+AC_REQUIRE([AC_PROG_AWK])dnl
505+AC_REQUIRE([AC_PROG_MAKE_SET])dnl
506+AC_REQUIRE([AM_SET_LEADING_DOT])dnl
507+_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
508+ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
509+ [_AM_PROG_TAR([v7])])])
510+_AM_IF_OPTION([no-dependencies],,
511+[AC_PROVIDE_IFELSE([AC_PROG_CC],
512+ [_AM_DEPENDENCIES([CC])],
513+ [m4_define([AC_PROG_CC],
514+ m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
515+AC_PROVIDE_IFELSE([AC_PROG_CXX],
516+ [_AM_DEPENDENCIES([CXX])],
517+ [m4_define([AC_PROG_CXX],
518+ m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
519+AC_PROVIDE_IFELSE([AC_PROG_OBJC],
520+ [_AM_DEPENDENCIES([OBJC])],
521+ [m4_define([AC_PROG_OBJC],
522+ m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
523+AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
524+ [_AM_DEPENDENCIES([OBJCXX])],
525+ [m4_define([AC_PROG_OBJCXX],
526+ m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
527+])
528+AC_REQUIRE([AM_SILENT_RULES])dnl
529+dnl The testsuite driver may need to know about EXEEXT, so add the
530+dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
531+dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
532+AC_CONFIG_COMMANDS_PRE(dnl
533+[m4_provide_if([_AM_COMPILER_EXEEXT],
534+ [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
535+
536+# POSIX will say in a future version that running "rm -f" with no argument
537+# is OK; and we want to be able to make that assumption in our Makefile
538+# recipes. So use an aggressive probe to check that the usage we want is
539+# actually supported "in the wild" to an acceptable degree.
540+# See automake bug#10828.
541+# To make any issue more visible, cause the running configure to be aborted
542+# by default if the 'rm' program in use doesn't match our expectations; the
543+# user can still override this though.
544+if rm -f && rm -fr && rm -rf; then : OK; else
545+ cat >&2 <<'END'
546+Oops!
547+
548+Your 'rm' program seems unable to run without file operands specified
549+on the command line, even when the '-f' option is present. This is contrary
550+to the behaviour of most rm programs out there, and not conforming with
551+the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
552+
553+Please tell bug-automake@gnu.org about your system, including the value
554+of your $PATH and any error possibly output before this message. This
555+can help us improve future automake versions.
556+
557+END
558+ if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
559+ echo 'Configuration will proceed anyway, since you have set the' >&2
560+ echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
561+ echo >&2
562+ else
563+ cat >&2 <<'END'
564+Aborting the configuration process, to ensure you take notice of the issue.
565+
566+You can download and install GNU coreutils to get an 'rm' implementation
567+that behaves properly: <http://www.gnu.org/software/coreutils/>.
568+
569+If you want to complete the configuration process using your problematic
570+'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
571+to "yes", and re-run configure.
572+
573+END
574+ AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
575+ fi
576+fi])
577+
578+dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
579+dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
580+dnl mangled by Autoconf and run in a shell conditional statement.
581+m4_define([_AC_COMPILER_EXEEXT],
582+m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
583+
584+# When config.status generates a header, we must update the stamp-h file.
585+# This file resides in the same directory as the config header
586+# that is generated. The stamp files are numbered to have different names.
587+
588+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
589+# loop where config.status creates the headers, so we can generate
590+# our stamp files there.
591+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
592+[# Compute $1's index in $config_headers.
593+_am_arg=$1
594+_am_stamp_count=1
595+for _am_header in $config_headers :; do
596+ case $_am_header in
597+ $_am_arg | $_am_arg:* )
598+ break ;;
599+ * )
600+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
601+ esac
602+done
603+echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
604+
605+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
606+#
607+# This file is free software; the Free Software Foundation
608+# gives unlimited permission to copy and/or distribute it,
609+# with or without modifications, as long as this notice is preserved.
610+
611+# AM_PROG_INSTALL_SH
612+# ------------------
613+# Define $install_sh.
614+AC_DEFUN([AM_PROG_INSTALL_SH],
615+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
616+if test x"${install_sh}" != xset; then
617+ case $am_aux_dir in
618+ *\ * | *\ *)
619+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
620+ *)
621+ install_sh="\${SHELL} $am_aux_dir/install-sh"
622+ esac
623+fi
624+AC_SUBST([install_sh])])
625+
626+# Copyright (C) 2003-2013 Free Software Foundation, Inc.
627+#
628+# This file is free software; the Free Software Foundation
629+# gives unlimited permission to copy and/or distribute it,
630+# with or without modifications, as long as this notice is preserved.
631+
632+# Check whether the underlying file-system supports filenames
633+# with a leading dot. For instance MS-DOS doesn't.
634+AC_DEFUN([AM_SET_LEADING_DOT],
635+[rm -rf .tst 2>/dev/null
636+mkdir .tst 2>/dev/null
637+if test -d .tst; then
638+ am__leading_dot=.
639+else
640+ am__leading_dot=_
641+fi
642+rmdir .tst 2>/dev/null
643+AC_SUBST([am__leading_dot])])
644+
645+# Check to see how 'make' treats includes. -*- Autoconf -*-
646+
647+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
648+#
649+# This file is free software; the Free Software Foundation
650+# gives unlimited permission to copy and/or distribute it,
651+# with or without modifications, as long as this notice is preserved.
652+
653+# AM_MAKE_INCLUDE()
654+# -----------------
655+# Check to see how make treats includes.
656+AC_DEFUN([AM_MAKE_INCLUDE],
657+[am_make=${MAKE-make}
658+cat > confinc << 'END'
659+am__doit:
660+ @echo this is the am__doit target
661+.PHONY: am__doit
662+END
663+# If we don't find an include directive, just comment out the code.
664+AC_MSG_CHECKING([for style of include used by $am_make])
665+am__include="#"
666+am__quote=
667+_am_result=none
668+# First try GNU make style include.
669+echo "include confinc" > confmf
670+# Ignore all kinds of additional output from 'make'.
671+case `$am_make -s -f confmf 2> /dev/null` in #(
672+*the\ am__doit\ target*)
673+ am__include=include
674+ am__quote=
675+ _am_result=GNU
676+ ;;
677+esac
678+# Now try BSD make style include.
679+if test "$am__include" = "#"; then
680+ echo '.include "confinc"' > confmf
681+ case `$am_make -s -f confmf 2> /dev/null` in #(
682+ *the\ am__doit\ target*)
683+ am__include=.include
684+ am__quote="\""
685+ _am_result=BSD
686+ ;;
687+ esac
688+fi
689+AC_SUBST([am__include])
690+AC_SUBST([am__quote])
691+AC_MSG_RESULT([$_am_result])
692+rm -f confinc confmf
693+])
694+
695+# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
696+
697+# Copyright (C) 1997-2013 Free Software Foundation, Inc.
698+#
699+# This file is free software; the Free Software Foundation
700+# gives unlimited permission to copy and/or distribute it,
701+# with or without modifications, as long as this notice is preserved.
702+
703+# AM_MISSING_PROG(NAME, PROGRAM)
704+# ------------------------------
705+AC_DEFUN([AM_MISSING_PROG],
706+[AC_REQUIRE([AM_MISSING_HAS_RUN])
707+$1=${$1-"${am_missing_run}$2"}
708+AC_SUBST($1)])
709+
710+# AM_MISSING_HAS_RUN
711+# ------------------
712+# Define MISSING if not defined so far and test if it is modern enough.
713+# If it is, set am_missing_run to use it, otherwise, to nothing.
714+AC_DEFUN([AM_MISSING_HAS_RUN],
715+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
716+AC_REQUIRE_AUX_FILE([missing])dnl
717+if test x"${MISSING+set}" != xset; then
718+ case $am_aux_dir in
719+ *\ * | *\ *)
720+ MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
721+ *)
722+ MISSING="\${SHELL} $am_aux_dir/missing" ;;
723+ esac
724+fi
725+# Use eval to expand $SHELL
726+if eval "$MISSING --is-lightweight"; then
727+ am_missing_run="$MISSING "
728+else
729+ am_missing_run=
730+ AC_MSG_WARN(['missing' script is too old or missing])
731+fi
732+])
733+
734+# Helper functions for option handling. -*- Autoconf -*-
735+
736+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
737+#
738+# This file is free software; the Free Software Foundation
739+# gives unlimited permission to copy and/or distribute it,
740+# with or without modifications, as long as this notice is preserved.
741+
742+# _AM_MANGLE_OPTION(NAME)
743+# -----------------------
744+AC_DEFUN([_AM_MANGLE_OPTION],
745+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
746+
747+# _AM_SET_OPTION(NAME)
748+# --------------------
749+# Set option NAME. Presently that only means defining a flag for this option.
750+AC_DEFUN([_AM_SET_OPTION],
751+[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
752+
753+# _AM_SET_OPTIONS(OPTIONS)
754+# ------------------------
755+# OPTIONS is a space-separated list of Automake options.
756+AC_DEFUN([_AM_SET_OPTIONS],
757+[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
758+
759+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
760+# -------------------------------------------
761+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
762+AC_DEFUN([_AM_IF_OPTION],
763+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
764+
765+# Copyright (C) 1999-2013 Free Software Foundation, Inc.
766+#
767+# This file is free software; the Free Software Foundation
768+# gives unlimited permission to copy and/or distribute it,
769+# with or without modifications, as long as this notice is preserved.
770+
771+# _AM_PROG_CC_C_O
772+# ---------------
773+# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
774+# to automatically call this.
775+AC_DEFUN([_AM_PROG_CC_C_O],
776+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
777+AC_REQUIRE_AUX_FILE([compile])dnl
778+AC_LANG_PUSH([C])dnl
779+AC_CACHE_CHECK(
780+ [whether $CC understands -c and -o together],
781+ [am_cv_prog_cc_c_o],
782+ [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
783+ # Make sure it works both with $CC and with simple cc.
784+ # Following AC_PROG_CC_C_O, we do the test twice because some
785+ # compilers refuse to overwrite an existing .o file with -o,
786+ # though they will create one.
787+ am_cv_prog_cc_c_o=yes
788+ for am_i in 1 2; do
789+ if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
790+ && test -f conftest2.$ac_objext; then
791+ : OK
792+ else
793+ am_cv_prog_cc_c_o=no
794+ break
795+ fi
796+ done
797+ rm -f core conftest*
798+ unset am_i])
799+if test "$am_cv_prog_cc_c_o" != yes; then
800+ # Losing compiler, so override with the script.
801+ # FIXME: It is wrong to rewrite CC.
802+ # But if we don't then we get into trouble of one sort or another.
803+ # A longer-term fix would be to have automake use am__CC in this case,
804+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
805+ CC="$am_aux_dir/compile $CC"
806+fi
807+AC_LANG_POP([C])])
808+
809+# For backward compatibility.
810+AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
811+
812+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
813+#
814+# This file is free software; the Free Software Foundation
815+# gives unlimited permission to copy and/or distribute it,
816+# with or without modifications, as long as this notice is preserved.
817+
818+# AM_RUN_LOG(COMMAND)
819+# -------------------
820+# Run COMMAND, save the exit status in ac_status, and log it.
821+# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
822+AC_DEFUN([AM_RUN_LOG],
823+[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
824+ ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
825+ ac_status=$?
826+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
827+ (exit $ac_status); }])
828+
829+# Check to make sure that the build environment is sane. -*- Autoconf -*-
830+
831+# Copyright (C) 1996-2013 Free Software Foundation, Inc.
832+#
833+# This file is free software; the Free Software Foundation
834+# gives unlimited permission to copy and/or distribute it,
835+# with or without modifications, as long as this notice is preserved.
836+
837+# AM_SANITY_CHECK
838+# ---------------
839+AC_DEFUN([AM_SANITY_CHECK],
840+[AC_MSG_CHECKING([whether build environment is sane])
841+# Reject unsafe characters in $srcdir or the absolute working directory
842+# name. Accept space and tab only in the latter.
843+am_lf='
844+'
845+case `pwd` in
846+ *[[\\\"\#\$\&\'\`$am_lf]]*)
847+ AC_MSG_ERROR([unsafe absolute working directory name]);;
848+esac
849+case $srcdir in
850+ *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
851+ AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
852+esac
853+
854+# Do 'set' in a subshell so we don't clobber the current shell's
855+# arguments. Must try -L first in case configure is actually a
856+# symlink; some systems play weird games with the mod time of symlinks
857+# (eg FreeBSD returns the mod time of the symlink's containing
858+# directory).
859+if (
860+ am_has_slept=no
861+ for am_try in 1 2; do
862+ echo "timestamp, slept: $am_has_slept" > conftest.file
863+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
864+ if test "$[*]" = "X"; then
865+ # -L didn't work.
866+ set X `ls -t "$srcdir/configure" conftest.file`
867+ fi
868+ if test "$[*]" != "X $srcdir/configure conftest.file" \
869+ && test "$[*]" != "X conftest.file $srcdir/configure"; then
870+
871+ # If neither matched, then we have a broken ls. This can happen
872+ # if, for instance, CONFIG_SHELL is bash and it inherits a
873+ # broken ls alias from the environment. This has actually
874+ # happened. Such a system could not be considered "sane".
875+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
876+ alias in your environment])
877+ fi
878+ if test "$[2]" = conftest.file || test $am_try -eq 2; then
879+ break
880+ fi
881+ # Just in case.
882+ sleep 1
883+ am_has_slept=yes
884+ done
885+ test "$[2]" = conftest.file
886+ )
887+then
888+ # Ok.
889+ :
890+else
891+ AC_MSG_ERROR([newly created file is older than distributed files!
892+Check your system clock])
893+fi
894+AC_MSG_RESULT([yes])
895+# If we didn't sleep, we still need to ensure time stamps of config.status and
896+# generated files are strictly newer.
897+am_sleep_pid=
898+if grep 'slept: no' conftest.file >/dev/null 2>&1; then
899+ ( sleep 1 ) &
900+ am_sleep_pid=$!
901+fi
902+AC_CONFIG_COMMANDS_PRE(
903+ [AC_MSG_CHECKING([that generated files are newer than configure])
904+ if test -n "$am_sleep_pid"; then
905+ # Hide warnings about reused PIDs.
906+ wait $am_sleep_pid 2>/dev/null
907+ fi
908+ AC_MSG_RESULT([done])])
909+rm -f conftest.file
910+])
911+
912+# Copyright (C) 2009-2013 Free Software Foundation, Inc.
913+#
914+# This file is free software; the Free Software Foundation
915+# gives unlimited permission to copy and/or distribute it,
916+# with or without modifications, as long as this notice is preserved.
917+
918+# AM_SILENT_RULES([DEFAULT])
919+# --------------------------
920+# Enable less verbose build rules; with the default set to DEFAULT
921+# ("yes" being less verbose, "no" or empty being verbose).
922+AC_DEFUN([AM_SILENT_RULES],
923+[AC_ARG_ENABLE([silent-rules], [dnl
924+AS_HELP_STRING(
925+ [--enable-silent-rules],
926+ [less verbose build output (undo: "make V=1")])
927+AS_HELP_STRING(
928+ [--disable-silent-rules],
929+ [verbose build output (undo: "make V=0")])dnl
930+])
931+case $enable_silent_rules in @%:@ (((
932+ yes) AM_DEFAULT_VERBOSITY=0;;
933+ no) AM_DEFAULT_VERBOSITY=1;;
934+ *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
935+esac
936+dnl
937+dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
938+dnl do not support nested variable expansions.
939+dnl See automake bug#9928 and bug#10237.
940+am_make=${MAKE-make}
941+AC_CACHE_CHECK([whether $am_make supports nested variables],
942+ [am_cv_make_support_nested_variables],
943+ [if AS_ECHO([['TRUE=$(BAR$(V))
944+BAR0=false
945+BAR1=true
946+V=1
947+am__doit:
948+ @$(TRUE)
949+.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
950+ am_cv_make_support_nested_variables=yes
951+else
952+ am_cv_make_support_nested_variables=no
953+fi])
954+if test $am_cv_make_support_nested_variables = yes; then
955+ dnl Using '$V' instead of '$(V)' breaks IRIX make.
956+ AM_V='$(V)'
957+ AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
958+else
959+ AM_V=$AM_DEFAULT_VERBOSITY
960+ AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
961+fi
962+AC_SUBST([AM_V])dnl
963+AM_SUBST_NOTMAKE([AM_V])dnl
964+AC_SUBST([AM_DEFAULT_V])dnl
965+AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
966+AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
967+AM_BACKSLASH='\'
968+AC_SUBST([AM_BACKSLASH])dnl
969+_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
970+])
971+
972+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
973+#
974+# This file is free software; the Free Software Foundation
975+# gives unlimited permission to copy and/or distribute it,
976+# with or without modifications, as long as this notice is preserved.
977+
978+# AM_PROG_INSTALL_STRIP
979+# ---------------------
980+# One issue with vendor 'install' (even GNU) is that you can't
981+# specify the program used to strip binaries. This is especially
982+# annoying in cross-compiling environments, where the build's strip
983+# is unlikely to handle the host's binaries.
984+# Fortunately install-sh will honor a STRIPPROG variable, so we
985+# always use install-sh in "make install-strip", and initialize
986+# STRIPPROG with the value of the STRIP variable (set by the user).
987+AC_DEFUN([AM_PROG_INSTALL_STRIP],
988+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
989+# Installed binaries are usually stripped using 'strip' when the user
990+# run "make install-strip". However 'strip' might not be the right
991+# tool to use in cross-compilation environments, therefore Automake
992+# will honor the 'STRIP' environment variable to overrule this program.
993+dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
994+if test "$cross_compiling" != no; then
995+ AC_CHECK_TOOL([STRIP], [strip], :)
996+fi
997+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
998+AC_SUBST([INSTALL_STRIP_PROGRAM])])
999+
1000+# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1001+#
1002+# This file is free software; the Free Software Foundation
1003+# gives unlimited permission to copy and/or distribute it,
1004+# with or without modifications, as long as this notice is preserved.
1005+
1006+# _AM_SUBST_NOTMAKE(VARIABLE)
1007+# ---------------------------
1008+# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1009+# This macro is traced by Automake.
1010+AC_DEFUN([_AM_SUBST_NOTMAKE])
1011+
1012+# AM_SUBST_NOTMAKE(VARIABLE)
1013+# --------------------------
1014+# Public sister of _AM_SUBST_NOTMAKE.
1015+AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1016+
1017+# Check how to create a tarball. -*- Autoconf -*-
1018+
1019+# Copyright (C) 2004-2013 Free Software Foundation, Inc.
1020+#
1021+# This file is free software; the Free Software Foundation
1022+# gives unlimited permission to copy and/or distribute it,
1023+# with or without modifications, as long as this notice is preserved.
1024+
1025+# _AM_PROG_TAR(FORMAT)
1026+# --------------------
1027+# Check how to create a tarball in format FORMAT.
1028+# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1029+#
1030+# Substitute a variable $(am__tar) that is a command
1031+# writing to stdout a FORMAT-tarball containing the directory
1032+# $tardir.
1033+# tardir=directory && $(am__tar) > result.tar
1034+#
1035+# Substitute a variable $(am__untar) that extract such
1036+# a tarball read from stdin.
1037+# $(am__untar) < result.tar
1038+#
1039+AC_DEFUN([_AM_PROG_TAR],
1040+[# Always define AMTAR for backward compatibility. Yes, it's still used
1041+# in the wild :-( We should find a proper way to deprecate it ...
1042+AC_SUBST([AMTAR], ['$${TAR-tar}'])
1043+
1044+# We'll loop over all known methods to create a tar archive until one works.
1045+_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1046+
1047+m4_if([$1], [v7],
1048+ [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1049+
1050+ [m4_case([$1],
1051+ [ustar],
1052+ [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1053+ # There is notably a 21 bits limit for the UID and the GID. In fact,
1054+ # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1055+ # and bug#13588).
1056+ am_max_uid=2097151 # 2^21 - 1
1057+ am_max_gid=$am_max_uid
1058+ # The $UID and $GID variables are not portable, so we need to resort
1059+ # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1060+ # below are definitely unexpected, so allow the users to see them
1061+ # (that is, avoid stderr redirection).
1062+ am_uid=`id -u || echo unknown`
1063+ am_gid=`id -g || echo unknown`
1064+ AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1065+ if test $am_uid -le $am_max_uid; then
1066+ AC_MSG_RESULT([yes])
1067+ else
1068+ AC_MSG_RESULT([no])
1069+ _am_tools=none
1070+ fi
1071+ AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1072+ if test $am_gid -le $am_max_gid; then
1073+ AC_MSG_RESULT([yes])
1074+ else
1075+ AC_MSG_RESULT([no])
1076+ _am_tools=none
1077+ fi],
1078+
1079+ [pax],
1080+ [],
1081+
1082+ [m4_fatal([Unknown tar format])])
1083+
1084+ AC_MSG_CHECKING([how to create a $1 tar archive])
1085+
1086+ # Go ahead even if we have the value already cached. We do so because we
1087+ # need to set the values for the 'am__tar' and 'am__untar' variables.
1088+ _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1089+
1090+ for _am_tool in $_am_tools; do
1091+ case $_am_tool in
1092+ gnutar)
1093+ for _am_tar in tar gnutar gtar; do
1094+ AM_RUN_LOG([$_am_tar --version]) && break
1095+ done
1096+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1097+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1098+ am__untar="$_am_tar -xf -"
1099+ ;;
1100+ plaintar)
1101+ # Must skip GNU tar: if it does not support --format= it doesn't create
1102+ # ustar tarball either.
1103+ (tar --version) >/dev/null 2>&1 && continue
1104+ am__tar='tar chf - "$$tardir"'
1105+ am__tar_='tar chf - "$tardir"'
1106+ am__untar='tar xf -'
1107+ ;;
1108+ pax)
1109+ am__tar='pax -L -x $1 -w "$$tardir"'
1110+ am__tar_='pax -L -x $1 -w "$tardir"'
1111+ am__untar='pax -r'
1112+ ;;
1113+ cpio)
1114+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1115+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1116+ am__untar='cpio -i -H $1 -d'
1117+ ;;
1118+ none)
1119+ am__tar=false
1120+ am__tar_=false
1121+ am__untar=false
1122+ ;;
1123+ esac
1124+
1125+ # If the value was cached, stop now. We just wanted to have am__tar
1126+ # and am__untar set.
1127+ test -n "${am_cv_prog_tar_$1}" && break
1128+
1129+ # tar/untar a dummy directory, and stop if the command works.
1130+ rm -rf conftest.dir
1131+ mkdir conftest.dir
1132+ echo GrepMe > conftest.dir/file
1133+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1134+ rm -rf conftest.dir
1135+ if test -s conftest.tar; then
1136+ AM_RUN_LOG([$am__untar <conftest.tar])
1137+ AM_RUN_LOG([cat conftest.dir/file])
1138+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1139+ fi
1140+ done
1141+ rm -rf conftest.dir
1142+
1143+ AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1144+ AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1145+
1146+AC_SUBST([am__tar])
1147+AC_SUBST([am__untar])
1148+]) # _AM_PROG_TAR
1149+
1150+# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1151+#
1152+# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1153+#
1154+# This program is free software; you can redistribute it and/or modify
1155+# it under the terms of the GNU General Public License as published by
1156+# the Free Software Foundation; either version 2 of the License, or
1157+# (at your option) any later version.
1158+#
1159+# This program is distributed in the hope that it will be useful, but
1160+# WITHOUT ANY WARRANTY; without even the implied warranty of
1161+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1162+# General Public License for more details.
1163+#
1164+# You should have received a copy of the GNU General Public License
1165+# along with this program; if not, write to the Free Software
1166+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1167+#
1168+# As a special exception to the GNU General Public License, if you
1169+# distribute this file as part of a program that contains a
1170+# configuration script generated by Autoconf, you may include it under
1171+# the same distribution terms that you use for the rest of that program.
1172+
1173+# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1174+# ----------------------------------
1175+AC_DEFUN([PKG_PROG_PKG_CONFIG],
1176+[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1177+m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1178+AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
1179+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1180+ AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1181+fi
1182+if test -n "$PKG_CONFIG"; then
1183+ _pkg_min_version=m4_default([$1], [0.9.0])
1184+ AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1185+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1186+ AC_MSG_RESULT([yes])
1187+ else
1188+ AC_MSG_RESULT([no])
1189+ PKG_CONFIG=""
1190+ fi
1191+
1192+fi[]dnl
1193+])# PKG_PROG_PKG_CONFIG
1194+
1195+# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1196+#
1197+# Check to see whether a particular set of modules exists. Similar
1198+# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1199+#
1200+#
1201+# Similar to PKG_CHECK_MODULES, make sure that the first instance of
1202+# this or PKG_CHECK_MODULES is called, or make sure to call
1203+# PKG_CHECK_EXISTS manually
1204+# --------------------------------------------------------------
1205+AC_DEFUN([PKG_CHECK_EXISTS],
1206+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1207+if test -n "$PKG_CONFIG" && \
1208+ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1209+ m4_ifval([$2], [$2], [:])
1210+m4_ifvaln([$3], [else
1211+ $3])dnl
1212+fi])
1213+
1214+
1215+# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1216+# ---------------------------------------------
1217+m4_define([_PKG_CONFIG],
1218+[if test -n "$$1"; then
1219+ pkg_cv_[]$1="$$1"
1220+ elif test -n "$PKG_CONFIG"; then
1221+ PKG_CHECK_EXISTS([$3],
1222+ [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1223+ [pkg_failed=yes])
1224+ else
1225+ pkg_failed=untried
1226+fi[]dnl
1227+])# _PKG_CONFIG
1228+
1229+# _PKG_SHORT_ERRORS_SUPPORTED
1230+# -----------------------------
1231+AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1232+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1233+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1234+ _pkg_short_errors_supported=yes
1235+else
1236+ _pkg_short_errors_supported=no
1237+fi[]dnl
1238+])# _PKG_SHORT_ERRORS_SUPPORTED
1239+
1240+
1241+# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1242+# [ACTION-IF-NOT-FOUND])
1243+#
1244+#
1245+# Note that if there is a possibility the first call to
1246+# PKG_CHECK_MODULES might not happen, you should be sure to include an
1247+# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1248+#
1249+#
1250+# --------------------------------------------------------------
1251+AC_DEFUN([PKG_CHECK_MODULES],
1252+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1253+AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1254+AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1255+
1256+pkg_failed=no
1257+AC_MSG_CHECKING([for $1])
1258+
1259+_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1260+_PKG_CONFIG([$1][_LIBS], [libs], [$2])
1261+
1262+m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1263+and $1[]_LIBS to avoid the need to call pkg-config.
1264+See the pkg-config man page for more details.])
1265+
1266+if test $pkg_failed = yes; then
1267+ _PKG_SHORT_ERRORS_SUPPORTED
1268+ if test $_pkg_short_errors_supported = yes; then
1269+ $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
1270+ else
1271+ $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
1272+ fi
1273+ # Put the nasty error message in config.log where it belongs
1274+ echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1275+
1276+ ifelse([$4], , [AC_MSG_ERROR(dnl
1277+[Package requirements ($2) were not met:
1278+
1279+$$1_PKG_ERRORS
1280+
1281+Consider adjusting the PKG_CONFIG_PATH environment variable if you
1282+installed software in a non-standard prefix.
1283+
1284+_PKG_TEXT
1285+])],
1286+ [AC_MSG_RESULT([no])
1287+ $4])
1288+elif test $pkg_failed = untried; then
1289+ ifelse([$4], , [AC_MSG_FAILURE(dnl
1290+[The pkg-config script could not be found or is too old. Make sure it
1291+is in your PATH or set the PKG_CONFIG environment variable to the full
1292+path to pkg-config.
1293+
1294+_PKG_TEXT
1295+
1296+To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
1297+ [$4])
1298+else
1299+ $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1300+ $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1301+ AC_MSG_RESULT([yes])
1302+ ifelse([$3], , :, [$3])
1303+fi[]dnl
1304+])# PKG_CHECK_MODULES
1305+
1306+dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure.
1307+dnl
1308+dnl Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
1309+dnl
1310+dnl Permission is hereby granted, free of charge, to any person obtaining a
1311+dnl copy of this software and associated documentation files (the "Software"),
1312+dnl to deal in the Software without restriction, including without limitation
1313+dnl the rights to use, copy, modify, merge, publish, distribute, sublicense,
1314+dnl and/or sell copies of the Software, and to permit persons to whom the
1315+dnl Software is furnished to do so, subject to the following conditions:
1316+dnl
1317+dnl The above copyright notice and this permission notice (including the next
1318+dnl paragraph) shall be included in all copies or substantial portions of the
1319+dnl Software.
1320+dnl
1321+dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1322+dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1323+dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1324+dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1325+dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1326+dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1327+dnl DEALINGS IN THE SOFTWARE.
1328+
1329+# XORG_MACROS_VERSION(required-version)
1330+# -------------------------------------
1331+# Minimum version: 1.1.0
1332+#
1333+# If you're using a macro added in Version 1.1 or newer, include this in
1334+# your configure.ac with the minimum required version, such as:
1335+# XORG_MACROS_VERSION(1.1)
1336+#
1337+# To ensure that this macro is defined, also add:
1338+# m4_ifndef([XORG_MACROS_VERSION],
1339+# [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])])
1340+#
1341+#
1342+# See the "minimum version" comment for each macro you use to see what
1343+# version you require.
1344+m4_defun([XORG_MACROS_VERSION],[
1345+m4_define([vers_have], [1.17])
1346+m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
1347+m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
1348+m4_if(m4_cmp(maj_have, maj_needed), 0,,
1349+ [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])])
1350+m4_if(m4_version_compare(vers_have, [$1]), -1,
1351+ [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])])
1352+m4_undefine([vers_have])
1353+m4_undefine([maj_have])
1354+m4_undefine([maj_needed])
1355+]) # XORG_MACROS_VERSION
1356+
1357+# XORG_PROG_RAWCPP()
1358+# ------------------
1359+# Minimum version: 1.0.0
1360+#
1361+# Find cpp program and necessary flags for use in pre-processing text files
1362+# such as man pages and config files
1363+AC_DEFUN([XORG_PROG_RAWCPP],[
1364+AC_REQUIRE([AC_PROG_CPP])
1365+AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
1366+ [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
1367+
1368+# Check for flag to avoid builtin definitions - assumes unix is predefined,
1369+# which is not the best choice for supporting other OS'es, but covers most
1370+# of the ones we need for now.
1371+AC_MSG_CHECKING([if $RAWCPP requires -undef])
1372+AC_LANG_CONFTEST([AC_LANG_SOURCE([[Does cpp redefine unix ?]])])
1373+if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
1374+ AC_MSG_RESULT([no])
1375+else
1376+ if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
1377+ RAWCPPFLAGS=-undef
1378+ AC_MSG_RESULT([yes])
1379+ # under Cygwin unix is still defined even with -undef
1380+ elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
1381+ RAWCPPFLAGS="-undef -ansi"
1382+ AC_MSG_RESULT([yes, with -ansi])
1383+ else
1384+ AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.])
1385+ fi
1386+fi
1387+rm -f conftest.$ac_ext
1388+
1389+AC_MSG_CHECKING([if $RAWCPP requires -traditional])
1390+AC_LANG_CONFTEST([AC_LANG_SOURCE([[Does cpp preserve "whitespace"?]])])
1391+if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
1392+ AC_MSG_RESULT([no])
1393+else
1394+ if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
1395+ RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
1396+ AC_MSG_RESULT([yes])
1397+ else
1398+ AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.])
1399+ fi
1400+fi
1401+rm -f conftest.$ac_ext
1402+AC_SUBST(RAWCPPFLAGS)
1403+]) # XORG_PROG_RAWCPP
1404+
1405+# XORG_MANPAGE_SECTIONS()
1406+# -----------------------
1407+# Minimum version: 1.0.0
1408+#
1409+# Determine which sections man pages go in for the different man page types
1410+# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
1411+# Not sure if there's any better way than just hardcoding by OS name.
1412+# Override default settings by setting environment variables
1413+# Added MAN_SUBSTS in version 1.8
1414+# Added AC_PROG_SED in version 1.8
1415+
1416+AC_DEFUN([XORG_MANPAGE_SECTIONS],[
1417+AC_REQUIRE([AC_CANONICAL_HOST])
1418+AC_REQUIRE([AC_PROG_SED])
1419+
1420+if test x$APP_MAN_SUFFIX = x ; then
1421+ APP_MAN_SUFFIX=1
1422+fi
1423+if test x$APP_MAN_DIR = x ; then
1424+ APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
1425+fi
1426+
1427+if test x$LIB_MAN_SUFFIX = x ; then
1428+ LIB_MAN_SUFFIX=3
1429+fi
1430+if test x$LIB_MAN_DIR = x ; then
1431+ LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
1432+fi
1433+
1434+if test x$FILE_MAN_SUFFIX = x ; then
1435+ case $host_os in
1436+ solaris*) FILE_MAN_SUFFIX=4 ;;
1437+ *) FILE_MAN_SUFFIX=5 ;;
1438+ esac
1439+fi
1440+if test x$FILE_MAN_DIR = x ; then
1441+ FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
1442+fi
1443+
1444+if test x$MISC_MAN_SUFFIX = x ; then
1445+ case $host_os in
1446+ solaris*) MISC_MAN_SUFFIX=5 ;;
1447+ *) MISC_MAN_SUFFIX=7 ;;
1448+ esac
1449+fi
1450+if test x$MISC_MAN_DIR = x ; then
1451+ MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
1452+fi
1453+
1454+if test x$DRIVER_MAN_SUFFIX = x ; then
1455+ case $host_os in
1456+ solaris*) DRIVER_MAN_SUFFIX=7 ;;
1457+ *) DRIVER_MAN_SUFFIX=4 ;;
1458+ esac
1459+fi
1460+if test x$DRIVER_MAN_DIR = x ; then
1461+ DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1462+fi
1463+
1464+if test x$ADMIN_MAN_SUFFIX = x ; then
1465+ case $host_os in
1466+ solaris*) ADMIN_MAN_SUFFIX=1m ;;
1467+ *) ADMIN_MAN_SUFFIX=8 ;;
1468+ esac
1469+fi
1470+if test x$ADMIN_MAN_DIR = x ; then
1471+ ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
1472+fi
1473+
1474+
1475+AC_SUBST([APP_MAN_SUFFIX])
1476+AC_SUBST([LIB_MAN_SUFFIX])
1477+AC_SUBST([FILE_MAN_SUFFIX])
1478+AC_SUBST([MISC_MAN_SUFFIX])
1479+AC_SUBST([DRIVER_MAN_SUFFIX])
1480+AC_SUBST([ADMIN_MAN_SUFFIX])
1481+AC_SUBST([APP_MAN_DIR])
1482+AC_SUBST([LIB_MAN_DIR])
1483+AC_SUBST([FILE_MAN_DIR])
1484+AC_SUBST([MISC_MAN_DIR])
1485+AC_SUBST([DRIVER_MAN_DIR])
1486+AC_SUBST([ADMIN_MAN_DIR])
1487+
1488+XORG_MAN_PAGE="X Version 11"
1489+AC_SUBST([XORG_MAN_PAGE])
1490+MAN_SUBSTS="\
1491+ -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1492+ -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1493+ -e 's|__xservername__|Xorg|g' \
1494+ -e 's|__xconfigfile__|xorg.conf|g' \
1495+ -e 's|__projectroot__|\$(prefix)|g' \
1496+ -e 's|__apploaddir__|\$(appdefaultdir)|g' \
1497+ -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
1498+ -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
1499+ -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
1500+ -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
1501+ -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
1502+ -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
1503+AC_SUBST([MAN_SUBSTS])
1504+
1505+]) # XORG_MANPAGE_SECTIONS
1506+
1507+# XORG_CHECK_SGML_DOCTOOLS([MIN-VERSION])
1508+# ------------------------
1509+# Minimum version: 1.7.0
1510+#
1511+# Defines the variable XORG_SGML_PATH containing the location of X11/defs.ent
1512+# provided by xorg-sgml-doctools, if installed.
1513+AC_DEFUN([XORG_CHECK_SGML_DOCTOOLS],[
1514+AC_MSG_CHECKING([for X.Org SGML entities m4_ifval([$1],[>= $1])])
1515+XORG_SGML_PATH=
1516+PKG_CHECK_EXISTS([xorg-sgml-doctools m4_ifval([$1],[>= $1])],
1517+ [XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`],
1518+ [m4_ifval([$1],[:],
1519+ [if test x"$cross_compiling" != x"yes" ; then
1520+ AC_CHECK_FILE([$prefix/share/sgml/X11/defs.ent],
1521+ [XORG_SGML_PATH=$prefix/share/sgml])
1522+ fi])
1523+ ])
1524+
1525+# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
1526+# the path and the name of the doc stylesheet
1527+if test "x$XORG_SGML_PATH" != "x" ; then
1528+ AC_MSG_RESULT([$XORG_SGML_PATH])
1529+ STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
1530+ XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
1531+else
1532+ AC_MSG_RESULT([no])
1533+fi
1534+
1535+AC_SUBST(XORG_SGML_PATH)
1536+AC_SUBST(STYLESHEET_SRCDIR)
1537+AC_SUBST(XSL_STYLESHEET)
1538+AM_CONDITIONAL([HAVE_STYLESHEETS], [test "x$XSL_STYLESHEET" != "x"])
1539+]) # XORG_CHECK_SGML_DOCTOOLS
1540+
1541+# XORG_CHECK_LINUXDOC
1542+# -------------------
1543+# Minimum version: 1.0.0
1544+#
1545+# Defines the variable MAKE_TEXT if the necessary tools and
1546+# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt.
1547+# Whether or not the necessary tools and files are found can be checked
1548+# with the AM_CONDITIONAL "BUILD_LINUXDOC"
1549+AC_DEFUN([XORG_CHECK_LINUXDOC],[
1550+AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS])
1551+AC_REQUIRE([XORG_WITH_PS2PDF])
1552+
1553+AC_PATH_PROG(LINUXDOC, linuxdoc)
1554+
1555+AC_MSG_CHECKING([whether to build documentation])
1556+
1557+if test x$XORG_SGML_PATH != x && test x$LINUXDOC != x ; then
1558+ BUILDDOC=yes
1559+else
1560+ BUILDDOC=no
1561+fi
1562+
1563+AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes])
1564+
1565+AC_MSG_RESULT([$BUILDDOC])
1566+
1567+AC_MSG_CHECKING([whether to build pdf documentation])
1568+
1569+if test x$have_ps2pdf != xno && test x$BUILD_PDFDOC != xno; then
1570+ BUILDPDFDOC=yes
1571+else
1572+ BUILDPDFDOC=no
1573+fi
1574+
1575+AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
1576+
1577+AC_MSG_RESULT([$BUILDPDFDOC])
1578+
1579+MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt -f"
1580+MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
1581+MAKE_PDF="$PS2PDF"
1582+MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
1583+
1584+AC_SUBST(MAKE_TEXT)
1585+AC_SUBST(MAKE_PS)
1586+AC_SUBST(MAKE_PDF)
1587+AC_SUBST(MAKE_HTML)
1588+]) # XORG_CHECK_LINUXDOC
1589+
1590+# XORG_CHECK_DOCBOOK
1591+# -------------------
1592+# Minimum version: 1.0.0
1593+#
1594+# Checks for the ability to build output formats from SGML DocBook source.
1595+# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC"
1596+# indicates whether the necessary tools and files are found and, if set,
1597+# $(MAKE_XXX) blah.sgml will produce blah.xxx.
1598+AC_DEFUN([XORG_CHECK_DOCBOOK],[
1599+AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS])
1600+
1601+BUILDTXTDOC=no
1602+BUILDPDFDOC=no
1603+BUILDPSDOC=no
1604+BUILDHTMLDOC=no
1605+
1606+AC_PATH_PROG(DOCBOOKPS, docbook2ps)
1607+AC_PATH_PROG(DOCBOOKPDF, docbook2pdf)
1608+AC_PATH_PROG(DOCBOOKHTML, docbook2html)
1609+AC_PATH_PROG(DOCBOOKTXT, docbook2txt)
1610+
1611+AC_MSG_CHECKING([whether to build text documentation])
1612+if test x$XORG_SGML_PATH != x && test x$DOCBOOKTXT != x &&
1613+ test x$BUILD_TXTDOC != xno; then
1614+ BUILDTXTDOC=yes
1615+fi
1616+AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes])
1617+AC_MSG_RESULT([$BUILDTXTDOC])
1618+
1619+AC_MSG_CHECKING([whether to build PDF documentation])
1620+if test x$XORG_SGML_PATH != x && test x$DOCBOOKPDF != x &&
1621+ test x$BUILD_PDFDOC != xno; then
1622+ BUILDPDFDOC=yes
1623+fi
1624+AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
1625+AC_MSG_RESULT([$BUILDPDFDOC])
1626+
1627+AC_MSG_CHECKING([whether to build PostScript documentation])
1628+if test x$XORG_SGML_PATH != x && test x$DOCBOOKPS != x &&
1629+ test x$BUILD_PSDOC != xno; then
1630+ BUILDPSDOC=yes
1631+fi
1632+AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes])
1633+AC_MSG_RESULT([$BUILDPSDOC])
1634+
1635+AC_MSG_CHECKING([whether to build HTML documentation])
1636+if test x$XORG_SGML_PATH != x && test x$DOCBOOKHTML != x &&
1637+ test x$BUILD_HTMLDOC != xno; then
1638+ BUILDHTMLDOC=yes
1639+fi
1640+AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes])
1641+AC_MSG_RESULT([$BUILDHTMLDOC])
1642+
1643+MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT"
1644+MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS"
1645+MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF"
1646+MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML"
1647+
1648+AC_SUBST(MAKE_TEXT)
1649+AC_SUBST(MAKE_PS)
1650+AC_SUBST(MAKE_PDF)
1651+AC_SUBST(MAKE_HTML)
1652+]) # XORG_CHECK_DOCBOOK
1653+
1654+# XORG_WITH_XMLTO([MIN-VERSION], [DEFAULT])
1655+# ----------------
1656+# Minimum version: 1.5.0
1657+# Minimum version for optional DEFAULT argument: 1.11.0
1658+#
1659+# Documentation tools are not always available on all platforms and sometimes
1660+# not at the appropriate level. This macro enables a module to test for the
1661+# presence of the tool and obtain it's path in separate variables. Coupled with
1662+# the --with-xmlto option, it allows maximum flexibilty in making decisions
1663+# as whether or not to use the xmlto package. When DEFAULT is not specified,
1664+# --with-xmlto assumes 'auto'.
1665+#
1666+# Interface to module:
1667+# HAVE_XMLTO: used in makefiles to conditionally generate documentation
1668+# XMLTO: returns the path of the xmlto program found
1669+# returns the path set by the user in the environment
1670+# --with-xmlto: 'yes' user instructs the module to use xmlto
1671+# 'no' user instructs the module not to use xmlto
1672+#
1673+# Added in version 1.10.0
1674+# HAVE_XMLTO_TEXT: used in makefiles to conditionally generate text documentation
1675+# xmlto for text output requires either lynx, links, or w3m browsers
1676+#
1677+# If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path.
1678+#
1679+AC_DEFUN([XORG_WITH_XMLTO],[
1680+AC_ARG_VAR([XMLTO], [Path to xmlto command])
1681+m4_define([_defopt], m4_default([$2], [auto]))
1682+AC_ARG_WITH(xmlto,
1683+ AS_HELP_STRING([--with-xmlto],
1684+ [Use xmlto to regenerate documentation (default: ]_defopt[)]),
1685+ [use_xmlto=$withval], [use_xmlto=]_defopt)
1686+m4_undefine([_defopt])
1687+
1688+if test "x$use_xmlto" = x"auto"; then
1689+ AC_PATH_PROG([XMLTO], [xmlto])
1690+ if test "x$XMLTO" = "x"; then
1691+ AC_MSG_WARN([xmlto not found - documentation targets will be skipped])
1692+ have_xmlto=no
1693+ else
1694+ have_xmlto=yes
1695+ fi
1696+elif test "x$use_xmlto" = x"yes" ; then
1697+ AC_PATH_PROG([XMLTO], [xmlto])
1698+ if test "x$XMLTO" = "x"; then
1699+ AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH])
1700+ fi
1701+ have_xmlto=yes
1702+elif test "x$use_xmlto" = x"no" ; then
1703+ if test "x$XMLTO" != "x"; then
1704+ AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified])
1705+ fi
1706+ have_xmlto=no
1707+else
1708+ AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no'])
1709+fi
1710+
1711+# Test for a minimum version of xmlto, if provided.
1712+m4_ifval([$1],
1713+[if test "$have_xmlto" = yes; then
1714+ # scrape the xmlto version
1715+ AC_MSG_CHECKING([the xmlto version])
1716+ xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
1717+ AC_MSG_RESULT([$xmlto_version])
1718+ AS_VERSION_COMPARE([$xmlto_version], [$1],
1719+ [if test "x$use_xmlto" = xauto; then
1720+ AC_MSG_WARN([xmlto version $xmlto_version found, but $1 needed])
1721+ have_xmlto=no
1722+ else
1723+ AC_MSG_ERROR([xmlto version $xmlto_version found, but $1 needed])
1724+ fi])
1725+fi])
1726+
1727+# Test for the ability of xmlto to generate a text target
1728+have_xmlto_text=no
1729+cat > conftest.xml << "EOF"
1730+EOF
1731+AS_IF([test "$have_xmlto" = yes],
1732+ [AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1],
1733+ [have_xmlto_text=yes],
1734+ [AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])])
1735+rm -f conftest.xml
1736+AM_CONDITIONAL([HAVE_XMLTO_TEXT], [test $have_xmlto_text = yes])
1737+AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes])
1738+]) # XORG_WITH_XMLTO
1739+
1740+# XORG_WITH_XSLTPROC([MIN-VERSION], [DEFAULT])
1741+# --------------------------------------------
1742+# Minimum version: 1.12.0
1743+# Minimum version for optional DEFAULT argument: 1.12.0
1744+#
1745+# XSLT (Extensible Stylesheet Language Transformations) is a declarative,
1746+# XML-based language used for the transformation of XML documents.
1747+# The xsltproc command line tool is for applying XSLT stylesheets to XML documents.
1748+# It is used under the cover by xmlto to generate html files from DocBook/XML.
1749+# The XSLT processor is often used as a standalone tool for transformations.
1750+# It should not be assumed that this tool is used only to work with documnetation.
1751+# When DEFAULT is not specified, --with-xsltproc assumes 'auto'.
1752+#
1753+# Interface to module:
1754+# HAVE_XSLTPROC: used in makefiles to conditionally generate documentation
1755+# XSLTPROC: returns the path of the xsltproc program found
1756+# returns the path set by the user in the environment
1757+# --with-xsltproc: 'yes' user instructs the module to use xsltproc
1758+# 'no' user instructs the module not to use xsltproc
1759+# have_xsltproc: returns yes if xsltproc found in PATH or no
1760+#
1761+# If the user sets the value of XSLTPROC, AC_PATH_PROG skips testing the path.
1762+#
1763+AC_DEFUN([XORG_WITH_XSLTPROC],[
1764+AC_ARG_VAR([XSLTPROC], [Path to xsltproc command])
1765+# Preserves the interface, should it be implemented later
1766+m4_ifval([$1], [m4_warn([syntax], [Checking for xsltproc MIN-VERSION is not implemented])])
1767+m4_define([_defopt], m4_default([$2], [auto]))
1768+AC_ARG_WITH(xsltproc,
1769+ AS_HELP_STRING([--with-xsltproc],
1770+ [Use xsltproc for the transformation of XML documents (default: ]_defopt[)]),
1771+ [use_xsltproc=$withval], [use_xsltproc=]_defopt)
1772+m4_undefine([_defopt])
1773+
1774+if test "x$use_xsltproc" = x"auto"; then
1775+ AC_PATH_PROG([XSLTPROC], [xsltproc])
1776+ if test "x$XSLTPROC" = "x"; then
1777+ AC_MSG_WARN([xsltproc not found - cannot transform XML documents])
1778+ have_xsltproc=no
1779+ else
1780+ have_xsltproc=yes
1781+ fi
1782+elif test "x$use_xsltproc" = x"yes" ; then
1783+ AC_PATH_PROG([XSLTPROC], [xsltproc])
1784+ if test "x$XSLTPROC" = "x"; then
1785+ AC_MSG_ERROR([--with-xsltproc=yes specified but xsltproc not found in PATH])
1786+ fi
1787+ have_xsltproc=yes
1788+elif test "x$use_xsltproc" = x"no" ; then
1789+ if test "x$XSLTPROC" != "x"; then
1790+ AC_MSG_WARN([ignoring XSLTPROC environment variable since --with-xsltproc=no was specified])
1791+ fi
1792+ have_xsltproc=no
1793+else
1794+ AC_MSG_ERROR([--with-xsltproc expects 'yes' or 'no'])
1795+fi
1796+
1797+AM_CONDITIONAL([HAVE_XSLTPROC], [test "$have_xsltproc" = yes])
1798+]) # XORG_WITH_XSLTPROC
1799+
1800+# XORG_WITH_PERL([MIN-VERSION], [DEFAULT])
1801+# ----------------------------------------
1802+# Minimum version: 1.15.0
1803+#
1804+# PERL (Practical Extraction and Report Language) is a language optimized for
1805+# scanning arbitrary text files, extracting information from those text files,
1806+# and printing reports based on that information.
1807+#
1808+# When DEFAULT is not specified, --with-perl assumes 'auto'.
1809+#
1810+# Interface to module:
1811+# HAVE_PERL: used in makefiles to conditionally scan text files
1812+# PERL: returns the path of the perl program found
1813+# returns the path set by the user in the environment
1814+# --with-perl: 'yes' user instructs the module to use perl
1815+# 'no' user instructs the module not to use perl
1816+# have_perl: returns yes if perl found in PATH or no
1817+#
1818+# If the user sets the value of PERL, AC_PATH_PROG skips testing the path.
1819+#
1820+AC_DEFUN([XORG_WITH_PERL],[
1821+AC_ARG_VAR([PERL], [Path to perl command])
1822+# Preserves the interface, should it be implemented later
1823+m4_ifval([$1], [m4_warn([syntax], [Checking for perl MIN-VERSION is not implemented])])
1824+m4_define([_defopt], m4_default([$2], [auto]))
1825+AC_ARG_WITH(perl,
1826+ AS_HELP_STRING([--with-perl],
1827+ [Use perl for extracting information from files (default: ]_defopt[)]),
1828+ [use_perl=$withval], [use_perl=]_defopt)
1829+m4_undefine([_defopt])
1830+
1831+if test "x$use_perl" = x"auto"; then
1832+ AC_PATH_PROG([PERL], [perl])
1833+ if test "x$PERL" = "x"; then
1834+ AC_MSG_WARN([perl not found - cannot extract information and report])
1835+ have_perl=no
1836+ else
1837+ have_perl=yes
1838+ fi
1839+elif test "x$use_perl" = x"yes" ; then
1840+ AC_PATH_PROG([PERL], [perl])
1841+ if test "x$PERL" = "x"; then
1842+ AC_MSG_ERROR([--with-perl=yes specified but perl not found in PATH])
1843+ fi
1844+ have_perl=yes
1845+elif test "x$use_perl" = x"no" ; then
1846+ if test "x$PERL" != "x"; then
1847+ AC_MSG_WARN([ignoring PERL environment variable since --with-perl=no was specified])
1848+ fi
1849+ have_perl=no
1850+else
1851+ AC_MSG_ERROR([--with-perl expects 'yes' or 'no'])
1852+fi
1853+
1854+AM_CONDITIONAL([HAVE_PERL], [test "$have_perl" = yes])
1855+]) # XORG_WITH_PERL
1856+
1857+# XORG_WITH_ASCIIDOC([MIN-VERSION], [DEFAULT])
1858+# ----------------
1859+# Minimum version: 1.5.0
1860+# Minimum version for optional DEFAULT argument: 1.11.0
1861+#
1862+# Documentation tools are not always available on all platforms and sometimes
1863+# not at the appropriate level. This macro enables a module to test for the
1864+# presence of the tool and obtain it's path in separate variables. Coupled with
1865+# the --with-asciidoc option, it allows maximum flexibilty in making decisions
1866+# as whether or not to use the asciidoc package. When DEFAULT is not specified,
1867+# --with-asciidoc assumes 'auto'.
1868+#
1869+# Interface to module:
1870+# HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation
1871+# ASCIIDOC: returns the path of the asciidoc program found
1872+# returns the path set by the user in the environment
1873+# --with-asciidoc: 'yes' user instructs the module to use asciidoc
1874+# 'no' user instructs the module not to use asciidoc
1875+#
1876+# If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path.
1877+#
1878+AC_DEFUN([XORG_WITH_ASCIIDOC],[
1879+AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command])
1880+m4_define([_defopt], m4_default([$2], [auto]))
1881+AC_ARG_WITH(asciidoc,
1882+ AS_HELP_STRING([--with-asciidoc],
1883+ [Use asciidoc to regenerate documentation (default: ]_defopt[)]),
1884+ [use_asciidoc=$withval], [use_asciidoc=]_defopt)
1885+m4_undefine([_defopt])
1886+
1887+if test "x$use_asciidoc" = x"auto"; then
1888+ AC_PATH_PROG([ASCIIDOC], [asciidoc])
1889+ if test "x$ASCIIDOC" = "x"; then
1890+ AC_MSG_WARN([asciidoc not found - documentation targets will be skipped])
1891+ have_asciidoc=no
1892+ else
1893+ have_asciidoc=yes
1894+ fi
1895+elif test "x$use_asciidoc" = x"yes" ; then
1896+ AC_PATH_PROG([ASCIIDOC], [asciidoc])
1897+ if test "x$ASCIIDOC" = "x"; then
1898+ AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH])
1899+ fi
1900+ have_asciidoc=yes
1901+elif test "x$use_asciidoc" = x"no" ; then
1902+ if test "x$ASCIIDOC" != "x"; then
1903+ AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified])
1904+ fi
1905+ have_asciidoc=no
1906+else
1907+ AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no'])
1908+fi
1909+m4_ifval([$1],
1910+[if test "$have_asciidoc" = yes; then
1911+ # scrape the asciidoc version
1912+ AC_MSG_CHECKING([the asciidoc version])
1913+ asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
1914+ AC_MSG_RESULT([$asciidoc_version])
1915+ AS_VERSION_COMPARE([$asciidoc_version], [$1],
1916+ [if test "x$use_asciidoc" = xauto; then
1917+ AC_MSG_WARN([asciidoc version $asciidoc_version found, but $1 needed])
1918+ have_asciidoc=no
1919+ else
1920+ AC_MSG_ERROR([asciidoc version $asciidoc_version found, but $1 needed])
1921+ fi])
1922+fi])
1923+AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes])
1924+]) # XORG_WITH_ASCIIDOC
1925+
1926+# XORG_WITH_DOXYGEN([MIN-VERSION], [DEFAULT])
1927+# --------------------------------
1928+# Minimum version: 1.5.0
1929+# Minimum version for optional DEFAULT argument: 1.11.0
1930+#
1931+# Documentation tools are not always available on all platforms and sometimes
1932+# not at the appropriate level. This macro enables a module to test for the
1933+# presence of the tool and obtain it's path in separate variables. Coupled with
1934+# the --with-doxygen option, it allows maximum flexibilty in making decisions
1935+# as whether or not to use the doxygen package. When DEFAULT is not specified,
1936+# --with-doxygen assumes 'auto'.
1937+#
1938+# Interface to module:
1939+# HAVE_DOXYGEN: used in makefiles to conditionally generate documentation
1940+# DOXYGEN: returns the path of the doxygen program found
1941+# returns the path set by the user in the environment
1942+# --with-doxygen: 'yes' user instructs the module to use doxygen
1943+# 'no' user instructs the module not to use doxygen
1944+#
1945+# If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path.
1946+#
1947+AC_DEFUN([XORG_WITH_DOXYGEN],[
1948+AC_ARG_VAR([DOXYGEN], [Path to doxygen command])
1949+m4_define([_defopt], m4_default([$2], [auto]))
1950+AC_ARG_WITH(doxygen,
1951+ AS_HELP_STRING([--with-doxygen],
1952+ [Use doxygen to regenerate documentation (default: ]_defopt[)]),
1953+ [use_doxygen=$withval], [use_doxygen=]_defopt)
1954+m4_undefine([_defopt])
1955+
1956+if test "x$use_doxygen" = x"auto"; then
1957+ AC_PATH_PROG([DOXYGEN], [doxygen])
1958+ if test "x$DOXYGEN" = "x"; then
1959+ AC_MSG_WARN([doxygen not found - documentation targets will be skipped])
1960+ have_doxygen=no
1961+ else
1962+ have_doxygen=yes
1963+ fi
1964+elif test "x$use_doxygen" = x"yes" ; then
1965+ AC_PATH_PROG([DOXYGEN], [doxygen])
1966+ if test "x$DOXYGEN" = "x"; then
1967+ AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH])
1968+ fi
1969+ have_doxygen=yes
1970+elif test "x$use_doxygen" = x"no" ; then
1971+ if test "x$DOXYGEN" != "x"; then
1972+ AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified])
1973+ fi
1974+ have_doxygen=no
1975+else
1976+ AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no'])
1977+fi
1978+m4_ifval([$1],
1979+[if test "$have_doxygen" = yes; then
1980+ # scrape the doxygen version
1981+ AC_MSG_CHECKING([the doxygen version])
1982+ doxygen_version=`$DOXYGEN --version 2>/dev/null`
1983+ AC_MSG_RESULT([$doxygen_version])
1984+ AS_VERSION_COMPARE([$doxygen_version], [$1],
1985+ [if test "x$use_doxygen" = xauto; then
1986+ AC_MSG_WARN([doxygen version $doxygen_version found, but $1 needed])
1987+ have_doxygen=no
1988+ else
1989+ AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed])
1990+ fi])
1991+fi])
1992+AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes])
1993+]) # XORG_WITH_DOXYGEN
1994+
1995+# XORG_WITH_GROFF([DEFAULT])
1996+# ----------------
1997+# Minimum version: 1.6.0
1998+# Minimum version for optional DEFAULT argument: 1.11.0
1999+#
2000+# Documentation tools are not always available on all platforms and sometimes
2001+# not at the appropriate level. This macro enables a module to test for the
2002+# presence of the tool and obtain it's path in separate variables. Coupled with
2003+# the --with-groff option, it allows maximum flexibilty in making decisions
2004+# as whether or not to use the groff package. When DEFAULT is not specified,
2005+# --with-groff assumes 'auto'.
2006+#
2007+# Interface to module:
2008+# HAVE_GROFF: used in makefiles to conditionally generate documentation
2009+# HAVE_GROFF_MM: the memorandum macros (-mm) package
2010+# HAVE_GROFF_MS: the -ms macros package
2011+# GROFF: returns the path of the groff program found
2012+# returns the path set by the user in the environment
2013+# --with-groff: 'yes' user instructs the module to use groff
2014+# 'no' user instructs the module not to use groff
2015+#
2016+# Added in version 1.9.0:
2017+# HAVE_GROFF_HTML: groff has dependencies to output HTML format:
2018+# pnmcut pnmcrop pnmtopng pnmtops from the netpbm package.
2019+# psselect from the psutils package.
2020+# the ghostcript package. Refer to the grohtml man pages
2021+#
2022+# If the user sets the value of GROFF, AC_PATH_PROG skips testing the path.
2023+#
2024+# OS and distros often splits groff in a basic and full package, the former
2025+# having the groff program and the later having devices, fonts and macros
2026+# Checking for the groff executable is not enough.
2027+#
2028+# If macros are missing, we cannot assume that groff is useless, so we don't
2029+# unset HAVE_GROFF or GROFF env variables.
2030+# HAVE_GROFF_?? can never be true while HAVE_GROFF is false.
2031+#
2032+AC_DEFUN([XORG_WITH_GROFF],[
2033+AC_ARG_VAR([GROFF], [Path to groff command])
2034+m4_define([_defopt], m4_default([$1], [auto]))
2035+AC_ARG_WITH(groff,
2036+ AS_HELP_STRING([--with-groff],
2037+ [Use groff to regenerate documentation (default: ]_defopt[)]),
2038+ [use_groff=$withval], [use_groff=]_defopt)
2039+m4_undefine([_defopt])
2040+
2041+if test "x$use_groff" = x"auto"; then
2042+ AC_PATH_PROG([GROFF], [groff])
2043+ if test "x$GROFF" = "x"; then
2044+ AC_MSG_WARN([groff not found - documentation targets will be skipped])
2045+ have_groff=no
2046+ else
2047+ have_groff=yes
2048+ fi
2049+elif test "x$use_groff" = x"yes" ; then
2050+ AC_PATH_PROG([GROFF], [groff])
2051+ if test "x$GROFF" = "x"; then
2052+ AC_MSG_ERROR([--with-groff=yes specified but groff not found in PATH])
2053+ fi
2054+ have_groff=yes
2055+elif test "x$use_groff" = x"no" ; then
2056+ if test "x$GROFF" != "x"; then
2057+ AC_MSG_WARN([ignoring GROFF environment variable since --with-groff=no was specified])
2058+ fi
2059+ have_groff=no
2060+else
2061+ AC_MSG_ERROR([--with-groff expects 'yes' or 'no'])
2062+fi
2063+
2064+# We have groff, test for the presence of the macro packages
2065+if test "x$have_groff" = x"yes"; then
2066+ AC_MSG_CHECKING([for ${GROFF} -ms macros])
2067+ if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then
2068+ groff_ms_works=yes
2069+ else
2070+ groff_ms_works=no
2071+ fi
2072+ AC_MSG_RESULT([$groff_ms_works])
2073+ AC_MSG_CHECKING([for ${GROFF} -mm macros])
2074+ if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then
2075+ groff_mm_works=yes
2076+ else
2077+ groff_mm_works=no
2078+ fi
2079+ AC_MSG_RESULT([$groff_mm_works])
2080+fi
2081+
2082+# We have groff, test for HTML dependencies, one command per package
2083+if test "x$have_groff" = x"yes"; then
2084+ AC_PATH_PROGS(GS_PATH, [gs gswin32c])
2085+ AC_PATH_PROG(PNMTOPNG_PATH, [pnmtopng])
2086+ AC_PATH_PROG(PSSELECT_PATH, [psselect])
2087+ if test "x$GS_PATH" != "x" -a "x$PNMTOPNG_PATH" != "x" -a "x$PSSELECT_PATH" != "x"; then
2088+ have_groff_html=yes
2089+ else
2090+ have_groff_html=no
2091+ AC_MSG_WARN([grohtml dependencies not found - HTML Documentation skipped. Refer to grohtml man pages])
2092+ fi
2093+fi
2094+
2095+# Set Automake conditionals for Makefiles
2096+AM_CONDITIONAL([HAVE_GROFF], [test "$have_groff" = yes])
2097+AM_CONDITIONAL([HAVE_GROFF_MS], [test "$groff_ms_works" = yes])
2098+AM_CONDITIONAL([HAVE_GROFF_MM], [test "$groff_mm_works" = yes])
2099+AM_CONDITIONAL([HAVE_GROFF_HTML], [test "$have_groff_html" = yes])
2100+]) # XORG_WITH_GROFF
2101+
2102+# XORG_WITH_FOP([MIN-VERSION], [DEFAULT])
2103+# ---------------------------------------
2104+# Minimum version: 1.6.0
2105+# Minimum version for optional DEFAULT argument: 1.11.0
2106+# Minimum version for optional MIN-VERSION argument: 1.15.0
2107+#
2108+# Documentation tools are not always available on all platforms and sometimes
2109+# not at the appropriate level. This macro enables a module to test for the
2110+# presence of the tool and obtain it's path in separate variables. Coupled with
2111+# the --with-fop option, it allows maximum flexibilty in making decisions
2112+# as whether or not to use the fop package. When DEFAULT is not specified,
2113+# --with-fop assumes 'auto'.
2114+#
2115+# Interface to module:
2116+# HAVE_FOP: used in makefiles to conditionally generate documentation
2117+# FOP: returns the path of the fop program found
2118+# returns the path set by the user in the environment
2119+# --with-fop: 'yes' user instructs the module to use fop
2120+# 'no' user instructs the module not to use fop
2121+#
2122+# If the user sets the value of FOP, AC_PATH_PROG skips testing the path.
2123+#
2124+AC_DEFUN([XORG_WITH_FOP],[
2125+AC_ARG_VAR([FOP], [Path to fop command])
2126+m4_define([_defopt], m4_default([$2], [auto]))
2127+AC_ARG_WITH(fop,
2128+ AS_HELP_STRING([--with-fop],
2129+ [Use fop to regenerate documentation (default: ]_defopt[)]),
2130+ [use_fop=$withval], [use_fop=]_defopt)
2131+m4_undefine([_defopt])
2132+
2133+if test "x$use_fop" = x"auto"; then
2134+ AC_PATH_PROG([FOP], [fop])
2135+ if test "x$FOP" = "x"; then
2136+ AC_MSG_WARN([fop not found - documentation targets will be skipped])
2137+ have_fop=no
2138+ else
2139+ have_fop=yes
2140+ fi
2141+elif test "x$use_fop" = x"yes" ; then
2142+ AC_PATH_PROG([FOP], [fop])
2143+ if test "x$FOP" = "x"; then
2144+ AC_MSG_ERROR([--with-fop=yes specified but fop not found in PATH])
2145+ fi
2146+ have_fop=yes
2147+elif test "x$use_fop" = x"no" ; then
2148+ if test "x$FOP" != "x"; then
2149+ AC_MSG_WARN([ignoring FOP environment variable since --with-fop=no was specified])
2150+ fi
2151+ have_fop=no
2152+else
2153+ AC_MSG_ERROR([--with-fop expects 'yes' or 'no'])
2154+fi
2155+
2156+# Test for a minimum version of fop, if provided.
2157+m4_ifval([$1],
2158+[if test "$have_fop" = yes; then
2159+ # scrape the fop version
2160+ AC_MSG_CHECKING([for fop minimum version])
2161+ fop_version=`$FOP -version 2>/dev/null | cut -d' ' -f3`
2162+ AC_MSG_RESULT([$fop_version])
2163+ AS_VERSION_COMPARE([$fop_version], [$1],
2164+ [if test "x$use_fop" = xauto; then
2165+ AC_MSG_WARN([fop version $fop_version found, but $1 needed])
2166+ have_fop=no
2167+ else
2168+ AC_MSG_ERROR([fop version $fop_version found, but $1 needed])
2169+ fi])
2170+fi])
2171+AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes])
2172+]) # XORG_WITH_FOP
2173+
2174+# XORG_WITH_PS2PDF([DEFAULT])
2175+# ----------------
2176+# Minimum version: 1.6.0
2177+# Minimum version for optional DEFAULT argument: 1.11.0
2178+#
2179+# Documentation tools are not always available on all platforms and sometimes
2180+# not at the appropriate level. This macro enables a module to test for the
2181+# presence of the tool and obtain it's path in separate variables. Coupled with
2182+# the --with-ps2pdf option, it allows maximum flexibilty in making decisions
2183+# as whether or not to use the ps2pdf package. When DEFAULT is not specified,
2184+# --with-ps2pdf assumes 'auto'.
2185+#
2186+# Interface to module:
2187+# HAVE_PS2PDF: used in makefiles to conditionally generate documentation
2188+# PS2PDF: returns the path of the ps2pdf program found
2189+# returns the path set by the user in the environment
2190+# --with-ps2pdf: 'yes' user instructs the module to use ps2pdf
2191+# 'no' user instructs the module not to use ps2pdf
2192+#
2193+# If the user sets the value of PS2PDF, AC_PATH_PROG skips testing the path.
2194+#
2195+AC_DEFUN([XORG_WITH_PS2PDF],[
2196+AC_ARG_VAR([PS2PDF], [Path to ps2pdf command])
2197+m4_define([_defopt], m4_default([$1], [auto]))
2198+AC_ARG_WITH(ps2pdf,
2199+ AS_HELP_STRING([--with-ps2pdf],
2200+ [Use ps2pdf to regenerate documentation (default: ]_defopt[)]),
2201+ [use_ps2pdf=$withval], [use_ps2pdf=]_defopt)
2202+m4_undefine([_defopt])
2203+
2204+if test "x$use_ps2pdf" = x"auto"; then
2205+ AC_PATH_PROG([PS2PDF], [ps2pdf])
2206+ if test "x$PS2PDF" = "x"; then
2207+ AC_MSG_WARN([ps2pdf not found - documentation targets will be skipped])
2208+ have_ps2pdf=no
2209+ else
2210+ have_ps2pdf=yes
2211+ fi
2212+elif test "x$use_ps2pdf" = x"yes" ; then
2213+ AC_PATH_PROG([PS2PDF], [ps2pdf])
2214+ if test "x$PS2PDF" = "x"; then
2215+ AC_MSG_ERROR([--with-ps2pdf=yes specified but ps2pdf not found in PATH])
2216+ fi
2217+ have_ps2pdf=yes
2218+elif test "x$use_ps2pdf" = x"no" ; then
2219+ if test "x$PS2PDF" != "x"; then
2220+ AC_MSG_WARN([ignoring PS2PDF environment variable since --with-ps2pdf=no was specified])
2221+ fi
2222+ have_ps2pdf=no
2223+else
2224+ AC_MSG_ERROR([--with-ps2pdf expects 'yes' or 'no'])
2225+fi
2226+AM_CONDITIONAL([HAVE_PS2PDF], [test "$have_ps2pdf" = yes])
2227+]) # XORG_WITH_PS2PDF
2228+
2229+# XORG_ENABLE_DOCS (enable_docs=yes)
2230+# ----------------
2231+# Minimum version: 1.6.0
2232+#
2233+# Documentation tools are not always available on all platforms and sometimes
2234+# not at the appropriate level. This macro enables a builder to skip all
2235+# documentation targets except traditional man pages.
2236+# Combined with the specific tool checking macros XORG_WITH_*, it provides
2237+# maximum flexibilty in controlling documentation building.
2238+# Refer to:
2239+# XORG_WITH_XMLTO --with-xmlto
2240+# XORG_WITH_ASCIIDOC --with-asciidoc
2241+# XORG_WITH_DOXYGEN --with-doxygen
2242+# XORG_WITH_FOP --with-fop
2243+# XORG_WITH_GROFF --with-groff
2244+# XORG_WITH_PS2PDF --with-ps2pdf
2245+#
2246+# Interface to module:
2247+# ENABLE_DOCS: used in makefiles to conditionally generate documentation
2248+# --enable-docs: 'yes' user instructs the module to generate docs
2249+# 'no' user instructs the module not to generate docs
2250+# parm1: specify the default value, yes or no.
2251+#
2252+AC_DEFUN([XORG_ENABLE_DOCS],[
2253+m4_define([docs_default], m4_default([$1], [yes]))
2254+AC_ARG_ENABLE(docs,
2255+ AS_HELP_STRING([--enable-docs],
2256+ [Enable building the documentation (default: ]docs_default[)]),
2257+ [build_docs=$enableval], [build_docs=]docs_default)
2258+m4_undefine([docs_default])
2259+AM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes])
2260+AC_MSG_CHECKING([whether to build documentation])
2261+AC_MSG_RESULT([$build_docs])
2262+]) # XORG_ENABLE_DOCS
2263+
2264+# XORG_ENABLE_DEVEL_DOCS (enable_devel_docs=yes)
2265+# ----------------
2266+# Minimum version: 1.6.0
2267+#
2268+# This macro enables a builder to skip all developer documentation.
2269+# Combined with the specific tool checking macros XORG_WITH_*, it provides
2270+# maximum flexibilty in controlling documentation building.
2271+# Refer to:
2272+# XORG_WITH_XMLTO --with-xmlto
2273+# XORG_WITH_ASCIIDOC --with-asciidoc
2274+# XORG_WITH_DOXYGEN --with-doxygen
2275+# XORG_WITH_FOP --with-fop
2276+# XORG_WITH_GROFF --with-groff
2277+# XORG_WITH_PS2PDF --with-ps2pdf
2278+#
2279+# Interface to module:
2280+# ENABLE_DEVEL_DOCS: used in makefiles to conditionally generate developer docs
2281+# --enable-devel-docs: 'yes' user instructs the module to generate developer docs
2282+# 'no' user instructs the module not to generate developer docs
2283+# parm1: specify the default value, yes or no.
2284+#
2285+AC_DEFUN([XORG_ENABLE_DEVEL_DOCS],[
2286+m4_define([devel_default], m4_default([$1], [yes]))
2287+AC_ARG_ENABLE(devel-docs,
2288+ AS_HELP_STRING([--enable-devel-docs],
2289+ [Enable building the developer documentation (default: ]devel_default[)]),
2290+ [build_devel_docs=$enableval], [build_devel_docs=]devel_default)
2291+m4_undefine([devel_default])
2292+AM_CONDITIONAL(ENABLE_DEVEL_DOCS, [test x$build_devel_docs = xyes])
2293+AC_MSG_CHECKING([whether to build developer documentation])
2294+AC_MSG_RESULT([$build_devel_docs])
2295+]) # XORG_ENABLE_DEVEL_DOCS
2296+
2297+# XORG_ENABLE_SPECS (enable_specs=yes)
2298+# ----------------
2299+# Minimum version: 1.6.0
2300+#
2301+# This macro enables a builder to skip all functional specification targets.
2302+# Combined with the specific tool checking macros XORG_WITH_*, it provides
2303+# maximum flexibilty in controlling documentation building.
2304+# Refer to:
2305+# XORG_WITH_XMLTO --with-xmlto
2306+# XORG_WITH_ASCIIDOC --with-asciidoc
2307+# XORG_WITH_DOXYGEN --with-doxygen
2308+# XORG_WITH_FOP --with-fop
2309+# XORG_WITH_GROFF --with-groff
2310+# XORG_WITH_PS2PDF --with-ps2pdf
2311+#
2312+# Interface to module:
2313+# ENABLE_SPECS: used in makefiles to conditionally generate specs
2314+# --enable-specs: 'yes' user instructs the module to generate specs
2315+# 'no' user instructs the module not to generate specs
2316+# parm1: specify the default value, yes or no.
2317+#
2318+AC_DEFUN([XORG_ENABLE_SPECS],[
2319+m4_define([spec_default], m4_default([$1], [yes]))
2320+AC_ARG_ENABLE(specs,
2321+ AS_HELP_STRING([--enable-specs],
2322+ [Enable building the specs (default: ]spec_default[)]),
2323+ [build_specs=$enableval], [build_specs=]spec_default)
2324+m4_undefine([spec_default])
2325+AM_CONDITIONAL(ENABLE_SPECS, [test x$build_specs = xyes])
2326+AC_MSG_CHECKING([whether to build functional specifications])
2327+AC_MSG_RESULT([$build_specs])
2328+]) # XORG_ENABLE_SPECS
2329+
2330+# XORG_ENABLE_UNIT_TESTS (enable_unit_tests=auto)
2331+# ----------------------------------------------
2332+# Minimum version: 1.13.0
2333+#
2334+# This macro enables a builder to enable/disable unit testing
2335+# It makes no assumption about the test cases implementation
2336+# Test cases may or may not use Automake "Support for test suites"
2337+# They may or may not use the software utility library GLib
2338+#
2339+# When used in conjunction with XORG_WITH_GLIB, use both AM_CONDITIONAL
2340+# ENABLE_UNIT_TESTS and HAVE_GLIB. Not all unit tests may use glib.
2341+# The variable enable_unit_tests is used by other macros in this file.
2342+#
2343+# Interface to module:
2344+# ENABLE_UNIT_TESTS: used in makefiles to conditionally build tests
2345+# enable_unit_tests: used in configure.ac for additional configuration
2346+# --enable-unit-tests: 'yes' user instructs the module to build tests
2347+# 'no' user instructs the module not to build tests
2348+# parm1: specify the default value, yes or no.
2349+#
2350+AC_DEFUN([XORG_ENABLE_UNIT_TESTS],[
2351+AC_BEFORE([$0], [XORG_WITH_GLIB])
2352+AC_BEFORE([$0], [XORG_LD_WRAP])
2353+AC_REQUIRE([XORG_MEMORY_CHECK_FLAGS])
2354+m4_define([_defopt], m4_default([$1], [auto]))
2355+AC_ARG_ENABLE(unit-tests, AS_HELP_STRING([--enable-unit-tests],
2356+ [Enable building unit test cases (default: ]_defopt[)]),
2357+ [enable_unit_tests=$enableval], [enable_unit_tests=]_defopt)
2358+m4_undefine([_defopt])
2359+AM_CONDITIONAL(ENABLE_UNIT_TESTS, [test "x$enable_unit_tests" != xno])
2360+AC_MSG_CHECKING([whether to build unit test cases])
2361+AC_MSG_RESULT([$enable_unit_tests])
2362+]) # XORG_ENABLE_UNIT_TESTS
2363+
2364+# XORG_ENABLE_INTEGRATION_TESTS (enable_unit_tests=auto)
2365+# ------------------------------------------------------
2366+# Minimum version: 1.17.0
2367+#
2368+# This macro enables a builder to enable/disable integration testing
2369+# It makes no assumption about the test cases' implementation
2370+# Test cases may or may not use Automake "Support for test suites"
2371+#
2372+# Please see XORG_ENABLE_UNIT_TESTS for unit test support. Unit test support
2373+# usually requires less dependencies and may be built and run under less
2374+# stringent environments than integration tests.
2375+#
2376+# Interface to module:
2377+# ENABLE_INTEGRATION_TESTS: used in makefiles to conditionally build tests
2378+# enable_integration_tests: used in configure.ac for additional configuration
2379+# --enable-integration-tests: 'yes' user instructs the module to build tests
2380+# 'no' user instructs the module not to build tests
2381+# parm1: specify the default value, yes or no.
2382+#
2383+AC_DEFUN([XORG_ENABLE_INTEGRATION_TESTS],[
2384+AC_REQUIRE([XORG_MEMORY_CHECK_FLAGS])
2385+m4_define([_defopt], m4_default([$1], [auto]))
2386+AC_ARG_ENABLE(integration-tests, AS_HELP_STRING([--enable-integration-tests],
2387+ [Enable building integration test cases (default: ]_defopt[)]),
2388+ [enable_integration_tests=$enableval],
2389+ [enable_integration_tests=]_defopt)
2390+m4_undefine([_defopt])
2391+AM_CONDITIONAL([ENABLE_INTEGRATION_TESTS],
2392+ [test "x$enable_integration_tests" != xno])
2393+AC_MSG_CHECKING([whether to build unit test cases])
2394+AC_MSG_RESULT([$enable_integration_tests])
2395+]) # XORG_ENABLE_INTEGRATION_TESTS
2396+
2397+# XORG_WITH_GLIB([MIN-VERSION], [DEFAULT])
2398+# ----------------------------------------
2399+# Minimum version: 1.13.0
2400+#
2401+# GLib is a library which provides advanced data structures and functions.
2402+# This macro enables a module to test for the presence of Glib.
2403+#
2404+# When used with ENABLE_UNIT_TESTS, it is assumed GLib is used for unit testing.
2405+# Otherwise the value of $enable_unit_tests is blank.
2406+#
2407+# Please see XORG_ENABLE_INTEGRATION_TESTS for integration test support. Unit
2408+# test support usually requires less dependencies and may be built and run under
2409+# less stringent environments than integration tests.
2410+#
2411+# Interface to module:
2412+# HAVE_GLIB: used in makefiles to conditionally build targets
2413+# with_glib: used in configure.ac to know if GLib has been found
2414+# --with-glib: 'yes' user instructs the module to use glib
2415+# 'no' user instructs the module not to use glib
2416+#
2417+AC_DEFUN([XORG_WITH_GLIB],[
2418+AC_REQUIRE([PKG_PROG_PKG_CONFIG])
2419+m4_define([_defopt], m4_default([$2], [auto]))
2420+AC_ARG_WITH(glib, AS_HELP_STRING([--with-glib],
2421+ [Use GLib library for unit testing (default: ]_defopt[)]),
2422+ [with_glib=$withval], [with_glib=]_defopt)
2423+m4_undefine([_defopt])
2424+
2425+have_glib=no
2426+# Do not probe GLib if user explicitly disabled unit testing
2427+if test "x$enable_unit_tests" != x"no"; then
2428+ # Do not probe GLib if user explicitly disabled it
2429+ if test "x$with_glib" != x"no"; then
2430+ m4_ifval(
2431+ [$1],
2432+ [PKG_CHECK_MODULES([GLIB], [glib-2.0 >= $1], [have_glib=yes], [have_glib=no])],
2433+ [PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib=yes], [have_glib=no])]
2434+ )
2435+ fi
2436+fi
2437+
2438+# Not having GLib when unit testing has been explicitly requested is an error
2439+if test "x$enable_unit_tests" = x"yes"; then
2440+ if test "x$have_glib" = x"no"; then
2441+ AC_MSG_ERROR([--enable-unit-tests=yes specified but glib-2.0 not found])
2442+ fi
2443+fi
2444+
2445+# Having unit testing disabled when GLib has been explicitly requested is an error
2446+if test "x$enable_unit_tests" = x"no"; then
2447+ if test "x$with_glib" = x"yes"; then
2448+ AC_MSG_ERROR([--enable-unit-tests=yes specified but glib-2.0 not found])
2449+ fi
2450+fi
2451+
2452+# Not having GLib when it has been explicitly requested is an error
2453+if test "x$with_glib" = x"yes"; then
2454+ if test "x$have_glib" = x"no"; then
2455+ AC_MSG_ERROR([--with-glib=yes specified but glib-2.0 not found])
2456+ fi
2457+fi
2458+
2459+AM_CONDITIONAL([HAVE_GLIB], [test "$have_glib" = yes])
2460+]) # XORG_WITH_GLIB
2461+
2462+# XORG_LD_WRAP([required|optional])
2463+# ---------------------------------
2464+# Minimum version: 1.13.0
2465+#
2466+# Check if linker supports -wrap, passed via compiler flags
2467+#
2468+# When used with ENABLE_UNIT_TESTS, it is assumed -wrap is used for unit testing.
2469+# Otherwise the value of $enable_unit_tests is blank.
2470+#
2471+# Argument added in 1.16.0 - default is "required", to match existing behavior
2472+# of returning an error if enable_unit_tests is yes, and ld -wrap is not
2473+# available, an argument of "optional" allows use when some unit tests require
2474+# ld -wrap and others do not.
2475+#
2476+AC_DEFUN([XORG_LD_WRAP],[
2477+XORG_CHECK_LINKER_FLAGS([-Wl,-wrap,exit],[have_ld_wrap=yes],[have_ld_wrap=no],
2478+ [AC_LANG_PROGRAM([#include <stdlib.h>
2479+ void __wrap_exit(int status) { return; }],
2480+ [exit(0);])])
2481+# Not having ld wrap when unit testing has been explicitly requested is an error
2482+if test "x$enable_unit_tests" = x"yes" -a "x$1" != "xoptional"; then
2483+ if test "x$have_ld_wrap" = x"no"; then
2484+ AC_MSG_ERROR([--enable-unit-tests=yes specified but ld -wrap support is not available])
2485+ fi
2486+fi
2487+AM_CONDITIONAL([HAVE_LD_WRAP], [test "$have_ld_wrap" = yes])
2488+#
2489+]) # XORG_LD_WRAP
2490+
2491+# XORG_CHECK_LINKER_FLAGS
2492+# -----------------------
2493+# SYNOPSIS
2494+#
2495+# XORG_CHECK_LINKER_FLAGS(FLAGS, [ACTION-SUCCESS], [ACTION-FAILURE], [PROGRAM-SOURCE])
2496+#
2497+# DESCRIPTION
2498+#
2499+# Check whether the given linker FLAGS work with the current language's
2500+# linker, or whether they give an error.
2501+#
2502+# ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
2503+# success/failure.
2504+#
2505+# PROGRAM-SOURCE is the program source to link with, if needed
2506+#
2507+# NOTE: Based on AX_CHECK_COMPILER_FLAGS.
2508+#
2509+# LICENSE
2510+#
2511+# Copyright (c) 2009 Mike Frysinger <vapier@gentoo.org>
2512+# Copyright (c) 2009 Steven G. Johnson <stevenj@alum.mit.edu>
2513+# Copyright (c) 2009 Matteo Frigo
2514+#
2515+# This program is free software: you can redistribute it and/or modify it
2516+# under the terms of the GNU General Public License as published by the
2517+# Free Software Foundation, either version 3 of the License, or (at your
2518+# option) any later version.
2519+#
2520+# This program is distributed in the hope that it will be useful, but
2521+# WITHOUT ANY WARRANTY; without even the implied warranty of
2522+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
2523+# Public License for more details.
2524+#
2525+# You should have received a copy of the GNU General Public License along
2526+# with this program. If not, see <http://www.gnu.org/licenses/>.
2527+#
2528+# As a special exception, the respective Autoconf Macro's copyright owner
2529+# gives unlimited permission to copy, distribute and modify the configure
2530+# scripts that are the output of Autoconf when processing the Macro. You
2531+# need not follow the terms of the GNU General Public License when using
2532+# or distributing such scripts, even though portions of the text of the
2533+# Macro appear in them. The GNU General Public License (GPL) does govern
2534+# all other use of the material that constitutes the Autoconf Macro.
2535+#
2536+# This special exception to the GPL applies to versions of the Autoconf
2537+# Macro released by the Autoconf Archive. When you make and distribute a
2538+# modified version of the Autoconf Macro, you may extend this special
2539+# exception to the GPL to apply to your modified version as well.#
2540+AC_DEFUN([XORG_CHECK_LINKER_FLAGS],
2541+[AC_MSG_CHECKING([whether the linker accepts $1])
2542+dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname:
2543+AS_LITERAL_IF([$1],
2544+ [AC_CACHE_VAL(AS_TR_SH(xorg_cv_linker_flags_[$1]), [
2545+ ax_save_FLAGS=$LDFLAGS
2546+ LDFLAGS="$1"
2547+ AC_LINK_IFELSE([m4_default([$4],[AC_LANG_PROGRAM()])],
2548+ AS_TR_SH(xorg_cv_linker_flags_[$1])=yes,
2549+ AS_TR_SH(xorg_cv_linker_flags_[$1])=no)
2550+ LDFLAGS=$ax_save_FLAGS])],
2551+ [ax_save_FLAGS=$LDFLAGS
2552+ LDFLAGS="$1"
2553+ AC_LINK_IFELSE([AC_LANG_PROGRAM()],
2554+ eval AS_TR_SH(xorg_cv_linker_flags_[$1])=yes,
2555+ eval AS_TR_SH(xorg_cv_linker_flags_[$1])=no)
2556+ LDFLAGS=$ax_save_FLAGS])
2557+eval xorg_check_linker_flags=$AS_TR_SH(xorg_cv_linker_flags_[$1])
2558+AC_MSG_RESULT($xorg_check_linker_flags)
2559+if test "x$xorg_check_linker_flags" = xyes; then
2560+ m4_default([$2], :)
2561+else
2562+ m4_default([$3], :)
2563+fi
2564+]) # XORG_CHECK_LINKER_FLAGS
2565+
2566+# XORG_MEMORY_CHECK_FLAGS
2567+# -----------------------
2568+# Minimum version: 1.16.0
2569+#
2570+# This macro attempts to find appropriate memory checking functionality
2571+# for various platforms which unit testing code may use to catch various
2572+# forms of memory allocation and access errors in testing.
2573+#
2574+# Interface to module:
2575+# XORG_MALLOC_DEBUG_ENV - environment variables to set to enable debugging
2576+# Usually added to TESTS_ENVIRONMENT in Makefile.am
2577+#
2578+# If the user sets the value of XORG_MALLOC_DEBUG_ENV, it is used verbatim.
2579+#
2580+AC_DEFUN([XORG_MEMORY_CHECK_FLAGS],[
2581+
2582+AC_REQUIRE([AC_CANONICAL_HOST])
2583+AC_ARG_VAR([XORG_MALLOC_DEBUG_ENV],
2584+ [Environment variables to enable memory checking in tests])
2585+
2586+# Check for different types of support on different platforms
2587+case $host_os in
2588+ solaris*)
2589+ AC_CHECK_LIB([umem], [umem_alloc],
2590+ [malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'])
2591+ ;;
2592+ *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
2593+ # both directly and inverted, so should not be 0 or 255.
2594+ malloc_debug_env='MALLOC_PERTURB_=15'
2595+ ;;
2596+ darwin*)
2597+ malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
2598+ ;;
2599+ *bsd*)
2600+ malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
2601+ ;;
2602+esac
2603+
2604+# User supplied flags override default flags
2605+if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
2606+ malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
2607+fi
2608+
2609+AC_SUBST([XORG_MALLOC_DEBUG_ENV],[$malloc_debug_env])
2610+]) # XORG_WITH_LINT
2611+
2612+# XORG_CHECK_MALLOC_ZERO
2613+# ----------------------
2614+# Minimum version: 1.0.0
2615+#
2616+# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if
2617+# malloc(0) returns NULL. Packages should add one of these cflags to
2618+# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
2619+AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
2620+AC_ARG_ENABLE(malloc0returnsnull,
2621+ AS_HELP_STRING([--enable-malloc0returnsnull],
2622+ [malloc(0) returns NULL (default: auto)]),
2623+ [MALLOC_ZERO_RETURNS_NULL=$enableval],
2624+ [MALLOC_ZERO_RETURNS_NULL=auto])
2625+
2626+AC_MSG_CHECKING([whether malloc(0) returns NULL])
2627+if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
2628+ AC_RUN_IFELSE([AC_LANG_PROGRAM([
2629+#include <stdlib.h>
2630+],[
2631+ char *m0, *r0, *c0, *p;
2632+ m0 = malloc(0);
2633+ p = malloc(10);
2634+ r0 = realloc(p,0);
2635+ c0 = calloc(0,10);
2636+ exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
2637+])],
2638+ [MALLOC_ZERO_RETURNS_NULL=yes],
2639+ [MALLOC_ZERO_RETURNS_NULL=no],
2640+ [MALLOC_ZERO_RETURNS_NULL=yes])
2641+fi
2642+AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
2643+
2644+if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
2645+ MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
2646+ XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
2647+ XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
2648+else
2649+ MALLOC_ZERO_CFLAGS=""
2650+ XMALLOC_ZERO_CFLAGS=""
2651+ XTMALLOC_ZERO_CFLAGS=""
2652+fi
2653+
2654+AC_SUBST([MALLOC_ZERO_CFLAGS])
2655+AC_SUBST([XMALLOC_ZERO_CFLAGS])
2656+AC_SUBST([XTMALLOC_ZERO_CFLAGS])
2657+]) # XORG_CHECK_MALLOC_ZERO
2658+
2659+# XORG_WITH_LINT()
2660+# ----------------
2661+# Minimum version: 1.1.0
2662+#
2663+# This macro enables the use of a tool that flags some suspicious and
2664+# non-portable constructs (likely to be bugs) in C language source code.
2665+# It will attempt to locate the tool and use appropriate options.
2666+# There are various lint type tools on different platforms.
2667+#
2668+# Interface to module:
2669+# LINT: returns the path to the tool found on the platform
2670+# or the value set to LINT on the configure cmd line
2671+# also an Automake conditional
2672+# LINT_FLAGS: an Automake variable with appropriate flags
2673+#
2674+# --with-lint: 'yes' user instructs the module to use lint
2675+# 'no' user instructs the module not to use lint (default)
2676+#
2677+# If the user sets the value of LINT, AC_PATH_PROG skips testing the path.
2678+# If the user sets the value of LINT_FLAGS, they are used verbatim.
2679+#
2680+AC_DEFUN([XORG_WITH_LINT],[
2681+
2682+AC_ARG_VAR([LINT], [Path to a lint-style command])
2683+AC_ARG_VAR([LINT_FLAGS], [Flags for the lint-style command])
2684+AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint],
2685+ [Use a lint-style source code checker (default: disabled)])],
2686+ [use_lint=$withval], [use_lint=no])
2687+
2688+# Obtain platform specific info like program name and options
2689+# The lint program on FreeBSD and NetBSD is different from the one on Solaris
2690+case $host_os in
2691+ *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
2692+ lint_name=splint
2693+ lint_options="-badflag"
2694+ ;;
2695+ *freebsd* | *netbsd*)
2696+ lint_name=lint
2697+ lint_options="-u -b"
2698+ ;;
2699+ *solaris*)
2700+ lint_name=lint
2701+ lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
2702+ ;;
2703+esac
2704+
2705+# Test for the presence of the program (either guessed by the code or spelled out by the user)
2706+if test "x$use_lint" = x"yes" ; then
2707+ AC_PATH_PROG([LINT], [$lint_name])
2708+ if test "x$LINT" = "x"; then
2709+ AC_MSG_ERROR([--with-lint=yes specified but lint-style tool not found in PATH])
2710+ fi
2711+elif test "x$use_lint" = x"no" ; then
2712+ if test "x$LINT" != "x"; then
2713+ AC_MSG_WARN([ignoring LINT environment variable since --with-lint=no was specified])
2714+ fi
2715+else
2716+ AC_MSG_ERROR([--with-lint expects 'yes' or 'no'. Use LINT variable to specify path.])
2717+fi
2718+
2719+# User supplied flags override default flags
2720+if test "x$LINT_FLAGS" != "x"; then
2721+ lint_options=$LINT_FLAGS
2722+fi
2723+
2724+AC_SUBST([LINT_FLAGS],[$lint_options])
2725+AM_CONDITIONAL(LINT, [test "x$LINT" != x])
2726+
2727+]) # XORG_WITH_LINT
2728+
2729+# XORG_LINT_LIBRARY(LIBNAME)
2730+# --------------------------
2731+# Minimum version: 1.1.0
2732+#
2733+# Sets up flags for building lint libraries for checking programs that call
2734+# functions in the library.
2735+#
2736+# Interface to module:
2737+# LINTLIB - Automake variable with the name of lint library file to make
2738+# MAKE_LINT_LIB - Automake conditional
2739+#
2740+# --enable-lint-library: - 'yes' user instructs the module to created a lint library
2741+# - 'no' user instructs the module not to create a lint library (default)
2742+
2743+AC_DEFUN([XORG_LINT_LIBRARY],[
2744+AC_REQUIRE([XORG_WITH_LINT])
2745+AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library],
2746+ [Create lint library (default: disabled)])],
2747+ [make_lint_lib=$enableval], [make_lint_lib=no])
2748+
2749+if test "x$make_lint_lib" = x"yes" ; then
2750+ LINTLIB=llib-l$1.ln
2751+ if test "x$LINT" = "x"; then
2752+ AC_MSG_ERROR([Cannot make lint library without --with-lint])
2753+ fi
2754+elif test "x$make_lint_lib" != x"no" ; then
2755+ AC_MSG_ERROR([--enable-lint-library expects 'yes' or 'no'.])
2756+fi
2757+
2758+AC_SUBST(LINTLIB)
2759+AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno])
2760+
2761+]) # XORG_LINT_LIBRARY
2762+
2763+# XORG_COMPILER_BRAND
2764+# -------------------
2765+# Minimum version: 1.14.0
2766+#
2767+# Checks for various brands of compilers and sets flags as appropriate:
2768+# GNU gcc - relies on AC_PROG_CC (via AC_PROG_CC_C99) to set GCC to "yes"
2769+# GNU g++ - relies on AC_PROG_CXX to set GXX to "yes"
2770+# clang compiler - sets CLANGCC to "yes"
2771+# Intel compiler - sets INTELCC to "yes"
2772+# Sun/Oracle Solaris Studio cc - sets SUNCC to "yes"
2773+#
2774+AC_DEFUN([XORG_COMPILER_BRAND], [
2775+AC_LANG_CASE(
2776+ [C], [
2777+ AC_REQUIRE([AC_PROG_CC_C99])
2778+ ],
2779+ [C++], [
2780+ AC_REQUIRE([AC_PROG_CXX])
2781+ ]
2782+)
2783+AC_CHECK_DECL([__clang__], [CLANGCC="yes"], [CLANGCC="no"])
2784+AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"])
2785+AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
2786+]) # XORG_COMPILER_BRAND
2787+
2788+# XORG_TESTSET_CFLAG(<variable>, <flag>, [<alternative flag>, ...])
2789+# ---------------
2790+# Minimum version: 1.16.0
2791+#
2792+# Test if the compiler works when passed the given flag as a command line argument.
2793+# If it succeeds, the flag is appeneded to the given variable. If not, it tries the
2794+# next flag in the list until there are no more options.
2795+#
2796+# Note that this does not guarantee that the compiler supports the flag as some
2797+# compilers will simply ignore arguments that they do not understand, but we do
2798+# attempt to weed out false positives by using -Werror=unknown-warning-option and
2799+# -Werror=unused-command-line-argument
2800+#
2801+AC_DEFUN([XORG_TESTSET_CFLAG], [
2802+m4_if([$#], 0, [m4_fatal([XORG_TESTSET_CFLAG was given with an unsupported number of arguments])])
2803+m4_if([$#], 1, [m4_fatal([XORG_TESTSET_CFLAG was given with an unsupported number of arguments])])
2804+
2805+AC_LANG_COMPILER_REQUIRE
2806+
2807+AC_LANG_CASE(
2808+ [C], [
2809+ AC_REQUIRE([AC_PROG_CC_C99])
2810+ define([PREFIX], [C])
2811+ define([CACHE_PREFIX], [cc])
2812+ define([COMPILER], [$CC])
2813+ ],
2814+ [C++], [
2815+ define([PREFIX], [CXX])
2816+ define([CACHE_PREFIX], [cxx])
2817+ define([COMPILER], [$CXX])
2818+ ]
2819+)
2820+
2821+[xorg_testset_save_]PREFIX[FLAGS]="$PREFIX[FLAGS]"
2822+
2823+if test "x$[xorg_testset_]CACHE_PREFIX[_unknown_warning_option]" = "x" ; then
2824+ PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option"
2825+ AC_CACHE_CHECK([if ]COMPILER[ supports -Werror=unknown-warning-option],
2826+ [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option],
2827+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])],
2828+ [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option=yes],
2829+ [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option=no]))
2830+ [xorg_testset_]CACHE_PREFIX[_unknown_warning_option]=$[xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option]
2831+ PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]"
2832+fi
2833+
2834+if test "x$[xorg_testset_]CACHE_PREFIX[_unused_command_line_argument]" = "x" ; then
2835+ if test "x$[xorg_testset_]CACHE_PREFIX[_unknown_warning_option]" = "xyes" ; then
2836+ PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option"
2837+ fi
2838+ PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unused-command-line-argument"
2839+ AC_CACHE_CHECK([if ]COMPILER[ supports -Werror=unused-command-line-argument],
2840+ [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument],
2841+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])],
2842+ [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument=yes],
2843+ [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument=no]))
2844+ [xorg_testset_]CACHE_PREFIX[_unused_command_line_argument]=$[xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument]
2845+ PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]"
2846+fi
2847+
2848+found="no"
2849+m4_foreach([flag], m4_cdr($@), [
2850+ if test $found = "no" ; then
2851+ if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
2852+ PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option"
2853+ fi
2854+
2855+ if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
2856+ PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unused-command-line-argument"
2857+ fi
2858+
2859+ PREFIX[FLAGS]="$PREFIX[FLAGS] ]flag["
2860+
2861+dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname
2862+ AC_MSG_CHECKING([if ]COMPILER[ supports ]flag[])
2863+ cacheid=AS_TR_SH([xorg_cv_]CACHE_PREFIX[_flag_]flag[])
2864+ AC_CACHE_VAL($cacheid,
2865+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([int i;])],
2866+ [eval $cacheid=yes],
2867+ [eval $cacheid=no])])
2868+
2869+ PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]"
2870+
2871+ eval supported=\$$cacheid
2872+ AC_MSG_RESULT([$supported])
2873+ if test "$supported" = "yes" ; then
2874+ $1="$$1 ]flag["
2875+ found="yes"
2876+ fi
2877+ fi
2878+])
2879+]) # XORG_TESTSET_CFLAG
2880+
2881+# XORG_COMPILER_FLAGS
2882+# ---------------
2883+# Minimum version: 1.16.0
2884+#
2885+# Defines BASE_CFLAGS or BASE_CXXFLAGS to contain a set of command line
2886+# arguments supported by the selected compiler which do NOT alter the generated
2887+# code. These arguments will cause the compiler to print various warnings
2888+# during compilation AND turn a conservative set of warnings into errors.
2889+#
2890+# The set of flags supported by BASE_CFLAGS and BASE_CXXFLAGS will grow in
2891+# future versions of util-macros as options are added to new compilers.
2892+#
2893+AC_DEFUN([XORG_COMPILER_FLAGS], [
2894+AC_REQUIRE([XORG_COMPILER_BRAND])
2895+
2896+AC_ARG_ENABLE(selective-werror,
2897+ AS_HELP_STRING([--disable-selective-werror],
2898+ [Turn off selective compiler errors. (default: enabled)]),
2899+ [SELECTIVE_WERROR=$enableval],
2900+ [SELECTIVE_WERROR=yes])
2901+
2902+AC_LANG_CASE(
2903+ [C], [
2904+ define([PREFIX], [C])
2905+ ],
2906+ [C++], [
2907+ define([PREFIX], [CXX])
2908+ ]
2909+)
2910+# -v is too short to test reliably with XORG_TESTSET_CFLAG
2911+if test "x$SUNCC" = "xyes"; then
2912+ [BASE_]PREFIX[FLAGS]="-v"
2913+else
2914+ [BASE_]PREFIX[FLAGS]=""
2915+fi
2916+
2917+# This chunk of warnings were those that existed in the legacy CWARNFLAGS
2918+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wall])
2919+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wpointer-arith])
2920+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-declarations])
2921+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wformat=2], [-Wformat])
2922+
2923+AC_LANG_CASE(
2924+ [C], [
2925+ XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wstrict-prototypes])
2926+ XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-prototypes])
2927+ XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wnested-externs])
2928+ XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wbad-function-cast])
2929+ XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wold-style-definition])
2930+ XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wdeclaration-after-statement])
2931+ ]
2932+)
2933+
2934+# This chunk adds additional warnings that could catch undesired effects.
2935+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wunused])
2936+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wuninitialized])
2937+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wshadow])
2938+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
2939+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-noreturn])
2940+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-format-attribute])
2941+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
2942+
2943+# These are currently disabled because they are noisy. They will be enabled
2944+# in the future once the codebase is sufficiently modernized to silence
2945+# them. For now, I don't want them to drown out the other warnings.
2946+# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
2947+# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
2948+# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
2949+
2950+# Turn some warnings into errors, so we don't accidently get successful builds
2951+# when there are problems that should be fixed.
2952+
2953+if test "x$SELECTIVE_WERROR" = "xyes" ; then
2954+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=implicit], [-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED])
2955+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=nonnull])
2956+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=init-self])
2957+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=main])
2958+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=missing-braces])
2959+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=sequence-point])
2960+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=return-type], [-errwarn=E_FUNC_HAS_NO_RETURN_STMT])
2961+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=trigraphs])
2962+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=array-bounds])
2963+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=write-strings])
2964+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=address])
2965+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=int-to-pointer-cast], [-errwarn=E_BAD_PTR_INT_COMBINATION])
2966+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=pointer-to-int-cast]) # Also -errwarn=E_BAD_PTR_INT_COMBINATION
2967+else
2968+AC_MSG_WARN([You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT])
2969+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wimplicit])
2970+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wnonnull])
2971+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Winit-self])
2972+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmain])
2973+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-braces])
2974+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wsequence-point])
2975+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wreturn-type])
2976+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wtrigraphs])
2977+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Warray-bounds])
2978+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wwrite-strings])
2979+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Waddress])
2980+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wint-to-pointer-cast])
2981+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wpointer-to-int-cast])
2982+fi
2983+
2984+AC_SUBST([BASE_]PREFIX[FLAGS])
2985+]) # XORG_COMPILER_FLAGS
2986+
2987+# XORG_CWARNFLAGS
2988+# ---------------
2989+# Minimum version: 1.2.0
2990+# Deprecated since: 1.16.0 (Use XORG_COMPILER_FLAGS instead)
2991+#
2992+# Defines CWARNFLAGS to enable C compiler warnings.
2993+#
2994+# This function is deprecated because it defines -fno-strict-aliasing
2995+# which alters the code generated by the compiler. If -fno-strict-aliasing
2996+# is needed, then it should be added explicitly in the module when
2997+# it is updated to use BASE_CFLAGS.
2998+#
2999+AC_DEFUN([XORG_CWARNFLAGS], [
3000+AC_REQUIRE([XORG_COMPILER_FLAGS])
3001+AC_REQUIRE([XORG_COMPILER_BRAND])
3002+AC_LANG_CASE(
3003+ [C], [
3004+ CWARNFLAGS="$BASE_CFLAGS"
3005+ if test "x$GCC" = xyes ; then
3006+ CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
3007+ fi
3008+ AC_SUBST(CWARNFLAGS)
3009+ ]
3010+)
3011+]) # XORG_CWARNFLAGS
3012+
3013+# XORG_STRICT_OPTION
3014+# -----------------------
3015+# Minimum version: 1.3.0
3016+#
3017+# Add configure option to enable strict compilation flags, such as treating
3018+# warnings as fatal errors.
3019+# If --enable-strict-compilation is passed to configure, adds strict flags to
3020+# $BASE_CFLAGS or $BASE_CXXFLAGS and the deprecated $CWARNFLAGS.
3021+#
3022+# Starting in 1.14.0 also exports $STRICT_CFLAGS for use in other tests or
3023+# when strict compilation is unconditionally desired.
3024+AC_DEFUN([XORG_STRICT_OPTION], [
3025+AC_REQUIRE([XORG_CWARNFLAGS])
3026+AC_REQUIRE([XORG_COMPILER_FLAGS])
3027+
3028+AC_ARG_ENABLE(strict-compilation,
3029+ AS_HELP_STRING([--enable-strict-compilation],
3030+ [Enable all warnings from compiler and make them errors (default: disabled)]),
3031+ [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no])
3032+
3033+AC_LANG_CASE(
3034+ [C], [
3035+ define([PREFIX], [C])
3036+ ],
3037+ [C++], [
3038+ define([PREFIX], [CXX])
3039+ ]
3040+)
3041+
3042+[STRICT_]PREFIX[FLAGS]=""
3043+XORG_TESTSET_CFLAG([[STRICT_]PREFIX[FLAGS]], [-pedantic])
3044+XORG_TESTSET_CFLAG([[STRICT_]PREFIX[FLAGS]], [-Werror], [-errwarn])
3045+
3046+# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
3047+# activate it with -Werror, so we add it here explicitly.
3048+XORG_TESTSET_CFLAG([[STRICT_]PREFIX[FLAGS]], [-Werror=attributes])
3049+
3050+if test "x$STRICT_COMPILE" = "xyes"; then
3051+ [BASE_]PREFIX[FLAGS]="$[BASE_]PREFIX[FLAGS] $[STRICT_]PREFIX[FLAGS]"
3052+ AC_LANG_CASE([C], [CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"])
3053+fi
3054+AC_SUBST([STRICT_]PREFIX[FLAGS])
3055+AC_SUBST([BASE_]PREFIX[FLAGS])
3056+AC_LANG_CASE([C], AC_SUBST([CWARNFLAGS]))
3057+]) # XORG_STRICT_OPTION
3058+
3059+# XORG_DEFAULT_OPTIONS
3060+# --------------------
3061+# Minimum version: 1.3.0
3062+#
3063+# Defines default options for X.Org modules.
3064+#
3065+AC_DEFUN([XORG_DEFAULT_OPTIONS], [
3066+AC_REQUIRE([AC_PROG_INSTALL])
3067+XORG_COMPILER_FLAGS
3068+XORG_CWARNFLAGS
3069+XORG_STRICT_OPTION
3070+XORG_RELEASE_VERSION
3071+XORG_CHANGELOG
3072+XORG_INSTALL
3073+XORG_MANPAGE_SECTIONS
3074+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
3075+ [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
3076+]) # XORG_DEFAULT_OPTIONS
3077+
3078+# XORG_INSTALL()
3079+# ----------------
3080+# Minimum version: 1.4.0
3081+#
3082+# Defines the variable INSTALL_CMD as the command to copy
3083+# INSTALL from $prefix/share/util-macros.
3084+#
3085+AC_DEFUN([XORG_INSTALL], [
3086+AC_REQUIRE([PKG_PROG_PKG_CONFIG])
3087+macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
3088+INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
3089+mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
3090+|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
3091+echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
3092+AC_SUBST([INSTALL_CMD])
3093+]) # XORG_INSTALL
3094+dnl Copyright 2005 Red Hat, Inc
3095+dnl
3096+dnl Permission to use, copy, modify, distribute, and sell this software and its
3097+dnl documentation for any purpose is hereby granted without fee, provided that
3098+dnl the above copyright notice appear in all copies and that both that
3099+dnl copyright notice and this permission notice appear in supporting
3100+dnl documentation.
3101+dnl
3102+dnl The above copyright notice and this permission notice shall be included
3103+dnl in all copies or substantial portions of the Software.
3104+dnl
3105+dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
3106+dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
3107+dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
3108+dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
3109+dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
3110+dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
3111+dnl OTHER DEALINGS IN THE SOFTWARE.
3112+dnl
3113+dnl Except as contained in this notice, the name of the copyright holders shall
3114+dnl not be used in advertising or otherwise to promote the sale, use or
3115+dnl other dealings in this Software without prior written authorization
3116+dnl from the copyright holders.
3117+dnl
3118+
3119+# XORG_RELEASE_VERSION
3120+# --------------------
3121+# Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
3122+
3123+AC_DEFUN([XORG_RELEASE_VERSION],[
3124+ AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
3125+ [`echo $PACKAGE_VERSION | cut -d . -f 1`],
3126+ [Major version of this package])
3127+ PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
3128+ if test "x$PVM" = "x"; then
3129+ PVM="0"
3130+ fi
3131+ AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
3132+ [$PVM],
3133+ [Minor version of this package])
3134+ PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
3135+ if test "x$PVP" = "x"; then
3136+ PVP="0"
3137+ fi
3138+ AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
3139+ [$PVP],
3140+ [Patch version of this package])
3141+])
3142+
3143+# XORG_CHANGELOG()
3144+# ----------------
3145+# Minimum version: 1.2.0
3146+#
3147+# Defines the variable CHANGELOG_CMD as the command to generate
3148+# ChangeLog from git.
3149+#
3150+#
3151+AC_DEFUN([XORG_CHANGELOG], [
3152+CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
3153+mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
3154+|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
3155+echo 'git directory not found: installing possibly empty changelog.' >&2)"
3156+AC_SUBST([CHANGELOG_CMD])
3157+]) # XORG_CHANGELOG
3158+
diff -r 000000000000 -r 36b43b946834 build/makedepend/autogen.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/build/makedepend/autogen.sh Sat Jul 04 06:08:07 2020 -0400
@@ -0,0 +1,15 @@
1+#! /bin/sh
2+
3+
4+srcdir=`dirname $0`
5+test -z "$srcdir" && srcdir=.
6+
7+ORIGDIR=`pwd`
8+cd $srcdir
9+
10+autoreconf -v --install || exit 1
11+cd $ORIGDIR || exit $?
12+
13+if test -z "$NOCONFIGURE"; then
14+ $srcdir/configure "$@"
15+fi
diff -r 000000000000 -r 36b43b946834 build/makedepend/compile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/build/makedepend/compile Sat Jul 04 06:08:07 2020 -0400
@@ -0,0 +1,347 @@
1+#! /bin/sh
2+# Wrapper for compilers which do not understand '-c -o'.
3+
4+scriptversion=2012-10-14.11; # UTC
5+
6+# Copyright (C) 1999-2013 Free Software Foundation, Inc.
7+# Written by Tom Tromey <tromey@cygnus.com>.
8+#
9+# This program is free software; you can redistribute it and/or modify
10+# it under the terms of the GNU General Public License as published by
11+# the Free Software Foundation; either version 2, or (at your option)
12+# any later version.
13+#
14+# This program is distributed in the hope that it will be useful,
15+# but WITHOUT ANY WARRANTY; without even the implied warranty of
16+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+# GNU General Public License for more details.
18+#
19+# You should have received a copy of the GNU General Public License
20+# along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
22+# As a special exception to the GNU General Public License, if you
23+# distribute this file as part of a program that contains a
24+# configuration script generated by Autoconf, you may include it under
25+# the same distribution terms that you use for the rest of that program.
26+
27+# This file is maintained in Automake, please report
28+# bugs to <bug-automake@gnu.org> or send patches to
29+# <automake-patches@gnu.org>.
30+
31+nl='
32+'
33+
34+# We need space, tab and new line, in precisely that order. Quoting is
35+# there to prevent tools from complaining about whitespace usage.
36+IFS=" "" $nl"
37+
38+file_conv=
39+
40+# func_file_conv build_file lazy
41+# Convert a $build file to $host form and store it in $file
42+# Currently only supports Windows hosts. If the determined conversion
43+# type is listed in (the comma separated) LAZY, no conversion will
44+# take place.
45+func_file_conv ()
46+{
47+ file=$1
48+ case $file in
49+ / | /[!/]*) # absolute file, and not a UNC file
50+ if test -z "$file_conv"; then
51+ # lazily determine how to convert abs files
52+ case `uname -s` in
53+ MINGW*)
54+ file_conv=mingw
55+ ;;
56+ CYGWIN*)
57+ file_conv=cygwin
58+ ;;
59+ *)
60+ file_conv=wine
61+ ;;
62+ esac
63+ fi
64+ case $file_conv/,$2, in
65+ *,$file_conv,*)
66+ ;;
67+ mingw/*)
68+ file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
69+ ;;
70+ cygwin/*)
71+ file=`cygpath -m "$file" || echo "$file"`
72+ ;;
73+ wine/*)
74+ file=`winepath -w "$file" || echo "$file"`
75+ ;;
76+ esac
77+ ;;
78+ esac
79+}
80+
81+# func_cl_dashL linkdir
82+# Make cl look for libraries in LINKDIR
83+func_cl_dashL ()
84+{
85+ func_file_conv "$1"
86+ if test -z "$lib_path"; then
87+ lib_path=$file
88+ else
89+ lib_path="$lib_path;$file"
90+ fi
91+ linker_opts="$linker_opts -LIBPATH:$file"
92+}
93+
94+# func_cl_dashl library
95+# Do a library search-path lookup for cl
96+func_cl_dashl ()
97+{
98+ lib=$1
99+ found=no
100+ save_IFS=$IFS
101+ IFS=';'
102+ for dir in $lib_path $LIB
103+ do
104+ IFS=$save_IFS
105+ if $shared && test -f "$dir/$lib.dll.lib"; then
106+ found=yes
107+ lib=$dir/$lib.dll.lib
108+ break
109+ fi
110+ if test -f "$dir/$lib.lib"; then
111+ found=yes
112+ lib=$dir/$lib.lib
113+ break
114+ fi
115+ if test -f "$dir/lib$lib.a"; then
116+ found=yes
117+ lib=$dir/lib$lib.a
118+ break
119+ fi
120+ done
121+ IFS=$save_IFS
122+
123+ if test "$found" != yes; then
124+ lib=$lib.lib
125+ fi
126+}
127+
128+# func_cl_wrapper cl arg...
129+# Adjust compile command to suit cl
130+func_cl_wrapper ()
131+{
132+ # Assume a capable shell
133+ lib_path=
134+ shared=:
135+ linker_opts=
136+ for arg
137+ do
138+ if test -n "$eat"; then
139+ eat=
140+ else
141+ case $1 in
142+ -o)
143+ # configure might choose to run compile as 'compile cc -o foo foo.c'.
144+ eat=1
145+ case $2 in
146+ *.o | *.[oO][bB][jJ])
147+ func_file_conv "$2"
148+ set x "$@" -Fo"$file"
149+ shift
150+ ;;
151+ *)
152+ func_file_conv "$2"
153+ set x "$@" -Fe"$file"
154+ shift
155+ ;;
156+ esac
157+ ;;
158+ -I)
159+ eat=1
160+ func_file_conv "$2" mingw
161+ set x "$@" -I"$file"
162+ shift
163+ ;;
164+ -I*)
165+ func_file_conv "${1#-I}" mingw
166+ set x "$@" -I"$file"
167+ shift
168+ ;;
169+ -l)
170+ eat=1
171+ func_cl_dashl "$2"
172+ set x "$@" "$lib"
173+ shift
174+ ;;
175+ -l*)
176+ func_cl_dashl "${1#-l}"
177+ set x "$@" "$lib"
178+ shift
179+ ;;
180+ -L)
181+ eat=1
182+ func_cl_dashL "$2"
183+ ;;
184+ -L*)
185+ func_cl_dashL "${1#-L}"
186+ ;;
187+ -static)
188+ shared=false
189+ ;;
190+ -Wl,*)
191+ arg=${1#-Wl,}
192+ save_ifs="$IFS"; IFS=','
193+ for flag in $arg; do
194+ IFS="$save_ifs"
195+ linker_opts="$linker_opts $flag"
196+ done
197+ IFS="$save_ifs"
198+ ;;
199+ -Xlinker)
200+ eat=1
201+ linker_opts="$linker_opts $2"
202+ ;;
203+ -*)
204+ set x "$@" "$1"
205+ shift
206+ ;;
207+ *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
208+ func_file_conv "$1"
209+ set x "$@" -Tp"$file"
210+ shift
211+ ;;
212+ *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
213+ func_file_conv "$1" mingw
214+ set x "$@" "$file"
215+ shift
216+ ;;
217+ *)
218+ set x "$@" "$1"
219+ shift
220+ ;;
221+ esac
222+ fi
223+ shift
224+ done
225+ if test -n "$linker_opts"; then
226+ linker_opts="-link$linker_opts"
227+ fi
228+ exec "$@" $linker_opts
229+ exit 1
230+}
231+
232+eat=
233+
234+case $1 in
235+ '')
236+ echo "$0: No command. Try '$0 --help' for more information." 1>&2
237+ exit 1;
238+ ;;
239+ -h | --h*)
240+ cat <<\EOF
241+Usage: compile [--help] [--version] PROGRAM [ARGS]
242+
243+Wrapper for compilers which do not understand '-c -o'.
244+Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
245+arguments, and rename the output as expected.
246+
247+If you are trying to build a whole package this is not the
248+right script to run: please start by reading the file 'INSTALL'.
249+
250+Report bugs to <bug-automake@gnu.org>.
251+EOF
252+ exit $?
253+ ;;
254+ -v | --v*)
255+ echo "compile $scriptversion"
256+ exit $?
257+ ;;
258+ cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
259+ func_cl_wrapper "$@" # Doesn't return...
260+ ;;
261+esac
262+
263+ofile=
264+cfile=
265+
266+for arg
267+do
268+ if test -n "$eat"; then
269+ eat=
270+ else
271+ case $1 in
272+ -o)
273+ # configure might choose to run compile as 'compile cc -o foo foo.c'.
274+ # So we strip '-o arg' only if arg is an object.
275+ eat=1
276+ case $2 in
277+ *.o | *.obj)
278+ ofile=$2
279+ ;;
280+ *)
281+ set x "$@" -o "$2"
282+ shift
283+ ;;
284+ esac
285+ ;;
286+ *.c)
287+ cfile=$1
288+ set x "$@" "$1"
289+ shift
290+ ;;
291+ *)
292+ set x "$@" "$1"
293+ shift
294+ ;;
295+ esac
296+ fi
297+ shift
298+done
299+
300+if test -z "$ofile" || test -z "$cfile"; then
301+ # If no '-o' option was seen then we might have been invoked from a
302+ # pattern rule where we don't need one. That is ok -- this is a
303+ # normal compilation that the losing compiler can handle. If no
304+ # '.c' file was seen then we are probably linking. That is also
305+ # ok.
306+ exec "$@"
307+fi
308+
309+# Name of file we expect compiler to create.
310+cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
311+
312+# Create the lock directory.
313+# Note: use '[/\\:.-]' here to ensure that we don't use the same name
314+# that we are using for the .o file. Also, base the name on the expected
315+# object file name, since that is what matters with a parallel build.
316+lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
317+while true; do
318+ if mkdir "$lockdir" >/dev/null 2>&1; then
319+ break
320+ fi
321+ sleep 1
322+done
323+# FIXME: race condition here if user kills between mkdir and trap.
324+trap "rmdir '$lockdir'; exit 1" 1 2 15
325+
326+# Run the compile.
327+"$@"
328+ret=$?
329+
330+if test -f "$cofile"; then
331+ test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
332+elif test -f "${cofile}bj"; then
333+ test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
334+fi
335+
336+rmdir "$lockdir"
337+exit $ret
338+
339+# Local Variables:
340+# mode: shell-script
341+# sh-indentation: 2
342+# eval: (add-hook 'write-file-hooks 'time-stamp)
343+# time-stamp-start: "scriptversion="
344+# time-stamp-format: "%:y-%02m-%02d.%02H"
345+# time-stamp-time-zone: "UTC"
346+# time-stamp-end: "; # UTC"
347+# End:
diff -r 000000000000 -r 36b43b946834 build/makedepend/config.guess
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/build/makedepend/config.guess Sat Jul 04 06:08:07 2020 -0400
@@ -0,0 +1,1558 @@
1+#! /bin/sh
2+# Attempt to guess a canonical system name.
3+# Copyright 1992-2013 Free Software Foundation, Inc.
4+
5+timestamp='2013-06-10'
6+
7+# This file is free software; you can redistribute it and/or modify it
8+# under the terms of the GNU General Public License as published by
9+# the Free Software Foundation; either version 3 of the License, or
10+# (at your option) any later version.
11+#
12+# This program is distributed in the hope that it will be useful, but
13+# WITHOUT ANY WARRANTY; without even the implied warranty of
14+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15+# General Public License for more details.
16+#
17+# You should have received a copy of the GNU General Public License
18+# along with this program; if not, see <http://www.gnu.org/licenses/>.
19+#
20+# As a special exception to the GNU General Public License, if you
21+# distribute this file as part of a program that contains a
22+# configuration script generated by Autoconf, you may include it under
23+# the same distribution terms that you use for the rest of that
24+# program. This Exception is an additional permission under section 7
25+# of the GNU General Public License, version 3 ("GPLv3").
26+#
27+# Originally written by Per Bothner.
28+#
29+# You can get the latest version of this script from:
30+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
31+#
32+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
33+
34+
35+me=`echo "$0" | sed -e 's,.*/,,'`
36+
37+usage="\
38+Usage: $0 [OPTION]
39+
40+Output the configuration name of the system \`$me' is run on.
41+
42+Operation modes:
43+ -h, --help print this help, then exit
44+ -t, --time-stamp print date of last modification, then exit
45+ -v, --version print version number, then exit
46+
47+Report bugs and patches to <config-patches@gnu.org>."
48+
49+version="\
50+GNU config.guess ($timestamp)
51+
52+Originally written by Per Bothner.
53+Copyright 1992-2013 Free Software Foundation, Inc.
54+
55+This is free software; see the source for copying conditions. There is NO
56+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
57+
58+help="
59+Try \`$me --help' for more information."
60+
61+# Parse command line
62+while test $# -gt 0 ; do
63+ case $1 in
64+ --time-stamp | --time* | -t )
65+ echo "$timestamp" ; exit ;;
66+ --version | -v )
67+ echo "$version" ; exit ;;
68+ --help | --h* | -h )
69+ echo "$usage"; exit ;;
70+ -- ) # Stop option processing
71+ shift; break ;;
72+ - ) # Use stdin as input.
73+ break ;;
74+ -* )
75+ echo "$me: invalid option $1$help" >&2
76+ exit 1 ;;
77+ * )
78+ break ;;
79+ esac
80+done
81+
82+if test $# != 0; then
83+ echo "$me: too many arguments$help" >&2
84+ exit 1
85+fi
86+
87+trap 'exit 1' 1 2 15
88+
89+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
90+# compiler to aid in system detection is discouraged as it requires
91+# temporary files to be created and, as you can see below, it is a
92+# headache to deal with in a portable fashion.
93+
94+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
95+# use `HOST_CC' if defined, but it is deprecated.
96+
97+# Portable tmp directory creation inspired by the Autoconf team.
98+
99+set_cc_for_build='
100+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
101+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
102+: ${TMPDIR=/tmp} ;
103+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
104+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
105+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
106+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
107+dummy=$tmp/dummy ;
108+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
109+case $CC_FOR_BUILD,$HOST_CC,$CC in
110+ ,,) echo "int x;" > $dummy.c ;
111+ for c in cc gcc c89 c99 ; do
112+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
113+ CC_FOR_BUILD="$c"; break ;
114+ fi ;
115+ done ;
116+ if test x"$CC_FOR_BUILD" = x ; then
117+ CC_FOR_BUILD=no_compiler_found ;
118+ fi
119+ ;;
120+ ,,*) CC_FOR_BUILD=$CC ;;
121+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
122+esac ; set_cc_for_build= ;'
123+
124+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
125+# (ghazi@noc.rutgers.edu 1994-08-24)
126+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
127+ PATH=$PATH:/.attbin ; export PATH
128+fi
129+
130+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
131+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
132+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
133+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
134+
135+case "${UNAME_SYSTEM}" in
136+Linux|GNU|GNU/*)
137+ # If the system lacks a compiler, then just pick glibc.
138+ # We could probably try harder.
139+ LIBC=gnu
140+
141+ eval $set_cc_for_build
142+ cat <<-EOF > $dummy.c
143+ #include <features.h>
144+ #if defined(__UCLIBC__)
145+ LIBC=uclibc
146+ #elif defined(__dietlibc__)
147+ LIBC=dietlibc
148+ #else
149+ LIBC=gnu
150+ #endif
151+ EOF
152+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
153+ ;;
154+esac
155+
156+# Note: order is significant - the case branches are not exclusive.
157+
158+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
159+ *:NetBSD:*:*)
160+ # NetBSD (nbsd) targets should (where applicable) match one or
161+ # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
162+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
163+ # switched to ELF, *-*-netbsd* would select the old
164+ # object file format. This provides both forward
165+ # compatibility and a consistent mechanism for selecting the
166+ # object file format.
167+ #
168+ # Note: NetBSD doesn't particularly care about the vendor
169+ # portion of the name. We always set it to "unknown".
170+ sysctl="sysctl -n hw.machine_arch"
171+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
172+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
173+ case "${UNAME_MACHINE_ARCH}" in
174+ armeb) machine=armeb-unknown ;;
175+ arm*) machine=arm-unknown ;;
176+ sh3el) machine=shl-unknown ;;
177+ sh3eb) machine=sh-unknown ;;
178+ sh5el) machine=sh5le-unknown ;;
179+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
180+ esac
181+ # The Operating System including object format, if it has switched
182+ # to ELF recently, or will in the future.
183+ case "${UNAME_MACHINE_ARCH}" in
184+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
185+ eval $set_cc_for_build
186+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
187+ | grep -q __ELF__
188+ then
189+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
190+ # Return netbsd for either. FIX?
191+ os=netbsd
192+ else
193+ os=netbsdelf
194+ fi
195+ ;;
196+ *)
197+ os=netbsd
198+ ;;
199+ esac
200+ # The OS release
201+ # Debian GNU/NetBSD machines have a different userland, and
202+ # thus, need a distinct triplet. However, they do not need
203+ # kernel version information, so it can be replaced with a
204+ # suitable tag, in the style of linux-gnu.
205+ case "${UNAME_VERSION}" in
206+ Debian*)
207+ release='-gnu'
208+ ;;
209+ *)
210+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
211+ ;;
212+ esac
213+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
214+ # contains redundant information, the shorter form:
215+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
216+ echo "${machine}-${os}${release}"
217+ exit ;;
218+ *:Bitrig:*:*)
219+ UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
220+ echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
221+ exit ;;
222+ *:OpenBSD:*:*)
223+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
224+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
225+ exit ;;
226+ *:ekkoBSD:*:*)
227+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
228+ exit ;;
229+ *:SolidBSD:*:*)
230+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
231+ exit ;;
232+ macppc:MirBSD:*:*)
233+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
234+ exit ;;
235+ *:MirBSD:*:*)
236+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
237+ exit ;;
238+ alpha:OSF1:*:*)
239+ case $UNAME_RELEASE in
240+ *4.0)
241+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
242+ ;;
243+ *5.*)
244+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
245+ ;;
246+ esac
247+ # According to Compaq, /usr/sbin/psrinfo has been available on
248+ # OSF/1 and Tru64 systems produced since 1995. I hope that
249+ # covers most systems running today. This code pipes the CPU
250+ # types through head -n 1, so we only detect the type of CPU 0.
251+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
252+ case "$ALPHA_CPU_TYPE" in
253+ "EV4 (21064)")
254+ UNAME_MACHINE="alpha" ;;
255+ "EV4.5 (21064)")
256+ UNAME_MACHINE="alpha" ;;
257+ "LCA4 (21066/21068)")
258+ UNAME_MACHINE="alpha" ;;
259+ "EV5 (21164)")
260+ UNAME_MACHINE="alphaev5" ;;
261+ "EV5.6 (21164A)")
262+ UNAME_MACHINE="alphaev56" ;;
263+ "EV5.6 (21164PC)")
264+ UNAME_MACHINE="alphapca56" ;;
265+ "EV5.7 (21164PC)")
266+ UNAME_MACHINE="alphapca57" ;;
267+ "EV6 (21264)")
268+ UNAME_MACHINE="alphaev6" ;;
269+ "EV6.7 (21264A)")
270+ UNAME_MACHINE="alphaev67" ;;
271+ "EV6.8CB (21264C)")
272+ UNAME_MACHINE="alphaev68" ;;
273+ "EV6.8AL (21264B)")
274+ UNAME_MACHINE="alphaev68" ;;
275+ "EV6.8CX (21264D)")
276+ UNAME_MACHINE="alphaev68" ;;
277+ "EV6.9A (21264/EV69A)")
278+ UNAME_MACHINE="alphaev69" ;;
279+ "EV7 (21364)")
280+ UNAME_MACHINE="alphaev7" ;;
281+ "EV7.9 (21364A)")
282+ UNAME_MACHINE="alphaev79" ;;
283+ esac
284+ # A Pn.n version is a patched version.
285+ # A Vn.n version is a released version.
286+ # A Tn.n version is a released field test version.
287+ # A Xn.n version is an unreleased experimental baselevel.
288+ # 1.2 uses "1.2" for uname -r.
289+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
290+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
291+ exitcode=$?
292+ trap '' 0
293+ exit $exitcode ;;
294+ Alpha\ *:Windows_NT*:*)
295+ # How do we know it's Interix rather than the generic POSIX subsystem?
296+ # Should we change UNAME_MACHINE based on the output of uname instead
297+ # of the specific Alpha model?
298+ echo alpha-pc-interix
299+ exit ;;
300+ 21064:Windows_NT:50:3)
301+ echo alpha-dec-winnt3.5
302+ exit ;;
303+ Amiga*:UNIX_System_V:4.0:*)
304+ echo m68k-unknown-sysv4
305+ exit ;;
306+ *:[Aa]miga[Oo][Ss]:*:*)
307+ echo ${UNAME_MACHINE}-unknown-amigaos
308+ exit ;;
309+ *:[Mm]orph[Oo][Ss]:*:*)
310+ echo ${UNAME_MACHINE}-unknown-morphos
311+ exit ;;
312+ *:OS/390:*:*)
313+ echo i370-ibm-openedition
314+ exit ;;
315+ *:z/VM:*:*)
316+ echo s390-ibm-zvmoe
317+ exit ;;
318+ *:OS400:*:*)
319+ echo powerpc-ibm-os400
320+ exit ;;
321+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
322+ echo arm-acorn-riscix${UNAME_RELEASE}
323+ exit ;;
324+ arm*:riscos:*:*|arm*:RISCOS:*:*)
325+ echo arm-unknown-riscos
326+ exit ;;
327+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
328+ echo hppa1.1-hitachi-hiuxmpp
329+ exit ;;
330+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
331+ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
332+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
333+ echo pyramid-pyramid-sysv3
334+ else
335+ echo pyramid-pyramid-bsd
336+ fi
337+ exit ;;
338+ NILE*:*:*:dcosx)
339+ echo pyramid-pyramid-svr4
340+ exit ;;
341+ DRS?6000:unix:4.0:6*)
342+ echo sparc-icl-nx6
343+ exit ;;
344+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
345+ case `/usr/bin/uname -p` in
346+ sparc) echo sparc-icl-nx7; exit ;;
347+ esac ;;
348+ s390x:SunOS:*:*)
349+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
350+ exit ;;
351+ sun4H:SunOS:5.*:*)
352+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
353+ exit ;;
354+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
355+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
356+ exit ;;
357+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
358+ echo i386-pc-auroraux${UNAME_RELEASE}
359+ exit ;;
360+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
361+ eval $set_cc_for_build
362+ SUN_ARCH="i386"
363+ # If there is a compiler, see if it is configured for 64-bit objects.
364+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
365+ # This test works for both compilers.
366+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
367+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
368+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
369+ grep IS_64BIT_ARCH >/dev/null
370+ then
371+ SUN_ARCH="x86_64"
372+ fi
373+ fi
374+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
375+ exit ;;
376+ sun4*:SunOS:6*:*)
377+ # According to config.sub, this is the proper way to canonicalize
378+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
379+ # it's likely to be more like Solaris than SunOS4.
380+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
381+ exit ;;
382+ sun4*:SunOS:*:*)
383+ case "`/usr/bin/arch -k`" in
384+ Series*|S4*)
385+ UNAME_RELEASE=`uname -v`
386+ ;;
387+ esac
388+ # Japanese Language versions have a version number like `4.1.3-JL'.
389+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
390+ exit ;;
391+ sun3*:SunOS:*:*)
392+ echo m68k-sun-sunos${UNAME_RELEASE}
393+ exit ;;
394+ sun*:*:4.2BSD:*)
395+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
396+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
397+ case "`/bin/arch`" in
398+ sun3)
399+ echo m68k-sun-sunos${UNAME_RELEASE}
400+ ;;
401+ sun4)
402+ echo sparc-sun-sunos${UNAME_RELEASE}
403+ ;;
404+ esac
405+ exit ;;
406+ aushp:SunOS:*:*)
407+ echo sparc-auspex-sunos${UNAME_RELEASE}
408+ exit ;;
409+ # The situation for MiNT is a little confusing. The machine name
410+ # can be virtually everything (everything which is not
411+ # "atarist" or "atariste" at least should have a processor
412+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
413+ # to the lowercase version "mint" (or "freemint"). Finally
414+ # the system name "TOS" denotes a system which is actually not
415+ # MiNT. But MiNT is downward compatible to TOS, so this should
416+ # be no problem.
417+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
418+ echo m68k-atari-mint${UNAME_RELEASE}
419+ exit ;;
420+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
421+ echo m68k-atari-mint${UNAME_RELEASE}
422+ exit ;;
423+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
424+ echo m68k-atari-mint${UNAME_RELEASE}
425+ exit ;;
426+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
427+ echo m68k-milan-mint${UNAME_RELEASE}
428+ exit ;;
429+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
430+ echo m68k-hades-mint${UNAME_RELEASE}
431+ exit ;;
432+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
433+ echo m68k-unknown-mint${UNAME_RELEASE}
434+ exit ;;
435+ m68k:machten:*:*)
436+ echo m68k-apple-machten${UNAME_RELEASE}
437+ exit ;;
438+ powerpc:machten:*:*)
439+ echo powerpc-apple-machten${UNAME_RELEASE}
440+ exit ;;
441+ RISC*:Mach:*:*)
442+ echo mips-dec-mach_bsd4.3
443+ exit ;;
444+ RISC*:ULTRIX:*:*)
445+ echo mips-dec-ultrix${UNAME_RELEASE}
446+ exit ;;
447+ VAX*:ULTRIX*:*:*)
448+ echo vax-dec-ultrix${UNAME_RELEASE}
449+ exit ;;
450+ 2020:CLIX:*:* | 2430:CLIX:*:*)
451+ echo clipper-intergraph-clix${UNAME_RELEASE}
452+ exit ;;
453+ mips:*:*:UMIPS | mips:*:*:RISCos)
454+ eval $set_cc_for_build
455+ sed 's/^ //' << EOF >$dummy.c
456+#ifdef __cplusplus
457+#include <stdio.h> /* for printf() prototype */
458+ int main (int argc, char *argv[]) {
459+#else
460+ int main (argc, argv) int argc; char *argv[]; {
461+#endif
462+ #if defined (host_mips) && defined (MIPSEB)
463+ #if defined (SYSTYPE_SYSV)
464+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
465+ #endif
466+ #if defined (SYSTYPE_SVR4)
467+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
468+ #endif
469+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
470+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
471+ #endif
472+ #endif
473+ exit (-1);
474+ }
475+EOF
476+ $CC_FOR_BUILD -o $dummy $dummy.c &&
477+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
478+ SYSTEM_NAME=`$dummy $dummyarg` &&
479+ { echo "$SYSTEM_NAME"; exit; }
480+ echo mips-mips-riscos${UNAME_RELEASE}
481+ exit ;;
482+ Motorola:PowerMAX_OS:*:*)
483+ echo powerpc-motorola-powermax
484+ exit ;;
485+ Motorola:*:4.3:PL8-*)
486+ echo powerpc-harris-powermax
487+ exit ;;
488+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
489+ echo powerpc-harris-powermax
490+ exit ;;
491+ Night_Hawk:Power_UNIX:*:*)
492+ echo powerpc-harris-powerunix
493+ exit ;;
494+ m88k:CX/UX:7*:*)
495+ echo m88k-harris-cxux7
496+ exit ;;
497+ m88k:*:4*:R4*)
498+ echo m88k-motorola-sysv4
499+ exit ;;
500+ m88k:*:3*:R3*)
501+ echo m88k-motorola-sysv3
502+ exit ;;
503+ AViiON:dgux:*:*)
504+ # DG/UX returns AViiON for all architectures
505+ UNAME_PROCESSOR=`/usr/bin/uname -p`
506+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
507+ then
508+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
509+ [ ${TARGET_BINARY_INTERFACE}x = x ]
510+ then
511+ echo m88k-dg-dgux${UNAME_RELEASE}
512+ else
513+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
514+ fi
515+ else
516+ echo i586-dg-dgux${UNAME_RELEASE}
517+ fi
518+ exit ;;
519+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
520+ echo m88k-dolphin-sysv3
521+ exit ;;
522+ M88*:*:R3*:*)
523+ # Delta 88k system running SVR3
524+ echo m88k-motorola-sysv3
525+ exit ;;
526+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
527+ echo m88k-tektronix-sysv3
528+ exit ;;
529+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
530+ echo m68k-tektronix-bsd
531+ exit ;;
532+ *:IRIX*:*:*)
533+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
534+ exit ;;
535+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
536+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
537+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
538+ i*86:AIX:*:*)
539+ echo i386-ibm-aix
540+ exit ;;
541+ ia64:AIX:*:*)
542+ if [ -x /usr/bin/oslevel ] ; then
543+ IBM_REV=`/usr/bin/oslevel`
544+ else
545+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
546+ fi
547+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
548+ exit ;;
549+ *:AIX:2:3)
550+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
551+ eval $set_cc_for_build
552+ sed 's/^ //' << EOF >$dummy.c
553+ #include <sys/systemcfg.h>
554+
555+ main()
556+ {
557+ if (!__power_pc())
558+ exit(1);
559+ puts("powerpc-ibm-aix3.2.5");
560+ exit(0);
561+ }
562+EOF
563+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
564+ then
565+ echo "$SYSTEM_NAME"
566+ else
567+ echo rs6000-ibm-aix3.2.5
568+ fi
569+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
570+ echo rs6000-ibm-aix3.2.4
571+ else
572+ echo rs6000-ibm-aix3.2
573+ fi
574+ exit ;;
575+ *:AIX:*:[4567])
576+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
577+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
578+ IBM_ARCH=rs6000
579+ else
580+ IBM_ARCH=powerpc
581+ fi
582+ if [ -x /usr/bin/oslevel ] ; then
583+ IBM_REV=`/usr/bin/oslevel`
584+ else
585+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
586+ fi
587+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
588+ exit ;;
589+ *:AIX:*:*)
590+ echo rs6000-ibm-aix
591+ exit ;;
592+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
593+ echo romp-ibm-bsd4.4
594+ exit ;;
595+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
596+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
597+ exit ;; # report: romp-ibm BSD 4.3
598+ *:BOSX:*:*)
599+ echo rs6000-bull-bosx
600+ exit ;;
601+ DPX/2?00:B.O.S.:*:*)
602+ echo m68k-bull-sysv3
603+ exit ;;
604+ 9000/[34]??:4.3bsd:1.*:*)
605+ echo m68k-hp-bsd
606+ exit ;;
607+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
608+ echo m68k-hp-bsd4.4
609+ exit ;;
610+ 9000/[34678]??:HP-UX:*:*)
611+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
612+ case "${UNAME_MACHINE}" in
613+ 9000/31? ) HP_ARCH=m68000 ;;
614+ 9000/[34]?? ) HP_ARCH=m68k ;;
615+ 9000/[678][0-9][0-9])
616+ if [ -x /usr/bin/getconf ]; then
617+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
618+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
619+ case "${sc_cpu_version}" in
620+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
621+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
622+ 532) # CPU_PA_RISC2_0
623+ case "${sc_kernel_bits}" in
624+ 32) HP_ARCH="hppa2.0n" ;;
625+ 64) HP_ARCH="hppa2.0w" ;;
626+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
627+ esac ;;
628+ esac
629+ fi
630+ if [ "${HP_ARCH}" = "" ]; then
631+ eval $set_cc_for_build
632+ sed 's/^ //' << EOF >$dummy.c
633+
634+ #define _HPUX_SOURCE
635+ #include <stdlib.h>
636+ #include <unistd.h>
637+
638+ int main ()
639+ {
640+ #if defined(_SC_KERNEL_BITS)
641+ long bits = sysconf(_SC_KERNEL_BITS);
642+ #endif
643+ long cpu = sysconf (_SC_CPU_VERSION);
644+
645+ switch (cpu)
646+ {
647+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
648+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
649+ case CPU_PA_RISC2_0:
650+ #if defined(_SC_KERNEL_BITS)
651+ switch (bits)
652+ {
653+ case 64: puts ("hppa2.0w"); break;
654+ case 32: puts ("hppa2.0n"); break;
655+ default: puts ("hppa2.0"); break;
656+ } break;
657+ #else /* !defined(_SC_KERNEL_BITS) */
658+ puts ("hppa2.0"); break;
659+ #endif
660+ default: puts ("hppa1.0"); break;
661+ }
662+ exit (0);
663+ }
664+EOF
665+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
666+ test -z "$HP_ARCH" && HP_ARCH=hppa
667+ fi ;;
668+ esac
669+ if [ ${HP_ARCH} = "hppa2.0w" ]
670+ then
671+ eval $set_cc_for_build
672+
673+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
674+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
675+ # generating 64-bit code. GNU and HP use different nomenclature:
676+ #
677+ # $ CC_FOR_BUILD=cc ./config.guess
678+ # => hppa2.0w-hp-hpux11.23
679+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
680+ # => hppa64-hp-hpux11.23
681+
682+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
683+ grep -q __LP64__
684+ then
685+ HP_ARCH="hppa2.0w"
686+ else
687+ HP_ARCH="hppa64"
688+ fi
689+ fi
690+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
691+ exit ;;
692+ ia64:HP-UX:*:*)
693+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
694+ echo ia64-hp-hpux${HPUX_REV}
695+ exit ;;
696+ 3050*:HI-UX:*:*)
697+ eval $set_cc_for_build
698+ sed 's/^ //' << EOF >$dummy.c
699+ #include <unistd.h>
700+ int
701+ main ()
702+ {
703+ long cpu = sysconf (_SC_CPU_VERSION);
704+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
705+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
706+ results, however. */
707+ if (CPU_IS_PA_RISC (cpu))
708+ {
709+ switch (cpu)
710+ {
711+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
712+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
713+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
714+ default: puts ("hppa-hitachi-hiuxwe2"); break;
715+ }
716+ }
717+ else if (CPU_IS_HP_MC68K (cpu))
718+ puts ("m68k-hitachi-hiuxwe2");
719+ else puts ("unknown-hitachi-hiuxwe2");
720+ exit (0);
721+ }
722+EOF
723+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
724+ { echo "$SYSTEM_NAME"; exit; }
725+ echo unknown-hitachi-hiuxwe2
726+ exit ;;
727+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
728+ echo hppa1.1-hp-bsd
729+ exit ;;
730+ 9000/8??:4.3bsd:*:*)
731+ echo hppa1.0-hp-bsd
732+ exit ;;
733+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
734+ echo hppa1.0-hp-mpeix
735+ exit ;;
736+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
737+ echo hppa1.1-hp-osf
738+ exit ;;
739+ hp8??:OSF1:*:*)
740+ echo hppa1.0-hp-osf
741+ exit ;;
742+ i*86:OSF1:*:*)
743+ if [ -x /usr/sbin/sysversion ] ; then
744+ echo ${UNAME_MACHINE}-unknown-osf1mk
745+ else
746+ echo ${UNAME_MACHINE}-unknown-osf1
747+ fi
748+ exit ;;
749+ parisc*:Lites*:*:*)
750+ echo hppa1.1-hp-lites
751+ exit ;;
752+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
753+ echo c1-convex-bsd
754+ exit ;;
755+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
756+ if getsysinfo -f scalar_acc
757+ then echo c32-convex-bsd
758+ else echo c2-convex-bsd
759+ fi
760+ exit ;;
761+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
762+ echo c34-convex-bsd
763+ exit ;;
764+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
765+ echo c38-convex-bsd
766+ exit ;;
767+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
768+ echo c4-convex-bsd
769+ exit ;;
770+ CRAY*Y-MP:*:*:*)
771+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
772+ exit ;;
773+ CRAY*[A-Z]90:*:*:*)
774+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
775+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
776+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
777+ -e 's/\.[^.]*$/.X/'
778+ exit ;;
779+ CRAY*TS:*:*:*)
780+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
781+ exit ;;
782+ CRAY*T3E:*:*:*)
783+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
784+ exit ;;
785+ CRAY*SV1:*:*:*)
786+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
787+ exit ;;
788+ *:UNICOS/mp:*:*)
789+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
790+ exit ;;
791+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
792+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
793+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
794+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
795+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
796+ exit ;;
797+ 5000:UNIX_System_V:4.*:*)
798+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
799+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
800+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
801+ exit ;;
802+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
803+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
804+ exit ;;
805+ sparc*:BSD/OS:*:*)
806+ echo sparc-unknown-bsdi${UNAME_RELEASE}
807+ exit ;;
808+ *:BSD/OS:*:*)
809+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
810+ exit ;;
811+ *:FreeBSD:*:*)
812+ UNAME_PROCESSOR=`/usr/bin/uname -p`
813+ case ${UNAME_PROCESSOR} in
814+ amd64)
815+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
816+ *)
817+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
818+ esac
819+ exit ;;
820+ i*:CYGWIN*:*)
821+ echo ${UNAME_MACHINE}-pc-cygwin
822+ exit ;;
823+ *:MINGW64*:*)
824+ echo ${UNAME_MACHINE}-pc-mingw64
825+ exit ;;
826+ *:MINGW*:*)
827+ echo ${UNAME_MACHINE}-pc-mingw32
828+ exit ;;
829+ i*:MSYS*:*)
830+ echo ${UNAME_MACHINE}-pc-msys
831+ exit ;;
832+ i*:windows32*:*)
833+ # uname -m includes "-pc" on this system.
834+ echo ${UNAME_MACHINE}-mingw32
835+ exit ;;
836+ i*:PW*:*)
837+ echo ${UNAME_MACHINE}-pc-pw32
838+ exit ;;
839+ *:Interix*:*)
840+ case ${UNAME_MACHINE} in
841+ x86)
842+ echo i586-pc-interix${UNAME_RELEASE}
843+ exit ;;
844+ authenticamd | genuineintel | EM64T)
845+ echo x86_64-unknown-interix${UNAME_RELEASE}
846+ exit ;;
847+ IA64)
848+ echo ia64-unknown-interix${UNAME_RELEASE}
849+ exit ;;
850+ esac ;;
851+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
852+ echo i${UNAME_MACHINE}-pc-mks
853+ exit ;;
854+ 8664:Windows_NT:*)
855+ echo x86_64-pc-mks
856+ exit ;;
857+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
858+ # How do we know it's Interix rather than the generic POSIX subsystem?
859+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
860+ # UNAME_MACHINE based on the output of uname instead of i386?
861+ echo i586-pc-interix
862+ exit ;;
863+ i*:UWIN*:*)
864+ echo ${UNAME_MACHINE}-pc-uwin
865+ exit ;;
866+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
867+ echo x86_64-unknown-cygwin
868+ exit ;;
869+ p*:CYGWIN*:*)
870+ echo powerpcle-unknown-cygwin
871+ exit ;;
872+ prep*:SunOS:5.*:*)
873+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
874+ exit ;;
875+ *:GNU:*:*)
876+ # the GNU system
877+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
878+ exit ;;
879+ *:GNU/*:*:*)
880+ # other systems with GNU libc and userland
881+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
882+ exit ;;
883+ i*86:Minix:*:*)
884+ echo ${UNAME_MACHINE}-pc-minix
885+ exit ;;
886+ aarch64:Linux:*:*)
887+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
888+ exit ;;
889+ aarch64_be:Linux:*:*)
890+ UNAME_MACHINE=aarch64_be
891+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
892+ exit ;;
893+ alpha:Linux:*:*)
894+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
895+ EV5) UNAME_MACHINE=alphaev5 ;;
896+ EV56) UNAME_MACHINE=alphaev56 ;;
897+ PCA56) UNAME_MACHINE=alphapca56 ;;
898+ PCA57) UNAME_MACHINE=alphapca56 ;;
899+ EV6) UNAME_MACHINE=alphaev6 ;;
900+ EV67) UNAME_MACHINE=alphaev67 ;;
901+ EV68*) UNAME_MACHINE=alphaev68 ;;
902+ esac
903+ objdump --private-headers /bin/sh | grep -q ld.so.1
904+ if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
905+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
906+ exit ;;
907+ arc:Linux:*:* | arceb:Linux:*:*)
908+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
909+ exit ;;
910+ arm*:Linux:*:*)
911+ eval $set_cc_for_build
912+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
913+ | grep -q __ARM_EABI__
914+ then
915+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
916+ else
917+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
918+ | grep -q __ARM_PCS_VFP
919+ then
920+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
921+ else
922+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
923+ fi
924+ fi
925+ exit ;;
926+ avr32*:Linux:*:*)
927+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
928+ exit ;;
929+ cris:Linux:*:*)
930+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
931+ exit ;;
932+ crisv32:Linux:*:*)
933+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
934+ exit ;;
935+ frv:Linux:*:*)
936+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
937+ exit ;;
938+ hexagon:Linux:*:*)
939+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
940+ exit ;;
941+ i*86:Linux:*:*)
942+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
943+ exit ;;
944+ ia64:Linux:*:*)
945+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
946+ exit ;;
947+ m32r*:Linux:*:*)
948+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
949+ exit ;;
950+ m68*:Linux:*:*)
951+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
952+ exit ;;
953+ mips:Linux:*:* | mips64:Linux:*:*)
954+ eval $set_cc_for_build
955+ sed 's/^ //' << EOF >$dummy.c
956+ #undef CPU
957+ #undef ${UNAME_MACHINE}
958+ #undef ${UNAME_MACHINE}el
959+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
960+ CPU=${UNAME_MACHINE}el
961+ #else
962+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
963+ CPU=${UNAME_MACHINE}
964+ #else
965+ CPU=
966+ #endif
967+ #endif
968+EOF
969+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
970+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
971+ ;;
972+ or1k:Linux:*:*)
973+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
974+ exit ;;
975+ or32:Linux:*:*)
976+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
977+ exit ;;
978+ padre:Linux:*:*)
979+ echo sparc-unknown-linux-${LIBC}
980+ exit ;;
981+ parisc64:Linux:*:* | hppa64:Linux:*:*)
982+ echo hppa64-unknown-linux-${LIBC}
983+ exit ;;
984+ parisc:Linux:*:* | hppa:Linux:*:*)
985+ # Look for CPU level
986+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
987+ PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
988+ PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
989+ *) echo hppa-unknown-linux-${LIBC} ;;
990+ esac
991+ exit ;;
992+ ppc64:Linux:*:*)
993+ echo powerpc64-unknown-linux-${LIBC}
994+ exit ;;
995+ ppc:Linux:*:*)
996+ echo powerpc-unknown-linux-${LIBC}
997+ exit ;;
998+ ppc64le:Linux:*:*)
999+ echo powerpc64le-unknown-linux-${LIBC}
1000+ exit ;;
1001+ ppcle:Linux:*:*)
1002+ echo powerpcle-unknown-linux-${LIBC}
1003+ exit ;;
1004+ s390:Linux:*:* | s390x:Linux:*:*)
1005+ echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1006+ exit ;;
1007+ sh64*:Linux:*:*)
1008+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1009+ exit ;;
1010+ sh*:Linux:*:*)
1011+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1012+ exit ;;
1013+ sparc:Linux:*:* | sparc64:Linux:*:*)
1014+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1015+ exit ;;
1016+ tile*:Linux:*:*)
1017+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1018+ exit ;;
1019+ vax:Linux:*:*)
1020+ echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1021+ exit ;;
1022+ x86_64:Linux:*:*)
1023+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1024+ exit ;;
1025+ xtensa*:Linux:*:*)
1026+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1027+ exit ;;
1028+ i*86:DYNIX/ptx:4*:*)
1029+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1030+ # earlier versions are messed up and put the nodename in both
1031+ # sysname and nodename.
1032+ echo i386-sequent-sysv4
1033+ exit ;;
1034+ i*86:UNIX_SV:4.2MP:2.*)
1035+ # Unixware is an offshoot of SVR4, but it has its own version
1036+ # number series starting with 2...
1037+ # I am not positive that other SVR4 systems won't match this,
1038+ # I just have to hope. -- rms.
1039+ # Use sysv4.2uw... so that sysv4* matches it.
1040+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1041+ exit ;;
1042+ i*86:OS/2:*:*)
1043+ # If we were able to find `uname', then EMX Unix compatibility
1044+ # is probably installed.
1045+ echo ${UNAME_MACHINE}-pc-os2-emx
1046+ exit ;;
1047+ i*86:XTS-300:*:STOP)
1048+ echo ${UNAME_MACHINE}-unknown-stop
1049+ exit ;;
1050+ i*86:atheos:*:*)
1051+ echo ${UNAME_MACHINE}-unknown-atheos
1052+ exit ;;
1053+ i*86:syllable:*:*)
1054+ echo ${UNAME_MACHINE}-pc-syllable
1055+ exit ;;
1056+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1057+ echo i386-unknown-lynxos${UNAME_RELEASE}
1058+ exit ;;
1059+ i*86:*DOS:*:*)
1060+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
1061+ exit ;;
1062+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1063+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1064+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1065+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1066+ else
1067+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1068+ fi
1069+ exit ;;
1070+ i*86:*:5:[678]*)
1071+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
1072+ case `/bin/uname -X | grep "^Machine"` in
1073+ *486*) UNAME_MACHINE=i486 ;;
1074+ *Pentium) UNAME_MACHINE=i586 ;;
1075+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1076+ esac
1077+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1078+ exit ;;
1079+ i*86:*:3.2:*)
1080+ if test -f /usr/options/cb.name; then
1081+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1082+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1083+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
1084+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1085+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1086+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1087+ && UNAME_MACHINE=i586
1088+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1089+ && UNAME_MACHINE=i686
1090+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1091+ && UNAME_MACHINE=i686
1092+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1093+ else
1094+ echo ${UNAME_MACHINE}-pc-sysv32
1095+ fi
1096+ exit ;;
1097+ pc:*:*:*)
1098+ # Left here for compatibility:
1099+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
1100+ # the processor, so we play safe by assuming i586.
1101+ # Note: whatever this is, it MUST be the same as what config.sub
1102+ # prints for the "djgpp" host, or else GDB configury will decide that
1103+ # this is a cross-build.
1104+ echo i586-pc-msdosdjgpp
1105+ exit ;;
1106+ Intel:Mach:3*:*)
1107+ echo i386-pc-mach3
1108+ exit ;;
1109+ paragon:*:*:*)
1110+ echo i860-intel-osf1
1111+ exit ;;
1112+ i860:*:4.*:*) # i860-SVR4
1113+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1114+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1115+ else # Add other i860-SVR4 vendors below as they are discovered.
1116+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1117+ fi
1118+ exit ;;
1119+ mini*:CTIX:SYS*5:*)
1120+ # "miniframe"
1121+ echo m68010-convergent-sysv
1122+ exit ;;
1123+ mc68k:UNIX:SYSTEM5:3.51m)
1124+ echo m68k-convergent-sysv
1125+ exit ;;
1126+ M680?0:D-NIX:5.3:*)
1127+ echo m68k-diab-dnix
1128+ exit ;;
1129+ M68*:*:R3V[5678]*:*)
1130+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1131+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1132+ OS_REL=''
1133+ test -r /etc/.relid \
1134+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1135+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1136+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1137+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1138+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1139+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1140+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1141+ && { echo i486-ncr-sysv4; exit; } ;;
1142+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1143+ OS_REL='.3'
1144+ test -r /etc/.relid \
1145+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1146+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1147+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1148+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1149+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1150+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1151+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1152+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1153+ echo m68k-unknown-lynxos${UNAME_RELEASE}
1154+ exit ;;
1155+ mc68030:UNIX_System_V:4.*:*)
1156+ echo m68k-atari-sysv4
1157+ exit ;;
1158+ TSUNAMI:LynxOS:2.*:*)
1159+ echo sparc-unknown-lynxos${UNAME_RELEASE}
1160+ exit ;;
1161+ rs6000:LynxOS:2.*:*)
1162+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
1163+ exit ;;
1164+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1165+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
1166+ exit ;;
1167+ SM[BE]S:UNIX_SV:*:*)
1168+ echo mips-dde-sysv${UNAME_RELEASE}
1169+ exit ;;
1170+ RM*:ReliantUNIX-*:*:*)
1171+ echo mips-sni-sysv4
1172+ exit ;;
1173+ RM*:SINIX-*:*:*)
1174+ echo mips-sni-sysv4
1175+ exit ;;
1176+ *:SINIX-*:*:*)
1177+ if uname -p 2>/dev/null >/dev/null ; then
1178+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
1179+ echo ${UNAME_MACHINE}-sni-sysv4
1180+ else
1181+ echo ns32k-sni-sysv
1182+ fi
1183+ exit ;;
1184+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1185+ # says <Richard.M.Bartel@ccMail.Census.GOV>
1186+ echo i586-unisys-sysv4
1187+ exit ;;
1188+ *:UNIX_System_V:4*:FTX*)
1189+ # From Gerald Hewes <hewes@openmarket.com>.
1190+ # How about differentiating between stratus architectures? -djm
1191+ echo hppa1.1-stratus-sysv4
1192+ exit ;;
1193+ *:*:*:FTX*)
1194+ # From seanf@swdc.stratus.com.
1195+ echo i860-stratus-sysv4
1196+ exit ;;
1197+ i*86:VOS:*:*)
1198+ # From Paul.Green@stratus.com.
1199+ echo ${UNAME_MACHINE}-stratus-vos
1200+ exit ;;
1201+ *:VOS:*:*)
1202+ # From Paul.Green@stratus.com.
1203+ echo hppa1.1-stratus-vos
1204+ exit ;;
1205+ mc68*:A/UX:*:*)
1206+ echo m68k-apple-aux${UNAME_RELEASE}
1207+ exit ;;
1208+ news*:NEWS-OS:6*:*)
1209+ echo mips-sony-newsos6
1210+ exit ;;
1211+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1212+ if [ -d /usr/nec ]; then
1213+ echo mips-nec-sysv${UNAME_RELEASE}
1214+ else
1215+ echo mips-unknown-sysv${UNAME_RELEASE}
1216+ fi
1217+ exit ;;
1218+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1219+ echo powerpc-be-beos
1220+ exit ;;
1221+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1222+ echo powerpc-apple-beos
1223+ exit ;;
1224+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1225+ echo i586-pc-beos
1226+ exit ;;
1227+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1228+ echo i586-pc-haiku
1229+ exit ;;
1230+ x86_64:Haiku:*:*)
1231+ echo x86_64-unknown-haiku
1232+ exit ;;
1233+ SX-4:SUPER-UX:*:*)
1234+ echo sx4-nec-superux${UNAME_RELEASE}
1235+ exit ;;
1236+ SX-5:SUPER-UX:*:*)
1237+ echo sx5-nec-superux${UNAME_RELEASE}
1238+ exit ;;
1239+ SX-6:SUPER-UX:*:*)
1240+ echo sx6-nec-superux${UNAME_RELEASE}
1241+ exit ;;
1242+ SX-7:SUPER-UX:*:*)
1243+ echo sx7-nec-superux${UNAME_RELEASE}
1244+ exit ;;
1245+ SX-8:SUPER-UX:*:*)
1246+ echo sx8-nec-superux${UNAME_RELEASE}
1247+ exit ;;
1248+ SX-8R:SUPER-UX:*:*)
1249+ echo sx8r-nec-superux${UNAME_RELEASE}
1250+ exit ;;
1251+ Power*:Rhapsody:*:*)
1252+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
1253+ exit ;;
1254+ *:Rhapsody:*:*)
1255+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1256+ exit ;;
1257+ *:Darwin:*:*)
1258+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1259+ eval $set_cc_for_build
1260+ if test "$UNAME_PROCESSOR" = unknown ; then
1261+ UNAME_PROCESSOR=powerpc
1262+ fi
1263+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1264+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1265+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1266+ grep IS_64BIT_ARCH >/dev/null
1267+ then
1268+ case $UNAME_PROCESSOR in
1269+ i386) UNAME_PROCESSOR=x86_64 ;;
1270+ powerpc) UNAME_PROCESSOR=powerpc64 ;;
1271+ esac
1272+ fi
1273+ fi
1274+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1275+ exit ;;
1276+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
1277+ UNAME_PROCESSOR=`uname -p`
1278+ if test "$UNAME_PROCESSOR" = "x86"; then
1279+ UNAME_PROCESSOR=i386
1280+ UNAME_MACHINE=pc
1281+ fi
1282+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1283+ exit ;;
1284+ *:QNX:*:4*)
1285+ echo i386-pc-qnx
1286+ exit ;;
1287+ NEO-?:NONSTOP_KERNEL:*:*)
1288+ echo neo-tandem-nsk${UNAME_RELEASE}
1289+ exit ;;
1290+ NSE-*:NONSTOP_KERNEL:*:*)
1291+ echo nse-tandem-nsk${UNAME_RELEASE}
1292+ exit ;;
1293+ NSR-?:NONSTOP_KERNEL:*:*)
1294+ echo nsr-tandem-nsk${UNAME_RELEASE}
1295+ exit ;;
1296+ *:NonStop-UX:*:*)
1297+ echo mips-compaq-nonstopux
1298+ exit ;;
1299+ BS2000:POSIX*:*:*)
1300+ echo bs2000-siemens-sysv
1301+ exit ;;
1302+ DS/*:UNIX_System_V:*:*)
1303+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1304+ exit ;;
1305+ *:Plan9:*:*)
1306+ # "uname -m" is not consistent, so use $cputype instead. 386
1307+ # is converted to i386 for consistency with other x86
1308+ # operating systems.
1309+ if test "$cputype" = "386"; then
1310+ UNAME_MACHINE=i386
1311+ else
1312+ UNAME_MACHINE="$cputype"
1313+ fi
1314+ echo ${UNAME_MACHINE}-unknown-plan9
1315+ exit ;;
1316+ *:TOPS-10:*:*)
1317+ echo pdp10-unknown-tops10
1318+ exit ;;
1319+ *:TENEX:*:*)
1320+ echo pdp10-unknown-tenex
1321+ exit ;;
1322+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1323+ echo pdp10-dec-tops20
1324+ exit ;;
1325+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1326+ echo pdp10-xkl-tops20
1327+ exit ;;
1328+ *:TOPS-20:*:*)
1329+ echo pdp10-unknown-tops20
1330+ exit ;;
1331+ *:ITS:*:*)
1332+ echo pdp10-unknown-its
1333+ exit ;;
1334+ SEI:*:*:SEIUX)
1335+ echo mips-sei-seiux${UNAME_RELEASE}
1336+ exit ;;
1337+ *:DragonFly:*:*)
1338+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1339+ exit ;;
1340+ *:*VMS:*:*)
1341+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
1342+ case "${UNAME_MACHINE}" in
1343+ A*) echo alpha-dec-vms ; exit ;;
1344+ I*) echo ia64-dec-vms ; exit ;;
1345+ V*) echo vax-dec-vms ; exit ;;
1346+ esac ;;
1347+ *:XENIX:*:SysV)
1348+ echo i386-pc-xenix
1349+ exit ;;
1350+ i*86:skyos:*:*)
1351+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1352+ exit ;;
1353+ i*86:rdos:*:*)
1354+ echo ${UNAME_MACHINE}-pc-rdos
1355+ exit ;;
1356+ i*86:AROS:*:*)
1357+ echo ${UNAME_MACHINE}-pc-aros
1358+ exit ;;
1359+ x86_64:VMkernel:*:*)
1360+ echo ${UNAME_MACHINE}-unknown-esx
1361+ exit ;;
1362+esac
1363+
1364+eval $set_cc_for_build
1365+cat >$dummy.c <<EOF
1366+#ifdef _SEQUENT_
1367+# include <sys/types.h>
1368+# include <sys/utsname.h>
1369+#endif
1370+main ()
1371+{
1372+#if defined (sony)
1373+#if defined (MIPSEB)
1374+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1375+ I don't know.... */
1376+ printf ("mips-sony-bsd\n"); exit (0);
1377+#else
1378+#include <sys/param.h>
1379+ printf ("m68k-sony-newsos%s\n",
1380+#ifdef NEWSOS4
1381+ "4"
1382+#else
1383+ ""
1384+#endif
1385+ ); exit (0);
1386+#endif
1387+#endif
1388+
1389+#if defined (__arm) && defined (__acorn) && defined (__unix)
1390+ printf ("arm-acorn-riscix\n"); exit (0);
1391+#endif
1392+
1393+#if defined (hp300) && !defined (hpux)
1394+ printf ("m68k-hp-bsd\n"); exit (0);
1395+#endif
1396+
1397+#if defined (NeXT)
1398+#if !defined (__ARCHITECTURE__)
1399+#define __ARCHITECTURE__ "m68k"
1400+#endif
1401+ int version;
1402+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1403+ if (version < 4)
1404+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1405+ else
1406+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1407+ exit (0);
1408+#endif
1409+
1410+#if defined (MULTIMAX) || defined (n16)
1411+#if defined (UMAXV)
1412+ printf ("ns32k-encore-sysv\n"); exit (0);
1413+#else
1414+#if defined (CMU)
1415+ printf ("ns32k-encore-mach\n"); exit (0);
1416+#else
1417+ printf ("ns32k-encore-bsd\n"); exit (0);
1418+#endif
1419+#endif
1420+#endif
1421+
1422+#if defined (__386BSD__)
1423+ printf ("i386-pc-bsd\n"); exit (0);
1424+#endif
1425+
1426+#if defined (sequent)
1427+#if defined (i386)
1428+ printf ("i386-sequent-dynix\n"); exit (0);
1429+#endif
1430+#if defined (ns32000)
1431+ printf ("ns32k-sequent-dynix\n"); exit (0);
1432+#endif
1433+#endif
1434+
1435+#if defined (_SEQUENT_)
1436+ struct utsname un;
1437+
1438+ uname(&un);
1439+
1440+ if (strncmp(un.version, "V2", 2) == 0) {
1441+ printf ("i386-sequent-ptx2\n"); exit (0);
1442+ }
1443+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1444+ printf ("i386-sequent-ptx1\n"); exit (0);
1445+ }
1446+ printf ("i386-sequent-ptx\n"); exit (0);
1447+
1448+#endif
1449+
1450+#if defined (vax)
1451+# if !defined (ultrix)
1452+# include <sys/param.h>
1453+# if defined (BSD)
1454+# if BSD == 43
1455+ printf ("vax-dec-bsd4.3\n"); exit (0);
1456+# else
1457+# if BSD == 199006
1458+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
1459+# else
1460+ printf ("vax-dec-bsd\n"); exit (0);
1461+# endif
1462+# endif
1463+# else
1464+ printf ("vax-dec-bsd\n"); exit (0);
1465+# endif
1466+# else
1467+ printf ("vax-dec-ultrix\n"); exit (0);
1468+# endif
1469+#endif
1470+
1471+#if defined (alliant) && defined (i860)
1472+ printf ("i860-alliant-bsd\n"); exit (0);
1473+#endif
1474+
1475+ exit (1);
1476+}
1477+EOF
1478+
1479+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1480+ { echo "$SYSTEM_NAME"; exit; }
1481+
1482+# Apollos put the system type in the environment.
1483+
1484+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1485+
1486+# Convex versions that predate uname can use getsysinfo(1)
1487+
1488+if [ -x /usr/convex/getsysinfo ]
1489+then
1490+ case `getsysinfo -f cpu_type` in
1491+ c1*)
1492+ echo c1-convex-bsd
1493+ exit ;;
1494+ c2*)
1495+ if getsysinfo -f scalar_acc
1496+ then echo c32-convex-bsd
1497+ else echo c2-convex-bsd
1498+ fi
1499+ exit ;;
1500+ c34*)
1501+ echo c34-convex-bsd
1502+ exit ;;
1503+ c38*)
1504+ echo c38-convex-bsd
1505+ exit ;;
1506+ c4*)
1507+ echo c4-convex-bsd
1508+ exit ;;
1509+ esac
1510+fi
1511+
1512+cat >&2 <<EOF
1513+$0: unable to guess system type
1514+
1515+This script, last modified $timestamp, has failed to recognize
1516+the operating system you are using. It is advised that you
1517+download the most up to date version of the config scripts from
1518+
1519+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1520+and
1521+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1522+
1523+If the version you run ($0) is already up to date, please
1524+send the following data and any information you think might be
1525+pertinent to <config-patches@gnu.org> in order to provide the needed
1526+information to handle your system.
1527+
1528+config.guess timestamp = $timestamp
1529+
1530+uname -m = `(uname -m) 2>/dev/null || echo unknown`
1531+uname -r = `(uname -r) 2>/dev/null || echo unknown`
1532+uname -s = `(uname -s) 2>/dev/null || echo unknown`
1533+uname -v = `(uname -v) 2>/dev/null || echo unknown`
1534+
1535+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1536+/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1537+
1538+hostinfo = `(hostinfo) 2>/dev/null`
1539+/bin/universe = `(/bin/universe) 2>/dev/null`
1540+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1541+/bin/arch = `(/bin/arch) 2>/dev/null`
1542+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1543+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1544+
1545+UNAME_MACHINE = ${UNAME_MACHINE}
1546+UNAME_RELEASE = ${UNAME_RELEASE}
1547+UNAME_SYSTEM = ${UNAME_SYSTEM}
1548+UNAME_VERSION = ${UNAME_VERSION}
1549+EOF
1550+
1551+exit 1
1552+
1553+# Local variables:
1554+# eval: (add-hook 'write-file-hooks 'time-stamp)
1555+# time-stamp-start: "timestamp='"
1556+# time-stamp-format: "%:y-%02m-%02d"
1557+# time-stamp-end: "'"
1558+# End:
diff -r 000000000000 -r 36b43b946834 build/makedepend/config.sub
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/build/makedepend/config.sub Sat Jul 04 06:08:07 2020 -0400
@@ -0,0 +1,1788 @@
1+#! /bin/sh
2+# Configuration validation subroutine script.
3+# Copyright 1992-2013 Free Software Foundation, Inc.
4+
5+timestamp='2013-04-24'
6+
7+# This file is free software; you can redistribute it and/or modify it
8+# under the terms of the GNU General Public License as published by
9+# the Free Software Foundation; either version 3 of the License, or
10+# (at your option) any later version.
11+#
12+# This program is distributed in the hope that it will be useful, but
13+# WITHOUT ANY WARRANTY; without even the implied warranty of
14+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15+# General Public License for more details.
16+#
17+# You should have received a copy of the GNU General Public License
18+# along with this program; if not, see <http://www.gnu.org/licenses/>.
19+#
20+# As a special exception to the GNU General Public License, if you
21+# distribute this file as part of a program that contains a
22+# configuration script generated by Autoconf, you may include it under
23+# the same distribution terms that you use for the rest of that
24+# program. This Exception is an additional permission under section 7
25+# of the GNU General Public License, version 3 ("GPLv3").
26+
27+
28+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
29+#
30+# Configuration subroutine to validate and canonicalize a configuration type.
31+# Supply the specified configuration type as an argument.
32+# If it is invalid, we print an error message on stderr and exit with code 1.
33+# Otherwise, we print the canonical config type on stdout and succeed.
34+
35+# You can get the latest version of this script from:
36+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
37+
38+# This file is supposed to be the same for all GNU packages
39+# and recognize all the CPU types, system types and aliases
40+# that are meaningful with *any* GNU software.
41+# Each package is responsible for reporting which valid configurations
42+# it does not support. The user should be able to distinguish
43+# a failure to support a valid configuration from a meaningless
44+# configuration.
45+
46+# The goal of this file is to map all the various variations of a given
47+# machine specification into a single specification in the form:
48+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
49+# or in some cases, the newer four-part form:
50+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
51+# It is wrong to echo any other type of specification.
52+
53+me=`echo "$0" | sed -e 's,.*/,,'`
54+
55+usage="\
56+Usage: $0 [OPTION] CPU-MFR-OPSYS
57+ $0 [OPTION] ALIAS
58+
59+Canonicalize a configuration name.
60+
61+Operation modes:
62+ -h, --help print this help, then exit
63+ -t, --time-stamp print date of last modification, then exit
64+ -v, --version print version number, then exit
65+
66+Report bugs and patches to <config-patches@gnu.org>."
67+
68+version="\
69+GNU config.sub ($timestamp)
70+
71+Copyright 1992-2013 Free Software Foundation, Inc.
72+
73+This is free software; see the source for copying conditions. There is NO
74+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
75+
76+help="
77+Try \`$me --help' for more information."
78+
79+# Parse command line
80+while test $# -gt 0 ; do
81+ case $1 in
82+ --time-stamp | --time* | -t )
83+ echo "$timestamp" ; exit ;;
84+ --version | -v )
85+ echo "$version" ; exit ;;
86+ --help | --h* | -h )
87+ echo "$usage"; exit ;;
88+ -- ) # Stop option processing
89+ shift; break ;;
90+ - ) # Use stdin as input.
91+ break ;;
92+ -* )
93+ echo "$me: invalid option $1$help"
94+ exit 1 ;;
95+
96+ *local*)
97+ # First pass through any local machine types.
98+ echo $1
99+ exit ;;
100+
101+ * )
102+ break ;;
103+ esac
104+done
105+
106+case $# in
107+ 0) echo "$me: missing argument$help" >&2
108+ exit 1;;
109+ 1) ;;
110+ *) echo "$me: too many arguments$help" >&2
111+ exit 1;;
112+esac
113+
114+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
115+# Here we must recognize all the valid KERNEL-OS combinations.
116+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
117+case $maybe_os in
118+ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
119+ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
120+ knetbsd*-gnu* | netbsd*-gnu* | \
121+ kopensolaris*-gnu* | \
122+ storm-chaos* | os2-emx* | rtmk-nova*)
123+ os=-$maybe_os
124+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
125+ ;;
126+ android-linux)
127+ os=-linux-android
128+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
129+ ;;
130+ *)
131+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
132+ if [ $basic_machine != $1 ]
133+ then os=`echo $1 | sed 's/.*-/-/'`
134+ else os=; fi
135+ ;;
136+esac
137+
138+### Let's recognize common machines as not being operating systems so
139+### that things like config.sub decstation-3100 work. We also
140+### recognize some manufacturers as not being operating systems, so we
141+### can provide default operating systems below.
142+case $os in
143+ -sun*os*)
144+ # Prevent following clause from handling this invalid input.
145+ ;;
146+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
147+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
148+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
149+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
150+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
151+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
152+ -apple | -axis | -knuth | -cray | -microblaze*)
153+ os=
154+ basic_machine=$1
155+ ;;
156+ -bluegene*)
157+ os=-cnk
158+ ;;
159+ -sim | -cisco | -oki | -wec | -winbond)
160+ os=
161+ basic_machine=$1
162+ ;;
163+ -scout)
164+ ;;
165+ -wrs)
166+ os=-vxworks
167+ basic_machine=$1
168+ ;;
169+ -chorusos*)
170+ os=-chorusos
171+ basic_machine=$1
172+ ;;
173+ -chorusrdb)
174+ os=-chorusrdb
175+ basic_machine=$1
176+ ;;
177+ -hiux*)
178+ os=-hiuxwe2
179+ ;;
180+ -sco6)
181+ os=-sco5v6
182+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
183+ ;;
184+ -sco5)
185+ os=-sco3.2v5
186+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187+ ;;
188+ -sco4)
189+ os=-sco3.2v4
190+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
191+ ;;
192+ -sco3.2.[4-9]*)
193+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
194+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
195+ ;;
196+ -sco3.2v[4-9]*)
197+ # Don't forget version if it is 3.2v4 or newer.
198+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
199+ ;;
200+ -sco5v6*)
201+ # Don't forget version if it is 3.2v4 or newer.
202+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
203+ ;;
204+ -sco*)
205+ os=-sco3.2v2
206+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
207+ ;;
208+ -udk*)
209+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
210+ ;;
211+ -isc)
212+ os=-isc2.2
213+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
214+ ;;
215+ -clix*)
216+ basic_machine=clipper-intergraph
217+ ;;
218+ -isc*)
219+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
220+ ;;
221+ -lynx*178)
222+ os=-lynxos178
223+ ;;
224+ -lynx*5)
225+ os=-lynxos5
226+ ;;
227+ -lynx*)
228+ os=-lynxos
229+ ;;
230+ -ptx*)
231+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
232+ ;;
233+ -windowsnt*)
234+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
235+ ;;
236+ -psos*)
237+ os=-psos
238+ ;;
239+ -mint | -mint[0-9]*)
240+ basic_machine=m68k-atari
241+ os=-mint
242+ ;;
243+esac
244+
245+# Decode aliases for certain CPU-COMPANY combinations.
246+case $basic_machine in
247+ # Recognize the basic CPU types without company name.
248+ # Some are omitted here because they have special meanings below.
249+ 1750a | 580 \
250+ | a29k \
251+ | aarch64 | aarch64_be \
252+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
253+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
254+ | am33_2.0 \
255+ | arc | arceb \
256+ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
257+ | avr | avr32 \
258+ | be32 | be64 \
259+ | bfin \
260+ | c4x | clipper \
261+ | d10v | d30v | dlx | dsp16xx \
262+ | epiphany \
263+ | fido | fr30 | frv \
264+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265+ | hexagon \
266+ | i370 | i860 | i960 | ia64 \
267+ | ip2k | iq2000 \
268+ | le32 | le64 \
269+ | lm32 \
270+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
271+ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
272+ | mips | mipsbe | mipseb | mipsel | mipsle \
273+ | mips16 \
274+ | mips64 | mips64el \
275+ | mips64octeon | mips64octeonel \
276+ | mips64orion | mips64orionel \
277+ | mips64r5900 | mips64r5900el \
278+ | mips64vr | mips64vrel \
279+ | mips64vr4100 | mips64vr4100el \
280+ | mips64vr4300 | mips64vr4300el \
281+ | mips64vr5000 | mips64vr5000el \
282+ | mips64vr5900 | mips64vr5900el \
283+ | mipsisa32 | mipsisa32el \
284+ | mipsisa32r2 | mipsisa32r2el \
285+ | mipsisa64 | mipsisa64el \
286+ | mipsisa64r2 | mipsisa64r2el \
287+ | mipsisa64sb1 | mipsisa64sb1el \
288+ | mipsisa64sr71k | mipsisa64sr71kel \
289+ | mipsr5900 | mipsr5900el \
290+ | mipstx39 | mipstx39el \
291+ | mn10200 | mn10300 \
292+ | moxie \
293+ | mt \
294+ | msp430 \
295+ | nds32 | nds32le | nds32be \
296+ | nios | nios2 | nios2eb | nios2el \
297+ | ns16k | ns32k \
298+ | open8 \
299+ | or1k | or32 \
300+ | pdp10 | pdp11 | pj | pjl \
301+ | powerpc | powerpc64 | powerpc64le | powerpcle \
302+ | pyramid \
303+ | rl78 | rx \
304+ | score \
305+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
306+ | sh64 | sh64le \
307+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
308+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
309+ | spu \
310+ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
311+ | ubicom32 \
312+ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
313+ | we32k \
314+ | x86 | xc16x | xstormy16 | xtensa \
315+ | z8k | z80)
316+ basic_machine=$basic_machine-unknown
317+ ;;
318+ c54x)
319+ basic_machine=tic54x-unknown
320+ ;;
321+ c55x)
322+ basic_machine=tic55x-unknown
323+ ;;
324+ c6x)
325+ basic_machine=tic6x-unknown
326+ ;;
327+ m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
328+ basic_machine=$basic_machine-unknown
329+ os=-none
330+ ;;
331+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
332+ ;;
333+ ms1)
334+ basic_machine=mt-unknown
335+ ;;
336+
337+ strongarm | thumb | xscale)
338+ basic_machine=arm-unknown
339+ ;;
340+ xgate)
341+ basic_machine=$basic_machine-unknown
342+ os=-none
343+ ;;
344+ xscaleeb)
345+ basic_machine=armeb-unknown
346+ ;;
347+
348+ xscaleel)
349+ basic_machine=armel-unknown
350+ ;;
351+
352+ # We use `pc' rather than `unknown'
353+ # because (1) that's what they normally are, and
354+ # (2) the word "unknown" tends to confuse beginning users.
355+ i*86 | x86_64)
356+ basic_machine=$basic_machine-pc
357+ ;;
358+ # Object if more than one company name word.
359+ *-*-*)
360+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
361+ exit 1
362+ ;;
363+ # Recognize the basic CPU types with company name.
364+ 580-* \
365+ | a29k-* \
366+ | aarch64-* | aarch64_be-* \
367+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
368+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
369+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
370+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
371+ | avr-* | avr32-* \
372+ | be32-* | be64-* \
373+ | bfin-* | bs2000-* \
374+ | c[123]* | c30-* | [cjt]90-* | c4x-* \
375+ | clipper-* | craynv-* | cydra-* \
376+ | d10v-* | d30v-* | dlx-* \
377+ | elxsi-* \
378+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
379+ | h8300-* | h8500-* \
380+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
381+ | hexagon-* \
382+ | i*86-* | i860-* | i960-* | ia64-* \
383+ | ip2k-* | iq2000-* \
384+ | le32-* | le64-* \
385+ | lm32-* \
386+ | m32c-* | m32r-* | m32rle-* \
387+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
388+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
389+ | microblaze-* | microblazeel-* \
390+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
391+ | mips16-* \
392+ | mips64-* | mips64el-* \
393+ | mips64octeon-* | mips64octeonel-* \
394+ | mips64orion-* | mips64orionel-* \
395+ | mips64r5900-* | mips64r5900el-* \
396+ | mips64vr-* | mips64vrel-* \
397+ | mips64vr4100-* | mips64vr4100el-* \
398+ | mips64vr4300-* | mips64vr4300el-* \
399+ | mips64vr5000-* | mips64vr5000el-* \
400+ | mips64vr5900-* | mips64vr5900el-* \
401+ | mipsisa32-* | mipsisa32el-* \
402+ | mipsisa32r2-* | mipsisa32r2el-* \
403+ | mipsisa64-* | mipsisa64el-* \
404+ | mipsisa64r2-* | mipsisa64r2el-* \
405+ | mipsisa64sb1-* | mipsisa64sb1el-* \
406+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
407+ | mipsr5900-* | mipsr5900el-* \
408+ | mipstx39-* | mipstx39el-* \
409+ | mmix-* \
410+ | mt-* \
411+ | msp430-* \
412+ | nds32-* | nds32le-* | nds32be-* \
413+ | nios-* | nios2-* | nios2eb-* | nios2el-* \
414+ | none-* | np1-* | ns16k-* | ns32k-* \
415+ | open8-* \
416+ | orion-* \
417+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
418+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
419+ | pyramid-* \
420+ | rl78-* | romp-* | rs6000-* | rx-* \
421+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
422+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
423+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
424+ | sparclite-* \
425+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
426+ | tahoe-* \
427+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
428+ | tile*-* \
429+ | tron-* \
430+ | ubicom32-* \
431+ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
432+ | vax-* \
433+ | we32k-* \
434+ | x86-* | x86_64-* | xc16x-* | xps100-* \
435+ | xstormy16-* | xtensa*-* \
436+ | ymp-* \
437+ | z8k-* | z80-*)
438+ ;;
439+ # Recognize the basic CPU types without company name, with glob match.
440+ xtensa*)
441+ basic_machine=$basic_machine-unknown
442+ ;;
443+ # Recognize the various machine names and aliases which stand
444+ # for a CPU type and a company and sometimes even an OS.
445+ 386bsd)
446+ basic_machine=i386-unknown
447+ os=-bsd
448+ ;;
449+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
450+ basic_machine=m68000-att
451+ ;;
452+ 3b*)
453+ basic_machine=we32k-att
454+ ;;
455+ a29khif)
456+ basic_machine=a29k-amd
457+ os=-udi
458+ ;;
459+ abacus)
460+ basic_machine=abacus-unknown
461+ ;;
462+ adobe68k)
463+ basic_machine=m68010-adobe
464+ os=-scout
465+ ;;
466+ alliant | fx80)
467+ basic_machine=fx80-alliant
468+ ;;
469+ altos | altos3068)
470+ basic_machine=m68k-altos
471+ ;;
472+ am29k)
473+ basic_machine=a29k-none
474+ os=-bsd
475+ ;;
476+ amd64)
477+ basic_machine=x86_64-pc
478+ ;;
479+ amd64-*)
480+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
481+ ;;
482+ amdahl)
483+ basic_machine=580-amdahl
484+ os=-sysv
485+ ;;
486+ amiga | amiga-*)
487+ basic_machine=m68k-unknown
488+ ;;
489+ amigaos | amigados)
490+ basic_machine=m68k-unknown
491+ os=-amigaos
492+ ;;
493+ amigaunix | amix)
494+ basic_machine=m68k-unknown
495+ os=-sysv4
496+ ;;
497+ apollo68)
498+ basic_machine=m68k-apollo
499+ os=-sysv
500+ ;;
501+ apollo68bsd)
502+ basic_machine=m68k-apollo
503+ os=-bsd
504+ ;;
505+ aros)
506+ basic_machine=i386-pc
507+ os=-aros
508+ ;;
509+ aux)
510+ basic_machine=m68k-apple
511+ os=-aux
512+ ;;
513+ balance)
514+ basic_machine=ns32k-sequent
515+ os=-dynix
516+ ;;
517+ blackfin)
518+ basic_machine=bfin-unknown
519+ os=-linux
520+ ;;
521+ blackfin-*)
522+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
523+ os=-linux
524+ ;;
525+ bluegene*)
526+ basic_machine=powerpc-ibm
527+ os=-cnk
528+ ;;
529+ c54x-*)
530+ basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
531+ ;;
532+ c55x-*)
533+ basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
534+ ;;
535+ c6x-*)
536+ basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
537+ ;;
538+ c90)
539+ basic_machine=c90-cray
540+ os=-unicos
541+ ;;
542+ cegcc)
543+ basic_machine=arm-unknown
544+ os=-cegcc
545+ ;;
546+ convex-c1)
547+ basic_machine=c1-convex
548+ os=-bsd
549+ ;;
550+ convex-c2)
551+ basic_machine=c2-convex
552+ os=-bsd
553+ ;;
554+ convex-c32)
555+ basic_machine=c32-convex
556+ os=-bsd
557+ ;;
558+ convex-c34)
559+ basic_machine=c34-convex
560+ os=-bsd
561+ ;;
562+ convex-c38)
563+ basic_machine=c38-convex
564+ os=-bsd
565+ ;;
566+ cray | j90)
567+ basic_machine=j90-cray
568+ os=-unicos
569+ ;;
570+ craynv)
571+ basic_machine=craynv-cray
572+ os=-unicosmp
573+ ;;
574+ cr16 | cr16-*)
575+ basic_machine=cr16-unknown
576+ os=-elf
577+ ;;
578+ crds | unos)
579+ basic_machine=m68k-crds
580+ ;;
581+ crisv32 | crisv32-* | etraxfs*)
582+ basic_machine=crisv32-axis
583+ ;;
584+ cris | cris-* | etrax*)
585+ basic_machine=cris-axis
586+ ;;
587+ crx)
588+ basic_machine=crx-unknown
589+ os=-elf
590+ ;;
591+ da30 | da30-*)
592+ basic_machine=m68k-da30
593+ ;;
594+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
595+ basic_machine=mips-dec
596+ ;;
597+ decsystem10* | dec10*)
598+ basic_machine=pdp10-dec
599+ os=-tops10
600+ ;;
601+ decsystem20* | dec20*)
602+ basic_machine=pdp10-dec
603+ os=-tops20
604+ ;;
605+ delta | 3300 | motorola-3300 | motorola-delta \
606+ | 3300-motorola | delta-motorola)
607+ basic_machine=m68k-motorola
608+ ;;
609+ delta88)
610+ basic_machine=m88k-motorola
611+ os=-sysv3
612+ ;;
613+ dicos)
614+ basic_machine=i686-pc
615+ os=-dicos
616+ ;;
617+ djgpp)
618+ basic_machine=i586-pc
619+ os=-msdosdjgpp
620+ ;;
621+ dpx20 | dpx20-*)
622+ basic_machine=rs6000-bull
623+ os=-bosx
624+ ;;
625+ dpx2* | dpx2*-bull)
626+ basic_machine=m68k-bull
627+ os=-sysv3
628+ ;;
629+ ebmon29k)
630+ basic_machine=a29k-amd
631+ os=-ebmon
632+ ;;
633+ elxsi)
634+ basic_machine=elxsi-elxsi
635+ os=-bsd
636+ ;;
637+ encore | umax | mmax)
638+ basic_machine=ns32k-encore
639+ ;;
640+ es1800 | OSE68k | ose68k | ose | OSE)
641+ basic_machine=m68k-ericsson
642+ os=-ose
643+ ;;
644+ fx2800)
645+ basic_machine=i860-alliant
646+ ;;
647+ genix)
648+ basic_machine=ns32k-ns
649+ ;;
650+ gmicro)
651+ basic_machine=tron-gmicro
652+ os=-sysv
653+ ;;
654+ go32)
655+ basic_machine=i386-pc
656+ os=-go32
657+ ;;
658+ h3050r* | hiux*)
659+ basic_machine=hppa1.1-hitachi
660+ os=-hiuxwe2
661+ ;;
662+ h8300hms)
663+ basic_machine=h8300-hitachi
664+ os=-hms
665+ ;;
666+ h8300xray)
667+ basic_machine=h8300-hitachi
668+ os=-xray
669+ ;;
670+ h8500hms)
671+ basic_machine=h8500-hitachi
672+ os=-hms
673+ ;;
674+ harris)
675+ basic_machine=m88k-harris
676+ os=-sysv3
677+ ;;
678+ hp300-*)
679+ basic_machine=m68k-hp
680+ ;;
681+ hp300bsd)
682+ basic_machine=m68k-hp
683+ os=-bsd
684+ ;;
685+ hp300hpux)
686+ basic_machine=m68k-hp
687+ os=-hpux
688+ ;;
689+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
690+ basic_machine=hppa1.0-hp
691+ ;;
692+ hp9k2[0-9][0-9] | hp9k31[0-9])
693+ basic_machine=m68000-hp
694+ ;;
695+ hp9k3[2-9][0-9])
696+ basic_machine=m68k-hp
697+ ;;
698+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
699+ basic_machine=hppa1.0-hp
700+ ;;
701+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
702+ basic_machine=hppa1.1-hp
703+ ;;
704+ hp9k78[0-9] | hp78[0-9])
705+ # FIXME: really hppa2.0-hp
706+ basic_machine=hppa1.1-hp
707+ ;;
708+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
709+ # FIXME: really hppa2.0-hp
710+ basic_machine=hppa1.1-hp
711+ ;;
712+ hp9k8[0-9][13679] | hp8[0-9][13679])
713+ basic_machine=hppa1.1-hp
714+ ;;
715+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
716+ basic_machine=hppa1.0-hp
717+ ;;
718+ hppa-next)
719+ os=-nextstep3
720+ ;;
721+ hppaosf)
722+ basic_machine=hppa1.1-hp
723+ os=-osf
724+ ;;
725+ hppro)
726+ basic_machine=hppa1.1-hp
727+ os=-proelf
728+ ;;
729+ i370-ibm* | ibm*)
730+ basic_machine=i370-ibm
731+ ;;
732+ i*86v32)
733+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
734+ os=-sysv32
735+ ;;
736+ i*86v4*)
737+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
738+ os=-sysv4
739+ ;;
740+ i*86v)
741+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
742+ os=-sysv
743+ ;;
744+ i*86sol2)
745+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
746+ os=-solaris2
747+ ;;
748+ i386mach)
749+ basic_machine=i386-mach
750+ os=-mach
751+ ;;
752+ i386-vsta | vsta)
753+ basic_machine=i386-unknown
754+ os=-vsta
755+ ;;
756+ iris | iris4d)
757+ basic_machine=mips-sgi
758+ case $os in
759+ -irix*)
760+ ;;
761+ *)
762+ os=-irix4
763+ ;;
764+ esac
765+ ;;
766+ isi68 | isi)
767+ basic_machine=m68k-isi
768+ os=-sysv
769+ ;;
770+ m68knommu)
771+ basic_machine=m68k-unknown
772+ os=-linux
773+ ;;
774+ m68knommu-*)
775+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
776+ os=-linux
777+ ;;
778+ m88k-omron*)
779+ basic_machine=m88k-omron
780+ ;;
781+ magnum | m3230)
782+ basic_machine=mips-mips
783+ os=-sysv
784+ ;;
785+ merlin)
786+ basic_machine=ns32k-utek
787+ os=-sysv
788+ ;;
789+ microblaze*)
790+ basic_machine=microblaze-xilinx
791+ ;;
792+ mingw64)
793+ basic_machine=x86_64-pc
794+ os=-mingw64
795+ ;;
796+ mingw32)
797+ basic_machine=i386-pc
798+ os=-mingw32
799+ ;;
800+ mingw32ce)
801+ basic_machine=arm-unknown
802+ os=-mingw32ce
803+ ;;
804+ miniframe)
805+ basic_machine=m68000-convergent
806+ ;;
807+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
808+ basic_machine=m68k-atari
809+ os=-mint
810+ ;;
811+ mips3*-*)
812+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
813+ ;;
814+ mips3*)
815+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
816+ ;;
817+ monitor)
818+ basic_machine=m68k-rom68k
819+ os=-coff
820+ ;;
821+ morphos)
822+ basic_machine=powerpc-unknown
823+ os=-morphos
824+ ;;
825+ msdos)
826+ basic_machine=i386-pc
827+ os=-msdos
828+ ;;
829+ ms1-*)
830+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
831+ ;;
832+ msys)
833+ basic_machine=i386-pc
834+ os=-msys
835+ ;;
836+ mvs)
837+ basic_machine=i370-ibm
838+ os=-mvs
839+ ;;
840+ nacl)
841+ basic_machine=le32-unknown
842+ os=-nacl
843+ ;;
844+ ncr3000)
845+ basic_machine=i486-ncr
846+ os=-sysv4
847+ ;;
848+ netbsd386)
849+ basic_machine=i386-unknown
850+ os=-netbsd
851+ ;;
852+ netwinder)
853+ basic_machine=armv4l-rebel
854+ os=-linux
855+ ;;
856+ news | news700 | news800 | news900)
857+ basic_machine=m68k-sony
858+ os=-newsos
859+ ;;
860+ news1000)
861+ basic_machine=m68030-sony
862+ os=-newsos
863+ ;;
864+ news-3600 | risc-news)
865+ basic_machine=mips-sony
866+ os=-newsos
867+ ;;
868+ necv70)
869+ basic_machine=v70-nec
870+ os=-sysv
871+ ;;
872+ next | m*-next )
873+ basic_machine=m68k-next
874+ case $os in
875+ -nextstep* )
876+ ;;
877+ -ns2*)
878+ os=-nextstep2
879+ ;;
880+ *)
881+ os=-nextstep3
882+ ;;
883+ esac
884+ ;;
885+ nh3000)
886+ basic_machine=m68k-harris
887+ os=-cxux
888+ ;;
889+ nh[45]000)
890+ basic_machine=m88k-harris
891+ os=-cxux
892+ ;;
893+ nindy960)
894+ basic_machine=i960-intel
895+ os=-nindy
896+ ;;
897+ mon960)
898+ basic_machine=i960-intel
899+ os=-mon960
900+ ;;
901+ nonstopux)
902+ basic_machine=mips-compaq
903+ os=-nonstopux
904+ ;;
905+ np1)
906+ basic_machine=np1-gould
907+ ;;
908+ neo-tandem)
909+ basic_machine=neo-tandem
910+ ;;
911+ nse-tandem)
912+ basic_machine=nse-tandem
913+ ;;
914+ nsr-tandem)
915+ basic_machine=nsr-tandem
916+ ;;
917+ op50n-* | op60c-*)
918+ basic_machine=hppa1.1-oki
919+ os=-proelf
920+ ;;
921+ openrisc | openrisc-*)
922+ basic_machine=or32-unknown
923+ ;;
924+ os400)
925+ basic_machine=powerpc-ibm
926+ os=-os400
927+ ;;
928+ OSE68000 | ose68000)
929+ basic_machine=m68000-ericsson
930+ os=-ose
931+ ;;
932+ os68k)
933+ basic_machine=m68k-none
934+ os=-os68k
935+ ;;
936+ pa-hitachi)
937+ basic_machine=hppa1.1-hitachi
938+ os=-hiuxwe2
939+ ;;
940+ paragon)
941+ basic_machine=i860-intel
942+ os=-osf
943+ ;;
944+ parisc)
945+ basic_machine=hppa-unknown
946+ os=-linux
947+ ;;
948+ parisc-*)
949+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
950+ os=-linux
951+ ;;
952+ pbd)
953+ basic_machine=sparc-tti
954+ ;;
955+ pbb)
956+ basic_machine=m68k-tti
957+ ;;
958+ pc532 | pc532-*)
959+ basic_machine=ns32k-pc532
960+ ;;
961+ pc98)
962+ basic_machine=i386-pc
963+ ;;
964+ pc98-*)
965+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
966+ ;;
967+ pentium | p5 | k5 | k6 | nexgen | viac3)
968+ basic_machine=i586-pc
969+ ;;
970+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
971+ basic_machine=i686-pc
972+ ;;
973+ pentiumii | pentium2 | pentiumiii | pentium3)
974+ basic_machine=i686-pc
975+ ;;
976+ pentium4)
977+ basic_machine=i786-pc
978+ ;;
979+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
980+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
981+ ;;
982+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
983+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
984+ ;;
985+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
986+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
987+ ;;
988+ pentium4-*)
989+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
990+ ;;
991+ pn)
992+ basic_machine=pn-gould
993+ ;;
994+ power) basic_machine=power-ibm
995+ ;;
996+ ppc | ppcbe) basic_machine=powerpc-unknown
997+ ;;
998+ ppc-* | ppcbe-*)
999+ basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1000+ ;;
1001+ ppcle | powerpclittle | ppc-le | powerpc-little)
1002+ basic_machine=powerpcle-unknown
1003+ ;;
1004+ ppcle-* | powerpclittle-*)
1005+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1006+ ;;
1007+ ppc64) basic_machine=powerpc64-unknown
1008+ ;;
1009+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1010+ ;;
1011+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
1012+ basic_machine=powerpc64le-unknown
1013+ ;;
1014+ ppc64le-* | powerpc64little-*)
1015+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1016+ ;;
1017+ ps2)
1018+ basic_machine=i386-ibm
1019+ ;;
1020+ pw32)
1021+ basic_machine=i586-unknown
1022+ os=-pw32
1023+ ;;
1024+ rdos | rdos64)
1025+ basic_machine=x86_64-pc
1026+ os=-rdos
1027+ ;;
1028+ rdos32)
1029+ basic_machine=i386-pc
1030+ os=-rdos
1031+ ;;
1032+ rom68k)
1033+ basic_machine=m68k-rom68k
1034+ os=-coff
1035+ ;;
1036+ rm[46]00)
1037+ basic_machine=mips-siemens
1038+ ;;
1039+ rtpc | rtpc-*)
1040+ basic_machine=romp-ibm
1041+ ;;
1042+ s390 | s390-*)
1043+ basic_machine=s390-ibm
1044+ ;;
1045+ s390x | s390x-*)
1046+ basic_machine=s390x-ibm
1047+ ;;
1048+ sa29200)
1049+ basic_machine=a29k-amd
1050+ os=-udi
1051+ ;;
1052+ sb1)
1053+ basic_machine=mipsisa64sb1-unknown
1054+ ;;
1055+ sb1el)
1056+ basic_machine=mipsisa64sb1el-unknown
1057+ ;;
1058+ sde)
1059+ basic_machine=mipsisa32-sde
1060+ os=-elf
1061+ ;;
1062+ sei)
1063+ basic_machine=mips-sei
1064+ os=-seiux
1065+ ;;
1066+ sequent)
1067+ basic_machine=i386-sequent
1068+ ;;
1069+ sh)
1070+ basic_machine=sh-hitachi
1071+ os=-hms
1072+ ;;
1073+ sh5el)
1074+ basic_machine=sh5le-unknown
1075+ ;;
1076+ sh64)
1077+ basic_machine=sh64-unknown
1078+ ;;
1079+ sparclite-wrs | simso-wrs)
1080+ basic_machine=sparclite-wrs
1081+ os=-vxworks
1082+ ;;
1083+ sps7)
1084+ basic_machine=m68k-bull
1085+ os=-sysv2
1086+ ;;
1087+ spur)
1088+ basic_machine=spur-unknown
1089+ ;;
1090+ st2000)
1091+ basic_machine=m68k-tandem
1092+ ;;
1093+ stratus)
1094+ basic_machine=i860-stratus
1095+ os=-sysv4
1096+ ;;
1097+ strongarm-* | thumb-*)
1098+ basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1099+ ;;
1100+ sun2)
1101+ basic_machine=m68000-sun
1102+ ;;
1103+ sun2os3)
1104+ basic_machine=m68000-sun
1105+ os=-sunos3
1106+ ;;
1107+ sun2os4)
1108+ basic_machine=m68000-sun
1109+ os=-sunos4
1110+ ;;
1111+ sun3os3)
1112+ basic_machine=m68k-sun
1113+ os=-sunos3
1114+ ;;
1115+ sun3os4)
1116+ basic_machine=m68k-sun
1117+ os=-sunos4
1118+ ;;
1119+ sun4os3)
1120+ basic_machine=sparc-sun
1121+ os=-sunos3
1122+ ;;
1123+ sun4os4)
1124+ basic_machine=sparc-sun
1125+ os=-sunos4
1126+ ;;
1127+ sun4sol2)
1128+ basic_machine=sparc-sun
1129+ os=-solaris2
1130+ ;;
1131+ sun3 | sun3-*)
1132+ basic_machine=m68k-sun
1133+ ;;
1134+ sun4)
1135+ basic_machine=sparc-sun
1136+ ;;
1137+ sun386 | sun386i | roadrunner)
1138+ basic_machine=i386-sun
1139+ ;;
1140+ sv1)
1141+ basic_machine=sv1-cray
1142+ os=-unicos
1143+ ;;
1144+ symmetry)
1145+ basic_machine=i386-sequent
1146+ os=-dynix
1147+ ;;
1148+ t3e)
1149+ basic_machine=alphaev5-cray
1150+ os=-unicos
1151+ ;;
1152+ t90)
1153+ basic_machine=t90-cray
1154+ os=-unicos
1155+ ;;
1156+ tile*)
1157+ basic_machine=$basic_machine-unknown
1158+ os=-linux-gnu
1159+ ;;
1160+ tx39)
1161+ basic_machine=mipstx39-unknown
1162+ ;;
1163+ tx39el)
1164+ basic_machine=mipstx39el-unknown
1165+ ;;
1166+ toad1)
1167+ basic_machine=pdp10-xkl
1168+ os=-tops20
1169+ ;;
1170+ tower | tower-32)
1171+ basic_machine=m68k-ncr
1172+ ;;
1173+ tpf)
1174+ basic_machine=s390x-ibm
1175+ os=-tpf
1176+ ;;
1177+ udi29k)
1178+ basic_machine=a29k-amd
1179+ os=-udi
1180+ ;;
1181+ ultra3)
1182+ basic_machine=a29k-nyu
1183+ os=-sym1
1184+ ;;
1185+ v810 | necv810)
1186+ basic_machine=v810-nec
1187+ os=-none
1188+ ;;
1189+ vaxv)
1190+ basic_machine=vax-dec
1191+ os=-sysv
1192+ ;;
1193+ vms)
1194+ basic_machine=vax-dec
1195+ os=-vms
1196+ ;;
1197+ vpp*|vx|vx-*)
1198+ basic_machine=f301-fujitsu
1199+ ;;
1200+ vxworks960)
1201+ basic_machine=i960-wrs
1202+ os=-vxworks
1203+ ;;
1204+ vxworks68)
1205+ basic_machine=m68k-wrs
1206+ os=-vxworks
1207+ ;;
1208+ vxworks29k)
1209+ basic_machine=a29k-wrs
1210+ os=-vxworks
1211+ ;;
1212+ w65*)
1213+ basic_machine=w65-wdc
1214+ os=-none
1215+ ;;
1216+ w89k-*)
1217+ basic_machine=hppa1.1-winbond
1218+ os=-proelf
1219+ ;;
1220+ xbox)
1221+ basic_machine=i686-pc
1222+ os=-mingw32
1223+ ;;
1224+ xps | xps100)
1225+ basic_machine=xps100-honeywell
1226+ ;;
1227+ xscale-* | xscalee[bl]-*)
1228+ basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1229+ ;;
1230+ ymp)
1231+ basic_machine=ymp-cray
1232+ os=-unicos
1233+ ;;
1234+ z8k-*-coff)
1235+ basic_machine=z8k-unknown
1236+ os=-sim
1237+ ;;
1238+ z80-*-coff)
1239+ basic_machine=z80-unknown
1240+ os=-sim
1241+ ;;
1242+ none)
1243+ basic_machine=none-none
1244+ os=-none
1245+ ;;
1246+
1247+# Here we handle the default manufacturer of certain CPU types. It is in
1248+# some cases the only manufacturer, in others, it is the most popular.
1249+ w89k)
1250+ basic_machine=hppa1.1-winbond
1251+ ;;
1252+ op50n)
1253+ basic_machine=hppa1.1-oki
1254+ ;;
1255+ op60c)
1256+ basic_machine=hppa1.1-oki
1257+ ;;
1258+ romp)
1259+ basic_machine=romp-ibm
1260+ ;;
1261+ mmix)
1262+ basic_machine=mmix-knuth
1263+ ;;
1264+ rs6000)
1265+ basic_machine=rs6000-ibm
1266+ ;;
1267+ vax)
1268+ basic_machine=vax-dec
1269+ ;;
1270+ pdp10)
1271+ # there are many clones, so DEC is not a safe bet
1272+ basic_machine=pdp10-unknown
1273+ ;;
1274+ pdp11)
1275+ basic_machine=pdp11-dec
1276+ ;;
1277+ we32k)
1278+ basic_machine=we32k-att
1279+ ;;