Questions tagged [autotools]

Autotools is a suite of programming tools (mainly autoconf, automake, and libtool) designed to assist in making source-code packages portable to many Unix-like systems.

Consider adding one of the more specific tags below to a question.

Related tags:

1517 questions
10
votes
1 answer

Enforce strict C99 in Autoconf project

I have a program written in C and it uses Autoconf. It uses AC_PROG_CC_C99 in configure.ac which when used with gcc translates to the -std=gnu99 compiler option. The program is written somewhat strictly according to the C99 specification and does…
John X
  • 101
  • 3
9
votes
3 answers

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…
f.ederi.co
  • 145
  • 1
  • 7
9
votes
3 answers

What does the gcc -R parameter do?

I am trying to run an autotools configure script for the bson-cpp project, and it fails because it cannot determine what flags it needs to compile with boost_filesystem. A quick look at confg.log shows: g++ -o conftest -g -O2 -pthread …
ctrlc-root
  • 1,049
  • 1
  • 15
  • 22
9
votes
1 answer

Hello World Library using autotools

Creating bin program is really easy using autotools I need to just define two files. `Makefile.am' bin_PROGRAMS = hello hello_SOURCES =…
Vivek Goel
  • 22,942
  • 29
  • 114
  • 186
9
votes
3 answers

autotools: force make not to rebuild configure/Makefile

I have a project with autotools: automake, autoconf. I want to prohibit make from remaking files configure, Makefile.in, etc; just to do compile job. Some of files are edited by hand, and I know that I should not to do this. (Or the project was…
osgx
  • 90,338
  • 53
  • 357
  • 513
9
votes
1 answer

autogen.sh: You need gtk-doc to build this package

I want to compile LXDE's libfm from source, but when I run ./autogen.sh, it fails with this error: You need gtk-doc to build this package.
sashoalm
  • 75,001
  • 122
  • 434
  • 781
9
votes
1 answer

Cross-compile a gnulib based project to MinGW

I am trying to cross-compile this project to MinGW. The project uses autotools as the build system, and depends on libcurl, CUnit, Jansson and some gnulib modules. I have all the dependancies compiled for x86_64-w64-mingw32 and installed under…
Abdelhakim AKODADI
  • 1,556
  • 14
  • 22
9
votes
2 answers

AS_IF and AC_MSG_ERROR: error: possibly undefined macro

I encounter such errors when trying to build libnice-0.1.10. For solution, I am following possibly undefined macro: AC_MSG_ERROR, but still not getting there. some program version uname: 3.5.0-23-generic m4: 1.4.16 automake: 1.14.1 autoconf:…
user180574
  • 5,681
  • 13
  • 53
  • 94
9
votes
1 answer

Relative or independent paths in libtool .la file

My .la file has full pathnames in both the dependency_libs= section and the libdir= section which makes it difficult to copy my libraries to a different machine (same arch but different path structure). What is the solution to this, besides having…
s g
  • 5,289
  • 10
  • 49
  • 82
9
votes
1 answer

Automake not generating Makefile.in in subdirs

First off I just want to say, I'm a total newb at Autotools. I have a project with the following structure: +-src +-commands Makefile.am +-copy Makefile.am copy.h copy.cpp +-delete Makefile.am delete.h …
Sam Washburn
  • 1,817
  • 3
  • 25
  • 43
9
votes
3 answers

How to include Boost in GNU Autotools project?

My project compiles using GNU autotools (aclocal && autoconf && ./configure && make). I'd like to use Boost, and I'd like for other people to be able to compile it as well. Should I put Boost in my project's dir, or rely on the system's Boost? How…
SRobertJames
  • 8,210
  • 14
  • 60
  • 107
9
votes
2 answers

Precompiled headers with Autotools

Is it possible to use gcc precompiled headers in projects using automake / libtool? Adding new make rules to build precompiled headers is not difficult. The issue is that you also have to add compilation flags introduced by libtool and AFAIK it…
Dj Gaspa
  • 253
  • 1
  • 2
  • 9
9
votes
4 answers

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?
Daisy Sophia Hollman
  • 6,046
  • 6
  • 24
  • 35
9
votes
3 answers

How to cross-compile C++-library with dependencies?

I need to cross-compile some C/C++ library. The library depends on several C/C++ libraries. Some of those of libraries in turn depend on other libraries. All libraries come with configure script. I know how to compile and install libraries on host…
pic11
  • 14,267
  • 21
  • 83
  • 119
8
votes
2 answers

"Can't locate ExtUtils/MakeMaker.pm in @INC" during git build

I'm building git on a pretty minimal system (Ubuntu 16.04 docker image) without using the package manager (except for wget, xz-utils, make and gcc). I thus installed prerequisistes as follows: apt-get update && apt-get install --yes wget xz-utils…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177