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
2 answers

GCC Not linking correct libraries

I have two versions of GCC installed on my system 4.6.2 and 4.7.0. I am running Fedora Core 16. 4.6.2 is installed in /usr/bin and 4.7.0 is installed in /home/nerozehl/local/bin. The libraries and runtime for C++ are also compiled and installed in…
nerozehl
  • 463
  • 1
  • 7
  • 19
10
votes
1 answer

Unix C++ compilers that do not understand -c -o

Autoconf/Automake are at pains to support ancient C compilers that didn't understand the simultaneous use of the -c and -o options (create an object file with this name). There's AM_PROG_CC_C_O and a special wrapper script, and the Automake manual…
zwol
  • 135,547
  • 38
  • 252
  • 361
10
votes
1 answer

Autotools include path

I have a directory structure like Makefile.am Configure.ac src/ hello.c Makefile.am include/ hello.h How to specify the include path in Makefile.am of src so that it includes header files…
Vivek Goel
  • 22,942
  • 29
  • 114
  • 186
10
votes
2 answers

Creating debug build of autotools' build source

Given: source tar.gz AFAIK, configure does support debug build (configure --help doesn't show --enable-debug) Questions: Is it safe to use debug build if the authors of the package didn't supplied it in the first place? If the answer to pre.v…
dimba
  • 26,717
  • 34
  • 141
  • 196
10
votes
2 answers

Avoiding recursive make install

I am building a project using autotool. Basically the project depends on several 3rd-party projects which are also managed by autotool. my_project/ my_project/3rd-party/ To enable recursive build, I add AC_CONFIG_SUBDIRS macros in my…
Jes
  • 2,614
  • 4
  • 25
  • 45
10
votes
2 answers

Libtool prefixes objects but gcov requires them without prefix

I need to perform some test coverage with gcov on a shared library I am working on. The problem is libtool renames the object files from my-name.c to libmylib_la-my-name.lo and gcov is unable to handle that conversion. Everytime I run it, the error…
ntd
  • 7,372
  • 1
  • 27
  • 44
10
votes
7 answers

How do I get rid of LD_LIBRARY_PATH at run-time?

I am building a C++ application that uses Intel's IPP library. This library is installed by default in /opt and requires you to set LD_LIBRARY_PATH both for compiling and for running your software (if you choose the shared library linking, which I…
Kjir
  • 4,437
  • 4
  • 29
  • 34
10
votes
2 answers

Do I need to run "make clean" before ./configure when reconfiguring?

Suppose I've ran ./configure and make, but now I want to change a parameter in the configure script. Do I need to run make clean before ./configure, or will everything be OK even if I don't?
sashoalm
  • 75,001
  • 122
  • 434
  • 781
10
votes
1 answer

Building autotooled software to LLVM bitcode

I would like to compile software using the autotools build system to LLVM bitcode; that is, I would like the executables obtained at the end to be LLVM bitcode, not actual machine code. (The goal is to be able to run LLVM bitcode analysis tools on…
David Monniaux
  • 1,948
  • 12
  • 23
10
votes
2 answers

How to get absolute path to top build directory in autoconf configure.ac?

I am working on a project which requires a subproject which has its own makefile and configure.ac. The subproject is a program which is used to generate source files for the main project. There is an option to disable the building of this project…
crobar
  • 2,810
  • 4
  • 28
  • 46
10
votes
1 answer

Why does clang -dumpversion report 4.2.1

I was trying to use -dumpversion to determine if the compiler is usable. My project compiles with clang and newer gccs, but not with the old gcc 4.2.1. So why does clang pretend to be an old gcc? Extra questions, is it possible to change this value…
arved
  • 4,401
  • 4
  • 30
  • 53
10
votes
4 answers

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…
Ronaldo Nascimento
  • 1,571
  • 3
  • 21
  • 40
10
votes
1 answer

GNU Autotools: rebuild without version info

I need to build a lib that is configured with autotools. The usual configure && make && make install steps produce versioned shared lib, something like libfoo.so.x.x Is it possible to modify configure.ac or Makefile.am (and of course follow up with…
pic11
  • 14,267
  • 21
  • 83
  • 119
10
votes
1 answer

Regenerate .Plo files without running ./configure

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…
Andy
10
votes
3 answers

Where to add a CFLAG, such as -std=gnu99, into an (Eclipse CDT) autotools project

I have a simple Autotools C project (not C++), whose skeleton was created for me by Eclipse CDT (Juno). CFLAGs (by inspection) seem to be -g -O2. I want all of the generated make files to also have -std=gnu99 appended to the CFLAGs, because I use…
fadedbee
  • 42,671
  • 44
  • 178
  • 308