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

GNU Autotools with TCC

I recently discovered the Tiny C Compiler. For the project that I'm currently working on, performance is not a real issue, but file size is, making TCC ideal. I'm using Autotools as a build manager, and I figured that using TCC would be as simple as…
Colin Atkinson
  • 986
  • 1
  • 9
  • 18
0
votes
1 answer

Makefile.in Files Not Generated with Automake 1.12.2

I recently upgraded my OS and upgraded my autotools versions with it. Now, one branch of my project will no longer build because automake no longer is using the Makefile.am files to generate the Makefile.in files. It is strange to me: automake…
dbeer
  • 6,963
  • 3
  • 31
  • 47
0
votes
1 answer

"No rule to make target `distclean'" when using libtool convenience library

I am writing a C++ package with the GNU Autotools. I'm incorporating several external libraries to ship with the package. As I don't want to install each of those libraries separately, I instead use a "libtool convenience library". The directory…
tflutre
  • 3,354
  • 9
  • 39
  • 53
0
votes
1 answer

Checking for a C++ compiler's presence

The GNU documentation for AC_PROG_CXX states that: Otherwise, if the macro is invoked without an argument, then search for a C++ compiler under the likely names (first g++ and c++ then other names). If none of those checks succeed, then as a…
qdii
  • 12,505
  • 10
  • 59
  • 116
0
votes
1 answer

mingw32-make tries to create subfolder .lib an illegal name

I am trying to compile a project that required freetype library so I was figuring out how to install freetype to mingw32 and the more safer way is to compile it. Anyway the problem was compiling freetype-2.4.11 I went into bash provided in msys I…
Teong Leong
  • 813
  • 1
  • 6
  • 9
0
votes
1 answer

Assigning c and cpp files in the _SOURCE in Makefile.am

My project contains c++ files and c files and I want to build my project with autotools. So I create the Makefile.am. and I m wondering if it's possible to put both cpp files and c files together into the _SOURCE variable myprogram_SOURCES = \ …
MOHAMED
  • 41,599
  • 58
  • 163
  • 268
0
votes
0 answers

Non-object file targets in autotools for inclusion in C source files

How can I tell lib/Makefile.am to produce non-.o targets out of certain input files (here .txt) and tell it to do this before compiling regular C source files? Background: I have a bunch of text files (.txt) as input along with other C source files.…
ritter
  • 7,447
  • 7
  • 51
  • 84
0
votes
2 answers

Should (and how to do it) include paths be collapsed in configure script?

In my configure/configure.ac, I do multiple PKG_CHECK_MODULES calls. Most of them return the same -I path:-I/usr/local/include, and also the same -L path: -L/usr/local/lib. I would say that -I path doesn't do any difference, because gcc compiles one…
Roffal
  • 3
  • 1
0
votes
1 answer

using libtool gdb from within geany

I'm working on a project that uses GNU autotools, so in order to debug the code using gdb, I'm running gdb from within libtool: libtool --mode=execute gdbtui foobar Is it possible to somehow do this from within the geany IDE? Or to somehow run…
user1404316
  • 463
  • 6
  • 11
0
votes
1 answer

GNU Autotools - How to handle required but possibly missing headers?

I was wondering about the best-practice solution of handling required headers with GNU Autotools. This is one line from my configure.ac AC_CHECK_HEADERS_ONCE(argp.h) If the argp.h is missing on a system, then configure will just…
Andreas Grapentin
  • 5,499
  • 4
  • 39
  • 57
0
votes
1 answer

What's the installation location convention for compiled libraries for a cross-compiler?

I'm using mingw32msvc to cross-compile from linux to win32. This works well, and mingw uses Wine for this BTW. Q: If I compile GLUT or FreeGLUT, where should I install the lib (as far as accepted convention)? I googled it and the first answer was…
mda
  • 1,158
  • 14
  • 18
0
votes
1 answer

Defining additional make targets using gnu autotools

I am beginning to learn autotools in order to first understand and later extend an existing project's build system. Currently the project builds a program as it's output. The build system is quite complex consisting of several subdirectories and…
crobar
  • 2,810
  • 4
  • 28
  • 46
0
votes
0 answers

Automake: configure subdirectory only

This concerns an external project, where one OneLibrary.c and SomeLibraries.am where modified; It would be nice to ./configure --please-configure-only-this-subdirectory=./SomeLibrariesSubdirectory something similar to make -C…
Lofty Lion
  • 117
  • 1
  • 6
0
votes
1 answer

MALLOC option in autotools eclipse plugin

I'm struggling with autotools plugin in Eclipse and some C++ project I have downloaded. My goal consists on cross-compilng for an arm processor, so the project is already configured to work with autotools, but when I try to crosscompile I have the…
ndarkness
  • 1,011
  • 2
  • 16
  • 36
0
votes
1 answer

Autotools: Final make command in wrong order

I use GNU Autotools in order to build/configure my mini application. Here is my configure.ac: AC_INIT([Tutorial Program], [1.0]) AM_INIT_AUTOMAKE AC_PROG_CXX AC_SUBST([GENERAL_INCD], ["-I../Src"]) AC_SUBST([GENERAL_LIBD],…
odysseasg
  • 121
  • 1
  • 8