diff options
author | rubidium <rubidium@openttd.org> | 2010-07-25 23:13:40 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-07-25 23:13:40 +0000 |
commit | b38c4f897a05208b9c740cf5446069d6bf2cbd9c (patch) | |
tree | f0b232d19c6e6b8d2e5562606d837d37374002f1 | |
parent | f06dcd1601264e7f4a6afd2460d48f254e056055 (diff) | |
download | openttd-b38c4f897a05208b9c740cf5446069d6bf2cbd9c.tar.xz |
(svn r20219) -Fix: Haiku uses a "special" location for headers
-rw-r--r-- | config.lib | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config.lib b/config.lib index ba3777c8e..f916a08cd 100644 --- a/config.lib +++ b/config.lib @@ -2330,6 +2330,13 @@ detect_library() { log 2 " trying /usr/pkg/include/$4$5... no" fi fi + if [ -z "$res" ] && [ "$os" = "HAIKU" ]; then + eval "$2=`ls -1 /boot/common/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`" + eval "res=\$$2" + if [ -z "$res" ]; then + log 2 " trying /boot/common/include/$4$5... no" + fi + fi eval "res=\$$2" if [ -n "$res" ] && ( [ -n "$force_static" ] || ( [ "$enable_static" != "0" ] && [ "$os" != "OSX" ] ) ); then |