autotools

Why buildtools like AutoTools?

Recently, I switched my development environment to LINUX from Windows. I have only used Visual Studio so far for C++ development. So many concepts like make, autotools are new to me. I have read GNU makefile documentation and got almost an idea about it. But I am kinda confused about autotools. AFAIK, makefiles are used to make the buil...

unit test build files

What are the best policies for unit testing build files? The reason I ask is my company produces highly reliable embedded devices. Software patches are just not an option, as they cost our customers thousands to distribute. Because of this we have very strict code quality procedures(unit tests, code reviews, tracability, etc). Those ...

How do I build one autotools project against another autotoolset project that is not installed?

Say I have two autotools projects: libmyutils libmypackage The libmypackage library has a dependency on libmyutils. Is there a way to have libmypackage link to and reference the libmyutils package without it actually being installed? Or do I have to actually install libmyutils in order for libmypackage to access it? Example: # Cont...

Links generated by autotools should be replaced before uploading?

My main question is that the autotools created links to INSTALL, COPYING, missing, install-sh, and depcomp. When I tried to view them I saw that they were uploaded as links so I replaced them with real files so they are viewable. Am I missing something fundamental? When I unpack my gz file from 'make dist' this is what it looks like: ...

How do I prevent autotools from re-generating configure script automatically?

Sometimes due to the SCM not strictly remembering the timestamp of files the generated Makefile will think that it needs to re-run "autoreconf -i" or equivalent to re-generate Makefile.in from Makefile.am, configure from configure.ac, etc.. How do I prevent this? I want to prevent it because it causes these problems: when creating a ...

What is the normal way of dealing with non-standard library locations in an autoconf script?

I'm trying to use the GNU autoconf/automake toolchain for the first time, so the answer to my question might be trivial. The program needs OpenGL/GLUT where the headers and libraries are installed in a non standard location. I found these macros that should do all the checking for me. I'm simply calling it with *AX_CHECK_GLUT*. How do ...

Compiling fish shell under Cygwin?

Has anyone been able to correctly compile fish under Cygwin? I found this post about modifying configure.ac but I'm getting all sorts of errors. The usual configure, make, make install isn't working for me, maybe I'm doing something wrong here... Can someone please walk me through how to get it to compile? ...

Refactoring build system to use Autotools

Over the past couple of days I have been reading into using autotools to build my project instead of the Makefiles I have pieced together over the past couple of months. Unfortunately I have not found an example that gave me enough insight towards how my project structure is currently. I have three libraries that are included in the app...

Autoconf compilation of dependency before application

I have been tooling around with autotools for the past couple of days, and finally have made significant progress. One problem I am having is that I have two libraries that need to be compiled before the main application code. I'm not quite sure how to do this. My directory structure is below and a snippet from my configure.ac as well. ...

Bumping version numbers for new releases in associated files (documentation)

I would be interested to in knowing how you out there handle the bumping the version number for new releases issue. How do you handle the version number in associated files like man pages, etc. The software is build with the gnu tool chain so autoconf, automake, etc are available and used for the version number of the application. So t...

Autotools library and object file output control

My goal is to have all object files built in a .objs directory instead of the root of the Makefile, and to have the binaries (and libraries) copied into the project's bin/ directory. But I have been unable to find any resources to explain how to do this. How would I go about doing this? Here is my configure.ac and src/Makefile.am - I ha...

How to test a C++ library usability in configure.in?

Hi, I'm working on a C++ project on GNU/Linux and I'm looking for a way to test the existence and usability of IBM Informix's library with the Autotools - namely, editing a configure.in. I don't have experience with AutoTools, so basically I'm picking up from the project's configure.in et al. scripts and copying&changing where I feel ne...

How often do I run autoconf?

Hey, In my company I'm currently working on creating a Debian deb package out of a 3rd party library. The library is built using Autotools. I have never worked with Autotools before and I'm having some hard time. Library sources contain configure.in and Makefile.am files and m4/ directory. I am able to build the library using this seque...

What is the best way to AC_CHECK_LIB a library that has additional external dependencies?

I've written a library that has a dependency on libxml++ and curl and I am having a hard time figuring out how to use AC_CHECK_LIB on my library in another package I've written. The config.log file for the new package indicates that there are undefined references to curl_* and xmlpp::*. I have PKG_CHECK_MODULES setup for libxml++ and cu...

In very simple gtk2 c app, problem setting up gnu build tools

UPDATE: First problem solved, second one described at the bottom of this post. UPDATE2: Second problem solved as well. I'm trying to learn about setting up GNU build tools (autoconf/automake) for a very simple GTK+2 C application. I've followed this tutorial and this one that deals with sub directories, but I'm running into a problem ...

LTLIBRARIES: mv *.Tpo *.Plo, but the former doesn't exist and the latter already does.

I'm doing a pretty straight-forward conversion of an existing library (libtcod) to Autotools (for OS X happiness). Unfortunately, when I switch my Makefile.am's lib_LIBRARIES rule to lib_LTLIBRARIES, the build goes from successful to un. Excerpt from the output below: Making all in . make[1]: Nothing to be done for `all-am'. Making al...

Regenerate .Plo files without running ./configure

Hello! I'm trying to dig in one autotools-based project, kind of big in fact. I'm working on a small part of it, a subdirectory. And I need to add/move/remove files and directories constantly inside this little part. Running ./configure on top-level every time not only time-consuming, but causes the whole object tree to become invalid ...

Is there a terminal tool to automatically generate autoconf/automake makefiles for a Vala project?

I am trying to create a Vala project to see how i like developing with the language as a possible replacement for Mono. I think that the automake stuff can be used to generate a project template with all the necessary files (sans my .vala code). Any help would be appreciated. ...

How do I get autotools to compile with the Intel compiler?

I want my code to compile with the Intel compiler(s) or with gcc/g++ depending on a configure argument. Is this possible? What do I need to put in my configure.ac and Makefile.am files to make this happen? ...

How to add and implement configure flags in Autotools?

A portion of our research group's program has auxiliary functionality provided by ctemplate library. On our dated cluster, we can not build the software due to compilation , so I would like to separate this functionality and control whether it is included or not via a configure flag, such as --disable-ctemplate. The software, written in...