On 11/16/2010 10:53 AM, Michael Olbrich wrote:
>> +@@ -356,21 +326,6 @@
>> > + [
>> > +     AC_MSG_CHECKING([for htonll])
>> > +     have_htoll="no"
>> > +-    AC_RUN_IFELSE([
>>     
> AC_COMPILE_IFELSE
>
>   
>> > +-       AC_LANG_PROGRAM([
>> > +-#include <sys/types.h>
>> > +-#include <netinet/in.h>
>> > +-#ifdef HAVE_INTTYPES_H
>> > +-#include <inttypes.h> */
>> > +-#endif
>> > +-       ], [
>> > +-          return htonll(0);
>> > +-       ])
>> > +-    ], [
>> > +-      have_htoll="yes"
>> > +-      AC_DEFINE([HAVE_HTONLL], [1], [Have ntohll])
>> > +-    ])
>> > +-
>> > +     AC_MSG_RESULT([$have_htoll])
>> > + ])
>>     

I changed it to use AC_COMPILE_IFELSE but it passes incorrectly. See
output from config.log:
configure:5666: checking for htonll
configure:5690: i686-unknown-linux-gnu-gcc -std=gnu99 -c -g -O2 -pthread
-isystem /home/ptxdist2/workspace/platform-atom/sysroot-target/include
-isystem
/home/ptxdist2/workspace/platform-atom/sysroot-target/usr/include
conftest.c >&5
conftest.c:30:23: warning: extra tokens at end of #include directive
conftest.c: In function 'main':
conftest.c:37: warning: implicit declaration of function 'htonll'
configure:5690: $? = 0
configure:5700: result: yes

Any suggestions?

Thanks,
George


-- 
ptxdist mailing list
[email protected]

Reply via email to