X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=configure.ac;h=cef2539e27c03e6beaa110468204de0d3cabc6f4;hb=9d17cf3e93414ad604669ef908e86ccec9056a07;hp=b715a34405214cb8e836babd3ff673ad36115c82;hpb=c4f1b86299c4ce2a62ce845bc48f2794f5459762;p=elogind.git diff --git a/configure.ac b/configure.ac index b715a3440..cef2539e2 100644 --- a/configure.ac +++ b/configure.ac @@ -509,7 +509,7 @@ if test "z$with_distro" = "z"; then if test "$cross_compiling" = yes; then AC_MSG_WARN([Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)]) else - with_distro=$($GREP '^ID=' /etc/os-release | $SED 's/ID=//'); + with_distro=$($GREP '^ID=' /etc/os-release 2>/dev/null | $SED 's/ID=//'); fi if test "z$with_distro" = "z"; then with_distro=other