Depends-on:
stdlib
extensions
-ttyname_r [test $HAVE_PTSNAME_R = 0]
+isatty [test $HAVE_PTSNAME_R = 0 || test $REPLACE_PTSNAME_R = 1]
+ttyname_r [test $HAVE_PTSNAME_R = 0 || test $REPLACE_PTSNAME_R = 1]
configure.ac:
gl_FUNC_PTSNAME_R
-if test $HAVE_PTSNAME_R = 0; then
+if test $HAVE_PTSNAME_R = 0 || test $REPLACE_PTSNAME_R = 1; then
AC_LIBOBJ([ptsname_r])
gl_PREREQ_PTSNAME_R
fi