X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=readline%2Fconfigure.in;h=33bc2c7a95546bf147909fa6807bf4509d8c21e9;hb=eb3c48e9b415e7a56dda6a160f31fe4994c43e13;hp=406e172c3d0d9daa941d31372f7930d3276eb378;hpb=d7d4a3d1eadd58d5144564d8f597222e4959bd1c;p=deliverable%2Fbinutils-gdb.git diff --git a/readline/configure.in b/readline/configure.in index 406e172c3d..33bc2c7a95 100644 --- a/readline/configure.in +++ b/readline/configure.in @@ -56,16 +56,22 @@ if test "x$cross_compiling" = "xyes"; then case "${host}" in *-cygwin*) cross_cache=${srcdir}/cross-build/cygwin.cache - if test -r "${cross_cache}"; then - echo "loading cross-build cache file ${cross_cache}" - . ${cross_cache} - fi LOCAL_CFLAGS="$LOCAL_CFLAGS -I${srcdir}/../libtermcap" - unset cross_cache ;; + *-mingw32*) + cross_cache=${srcdir}/cross-build/mingw.cache + ;; *) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2 ;; esac + + if test "x$cross_cache" != "x"; then + if test -r "${cross_cache}"; then + echo "loading cross-build cache file ${cross_cache}" + . ${cross_cache} + fi + unset cross_cache + fi fi if test "x$cross_compiling" = "xyes"; then @@ -112,14 +118,16 @@ AC_CHECK_TYPE(ssize_t, int) AC_HEADER_STAT AC_HEADER_DIRENT -AC_CHECK_FUNCS(lstat memmove putenv select setenv setlocale \ - strcasecmp strpbrk tcgetattr vsnprintf isascii isxdigit) +AC_CHECK_FUNCS(fcntl kill lstat memmove putenv select setenv setlocale \ + strcasecmp strpbrk tcgetattr vsnprintf isascii isxdigit \ + getpwname getpwent getpwuid) AC_FUNC_STRCOLL AC_CHECK_HEADERS(unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \ limits.h sys/ptem.h sys/pte.h sys/stream.h sys/select.h \ - termcap.h termios.h termio.h sys/file.h locale.h memory.h ) + termcap.h termios.h termio.h sys/file.h locale.h memory.h \ + pwd.h) BASH_SYS_SIGNAL_VINTAGE BASH_SYS_REINSTALL_SIGHANDLERS