Commit a849f598 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Add simple test whether ln is the GNU version



If the GNU version is present, we can use certain GNU-extensions,
like the -T option, rendering some parts more robust.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent b998e7f6
......@@ -365,6 +365,14 @@ AC_SUBST(DISK_SEPARATOR, $disk_separator)
AC_PROG_INSTALL
AC_PROG_LN_S
# check if ln is the GNU version of ln (and hence supports -T)
if ln --version 2> /dev/null | head -1 | grep -q GNU
then
AC_SUBST(HAS_GNU_LN, True)
else
AC_SUBST(HAS_GNU_LN, False)
fi
# Check for the ip command
AC_ARG_VAR(IP_PATH, [ip path])
AC_PATH_PROG(IP_PATH, [ip], [])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment