Re: About libdir for 64-bit

2013-07-18 Thread Thomas Jahns
On 07/17/13 22:11, Russ Allbery wrote: Probing sizeof(long) with the configure compiler does a fairly good job for the most common cases, which is why that's what the macro I posted does. In particular, it works for the common cases of -m32 and -m64 on hosts with both library paths. How does

Re: Invocation of compiler by AC_LINK_IFELSE

2013-07-18 Thread Thomas Jahns
On 07/18/13 12:59, Miguel Guedes wrote: I am using AC_LANG_PROGRAM wrapped inside AC_LINK_IFELSE to test for libboost_system and it invokes gcc/g++ in the following way: configure:3975: g++ -o conftest -g -O2 -lboost_system conftest.cpp The above results in a few errors and doesn't link

Re: Issue with AC_LANG_PROGRAM

2013-07-18 Thread Eric Blake
On 07/18/2013 03:36 AM, Miguel Guedes wrote: Hello, I am using AC_LANG_PROGRAM to test for libboost_system and it invokes gcc/g++ in the following way: configure:3975: g++ -o conftest -g -O2 -lboost_system conftest.cpp The above results in a few errors and doesn't link even though

Re: Issue with AC_LANG_PROGRAM

2013-07-18 Thread Eric Blake
On 07/18/2013 06:20 AM, Earnie Boyd wrote: On Thu, Jul 18, 2013 at 8:08 AM, Eric Blake wrote: On 07/18/2013 03:36 AM, Miguel Guedes wrote: Hello, I am using AC_LANG_PROGRAM to test for libboost_system and it invokes gcc/g++ in the following way: configure:3975: g++ -o conftest -g -O2