|
Last change
on this file since 3619 was 3529, checked in by bird, 4 years ago |
|
Imported grep 3.7 from grep-3.7.tar.gz (sha256: c22b0cf2d4f6bbe599c902387e8058990e1eee99aef333a203829e5fd3dbb342), applying minimal auto-props.
|
-
Property svn:eol-style
set to
LF
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | # serial 46
|
|---|
| 2 | # See if we need to use our replacement for Solaris' openat et al functions.
|
|---|
| 3 |
|
|---|
| 4 | dnl Copyright (C) 2004-2021 Free Software Foundation, Inc.
|
|---|
| 5 | dnl This file is free software; the Free Software Foundation
|
|---|
| 6 | dnl gives unlimited permission to copy and/or distribute it,
|
|---|
| 7 | dnl with or without modifications, as long as this notice is preserved.
|
|---|
| 8 |
|
|---|
| 9 | # Written by Jim Meyering.
|
|---|
| 10 |
|
|---|
| 11 | AC_DEFUN([gl_FUNC_OPENAT],
|
|---|
| 12 | [
|
|---|
| 13 | AC_REQUIRE([gl_FCNTL_H_DEFAULTS])
|
|---|
| 14 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
|
|---|
| 15 | AC_CHECK_FUNCS_ONCE([openat])
|
|---|
| 16 | AC_REQUIRE([gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])
|
|---|
| 17 | AC_REQUIRE([gl_PREPROC_O_CLOEXEC])
|
|---|
| 18 | case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_macro_O_CLOEXEC in
|
|---|
| 19 | yes+*yes+yes)
|
|---|
| 20 | ;;
|
|---|
| 21 | yes+*)
|
|---|
| 22 | # Solaris 10 lacks O_CLOEXEC.
|
|---|
| 23 | # Solaris 9 has *at functions, but uniformly mishandles trailing
|
|---|
| 24 | # slash in all of them.
|
|---|
| 25 | REPLACE_OPENAT=1
|
|---|
| 26 | ;;
|
|---|
| 27 | *)
|
|---|
| 28 | HAVE_OPENAT=0
|
|---|
| 29 | ;;
|
|---|
| 30 | esac
|
|---|
| 31 | ])
|
|---|
| 32 |
|
|---|
| 33 | # Prerequisites of lib/openat.c.
|
|---|
| 34 | AC_DEFUN([gl_PREREQ_OPENAT],
|
|---|
| 35 | [
|
|---|
| 36 | AC_REQUIRE([gl_PROMOTED_TYPE_MODE_T])
|
|---|
| 37 | :
|
|---|
| 38 | ])
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.