1 |
#serial 3 |
#serial 6 |
2 |
# See if we need to use our replacement for Solaris' openat function. |
# See if we need to use our replacement for Solaris' openat function. |
3 |
|
|
4 |
dnl Copyright (C) 2004 Free Software Foundation, Inc. |
dnl Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
5 |
dnl This file is free software; the Free Software Foundation |
dnl This file is free software; the Free Software Foundation |
6 |
dnl gives unlimited permission to copy and/or distribute it, |
dnl gives unlimited permission to copy and/or distribute it, |
7 |
dnl with or without modifications, as long as this notice is preserved. |
dnl with or without modifications, as long as this notice is preserved. |
10 |
|
|
11 |
AC_DEFUN([gl_FUNC_OPENAT], |
AC_DEFUN([gl_FUNC_OPENAT], |
12 |
[ |
[ |
13 |
AC_LIBSOURCES([openat.c, openat.h]) |
AC_LIBSOURCES([openat.c, openat.h, openat-die.c]) |
14 |
|
AC_LIBOBJ([openat-die]) |
15 |
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) |
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) |
16 |
|
AC_CHECK_FUNCS_ONCE([fdopendir]) |
17 |
AC_REPLACE_FUNCS(openat) |
AC_REPLACE_FUNCS(openat) |
18 |
case $ac_cv_func_openat in |
case $ac_cv_func_openat in |
19 |
yes) ;; |
yes) ;; |