diff options
author | Bruno Haible <bruno@clisp.org> | 2011-07-26 00:28:07 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-07-26 00:28:07 +0200 |
commit | 59f778ae23f86ab0ff7a8cdd0fb6463233284a49 (patch) | |
tree | bb70aad44230622577e13e48bfe334e1518fd071 /m4/dup2.m4 | |
parent | 01bf66e06a26009d0ff3b0173db77389165f2e99 (diff) | |
download | gnulib-59f778ae23f86ab0ff7a8cdd0fb6463233284a49.tar.gz |
dup2: Move AC_LIBOBJ invocation to module description.
* m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
(gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
Don't invoke AC_LIBOBJ.
* modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
Diffstat (limited to 'm4/dup2.m4')
-rw-r--r-- | m4/dup2.m4 | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/m4/dup2.m4 b/m4/dup2.m4 index b4a22199e4..5c2cc9674c 100644 --- a/m4/dup2.m4 +++ b/m4/dup2.m4 @@ -12,7 +12,6 @@ AC_DEFUN([gl_FUNC_DUP2], AC_CHECK_FUNCS_ONCE([dup2]) if test $ac_cv_func_dup2 = no; then HAVE_DUP2=0 - AC_LIBOBJ([dup2]) fi ], [ AC_DEFINE([HAVE_DUP2], [1], [Define to 1 if you have the 'dup2' function.]) @@ -60,7 +59,7 @@ AC_DEFUN([gl_FUNC_DUP2], esac]) ]) if test "$gl_cv_func_dup2_works" = no; then - gl_REPLACE_DUP2 + REPLACE_DUP2=1 fi fi dnl Replace dup2() for supporting the gnulib-defined fchdir() function, @@ -68,17 +67,7 @@ AC_DEFUN([gl_FUNC_DUP2], m4_ifdef([gl_FUNC_FCHDIR], [ gl_TEST_FCHDIR if test $HAVE_FCHDIR = 0; then - gl_REPLACE_DUP2 + REPLACE_DUP2=1 fi ]) ]) - -AC_DEFUN([gl_REPLACE_DUP2], -[ - AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) - AC_CHECK_FUNCS_ONCE([dup2]) - if test $ac_cv_func_dup2 = yes; then - REPLACE_DUP2=1 - fi - AC_LIBOBJ([dup2]) -]) |