Issue #8746: Correct faulty configure checks so that os.chflags() and

os.lchflags() are once again built on systems that support these
functions (*BSD and OS X).  Also add new stat file flags for OS X
(UF_HIDDEN and UF_COMPRESSED).  Also add additional tests for
os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
This commit is contained in:
Ned Deily 2011-06-28 00:00:28 -07:00
parent 11f00f3b00
commit 3eb67d58d6
9 changed files with 85 additions and 26 deletions

8
configure vendored
View file

@ -9877,7 +9877,7 @@ else
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
[
#include <sys/stat.h>
#include <unistd.h>
int main(int argc, char*argv[])
@ -9886,7 +9886,7 @@ int main(int argc, char*argv[])
return 1;
return 0;
}
]
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
ac_cv_have_chflags=yes
@ -9926,7 +9926,7 @@ else
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
[
#include <sys/stat.h>
#include <unistd.h>
int main(int argc, char*argv[])
@ -9935,7 +9935,7 @@ int main(int argc, char*argv[])
return 1;
return 0;
}
]
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
ac_cv_have_lchflags=yes