broken ac_fn_c_check_type function in configure script

2012-04-25 Thread John Spencer
this check has 2 issues: a) it does the check twice if the first test succeeds, wasting precious time b) it uses sizeof(( $2 )) in the second ac_fn_c_try_compile invocation which is invalid C root:/src$ cat test.c typedef unsigned long size_t; int main () { if (sizeof ((size_t))) return

Re: broken ac_fn_c_check_type function in configure script

2012-04-25 Thread Bojan Smojver
On Wed, 2012-04-25 at 21:38 +0200, John Spencer wrote: a) it does the check twice if the first test succeeds, wasting precious time b) it uses sizeof(( $2 )) in the second ac_fn_c_try_compile invocation which is invalid C From what I can tell, both of these things are the consequence of the