~ubuntu-branches/ubuntu/trusty/mod-mono/trusty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-09-13 09:57:05 UTC
  • mfrom: (2.1.22 maverick)
  • Revision ID: james.westby@ubuntu.com-20100913095705-gje0z6f8n80wknf6
Tags: 2.6.3-3
Upload to Debian Unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
795
795
APUCONFIG
796
796
APRCONFIG
797
797
APXS
798
 
GLIB_DEPENDENCIES_LIBS
799
 
GLIB_DEPENDENCIES_CFLAGS
800
798
PKG_CONFIG
801
799
CPP
802
800
OTOOL64
914
912
enable_libtool_lock
915
913
with_crosspkgdir
916
914
enable_debug
 
915
with_debug_level
917
916
with_remove_display
918
917
enable_gcov
919
918
enable_gprof
931
930
LDFLAGS
932
931
LIBS
933
932
CPPFLAGS
934
 
CPP
935
 
PKG_CONFIG
936
 
GLIB_DEPENDENCIES_CFLAGS
937
 
GLIB_DEPENDENCIES_LIBS'
 
933
CPP'
938
934
 
939
935
 
940
936
# Initialize some variables set by options.
1581
1577
                          both]
1582
1578
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1583
1579
  --with-crosspkgdir=/path/to/pkg-config/dir
 
1580
 --with-debug-level      set the debug messages level to the specified value (0-9, 0 is the most verbose)
1584
1581
 --with-remove-display    remove the DISPLAY variable from environment before starting backends
1585
1582
  --with-apxs=PATH        Path to apxs
1586
1583
  --with-apr-config=PATH  Path to apr-config (apache 2.0). You may use
1612
1609
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1613
1610
              you have headers in a nonstandard directory <include dir>
1614
1611
  CPP         C preprocessor
1615
 
  PKG_CONFIG  path to pkg-config utility
1616
 
  GLIB_DEPENDENCIES_CFLAGS
1617
 
              C compiler flags for GLIB_DEPENDENCIES, overriding pkg-config
1618
 
  GLIB_DEPENDENCIES_LIBS
1619
 
              linker flags for GLIB_DEPENDENCIES, overriding pkg-config
1620
1612
 
1621
1613
Use these variables to override the choices made by `configure' or to help
1622
1614
it to find libraries and programs with nonstandard names/locations.
2405
2397
 
2406
2398
# Define the identity of the package.
2407
2399
 PACKAGE=mod_mono
2408
 
 VERSION=2.4.3
 
2400
 VERSION=2.6.3
2409
2401
 
2410
2402
 
2411
2403
cat >>confdefs.h <<_ACEOF
4355
4347
else
4356
4348
  lt_cv_nm_interface="BSD nm"
4357
4349
  echo "int some_variable = 0;" > conftest.$ac_ext
4358
 
  (eval echo "\"\$as_me:4358: $ac_compile\"" >&5)
 
4350
  (eval echo "\"\$as_me:4350: $ac_compile\"" >&5)
4359
4351
  (eval "$ac_compile" 2>conftest.err)
4360
4352
  cat conftest.err >&5
4361
 
  (eval echo "\"\$as_me:4361: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4353
  (eval echo "\"\$as_me:4353: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4362
4354
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4363
4355
  cat conftest.err >&5
4364
 
  (eval echo "\"\$as_me:4364: output\"" >&5)
 
4356
  (eval echo "\"\$as_me:4356: output\"" >&5)
4365
4357
  cat conftest.out >&5
4366
4358
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4367
4359
    lt_cv_nm_interface="MS dumpbin"
5567
5559
  ;;
5568
5560
*-*-irix6*)
5569
5561
  # Find out which ABI we are using.
5570
 
  echo '#line 5570 "configure"' > conftest.$ac_ext
 
5562
  echo '#line 5562 "configure"' > conftest.$ac_ext
5571
5563
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5572
5564
  (eval $ac_compile) 2>&5
5573
5565
  ac_status=$?
7420
7412
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7421
7413
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7422
7414
   -e 's:$: $lt_compiler_flag:'`
