Questions tagged [autoconf]
The autoconf tag has no usage guidance.
43 questions
0
votes
0
answers
18
views
Simplest way to wrap an "AC_DEFINE_UNQUOTED" output around #ifndef and #endif?
This line for example
AC_DEFINE_UNQUOTED([SOME_MACRO_NAME], "$SOME_VALUE", [some comment])
generates
printf "%s\n" "#define SOME_MACRO_NAME \"$SOME_VALUE\"" &...
0
votes
0
answers
28
views
autoconf error in trying to run TPM2.0 simulator on M1 Mac
I'm trying to run a TPM2.0 simulator on macOS Sonoma (14.2.1) using Official TPM 2.0 Reference Implementation (by Microsoft) and it seems to be failing at generating a make file for executing. This is ...
1
vote
1
answer
232
views
What does it mean when "aclocal cannot open VERSION"
Is this the correct forum? I am running ./bootstrap for a program called Qucs and it complains about VERSION
Running aclocal...
Running automake...
Running autoconf...
bootstrapping /home/lasse/...
0
votes
1
answer
961
views
Why can't autoconf find `libtcmalloc`?
I'm trying to compile a complex numerical simulation software. After running autoconf and then ./configure ... (with some other flags), I see the following in the output:
checking for malloc in -...
4
votes
2
answers
2k
views
How to put multiple -I, -L and -l flags in ./configure?
I am trying to build using ./configure.
I have
Three include directories
-I/path1/include
-I/path2/include
-I/path3/include
Two link directories
-L/path1/lib
-L/path2/lib
Two -l flag options
-...
0
votes
1
answer
48
views
AX_CHECK_X86_FEATURES for CXXFLAGS
The autoconf AX_CHECK_X86_FEATURES will test for -mavx, -mavx2, etc and add it to CFLAGS. What is the right way to propagate it to CXXFLAGS too? Is it "clean" to always add CFLAGS to ...
2
votes
2
answers
8k
views
How do I install xorg-macros?
I'm trying to build xf86-input-libinput from source to apply a patch. When I follow the recipe given here at the step autoreconf -vif I get an error saying:
configure.ac:41: error: must install xorg-...
1
vote
0
answers
619
views
Why would one M1 machine need architecture-specific options for building from source and other M1 machines not?
I have tool version managers in the Ruby and react-native worlds that (underneath the layers of abstraction) end up building software like Ruby from source using a fairly mundane:
./configure
./make
./...
0
votes
1
answer
43
views
Show libraries found by ./configure before building?
Is it possible to get autoconf based build systems to show the libraries it found and will link against, before building the software? As-is my current workflow is:
$ cd tps-source-dir
$ ./configure --...
1
vote
1
answer
364
views
How can you change ./configure to use a specific binary over /usr/bin?
Running macOS Catalina 10.15.6.
My question is more related to compilation with GNU tools, so it may be more suited for a different SE site — I'll be happy to close and ask somewhere else if that's ...
-1
votes
2
answers
2k
views
How can I fix this automake and autoconf missing issue?
I am trying to install avro-keyboard on Kali Linux but I am getting this error message on folowing this step from the tutorials:
root@al-ajal:~# apt-get install git ibus libibus-1.0-dev automake ...
1
vote
1
answer
1k
views
Kernel-based IPv6 SLAAC not working?
My ISP's DHCPv6 is broken. As a work around I figured I'd try IPv6 SLAAC since I do see router advertisements coming in on my WAN interface. I believe I've configured accept_ra, accept_ra_pinfo, and ...
0
votes
1
answer
222
views
autoconf: continue after package check failure
In my configure.ac script, I have a basic check for X11:
PKG_CHECK_MODULES(X11, x11 > 1.6.4, [AC_DEFINE(HAVE_X11)], [])
If this fails, I still want to continue. I thought since I added a blank ...
0
votes
1
answer
88
views
./configure checking whether vs checking if
./configure script outputs checking if and checking whether on execution
how the two results are different for checking conditions?
4
votes
1
answer
745
views
double square bracket in 'case' in 'configure.ac' i[[3456]]86
I am trying to understand the following code snippet.
host_cpu='i386'
case "$host_cpu" in
i[[3456]]86)
echo "host_cpu=i386"
;;
x86_64)
echo "host_cpu=x86_64"
;;
*)
...
1
vote
2
answers
416
views
Why has there been so little innovation with autoconf configure scripts in the Unix and Linux ecosystem? [closed]
A great deal of time is lost at the time of ./configure; especially when dependencies are missing and the subsequent calling thereof.
I've read many topics on this subject citing that caching the ...
3
votes
1
answer
784
views
How to make autoconf use "install" instead of "mkdir -p"?
When I run sudo make install on a compiled package from the GNU archive, it uses mkdir -p to create the destination directories.
I'd prefer it to use mkdir -p -m 0755 or install -d -m 0755 instead in ...
1
vote
0
answers
261
views
Problem compiling autoconf
I am experiencing problems with compiling autoconf and they probably are related to the version of the M4 that I am using. I will put part of the result of running both ./configure as running ./make ...
2
votes
1
answer
232
views
make unable to recurse for autoconf-like projects
I've built a Linux system running on an ARMv7 chip and it works surprisingly
well, but I have run into a problem with native builds.
First I bootstrapped by cross-compiling on an x86-64 system,
and ...
4
votes
1
answer
139
views
GNU autotooling, where to install shell functions?
I have a tiny project that configures and installs some shell scripts using GNU autotools.
Now, the scripts will have to source a common file containing some shell functions.
Where should this file ...
0
votes
1
answer
742
views
Building autoconf-2.69 without root access on Centos 7 machine
I am using a Centos 7 machine, and I don't have root access. For this reason I have to compile everything locally, and hold them under my .local/ directory.
I need to compile autoconf, and I compile ...
2
votes
0
answers
525
views
Locally built zsh can't find its own function files
Okay, so the Linux server I use at work doesn't have Zsh installed on it and I don't have root access, so I manually built and installed zsh to "$HOME/usr" (I've done this with other programs such as ...
4
votes
2
answers
2k
views
How to build a specific file from a GNU Automake package?
Given a source package that uses GNU Automake, the typical build goes like this:
cd ${srcdir}
./congigure
./make
To build a single file rather than everything, make would normally accept this:
$ ...
1
vote
2
answers
531
views
autoconf tried to invoke "exec -m' under bash, but -m is not a legal operand for exec
This question may really be about where to get help, rather than help for the problem itself. Please forgive the wordiness!
I'm trying to build gcc to run on Win32 and produce code for AVR. I've ...
2
votes
2
answers
3k
views
Autoconf - setting compiler flags for checks
I am trying to use autoconf to create a configure script. However, some of the headers I want to check for require additional compiler flags (e.g. c++11). I can get partly there with the answer here ...
0
votes
1
answer
275
views
How can I get self-compiled packages to play nice with packages managers (e.g. apt-get, yum) [duplicate]
Suppose I want to:
compile and install my own custom application
which requires downloading, compiling and installing the source for newest version of libthrift
which requires downloading, compiling ...
1
vote
0
answers
162
views
Moving to FHS 3: How to overwrite GNU Autotools directory variables?
In GNU Autotools, the directory variables $sharedstatedir and $localstatedir expand to $(prefix)/com and $(prefix)/var respectively.
However the com and var directories don't exist anymore in FHS 3, ...
1
vote
1
answer
1k
views
To stop auto generated IPv6 link local address
How can I stop assigning of link local IPv6 address? I have tried to do it by disabling the accept_ra and autoconf options, but it is not working.
1
vote
1
answer
153
views
Loop through m4's dumpdef
Is it possible to loop through the list of macro names given by dumpdef? I want to process certain macros which have a certain prefix in their name.
1
vote
0
answers
226
views
Compiling drivers for armada 370
I am trying to compile usb_serial drivers for a Mirabox with armada 370.
I first tried as followes :
Install linux source for 3.2 (running kernel is 3.2.36)
Install linux headers for 3.2
Edit the ...
5
votes
3
answers
1k
views
What is the preferred way to build software in the BSDs?
I was wondering what the preferred way of building software in the BSDs is and if they are actively using and encouraging the use of GNU autotools.
I found the following section about GNU autoconf in ...
14
votes
2
answers
51k
views
autoreconf fails with 'Can't exec "libtoolize"'
I wanted to learn about autotools, so I just started watching some tutorials on YouTube.
I made a folder named hello and then made a configure.ac file:
AC_INIT([hello],[.01])
AC_OUTPUT
I saved it ...
5
votes
1
answer
3k
views
How can I install M4 on Linux, avoiding the dependency loop with Automake and Autoconf?
I am trying to install GNU M4 on my Chromebook using the 1.4.17 tarball, but when I run ./configure and thenmake I get an error related to aclocal, which is apparently part of the GNU Automake package....
3
votes
1
answer
368
views
Build bash (or alternate linux package) with custom binary/doc name
I am trying to build Bash 4.2 as an RPM package for use on Enterprise Linux 5 systems, which come by default with 3.2.25. This works successfully, however, I want both versions to co-exist on the ...
1
vote
1
answer
2k
views
Tell autoconf to use different version of gcc
OpenBSD installs newer version of gcc as egcc. I am trying to compile some software that requires gcc 4.4+ and can't seem to convince autoconf to use the newer versions of gcc...
I have tried:
# ...
41
votes
3
answers
59k
views
What are .in files?
Sometimes in the sources of projects I see "*.in" files. For example, a bunch of "Makefile.in"s. What are they for and/or what does the ".in" part mean? I assume that this has something to do with ...
2
votes
1
answer
1k
views
Nested packages for different subdirectories in autoconf?
I have different subdirectories that need to be compiled in different ways. For example, some files needs to include some others using CFLAGS. However, CFLAGS can only be set in configuration files, ...
1
vote
1
answer
883
views
Autotools does not detect my architecture correctly. How to handle?
I am trying to build the latest ffmpeg from the git repo. However, as you can see below, autotools does not detect correctly that my box has 64-bit architecture (Ubuntu 12.04). Consequently, during ...
4
votes
1
answer
727
views
autoconf save ./configure command line to config.h
Some binaries save the command line used to configure them inside the binary (I don't remember any that do, otherwise I'd check the source). Is there a way to obtain the command line used as a macro ...
2
votes
2
answers
454
views
Bind locally installed library
I have no root access on a machine and I'm trying to install a library called GiNaC locally in my home folder.
I use this tutorial http://www.ginac.de/tutorial/Configuration.html#Configuration. At ...
77
votes
6
answers
75k
views
Some M4 macros don't seem to be defined
I am trying reinstall pacman on my Arch Linux distribution. When I run the configure script "configure.ac", I get a bunch of undefined macros:
error: possibly undefined macro: AM_INIT_AUTOMAKE.
If ...
69
votes
9
answers
60k
views
Why can't gcc find libevent when building tmux from source?
I want to install tmux on a machine where I don't have root access. I already compiled libevent and installed it in $HOME/.bin-libevent and now I want to compile tmux, but configure always ends with ...
6
votes
1
answer
48k
views
how to make PKG_CONFIG_PATH variable to refer an installed library?
I am in the process of installing the required libraries for FireFox 3.6 on a Redhat Linux Nash 4.x system.
I already have successfully installed the glib2.12.0 library, but
When I ./configure the ...