Skip to content

Commit bb54e03

Browse files
committed
Smart choose the Mesos libs path
On Ubuntu, the Mesos libs will be install to $prefix/lib by default. So add an if condition to choose which path is the right one.
1 parent 4112393 commit bb54e03

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

configure.ac

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ AC_ARG_WITH([mesos_build_dir],
3636

3737
if test -d "$mesos"; then
3838
MESOS_CPPFLAGS="-I${mesos}/include"
39-
MESOS_LDFLAGS="-L${mesos}/lib64 -lmesos -lglog -lprotobuf"
39+
if test -d "${mesos}/lib"; then
40+
MESOS_LDFLAGS="-L${mesos}/lib -lmesos -lglog -lprotobuf"
41+
else
42+
MESOS_LDFLAGS="-L${mesos}/lib64 -lmesos -lglog -lprotobuf"
43+
fi
4044
else
4145

4246
if test -d "$mesos_root"; then

0 commit comments

Comments
 (0)