wrong compile options for xlc_r on AIX 5.1
Submitted by j.a..@..ing.de
Link to original bug (#377781)
Description
xlc_r compiles and returns 0 even if it does some of the command line optios do not work. That's why configure thinks that -pthread is correct, although xlc_r interprets it as xlc_r -p -t -r -e -a -d
configure:33747: checking for thread implementation configure:33756: result: posix configure:33850: xlc_r -qlanglvl=extc89 -q32 -I/usr/local/gettext/include -I/usr/local/libiconv/include -I/usr/local/gtk2/include -o conftest -g -pthread -I/usr/local/include -I/usr/local/gettext/include -I/usr/local/libiconv/include -I/usr/local/gtk2/include -L/usr/local/gtk2/lib -L/usr/local/libiconv/lib -L/usr/local/gettext/lib -L/usr/local/lib conftest.c -lintl -liconv >&5 xlc_r: 1501-210 command option t contains an incorrect subargument configure:33853: $? = 0 configure:33855: ./conftest configure:33858: $? = 0 xlc_r: 1501-210 command option t contains an incorrect subargument configure:33976: checking thread related cflags configure:33978: result: -pthread
The compiler complains about an incorrect subargument for '-t', but continues without an error.
I think, configure should not use its normal heuristic for pthread with the IBM compilers.
Version: 2.12.x