add htop
[openwrt/svn-archive/archive.git] / admin / htop / patches / 001_remove_proc_check.patch
1 diff -purN htop-0.6.5_org/configure htop-0.6.5/configure
2 --- htop-0.6.5_org/configure 2007-04-18 15:38:08.000000000 -0400
3 +++ htop-0.6.5/configure 2007-04-18 17:53:18.000000000 -0400
4 @@ -5286,59 +5286,6 @@ _ACEOF
5
6 fi;
7
8 -as_ac_File=`echo "ac_cv_file_$PROCDIR/stat" | $as_tr_sh`
9 -echo "$as_me:$LINENO: checking for $PROCDIR/stat" >&5
10 -echo $ECHO_N "checking for $PROCDIR/stat... $ECHO_C" >&6
11 -if eval "test \"\${$as_ac_File+set}\" = set"; then
12 - echo $ECHO_N "(cached) $ECHO_C" >&6
13 -else
14 - test "$cross_compiling" = yes &&
15 - { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16 -echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
17 - { (exit 1); exit 1; }; }
18 -if test -r "$PROCDIR/stat"; then
19 - eval "$as_ac_File=yes"
20 -else
21 - eval "$as_ac_File=no"
22 -fi
23 -fi
24 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
25 -echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
26 -if test `eval echo '${'$as_ac_File'}'` = yes; then
27 - :
28 -else
29 - { { echo "$as_me:$LINENO: error: Cannot find /proc/stat. Make sure you have a Linux-compatible /proc filesystem mounted. See the file README for help." >&5
30 -echo "$as_me: error: Cannot find /proc/stat. Make sure you have a Linux-compatible /proc filesystem mounted. See the file README for help." >&2;}
31 - { (exit 1); exit 1; }; }
32 -fi
33 -
34 -as_ac_File=`echo "ac_cv_file_$PROCDIR/meminfo" | $as_tr_sh`
35 -echo "$as_me:$LINENO: checking for $PROCDIR/meminfo" >&5
36 -echo $ECHO_N "checking for $PROCDIR/meminfo... $ECHO_C" >&6
37 -if eval "test \"\${$as_ac_File+set}\" = set"; then
38 - echo $ECHO_N "(cached) $ECHO_C" >&6
39 -else
40 - test "$cross_compiling" = yes &&
41 - { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
42 -echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
43 - { (exit 1); exit 1; }; }
44 -if test -r "$PROCDIR/meminfo"; then
45 - eval "$as_ac_File=yes"
46 -else
47 - eval "$as_ac_File=no"
48 -fi
49 -fi
50 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
51 -echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
52 -if test `eval echo '${'$as_ac_File'}'` = yes; then
53 - :
54 -else
55 - { { echo "$as_me:$LINENO: error: Cannot find /proc/meminfo. Make sure you have a Linux-compatible /proc filesystem mounted. See the file README for help." >&5
56 -echo "$as_me: error: Cannot find /proc/meminfo. Make sure you have a Linux-compatible /proc filesystem mounted. See the file README for help." >&2;}
57 - { (exit 1); exit 1; }; }
58 -fi
59 -
60 -
61 ac_config_files="$ac_config_files Makefile"
62
63 cat >confcache <<\_ACEOF