Questions tagged [autoconf]

GNU Autoconf creates a shell script `configure` that is used to configure software for compilation for UNIX-like operating systems.

GNU Autoconf creates a shell script configure that is used to configure software for compilation for UNIX-like operating systems. It is extensible through the use of shell script and m4 macros. It is frequently used with GNU Automake and GNU Libtool (collectively known as Autotools).

1135 questions
0
votes
1 answer

Autoconf - use macro from m4/revision.m4 in AC_INIT arg list

OK, I have a file m4/revision.m4 which has the macro REC_SVN_REV defined. I would like to use that in the version info in AC_INIT in configure.ac. But is it OK to call AC_CONFIG_MACRO_DIR([m4]) before AC_INIT? Thanks in advance
BenjiWiebe
  • 2,116
  • 5
  • 22
  • 41
0
votes
2 answers

How to choose a compiler version in Automake?

I have several compilers with the same name but of different versions or location. The ./configure script seems to stop at the first it finds in PATH. How can I tell Automake to choose one of them according to a custom rule ? I already have a macro…
alex_reader
  • 689
  • 1
  • 5
  • 22
0
votes
1 answer

What is the flags in GOCFLAGS_FOR_TARGET used for

I'm trying to build a GDB. The Makefile generated by configure contains a flags called "GOCFLAGS_FOR_TARGET". Could anyone tell me what the "GOCFLAGS" is used for? Thanks!
brian
  • 265
  • 1
  • 9
0
votes
1 answer

AC_SEARCH_LIBS when the function name varies

I have a program which makes use of boost_regex. The library boost_regex has an undefined symbol named differently with respect to the version of boost I am using. For instance, when I use boost version 1.49, libboost_regex.so contains an undefined…
qdii
  • 12,505
  • 10
  • 59
  • 116
0
votes
1 answer

add in a Makefile.in a -DVARIABLE linux

I am trying to make a configure.ac + Makefile.in files I have. Everything is ok till at make: Here I have: usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 2 /usr/bin/ld:…
just ME
  • 1,817
  • 6
  • 32
  • 53
0
votes
1 answer

Autoconf Standardized Configure Target Namings

Is there a way to automatically lookup the standardized target namings such as i686-pc-linux-gnu I typically want to feed as argument to the configure flag --exec-prefix in platform-specific builds? I've seen ./configure && make && make installs…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
0
votes
1 answer

Using doxygen macros with autoconf

I'm trying to use doxygen to document my project's source code, and I'm using autotools for the build system. I've downloaded the ax_prog_doxygen.m4 macro from the autoconf-archive repository, made the changes to aminclude.am and made sure to call…
Adam M-W
  • 3,509
  • 9
  • 49
  • 69
0
votes
2 answers

Specifying Exact Library to Link with In Automake

I am having extreme trouble cross compiling a project related to gstreamer. I am trying to link it to a library on my cross compile machine's /usr/lib If I do the standard linker flags -L{FILESYS_DIR}/usr/lib -lGLESv2 I get pthread complaints from…
Constantin
  • 16,812
  • 9
  • 34
  • 52
0
votes
1 answer

Updating configure.ac with a new library

I am trying to add the pcap library to my application. I need to add it to the configure.ac file, but I don't understand how. Can anyone can help me with this?
yash cp
  • 183
  • 4
  • 13
0
votes
1 answer

behaviour of autoreconf on source packages

I got a project that has, say 10 directories (as a tarball). I edited the top level Makefile.am so as to exclude from the build, say 5 of the directories. Then I ran autoreconf (Is this really a legal step? After all, I do not have an svn…
Elan
  • 443
  • 5
  • 14
0
votes
1 answer

Boost.m4 linker error

I use boost.m4 to find Boost. Here I go: AC_PROG_CXX AC_LANG([C++]) AX_CXX_COMPILE_STDCXX_11 BOOST_REQUIRE([1.48]) BOOST_SIGNALS configure correctly find singals library, but when compiling, I get link error -- undefined reference to…
KAction
  • 1,977
  • 15
  • 31
0
votes
1 answer

autoconf: use AS_INIT_GENERATED to generate a script in a subdirectory

How can I use AS_INIT_GENERATE to generate a script that is not in the same directory as the configure script, in particular so that VPATH builds will be honoured? For example, for a configure.ac file…
Zorawar
  • 6,505
  • 2
  • 23
  • 41
0
votes
3 answers

Appending directory to pkginclude_header

Is there anyway I can modify the path for pkginclude_ without actually changing the structure of my project? Heres the directory stucture I have. My_Project > include > banana.h apple.h …
bgura
  • 860
  • 15
  • 33
0
votes
3 answers

check header file of iconv.h

I am using FreeBSD and have installed iconv package form port collection.I wrote AC_CHECK_HEADER([iconv.h], ,[AC_MSG_ERROR([can not find iconv.h])]) AC_CHECK_LIB([iconv], [iconv_open], ,[AC_MSG_ERROR([can not find iconv_open])]) in the…
MYMNeo
  • 818
  • 5
  • 9
0
votes
1 answer

Best way to add generated files to distribution?

I have a quite complex (C++) project using autoconf / automake, which includes some "generated" files (foo.yy -> foo.cc). Actual builds are done using a "control script" (Gentoo .ebuild for those familiar with the concept), on various…
DevSolar
  • 67,862
  • 21
  • 134
  • 209