[issue45774] Detect SQLite in configure.ac

Christian Heimes report at bugs.python.org
Wed Nov 10 03:08:29 EST 2021


Christian Heimes <lists at cheimes.de> added the comment:

I saw your message concerning sqlite3 on the FreeBSD buildbot. It's hard to tell why configure on FreeBSD doesn't find sqlite3.h without access to config.log or a shell. Maybe sqlite3 is installed in /usr/local ? ``configure`` does not use /usr/local/include and /usr/local/lib by default. ``setup.py`` extends the search paths for headers and libraries by non-standard locations.

A "config.site" file should do the trick:

$ mkdir -p /usr/local/etc
$ cat > /usr/local/etc/config.site << EOF
test -z "$CPPFLAGS" && CPPFLAGS="-I$/usr/local/include"
test -z "$LDFLAGS" && LDFLAGS="-L/usr/local/lib"
EOF

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45774>
_______________________________________


More information about the Python-bugs-list mailing list