diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-10 18:44:45 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-10 18:44:45 (GMT) |
commit | 5ea2828c663855453abdb958575595a427a5a88e (patch) | |
tree | 646ed811ab86a2e4bde5c9caf6ad75192354b0d7 /configure | |
parent | 0ea31a93551d352fe989d8bc2728046abc4fc6c4 (diff) | |
download | cpython-5ea2828c663855453abdb958575595a427a5a88e.zip cpython-5ea2828c663855453abdb958575595a427a5a88e.tar.gz cpython-5ea2828c663855453abdb958575595a427a5a88e.tar.bz2 |
Merged revisions 84674 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84674 | antoine.pitrou | 2010-09-10 20:39:00 +0200 (ven., 10 sept. 2010) | 3 lines
Followup to #4026: better patch for flock detection.
........
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 66 |
1 files changed, 26 insertions, 40 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 84367 . +# From configure.in Revision: 84586 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.65 for python 3.1. # @@ -9408,60 +9408,45 @@ $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5 -$as_echo_n "checking for flock... " >&6; } -have_flock=no -cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 +$as_echo_n "checking for flock declaration... " >&6; } +if test "${ac_cv_flock_decl+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - -#include "confdefs.h" #include <sys/file.h> - int main () { void* p = flock + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : - - -$as_echo "#define HAVE_FLOCK 1" >>confdefs.h - - have_flock=yes + ac_cv_flock_decl=yes +else + ac_cv_flock_decl=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_flock" >&5 -$as_echo "$have_flock" >&6; } -if test "$have_flock" = yes ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flock requires additional libraries." >&5 -$as_echo_n "checking if flock requires additional libraries.... " >&6; } - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - #include "confdefs.h" - #include <sys/file.h> - -int -main () -{ -flock(0, 0) - ; - return 0; -} +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 +$as_echo "$ac_cv_flock_decl" >&6; } +if test "x${ac_cv_flock_decl}" = xyes; then + for ac_func in flock +do : + ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" +if test "x$ac_cv_func_flock" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_FLOCK 1 _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 $as_echo_n "checking for flock in -lbsd... " >&6; } if test "${ac_cv_lib_bsd_flock+set}" = set; then : $as_echo_n "(cached) " >&6 @@ -9498,6 +9483,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 $as_echo "$ac_cv_lib_bsd_flock" >&6; } if test "x$ac_cv_lib_bsd_flock" = x""yes; then : + $as_echo "#define HAVE_FLOCK 1" >>confdefs.h $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h @@ -9507,8 +9493,8 @@ fi fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +done + fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |