blob: 60cbfebfde4295d3b71e7c38eb441daa79864176 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
diff --git a/ibdiag/config/tk.m4 b/ibdiag/config/tk.m4
index 91ff1cb..e992392 100644
--- a/ibdiag/config/tk.m4
+++ b/ibdiag/config/tk.m4
@@ -18,14 +18,16 @@ dnl if we were not given a path - try finding one:
if test "x$with_tk_lib" = "xnone"; then
dirs="/usr /usr/local /usr/local/ibgd /usr/local/ibg2 /usr/local/ibed /usr/local/ofed"
for d in $dirs; do
- if test -e $d/lib/libtk8.4.so -o -e $d/lib/libtk8.5.so; then
+ for v in 8.4 8.5 8.6; do
+ if test -e $d/lib/libtk$v.so; then
with_tk_lib=$d/lib
AC_MSG_NOTICE(TK: found in:$with_tk_lib)
- fi
- if test -e $d/lib64/libtk8.4.so -o -e $d/lib64/libtk8.5.so; then
+ fi
+ if test -e $d/lib64/libtk$v.so; then
with_tk_lib=$d/lib64
AC_MSG_NOTICE(TK: found in:$with_tk_lib)
- fi
+ fi
+ done
done
fi
|