diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-01-26 21:10:18 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-02-08 12:44:35 +0100 |
commit | 8d7cb6e0686214a7f57387d5c66cbc667a7f4659 (patch) | |
tree | 034388ac1a545797c5edd8488062e1c9e8a5ea7a /configure.ac | |
parent | update TODO (diff) | |
download | systemd-8d7cb6e0686214a7f57387d5c66cbc667a7f4659.tar.xz systemd-8d7cb6e0686214a7f57387d5c66cbc667a7f4659.zip |
build-sys: make less noise when checking file
There's already a condition that gives a warning if user is
cross-compiling an relying on files from the build system. AC_CHECK_FILE
macro only tests for file in the build system. Hence use a simple
'test -f' that does the same job, without the warning.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 08f36469a9..c34305cf31 100644 --- a/configure.ac +++ b/configure.ac @@ -274,16 +274,16 @@ 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 - AC_CHECK_FILE(/etc/redhat-release,with_distro="fedora") - AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse") - AC_CHECK_FILE(/etc/debian_version,with_distro="debian") + test -f "/etc/redhat-release" && with_distro="fedora" + test -f "/etc/SuSE-release" && with_distro="suse" + test -f "/etc/debian_version" && with_distro="debian" + test -f "/etc/arch-release" && with_distro="arch" + test -f "/etc/gentoo-release" && with_distro="gentoo" + test -f "/etc/slackware-version" && with_distro="slackware" + test -f "/etc/frugalware-release" && with_distro="frugalware" if test "x`lsb_release -is 2>/dev/null`" = "xUbuntu"; then with_distro="ubuntu" fi - AC_CHECK_FILE(/etc/arch-release,with_distro="arch") - AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo") - AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware") - AC_CHECK_FILE(/etc/frugalware-release,with_distro="frugalware") fi if test "z$with_distro" = "z"; then with_distro=`uname -s` |