diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-01-30 19:36:43 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-01-30 19:36:43 (GMT) |
commit | ed68afa8d6961d4273e682ef462c98ef21e1bfe7 (patch) | |
tree | 6d7c829c1b125f9d2cf37ef896dc384c87a50d78 /configure.in | |
parent | defccf7dab9c5f480740efb4f5c4bffe42c81e5f (diff) | |
download | cpython-ed68afa8d6961d4273e682ef462c98ef21e1bfe7.zip cpython-ed68afa8d6961d4273e682ef462c98ef21e1bfe7.tar.gz cpython-ed68afa8d6961d4273e682ef462c98ef21e1bfe7.tar.bz2 |
Merged revisions 76050 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76050 | gregory.p.smith | 2009-11-01 19:37:37 -0600 (Sun, 01 Nov 2009) | 5 lines
see http://bugs.python.org/issue1006238 this merges in the following
patch to make cross compilation of the chflags check easier:
http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/files/python-2.6-chflags-cross.patch?rev=1.1
........
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/configure.in b/configure.in index 6635208..8b0f7df 100644 --- a/configure.in +++ b/configure.in @@ -2556,8 +2556,7 @@ AC_CHECK_LIB(c, inet_aton, [$ac_cv_prog_TRUE], # On Tru64, chflags seems to be present, but calling it will # exit Python -AC_MSG_CHECKING(for chflags) -AC_CACHE_VAL(ac_cv_have_chflags, +AC_CACHE_CHECK([for chflags], [ac_cv_have_chflags], [dnl AC_TRY_RUN([[ #include <sys/stat.h> #include <unistd.h> @@ -2568,17 +2567,17 @@ int main(int argc, char*argv[]) return 0; } ]], ac_cv_have_chflags=yes, - ac_cv_have_chflags=no, - ac_cv_have_chflags=no) -) -AC_MSG_RESULT($ac_cv_have_chflags) -if test $ac_cv_have_chflags = yes -then + ac_cv_have_chflags=no, + ac_cv_have_chflags=cross) +]) +if test "$ac_cv_have_chflags" = cross ; then + 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.) fi -AC_MSG_CHECKING(for lchflags) -AC_CACHE_VAL(ac_cv_have_lchflags, +AC_CACHE_CHECK([for lchflags], [ac_cv_have_lchflags], [dnl AC_TRY_RUN([[ #include <sys/stat.h> #include <unistd.h> @@ -2589,12 +2588,13 @@ int main(int argc, char*argv[]) return 0; } ]], ac_cv_have_lchflags=yes, - ac_cv_have_lchflags=no, - ac_cv_have_lchflags=no) -) -AC_MSG_RESULT($ac_cv_have_lchflags) -if test $ac_cv_have_lchflags = yes -then + ac_cv_have_lchflags=no, + ac_cv_have_lchflags=cross) +]) +if test "$ac_cv_have_lchflags" = cross ; then + 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.) fi |