diff options
author | Sascha Schumann <sas@php.net> | 2000-05-15 16:37:32 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-05-15 16:37:32 +0000 |
commit | 13e9da59ff09b23f09c36beb5cc683dbe703b6e8 (patch) | |
tree | 635c262f6eb9c2e89e7fa2cbbd1d0f512be0717e /sapi | |
parent | 8ab33a4d13a69285c6c2853444fb56f8de82ba82 (diff) | |
download | php-git-13e9da59ff09b23f09c36beb5cc683dbe703b6e8.tar.gz |
Complain loudly and stop configuration, if we cannot run apxs.
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/apache/config.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sapi/apache/config.m4 b/sapi/apache/config.m4 index e8dc8dcba5..3b9bd3dc75 100644 --- a/sapi/apache/config.m4 +++ b/sapi/apache/config.m4 @@ -19,6 +19,13 @@ AC_ARG_WITH(apxs, else AC_EXPAND_PATH($withval, APXS) fi + + if ! $APXS -q CFLAGS >/dev/null 2>&1; then + AC_MSG_RESULT() + $APXS + AC_MSG_ERROR([Sorry, I cannot run apxs. Either you need to install Perl or you need to pass the absolute path to apxs by using --with-apxs=/absolute/path/to/apxs]) + fi + APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@" APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` APXS_CFLAGS=`$APXS -q CFLAGS` |