https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119216

            Bug ID: 119216
           Summary: libgcobol support check in configure is broken
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: cobol
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
            Blocks: 119211
  Target Milestone: ---

I always see:
```
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libphobos support... yes
checking for libgcobol support... no
```

Even on just bare `./configure`.

Adding `set -x` and `set +x` above/below the check, I see:
```
+ test -d ./libgcobol
+ test x = x
+ printf %s\n configure:3546: checking for libgcobol support
+ printf %s checking for libgcobol support...
checking for libgcobol support... + srcdir=./libgcobol
+ . ./libgcobol/configure.tgt
+ LIBGCOBOL_SUPPORTED=no
+ test x = x8
+ test no != yes
+ printf %s\n configure:3552: result: no
+ printf %s\n no
no
+ noconfigdirs= gm2tools target-libgcobol
+ set +x
```

We need some `AC_CHECK_SIZEOF([void *])` in the top-level configure.ac before
the libgcobol support check to guarantee that ac_cv_sizeof_void_p is defined.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119211
[Bug 119211] [15 Regression] Cobol GCC 15 release checklist

Reply via email to