diff options
author | Kay Sievers <kay@vrfy.org> | 2015-07-31 15:25:53 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2015-07-31 15:25:53 +0200 |
commit | 4b6ac4326ac0b5b668c1ae2383104d5c084ef766 (patch) | |
tree | 207fa43223edd2c2b4c3f8a93e213f8bba653669 | |
parent | e87cedf350faad8c8b91ad8ba0db5ab6597123d2 (diff) | |
parent | 182247ea923895e6078a292c2a2754af222d1d27 (diff) |
Merge pull request #803 from mixi/master
build-sys: use 'test -f' instead of AC_CHECK_FILE
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index a16ca6396b..7a10211095 100644 --- a/configure.ac +++ b/configure.ac @@ -1151,10 +1151,10 @@ AS_IF([test "x$enable_gnuefi" != "xno"], [ have_efi_lds=no AC_ARG_WITH(efi-ldsdir, AS_HELP_STRING([--with-efi-ldsdir=PATH], [Path to EFI lds directory]), - [EFI_LDS_DIR="$withval" && AC_CHECK_FILE([${EFI_LDS_DIR}/elf_${EFI_ARCH}_efi.lds], + [EFI_LDS_DIR="$withval" && AS_IF([test -f "${EFI_LDS_DIR}/elf_${EFI_ARCH}_efi.lds"], [have_efi_lds=yes])], [AS_FOR([DIR], [EFI_LDS_DIR], ["${EFI_LIB_DIR}/gnuefi" "${EFI_LIB_DIR}"], - [AC_CHECK_FILE([${EFI_LDS_DIR}/elf_${EFI_ARCH}_efi.lds], + [AS_IF([test -f "${EFI_LDS_DIR}/elf_${EFI_ARCH}_efi.lds"], [have_efi_lds=yes && break])])]) AS_IF([test "x$have_efi_lds" = xyes], [AC_SUBST([EFI_LDS_DIR])], |