- AC_DEFINE(RENAME_TRAILING_SLASH_BUG, 1,
- [Define if rename does not work for source paths with a trailing slash,
- like the one from SunOS 4.1.1_U1.])
+ if test $gl_cv_func_rename_trailing_slash_bug; then
+ AC_DEFINE([RENAME_TRAILING_SLASH_BUG], [1],
+ [Define if rename does not work for source file names with a trailing
+ slash, like the one from SunOS 4.1.1_U1.])
+ fi
+ if test $gl_cv_func_rename_dest_exists_bug; then
+ AC_DEFINE([RENAME_DEST_EXISTS_BUG], [1],
+ [Define if rename does not work when the destination file exists,
+ as on Windows.])
+ fi