Commit 05297d7 1 parent 47a3f23 commit 05297d7 Copy full SHA for 05297d7
File tree 4 files changed +10
-8
lines changed
4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ export CFLAGS='-O2 -qlanglvl=extc99'
26
26
lslpp -L bos.adt.insttools > /dev/null
27
27
[[ $? -ne 0 ]] && echo " must have bos.adt.insttools installed" && exit -1
28
28
29
- apr_config=` which apr-1-config`
30
- apu_config=` which apu-1-config`
29
+ apr_config=` command -v apr-1-config`
30
+ apu_config=` command -v apu-1-config`
31
31
32
32
if [[ -z ${apr_config} && -z ${apu_config} ]]
33
33
then
34
34
export PATH=/opt/bin:${PATH}
35
- apr_config=` which apr-1-config`
36
- apu_config=` which apu-1-config`
35
+ apr_config=` command -v apr-1-config`
36
+ apu_config=` command -v apu-1-config`
37
37
fi
38
38
39
39
while test $# -gt 0
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ PREFIX=/usr/local/apache2
24
24
TEMPDIR=/var/tmp/$USER /httpd-root
25
25
rm -rf $TEMPDIR
26
26
27
- apr_config=` which apr-1-config`
28
- apu_config=` which apu-1-config`
27
+ apr_config=` command -v apr-1-config`
28
+ apu_config=` command -v apu-1-config`
29
29
30
30
while test $# -gt 0
31
31
do
Original file line number Diff line number Diff line change
1
+ *) build: Use 'command -v' instead of 'which' which is more portable.
2
+ PR 66130 [Sam James <sam@gentoo.org>]
Original file line number Diff line number Diff line change @@ -224,13 +224,13 @@ AC_ARG_WITH(pcre,
224
224
APACHE_HELP_STRING(--with-pcre=PATH,Use external PCRE library))
225
225
if test "x$with_pcre" = "x" || test "$with_pcre" = "yes"; then
226
226
with_pcre="$PATH"
227
- else if which $with_pcre 2>/dev/null; then :; else
227
+ else if command -v $with_pcre 2>/dev/null; then :; else
228
228
with_pcre="$with_pcre/bin:$with_pcre"
229
229
fi
230
230
fi
231
231
232
232
AC_CHECK_TARGET_TOOLS(PCRE_CONFIG, [pcre2-config pcre-config],
233
- [`which $with_pcre 2>/dev/null`], $with_pcre)
233
+ [`command -v $with_pcre 2>/dev/null`], $with_pcre)
234
234
235
235
if test "x$PCRE_CONFIG" != "x"; then
236
236
if $PCRE_CONFIG --version >/dev/null 2>&1; then :; else
You can’t perform that action at this time.
0 commit comments