[Python-checkins] python/dist/src configure, 1.422, 1.423 configure.in, 1.433, 1.434 pyconfig.h.in, 1.84, 1.85

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sat Sep 20 11:30:22 EDT 2003


Update of /cvsroot/python/python/dist/src
In directory sc8-pr-cvs1:/tmp/cvs-serv26354
Modified Files:
	configure configure.in pyconfig.h.in 
Log Message:
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.422
retrieving revision 1.423
diff -C2 -d -r1.422 -r1.423
*** configure	20 Sep 2003 10:47:47 -0000	1.422
--- configure	20 Sep 2003 15:30:18 -0000	1.423
***************
*** 1,4 ****
 #! /bin/sh
! # From configure.in Revision: 1.432 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.57 for python 2.4.
--- 1,4 ----
 #! /bin/sh
! # From configure.in Revision: 1.433 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.57 for python 2.4.
***************
*** 13084,13092 ****
 
 
- 
- 
- 
 for ac_func in alarm chown clock confstr ctermid execv \
! fchdir fork fsync fdatasync fpathconf ftime ftruncate \
 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
 getpriority getpwent getwd \
--- 13084,13089 ----
 
 
 for ac_func in alarm chown clock confstr ctermid execv \
! fork fpathconf ftime ftruncate \
 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
 getpriority getpwent getwd \
***************
*** 13309,13312 ****
--- 13306,13447 ----
 cat >>confdefs.h <<\_ACEOF
 #define HAVE_SYMLINK 1
+ _ACEOF
+ 
+ echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+ else
+ echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+ 
+ echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6
+ 
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ echo "$as_me:$LINENO: checking for fchdir" >&5
+ echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h. */
+ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+ #include <unistd.h>
+ int
+ main ()
+ {
+ void *x=fchdir
+ ;
+ return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ 
+ cat >>confdefs.h <<\_ACEOF
+ #define HAVE_FCHDIR 1
+ _ACEOF
+ 
+ echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+ else
+ echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+ 
+ echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6
+ 
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ echo "$as_me:$LINENO: checking for fsync" >&5
+ echo $ECHO_N "checking for fsync... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h. */
+ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+ #include <unistd.h>
+ int
+ main ()
+ {
+ void *x=fsync
+ ;
+ return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ 
+ cat >>confdefs.h <<\_ACEOF
+ #define HAVE_SYNC 1
+ _ACEOF
+ 
+ echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+ else
+ echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+ 
+ echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6
+ 
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ echo "$as_me:$LINENO: checking for fdatasync" >&5
+ echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h. */
+ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+ #include <unistd.h>
+ int
+ main ()
+ {
+ void *x=fdatasync
+ ;
+ return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ 
+ cat >>confdefs.h <<\_ACEOF
+ #define HAVE_FDATASYNC 1
 _ACEOF
 
Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.433
retrieving revision 1.434
diff -C2 -d -r1.433 -r1.434
*** configure.in	20 Sep 2003 10:47:47 -0000	1.433
--- configure.in	20 Sep 2003 15:30:19 -0000	1.434
***************
*** 2066,2070 ****
 # checks for library functions
 AC_CHECK_FUNCS(alarm chown clock confstr ctermid execv \
! fchdir fork fsync fdatasync fpathconf ftime ftruncate \
 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
 getpriority getpwent getwd \
--- 2066,2070 ----
 # checks for library functions
 AC_CHECK_FUNCS(alarm chown clock confstr ctermid execv \
! fork fpathconf ftime ftruncate \
 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
 getpriority getpwent getwd \
***************
*** 2095,2098 ****
--- 2095,2116 ----
 AC_TRY_COMPILE([#include <unistd.h>], void *x=symlink,
 AC_DEFINE(HAVE_SYMLINK, 1, Define if you have the 'symlink' function.)
+ AC_MSG_RESULT(yes),
+ AC_MSG_RESULT(no)
+ )
+ AC_MSG_CHECKING(for fchdir)
+ AC_TRY_COMPILE([#include <unistd.h>], void *x=fchdir,
+ AC_DEFINE(HAVE_FCHDIR, 1, Define if you have the 'fchdir' function.)
+ AC_MSG_RESULT(yes),
+ AC_MSG_RESULT(no)
+ )
+ AC_MSG_CHECKING(for fsync)
+ AC_TRY_COMPILE([#include <unistd.h>], void *x=fsync,
+ AC_DEFINE(HAVE_SYNC, 1, Define if you have the 'fsync' function.)
+ AC_MSG_RESULT(yes),
+ AC_MSG_RESULT(no)
+ )
+ AC_MSG_CHECKING(for fdatasync)
+ AC_TRY_COMPILE([#include <unistd.h>], void *x=fdatasync,
+ AC_DEFINE(HAVE_FDATASYNC, 1, Define if you have the 'fdatasync' function.)
 AC_MSG_RESULT(yes),
 AC_MSG_RESULT(no)
Index: pyconfig.h.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/pyconfig.h.in,v
retrieving revision 1.84
retrieving revision 1.85
diff -C2 -d -r1.84 -r1.85
*** pyconfig.h.in	19 Sep 2003 00:59:16 -0000	1.84
--- pyconfig.h.in	20 Sep 2003 15:30:20 -0000	1.85
***************
*** 97,101 ****
 #undef HAVE_EXECV
 
! /* Define to 1 if you have the `fchdir' function. */
 #undef HAVE_FCHDIR
 
--- 97,101 ----
 #undef HAVE_EXECV
 
! /* Define if you have the 'fchdir' function. */
 #undef HAVE_FCHDIR
 
***************
*** 103,107 ****
 #undef HAVE_FCNTL_H
 
! /* Define to 1 if you have the `fdatasync' function. */
 #undef HAVE_FDATASYNC
 
--- 103,107 ----
 #undef HAVE_FCNTL_H
 
! /* Define if you have the 'fdatasync' function. */
 #undef HAVE_FDATASYNC
 
***************
*** 127,133 ****
 #undef HAVE_FSTATVFS
 
- /* Define to 1 if you have the `fsync' function. */
- #undef HAVE_FSYNC
- 
 /* Define to 1 if you have the `ftell64' function. */
 #undef HAVE_FTELL64
--- 127,130 ----
***************
*** 488,491 ****
--- 485,491 ----
 /* Define if you have the 'symlink' function. */
 #undef HAVE_SYMLINK
+ 
+ /* Define if you have the 'fsync' function. */
+ #undef HAVE_SYNC
 
 /* Define to 1 if you have the `sysconf' function. */


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /