This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by GNU help2man configure 1.49.2, which was generated by GNU Autoconf 2.71. Invocation command line was $ ./configure --srcdir=./.. --cache-file=./config.cache --disable-dependency-tracking --without-libiconv-prefix --without-libintl-prefix --enable-silent-rules --build i586-pc-msdosdjgpp --host i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls ## --------- ## ## Platform. ## ## --------- ## hostname = K1O8O1 uname -m = i786 uname -r = 7 uname -s = MS-DOS uname -v = 10 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /dev/c/djgpp-2.05/bin/ PATH: /dev/c/batch/ PATH: /dev/c/windows/ PATH: /dev/c/windows/command/ ## ----------- ## ## Core tests. ## ## ----------- ## configure:1761: loading site script ./../djgpp/config.site | #! /bin/sh | | # This is the config.site file for configuring GNU packages | # which are to be built with DJGPP tools. | | | # Include the djgpp subdirectory in PATH, so that getconf is found | PATH="$srcdir/djgpp:$PATH" | | # These two variables are required, otherwise looking for | # programs along the PATH will not work. | PATH_SEPARATOR=: | PATH_EXPAND=y | | # This is required in for "test -f foo" to find foo.exe | export TEST_FINDS_EXE=y | | # The root of the DJGPP tree serves as the default prefix | test "x$prefix" = xNONE && prefix='/dev/env/DJDIR' | | # This is required for config.status script to be run, since | # ./configure runs it by invoking ${CONFIG_SHELL-/bin/sh} | CONFIG_SHELL=${CONFIG_SHELL='sh'} | | # These are set here so the generated Makefile's will be good | # for every DJGPP installation, not only the one where the | # package was configured. | # $INSTALL must be an absolute path name, otherwise config.status | # will try to prepend ./ and ../ to it when it goes into subdirs. | INSTALL=${INSTALL='/dev/env/DJDIR/bin/ginstall -c'} | GMSGFMT=${GMSGFMT='/dev/env/DJDIR/bin/msgfmt'} | MSGFMT=${MSGFMT='/dev/env/DJDIR/bin/msgfmt'} | MSGMERGE=${MSGMERGE='/dev/env/DJDIR/bin/msgmerge'} | XGETTEXT=${XGETTEXT='/dev/env/DJDIR/bin/xgettext'} | AWK=${AWK='gawk'} | | # A sane default for cat. | ac_cv_path_CAT=${CAT='cat'} | | # A sane default for emacs. | ac_cv_path_EMACS=${EMACS='emacs'} | | # A sane default for m4. | ac_cv_path_M4=${M4='m4'} | | # A sane default for grep. | ac_cv_path_GREP=${GREP='grep'} | | # A sane default for egrep. | ac_cv_path_EGREP=${EGREP='egrep'} | | # A sane default for fgrep. | ac_cv_path_FGREP=${FGREP='fgrep'} | | # A sane default for sed. | ac_cv_path_SED=${SED='sed'} | | # A sane default for makeinfo. | ac_cv_path_MAKEINFO=${MAKEINFO='makeinfo'} | | # A sane default for makeinfo. | ac_cv_path_INSTALL_INFO=${INSTALL_INFO='install-info'} | | # A sane default for roff. | ac_cv_path_ROFF=${ROFF='groff'} | | # A sane default for groff. | ac_cv_path_GROFF=${GROFF='groff'} | | # A sane default for nroff. | ac_cv_path_NROFF=${NROFF='nroff'} | | # A sane default for soelim. | ac_cv_path_SOELIM=${SOELIM='soelim'} | | # A sane default for pic. | ac_cv_path_PIC=${PIC='pic'} | | # A sane default for perl. | ac_cv_path_PERL=${PERL='perl'} | | # A sane default for mkdir. | ac_cv_path_mkdir=${MKDIR_P='mkdir -p'} | | # A sane default for rm. | ac_cv_path_RM=${RM='rm'} | | # A sane default for mv. | ac_cv_path_MV=${MV='mv'} | | # A sane default for sort. | ac_cv_path_SORT=${SORT='sort'} | | # A sane default for tar. | ac_cv_path_TAR=${TAR='tar'} | | # A sane default for pr. | ac_cv_path_PR=${PR='pr'} | | # A sane default for pr. | ac_cv_path_PR_PROGRAM=${PR='pr'} | | # A sane default for ed. | ac_cv_path_ed_PROGRAM=${ED='ed'} | | # A sane default for texi2dvi. | ac_cv_path_TEXI2DVI=${TEXI2DVI='texi2dvi'} | | # A sane default for texi2pdf. | ac_cv_path_TEXI2PDF=${TEXI2PDF='texi2pdf'} | | # A sane default for dvips. | ac_cv_path_DVIPS=${DVIPS='dvips'} | | # A sane default for ps2pdf. | ac_cv_path_PS2PDF=${PS2PDF='ps2pdf'} | | # A sane default for bash. | ac_cv_path_TEST_MINUS_S_SH=${TEST_MINUS_S_SH='bash'} | | # A sane default for bash. | ac_cv_path_TEST_SHELL=${TEST_SHELL='bash'} | | # A sane default for sh. | ac_cv_path_SH=${SH='sh'} | | # A sane default for mktemp. | ac_cv_path_MKTEMP=${MKTEMP='mktemp'} | | # A sane default for dd. | ac_cv_path_lt_DD=${DD='dd'} | | # A sane default for compress. | ac_cv_path_COMPRESS=${COMPRESS='compress'} | | # A sane default for unzip. | ac_cv_path_UNZIP=${UNZIP='unzip'} | | # A sane default for zip. | ac_cv_path_ZIP=${ZIP='zip'} | | # A sane default for zcat. | ac_cv_path_ZCAT=${ZCAT='zcat'} | | # A sane default for bzip2. | ac_cv_path_BZIP2=${BZIP2='bzip2'} | | # A sane default for gzip. | ac_cv_path_GZIP=${GZIP='gzip'} | | # A sane default for uncompress. | ac_cv_path_UNCOMPRESS=${UNCOMPRESS='gunzip'} | | # A sane default for wget. | ac_cv_path_WGET=${WGET='wget'} | | # A sane default for xmllint. | ac_cv_path_XMLLINT=${XMLLINT='xmllint'} | | # A sane default for xsltproc. | ac_cv_path_XSLTPROC=${XSLTPROC='xsltproc'} | | # A sane default for xml2-config. | ac_cv_path_ac_pt_XML_CONFIG=${XML_CONFIG='xml2-config'} | | # These are set here so the generated libtool will be good | # for every DJGPP installation, not only the one where the | # package was configured. | AR=${AR='ar'} | LD=${LD='ld'} | NM=${NM='nm'} | STRIP=${STRIP='strip'} | RANLIB=${RANLIB='ranlib'} | lt_cv_path_LD=${lt_cv_path_LD='ld'} | lt_cv_path_NM=${lt_cv_path_NM='nm'} | | # These are set here so the generated config.h will be good | # for every DJGPP installation, not only the one where the | # package was configured. | gl_cv_absolute_stdint_h=${gl_cv_absolute_stdint_h='/dev/env/DJDIR/include/stdint.h'} | gl_cv_absolute_string_h=${gl_cv_absolute_string_h='/dev/env/DJDIR/include/string.h'} | gl_cv_absolute_sys_stat_h=${gl_cv_absolute_sys_stat_h='/dev/env/DJDIR/include/sys/stat.h'} | gl_cv_absolute_sys_time_h=${gl_cv_absolute_sys_time_h='/dev/env/DJDIR/include/sys/time.h'} | gl_cv_absolute_inttypes_h=${gl_cv_absolute_inttypes_h='/dev/env/DJDIR/include/inttypes.h'} | gl_cv_absolute_unistd_h=${gl_cv_absolute_unistd_h='/dev/env/DJDIR/include/unistd.h'} | gl_cv_absolute_wchar_h=${gl_cv_absolute_wchar_h='/dev/env/DJDIR/include/wchar.h'} | gl_cv_absolute_wctype_h=${gl_cv_absolute_wctype_h='/dev/env/DJDIR/include/wctype.h'} | gl_cv_absolute_stdlib_h=${gl_cv_absolute_stdlib_h='/dev/env/DJDIR/include/stdlib.h'} | | # Assume a working sleep. | gl_cv_func_sleep_works=yes | | # Force the test for 'ln -s' to report 'cp -pf'. | ac_cv_prog_LN_S='cp -pf' | | # There is no fork and vfork functionality. | ac_cv_func_fork=no | ac_cv_func_fork_works=no | ac_cv_func_vfork=no | ac_cv_func_vfork_works=no | ac_cv_func_pipe=yes | | # Ensure that always old GNU extern inline semantics is used | # (aka -fgnu89-inline) even if ISO C99 semantics has been specified. | case $(gcc --version 2>/dev/null | sed "/^.* \([1-9]\+\.[0-9]\+[.0-9]*\).*$/!d;s/^.* \([1-9]\+\.[0-9]\+[.0-9]*\).*$/\1/") in | [1-3].*|4.[0-1][.0-9]* ) CFLAGS=${CFLAGS='-g2 -O2 -std=gnu99 -march=i386 -mtune=i586'};; | * ) CFLAGS=${CFLAGS='-g2 -O2 -fgnu89-inline -march=i386 -mtune=i586'};; | esac | | # DJGPP's implementation of printf survives out-of-memory conditions. | gl_cv_func_printf_enomem=yes | | if [ "x${WATT_ROOT}" = "x" ]; then | # This is to skip all socket specific tests. | # This is the socklen_t equivalent to socklen_t as defined by WATT-32. | gl_cv_socklen_t_equiv=${gl_cv_socklen_t_equiv=int} | | elif [ -d "${WATT_ROOT}" ]; then | # If the checks shall work then wat3211b | # or later must have been installed. | | # Ensure that always WATT-32 include path is added. | # The WATT_ROOT environment variable must be set. | CPPFLAGS=${CPPFLAGS='-I/dev/env/WATT_ROOT/inc'} | | # Ensure that always WATT-32 library path is added. | # The WATT_ROOT environment variable must be set. | LIBS=${LIBS='-L/dev/env/WATT_ROOT/lib -lwatt'} | ficonfigure:1784: creating cache ./config.cache configure:2111: looking for aux files: install-sh configure:2124: trying ./../build-aux/ configure:2135: ./../build-aux/install-sh found configure:2271: checking for perl configure:2275: ...version 5.008 required configure:2284: trying perl found version 5.00801 configure:2295: result: perl configure:2305: checking for module Locale::gettext Can't locate Locale/gettext.pm in @INC (@INC contains: /dev/env/DJDIR/lib/perl5 /dev/env/DJDIR/lib/perl5/site /dev/env/DJDIR/lib/perl5/site /dev/env/DJDIR/lib/perl5/site .). BEGIN failed--compilation aborted. configure:2318: result: no configure:2323: checking for msgfmt configure:2358: result: /dev/env/DJDIR/bin/msgfmt configure:2384: checking for i586-pc-msdosdjgpp-gcc configure:2419: result: no configure:2429: checking for gcc configure:2450: found /dev/c/djgpp-2.05/bin/gcc configure:2461: result: gcc configure:2814: checking for C compiler version configure:2823: gcc --version >&5 gcc.exe (GCC) 3.4.6 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2834: $? = 0 configure:2823: gcc -v >&5 Reading specs from c:/djgpp-2.05/bin/../lib/gcc/djgpp/3.46/specs Configured with: /gcc-3.46/configure djgpp --prefix=/dev/env/DJDIR --disable-nls --disable-libstdcxx-pch Thread model: single gcc version 3.4.6 configure:2834: $? = 0 configure:2823: gcc -V >&5 gcc.exe: `-V' option must have argument configure:2834: $? = 1 configure:2823: gcc -qversion >&5 gcc.exe: unrecognized option `-qversion' gcc.exe: no input files configure:2834: $? = 1 configure:2823: gcc -version >&5 gcc.exe: unrecognized option `-version' gcc.exe: no input files configure:2834: $? = 1 configure:2854: checking whether the C compiler works configure:2876: gcc -g2 -O2 -std=gnu99 -march=i386 -mtune=i586 conftest.c >&5 configure:2880: $? = 0 configure:2930: result: yes configure:2933: checking for C compiler default output file name configure:2935: result: a.out configure:2941: checking for suffix of executables configure:2948: gcc -o conftest -g2 -O2 -std=gnu99 -march=i386 -mtune=i586 conftest.c >&5 configure:2952: $? = 0 configure:2975: result: .exe configure:2997: checking whether we are cross compiling configure:3005: gcc -o conftest.exe -g2 -O2 -std=gnu99 -march=i386 -mtune=i586 conftest.c >&5 configure:3009: $? = 0 configure:3016: ./conftest.exe configure:3020: $? = 0 configure:3035: result: no configure:3040: checking for suffix of object files configure:3063: gcc -c -g2 -O2 -std=gnu99 -march=i386 -mtune=i586 conftest.c >&5 configure:3067: $? = 0 configure:3089: result: o configure:3093: checking whether the compiler supports GNU C configure:3113: gcc -c -g2 -O2 -std=gnu99 -march=i386 -mtune=i586 conftest.c >&5 configure:3113: $? = 0 configure:3123: result: yes configure:3134: checking whether gcc accepts -g configure:3155: gcc -c -g conftest.c >&5 configure:3155: $? = 0 configure:3199: result: yes configure:3219: checking for gcc option to enable C11 features configure:3234: gcc -c -g2 -O2 -std=gnu99 -march=i386 -mtune=i586 conftest.c >&5 conftest.c:165:3: #error "Compiler does not advertise C11 conformance" conftest.c:169: error: syntax error before "aligned_as_double" conftest.c:169: warning: type defaults to `int' in declaration of `aligned_as_double' conftest.c:169: warning: data definition has no type or storage class conftest.c:170: error: syntax error before numeric constant conftest.c:170: warning: type defaults to `int' in declaration of `no_special_alignment' conftest.c:170: warning: data definition has no type or storage class conftest.c:172: error: syntax error before numeric constant conftest.c:172: error: syntax error before "aligned_as_int" conftest.c:172: warning: type defaults to `int' in declaration of `aligned_as_int' conftest.c:172: error: conflicting types for 'aligned_as_int' conftest.c:171: error: previous declaration of 'aligned_as_int' was here conftest.c:172: error: conflicting types for 'aligned_as_int' conftest.c:171: error: previous declaration of 'aligned_as_int' was here conftest.c:172: warning: data definition has no type or storage class conftest.c:177: warning: implicit declaration of function `_Alignof' conftest.c:177: error: syntax error before "int" conftest.c:178: error: syntax error before "int" conftest.c:179: error: syntax error before "char" conftest.c:181: error: syntax error before numeric constant conftest.c:181: warning: type defaults to `int' in declaration of `_Static_assert' conftest.c:184: error: syntax error before "does_not_return" conftest.c:184: warning: return type defaults to `int' conftest.c:190: error: syntax error before "_Static_assert" conftest.c:190: warning: no semicolon at end of struct or union conftest.c:193: error: syntax error before '}' token conftest.c:197: error: `syntax' undeclared here (not in a function) conftest.c:197: error: syntax error before "error" conftest.c:201: error: redefinition of typedef 'long_ptr' conftest.c:200: error: previous declaration of 'long_ptr' was here conftest.c:202: error: redefinition of typedef 'long_ptr' conftest.c:201: error: previous declaration of 'long_ptr' was here conftest.c:202: error: redefinition of typedef 'long_ptr' conftest.c:201: error: previous declaration of 'long_ptr' was here configure:3234: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU help2man" | #define PACKAGE_TARNAME "help2man" | #define PACKAGE_VERSION "1.49.2" | #define PACKAGE_STRING "GNU help2man 1.49.2" | #define PACKAGE_BUGREPORT "bug-help2man@gnu.org" | #define PACKAGE_URL "https://www.gnu.org/software/help2man/" | /* end confdefs.h. */ | | /* Does the compiler advertise C89 conformance? | Do not test the value of __STDC__, because some compilers set it to 0 | while being otherwise adequately conformant. */ | #if !defined __STDC__ | # error "Compiler does not advertise C89 conformance" | #endif | | #include | #include | struct stat; | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | struct buf { int x; }; | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | static char *e (p, i) | char **p; | int i; | { | return p[i]; | } | static char *f (char * (*g) (char **, int), char **p, ...) | { | char *s; | va_list v; | va_start (v,p); | s = g (p, va_arg (v,int)); | va_end (v); | return s; | } | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | function prototypes and stuff, but not \xHH hex character constants. | These do not provoke an error unfortunately, instead are silently treated | as an "x". The following induces an error, until -std is added to get | proper ANSI mode. Curiously \x00 != x always comes out true, for an | array size at least. It is necessary to write \x00 == 0 to get something | that is true only with -std. */ | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | inside strings and character constants. */ | #define FOO(x) 'x' | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | | int test (int i, double x); | struct s1 {int (*f) (int a);}; | struct s2 {int (*f) (double a);}; | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | int, int); | | // Does the compiler advertise C99 conformance? | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L | # error "Compiler does not advertise C99 conformance" | #endif | | #include | extern int puts (const char *); | extern int printf (const char *, ...); | extern int dprintf (int, const char *, ...); | extern void *malloc (size_t); | | // Check varargs macros. These examples are taken from C99 6.10.3.5. | // dprintf is used instead of fprintf to avoid needing to declare | // FILE and stderr. | #define debug(...) dprintf (2, __VA_ARGS__) | #define showlist(...) puts (#__VA_ARGS__) | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | static void | test_varargs_macros (void) | { | int x = 1234; | int y = 5678; | debug ("Flag"); | debug ("X = %d\n", x); | showlist (The first, second, and third items.); | report (x>y, "x is %d but y is %d", x, y); | } | | // Check long long types. | #define BIG64 18446744073709551615ull | #define BIG32 4294967295ul | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | #if !BIG_OK | #error "your preprocessor is broken" | #endif | #if BIG_OK | #else | #error "your preprocessor is broken" | #endif | static long long int bignum = -9223372036854775807LL; | static unsigned long long int ubignum = BIG64; | | struct incomplete_array | { | int datasize; | double data[]; | }; | | struct named_init { | int number; | const wchar_t *name; | double average; | }; | | typedef const char *ccp; | | static inline int | test_restrict (ccp restrict text) | { | // See if C++-style comments work. | // Iterate through items via the restricted pointer. | // Also check for declarations in for loops. | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | continue; | return 0; | } | | // Check varargs and va_copy. | static bool | test_varargs (const char *format, ...) | { | va_list args; | va_start (args, format); | va_list args_copy; | va_copy (args_copy, args); | | const char *str = ""; | int number = 0; | float fnumber = 0; | | while (*format) | { | switch (*format++) | { | case 's': // string | str = va_arg (args_copy, const char *); | break; | case 'd': // int | number = va_arg (args_copy, int); | break; | case 'f': // float | fnumber = va_arg (args_copy, double); | break; | default: | break; | } | } | va_end (args_copy); | va_end (args); | | return *str && number && fnumber; | } | | | // Does the compiler advertise C11 conformance? | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | # error "Compiler does not advertise C11 conformance" | #endif | | // Check _Alignas. | char _Alignas (double) aligned_as_double; | char _Alignas (0) no_special_alignment; | extern char aligned_as_int; | char _Alignas (0) _Alignas (int) aligned_as_int; | | // Check _Alignof. | enum | { | int_alignment = _Alignof (int), | int_array_alignment = _Alignof (int[100]), | char_alignment = _Alignof (char) | }; | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); | | // Check _Noreturn. | int _Noreturn does_not_return (void) { for (;;) continue; } | | // Check _Static_assert. | struct test_static_assert | { | int x; | _Static_assert (sizeof (int) <= sizeof (long int), | "_Static_assert does not work in struct"); | long int y; | }; | | // Check UTF-8 literals. | #define u8 syntax error! | char const utf8_literal[] = u8"happens to be ASCII" "another string"; | | // Check duplicate typedefs. | typedef long *long_ptr; | typedef long int *long_ptr; | typedef long_ptr long_ptr; | | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. | struct anonymous | { | union { | struct { int i; int j; }; | struct { int k; long int l; } w; | }; | int m; | } v1; | | | int | main (int argc, char **argv) | { | int ok = 0; | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | | | // Check bool. | _Bool success = false; | success |= (argc != 0); | | // Check restrict. | if (test_restrict ("String literal") == 0) | success = true; | char *restrict newvar = "Another string"; | | // Check varargs. | success &= test_varargs ("s, d' f .", "string", 65, 34.234); | test_varargs_macros (); | | // Check flexible array members. | struct incomplete_array *ia = | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | ia->datasize = 10; | for (int i = 0; i < ia->datasize; ++i) | ia->data[i] = i * 1.234; | | // Check named initializers. | struct named_init ni = { | .number = 34, | .name = L"Test wide string", | .average = 543.34343, | }; | | ni.number = 58; | | int dynamic_array[ni.number]; | dynamic_array[0] = argv[0][0]; | dynamic_array[ni.number - 1] = 543; | | // work around unused variable warnings | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | || dynamic_array[ni.number - 1] != 543); | | | _Static_assert ((offsetof (struct anonymous, i) | == offsetof (struct anonymous, w.k)), | "Anonymous union alignment botch"); | v1.i = 2; | v1.w.k = 5; | ok |= v1.i != 5; | | return ok; | } | configure:3234: gcc -std=gnu11 -c -g2 -O2 -std=gnu99 -march=i386 -mtune=i586 conftest.c >&5 cc1.exe: error: unrecognized command line option "-std=gnu11" configure:3234: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU help2man" | #define PACKAGE_TARNAME "help2man" | #define PACKAGE_VERSION "1.49.2" | #define PACKAGE_STRING "GNU help2man 1.49.2" | #define PACKAGE_BUGREPORT "bug-help2man@gnu.org" | #define PACKAGE_URL "https://www.gnu.org/software/help2man/" | /* end confdefs.h. */ | | /* Does the compiler advertise C89 conformance? | Do not test the value of __STDC__, because some compilers set it to 0 | while being otherwise adequately conformant. */ | #if !defined __STDC__ | # error "Compiler does not advertise C89 conformance" | #endif | | #include | #include | struct stat; | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | struct buf { int x; }; | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | static char *e (p, i) | char **p; | int i; | { | return p[i]; | } | static char *f (char * (*g) (char **, int), char **p, ...) | { | char *s; | va_list v; | va_start (v,p); | s = g (p, va_arg (v,int)); | va_end (v); | return s; | } | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | function prototypes and stuff, but not \xHH hex character constants. | These do not provoke an error unfortunately, instead are silently treated | as an "x". The following induces an error, until -std is added to get | proper ANSI mode. Curiously \x00 != x always comes out true, for an | array size at least. It is necessary to write \x00 == 0 to get something | that is true only with -std. */ | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | inside strings and character constants. */ | #define FOO(x) 'x' | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | | int test (int i, double x); | struct s1 {int (*f) (int a);}; | struct s2 {int (*f) (double a);}; | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | int, int); | | // Does the compiler advertise C99 conformance? | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L | # error "Compiler does not advertise C99 conformance" | #endif | | #include | extern int puts (const char *); | extern int printf (const char *, ...); | extern int dprintf (int, const char *, ...); | extern void *malloc (size_t); | | // Check varargs macros. These examples are taken from C99 6.10.3.5. | // dprintf is used instead of fprintf to avoid needing to declare | // FILE and stderr. | #define debug(...) dprintf (2, __VA_ARGS__) | #define showlist(...) puts (#__VA_ARGS__) | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | static void | test_varargs_macros (void) | { | int x = 1234; | int y = 5678; | debug ("Flag"); | debug ("X = %d\n", x); | showlist (The first, second, and third items.); | report (x>y, "x is %d but y is %d", x, y); | } | | // Check long long types. | #define BIG64 18446744073709551615ull | #define BIG32 4294967295ul | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | #if !BIG_OK | #error "your preprocessor is broken" | #endif | #if BIG_OK | #else | #error "your preprocessor is broken" | #endif | static long long int bignum = -9223372036854775807LL; | static unsigned long long int ubignum = BIG64; | | struct incomplete_array | { | int datasize; | double data[]; | }; | | struct named_init { | int number; | const wchar_t *name; | double average; | }; | | typedef const char *ccp; | | static inline int | test_restrict (ccp restrict text) | { | // See if C++-style comments work. | // Iterate through items via the restricted pointer. | // Also check for declarations in for loops. | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | continue; | return 0; | } | | // Check varargs and va_copy. | static bool | test_varargs (const char *format, ...) | { | va_list args; | va_start (args, format); | va_list args_copy; | va_copy (args_copy, args); | | const char *str = ""; | int number = 0; | float fnumber = 0; | | while (*format) | { | switch (*format++) | { | case 's': // string | str = va_arg (args_copy, const char *); | break; | case 'd': // int | number = va_arg (args_copy, int); | break; | case 'f': // float | fnumber = va_arg (args_copy, double); | break; | default: | break; | } | } | va_end (args_copy); | va_end (args); | | return *str && number && fnumber; | } | | | // Does the compiler advertise C11 conformance? | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | # error "Compiler does not advertise C11 conformance" | #endif | | // Check _Alignas. | char _Alignas (double) aligned_as_double; | char _Alignas (0) no_special_alignment; | extern char aligned_as_int; | char _Alignas (0) _Alignas (int) aligned_as_int; | | // Check _Alignof. | enum | { | int_alignment = _Alignof (int), | int_array_alignment = _Alignof (int[100]), | char_alignment = _Alignof (char) | }; | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); | | // Check _Noreturn. | int _Noreturn does_not_return (void) { for (;;) continue; } | | // Check _Static_assert. | struct test_static_assert | { | int x; | _Static_assert (sizeof (int) <= sizeof (long int), | "_Static_assert does not work in struct"); | long int y; | }; | | // Check UTF-8 literals. | #define u8 syntax error! | char const utf8_literal[] = u8"happens to be ASCII" "another string"; | | // Check duplicate typedefs. | typedef long *long_ptr; | typedef long int *long_ptr; | typedef long_ptr long_ptr; | | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. | struct anonymous | { | union { | struct { int i; int j; }; | struct { int k; long int l; } w; | }; | int m; | } v1; | | | int | main (int argc, char **argv) | { | int ok = 0; | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | | | // Check bool. | _Bool success = false; | success |= (argc != 0); | | // Check restrict. | if (test_restrict ("String literal") == 0) | success = true; | char *restrict newvar = "Another string"; | | // Check varargs. | success &= test_varargs ("s, d' f .", "string", 65, 34.234); | test_varargs_macros (); | | // Check flexible array members. | struct incomplete_array *ia = | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | ia->datasize = 10; | for (int i = 0; i < ia->datasize; ++i) | ia->data[i] = i * 1.234; | | // Check named initializers. | struct named_init ni = { | .number = 34, | .name = L"Test wide string", | .average = 543.34343, | }; | | ni.number = 58; | | int dynamic_array[ni.number]; | dynamic_array[0] = argv[0][0]; | dynamic_array[ni.number - 1] = 543; | | // work around unused variable warnings | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | || dynamic_array[ni.number - 1] != 543); | | | _Static_assert ((offsetof (struct anonymous, i) | == offsetof (struct anonymous, w.k)), | "Anonymous union alignment botch"); | v1.i = 2; | v1.w.k = 5; | ok |= v1.i != 5; | | return ok; | } | configure:3247: result: unsupported configure:3265: checking for gcc option to enable C99 features configure:3280: gcc -c -g2 -O2 -std=gnu99 -march=i386 -mtune=i586 conftest.c >&5 configure:3280: $? = 0 configure:3298: result: none needed configure:3363: checking for library containing dlsym configure:3393: gcc -o conftest.exe -g2 -O2 -std=gnu99 -march=i386 -mtune=i586 conftest.c >&5 configure:3393: $? = 0 configure:3413: result: none required configure:3422: checking for library containing bindtextdomain configure:3452: gcc -o conftest.exe -g2 -O2 -std=gnu99 -march=i386 -mtune=i586 conftest.c >&5 ld: ./ccaYLWYA.o: in function `main': l:/h2m/srcs/gnu/help2man-1.49.2/0build/conftest.c:17: undefined reference to `_bindtextdomain' collect2: ld returned 1 exit status configure:3452: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU help2man" | #define PACKAGE_TARNAME "help2man" | #define PACKAGE_VERSION "1.49.2" | #define PACKAGE_STRING "GNU help2man 1.49.2" | #define PACKAGE_BUGREPORT "bug-help2man@gnu.org" | #define PACKAGE_URL "https://www.gnu.org/software/help2man/" | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | char bindtextdomain (); | int | main (void) | { | return bindtextdomain (); | ; | return 0; | } configure:3452: gcc -o conftest.exe -g2 -O2 -std=gnu99 -march=i386 -mtune=i586 conftest.c -lintl >&5 ld: cannot find -lintl collect2: ld returned 1 exit status configure:3452: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU help2man" | #define PACKAGE_TARNAME "help2man" | #define PACKAGE_VERSION "1.49.2" | #define PACKAGE_STRING "GNU help2man 1.49.2" | #define PACKAGE_BUGREPORT "bug-help2man@gnu.org" | #define PACKAGE_URL "https://www.gnu.org/software/help2man/" | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | char bindtextdomain (); | int | main (void) | { | return bindtextdomain (); | ; | return 0; | } configure:3472: result: no configure:3538: checking for a BSD-compatible install configure:3611: result: /dev/env/DJDIR/bin/ginstall -c configure:3626: checking for makeinfo configure:3662: result: makeinfo --no-split configure:3675: checking for install-info configure:3711: result: install-info configure:3724: checking for msgmerge configure:3760: result: /dev/env/DJDIR/bin/msgmerge configure:3773: checking for xgettext configure:3809: result: /dev/env/DJDIR/bin/xgettext configure:3822: checking for po4a-updatepo configure:3858: result: ./../build-aux//missing po4a-updatepo configure:3871: checking for po4a-translate configure:3907: result: ./../build-aux//missing po4a-translate configure:3984: updating cache ./config.cache configure:4069: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by GNU help2man config.status 1.49.2, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on K1O8O1 config.status:732: creating Makefile configure:5153: WARNING: unrecognized options: --disable-dependency-tracking, --without-libiconv-prefix, --without-libintl-prefix, --enable-silent-rules ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_c_compiler_gnu=yes ac_cv_enable_nls=no ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=i586-pc-msdosdjgpp ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=i586-pc-msdosdjgpp ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_exeext=.exe ac_cv_func_fork=no ac_cv_func_fork_works=no ac_cv_func_pipe=yes ac_cv_func_vfork=no ac_cv_func_vfork_works=no ac_cv_module_Locale__gettext=no ac_cv_objext=o ac_cv_path_BZIP2=bzip2 ac_cv_path_CAT=cat ac_cv_path_COMPRESS=compress ac_cv_path_DVIPS=dvips ac_cv_path_EGREP=egrep ac_cv_path_EMACS=emacs ac_cv_path_FGREP=fgrep ac_cv_path_GREP=grep ac_cv_path_GROFF=groff ac_cv_path_GZIP=gzip ac_cv_path_INSTALL_INFO=install-info ac_cv_path_M4=m4 ac_cv_path_MAKEINFO=makeinfo ac_cv_path_MKTEMP=mktemp ac_cv_path_MSGFMT=/dev/env/DJDIR/bin/msgfmt ac_cv_path_MSGMERGE=/dev/env/DJDIR/bin/msgmerge ac_cv_path_MV=mv ac_cv_path_NROFF=nroff ac_cv_path_PERL=perl ac_cv_path_PIC=pic ac_cv_path_PO4A_TRANSLATE='./../build-aux//missing po4a-translate' ac_cv_path_PO4A_UPDATEPO='./../build-aux//missing po4a-updatepo' ac_cv_path_PR=pr ac_cv_path_PR_PROGRAM=pr ac_cv_path_PS2PDF=ps2pdf ac_cv_path_RM=rm ac_cv_path_ROFF=groff ac_cv_path_SED=sed ac_cv_path_SH=sh ac_cv_path_SOELIM=soelim ac_cv_path_SORT=sort ac_cv_path_TAR=tar ac_cv_path_TEST_MINUS_S_SH=bash ac_cv_path_TEST_SHELL=bash ac_cv_path_TEXI2DVI=texi2dvi ac_cv_path_TEXI2PDF=texi2pdf ac_cv_path_UNCOMPRESS=gunzip ac_cv_path_UNZIP=unzip ac_cv_path_WGET=wget ac_cv_path_XGETTEXT=/dev/env/DJDIR/bin/xgettext ac_cv_path_XMLLINT=xmllint ac_cv_path_XSLTPROC=xsltproc ac_cv_path_ZCAT=zcat ac_cv_path_ZIP=zip ac_cv_path_ac_pt_XML_CONFIG=xml2-config ac_cv_path_ed_PROGRAM=ed ac_cv_path_lt_DD=dd ac_cv_path_mkdir='mkdir -p' ac_cv_prog_LN_S='cp -pf' ac_cv_prog_PERL=perl ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_cc_c11=no ac_cv_prog_cc_c99= ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= ac_cv_search_bindtextdomain=no ac_cv_search_dlsym='none required' gl_cv_absolute_inttypes_h=/dev/env/DJDIR/include/inttypes.h gl_cv_absolute_stdint_h=/dev/env/DJDIR/include/stdint.h gl_cv_absolute_stdlib_h=/dev/env/DJDIR/include/stdlib.h gl_cv_absolute_string_h=/dev/env/DJDIR/include/string.h gl_cv_absolute_sys_stat_h=/dev/env/DJDIR/include/sys/stat.h gl_cv_absolute_sys_time_h=/dev/env/DJDIR/include/sys/time.h gl_cv_absolute_unistd_h=/dev/env/DJDIR/include/unistd.h gl_cv_absolute_wchar_h=/dev/env/DJDIR/include/wchar.h gl_cv_absolute_wctype_h=/dev/env/DJDIR/include/wctype.h gl_cv_func_printf_enomem=yes gl_cv_func_sleep_works=yes gl_cv_socklen_t_equiv=int lt_cv_path_LD=ld lt_cv_path_NM=nm ## ----------------- ## ## Output variables. ## ## ----------------- ## CC='gcc' CFLAGS='-g2 -O2 -std=gnu99 -march=i386 -mtune=i586' CPPFLAGS='' DEFS='-DPACKAGE_NAME=\"GNU\ help2man\" -DPACKAGE_TARNAME=\"help2man\" -DPACKAGE_VERSION=\"1.49.2\" -DPACKAGE_STRING=\"GNU\ help2man\ 1.49.2\" -DPACKAGE_BUGREPORT=\"bug-help2man@gnu.org\" -DPACKAGE_URL=\"https://www.gnu.org/software/help2man/\"' ECHO_C='' ECHO_N='-n' ECHO_T='' EXEEXT='.exe' INSTALL_DATA='${INSTALL} -m 644' INSTALL_INFO='install-info' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' LDFLAGS='' LIBOBJS='' LIBS='' LTLIBOBJS='' MAKEINFO='makeinfo --no-split' MSGFMT='/dev/env/DJDIR/bin/msgfmt' MSGMERGE='/dev/env/DJDIR/bin/msgmerge' OBJEXT='o' PACKAGE_BUGREPORT='bug-help2man@gnu.org' PACKAGE_NAME='GNU help2man' PACKAGE_STRING='GNU help2man 1.49.2' PACKAGE_TARNAME='help2man' PACKAGE_URL='https://www.gnu.org/software/help2man/' PACKAGE_VERSION='1.49.2' PATH_SEPARATOR=':' PERL='perl' PO4A_TRANSLATE='./../build-aux//missing po4a-translate' PO4A_UPDATEPO='./../build-aux//missing po4a-updatepo' SHELL='/bin/sh' XGETTEXT='/dev/env/DJDIR/bin/xgettext' ac_ct_CC='gcc' auxdir='./../build-aux/' bindir='${exec_prefix}/bin' build_alias='i586-pc-msdosdjgpp' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='${prefix}' extra_extract_args='' extra_make_all='' extra_make_install='' host_alias='i586-pc-msdosdjgpp' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/dev/env/DJDIR' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "GNU help2man" #define PACKAGE_TARNAME "help2man" #define PACKAGE_VERSION "1.49.2" #define PACKAGE_STRING "GNU help2man 1.49.2" #define PACKAGE_BUGREPORT "bug-help2man@gnu.org" #define PACKAGE_URL "https://www.gnu.org/software/help2man/" configure: exit 0