Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autogen.sh Generates a configure File that Tries to Call Autoconf macro PKG_CHECK_MODULES #465

Open
A-Neal opened this issue Jul 21, 2022 · 1 comment

Comments

@A-Neal
Copy link

A-Neal commented Jul 21, 2022

The macro should be called in configure.ac, not configure. It threw this error:

./configure: line 3178: syntax error near unexpected token `BASH_COMPLETION,'

I fixed the problem by commenting out the call for the macro in the configure file, and didn't touch configure.ac, which does include the call for the macro. I could then run ./configure without error, generate the makefile, and install i3blocks without any problems.

The fix, though simple, took me a while to realize was the issue, as I don't build from source unless necessary. In this case, the version in the Ubuntu repos was out of date, and I wanted to set block background colors, which was not properly possible in the version hosted in the repos.
I decided to open the issue because none like it had been opened and it seems like that macro being present in configure is in error.

@fnivek
Copy link

fnivek commented Nov 3, 2023

I didn't have pkg-config installed. I resolved this issue with the following:

sudo apt install pkg-config
./autogen.sh
./configure

Then it worked like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants