diff options
Diffstat (limited to 'config.lib')
-rw-r--r-- | config.lib | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config.lib b/config.lib index be58f7697..291bbaa00 100644 --- a/config.lib +++ b/config.lib @@ -2318,6 +2318,13 @@ detect_library() { if [ -z "$res" ]; then log 2 " trying /opt/local/include/$4$5... no" fi + if [ -z "$res" ] && [ "$os" = "NETBSD" ]; then + eval "$2=`ls -1 /usr/pkg/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`" + eval "res=\$$2" + if [ -z "$res" ]; then + log 2 " trying /usr/pkg/include/$4$5... no" + fi + fi eval "res=\$$2" if [ -n "$res" ] && ( [ -n "$force_static" ] || ( [ "$enable_static" != "0" ] && [ "$os" != "OSX" ] ) ); then |