The very first AC_CHECK for HEADERS found by autoconf does pull in the AC_REQUIRE(AC_PROG_EGREP) configure code. If we skip that configure part, which we do when threading was disabled, EGREP is unset for any subsequent check, breaking the checks for function prototypes at least. So we better do the AC_HEADER_STDC before any other AC_CHECK_HEADERS. --- configure.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure.in b/configure.in index 98dd5c5..6621688 100644 --- a/configure.in +++ b/configure.in @@ -411,6 +411,8 @@ ac_link="$ac_link "'$EXTRA_LIBS' AC_SUBST(EXTRA_CXXFLAGS) ac_compile="$ac_compile "'$EXTRA_CXXFLAGS' +AC_HEADER_STDC + # # thread support # @@ -1381,7 +1383,6 @@ CURSES_LIBS="$LIBS $SHLIBS" # Checks for header files. # -AC_HEADER_STDC AC_CHECK_HEADERS(fcntl.h unistd.h sys/select.h strings.h float.h ieeefp.h) AC_CHECK_HEADERS(sys/un.h netinet/in.h arpa/inet.h netdb.h dlfcn.h dl.h) AC_CHECK_HEADERS(netinet/tcp.h stdlib.h sys/time.h sys/timeb.h sunmath.h sys/stat.h) -- 2.19.2
0001-run-AC_HEADER_STDC-check-early-for-disabled-threads.patch.gz
Description: application/gzip
_______________________________________________ Mico-devel mailing list Mico-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mico-devel