issue8746 os.chflags() and os.lchflags() are not built when they should be Fix buggy configure detection of os support (BSD and OS X). Also correct unmatched quote marks in message. APPLIES py3k, 3.1, 2.7 NOTE issue8746-py3k.patch for py3k (3.2a2+) issue8746-27.patch for release-27-maint (2.7+) issue8746-31.patch for release-31-maint (3.1.2+) [this file] diff -r 393957408f87 configure.in --- configure.in Thu Sep 09 22:33:43 2010 +0200 +++ configure.in Thu Sep 09 18:08:17 2010 -0700 @@ -2688,7 +2688,7 @@ # On Tru64, chflags seems to be present, but calling it will # exit Python AC_CACHE_CHECK([for chflags], [ac_cv_have_chflags], [dnl -AC_TRY_RUN([[ +AC_TRY_RUN([ #include #include int main(int argc, char*argv[]) @@ -2697,7 +2697,7 @@ return 1; return 0; } -]], ac_cv_have_chflags=yes, +], ac_cv_have_chflags=yes, ac_cv_have_chflags=no, ac_cv_have_chflags=cross) ]) @@ -2705,11 +2705,11 @@ AC_CHECK_FUNC([chflags], [ac_cv_have_chflags="yes"], [ac_cv_have_chflags="no"]) fi if test "$ac_cv_have_chflags" = yes ; then - AC_DEFINE(HAVE_CHFLAGS, 1, Define to 1 if you have the `chflags' function.) + AC_DEFINE(HAVE_CHFLAGS, 1, Define to 1 if you have the 'chflags' function.) fi AC_CACHE_CHECK([for lchflags], [ac_cv_have_lchflags], [dnl -AC_TRY_RUN([[ +AC_TRY_RUN([ #include #include int main(int argc, char*argv[]) @@ -2718,7 +2718,7 @@ return 1; return 0; } -]], ac_cv_have_lchflags=yes, +], ac_cv_have_lchflags=yes, ac_cv_have_lchflags=no, ac_cv_have_lchflags=cross) ]) @@ -2726,7 +2726,7 @@ AC_CHECK_FUNC([lchflags], [ac_cv_have_lchflags="yes"], [ac_cv_have_lchflags="no"]) fi if test "$ac_cv_have_lchflags" = yes ; then - AC_DEFINE(HAVE_LCHFLAGS, 1, Define to 1 if you have the `lchflags' function.) + AC_DEFINE(HAVE_LCHFLAGS, 1, Define to 1 if you have the 'lchflags' function.) fi dnl Check if system zlib has *Copy() functions