2643
# some linux distributions use apxs2 for apache2 installations,
2644
# so check for apxs2 before we give up.
2645
if test -z "$APXS"; then
2646
echo "$as_me:$LINENO: checking for apxs2 in your PATH" >&5
2647
echo $ECHO_N "checking for apxs2 in your PATH... $ECHO_C" >&6
2648
# Extract the first word of "apxs2", so it can be a program name with args.
2649
set dummy apxs2; ac_word=$2
2650
echo "$as_me:$LINENO: checking for $ac_word" >&5
2651
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2652
if test "${ac_cv_path_APXS+set}" = set; then
2653
echo $ECHO_N "(cached) $ECHO_C" >&6
2657
ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
2660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664
test -z "$as_dir" && as_dir=.
2665
for ac_exec_ext in '' $ac_executable_extensions; do
2666
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2667
ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
2668
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677
APXS=$ac_cv_path_APXS
2679
if test -n "$APXS"; then
2680
echo "$as_me:$LINENO: result: $APXS" >&5
2681
echo "${ECHO_T}$APXS" >&6
2683
echo "$as_me:$LINENO: result: no" >&5
2684
echo "${ECHO_T}no" >&6
2687
if test -n "$APXS"; then
2688
echo "$as_me:$LINENO: result: found $APXS, we'll use this. Use --with-apxs to specify another." >&5
2689
echo "${ECHO_T}found $APXS, we'll use this. Use --with-apxs to specify another." >&6
2635
2693
# if apxs was still not found, then no DSO
2650
2708
# check Apache version
2651
# peterh: Remove apache version check for debian package, since we don't
2652
# want to build-depend on apache2.
2653
# AC_MSG_CHECKING(Apache version)
2654
# HTTPD="`${APXS} -q SBINDIR`/`${APXS} -q TARGET`"
2655
# ver=`$HTTPD -v | awk '/version/ {print $3}' | awk -F/ '{print $2}'`
2656
# AC_MSG_RESULT($ver)
2709
echo "$as_me:$LINENO: checking Apache version" >&5
2710
echo $ECHO_N "checking Apache version... $ECHO_C" >&6
2711
HTTPD="`${APXS} -q SBINDIR`/`${APXS} -q TARGET`"
2712
ver=`$HTTPD -v | awk '/version/ {print $3}' | awk -F/ '{print $2}'`
2713
echo "$as_me:$LINENO: result: $ver" >&5
2714
echo "${ECHO_T}$ver" >&6
2658
2716
# make sure version begins with 2
2659
# if test -z "`echo $ver | egrep \^2`"; then
2660
# AC_MSG_ERROR([This version of mod_python only works with Apache 2. The one you have seems to be $ver.])
2717
if test -z "`echo $ver | egrep \^2`"; then
2718
{ { echo "$as_me:$LINENO: error: This version of mod_python only works with Apache 2. The one you have seems to be $ver." >&5
2719
echo "$as_me: error: This version of mod_python only works with Apache 2. The one you have seems to be $ver." >&2;}
2720
{ (exit 1); exit 1; }; }
2663
2723
# determine LIBEXEC
2664
2724
echo "$as_me:$LINENO: checking for Apache libexec directory" >&5
2974
3037
MP_VERSION=`awk '/MPV_STRING/ {print $3}' src/include/mpversion.h`
2975
3038
MP_VERSION=`echo $MP_VERSION | sed s/\\"//g`
2977
ac_config_files="$ac_config_files Makefile src/Makefile Doc/Makefile test/testconf.py dist/setup.py dist/Makefile"
3040
# get --with-python-src. The python src is required to generate the documentation
3041
# It is not required to compile or install mod_python itself
3043
echo "$as_me:$LINENO: checking for --with-python-src" >&5
3044
echo $ECHO_N "checking for --with-python-src... $ECHO_C" >&6
3046
# Check whether --with-python-src or --without-python-src was given.
3047
if test "${with_python_src+set}" = set; then
3048
withval="$with_python_src"
3050
PYTHON_SRC="$withval"
3051
echo "$as_me:$LINENO: result: $PYTHON_SRC" >&5
3052
echo "${ECHO_T}$PYTHON_SRC" >&6
3055
echo "$as_me:$LINENO: result: no" >&5
3056
echo "${ECHO_T}no" >&6
3058
if test -z "$PYTHON_SRC"; then
3062
# configure the MAX_LOCKS for number of mutex locks
3064
echo "$as_me:$LINENO: checking for --with-max-locks" >&5
3065
echo $ECHO_N "checking for --with-max-locks... $ECHO_C" >&6
3067
# Check whether --with-max-locks or --without-max-locks was given.
3068
if test "${with_max_locks+set}" = set; then
3069
withval="$with_max_locks"
3071
MAX_LOCKS="$withval"
3072
echo "$as_me:$LINENO: result: $MAX_LOCKS" >&5
3073
echo "${ECHO_T}$MAX_LOCKS" >&6
3076
echo "$as_me:$LINENO: result: no" >&5
3077
echo "${ECHO_T}no" >&6
3080
if test -z "$MAX_LOCKS"; then
3083
echo "$as_me:$LINENO: result: Using $MAX_LOCKS MAX_LOCKS." >&5
3084
echo "${ECHO_T}Using $MAX_LOCKS MAX_LOCKS." >&6
3086
# Check for correct flex version
3087
# Requires flex 2.5.31 for reentrant support
3088
# See README for more details
3091
echo "$as_me:$LINENO: checking for --with-flex" >&5
3092
echo $ECHO_N "checking for --with-flex... $ECHO_C" >&6
3094
# Check whether --with-flex or --without-flex was given.
3095
if test "${with_flex+set}" = set; then
3096
withval="$with_flex"
3099
echo "$as_me:$LINENO: result: $LEX" >&5
3100
echo "${ECHO_T}$LEX" >&6
3103
echo "$as_me:$LINENO: result: no" >&5
3104
echo "${ECHO_T}no" >&6
3107
# check for flex executable
3108
if test -z "$LEX"; then
3109
# Extract the first word of "flex", so it can be a program name with args.
3110
set dummy flex; ac_word=$2
3111
echo "$as_me:$LINENO: checking for $ac_word" >&5
3112
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3113
if test "${ac_cv_path_LEX+set}" = set; then
3114
echo $ECHO_N "(cached) $ECHO_C" >&6
3118
ac_cv_path_LEX="$LEX" # Let the user override the test with a path.
3121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125
test -z "$as_dir" && as_dir=.
3126
for ac_exec_ext in '' $ac_executable_extensions; do
3127
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128
ac_cv_path_LEX="$as_dir/$ac_word$ac_exec_ext"
3129
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140
if test -n "$LEX"; then
3141
echo "$as_me:$LINENO: result: $LEX" >&5
3142
echo "${ECHO_T}$LEX" >&6
3144
echo "$as_me:$LINENO: result: no" >&5
3145
echo "${ECHO_T}no" >&6
3150
if test "$LEX" && test -x "$LEX"; then
3151
echo "$as_me:$LINENO: result: found $LEX, we'll use this. Use --with-flex to specify another." >&5
3152
echo "${ECHO_T}found $LEX, we'll use this. Use --with-flex to specify another." >&6
3154
echo "$as_me:$LINENO: checking flex version" >&5
3155
echo $ECHO_N "checking flex version... $ECHO_C" >&6
3156
FlexVERSION=`$LEX --version | sed 's/version//g' | awk '/flex/ {print $2}'`
3157
Flex_MAJOR=`echo $FlexVERSION| awk -F . '{print $1}'`
3158
Flex_MINOR=`echo $FlexVERSION| awk -F . '{print $2}'`
3159
Flex_PATCH=`echo $FlexVERSION| awk -F . '{print $3}'`
3161
if test "$Flex_MAJOR" -eq "2" && test "$Flex_MINOR" -eq "5" && test "$Flex_PATCH" -ge "31"; then
3162
echo "$as_me:$LINENO: result: $FlexVERSION. Good" >&5
3163
echo "${ECHO_T}$FlexVERSION. Good" >&6
3165
{ echo "$as_me:$LINENO: WARNING: Flex version $FlexVERSION found.
3166
Version 2.5.31 or greater is required. You can generally ignore this
3167
warning unless you need to regenerate psp_parser.c from psp_parse.l.
3168
If you do need regenerate psp_parser.c, use --with-flex to specify the
3169
location of the correct flex version. See the README for more information." >&5
3170
echo "$as_me: WARNING: Flex version $FlexVERSION found.
3171
Version 2.5.31 or greater is required. You can generally ignore this
3172
warning unless you need to regenerate psp_parser.c from psp_parse.l.
3173
If you do need regenerate psp_parser.c, use --with-flex to specify the
3174
location of the correct flex version. See the README for more information." >&2;}
3178
{ echo "$as_me:$LINENO: WARNING: flex $LEX not found
3179
You can generally ignore this warning unless you need to regenerate
3180
psp_parser.c from psp_parse.l. If you do need regenerate psp_parser.c,
3181
use --with-flex to specify the location of flex.
3182
See the README for more information." >&5
3183
echo "$as_me: WARNING: flex $LEX not found
3184
You can generally ignore this warning unless you need to regenerate
3185
psp_parser.c from psp_parse.l. If you do need regenerate psp_parser.c,
3186
use --with-flex to specify the location of flex.
3187
See the README for more information." >&2;}
3190
ac_config_files="$ac_config_files Makefile src/Makefile Doc/Makefile src/include/mod_python.h test/testconf.py dist/setup.py dist/Makefile"
2978
3191
cat >confcache <<\_ACEOF
2979
3192
# This file is a shell script that caches the results of configure
2980
3193
# tests run on this system so they can be shared between configure
3643
3857
s,@TEST_SERVER_ROOT@,$TEST_SERVER_ROOT,;t t
3644
3858
s,@MOD_PYTHON_SO@,$MOD_PYTHON_SO,;t t
3645
3859
s,@MP_VERSION@,$MP_VERSION,;t t
3860
s,@PYTHON_SRC@,$PYTHON_SRC,;t t
3861
s,@MAX_LOCKS@,$MAX_LOCKS,;t t
3646
3863
s,@LIBOBJS@,$LIBOBJS,;t t
3647
3864
s,@LTLIBOBJS@,$LTLIBOBJS,;t t