The test for setpgrp having two arguments didn't actually test anything.
For reasons unknown this suddenly started to matter (since Martin's 1.396 checkin? But why?), at least on MacOSX. Added a real test similar to the getpgrp argument test.
This commit is contained in:
parent
7035c98c5c
commit
150753cb22
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# From configure.in Revision: 1.396 .
|
# From configure.in Revision: 1.397 .
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.53 for python 2.3.
|
# Generated by GNU Autoconf 2.53 for python 2.3.
|
||||||
#
|
#
|
||||||
|
@ -908,7 +908,7 @@ esac
|
||||||
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
|
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
|
||||||
# absolute.
|
# absolute.
|
||||||
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
|
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
|
||||||
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
|
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
|
||||||
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
|
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
|
||||||
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
|
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
|
||||||
|
|
||||||
|
@ -13011,22 +13011,29 @@ rm -f conftest.$ac_objext conftest.$ac_ext
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
|
|
||||||
echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
|
for ac_func in setpgrp
|
||||||
if test "${ac_cv_func_setpgrp_void+set}" = set; then
|
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
|
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
|
else
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
#line $LINENO "configure"
|
#line $LINENO "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#if HAVE_UNISTD_H
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
# include <unistd.h>
|
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
|
#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
|
#ifdef F77_DUMMY_MAIN
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
|
@ -13037,45 +13044,89 @@ else
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
/* If this system has a BSD-style setpgrp which takes arguments,
|
/* The GNU C library defines this for functions which it implements
|
||||||
setpgrp(1, 1) will fail with ESRCH and return -1, in that case
|
to always fail with ENOSYS. Some functions are actually named
|
||||||
exit successfully. */
|
something starting with __ and the normal name is an alias. */
|
||||||
exit (setpgrp (1,1) == -1 ? 0 : 1);
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
||||||
|
choke me
|
||||||
|
#else
|
||||||
|
f = $ac_func;
|
||||||
|
#endif
|
||||||
|
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
rm -f conftest$ac_exeext
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
||||||
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||||||
(eval $ac_link) 2>&5
|
(eval $ac_link) 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
(exit $ac_status); } &&
|
||||||
|
{ ac_try='test -s conftest$ac_exeext'
|
||||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
(eval $ac_try) 2>&5
|
(eval $ac_try) 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
(exit $ac_status); }; }; then
|
(exit $ac_status); }; }; then
|
||||||
ac_cv_func_setpgrp_void=no
|
eval "$as_ac_var=yes"
|
||||||
else
|
else
|
||||||
echo "$as_me: program exited with status $ac_status" >&5
|
echo "$as_me: failed program was:" >&5
|
||||||
echo "$as_me: failed program was:" >&5
|
|
||||||
cat conftest.$ac_ext >&5
|
cat conftest.$ac_ext >&5
|
||||||
( exit $ac_status )
|
eval "$as_ac_var=no"
|
||||||
ac_cv_func_setpgrp_void=yes
|
|
||||||
fi
|
fi
|
||||||
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
||||||
fi
|
fi
|
||||||
fi
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
||||||
echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
||||||
echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
||||||
if test $ac_cv_func_setpgrp_void = 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
|
cat >>confdefs.h <<\_ACEOF
|
||||||
#define SETPGRP_VOID 1
|
#define SETPGRP_HAVE_ARG 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
cat conftest.$ac_ext >&5
|
||||||
fi
|
fi
|
||||||
|
rm -f conftest.$ac_objext conftest.$ac_ext
|
||||||
|
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
for ac_func in gettimeofday
|
for ac_func in gettimeofday
|
||||||
|
@ -17671,7 +17722,7 @@ esac
|
||||||
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
|
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
|
||||||
# absolute.
|
# absolute.
|
||||||
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
|
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
|
||||||
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
|
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
|
||||||
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
|
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
|
||||||
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
|
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
|
||||||
|
|
||||||
|
|
|
@ -1925,8 +1925,12 @@ AC_CHECK_FUNCS(getpgrp,
|
||||||
[Define if getpgrp() must be called as getpgrp(0).])
|
[Define if getpgrp() must be called as getpgrp(0).])
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
AC_FUNC_SETPGRP(AC_DEFINE(SETPGRP_HAVE_ARG, 1,
|
AC_CHECK_FUNCS(setpgrp,
|
||||||
[Define if setpgrp() must be called as setpgrp(0, 0).])
|
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,
|
AC_CHECK_FUNCS(gettimeofday,
|
||||||
AC_TRY_COMPILE([#include <sys/time.h>],
|
AC_TRY_COMPILE([#include <sys/time.h>],
|
||||||
|
|
Loading…
Reference in New Issue