pass ARCH down to uClibc
[buildroot.git] / package / strace / strace-4.5.18-statfs64-reconfigure.patch
blob4b6aa9de234963820321cee139a22d78f00436f2
1 diff -u strace-4.5.18/configure strace-4.5.18.new/configure
2 --- strace-4.5.18/configure 2008-08-28 23:36:06.000000000 +0200
3 +++ strace-4.5.18.new/configure 2008-10-28 14:32:43.000000000 +0100
4 @@ -5994,6 +5994,68 @@
6 fi
8 +{ echo "$as_me:$LINENO: checking for statfs64 in sys/vfs.h" >&5
9 +echo $ECHO_N "checking for statfs64 in sys/vfs.h... $ECHO_C" >&6; }
10 +if test "${ac_cv_type_statfs64+set}" = set; then
11 + echo $ECHO_N "(cached) $ECHO_C" >&6
12 +else
13 + cat >conftest.$ac_ext <<_ACEOF
14 +/* confdefs.h. */
15 +_ACEOF
16 +cat confdefs.h >>conftest.$ac_ext
17 +cat >>conftest.$ac_ext <<_ACEOF
18 +/* end confdefs.h. */
19 +#ifdef LINUX
20 +#include <linux/types.h>
21 +#include <sys/vfs.h>
22 +#endif
23 +int
24 +main ()
26 +struct statfs64 st;
27 + ;
28 + return 0;
30 +_ACEOF
31 +rm -f conftest.$ac_objext
32 +if { (ac_try="$ac_compile"
33 +case "(($ac_try" in
34 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35 + *) ac_try_echo=$ac_try;;
36 +esac
37 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38 + (eval "$ac_compile") 2>conftest.er1
39 + ac_status=$?
40 + grep -v '^ *+' conftest.er1 >conftest.err
41 + rm -f conftest.er1
42 + cat conftest.err >&5
43 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44 + (exit $ac_status); } && {
45 + test -z "$ac_c_werror_flag" ||
46 + test ! -s conftest.err
47 + } && test -s conftest.$ac_objext; then
48 + ac_cv_type_statfs64=yes
49 +else
50 + echo "$as_me: failed program was:" >&5
51 +sed 's/^/| /' conftest.$ac_ext >&5
53 + ac_cv_type_statfs64=no
54 +fi
56 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57 +fi
59 +{ echo "$as_me:$LINENO: result: $ac_cv_type_statfs64" >&5
60 +echo "${ECHO_T}$ac_cv_type_statfs64" >&6; }
61 +if test "$ac_cv_type_statfs64" = yes
62 +then
64 +cat >>confdefs.h <<\_ACEOF
65 +#define HAVE_STATFS64 1
66 +_ACEOF
68 +fi
71 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
72 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }