[Python-checkins] python/dist/src configure,1.319,1.320 configure.in,1.329,1.330
jhylton@users.sourceforge.net
jhylton@users.sourceforge.net
Thu, 18 Jul 2002 13:25:49 -0700
Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv30017
Modified Files:
configure configure.in
Log Message:
Use AC_FUNC_SETPGRP.
Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.319
retrieving revision 1.320
diff -C2 -d -r1.319 -r1.320
*** configure 17 Jul 2002 16:30:32 -0000 1.319
--- configure 18 Jul 2002 20:25:43 -0000 1.320
***************
*** 1,4 ****
#! /bin/sh
! # From configure.in Revision: 1.328 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53.
--- 1,4 ----
#! /bin/sh
! # From configure.in Revision: 1.329 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53.
***************
*** 12069,12095 ****
done
!
! for ac_func in setpgrp
! do
! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! echo "$as_me:$LINENO: checking for $ac_func" >&5
! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
! /* System header to define __stub macros and hopefully few prototypes,
! which can conflict with char $ac_func (); below. */
! #include <assert.h>
! /* Override any gcc2 internal prototype to avoid an error. */
! #ifdef __cplusplus
! extern "C"
#endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func ();
- char (*f) ();
#ifdef F77_DUMMY_MAIN
--- 12069,12088 ----
done
! echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
! echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
! if test "${ac_cv_func_setpgrp_void+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
+ if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
+ echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
+ { (exit 1); exit 1; }; }
+ else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
! #if HAVE_UNISTD_H
! # include <unistd.h>
#endif
#ifdef F77_DUMMY_MAIN
***************
*** 12102,12125 ****
main ()
{
! /* The GNU C library defines this for functions which it implements
! to always fail with ENOSYS. Some functions are actually named
! something starting with __ and the normal name is an alias. */
! #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! choke me
! #else
! f = $ac_func;
! #endif
!
;
return 0;
}
_ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
! (exit $ac_status); } &&
! { ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
--- 12095,12112 ----
main ()
{
! /* If this system has a BSD-style setpgrp which takes arguments,
! setpgrp(1, 1) will fail with ESRCH and return -1, in that case
! exit successfully. */
! exit (setpgrp (1,1) == -1 ? 0 : 1);
;
return 0;
}
_ACEOF
! rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
! (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
***************
*** 12127,12188 ****
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
! eval "$as_ac_var=yes"
else
! echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
! eval "$as_ac_var=no"
fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
! echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! if test `eval echo '${'$as_ac_var'}'` = yes; then
! cat >>confdefs.h <<_ACEOF
! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! _ACEOF
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! #include <unistd.h>
! #ifdef F77_DUMMY_MAIN
! # ifdef __cplusplus
! extern "C"
! # endif
! int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! setpgrp(0,0);
! ;
! 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 SETPGRP_HAVE_ARG 1
_ACEOF
-
- else
- echo "$as_me: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest.$ac_objext conftest.$ac_ext
-
fi
- done
--- 12114,12137 ----
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
! ac_cv_func_setpgrp_void=no
else
! echo "$as_me: program exited with status $ac_status" >&5
! echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
! ( exit $ac_status )
! ac_cv_func_setpgrp_void=yes
fi
! rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
! fi
! echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
! echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
! if test $ac_cv_func_setpgrp_void = yes; then
cat >>confdefs.h <<\_ACEOF
! #define SETPGRP_VOID 1
_ACEOF
fi
Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.329
retrieving revision 1.330
diff -C2 -d -r1.329 -r1.330
*** configure.in 17 Jul 2002 16:30:34 -0000 1.329
--- configure.in 18 Jul 2002 20:25:46 -0000 1.330
***************
*** 1633,1642 ****
)
)
! AC_CHECK_FUNCS(setpgrp,
! AC_TRY_COMPILE([#include <unistd.h>],
! [setpgrp(0,0);],
! AC_DEFINE(SETPGRP_HAVE_ARG, 1,
! [Define if setpgrp() must be called as setpgrp(0, 0).])
! )
)
AC_CHECK_FUNCS(gettimeofday,
--- 1633,1638 ----
)
)
! AC_FUNC_SETPGRP(AC_DEFINE(SETPGRP_HAVE_ARG, 1,
! [Define if setpgrp() must be called as setpgrp(0, 0).])
)
AC_CHECK_FUNCS(gettimeofday,