configure.ac: Add /usr/local/include to CFLAGS/CPPFLAGS for OpenBSD.

OpenBSD has "/usr/local/include/iconv.h".
This commit is contained in:
宋文武 2022-12-12 18:23:41 +08:00
parent 3eb09b334d
commit ae79f47fa8

View File

@ -320,7 +320,7 @@ int main(int argc,char **argv) {
dnl Some target detection and actions for them dnl Some target detection and actions for them
case "$host" in case "$host" in
*-*-darwin*) *-*-darwin* | *-*-openbsd*)
dnl El Capitan's refusal to allow sudo make install to /usr/include, and the failure of most open source to dnl El Capitan's refusal to allow sudo make install to /usr/include, and the failure of most open source to
dnl include from /usr/local/include is irritating and tiresome... dnl include from /usr/local/include is irritating and tiresome...
CFLAGS="$CFLAGS -I/usr/local/include" CFLAGS="$CFLAGS -I/usr/local/include"