GNOME Bugzilla – Bug 428375
Broken AC_TRY_RUN program makes ./configure fail
Last modified: 2007-04-11 20:42:00 UTC
Please describe the problem: While trying to track down yet another use-before-initialize bug in evo, I decided to update to evolution-data-server 1.10.1 hoping it was already fixed. However, that version fails at configure in the iconv test. The code does: AC_TRY_RUN([ #include <iconv.h> int main (int argc, char **argv) { iconv_t cd; cd = iconv_open ("UTF-8", "ISO-8859-1"); } ], ac_cv_libiconv=yes, ac_cv_libiconv=no, ac_cv_libiconv=no) Checking the return code of a program which doesn't bother returning any value from main() gets you all the results you expect. Of course, doing a TRY_RUN for just checking which library iconv_open() is in is dubious anyway. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
reopening bug 388789, copying your comment here to bug 388789, and adding you to the CC list of bug 388789. *** This bug has been marked as a duplicate of 388789 ***
(Technically this was a duplicate of bug 388788, not 388789. But, whatever.)