"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "m4/fchdir.m4" between
le-1.16.5.tar.gz and le-1.16.6.tar.gz

About: le is a terminal text editor (many block operations with stream and rectangular blocks, tunable syntax highlighting, etc.).

fchdir.m4  (le-1.16.5):fchdir.m4  (le-1.16.6)
# fchdir.m4 serial 22 # fchdir.m4 serial 24
dnl Copyright (C) 2006-2017 Free Software Foundation, Inc. dnl Copyright (C) 2006-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it, dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved. dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_FUNC_FCHDIR], AC_DEFUN([gl_FUNC_FCHDIR],
[ [
AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
AC_REQUIRE([gl_DIRENT_H_DEFAULTS]) AC_REQUIRE([gl_DIRENT_H_DEFAULTS])
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
skipping to change at line 34 skipping to change at line 34
dnl We must also replace anything that can manipulate a directory fd, dnl We must also replace anything that can manipulate a directory fd,
dnl to keep our bookkeeping up-to-date. We don't have to replace dnl to keep our bookkeeping up-to-date. We don't have to replace
dnl fstatat, since no platform has fstatat but lacks fchdir. dnl fstatat, since no platform has fstatat but lacks fchdir.
AC_CACHE_CHECK([whether open can visit directories], AC_CACHE_CHECK([whether open can visit directories],
[gl_cv_func_open_directory_works], [gl_cv_func_open_directory_works],
[AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <fcntl.h> [AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <fcntl.h>
]], [return open(".", O_RDONLY) < 0;])], ]], [return open(".", O_RDONLY) < 0;])],
[gl_cv_func_open_directory_works=yes], [gl_cv_func_open_directory_works=yes],
[gl_cv_func_open_directory_works=no], [gl_cv_func_open_directory_works=no],
[case "$host_os" in [case "$host_os" in
# Guess yes on glibc systems. # Guess yes on Linux systems.
*-gnu*) gl_cv_func_open_directory_works="guessing yes" ;; linux-* | linux) gl_cv_func_open_directory_works="guessing yes" ;;
# Guess no on native Windows. # Guess yes on glibc systems.
mingw*) gl_cv_func_open_directory_works="guessing no" ;; *-gnu* | gnu*) gl_cv_func_open_directory_works="guessing yes" ;;
# If we don't know, assume the worst. # Guess no on native Windows.
*) gl_cv_func_open_directory_works="guessing no" ;; mingw*) gl_cv_func_open_directory_works="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_open_directory_works="guessing no" ;;
esac esac
])]) ])])
case "$gl_cv_func_open_directory_works" in case "$gl_cv_func_open_directory_works" in
*yes) ;; *yes) ;;
*) *)
AC_DEFINE([REPLACE_OPEN_DIRECTORY], [1], [Define to 1 if open() should AC_DEFINE([REPLACE_OPEN_DIRECTORY], [1], [Define to 1 if open() should
work around the inability to open a directory.]) work around the inability to open a directory.])
;; ;;
esac esac
fi fi
 End of changes. 2 change blocks. 
8 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)