~ubuntu-branches/ubuntu/trusty/netrek-client-cow/trusty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Barry deFreese
  • Date: 2009-06-16 15:27:20 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090616152720-whngeaf1w8l23u14
Tags: 3.3.0-1
[ Barry deFreese ]
* New upstream release.
* Install upstream desktop file. (Closes: #522587).
* Add quilt patch system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4912
4912
done
4913
4913
 
4914
4914
 
4915
 
{ $as_echo "$as_me:$LINENO: checking for wait3 that fills in rusage" >&5
4916
 
$as_echo_n "checking for wait3 that fills in rusage... " >&6; }
4917
 
if test "${ac_cv_func_wait3_rusage+set}" = set; then
4918
 
  $as_echo_n "(cached) " >&6
4919
 
else
4920
 
  if test "$cross_compiling" = yes; then
4921
 
  ac_cv_func_wait3_rusage=no
4922
 
else
4923
 
  cat >conftest.$ac_ext <<_ACEOF
4924
 
/* confdefs.h.  */
4925
 
_ACEOF
4926
 
cat confdefs.h >>conftest.$ac_ext
4927
 
cat >>conftest.$ac_ext <<_ACEOF
4928
 
/* end confdefs.h.  */
4929
 
$ac_includes_default
4930
 
#include <sys/time.h>
4931
 
#include <sys/resource.h>
4932
 
#include <sys/wait.h>
4933
 
/* HP-UX has wait3 but does not fill in rusage at all.  */
4934
 
int
4935
 
main ()
4936
 
{
4937
 
  struct rusage r;
4938
 
  int i;
4939
 
  /* Use a field that we can force nonzero --
4940
 
     voluntary context switches.
4941
 
     For systems like NeXT and OSF/1 that don't set it,
4942
 
     also use the system CPU time.  And page faults (I/O) for Linux.  */
4943
 
  r.ru_nvcsw = 0;
4944
 
  r.ru_stime.tv_sec = 0;
4945
 
  r.ru_stime.tv_usec = 0;
4946
 
  r.ru_majflt = r.ru_minflt = 0;
4947
 
  switch (fork ())
4948
 
    {
4949
 
    case 0: /* Child.  */
4950
 
      sleep(1); /* Give up the CPU.  */
4951
 
      _exit(0);
4952
 
      break;
4953
 
    case -1: /* What can we do?  */
4954
 
      _exit(0);
4955
 
      break;
4956
 
    default: /* Parent.  */
4957
 
      wait3(&i, 0, &r);
4958
 
      /* Avoid "text file busy" from rm on fast HP-UX machines.  */
4959
 
      sleep(2);
4960
 
      return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
4961
 
              && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
4962
 
    }
4963
 
}
4964
 
_ACEOF
4965
 
rm -f conftest$ac_exeext
4966
 
if { (ac_try="$ac_link"
4967
 
case "(($ac_try" in
4968
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969
 
  *) ac_try_echo=$ac_try;;
4970
 
esac
4971
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4972
 
$as_echo "$ac_try_echo") >&5
4973
 
  (eval "$ac_link") 2>&5
4974
 
  ac_status=$?
4975
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4977
 
  { (case "(($ac_try" in
4978
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979
 
  *) ac_try_echo=$ac_try;;
4980
 
esac
4981
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4982
 
$as_echo "$ac_try_echo") >&5
4983
 
  (eval "$ac_try") 2>&5
4984
 
  ac_status=$?
4985
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986
 
  (exit $ac_status); }; }; then
4987
 
  ac_cv_func_wait3_rusage=yes
4988
 
else
4989
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
4990
 
$as_echo "$as_me: failed program was:" >&5
4991
 
sed 's/^/| /' conftest.$ac_ext >&5
4992
 
 
4993
 
( exit $ac_status )
4994
 
ac_cv_func_wait3_rusage=no
4995
 
fi
4996
 
rm -rf conftest.dSYM
4997
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4998
 
fi
4999
 
 
5000
 
 
5001
 
fi
5002
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3_rusage" >&5
5003
 
$as_echo "$ac_cv_func_wait3_rusage" >&6; }
5004
 
if test $ac_cv_func_wait3_rusage = yes; then
5005
 
 
5006
 
cat >>confdefs.h <<\_ACEOF
5007
 
#define HAVE_WAIT3 1
5008
 
_ACEOF
5009
 
 
5010
 
fi
5011
 
 
5012
4915
{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5013
4916
$as_echo_n "checking for pid_t... " >&6; }
5014
4917
if test "${ac_cv_type_pid_t+set}" = set; then