diff options
author | Bruno Haible <bruno@clisp.org> | 2011-07-25 23:38:11 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-07-25 23:38:11 +0200 |
commit | 668c68616b7d1158d7a2b357b34741713f10e405 (patch) | |
tree | fd92f38caacb61e981be04255c962da4ab007d46 /m4/open.m4 | |
parent | 208e667b5f8c696e723da34171fbaa6f01246f3b (diff) | |
download | gnulib-668c68616b7d1158d7a2b357b34741713f10e405.tar.gz |
open: Move AC_LIBOBJ invocation to module description.
* m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
(gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
* modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
Diffstat (limited to 'm4/open.m4')
-rw-r--r-- | m4/open.m4 | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/m4/open.m4 b/m4/open.m4 index 454eb42a2a..d8191842fc 100644 --- a/m4/open.m4 +++ b/m4/open.m4 @@ -9,7 +9,7 @@ AC_DEFUN([gl_FUNC_OPEN], AC_REQUIRE([AC_CANONICAL_HOST]) case "$host_os" in mingw* | pw*) - gl_REPLACE_OPEN + REPLACE_OPEN=1 ;; *) dnl open("foo/") should not create a file when the file name has a @@ -57,7 +57,7 @@ changequote([,])dnl *no) AC_DEFINE([OPEN_TRAILING_SLASH_BUG], [1], [Define to 1 if open() fails to recognize a trailing slash.]) - gl_REPLACE_OPEN + REPLACE_OPEN=1 ;; esac ;; @@ -68,7 +68,7 @@ changequote([,])dnl if test $REPLACE_OPEN = 0; then gl_TEST_FCHDIR if test $HAVE_FCHDIR = 0; then - gl_REPLACE_OPEN + REPLACE_OPEN=1 fi fi ]) @@ -77,20 +77,12 @@ changequote([,])dnl if test $REPLACE_OPEN = 0; then gl_NONBLOCKING_IO if test $gl_cv_have_open_O_NONBLOCK != yes; then - gl_REPLACE_OPEN + REPLACE_OPEN=1 fi fi ]) ]) -AC_DEFUN([gl_REPLACE_OPEN], -[ - AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) - REPLACE_OPEN=1 - AC_LIBOBJ([open]) - gl_PREREQ_OPEN -]) - # Prerequisites of lib/open.c. AC_DEFUN([gl_PREREQ_OPEN], [ |