7423
 
   (eval echo "\"\$as_me:7423: $lt_compile\"" >&5)
 
7415
   (eval echo "\"\$as_me:7415: $lt_compile\"" >&5)
7424
7416
   (eval "$lt_compile" 2>conftest.err)
7425
7417
   ac_status=$?
7426
7418
   cat conftest.err >&5
7427
 
   echo "$as_me:7427: \$? = $ac_status" >&5
 
7419
   echo "$as_me:7419: \$? = $ac_status" >&5
7428
7420
   if (exit $ac_status) && test -s "$ac_outfile"; then
7429
7421
     # The compiler can only warn and ignore the option if not recognized
7430
7422
     # So say no if there are warnings other than the usual output.
7759
7751
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7760
7752
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7761
7753
   -e 's:$: $lt_compiler_flag:'`
7762
 
   (eval echo "\"\$as_me:7762: $lt_compile\"" >&5)
 
7754
   (eval echo "\"\$as_me:7754: $lt_compile\"" >&5)
7763
7755
   (eval "$lt_compile" 2>conftest.err)
7764
7756
   ac_status=$?
7765
7757
   cat conftest.err >&5
7766
 
   echo "$as_me:7766: \$? = $ac_status" >&5
 
7758
   echo "$as_me:7758: \$? = $ac_status" >&5
7767
7759
   if (exit $ac_status) && test -s "$ac_outfile"; then
7768
7760
     # The compiler can only warn and ignore the option if not recognized
7769
7761
     # So say no if there are warnings other than the usual output.
7864
7856
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7865
7857
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7866
7858
   -e 's:$: $lt_compiler_flag:'`
7867
 
   (eval echo "\"\$as_me:7867: $lt_compile\"" >&5)
 
7859
   (eval echo "\"\$as_me:7859: $lt_compile\"" >&5)
7868
7860
   (eval "$lt_compile" 2>out/conftest.err)
7869
7861
   ac_status=$?
7870
7862
   cat out/conftest.err >&5
7871
 
   echo "$as_me:7871: \$? = $ac_status" >&5
 
7863
   echo "$as_me:7863: \$? = $ac_status" >&5
7872
7864
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7873
7865
   then
7874
7866
     # The compiler can only warn and ignore the option if not recognized
