eggdrop
eggdrop copied to clipboard
Fix python mod autoconf
Found by: michaelortmann Patch by: michaelortmann Fixes: #1605
One-line summary: Fix python mod autoconf
Additional description (if needed): Several bugs are fixed by this PR. Now python.mod is also working for FreeBSD.
Test cases demonstrating functionality (if applicable): Before: see #1605 After:
$ uname -a
FreeBSD freebsd14 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
[...]
$ make config
[...]
Configuring module 'python'.
configure: loading cache ../../../config.cache
checking for grep that handles long lines and -e... /usr/bin/grep
checking for fgrep... /usr/bin/grep -F
checking for python3.12-config... no
checking for python3.11-config... no
checking for python3.10-config... no
checking for python3.9-config... /usr/local/bin/python3.9-config
checking whether python-config supports --embed... yes
checking for python C flags... -I/usr/local/include/python3.9 -I/usr/local/include/python3.9 -Wno-unused-result -Wsign-compare -Wunreachable-code -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNDEBUG
checking for python LD flags... -L/usr/local/lib -lpython3.9 -lcrypt -lintl -ldl -L/usr/local/lib -lintl -lutil -lm -lm
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking python version is >= 3.8.0... yes (3.9)
configure: updating cache ../../../config.cache
configure: creating ./config.status
config.status: creating Makefile