PORTALS=$enable_portalsdir
AC_SUBST(PORTALS)
-portalslib_def=$enable_portalsdir
+portalslib_def=$enable_portalsdir/linux/utils
AC_ARG_WITH(portalslib, [ --with-portalslib=[path] set path to Portals library (default=../portals/linux/utils)], enable_portalslib=$withval)
AC_ARG_ENABLE(portalslib, [ --enable-portalslib=[path] (deprecated) set path to Portals lib (default=../portals/linux/utils)],, enable_portalslib=$portalslib_def)
-if test -z "$enable_portalslib"; then
- PORTALSLIB=$enable_portalslib/linux/utils
-else
+if ! test -z "$enable_portalslib"; then
PORTALSLIB=${enable_portalslib}
fi