Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Error in configure when examining "size_t"



Hello,
I've spotted on 5.2 / gentoo and HEAD / OS X that this appears in config.log:

configure:4685: checking for unistd.h
configure:4685: gcc -c -g -Wall -O0 -I/usr/local/include conftest.c >&5
configure:4685: $? = 0
configure:4685: result: yes
configure:4697: checking for size_t
configure:4697: gcc -c -g -Wall -O0 -I/usr/local/include conftest.c >&5
configure:4697: $? = 0
configure:4697: gcc -c -g -Wall -O0 -I/usr/local/include conftest.c >&5
conftest.c:68:21: error: expected expression
if (sizeof ((size_t)))
                    ^
1 error generated.
configure:4697: $? = 1


Don't know from where this comes from. The only reference that I've found is the following from configure (not configure.ac):


ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi

--  
Sebastian Gniazdowski
psprint /at/ zdharma.org



Messages sorted by: Reverse Date, Date, Thread, Author