Follow-up Comment #4, sr#110660 (group autoconf): >From this minimal configure.ac
AC_INIT([test], [1.0]) AC_PROG_CC AC_CHECK_SIZEOF([size_t]) AC_CONFIG_HEADERS([config.h]) AC_OUTPUT autoconf 2.71 generates a configure script which successfully detects the size of size_t when given a compiler that supplies stddef.h and stdint.h but not stdlib.h: $ ./configure --host=aarch64-unknown-none CC="gcc -ffreestanding -nostdinc -nostdlib -nostartfiles -isystem /usr/lib/gcc/aarch64-unknown-linux-gnu/12.1.0/include" checking for aarch64-unknown-none-gcc... gcc -ffreestanding -nostdinc -nostdlib -nostartfiles -isystem /usr/lib/gcc/aarch64-unknown-linux-gnu/12.1.0/include checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc -ffreestanding -nostdinc -nostdlib -nostartfiles -isystem /usr/lib/gcc/aarch64-unknown-linux-gnu/12.1.0/include accepts -g... yes checking for gcc -ffreestanding -nostdinc -nostdlib -nostartfiles -isystem /usr/lib/gcc/aarch64-unknown-linux-gnu/12.1.0/include option to enable C11 features... none needed checking for stdio.h... no checking for stdlib.h... no checking for string.h... no checking for inttypes.h... no checking for stdint.h... yes checking for strings.h... no checking for sys/stat.h... no checking for sys/types.h... no checking for unistd.h... no checking size of size_t... 8 configure: creating ./config.status config.status: creating config.h I also manually inspected configure and verified that it would not have malfunctioned if stdint.h hadn't been available. Since stddef.h must be provided even by a freestanding implementation of C89, I don't think there's anything left to do for this bug report and I'm going to go ahead and close it. Please file new bugs if you encounter any more problems with running configure scripts against freestanding implementations of C. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/support/?110660> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/