Ticket #64712: config.log

File config.log, 33.0 KB (added by barracuda156, 2 years ago)
Line 
1This file contains any messages produced by compilers while
2running configure, to aid debugging if configure makes a mistake.
3
4It was created by GNU help2man configure 1.49.1, which was
5generated by GNU Autoconf 2.71.  Invocation command line was
6
7  $ ./configure --prefix=/opt/local --enable-nls
8
9## --------- ##
10## Platform. ##
11## --------- ##
12
13hostname = Sergey-Fedorovs-Mac-mini.local
14uname -m = x86_64
15uname -r = 10.8.0
16uname -s = Darwin
17uname -v = Darwin Kernel Version 10.8.0: Thu Sep  6 11:44:53 AST 2012; root:xnu-1504.15.3/BUILD/obj//RELEASE_X86_64
18
19/usr/bin/uname -p = i386
20/bin/uname -X     = unknown
21
22/bin/arch              = unknown
23/usr/bin/arch -k       = unknown
24/usr/convex/getsysinfo = unknown
25/usr/bin/hostinfo      = Mach kernel version:
26         Darwin Kernel Version 10.8.0: Thu Sep  6 11:44:53 AST 2012; root:xnu-1504.15.3/BUILD/obj//RELEASE_X86_64
27Kernel configured for up to 8 processors.
284 processors are physically available.
298 processors are logically available.
30Processor type: i486 (Intel 80486)
31Processors active: 0 1 2 3 4 5 6 7
32Primary memory available: 16.00 gigabytes
33Default processor set: 57 tasks, 293 threads, 8 processors
34Load average: 1.15, Mach factor: 6.84
35/bin/machine           = unknown
36/usr/bin/oslevel       = unknown
37/bin/universe          = unknown
38
39PATH: /opt/local/bin/
40PATH: /opt/local/sbin/
41PATH: /bin/
42PATH: /sbin/
43PATH: /usr/bin/
44PATH: /usr/sbin/
45
46
47## ----------- ##
48## Core tests. ##
49## ----------- ##
50
51configure:2109: looking for aux files: install-sh
52configure:2122:  trying ./build-aux/
53configure:2133:   ./build-aux/install-sh found
54configure:2269: checking for perl
55configure:2275: ...version 5.008 required
56configure:2284: trying /opt/local/bin/perl5.34
57found version 5.034
58configure:2293: result: /opt/local/bin/perl5.34
59configure:2303: checking for module Locale::gettext
60gettext.c: loadable library and perl binaries are mismatched (got handshake key 0xcf00080, needed 0xce40080)
61configure:2316: result: no
62configure:2321: checking for msgfmt
63configure:2344: found /opt/local/bin/msgfmt
64configure:2356: result: /opt/local/bin/msgfmt
65configure:2427: checking for gcc
66configure:2459: result: /usr/bin/gcc-4.2
67configure:2812: checking for C compiler version
68configure:2821: /usr/bin/gcc-4.2 --version >&5
69i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)
70Copyright (C) 2007 Free Software Foundation, Inc.
71This is free software; see the source for copying conditions.  There is NO
72warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
73
74configure:2832: $? = 0
75configure:2821: /usr/bin/gcc-4.2 -v >&5
76Using built-in specs.
77Target: i686-apple-darwin10
78Configured with: /var/tmp/gcc/gcc-5646~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10
79Thread model: posix
80gcc version 4.2.1 (Apple Inc. build 5646)
81configure:2832: $? = 0
82configure:2821: /usr/bin/gcc-4.2 -V >&5
83gcc-4.2: argument to `-V' is missing
84configure:2832: $? = 1
85configure:2821: /usr/bin/gcc-4.2 -qversion >&5
86i686-apple-darwin10-gcc-4.2.1: no input files
87configure:2832: $? = 1
88configure:2821: /usr/bin/gcc-4.2 -version >&5
89i686-apple-darwin10-gcc-4.2.1: no input files
90configure:2832: $? = 1
91configure:2852: checking whether the C compiler works
92configure:2874: /usr/bin/gcc-4.2 -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c  >&5
93configure:2878: $? = 0
94configure:2928: result: yes
95configure:2931: checking for C compiler default output file name
96configure:2933: result: a.out
97configure:2939: checking for suffix of executables
98configure:2946: /usr/bin/gcc-4.2 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c  >&5
99configure:2950: $? = 0
100configure:2973: result:
101configure:2995: checking whether we are cross compiling
102configure:3003: /usr/bin/gcc-4.2 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c  >&5
103configure:3007: $? = 0
104configure:3014: ./conftest
105configure:3018: $? = 0
106configure:3033: result: no
107configure:3038: checking for suffix of object files
108configure:3061: /usr/bin/gcc-4.2 -c -pipe -Os -arch ppc -I/opt/local/include conftest.c >&5
109configure:3065: $? = 0
110configure:3087: result: o
111configure:3091: checking whether the compiler supports GNU C
112configure:3111: /usr/bin/gcc-4.2 -c -pipe -Os -arch ppc -I/opt/local/include conftest.c >&5
113configure:3111: $? = 0
114configure:3121: result: yes
115configure:3132: checking whether /usr/bin/gcc-4.2 accepts -g
116configure:3153: /usr/bin/gcc-4.2 -c -g -I/opt/local/include conftest.c >&5
117configure:3153: $? = 0
118configure:3197: result: yes
119configure:3217: checking for /usr/bin/gcc-4.2 option to enable C11 features
120configure:3232: /usr/bin/gcc-4.2  -c -pipe -Os -arch ppc -I/opt/local/include conftest.c >&5
121conftest.c:61:3: error: #error "Compiler does not advertise C99 conformance"
122conftest.c:116: error: expected ';', ',' or ')' before 'text'
123conftest.c:165:3: error: #error "Compiler does not advertise C11 conformance"
124conftest.c: In function '_Alignas':
125conftest.c:169: error: expected declaration specifiers before 'aligned_as_double'
126conftest.c:170: error: expected declaration specifiers or '...' before numeric constant
127conftest.c:170: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'no_special_alignment'
128conftest.c:171: error: storage class specified for parameter 'aligned_as_int'
129conftest.c:172: error: expected declaration specifiers or '...' before numeric constant
130conftest.c:172: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_Alignas'
131conftest.c:177: error: expected expression before 'int'
132conftest.c:177: error: enumerator value for 'int_alignment' is not an integer constant
133conftest.c:178: error: expected expression before 'int'
134conftest.c:178: error: enumerator value for 'int_array_alignment' is not an integer constant
135conftest.c:179: error: expected expression before 'char'
136conftest.c:180: error: enumerator value for 'char_alignment' is not an integer constant
137conftest.c:180: warning: empty declaration
138conftest.c:181: error: expected declaration specifiers before '_Static_assert'
139conftest.c:184: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'does_not_return'
140conftest.c:190: error: expected specifier-qualifier-list before '_Static_assert'
141conftest.c:193: warning: empty declaration
142conftest.c:197: error: parameter 'utf8_literal' is initialized
143conftest.c:197: error: 'syntax' undeclared (first use in this function)
144conftest.c:197: error: (Each undeclared identifier is reported only once
145conftest.c:197: error: for each function it appears in.)
146conftest.c:197: error: expected ',' or ';' before 'error'
147conftest.c:200: error: storage class specified for parameter 'long_ptr'
148conftest.c:201: error: storage class specified for parameter 'long_ptr'
149conftest.c:201: error: redefinition of parameter 'long_ptr'
150conftest.c:200: error: previous definition of 'long_ptr' was here
151conftest.c:202: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long_ptr'
152conftest.c:217: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
153conftest.c:269: error: old-style parameter declarations in prototyped function definition
154conftest.c:169: error: parameter name omitted
155conftest.c:269: error: expected '{' at end of input
156configure:3232: $? = 1
157configure: failed program was:
158| /* confdefs.h */
159| #define PACKAGE_NAME "GNU help2man"
160| #define PACKAGE_TARNAME "help2man"
161| #define PACKAGE_VERSION "1.49.1"
162| #define PACKAGE_STRING "GNU help2man 1.49.1"
163| #define PACKAGE_BUGREPORT "bug-help2man@gnu.org"
164| #define PACKAGE_URL "https://www.gnu.org/software/help2man/"
165| /* end confdefs.h.  */
166|
167| /* Does the compiler advertise C89 conformance?
168|    Do not test the value of __STDC__, because some compilers set it to 0
169|    while being otherwise adequately conformant. */
170| #if !defined __STDC__
171| # error "Compiler does not advertise C89 conformance"
172| #endif
173|
174| #include <stddef.h>
175| #include <stdarg.h>
176| struct stat;
177| /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
178| struct buf { int x; };
179| struct buf * (*rcsopen) (struct buf *, struct stat *, int);
180| static char *e (p, i)
181|      char **p;
182|      int i;
183| {
184|   return p[i];
185| }
186| static char *f (char * (*g) (char **, int), char **p, ...)
187| {
188|   char *s;
189|   va_list v;
190|   va_start (v,p);
191|   s = g (p, va_arg (v,int));
192|   va_end (v);
193|   return s;
194| }
195|
196| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
197|    function prototypes and stuff, but not \xHH hex character constants.
198|    These do not provoke an error unfortunately, instead are silently treated
199|    as an "x".  The following induces an error, until -std is added to get
200|    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
201|    array size at least.  It is necessary to write \x00 == 0 to get something
202|    that is true only with -std.  */
203| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
204|
205| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
206|    inside strings and character constants.  */
207| #define FOO(x) 'x'
208| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
209|
210| int test (int i, double x);
211| struct s1 {int (*f) (int a);};
212| struct s2 {int (*f) (double a);};
213| int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
214|                int, int);
215|
216| // Does the compiler advertise C99 conformance?
217| #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
218| # error "Compiler does not advertise C99 conformance"
219| #endif
220|
221| #include <stdbool.h>
222| extern int puts (const char *);
223| extern int printf (const char *, ...);
224| extern int dprintf (int, const char *, ...);
225| extern void *malloc (size_t);
226|
227| // Check varargs macros.  These examples are taken from C99 6.10.3.5.
228| // dprintf is used instead of fprintf to avoid needing to declare
229| // FILE and stderr.
230| #define debug(...) dprintf (2, __VA_ARGS__)
231| #define showlist(...) puts (#__VA_ARGS__)
232| #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
233| static void
234| test_varargs_macros (void)
235| {
236|   int x = 1234;
237|   int y = 5678;
238|   debug ("Flag");
239|   debug ("X = %d\n", x);
240|   showlist (The first, second, and third items.);
241|   report (x>y, "x is %d but y is %d", x, y);
242| }
243|
244| // Check long long types.
245| #define BIG64 18446744073709551615ull
246| #define BIG32 4294967295ul
247| #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
248| #if !BIG_OK
249|   #error "your preprocessor is broken"
250| #endif
251| #if BIG_OK
252| #else
253|   #error "your preprocessor is broken"
254| #endif
255| static long long int bignum = -9223372036854775807LL;
256| static unsigned long long int ubignum = BIG64;
257|
258| struct incomplete_array
259| {
260|   int datasize;
261|   double data[];
262| };
263|
264| struct named_init {
265|   int number;
266|   const wchar_t *name;
267|   double average;
268| };
269|
270| typedef const char *ccp;
271|
272| static inline int
273| test_restrict (ccp restrict text)
274| {
275|   // See if C++-style comments work.
276|   // Iterate through items via the restricted pointer.
277|   // Also check for declarations in for loops.
278|   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
279|     continue;
280|   return 0;
281| }
282|
283| // Check varargs and va_copy.
284| static bool
285| test_varargs (const char *format, ...)
286| {
287|   va_list args;
288|   va_start (args, format);
289|   va_list args_copy;
290|   va_copy (args_copy, args);
291|
292|   const char *str = "";
293|   int number = 0;
294|   float fnumber = 0;
295|
296|   while (*format)
297|     {
298|       switch (*format++)
299|       {
300|       case 's': // string
301|         str = va_arg (args_copy, const char *);
302|         break;
303|       case 'd': // int
304|         number = va_arg (args_copy, int);
305|         break;
306|       case 'f': // float
307|         fnumber = va_arg (args_copy, double);
308|         break;
309|       default:
310|         break;
311|       }
312|     }
313|   va_end (args_copy);
314|   va_end (args);
315|
316|   return *str && number && fnumber;
317| }
318|
319|
320| // Does the compiler advertise C11 conformance?
321| #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
322| # error "Compiler does not advertise C11 conformance"
323| #endif
324|
325| // Check _Alignas.
326| char _Alignas (double) aligned_as_double;
327| char _Alignas (0) no_special_alignment;
328| extern char aligned_as_int;
329| char _Alignas (0) _Alignas (int) aligned_as_int;
330|
331| // Check _Alignof.
332| enum
333| {
334|   int_alignment = _Alignof (int),
335|   int_array_alignment = _Alignof (int[100]),
336|   char_alignment = _Alignof (char)
337| };
338| _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
339|
340| // Check _Noreturn.
341| int _Noreturn does_not_return (void) { for (;;) continue; }
342|
343| // Check _Static_assert.
344| struct test_static_assert
345| {
346|   int x;
347|   _Static_assert (sizeof (int) <= sizeof (long int),
348|                   "_Static_assert does not work in struct");
349|   long int y;
350| };
351|
352| // Check UTF-8 literals.
353| #define u8 syntax error!
354| char const utf8_literal[] = u8"happens to be ASCII" "another string";
355|
356| // Check duplicate typedefs.
357| typedef long *long_ptr;
358| typedef long int *long_ptr;
359| typedef long_ptr long_ptr;
360|
361| // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
362| struct anonymous
363| {
364|   union {
365|     struct { int i; int j; };
366|     struct { int k; long int l; } w;
367|   };
368|   int m;
369| } v1;
370|
371|
372| int
373| main (int argc, char **argv)
374| {
375|   int ok = 0;
376|   
377| ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
378|
379|   
380|   // Check bool.
381|   _Bool success = false;
382|   success |= (argc != 0);
383|
384|   // Check restrict.
385|   if (test_restrict ("String literal") == 0)
386|     success = true;
387|   char *restrict newvar = "Another string";
388|
389|   // Check varargs.
390|   success &= test_varargs ("s, d' f .", "string", 65, 34.234);
391|   test_varargs_macros ();
392|
393|   // Check flexible array members.
394|   struct incomplete_array *ia =
395|     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
396|   ia->datasize = 10;
397|   for (int i = 0; i < ia->datasize; ++i)
398|     ia->data[i] = i * 1.234;
399|
400|   // Check named initializers.
401|   struct named_init ni = {
402|     .number = 34,
403|     .name = L"Test wide string",
404|     .average = 543.34343,
405|   };
406|
407|   ni.number = 58;
408|
409|   int dynamic_array[ni.number];
410|   dynamic_array[0] = argv[0][0];
411|   dynamic_array[ni.number - 1] = 543;
412|
413|   // work around unused variable warnings
414|   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
415|        || dynamic_array[ni.number - 1] != 543);
416|
417|   
418|   _Static_assert ((offsetof (struct anonymous, i)
419|                  == offsetof (struct anonymous, w.k)),
420|                 "Anonymous union alignment botch");
421|   v1.i = 2;
422|   v1.w.k = 5;
423|   ok |= v1.i != 5;
424|
425|   return ok;
426| }
427|
428configure:3232: /usr/bin/gcc-4.2 -std=gnu11 -c -pipe -Os -arch ppc -I/opt/local/include conftest.c >&5
429cc1: error: unrecognized command line option "-std=gnu11"
430configure:3232: $? = 1
431configure: failed program was:
432| /* confdefs.h */
433| #define PACKAGE_NAME "GNU help2man"
434| #define PACKAGE_TARNAME "help2man"
435| #define PACKAGE_VERSION "1.49.1"
436| #define PACKAGE_STRING "GNU help2man 1.49.1"
437| #define PACKAGE_BUGREPORT "bug-help2man@gnu.org"
438| #define PACKAGE_URL "https://www.gnu.org/software/help2man/"
439| /* end confdefs.h.  */
440|
441| /* Does the compiler advertise C89 conformance?
442|    Do not test the value of __STDC__, because some compilers set it to 0
443|    while being otherwise adequately conformant. */
444| #if !defined __STDC__
445| # error "Compiler does not advertise C89 conformance"
446| #endif
447|
448| #include <stddef.h>
449| #include <stdarg.h>
450| struct stat;
451| /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
452| struct buf { int x; };
453| struct buf * (*rcsopen) (struct buf *, struct stat *, int);
454| static char *e (p, i)
455|      char **p;
456|      int i;
457| {
458|   return p[i];
459| }
460| static char *f (char * (*g) (char **, int), char **p, ...)
461| {
462|   char *s;
463|   va_list v;
464|   va_start (v,p);
465|   s = g (p, va_arg (v,int));
466|   va_end (v);
467|   return s;
468| }
469|
470| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
471|    function prototypes and stuff, but not \xHH hex character constants.
472|    These do not provoke an error unfortunately, instead are silently treated
473|    as an "x".  The following induces an error, until -std is added to get
474|    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
475|    array size at least.  It is necessary to write \x00 == 0 to get something
476|    that is true only with -std.  */
477| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
478|
479| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
480|    inside strings and character constants.  */
481| #define FOO(x) 'x'
482| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
483|
484| int test (int i, double x);
485| struct s1 {int (*f) (int a);};
486| struct s2 {int (*f) (double a);};
487| int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
488|                int, int);
489|
490| // Does the compiler advertise C99 conformance?
491| #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
492| # error "Compiler does not advertise C99 conformance"
493| #endif
494|
495| #include <stdbool.h>
496| extern int puts (const char *);
497| extern int printf (const char *, ...);
498| extern int dprintf (int, const char *, ...);
499| extern void *malloc (size_t);
500|
501| // Check varargs macros.  These examples are taken from C99 6.10.3.5.
502| // dprintf is used instead of fprintf to avoid needing to declare
503| // FILE and stderr.
504| #define debug(...) dprintf (2, __VA_ARGS__)
505| #define showlist(...) puts (#__VA_ARGS__)
506| #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
507| static void
508| test_varargs_macros (void)
509| {
510|   int x = 1234;
511|   int y = 5678;
512|   debug ("Flag");
513|   debug ("X = %d\n", x);
514|   showlist (The first, second, and third items.);
515|   report (x>y, "x is %d but y is %d", x, y);
516| }
517|
518| // Check long long types.
519| #define BIG64 18446744073709551615ull
520| #define BIG32 4294967295ul
521| #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
522| #if !BIG_OK
523|   #error "your preprocessor is broken"
524| #endif
525| #if BIG_OK
526| #else
527|   #error "your preprocessor is broken"
528| #endif
529| static long long int bignum = -9223372036854775807LL;
530| static unsigned long long int ubignum = BIG64;
531|
532| struct incomplete_array
533| {
534|   int datasize;
535|   double data[];
536| };
537|
538| struct named_init {
539|   int number;
540|   const wchar_t *name;
541|   double average;
542| };
543|
544| typedef const char *ccp;
545|
546| static inline int
547| test_restrict (ccp restrict text)
548| {
549|   // See if C++-style comments work.
550|   // Iterate through items via the restricted pointer.
551|   // Also check for declarations in for loops.
552|   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
553|     continue;
554|   return 0;
555| }
556|
557| // Check varargs and va_copy.
558| static bool
559| test_varargs (const char *format, ...)
560| {
561|   va_list args;
562|   va_start (args, format);
563|   va_list args_copy;
564|   va_copy (args_copy, args);
565|
566|   const char *str = "";
567|   int number = 0;
568|   float fnumber = 0;
569|
570|   while (*format)
571|     {
572|       switch (*format++)
573|       {
574|       case 's': // string
575|         str = va_arg (args_copy, const char *);
576|         break;
577|       case 'd': // int
578|         number = va_arg (args_copy, int);
579|         break;
580|       case 'f': // float
581|         fnumber = va_arg (args_copy, double);
582|         break;
583|       default:
584|         break;
585|       }
586|     }
587|   va_end (args_copy);
588|   va_end (args);
589|
590|   return *str && number && fnumber;
591| }
592|
593|
594| // Does the compiler advertise C11 conformance?
595| #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
596| # error "Compiler does not advertise C11 conformance"
597| #endif
598|
599| // Check _Alignas.
600| char _Alignas (double) aligned_as_double;
601| char _Alignas (0) no_special_alignment;
602| extern char aligned_as_int;
603| char _Alignas (0) _Alignas (int) aligned_as_int;
604|
605| // Check _Alignof.
606| enum
607| {
608|   int_alignment = _Alignof (int),
609|   int_array_alignment = _Alignof (int[100]),
610|   char_alignment = _Alignof (char)
611| };
612| _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
613|
614| // Check _Noreturn.
615| int _Noreturn does_not_return (void) { for (;;) continue; }
616|
617| // Check _Static_assert.
618| struct test_static_assert
619| {
620|   int x;
621|   _Static_assert (sizeof (int) <= sizeof (long int),
622|                   "_Static_assert does not work in struct");
623|   long int y;
624| };
625|
626| // Check UTF-8 literals.
627| #define u8 syntax error!
628| char const utf8_literal[] = u8"happens to be ASCII" "another string";
629|
630| // Check duplicate typedefs.
631| typedef long *long_ptr;
632| typedef long int *long_ptr;
633| typedef long_ptr long_ptr;
634|
635| // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
636| struct anonymous
637| {
638|   union {
639|     struct { int i; int j; };
640|     struct { int k; long int l; } w;
641|   };
642|   int m;
643| } v1;
644|
645|
646| int
647| main (int argc, char **argv)
648| {
649|   int ok = 0;
650|   
651| ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
652|
653|   
654|   // Check bool.
655|   _Bool success = false;
656|   success |= (argc != 0);
657|
658|   // Check restrict.
659|   if (test_restrict ("String literal") == 0)
660|     success = true;
661|   char *restrict newvar = "Another string";
662|
663|   // Check varargs.
664|   success &= test_varargs ("s, d' f .", "string", 65, 34.234);
665|   test_varargs_macros ();
666|
667|   // Check flexible array members.
668|   struct incomplete_array *ia =
669|     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
670|   ia->datasize = 10;
671|   for (int i = 0; i < ia->datasize; ++i)
672|     ia->data[i] = i * 1.234;
673|
674|   // Check named initializers.
675|   struct named_init ni = {
676|     .number = 34,
677|     .name = L"Test wide string",
678|     .average = 543.34343,
679|   };
680|
681|   ni.number = 58;
682|
683|   int dynamic_array[ni.number];
684|   dynamic_array[0] = argv[0][0];
685|   dynamic_array[ni.number - 1] = 543;
686|
687|   // work around unused variable warnings
688|   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
689|        || dynamic_array[ni.number - 1] != 543);
690|
691|   
692|   _Static_assert ((offsetof (struct anonymous, i)
693|                  == offsetof (struct anonymous, w.k)),
694|                 "Anonymous union alignment botch");
695|   v1.i = 2;
696|   v1.w.k = 5;
697|   ok |= v1.i != 5;
698|
699|   return ok;
700| }
701|
702configure:3245: result: unsupported
703configure:3263: checking for /usr/bin/gcc-4.2 option to enable C99 features
704configure:3278: /usr/bin/gcc-4.2  -c -pipe -Os -arch ppc -I/opt/local/include conftest.c >&5
705conftest.c:61:3: error: #error "Compiler does not advertise C99 conformance"
706conftest.c:116: error: expected ';', ',' or ')' before 'text'
707conftest.c: In function 'main':
708conftest.c:178: error: nested functions are disabled, use -fnested-functions to re-enable
709conftest.c:178: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar'
710conftest.c:178: error: 'newvar' undeclared (first use in this function)
711conftest.c:178: error: (Each undeclared identifier is reported only once
712conftest.c:178: error: for each function it appears in.)
713conftest.c:188: error: 'for' loop initial declaration used outside C99 mode
714configure:3278: $? = 1
715configure: failed program was:
716| /* confdefs.h */
717| #define PACKAGE_NAME "GNU help2man"
718| #define PACKAGE_TARNAME "help2man"
719| #define PACKAGE_VERSION "1.49.1"
720| #define PACKAGE_STRING "GNU help2man 1.49.1"
721| #define PACKAGE_BUGREPORT "bug-help2man@gnu.org"
722| #define PACKAGE_URL "https://www.gnu.org/software/help2man/"
723| /* end confdefs.h.  */
724|
725| /* Does the compiler advertise C89 conformance?
726|    Do not test the value of __STDC__, because some compilers set it to 0
727|    while being otherwise adequately conformant. */
728| #if !defined __STDC__
729| # error "Compiler does not advertise C89 conformance"
730| #endif
731|
732| #include <stddef.h>
733| #include <stdarg.h>
734| struct stat;
735| /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
736| struct buf { int x; };
737| struct buf * (*rcsopen) (struct buf *, struct stat *, int);
738| static char *e (p, i)
739|      char **p;
740|      int i;
741| {
742|   return p[i];
743| }
744| static char *f (char * (*g) (char **, int), char **p, ...)
745| {
746|   char *s;
747|   va_list v;
748|   va_start (v,p);
749|   s = g (p, va_arg (v,int));
750|   va_end (v);
751|   return s;
752| }
753|
754| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
755|    function prototypes and stuff, but not \xHH hex character constants.
756|    These do not provoke an error unfortunately, instead are silently treated
757|    as an "x".  The following induces an error, until -std is added to get
758|    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
759|    array size at least.  It is necessary to write \x00 == 0 to get something
760|    that is true only with -std.  */
761| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
762|
763| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
764|    inside strings and character constants.  */
765| #define FOO(x) 'x'
766| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
767|
768| int test (int i, double x);
769| struct s1 {int (*f) (int a);};
770| struct s2 {int (*f) (double a);};
771| int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
772|                int, int);
773|
774| // Does the compiler advertise C99 conformance?
775| #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
776| # error "Compiler does not advertise C99 conformance"
777| #endif
778|
779| #include <stdbool.h>
780| extern int puts (const char *);
781| extern int printf (const char *, ...);
782| extern int dprintf (int, const char *, ...);
783| extern void *malloc (size_t);
784|
785| // Check varargs macros.  These examples are taken from C99 6.10.3.5.
786| // dprintf is used instead of fprintf to avoid needing to declare
787| // FILE and stderr.
788| #define debug(...) dprintf (2, __VA_ARGS__)
789| #define showlist(...) puts (#__VA_ARGS__)
790| #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
791| static void
792| test_varargs_macros (void)
793| {
794|   int x = 1234;
795|   int y = 5678;
796|   debug ("Flag");
797|   debug ("X = %d\n", x);
798|   showlist (The first, second, and third items.);
799|   report (x>y, "x is %d but y is %d", x, y);
800| }
801|
802| // Check long long types.
803| #define BIG64 18446744073709551615ull
804| #define BIG32 4294967295ul
805| #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
806| #if !BIG_OK
807|   #error "your preprocessor is broken"
808| #endif
809| #if BIG_OK
810| #else
811|   #error "your preprocessor is broken"
812| #endif
813| static long long int bignum = -9223372036854775807LL;
814| static unsigned long long int ubignum = BIG64;
815|
816| struct incomplete_array
817| {
818|   int datasize;
819|   double data[];
820| };
821|
822| struct named_init {
823|   int number;
824|   const wchar_t *name;
825|   double average;
826| };
827|
828| typedef const char *ccp;
829|
830| static inline int
831| test_restrict (ccp restrict text)
832| {
833|   // See if C++-style comments work.
834|   // Iterate through items via the restricted pointer.
835|   // Also check for declarations in for loops.
836|   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
837|     continue;
838|   return 0;
839| }
840|
841| // Check varargs and va_copy.
842| static bool
843| test_varargs (const char *format, ...)
844| {
845|   va_list args;
846|   va_start (args, format);
847|   va_list args_copy;
848|   va_copy (args_copy, args);
849|
850|   const char *str = "";
851|   int number = 0;
852|   float fnumber = 0;
853|
854|   while (*format)
855|     {
856|       switch (*format++)
857|       {
858|       case 's': // string
859|         str = va_arg (args_copy, const char *);
860|         break;
861|       case 'd': // int
862|         number = va_arg (args_copy, int);
863|         break;
864|       case 'f': // float
865|         fnumber = va_arg (args_copy, double);
866|         break;
867|       default:
868|         break;
869|       }
870|     }
871|   va_end (args_copy);
872|   va_end (args);
873|
874|   return *str && number && fnumber;
875| }
876|
877|
878| int
879| main (int argc, char **argv)
880| {
881|   int ok = 0;
882|   
883| ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
884|
885|   
886|   // Check bool.
887|   _Bool success = false;
888|   success |= (argc != 0);
889|
890|   // Check restrict.
891|   if (test_restrict ("String literal") == 0)
892|     success = true;
893|   char *restrict newvar = "Another string";
894|
895|   // Check varargs.
896|   success &= test_varargs ("s, d' f .", "string", 65, 34.234);
897|   test_varargs_macros ();
898|
899|   // Check flexible array members.
900|   struct incomplete_array *ia =
901|     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
902|   ia->datasize = 10;
903|   for (int i = 0; i < ia->datasize; ++i)
904|     ia->data[i] = i * 1.234;
905|
906|   // Check named initializers.
907|   struct named_init ni = {
908|     .number = 34,
909|     .name = L"Test wide string",
910|     .average = 543.34343,
911|   };
912|
913|   ni.number = 58;
914|
915|   int dynamic_array[ni.number];
916|   dynamic_array[0] = argv[0][0];
917|   dynamic_array[ni.number - 1] = 543;
918|
919|   // work around unused variable warnings
920|   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
921|        || dynamic_array[ni.number - 1] != 543);
922|
923|   return ok;
924| }
925|
926configure:3278: /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I/opt/local/include conftest.c >&5
927configure:3278: $? = 0
928configure:3299: result: -std=gnu99
929configure:3361: checking for library containing dlsym
930configure:3391: /usr/bin/gcc-4.2 -std=gnu99 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c  >&5
931configure:3391: $? = 0
932configure:3411: result: none required
933configure:3420: checking for library containing bindtextdomain
934configure:3450: /usr/bin/gcc-4.2 -std=gnu99 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c  >&5
935Undefined symbols:
936  "_bindtextdomain", referenced from:
937      _main in ccmWeAyu.o
938ld: symbol(s) not found
939collect2: ld returned 1 exit status
940configure:3450: $? = 1
941configure: failed program was:
942| /* confdefs.h */
943| #define PACKAGE_NAME "GNU help2man"
944| #define PACKAGE_TARNAME "help2man"
945| #define PACKAGE_VERSION "1.49.1"
946| #define PACKAGE_STRING "GNU help2man 1.49.1"
947| #define PACKAGE_BUGREPORT "bug-help2man@gnu.org"
948| #define PACKAGE_URL "https://www.gnu.org/software/help2man/"
949| /* end confdefs.h.  */
950|
951| /* Override any GCC internal prototype to avoid an error.
952|    Use char because int might match the return type of a GCC
953|    builtin and then its argument prototype would still apply.  */
954| char bindtextdomain ();
955| int
956| main (void)
957| {
958| return bindtextdomain ();
959|   ;
960|   return 0;
961| }
962configure:3450: /usr/bin/gcc-4.2 -std=gnu99 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c -lintl   >&5
963configure:3450: $? = 0
964configure:3470: result: -lintl
965configure:3505: error: perl module Locale::gettext required
966
967## ---------------- ##
968## Cache variables. ##
969## ---------------- ##
970
971ac_cv_c_compiler_gnu=yes
972ac_cv_enable_nls=yes
973ac_cv_env_CC_set=set
974ac_cv_env_CC_value=/usr/bin/gcc-4.2
975ac_cv_env_CFLAGS_set=set
976ac_cv_env_CFLAGS_value='-pipe -Os -arch ppc'
977ac_cv_env_CPPFLAGS_set=set
978ac_cv_env_CPPFLAGS_value=-I/opt/local/include
979ac_cv_env_LDFLAGS_set=set
980ac_cv_env_LDFLAGS_value='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc'
981ac_cv_env_LIBS_set=
982ac_cv_env_LIBS_value=
983ac_cv_env_build_alias_set=
984ac_cv_env_build_alias_value=
985ac_cv_env_host_alias_set=
986ac_cv_env_host_alias_value=
987ac_cv_env_target_alias_set=
988ac_cv_env_target_alias_value=
989ac_cv_module_Locale__gettext=no
990ac_cv_objext=o
991ac_cv_path_MSGFMT=/opt/local/bin/msgfmt
992ac_cv_prog_PERL=/opt/local/bin/perl5.34
993ac_cv_prog_ac_ct_CC=/usr/bin/gcc-4.2
994ac_cv_prog_cc_c11=no
995ac_cv_prog_cc_c99=-std=gnu99
996ac_cv_prog_cc_g=yes
997ac_cv_prog_cc_stdc=-std=gnu99
998ac_cv_search_bindtextdomain=-lintl
999ac_cv_search_dlsym='none required'
1000
1001## ----------------- ##
1002## Output variables. ##
1003## ----------------- ##
1004
1005CC='/usr/bin/gcc-4.2 -std=gnu99'
1006CFLAGS='-pipe -Os -arch ppc'
1007CPPFLAGS='-I/opt/local/include'
1008DEFS=''
1009ECHO_C='\c'
1010ECHO_N=''
1011ECHO_T=''
1012EXEEXT=''
1013INSTALL_DATA=''
1014INSTALL_INFO=''
1015INSTALL_PROGRAM=''
1016INSTALL_SCRIPT=''
1017LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc'
1018LIBOBJS=''
1019LIBS='-lintl '
1020LTLIBOBJS=''
1021MAKEINFO=''
1022MSGFMT='/opt/local/bin/msgfmt'
1023MSGMERGE=''
1024OBJEXT='o'
1025PACKAGE_BUGREPORT='bug-help2man@gnu.org'
1026PACKAGE_NAME='GNU help2man'
1027PACKAGE_STRING='GNU help2man 1.49.1'
1028PACKAGE_TARNAME='help2man'
1029PACKAGE_URL='https://www.gnu.org/software/help2man/'
1030PACKAGE_VERSION='1.49.1'
1031PATH_SEPARATOR=':'
1032PERL='/opt/local/bin/perl5.34'
1033PO4A_TRANSLATE=''
1034PO4A_UPDATEPO=''
1035SHELL='/bin/sh'
1036XGETTEXT=''
1037ac_ct_CC='/usr/bin/gcc-4.2'
1038auxdir='./build-aux/'
1039bindir='${exec_prefix}/bin'
1040build_alias=''
1041datadir='${datarootdir}'
1042datarootdir='${prefix}/share'
1043docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1044dvidir='${docdir}'
1045exec_prefix='NONE'
1046extra_extract_args=''
1047extra_make_all=''
1048extra_make_install=''
1049host_alias=''
1050htmldir='${docdir}'
1051includedir='${prefix}/include'
1052infodir='${datarootdir}/info'
1053libdir='${exec_prefix}/lib'
1054libexecdir='${exec_prefix}/libexec'
1055localedir='${datarootdir}/locale'
1056localstatedir='${prefix}/var'
1057mandir='${datarootdir}/man'
1058oldincludedir='/usr/include'
1059pdfdir='${docdir}'
1060prefix='/opt/local'
1061program_transform_name='s,x,x,'
1062psdir='${docdir}'
1063runstatedir='${localstatedir}/run'
1064sbindir='${exec_prefix}/sbin'
1065sharedstatedir='${prefix}/com'
1066sysconfdir='${prefix}/etc'
1067target_alias=''
1068
1069## ----------- ##
1070## confdefs.h. ##
1071## ----------- ##
1072
1073/* confdefs.h */
1074#define PACKAGE_NAME "GNU help2man"
1075#define PACKAGE_TARNAME "help2man"
1076#define PACKAGE_VERSION "1.49.1"
1077#define PACKAGE_STRING "GNU help2man 1.49.1"
1078#define PACKAGE_BUGREPORT "bug-help2man@gnu.org"
1079#define PACKAGE_URL "https://www.gnu.org/software/help2man/"
1080
1081configure: exit 1