summaryrefslogtreecommitdiff
path: root/x11-misc/alock/files/no-which.patch
blob: 1764be32c82dc569f2d9871a1c6b0b0d905d21dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
https://bugs.gentoo.org/844886
--- a/configure
+++ b/configure
@@ -26,7 +26,7 @@ msg_chkfor() {
 check_docs() {
 
     msg_chkfor "asciidoc"
-    if which asciidoc 1> /dev/null 2>&3
+    if command -v asciidoc 1> /dev/null 2>&3
     then
         echo "ok."
         echo "#_______________________" >&4
@@ -40,7 +40,7 @@ check_docs() {
 check_tools() {
 
     msg_chkfor "compiler $CC"
-    if which "$CC" 1> /dev/null 2>&3
+    if command -v "$CC" 1> /dev/null 2>&3
     then
         echo "ok."
         echo "---------------------------------" 1>&3
@@ -56,7 +56,7 @@ check_tools() {
 check_imlib2() {
 
     msg_chkfor "imlib2-config"
-    if which imlib2-config 1> /dev/null 2>&3
+    if command -v imlib2-config 1> /dev/null 2>&3
     then
         echo "ok."
         cat << EOF > tmp.c