configure: Fix test for apxs.

git-svn-id: https://modmellon.googlecode.com/svn/trunk/mod_mellon2@103 a716ebb1-153a-0410-b759-cfb97c6a1b53
This commit is contained in:
olavmrk 2010-07-02 11:51:00 +00:00
parent 563f07e7d7
commit 4082c19d52
1 changed files with 5 additions and 9 deletions

View File

@ -9,24 +9,20 @@ AC_ARG_WITH(
[ --with-apxs2=PATH Full path to the apxs2 executable.],
[
APXS2=${withval}
],
[
APXS2='unknown'
]
)
],)
if test "$APXS2" = 'unknown'; then
if test "x$APXS2" = "x"; then
# The user didn't specify the --with-apxs2-option.
# Search for apxs2 in the specified directories
AC_PATH_PROG(APXS2, apxs2, 'unknown',
AC_PATH_PROG(APXS2, apxs2,,
/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin)
if test "$APXS2" = 'unknown'; then
if test "x$APXS2" = "x"; then
# Didn't find apxs2 in any of the specified directories.
# Search for apxs instead.
AC_PATH_PROG(APXS2, apxs, 'unknown',
AC_PATH_PROG(APXS2, apxs,,
/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin)
fi