Hi,

looks like the autoconf-archive is too old. I guess the best way to go is to add the macro as a local macro into the m4 directory. I will do that.


Tommi


Am 27.10.2014 um 12:35 schrieb Leandro Santiago:
That's weird, because in my Ubuntu 12.04 I do have that package installed. It's named autoconf-archive, but does not contain any macro AX_CXX_COMPILE_STDCXX_11. The closest I have here is AC_CXX_COMPILE_STDCXX_0X in file ax_cxx_compile_stdcxx_0x.m4. Perhaps it's a bit outdated...

On 23 October 2014 14:34, Tommi Mäkitalo <[email protected] <mailto:[email protected]>> wrote:

    Hi,

    right. I should have mentioned it. I added that macro to cxxtools,
    tntnet and tntdb so that C++11 is used if available. They do not
    yet use any features but using C++11 mode helps the compiler
    optimizing the code. I benchmarked it and it really makes the code
    faster. It do not affect compatibility to C++03 though.

    The marco can be found in the autoconf-archive. You should install
    that package on ubuntu. At least under fedora the package is named
    exactly so.


    Tommi

    Am 23.10.2014 um 17:46 schrieb Leandro Santiago:
    After pulling code from master branch, I have an error on
    configure script. I am using Ubuntu 12.02 with gcc 4.8.1. If I
    comment AX_CXX_COMPILE_STDCXX_11 on configure.ac
    <http://configure.ac> and regenerate configure, everything works
    fine.

    ...
    checking if arm-linux-gnueabihf-g++ supports -c -o file.o... yes
    checking if arm-linux-gnueabihf-g++ supports -c -o file.o...
    (cached) yes
    checking whether the arm-linux-gnueabihf-g++ linker
    (/usr/arm-linux-gnueabihf/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... (cached) GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    ./configure: line 16222: syntax error near unexpected token `noext,'
    ./configure: line 16222: `AX_CXX_COMPILE_STDCXX_11(noext, optional)'
    make: *** [config.status] Error 2

-- Sent from my mind


    
------------------------------------------------------------------------------


    _______________________________________________
    Tntnet-general mailing list
    [email protected]  
<mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/tntnet-general


    
------------------------------------------------------------------------------

    _______________________________________________
    Tntnet-general mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/tntnet-general




--
Sent from my mind


------------------------------------------------------------------------------


_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

------------------------------------------------------------------------------
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to