summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2011-11-05 21:35:40 +0100
committerStefano Lattarini <stefano.lattarini@gmail.com>2011-11-05 21:35:40 +0100
commiteea57793c7dde8b836ff1e6f8e232747a85b5dba (patch)
treec689a7f1f89e7a89e13a51c13bc34388a83466db /m4
parentdb93b31d81c7809e49fa874acfd5e3aa3504dc48 (diff)
downloadautomake-eea57793c7dde8b836ff1e6f8e232747a85b5dba.tar.gz
ar-lib: fix configure output for "unrecognized archiver interface"
* m4/ar-lib.m4: Ensure that, even when an error is hit while trying to determine the archiver interface kind, the "checking archiver interface" message from configure is properly terminated before an error message is printed, to avoid slightly garbled output. * tests/ar4.test: Enhance. * tests/ar5.test: Likewise.
Diffstat (limited to 'm4')
-rw-r--r--m4/ar-lib.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/ar-lib.m4 b/m4/ar-lib.m4
index 822ca6085..e45c558dd 100644
--- a/m4/ar-lib.m4
+++ b/m4/ar-lib.m4
@@ -33,8 +33,7 @@ AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
if test "$ac_status" -eq 0; then
am_cv_ar_interface=lib
else
- m4_default([$1],
- [AC_MSG_ERROR([could not determine $AR interface])])
+ am_cv_ar_interface=unknown
fi
fi
rm -f conftest.lib libconftest.a
@@ -53,6 +52,10 @@ lib)
# similar.
AR="$am_aux_dir/ar-lib $AR"
;;
+unknown)
+ m4_default([$1],
+ [AC_MSG_ERROR([could not determine $AR interface])])
+ ;;
esac
AC_SUBST([AR])dnl
])