7919
7911
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7920
7912
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7921
7913
   -e 's:$: $lt_compiler_flag:'`
7922
 
   (eval echo "\"\$as_me:7922: $lt_compile\"" >&5)
 
7914
   (eval echo "\"\$as_me:7914: $lt_compile\"" >&5)
7923
7915
   (eval "$lt_compile" 2>out/conftest.err)
7924
7916
   ac_status=$?
7925
7917
   cat out/conftest.err >&5
7926
 
   echo "$as_me:7926: \$? = $ac_status" >&5
 
7918
   echo "$as_me:7918: \$? = $ac_status" >&5
7927
7919
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7928
7920
   then
7929
7921
     # The compiler can only warn and ignore the option if not recognized
10719
10711
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10720
10712
  lt_status=$lt_dlunknown
10721
10713
  cat > conftest.$ac_ext <<_LT_EOF
10722
 
#line 10722 "configure"
 
10714
#line 10714 "configure"
10723
10715
#include "confdefs.h"
10724
10716
 
10725
10717
#if HAVE_DLFCN_H
10815
10807
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10816
10808
  lt_status=$lt_dlunknown
10817
10809
  cat > conftest.$ac_ext <<_LT_EOF
10818
 
#line 10818 "configure"
 
10810
#line 10810 "configure"
10819
10811
#include "confdefs.h"
10820
10812
 
10821
10813
#if HAVE_DLFCN_H
13048
13040
 
13049
13041
 
13050
13042
 
13051
 
for ac_func in memset mkdir unsetenv putenv setenv setrlimit select strcasecmp strerror strrchr dup2
 
13043
 
 
13044
for ac_func in memset mkdir unsetenv putenv setenv setrlimit select strcasecmp strerror strrchr dup2 strndup
13052
13045
do
13053
13046
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13054
13047
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13149
13142
done
13150
13143
 
13151
13144
 
13152
 
GLIB_REQUIRED_VERSION=1.3.11
13153
 
 
13154
 
 
13155
 
 
13156
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13157
 
        if test -n "$ac_tool_prefix"; then
13158
 
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13159
 
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13160
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13161
 
$as_echo_n "checking for $ac_word... " >&6; }
13162
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13163
 
  $as_echo_n "(cached) " >&6
13164
 
else
13165
 
  case $PKG_CONFIG in
13166
 
  [\\/]* | ?:[\\/]*)
13167
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13168
 
  ;;
13169
 
  *)
13170
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171
 
for as_dir in $PATH
13172
 
do
13173
 
  IFS=$as_save_IFS
13174
 
  test -z "$as_dir" && as_dir=.
13175
 
  for ac_exec_ext in '' $ac_executable_extensions; do
13176
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13177
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13178
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13179
 
    break 2
13180
 
  fi
13181
 
done
13182
 
done
13183
 
IFS=$as_save_IFS
13184
 
 
13185
 
  ;;
13186
 
esac
13187
 
fi
13188
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13189
 
if test -n "$PKG_CONFIG"; then
13190
 
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13191
 
$as_echo "$PKG_CONFIG" >&6; }
13192
 
else
13193
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
13194
 
$as_echo "no" >&6; }
13195
 
fi
13196
 
 
13197
 
 
13198
 
fi
13199
 
if test -z "$ac_cv_path_PKG_CONFIG"; then
13200
 
  ac_pt_PKG_CONFIG=$PKG_CONFIG
13201
 
  # Extract the first word of "pkg-config", so it can be a program name with args.
13202
 
set dummy pkg-config; ac_word=$2
13203
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13204
 
$as_echo_n "checking for $ac_word... " >&6; }
13205
 
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
13206
 
  $as_echo_n "(cached) " >&6
13207
 
else
13208
 
  case $ac_pt_PKG_CONFIG in
13209
 
  [\\/]* | ?:[\\/]*)
13210
 
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13211
 
  ;;
13212
 
  *)
13213
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13214
 
for as_dir in $PATH
13215
 
do
13216
 
  IFS=$as_save_IFS
13217
 
  test -z "$as_dir" && as_dir=.
13218
 
  for ac_exec_ext in '' $ac_executable_extensions; do
13219
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13220
 
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13221
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13222
 
    break 2
13223
 
  fi
13224
 
done
13225
 
done
13226
 
IFS=$as_save_IFS
13227
 
 
13228
 
  ;;
13229
 
esac
13230
 
fi
13231
 
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13232
 
if test -n "$ac_pt_PKG_CONFIG"; then
13233
 
  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
13234
 
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13235
 
else
13236
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
13237
 
$as_echo "no" >&6; }
13238
 
fi
13239
 
 
13240
 
  if test "x$ac_pt_PKG_CONFIG" = x; then
13241
 
    PKG_CONFIG=""
13242
 
  else
13243
 
    case $cross_compiling:$ac_tool_warned in
13244
 
yes:)
13245
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13246
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13247
 
ac_tool_warned=yes ;;
13248
 
esac
13249
 
    PKG_CONFIG=$ac_pt_PKG_CONFIG
13250
 
  fi
13251
 
else
13252
 
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13253
 
fi
13254
 
 
13255
 
fi
13256
 
if test -n "$PKG_CONFIG"; then
13257
 
        _pkg_min_version=0.9.0
13258
 
        { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
13259
 
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13260
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13261
 
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13262
 
$as_echo "yes" >&6; }
13263
 
        else
13264
 
                { $as_echo "$as_me:$LINENO: result: no" >&5
13265
 
$as_echo "no" >&6; }
13266
 
                PKG_CONFIG=""
13267
 
        fi
13268
 
 
13269
 
fi
13270
 
 
13271
 
pkg_failed=no
13272
 
{ $as_echo "$as_me:$LINENO: checking for GLIB_DEPENDENCIES" >&5
13273
 
$as_echo_n "checking for GLIB_DEPENDENCIES... " >&6; }
13274
 
 
13275
 
if test -n "$GLIB_DEPENDENCIES_CFLAGS"; then
13276
 
    pkg_cv_GLIB_DEPENDENCIES_CFLAGS="$GLIB_DEPENDENCIES_CFLAGS"
13277
 
 elif test -n "$PKG_CONFIG"; then
13278
 
    if test -n "$PKG_CONFIG" && \
13279
 
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION\"") >&5
13280
 
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
13281
 
  ac_status=$?
13282
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283
 
  (exit $ac_status); }; then
13284
 
  pkg_cv_GLIB_DEPENDENCIES_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
13285
 
else
13286
 
  pkg_failed=yes
13287
 
fi
13288
 
 else
13289
 
    pkg_failed=untried
13290
 
fi
13291
 
if test -n "$GLIB_DEPENDENCIES_LIBS"; then
13292
 
    pkg_cv_GLIB_DEPENDENCIES_LIBS="$GLIB_DEPENDENCIES_LIBS"
13293
 
 elif test -n "$PKG_CONFIG"; then
13294
 
    if test -n "$PKG_CONFIG" && \
13295
 
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION\"") >&5
13296
 
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
13297
 
  ac_status=$?
13298
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299
 
  (exit $ac_status); }; then
13300
 
  pkg_cv_GLIB_DEPENDENCIES_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
13301
 
else
13302
 
  pkg_failed=yes
13303
 
fi
13304
 
 else
13305
 
    pkg_failed=untried
13306
 
fi
13307
 
 
13308
 
 
13309
 
 
13310
 
if test $pkg_failed = yes; then
13311
 
 
13312
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13313
 
        _pkg_short_errors_supported=yes
13314
 
else
13315
 
        _pkg_short_errors_supported=no
13316
 
fi
13317
 
        if test $_pkg_short_errors_supported = yes; then
13318
 
                GLIB_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>&1`
