summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorKevin Cernekee <cernekee@google.com>2015-02-11 15:22:50 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2015-02-11 15:47:44 -0800
commit60f0efb19aec30f96bddb12b093292f3d051616d (patch)
tree7a364c6935fb1ccc1bf38058cbc3471515311023 /m4
parent8e19825e65924c36535bf70e21c26d2cbc6076ac (diff)
downloadgnulib-60f0efb19aec30f96bddb12b093292f3d051616d.tar.gz
Assume unbroken ungetc() on Android
* m4/ungetc.m4: Add Android case to host OS check. The ungetc() test case passed when running on an Android host, and the code hasn't really changed since 2009.
Diffstat (limited to 'm4')
-rw-r--r--m4/ungetc.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/ungetc.m4 b/m4/ungetc.m4
index c5c90f6d9c..2a34b3019f 100644
--- a/m4/ungetc.m4
+++ b/m4/ungetc.m4
@@ -29,8 +29,9 @@ AC_DEFUN_ONCE([gl_FUNC_UNGETC_WORKS],
fclose (f); remove ("conftest.tmp");])],
[gl_cv_func_ungetc_works=yes], [gl_cv_func_ungetc_works=no],
[case "$host_os" in
- # Guess yes on glibc systems.
- *-gnu*) gl_cv_func_ungetc_works="guessing yes" ;;
+ # Guess yes on glibc and bionic systems.
+ *-gnu*|*-android*)
+ gl_cv_func_ungetc_works="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_ungetc_works="guessing no" ;;
esac