News for hackers. Stuff that matters.
Re:A Simple Makefile for Medium-Sized C/C++ Projects by rwmj on Friday August 26, 2016 @10:13AM (#12366377)
Autotools does do all of those things. I'm not a particular fan of it either, but when I'm packaging software for a Linux distro then I'd rather see autotools or cmake being used instead of some crappy custom build system that will require patching to make it work.

There is room for someone to come up with a good build system. It had better do everything autotools and cmake do, and be well documented and widely used, so there's a rather large barrier to entry.

Re:A Simple Makefile for Medium-Sized C/C++ Projects by _ph_ on Friday August 26, 2016 @10:56AM (#12366700)
Whenever "configure" is looking for a fortran compiler in a clearly non-fortran program, one has to wonder why no one fixes the configure scripts. From all I learned it is, because the underlying scripts are close to unmaintainable. So from that perspective, a better build tooling should be a high priority.
Re:A Simple Makefile for Medium-Sized C/C++ Projects by IshKebab on Friday August 26, 2016 @12:40PM (#12367410)
No one fixes the configure scripts because they're thousands of lines of code in about three different archaic languages that nobody knows or cares about.
Re:A Simple Makefile for Medium-Sized C/C++ Projects by davexunit on Friday August 26, 2016 @12:47PM (#12367480)
Fix configure.ac, not configure which is effectively a binary.
Re:A Simple Makefile for Medium-Sized C/C++ Projects by _RPM on Friday August 26, 2016 @10:17AM (#12366407)
Auto tools is great. To compile all you do is

    ./configure
      make
      make install
It couldn't be simpler. Even though I am part of the GitHub generation, I don't see why so many of my peers hate it. I actually like it.
Re:A Simple Makefile for Medium-Sized C/C++ Projects by wyldfire on Friday August 26, 2016 @10:21AM (#12366442)
This is kinda hilarious because, yes, "Autotools is great" [as a consumer]. But autotools and m4 is kinda awful to write IMO.
Re:A Simple Makefile for Medium-Sized C/C++ Projects by arglwarg on Friday August 26, 2016 @10:23AM (#12366464)
... and autotools is actively hate-inducing if you have to debug it.
Re:A Simple Makefile for Medium-Sized C/C++ Projects by pja on Friday August 26, 2016 @10:22AM (#12366453)
autotools is pretty great for the end-user who wants to compile your code or the distributor who wants to package it up for Debian or whatever.

It’s a crawling horror for the programmer that wants to use autotools as the build solution for their code however, which is the topic under discussion.

Re:A Simple Makefile for Medium-Sized C/C++ Projects by flohofwoe on Friday August 26, 2016 @10:29AM (#12366503)
This only works in the Unix world, on Mac only for command line tools (but only after installing autoconf and make), and not at all on Windows unless you install a complete Unix environment (cygwin or mingw).
Re:A Simple Makefile for Medium-Sized C/C++ Projects by slrz on Friday August 26, 2016 @11:59AM (#12367114)
Why would it only work with command line programs on the Mac? That's definitely not true, unless something changed very recently.

Also, you don't need autotools itself to build a autotoolized program. The generated configure script is portable sh.

Re:A Simple Makefile for Medium-Sized C/C++ Projects by _RPM on Friday August 26, 2016 @01:34PM (#12367841)
Not really. the end user doesn't need autotools installed actually. To build the configure script from the "configure.in" file, you need autotools. Go ahead and try!
Re:A Simple Makefile for Medium-Sized C/C++ Projects by GFK_of_xmaspast on Friday August 26, 2016 @10:33AM (#12366532)
That's the ideal situation, yes, but god help you when something goes wrong.
Re:A Simple Makefile for Medium-Sized C/C++ Projects by _RPM on Friday August 26, 2016 @11:03AM (#12366742)
It's not that hard. I recently had to debug a memcached configure.in script. But, I consider myself a C programmer, so that fact might be source of bias.