13319
 
        else
13320
 
                GLIB_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>&1`
13321
 
        fi
13322
 
        # Put the nasty error message in config.log where it belongs
13323
 
        echo "$GLIB_DEPENDENCIES_PKG_ERRORS" >&5
13324
 
 
13325
 
        { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= $GLIB_REQUIRED_VERSION) were not met:
13326
 
 
13327
 
$GLIB_DEPENDENCIES_PKG_ERRORS
13328
 
 
13329
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13330
 
installed software in a non-standard prefix.
13331
 
 
13332
 
Alternatively, you may set the environment variables GLIB_DEPENDENCIES_CFLAGS
13333
 
and GLIB_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
13334
 
See the pkg-config man page for more details.
13335
 
" >&5
13336
 
$as_echo "$as_me: error: Package requirements (glib-2.0 >= $GLIB_REQUIRED_VERSION) were not met:
13337
 
 
13338
 
$GLIB_DEPENDENCIES_PKG_ERRORS
13339
 
 
13340
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13341
 
installed software in a non-standard prefix.
13342
 
 
13343
 
Alternatively, you may set the environment variables GLIB_DEPENDENCIES_CFLAGS
13344
 
and GLIB_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
13345
 
See the pkg-config man page for more details.
13346
 
" >&2;}
13347
 
   { (exit 1); exit 1; }; }
13348
 
elif test $pkg_failed = untried; then
13349
 
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13350
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13351
 
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
13352
 
is in your PATH or set the PKG_CONFIG environment variable to the full
13353
 
path to pkg-config.
13354
 
 
13355
 
Alternatively, you may set the environment variables GLIB_DEPENDENCIES_CFLAGS
13356
 
and GLIB_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
13357
 
See the pkg-config man page for more details.
13358
 
 
13359
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13360
 
See \`config.log' for more details." >&5
13361
 
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
13362
 
is in your PATH or set the PKG_CONFIG environment variable to the full
13363
 
path to pkg-config.
13364
 
 
13365
 
Alternatively, you may set the environment variables GLIB_DEPENDENCIES_CFLAGS
13366
 
and GLIB_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
13367
 
See the pkg-config man page for more details.
13368
 
 
13369
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13370
 
See \`config.log' for more details." >&2;}
13371
 
   { (exit 1); exit 1; }; }; }
13372
 
else
13373
 
        GLIB_DEPENDENCIES_CFLAGS=$pkg_cv_GLIB_DEPENDENCIES_CFLAGS
13374
 
        GLIB_DEPENDENCIES_LIBS=$pkg_cv_GLIB_DEPENDENCIES_LIBS
13375
 
        { $as_echo "$as_me:$LINENO: result: yes" >&5
13376
 
$as_echo "yes" >&6; }
13377
 
        :
13378
 
fi
13379
 
 
13380
13145
#
13381
13146
# --enable-debug
13382
13147
#
13396
13161
fi
13397
13162
 
13398
13163
#
 
13164
# --with-debug-level
 
13165
#
 
13166
{ $as_echo "$as_me:$LINENO: checking What level debug messages should be printed at" >&5
 
13167
$as_echo_n "checking What level debug messages should be printed at... " >&6; }
 
13168
 
 
13169
# Check whether --with-debug-level was given.
 
13170
if test "${with_debug_level+set}" = set; then
 
13171
  withval=$with_debug_level; debug_level=$withval
 
13172
else
 
13173
  debug_level=0
 
13174
fi
 
13175
 
 
13176
if test "x$enable_debug" = "xyes" ; then
 
13177
        CFLAGS="$CFLAGS -DDEBUG_LEVEL=$debug_level"
 
13178
        { $as_echo "$as_me:$LINENO: result: $debug_level" >&5
 
13179
$as_echo "$debug_level" >&6; }
 
13180
else
 
13181
        { $as_echo "$as_me:$LINENO: result: debug output disabled" >&5
 
13182
$as_echo "debug output disabled" >&6; }
 
13183
fi
 
13184
 
 
13185
#
13399
13186
# --with-remove-display
13400
13187
#
13401
13188
{ $as_echo "$as_me:$LINENO: checking whether mod_mono should remove the DISPLAY variable from environment" >&5
13965
13752
 
13966
13753
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13967
13754
 
13968
 
# ensure we have apache 1.3
 
13755
# We no longer support Apache < 2.0
13969
13756
if test "$APACHE_VER" = "1.3" ; then
13970
 
        cat >conftest.$ac_ext <<_ACEOF
13971
 
/* confdefs.h.  */
13972
 
_ACEOF
13973
 
cat confdefs.h >>conftest.$ac_ext
13974
 
cat >>conftest.$ac_ext <<_ACEOF
13975
 
/* end confdefs.h.  */
13976
 
 
13977
 
                #include <httpd.h>
13978
 
 
13979
 
int
13980
 
main ()
13981
 
{
13982
 
 
13983
 
                char *version = SERVER_BASEREVISION;
13984
 
 
13985
 
  ;
13986
 
  return 0;
13987
 
}
13988
 
_ACEOF
13989
 
rm -f conftest.$ac_objext
13990
 
if { (ac_try="$ac_compile"
13991
 
case "(($ac_try" in
13992
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993
 
  *) ac_try_echo=$ac_try;;
13994
 
esac
13995
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13996
 
$as_echo "$ac_try_echo") >&5
13997
 
  (eval "$ac_compile") 2>conftest.er1
13998
 
  ac_status=$?
13999
 
  grep -v '^ *+' conftest.er1 >conftest.err
14000
 
  rm -f conftest.er1
14001
 
  cat conftest.err >&5
14002
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003
 
  (exit $ac_status); } && {
14004
 
         test -z "$ac_c_werror_flag" ||
14005
 
         test ! -s conftest.err
14006
 
       } && test -s conftest.$ac_objext; then
14007
 
 
14008
 
                APACHE_VER=1.3
14009
 
 
14010
 
else
14011
 
  $as_echo "$as_me: failed program was:" >&5
14012
 
sed 's/^/| /' conftest.$ac_ext >&5
14013
 
 
14014
 
 
14015
 
                APACHE_VER=retry
14016
 
 
14017
 
fi
14018
 
 
14019
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13757
        { { $as_echo "$as_me:$LINENO: error: Apache 1.3 is no longer supported. mod_mono now requires at least Apache 2.0" >&5
 
13758
$as_echo "$as_me: error: Apache 1.3 is no longer supported. mod_mono now requires at least Apache 2.0" >&2;}
 
13759
   { (exit 1); exit 1; }; }
14020
13760
else
14021
13761
if test "$cross_compiling" = yes; then
14022
13762
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14148
13888
fi
14149
13889
 
14150
13890
if test "$APACHE_VER" = "1.3"; then
14151
 
        CFLAGS="$CFLAGS -DAPACHE13 -DEAPI"
14152
 
        { $as_echo "$as_me:$LINENO: result: $APACHE_VER" >&5
14153
 
$as_echo "$APACHE_VER" >&6; }
 
13891
        { { $as_echo "$as_me:$LINENO: error: Apache 1.3 is no longer supported. mod_mono now requires at least Apache 2.0" >&5
 
13892
$as_echo "$as_me: error: Apache 1.3 is no longer supported. mod_mono now requires at least Apache 2.0" >&2;}
 
13893
   { (exit 1); exit 1; }; }
14154
13894
fi
14155
13895
 
14156
13896
#
14167
13907
        CFLAGS="$CFLAGS -DGCOV -O0 -fprofile-arcs -ftest-coverage"
14168
13908
fi
14169
13909
 
14170
 
 if test ! "$APACHE_VER" = "1.3"; then
 
13910
 if true; then
14171
13911
  APACHE2_TRUE=
14172
13912
  APACHE2_FALSE='#'
14173
13913
else
14175
13915
  APACHE2_FALSE=
14176
13916
fi
14177
13917
 
14178
 
if test ! "$APACHE_VER" = "1.3" ; then
 
13918
 
14179
13919
 
14180
13920
cat >>confdefs.h <<\_ACEOF
14181
13921
#define APACHE2 /**/
14182
13922
_ACEOF
14183
13923
 
14184
 
fi
14185
13924
 
14186
13925
if test "$APACHE_VER" = "2.2" ; then
14187
13926
 
14210
13949
fi
14211
13950
 
14212
13951
 
14213
 
if test ! "$APACHE_VER" = "1.3" ; then
14214
 
   found_apr_socket_connect=yes
14215
 
 
14216
 
cat >>confdefs.h <<\_ACEOF
14217
 
#define HAVE_APR_SOCKET_CONNECT /**/
14218
 
_ACEOF
14219
 
 
14220
 
else
14221
 
   found_apr_socket_connect=no
14222
 
   { $as_echo "$as_me:$LINENO: checking for apr_socket_connect in -lapr-0" >&5
14223
 
$as_echo_n "checking for apr_socket_connect in -lapr-0... " >&6; }
14224
 
if test "${ac_cv_lib_apr_0_apr_socket_connect+set}" = set; then
14225
 
  $as_echo_n "(cached) " >&6
14226
 
else
14227
 
  ac_check_lib_save_LIBS=$LIBS
14228
 
LIBS="-lapr-0  $LIBS"
14229
 
cat >conftest.$ac_ext <<_ACEOF
14230
 
/* confdefs.h.  */
14231
 
_ACEOF
14232
 
cat confdefs.h >>conftest.$ac_ext
14233
 
cat >>conftest.$ac_ext <<_ACEOF
14234
 
/* end confdefs.h.  */
14235
 
 
14236
 
/* Override any GCC internal prototype to avoid an error.
14237
 
   Use char because int might match the return type of a GCC
14238
 
   builtin and then its argument prototype would still apply.  */
14239
 
#ifdef __cplusplus
14240
 
extern "C"
14241
 
#endif
14242
 
char apr_socket_connect ();
14243
 
int
14244
 
main ()
14245
 
{
14246
 
return apr_socket_connect ();
14247
 
  ;
14248
 
  return 0;
14249
 
}
14250
 
_ACEOF
14251
 
rm -f conftest.$ac_objext conftest$ac_exeext
14252
 
if { (ac_try="$ac_link"
14253
 
case "(($ac_try" in
14254
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255
 
  *) ac_try_echo=$ac_try;;
14256
 
esac
14257
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14258
 
$as_echo "$ac_try_echo") >&5
14259
 
  (eval "$ac_link") 2>conftest.er1
14260
 
  ac_status=$?
14261
 
  grep -v '^ *+' conftest.er1 >conftest.err
14262
 
  rm -f conftest.er1
14263
 
  cat conftest.err >&5
14264
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265
 
  (exit $ac_status); } && {
14266
 
         test -z "$ac_c_werror_flag" ||
14267
 
         test ! -s conftest.err
14268
 
       } && test -s conftest$ac_exeext && {
14269
 
         test "$cross_compiling" = yes ||
14270
 
         $as_test_x conftest$ac_exeext
14271
 
       }; then
14272
 
  ac_cv_lib_apr_0_apr_socket_connect=yes
14273
 
else
14274
 
  $as_echo "$as_me: failed program was:" >&5
14275
 
sed 's/^/| /' conftest.$ac_ext >&5
14276
 
 
14277
 
        ac_cv_lib_apr_0_apr_socket_connect=no
14278
 
fi
14279
 
 
14280
 
rm -rf conftest.dSYM
14281
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14282
 
      conftest$ac_exeext conftest.$ac_ext
14283
 
LIBS=$ac_check_lib_save_LIBS
14284
 
fi
14285
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_apr_0_apr_socket_connect" >&5
14286
 
$as_echo "$ac_cv_lib_apr_0_apr_socket_connect" >&6; }
14287
 
if test "x$ac_cv_lib_apr_0_apr_socket_connect" = x""yes; then
14288
 
  found_apr_socket_connect=yes
14289
 
fi
14290
 
 
14291
 
   if test "x$found_apr_socket_connect" = "xyes" ; then
14292
 
 
14293
 
cat >>confdefs.h <<\_ACEOF
14294
 
#define HAVE_APR_SOCKET_CONNECT /**/
14295
 
_ACEOF
14296
 
 
14297
 
   fi
14298
 
 
14299
 
fi
 
13952
found_apr_socket_connect=yes
 
13953
 
 
13954
cat >>confdefs.h <<\_ACEOF
 
13955
#define HAVE_APR_SOCKET_CONNECT /**/
 
13956
_ACEOF
 
13957
 
14300
13958
 
14301
13959
MONO_PREFIX=`$PKG_CONFIG --silence-errors --variable=prefix mono`
14302
13960
if test x$MONO_PREFIX = "x" ; then
16745
16403
echo "   * Apache modules directory = $APXS_LIBEXECDIR"
16746
16404
test -x "$APXS" && \
16747
16405
echo "   * apxs = $APXS"
16748
 
test ! "$APACHE_VER" = "1.3" -a -x "$APRCONFIG" && \
 
16406
test -x "$APRCONFIG" && \
16749
16407
echo "   * apr-config = $APRCONFIG"
16750
16408
test "$APUCONFIG" && \
16751
16409
echo "   * apu-config = $APUCONFIG"
16752
16410
echo "   * CFLAGS = $CFLAGS"
16753
16411
echo "   * Verbose logging (debug) = $enable_debug"
 
16412
if test "x$enable_debug" = "xyes" ; then
 
16413
echo "   * Debug output level = $debug_level"
 
16414
fi
16754
16415
echo "   * GCOV options used = $enable_gcov"
16755
16416
echo "   * Profiling enabled = $enable_gprof"
16756
16417
echo "   * mono prefix = $MONO_PREFIX"
16760
16421
echo ""
16761
16422
echo "---"
16762
16423
 
16763