VirtualBox

source: kBuild/vendor/grep/2.12/m4/openat.m4

Last change on this file was 2595, checked in by bird, 12 years ago

gnu grep version 2.12 (grep-2.12.tar.xz, md5sum=8d2f0346d08b13c18afb81f0e8aa1e2f)

File size: 972 bytes
Line 
1# serial 43
2# See if we need to use our replacement for Solaris' openat et al functions.
3
4dnl Copyright (C) 2004-2012 Free Software Foundation, Inc.
5dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it,
7dnl with or without modifications, as long as this notice is preserved.
8
9# Written by Jim Meyering.
10
11AC_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 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
18 yes+yes)
19 ;;
20 yes+*)
21 # Solaris 9 has *at functions, but uniformly mishandles trailing
22 # slash in all of them.
23 REPLACE_OPENAT=1
24 ;;
25 *)
26 HAVE_OPENAT=0
27 ;;
28 esac
29])
30
31# Prerequisites of lib/openat.c.
32AC_DEFUN([gl_PREREQ_OPENAT],
33[
34 AC_REQUIRE([AC_C_INLINE])
35 AC_REQUIRE([gl_PROMOTED_TYPE_MODE_T])
36 :
37])
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette