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
1 answer

undefined reference to `main' using Autotools

I have a little program, when I run make this error appears: $ make make all-recursive make[1]: se ingresa al directorio «/home/foo/boolham» Making all in src make[2]: se ingresa al directorio «/home/foo/boolham/src» /bin/bash ../libtool --tag=CC …
Israel
  • 3,252
  • 4
  • 36
  • 54
0
votes
1 answer

Autotools CFLAGS and LDFLAGS not working

I'm trying to compile a program using GNU Autotools. In my configure.ac I have the following line: PKG_CHECK_MODULES([DEPS], [cairo], [], [AC_MSG_ERROR([Missing Cairo library])]) My src/Makefile.am looks like this: bin_PROGRAMS = main main_SOURCES…
gsgx
  • 12,020
  • 25
  • 98
  • 149
0
votes
1 answer

Automake LIBADD not linking in

I'm attempting to add ZMQ to c_icap. This is my (which is modified from the stock makefile) Makefile.am: pkglib_LTLIBRARIES=srv_bluvector_icap.la INCLUDES = -I$(top_srcdir) srv_bluvector_icap_la_LIBADD = /usr/local/lib/libzmq.la …
user1357182
  • 59
  • 1
  • 2
  • 7
0
votes
2 answers

Makefile.am rebuilds entire project

I have a simple project: https://github.com/spesmilo/obelisk For some reason 'make install' causes my entire project to rebuild everytime. Also it seems like object files are getting built twice. I have no idea why. 'make' by itself is fine…
Amir Taaki
  • 185
  • 3
  • 8
0
votes
1 answer

how to make automake conditionally choose a src package?

under my project, I have 3 source code packages, say package1, package2, package3. one of them will be compiled according to a dependent software (e.g. softA) version. if I input './configure --softA-version=1.7.2', I hope that package3 will be…
jimmy.cao
  • 3
  • 1
0
votes
0 answers

passing target to SUBDIRS in Makefile

Let's say I have a makefile.am with SUBDIRS = a . b c I want to call the Makefile in a/ passing a target, and ONLY to the makefile in a/ (not ., b/ or c/). Is there a way to do it, in case even not using SUBDIRS for a/ ?
ElementalStorm
  • 809
  • 12
  • 31
0
votes
2 answers

Use shell commands to find Makefile.am in configure.ac

I'm trying to add some shell commands to automatically search for Makefile.am in my project autoconf (so that I don't have to worry about forgetting to add an entry next time when there's a new Makefile.am). But it does not seem to work. I've tried…
Steven Lai
  • 138
  • 1
  • 9
0
votes
1 answer

How to configure project including third-party project with its own build system

I have autotools project and I would like to add some third-party source code (libsoxr) with own cmake configuration. But I don't know what add to configure.ac and makefile.am. I need execute this commands: libsoxr/cmake…
Meph-
  • 657
  • 1
  • 8
  • 20
0
votes
1 answer

What is the proper way of including linux kernel config?

I'm porting an old version of a software that is partly a linux kernel module to EL5, after doing the relevant hacks, the horrible GNU autotools mess that is used to compile the thing (no, it does not compile the kernel module via kbuild :( ) I…
Kimvais
  • 38,306
  • 16
  • 108
  • 142
0
votes
2 answers

autotools: Can I stop make dist from compiling everything in order to generate the tar.gz?

I have a large project with autotools that can be built as an rpm. The rpm build works by running the make dist target in order to generate a .tar.gz file which is then passed to rpmbuild with the -ta flag to create the rpm. The result of this is…
user1171968
  • 167
  • 2
  • 6
0
votes
1 answer

configure.ac: getting the command line arguments

I am trying to get the command line arguments of ./configure in confdefs.h using something like: AC_DEFINE_UNQUOTED([CONFIGURATION], ["$@"], [Configuration commandline parameters]) But it gets evaluted to #define CONFIGURATION "darwin12.4.0" What…
pigoz
  • 302
  • 2
  • 6
0
votes
1 answer

Generating variable name source files when building with autotools

This question builds upon How to generate a source file when building using autotools I want to do something like : input.txt generator ./generator input.txt # produces The earlier question answers…
0
votes
0 answers

How to add includes to an autotools project

I'm trying use autotools in Eclipse. Everything works fine except "Unresolved inclusion: " and all next inclusions. Compilation is fine, but editor doesn't know standard libraries. I try to find some linker settings... Where can I find some settings…
Meph-
  • 657
  • 1
  • 8
  • 20
0
votes
1 answer

How to deal with multiple versions of Automake in configure.ac

I would like to selectively omit certain flags in my call to AM_INIT_AUTOMAKE in my configure.ac depending on the Automake version. Is there a way to do that? The specific problem I'm dealing with is that Automake 1.12 introduced some…
mgalgs
  • 15,671
  • 11
  • 61
  • 74
0
votes
0 answers

What is the difference between running ./configure -D_GNU_SOURCE and adding the AC_GNU_SOURCE macro to configure.ac?

I am trying to compile my project but it fails when I don't use ./configure -D_GNU_SOURCE. I want to fix this in the build system and tried defining it in configure.ac, but doesn't solve my make issue. When I put AC_GNU_SOURCE in configure.ac and…
user198736