X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fdup2.m4;h=054982359e8797502185fdd66064a47c7d3eedfd;hb=31d3154399f8c679ba23afb0f6bef03b73d4c741;hp=bf8524e14699ca8d483cf907a75e9d062edb927a;hpb=7c3f8da8f075e3813ced160d5b53a28c6f7dfe78;p=gnulib.git diff --git a/m4/dup2.m4 b/m4/dup2.m4 index bf8524e14..054982359 100644 --- a/m4/dup2.m4 +++ b/m4/dup2.m4 @@ -1,10 +1,15 @@ -#serial 4 -dnl Copyright (C) 2002, 2005 Free Software Foundation, Inc. +#serial 5 +dnl Copyright (C) 2002, 2005, 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_DUP2], [ - AC_REPLACE_FUNCS(dup2) + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([dup2]) + if test $ac_cv_func_dup2 = no; then + HAVE_DUP2=0 + AC_LIBOBJ([dup2]) + fi ])