News for hackers. Stuff that matters.
Re:Zlib-ng: a performance-oriented fork of zlib by stefantalpalaru on Friday June 05, 2015 @10:01AM (#9665539)
> What platforms do we need to get rid of to get rid of autoconf/automake/configure and use e.g. CMake instead?

Why would you want that? Autotools is the devil we know. CMake has its own problems and from a statistical sample of one project implementing both, I came to the conclusion that CMake is more frustrating than Autotools when you need to do something unusual.

Re:Zlib-ng: a performance-oriented fork of zlib by tanderson92 on Friday June 05, 2015 @10:11AM (#9665594)
Exactly. autotools is exceptionally well designed for dealing with more exotic use cases like cross compiling. When designing a cross-compiling linux distribution(http://exherbo.org/docs/multiarch.txt) we discovered that autotools is by far the easiest to deal with when it comes to arbitrary host & build targets, compilers, etc. I would be even bolder and say that:

Those who do not understand autotools are doomed to reinvent it, poorly.

Re:Zlib-ng: a performance-oriented fork of zlib by danieldk on Friday June 05, 2015 @10:43AM (#9665800)
Exactly. autotools is exceptionally well designed for dealing with more exotic use cases like cross compiling.

...and it cannot deal with non-exotic use cases like non-UNIX environments (think Windows + Visual Studio) well at all. In contrast, with CMake you can generate an nmake file or Visual Studio project with one command.

Re:Zlib-ng: a performance-oriented fork of zlib by JoshTriplett on Friday June 05, 2015 @11:05AM (#9665939)
On the other hand, with autotools you can cross-compile for Windows using MinGW.
Re:Zlib-ng: a performance-oriented fork of zlib by Sanddancer on Friday June 05, 2015 @01:24PM (#9666709)
Just like someone under unix could always just use mono's xbuild to build a project using visual studio's .vsproj files. Course, people tend to get grumpy when you tell them that they have to jump through hoops to use your project, just like your suggestion...
Re:Zlib-ng: a performance-oriented fork of zlib by nitrogen on Friday June 05, 2015 @12:09PM (#9666269)
I use CMake to cross-compile firmware for my home automation hardware. It doesn't seem too bad, just a single file shared across all projects that defines the compiler binaries and settings. I like it much better than autotools.
Re:Zlib-ng: a performance-oriented fork of zlib by detaro on Friday June 05, 2015 @12:17PM (#9666316)
Do you have an example online somewhere? This might be useful to have as a reference in the future.
Re:Zlib-ng: a performance-oriented fork of zlib by bodyfour on Friday June 05, 2015 @01:06PM (#9666607)
Re:Zlib-ng: a performance-oriented fork of zlib by tanderson92 on Friday June 05, 2015 @01:52PM (#9666871)
Note that autotools handles all that (referencing also your link in another child comment) for you with no extra work. Writing a autoconf script for a native architecture means your project should compile for a cross arch.

It is for that reason I much prefer autotools, especially at the distribution level where you really don't want to be patching things. CMake can work, but I have had to do more patching for CMake build systems than I have had to for autotools; on that basis I consider autotools "better", at least for our use case.

Re:Zlib-ng: a performance-oriented fork of zlib by danieldk on Friday June 05, 2015 @10:40AM (#9665786)
I came to the conclusion that CMake is more frustrating than Autotools when you need to do something unusual.

Unusual in terms of...? If I have learnt anything from Go, Java (per Maven), etc. it's that the far majority of project don't need to do something unusual.

Conversely, if you give people the room to do unusual things, they will.

Re:Zlib-ng: a performance-oriented fork of zlib by astrodust on Friday June 05, 2015 @02:52PM (#9667284)
CMake. Ugh. It solves some problems and creates many, many more in the process.

There's a certain simplicity from the perspective of the user that configure && make && make install works most of the time.

CMake requires a lot of effort to get running by comparison.