[Mono-list] mod_mono configure reports wrong version of apache (and does not make)
Scott Williams
scott.williams at leaseharbor.com
Fri Jul 14 10:56:25 EDT 2006
It thinks that it is Apache 1.3 because APACHE_VER is set to 1.3 as a result of
the following in configure:
echo "$as_me:$LINENO: checking Apache version" >&5
echo $ECHO_N "checking Apache version... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <ap_release.h>
int
main ()
{
char *version = AP_SERVER_BASEREVISION;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
APACHE_VER=2.0
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
APACHE_VER=1.3
fi
The "conftest" fails with:
In file included from /usr/local/apache2/include/apr_general.h:28,
from /usr/local/apache2/include/ap_release.h:24,
from conftest.c:51:
/usr/local/apache2/include/apr.h:270: error: syntax error before 'apr_off_t'
/usr/local/apache2/include/apr.h:270: warning: data definition has no type or
storage class
Once APACHE_VER is set to 1.3 there isn't any way in the balance of the
configure script that it can get set to 2.2.
Gonzalo Paniagua Javier wrote:
>
> Look at config.log to find out what makes 'configure' think that you
> have apache 1.3.
>
> -Gonzalo
>
More information about the Mono-list
mailing list