tools: libtool relocatable fixes
[openwrt/openwrt.git] / tools / libtool / patches / 200-openwrt-branding.patch
1 --- a/libltdl/config/general.m4sh
2 +++ b/libltdl/config/general.m4sh
3 @@ -359,7 +359,7 @@ opt_warning=:
4 # name if it has been set yet.
5 func_echo ()
6 {
7 - $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
8 + $ECHO "OpenWrt-$progname: ${opt_mode+$opt_mode: }$*"
9 }
10
11 # func_verbose arg...
12 @@ -385,14 +385,14 @@ func_echo_all ()
13 # Echo program name prefixed message to standard error.
14 func_error ()
15 {
16 - $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
17 + $ECHO "OpenWrt-$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
18 }
19
20 # func_warning arg...
21 # Echo program name prefixed warning message to standard error.
22 func_warning ()
23 {
24 - $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
25 + $opt_warning && $ECHO "OpenWrt-$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
26
27 # bash bug again:
28 :
29 --- a/libltdl/config/ltmain.sh
30 +++ b/libltdl/config/ltmain.sh
31 @@ -443,7 +443,7 @@ opt_warning=:
32 # name if it has been set yet.
33 func_echo ()
34 {
35 - $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
36 + $ECHO "OpenWrt-$progname: ${opt_mode+$opt_mode: }$*"
37 }
38
39 # func_verbose arg...
40 @@ -469,14 +469,14 @@ func_echo_all ()
41 # Echo program name prefixed message to standard error.
42 func_error ()
43 {
44 - $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
45 + $ECHO "OpenWrt-$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
46 }
47
48 # func_warning arg...
49 # Echo program name prefixed warning message to standard error.
50 func_warning ()
51 {
52 - $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
53 + $opt_warning && $ECHO "OpenWrt-$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
54
55 # bash bug again:
56 :
57 --- a/libtoolize.in
58 +++ b/libtoolize.in
59 @@ -640,7 +640,7 @@ opt_warning=:
60 # name if it has been set yet.
61 func_echo ()
62 {
63 - $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
64 + $ECHO "OpenWrt-$progname: ${opt_mode+$opt_mode: }$*"
65 }
66
67 # func_verbose arg...
68 @@ -666,14 +666,14 @@ func_echo_all ()
69 # Echo program name prefixed message to standard error.
70 func_error ()
71 {
72 - $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
73 + $ECHO "OpenWrt-$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
74 }
75
76 # func_warning arg...
77 # Echo program name prefixed warning message to standard error.
78 func_warning ()
79 {
80 - $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
81 + $opt_warning && $ECHO "OpenWrt-$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
82
83 # bash bug again:
84 :
85 --- a/tests/defs.in
86 +++ b/tests/defs.in
87 @@ -588,7 +588,7 @@ opt_warning=:
88 # name if it has been set yet.
89 func_echo ()
90 {
91 - $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
92 + $ECHO "OpenWrt-$progname: ${opt_mode+$opt_mode: }$*"
93 }
94
95 # func_verbose arg...
96 @@ -614,14 +614,14 @@ func_echo_all ()
97 # Echo program name prefixed message to standard error.
98 func_error ()
99 {
100 - $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
101 + $ECHO "OpenWrt-$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
102 }
103
104 # func_warning arg...
105 # Echo program name prefixed warning message to standard error.
106 func_warning ()
107 {
108 - $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
109 + $opt_warning && $ECHO "OpenWrt-$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
110
111 # bash bug again:
112 :