patches/strace/4.5.17/100-autoreconf.patch
changeset 974 e298ce9ba8fe
parent 746 b150d6f590fc
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/strace/4.5.17/100-autoreconf.patch	Sat Oct 25 15:44:05 2008 +0000
     1.3 @@ -0,0 +1,81 @@
     1.4 +Original patch from gentoo: ../../dev/crosstool-NG/ct-ng.trunk/patches/strace/4.5.17/100-autoreconf.patch
     1.5 +-= BEGIN original header =-
     1.6 +diff -dur strace-4.5.16.orig/configure strace-4.5.16/configure
     1.7 +-= END original header =-
     1.8 +diff -durN strace-4.5.17.orig/configure strace-4.5.17/configure
     1.9 +--- strace-4.5.17.orig/configure	2008-07-22 02:43:21.000000000 +0200
    1.10 ++++ strace-4.5.17/configure	2008-10-24 21:30:13.000000000 +0200
    1.11 +@@ -5808,6 +5808,73 @@
    1.12 + 
    1.13 + fi
    1.14 + 
    1.15 ++echo "$as_me:$LINENO: checking for statfs64 in sys/(statfs|vfs).h" >&5
    1.16 ++echo $ECHO_N "checking for statfs64 in sys/(statfs|vfs).h... $ECHO_C" >&6
    1.17 ++if test "${ac_cv_type_statfs64+set}" = set; then
    1.18 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
    1.19 ++else
    1.20 ++  cat >conftest.$ac_ext <<_ACEOF
    1.21 ++/* confdefs.h.  */
    1.22 ++_ACEOF
    1.23 ++cat confdefs.h >>conftest.$ac_ext
    1.24 ++cat >>conftest.$ac_ext <<_ACEOF
    1.25 ++/* end confdefs.h.  */
    1.26 ++#ifdef LINUX
    1.27 ++#include <linux/types.h>
    1.28 ++#include <sys/statfs.h>
    1.29 ++#else
    1.30 ++#include <sys/vfs.h>
    1.31 ++#endif
    1.32 ++int
    1.33 ++main ()
    1.34 ++{
    1.35 ++struct statfs64 st;
    1.36 ++  ;
    1.37 ++  return 0;
    1.38 ++}
    1.39 ++_ACEOF
    1.40 ++rm -f conftest.$ac_objext
    1.41 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1.42 ++  (eval $ac_compile) 2>conftest.er1
    1.43 ++  ac_status=$?
    1.44 ++  grep -v '^ *+' conftest.er1 >conftest.err
    1.45 ++  rm -f conftest.er1
    1.46 ++  cat conftest.err >&5
    1.47 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1.48 ++  (exit $ac_status); } &&
    1.49 ++	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
    1.50 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1.51 ++  (eval $ac_try) 2>&5
    1.52 ++  ac_status=$?
    1.53 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1.54 ++  (exit $ac_status); }; } &&
    1.55 ++	 { ac_try='test -s conftest.$ac_objext'
    1.56 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1.57 ++  (eval $ac_try) 2>&5
    1.58 ++  ac_status=$?
    1.59 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1.60 ++  (exit $ac_status); }; }; then
    1.61 ++  ac_cv_type_statfs64=yes
    1.62 ++else
    1.63 ++  echo "$as_me: failed program was:" >&5
    1.64 ++sed 's/^/| /' conftest.$ac_ext >&5
    1.65 ++
    1.66 ++ac_cv_type_statfs64=no
    1.67 ++fi
    1.68 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    1.69 ++fi
    1.70 ++
    1.71 ++echo "$as_me:$LINENO: result: $ac_cv_type_statfs64" >&5
    1.72 ++echo "${ECHO_T}$ac_cv_type_statfs64" >&6
    1.73 ++if test "$ac_cv_type_statfs64" = yes
    1.74 ++then
    1.75 ++
    1.76 ++cat >>confdefs.h <<\_ACEOF
    1.77 ++#define HAVE_STATFS64 1
    1.78 ++_ACEOF
    1.79 ++
    1.80 ++fi
    1.81 ++
    1.82 + 
    1.83 + { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
    1.84 + echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }