-# find apxs utility ..
-# .. in PATH
-APXS_UTIL=`type -p apxs || true`
-
-# .. from RPM
-if test "x$APXS_UTIL" = x ; then
- # mmh, is it possible to query just for
- # the executeables (like -qd and -qc) ?
- APXSMATCH=`rpm -ql apache-devel apache | grep apxs`
- for f in $APXSMATCH ; do
- if test -x "$f" ; then
- APXS_UTIL=$f
- break
- fi
- done
-fi
-
-# .. at usual places
-if test "x$APXS_UTIL" = x ; then
- for loc in \
- %{_bindir} \
- %{_sbindir} \
- %{_prefix}/local/apache/bin \
- %{_prefix}/local/apache/sbin \
- %{_prefix}/local/httpd/bin \
- %{_prefix}/local/httpd/sbin
- do
- if test -x "$loc/apxs" ; then
- APXS_UTIL="$loc/apxs"
- break
- fi
- done
-fi
-
-if test "x$APXS_UTIL" = x ; then
- echo "Didn't find apxs .. exiting"
- exit -1
-fi
-