all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 0d5fe3c0283de845f285e7b3802121b32a3e23e2 1354 bytes (raw)
name: m4/readlinkat.m4 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
 
# serial 5
# See if we need to provide readlinkat replacement.

dnl Copyright (C) 2009-2016 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

# Written by Eric Blake.

AC_DEFUN([gl_FUNC_READLINKAT],
[
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  AC_CHECK_FUNCS_ONCE([readlinkat])
  AC_REQUIRE([gl_FUNC_READLINK])
  if test $ac_cv_func_readlinkat = no; then
    HAVE_READLINKAT=0
  else
    AC_CACHE_CHECK([whether readlinkat signature is correct],
      [gl_cv_decl_readlinkat_works],
      [AC_COMPILE_IFELSE(
         [AC_LANG_PROGRAM(
           [[#include <unistd.h>
             /* Check whether original declaration has correct type.  */
             ssize_t readlinkat (int, char const *, char *, size_t);]])],
         [gl_cv_decl_readlinkat_works=yes],
         [gl_cv_decl_readlinkat_works=no])])
    # Assume readinkat has the same trailing slash bug as readlink,
    # as is the case on macOS 10.10
    case "$gl_cv_func_readlink_works" in
      *yes)
        if test "$gl_cv_decl_readlinkat_works" != yes; then
          REPLACE_READLINKAT=1
        fi
        ;;
      *)
        REPLACE_READLINKAT=1
        ;;
    esac
  fi
])

debug log:

solving 0d5fe3c ...
found 0d5fe3c in https://yhetil.org/emacs/20161119192815.7289-1-p.stephani2@gmail.com/
found 428b183 in https://git.savannah.gnu.org/cgit/emacs.git
preparing index
index prepared:
100644 428b183b0862d2e7bb4492d6a2f44379380ba96e	m4/readlinkat.m4

applying [1/1] https://yhetil.org/emacs/20161119192815.7289-1-p.stephani2@gmail.com/
diff --git a/m4/readlinkat.m4 b/m4/readlinkat.m4
index 428b183..0d5fe3c 100644

Checking patch m4/readlinkat.m4...
Applied patch m4/readlinkat.m4 cleanly.

index at:
100644 0d5fe3c0283de845f285e7b3802121b32a3e23e2	m4/readlinkat.m4

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.