Search
lxdream.org :: lxdream/configure :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1287:dac8f363f1fe
prev1284:0db0a5e72698
next1293:36123decfb24
author nkeynes
date Fri Aug 24 08:53:50 2012 +1000 (11 years ago)
permissions -rw-r--r--
last change Move the generated prologue/epilogue code out into a common entry stub
(reduces space requirements) and pre-save all saved registers. Change
FASTCALL to use 3 regs instead of 2 since we can now keep everything in
regs.
file annotate diff log raw
1.1 --- a/configure Tue Apr 17 21:35:38 2012 +1000
1.2 +++ b/configure Fri Aug 24 08:53:50 2012 +1000
1.3 @@ -682,16 +682,6 @@
1.4 host_cpu
1.5 host_vendor
1.6 host_os
1.7 -ANT
1.8 -ANDROID_ABI
1.9 -ANDROID_SDK_HOME
1.10 -ANDROID_NDK_HOME
1.11 -ANDROID_SDK_VERSION
1.12 -ANDROID_NDK_VERSION
1.13 -ANDROID_GDBSERVER
1.14 -GDB
1.15 -GUI_ANDROID_TRUE
1.16 -GUI_ANDROID_FALSE
1.17 CC
1.18 CFLAGS
1.19 LDFLAGS
1.20 @@ -738,6 +728,15 @@
1.21 am__fastdepOBJC_FALSE
1.22 POD2MAN
1.23 POD2HTML
1.24 +ANT
1.25 +ANDROID_ABI
1.26 +ANDROID_SDK_HOME
1.27 +ANDROID_NDK_HOME
1.28 +ANDROID_SDK_VERSION
1.29 +ANDROID_NDK_VERSION
1.30 +ANDROID_GDBSERVER
1.31 +GUI_ANDROID_TRUE
1.32 +GUI_ANDROID_FALSE
1.33 GUI_COCOA_TRUE
1.34 GUI_COCOA_FALSE
1.35 SOEXT
1.36 @@ -768,6 +767,8 @@
1.37 VIDEO_GLX_FALSE
1.38 VIDEO_NSGL_TRUE
1.39 VIDEO_NSGL_FALSE
1.40 +VIDEO_EGL_TRUE
1.41 +VIDEO_EGL_FALSE
1.42 BUILD_SH4X86_TRUE
1.43 BUILD_SH4X86_FALSE
1.44 AUDIO_OSX_TRUE
1.45 @@ -1465,17 +1466,18 @@
1.46 Optional Packages:
1.47 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1.48 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.49 - --with-android=SDK Specify the location of the Android SDK
1.50 - --with-android-ndk=NDK Specify the location of the Android NDK
1.51 - --with-android-version Specify target Android SDK version
1.52 - --with-android-version Specify target Android NDK version
1.53 - --with-android-abi Specify target Android ABI
1.54 --with-osmesa Build with the osmesa GL library (software
1.55 rendering)
1.56 --with-gtk Build with the GTK UI. Default on X11 systems
1.57 --with-esd Build with support for the ESounD audio system
1.58 --with-pulse Build with support for the PulseAudio audio system
1.59 --with-sdl Build with support for SDL audio
1.60 + --with-sysroot=SYSROOT Build using an alternate sysroot
1.61 + --with-android=SDK Specify the location of the Android SDK
1.62 + --with-android-ndk=NDK Specify the location of the Android NDK
1.63 + --with-android-version Specify target Android SDK version
1.64 + --with-android-version Specify target Android NDK version
1.65 + --with-android-abi Specify target Android ABI
1.66
1.67 Some influential environment variables:
1.68 CC C compiler command
1.69 @@ -2530,6 +2532,6245 @@
1.70
1.71
1.72
1.73 +DEPDIR="${am__leading_dot}deps"
1.74 +
1.75 +ac_config_commands="$ac_config_commands depfiles"
1.76 +
1.77 +
1.78 +am_make=${MAKE-make}
1.79 +cat > confinc << 'END'
1.80 +am__doit:
1.81 + @echo done
1.82 +.PHONY: am__doit
1.83 +END
1.84 +# If we don't find an include directive, just comment out the code.
1.85 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1.86 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
1.87 +am__include="#"
1.88 +am__quote=
1.89 +_am_result=none
1.90 +# First try GNU make style include.
1.91 +echo "include confinc" > confmf
1.92 +# We grep out `Entering directory' and `Leaving directory'
1.93 +# messages which can occur if `w' ends up in MAKEFLAGS.
1.94 +# In particular we don't look at `^make:' because GNU make might
1.95 +# be invoked under some other name (usually "gmake"), in which
1.96 +# case it prints its new name instead of `make'.
1.97 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1.98 + am__include=include
1.99 + am__quote=
1.100 + _am_result=GNU
1.101 +fi
1.102 +# Now try BSD make style include.
1.103 +if test "$am__include" = "#"; then
1.104 + echo '.include "confinc"' > confmf
1.105 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1.106 + am__include=.include
1.107 + am__quote="\""
1.108 + _am_result=BSD
1.109 + fi
1.110 +fi
1.111 +
1.112 +
1.113 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
1.114 +echo "${ECHO_T}$_am_result" >&6; }
1.115 +rm -f confinc confmf
1.116 +
1.117 +# Check whether --enable-dependency-tracking was given.
1.118 +if test "${enable_dependency_tracking+set}" = set; then
1.119 + enableval=$enable_dependency_tracking;
1.120 +fi
1.121 +
1.122 +if test "x$enable_dependency_tracking" != xno; then
1.123 + am_depcomp="$ac_aux_dir/depcomp"
1.124 + AMDEPBACKSLASH='\'
1.125 +fi
1.126 +
1.127 +
1.128 +if test "x$enable_dependency_tracking" != xno; then
1.129 + AMDEP_TRUE=
1.130 + AMDEP_FALSE='#'
1.131 +else
1.132 + AMDEP_TRUE='#'
1.133 + AMDEP_FALSE=
1.134 +fi
1.135 +
1.136 +
1.137 +
1.138 +ac_ext=c
1.139 +ac_cpp='$CPP $CPPFLAGS'
1.140 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.141 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.142 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.143 +if test -n "$ac_tool_prefix"; then
1.144 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.145 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.146 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.147 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.148 +if test "${ac_cv_prog_CC+set}" = set; then
1.149 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.150 +else
1.151 + if test -n "$CC"; then
1.152 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.153 +else
1.154 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.155 +for as_dir in $PATH
1.156 +do
1.157 + IFS=$as_save_IFS
1.158 + test -z "$as_dir" && as_dir=.
1.159 + for ac_exec_ext in '' $ac_executable_extensions; do
1.160 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.161 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.162 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.163 + break 2
1.164 + fi
1.165 +done
1.166 +done
1.167 +IFS=$as_save_IFS
1.168 +
1.169 +fi
1.170 +fi
1.171 +CC=$ac_cv_prog_CC
1.172 +if test -n "$CC"; then
1.173 + { echo "$as_me:$LINENO: result: $CC" >&5
1.174 +echo "${ECHO_T}$CC" >&6; }
1.175 +else
1.176 + { echo "$as_me:$LINENO: result: no" >&5
1.177 +echo "${ECHO_T}no" >&6; }
1.178 +fi
1.179 +
1.180 +
1.181 +fi
1.182 +if test -z "$ac_cv_prog_CC"; then
1.183 + ac_ct_CC=$CC
1.184 + # Extract the first word of "gcc", so it can be a program name with args.
1.185 +set dummy gcc; ac_word=$2
1.186 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.187 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.188 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.189 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.190 +else
1.191 + if test -n "$ac_ct_CC"; then
1.192 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.193 +else
1.194 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.195 +for as_dir in $PATH
1.196 +do
1.197 + IFS=$as_save_IFS
1.198 + test -z "$as_dir" && as_dir=.
1.199 + for ac_exec_ext in '' $ac_executable_extensions; do
1.200 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.201 + ac_cv_prog_ac_ct_CC="gcc"
1.202 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.203 + break 2
1.204 + fi
1.205 +done
1.206 +done
1.207 +IFS=$as_save_IFS
1.208 +
1.209 +fi
1.210 +fi
1.211 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.212 +if test -n "$ac_ct_CC"; then
1.213 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.214 +echo "${ECHO_T}$ac_ct_CC" >&6; }
1.215 +else
1.216 + { echo "$as_me:$LINENO: result: no" >&5
1.217 +echo "${ECHO_T}no" >&6; }
1.218 +fi
1.219 +
1.220 + if test "x$ac_ct_CC" = x; then
1.221 + CC=""
1.222 + else
1.223 + case $cross_compiling:$ac_tool_warned in
1.224 +yes:)
1.225 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.226 +whose name does not start with the host triplet. If you think this
1.227 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.228 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.229 +whose name does not start with the host triplet. If you think this
1.230 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.231 +ac_tool_warned=yes ;;
1.232 +esac
1.233 + CC=$ac_ct_CC
1.234 + fi
1.235 +else
1.236 + CC="$ac_cv_prog_CC"
1.237 +fi
1.238 +
1.239 +if test -z "$CC"; then
1.240 + if test -n "$ac_tool_prefix"; then
1.241 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.242 +set dummy ${ac_tool_prefix}cc; ac_word=$2
1.243 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.244 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.245 +if test "${ac_cv_prog_CC+set}" = set; then
1.246 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.247 +else
1.248 + if test -n "$CC"; then
1.249 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.250 +else
1.251 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.252 +for as_dir in $PATH
1.253 +do
1.254 + IFS=$as_save_IFS
1.255 + test -z "$as_dir" && as_dir=.
1.256 + for ac_exec_ext in '' $ac_executable_extensions; do
1.257 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.258 + ac_cv_prog_CC="${ac_tool_prefix}cc"
1.259 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.260 + break 2
1.261 + fi
1.262 +done
1.263 +done
1.264 +IFS=$as_save_IFS
1.265 +
1.266 +fi
1.267 +fi
1.268 +CC=$ac_cv_prog_CC
1.269 +if test -n "$CC"; then
1.270 + { echo "$as_me:$LINENO: result: $CC" >&5
1.271 +echo "${ECHO_T}$CC" >&6; }
1.272 +else
1.273 + { echo "$as_me:$LINENO: result: no" >&5
1.274 +echo "${ECHO_T}no" >&6; }
1.275 +fi
1.276 +
1.277 +
1.278 + fi
1.279 +fi
1.280 +if test -z "$CC"; then
1.281 + # Extract the first word of "cc", so it can be a program name with args.
1.282 +set dummy cc; ac_word=$2
1.283 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.284 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.285 +if test "${ac_cv_prog_CC+set}" = set; then
1.286 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.287 +else
1.288 + if test -n "$CC"; then
1.289 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.290 +else
1.291 + ac_prog_rejected=no
1.292 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.293 +for as_dir in $PATH
1.294 +do
1.295 + IFS=$as_save_IFS
1.296 + test -z "$as_dir" && as_dir=.
1.297 + for ac_exec_ext in '' $ac_executable_extensions; do
1.298 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.299 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.300 + ac_prog_rejected=yes
1.301 + continue
1.302 + fi
1.303 + ac_cv_prog_CC="cc"
1.304 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.305 + break 2
1.306 + fi
1.307 +done
1.308 +done
1.309 +IFS=$as_save_IFS
1.310 +
1.311 +if test $ac_prog_rejected = yes; then
1.312 + # We found a bogon in the path, so make sure we never use it.
1.313 + set dummy $ac_cv_prog_CC
1.314 + shift
1.315 + if test $# != 0; then
1.316 + # We chose a different compiler from the bogus one.
1.317 + # However, it has the same basename, so the bogon will be chosen
1.318 + # first if we set CC to just the basename; use the full file name.
1.319 + shift
1.320 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.321 + fi
1.322 +fi
1.323 +fi
1.324 +fi
1.325 +CC=$ac_cv_prog_CC
1.326 +if test -n "$CC"; then
1.327 + { echo "$as_me:$LINENO: result: $CC" >&5
1.328 +echo "${ECHO_T}$CC" >&6; }
1.329 +else
1.330 + { echo "$as_me:$LINENO: result: no" >&5
1.331 +echo "${ECHO_T}no" >&6; }
1.332 +fi
1.333 +
1.334 +
1.335 +fi
1.336 +if test -z "$CC"; then
1.337 + if test -n "$ac_tool_prefix"; then
1.338 + for ac_prog in cl.exe
1.339 + do
1.340 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.341 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.342 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.343 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.344 +if test "${ac_cv_prog_CC+set}" = set; then
1.345 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.346 +else
1.347 + if test -n "$CC"; then
1.348 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.349 +else
1.350 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.351 +for as_dir in $PATH
1.352 +do
1.353 + IFS=$as_save_IFS
1.354 + test -z "$as_dir" && as_dir=.
1.355 + for ac_exec_ext in '' $ac_executable_extensions; do
1.356 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.357 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.358 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.359 + break 2
1.360 + fi
1.361 +done
1.362 +done
1.363 +IFS=$as_save_IFS
1.364 +
1.365 +fi
1.366 +fi
1.367 +CC=$ac_cv_prog_CC
1.368 +if test -n "$CC"; then
1.369 + { echo "$as_me:$LINENO: result: $CC" >&5
1.370 +echo "${ECHO_T}$CC" >&6; }
1.371 +else
1.372 + { echo "$as_me:$LINENO: result: no" >&5
1.373 +echo "${ECHO_T}no" >&6; }
1.374 +fi
1.375 +
1.376 +
1.377 + test -n "$CC" && break
1.378 + done
1.379 +fi
1.380 +if test -z "$CC"; then
1.381 + ac_ct_CC=$CC
1.382 + for ac_prog in cl.exe
1.383 +do
1.384 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.385 +set dummy $ac_prog; ac_word=$2
1.386 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.387 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.388 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.389 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.390 +else
1.391 + if test -n "$ac_ct_CC"; then
1.392 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.393 +else
1.394 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.395 +for as_dir in $PATH
1.396 +do
1.397 + IFS=$as_save_IFS
1.398 + test -z "$as_dir" && as_dir=.
1.399 + for ac_exec_ext in '' $ac_executable_extensions; do
1.400 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.401 + ac_cv_prog_ac_ct_CC="$ac_prog"
1.402 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.403 + break 2
1.404 + fi
1.405 +done
1.406 +done
1.407 +IFS=$as_save_IFS
1.408 +
1.409 +fi
1.410 +fi
1.411 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.412 +if test -n "$ac_ct_CC"; then
1.413 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.414 +echo "${ECHO_T}$ac_ct_CC" >&6; }
1.415 +else
1.416 + { echo "$as_me:$LINENO: result: no" >&5
1.417 +echo "${ECHO_T}no" >&6; }
1.418 +fi
1.419 +
1.420 +
1.421 + test -n "$ac_ct_CC" && break
1.422 +done
1.423 +
1.424 + if test "x$ac_ct_CC" = x; then
1.425 + CC=""
1.426 + else
1.427 + case $cross_compiling:$ac_tool_warned in
1.428 +yes:)
1.429 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.430 +whose name does not start with the host triplet. If you think this
1.431 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.432 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.433 +whose name does not start with the host triplet. If you think this
1.434 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.435 +ac_tool_warned=yes ;;
1.436 +esac
1.437 + CC=$ac_ct_CC
1.438 + fi
1.439 +fi
1.440 +
1.441 +fi
1.442 +
1.443 +
1.444 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.445 +See \`config.log' for more details." >&5
1.446 +echo "$as_me: error: no acceptable C compiler found in \$PATH
1.447 +See \`config.log' for more details." >&2;}
1.448 + { (exit 1); exit 1; }; }
1.449 +
1.450 +# Provide some information about the compiler.
1.451 +echo "$as_me:$LINENO: checking for C compiler version" >&5
1.452 +ac_compiler=`set X $ac_compile; echo $2`
1.453 +{ (ac_try="$ac_compiler --version >&5"
1.454 +case "(($ac_try" in
1.455 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.456 + *) ac_try_echo=$ac_try;;
1.457 +esac
1.458 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.459 + (eval "$ac_compiler --version >&5") 2>&5
1.460 + ac_status=$?
1.461 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.462 + (exit $ac_status); }
1.463 +{ (ac_try="$ac_compiler -v >&5"
1.464 +case "(($ac_try" in
1.465 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.466 + *) ac_try_echo=$ac_try;;
1.467 +esac
1.468 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.469 + (eval "$ac_compiler -v >&5") 2>&5
1.470 + ac_status=$?
1.471 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.472 + (exit $ac_status); }
1.473 +{ (ac_try="$ac_compiler -V >&5"
1.474 +case "(($ac_try" in
1.475 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.476 + *) ac_try_echo=$ac_try;;
1.477 +esac
1.478 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.479 + (eval "$ac_compiler -V >&5") 2>&5
1.480 + ac_status=$?
1.481 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.482 + (exit $ac_status); }
1.483 +
1.484 +cat >conftest.$ac_ext <<_ACEOF
1.485 +/* confdefs.h. */
1.486 +_ACEOF
1.487 +cat confdefs.h >>conftest.$ac_ext
1.488 +cat >>conftest.$ac_ext <<_ACEOF
1.489 +/* end confdefs.h. */
1.490 +
1.491 +int
1.492 +main ()
1.493 +{
1.494 +
1.495 + ;
1.496 + return 0;
1.497 +}
1.498 +_ACEOF
1.499 +ac_clean_files_save=$ac_clean_files
1.500 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.501 +# Try to create an executable without -o first, disregard a.out.
1.502 +# It will help us diagnose broken compilers, and finding out an intuition
1.503 +# of exeext.
1.504 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1.505 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.506 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.507 +#
1.508 +# List of possible output files, starting from the most likely.
1.509 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
1.510 +# only as a last resort. b.out is created by i960 compilers.
1.511 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
1.512 +#
1.513 +# The IRIX 6 linker writes into existing files which may not be
1.514 +# executable, retaining their permissions. Remove them first so a
1.515 +# subsequent execution test works.
1.516 +ac_rmfiles=
1.517 +for ac_file in $ac_files
1.518 +do
1.519 + case $ac_file in
1.520 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.521 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1.522 + esac
1.523 +done
1.524 +rm -f $ac_rmfiles
1.525 +
1.526 +if { (ac_try="$ac_link_default"
1.527 +case "(($ac_try" in
1.528 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.529 + *) ac_try_echo=$ac_try;;
1.530 +esac
1.531 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.532 + (eval "$ac_link_default") 2>&5
1.533 + ac_status=$?
1.534 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.535 + (exit $ac_status); }; then
1.536 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
1.537 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
1.538 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
1.539 +# so that the user can short-circuit this test for compilers unknown to
1.540 +# Autoconf.
1.541 +for ac_file in $ac_files ''
1.542 +do
1.543 + test -f "$ac_file" || continue
1.544 + case $ac_file in
1.545 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.546 + ;;
1.547 + [ab].out )
1.548 + # We found the default executable, but exeext='' is most
1.549 + # certainly right.
1.550 + break;;
1.551 + *.* )
1.552 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
1.553 + then :; else
1.554 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.555 + fi
1.556 + # We set ac_cv_exeext here because the later test for it is not
1.557 + # safe: cross compilers may not add the suffix if given an `-o'
1.558 + # argument, so we may need to know it at that point already.
1.559 + # Even if this section looks crufty: it has the advantage of
1.560 + # actually working.
1.561 + break;;
1.562 + * )
1.563 + break;;
1.564 + esac
1.565 +done
1.566 +test "$ac_cv_exeext" = no && ac_cv_exeext=
1.567 +
1.568 +else
1.569 + ac_file=''
1.570 +fi
1.571 +
1.572 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
1.573 +echo "${ECHO_T}$ac_file" >&6; }
1.574 +if test -z "$ac_file"; then
1.575 + echo "$as_me: failed program was:" >&5
1.576 +sed 's/^/| /' conftest.$ac_ext >&5
1.577 +
1.578 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1.579 +See \`config.log' for more details." >&5
1.580 +echo "$as_me: error: C compiler cannot create executables
1.581 +See \`config.log' for more details." >&2;}
1.582 + { (exit 77); exit 77; }; }
1.583 +fi
1.584 +
1.585 +ac_exeext=$ac_cv_exeext
1.586 +
1.587 +# Check that the compiler produces executables we can run. If not, either
1.588 +# the compiler is broken, or we cross compile.
1.589 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1.590 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.591 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1.592 +# If not cross compiling, check that we can run a simple program.
1.593 +if test "$cross_compiling" != yes; then
1.594 + if { ac_try='./$ac_file'
1.595 + { (case "(($ac_try" in
1.596 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.597 + *) ac_try_echo=$ac_try;;
1.598 +esac
1.599 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.600 + (eval "$ac_try") 2>&5
1.601 + ac_status=$?
1.602 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.603 + (exit $ac_status); }; }; then
1.604 + cross_compiling=no
1.605 + else
1.606 + if test "$cross_compiling" = maybe; then
1.607 + cross_compiling=yes
1.608 + else
1.609 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.610 +If you meant to cross compile, use \`--host'.
1.611 +See \`config.log' for more details." >&5
1.612 +echo "$as_me: error: cannot run C compiled programs.
1.613 +If you meant to cross compile, use \`--host'.
1.614 +See \`config.log' for more details." >&2;}
1.615 + { (exit 1); exit 1; }; }
1.616 + fi
1.617 + fi
1.618 +fi
1.619 +{ echo "$as_me:$LINENO: result: yes" >&5
1.620 +echo "${ECHO_T}yes" >&6; }
1.621 +
1.622 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.623 +ac_clean_files=$ac_clean_files_save
1.624 +# Check that the compiler produces executables we can run. If not, either
1.625 +# the compiler is broken, or we cross compile.
1.626 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1.627 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
1.628 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
1.629 +echo "${ECHO_T}$cross_compiling" >&6; }
1.630 +
1.631 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
1.632 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
1.633 +if { (ac_try="$ac_link"
1.634 +case "(($ac_try" in
1.635 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.636 + *) ac_try_echo=$ac_try;;
1.637 +esac
1.638 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.639 + (eval "$ac_link") 2>&5
1.640 + ac_status=$?
1.641 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.642 + (exit $ac_status); }; then
1.643 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
1.644 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1.645 +# work properly (i.e., refer to `conftest.exe'), while it won't with
1.646 +# `rm'.
1.647 +for ac_file in conftest.exe conftest conftest.*; do
1.648 + test -f "$ac_file" || continue
1.649 + case $ac_file in
1.650 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.651 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.652 + break;;
1.653 + * ) break;;
1.654 + esac
1.655 +done
1.656 +else
1.657 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1.658 +See \`config.log' for more details." >&5
1.659 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1.660 +See \`config.log' for more details." >&2;}
1.661 + { (exit 1); exit 1; }; }
1.662 +fi
1.663 +
1.664 +rm -f conftest$ac_cv_exeext
1.665 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1.666 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.667 +
1.668 +rm -f conftest.$ac_ext
1.669 +EXEEXT=$ac_cv_exeext
1.670 +ac_exeext=$EXEEXT
1.671 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
1.672 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.673 +if test "${ac_cv_objext+set}" = set; then
1.674 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.675 +else
1.676 + cat >conftest.$ac_ext <<_ACEOF
1.677 +/* confdefs.h. */
1.678 +_ACEOF
1.679 +cat confdefs.h >>conftest.$ac_ext
1.680 +cat >>conftest.$ac_ext <<_ACEOF
1.681 +/* end confdefs.h. */
1.682 +
1.683 +int
1.684 +main ()
1.685 +{
1.686 +
1.687 + ;
1.688 + return 0;
1.689 +}
1.690 +_ACEOF
1.691 +rm -f conftest.o conftest.obj
1.692 +if { (ac_try="$ac_compile"
1.693 +case "(($ac_try" in
1.694 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.695 + *) ac_try_echo=$ac_try;;
1.696 +esac
1.697 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.698 + (eval "$ac_compile") 2>&5
1.699 + ac_status=$?
1.700 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.701 + (exit $ac_status); }; then
1.702 + for ac_file in conftest.o conftest.obj conftest.*; do
1.703 + test -f "$ac_file" || continue;
1.704 + case $ac_file in
1.705 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.706 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1.707 + break;;
1.708 + esac
1.709 +done
1.710 +else
1.711 + echo "$as_me: failed program was:" >&5
1.712 +sed 's/^/| /' conftest.$ac_ext >&5
1.713 +
1.714 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1.715 +See \`config.log' for more details." >&5
1.716 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
1.717 +See \`config.log' for more details." >&2;}
1.718 + { (exit 1); exit 1; }; }
1.719 +fi
1.720 +
1.721 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.722 +fi
1.723 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1.724 +echo "${ECHO_T}$ac_cv_objext" >&6; }
1.725 +OBJEXT=$ac_cv_objext
1.726 +ac_objext=$OBJEXT
1.727 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.728 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.729 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.730 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.731 +else
1.732 + cat >conftest.$ac_ext <<_ACEOF
1.733 +/* confdefs.h. */
1.734 +_ACEOF
1.735 +cat confdefs.h >>conftest.$ac_ext
1.736 +cat >>conftest.$ac_ext <<_ACEOF
1.737 +/* end confdefs.h. */
1.738 +
1.739 +int
1.740 +main ()
1.741 +{
1.742 +#ifndef __GNUC__
1.743 + choke me
1.744 +#endif
1.745 +
1.746 + ;
1.747 + return 0;
1.748 +}
1.749 +_ACEOF
1.750 +rm -f conftest.$ac_objext
1.751 +if { (ac_try="$ac_compile"
1.752 +case "(($ac_try" in
1.753 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.754 + *) ac_try_echo=$ac_try;;
1.755 +esac
1.756 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.757 + (eval "$ac_compile") 2>conftest.er1
1.758 + ac_status=$?
1.759 + grep -v '^ *+' conftest.er1 >conftest.err
1.760 + rm -f conftest.er1
1.761 + cat conftest.err >&5
1.762 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.763 + (exit $ac_status); } && {
1.764 + test -z "$ac_c_werror_flag" ||
1.765 + test ! -s conftest.err
1.766 + } && test -s conftest.$ac_objext; then
1.767 + ac_compiler_gnu=yes
1.768 +else
1.769 + echo "$as_me: failed program was:" >&5
1.770 +sed 's/^/| /' conftest.$ac_ext >&5
1.771 +
1.772 + ac_compiler_gnu=no
1.773 +fi
1.774 +
1.775 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.776 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.777 +
1.778 +fi
1.779 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.780 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.781 +GCC=`test $ac_compiler_gnu = yes && echo yes`
1.782 +ac_test_CFLAGS=${CFLAGS+set}
1.783 +ac_save_CFLAGS=$CFLAGS
1.784 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.785 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.786 +if test "${ac_cv_prog_cc_g+set}" = set; then
1.787 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.788 +else
1.789 + ac_save_c_werror_flag=$ac_c_werror_flag
1.790 + ac_c_werror_flag=yes
1.791 + ac_cv_prog_cc_g=no
1.792 + CFLAGS="-g"
1.793 + cat >conftest.$ac_ext <<_ACEOF
1.794 +/* confdefs.h. */
1.795 +_ACEOF
1.796 +cat confdefs.h >>conftest.$ac_ext
1.797 +cat >>conftest.$ac_ext <<_ACEOF
1.798 +/* end confdefs.h. */
1.799 +
1.800 +int
1.801 +main ()
1.802 +{
1.803 +
1.804 + ;
1.805 + return 0;
1.806 +}
1.807 +_ACEOF
1.808 +rm -f conftest.$ac_objext
1.809 +if { (ac_try="$ac_compile"
1.810 +case "(($ac_try" in
1.811 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.812 + *) ac_try_echo=$ac_try;;
1.813 +esac
1.814 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.815 + (eval "$ac_compile") 2>conftest.er1
1.816 + ac_status=$?
1.817 + grep -v '^ *+' conftest.er1 >conftest.err
1.818 + rm -f conftest.er1
1.819 + cat conftest.err >&5
1.820 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.821 + (exit $ac_status); } && {
1.822 + test -z "$ac_c_werror_flag" ||
1.823 + test ! -s conftest.err
1.824 + } && test -s conftest.$ac_objext; then
1.825 + ac_cv_prog_cc_g=yes
1.826 +else
1.827 + echo "$as_me: failed program was:" >&5
1.828 +sed 's/^/| /' conftest.$ac_ext >&5
1.829 +
1.830 + CFLAGS=""
1.831 + cat >conftest.$ac_ext <<_ACEOF
1.832 +/* confdefs.h. */
1.833 +_ACEOF
1.834 +cat confdefs.h >>conftest.$ac_ext
1.835 +cat >>conftest.$ac_ext <<_ACEOF
1.836 +/* end confdefs.h. */
1.837 +
1.838 +int
1.839 +main ()
1.840 +{
1.841 +
1.842 + ;
1.843 + return 0;
1.844 +}
1.845 +_ACEOF
1.846 +rm -f conftest.$ac_objext
1.847 +if { (ac_try="$ac_compile"
1.848 +case "(($ac_try" in
1.849 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.850 + *) ac_try_echo=$ac_try;;
1.851 +esac
1.852 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.853 + (eval "$ac_compile") 2>conftest.er1
1.854 + ac_status=$?
1.855 + grep -v '^ *+' conftest.er1 >conftest.err
1.856 + rm -f conftest.er1
1.857 + cat conftest.err >&5
1.858 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.859 + (exit $ac_status); } && {
1.860 + test -z "$ac_c_werror_flag" ||
1.861 + test ! -s conftest.err
1.862 + } && test -s conftest.$ac_objext; then
1.863 + :
1.864 +else
1.865 + echo "$as_me: failed program was:" >&5
1.866 +sed 's/^/| /' conftest.$ac_ext >&5
1.867 +
1.868 + ac_c_werror_flag=$ac_save_c_werror_flag
1.869 + CFLAGS="-g"
1.870 + cat >conftest.$ac_ext <<_ACEOF
1.871 +/* confdefs.h. */
1.872 +_ACEOF
1.873 +cat confdefs.h >>conftest.$ac_ext
1.874 +cat >>conftest.$ac_ext <<_ACEOF
1.875 +/* end confdefs.h. */
1.876 +
1.877 +int
1.878 +main ()
1.879 +{
1.880 +
1.881 + ;
1.882 + return 0;
1.883 +}
1.884 +_ACEOF
1.885 +rm -f conftest.$ac_objext
1.886 +if { (ac_try="$ac_compile"
1.887 +case "(($ac_try" in
1.888 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.889 + *) ac_try_echo=$ac_try;;
1.890 +esac
1.891 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.892 + (eval "$ac_compile") 2>conftest.er1
1.893 + ac_status=$?
1.894 + grep -v '^ *+' conftest.er1 >conftest.err
1.895 + rm -f conftest.er1
1.896 + cat conftest.err >&5
1.897 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.898 + (exit $ac_status); } && {
1.899 + test -z "$ac_c_werror_flag" ||
1.900 + test ! -s conftest.err
1.901 + } && test -s conftest.$ac_objext; then
1.902 + ac_cv_prog_cc_g=yes
1.903 +else
1.904 + echo "$as_me: failed program was:" >&5
1.905 +sed 's/^/| /' conftest.$ac_ext >&5
1.906 +
1.907 +
1.908 +fi
1.909 +
1.910 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.911 +fi
1.912 +
1.913 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.914 +fi
1.915 +
1.916 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.917 + ac_c_werror_flag=$ac_save_c_werror_flag
1.918 +fi
1.919 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.920 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.921 +if test "$ac_test_CFLAGS" = set; then
1.922 + CFLAGS=$ac_save_CFLAGS
1.923 +elif test $ac_cv_prog_cc_g = yes; then
1.924 + if test "$GCC" = yes; then
1.925 + CFLAGS="-g -O2"
1.926 + else
1.927 + CFLAGS="-g"
1.928 + fi
1.929 +else
1.930 + if test "$GCC" = yes; then
1.931 + CFLAGS="-O2"
1.932 + else
1.933 + CFLAGS=
1.934 + fi
1.935 +fi
1.936 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
1.937 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
1.938 +if test "${ac_cv_prog_cc_c89+set}" = set; then
1.939 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.940 +else
1.941 + ac_cv_prog_cc_c89=no
1.942 +ac_save_CC=$CC
1.943 +cat >conftest.$ac_ext <<_ACEOF
1.944 +/* confdefs.h. */
1.945 +_ACEOF
1.946 +cat confdefs.h >>conftest.$ac_ext
1.947 +cat >>conftest.$ac_ext <<_ACEOF
1.948 +/* end confdefs.h. */
1.949 +#include <stdarg.h>
1.950 +#include <stdio.h>
1.951 +#include <sys/types.h>
1.952 +#include <sys/stat.h>
1.953 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.954 +struct buf { int x; };
1.955 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.956 +static char *e (p, i)
1.957 + char **p;
1.958 + int i;
1.959 +{
1.960 + return p[i];
1.961 +}
1.962 +static char *f (char * (*g) (char **, int), char **p, ...)
1.963 +{
1.964 + char *s;
1.965 + va_list v;
1.966 + va_start (v,p);
1.967 + s = g (p, va_arg (v,int));
1.968 + va_end (v);
1.969 + return s;
1.970 +}
1.971 +
1.972 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.973 + function prototypes and stuff, but not '\xHH' hex character constants.
1.974 + These don't provoke an error unfortunately, instead are silently treated
1.975 + as 'x'. The following induces an error, until -std is added to get
1.976 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.977 + array size at least. It's necessary to write '\x00'==0 to get something
1.978 + that's true only with -std. */
1.979 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.980 +
1.981 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.982 + inside strings and character constants. */
1.983 +#define FOO(x) 'x'
1.984 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.985 +
1.986 +int test (int i, double x);
1.987 +struct s1 {int (*f) (int a);};
1.988 +struct s2 {int (*f) (double a);};
1.989 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.990 +int argc;
1.991 +char **argv;
1.992 +int
1.993 +main ()
1.994 +{
1.995 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.996 + ;
1.997 + return 0;
1.998 +}
1.999 +_ACEOF
1.1000 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.1001 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1002 +do
1.1003 + CC="$ac_save_CC $ac_arg"
1.1004 + rm -f conftest.$ac_objext
1.1005 +if { (ac_try="$ac_compile"
1.1006 +case "(($ac_try" in
1.1007 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1008 + *) ac_try_echo=$ac_try;;
1.1009 +esac
1.1010 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1011 + (eval "$ac_compile") 2>conftest.er1
1.1012 + ac_status=$?
1.1013 + grep -v '^ *+' conftest.er1 >conftest.err
1.1014 + rm -f conftest.er1
1.1015 + cat conftest.err >&5
1.1016 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1017 + (exit $ac_status); } && {
1.1018 + test -z "$ac_c_werror_flag" ||
1.1019 + test ! -s conftest.err
1.1020 + } && test -s conftest.$ac_objext; then
1.1021 + ac_cv_prog_cc_c89=$ac_arg
1.1022 +else
1.1023 + echo "$as_me: failed program was:" >&5
1.1024 +sed 's/^/| /' conftest.$ac_ext >&5
1.1025 +
1.1026 +
1.1027 +fi
1.1028 +
1.1029 +rm -f core conftest.err conftest.$ac_objext
1.1030 + test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1031 +done
1.1032 +rm -f conftest.$ac_ext
1.1033 +CC=$ac_save_CC
1.1034 +
1.1035 +fi
1.1036 +# AC_CACHE_VAL
1.1037 +case "x$ac_cv_prog_cc_c89" in
1.1038 + x)
1.1039 + { echo "$as_me:$LINENO: result: none needed" >&5
1.1040 +echo "${ECHO_T}none needed" >&6; } ;;
1.1041 + xno)
1.1042 + { echo "$as_me:$LINENO: result: unsupported" >&5
1.1043 +echo "${ECHO_T}unsupported" >&6; } ;;
1.1044 + *)
1.1045 + CC="$CC $ac_cv_prog_cc_c89"
1.1046 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1.1047 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.1048 +esac
1.1049 +
1.1050 +
1.1051 +ac_ext=c
1.1052 +ac_cpp='$CPP $CPPFLAGS'
1.1053 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.1054 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.1055 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1056 +
1.1057 +depcc="$CC" am_compiler_list=
1.1058 +
1.1059 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.1060 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.1061 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.1062 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1063 +else
1.1064 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.1065 + # We make a subdir and do the tests there. Otherwise we can end up
1.1066 + # making bogus files that we don't know about and never remove. For
1.1067 + # instance it was reported that on HP-UX the gcc test will end up
1.1068 + # making a dummy file named `D' -- because `-MD' means `put the output
1.1069 + # in D'.
1.1070 + mkdir conftest.dir
1.1071 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.1072 + # using a relative directory.
1.1073 + cp "$am_depcomp" conftest.dir
1.1074 + cd conftest.dir
1.1075 + # We will build objects and dependencies in a subdirectory because
1.1076 + # it helps to detect inapplicable dependency modes. For instance
1.1077 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.1078 + # side effect of compilation, but ICC will put the dependencies in
1.1079 + # the current directory while Tru64 will put them in the object
1.1080 + # directory.
1.1081 + mkdir sub
1.1082 +
1.1083 + am_cv_CC_dependencies_compiler_type=none
1.1084 + if test "$am_compiler_list" = ""; then
1.1085 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1086 + fi
1.1087 + for depmode in $am_compiler_list; do
1.1088 + # Setup a source with many dependencies, because some compilers
1.1089 + # like to wrap large dependency lists on column 80 (with \), and
1.1090 + # we should not choose a depcomp mode which is confused by this.
1.1091 + #
1.1092 + # We need to recreate these files for each test, as the compiler may
1.1093 + # overwrite some of them when testing with obscure command lines.
1.1094 + # This happens at least with the AIX C compiler.
1.1095 + : > sub/conftest.c
1.1096 + for i in 1 2 3 4 5 6; do
1.1097 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.1098 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.1099 + # Solaris 8's {/usr,}/bin/sh.
1.1100 + touch sub/conftst$i.h
1.1101 + done
1.1102 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.1103 +
1.1104 + case $depmode in
1.1105 + nosideeffect)
1.1106 + # after this tag, mechanisms are not by side-effect, so they'll
1.1107 + # only be used when explicitly requested
1.1108 + if test "x$enable_dependency_tracking" = xyes; then
1.1109 + continue
1.1110 + else
1.1111 + break
1.1112 + fi
1.1113 + ;;
1.1114 + none) break ;;
1.1115 + esac
1.1116 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.1117 + # mode. It turns out that the SunPro C++ compiler does not properly
1.1118 + # handle `-M -o', and we need to detect this.
1.1119 + if depmode=$depmode \
1.1120 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.1121 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.1122 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.1123 + >/dev/null 2>conftest.err &&
1.1124 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.1125 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.1126 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.1127 + # icc doesn't choke on unknown options, it will just issue warnings
1.1128 + # or remarks (even with -Werror). So we grep stderr for any message
1.1129 + # that says an option was ignored or not supported.
1.1130 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.1131 + # icc: Command line warning: ignoring option '-M'; no argument required
1.1132 + # The diagnosis changed in icc 8.0:
1.1133 + # icc: Command line remark: option '-MP' not supported
1.1134 + if (grep 'ignoring option' conftest.err ||
1.1135 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.1136 + am_cv_CC_dependencies_compiler_type=$depmode
1.1137 + break
1.1138 + fi
1.1139 + fi
1.1140 + done
1.1141 +
1.1142 + cd ..
1.1143 + rm -rf conftest.dir
1.1144 +else
1.1145 + am_cv_CC_dependencies_compiler_type=none
1.1146 +fi
1.1147 +
1.1148 +fi
1.1149 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1.1150 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
1.1151 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.1152 +
1.1153 +
1.1154 +
1.1155 +if
1.1156 + test "x$enable_dependency_tracking" != xno \
1.1157 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1.1158 + am__fastdepCC_TRUE=
1.1159 + am__fastdepCC_FALSE='#'
1.1160 +else
1.1161 + am__fastdepCC_TRUE='#'
1.1162 + am__fastdepCC_FALSE=
1.1163 +fi
1.1164 +
1.1165 +
1.1166 +
1.1167 +
1.1168 + { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
1.1169 +echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
1.1170 +if test "${ac_cv_lib_cposix_strerror+set}" = set; then
1.1171 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1172 +else
1.1173 + ac_check_lib_save_LIBS=$LIBS
1.1174 +LIBS="-lcposix $LIBS"
1.1175 +cat >conftest.$ac_ext <<_ACEOF
1.1176 +/* confdefs.h. */
1.1177 +_ACEOF
1.1178 +cat confdefs.h >>conftest.$ac_ext
1.1179 +cat >>conftest.$ac_ext <<_ACEOF
1.1180 +/* end confdefs.h. */
1.1181 +
1.1182 +/* Override any GCC internal prototype to avoid an error.
1.1183 + Use char because int might match the return type of a GCC
1.1184 + builtin and then its argument prototype would still apply. */
1.1185 +#ifdef __cplusplus
1.1186 +extern "C"
1.1187 +#endif
1.1188 +char strerror ();
1.1189 +int
1.1190 +main ()
1.1191 +{
1.1192 +return strerror ();
1.1193 + ;
1.1194 + return 0;
1.1195 +}
1.1196 +_ACEOF
1.1197 +rm -f conftest.$ac_objext conftest$ac_exeext
1.1198 +if { (ac_try="$ac_link"
1.1199 +case "(($ac_try" in
1.1200 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1201 + *) ac_try_echo=$ac_try;;
1.1202 +esac
1.1203 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1204 + (eval "$ac_link") 2>conftest.er1
1.1205 + ac_status=$?
1.1206 + grep -v '^ *+' conftest.er1 >conftest.err
1.1207 + rm -f conftest.er1
1.1208 + cat conftest.err >&5
1.1209 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1210 + (exit $ac_status); } && {
1.1211 + test -z "$ac_c_werror_flag" ||
1.1212 + test ! -s conftest.err
1.1213 + } && test -s conftest$ac_exeext &&
1.1214 + $as_test_x conftest$ac_exeext; then
1.1215 + ac_cv_lib_cposix_strerror=yes
1.1216 +else
1.1217 + echo "$as_me: failed program was:" >&5
1.1218 +sed 's/^/| /' conftest.$ac_ext >&5
1.1219 +
1.1220 + ac_cv_lib_cposix_strerror=no
1.1221 +fi
1.1222 +
1.1223 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1224 + conftest$ac_exeext conftest.$ac_ext
1.1225 +LIBS=$ac_check_lib_save_LIBS
1.1226 +fi
1.1227 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
1.1228 +echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
1.1229 +if test $ac_cv_lib_cposix_strerror = yes; then
1.1230 + LIBS="$LIBS -lcposix"
1.1231 +fi
1.1232 +
1.1233 +
1.1234 +
1.1235 +ac_ext=c
1.1236 +ac_cpp='$CPP $CPPFLAGS'
1.1237 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.1238 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.1239 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1240 +if test -n "$ac_tool_prefix"; then
1.1241 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.1242 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1243 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1244 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1245 +if test "${ac_cv_prog_CC+set}" = set; then
1.1246 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1247 +else
1.1248 + if test -n "$CC"; then
1.1249 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.1250 +else
1.1251 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1252 +for as_dir in $PATH
1.1253 +do
1.1254 + IFS=$as_save_IFS
1.1255 + test -z "$as_dir" && as_dir=.
1.1256 + for ac_exec_ext in '' $ac_executable_extensions; do
1.1257 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1258 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.1259 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1260 + break 2
1.1261 + fi
1.1262 +done
1.1263 +done
1.1264 +IFS=$as_save_IFS
1.1265 +
1.1266 +fi
1.1267 +fi
1.1268 +CC=$ac_cv_prog_CC
1.1269 +if test -n "$CC"; then
1.1270 + { echo "$as_me:$LINENO: result: $CC" >&5
1.1271 +echo "${ECHO_T}$CC" >&6; }
1.1272 +else
1.1273 + { echo "$as_me:$LINENO: result: no" >&5
1.1274 +echo "${ECHO_T}no" >&6; }
1.1275 +fi
1.1276 +
1.1277 +
1.1278 +fi
1.1279 +if test -z "$ac_cv_prog_CC"; then
1.1280 + ac_ct_CC=$CC
1.1281 + # Extract the first word of "gcc", so it can be a program name with args.
1.1282 +set dummy gcc; ac_word=$2
1.1283 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1284 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1285 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.1286 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1287 +else
1.1288 + if test -n "$ac_ct_CC"; then
1.1289 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1290 +else
1.1291 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1292 +for as_dir in $PATH
1.1293 +do
1.1294 + IFS=$as_save_IFS
1.1295 + test -z "$as_dir" && as_dir=.
1.1296 + for ac_exec_ext in '' $ac_executable_extensions; do
1.1297 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1298 + ac_cv_prog_ac_ct_CC="gcc"
1.1299 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1300 + break 2
1.1301 + fi
1.1302 +done
1.1303 +done
1.1304 +IFS=$as_save_IFS
1.1305 +
1.1306 +fi
1.1307 +fi
1.1308 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.1309 +if test -n "$ac_ct_CC"; then
1.1310 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.1311 +echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1312 +else
1.1313 + { echo "$as_me:$LINENO: result: no" >&5
1.1314 +echo "${ECHO_T}no" >&6; }
1.1315 +fi
1.1316 +
1.1317 + if test "x$ac_ct_CC" = x; then
1.1318 + CC=""
1.1319 + else
1.1320 + case $cross_compiling:$ac_tool_warned in
1.1321 +yes:)
1.1322 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1323 +whose name does not start with the host triplet. If you think this
1.1324 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1325 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1326 +whose name does not start with the host triplet. If you think this
1.1327 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.1328 +ac_tool_warned=yes ;;
1.1329 +esac
1.1330 + CC=$ac_ct_CC
1.1331 + fi
1.1332 +else
1.1333 + CC="$ac_cv_prog_CC"
1.1334 +fi
1.1335 +
1.1336 +if test -z "$CC"; then
1.1337 + if test -n "$ac_tool_prefix"; then
1.1338 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1339 +set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1340 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1341 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1342 +if test "${ac_cv_prog_CC+set}" = set; then
1.1343 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1344 +else
1.1345 + if test -n "$CC"; then
1.1346 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.1347 +else
1.1348 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1349 +for as_dir in $PATH
1.1350 +do
1.1351 + IFS=$as_save_IFS
1.1352 + test -z "$as_dir" && as_dir=.
1.1353 + for ac_exec_ext in '' $ac_executable_extensions; do
1.1354 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1355 + ac_cv_prog_CC="${ac_tool_prefix}cc"
1.1356 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1357 + break 2
1.1358 + fi
1.1359 +done
1.1360 +done
1.1361 +IFS=$as_save_IFS
1.1362 +
1.1363 +fi
1.1364 +fi
1.1365 +CC=$ac_cv_prog_CC
1.1366 +if test -n "$CC"; then
1.1367 + { echo "$as_me:$LINENO: result: $CC" >&5
1.1368 +echo "${ECHO_T}$CC" >&6; }
1.1369 +else
1.1370 + { echo "$as_me:$LINENO: result: no" >&5
1.1371 +echo "${ECHO_T}no" >&6; }
1.1372 +fi
1.1373 +
1.1374 +
1.1375 + fi
1.1376 +fi
1.1377 +if test -z "$CC"; then
1.1378 + # Extract the first word of "cc", so it can be a program name with args.
1.1379 +set dummy cc; ac_word=$2
1.1380 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1381 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1382 +if test "${ac_cv_prog_CC+set}" = set; then
1.1383 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1384 +else
1.1385 + if test -n "$CC"; then
1.1386 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.1387 +else
1.1388 + ac_prog_rejected=no
1.1389 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1390 +for as_dir in $PATH
1.1391 +do
1.1392 + IFS=$as_save_IFS
1.1393 + test -z "$as_dir" && as_dir=.
1.1394 + for ac_exec_ext in '' $ac_executable_extensions; do
1.1395 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1396 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.1397 + ac_prog_rejected=yes
1.1398 + continue
1.1399 + fi
1.1400 + ac_cv_prog_CC="cc"
1.1401 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1402 + break 2
1.1403 + fi
1.1404 +done
1.1405 +done
1.1406 +IFS=$as_save_IFS
1.1407 +
1.1408 +if test $ac_prog_rejected = yes; then
1.1409 + # We found a bogon in the path, so make sure we never use it.
1.1410 + set dummy $ac_cv_prog_CC
1.1411 + shift
1.1412 + if test $# != 0; then
1.1413 + # We chose a different compiler from the bogus one.
1.1414 + # However, it has the same basename, so the bogon will be chosen
1.1415 + # first if we set CC to just the basename; use the full file name.
1.1416 + shift
1.1417 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1418 + fi
1.1419 +fi
1.1420 +fi
1.1421 +fi
1.1422 +CC=$ac_cv_prog_CC
1.1423 +if test -n "$CC"; then
1.1424 + { echo "$as_me:$LINENO: result: $CC" >&5
1.1425 +echo "${ECHO_T}$CC" >&6; }
1.1426 +else
1.1427 + { echo "$as_me:$LINENO: result: no" >&5
1.1428 +echo "${ECHO_T}no" >&6; }
1.1429 +fi
1.1430 +
1.1431 +
1.1432 +fi
1.1433 +if test -z "$CC"; then
1.1434 + if test -n "$ac_tool_prefix"; then
1.1435 + for ac_prog in cl.exe
1.1436 + do
1.1437 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.1438 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1439 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1440 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1441 +if test "${ac_cv_prog_CC+set}" = set; then
1.1442 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1443 +else
1.1444 + if test -n "$CC"; then
1.1445 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.1446 +else
1.1447 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1448 +for as_dir in $PATH
1.1449 +do
1.1450 + IFS=$as_save_IFS
1.1451 + test -z "$as_dir" && as_dir=.
1.1452 + for ac_exec_ext in '' $ac_executable_extensions; do
1.1453 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1454 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.1455 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1456 + break 2
1.1457 + fi
1.1458 +done
1.1459 +done
1.1460 +IFS=$as_save_IFS
1.1461 +
1.1462 +fi
1.1463 +fi
1.1464 +CC=$ac_cv_prog_CC
1.1465 +if test -n "$CC"; then
1.1466 + { echo "$as_me:$LINENO: result: $CC" >&5
1.1467 +echo "${ECHO_T}$CC" >&6; }
1.1468 +else
1.1469 + { echo "$as_me:$LINENO: result: no" >&5
1.1470 +echo "${ECHO_T}no" >&6; }
1.1471 +fi
1.1472 +
1.1473 +
1.1474 + test -n "$CC" && break
1.1475 + done
1.1476 +fi
1.1477 +if test -z "$CC"; then
1.1478 + ac_ct_CC=$CC
1.1479 + for ac_prog in cl.exe
1.1480 +do
1.1481 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1482 +set dummy $ac_prog; ac_word=$2
1.1483 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1484 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1485 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.1486 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1487 +else
1.1488 + if test -n "$ac_ct_CC"; then
1.1489 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1490 +else
1.1491 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1492 +for as_dir in $PATH
1.1493 +do
1.1494 + IFS=$as_save_IFS
1.1495 + test -z "$as_dir" && as_dir=.
1.1496 + for ac_exec_ext in '' $ac_executable_extensions; do
1.1497 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1498 + ac_cv_prog_ac_ct_CC="$ac_prog"
1.1499 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1500 + break 2
1.1501 + fi
1.1502 +done
1.1503 +done
1.1504 +IFS=$as_save_IFS
1.1505 +
1.1506 +fi
1.1507 +fi
1.1508 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.1509 +if test -n "$ac_ct_CC"; then
1.1510 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.1511 +echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1512 +else
1.1513 + { echo "$as_me:$LINENO: result: no" >&5
1.1514 +echo "${ECHO_T}no" >&6; }
1.1515 +fi
1.1516 +
1.1517 +
1.1518 + test -n "$ac_ct_CC" && break
1.1519 +done
1.1520 +
1.1521 + if test "x$ac_ct_CC" = x; then
1.1522 + CC=""
1.1523 + else
1.1524 + case $cross_compiling:$ac_tool_warned in
1.1525 +yes:)
1.1526 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1527 +whose name does not start with the host triplet. If you think this
1.1528 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1529 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1530 +whose name does not start with the host triplet. If you think this
1.1531 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.1532 +ac_tool_warned=yes ;;
1.1533 +esac
1.1534 + CC=$ac_ct_CC
1.1535 + fi
1.1536 +fi
1.1537 +
1.1538 +fi
1.1539 +
1.1540 +
1.1541 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.1542 +See \`config.log' for more details." >&5
1.1543 +echo "$as_me: error: no acceptable C compiler found in \$PATH
1.1544 +See \`config.log' for more details." >&2;}
1.1545 + { (exit 1); exit 1; }; }
1.1546 +
1.1547 +# Provide some information about the compiler.
1.1548 +echo "$as_me:$LINENO: checking for C compiler version" >&5
1.1549 +ac_compiler=`set X $ac_compile; echo $2`
1.1550 +{ (ac_try="$ac_compiler --version >&5"
1.1551 +case "(($ac_try" in
1.1552 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1553 + *) ac_try_echo=$ac_try;;
1.1554 +esac
1.1555 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1556 + (eval "$ac_compiler --version >&5") 2>&5
1.1557 + ac_status=$?
1.1558 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1559 + (exit $ac_status); }
1.1560 +{ (ac_try="$ac_compiler -v >&5"
1.1561 +case "(($ac_try" in
1.1562 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1563 + *) ac_try_echo=$ac_try;;
1.1564 +esac
1.1565 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1566 + (eval "$ac_compiler -v >&5") 2>&5
1.1567 + ac_status=$?
1.1568 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1569 + (exit $ac_status); }
1.1570 +{ (ac_try="$ac_compiler -V >&5"
1.1571 +case "(($ac_try" in
1.1572 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1573 + *) ac_try_echo=$ac_try;;
1.1574 +esac
1.1575 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1576 + (eval "$ac_compiler -V >&5") 2>&5
1.1577 + ac_status=$?
1.1578 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1579 + (exit $ac_status); }
1.1580 +
1.1581 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.1582 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.1583 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.1584 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1585 +else
1.1586 + cat >conftest.$ac_ext <<_ACEOF
1.1587 +/* confdefs.h. */
1.1588 +_ACEOF
1.1589 +cat confdefs.h >>conftest.$ac_ext
1.1590 +cat >>conftest.$ac_ext <<_ACEOF
1.1591 +/* end confdefs.h. */
1.1592 +
1.1593 +int
1.1594 +main ()
1.1595 +{
1.1596 +#ifndef __GNUC__
1.1597 + choke me
1.1598 +#endif
1.1599 +
1.1600 + ;
1.1601 + return 0;
1.1602 +}
1.1603 +_ACEOF
1.1604 +rm -f conftest.$ac_objext
1.1605 +if { (ac_try="$ac_compile"
1.1606 +case "(($ac_try" in
1.1607 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1608 + *) ac_try_echo=$ac_try;;
1.1609 +esac
1.1610 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1611 + (eval "$ac_compile") 2>conftest.er1
1.1612 + ac_status=$?
1.1613 + grep -v '^ *+' conftest.er1 >conftest.err
1.1614 + rm -f conftest.er1
1.1615 + cat conftest.err >&5
1.1616 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1617 + (exit $ac_status); } && {
1.1618 + test -z "$ac_c_werror_flag" ||
1.1619 + test ! -s conftest.err
1.1620 + } && test -s conftest.$ac_objext; then
1.1621 + ac_compiler_gnu=yes
1.1622 +else
1.1623 + echo "$as_me: failed program was:" >&5
1.1624 +sed 's/^/| /' conftest.$ac_ext >&5
1.1625 +
1.1626 + ac_compiler_gnu=no
1.1627 +fi
1.1628 +
1.1629 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1630 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.1631 +
1.1632 +fi
1.1633 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.1634 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.1635 +GCC=`test $ac_compiler_gnu = yes && echo yes`
1.1636 +ac_test_CFLAGS=${CFLAGS+set}
1.1637 +ac_save_CFLAGS=$CFLAGS
1.1638 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.1639 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.1640 +if test "${ac_cv_prog_cc_g+set}" = set; then
1.1641 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1642 +else
1.1643 + ac_save_c_werror_flag=$ac_c_werror_flag
1.1644 + ac_c_werror_flag=yes
1.1645 + ac_cv_prog_cc_g=no
1.1646 + CFLAGS="-g"
1.1647 + cat >conftest.$ac_ext <<_ACEOF
1.1648 +/* confdefs.h. */
1.1649 +_ACEOF
1.1650 +cat confdefs.h >>conftest.$ac_ext
1.1651 +cat >>conftest.$ac_ext <<_ACEOF
1.1652 +/* end confdefs.h. */
1.1653 +
1.1654 +int
1.1655 +main ()
1.1656 +{
1.1657 +
1.1658 + ;
1.1659 + return 0;
1.1660 +}
1.1661 +_ACEOF
1.1662 +rm -f conftest.$ac_objext
1.1663 +if { (ac_try="$ac_compile"
1.1664 +case "(($ac_try" in
1.1665 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1666 + *) ac_try_echo=$ac_try;;
1.1667 +esac
1.1668 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1669 + (eval "$ac_compile") 2>conftest.er1
1.1670 + ac_status=$?
1.1671 + grep -v '^ *+' conftest.er1 >conftest.err
1.1672 + rm -f conftest.er1
1.1673 + cat conftest.err >&5
1.1674 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1675 + (exit $ac_status); } && {
1.1676 + test -z "$ac_c_werror_flag" ||
1.1677 + test ! -s conftest.err
1.1678 + } && test -s conftest.$ac_objext; then
1.1679 + ac_cv_prog_cc_g=yes
1.1680 +else
1.1681 + echo "$as_me: failed program was:" >&5
1.1682 +sed 's/^/| /' conftest.$ac_ext >&5
1.1683 +
1.1684 + CFLAGS=""
1.1685 + cat >conftest.$ac_ext <<_ACEOF
1.1686 +/* confdefs.h. */
1.1687 +_ACEOF
1.1688 +cat confdefs.h >>conftest.$ac_ext
1.1689 +cat >>conftest.$ac_ext <<_ACEOF
1.1690 +/* end confdefs.h. */
1.1691 +
1.1692 +int
1.1693 +main ()
1.1694 +{
1.1695 +
1.1696 + ;
1.1697 + return 0;
1.1698 +}
1.1699 +_ACEOF
1.1700 +rm -f conftest.$ac_objext
1.1701 +if { (ac_try="$ac_compile"
1.1702 +case "(($ac_try" in
1.1703 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1704 + *) ac_try_echo=$ac_try;;
1.1705 +esac
1.1706 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1707 + (eval "$ac_compile") 2>conftest.er1
1.1708 + ac_status=$?
1.1709 + grep -v '^ *+' conftest.er1 >conftest.err
1.1710 + rm -f conftest.er1
1.1711 + cat conftest.err >&5
1.1712 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1713 + (exit $ac_status); } && {
1.1714 + test -z "$ac_c_werror_flag" ||
1.1715 + test ! -s conftest.err
1.1716 + } && test -s conftest.$ac_objext; then
1.1717 + :
1.1718 +else
1.1719 + echo "$as_me: failed program was:" >&5
1.1720 +sed 's/^/| /' conftest.$ac_ext >&5
1.1721 +
1.1722 + ac_c_werror_flag=$ac_save_c_werror_flag
1.1723 + CFLAGS="-g"
1.1724 + cat >conftest.$ac_ext <<_ACEOF
1.1725 +/* confdefs.h. */
1.1726 +_ACEOF
1.1727 +cat confdefs.h >>conftest.$ac_ext
1.1728 +cat >>conftest.$ac_ext <<_ACEOF
1.1729 +/* end confdefs.h. */
1.1730 +
1.1731 +int
1.1732 +main ()
1.1733 +{
1.1734 +
1.1735 + ;
1.1736 + return 0;
1.1737 +}
1.1738 +_ACEOF
1.1739 +rm -f conftest.$ac_objext
1.1740 +if { (ac_try="$ac_compile"
1.1741 +case "(($ac_try" in
1.1742 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1743 + *) ac_try_echo=$ac_try;;
1.1744 +esac
1.1745 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1746 + (eval "$ac_compile") 2>conftest.er1
1.1747 + ac_status=$?
1.1748 + grep -v '^ *+' conftest.er1 >conftest.err
1.1749 + rm -f conftest.er1
1.1750 + cat conftest.err >&5
1.1751 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1752 + (exit $ac_status); } && {
1.1753 + test -z "$ac_c_werror_flag" ||
1.1754 + test ! -s conftest.err
1.1755 + } && test -s conftest.$ac_objext; then
1.1756 + ac_cv_prog_cc_g=yes
1.1757 +else
1.1758 + echo "$as_me: failed program was:" >&5
1.1759 +sed 's/^/| /' conftest.$ac_ext >&5
1.1760 +
1.1761 +
1.1762 +fi
1.1763 +
1.1764 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1765 +fi
1.1766 +
1.1767 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1768 +fi
1.1769 +
1.1770 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1771 + ac_c_werror_flag=$ac_save_c_werror_flag
1.1772 +fi
1.1773 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.1774 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.1775 +if test "$ac_test_CFLAGS" = set; then
1.1776 + CFLAGS=$ac_save_CFLAGS
1.1777 +elif test $ac_cv_prog_cc_g = yes; then
1.1778 + if test "$GCC" = yes; then
1.1779 + CFLAGS="-g -O2"
1.1780 + else
1.1781 + CFLAGS="-g"
1.1782 + fi
1.1783 +else
1.1784 + if test "$GCC" = yes; then
1.1785 + CFLAGS="-O2"
1.1786 + else
1.1787 + CFLAGS=
1.1788 + fi
1.1789 +fi
1.1790 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
1.1791 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
1.1792 +if test "${ac_cv_prog_cc_c89+set}" = set; then
1.1793 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1794 +else
1.1795 + ac_cv_prog_cc_c89=no
1.1796 +ac_save_CC=$CC
1.1797 +cat >conftest.$ac_ext <<_ACEOF
1.1798 +/* confdefs.h. */
1.1799 +_ACEOF
1.1800 +cat confdefs.h >>conftest.$ac_ext
1.1801 +cat >>conftest.$ac_ext <<_ACEOF
1.1802 +/* end confdefs.h. */
1.1803 +#include <stdarg.h>
1.1804 +#include <stdio.h>
1.1805 +#include <sys/types.h>
1.1806 +#include <sys/stat.h>
1.1807 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.1808 +struct buf { int x; };
1.1809 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.1810 +static char *e (p, i)
1.1811 + char **p;
1.1812 + int i;
1.1813 +{
1.1814 + return p[i];
1.1815 +}
1.1816 +static char *f (char * (*g) (char **, int), char **p, ...)
1.1817 +{
1.1818 + char *s;
1.1819 + va_list v;
1.1820 + va_start (v,p);
1.1821 + s = g (p, va_arg (v,int));
1.1822 + va_end (v);
1.1823 + return s;
1.1824 +}
1.1825 +
1.1826 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.1827 + function prototypes and stuff, but not '\xHH' hex character constants.
1.1828 + These don't provoke an error unfortunately, instead are silently treated
1.1829 + as 'x'. The following induces an error, until -std is added to get
1.1830 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.1831 + array size at least. It's necessary to write '\x00'==0 to get something
1.1832 + that's true only with -std. */
1.1833 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.1834 +
1.1835 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.1836 + inside strings and character constants. */
1.1837 +#define FOO(x) 'x'
1.1838 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1839 +
1.1840 +int test (int i, double x);
1.1841 +struct s1 {int (*f) (int a);};
1.1842 +struct s2 {int (*f) (double a);};
1.1843 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.1844 +int argc;
1.1845 +char **argv;
1.1846 +int
1.1847 +main ()
1.1848 +{
1.1849 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.1850 + ;
1.1851 + return 0;
1.1852 +}
1.1853 +_ACEOF
1.1854 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.1855 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1856 +do
1.1857 + CC="$ac_save_CC $ac_arg"
1.1858 + rm -f conftest.$ac_objext
1.1859 +if { (ac_try="$ac_compile"
1.1860 +case "(($ac_try" in
1.1861 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1862 + *) ac_try_echo=$ac_try;;
1.1863 +esac
1.1864 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1865 + (eval "$ac_compile") 2>conftest.er1
1.1866 + ac_status=$?
1.1867 + grep -v '^ *+' conftest.er1 >conftest.err
1.1868 + rm -f conftest.er1
1.1869 + cat conftest.err >&5
1.1870 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1871 + (exit $ac_status); } && {
1.1872 + test -z "$ac_c_werror_flag" ||
1.1873 + test ! -s conftest.err
1.1874 + } && test -s conftest.$ac_objext; then
1.1875 + ac_cv_prog_cc_c89=$ac_arg
1.1876 +else
1.1877 + echo "$as_me: failed program was:" >&5
1.1878 +sed 's/^/| /' conftest.$ac_ext >&5
1.1879 +
1.1880 +
1.1881 +fi
1.1882 +
1.1883 +rm -f core conftest.err conftest.$ac_objext
1.1884 + test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1885 +done
1.1886 +rm -f conftest.$ac_ext
1.1887 +CC=$ac_save_CC
1.1888 +
1.1889 +fi
1.1890 +# AC_CACHE_VAL
1.1891 +case "x$ac_cv_prog_cc_c89" in
1.1892 + x)
1.1893 + { echo "$as_me:$LINENO: result: none needed" >&5
1.1894 +echo "${ECHO_T}none needed" >&6; } ;;
1.1895 + xno)
1.1896 + { echo "$as_me:$LINENO: result: unsupported" >&5
1.1897 +echo "${ECHO_T}unsupported" >&6; } ;;
1.1898 + *)
1.1899 + CC="$CC $ac_cv_prog_cc_c89"
1.1900 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1.1901 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.1902 +esac
1.1903 +
1.1904 +
1.1905 +ac_ext=c
1.1906 +ac_cpp='$CPP $CPPFLAGS'
1.1907 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.1908 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.1909 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1910 +
1.1911 +depcc="$CC" am_compiler_list=
1.1912 +
1.1913 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.1914 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.1915 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.1916 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1917 +else
1.1918 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.1919 + # We make a subdir and do the tests there. Otherwise we can end up
1.1920 + # making bogus files that we don't know about and never remove. For
1.1921 + # instance it was reported that on HP-UX the gcc test will end up
1.1922 + # making a dummy file named `D' -- because `-MD' means `put the output
1.1923 + # in D'.
1.1924 + mkdir conftest.dir
1.1925 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.1926 + # using a relative directory.
1.1927 + cp "$am_depcomp" conftest.dir
1.1928 + cd conftest.dir
1.1929 + # We will build objects and dependencies in a subdirectory because
1.1930 + # it helps to detect inapplicable dependency modes. For instance
1.1931 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.1932 + # side effect of compilation, but ICC will put the dependencies in
1.1933 + # the current directory while Tru64 will put them in the object
1.1934 + # directory.
1.1935 + mkdir sub
1.1936 +
1.1937 + am_cv_CC_dependencies_compiler_type=none
1.1938 + if test "$am_compiler_list" = ""; then
1.1939 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1940 + fi
1.1941 + for depmode in $am_compiler_list; do
1.1942 + # Setup a source with many dependencies, because some compilers
1.1943 + # like to wrap large dependency lists on column 80 (with \), and
1.1944 + # we should not choose a depcomp mode which is confused by this.
1.1945 + #
1.1946 + # We need to recreate these files for each test, as the compiler may
1.1947 + # overwrite some of them when testing with obscure command lines.
1.1948 + # This happens at least with the AIX C compiler.
1.1949 + : > sub/conftest.c
1.1950 + for i in 1 2 3 4 5 6; do
1.1951 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.1952 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.1953 + # Solaris 8's {/usr,}/bin/sh.
1.1954 + touch sub/conftst$i.h
1.1955 + done
1.1956 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.1957 +
1.1958 + case $depmode in
1.1959 + nosideeffect)
1.1960 + # after this tag, mechanisms are not by side-effect, so they'll
1.1961 + # only be used when explicitly requested
1.1962 + if test "x$enable_dependency_tracking" = xyes; then
1.1963 + continue
1.1964 + else
1.1965 + break
1.1966 + fi
1.1967 + ;;
1.1968 + none) break ;;
1.1969 + esac
1.1970 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.1971 + # mode. It turns out that the SunPro C++ compiler does not properly
1.1972 + # handle `-M -o', and we need to detect this.
1.1973 + if depmode=$depmode \
1.1974 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.1975 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.1976 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.1977 + >/dev/null 2>conftest.err &&
1.1978 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.1979 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.1980 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.1981 + # icc doesn't choke on unknown options, it will just issue warnings
1.1982 + # or remarks (even with -Werror). So we grep stderr for any message
1.1983 + # that says an option was ignored or not supported.
1.1984 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.1985 + # icc: Command line warning: ignoring option '-M'; no argument required
1.1986 + # The diagnosis changed in icc 8.0:
1.1987 + # icc: Command line remark: option '-MP' not supported
1.1988 + if (grep 'ignoring option' conftest.err ||
1.1989 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.1990 + am_cv_CC_dependencies_compiler_type=$depmode
1.1991 + break
1.1992 + fi
1.1993 + fi
1.1994 + done
1.1995 +
1.1996 + cd ..
1.1997 + rm -rf conftest.dir
1.1998 +else
1.1999 + am_cv_CC_dependencies_compiler_type=none
1.2000 +fi
1.2001 +
1.2002 +fi
1.2003 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1.2004 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
1.2005 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.2006 +
1.2007 +
1.2008 +
1.2009 +if
1.2010 + test "x$enable_dependency_tracking" != xno \
1.2011 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1.2012 + am__fastdepCC_TRUE=
1.2013 + am__fastdepCC_FALSE='#'
1.2014 +else
1.2015 + am__fastdepCC_TRUE='#'
1.2016 + am__fastdepCC_FALSE=
1.2017 +fi
1.2018 +
1.2019 +
1.2020 +ac_ext=c
1.2021 +ac_cpp='$CPP $CPPFLAGS'
1.2022 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.2023 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.2024 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.2025 +if test -n "$ac_tool_prefix"; then
1.2026 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.2027 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.2028 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2029 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.2030 +if test "${ac_cv_prog_CC+set}" = set; then
1.2031 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2032 +else
1.2033 + if test -n "$CC"; then
1.2034 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.2035 +else
1.2036 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2037 +for as_dir in $PATH
1.2038 +do
1.2039 + IFS=$as_save_IFS
1.2040 + test -z "$as_dir" && as_dir=.
1.2041 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2042 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2043 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.2044 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2045 + break 2
1.2046 + fi
1.2047 +done
1.2048 +done
1.2049 +IFS=$as_save_IFS
1.2050 +
1.2051 +fi
1.2052 +fi
1.2053 +CC=$ac_cv_prog_CC
1.2054 +if test -n "$CC"; then
1.2055 + { echo "$as_me:$LINENO: result: $CC" >&5
1.2056 +echo "${ECHO_T}$CC" >&6; }
1.2057 +else
1.2058 + { echo "$as_me:$LINENO: result: no" >&5
1.2059 +echo "${ECHO_T}no" >&6; }
1.2060 +fi
1.2061 +
1.2062 +
1.2063 +fi
1.2064 +if test -z "$ac_cv_prog_CC"; then
1.2065 + ac_ct_CC=$CC
1.2066 + # Extract the first word of "gcc", so it can be a program name with args.
1.2067 +set dummy gcc; ac_word=$2
1.2068 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2069 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.2070 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.2071 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2072 +else
1.2073 + if test -n "$ac_ct_CC"; then
1.2074 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.2075 +else
1.2076 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2077 +for as_dir in $PATH
1.2078 +do
1.2079 + IFS=$as_save_IFS
1.2080 + test -z "$as_dir" && as_dir=.
1.2081 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2082 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2083 + ac_cv_prog_ac_ct_CC="gcc"
1.2084 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2085 + break 2
1.2086 + fi
1.2087 +done
1.2088 +done
1.2089 +IFS=$as_save_IFS
1.2090 +
1.2091 +fi
1.2092 +fi
1.2093 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.2094 +if test -n "$ac_ct_CC"; then
1.2095 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.2096 +echo "${ECHO_T}$ac_ct_CC" >&6; }
1.2097 +else
1.2098 + { echo "$as_me:$LINENO: result: no" >&5
1.2099 +echo "${ECHO_T}no" >&6; }
1.2100 +fi
1.2101 +
1.2102 + if test "x$ac_ct_CC" = x; then
1.2103 + CC=""
1.2104 + else
1.2105 + case $cross_compiling:$ac_tool_warned in
1.2106 +yes:)
1.2107 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.2108 +whose name does not start with the host triplet. If you think this
1.2109 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.2110 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.2111 +whose name does not start with the host triplet. If you think this
1.2112 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.2113 +ac_tool_warned=yes ;;
1.2114 +esac
1.2115 + CC=$ac_ct_CC
1.2116 + fi
1.2117 +else
1.2118 + CC="$ac_cv_prog_CC"
1.2119 +fi
1.2120 +
1.2121 +if test -z "$CC"; then
1.2122 + if test -n "$ac_tool_prefix"; then
1.2123 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.2124 +set dummy ${ac_tool_prefix}cc; ac_word=$2
1.2125 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2126 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.2127 +if test "${ac_cv_prog_CC+set}" = set; then
1.2128 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2129 +else
1.2130 + if test -n "$CC"; then
1.2131 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.2132 +else
1.2133 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2134 +for as_dir in $PATH
1.2135 +do
1.2136 + IFS=$as_save_IFS
1.2137 + test -z "$as_dir" && as_dir=.
1.2138 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2139 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2140 + ac_cv_prog_CC="${ac_tool_prefix}cc"
1.2141 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2142 + break 2
1.2143 + fi
1.2144 +done
1.2145 +done
1.2146 +IFS=$as_save_IFS
1.2147 +
1.2148 +fi
1.2149 +fi
1.2150 +CC=$ac_cv_prog_CC
1.2151 +if test -n "$CC"; then
1.2152 + { echo "$as_me:$LINENO: result: $CC" >&5
1.2153 +echo "${ECHO_T}$CC" >&6; }
1.2154 +else
1.2155 + { echo "$as_me:$LINENO: result: no" >&5
1.2156 +echo "${ECHO_T}no" >&6; }
1.2157 +fi
1.2158 +
1.2159 +
1.2160 + fi
1.2161 +fi
1.2162 +if test -z "$CC"; then
1.2163 + # Extract the first word of "cc", so it can be a program name with args.
1.2164 +set dummy cc; ac_word=$2
1.2165 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2166 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.2167 +if test "${ac_cv_prog_CC+set}" = set; then
1.2168 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2169 +else
1.2170 + if test -n "$CC"; then
1.2171 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.2172 +else
1.2173 + ac_prog_rejected=no
1.2174 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2175 +for as_dir in $PATH
1.2176 +do
1.2177 + IFS=$as_save_IFS
1.2178 + test -z "$as_dir" && as_dir=.
1.2179 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2180 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2181 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.2182 + ac_prog_rejected=yes
1.2183 + continue
1.2184 + fi
1.2185 + ac_cv_prog_CC="cc"
1.2186 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2187 + break 2
1.2188 + fi
1.2189 +done
1.2190 +done
1.2191 +IFS=$as_save_IFS
1.2192 +
1.2193 +if test $ac_prog_rejected = yes; then
1.2194 + # We found a bogon in the path, so make sure we never use it.
1.2195 + set dummy $ac_cv_prog_CC
1.2196 + shift
1.2197 + if test $# != 0; then
1.2198 + # We chose a different compiler from the bogus one.
1.2199 + # However, it has the same basename, so the bogon will be chosen
1.2200 + # first if we set CC to just the basename; use the full file name.
1.2201 + shift
1.2202 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.2203 + fi
1.2204 +fi
1.2205 +fi
1.2206 +fi
1.2207 +CC=$ac_cv_prog_CC
1.2208 +if test -n "$CC"; then
1.2209 + { echo "$as_me:$LINENO: result: $CC" >&5
1.2210 +echo "${ECHO_T}$CC" >&6; }
1.2211 +else
1.2212 + { echo "$as_me:$LINENO: result: no" >&5
1.2213 +echo "${ECHO_T}no" >&6; }
1.2214 +fi
1.2215 +
1.2216 +
1.2217 +fi
1.2218 +if test -z "$CC"; then
1.2219 + if test -n "$ac_tool_prefix"; then
1.2220 + for ac_prog in cl.exe
1.2221 + do
1.2222 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.2223 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.2224 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2225 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.2226 +if test "${ac_cv_prog_CC+set}" = set; then
1.2227 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2228 +else
1.2229 + if test -n "$CC"; then
1.2230 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.2231 +else
1.2232 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2233 +for as_dir in $PATH
1.2234 +do
1.2235 + IFS=$as_save_IFS
1.2236 + test -z "$as_dir" && as_dir=.
1.2237 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2238 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2239 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.2240 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2241 + break 2
1.2242 + fi
1.2243 +done
1.2244 +done
1.2245 +IFS=$as_save_IFS
1.2246 +
1.2247 +fi
1.2248 +fi
1.2249 +CC=$ac_cv_prog_CC
1.2250 +if test -n "$CC"; then
1.2251 + { echo "$as_me:$LINENO: result: $CC" >&5
1.2252 +echo "${ECHO_T}$CC" >&6; }
1.2253 +else
1.2254 + { echo "$as_me:$LINENO: result: no" >&5
1.2255 +echo "${ECHO_T}no" >&6; }
1.2256 +fi
1.2257 +
1.2258 +
1.2259 + test -n "$CC" && break
1.2260 + done
1.2261 +fi
1.2262 +if test -z "$CC"; then
1.2263 + ac_ct_CC=$CC
1.2264 + for ac_prog in cl.exe
1.2265 +do
1.2266 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.2267 +set dummy $ac_prog; ac_word=$2
1.2268 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2269 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.2270 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.2271 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2272 +else
1.2273 + if test -n "$ac_ct_CC"; then
1.2274 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.2275 +else
1.2276 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2277 +for as_dir in $PATH
1.2278 +do
1.2279 + IFS=$as_save_IFS
1.2280 + test -z "$as_dir" && as_dir=.
1.2281 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2282 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2283 + ac_cv_prog_ac_ct_CC="$ac_prog"
1.2284 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2285 + break 2
1.2286 + fi
1.2287 +done
1.2288 +done
1.2289 +IFS=$as_save_IFS
1.2290 +
1.2291 +fi
1.2292 +fi
1.2293 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.2294 +if test -n "$ac_ct_CC"; then
1.2295 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.2296 +echo "${ECHO_T}$ac_ct_CC" >&6; }
1.2297 +else
1.2298 + { echo "$as_me:$LINENO: result: no" >&5
1.2299 +echo "${ECHO_T}no" >&6; }
1.2300 +fi
1.2301 +
1.2302 +
1.2303 + test -n "$ac_ct_CC" && break
1.2304 +done
1.2305 +
1.2306 + if test "x$ac_ct_CC" = x; then
1.2307 + CC=""
1.2308 + else
1.2309 + case $cross_compiling:$ac_tool_warned in
1.2310 +yes:)
1.2311 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.2312 +whose name does not start with the host triplet. If you think this
1.2313 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.2314 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.2315 +whose name does not start with the host triplet. If you think this
1.2316 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.2317 +ac_tool_warned=yes ;;
1.2318 +esac
1.2319 + CC=$ac_ct_CC
1.2320 + fi
1.2321 +fi
1.2322 +
1.2323 +fi
1.2324 +
1.2325 +
1.2326 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.2327 +See \`config.log' for more details." >&5
1.2328 +echo "$as_me: error: no acceptable C compiler found in \$PATH
1.2329 +See \`config.log' for more details." >&2;}
1.2330 + { (exit 1); exit 1; }; }
1.2331 +
1.2332 +# Provide some information about the compiler.
1.2333 +echo "$as_me:$LINENO: checking for C compiler version" >&5
1.2334 +ac_compiler=`set X $ac_compile; echo $2`
1.2335 +{ (ac_try="$ac_compiler --version >&5"
1.2336 +case "(($ac_try" in
1.2337 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2338 + *) ac_try_echo=$ac_try;;
1.2339 +esac
1.2340 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2341 + (eval "$ac_compiler --version >&5") 2>&5
1.2342 + ac_status=$?
1.2343 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2344 + (exit $ac_status); }
1.2345 +{ (ac_try="$ac_compiler -v >&5"
1.2346 +case "(($ac_try" in
1.2347 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2348 + *) ac_try_echo=$ac_try;;
1.2349 +esac
1.2350 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2351 + (eval "$ac_compiler -v >&5") 2>&5
1.2352 + ac_status=$?
1.2353 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2354 + (exit $ac_status); }
1.2355 +{ (ac_try="$ac_compiler -V >&5"
1.2356 +case "(($ac_try" in
1.2357 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2358 + *) ac_try_echo=$ac_try;;
1.2359 +esac
1.2360 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2361 + (eval "$ac_compiler -V >&5") 2>&5
1.2362 + ac_status=$?
1.2363 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2364 + (exit $ac_status); }
1.2365 +
1.2366 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.2367 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.2368 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.2369 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2370 +else
1.2371 + cat >conftest.$ac_ext <<_ACEOF
1.2372 +/* confdefs.h. */
1.2373 +_ACEOF
1.2374 +cat confdefs.h >>conftest.$ac_ext
1.2375 +cat >>conftest.$ac_ext <<_ACEOF
1.2376 +/* end confdefs.h. */
1.2377 +
1.2378 +int
1.2379 +main ()
1.2380 +{
1.2381 +#ifndef __GNUC__
1.2382 + choke me
1.2383 +#endif
1.2384 +
1.2385 + ;
1.2386 + return 0;
1.2387 +}
1.2388 +_ACEOF
1.2389 +rm -f conftest.$ac_objext
1.2390 +if { (ac_try="$ac_compile"
1.2391 +case "(($ac_try" in
1.2392 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2393 + *) ac_try_echo=$ac_try;;
1.2394 +esac
1.2395 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2396 + (eval "$ac_compile") 2>conftest.er1
1.2397 + ac_status=$?
1.2398 + grep -v '^ *+' conftest.er1 >conftest.err
1.2399 + rm -f conftest.er1
1.2400 + cat conftest.err >&5
1.2401 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2402 + (exit $ac_status); } && {
1.2403 + test -z "$ac_c_werror_flag" ||
1.2404 + test ! -s conftest.err
1.2405 + } && test -s conftest.$ac_objext; then
1.2406 + ac_compiler_gnu=yes
1.2407 +else
1.2408 + echo "$as_me: failed program was:" >&5
1.2409 +sed 's/^/| /' conftest.$ac_ext >&5
1.2410 +
1.2411 + ac_compiler_gnu=no
1.2412 +fi
1.2413 +
1.2414 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.2415 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.2416 +
1.2417 +fi
1.2418 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.2419 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.2420 +GCC=`test $ac_compiler_gnu = yes && echo yes`
1.2421 +ac_test_CFLAGS=${CFLAGS+set}
1.2422 +ac_save_CFLAGS=$CFLAGS
1.2423 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.2424 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.2425 +if test "${ac_cv_prog_cc_g+set}" = set; then
1.2426 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2427 +else
1.2428 + ac_save_c_werror_flag=$ac_c_werror_flag
1.2429 + ac_c_werror_flag=yes
1.2430 + ac_cv_prog_cc_g=no
1.2431 + CFLAGS="-g"
1.2432 + cat >conftest.$ac_ext <<_ACEOF
1.2433 +/* confdefs.h. */
1.2434 +_ACEOF
1.2435 +cat confdefs.h >>conftest.$ac_ext
1.2436 +cat >>conftest.$ac_ext <<_ACEOF
1.2437 +/* end confdefs.h. */
1.2438 +
1.2439 +int
1.2440 +main ()
1.2441 +{
1.2442 +
1.2443 + ;
1.2444 + return 0;
1.2445 +}
1.2446 +_ACEOF
1.2447 +rm -f conftest.$ac_objext
1.2448 +if { (ac_try="$ac_compile"
1.2449 +case "(($ac_try" in
1.2450 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2451 + *) ac_try_echo=$ac_try;;
1.2452 +esac
1.2453 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2454 + (eval "$ac_compile") 2>conftest.er1
1.2455 + ac_status=$?
1.2456 + grep -v '^ *+' conftest.er1 >conftest.err
1.2457 + rm -f conftest.er1
1.2458 + cat conftest.err >&5
1.2459 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2460 + (exit $ac_status); } && {
1.2461 + test -z "$ac_c_werror_flag" ||
1.2462 + test ! -s conftest.err
1.2463 + } && test -s conftest.$ac_objext; then
1.2464 + ac_cv_prog_cc_g=yes
1.2465 +else
1.2466 + echo "$as_me: failed program was:" >&5
1.2467 +sed 's/^/| /' conftest.$ac_ext >&5
1.2468 +
1.2469 + CFLAGS=""
1.2470 + cat >conftest.$ac_ext <<_ACEOF
1.2471 +/* confdefs.h. */
1.2472 +_ACEOF
1.2473 +cat confdefs.h >>conftest.$ac_ext
1.2474 +cat >>conftest.$ac_ext <<_ACEOF
1.2475 +/* end confdefs.h. */
1.2476 +
1.2477 +int
1.2478 +main ()
1.2479 +{
1.2480 +
1.2481 + ;
1.2482 + return 0;
1.2483 +}
1.2484 +_ACEOF
1.2485 +rm -f conftest.$ac_objext
1.2486 +if { (ac_try="$ac_compile"
1.2487 +case "(($ac_try" in
1.2488 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2489 + *) ac_try_echo=$ac_try;;
1.2490 +esac
1.2491 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2492 + (eval "$ac_compile") 2>conftest.er1
1.2493 + ac_status=$?
1.2494 + grep -v '^ *+' conftest.er1 >conftest.err
1.2495 + rm -f conftest.er1
1.2496 + cat conftest.err >&5
1.2497 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2498 + (exit $ac_status); } && {
1.2499 + test -z "$ac_c_werror_flag" ||
1.2500 + test ! -s conftest.err
1.2501 + } && test -s conftest.$ac_objext; then
1.2502 + :
1.2503 +else
1.2504 + echo "$as_me: failed program was:" >&5
1.2505 +sed 's/^/| /' conftest.$ac_ext >&5
1.2506 +
1.2507 + ac_c_werror_flag=$ac_save_c_werror_flag
1.2508 + CFLAGS="-g"
1.2509 + cat >conftest.$ac_ext <<_ACEOF
1.2510 +/* confdefs.h. */
1.2511 +_ACEOF
1.2512 +cat confdefs.h >>conftest.$ac_ext
1.2513 +cat >>conftest.$ac_ext <<_ACEOF
1.2514 +/* end confdefs.h. */
1.2515 +
1.2516 +int
1.2517 +main ()
1.2518 +{
1.2519 +
1.2520 + ;
1.2521 + return 0;
1.2522 +}
1.2523 +_ACEOF
1.2524 +rm -f conftest.$ac_objext
1.2525 +if { (ac_try="$ac_compile"
1.2526 +case "(($ac_try" in
1.2527 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2528 + *) ac_try_echo=$ac_try;;
1.2529 +esac
1.2530 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2531 + (eval "$ac_compile") 2>conftest.er1
1.2532 + ac_status=$?
1.2533 + grep -v '^ *+' conftest.er1 >conftest.err
1.2534 + rm -f conftest.er1
1.2535 + cat conftest.err >&5
1.2536 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2537 + (exit $ac_status); } && {
1.2538 + test -z "$ac_c_werror_flag" ||
1.2539 + test ! -s conftest.err
1.2540 + } && test -s conftest.$ac_objext; then
1.2541 + ac_cv_prog_cc_g=yes
1.2542 +else
1.2543 + echo "$as_me: failed program was:" >&5
1.2544 +sed 's/^/| /' conftest.$ac_ext >&5
1.2545 +
1.2546 +
1.2547 +fi
1.2548 +
1.2549 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.2550 +fi
1.2551 +
1.2552 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.2553 +fi
1.2554 +
1.2555 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.2556 + ac_c_werror_flag=$ac_save_c_werror_flag
1.2557 +fi
1.2558 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.2559 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.2560 +if test "$ac_test_CFLAGS" = set; then
1.2561 + CFLAGS=$ac_save_CFLAGS
1.2562 +elif test $ac_cv_prog_cc_g = yes; then
1.2563 + if test "$GCC" = yes; then
1.2564 + CFLAGS="-g -O2"
1.2565 + else
1.2566 + CFLAGS="-g"
1.2567 + fi
1.2568 +else
1.2569 + if test "$GCC" = yes; then
1.2570 + CFLAGS="-O2"
1.2571 + else
1.2572 + CFLAGS=
1.2573 + fi
1.2574 +fi
1.2575 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
1.2576 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
1.2577 +if test "${ac_cv_prog_cc_c89+set}" = set; then
1.2578 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2579 +else
1.2580 + ac_cv_prog_cc_c89=no
1.2581 +ac_save_CC=$CC
1.2582 +cat >conftest.$ac_ext <<_ACEOF
1.2583 +/* confdefs.h. */
1.2584 +_ACEOF
1.2585 +cat confdefs.h >>conftest.$ac_ext
1.2586 +cat >>conftest.$ac_ext <<_ACEOF
1.2587 +/* end confdefs.h. */
1.2588 +#include <stdarg.h>
1.2589 +#include <stdio.h>
1.2590 +#include <sys/types.h>
1.2591 +#include <sys/stat.h>
1.2592 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.2593 +struct buf { int x; };
1.2594 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.2595 +static char *e (p, i)
1.2596 + char **p;
1.2597 + int i;
1.2598 +{
1.2599 + return p[i];
1.2600 +}
1.2601 +static char *f (char * (*g) (char **, int), char **p, ...)
1.2602 +{
1.2603 + char *s;
1.2604 + va_list v;
1.2605 + va_start (v,p);
1.2606 + s = g (p, va_arg (v,int));
1.2607 + va_end (v);
1.2608 + return s;
1.2609 +}
1.2610 +
1.2611 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.2612 + function prototypes and stuff, but not '\xHH' hex character constants.
1.2613 + These don't provoke an error unfortunately, instead are silently treated
1.2614 + as 'x'. The following induces an error, until -std is added to get
1.2615 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.2616 + array size at least. It's necessary to write '\x00'==0 to get something
1.2617 + that's true only with -std. */
1.2618 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.2619 +
1.2620 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.2621 + inside strings and character constants. */
1.2622 +#define FOO(x) 'x'
1.2623 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.2624 +
1.2625 +int test (int i, double x);
1.2626 +struct s1 {int (*f) (int a);};
1.2627 +struct s2 {int (*f) (double a);};
1.2628 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.2629 +int argc;
1.2630 +char **argv;
1.2631 +int
1.2632 +main ()
1.2633 +{
1.2634 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.2635 + ;
1.2636 + return 0;
1.2637 +}
1.2638 +_ACEOF
1.2639 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.2640 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.2641 +do
1.2642 + CC="$ac_save_CC $ac_arg"
1.2643 + rm -f conftest.$ac_objext
1.2644 +if { (ac_try="$ac_compile"
1.2645 +case "(($ac_try" in
1.2646 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2647 + *) ac_try_echo=$ac_try;;
1.2648 +esac
1.2649 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2650 + (eval "$ac_compile") 2>conftest.er1
1.2651 + ac_status=$?
1.2652 + grep -v '^ *+' conftest.er1 >conftest.err
1.2653 + rm -f conftest.er1
1.2654 + cat conftest.err >&5
1.2655 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2656 + (exit $ac_status); } && {
1.2657 + test -z "$ac_c_werror_flag" ||
1.2658 + test ! -s conftest.err
1.2659 + } && test -s conftest.$ac_objext; then
1.2660 + ac_cv_prog_cc_c89=$ac_arg
1.2661 +else
1.2662 + echo "$as_me: failed program was:" >&5
1.2663 +sed 's/^/| /' conftest.$ac_ext >&5
1.2664 +
1.2665 +
1.2666 +fi
1.2667 +
1.2668 +rm -f core conftest.err conftest.$ac_objext
1.2669 + test "x$ac_cv_prog_cc_c89" != "xno" && break
1.2670 +done
1.2671 +rm -f conftest.$ac_ext
1.2672 +CC=$ac_save_CC
1.2673 +
1.2674 +fi
1.2675 +# AC_CACHE_VAL
1.2676 +case "x$ac_cv_prog_cc_c89" in
1.2677 + x)
1.2678 + { echo "$as_me:$LINENO: result: none needed" >&5
1.2679 +echo "${ECHO_T}none needed" >&6; } ;;
1.2680 + xno)
1.2681 + { echo "$as_me:$LINENO: result: unsupported" >&5
1.2682 +echo "${ECHO_T}unsupported" >&6; } ;;
1.2683 + *)
1.2684 + CC="$CC $ac_cv_prog_cc_c89"
1.2685 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1.2686 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.2687 +esac
1.2688 +
1.2689 +
1.2690 +ac_ext=c
1.2691 +ac_cpp='$CPP $CPPFLAGS'
1.2692 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.2693 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.2694 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.2695 +
1.2696 +depcc="$CC" am_compiler_list=
1.2697 +
1.2698 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.2699 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.2700 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.2701 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2702 +else
1.2703 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.2704 + # We make a subdir and do the tests there. Otherwise we can end up
1.2705 + # making bogus files that we don't know about and never remove. For
1.2706 + # instance it was reported that on HP-UX the gcc test will end up
1.2707 + # making a dummy file named `D' -- because `-MD' means `put the output
1.2708 + # in D'.
1.2709 + mkdir conftest.dir
1.2710 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.2711 + # using a relative directory.
1.2712 + cp "$am_depcomp" conftest.dir
1.2713 + cd conftest.dir
1.2714 + # We will build objects and dependencies in a subdirectory because
1.2715 + # it helps to detect inapplicable dependency modes. For instance
1.2716 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.2717 + # side effect of compilation, but ICC will put the dependencies in
1.2718 + # the current directory while Tru64 will put them in the object
1.2719 + # directory.
1.2720 + mkdir sub
1.2721 +
1.2722 + am_cv_CC_dependencies_compiler_type=none
1.2723 + if test "$am_compiler_list" = ""; then
1.2724 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.2725 + fi
1.2726 + for depmode in $am_compiler_list; do
1.2727 + # Setup a source with many dependencies, because some compilers
1.2728 + # like to wrap large dependency lists on column 80 (with \), and
1.2729 + # we should not choose a depcomp mode which is confused by this.
1.2730 + #
1.2731 + # We need to recreate these files for each test, as the compiler may
1.2732 + # overwrite some of them when testing with obscure command lines.
1.2733 + # This happens at least with the AIX C compiler.
1.2734 + : > sub/conftest.c
1.2735 + for i in 1 2 3 4 5 6; do
1.2736 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.2737 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.2738 + # Solaris 8's {/usr,}/bin/sh.
1.2739 + touch sub/conftst$i.h
1.2740 + done
1.2741 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.2742 +
1.2743 + case $depmode in
1.2744 + nosideeffect)
1.2745 + # after this tag, mechanisms are not by side-effect, so they'll
1.2746 + # only be used when explicitly requested
1.2747 + if test "x$enable_dependency_tracking" = xyes; then
1.2748 + continue
1.2749 + else
1.2750 + break
1.2751 + fi
1.2752 + ;;
1.2753 + none) break ;;
1.2754 + esac
1.2755 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.2756 + # mode. It turns out that the SunPro C++ compiler does not properly
1.2757 + # handle `-M -o', and we need to detect this.
1.2758 + if depmode=$depmode \
1.2759 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.2760 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.2761 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.2762 + >/dev/null 2>conftest.err &&
1.2763 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.2764 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.2765 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.2766 + # icc doesn't choke on unknown options, it will just issue warnings
1.2767 + # or remarks (even with -Werror). So we grep stderr for any message
1.2768 + # that says an option was ignored or not supported.
1.2769 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.2770 + # icc: Command line warning: ignoring option '-M'; no argument required
1.2771 + # The diagnosis changed in icc 8.0:
1.2772 + # icc: Command line remark: option '-MP' not supported
1.2773 + if (grep 'ignoring option' conftest.err ||
1.2774 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.2775 + am_cv_CC_dependencies_compiler_type=$depmode
1.2776 + break
1.2777 + fi
1.2778 + fi
1.2779 + done
1.2780 +
1.2781 + cd ..
1.2782 + rm -rf conftest.dir
1.2783 +else
1.2784 + am_cv_CC_dependencies_compiler_type=none
1.2785 +fi
1.2786 +
1.2787 +fi
1.2788 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1.2789 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
1.2790 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.2791 +
1.2792 +
1.2793 +
1.2794 +if
1.2795 + test "x$enable_dependency_tracking" != xno \
1.2796 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1.2797 + am__fastdepCC_TRUE=
1.2798 + am__fastdepCC_FALSE='#'
1.2799 +else
1.2800 + am__fastdepCC_TRUE='#'
1.2801 + am__fastdepCC_FALSE=
1.2802 +fi
1.2803 +
1.2804 +
1.2805 +
1.2806 +am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
1.2807 +
1.2808 +ac_ext=c
1.2809 +ac_cpp='$CPP $CPPFLAGS'
1.2810 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.2811 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.2812 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.2813 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.2814 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.2815 +# On Suns, sometimes $CPP names a directory.
1.2816 +if test -n "$CPP" && test -d "$CPP"; then
1.2817 + CPP=
1.2818 +fi
1.2819 +if test -z "$CPP"; then
1.2820 + if test "${ac_cv_prog_CPP+set}" = set; then
1.2821 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2822 +else
1.2823 + # Double quotes because CPP needs to be expanded
1.2824 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1.2825 + do
1.2826 + ac_preproc_ok=false
1.2827 +for ac_c_preproc_warn_flag in '' yes
1.2828 +do
1.2829 + # Use a header file that comes with gcc, so configuring glibc
1.2830 + # with a fresh cross-compiler works.
1.2831 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.2832 + # <limits.h> exists even on freestanding compilers.
1.2833 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.2834 + # not just through cpp. "Syntax error" is here to catch this case.
1.2835 + cat >conftest.$ac_ext <<_ACEOF
1.2836 +/* confdefs.h. */
1.2837 +_ACEOF
1.2838 +cat confdefs.h >>conftest.$ac_ext
1.2839 +cat >>conftest.$ac_ext <<_ACEOF
1.2840 +/* end confdefs.h. */
1.2841 +#ifdef __STDC__
1.2842 +# include <limits.h>
1.2843 +#else
1.2844 +# include <assert.h>
1.2845 +#endif
1.2846 + Syntax error
1.2847 +_ACEOF
1.2848 +if { (ac_try="$ac_cpp conftest.$ac_ext"
1.2849 +case "(($ac_try" in
1.2850 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2851 + *) ac_try_echo=$ac_try;;
1.2852 +esac
1.2853 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2854 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.2855 + ac_status=$?
1.2856 + grep -v '^ *+' conftest.er1 >conftest.err
1.2857 + rm -f conftest.er1
1.2858 + cat conftest.err >&5
1.2859 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2860 + (exit $ac_status); } >/dev/null && {
1.2861 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.2862 + test ! -s conftest.err
1.2863 + }; then
1.2864 + :
1.2865 +else
1.2866 + echo "$as_me: failed program was:" >&5
1.2867 +sed 's/^/| /' conftest.$ac_ext >&5
1.2868 +
1.2869 + # Broken: fails on valid input.
1.2870 +continue
1.2871 +fi
1.2872 +
1.2873 +rm -f conftest.err conftest.$ac_ext
1.2874 +
1.2875 + # OK, works on sane cases. Now check whether nonexistent headers
1.2876 + # can be detected and how.
1.2877 + cat >conftest.$ac_ext <<_ACEOF
1.2878 +/* confdefs.h. */
1.2879 +_ACEOF
1.2880 +cat confdefs.h >>conftest.$ac_ext
1.2881 +cat >>conftest.$ac_ext <<_ACEOF
1.2882 +/* end confdefs.h. */
1.2883 +#include <ac_nonexistent.h>
1.2884 +_ACEOF
1.2885 +if { (ac_try="$ac_cpp conftest.$ac_ext"
1.2886 +case "(($ac_try" in
1.2887 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2888 + *) ac_try_echo=$ac_try;;
1.2889 +esac
1.2890 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2891 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.2892 + ac_status=$?
1.2893 + grep -v '^ *+' conftest.er1 >conftest.err
1.2894 + rm -f conftest.er1
1.2895 + cat conftest.err >&5
1.2896 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2897 + (exit $ac_status); } >/dev/null && {
1.2898 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.2899 + test ! -s conftest.err
1.2900 + }; then
1.2901 + # Broken: success on invalid input.
1.2902 +continue
1.2903 +else
1.2904 + echo "$as_me: failed program was:" >&5
1.2905 +sed 's/^/| /' conftest.$ac_ext >&5
1.2906 +
1.2907 + # Passes both tests.
1.2908 +ac_preproc_ok=:
1.2909 +break
1.2910 +fi
1.2911 +
1.2912 +rm -f conftest.err conftest.$ac_ext
1.2913 +
1.2914 +done
1.2915 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.2916 +rm -f conftest.err conftest.$ac_ext
1.2917 +if $ac_preproc_ok; then
1.2918 + break
1.2919 +fi
1.2920 +
1.2921 + done
1.2922 + ac_cv_prog_CPP=$CPP
1.2923 +
1.2924 +fi
1.2925 + CPP=$ac_cv_prog_CPP
1.2926 +else
1.2927 + ac_cv_prog_CPP=$CPP
1.2928 +fi
1.2929 +{ echo "$as_me:$LINENO: result: $CPP" >&5
1.2930 +echo "${ECHO_T}$CPP" >&6; }
1.2931 +ac_preproc_ok=false
1.2932 +for ac_c_preproc_warn_flag in '' yes
1.2933 +do
1.2934 + # Use a header file that comes with gcc, so configuring glibc
1.2935 + # with a fresh cross-compiler works.
1.2936 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.2937 + # <limits.h> exists even on freestanding compilers.
1.2938 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.2939 + # not just through cpp. "Syntax error" is here to catch this case.
1.2940 + cat >conftest.$ac_ext <<_ACEOF
1.2941 +/* confdefs.h. */
1.2942 +_ACEOF
1.2943 +cat confdefs.h >>conftest.$ac_ext
1.2944 +cat >>conftest.$ac_ext <<_ACEOF
1.2945 +/* end confdefs.h. */
1.2946 +#ifdef __STDC__
1.2947 +# include <limits.h>
1.2948 +#else
1.2949 +# include <assert.h>
1.2950 +#endif
1.2951 + Syntax error
1.2952 +_ACEOF
1.2953 +if { (ac_try="$ac_cpp conftest.$ac_ext"
1.2954 +case "(($ac_try" in
1.2955 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2956 + *) ac_try_echo=$ac_try;;
1.2957 +esac
1.2958 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2959 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.2960 + ac_status=$?
1.2961 + grep -v '^ *+' conftest.er1 >conftest.err
1.2962 + rm -f conftest.er1
1.2963 + cat conftest.err >&5
1.2964 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2965 + (exit $ac_status); } >/dev/null && {
1.2966 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.2967 + test ! -s conftest.err
1.2968 + }; then
1.2969 + :
1.2970 +else
1.2971 + echo "$as_me: failed program was:" >&5
1.2972 +sed 's/^/| /' conftest.$ac_ext >&5
1.2973 +
1.2974 + # Broken: fails on valid input.
1.2975 +continue
1.2976 +fi
1.2977 +
1.2978 +rm -f conftest.err conftest.$ac_ext
1.2979 +
1.2980 + # OK, works on sane cases. Now check whether nonexistent headers
1.2981 + # can be detected and how.
1.2982 + cat >conftest.$ac_ext <<_ACEOF
1.2983 +/* confdefs.h. */
1.2984 +_ACEOF
1.2985 +cat confdefs.h >>conftest.$ac_ext
1.2986 +cat >>conftest.$ac_ext <<_ACEOF
1.2987 +/* end confdefs.h. */
1.2988 +#include <ac_nonexistent.h>
1.2989 +_ACEOF
1.2990 +if { (ac_try="$ac_cpp conftest.$ac_ext"
1.2991 +case "(($ac_try" in
1.2992 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2993 + *) ac_try_echo=$ac_try;;
1.2994 +esac
1.2995 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2996 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.2997 + ac_status=$?
1.2998 + grep -v '^ *+' conftest.er1 >conftest.err
1.2999 + rm -f conftest.er1
1.3000 + cat conftest.err >&5
1.3001 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3002 + (exit $ac_status); } >/dev/null && {
1.3003 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.3004 + test ! -s conftest.err
1.3005 + }; then
1.3006 + # Broken: success on invalid input.
1.3007 +continue
1.3008 +else
1.3009 + echo "$as_me: failed program was:" >&5
1.3010 +sed 's/^/| /' conftest.$ac_ext >&5
1.3011 +
1.3012 + # Passes both tests.
1.3013 +ac_preproc_ok=:
1.3014 +break
1.3015 +fi
1.3016 +
1.3017 +rm -f conftest.err conftest.$ac_ext
1.3018 +
1.3019 +done
1.3020 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.3021 +rm -f conftest.err conftest.$ac_ext
1.3022 +if $ac_preproc_ok; then
1.3023 + :
1.3024 +else
1.3025 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1.3026 +See \`config.log' for more details." >&5
1.3027 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1.3028 +See \`config.log' for more details." >&2;}
1.3029 + { (exit 1); exit 1; }; }
1.3030 +fi
1.3031 +
1.3032 +ac_ext=c
1.3033 +ac_cpp='$CPP $CPPFLAGS'
1.3034 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.3035 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.3036 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.3037 +
1.3038 +
1.3039 +ac_main_cc="$CC"
1.3040 +test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
1.3041 +
1.3042 +if test -z "$CC_FOR_BUILD"; then
1.3043 + if test "$#" = yes; then
1.3044 + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
1.3045 +See \`config.log' for more details." >&5
1.3046 +echo "$as_me: error: cannot run test program while cross compiling
1.3047 +See \`config.log' for more details." >&2;}
1.3048 + { (exit 1); exit 1; }; }
1.3049 +else
1.3050 + cat >conftest.$ac_ext <<_ACEOF
1.3051 +int main(){return 0;}
1.3052 +_ACEOF
1.3053 +rm -f conftest$ac_exeext
1.3054 +if { (ac_try="$ac_link"
1.3055 +case "(($ac_try" in
1.3056 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3057 + *) ac_try_echo=$ac_try;;
1.3058 +esac
1.3059 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3060 + (eval "$ac_link") 2>&5
1.3061 + ac_status=$?
1.3062 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3063 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.3064 + { (case "(($ac_try" in
1.3065 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3066 + *) ac_try_echo=$ac_try;;
1.3067 +esac
1.3068 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3069 + (eval "$ac_try") 2>&5
1.3070 + ac_status=$?
1.3071 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3072 + (exit $ac_status); }; }; then
1.3073 + CC_FOR_BUILD="$CC"
1.3074 +else
1.3075 + echo "$as_me: program exited with status $ac_status" >&5
1.3076 +echo "$as_me: failed program was:" >&5
1.3077 +sed 's/^/| /' conftest.$ac_ext >&5
1.3078 +
1.3079 +fi
1.3080 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.3081 +fi
1.3082 +
1.3083 +
1.3084 +fi
1.3085 +
1.3086 +
1.3087 +ac_ext=c
1.3088 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.3089 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.3090 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.3091 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.3092 +if test -n "$ac_build_tool_prefix"; then
1.3093 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.3094 +set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
1.3095 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.3096 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.3097 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
1.3098 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3099 +else
1.3100 + if test -n "$CC_FOR_BUILD"; then
1.3101 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
1.3102 +else
1.3103 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.3104 +for as_dir in $PATH
1.3105 +do
1.3106 + IFS=$as_save_IFS
1.3107 + test -z "$as_dir" && as_dir=.
1.3108 + for ac_exec_ext in '' $ac_executable_extensions; do
1.3109 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.3110 + ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
1.3111 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3112 + break 2
1.3113 + fi
1.3114 +done
1.3115 +done
1.3116 +IFS=$as_save_IFS
1.3117 +
1.3118 +fi
1.3119 +fi
1.3120 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
1.3121 +if test -n "$CC_FOR_BUILD"; then
1.3122 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
1.3123 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
1.3124 +else
1.3125 + { echo "$as_me:$LINENO: result: no" >&5
1.3126 +echo "${ECHO_T}no" >&6; }
1.3127 +fi
1.3128 +
1.3129 +
1.3130 +fi
1.3131 +if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
1.3132 + ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
1.3133 + # Extract the first word of "gcc", so it can be a program name with args.
1.3134 +set dummy gcc; ac_word=$2
1.3135 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.3136 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.3137 +if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
1.3138 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3139 +else
1.3140 + if test -n "$ac_ct_CC_FOR_BUILD"; then
1.3141 + ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
1.3142 +else
1.3143 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.3144 +for as_dir in $PATH
1.3145 +do
1.3146 + IFS=$as_save_IFS
1.3147 + test -z "$as_dir" && as_dir=.
1.3148 + for ac_exec_ext in '' $ac_executable_extensions; do
1.3149 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.3150 + ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
1.3151 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3152 + break 2
1.3153 + fi
1.3154 +done
1.3155 +done
1.3156 +IFS=$as_save_IFS
1.3157 +
1.3158 +fi
1.3159 +fi
1.3160 +ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
1.3161 +if test -n "$ac_ct_CC_FOR_BUILD"; then
1.3162 + { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
1.3163 +echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
1.3164 +else
1.3165 + { echo "$as_me:$LINENO: result: no" >&5
1.3166 +echo "${ECHO_T}no" >&6; }
1.3167 +fi
1.3168 +
1.3169 + if test "x$ac_ct_CC_FOR_BUILD" = x; then
1.3170 + CC_FOR_BUILD=""
1.3171 + else
1.3172 + case $#:$ac_tool_warned in
1.3173 +yes:)
1.3174 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.3175 +whose name does not start with the build triplet. If you think this
1.3176 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.3177 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.3178 +whose name does not start with the build triplet. If you think this
1.3179 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.3180 +ac_tool_warned=yes ;;
1.3181 +esac
1.3182 + CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
1.3183 + fi
1.3184 +else
1.3185 + CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
1.3186 +fi
1.3187 +
1.3188 +if test -z "$CC_FOR_BUILD"; then
1.3189 + if test -n "$ac_build_tool_prefix"; then
1.3190 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.3191 +set dummy ${ac_build_tool_prefix}cc; ac_word=$2
1.3192 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.3193 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.3194 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
1.3195 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3196 +else
1.3197 + if test -n "$CC_FOR_BUILD"; then
1.3198 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
1.3199 +else
1.3200 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.3201 +for as_dir in $PATH
1.3202 +do
1.3203 + IFS=$as_save_IFS
1.3204 + test -z "$as_dir" && as_dir=.
1.3205 + for ac_exec_ext in '' $ac_executable_extensions; do
1.3206 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.3207 + ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
1.3208 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3209 + break 2
1.3210 + fi
1.3211 +done
1.3212 +done
1.3213 +IFS=$as_save_IFS
1.3214 +
1.3215 +fi
1.3216 +fi
1.3217 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
1.3218 +if test -n "$CC_FOR_BUILD"; then
1.3219 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
1.3220 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
1.3221 +else
1.3222 + { echo "$as_me:$LINENO: result: no" >&5
1.3223 +echo "${ECHO_T}no" >&6; }
1.3224 +fi
1.3225 +
1.3226 +
1.3227 + fi
1.3228 +fi
1.3229 +if test -z "$CC_FOR_BUILD"; then
1.3230 + # Extract the first word of "cc", so it can be a program name with args.
1.3231 +set dummy cc; ac_word=$2
1.3232 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.3233 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.3234 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
1.3235 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3236 +else
1.3237 + if test -n "$CC_FOR_BUILD"; then
1.3238 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
1.3239 +else
1.3240 + ac_prog_rejected=no
1.3241 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.3242 +for as_dir in $PATH
1.3243 +do
1.3244 + IFS=$as_save_IFS
1.3245 + test -z "$as_dir" && as_dir=.
1.3246 + for ac_exec_ext in '' $ac_executable_extensions; do
1.3247 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.3248 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.3249 + ac_prog_rejected=yes
1.3250 + continue
1.3251 + fi
1.3252 + ac_cv_prog_CC_FOR_BUILD="cc"
1.3253 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3254 + break 2
1.3255 + fi
1.3256 +done
1.3257 +done
1.3258 +IFS=$as_save_IFS
1.3259 +
1.3260 +if test $ac_prog_rejected = yes; then
1.3261 + # We found a bogon in the path, so make sure we never use it.
1.3262 + set dummy $ac_cv_prog_CC_FOR_BUILD
1.3263 + shift
1.3264 + if test $# != 0; then
1.3265 + # We chose a different compiler from the bogus one.
1.3266 + # However, it has the same basename, so the bogon will be chosen
1.3267 + # first if we set CC_FOR_BUILD to just the basename; use the full file name.
1.3268 + shift
1.3269 + ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
1.3270 + fi
1.3271 +fi
1.3272 +fi
1.3273 +fi
1.3274 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
1.3275 +if test -n "$CC_FOR_BUILD"; then
1.3276 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
1.3277 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
1.3278 +else
1.3279 + { echo "$as_me:$LINENO: result: no" >&5
1.3280 +echo "${ECHO_T}no" >&6; }
1.3281 +fi
1.3282 +
1.3283 +
1.3284 +fi
1.3285 +if test -z "$CC_FOR_BUILD"; then
1.3286 + if test -n "$ac_build_tool_prefix"; then
1.3287 + for ac_prog in cl.exe
1.3288 + do
1.3289 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.3290 +set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
1.3291 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.3292 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.3293 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
1.3294 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3295 +else
1.3296 + if test -n "$CC_FOR_BUILD"; then
1.3297 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
1.3298 +else
1.3299 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.3300 +for as_dir in $PATH
1.3301 +do
1.3302 + IFS=$as_save_IFS
1.3303 + test -z "$as_dir" && as_dir=.
1.3304 + for ac_exec_ext in '' $ac_executable_extensions; do
1.3305 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.3306 + ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
1.3307 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3308 + break 2
1.3309 + fi
1.3310 +done
1.3311 +done
1.3312 +IFS=$as_save_IFS
1.3313 +
1.3314 +fi
1.3315 +fi
1.3316 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
1.3317 +if test -n "$CC_FOR_BUILD"; then
1.3318 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
1.3319 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
1.3320 +else
1.3321 + { echo "$as_me:$LINENO: result: no" >&5
1.3322 +echo "${ECHO_T}no" >&6; }
1.3323 +fi
1.3324 +
1.3325 +
1.3326 + test -n "$CC_FOR_BUILD" && break
1.3327 + done
1.3328 +fi
1.3329 +if test -z "$CC_FOR_BUILD"; then
1.3330 + ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
1.3331 + for ac_prog in cl.exe
1.3332 +do
1.3333 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.3334 +set dummy $ac_prog; ac_word=$2
1.3335 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.3336 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.3337 +if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
1.3338 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3339 +else
1.3340 + if test -n "$ac_ct_CC_FOR_BUILD"; then
1.3341 + ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
1.3342 +else
1.3343 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.3344 +for as_dir in $PATH
1.3345 +do
1.3346 + IFS=$as_save_IFS
1.3347 + test -z "$as_dir" && as_dir=.
1.3348 + for ac_exec_ext in '' $ac_executable_extensions; do
1.3349 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.3350 + ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
1.3351 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3352 + break 2
1.3353 + fi
1.3354 +done
1.3355 +done
1.3356 +IFS=$as_save_IFS
1.3357 +
1.3358 +fi
1.3359 +fi
1.3360 +ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
1.3361 +if test -n "$ac_ct_CC_FOR_BUILD"; then
1.3362 + { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
1.3363 +echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
1.3364 +else
1.3365 + { echo "$as_me:$LINENO: result: no" >&5
1.3366 +echo "${ECHO_T}no" >&6; }
1.3367 +fi
1.3368 +
1.3369 +
1.3370 + test -n "$ac_ct_CC_FOR_BUILD" && break
1.3371 +done
1.3372 +
1.3373 + if test "x$ac_ct_CC_FOR_BUILD" = x; then
1.3374 + CC_FOR_BUILD=""
1.3375 + else
1.3376 + case $#:$ac_tool_warned in
1.3377 +yes:)
1.3378 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.3379 +whose name does not start with the build triplet. If you think this
1.3380 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.3381 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.3382 +whose name does not start with the build triplet. If you think this
1.3383 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.3384 +ac_tool_warned=yes ;;
1.3385 +esac
1.3386 + CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
1.3387 + fi
1.3388 +fi
1.3389 +
1.3390 +fi
1.3391 +
1.3392 +
1.3393 +test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.3394 +See \`config.log' for more details." >&5
1.3395 +echo "$as_me: error: no acceptable C compiler found in \$PATH
1.3396 +See \`config.log' for more details." >&2;}
1.3397 + { (exit 1); exit 1; }; }
1.3398 +
1.3399 +# Provide some information about the compiler.
1.3400 +echo "$as_me:$LINENO: checking for C compiler version" >&5
1.3401 +ac_compiler=`set X $ac_build_compile; echo $2`
1.3402 +{ (ac_try="$ac_compiler --version >&5"
1.3403 +case "(($ac_try" in
1.3404 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3405 + *) ac_try_echo=$ac_try;;
1.3406 +esac
1.3407 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3408 + (eval "$ac_compiler --version >&5") 2>&5
1.3409 + ac_status=$?
1.3410 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3411 + (exit $ac_status); }
1.3412 +{ (ac_try="$ac_compiler -v >&5"
1.3413 +case "(($ac_try" in
1.3414 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3415 + *) ac_try_echo=$ac_try;;
1.3416 +esac
1.3417 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3418 + (eval "$ac_compiler -v >&5") 2>&5
1.3419 + ac_status=$?
1.3420 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3421 + (exit $ac_status); }
1.3422 +{ (ac_try="$ac_compiler -V >&5"
1.3423 +case "(($ac_try" in
1.3424 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3425 + *) ac_try_echo=$ac_try;;
1.3426 +esac
1.3427 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3428 + (eval "$ac_compiler -V >&5") 2>&5
1.3429 + ac_status=$?
1.3430 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3431 + (exit $ac_status); }
1.3432 +
1.3433 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.3434 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.3435 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.3436 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3437 +else
1.3438 + cat >conftest.$ac_ext <<_ACEOF
1.3439 +/* confdefs.h. */
1.3440 +_ACEOF
1.3441 +cat confdefs.h >>conftest.$ac_ext
1.3442 +cat >>conftest.$ac_ext <<_ACEOF
1.3443 +/* end confdefs.h. */
1.3444 +
1.3445 +int
1.3446 +main ()
1.3447 +{
1.3448 +#ifndef __GNUC__
1.3449 + choke me
1.3450 +#endif
1.3451 +
1.3452 + ;
1.3453 + return 0;
1.3454 +}
1.3455 +_ACEOF
1.3456 +rm -f conftest.$ac_build_objext
1.3457 +if { (ac_try="$ac_build_compile"
1.3458 +case "(($ac_try" in
1.3459 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3460 + *) ac_try_echo=$ac_try;;
1.3461 +esac
1.3462 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3463 + (eval "$ac_build_compile") 2>conftest.er1
1.3464 + ac_status=$?
1.3465 + grep -v '^ *+' conftest.er1 >conftest.err
1.3466 + rm -f conftest.er1
1.3467 + cat conftest.err >&5
1.3468 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3469 + (exit $ac_status); } && {
1.3470 + test -z "$ac_c_werror_flag" ||
1.3471 + test ! -s conftest.err
1.3472 + } && test -s conftest.$ac_build_objext; then
1.3473 + ac_build_compiler_gnu=yes
1.3474 +else
1.3475 + echo "$as_me: failed program was:" >&5
1.3476 +sed 's/^/| /' conftest.$ac_ext >&5
1.3477 +
1.3478 + ac_build_compiler_gnu=no
1.3479 +fi
1.3480 +
1.3481 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
1.3482 +ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
1.3483 +
1.3484 +fi
1.3485 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.3486 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.3487 +GCC=`test $ac_build_compiler_gnu = yes && echo yes`
1.3488 +ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
1.3489 +ac_save_CFLAGS=$CFLAGS_FOR_BUILD
1.3490 +{ echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
1.3491 +echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
1.3492 +if test "${ac_cv_build_prog_cc_g+set}" = set; then
1.3493 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3494 +else
1.3495 + ac_save_c_werror_flag=$ac_c_werror_flag
1.3496 + ac_c_werror_flag=yes
1.3497 + ac_cv_build_prog_cc_g=no
1.3498 + CFLAGS_FOR_BUILD="-g"
1.3499 + cat >conftest.$ac_ext <<_ACEOF
1.3500 +/* confdefs.h. */
1.3501 +_ACEOF
1.3502 +cat confdefs.h >>conftest.$ac_ext
1.3503 +cat >>conftest.$ac_ext <<_ACEOF
1.3504 +/* end confdefs.h. */
1.3505 +
1.3506 +int
1.3507 +main ()
1.3508 +{
1.3509 +
1.3510 + ;
1.3511 + return 0;
1.3512 +}
1.3513 +_ACEOF
1.3514 +rm -f conftest.$ac_build_objext
1.3515 +if { (ac_try="$ac_build_compile"
1.3516 +case "(($ac_try" in
1.3517 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3518 + *) ac_try_echo=$ac_try;;
1.3519 +esac
1.3520 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3521 + (eval "$ac_build_compile") 2>conftest.er1
1.3522 + ac_status=$?
1.3523 + grep -v '^ *+' conftest.er1 >conftest.err
1.3524 + rm -f conftest.er1
1.3525 + cat conftest.err >&5
1.3526 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3527 + (exit $ac_status); } && {
1.3528 + test -z "$ac_c_werror_flag" ||
1.3529 + test ! -s conftest.err
1.3530 + } && test -s conftest.$ac_build_objext; then
1.3531 + ac_cv_build_prog_cc_g=yes
1.3532 +else
1.3533 + echo "$as_me: failed program was:" >&5
1.3534 +sed 's/^/| /' conftest.$ac_ext >&5
1.3535 +
1.3536 + CFLAGS_FOR_BUILD=""
1.3537 + cat >conftest.$ac_ext <<_ACEOF
1.3538 +/* confdefs.h. */
1.3539 +_ACEOF
1.3540 +cat confdefs.h >>conftest.$ac_ext
1.3541 +cat >>conftest.$ac_ext <<_ACEOF
1.3542 +/* end confdefs.h. */
1.3543 +
1.3544 +int
1.3545 +main ()
1.3546 +{
1.3547 +
1.3548 + ;
1.3549 + return 0;
1.3550 +}
1.3551 +_ACEOF
1.3552 +rm -f conftest.$ac_build_objext
1.3553 +if { (ac_try="$ac_build_compile"
1.3554 +case "(($ac_try" in
1.3555 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3556 + *) ac_try_echo=$ac_try;;
1.3557 +esac
1.3558 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3559 + (eval "$ac_build_compile") 2>conftest.er1
1.3560 + ac_status=$?
1.3561 + grep -v '^ *+' conftest.er1 >conftest.err
1.3562 + rm -f conftest.er1
1.3563 + cat conftest.err >&5
1.3564 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3565 + (exit $ac_status); } && {
1.3566 + test -z "$ac_c_werror_flag" ||
1.3567 + test ! -s conftest.err
1.3568 + } && test -s conftest.$ac_build_objext; then
1.3569 + :
1.3570 +else
1.3571 + echo "$as_me: failed program was:" >&5
1.3572 +sed 's/^/| /' conftest.$ac_ext >&5
1.3573 +
1.3574 + ac_c_werror_flag=$ac_save_c_werror_flag
1.3575 + CFLAGS_FOR_BUILD="-g"
1.3576 + cat >conftest.$ac_ext <<_ACEOF
1.3577 +/* confdefs.h. */
1.3578 +_ACEOF
1.3579 +cat confdefs.h >>conftest.$ac_ext
1.3580 +cat >>conftest.$ac_ext <<_ACEOF
1.3581 +/* end confdefs.h. */
1.3582 +
1.3583 +int
1.3584 +main ()
1.3585 +{
1.3586 +
1.3587 + ;
1.3588 + return 0;
1.3589 +}
1.3590 +_ACEOF
1.3591 +rm -f conftest.$ac_build_objext
1.3592 +if { (ac_try="$ac_build_compile"
1.3593 +case "(($ac_try" in
1.3594 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3595 + *) ac_try_echo=$ac_try;;
1.3596 +esac
1.3597 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3598 + (eval "$ac_build_compile") 2>conftest.er1
1.3599 + ac_status=$?
1.3600 + grep -v '^ *+' conftest.er1 >conftest.err
1.3601 + rm -f conftest.er1
1.3602 + cat conftest.err >&5
1.3603 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3604 + (exit $ac_status); } && {
1.3605 + test -z "$ac_c_werror_flag" ||
1.3606 + test ! -s conftest.err
1.3607 + } && test -s conftest.$ac_build_objext; then
1.3608 + ac_cv_build_prog_cc_g=yes
1.3609 +else
1.3610 + echo "$as_me: failed program was:" >&5
1.3611 +sed 's/^/| /' conftest.$ac_ext >&5
1.3612 +
1.3613 +
1.3614 +fi
1.3615 +
1.3616 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
1.3617 +fi
1.3618 +
1.3619 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
1.3620 +fi
1.3621 +
1.3622 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
1.3623 + ac_c_werror_flag=$ac_save_c_werror_flag
1.3624 +fi
1.3625 +{ echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
1.3626 +echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
1.3627 +if test "$ac_test_CFLAGS" = set; then
1.3628 + CFLAGS_FOR_BUILD=$ac_save_CFLAGS
1.3629 +elif test $ac_cv_build_prog_cc_g = yes; then
1.3630 + if test "$GCC" = yes; then
1.3631 + CFLAGS_FOR_BUILD="-g -O2"
1.3632 + else
1.3633 + CFLAGS_FOR_BUILD="-g"
1.3634 + fi
1.3635 +else
1.3636 + if test "$GCC" = yes; then
1.3637 + CFLAGS_FOR_BUILD="-O2"
1.3638 + else
1.3639 + CFLAGS_FOR_BUILD=
1.3640 + fi
1.3641 +fi
1.3642 +{ echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
1.3643 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
1.3644 +if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.3645 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3646 +else
1.3647 + ac_cv_build_prog_cc_stdc=no
1.3648 +ac_save_CC=$CC_FOR_BUILD
1.3649 +cat >conftest.$ac_ext <<_ACEOF
1.3650 +/* confdefs.h. */
1.3651 +_ACEOF
1.3652 +cat confdefs.h >>conftest.$ac_ext
1.3653 +cat >>conftest.$ac_ext <<_ACEOF
1.3654 +/* end confdefs.h. */
1.3655 +#include <stdarg.h>
1.3656 +#include <stdio.h>
1.3657 +#include <sys/types.h>
1.3658 +#include <sys/stat.h>
1.3659 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.3660 +struct buf { int x; };
1.3661 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.3662 +static char *e (p, i)
1.3663 + char **p;
1.3664 + int i;
1.3665 +{
1.3666 + return p[i];
1.3667 +}
1.3668 +static char *f (char * (*g) (char **, int), char **p, ...)
1.3669 +{
1.3670 + char *s;
1.3671 + va_list v;
1.3672 + va_start (v,p);
1.3673 + s = g (p, va_arg (v,int));
1.3674 + va_end (v);
1.3675 + return s;
1.3676 +}
1.3677 +
1.3678 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.3679 + function prototypes and stuff, but not '\xHH' hex character constants.
1.3680 + These don't provoke an error unfortunately, instead are silently treated
1.3681 + as 'x'. The following induces an error, until -std is added to get
1.3682 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.3683 + array size at least. It's necessary to write '\x00'==0 to get something
1.3684 + that's true only with -std. */
1.3685 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.3686 +
1.3687 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.3688 + inside strings and character constants. */
1.3689 +#define FOO(x) 'x'
1.3690 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.3691 +
1.3692 +int test (int i, double x);
1.3693 +struct s1 {int (*f) (int a);};
1.3694 +struct s2 {int (*f) (double a);};
1.3695 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.3696 +int argc;
1.3697 +char **argv;
1.3698 +int
1.3699 +main ()
1.3700 +{
1.3701 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.3702 + ;
1.3703 + return 0;
1.3704 +}
1.3705 +_ACEOF
1.3706 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.3707 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.3708 +do
1.3709 + CC_FOR_BUILD="$ac_save_CC $ac_arg"
1.3710 + rm -f conftest.$ac_build_objext
1.3711 +if { (ac_try="$ac_build_compile"
1.3712 +case "(($ac_try" in
1.3713 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3714 + *) ac_try_echo=$ac_try;;
1.3715 +esac
1.3716 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3717 + (eval "$ac_build_compile") 2>conftest.er1
1.3718 + ac_status=$?
1.3719 + grep -v '^ *+' conftest.er1 >conftest.err
1.3720 + rm -f conftest.er1
1.3721 + cat conftest.err >&5
1.3722 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3723 + (exit $ac_status); } && {
1.3724 + test -z "$ac_c_werror_flag" ||
1.3725 + test ! -s conftest.err
1.3726 + } && test -s conftest.$ac_build_objext; then
1.3727 + ac_cv_build_prog_cc_stdc=$ac_arg
1.3728 +else
1.3729 + echo "$as_me: failed program was:" >&5
1.3730 +sed 's/^/| /' conftest.$ac_ext >&5
1.3731 +
1.3732 +
1.3733 +fi
1.3734 +
1.3735 +rm -f core conftest.err conftest.$ac_build_objext
1.3736 + test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
1.3737 +done
1.3738 +rm -f conftest.$ac_ext
1.3739 +CC_FOR_BUILD=$ac_save_CC
1.3740 +
1.3741 +fi
1.3742 +# AC_CACHE_VAL
1.3743 +case "x$ac_cv_build_prog_cc_stdc" in
1.3744 + x)
1.3745 + { echo "$as_me:$LINENO: result: none needed" >&5
1.3746 +echo "${ECHO_T}none needed" >&6; } ;;
1.3747 + xno)
1.3748 + { echo "$as_me:$LINENO: result: unsupported" >&5
1.3749 +echo "${ECHO_T}unsupported" >&6; } ;;
1.3750 + *)
1.3751 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
1.3752 + { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.3753 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.3754 +esac
1.3755 +
1.3756 +
1.3757 +ac_ext=c
1.3758 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.3759 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.3760 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.3761 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.3762 +
1.3763 +depcc="$CC_FOR_BUILD" am_compiler_list=
1.3764 +
1.3765 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.3766 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.3767 +if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
1.3768 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3769 +else
1.3770 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.3771 + # We make a subdir and do the tests there. Otherwise we can end up
1.3772 + # making bogus files that we don't know about and never remove. For
1.3773 + # instance it was reported that on HP-UX the gcc test will end up
1.3774 + # making a dummy file named `D' -- because `-MD' means `put the output
1.3775 + # in D'.
1.3776 + mkdir conftest.dir
1.3777 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.3778 + # using a relative directory.
1.3779 + cp "$am_depcomp" conftest.dir
1.3780 + cd conftest.dir
1.3781 + # We will build objects and dependencies in a subdirectory because
1.3782 + # it helps to detect inapplicable dependency modes. For instance
1.3783 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.3784 + # side effect of compilation, but ICC will put the dependencies in
1.3785 + # the current directory while Tru64 will put them in the object
1.3786 + # directory.
1.3787 + mkdir sub
1.3788 +
1.3789 + am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
1.3790 + if test "$am_compiler_list" = ""; then
1.3791 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.3792 + fi
1.3793 + for depmode in $am_compiler_list; do
1.3794 + # Setup a source with many dependencies, because some compilers
1.3795 + # like to wrap large dependency lists on column 80 (with \), and
1.3796 + # we should not choose a depcomp mode which is confused by this.
1.3797 + #
1.3798 + # We need to recreate these files for each test, as the compiler may
1.3799 + # overwrite some of them when testing with obscure command lines.
1.3800 + # This happens at least with the AIX C compiler.
1.3801 + : > sub/conftest.c
1.3802 + for i in 1 2 3 4 5 6; do
1.3803 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.3804 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.3805 + # Solaris 8's {/usr,}/bin/sh.
1.3806 + touch sub/conftst$i.h
1.3807 + done
1.3808 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.3809 +
1.3810 + case $depmode in
1.3811 + nosideeffect)
1.3812 + # after this tag, mechanisms are not by side-effect, so they'll
1.3813 + # only be used when explicitly requested
1.3814 + if test "x$enable_dependency_tracking" = xyes; then
1.3815 + continue
1.3816 + else
1.3817 + break
1.3818 + fi
1.3819 + ;;
1.3820 + none) break ;;
1.3821 + esac
1.3822 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.3823 + # mode. It turns out that the SunPro C++ compiler does not properly
1.3824 + # handle `-M -o', and we need to detect this.
1.3825 + if depmode=$depmode \
1.3826 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.3827 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.3828 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.3829 + >/dev/null 2>conftest.err &&
1.3830 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.3831 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.3832 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.3833 + # icc doesn't choke on unknown options, it will just issue warnings
1.3834 + # or remarks (even with -Werror). So we grep stderr for any message
1.3835 + # that says an option was ignored or not supported.
1.3836 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.3837 + # icc: Command line warning: ignoring option '-M'; no argument required
1.3838 + # The diagnosis changed in icc 8.0:
1.3839 + # icc: Command line remark: option '-MP' not supported
1.3840 + if (grep 'ignoring option' conftest.err ||
1.3841 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.3842 + am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
1.3843 + break
1.3844 + fi
1.3845 + fi
1.3846 + done
1.3847 +
1.3848 + cd ..
1.3849 + rm -rf conftest.dir
1.3850 +else
1.3851 + am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
1.3852 +fi
1.3853 +
1.3854 +fi
1.3855 +{ echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
1.3856 +echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
1.3857 +CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
1.3858 +
1.3859 +
1.3860 +
1.3861 +if
1.3862 + test "x$enable_dependency_tracking" != xno \
1.3863 + && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
1.3864 + am__fastdepCC_FOR_BUILD_TRUE=
1.3865 + am__fastdepCC_FOR_BUILD_FALSE='#'
1.3866 +else
1.3867 + am__fastdepCC_FOR_BUILD_TRUE='#'
1.3868 + am__fastdepCC_FOR_BUILD_FALSE=
1.3869 +fi
1.3870 +
1.3871 +
1.3872 + case $ac_cv_build_prog_cc_stdc in
1.3873 + no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
1.3874 + *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
1.3875 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
1.3876 +if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.3877 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3878 +else
1.3879 + ac_cv_build_prog_cc_stdc=no
1.3880 +ac_save_CC=$CC_FOR_BUILD
1.3881 +cat >conftest.$ac_ext <<_ACEOF
1.3882 +/* confdefs.h. */
1.3883 +_ACEOF
1.3884 +cat confdefs.h >>conftest.$ac_ext
1.3885 +cat >>conftest.$ac_ext <<_ACEOF
1.3886 +/* end confdefs.h. */
1.3887 +#include <stdarg.h>
1.3888 +#include <stdbool.h>
1.3889 +#include <stdlib.h>
1.3890 +#include <wchar.h>
1.3891 +#include <stdio.h>
1.3892 +
1.3893 +// Check varargs macros. These examples are taken from C99 6.10.3.5.
1.3894 +#define debug(...) fprintf (stderr, __VA_ARGS__)
1.3895 +#define showlist(...) puts (#__VA_ARGS__)
1.3896 +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1.3897 +static void
1.3898 +test_varargs_macros (void)
1.3899 +{
1.3900 + int x = 1234;
1.3901 + int y = 5678;
1.3902 + debug ("Flag");
1.3903 + debug ("X = %d\n", x);
1.3904 + showlist (The first, second, and third items.);
1.3905 + report (x>y, "x is %d but y is %d", x, y);
1.3906 +}
1.3907 +
1.3908 +// Check long long types.
1.3909 +#define BIG64 18446744073709551615ull
1.3910 +#define BIG32 4294967295ul
1.3911 +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1.3912 +#if !BIG_OK
1.3913 + your preprocessor is broken;
1.3914 +#endif
1.3915 +#if BIG_OK
1.3916 +#else
1.3917 + your preprocessor is broken;
1.3918 +#endif
1.3919 +static long long int bignum = -9223372036854775807LL;
1.3920 +static unsigned long long int ubignum = BIG64;
1.3921 +
1.3922 +struct incomplete_array
1.3923 +{
1.3924 + int datasize;
1.3925 + double data[];
1.3926 +};
1.3927 +
1.3928 +struct named_init {
1.3929 + int number;
1.3930 + const wchar_t *name;
1.3931 + double average;
1.3932 +};
1.3933 +
1.3934 +typedef const char *ccp;
1.3935 +
1.3936 +static inline int
1.3937 +test_restrict (ccp restrict text)
1.3938 +{
1.3939 + // See if C++-style comments work.
1.3940 + // Iterate through items via the restricted pointer.
1.3941 + // Also check for declarations in for loops.
1.3942 + for (unsigned int i = 0; *(text+i) != '\0'; ++i)
1.3943 + continue;
1.3944 + return 0;
1.3945 +}
1.3946 +
1.3947 +// Check varargs and va_copy.
1.3948 +static void
1.3949 +test_varargs (const char *format, ...)
1.3950 +{
1.3951 + va_list args;
1.3952 + va_start (args, format);
1.3953 + va_list args_copy;
1.3954 + va_copy (args_copy, args);
1.3955 +
1.3956 + const char *str;
1.3957 + int number;
1.3958 + float fnumber;
1.3959 +
1.3960 + while (*format)
1.3961 + {
1.3962 + switch (*format++)
1.3963 + {
1.3964 + case 's': // string
1.3965 + str = va_arg (args_copy, const char *);
1.3966 + break;
1.3967 + case 'd': // int
1.3968 + number = va_arg (args_copy, int);
1.3969 + break;
1.3970 + case 'f': // float
1.3971 + fnumber = va_arg (args_copy, double);
1.3972 + break;
1.3973 + default:
1.3974 + break;
1.3975 + }
1.3976 + }
1.3977 + va_end (args_copy);
1.3978 + va_end (args);
1.3979 +}
1.3980 +
1.3981 +int
1.3982 +main ()
1.3983 +{
1.3984 +
1.3985 + // Check bool.
1.3986 + _Bool success = false;
1.3987 +
1.3988 + // Check restrict.
1.3989 + if (test_restrict ("String literal") == 0)
1.3990 + success = true;
1.3991 + char *restrict newvar = "Another string";
1.3992 +
1.3993 + // Check varargs.
1.3994 + test_varargs ("s, d' f .", "string", 65, 34.234);
1.3995 + test_varargs_macros ();
1.3996 +
1.3997 + // Check flexible array members.
1.3998 + struct incomplete_array *ia =
1.3999 + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
1.4000 + ia->datasize = 10;
1.4001 + for (int i = 0; i < ia->datasize; ++i)
1.4002 + ia->data[i] = i * 1.234;
1.4003 +
1.4004 + // Check named initializers.
1.4005 + struct named_init ni = {
1.4006 + .number = 34,
1.4007 + .name = L"Test wide string",
1.4008 + .average = 543.34343,
1.4009 + };
1.4010 +
1.4011 + ni.number = 58;
1.4012 +
1.4013 + int dynamic_array[ni.number];
1.4014 + dynamic_array[ni.number - 1] = 543;
1.4015 +
1.4016 + // work around unused variable warnings
1.4017 + return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
1.4018 + || dynamic_array[ni.number - 1] != 543);
1.4019 +
1.4020 + ;
1.4021 + return 0;
1.4022 +}
1.4023 +_ACEOF
1.4024 +for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
1.4025 +do
1.4026 + CC_FOR_BUILD="$ac_save_CC $ac_arg"
1.4027 + rm -f conftest.$ac_build_objext
1.4028 +if { (ac_try="$ac_build_compile"
1.4029 +case "(($ac_try" in
1.4030 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4031 + *) ac_try_echo=$ac_try;;
1.4032 +esac
1.4033 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4034 + (eval "$ac_build_compile") 2>conftest.er1
1.4035 + ac_status=$?
1.4036 + grep -v '^ *+' conftest.er1 >conftest.err
1.4037 + rm -f conftest.er1
1.4038 + cat conftest.err >&5
1.4039 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4040 + (exit $ac_status); } && {
1.4041 + test -z "$ac_c_werror_flag" ||
1.4042 + test ! -s conftest.err
1.4043 + } && test -s conftest.$ac_build_objext; then
1.4044 + ac_cv_build_prog_cc_stdc=$ac_arg
1.4045 +else
1.4046 + echo "$as_me: failed program was:" >&5
1.4047 +sed 's/^/| /' conftest.$ac_ext >&5
1.4048 +
1.4049 +
1.4050 +fi
1.4051 +
1.4052 +rm -f core conftest.err conftest.$ac_build_objext
1.4053 + test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
1.4054 +done
1.4055 +rm -f conftest.$ac_ext
1.4056 +CC_FOR_BUILD=$ac_save_CC
1.4057 +
1.4058 +fi
1.4059 +# AC_CACHE_VAL
1.4060 +case "x$ac_cv_build_prog_cc_stdc" in
1.4061 + x)
1.4062 + { echo "$as_me:$LINENO: result: none needed" >&5
1.4063 +echo "${ECHO_T}none needed" >&6; } ;;
1.4064 + xno)
1.4065 + { echo "$as_me:$LINENO: result: unsupported" >&5
1.4066 +echo "${ECHO_T}unsupported" >&6; } ;;
1.4067 + *)
1.4068 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
1.4069 + { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.4070 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.4071 +esac
1.4072 +if test "x$ac_cv_build_prog_cc_stdc" != xno; then
1.4073 + ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
1.4074 +else
1.4075 + { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
1.4076 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
1.4077 +if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.4078 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4079 +else
1.4080 + ac_cv_build_prog_cc_stdc=no
1.4081 +ac_save_CC=$CC_FOR_BUILD
1.4082 +cat >conftest.$ac_ext <<_ACEOF
1.4083 +/* confdefs.h. */
1.4084 +_ACEOF
1.4085 +cat confdefs.h >>conftest.$ac_ext
1.4086 +cat >>conftest.$ac_ext <<_ACEOF
1.4087 +/* end confdefs.h. */
1.4088 +#include <stdarg.h>
1.4089 +#include <stdio.h>
1.4090 +#include <sys/types.h>
1.4091 +#include <sys/stat.h>
1.4092 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.4093 +struct buf { int x; };
1.4094 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.4095 +static char *e (p, i)
1.4096 + char **p;
1.4097 + int i;
1.4098 +{
1.4099 + return p[i];
1.4100 +}
1.4101 +static char *f (char * (*g) (char **, int), char **p, ...)
1.4102 +{
1.4103 + char *s;
1.4104 + va_list v;
1.4105 + va_start (v,p);
1.4106 + s = g (p, va_arg (v,int));
1.4107 + va_end (v);
1.4108 + return s;
1.4109 +}
1.4110 +
1.4111 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.4112 + function prototypes and stuff, but not '\xHH' hex character constants.
1.4113 + These don't provoke an error unfortunately, instead are silently treated
1.4114 + as 'x'. The following induces an error, until -std is added to get
1.4115 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.4116 + array size at least. It's necessary to write '\x00'==0 to get something
1.4117 + that's true only with -std. */
1.4118 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.4119 +
1.4120 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.4121 + inside strings and character constants. */
1.4122 +#define FOO(x) 'x'
1.4123 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.4124 +
1.4125 +int test (int i, double x);
1.4126 +struct s1 {int (*f) (int a);};
1.4127 +struct s2 {int (*f) (double a);};
1.4128 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.4129 +int argc;
1.4130 +char **argv;
1.4131 +int
1.4132 +main ()
1.4133 +{
1.4134 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.4135 + ;
1.4136 + return 0;
1.4137 +}
1.4138 +_ACEOF
1.4139 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.4140 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.4141 +do
1.4142 + CC_FOR_BUILD="$ac_save_CC $ac_arg"
1.4143 + rm -f conftest.$ac_build_objext
1.4144 +if { (ac_try="$ac_build_compile"
1.4145 +case "(($ac_try" in
1.4146 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4147 + *) ac_try_echo=$ac_try;;
1.4148 +esac
1.4149 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4150 + (eval "$ac_build_compile") 2>conftest.er1
1.4151 + ac_status=$?
1.4152 + grep -v '^ *+' conftest.er1 >conftest.err
1.4153 + rm -f conftest.er1
1.4154 + cat conftest.err >&5
1.4155 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4156 + (exit $ac_status); } && {
1.4157 + test -z "$ac_c_werror_flag" ||
1.4158 + test ! -s conftest.err
1.4159 + } && test -s conftest.$ac_build_objext; then
1.4160 + ac_cv_build_prog_cc_stdc=$ac_arg
1.4161 +else
1.4162 + echo "$as_me: failed program was:" >&5
1.4163 +sed 's/^/| /' conftest.$ac_ext >&5
1.4164 +
1.4165 +
1.4166 +fi
1.4167 +
1.4168 +rm -f core conftest.err conftest.$ac_build_objext
1.4169 + test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
1.4170 +done
1.4171 +rm -f conftest.$ac_ext
1.4172 +CC_FOR_BUILD=$ac_save_CC
1.4173 +
1.4174 +fi
1.4175 +# AC_CACHE_VAL
1.4176 +case "x$ac_cv_build_prog_cc_stdc" in
1.4177 + x)
1.4178 + { echo "$as_me:$LINENO: result: none needed" >&5
1.4179 +echo "${ECHO_T}none needed" >&6; } ;;
1.4180 + xno)
1.4181 + { echo "$as_me:$LINENO: result: unsupported" >&5
1.4182 +echo "${ECHO_T}unsupported" >&6; } ;;
1.4183 + *)
1.4184 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
1.4185 + { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.4186 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.4187 +esac
1.4188 +if test "x$ac_cv_build_prog_cc_stdc" != xno; then
1.4189 + ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
1.4190 +else
1.4191 + ac_cv_build_prog_cc_stdc=no
1.4192 +fi
1.4193 +
1.4194 +
1.4195 +fi
1.4196 +
1.4197 + ;;
1.4198 +esac
1.4199 + { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
1.4200 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
1.4201 + if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.4202 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4203 +fi
1.4204 +
1.4205 + case $ac_cv_build_prog_cc_stdc in
1.4206 + no) { echo "$as_me:$LINENO: result: unsupported" >&5
1.4207 +echo "${ECHO_T}unsupported" >&6; } ;;
1.4208 + '') { echo "$as_me:$LINENO: result: none needed" >&5
1.4209 +echo "${ECHO_T}none needed" >&6; } ;;
1.4210 + *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.4211 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.4212 +esac
1.4213 +
1.4214 +
1.4215 +ac_ext=c
1.4216 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.4217 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.4218 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.4219 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.4220 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.4221 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.4222 +# On Suns, sometimes $CPP names a directory.
1.4223 +if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
1.4224 + CPP_FOR_BUILD=
1.4225 +fi
1.4226 +if test -z "$CPP_FOR_BUILD"; then
1.4227 + if test "${ac_cv_build_prog_CPP+set}" = set; then
1.4228 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4229 +else
1.4230 + # Double quotes because CPP needs to be expanded
1.4231 + for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
1.4232 + do
1.4233 + ac_preproc_ok=false
1.4234 +for ac_c_preproc_warn_flag in '' yes
1.4235 +do
1.4236 + # Use a header file that comes with gcc, so configuring glibc
1.4237 + # with a fresh cross-compiler works.
1.4238 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.4239 + # <limits.h> exists even on freestanding compilers.
1.4240 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.4241 + # not just through cpp. "Syntax error" is here to catch this case.
1.4242 + cat >conftest.$ac_ext <<_ACEOF
1.4243 +/* confdefs.h. */
1.4244 +_ACEOF
1.4245 +cat confdefs.h >>conftest.$ac_ext
1.4246 +cat >>conftest.$ac_ext <<_ACEOF
1.4247 +/* end confdefs.h. */
1.4248 +#ifdef __STDC__
1.4249 +# include <limits.h>
1.4250 +#else
1.4251 +# include <assert.h>
1.4252 +#endif
1.4253 + Syntax error
1.4254 +_ACEOF
1.4255 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.4256 +case "(($ac_try" in
1.4257 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4258 + *) ac_try_echo=$ac_try;;
1.4259 +esac
1.4260 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4261 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.4262 + ac_status=$?
1.4263 + grep -v '^ *+' conftest.er1 >conftest.err
1.4264 + rm -f conftest.er1
1.4265 + cat conftest.err >&5
1.4266 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4267 + (exit $ac_status); } >/dev/null && {
1.4268 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.4269 + test ! -s conftest.err
1.4270 + }; then
1.4271 + :
1.4272 +else
1.4273 + echo "$as_me: failed program was:" >&5
1.4274 +sed 's/^/| /' conftest.$ac_ext >&5
1.4275 +
1.4276 + # Broken: fails on valid input.
1.4277 +continue
1.4278 +fi
1.4279 +
1.4280 +rm -f conftest.err conftest.$ac_ext
1.4281 +
1.4282 + # OK, works on sane cases. Now check whether nonexistent headers
1.4283 + # can be detected and how.
1.4284 + cat >conftest.$ac_ext <<_ACEOF
1.4285 +/* confdefs.h. */
1.4286 +_ACEOF
1.4287 +cat confdefs.h >>conftest.$ac_ext
1.4288 +cat >>conftest.$ac_ext <<_ACEOF
1.4289 +/* end confdefs.h. */
1.4290 +#include <ac_nonexistent.h>
1.4291 +_ACEOF
1.4292 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.4293 +case "(($ac_try" in
1.4294 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4295 + *) ac_try_echo=$ac_try;;
1.4296 +esac
1.4297 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4298 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.4299 + ac_status=$?
1.4300 + grep -v '^ *+' conftest.er1 >conftest.err
1.4301 + rm -f conftest.er1
1.4302 + cat conftest.err >&5
1.4303 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4304 + (exit $ac_status); } >/dev/null && {
1.4305 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.4306 + test ! -s conftest.err
1.4307 + }; then
1.4308 + # Broken: success on invalid input.
1.4309 +continue
1.4310 +else
1.4311 + echo "$as_me: failed program was:" >&5
1.4312 +sed 's/^/| /' conftest.$ac_ext >&5
1.4313 +
1.4314 + # Passes both tests.
1.4315 +ac_preproc_ok=:
1.4316 +break
1.4317 +fi
1.4318 +
1.4319 +rm -f conftest.err conftest.$ac_ext
1.4320 +
1.4321 +done
1.4322 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.4323 +rm -f conftest.err conftest.$ac_ext
1.4324 +if $ac_preproc_ok; then
1.4325 + break
1.4326 +fi
1.4327 +
1.4328 + done
1.4329 + ac_cv_build_prog_CPP=$CPP_FOR_BUILD
1.4330 +
1.4331 +fi
1.4332 + CPP_FOR_BUILD=$ac_cv_build_prog_CPP
1.4333 +else
1.4334 + ac_cv_build_prog_CPP=$CPP_FOR_BUILD
1.4335 +fi
1.4336 +{ echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
1.4337 +echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
1.4338 +ac_preproc_ok=false
1.4339 +for ac_c_preproc_warn_flag in '' yes
1.4340 +do
1.4341 + # Use a header file that comes with gcc, so configuring glibc
1.4342 + # with a fresh cross-compiler works.
1.4343 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.4344 + # <limits.h> exists even on freestanding compilers.
1.4345 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.4346 + # not just through cpp. "Syntax error" is here to catch this case.
1.4347 + cat >conftest.$ac_ext <<_ACEOF
1.4348 +/* confdefs.h. */
1.4349 +_ACEOF
1.4350 +cat confdefs.h >>conftest.$ac_ext
1.4351 +cat >>conftest.$ac_ext <<_ACEOF
1.4352 +/* end confdefs.h. */
1.4353 +#ifdef __STDC__
1.4354 +# include <limits.h>
1.4355 +#else
1.4356 +# include <assert.h>
1.4357 +#endif
1.4358 + Syntax error
1.4359 +_ACEOF
1.4360 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.4361 +case "(($ac_try" in
1.4362 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4363 + *) ac_try_echo=$ac_try;;
1.4364 +esac
1.4365 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4366 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.4367 + ac_status=$?
1.4368 + grep -v '^ *+' conftest.er1 >conftest.err
1.4369 + rm -f conftest.er1
1.4370 + cat conftest.err >&5
1.4371 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4372 + (exit $ac_status); } >/dev/null && {
1.4373 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.4374 + test ! -s conftest.err
1.4375 + }; then
1.4376 + :
1.4377 +else
1.4378 + echo "$as_me: failed program was:" >&5
1.4379 +sed 's/^/| /' conftest.$ac_ext >&5
1.4380 +
1.4381 + # Broken: fails on valid input.
1.4382 +continue
1.4383 +fi
1.4384 +
1.4385 +rm -f conftest.err conftest.$ac_ext
1.4386 +
1.4387 + # OK, works on sane cases. Now check whether nonexistent headers
1.4388 + # can be detected and how.
1.4389 + cat >conftest.$ac_ext <<_ACEOF
1.4390 +/* confdefs.h. */
1.4391 +_ACEOF
1.4392 +cat confdefs.h >>conftest.$ac_ext
1.4393 +cat >>conftest.$ac_ext <<_ACEOF
1.4394 +/* end confdefs.h. */
1.4395 +#include <ac_nonexistent.h>
1.4396 +_ACEOF
1.4397 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.4398 +case "(($ac_try" in
1.4399 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4400 + *) ac_try_echo=$ac_try;;
1.4401 +esac
1.4402 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4403 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.4404 + ac_status=$?
1.4405 + grep -v '^ *+' conftest.er1 >conftest.err
1.4406 + rm -f conftest.er1
1.4407 + cat conftest.err >&5
1.4408 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4409 + (exit $ac_status); } >/dev/null && {
1.4410 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.4411 + test ! -s conftest.err
1.4412 + }; then
1.4413 + # Broken: success on invalid input.
1.4414 +continue
1.4415 +else
1.4416 + echo "$as_me: failed program was:" >&5
1.4417 +sed 's/^/| /' conftest.$ac_ext >&5
1.4418 +
1.4419 + # Passes both tests.
1.4420 +ac_preproc_ok=:
1.4421 +break
1.4422 +fi
1.4423 +
1.4424 +rm -f conftest.err conftest.$ac_ext
1.4425 +
1.4426 +done
1.4427 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.4428 +rm -f conftest.err conftest.$ac_ext
1.4429 +if $ac_preproc_ok; then
1.4430 + :
1.4431 +else
1.4432 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
1.4433 +See \`config.log' for more details." >&5
1.4434 +echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
1.4435 +See \`config.log' for more details." >&2;}
1.4436 + { (exit 1); exit 1; }; }
1.4437 +fi
1.4438 +
1.4439 +ac_ext=c
1.4440 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.4441 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.4442 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.4443 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.4444 +
1.4445 +
1.4446 +
1.4447 +
1.4448 +BUILD_EXEEXT=$ac_build_exeext
1.4449 +BUILD_OBJEXT=$ac_build_objext
1.4450 +
1.4451 +ac_ext=m
1.4452 +ac_cpp='$OBJCPP $CPPFLAGS'
1.4453 +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.4454 +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.4455 +ac_compiler_gnu=$ac_cv_objc_compiler_gnu
1.4456 +if test -n "$ac_tool_prefix"; then
1.4457 + for ac_prog in gcc objcc objc cc CC
1.4458 + do
1.4459 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.4460 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.4461 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.4462 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.4463 +if test "${ac_cv_prog_OBJC+set}" = set; then
1.4464 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4465 +else
1.4466 + if test -n "$OBJC"; then
1.4467 + ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
1.4468 +else
1.4469 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.4470 +for as_dir in $PATH
1.4471 +do
1.4472 + IFS=$as_save_IFS
1.4473 + test -z "$as_dir" && as_dir=.
1.4474 + for ac_exec_ext in '' $ac_executable_extensions; do
1.4475 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.4476 + ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
1.4477 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.4478 + break 2
1.4479 + fi
1.4480 +done
1.4481 +done
1.4482 +IFS=$as_save_IFS
1.4483 +
1.4484 +fi
1.4485 +fi
1.4486 +OBJC=$ac_cv_prog_OBJC
1.4487 +if test -n "$OBJC"; then
1.4488 + { echo "$as_me:$LINENO: result: $OBJC" >&5
1.4489 +echo "${ECHO_T}$OBJC" >&6; }
1.4490 +else
1.4491 + { echo "$as_me:$LINENO: result: no" >&5
1.4492 +echo "${ECHO_T}no" >&6; }
1.4493 +fi
1.4494 +
1.4495 +
1.4496 + test -n "$OBJC" && break
1.4497 + done
1.4498 +fi
1.4499 +if test -z "$OBJC"; then
1.4500 + ac_ct_OBJC=$OBJC
1.4501 + for ac_prog in gcc objcc objc cc CC
1.4502 +do
1.4503 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.4504 +set dummy $ac_prog; ac_word=$2
1.4505 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.4506 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.4507 +if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
1.4508 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4509 +else
1.4510 + if test -n "$ac_ct_OBJC"; then
1.4511 + ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
1.4512 +else
1.4513 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.4514 +for as_dir in $PATH
1.4515 +do
1.4516 + IFS=$as_save_IFS
1.4517 + test -z "$as_dir" && as_dir=.
1.4518 + for ac_exec_ext in '' $ac_executable_extensions; do
1.4519 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.4520 + ac_cv_prog_ac_ct_OBJC="$ac_prog"
1.4521 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.4522 + break 2
1.4523 + fi
1.4524 +done
1.4525 +done
1.4526 +IFS=$as_save_IFS
1.4527 +
1.4528 +fi
1.4529 +fi
1.4530 +ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
1.4531 +if test -n "$ac_ct_OBJC"; then
1.4532 + { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
1.4533 +echo "${ECHO_T}$ac_ct_OBJC" >&6; }
1.4534 +else
1.4535 + { echo "$as_me:$LINENO: result: no" >&5
1.4536 +echo "${ECHO_T}no" >&6; }
1.4537 +fi
1.4538 +
1.4539 +
1.4540 + test -n "$ac_ct_OBJC" && break
1.4541 +done
1.4542 +
1.4543 + if test "x$ac_ct_OBJC" = x; then
1.4544 + OBJC="gcc"
1.4545 + else
1.4546 + case $cross_compiling:$ac_tool_warned in
1.4547 +yes:)
1.4548 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.4549 +whose name does not start with the host triplet. If you think this
1.4550 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.4551 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.4552 +whose name does not start with the host triplet. If you think this
1.4553 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.4554 +ac_tool_warned=yes ;;
1.4555 +esac
1.4556 + OBJC=$ac_ct_OBJC
1.4557 + fi
1.4558 +fi
1.4559 +
1.4560 +# Provide some information about the compiler.
1.4561 +echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
1.4562 +ac_compiler=`set X $ac_compile; echo $2`
1.4563 +{ (ac_try="$ac_compiler --version >&5"
1.4564 +case "(($ac_try" in
1.4565 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4566 + *) ac_try_echo=$ac_try;;
1.4567 +esac
1.4568 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4569 + (eval "$ac_compiler --version >&5") 2>&5
1.4570 + ac_status=$?
1.4571 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4572 + (exit $ac_status); }
1.4573 +{ (ac_try="$ac_compiler -v >&5"
1.4574 +case "(($ac_try" in
1.4575 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4576 + *) ac_try_echo=$ac_try;;
1.4577 +esac
1.4578 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4579 + (eval "$ac_compiler -v >&5") 2>&5
1.4580 + ac_status=$?
1.4581 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4582 + (exit $ac_status); }
1.4583 +{ (ac_try="$ac_compiler -V >&5"
1.4584 +case "(($ac_try" in
1.4585 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4586 + *) ac_try_echo=$ac_try;;
1.4587 +esac
1.4588 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4589 + (eval "$ac_compiler -V >&5") 2>&5
1.4590 + ac_status=$?
1.4591 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4592 + (exit $ac_status); }
1.4593 +
1.4594 +{ echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
1.4595 +echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
1.4596 +if test "${ac_cv_objc_compiler_gnu+set}" = set; then
1.4597 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4598 +else
1.4599 + cat >conftest.$ac_ext <<_ACEOF
1.4600 +/* confdefs.h. */
1.4601 +_ACEOF
1.4602 +cat confdefs.h >>conftest.$ac_ext
1.4603 +cat >>conftest.$ac_ext <<_ACEOF
1.4604 +/* end confdefs.h. */
1.4605 +
1.4606 +int
1.4607 +main ()
1.4608 +{
1.4609 +#ifndef __GNUC__
1.4610 + choke me
1.4611 +#endif
1.4612 +
1.4613 + ;
1.4614 + return 0;
1.4615 +}
1.4616 +_ACEOF
1.4617 +rm -f conftest.$ac_objext
1.4618 +if { (ac_try="$ac_compile"
1.4619 +case "(($ac_try" in
1.4620 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4621 + *) ac_try_echo=$ac_try;;
1.4622 +esac
1.4623 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4624 + (eval "$ac_compile") 2>conftest.er1
1.4625 + ac_status=$?
1.4626 + grep -v '^ *+' conftest.er1 >conftest.err
1.4627 + rm -f conftest.er1
1.4628 + cat conftest.err >&5
1.4629 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4630 + (exit $ac_status); } && {
1.4631 + test -z "$ac_objc_werror_flag" ||
1.4632 + test ! -s conftest.err
1.4633 + } && test -s conftest.$ac_objext; then
1.4634 + ac_compiler_gnu=yes
1.4635 +else
1.4636 + echo "$as_me: failed program was:" >&5
1.4637 +sed 's/^/| /' conftest.$ac_ext >&5
1.4638 +
1.4639 + ac_compiler_gnu=no
1.4640 +fi
1.4641 +
1.4642 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.4643 +ac_cv_objc_compiler_gnu=$ac_compiler_gnu
1.4644 +
1.4645 +fi
1.4646 +{ echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
1.4647 +echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
1.4648 +GOBJC=`test $ac_compiler_gnu = yes && echo yes`
1.4649 +ac_test_OBJCFLAGS=${OBJCFLAGS+set}
1.4650 +ac_save_OBJCFLAGS=$OBJCFLAGS
1.4651 +{ echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
1.4652 +echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
1.4653 +if test "${ac_cv_prog_objc_g+set}" = set; then
1.4654 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4655 +else
1.4656 + ac_save_objc_werror_flag=$ac_objc_werror_flag
1.4657 + ac_objc_werror_flag=yes
1.4658 + ac_cv_prog_objc_g=no
1.4659 + OBJCFLAGS="-g"
1.4660 + cat >conftest.$ac_ext <<_ACEOF
1.4661 +/* confdefs.h. */
1.4662 +_ACEOF
1.4663 +cat confdefs.h >>conftest.$ac_ext
1.4664 +cat >>conftest.$ac_ext <<_ACEOF
1.4665 +/* end confdefs.h. */
1.4666 +
1.4667 +int
1.4668 +main ()
1.4669 +{
1.4670 +
1.4671 + ;
1.4672 + return 0;
1.4673 +}
1.4674 +_ACEOF
1.4675 +rm -f conftest.$ac_objext
1.4676 +if { (ac_try="$ac_compile"
1.4677 +case "(($ac_try" in
1.4678 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4679 + *) ac_try_echo=$ac_try;;
1.4680 +esac
1.4681 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4682 + (eval "$ac_compile") 2>conftest.er1
1.4683 + ac_status=$?
1.4684 + grep -v '^ *+' conftest.er1 >conftest.err
1.4685 + rm -f conftest.er1
1.4686 + cat conftest.err >&5
1.4687 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4688 + (exit $ac_status); } && {
1.4689 + test -z "$ac_objc_werror_flag" ||
1.4690 + test ! -s conftest.err
1.4691 + } && test -s conftest.$ac_objext; then
1.4692 + ac_cv_prog_objc_g=yes
1.4693 +else
1.4694 + echo "$as_me: failed program was:" >&5
1.4695 +sed 's/^/| /' conftest.$ac_ext >&5
1.4696 +
1.4697 + OBJCFLAGS=""
1.4698 + cat >conftest.$ac_ext <<_ACEOF
1.4699 +/* confdefs.h. */
1.4700 +_ACEOF
1.4701 +cat confdefs.h >>conftest.$ac_ext
1.4702 +cat >>conftest.$ac_ext <<_ACEOF
1.4703 +/* end confdefs.h. */
1.4704 +
1.4705 +int
1.4706 +main ()
1.4707 +{
1.4708 +
1.4709 + ;
1.4710 + return 0;
1.4711 +}
1.4712 +_ACEOF
1.4713 +rm -f conftest.$ac_objext
1.4714 +if { (ac_try="$ac_compile"
1.4715 +case "(($ac_try" in
1.4716 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4717 + *) ac_try_echo=$ac_try;;
1.4718 +esac
1.4719 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4720 + (eval "$ac_compile") 2>conftest.er1
1.4721 + ac_status=$?
1.4722 + grep -v '^ *+' conftest.er1 >conftest.err
1.4723 + rm -f conftest.er1
1.4724 + cat conftest.err >&5
1.4725 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4726 + (exit $ac_status); } && {
1.4727 + test -z "$ac_objc_werror_flag" ||
1.4728 + test ! -s conftest.err
1.4729 + } && test -s conftest.$ac_objext; then
1.4730 + :
1.4731 +else
1.4732 + echo "$as_me: failed program was:" >&5
1.4733 +sed 's/^/| /' conftest.$ac_ext >&5
1.4734 +
1.4735 + ac_objc_werror_flag=$ac_save_objc_werror_flag
1.4736 + OBJCFLAGS="-g"
1.4737 + cat >conftest.$ac_ext <<_ACEOF
1.4738 +/* confdefs.h. */
1.4739 +_ACEOF
1.4740 +cat confdefs.h >>conftest.$ac_ext
1.4741 +cat >>conftest.$ac_ext <<_ACEOF
1.4742 +/* end confdefs.h. */
1.4743 +
1.4744 +int
1.4745 +main ()
1.4746 +{
1.4747 +
1.4748 + ;
1.4749 + return 0;
1.4750 +}
1.4751 +_ACEOF
1.4752 +rm -f conftest.$ac_objext
1.4753 +if { (ac_try="$ac_compile"
1.4754 +case "(($ac_try" in
1.4755 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4756 + *) ac_try_echo=$ac_try;;
1.4757 +esac
1.4758 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4759 + (eval "$ac_compile") 2>conftest.er1
1.4760 + ac_status=$?
1.4761 + grep -v '^ *+' conftest.er1 >conftest.err
1.4762 + rm -f conftest.er1
1.4763 + cat conftest.err >&5
1.4764 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4765 + (exit $ac_status); } && {
1.4766 + test -z "$ac_objc_werror_flag" ||
1.4767 + test ! -s conftest.err
1.4768 + } && test -s conftest.$ac_objext; then
1.4769 + ac_cv_prog_objc_g=yes
1.4770 +else
1.4771 + echo "$as_me: failed program was:" >&5
1.4772 +sed 's/^/| /' conftest.$ac_ext >&5
1.4773 +
1.4774 +
1.4775 +fi
1.4776 +
1.4777 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.4778 +fi
1.4779 +
1.4780 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.4781 +fi
1.4782 +
1.4783 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.4784 + ac_objc_werror_flag=$ac_save_objc_werror_flag
1.4785 +fi
1.4786 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
1.4787 +echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
1.4788 +if test "$ac_test_OBJCFLAGS" = set; then
1.4789 + OBJCFLAGS=$ac_save_OBJCFLAGS
1.4790 +elif test $ac_cv_prog_objc_g = yes; then
1.4791 + if test "$GOBJC" = yes; then
1.4792 + OBJCFLAGS="-g -O2"
1.4793 + else
1.4794 + OBJCFLAGS="-g"
1.4795 + fi
1.4796 +else
1.4797 + if test "$GOBJC" = yes; then
1.4798 + OBJCFLAGS="-O2"
1.4799 + else
1.4800 + OBJCFLAGS=
1.4801 + fi
1.4802 +fi
1.4803 +ac_ext=c
1.4804 +ac_cpp='$CPP $CPPFLAGS'
1.4805 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.4806 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.4807 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.4808 +
1.4809 +{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
1.4810 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
1.4811 +if test "${ac_cv_path_SED+set}" = set; then
1.4812 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4813 +else
1.4814 + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
1.4815 + for ac_i in 1 2 3 4 5 6 7; do
1.4816 + ac_script="$ac_script$as_nl$ac_script"
1.4817 + done
1.4818 + echo "$ac_script" | sed 99q >conftest.sed
1.4819 + $as_unset ac_script || ac_script=
1.4820 + # Extract the first word of "sed gsed" to use in msg output
1.4821 +if test -z "$SED"; then
1.4822 +set dummy sed gsed; ac_prog_name=$2
1.4823 +if test "${ac_cv_path_SED+set}" = set; then
1.4824 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4825 +else
1.4826 + ac_path_SED_found=false
1.4827 +# Loop through the user's path and test for each of PROGNAME-LIST
1.4828 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.4829 +for as_dir in $PATH
1.4830 +do
1.4831 + IFS=$as_save_IFS
1.4832 + test -z "$as_dir" && as_dir=.
1.4833 + for ac_prog in sed gsed; do
1.4834 + for ac_exec_ext in '' $ac_executable_extensions; do
1.4835 + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.4836 + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
1.4837 + # Check for GNU ac_path_SED and select it if it is found.
1.4838 + # Check for GNU $ac_path_SED
1.4839 +case `"$ac_path_SED" --version 2>&1` in
1.4840 +*GNU*)
1.4841 + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
1.4842 +*)
1.4843 + ac_count=0
1.4844 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
1.4845 + while :
1.4846 + do
1.4847 + cat "conftest.in" "conftest.in" >"conftest.tmp"
1.4848 + mv "conftest.tmp" "conftest.in"
1.4849 + cp "conftest.in" "conftest.nl"
1.4850 + echo '' >> "conftest.nl"
1.4851 + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
1.4852 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.4853 + ac_count=`expr $ac_count + 1`
1.4854 + if test $ac_count -gt ${ac_path_SED_max-0}; then
1.4855 + # Best one so far, save it but keep looking for a better one
1.4856 + ac_cv_path_SED="$ac_path_SED"
1.4857 + ac_path_SED_max=$ac_count
1.4858 + fi
1.4859 + # 10*(2^10) chars as input seems more than enough
1.4860 + test $ac_count -gt 10 && break
1.4861 + done
1.4862 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1.4863 +esac
1.4864 +
1.4865 +
1.4866 + $ac_path_SED_found && break 3
1.4867 + done
1.4868 +done
1.4869 +
1.4870 +done
1.4871 +IFS=$as_save_IFS
1.4872 +
1.4873 +
1.4874 +fi
1.4875 +
1.4876 +SED="$ac_cv_path_SED"
1.4877 +if test -z "$SED"; then
1.4878 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
1.4879 +echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
1.4880 + { (exit 1); exit 1; }; }
1.4881 +fi
1.4882 +
1.4883 +else
1.4884 + ac_cv_path_SED=$SED
1.4885 +fi
1.4886 +
1.4887 +fi
1.4888 +{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
1.4889 +echo "${ECHO_T}$ac_cv_path_SED" >&6; }
1.4890 + SED="$ac_cv_path_SED"
1.4891 + rm -f conftest.sed
1.4892 +
1.4893 +# By default we simply use the C compiler to build assembly code.
1.4894 +
1.4895 +test "${CCAS+set}" = set || CCAS=$CC
1.4896 +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
1.4897 +
1.4898 +
1.4899 +
1.4900 +if test -n "$ac_tool_prefix"; then
1.4901 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1.4902 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.4903 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.4904 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.4905 +if test "${ac_cv_prog_RANLIB+set}" = set; then
1.4906 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4907 +else
1.4908 + if test -n "$RANLIB"; then
1.4909 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.4910 +else
1.4911 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.4912 +for as_dir in $PATH
1.4913 +do
1.4914 + IFS=$as_save_IFS
1.4915 + test -z "$as_dir" && as_dir=.
1.4916 + for ac_exec_ext in '' $ac_executable_extensions; do
1.4917 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.4918 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.4919 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.4920 + break 2
1.4921 + fi
1.4922 +done
1.4923 +done
1.4924 +IFS=$as_save_IFS
1.4925 +
1.4926 +fi
1.4927 +fi
1.4928 +RANLIB=$ac_cv_prog_RANLIB
1.4929 +if test -n "$RANLIB"; then
1.4930 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
1.4931 +echo "${ECHO_T}$RANLIB" >&6; }
1.4932 +else
1.4933 + { echo "$as_me:$LINENO: result: no" >&5
1.4934 +echo "${ECHO_T}no" >&6; }
1.4935 +fi
1.4936 +
1.4937 +
1.4938 +fi
1.4939 +if test -z "$ac_cv_prog_RANLIB"; then
1.4940 + ac_ct_RANLIB=$RANLIB
1.4941 + # Extract the first word of "ranlib", so it can be a program name with args.
1.4942 +set dummy ranlib; ac_word=$2
1.4943 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.4944 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.4945 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1.4946 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4947 +else
1.4948 + if test -n "$ac_ct_RANLIB"; then
1.4949 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.4950 +else
1.4951 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.4952 +for as_dir in $PATH
1.4953 +do
1.4954 + IFS=$as_save_IFS
1.4955 + test -z "$as_dir" && as_dir=.
1.4956 + for ac_exec_ext in '' $ac_executable_extensions; do
1.4957 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.4958 + ac_cv_prog_ac_ct_RANLIB="ranlib"
1.4959 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.4960 + break 2
1.4961 + fi
1.4962 +done
1.4963 +done
1.4964 +IFS=$as_save_IFS
1.4965 +
1.4966 +fi
1.4967 +fi
1.4968 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1.4969 +if test -n "$ac_ct_RANLIB"; then
1.4970 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1.4971 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
1.4972 +else
1.4973 + { echo "$as_me:$LINENO: result: no" >&5
1.4974 +echo "${ECHO_T}no" >&6; }
1.4975 +fi
1.4976 +
1.4977 + if test "x$ac_ct_RANLIB" = x; then
1.4978 + RANLIB=":"
1.4979 + else
1.4980 + case $cross_compiling:$ac_tool_warned in
1.4981 +yes:)
1.4982 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.4983 +whose name does not start with the host triplet. If you think this
1.4984 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.4985 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.4986 +whose name does not start with the host triplet. If you think this
1.4987 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.4988 +ac_tool_warned=yes ;;
1.4989 +esac
1.4990 + RANLIB=$ac_ct_RANLIB
1.4991 + fi
1.4992 +else
1.4993 + RANLIB="$ac_cv_prog_RANLIB"
1.4994 +fi
1.4995 +
1.4996 +
1.4997 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
1.4998 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
1.4999 +if test "${ac_cv_path_GREP+set}" = set; then
1.5000 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5001 +else
1.5002 + # Extract the first word of "grep ggrep" to use in msg output
1.5003 +if test -z "$GREP"; then
1.5004 +set dummy grep ggrep; ac_prog_name=$2
1.5005 +if test "${ac_cv_path_GREP+set}" = set; then
1.5006 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5007 +else
1.5008 + ac_path_GREP_found=false
1.5009 +# Loop through the user's path and test for each of PROGNAME-LIST
1.5010 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.5011 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1.5012 +do
1.5013 + IFS=$as_save_IFS
1.5014 + test -z "$as_dir" && as_dir=.
1.5015 + for ac_prog in grep ggrep; do
1.5016 + for ac_exec_ext in '' $ac_executable_extensions; do
1.5017 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.5018 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
1.5019 + # Check for GNU ac_path_GREP and select it if it is found.
1.5020 + # Check for GNU $ac_path_GREP
1.5021 +case `"$ac_path_GREP" --version 2>&1` in
1.5022 +*GNU*)
1.5023 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
1.5024 +*)
1.5025 + ac_count=0
1.5026 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
1.5027 + while :
1.5028 + do
1.5029 + cat "conftest.in" "conftest.in" >"conftest.tmp"
1.5030 + mv "conftest.tmp" "conftest.in"
1.5031 + cp "conftest.in" "conftest.nl"
1.5032 + echo 'GREP' >> "conftest.nl"
1.5033 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
1.5034 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.5035 + ac_count=`expr $ac_count + 1`
1.5036 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
1.5037 + # Best one so far, save it but keep looking for a better one
1.5038 + ac_cv_path_GREP="$ac_path_GREP"
1.5039 + ac_path_GREP_max=$ac_count
1.5040 + fi
1.5041 + # 10*(2^10) chars as input seems more than enough
1.5042 + test $ac_count -gt 10 && break
1.5043 + done
1.5044 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1.5045 +esac
1.5046 +
1.5047 +
1.5048 + $ac_path_GREP_found && break 3
1.5049 + done
1.5050 +done
1.5051 +
1.5052 +done
1.5053 +IFS=$as_save_IFS
1.5054 +
1.5055 +
1.5056 +fi
1.5057 +
1.5058 +GREP="$ac_cv_path_GREP"
1.5059 +if test -z "$GREP"; then
1.5060 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
1.5061 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
1.5062 + { (exit 1); exit 1; }; }
1.5063 +fi
1.5064 +
1.5065 +else
1.5066 + ac_cv_path_GREP=$GREP
1.5067 +fi
1.5068 +
1.5069 +
1.5070 +fi
1.5071 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
1.5072 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
1.5073 + GREP="$ac_cv_path_GREP"
1.5074 +
1.5075 +
1.5076 +{ echo "$as_me:$LINENO: checking for egrep" >&5
1.5077 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
1.5078 +if test "${ac_cv_path_EGREP+set}" = set; then
1.5079 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5080 +else
1.5081 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1.5082 + then ac_cv_path_EGREP="$GREP -E"
1.5083 + else
1.5084 + # Extract the first word of "egrep" to use in msg output
1.5085 +if test -z "$EGREP"; then
1.5086 +set dummy egrep; ac_prog_name=$2
1.5087 +if test "${ac_cv_path_EGREP+set}" = set; then
1.5088 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5089 +else
1.5090 + ac_path_EGREP_found=false
1.5091 +# Loop through the user's path and test for each of PROGNAME-LIST
1.5092 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.5093 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1.5094 +do
1.5095 + IFS=$as_save_IFS
1.5096 + test -z "$as_dir" && as_dir=.
1.5097 + for ac_prog in egrep; do
1.5098 + for ac_exec_ext in '' $ac_executable_extensions; do
1.5099 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.5100 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
1.5101 + # Check for GNU ac_path_EGREP and select it if it is found.
1.5102 + # Check for GNU $ac_path_EGREP
1.5103 +case `"$ac_path_EGREP" --version 2>&1` in
1.5104 +*GNU*)
1.5105 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
1.5106 +*)
1.5107 + ac_count=0
1.5108 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
1.5109 + while :
1.5110 + do
1.5111 + cat "conftest.in" "conftest.in" >"conftest.tmp"
1.5112 + mv "conftest.tmp" "conftest.in"
1.5113 + cp "conftest.in" "conftest.nl"
1.5114 + echo 'EGREP' >> "conftest.nl"
1.5115 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
1.5116 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.5117 + ac_count=`expr $ac_count + 1`
1.5118 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
1.5119 + # Best one so far, save it but keep looking for a better one
1.5120 + ac_cv_path_EGREP="$ac_path_EGREP"
1.5121 + ac_path_EGREP_max=$ac_count
1.5122 + fi
1.5123 + # 10*(2^10) chars as input seems more than enough
1.5124 + test $ac_count -gt 10 && break
1.5125 + done
1.5126 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1.5127 +esac
1.5128 +
1.5129 +
1.5130 + $ac_path_EGREP_found && break 3
1.5131 + done
1.5132 +done
1.5133 +
1.5134 +done
1.5135 +IFS=$as_save_IFS
1.5136 +
1.5137 +
1.5138 +fi
1.5139 +
1.5140 +EGREP="$ac_cv_path_EGREP"
1.5141 +if test -z "$EGREP"; then
1.5142 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
1.5143 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
1.5144 + { (exit 1); exit 1; }; }
1.5145 +fi
1.5146 +
1.5147 +else
1.5148 + ac_cv_path_EGREP=$EGREP
1.5149 +fi
1.5150 +
1.5151 +
1.5152 + fi
1.5153 +fi
1.5154 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
1.5155 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
1.5156 + EGREP="$ac_cv_path_EGREP"
1.5157 +
1.5158 +
1.5159 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1.5160 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.5161 +if test "${ac_cv_header_stdc+set}" = set; then
1.5162 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5163 +else
1.5164 + cat >conftest.$ac_ext <<_ACEOF
1.5165 +/* confdefs.h. */
1.5166 +_ACEOF
1.5167 +cat confdefs.h >>conftest.$ac_ext
1.5168 +cat >>conftest.$ac_ext <<_ACEOF
1.5169 +/* end confdefs.h. */
1.5170 +#include <stdlib.h>
1.5171 +#include <stdarg.h>
1.5172 +#include <string.h>
1.5173 +#include <float.h>
1.5174 +
1.5175 +int
1.5176 +main ()
1.5177 +{
1.5178 +
1.5179 + ;
1.5180 + return 0;
1.5181 +}
1.5182 +_ACEOF
1.5183 +rm -f conftest.$ac_objext
1.5184 +if { (ac_try="$ac_compile"
1.5185 +case "(($ac_try" in
1.5186 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5187 + *) ac_try_echo=$ac_try;;
1.5188 +esac
1.5189 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5190 + (eval "$ac_compile") 2>conftest.er1
1.5191 + ac_status=$?
1.5192 + grep -v '^ *+' conftest.er1 >conftest.err
1.5193 + rm -f conftest.er1
1.5194 + cat conftest.err >&5
1.5195 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5196 + (exit $ac_status); } && {
1.5197 + test -z "$ac_c_werror_flag" ||
1.5198 + test ! -s conftest.err
1.5199 + } && test -s conftest.$ac_objext; then
1.5200 + ac_cv_header_stdc=yes
1.5201 +else
1.5202 + echo "$as_me: failed program was:" >&5
1.5203 +sed 's/^/| /' conftest.$ac_ext >&5
1.5204 +
1.5205 + ac_cv_header_stdc=no
1.5206 +fi
1.5207 +
1.5208 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5209 +
1.5210 +if test $ac_cv_header_stdc = yes; then
1.5211 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.5212 + cat >conftest.$ac_ext <<_ACEOF
1.5213 +/* confdefs.h. */
1.5214 +_ACEOF
1.5215 +cat confdefs.h >>conftest.$ac_ext
1.5216 +cat >>conftest.$ac_ext <<_ACEOF
1.5217 +/* end confdefs.h. */
1.5218 +#include <string.h>
1.5219 +
1.5220 +_ACEOF
1.5221 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.5222 + $EGREP "memchr" >/dev/null 2>&1; then
1.5223 + :
1.5224 +else
1.5225 + ac_cv_header_stdc=no
1.5226 +fi
1.5227 +rm -f conftest*
1.5228 +
1.5229 +fi
1.5230 +
1.5231 +if test $ac_cv_header_stdc = yes; then
1.5232 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.5233 + cat >conftest.$ac_ext <<_ACEOF
1.5234 +/* confdefs.h. */
1.5235 +_ACEOF
1.5236 +cat confdefs.h >>conftest.$ac_ext
1.5237 +cat >>conftest.$ac_ext <<_ACEOF
1.5238 +/* end confdefs.h. */
1.5239 +#include <stdlib.h>
1.5240 +
1.5241 +_ACEOF
1.5242 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.5243 + $EGREP "free" >/dev/null 2>&1; then
1.5244 + :
1.5245 +else
1.5246 + ac_cv_header_stdc=no
1.5247 +fi
1.5248 +rm -f conftest*
1.5249 +
1.5250 +fi
1.5251 +
1.5252 +if test $ac_cv_header_stdc = yes; then
1.5253 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.5254 + if test "$cross_compiling" = yes; then
1.5255 + :
1.5256 +else
1.5257 + cat >conftest.$ac_ext <<_ACEOF
1.5258 +/* confdefs.h. */
1.5259 +_ACEOF
1.5260 +cat confdefs.h >>conftest.$ac_ext
1.5261 +cat >>conftest.$ac_ext <<_ACEOF
1.5262 +/* end confdefs.h. */
1.5263 +#include <ctype.h>
1.5264 +#include <stdlib.h>
1.5265 +#if ((' ' & 0x0FF) == 0x020)
1.5266 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1.5267 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1.5268 +#else
1.5269 +# define ISLOWER(c) \
1.5270 + (('a' <= (c) && (c) <= 'i') \
1.5271 + || ('j' <= (c) && (c) <= 'r') \
1.5272 + || ('s' <= (c) && (c) <= 'z'))
1.5273 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1.5274 +#endif
1.5275 +
1.5276 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.5277 +int
1.5278 +main ()
1.5279 +{
1.5280 + int i;
1.5281 + for (i = 0; i < 256; i++)
1.5282 + if (XOR (islower (i), ISLOWER (i))
1.5283 + || toupper (i) != TOUPPER (i))
1.5284 + return 2;
1.5285 + return 0;
1.5286 +}
1.5287 +_ACEOF
1.5288 +rm -f conftest$ac_exeext
1.5289 +if { (ac_try="$ac_link"
1.5290 +case "(($ac_try" in
1.5291 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5292 + *) ac_try_echo=$ac_try;;
1.5293 +esac
1.5294 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5295 + (eval "$ac_link") 2>&5
1.5296 + ac_status=$?
1.5297 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5298 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.5299 + { (case "(($ac_try" in
1.5300 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5301 + *) ac_try_echo=$ac_try;;
1.5302 +esac
1.5303 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5304 + (eval "$ac_try") 2>&5
1.5305 + ac_status=$?
1.5306 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5307 + (exit $ac_status); }; }; then
1.5308 + :
1.5309 +else
1.5310 + echo "$as_me: program exited with status $ac_status" >&5
1.5311 +echo "$as_me: failed program was:" >&5
1.5312 +sed 's/^/| /' conftest.$ac_ext >&5
1.5313 +
1.5314 +( exit $ac_status )
1.5315 +ac_cv_header_stdc=no
1.5316 +fi
1.5317 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.5318 +fi
1.5319 +
1.5320 +
1.5321 +fi
1.5322 +fi
1.5323 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1.5324 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.5325 +if test $ac_cv_header_stdc = yes; then
1.5326 +
1.5327 +cat >>confdefs.h <<\_ACEOF
1.5328 +#define STDC_HEADERS 1
1.5329 +_ACEOF
1.5330 +
1.5331 +fi
1.5332 +
1.5333 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.5334 +
1.5335 +
1.5336 +
1.5337 +
1.5338 +
1.5339 +
1.5340 +
1.5341 +
1.5342 +
1.5343 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1.5344 + inttypes.h stdint.h unistd.h
1.5345 +do
1.5346 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.5347 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
1.5348 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
1.5349 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.5350 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5351 +else
1.5352 + cat >conftest.$ac_ext <<_ACEOF
1.5353 +/* confdefs.h. */
1.5354 +_ACEOF
1.5355 +cat confdefs.h >>conftest.$ac_ext
1.5356 +cat >>conftest.$ac_ext <<_ACEOF
1.5357 +/* end confdefs.h. */
1.5358 +$ac_includes_default
1.5359 +
1.5360 +#include <$ac_header>
1.5361 +_ACEOF
1.5362 +rm -f conftest.$ac_objext
1.5363 +if { (ac_try="$ac_compile"
1.5364 +case "(($ac_try" in
1.5365 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5366 + *) ac_try_echo=$ac_try;;
1.5367 +esac
1.5368 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5369 + (eval "$ac_compile") 2>conftest.er1
1.5370 + ac_status=$?
1.5371 + grep -v '^ *+' conftest.er1 >conftest.err
1.5372 + rm -f conftest.er1
1.5373 + cat conftest.err >&5
1.5374 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5375 + (exit $ac_status); } && {
1.5376 + test -z "$ac_c_werror_flag" ||
1.5377 + test ! -s conftest.err
1.5378 + } && test -s conftest.$ac_objext; then
1.5379 + eval "$as_ac_Header=yes"
1.5380 +else
1.5381 + echo "$as_me: failed program was:" >&5
1.5382 +sed 's/^/| /' conftest.$ac_ext >&5
1.5383 +
1.5384 + eval "$as_ac_Header=no"
1.5385 +fi
1.5386 +
1.5387 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5388 +fi
1.5389 +ac_res=`eval echo '${'$as_ac_Header'}'`
1.5390 + { echo "$as_me:$LINENO: result: $ac_res" >&5
1.5391 +echo "${ECHO_T}$ac_res" >&6; }
1.5392 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.5393 + cat >>confdefs.h <<_ACEOF
1.5394 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.5395 +_ACEOF
1.5396 +
1.5397 +fi
1.5398 +
1.5399 +done
1.5400 +
1.5401 +
1.5402 +{ echo "$as_me:$LINENO: checking for void *" >&5
1.5403 +echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
1.5404 +if test "${ac_cv_type_void_p+set}" = set; then
1.5405 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5406 +else
1.5407 + cat >conftest.$ac_ext <<_ACEOF
1.5408 +/* confdefs.h. */
1.5409 +_ACEOF
1.5410 +cat confdefs.h >>conftest.$ac_ext
1.5411 +cat >>conftest.$ac_ext <<_ACEOF
1.5412 +/* end confdefs.h. */
1.5413 +$ac_includes_default
1.5414 +typedef void * ac__type_new_;
1.5415 +int
1.5416 +main ()
1.5417 +{
1.5418 +if ((ac__type_new_ *) 0)
1.5419 + return 0;
1.5420 +if (sizeof (ac__type_new_))
1.5421 + return 0;
1.5422 + ;
1.5423 + return 0;
1.5424 +}
1.5425 +_ACEOF
1.5426 +rm -f conftest.$ac_objext
1.5427 +if { (ac_try="$ac_compile"
1.5428 +case "(($ac_try" in
1.5429 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5430 + *) ac_try_echo=$ac_try;;
1.5431 +esac
1.5432 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5433 + (eval "$ac_compile") 2>conftest.er1
1.5434 + ac_status=$?
1.5435 + grep -v '^ *+' conftest.er1 >conftest.err
1.5436 + rm -f conftest.er1
1.5437 + cat conftest.err >&5
1.5438 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5439 + (exit $ac_status); } && {
1.5440 + test -z "$ac_c_werror_flag" ||
1.5441 + test ! -s conftest.err
1.5442 + } && test -s conftest.$ac_objext; then
1.5443 + ac_cv_type_void_p=yes
1.5444 +else
1.5445 + echo "$as_me: failed program was:" >&5
1.5446 +sed 's/^/| /' conftest.$ac_ext >&5
1.5447 +
1.5448 + ac_cv_type_void_p=no
1.5449 +fi
1.5450 +
1.5451 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5452 +fi
1.5453 +{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
1.5454 +echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
1.5455 +
1.5456 +# The cast to long int works around a bug in the HP C Compiler
1.5457 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
1.5458 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
1.5459 +# This bug is HP SR number 8606223364.
1.5460 +{ echo "$as_me:$LINENO: checking size of void *" >&5
1.5461 +echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
1.5462 +if test "${ac_cv_sizeof_void_p+set}" = set; then
1.5463 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5464 +else
1.5465 + if test "$cross_compiling" = yes; then
1.5466 + # Depending upon the size, compute the lo and hi bounds.
1.5467 +cat >conftest.$ac_ext <<_ACEOF
1.5468 +/* confdefs.h. */
1.5469 +_ACEOF
1.5470 +cat confdefs.h >>conftest.$ac_ext
1.5471 +cat >>conftest.$ac_ext <<_ACEOF
1.5472 +/* end confdefs.h. */
1.5473 +$ac_includes_default
1.5474 + typedef void * ac__type_sizeof_;
1.5475 +int
1.5476 +main ()
1.5477 +{
1.5478 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.5479 +test_array [0] = 0
1.5480 +
1.5481 + ;
1.5482 + return 0;
1.5483 +}
1.5484 +_ACEOF
1.5485 +rm -f conftest.$ac_objext
1.5486 +if { (ac_try="$ac_compile"
1.5487 +case "(($ac_try" in
1.5488 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5489 + *) ac_try_echo=$ac_try;;
1.5490 +esac
1.5491 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5492 + (eval "$ac_compile") 2>conftest.er1
1.5493 + ac_status=$?
1.5494 + grep -v '^ *+' conftest.er1 >conftest.err
1.5495 + rm -f conftest.er1
1.5496 + cat conftest.err >&5
1.5497 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5498 + (exit $ac_status); } && {
1.5499 + test -z "$ac_c_werror_flag" ||
1.5500 + test ! -s conftest.err
1.5501 + } && test -s conftest.$ac_objext; then
1.5502 + ac_lo=0 ac_mid=0
1.5503 + while :; do
1.5504 + cat >conftest.$ac_ext <<_ACEOF
1.5505 +/* confdefs.h. */
1.5506 +_ACEOF
1.5507 +cat confdefs.h >>conftest.$ac_ext
1.5508 +cat >>conftest.$ac_ext <<_ACEOF
1.5509 +/* end confdefs.h. */
1.5510 +$ac_includes_default
1.5511 + typedef void * ac__type_sizeof_;
1.5512 +int
1.5513 +main ()
1.5514 +{
1.5515 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.5516 +test_array [0] = 0
1.5517 +
1.5518 + ;
1.5519 + return 0;
1.5520 +}
1.5521 +_ACEOF
1.5522 +rm -f conftest.$ac_objext
1.5523 +if { (ac_try="$ac_compile"
1.5524 +case "(($ac_try" in
1.5525 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5526 + *) ac_try_echo=$ac_try;;
1.5527 +esac
1.5528 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5529 + (eval "$ac_compile") 2>conftest.er1
1.5530 + ac_status=$?
1.5531 + grep -v '^ *+' conftest.er1 >conftest.err
1.5532 + rm -f conftest.er1
1.5533 + cat conftest.err >&5
1.5534 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5535 + (exit $ac_status); } && {
1.5536 + test -z "$ac_c_werror_flag" ||
1.5537 + test ! -s conftest.err
1.5538 + } && test -s conftest.$ac_objext; then
1.5539 + ac_hi=$ac_mid; break
1.5540 +else
1.5541 + echo "$as_me: failed program was:" >&5
1.5542 +sed 's/^/| /' conftest.$ac_ext >&5
1.5543 +
1.5544 + ac_lo=`expr $ac_mid + 1`
1.5545 + if test $ac_lo -le $ac_mid; then
1.5546 + ac_lo= ac_hi=
1.5547 + break
1.5548 + fi
1.5549 + ac_mid=`expr 2 '*' $ac_mid + 1`
1.5550 +fi
1.5551 +
1.5552 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5553 + done
1.5554 +else
1.5555 + echo "$as_me: failed program was:" >&5
1.5556 +sed 's/^/| /' conftest.$ac_ext >&5
1.5557 +
1.5558 + cat >conftest.$ac_ext <<_ACEOF
1.5559 +/* confdefs.h. */
1.5560 +_ACEOF
1.5561 +cat confdefs.h >>conftest.$ac_ext
1.5562 +cat >>conftest.$ac_ext <<_ACEOF
1.5563 +/* end confdefs.h. */
1.5564 +$ac_includes_default
1.5565 + typedef void * ac__type_sizeof_;
1.5566 +int
1.5567 +main ()
1.5568 +{
1.5569 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.5570 +test_array [0] = 0
1.5571 +
1.5572 + ;
1.5573 + return 0;
1.5574 +}
1.5575 +_ACEOF
1.5576 +rm -f conftest.$ac_objext
1.5577 +if { (ac_try="$ac_compile"
1.5578 +case "(($ac_try" in
1.5579 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5580 + *) ac_try_echo=$ac_try;;
1.5581 +esac
1.5582 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5583 + (eval "$ac_compile") 2>conftest.er1
1.5584 + ac_status=$?
1.5585 + grep -v '^ *+' conftest.er1 >conftest.err
1.5586 + rm -f conftest.er1
1.5587 + cat conftest.err >&5
1.5588 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5589 + (exit $ac_status); } && {
1.5590 + test -z "$ac_c_werror_flag" ||
1.5591 + test ! -s conftest.err
1.5592 + } && test -s conftest.$ac_objext; then
1.5593 + ac_hi=-1 ac_mid=-1
1.5594 + while :; do
1.5595 + cat >conftest.$ac_ext <<_ACEOF
1.5596 +/* confdefs.h. */
1.5597 +_ACEOF
1.5598 +cat confdefs.h >>conftest.$ac_ext
1.5599 +cat >>conftest.$ac_ext <<_ACEOF
1.5600 +/* end confdefs.h. */
1.5601 +$ac_includes_default
1.5602 + typedef void * ac__type_sizeof_;
1.5603 +int
1.5604 +main ()
1.5605 +{
1.5606 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.5607 +test_array [0] = 0
1.5608 +
1.5609 + ;
1.5610 + return 0;
1.5611 +}
1.5612 +_ACEOF
1.5613 +rm -f conftest.$ac_objext
1.5614 +if { (ac_try="$ac_compile"
1.5615 +case "(($ac_try" in
1.5616 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5617 + *) ac_try_echo=$ac_try;;
1.5618 +esac
1.5619 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5620 + (eval "$ac_compile") 2>conftest.er1
1.5621 + ac_status=$?
1.5622 + grep -v '^ *+' conftest.er1 >conftest.err
1.5623 + rm -f conftest.er1
1.5624 + cat conftest.err >&5
1.5625 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5626 + (exit $ac_status); } && {
1.5627 + test -z "$ac_c_werror_flag" ||
1.5628 + test ! -s conftest.err
1.5629 + } && test -s conftest.$ac_objext; then
1.5630 + ac_lo=$ac_mid; break
1.5631 +else
1.5632 + echo "$as_me: failed program was:" >&5
1.5633 +sed 's/^/| /' conftest.$ac_ext >&5
1.5634 +
1.5635 + ac_hi=`expr '(' $ac_mid ')' - 1`
1.5636 + if test $ac_mid -le $ac_hi; then
1.5637 + ac_lo= ac_hi=
1.5638 + break
1.5639 + fi
1.5640 + ac_mid=`expr 2 '*' $ac_mid`
1.5641 +fi
1.5642 +
1.5643 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5644 + done
1.5645 +else
1.5646 + echo "$as_me: failed program was:" >&5
1.5647 +sed 's/^/| /' conftest.$ac_ext >&5
1.5648 +
1.5649 + ac_lo= ac_hi=
1.5650 +fi
1.5651 +
1.5652 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5653 +fi
1.5654 +
1.5655 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5656 +# Binary search between lo and hi bounds.
1.5657 +while test "x$ac_lo" != "x$ac_hi"; do
1.5658 + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
1.5659 + cat >conftest.$ac_ext <<_ACEOF
1.5660 +/* confdefs.h. */
1.5661 +_ACEOF
1.5662 +cat confdefs.h >>conftest.$ac_ext
1.5663 +cat >>conftest.$ac_ext <<_ACEOF
1.5664 +/* end confdefs.h. */
1.5665 +$ac_includes_default
1.5666 + typedef void * ac__type_sizeof_;
1.5667 +int
1.5668 +main ()
1.5669 +{
1.5670 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.5671 +test_array [0] = 0
1.5672 +
1.5673 + ;
1.5674 + return 0;
1.5675 +}
1.5676 +_ACEOF
1.5677 +rm -f conftest.$ac_objext
1.5678 +if { (ac_try="$ac_compile"
1.5679 +case "(($ac_try" in
1.5680 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5681 + *) ac_try_echo=$ac_try;;
1.5682 +esac
1.5683 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5684 + (eval "$ac_compile") 2>conftest.er1
1.5685 + ac_status=$?
1.5686 + grep -v '^ *+' conftest.er1 >conftest.err
1.5687 + rm -f conftest.er1
1.5688 + cat conftest.err >&5
1.5689 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5690 + (exit $ac_status); } && {
1.5691 + test -z "$ac_c_werror_flag" ||
1.5692 + test ! -s conftest.err
1.5693 + } && test -s conftest.$ac_objext; then
1.5694 + ac_hi=$ac_mid
1.5695 +else
1.5696 + echo "$as_me: failed program was:" >&5
1.5697 +sed 's/^/| /' conftest.$ac_ext >&5
1.5698 +
1.5699 + ac_lo=`expr '(' $ac_mid ')' + 1`
1.5700 +fi
1.5701 +
1.5702 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5703 +done
1.5704 +case $ac_lo in
1.5705 +?*) ac_cv_sizeof_void_p=$ac_lo;;
1.5706 +'') if test "$ac_cv_type_void_p" = yes; then
1.5707 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
1.5708 +See \`config.log' for more details." >&5
1.5709 +echo "$as_me: error: cannot compute sizeof (void *)
1.5710 +See \`config.log' for more details." >&2;}
1.5711 + { (exit 77); exit 77; }; }
1.5712 + else
1.5713 + ac_cv_sizeof_void_p=0
1.5714 + fi ;;
1.5715 +esac
1.5716 +else
1.5717 + cat >conftest.$ac_ext <<_ACEOF
1.5718 +/* confdefs.h. */
1.5719 +_ACEOF
1.5720 +cat confdefs.h >>conftest.$ac_ext
1.5721 +cat >>conftest.$ac_ext <<_ACEOF
1.5722 +/* end confdefs.h. */
1.5723 +$ac_includes_default
1.5724 + typedef void * ac__type_sizeof_;
1.5725 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.5726 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.5727 +#include <stdio.h>
1.5728 +#include <stdlib.h>
1.5729 +int
1.5730 +main ()
1.5731 +{
1.5732 +
1.5733 + FILE *f = fopen ("conftest.val", "w");
1.5734 + if (! f)
1.5735 + return 1;
1.5736 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.5737 + {
1.5738 + long int i = longval ();
1.5739 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
1.5740 + return 1;
1.5741 + fprintf (f, "%ld\n", i);
1.5742 + }
1.5743 + else
1.5744 + {
1.5745 + unsigned long int i = ulongval ();
1.5746 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
1.5747 + return 1;
1.5748 + fprintf (f, "%lu\n", i);
1.5749 + }
1.5750 + return ferror (f) || fclose (f) != 0;
1.5751 +
1.5752 + ;
1.5753 + return 0;
1.5754 +}
1.5755 +_ACEOF
1.5756 +rm -f conftest$ac_exeext
1.5757 +if { (ac_try="$ac_link"
1.5758 +case "(($ac_try" in
1.5759 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5760 + *) ac_try_echo=$ac_try;;
1.5761 +esac
1.5762 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5763 + (eval "$ac_link") 2>&5
1.5764 + ac_status=$?
1.5765 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5766 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.5767 + { (case "(($ac_try" in
1.5768 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5769 + *) ac_try_echo=$ac_try;;
1.5770 +esac
1.5771 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5772 + (eval "$ac_try") 2>&5
1.5773 + ac_status=$?
1.5774 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5775 + (exit $ac_status); }; }; then
1.5776 + ac_cv_sizeof_void_p=`cat conftest.val`
1.5777 +else
1.5778 + echo "$as_me: program exited with status $ac_status" >&5
1.5779 +echo "$as_me: failed program was:" >&5
1.5780 +sed 's/^/| /' conftest.$ac_ext >&5
1.5781 +
1.5782 +( exit $ac_status )
1.5783 +if test "$ac_cv_type_void_p" = yes; then
1.5784 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
1.5785 +See \`config.log' for more details." >&5
1.5786 +echo "$as_me: error: cannot compute sizeof (void *)
1.5787 +See \`config.log' for more details." >&2;}
1.5788 + { (exit 77); exit 77; }; }
1.5789 + else
1.5790 + ac_cv_sizeof_void_p=0
1.5791 + fi
1.5792 +fi
1.5793 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.5794 +fi
1.5795 +rm -f conftest.val
1.5796 +fi
1.5797 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
1.5798 +echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
1.5799 +
1.5800 +
1.5801 +
1.5802 +cat >>confdefs.h <<_ACEOF
1.5803 +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.5804 +_ACEOF
1.5805 +
1.5806 +
1.5807 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1.5808 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.5809 +if test "${ac_cv_header_stdc+set}" = set; then
1.5810 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5811 +else
1.5812 + cat >conftest.$ac_ext <<_ACEOF
1.5813 +/* confdefs.h. */
1.5814 +_ACEOF
1.5815 +cat confdefs.h >>conftest.$ac_ext
1.5816 +cat >>conftest.$ac_ext <<_ACEOF
1.5817 +/* end confdefs.h. */
1.5818 +#include <stdlib.h>
1.5819 +#include <stdarg.h>
1.5820 +#include <string.h>
1.5821 +#include <float.h>
1.5822 +
1.5823 +int
1.5824 +main ()
1.5825 +{
1.5826 +
1.5827 + ;
1.5828 + return 0;
1.5829 +}
1.5830 +_ACEOF
1.5831 +rm -f conftest.$ac_objext
1.5832 +if { (ac_try="$ac_compile"
1.5833 +case "(($ac_try" in
1.5834 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5835 + *) ac_try_echo=$ac_try;;
1.5836 +esac
1.5837 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5838 + (eval "$ac_compile") 2>conftest.er1
1.5839 + ac_status=$?
1.5840 + grep -v '^ *+' conftest.er1 >conftest.err
1.5841 + rm -f conftest.er1
1.5842 + cat conftest.err >&5
1.5843 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5844 + (exit $ac_status); } && {
1.5845 + test -z "$ac_c_werror_flag" ||
1.5846 + test ! -s conftest.err
1.5847 + } && test -s conftest.$ac_objext; then
1.5848 + ac_cv_header_stdc=yes
1.5849 +else
1.5850 + echo "$as_me: failed program was:" >&5
1.5851 +sed 's/^/| /' conftest.$ac_ext >&5
1.5852 +
1.5853 + ac_cv_header_stdc=no
1.5854 +fi
1.5855 +
1.5856 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5857 +
1.5858 +if test $ac_cv_header_stdc = yes; then
1.5859 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.5860 + cat >conftest.$ac_ext <<_ACEOF
1.5861 +/* confdefs.h. */
1.5862 +_ACEOF
1.5863 +cat confdefs.h >>conftest.$ac_ext
1.5864 +cat >>conftest.$ac_ext <<_ACEOF
1.5865 +/* end confdefs.h. */
1.5866 +#include <string.h>
1.5867 +
1.5868 +_ACEOF
1.5869 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.5870 + $EGREP "memchr" >/dev/null 2>&1; then
1.5871 + :
1.5872 +else
1.5873 + ac_cv_header_stdc=no
1.5874 +fi
1.5875 +rm -f conftest*
1.5876 +
1.5877 +fi
1.5878 +
1.5879 +if test $ac_cv_header_stdc = yes; then
1.5880 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.5881 + cat >conftest.$ac_ext <<_ACEOF
1.5882 +/* confdefs.h. */
1.5883 +_ACEOF
1.5884 +cat confdefs.h >>conftest.$ac_ext
1.5885 +cat >>conftest.$ac_ext <<_ACEOF
1.5886 +/* end confdefs.h. */
1.5887 +#include <stdlib.h>
1.5888 +
1.5889 +_ACEOF
1.5890 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.5891 + $EGREP "free" >/dev/null 2>&1; then
1.5892 + :
1.5893 +else
1.5894 + ac_cv_header_stdc=no
1.5895 +fi
1.5896 +rm -f conftest*
1.5897 +
1.5898 +fi
1.5899 +
1.5900 +if test $ac_cv_header_stdc = yes; then
1.5901 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.5902 + if test "$cross_compiling" = yes; then
1.5903 + :
1.5904 +else
1.5905 + cat >conftest.$ac_ext <<_ACEOF
1.5906 +/* confdefs.h. */
1.5907 +_ACEOF
1.5908 +cat confdefs.h >>conftest.$ac_ext
1.5909 +cat >>conftest.$ac_ext <<_ACEOF
1.5910 +/* end confdefs.h. */
1.5911 +#include <ctype.h>
1.5912 +#include <stdlib.h>
1.5913 +#if ((' ' & 0x0FF) == 0x020)
1.5914 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1.5915 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1.5916 +#else
1.5917 +# define ISLOWER(c) \
1.5918 + (('a' <= (c) && (c) <= 'i') \
1.5919 + || ('j' <= (c) && (c) <= 'r') \
1.5920 + || ('s' <= (c) && (c) <= 'z'))
1.5921 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1.5922 +#endif
1.5923 +
1.5924 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.5925 +int
1.5926 +main ()
1.5927 +{
1.5928 + int i;
1.5929 + for (i = 0; i < 256; i++)
1.5930 + if (XOR (islower (i), ISLOWER (i))
1.5931 + || toupper (i) != TOUPPER (i))
1.5932 + return 2;
1.5933 + return 0;
1.5934 +}
1.5935 +_ACEOF
1.5936 +rm -f conftest$ac_exeext
1.5937 +if { (ac_try="$ac_link"
1.5938 +case "(($ac_try" in
1.5939 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5940 + *) ac_try_echo=$ac_try;;
1.5941 +esac
1.5942 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5943 + (eval "$ac_link") 2>&5
1.5944 + ac_status=$?
1.5945 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5946 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.5947 + { (case "(($ac_try" in
1.5948 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5949 + *) ac_try_echo=$ac_try;;
1.5950 +esac
1.5951 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5952 + (eval "$ac_try") 2>&5
1.5953 + ac_status=$?
1.5954 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5955 + (exit $ac_status); }; }; then
1.5956 + :
1.5957 +else
1.5958 + echo "$as_me: program exited with status $ac_status" >&5
1.5959 +echo "$as_me: failed program was:" >&5
1.5960 +sed 's/^/| /' conftest.$ac_ext >&5
1.5961 +
1.5962 +( exit $ac_status )
1.5963 +ac_cv_header_stdc=no
1.5964 +fi
1.5965 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.5966 +fi
1.5967 +
1.5968 +
1.5969 +fi
1.5970 +fi
1.5971 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1.5972 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.5973 +if test $ac_cv_header_stdc = yes; then
1.5974 +
1.5975 +cat >>confdefs.h <<\_ACEOF
1.5976 +#define STDC_HEADERS 1
1.5977 +_ACEOF
1.5978 +
1.5979 +fi
1.5980 +
1.5981 +
1.5982 +
1.5983 +depcc="$OBJC" am_compiler_list='gcc3 gcc'
1.5984 +
1.5985 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.5986 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.5987 +if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
1.5988 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5989 +else
1.5990 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.5991 + # We make a subdir and do the tests there. Otherwise we can end up
1.5992 + # making bogus files that we don't know about and never remove. For
1.5993 + # instance it was reported that on HP-UX the gcc test will end up
1.5994 + # making a dummy file named `D' -- because `-MD' means `put the output
1.5995 + # in D'.
1.5996 + mkdir conftest.dir
1.5997 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.5998 + # using a relative directory.
1.5999 + cp "$am_depcomp" conftest.dir
1.6000 + cd conftest.dir
1.6001 + # We will build objects and dependencies in a subdirectory because
1.6002 + # it helps to detect inapplicable dependency modes. For instance
1.6003 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.6004 + # side effect of compilation, but ICC will put the dependencies in
1.6005 + # the current directory while Tru64 will put them in the object
1.6006 + # directory.
1.6007 + mkdir sub
1.6008 +
1.6009 + am_cv_OBJC_dependencies_compiler_type=none
1.6010 + if test "$am_compiler_list" = ""; then
1.6011 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.6012 + fi
1.6013 + for depmode in $am_compiler_list; do
1.6014 + # Setup a source with many dependencies, because some compilers
1.6015 + # like to wrap large dependency lists on column 80 (with \), and
1.6016 + # we should not choose a depcomp mode which is confused by this.
1.6017 + #
1.6018 + # We need to recreate these files for each test, as the compiler may
1.6019 + # overwrite some of them when testing with obscure command lines.
1.6020 + # This happens at least with the AIX C compiler.
1.6021 + : > sub/conftest.c
1.6022 + for i in 1 2 3 4 5 6; do
1.6023 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.6024 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.6025 + # Solaris 8's {/usr,}/bin/sh.
1.6026 + touch sub/conftst$i.h
1.6027 + done
1.6028 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.6029 +
1.6030 + case $depmode in
1.6031 + nosideeffect)
1.6032 + # after this tag, mechanisms are not by side-effect, so they'll
1.6033 + # only be used when explicitly requested
1.6034 + if test "x$enable_dependency_tracking" = xyes; then
1.6035 + continue
1.6036 + else
1.6037 + break
1.6038 + fi
1.6039 + ;;
1.6040 + none) break ;;
1.6041 + esac
1.6042 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.6043 + # mode. It turns out that the SunPro C++ compiler does not properly
1.6044 + # handle `-M -o', and we need to detect this.
1.6045 + if depmode=$depmode \
1.6046 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.6047 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.6048 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.6049 + >/dev/null 2>conftest.err &&
1.6050 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.6051 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.6052 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.6053 + # icc doesn't choke on unknown options, it will just issue warnings
1.6054 + # or remarks (even with -Werror). So we grep stderr for any message
1.6055 + # that says an option was ignored or not supported.
1.6056 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.6057 + # icc: Command line warning: ignoring option '-M'; no argument required
1.6058 + # The diagnosis changed in icc 8.0:
1.6059 + # icc: Command line remark: option '-MP' not supported
1.6060 + if (grep 'ignoring option' conftest.err ||
1.6061 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.6062 + am_cv_OBJC_dependencies_compiler_type=$depmode
1.6063 + break
1.6064 + fi
1.6065 + fi
1.6066 + done
1.6067 +
1.6068 + cd ..
1.6069 + rm -rf conftest.dir
1.6070 +else
1.6071 + am_cv_OBJC_dependencies_compiler_type=none
1.6072 +fi
1.6073 +
1.6074 +fi
1.6075 +{ echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
1.6076 +echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
1.6077 +OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
1.6078 +
1.6079 +
1.6080 +
1.6081 +if
1.6082 + test "x$enable_dependency_tracking" != xno \
1.6083 + && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
1.6084 + am__fastdepOBJC_TRUE=
1.6085 + am__fastdepOBJC_FALSE='#'
1.6086 +else
1.6087 + am__fastdepOBJC_TRUE='#'
1.6088 + am__fastdepOBJC_FALSE=
1.6089 +fi
1.6090 +
1.6091 +
1.6092 +
1.6093 +# Extract the first word of "pod2man", so it can be a program name with args.
1.6094 +set dummy pod2man; ac_word=$2
1.6095 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6096 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6097 +if test "${ac_cv_path_POD2MAN+set}" = set; then
1.6098 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.6099 +else
1.6100 + case $POD2MAN in
1.6101 + [\\/]* | ?:[\\/]*)
1.6102 + ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
1.6103 + ;;
1.6104 + *)
1.6105 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6106 +for as_dir in $PATH
1.6107 +do
1.6108 + IFS=$as_save_IFS
1.6109 + test -z "$as_dir" && as_dir=.
1.6110 + for ac_exec_ext in '' $ac_executable_extensions; do
1.6111 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6112 + ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
1.6113 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6114 + break 2
1.6115 + fi
1.6116 +done
1.6117 +done
1.6118 +IFS=$as_save_IFS
1.6119 +
1.6120 + ;;
1.6121 +esac
1.6122 +fi
1.6123 +POD2MAN=$ac_cv_path_POD2MAN
1.6124 +if test -n "$POD2MAN"; then
1.6125 + { echo "$as_me:$LINENO: result: $POD2MAN" >&5
1.6126 +echo "${ECHO_T}$POD2MAN" >&6; }
1.6127 +else
1.6128 + { echo "$as_me:$LINENO: result: no" >&5
1.6129 +echo "${ECHO_T}no" >&6; }
1.6130 +fi
1.6131 +
1.6132 +
1.6133 +# Extract the first word of "pod2html", so it can be a program name with args.
1.6134 +set dummy pod2html; ac_word=$2
1.6135 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6136 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6137 +if test "${ac_cv_path_POD2HTML+set}" = set; then
1.6138 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.6139 +else
1.6140 + case $POD2HTML in
1.6141 + [\\/]* | ?:[\\/]*)
1.6142 + ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
1.6143 + ;;
1.6144 + *)
1.6145 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6146 +for as_dir in $PATH
1.6147 +do
1.6148 + IFS=$as_save_IFS
1.6149 + test -z "$as_dir" && as_dir=.
1.6150 + for ac_exec_ext in '' $ac_executable_extensions; do
1.6151 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6152 + ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
1.6153 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6154 + break 2
1.6155 + fi
1.6156 +done
1.6157 +done
1.6158 +IFS=$as_save_IFS
1.6159 +
1.6160 + ;;
1.6161 +esac
1.6162 +fi
1.6163 +POD2HTML=$ac_cv_path_POD2HTML
1.6164 +if test -n "$POD2HTML"; then
1.6165 + { echo "$as_me:$LINENO: result: $POD2HTML" >&5
1.6166 +echo "${ECHO_T}$POD2HTML" >&6; }
1.6167 +else
1.6168 + { echo "$as_me:$LINENO: result: no" >&5
1.6169 +echo "${ECHO_T}no" >&6; }
1.6170 +fi
1.6171 +
1.6172 +
1.6173 +
1.6174 +
1.6175 +cat >>confdefs.h <<_ACEOF
1.6176 +#define BUILD_SED_PROG "${SED}"
1.6177 +_ACEOF
1.6178 +
1.6179 +
1.6180 +cat >>confdefs.h <<_ACEOF
1.6181 +#define BUILD_CPP_PROG "${CPP}"
1.6182 +_ACEOF
1.6183 +
1.6184 +
1.6185 +
1.6186 +# Check whether --enable-strict-warn was given.
1.6187 +if test "${enable_strict_warn+set}" = set; then
1.6188 + enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
1.6189 + enable_strictwarn=yes
1.6190 + fi
1.6191 +fi
1.6192 +
1.6193 +# Check whether --enable-translator was given.
1.6194 +if test "${enable_translator+set}" = set; then
1.6195 + enableval=$enable_translator; true
1.6196 +else
1.6197 + enable_translator=yes
1.6198 +fi
1.6199 +
1.6200 +# Check whether --enable-optimized was given.
1.6201 +if test "${enable_optimized+set}" = set; then
1.6202 + enableval=$enable_optimized; true
1.6203 +else
1.6204 + enable_optimized=yes
1.6205 +fi
1.6206 +
1.6207 +# Check whether --enable-shared was given.
1.6208 +if test "${enable_shared+set}" = set; then
1.6209 + enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
1.6210 +else
1.6211 + enable_shared=cond
1.6212 +fi
1.6213 +
1.6214 +# Check whether --enable-profiled was given.
1.6215 +if test "${enable_profiled+set}" = set; then
1.6216 + enableval=$enable_profiled; if test "$enableval" == "yes"; then
1.6217 + enable_profiled=yes;
1.6218 + fi
1.6219 +fi
1.6220 +
1.6221 +# Check whether --enable-trace was given.
1.6222 +if test "${enable_trace+set}" = set; then
1.6223 + enableval=$enable_trace; if test "$enableval" == "yes"; then
1.6224 +
1.6225 +cat >>confdefs.h <<\_ACEOF
1.6226 +#define ENABLE_TRACE_IO 1
1.6227 +_ACEOF
1.6228 +
1.6229 + fi
1.6230 +fi
1.6231 +
1.6232 +# Check whether --enable-watch was given.
1.6233 +if test "${enable_watch+set}" = set; then
1.6234 + enableval=$enable_watch; if test "$enableval" == "yes"; then
1.6235 +
1.6236 +cat >>confdefs.h <<\_ACEOF
1.6237 +#define ENABLE_WATCH 1
1.6238 +_ACEOF
1.6239 +
1.6240 + fi
1.6241 +fi
1.6242 +
1.6243 +# Check whether --enable-sh4stats was given.
1.6244 +if test "${enable_sh4stats+set}" = set; then
1.6245 + enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
1.6246 +
1.6247 +cat >>confdefs.h <<\_ACEOF
1.6248 +#define ENABLE_SH4STATS 1
1.6249 +_ACEOF
1.6250 +
1.6251 + fi
1.6252 +fi
1.6253 +
1.6254 +
1.6255 +# Check whether --with-osmesa was given.
1.6256 +if test "${with_osmesa+set}" = set; then
1.6257 + withval=$with_osmesa;
1.6258 +else
1.6259 + with_osmesa=no
1.6260 +fi
1.6261 +
1.6262 +
1.6263 +# Check whether --with-gtk was given.
1.6264 +if test "${with_gtk+set}" = set; then
1.6265 + withval=$with_gtk; with_gtk=yes
1.6266 +else
1.6267 + with_gtk=x11
1.6268 +fi
1.6269 +
1.6270 +
1.6271 +# Check whether --with-esd was given.
1.6272 +if test "${with_esd+set}" = set; then
1.6273 + withval=$with_esd;
1.6274 +fi
1.6275 +
1.6276 +
1.6277 +# Check whether --with-pulse was given.
1.6278 +if test "${with_pulse+set}" = set; then
1.6279 + withval=$with_pulse;
1.6280 +fi
1.6281 +
1.6282 +
1.6283 +# Check whether --with-sdl was given.
1.6284 +if test "${with_sdl+set}" = set; then
1.6285 + withval=$with_sdl;
1.6286 +fi
1.6287 +
1.6288 +
1.6289 +
1.6290 +# Check whether --with-sysroot was given.
1.6291 +if test "${with_sysroot+set}" = set; then
1.6292 + withval=$with_sysroot;
1.6293 + if test -d "$with_sysroot/lib/pkgconfig"; then
1.6294 + LDFLAGS="$LDFLAGS -L$with_sysroot/lib"
1.6295 + CPPFLAGS="$CPPFLAGS -I$with_sysroot/include"
1.6296 + BUILD_PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
1.6297 + TARGET_PKG_CONFIG_LIBDIR="$with_sysroot/lib/pkgconfig"
1.6298 + PKG_CONFIG_LIBDIR="$TARGET_PKG_CONFIG_LIBDIR"
1.6299 + export PKG_CONFIG_LIBDIR;
1.6300 + else
1.6301 + { { echo "$as_me:$LINENO: error: pkg-config directory $with_sysroot/lib/pkgconfig not found, when using --with-sysroot=$with_sysroot option
1.6302 +See \`config.log' for more details." >&5
1.6303 +echo "$as_me: error: pkg-config directory $with_sysroot/lib/pkgconfig not found, when using --with-sysroot=$with_sysroot option
1.6304 +See \`config.log' for more details." >&2;}
1.6305 + { (exit 1); exit 1; }; }
1.6306 + fi
1.6307 +
1.6308 +fi
1.6309 +
1.6310 +
1.6311 +
1.6312
1.6313
1.6314 # Check whether --with-android was given.
1.6315 @@ -2748,7 +8989,6 @@
1.6316 CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
1.6317 LD="$ANDROID_NDK_BIN/${host_alias}-ld"
1.6318 AR="$ANDROID_NDK_BIN/${host_alias}-ar"
1.6319 - GDB="$ANDROID_NDK_BIN/${host_alias}-gdb"
1.6320 RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
1.6321 STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
1.6322 OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
1.6323 @@ -2763,7 +9003,6 @@
1.6324
1.6325
1.6326
1.6327 -
1.6328 ANDROID_BUILD=yes
1.6329 cross_compiling=yes
1.6330 fi
1.6331 @@ -2781,6234 +9020,11 @@
1.6332
1.6333
1.6334
1.6335 -DEPDIR="${am__leading_dot}deps"
1.6336 -
1.6337 -ac_config_commands="$ac_config_commands depfiles"
1.6338 -
1.6339 -
1.6340 -am_make=${MAKE-make}
1.6341 -cat > confinc << 'END'
1.6342 -am__doit:
1.6343 - @echo done
1.6344 -.PHONY: am__doit
1.6345 -END
1.6346 -# If we don't find an include directive, just comment out the code.
1.6347 -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1.6348 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
1.6349 -am__include="#"
1.6350 -am__quote=
1.6351 -_am_result=none
1.6352 -# First try GNU make style include.
1.6353 -echo "include confinc" > confmf
1.6354 -# We grep out `Entering directory' and `Leaving directory'
1.6355 -# messages which can occur if `w' ends up in MAKEFLAGS.
1.6356 -# In particular we don't look at `^make:' because GNU make might
1.6357 -# be invoked under some other name (usually "gmake"), in which
1.6358 -# case it prints its new name instead of `make'.
1.6359 -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1.6360 - am__include=include
1.6361 - am__quote=
1.6362 - _am_result=GNU
1.6363 -fi
1.6364 -# Now try BSD make style include.
1.6365 -if test "$am__include" = "#"; then
1.6366 - echo '.include "confinc"' > confmf
1.6367 - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1.6368 - am__include=.include
1.6369 - am__quote="\""
1.6370 - _am_result=BSD
1.6371 - fi
1.6372 -fi
1.6373 -
1.6374 -
1.6375 -{ echo "$as_me:$LINENO: result: $_am_result" >&5
1.6376 -echo "${ECHO_T}$_am_result" >&6; }
1.6377 -rm -f confinc confmf
1.6378 -
1.6379 -# Check whether --enable-dependency-tracking was given.
1.6380 -if test "${enable_dependency_tracking+set}" = set; then
1.6381 - enableval=$enable_dependency_tracking;
1.6382 -fi
1.6383 -
1.6384 -if test "x$enable_dependency_tracking" != xno; then
1.6385 - am_depcomp="$ac_aux_dir/depcomp"
1.6386 - AMDEPBACKSLASH='\'
1.6387 -fi
1.6388 -
1.6389 -
1.6390 -if test "x$enable_dependency_tracking" != xno; then
1.6391 - AMDEP_TRUE=
1.6392 - AMDEP_FALSE='#'
1.6393 -else
1.6394 - AMDEP_TRUE='#'
1.6395 - AMDEP_FALSE=
1.6396 -fi
1.6397 -
1.6398 -
1.6399 -
1.6400 -ac_ext=c
1.6401 -ac_cpp='$CPP $CPPFLAGS'
1.6402 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.6403 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.6404 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.6405 -if test -n "$ac_tool_prefix"; then
1.6406 - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.6407 -set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.6408 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6409 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6410 -if test "${ac_cv_prog_CC+set}" = set; then
1.6411 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6412 -else
1.6413 - if test -n "$CC"; then
1.6414 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.6415 -else
1.6416 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6417 -for as_dir in $PATH
1.6418 -do
1.6419 - IFS=$as_save_IFS
1.6420 - test -z "$as_dir" && as_dir=.
1.6421 - for ac_exec_ext in '' $ac_executable_extensions; do
1.6422 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6423 - ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.6424 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6425 - break 2
1.6426 - fi
1.6427 -done
1.6428 -done
1.6429 -IFS=$as_save_IFS
1.6430 -
1.6431 -fi
1.6432 -fi
1.6433 -CC=$ac_cv_prog_CC
1.6434 -if test -n "$CC"; then
1.6435 - { echo "$as_me:$LINENO: result: $CC" >&5
1.6436 -echo "${ECHO_T}$CC" >&6; }
1.6437 -else
1.6438 - { echo "$as_me:$LINENO: result: no" >&5
1.6439 -echo "${ECHO_T}no" >&6; }
1.6440 -fi
1.6441 -
1.6442 -
1.6443 -fi
1.6444 -if test -z "$ac_cv_prog_CC"; then
1.6445 - ac_ct_CC=$CC
1.6446 - # Extract the first word of "gcc", so it can be a program name with args.
1.6447 -set dummy gcc; ac_word=$2
1.6448 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6449 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6450 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.6451 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6452 -else
1.6453 - if test -n "$ac_ct_CC"; then
1.6454 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.6455 -else
1.6456 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6457 -for as_dir in $PATH
1.6458 -do
1.6459 - IFS=$as_save_IFS
1.6460 - test -z "$as_dir" && as_dir=.
1.6461 - for ac_exec_ext in '' $ac_executable_extensions; do
1.6462 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6463 - ac_cv_prog_ac_ct_CC="gcc"
1.6464 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6465 - break 2
1.6466 - fi
1.6467 -done
1.6468 -done
1.6469 -IFS=$as_save_IFS
1.6470 -
1.6471 -fi
1.6472 -fi
1.6473 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.6474 -if test -n "$ac_ct_CC"; then
1.6475 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.6476 -echo "${ECHO_T}$ac_ct_CC" >&6; }
1.6477 -else
1.6478 - { echo "$as_me:$LINENO: result: no" >&5
1.6479 -echo "${ECHO_T}no" >&6; }
1.6480 -fi
1.6481 -
1.6482 - if test "x$ac_ct_CC" = x; then
1.6483 - CC=""
1.6484 - else
1.6485 - case $cross_compiling:$ac_tool_warned in
1.6486 -yes:)
1.6487 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.6488 -whose name does not start with the host triplet. If you think this
1.6489 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.6490 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.6491 -whose name does not start with the host triplet. If you think this
1.6492 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.6493 -ac_tool_warned=yes ;;
1.6494 -esac
1.6495 - CC=$ac_ct_CC
1.6496 - fi
1.6497 -else
1.6498 - CC="$ac_cv_prog_CC"
1.6499 -fi
1.6500 -
1.6501 -if test -z "$CC"; then
1.6502 - if test -n "$ac_tool_prefix"; then
1.6503 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.6504 -set dummy ${ac_tool_prefix}cc; ac_word=$2
1.6505 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6506 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6507 -if test "${ac_cv_prog_CC+set}" = set; then
1.6508 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6509 -else
1.6510 - if test -n "$CC"; then
1.6511 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.6512 -else
1.6513 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6514 -for as_dir in $PATH
1.6515 -do
1.6516 - IFS=$as_save_IFS
1.6517 - test -z "$as_dir" && as_dir=.
1.6518 - for ac_exec_ext in '' $ac_executable_extensions; do
1.6519 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6520 - ac_cv_prog_CC="${ac_tool_prefix}cc"
1.6521 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6522 - break 2
1.6523 - fi
1.6524 -done
1.6525 -done
1.6526 -IFS=$as_save_IFS
1.6527 -
1.6528 -fi
1.6529 -fi
1.6530 -CC=$ac_cv_prog_CC
1.6531 -if test -n "$CC"; then
1.6532 - { echo "$as_me:$LINENO: result: $CC" >&5
1.6533 -echo "${ECHO_T}$CC" >&6; }
1.6534 -else
1.6535 - { echo "$as_me:$LINENO: result: no" >&5
1.6536 -echo "${ECHO_T}no" >&6; }
1.6537 -fi
1.6538 -
1.6539 -
1.6540 - fi
1.6541 -fi
1.6542 -if test -z "$CC"; then
1.6543 - # Extract the first word of "cc", so it can be a program name with args.
1.6544 -set dummy cc; ac_word=$2
1.6545 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6546 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6547 -if test "${ac_cv_prog_CC+set}" = set; then
1.6548 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6549 -else
1.6550 - if test -n "$CC"; then
1.6551 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.6552 -else
1.6553 - ac_prog_rejected=no
1.6554 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6555 -for as_dir in $PATH
1.6556 -do
1.6557 - IFS=$as_save_IFS
1.6558 - test -z "$as_dir" && as_dir=.
1.6559 - for ac_exec_ext in '' $ac_executable_extensions; do
1.6560 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6561 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.6562 - ac_prog_rejected=yes
1.6563 - continue
1.6564 - fi
1.6565 - ac_cv_prog_CC="cc"
1.6566 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6567 - break 2
1.6568 - fi
1.6569 -done
1.6570 -done
1.6571 -IFS=$as_save_IFS
1.6572 -
1.6573 -if test $ac_prog_rejected = yes; then
1.6574 - # We found a bogon in the path, so make sure we never use it.
1.6575 - set dummy $ac_cv_prog_CC
1.6576 - shift
1.6577 - if test $# != 0; then
1.6578 - # We chose a different compiler from the bogus one.
1.6579 - # However, it has the same basename, so the bogon will be chosen
1.6580 - # first if we set CC to just the basename; use the full file name.
1.6581 - shift
1.6582 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.6583 - fi
1.6584 -fi
1.6585 -fi
1.6586 -fi
1.6587 -CC=$ac_cv_prog_CC
1.6588 -if test -n "$CC"; then
1.6589 - { echo "$as_me:$LINENO: result: $CC" >&5
1.6590 -echo "${ECHO_T}$CC" >&6; }
1.6591 -else
1.6592 - { echo "$as_me:$LINENO: result: no" >&5
1.6593 -echo "${ECHO_T}no" >&6; }
1.6594 -fi
1.6595 -
1.6596 -
1.6597 -fi
1.6598 -if test -z "$CC"; then
1.6599 - if test -n "$ac_tool_prefix"; then
1.6600 - for ac_prog in cl.exe
1.6601 - do
1.6602 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.6603 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.6604 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6605 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6606 -if test "${ac_cv_prog_CC+set}" = set; then
1.6607 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6608 -else
1.6609 - if test -n "$CC"; then
1.6610 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.6611 -else
1.6612 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6613 -for as_dir in $PATH
1.6614 -do
1.6615 - IFS=$as_save_IFS
1.6616 - test -z "$as_dir" && as_dir=.
1.6617 - for ac_exec_ext in '' $ac_executable_extensions; do
1.6618 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6619 - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.6620 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6621 - break 2
1.6622 - fi
1.6623 -done
1.6624 -done
1.6625 -IFS=$as_save_IFS
1.6626 -
1.6627 -fi
1.6628 -fi
1.6629 -CC=$ac_cv_prog_CC
1.6630 -if test -n "$CC"; then
1.6631 - { echo "$as_me:$LINENO: result: $CC" >&5
1.6632 -echo "${ECHO_T}$CC" >&6; }
1.6633 -else
1.6634 - { echo "$as_me:$LINENO: result: no" >&5
1.6635 -echo "${ECHO_T}no" >&6; }
1.6636 -fi
1.6637 -
1.6638 -
1.6639 - test -n "$CC" && break
1.6640 - done
1.6641 -fi
1.6642 -if test -z "$CC"; then
1.6643 - ac_ct_CC=$CC
1.6644 - for ac_prog in cl.exe
1.6645 -do
1.6646 - # Extract the first word of "$ac_prog", so it can be a program name with args.
1.6647 -set dummy $ac_prog; ac_word=$2
1.6648 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6649 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6650 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.6651 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6652 -else
1.6653 - if test -n "$ac_ct_CC"; then
1.6654 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.6655 -else
1.6656 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6657 -for as_dir in $PATH
1.6658 -do
1.6659 - IFS=$as_save_IFS
1.6660 - test -z "$as_dir" && as_dir=.
1.6661 - for ac_exec_ext in '' $ac_executable_extensions; do
1.6662 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6663 - ac_cv_prog_ac_ct_CC="$ac_prog"
1.6664 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6665 - break 2
1.6666 - fi
1.6667 -done
1.6668 -done
1.6669 -IFS=$as_save_IFS
1.6670 -
1.6671 -fi
1.6672 -fi
1.6673 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.6674 -if test -n "$ac_ct_CC"; then
1.6675 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.6676 -echo "${ECHO_T}$ac_ct_CC" >&6; }
1.6677 -else
1.6678 - { echo "$as_me:$LINENO: result: no" >&5
1.6679 -echo "${ECHO_T}no" >&6; }
1.6680 -fi
1.6681 -
1.6682 -
1.6683 - test -n "$ac_ct_CC" && break
1.6684 -done
1.6685 -
1.6686 - if test "x$ac_ct_CC" = x; then
1.6687 - CC=""
1.6688 - else
1.6689 - case $cross_compiling:$ac_tool_warned in
1.6690 -yes:)
1.6691 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.6692 -whose name does not start with the host triplet. If you think this
1.6693 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.6694 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.6695 -whose name does not start with the host triplet. If you think this
1.6696 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.6697 -ac_tool_warned=yes ;;
1.6698 -esac
1.6699 - CC=$ac_ct_CC
1.6700 - fi
1.6701 -fi
1.6702 -
1.6703 -fi
1.6704 -
1.6705 -
1.6706 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.6707 -See \`config.log' for more details." >&5
1.6708 -echo "$as_me: error: no acceptable C compiler found in \$PATH
1.6709 -See \`config.log' for more details." >&2;}
1.6710 - { (exit 1); exit 1; }; }
1.6711 -
1.6712 -# Provide some information about the compiler.
1.6713 -echo "$as_me:$LINENO: checking for C compiler version" >&5
1.6714 -ac_compiler=`set X $ac_compile; echo $2`
1.6715 -{ (ac_try="$ac_compiler --version >&5"
1.6716 -case "(($ac_try" in
1.6717 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.6718 - *) ac_try_echo=$ac_try;;
1.6719 -esac
1.6720 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.6721 - (eval "$ac_compiler --version >&5") 2>&5
1.6722 - ac_status=$?
1.6723 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.6724 - (exit $ac_status); }
1.6725 -{ (ac_try="$ac_compiler -v >&5"
1.6726 -case "(($ac_try" in
1.6727 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.6728 - *) ac_try_echo=$ac_try;;
1.6729 -esac
1.6730 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.6731 - (eval "$ac_compiler -v >&5") 2>&5
1.6732 - ac_status=$?
1.6733 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.6734 - (exit $ac_status); }
1.6735 -{ (ac_try="$ac_compiler -V >&5"
1.6736 -case "(($ac_try" in
1.6737 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.6738 - *) ac_try_echo=$ac_try;;
1.6739 -esac
1.6740 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.6741 - (eval "$ac_compiler -V >&5") 2>&5
1.6742 - ac_status=$?
1.6743 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.6744 - (exit $ac_status); }
1.6745 -
1.6746 -cat >conftest.$ac_ext <<_ACEOF
1.6747 -/* confdefs.h. */
1.6748 -_ACEOF
1.6749 -cat confdefs.h >>conftest.$ac_ext
1.6750 -cat >>conftest.$ac_ext <<_ACEOF
1.6751 -/* end confdefs.h. */
1.6752 -
1.6753 -int
1.6754 -main ()
1.6755 -{
1.6756 -
1.6757 - ;
1.6758 - return 0;
1.6759 -}
1.6760 -_ACEOF
1.6761 -ac_clean_files_save=$ac_clean_files
1.6762 -ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.6763 -# Try to create an executable without -o first, disregard a.out.
1.6764 -# It will help us diagnose broken compilers, and finding out an intuition
1.6765 -# of exeext.
1.6766 -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1.6767 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.6768 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.6769 -#
1.6770 -# List of possible output files, starting from the most likely.
1.6771 -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
1.6772 -# only as a last resort. b.out is created by i960 compilers.
1.6773 -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
1.6774 -#
1.6775 -# The IRIX 6 linker writes into existing files which may not be
1.6776 -# executable, retaining their permissions. Remove them first so a
1.6777 -# subsequent execution test works.
1.6778 -ac_rmfiles=
1.6779 -for ac_file in $ac_files
1.6780 -do
1.6781 - case $ac_file in
1.6782 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.6783 - * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1.6784 - esac
1.6785 -done
1.6786 -rm -f $ac_rmfiles
1.6787 -
1.6788 -if { (ac_try="$ac_link_default"
1.6789 -case "(($ac_try" in
1.6790 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.6791 - *) ac_try_echo=$ac_try;;
1.6792 -esac
1.6793 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.6794 - (eval "$ac_link_default") 2>&5
1.6795 - ac_status=$?
1.6796 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.6797 - (exit $ac_status); }; then
1.6798 - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
1.6799 -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
1.6800 -# in a Makefile. We should not override ac_cv_exeext if it was cached,
1.6801 -# so that the user can short-circuit this test for compilers unknown to
1.6802 -# Autoconf.
1.6803 -for ac_file in $ac_files ''
1.6804 -do
1.6805 - test -f "$ac_file" || continue
1.6806 - case $ac_file in
1.6807 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.6808 - ;;
1.6809 - [ab].out )
1.6810 - # We found the default executable, but exeext='' is most
1.6811 - # certainly right.
1.6812 - break;;
1.6813 - *.* )
1.6814 - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
1.6815 - then :; else
1.6816 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.6817 - fi
1.6818 - # We set ac_cv_exeext here because the later test for it is not
1.6819 - # safe: cross compilers may not add the suffix if given an `-o'
1.6820 - # argument, so we may need to know it at that point already.
1.6821 - # Even if this section looks crufty: it has the advantage of
1.6822 - # actually working.
1.6823 - break;;
1.6824 - * )
1.6825 - break;;
1.6826 - esac
1.6827 -done
1.6828 -test "$ac_cv_exeext" = no && ac_cv_exeext=
1.6829 -
1.6830 -else
1.6831 - ac_file=''
1.6832 -fi
1.6833 -
1.6834 -{ echo "$as_me:$LINENO: result: $ac_file" >&5
1.6835 -echo "${ECHO_T}$ac_file" >&6; }
1.6836 -if test -z "$ac_file"; then
1.6837 - echo "$as_me: failed program was:" >&5
1.6838 -sed 's/^/| /' conftest.$ac_ext >&5
1.6839 -
1.6840 -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1.6841 -See \`config.log' for more details." >&5
1.6842 -echo "$as_me: error: C compiler cannot create executables
1.6843 -See \`config.log' for more details." >&2;}
1.6844 - { (exit 77); exit 77; }; }
1.6845 -fi
1.6846 -
1.6847 -ac_exeext=$ac_cv_exeext
1.6848 -
1.6849 -# Check that the compiler produces executables we can run. If not, either
1.6850 -# the compiler is broken, or we cross compile.
1.6851 -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1.6852 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.6853 -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1.6854 -# If not cross compiling, check that we can run a simple program.
1.6855 -if test "$cross_compiling" != yes; then
1.6856 - if { ac_try='./$ac_file'
1.6857 - { (case "(($ac_try" in
1.6858 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.6859 - *) ac_try_echo=$ac_try;;
1.6860 -esac
1.6861 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.6862 - (eval "$ac_try") 2>&5
1.6863 - ac_status=$?
1.6864 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.6865 - (exit $ac_status); }; }; then
1.6866 - cross_compiling=no
1.6867 - else
1.6868 - if test "$cross_compiling" = maybe; then
1.6869 - cross_compiling=yes
1.6870 - else
1.6871 - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.6872 -If you meant to cross compile, use \`--host'.
1.6873 -See \`config.log' for more details." >&5
1.6874 -echo "$as_me: error: cannot run C compiled programs.
1.6875 -If you meant to cross compile, use \`--host'.
1.6876 -See \`config.log' for more details." >&2;}
1.6877 - { (exit 1); exit 1; }; }
1.6878 - fi
1.6879 - fi
1.6880 -fi
1.6881 -{ echo "$as_me:$LINENO: result: yes" >&5
1.6882 -echo "${ECHO_T}yes" >&6; }
1.6883 -
1.6884 -rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.6885 -ac_clean_files=$ac_clean_files_save
1.6886 -# Check that the compiler produces executables we can run. If not, either
1.6887 -# the compiler is broken, or we cross compile.
1.6888 -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1.6889 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
1.6890 -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
1.6891 -echo "${ECHO_T}$cross_compiling" >&6; }
1.6892 -
1.6893 -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
1.6894 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
1.6895 -if { (ac_try="$ac_link"
1.6896 -case "(($ac_try" in
1.6897 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.6898 - *) ac_try_echo=$ac_try;;
1.6899 -esac
1.6900 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.6901 - (eval "$ac_link") 2>&5
1.6902 - ac_status=$?
1.6903 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.6904 - (exit $ac_status); }; then
1.6905 - # If both `conftest.exe' and `conftest' are `present' (well, observable)
1.6906 -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1.6907 -# work properly (i.e., refer to `conftest.exe'), while it won't with
1.6908 -# `rm'.
1.6909 -for ac_file in conftest.exe conftest conftest.*; do
1.6910 - test -f "$ac_file" || continue
1.6911 - case $ac_file in
1.6912 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.6913 - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.6914 - break;;
1.6915 - * ) break;;
1.6916 - esac
1.6917 -done
1.6918 -else
1.6919 - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1.6920 -See \`config.log' for more details." >&5
1.6921 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1.6922 -See \`config.log' for more details." >&2;}
1.6923 - { (exit 1); exit 1; }; }
1.6924 -fi
1.6925 -
1.6926 -rm -f conftest$ac_cv_exeext
1.6927 -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1.6928 -echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.6929 -
1.6930 -rm -f conftest.$ac_ext
1.6931 -EXEEXT=$ac_cv_exeext
1.6932 -ac_exeext=$EXEEXT
1.6933 -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
1.6934 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.6935 -if test "${ac_cv_objext+set}" = set; then
1.6936 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6937 -else
1.6938 - cat >conftest.$ac_ext <<_ACEOF
1.6939 -/* confdefs.h. */
1.6940 -_ACEOF
1.6941 -cat confdefs.h >>conftest.$ac_ext
1.6942 -cat >>conftest.$ac_ext <<_ACEOF
1.6943 -/* end confdefs.h. */
1.6944 -
1.6945 -int
1.6946 -main ()
1.6947 -{
1.6948 -
1.6949 - ;
1.6950 - return 0;
1.6951 -}
1.6952 -_ACEOF
1.6953 -rm -f conftest.o conftest.obj
1.6954 -if { (ac_try="$ac_compile"
1.6955 -case "(($ac_try" in
1.6956 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.6957 - *) ac_try_echo=$ac_try;;
1.6958 -esac
1.6959 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.6960 - (eval "$ac_compile") 2>&5
1.6961 - ac_status=$?
1.6962 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.6963 - (exit $ac_status); }; then
1.6964 - for ac_file in conftest.o conftest.obj conftest.*; do
1.6965 - test -f "$ac_file" || continue;
1.6966 - case $ac_file in
1.6967 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.6968 - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1.6969 - break;;
1.6970 - esac
1.6971 -done
1.6972 -else
1.6973 - echo "$as_me: failed program was:" >&5
1.6974 -sed 's/^/| /' conftest.$ac_ext >&5
1.6975 -
1.6976 -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1.6977 -See \`config.log' for more details." >&5
1.6978 -echo "$as_me: error: cannot compute suffix of object files: cannot compile
1.6979 -See \`config.log' for more details." >&2;}
1.6980 - { (exit 1); exit 1; }; }
1.6981 -fi
1.6982 -
1.6983 -rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.6984 -fi
1.6985 -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1.6986 -echo "${ECHO_T}$ac_cv_objext" >&6; }
1.6987 -OBJEXT=$ac_cv_objext
1.6988 -ac_objext=$OBJEXT
1.6989 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.6990 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.6991 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.6992 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6993 -else
1.6994 - cat >conftest.$ac_ext <<_ACEOF
1.6995 -/* confdefs.h. */
1.6996 -_ACEOF
1.6997 -cat confdefs.h >>conftest.$ac_ext
1.6998 -cat >>conftest.$ac_ext <<_ACEOF
1.6999 -/* end confdefs.h. */
1.7000 -
1.7001 -int
1.7002 -main ()
1.7003 -{
1.7004 -#ifndef __GNUC__
1.7005 - choke me
1.7006 -#endif
1.7007 -
1.7008 - ;
1.7009 - return 0;
1.7010 -}
1.7011 -_ACEOF
1.7012 -rm -f conftest.$ac_objext
1.7013 -if { (ac_try="$ac_compile"
1.7014 -case "(($ac_try" in
1.7015 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7016 - *) ac_try_echo=$ac_try;;
1.7017 -esac
1.7018 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7019 - (eval "$ac_compile") 2>conftest.er1
1.7020 - ac_status=$?
1.7021 - grep -v '^ *+' conftest.er1 >conftest.err
1.7022 - rm -f conftest.er1
1.7023 - cat conftest.err >&5
1.7024 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7025 - (exit $ac_status); } && {
1.7026 - test -z "$ac_c_werror_flag" ||
1.7027 - test ! -s conftest.err
1.7028 - } && test -s conftest.$ac_objext; then
1.7029 - ac_compiler_gnu=yes
1.7030 -else
1.7031 - echo "$as_me: failed program was:" >&5
1.7032 -sed 's/^/| /' conftest.$ac_ext >&5
1.7033 -
1.7034 - ac_compiler_gnu=no
1.7035 -fi
1.7036 -
1.7037 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.7038 -ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.7039 -
1.7040 -fi
1.7041 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.7042 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.7043 -GCC=`test $ac_compiler_gnu = yes && echo yes`
1.7044 -ac_test_CFLAGS=${CFLAGS+set}
1.7045 -ac_save_CFLAGS=$CFLAGS
1.7046 -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.7047 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.7048 -if test "${ac_cv_prog_cc_g+set}" = set; then
1.7049 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7050 -else
1.7051 - ac_save_c_werror_flag=$ac_c_werror_flag
1.7052 - ac_c_werror_flag=yes
1.7053 - ac_cv_prog_cc_g=no
1.7054 - CFLAGS="-g"
1.7055 - cat >conftest.$ac_ext <<_ACEOF
1.7056 -/* confdefs.h. */
1.7057 -_ACEOF
1.7058 -cat confdefs.h >>conftest.$ac_ext
1.7059 -cat >>conftest.$ac_ext <<_ACEOF
1.7060 -/* end confdefs.h. */
1.7061 -
1.7062 -int
1.7063 -main ()
1.7064 -{
1.7065 -
1.7066 - ;
1.7067 - return 0;
1.7068 -}
1.7069 -_ACEOF
1.7070 -rm -f conftest.$ac_objext
1.7071 -if { (ac_try="$ac_compile"
1.7072 -case "(($ac_try" in
1.7073 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7074 - *) ac_try_echo=$ac_try;;
1.7075 -esac
1.7076 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7077 - (eval "$ac_compile") 2>conftest.er1
1.7078 - ac_status=$?
1.7079 - grep -v '^ *+' conftest.er1 >conftest.err
1.7080 - rm -f conftest.er1
1.7081 - cat conftest.err >&5
1.7082 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7083 - (exit $ac_status); } && {
1.7084 - test -z "$ac_c_werror_flag" ||
1.7085 - test ! -s conftest.err
1.7086 - } && test -s conftest.$ac_objext; then
1.7087 - ac_cv_prog_cc_g=yes
1.7088 -else
1.7089 - echo "$as_me: failed program was:" >&5
1.7090 -sed 's/^/| /' conftest.$ac_ext >&5
1.7091 -
1.7092 - CFLAGS=""
1.7093 - cat >conftest.$ac_ext <<_ACEOF
1.7094 -/* confdefs.h. */
1.7095 -_ACEOF
1.7096 -cat confdefs.h >>conftest.$ac_ext
1.7097 -cat >>conftest.$ac_ext <<_ACEOF
1.7098 -/* end confdefs.h. */
1.7099 -
1.7100 -int
1.7101 -main ()
1.7102 -{
1.7103 -
1.7104 - ;
1.7105 - return 0;
1.7106 -}
1.7107 -_ACEOF
1.7108 -rm -f conftest.$ac_objext
1.7109 -if { (ac_try="$ac_compile"
1.7110 -case "(($ac_try" in
1.7111 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7112 - *) ac_try_echo=$ac_try;;
1.7113 -esac
1.7114 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7115 - (eval "$ac_compile") 2>conftest.er1
1.7116 - ac_status=$?
1.7117 - grep -v '^ *+' conftest.er1 >conftest.err
1.7118 - rm -f conftest.er1
1.7119 - cat conftest.err >&5
1.7120 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7121 - (exit $ac_status); } && {
1.7122 - test -z "$ac_c_werror_flag" ||
1.7123 - test ! -s conftest.err
1.7124 - } && test -s conftest.$ac_objext; then
1.7125 - :
1.7126 -else
1.7127 - echo "$as_me: failed program was:" >&5
1.7128 -sed 's/^/| /' conftest.$ac_ext >&5
1.7129 -
1.7130 - ac_c_werror_flag=$ac_save_c_werror_flag
1.7131 - CFLAGS="-g"
1.7132 - cat >conftest.$ac_ext <<_ACEOF
1.7133 -/* confdefs.h. */
1.7134 -_ACEOF
1.7135 -cat confdefs.h >>conftest.$ac_ext
1.7136 -cat >>conftest.$ac_ext <<_ACEOF
1.7137 -/* end confdefs.h. */
1.7138 -
1.7139 -int
1.7140 -main ()
1.7141 -{
1.7142 -
1.7143 - ;
1.7144 - return 0;
1.7145 -}
1.7146 -_ACEOF
1.7147 -rm -f conftest.$ac_objext
1.7148 -if { (ac_try="$ac_compile"
1.7149 -case "(($ac_try" in
1.7150 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7151 - *) ac_try_echo=$ac_try;;
1.7152 -esac
1.7153 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7154 - (eval "$ac_compile") 2>conftest.er1
1.7155 - ac_status=$?
1.7156 - grep -v '^ *+' conftest.er1 >conftest.err
1.7157 - rm -f conftest.er1
1.7158 - cat conftest.err >&5
1.7159 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7160 - (exit $ac_status); } && {
1.7161 - test -z "$ac_c_werror_flag" ||
1.7162 - test ! -s conftest.err
1.7163 - } && test -s conftest.$ac_objext; then
1.7164 - ac_cv_prog_cc_g=yes
1.7165 -else
1.7166 - echo "$as_me: failed program was:" >&5
1.7167 -sed 's/^/| /' conftest.$ac_ext >&5
1.7168 -
1.7169 -
1.7170 -fi
1.7171 -
1.7172 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.7173 -fi
1.7174 -
1.7175 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.7176 -fi
1.7177 -
1.7178 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.7179 - ac_c_werror_flag=$ac_save_c_werror_flag
1.7180 -fi
1.7181 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.7182 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.7183 -if test "$ac_test_CFLAGS" = set; then
1.7184 - CFLAGS=$ac_save_CFLAGS
1.7185 -elif test $ac_cv_prog_cc_g = yes; then
1.7186 - if test "$GCC" = yes; then
1.7187 - CFLAGS="-g -O2"
1.7188 - else
1.7189 - CFLAGS="-g"
1.7190 - fi
1.7191 -else
1.7192 - if test "$GCC" = yes; then
1.7193 - CFLAGS="-O2"
1.7194 - else
1.7195 - CFLAGS=
1.7196 - fi
1.7197 -fi
1.7198 -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
1.7199 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
1.7200 -if test "${ac_cv_prog_cc_c89+set}" = set; then
1.7201 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7202 -else
1.7203 - ac_cv_prog_cc_c89=no
1.7204 -ac_save_CC=$CC
1.7205 -cat >conftest.$ac_ext <<_ACEOF
1.7206 -/* confdefs.h. */
1.7207 -_ACEOF
1.7208 -cat confdefs.h >>conftest.$ac_ext
1.7209 -cat >>conftest.$ac_ext <<_ACEOF
1.7210 -/* end confdefs.h. */
1.7211 -#include <stdarg.h>
1.7212 -#include <stdio.h>
1.7213 -#include <sys/types.h>
1.7214 -#include <sys/stat.h>
1.7215 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.7216 -struct buf { int x; };
1.7217 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.7218 -static char *e (p, i)
1.7219 - char **p;
1.7220 - int i;
1.7221 -{
1.7222 - return p[i];
1.7223 -}
1.7224 -static char *f (char * (*g) (char **, int), char **p, ...)
1.7225 -{
1.7226 - char *s;
1.7227 - va_list v;
1.7228 - va_start (v,p);
1.7229 - s = g (p, va_arg (v,int));
1.7230 - va_end (v);
1.7231 - return s;
1.7232 -}
1.7233 -
1.7234 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.7235 - function prototypes and stuff, but not '\xHH' hex character constants.
1.7236 - These don't provoke an error unfortunately, instead are silently treated
1.7237 - as 'x'. The following induces an error, until -std is added to get
1.7238 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.7239 - array size at least. It's necessary to write '\x00'==0 to get something
1.7240 - that's true only with -std. */
1.7241 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.7242 -
1.7243 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.7244 - inside strings and character constants. */
1.7245 -#define FOO(x) 'x'
1.7246 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.7247 -
1.7248 -int test (int i, double x);
1.7249 -struct s1 {int (*f) (int a);};
1.7250 -struct s2 {int (*f) (double a);};
1.7251 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.7252 -int argc;
1.7253 -char **argv;
1.7254 -int
1.7255 -main ()
1.7256 -{
1.7257 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.7258 - ;
1.7259 - return 0;
1.7260 -}
1.7261 -_ACEOF
1.7262 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.7263 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.7264 -do
1.7265 - CC="$ac_save_CC $ac_arg"
1.7266 - rm -f conftest.$ac_objext
1.7267 -if { (ac_try="$ac_compile"
1.7268 -case "(($ac_try" in
1.7269 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7270 - *) ac_try_echo=$ac_try;;
1.7271 -esac
1.7272 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7273 - (eval "$ac_compile") 2>conftest.er1
1.7274 - ac_status=$?
1.7275 - grep -v '^ *+' conftest.er1 >conftest.err
1.7276 - rm -f conftest.er1
1.7277 - cat conftest.err >&5
1.7278 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7279 - (exit $ac_status); } && {
1.7280 - test -z "$ac_c_werror_flag" ||
1.7281 - test ! -s conftest.err
1.7282 - } && test -s conftest.$ac_objext; then
1.7283 - ac_cv_prog_cc_c89=$ac_arg
1.7284 -else
1.7285 - echo "$as_me: failed program was:" >&5
1.7286 -sed 's/^/| /' conftest.$ac_ext >&5
1.7287 -
1.7288 -
1.7289 -fi
1.7290 -
1.7291 -rm -f core conftest.err conftest.$ac_objext
1.7292 - test "x$ac_cv_prog_cc_c89" != "xno" && break
1.7293 -done
1.7294 -rm -f conftest.$ac_ext
1.7295 -CC=$ac_save_CC
1.7296 -
1.7297 -fi
1.7298 -# AC_CACHE_VAL
1.7299 -case "x$ac_cv_prog_cc_c89" in
1.7300 - x)
1.7301 - { echo "$as_me:$LINENO: result: none needed" >&5
1.7302 -echo "${ECHO_T}none needed" >&6; } ;;
1.7303 - xno)
1.7304 - { echo "$as_me:$LINENO: result: unsupported" >&5
1.7305 -echo "${ECHO_T}unsupported" >&6; } ;;
1.7306 - *)
1.7307 - CC="$CC $ac_cv_prog_cc_c89"
1.7308 - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1.7309 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.7310 -esac
1.7311 -
1.7312 -
1.7313 -ac_ext=c
1.7314 -ac_cpp='$CPP $CPPFLAGS'
1.7315 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.7316 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.7317 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.7318 -
1.7319 -depcc="$CC" am_compiler_list=
1.7320 -
1.7321 -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.7322 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.7323 -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.7324 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7325 -else
1.7326 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.7327 - # We make a subdir and do the tests there. Otherwise we can end up
1.7328 - # making bogus files that we don't know about and never remove. For
1.7329 - # instance it was reported that on HP-UX the gcc test will end up
1.7330 - # making a dummy file named `D' -- because `-MD' means `put the output
1.7331 - # in D'.
1.7332 - mkdir conftest.dir
1.7333 - # Copy depcomp to subdir because otherwise we won't find it if we're
1.7334 - # using a relative directory.
1.7335 - cp "$am_depcomp" conftest.dir
1.7336 - cd conftest.dir
1.7337 - # We will build objects and dependencies in a subdirectory because
1.7338 - # it helps to detect inapplicable dependency modes. For instance
1.7339 - # both Tru64's cc and ICC support -MD to output dependencies as a
1.7340 - # side effect of compilation, but ICC will put the dependencies in
1.7341 - # the current directory while Tru64 will put them in the object
1.7342 - # directory.
1.7343 - mkdir sub
1.7344 -
1.7345 - am_cv_CC_dependencies_compiler_type=none
1.7346 - if test "$am_compiler_list" = ""; then
1.7347 - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.7348 - fi
1.7349 - for depmode in $am_compiler_list; do
1.7350 - # Setup a source with many dependencies, because some compilers
1.7351 - # like to wrap large dependency lists on column 80 (with \), and
1.7352 - # we should not choose a depcomp mode which is confused by this.
1.7353 - #
1.7354 - # We need to recreate these files for each test, as the compiler may
1.7355 - # overwrite some of them when testing with obscure command lines.
1.7356 - # This happens at least with the AIX C compiler.
1.7357 - : > sub/conftest.c
1.7358 - for i in 1 2 3 4 5 6; do
1.7359 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.7360 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.7361 - # Solaris 8's {/usr,}/bin/sh.
1.7362 - touch sub/conftst$i.h
1.7363 - done
1.7364 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.7365 -
1.7366 - case $depmode in
1.7367 - nosideeffect)
1.7368 - # after this tag, mechanisms are not by side-effect, so they'll
1.7369 - # only be used when explicitly requested
1.7370 - if test "x$enable_dependency_tracking" = xyes; then
1.7371 - continue
1.7372 - else
1.7373 - break
1.7374 - fi
1.7375 - ;;
1.7376 - none) break ;;
1.7377 - esac
1.7378 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.7379 - # mode. It turns out that the SunPro C++ compiler does not properly
1.7380 - # handle `-M -o', and we need to detect this.
1.7381 - if depmode=$depmode \
1.7382 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.7383 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.7384 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.7385 - >/dev/null 2>conftest.err &&
1.7386 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.7387 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.7388 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.7389 - # icc doesn't choke on unknown options, it will just issue warnings
1.7390 - # or remarks (even with -Werror). So we grep stderr for any message
1.7391 - # that says an option was ignored or not supported.
1.7392 - # When given -MP, icc 7.0 and 7.1 complain thusly:
1.7393 - # icc: Command line warning: ignoring option '-M'; no argument required
1.7394 - # The diagnosis changed in icc 8.0:
1.7395 - # icc: Command line remark: option '-MP' not supported
1.7396 - if (grep 'ignoring option' conftest.err ||
1.7397 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.7398 - am_cv_CC_dependencies_compiler_type=$depmode
1.7399 - break
1.7400 - fi
1.7401 - fi
1.7402 - done
1.7403 -
1.7404 - cd ..
1.7405 - rm -rf conftest.dir
1.7406 -else
1.7407 - am_cv_CC_dependencies_compiler_type=none
1.7408 -fi
1.7409 -
1.7410 -fi
1.7411 -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1.7412 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
1.7413 -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.7414 -
1.7415 -
1.7416 -
1.7417 -if
1.7418 - test "x$enable_dependency_tracking" != xno \
1.7419 - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1.7420 - am__fastdepCC_TRUE=
1.7421 - am__fastdepCC_FALSE='#'
1.7422 -else
1.7423 - am__fastdepCC_TRUE='#'
1.7424 - am__fastdepCC_FALSE=
1.7425 -fi
1.7426 -
1.7427 -
1.7428 -
1.7429 -
1.7430 - { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
1.7431 -echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
1.7432 -if test "${ac_cv_lib_cposix_strerror+set}" = set; then
1.7433 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7434 -else
1.7435 - ac_check_lib_save_LIBS=$LIBS
1.7436 -LIBS="-lcposix $LIBS"
1.7437 -cat >conftest.$ac_ext <<_ACEOF
1.7438 -/* confdefs.h. */
1.7439 -_ACEOF
1.7440 -cat confdefs.h >>conftest.$ac_ext
1.7441 -cat >>conftest.$ac_ext <<_ACEOF
1.7442 -/* end confdefs.h. */
1.7443 -
1.7444 -/* Override any GCC internal prototype to avoid an error.
1.7445 - Use char because int might match the return type of a GCC
1.7446 - builtin and then its argument prototype would still apply. */
1.7447 -#ifdef __cplusplus
1.7448 -extern "C"
1.7449 -#endif
1.7450 -char strerror ();
1.7451 -int
1.7452 -main ()
1.7453 -{
1.7454 -return strerror ();
1.7455 - ;
1.7456 - return 0;
1.7457 -}
1.7458 -_ACEOF
1.7459 -rm -f conftest.$ac_objext conftest$ac_exeext
1.7460 -if { (ac_try="$ac_link"
1.7461 -case "(($ac_try" in
1.7462 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7463 - *) ac_try_echo=$ac_try;;
1.7464 -esac
1.7465 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7466 - (eval "$ac_link") 2>conftest.er1
1.7467 - ac_status=$?
1.7468 - grep -v '^ *+' conftest.er1 >conftest.err
1.7469 - rm -f conftest.er1
1.7470 - cat conftest.err >&5
1.7471 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7472 - (exit $ac_status); } && {
1.7473 - test -z "$ac_c_werror_flag" ||
1.7474 - test ! -s conftest.err
1.7475 - } && test -s conftest$ac_exeext &&
1.7476 - $as_test_x conftest$ac_exeext; then
1.7477 - ac_cv_lib_cposix_strerror=yes
1.7478 -else
1.7479 - echo "$as_me: failed program was:" >&5
1.7480 -sed 's/^/| /' conftest.$ac_ext >&5
1.7481 -
1.7482 - ac_cv_lib_cposix_strerror=no
1.7483 -fi
1.7484 -
1.7485 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.7486 - conftest$ac_exeext conftest.$ac_ext
1.7487 -LIBS=$ac_check_lib_save_LIBS
1.7488 -fi
1.7489 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
1.7490 -echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
1.7491 -if test $ac_cv_lib_cposix_strerror = yes; then
1.7492 - LIBS="$LIBS -lcposix"
1.7493 -fi
1.7494 -
1.7495 -
1.7496 -
1.7497 -ac_ext=c
1.7498 -ac_cpp='$CPP $CPPFLAGS'
1.7499 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.7500 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.7501 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.7502 -if test -n "$ac_tool_prefix"; then
1.7503 - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.7504 -set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.7505 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.7506 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.7507 -if test "${ac_cv_prog_CC+set}" = set; then
1.7508 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7509 -else
1.7510 - if test -n "$CC"; then
1.7511 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.7512 -else
1.7513 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.7514 -for as_dir in $PATH
1.7515 -do
1.7516 - IFS=$as_save_IFS
1.7517 - test -z "$as_dir" && as_dir=.
1.7518 - for ac_exec_ext in '' $ac_executable_extensions; do
1.7519 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.7520 - ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.7521 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.7522 - break 2
1.7523 - fi
1.7524 -done
1.7525 -done
1.7526 -IFS=$as_save_IFS
1.7527 -
1.7528 -fi
1.7529 -fi
1.7530 -CC=$ac_cv_prog_CC
1.7531 -if test -n "$CC"; then
1.7532 - { echo "$as_me:$LINENO: result: $CC" >&5
1.7533 -echo "${ECHO_T}$CC" >&6; }
1.7534 -else
1.7535 - { echo "$as_me:$LINENO: result: no" >&5
1.7536 -echo "${ECHO_T}no" >&6; }
1.7537 -fi
1.7538 -
1.7539 -
1.7540 -fi
1.7541 -if test -z "$ac_cv_prog_CC"; then
1.7542 - ac_ct_CC=$CC
1.7543 - # Extract the first word of "gcc", so it can be a program name with args.
1.7544 -set dummy gcc; ac_word=$2
1.7545 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.7546 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.7547 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.7548 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7549 -else
1.7550 - if test -n "$ac_ct_CC"; then
1.7551 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.7552 -else
1.7553 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.7554 -for as_dir in $PATH
1.7555 -do
1.7556 - IFS=$as_save_IFS
1.7557 - test -z "$as_dir" && as_dir=.
1.7558 - for ac_exec_ext in '' $ac_executable_extensions; do
1.7559 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.7560 - ac_cv_prog_ac_ct_CC="gcc"
1.7561 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.7562 - break 2
1.7563 - fi
1.7564 -done
1.7565 -done
1.7566 -IFS=$as_save_IFS
1.7567 -
1.7568 -fi
1.7569 -fi
1.7570 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.7571 -if test -n "$ac_ct_CC"; then
1.7572 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.7573 -echo "${ECHO_T}$ac_ct_CC" >&6; }
1.7574 -else
1.7575 - { echo "$as_me:$LINENO: result: no" >&5
1.7576 -echo "${ECHO_T}no" >&6; }
1.7577 -fi
1.7578 -
1.7579 - if test "x$ac_ct_CC" = x; then
1.7580 - CC=""
1.7581 - else
1.7582 - case $cross_compiling:$ac_tool_warned in
1.7583 -yes:)
1.7584 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.7585 -whose name does not start with the host triplet. If you think this
1.7586 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.7587 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.7588 -whose name does not start with the host triplet. If you think this
1.7589 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.7590 -ac_tool_warned=yes ;;
1.7591 -esac
1.7592 - CC=$ac_ct_CC
1.7593 - fi
1.7594 -else
1.7595 - CC="$ac_cv_prog_CC"
1.7596 -fi
1.7597 -
1.7598 -if test -z "$CC"; then
1.7599 - if test -n "$ac_tool_prefix"; then
1.7600 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.7601 -set dummy ${ac_tool_prefix}cc; ac_word=$2
1.7602 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.7603 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.7604 -if test "${ac_cv_prog_CC+set}" = set; then
1.7605 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7606 -else
1.7607 - if test -n "$CC"; then
1.7608 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.7609 -else
1.7610 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.7611 -for as_dir in $PATH
1.7612 -do
1.7613 - IFS=$as_save_IFS
1.7614 - test -z "$as_dir" && as_dir=.
1.7615 - for ac_exec_ext in '' $ac_executable_extensions; do
1.7616 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.7617 - ac_cv_prog_CC="${ac_tool_prefix}cc"
1.7618 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.7619 - break 2
1.7620 - fi
1.7621 -done
1.7622 -done
1.7623 -IFS=$as_save_IFS
1.7624 -
1.7625 -fi
1.7626 -fi
1.7627 -CC=$ac_cv_prog_CC
1.7628 -if test -n "$CC"; then
1.7629 - { echo "$as_me:$LINENO: result: $CC" >&5
1.7630 -echo "${ECHO_T}$CC" >&6; }
1.7631 -else
1.7632 - { echo "$as_me:$LINENO: result: no" >&5
1.7633 -echo "${ECHO_T}no" >&6; }
1.7634 -fi
1.7635 -
1.7636 -
1.7637 - fi
1.7638 -fi
1.7639 -if test -z "$CC"; then
1.7640 - # Extract the first word of "cc", so it can be a program name with args.
1.7641 -set dummy cc; ac_word=$2
1.7642 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.7643 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.7644 -if test "${ac_cv_prog_CC+set}" = set; then
1.7645 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7646 -else
1.7647 - if test -n "$CC"; then
1.7648 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.7649 -else
1.7650 - ac_prog_rejected=no
1.7651 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.7652 -for as_dir in $PATH
1.7653 -do
1.7654 - IFS=$as_save_IFS
1.7655 - test -z "$as_dir" && as_dir=.
1.7656 - for ac_exec_ext in '' $ac_executable_extensions; do
1.7657 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.7658 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.7659 - ac_prog_rejected=yes
1.7660 - continue
1.7661 - fi
1.7662 - ac_cv_prog_CC="cc"
1.7663 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.7664 - break 2
1.7665 - fi
1.7666 -done
1.7667 -done
1.7668 -IFS=$as_save_IFS
1.7669 -
1.7670 -if test $ac_prog_rejected = yes; then
1.7671 - # We found a bogon in the path, so make sure we never use it.
1.7672 - set dummy $ac_cv_prog_CC
1.7673 - shift
1.7674 - if test $# != 0; then
1.7675 - # We chose a different compiler from the bogus one.
1.7676 - # However, it has the same basename, so the bogon will be chosen
1.7677 - # first if we set CC to just the basename; use the full file name.
1.7678 - shift
1.7679 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.7680 - fi
1.7681 -fi
1.7682 -fi
1.7683 -fi
1.7684 -CC=$ac_cv_prog_CC
1.7685 -if test -n "$CC"; then
1.7686 - { echo "$as_me:$LINENO: result: $CC" >&5
1.7687 -echo "${ECHO_T}$CC" >&6; }
1.7688 -else
1.7689 - { echo "$as_me:$LINENO: result: no" >&5
1.7690 -echo "${ECHO_T}no" >&6; }
1.7691 -fi
1.7692 -
1.7693 -
1.7694 -fi
1.7695 -if test -z "$CC"; then
1.7696 - if test -n "$ac_tool_prefix"; then
1.7697 - for ac_prog in cl.exe
1.7698 - do
1.7699 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.7700 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.7701 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.7702 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.7703 -if test "${ac_cv_prog_CC+set}" = set; then
1.7704 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7705 -else
1.7706 - if test -n "$CC"; then
1.7707 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.7708 -else
1.7709 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.7710 -for as_dir in $PATH
1.7711 -do
1.7712 - IFS=$as_save_IFS
1.7713 - test -z "$as_dir" && as_dir=.
1.7714 - for ac_exec_ext in '' $ac_executable_extensions; do
1.7715 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.7716 - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.7717 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.7718 - break 2
1.7719 - fi
1.7720 -done
1.7721 -done
1.7722 -IFS=$as_save_IFS
1.7723 -
1.7724 -fi
1.7725 -fi
1.7726 -CC=$ac_cv_prog_CC
1.7727 -if test -n "$CC"; then
1.7728 - { echo "$as_me:$LINENO: result: $CC" >&5
1.7729 -echo "${ECHO_T}$CC" >&6; }
1.7730 -else
1.7731 - { echo "$as_me:$LINENO: result: no" >&5
1.7732 -echo "${ECHO_T}no" >&6; }
1.7733 -fi
1.7734 -
1.7735 -
1.7736 - test -n "$CC" && break
1.7737 - done
1.7738 -fi
1.7739 -if test -z "$CC"; then
1.7740 - ac_ct_CC=$CC
1.7741 - for ac_prog in cl.exe
1.7742 -do
1.7743 - # Extract the first word of "$ac_prog", so it can be a program name with args.
1.7744 -set dummy $ac_prog; ac_word=$2
1.7745 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.7746 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.7747 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.7748 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7749 -else
1.7750 - if test -n "$ac_ct_CC"; then
1.7751 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.7752 -else
1.7753 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.7754 -for as_dir in $PATH
1.7755 -do
1.7756 - IFS=$as_save_IFS
1.7757 - test -z "$as_dir" && as_dir=.
1.7758 - for ac_exec_ext in '' $ac_executable_extensions; do
1.7759 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.7760 - ac_cv_prog_ac_ct_CC="$ac_prog"
1.7761 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.7762 - break 2
1.7763 - fi
1.7764 -done
1.7765 -done
1.7766 -IFS=$as_save_IFS
1.7767 -
1.7768 -fi
1.7769 -fi
1.7770 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.7771 -if test -n "$ac_ct_CC"; then
1.7772 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.7773 -echo "${ECHO_T}$ac_ct_CC" >&6; }
1.7774 -else
1.7775 - { echo "$as_me:$LINENO: result: no" >&5
1.7776 -echo "${ECHO_T}no" >&6; }
1.7777 -fi
1.7778 -
1.7779 -
1.7780 - test -n "$ac_ct_CC" && break
1.7781 -done
1.7782 -
1.7783 - if test "x$ac_ct_CC" = x; then
1.7784 - CC=""
1.7785 - else
1.7786 - case $cross_compiling:$ac_tool_warned in
1.7787 -yes:)
1.7788 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.7789 -whose name does not start with the host triplet. If you think this
1.7790 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.7791 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.7792 -whose name does not start with the host triplet. If you think this
1.7793 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.7794 -ac_tool_warned=yes ;;
1.7795 -esac
1.7796 - CC=$ac_ct_CC
1.7797 - fi
1.7798 -fi
1.7799 -
1.7800 -fi
1.7801 -
1.7802 -
1.7803 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.7804 -See \`config.log' for more details." >&5
1.7805 -echo "$as_me: error: no acceptable C compiler found in \$PATH
1.7806 -See \`config.log' for more details." >&2;}
1.7807 - { (exit 1); exit 1; }; }
1.7808 -
1.7809 -# Provide some information about the compiler.
1.7810 -echo "$as_me:$LINENO: checking for C compiler version" >&5
1.7811 -ac_compiler=`set X $ac_compile; echo $2`
1.7812 -{ (ac_try="$ac_compiler --version >&5"
1.7813 -case "(($ac_try" in
1.7814 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7815 - *) ac_try_echo=$ac_try;;
1.7816 -esac
1.7817 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7818 - (eval "$ac_compiler --version >&5") 2>&5
1.7819 - ac_status=$?
1.7820 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7821 - (exit $ac_status); }
1.7822 -{ (ac_try="$ac_compiler -v >&5"
1.7823 -case "(($ac_try" in
1.7824 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7825 - *) ac_try_echo=$ac_try;;
1.7826 -esac
1.7827 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7828 - (eval "$ac_compiler -v >&5") 2>&5
1.7829 - ac_status=$?
1.7830 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7831 - (exit $ac_status); }
1.7832 -{ (ac_try="$ac_compiler -V >&5"
1.7833 -case "(($ac_try" in
1.7834 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7835 - *) ac_try_echo=$ac_try;;
1.7836 -esac
1.7837 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7838 - (eval "$ac_compiler -V >&5") 2>&5
1.7839 - ac_status=$?
1.7840 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7841 - (exit $ac_status); }
1.7842 -
1.7843 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.7844 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.7845 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.7846 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7847 -else
1.7848 - cat >conftest.$ac_ext <<_ACEOF
1.7849 -/* confdefs.h. */
1.7850 -_ACEOF
1.7851 -cat confdefs.h >>conftest.$ac_ext
1.7852 -cat >>conftest.$ac_ext <<_ACEOF
1.7853 -/* end confdefs.h. */
1.7854 -
1.7855 -int
1.7856 -main ()
1.7857 -{
1.7858 -#ifndef __GNUC__
1.7859 - choke me
1.7860 -#endif
1.7861 -
1.7862 - ;
1.7863 - return 0;
1.7864 -}
1.7865 -_ACEOF
1.7866 -rm -f conftest.$ac_objext
1.7867 -if { (ac_try="$ac_compile"
1.7868 -case "(($ac_try" in
1.7869 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7870 - *) ac_try_echo=$ac_try;;
1.7871 -esac
1.7872 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7873 - (eval "$ac_compile") 2>conftest.er1
1.7874 - ac_status=$?
1.7875 - grep -v '^ *+' conftest.er1 >conftest.err
1.7876 - rm -f conftest.er1
1.7877 - cat conftest.err >&5
1.7878 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7879 - (exit $ac_status); } && {
1.7880 - test -z "$ac_c_werror_flag" ||
1.7881 - test ! -s conftest.err
1.7882 - } && test -s conftest.$ac_objext; then
1.7883 - ac_compiler_gnu=yes
1.7884 -else
1.7885 - echo "$as_me: failed program was:" >&5
1.7886 -sed 's/^/| /' conftest.$ac_ext >&5
1.7887 -
1.7888 - ac_compiler_gnu=no
1.7889 -fi
1.7890 -
1.7891 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.7892 -ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.7893 -
1.7894 -fi
1.7895 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.7896 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.7897 -GCC=`test $ac_compiler_gnu = yes && echo yes`
1.7898 -ac_test_CFLAGS=${CFLAGS+set}
1.7899 -ac_save_CFLAGS=$CFLAGS
1.7900 -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.7901 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.7902 -if test "${ac_cv_prog_cc_g+set}" = set; then
1.7903 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7904 -else
1.7905 - ac_save_c_werror_flag=$ac_c_werror_flag
1.7906 - ac_c_werror_flag=yes
1.7907 - ac_cv_prog_cc_g=no
1.7908 - CFLAGS="-g"
1.7909 - cat >conftest.$ac_ext <<_ACEOF
1.7910 -/* confdefs.h. */
1.7911 -_ACEOF
1.7912 -cat confdefs.h >>conftest.$ac_ext
1.7913 -cat >>conftest.$ac_ext <<_ACEOF
1.7914 -/* end confdefs.h. */
1.7915 -
1.7916 -int
1.7917 -main ()
1.7918 -{
1.7919 -
1.7920 - ;
1.7921 - return 0;
1.7922 -}
1.7923 -_ACEOF
1.7924 -rm -f conftest.$ac_objext
1.7925 -if { (ac_try="$ac_compile"
1.7926 -case "(($ac_try" in
1.7927 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7928 - *) ac_try_echo=$ac_try;;
1.7929 -esac
1.7930 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7931 - (eval "$ac_compile") 2>conftest.er1
1.7932 - ac_status=$?
1.7933 - grep -v '^ *+' conftest.er1 >conftest.err
1.7934 - rm -f conftest.er1
1.7935 - cat conftest.err >&5
1.7936 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7937 - (exit $ac_status); } && {
1.7938 - test -z "$ac_c_werror_flag" ||
1.7939 - test ! -s conftest.err
1.7940 - } && test -s conftest.$ac_objext; then
1.7941 - ac_cv_prog_cc_g=yes
1.7942 -else
1.7943 - echo "$as_me: failed program was:" >&5
1.7944 -sed 's/^/| /' conftest.$ac_ext >&5
1.7945 -
1.7946 - CFLAGS=""
1.7947 - cat >conftest.$ac_ext <<_ACEOF
1.7948 -/* confdefs.h. */
1.7949 -_ACEOF
1.7950 -cat confdefs.h >>conftest.$ac_ext
1.7951 -cat >>conftest.$ac_ext <<_ACEOF
1.7952 -/* end confdefs.h. */
1.7953 -
1.7954 -int
1.7955 -main ()
1.7956 -{
1.7957 -
1.7958 - ;
1.7959 - return 0;
1.7960 -}
1.7961 -_ACEOF
1.7962 -rm -f conftest.$ac_objext
1.7963 -if { (ac_try="$ac_compile"
1.7964 -case "(($ac_try" in
1.7965 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7966 - *) ac_try_echo=$ac_try;;
1.7967 -esac
1.7968 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7969 - (eval "$ac_compile") 2>conftest.er1
1.7970 - ac_status=$?
1.7971 - grep -v '^ *+' conftest.er1 >conftest.err
1.7972 - rm -f conftest.er1
1.7973 - cat conftest.err >&5
1.7974 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7975 - (exit $ac_status); } && {
1.7976 - test -z "$ac_c_werror_flag" ||
1.7977 - test ! -s conftest.err
1.7978 - } && test -s conftest.$ac_objext; then
1.7979 - :
1.7980 -else
1.7981 - echo "$as_me: failed program was:" >&5
1.7982 -sed 's/^/| /' conftest.$ac_ext >&5
1.7983 -
1.7984 - ac_c_werror_flag=$ac_save_c_werror_flag
1.7985 - CFLAGS="-g"
1.7986 - cat >conftest.$ac_ext <<_ACEOF
1.7987 -/* confdefs.h. */
1.7988 -_ACEOF
1.7989 -cat confdefs.h >>conftest.$ac_ext
1.7990 -cat >>conftest.$ac_ext <<_ACEOF
1.7991 -/* end confdefs.h. */
1.7992 -
1.7993 -int
1.7994 -main ()
1.7995 -{
1.7996 -
1.7997 - ;
1.7998 - return 0;
1.7999 -}
1.8000 -_ACEOF
1.8001 -rm -f conftest.$ac_objext
1.8002 -if { (ac_try="$ac_compile"
1.8003 -case "(($ac_try" in
1.8004 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.8005 - *) ac_try_echo=$ac_try;;
1.8006 -esac
1.8007 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.8008 - (eval "$ac_compile") 2>conftest.er1
1.8009 - ac_status=$?
1.8010 - grep -v '^ *+' conftest.er1 >conftest.err
1.8011 - rm -f conftest.er1
1.8012 - cat conftest.err >&5
1.8013 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8014 - (exit $ac_status); } && {
1.8015 - test -z "$ac_c_werror_flag" ||
1.8016 - test ! -s conftest.err
1.8017 - } && test -s conftest.$ac_objext; then
1.8018 - ac_cv_prog_cc_g=yes
1.8019 -else
1.8020 - echo "$as_me: failed program was:" >&5
1.8021 -sed 's/^/| /' conftest.$ac_ext >&5
1.8022 -
1.8023 -
1.8024 -fi
1.8025 -
1.8026 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.8027 -fi
1.8028 -
1.8029 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.8030 -fi
1.8031 -
1.8032 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.8033 - ac_c_werror_flag=$ac_save_c_werror_flag
1.8034 -fi
1.8035 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.8036 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.8037 -if test "$ac_test_CFLAGS" = set; then
1.8038 - CFLAGS=$ac_save_CFLAGS
1.8039 -elif test $ac_cv_prog_cc_g = yes; then
1.8040 - if test "$GCC" = yes; then
1.8041 - CFLAGS="-g -O2"
1.8042 - else
1.8043 - CFLAGS="-g"
1.8044 - fi
1.8045 -else
1.8046 - if test "$GCC" = yes; then
1.8047 - CFLAGS="-O2"
1.8048 - else
1.8049 - CFLAGS=
1.8050 - fi
1.8051 -fi
1.8052 -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
1.8053 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
1.8054 -if test "${ac_cv_prog_cc_c89+set}" = set; then
1.8055 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.8056 -else
1.8057 - ac_cv_prog_cc_c89=no
1.8058 -ac_save_CC=$CC
1.8059 -cat >conftest.$ac_ext <<_ACEOF
1.8060 -/* confdefs.h. */
1.8061 -_ACEOF
1.8062 -cat confdefs.h >>conftest.$ac_ext
1.8063 -cat >>conftest.$ac_ext <<_ACEOF
1.8064 -/* end confdefs.h. */
1.8065 -#include <stdarg.h>
1.8066 -#include <stdio.h>
1.8067 -#include <sys/types.h>
1.8068 -#include <sys/stat.h>
1.8069 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.8070 -struct buf { int x; };
1.8071 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.8072 -static char *e (p, i)
1.8073 - char **p;
1.8074 - int i;
1.8075 -{
1.8076 - return p[i];
1.8077 -}
1.8078 -static char *f (char * (*g) (char **, int), char **p, ...)
1.8079 -{
1.8080 - char *s;
1.8081 - va_list v;
1.8082 - va_start (v,p);
1.8083 - s = g (p, va_arg (v,int));
1.8084 - va_end (v);
1.8085 - return s;
1.8086 -}
1.8087 -
1.8088 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.8089 - function prototypes and stuff, but not '\xHH' hex character constants.
1.8090 - These don't provoke an error unfortunately, instead are silently treated
1.8091 - as 'x'. The following induces an error, until -std is added to get
1.8092 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.8093 - array size at least. It's necessary to write '\x00'==0 to get something
1.8094 - that's true only with -std. */
1.8095 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.8096 -
1.8097 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.8098 - inside strings and character constants. */
1.8099 -#define FOO(x) 'x'
1.8100 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.8101 -
1.8102 -int test (int i, double x);
1.8103 -struct s1 {int (*f) (int a);};
1.8104 -struct s2 {int (*f) (double a);};
1.8105 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.8106 -int argc;
1.8107 -char **argv;
1.8108 -int
1.8109 -main ()
1.8110 -{
1.8111 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.8112 - ;
1.8113 - return 0;
1.8114 -}
1.8115 -_ACEOF
1.8116 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.8117 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.8118 -do
1.8119 - CC="$ac_save_CC $ac_arg"
1.8120 - rm -f conftest.$ac_objext
1.8121 -if { (ac_try="$ac_compile"
1.8122 -case "(($ac_try" in
1.8123 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.8124 - *) ac_try_echo=$ac_try;;
1.8125 -esac
1.8126 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.8127 - (eval "$ac_compile") 2>conftest.er1
1.8128 - ac_status=$?
1.8129 - grep -v '^ *+' conftest.er1 >conftest.err
1.8130 - rm -f conftest.er1
1.8131 - cat conftest.err >&5
1.8132 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8133 - (exit $ac_status); } && {
1.8134 - test -z "$ac_c_werror_flag" ||
1.8135 - test ! -s conftest.err
1.8136 - } && test -s conftest.$ac_objext; then
1.8137 - ac_cv_prog_cc_c89=$ac_arg
1.8138 -else
1.8139 - echo "$as_me: failed program was:" >&5
1.8140 -sed 's/^/| /' conftest.$ac_ext >&5
1.8141 -
1.8142 -
1.8143 -fi
1.8144 -
1.8145 -rm -f core conftest.err conftest.$ac_objext
1.8146 - test "x$ac_cv_prog_cc_c89" != "xno" && break
1.8147 -done
1.8148 -rm -f conftest.$ac_ext
1.8149 -CC=$ac_save_CC
1.8150 -
1.8151 -fi
1.8152 -# AC_CACHE_VAL
1.8153 -case "x$ac_cv_prog_cc_c89" in
1.8154 - x)
1.8155 - { echo "$as_me:$LINENO: result: none needed" >&5
1.8156 -echo "${ECHO_T}none needed" >&6; } ;;
1.8157 - xno)
1.8158 - { echo "$as_me:$LINENO: result: unsupported" >&5
1.8159 -echo "${ECHO_T}unsupported" >&6; } ;;
1.8160 - *)
1.8161 - CC="$CC $ac_cv_prog_cc_c89"
1.8162 - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1.8163 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.8164 -esac
1.8165 -
1.8166 -
1.8167 -ac_ext=c
1.8168 -ac_cpp='$CPP $CPPFLAGS'
1.8169 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.8170 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.8171 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.8172 -
1.8173 -depcc="$CC" am_compiler_list=
1.8174 -
1.8175 -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.8176 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.8177 -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.8178 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.8179 -else
1.8180 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.8181 - # We make a subdir and do the tests there. Otherwise we can end up
1.8182 - # making bogus files that we don't know about and never remove. For
1.8183 - # instance it was reported that on HP-UX the gcc test will end up
1.8184 - # making a dummy file named `D' -- because `-MD' means `put the output
1.8185 - # in D'.
1.8186 - mkdir conftest.dir
1.8187 - # Copy depcomp to subdir because otherwise we won't find it if we're
1.8188 - # using a relative directory.
1.8189 - cp "$am_depcomp" conftest.dir
1.8190 - cd conftest.dir
1.8191 - # We will build objects and dependencies in a subdirectory because
1.8192 - # it helps to detect inapplicable dependency modes. For instance
1.8193 - # both Tru64's cc and ICC support -MD to output dependencies as a
1.8194 - # side effect of compilation, but ICC will put the dependencies in
1.8195 - # the current directory while Tru64 will put them in the object
1.8196 - # directory.
1.8197 - mkdir sub
1.8198 -
1.8199 - am_cv_CC_dependencies_compiler_type=none
1.8200 - if test "$am_compiler_list" = ""; then
1.8201 - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.8202 - fi
1.8203 - for depmode in $am_compiler_list; do
1.8204 - # Setup a source with many dependencies, because some compilers
1.8205 - # like to wrap large dependency lists on column 80 (with \), and
1.8206 - # we should not choose a depcomp mode which is confused by this.
1.8207 - #
1.8208 - # We need to recreate these files for each test, as the compiler may
1.8209 - # overwrite some of them when testing with obscure command lines.
1.8210 - # This happens at least with the AIX C compiler.
1.8211 - : > sub/conftest.c
1.8212 - for i in 1 2 3 4 5 6; do
1.8213 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.8214 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.8215 - # Solaris 8's {/usr,}/bin/sh.
1.8216 - touch sub/conftst$i.h
1.8217 - done
1.8218 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.8219 -
1.8220 - case $depmode in
1.8221 - nosideeffect)
1.8222 - # after this tag, mechanisms are not by side-effect, so they'll
1.8223 - # only be used when explicitly requested
1.8224 - if test "x$enable_dependency_tracking" = xyes; then
1.8225 - continue
1.8226 - else
1.8227 - break
1.8228 - fi
1.8229 - ;;
1.8230 - none) break ;;
1.8231 - esac
1.8232 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.8233 - # mode. It turns out that the SunPro C++ compiler does not properly
1.8234 - # handle `-M -o', and we need to detect this.
1.8235 - if depmode=$depmode \
1.8236 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.8237 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.8238 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.8239 - >/dev/null 2>conftest.err &&
1.8240 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.8241 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.8242 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.8243 - # icc doesn't choke on unknown options, it will just issue warnings
1.8244 - # or remarks (even with -Werror). So we grep stderr for any message
1.8245 - # that says an option was ignored or not supported.
1.8246 - # When given -MP, icc 7.0 and 7.1 complain thusly:
1.8247 - # icc: Command line warning: ignoring option '-M'; no argument required
1.8248 - # The diagnosis changed in icc 8.0:
1.8249 - # icc: Command line remark: option '-MP' not supported
1.8250 - if (grep 'ignoring option' conftest.err ||
1.8251 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.8252 - am_cv_CC_dependencies_compiler_type=$depmode
1.8253 - break
1.8254 - fi
1.8255 - fi
1.8256 - done
1.8257 -
1.8258 - cd ..
1.8259 - rm -rf conftest.dir
1.8260 -else
1.8261 - am_cv_CC_dependencies_compiler_type=none
1.8262 -fi
1.8263 -
1.8264 -fi
1.8265 -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1.8266 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
1.8267 -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.8268 -
1.8269 -
1.8270 -
1.8271 -if
1.8272 - test "x$enable_dependency_tracking" != xno \
1.8273 - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1.8274 - am__fastdepCC_TRUE=
1.8275 - am__fastdepCC_FALSE='#'
1.8276 -else
1.8277 - am__fastdepCC_TRUE='#'
1.8278 - am__fastdepCC_FALSE=
1.8279 -fi
1.8280 -
1.8281 -
1.8282 -ac_ext=c
1.8283 -ac_cpp='$CPP $CPPFLAGS'
1.8284 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.8285 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.8286 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.8287 -if test -n "$ac_tool_prefix"; then
1.8288 - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.8289 -set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.8290 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.8291 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.8292 -if test "${ac_cv_prog_CC+set}" = set; then
1.8293 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.8294 -else
1.8295 - if test -n "$CC"; then
1.8296 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.8297 -else
1.8298 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.8299 -for as_dir in $PATH
1.8300 -do
1.8301 - IFS=$as_save_IFS
1.8302 - test -z "$as_dir" && as_dir=.
1.8303 - for ac_exec_ext in '' $ac_executable_extensions; do
1.8304 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8305 - ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.8306 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8307 - break 2
1.8308 - fi
1.8309 -done
1.8310 -done
1.8311 -IFS=$as_save_IFS
1.8312 -
1.8313 -fi
1.8314 -fi
1.8315 -CC=$ac_cv_prog_CC
1.8316 -if test -n "$CC"; then
1.8317 - { echo "$as_me:$LINENO: result: $CC" >&5
1.8318 -echo "${ECHO_T}$CC" >&6; }
1.8319 -else
1.8320 - { echo "$as_me:$LINENO: result: no" >&5
1.8321 -echo "${ECHO_T}no" >&6; }
1.8322 -fi
1.8323 -
1.8324 -
1.8325 -fi
1.8326 -if test -z "$ac_cv_prog_CC"; then
1.8327 - ac_ct_CC=$CC
1.8328 - # Extract the first word of "gcc", so it can be a program name with args.
1.8329 -set dummy gcc; ac_word=$2
1.8330 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.8331 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.8332 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.8333 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.8334 -else
1.8335 - if test -n "$ac_ct_CC"; then
1.8336 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.8337 -else
1.8338 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.8339 -for as_dir in $PATH
1.8340 -do
1.8341 - IFS=$as_save_IFS
1.8342 - test -z "$as_dir" && as_dir=.
1.8343 - for ac_exec_ext in '' $ac_executable_extensions; do
1.8344 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8345 - ac_cv_prog_ac_ct_CC="gcc"
1.8346 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8347 - break 2
1.8348 - fi
1.8349 -done
1.8350 -done
1.8351 -IFS=$as_save_IFS
1.8352 -
1.8353 -fi
1.8354 -fi
1.8355 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.8356 -if test -n "$ac_ct_CC"; then
1.8357 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.8358 -echo "${ECHO_T}$ac_ct_CC" >&6; }
1.8359 -else
1.8360 - { echo "$as_me:$LINENO: result: no" >&5
1.8361 -echo "${ECHO_T}no" >&6; }
1.8362 -fi
1.8363 -
1.8364 - if test "x$ac_ct_CC" = x; then
1.8365 - CC=""
1.8366 - else
1.8367 - case $cross_compiling:$ac_tool_warned in
1.8368 -yes:)
1.8369 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.8370 -whose name does not start with the host triplet. If you think this
1.8371 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.8372 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.8373 -whose name does not start with the host triplet. If you think this
1.8374 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.8375 -ac_tool_warned=yes ;;
1.8376 -esac
1.8377 - CC=$ac_ct_CC
1.8378 - fi
1.8379 -else
1.8380 - CC="$ac_cv_prog_CC"
1.8381 -fi
1.8382 -
1.8383 -if test -z "$CC"; then
1.8384 - if test -n "$ac_tool_prefix"; then
1.8385 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.8386 -set dummy ${ac_tool_prefix}cc; ac_word=$2
1.8387 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.8388 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.8389 -if test "${ac_cv_prog_CC+set}" = set; then
1.8390 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.8391 -else
1.8392 - if test -n "$CC"; then
1.8393 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.8394 -else
1.8395 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.8396 -for as_dir in $PATH
1.8397 -do
1.8398 - IFS=$as_save_IFS
1.8399 - test -z "$as_dir" && as_dir=.
1.8400 - for ac_exec_ext in '' $ac_executable_extensions; do
1.8401 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8402 - ac_cv_prog_CC="${ac_tool_prefix}cc"
1.8403 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8404 - break 2
1.8405 - fi
1.8406 -done
1.8407 -done
1.8408 -IFS=$as_save_IFS
1.8409 -
1.8410 -fi
1.8411 -fi
1.8412 -CC=$ac_cv_prog_CC
1.8413 -if test -n "$CC"; then
1.8414 - { echo "$as_me:$LINENO: result: $CC" >&5
1.8415 -echo "${ECHO_T}$CC" >&6; }
1.8416 -else
1.8417 - { echo "$as_me:$LINENO: result: no" >&5
1.8418 -echo "${ECHO_T}no" >&6; }
1.8419 -fi
1.8420 -
1.8421 -
1.8422 - fi
1.8423 -fi
1.8424 -if test -z "$CC"; then
1.8425 - # Extract the first word of "cc", so it can be a program name with args.
1.8426 -set dummy cc; ac_word=$2
1.8427 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.8428 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.8429 -if test "${ac_cv_prog_CC+set}" = set; then
1.8430 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.8431 -else
1.8432 - if test -n "$CC"; then
1.8433 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.8434 -else
1.8435 - ac_prog_rejected=no
1.8436 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.8437 -for as_dir in $PATH
1.8438 -do
1.8439 - IFS=$as_save_IFS
1.8440 - test -z "$as_dir" && as_dir=.
1.8441 - for ac_exec_ext in '' $ac_executable_extensions; do
1.8442 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8443 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.8444 - ac_prog_rejected=yes
1.8445 - continue
1.8446 - fi
1.8447 - ac_cv_prog_CC="cc"
1.8448 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8449 - break 2
1.8450 - fi
1.8451 -done
1.8452 -done
1.8453 -IFS=$as_save_IFS
1.8454 -
1.8455 -if test $ac_prog_rejected = yes; then
1.8456 - # We found a bogon in the path, so make sure we never use it.
1.8457 - set dummy $ac_cv_prog_CC
1.8458 - shift
1.8459 - if test $# != 0; then
1.8460 - # We chose a different compiler from the bogus one.
1.8461 - # However, it has the same basename, so the bogon will be chosen
1.8462 - # first if we set CC to just the basename; use the full file name.
1.8463 - shift
1.8464 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.8465 - fi
1.8466 -fi
1.8467 -fi
1.8468 -fi
1.8469 -CC=$ac_cv_prog_CC
1.8470 -if test -n "$CC"; then
1.8471 - { echo "$as_me:$LINENO: result: $CC" >&5
1.8472 -echo "${ECHO_T}$CC" >&6; }
1.8473 -else
1.8474 - { echo "$as_me:$LINENO: result: no" >&5
1.8475 -echo "${ECHO_T}no" >&6; }
1.8476 -fi
1.8477 -
1.8478 -
1.8479 -fi
1.8480 -if test -z "$CC"; then
1.8481 - if test -n "$ac_tool_prefix"; then
1.8482 - for ac_prog in cl.exe
1.8483 - do
1.8484 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.8485 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.8486 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.8487 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.8488 -if test "${ac_cv_prog_CC+set}" = set; then
1.8489 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.8490 -else
1.8491 - if test -n "$CC"; then
1.8492 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.8493 -else
1.8494 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.8495 -for as_dir in $PATH
1.8496 -do
1.8497 - IFS=$as_save_IFS
1.8498 - test -z "$as_dir" && as_dir=.
1.8499 - for ac_exec_ext in '' $ac_executable_extensions; do
1.8500 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8501 - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.8502 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8503 - break 2
1.8504 - fi
1.8505 -done
1.8506 -done
1.8507 -IFS=$as_save_IFS
1.8508 -
1.8509 -fi
1.8510 -fi
1.8511 -CC=$ac_cv_prog_CC
1.8512 -if test -n "$CC"; then
1.8513 - { echo "$as_me:$LINENO: result: $CC" >&5
1.8514 -echo "${ECHO_T}$CC" >&6; }
1.8515 -else
1.8516 - { echo "$as_me:$LINENO: result: no" >&5
1.8517 -echo "${ECHO_T}no" >&6; }
1.8518 -fi
1.8519 -
1.8520 -
1.8521 - test -n "$CC" && break
1.8522 - done
1.8523 -fi
1.8524 -if test -z "$CC"; then
1.8525 - ac_ct_CC=$CC
1.8526 - for ac_prog in cl.exe
1.8527 -do
1.8528 - # Extract the first word of "$ac_prog", so it can be a program name with args.
1.8529 -set dummy $ac_prog; ac_word=$2
1.8530 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.8531 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.8532 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.8533 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.8534 -else
1.8535 - if test -n "$ac_ct_CC"; then
1.8536 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.8537 -else
1.8538 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.8539 -for as_dir in $PATH
1.8540 -do
1.8541 - IFS=$as_save_IFS
1.8542 - test -z "$as_dir" && as_dir=.
1.8543 - for ac_exec_ext in '' $ac_executable_extensions; do
1.8544 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8545 - ac_cv_prog_ac_ct_CC="$ac_prog"
1.8546 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8547 - break 2
1.8548 - fi
1.8549 -done
1.8550 -done
1.8551 -IFS=$as_save_IFS
1.8552 -
1.8553 -fi
1.8554 -fi
1.8555 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.8556 -if test -n "$ac_ct_CC"; then
1.8557 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.8558 -echo "${ECHO_T}$ac_ct_CC" >&6; }
1.8559 -else
1.8560 - { echo "$as_me:$LINENO: result: no" >&5
1.8561 -echo "${ECHO_T}no" >&6; }
1.8562 -fi
1.8563 -
1.8564 -
1.8565 - test -n "$ac_ct_CC" && break
1.8566 -done
1.8567 -
1.8568 - if test "x$ac_ct_CC" = x; then
1.8569 - CC=""
1.8570 - else
1.8571 - case $cross_compiling:$ac_tool_warned in
1.8572 -yes:)
1.8573 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.8574 -whose name does not start with the host triplet. If you think this
1.8575 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.8576 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.8577 -whose name does not start with the host triplet. If you think this
1.8578 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.8579 -ac_tool_warned=yes ;;
1.8580 -esac
1.8581 - CC=$ac_ct_CC
1.8582 - fi
1.8583 -fi
1.8584 -
1.8585 -fi
1.8586 -
1.8587 -
1.8588 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.8589 -See \`config.log' for more details." >&5
1.8590 -echo "$as_me: error: no acceptable C compiler found in \$PATH
1.8591 -See \`config.log' for more details." >&2;}
1.8592 - { (exit 1); exit 1; }; }
1.8593 -
1.8594 -# Provide some information about the compiler.
1.8595 -echo "$as_me:$LINENO: checking for C compiler version" >&5
1.8596 -ac_compiler=`set X $ac_compile; echo $2`
1.8597 -{ (ac_try="$ac_compiler --version >&5"
1.8598 -case "(($ac_try" in
1.8599 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.8600 - *) ac_try_echo=$ac_try;;
1.8601 -esac
1.8602 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.8603 - (eval "$ac_compiler --version >&5") 2>&5
1.8604 - ac_status=$?
1.8605 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8606 - (exit $ac_status); }
1.8607 -{ (ac_try="$ac_compiler -v >&5"
1.8608 -case "(($ac_try" in
1.8609 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.8610 - *) ac_try_echo=$ac_try;;
1.8611 -esac
1.8612 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.8613 - (eval "$ac_compiler -v >&5") 2>&5
1.8614 - ac_status=$?
1.8615 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8616 - (exit $ac_status); }
1.8617 -{ (ac_try="$ac_compiler -V >&5"
1.8618 -case "(($ac_try" in
1.8619 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.8620 - *) ac_try_echo=$ac_try;;
1.8621 -esac
1.8622 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.8623 - (eval "$ac_compiler -V >&5") 2>&5
1.8624 - ac_status=$?
1.8625 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8626 - (exit $ac_status); }
1.8627 -
1.8628 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.8629 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.8630 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.8631 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.8632 -else
1.8633 - cat >conftest.$ac_ext <<_ACEOF
1.8634 -/* confdefs.h. */
1.8635 -_ACEOF
1.8636 -cat confdefs.h >>conftest.$ac_ext
1.8637 -cat >>conftest.$ac_ext <<_ACEOF
1.8638 -/* end confdefs.h. */
1.8639 -
1.8640 -int
1.8641 -main ()
1.8642 -{
1.8643 -#ifndef __GNUC__
1.8644 - choke me
1.8645 -#endif
1.8646 -
1.8647 - ;
1.8648 - return 0;
1.8649 -}
1.8650 -_ACEOF
1.8651 -rm -f conftest.$ac_objext
1.8652 -if { (ac_try="$ac_compile"
1.8653 -case "(($ac_try" in
1.8654 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.8655 - *) ac_try_echo=$ac_try;;
1.8656 -esac
1.8657 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.8658 - (eval "$ac_compile") 2>conftest.er1
1.8659 - ac_status=$?
1.8660 - grep -v '^ *+' conftest.er1 >conftest.err
1.8661 - rm -f conftest.er1
1.8662 - cat conftest.err >&5
1.8663 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8664 - (exit $ac_status); } && {
1.8665 - test -z "$ac_c_werror_flag" ||
1.8666 - test ! -s conftest.err
1.8667 - } && test -s conftest.$ac_objext; then
1.8668 - ac_compiler_gnu=yes
1.8669 -else
1.8670 - echo "$as_me: failed program was:" >&5
1.8671 -sed 's/^/| /' conftest.$ac_ext >&5
1.8672 -
1.8673 - ac_compiler_gnu=no
1.8674 -fi
1.8675 -
1.8676 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.8677 -ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.8678 -
1.8679 -fi
1.8680 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.8681 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.8682 -GCC=`test $ac_compiler_gnu = yes && echo yes`
1.8683 -ac_test_CFLAGS=${CFLAGS+set}
1.8684 -ac_save_CFLAGS=$CFLAGS
1.8685 -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.8686 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.8687 -if test "${ac_cv_prog_cc_g+set}" = set; then
1.8688 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.8689 -else
1.8690 - ac_save_c_werror_flag=$ac_c_werror_flag
1.8691 - ac_c_werror_flag=yes
1.8692 - ac_cv_prog_cc_g=no
1.8693 - CFLAGS="-g"
1.8694 - cat >conftest.$ac_ext <<_ACEOF
1.8695 -/* confdefs.h. */
1.8696 -_ACEOF
1.8697 -cat confdefs.h >>conftest.$ac_ext
1.8698 -cat >>conftest.$ac_ext <<_ACEOF
1.8699 -/* end confdefs.h. */
1.8700 -
1.8701 -int
1.8702 -main ()
1.8703 -{
1.8704 -
1.8705 - ;
1.8706 - return 0;
1.8707 -}
1.8708 -_ACEOF
1.8709 -rm -f conftest.$ac_objext
1.8710 -if { (ac_try="$ac_compile"
1.8711 -case "(($ac_try" in
1.8712 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.8713 - *) ac_try_echo=$ac_try;;
1.8714 -esac
1.8715 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.8716 - (eval "$ac_compile") 2>conftest.er1
1.8717 - ac_status=$?
1.8718 - grep -v '^ *+' conftest.er1 >conftest.err
1.8719 - rm -f conftest.er1
1.8720 - cat conftest.err >&5
1.8721 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8722 - (exit $ac_status); } && {
1.8723 - test -z "$ac_c_werror_flag" ||
1.8724 - test ! -s conftest.err
1.8725 - } && test -s conftest.$ac_objext; then
1.8726 - ac_cv_prog_cc_g=yes
1.8727 -else
1.8728 - echo "$as_me: failed program was:" >&5
1.8729 -sed 's/^/| /' conftest.$ac_ext >&5
1.8730 -
1.8731 - CFLAGS=""
1.8732 - cat >conftest.$ac_ext <<_ACEOF
1.8733 -/* confdefs.h. */
1.8734 -_ACEOF
1.8735 -cat confdefs.h >>conftest.$ac_ext
1.8736 -cat >>conftest.$ac_ext <<_ACEOF
1.8737 -/* end confdefs.h. */
1.8738 -
1.8739 -int
1.8740 -main ()
1.8741 -{
1.8742 -
1.8743 - ;
1.8744 - return 0;
1.8745 -}
1.8746 -_ACEOF
1.8747 -rm -f conftest.$ac_objext
1.8748 -if { (ac_try="$ac_compile"
1.8749 -case "(($ac_try" in
1.8750 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.8751 - *) ac_try_echo=$ac_try;;
1.8752 -esac
1.8753 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.8754 - (eval "$ac_compile") 2>conftest.er1
1.8755 - ac_status=$?
1.8756 - grep -v '^ *+' conftest.er1 >conftest.err
1.8757 - rm -f conftest.er1
1.8758 - cat conftest.err >&5
1.8759 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8760 - (exit $ac_status); } && {
1.8761 - test -z "$ac_c_werror_flag" ||
1.8762 - test ! -s conftest.err
1.8763 - } && test -s conftest.$ac_objext; then
1.8764 - :
1.8765 -else
1.8766 - echo "$as_me: failed program was:" >&5
1.8767 -sed 's/^/| /' conftest.$ac_ext >&5
1.8768 -
1.8769 - ac_c_werror_flag=$ac_save_c_werror_flag
1.8770 - CFLAGS="-g"
1.8771 - cat >conftest.$ac_ext <<_ACEOF
1.8772 -/* confdefs.h. */
1.8773 -_ACEOF
1.8774 -cat confdefs.h >>conftest.$ac_ext
1.8775 -cat >>conftest.$ac_ext <<_ACEOF
1.8776 -/* end confdefs.h. */
1.8777 -
1.8778 -int
1.8779 -main ()
1.8780 -{
1.8781 -
1.8782 - ;
1.8783 - return 0;
1.8784 -}
1.8785 -_ACEOF
1.8786 -rm -f conftest.$ac_objext
1.8787 -if { (ac_try="$ac_compile"
1.8788 -case "(($ac_try" in
1.8789 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.8790 - *) ac_try_echo=$ac_try;;
1.8791 -esac
1.8792 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.8793 - (eval "$ac_compile") 2>conftest.er1
1.8794 - ac_status=$?
1.8795 - grep -v '^ *+' conftest.er1 >conftest.err
1.8796 - rm -f conftest.er1
1.8797 - cat conftest.err >&5
1.8798 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8799 - (exit $ac_status); } && {
1.8800 - test -z "$ac_c_werror_flag" ||
1.8801 - test ! -s conftest.err
1.8802 - } && test -s conftest.$ac_objext; then
1.8803 - ac_cv_prog_cc_g=yes
1.8804 -else
1.8805 - echo "$as_me: failed program was:" >&5
1.8806 -sed 's/^/| /' conftest.$ac_ext >&5
1.8807 -
1.8808 -
1.8809 -fi
1.8810 -
1.8811 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.8812 -fi
1.8813 -
1.8814 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.8815 -fi
1.8816 -
1.8817 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.8818 - ac_c_werror_flag=$ac_save_c_werror_flag
1.8819 -fi
1.8820 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.8821 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.8822 -if test "$ac_test_CFLAGS" = set; then
1.8823 - CFLAGS=$ac_save_CFLAGS
1.8824 -elif test $ac_cv_prog_cc_g = yes; then
1.8825 - if test "$GCC" = yes; then
1.8826 - CFLAGS="-g -O2"
1.8827 - else
1.8828 - CFLAGS="-g"
1.8829 - fi
1.8830 -else
1.8831 - if test "$GCC" = yes; then
1.8832 - CFLAGS="-O2"
1.8833 - else
1.8834 - CFLAGS=
1.8835 - fi
1.8836 -fi
1.8837 -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
1.8838 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
1.8839 -if test "${ac_cv_prog_cc_c89+set}" = set; then
1.8840 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.8841 -else
1.8842 - ac_cv_prog_cc_c89=no
1.8843 -ac_save_CC=$CC
1.8844 -cat >conftest.$ac_ext <<_ACEOF
1.8845 -/* confdefs.h. */
1.8846 -_ACEOF
1.8847 -cat confdefs.h >>conftest.$ac_ext
1.8848 -cat >>conftest.$ac_ext <<_ACEOF
1.8849 -/* end confdefs.h. */
1.8850 -#include <stdarg.h>
1.8851 -#include <stdio.h>
1.8852 -#include <sys/types.h>
1.8853 -#include <sys/stat.h>
1.8854 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.8855 -struct buf { int x; };
1.8856 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.8857 -static char *e (p, i)
1.8858 - char **p;
1.8859 - int i;
1.8860 -{
1.8861 - return p[i];
1.8862 -}
1.8863 -static char *f (char * (*g) (char **, int), char **p, ...)
1.8864 -{
1.8865 - char *s;
1.8866 - va_list v;
1.8867 - va_start (v,p);
1.8868 - s = g (p, va_arg (v,int));
1.8869 - va_end (v);
1.8870 - return s;
1.8871 -}
1.8872 -
1.8873 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.8874 - function prototypes and stuff, but not '\xHH' hex character constants.
1.8875 - These don't provoke an error unfortunately, instead are silently treated
1.8876 - as 'x'. The following induces an error, until -std is added to get
1.8877 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.8878 - array size at least. It's necessary to write '\x00'==0 to get something
1.8879 - that's true only with -std. */
1.8880 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.8881 -
1.8882 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.8883 - inside strings and character constants. */
1.8884 -#define FOO(x) 'x'
1.8885 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.8886 -
1.8887 -int test (int i, double x);
1.8888 -struct s1 {int (*f) (int a);};
1.8889 -struct s2 {int (*f) (double a);};
1.8890 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.8891 -int argc;
1.8892 -char **argv;
1.8893 -int
1.8894 -main ()
1.8895 -{
1.8896 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.8897 - ;
1.8898 - return 0;
1.8899 -}
1.8900 -_ACEOF
1.8901 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.8902 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.8903 -do
1.8904 - CC="$ac_save_CC $ac_arg"
1.8905 - rm -f conftest.$ac_objext
1.8906 -if { (ac_try="$ac_compile"
1.8907 -case "(($ac_try" in
1.8908 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.8909 - *) ac_try_echo=$ac_try;;
1.8910 -esac
1.8911 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.8912 - (eval "$ac_compile") 2>conftest.er1
1.8913 - ac_status=$?
1.8914 - grep -v '^ *+' conftest.er1 >conftest.err
1.8915 - rm -f conftest.er1
1.8916 - cat conftest.err >&5
1.8917 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8918 - (exit $ac_status); } && {
1.8919 - test -z "$ac_c_werror_flag" ||
1.8920 - test ! -s conftest.err
1.8921 - } && test -s conftest.$ac_objext; then
1.8922 - ac_cv_prog_cc_c89=$ac_arg
1.8923 -else
1.8924 - echo "$as_me: failed program was:" >&5
1.8925 -sed 's/^/| /' conftest.$ac_ext >&5
1.8926 -
1.8927 -
1.8928 -fi
1.8929 -
1.8930 -rm -f core conftest.err conftest.$ac_objext
1.8931 - test "x$ac_cv_prog_cc_c89" != "xno" && break
1.8932 -done
1.8933 -rm -f conftest.$ac_ext
1.8934 -CC=$ac_save_CC
1.8935 -
1.8936 -fi
1.8937 -# AC_CACHE_VAL
1.8938 -case "x$ac_cv_prog_cc_c89" in
1.8939 - x)
1.8940 - { echo "$as_me:$LINENO: result: none needed" >&5
1.8941 -echo "${ECHO_T}none needed" >&6; } ;;
1.8942 - xno)
1.8943 - { echo "$as_me:$LINENO: result: unsupported" >&5
1.8944 -echo "${ECHO_T}unsupported" >&6; } ;;
1.8945 - *)
1.8946 - CC="$CC $ac_cv_prog_cc_c89"
1.8947 - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1.8948 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.8949 -esac
1.8950 -
1.8951 -
1.8952 -ac_ext=c
1.8953 -ac_cpp='$CPP $CPPFLAGS'
1.8954 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.8955 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.8956 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.8957 -
1.8958 -depcc="$CC" am_compiler_list=
1.8959 -
1.8960 -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.8961 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.8962 -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.8963 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.8964 -else
1.8965 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.8966 - # We make a subdir and do the tests there. Otherwise we can end up
1.8967 - # making bogus files that we don't know about and never remove. For
1.8968 - # instance it was reported that on HP-UX the gcc test will end up
1.8969 - # making a dummy file named `D' -- because `-MD' means `put the output
1.8970 - # in D'.
1.8971 - mkdir conftest.dir
1.8972 - # Copy depcomp to subdir because otherwise we won't find it if we're
1.8973 - # using a relative directory.
1.8974 - cp "$am_depcomp" conftest.dir
1.8975 - cd conftest.dir
1.8976 - # We will build objects and dependencies in a subdirectory because
1.8977 - # it helps to detect inapplicable dependency modes. For instance
1.8978 - # both Tru64's cc and ICC support -MD to output dependencies as a
1.8979 - # side effect of compilation, but ICC will put the dependencies in
1.8980 - # the current directory while Tru64 will put them in the object
1.8981 - # directory.
1.8982 - mkdir sub
1.8983 -
1.8984 - am_cv_CC_dependencies_compiler_type=none
1.8985 - if test "$am_compiler_list" = ""; then
1.8986 - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.8987 - fi
1.8988 - for depmode in $am_compiler_list; do
1.8989 - # Setup a source with many dependencies, because some compilers
1.8990 - # like to wrap large dependency lists on column 80 (with \), and
1.8991 - # we should not choose a depcomp mode which is confused by this.
1.8992 - #
1.8993 - # We need to recreate these files for each test, as the compiler may
1.8994 - # overwrite some of them when testing with obscure command lines.
1.8995 - # This happens at least with the AIX C compiler.
1.8996 - : > sub/conftest.c
1.8997 - for i in 1 2 3 4 5 6; do
1.8998 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.8999 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.9000 - # Solaris 8's {/usr,}/bin/sh.
1.9001 - touch sub/conftst$i.h
1.9002 - done
1.9003 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.9004 -
1.9005 - case $depmode in
1.9006 - nosideeffect)
1.9007 - # after this tag, mechanisms are not by side-effect, so they'll
1.9008 - # only be used when explicitly requested
1.9009 - if test "x$enable_dependency_tracking" = xyes; then
1.9010 - continue
1.9011 - else
1.9012 - break
1.9013 - fi
1.9014 - ;;
1.9015 - none) break ;;
1.9016 - esac
1.9017 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.9018 - # mode. It turns out that the SunPro C++ compiler does not properly
1.9019 - # handle `-M -o', and we need to detect this.
1.9020 - if depmode=$depmode \
1.9021 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.9022 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.9023 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.9024 - >/dev/null 2>conftest.err &&
1.9025 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.9026 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.9027 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.9028 - # icc doesn't choke on unknown options, it will just issue warnings
1.9029 - # or remarks (even with -Werror). So we grep stderr for any message
1.9030 - # that says an option was ignored or not supported.
1.9031 - # When given -MP, icc 7.0 and 7.1 complain thusly:
1.9032 - # icc: Command line warning: ignoring option '-M'; no argument required
1.9033 - # The diagnosis changed in icc 8.0:
1.9034 - # icc: Command line remark: option '-MP' not supported
1.9035 - if (grep 'ignoring option' conftest.err ||
1.9036 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.9037 - am_cv_CC_dependencies_compiler_type=$depmode
1.9038 - break
1.9039 - fi
1.9040 - fi
1.9041 - done
1.9042 -
1.9043 - cd ..
1.9044 - rm -rf conftest.dir
1.9045 -else
1.9046 - am_cv_CC_dependencies_compiler_type=none
1.9047 -fi
1.9048 -
1.9049 -fi
1.9050 -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1.9051 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
1.9052 -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.9053 -
1.9054 -
1.9055 -
1.9056 -if
1.9057 - test "x$enable_dependency_tracking" != xno \
1.9058 - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1.9059 - am__fastdepCC_TRUE=
1.9060 - am__fastdepCC_FALSE='#'
1.9061 -else
1.9062 - am__fastdepCC_TRUE='#'
1.9063 - am__fastdepCC_FALSE=
1.9064 -fi
1.9065 -
1.9066 -
1.9067 -
1.9068 -am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
1.9069 -
1.9070 -ac_ext=c
1.9071 -ac_cpp='$CPP $CPPFLAGS'
1.9072 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.9073 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.9074 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.9075 -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.9076 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.9077 -# On Suns, sometimes $CPP names a directory.
1.9078 -if test -n "$CPP" && test -d "$CPP"; then
1.9079 - CPP=
1.9080 -fi
1.9081 -if test -z "$CPP"; then
1.9082 - if test "${ac_cv_prog_CPP+set}" = set; then
1.9083 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.9084 -else
1.9085 - # Double quotes because CPP needs to be expanded
1.9086 - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1.9087 - do
1.9088 - ac_preproc_ok=false
1.9089 -for ac_c_preproc_warn_flag in '' yes
1.9090 -do
1.9091 - # Use a header file that comes with gcc, so configuring glibc
1.9092 - # with a fresh cross-compiler works.
1.9093 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.9094 - # <limits.h> exists even on freestanding compilers.
1.9095 - # On the NeXT, cc -E runs the code through the compiler's parser,
1.9096 - # not just through cpp. "Syntax error" is here to catch this case.
1.9097 - cat >conftest.$ac_ext <<_ACEOF
1.9098 -/* confdefs.h. */
1.9099 -_ACEOF
1.9100 -cat confdefs.h >>conftest.$ac_ext
1.9101 -cat >>conftest.$ac_ext <<_ACEOF
1.9102 -/* end confdefs.h. */
1.9103 -#ifdef __STDC__
1.9104 -# include <limits.h>
1.9105 -#else
1.9106 -# include <assert.h>
1.9107 -#endif
1.9108 - Syntax error
1.9109 -_ACEOF
1.9110 -if { (ac_try="$ac_cpp conftest.$ac_ext"
1.9111 -case "(($ac_try" in
1.9112 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.9113 - *) ac_try_echo=$ac_try;;
1.9114 -esac
1.9115 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.9116 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9117 - ac_status=$?
1.9118 - grep -v '^ *+' conftest.er1 >conftest.err
1.9119 - rm -f conftest.er1
1.9120 - cat conftest.err >&5
1.9121 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9122 - (exit $ac_status); } >/dev/null && {
1.9123 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.9124 - test ! -s conftest.err
1.9125 - }; then
1.9126 - :
1.9127 -else
1.9128 - echo "$as_me: failed program was:" >&5
1.9129 -sed 's/^/| /' conftest.$ac_ext >&5
1.9130 -
1.9131 - # Broken: fails on valid input.
1.9132 -continue
1.9133 -fi
1.9134 -
1.9135 -rm -f conftest.err conftest.$ac_ext
1.9136 -
1.9137 - # OK, works on sane cases. Now check whether nonexistent headers
1.9138 - # can be detected and how.
1.9139 - cat >conftest.$ac_ext <<_ACEOF
1.9140 -/* confdefs.h. */
1.9141 -_ACEOF
1.9142 -cat confdefs.h >>conftest.$ac_ext
1.9143 -cat >>conftest.$ac_ext <<_ACEOF
1.9144 -/* end confdefs.h. */
1.9145 -#include <ac_nonexistent.h>
1.9146 -_ACEOF
1.9147 -if { (ac_try="$ac_cpp conftest.$ac_ext"
1.9148 -case "(($ac_try" in
1.9149 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.9150 - *) ac_try_echo=$ac_try;;
1.9151 -esac
1.9152 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.9153 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9154 - ac_status=$?
1.9155 - grep -v '^ *+' conftest.er1 >conftest.err
1.9156 - rm -f conftest.er1
1.9157 - cat conftest.err >&5
1.9158 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9159 - (exit $ac_status); } >/dev/null && {
1.9160 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.9161 - test ! -s conftest.err
1.9162 - }; then
1.9163 - # Broken: success on invalid input.
1.9164 -continue
1.9165 -else
1.9166 - echo "$as_me: failed program was:" >&5
1.9167 -sed 's/^/| /' conftest.$ac_ext >&5
1.9168 -
1.9169 - # Passes both tests.
1.9170 -ac_preproc_ok=:
1.9171 -break
1.9172 -fi
1.9173 -
1.9174 -rm -f conftest.err conftest.$ac_ext
1.9175 -
1.9176 -done
1.9177 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.9178 -rm -f conftest.err conftest.$ac_ext
1.9179 -if $ac_preproc_ok; then
1.9180 - break
1.9181 -fi
1.9182 -
1.9183 - done
1.9184 - ac_cv_prog_CPP=$CPP
1.9185 -
1.9186 -fi
1.9187 - CPP=$ac_cv_prog_CPP
1.9188 -else
1.9189 - ac_cv_prog_CPP=$CPP
1.9190 -fi
1.9191 -{ echo "$as_me:$LINENO: result: $CPP" >&5
1.9192 -echo "${ECHO_T}$CPP" >&6; }
1.9193 -ac_preproc_ok=false
1.9194 -for ac_c_preproc_warn_flag in '' yes
1.9195 -do
1.9196 - # Use a header file that comes with gcc, so configuring glibc
1.9197 - # with a fresh cross-compiler works.
1.9198 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.9199 - # <limits.h> exists even on freestanding compilers.
1.9200 - # On the NeXT, cc -E runs the code through the compiler's parser,
1.9201 - # not just through cpp. "Syntax error" is here to catch this case.
1.9202 - cat >conftest.$ac_ext <<_ACEOF
1.9203 -/* confdefs.h. */
1.9204 -_ACEOF
1.9205 -cat confdefs.h >>conftest.$ac_ext
1.9206 -cat >>conftest.$ac_ext <<_ACEOF
1.9207 -/* end confdefs.h. */
1.9208 -#ifdef __STDC__
1.9209 -# include <limits.h>
1.9210 -#else
1.9211 -# include <assert.h>
1.9212 -#endif
1.9213 - Syntax error
1.9214 -_ACEOF
1.9215 -if { (ac_try="$ac_cpp conftest.$ac_ext"
1.9216 -case "(($ac_try" in
1.9217 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.9218 - *) ac_try_echo=$ac_try;;
1.9219 -esac
1.9220 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.9221 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9222 - ac_status=$?
1.9223 - grep -v '^ *+' conftest.er1 >conftest.err
1.9224 - rm -f conftest.er1
1.9225 - cat conftest.err >&5
1.9226 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9227 - (exit $ac_status); } >/dev/null && {
1.9228 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.9229 - test ! -s conftest.err
1.9230 - }; then
1.9231 - :
1.9232 -else
1.9233 - echo "$as_me: failed program was:" >&5
1.9234 -sed 's/^/| /' conftest.$ac_ext >&5
1.9235 -
1.9236 - # Broken: fails on valid input.
1.9237 -continue
1.9238 -fi
1.9239 -
1.9240 -rm -f conftest.err conftest.$ac_ext
1.9241 -
1.9242 - # OK, works on sane cases. Now check whether nonexistent headers
1.9243 - # can be detected and how.
1.9244 - cat >conftest.$ac_ext <<_ACEOF
1.9245 -/* confdefs.h. */
1.9246 -_ACEOF
1.9247 -cat confdefs.h >>conftest.$ac_ext
1.9248 -cat >>conftest.$ac_ext <<_ACEOF
1.9249 -/* end confdefs.h. */
1.9250 -#include <ac_nonexistent.h>
1.9251 -_ACEOF
1.9252 -if { (ac_try="$ac_cpp conftest.$ac_ext"
1.9253 -case "(($ac_try" in
1.9254 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.9255 - *) ac_try_echo=$ac_try;;
1.9256 -esac
1.9257 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.9258 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9259 - ac_status=$?
1.9260 - grep -v '^ *+' conftest.er1 >conftest.err
1.9261 - rm -f conftest.er1
1.9262 - cat conftest.err >&5
1.9263 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9264 - (exit $ac_status); } >/dev/null && {
1.9265 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.9266 - test ! -s conftest.err
1.9267 - }; then
1.9268 - # Broken: success on invalid input.
1.9269 -continue
1.9270 -else
1.9271 - echo "$as_me: failed program was:" >&5
1.9272 -sed 's/^/| /' conftest.$ac_ext >&5
1.9273 -
1.9274 - # Passes both tests.
1.9275 -ac_preproc_ok=:
1.9276 -break
1.9277 -fi
1.9278 -
1.9279 -rm -f conftest.err conftest.$ac_ext
1.9280 -
1.9281 -done
1.9282 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.9283 -rm -f conftest.err conftest.$ac_ext
1.9284 -if $ac_preproc_ok; then
1.9285 - :
1.9286 -else
1.9287 - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1.9288 -See \`config.log' for more details." >&5
1.9289 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1.9290 -See \`config.log' for more details." >&2;}
1.9291 - { (exit 1); exit 1; }; }
1.9292 -fi
1.9293 -
1.9294 -ac_ext=c
1.9295 -ac_cpp='$CPP $CPPFLAGS'
1.9296 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.9297 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.9298 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.9299 -
1.9300 -
1.9301 -ac_main_cc="$CC"
1.9302 -test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
1.9303 -
1.9304 -if test -z "$CC_FOR_BUILD"; then
1.9305 - if test "$#" = yes; then
1.9306 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
1.9307 -See \`config.log' for more details." >&5
1.9308 -echo "$as_me: error: cannot run test program while cross compiling
1.9309 -See \`config.log' for more details." >&2;}
1.9310 - { (exit 1); exit 1; }; }
1.9311 -else
1.9312 - cat >conftest.$ac_ext <<_ACEOF
1.9313 -int main(){return 0;}
1.9314 -_ACEOF
1.9315 -rm -f conftest$ac_exeext
1.9316 -if { (ac_try="$ac_link"
1.9317 -case "(($ac_try" in
1.9318 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.9319 - *) ac_try_echo=$ac_try;;
1.9320 -esac
1.9321 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.9322 - (eval "$ac_link") 2>&5
1.9323 - ac_status=$?
1.9324 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9325 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.9326 - { (case "(($ac_try" in
1.9327 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.9328 - *) ac_try_echo=$ac_try;;
1.9329 -esac
1.9330 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.9331 - (eval "$ac_try") 2>&5
1.9332 - ac_status=$?
1.9333 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9334 - (exit $ac_status); }; }; then
1.9335 - CC_FOR_BUILD="$CC"
1.9336 -else
1.9337 - echo "$as_me: program exited with status $ac_status" >&5
1.9338 -echo "$as_me: failed program was:" >&5
1.9339 -sed 's/^/| /' conftest.$ac_ext >&5
1.9340 -
1.9341 -fi
1.9342 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9343 -fi
1.9344 -
1.9345 -
1.9346 -fi
1.9347 -
1.9348 -
1.9349 -ac_ext=c
1.9350 -ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.9351 -ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.9352 -ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.9353 -ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.9354 -if test -n "$ac_build_tool_prefix"; then
1.9355 - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.9356 -set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
1.9357 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9358 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9359 -if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
1.9360 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.9361 -else
1.9362 - if test -n "$CC_FOR_BUILD"; then
1.9363 - ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
1.9364 -else
1.9365 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.9366 -for as_dir in $PATH
1.9367 -do
1.9368 - IFS=$as_save_IFS
1.9369 - test -z "$as_dir" && as_dir=.
1.9370 - for ac_exec_ext in '' $ac_executable_extensions; do
1.9371 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.9372 - ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
1.9373 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.9374 - break 2
1.9375 - fi
1.9376 -done
1.9377 -done
1.9378 -IFS=$as_save_IFS
1.9379 -
1.9380 -fi
1.9381 -fi
1.9382 -CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
1.9383 -if test -n "$CC_FOR_BUILD"; then
1.9384 - { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
1.9385 -echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
1.9386 -else
1.9387 - { echo "$as_me:$LINENO: result: no" >&5
1.9388 -echo "${ECHO_T}no" >&6; }
1.9389 -fi
1.9390 -
1.9391 -
1.9392 -fi
1.9393 -if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
1.9394 - ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
1.9395 - # Extract the first word of "gcc", so it can be a program name with args.
1.9396 -set dummy gcc; ac_word=$2
1.9397 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9398 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9399 -if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
1.9400 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.9401 -else
1.9402 - if test -n "$ac_ct_CC_FOR_BUILD"; then
1.9403 - ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
1.9404 -else
1.9405 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.9406 -for as_dir in $PATH
1.9407 -do
1.9408 - IFS=$as_save_IFS
1.9409 - test -z "$as_dir" && as_dir=.
1.9410 - for ac_exec_ext in '' $ac_executable_extensions; do
1.9411 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.9412 - ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
1.9413 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.9414 - break 2
1.9415 - fi
1.9416 -done
1.9417 -done
1.9418 -IFS=$as_save_IFS
1.9419 -
1.9420 -fi
1.9421 -fi
1.9422 -ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
1.9423 -if test -n "$ac_ct_CC_FOR_BUILD"; then
1.9424 - { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
1.9425 -echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
1.9426 -else
1.9427 - { echo "$as_me:$LINENO: result: no" >&5
1.9428 -echo "${ECHO_T}no" >&6; }
1.9429 -fi
1.9430 -
1.9431 - if test "x$ac_ct_CC_FOR_BUILD" = x; then
1.9432 - CC_FOR_BUILD=""
1.9433 - else
1.9434 - case $#:$ac_tool_warned in
1.9435 -yes:)
1.9436 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.9437 -whose name does not start with the build triplet. If you think this
1.9438 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.9439 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.9440 -whose name does not start with the build triplet. If you think this
1.9441 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.9442 -ac_tool_warned=yes ;;
1.9443 -esac
1.9444 - CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
1.9445 - fi
1.9446 -else
1.9447 - CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
1.9448 -fi
1.9449 -
1.9450 -if test -z "$CC_FOR_BUILD"; then
1.9451 - if test -n "$ac_build_tool_prefix"; then
1.9452 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.9453 -set dummy ${ac_build_tool_prefix}cc; ac_word=$2
1.9454 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9455 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9456 -if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
1.9457 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.9458 -else
1.9459 - if test -n "$CC_FOR_BUILD"; then
1.9460 - ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
1.9461 -else
1.9462 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.9463 -for as_dir in $PATH
1.9464 -do
1.9465 - IFS=$as_save_IFS
1.9466 - test -z "$as_dir" && as_dir=.
1.9467 - for ac_exec_ext in '' $ac_executable_extensions; do
1.9468 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.9469 - ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
1.9470 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.9471 - break 2
1.9472 - fi
1.9473 -done
1.9474 -done
1.9475 -IFS=$as_save_IFS
1.9476 -
1.9477 -fi
1.9478 -fi
1.9479 -CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
1.9480 -if test -n "$CC_FOR_BUILD"; then
1.9481 - { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
1.9482 -echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
1.9483 -else
1.9484 - { echo "$as_me:$LINENO: result: no" >&5
1.9485 -echo "${ECHO_T}no" >&6; }
1.9486 -fi
1.9487 -
1.9488 -
1.9489 - fi
1.9490 -fi
1.9491 -if test -z "$CC_FOR_BUILD"; then
1.9492 - # Extract the first word of "cc", so it can be a program name with args.
1.9493 -set dummy cc; ac_word=$2
1.9494 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9495 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9496 -if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
1.9497 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.9498 -else
1.9499 - if test -n "$CC_FOR_BUILD"; then
1.9500 - ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
1.9501 -else
1.9502 - ac_prog_rejected=no
1.9503 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.9504 -for as_dir in $PATH
1.9505 -do
1.9506 - IFS=$as_save_IFS
1.9507 - test -z "$as_dir" && as_dir=.
1.9508 - for ac_exec_ext in '' $ac_executable_extensions; do
1.9509 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.9510 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.9511 - ac_prog_rejected=yes
1.9512 - continue
1.9513 - fi
1.9514 - ac_cv_prog_CC_FOR_BUILD="cc"
1.9515 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.9516 - break 2
1.9517 - fi
1.9518 -done
1.9519 -done
1.9520 -IFS=$as_save_IFS
1.9521 -
1.9522 -if test $ac_prog_rejected = yes; then
1.9523 - # We found a bogon in the path, so make sure we never use it.
1.9524 - set dummy $ac_cv_prog_CC_FOR_BUILD
1.9525 - shift
1.9526 - if test $# != 0; then
1.9527 - # We chose a different compiler from the bogus one.
1.9528 - # However, it has the same basename, so the bogon will be chosen
1.9529 - # first if we set CC_FOR_BUILD to just the basename; use the full file name.
1.9530 - shift
1.9531 - ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
1.9532 - fi
1.9533 -fi
1.9534 -fi
1.9535 -fi
1.9536 -CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
1.9537 -if test -n "$CC_FOR_BUILD"; then
1.9538 - { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
1.9539 -echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
1.9540 -else
1.9541 - { echo "$as_me:$LINENO: result: no" >&5
1.9542 -echo "${ECHO_T}no" >&6; }
1.9543 -fi
1.9544 -
1.9545 -
1.9546 -fi
1.9547 -if test -z "$CC_FOR_BUILD"; then
1.9548 - if test -n "$ac_build_tool_prefix"; then
1.9549 - for ac_prog in cl.exe
1.9550 - do
1.9551 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.9552 -set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
1.9553 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9554 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9555 -if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
1.9556 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.9557 -else
1.9558 - if test -n "$CC_FOR_BUILD"; then
1.9559 - ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
1.9560 -else
1.9561 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.9562 -for as_dir in $PATH
1.9563 -do
1.9564 - IFS=$as_save_IFS
1.9565 - test -z "$as_dir" && as_dir=.
1.9566 - for ac_exec_ext in '' $ac_executable_extensions; do
1.9567 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.9568 - ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
1.9569 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.9570 - break 2
1.9571 - fi
1.9572 -done
1.9573 -done
1.9574 -IFS=$as_save_IFS
1.9575 -
1.9576 -fi
1.9577 -fi
1.9578 -CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
1.9579 -if test -n "$CC_FOR_BUILD"; then
1.9580 - { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
1.9581 -echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
1.9582 -else
1.9583 - { echo "$as_me:$LINENO: result: no" >&5
1.9584 -echo "${ECHO_T}no" >&6; }
1.9585 -fi
1.9586 -
1.9587 -
1.9588 - test -n "$CC_FOR_BUILD" && break
1.9589 - done
1.9590 -fi
1.9591 -if test -z "$CC_FOR_BUILD"; then
1.9592 - ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
1.9593 - for ac_prog in cl.exe
1.9594 -do
1.9595 - # Extract the first word of "$ac_prog", so it can be a program name with args.
1.9596 -set dummy $ac_prog; ac_word=$2
1.9597 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9598 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9599 -if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
1.9600 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.9601 -else
1.9602 - if test -n "$ac_ct_CC_FOR_BUILD"; then
1.9603 - ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
1.9604 -else
1.9605 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.9606 -for as_dir in $PATH
1.9607 -do
1.9608 - IFS=$as_save_IFS
1.9609 - test -z "$as_dir" && as_dir=.
1.9610 - for ac_exec_ext in '' $ac_executable_extensions; do
1.9611 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.9612 - ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
1.9613 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.9614 - break 2
1.9615 - fi
1.9616 -done
1.9617 -done
1.9618 -IFS=$as_save_IFS
1.9619 -
1.9620 -fi
1.9621 -fi
1.9622 -ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
1.9623 -if test -n "$ac_ct_CC_FOR_BUILD"; then
1.9624 - { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
1.9625 -echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
1.9626 -else
1.9627 - { echo "$as_me:$LINENO: result: no" >&5
1.9628 -echo "${ECHO_T}no" >&6; }
1.9629 -fi
1.9630 -
1.9631 -
1.9632 - test -n "$ac_ct_CC_FOR_BUILD" && break
1.9633 -done
1.9634 -
1.9635 - if test "x$ac_ct_CC_FOR_BUILD" = x; then
1.9636 - CC_FOR_BUILD=""
1.9637 - else
1.9638 - case $#:$ac_tool_warned in
1.9639 -yes:)
1.9640 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.9641 -whose name does not start with the build triplet. If you think this
1.9642 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.9643 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.9644 -whose name does not start with the build triplet. If you think this
1.9645 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.9646 -ac_tool_warned=yes ;;
1.9647 -esac
1.9648 - CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
1.9649 - fi
1.9650 -fi
1.9651 -
1.9652 -fi
1.9653 -
1.9654 -
1.9655 -test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.9656 -See \`config.log' for more details." >&5
1.9657 -echo "$as_me: error: no acceptable C compiler found in \$PATH
1.9658 -See \`config.log' for more details." >&2;}
1.9659 - { (exit 1); exit 1; }; }
1.9660 -
1.9661 -# Provide some information about the compiler.
1.9662 -echo "$as_me:$LINENO: checking for C compiler version" >&5
1.9663 -ac_compiler=`set X $ac_build_compile; echo $2`
1.9664 -{ (ac_try="$ac_compiler --version >&5"
1.9665 -case "(($ac_try" in
1.9666 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.9667 - *) ac_try_echo=$ac_try;;
1.9668 -esac
1.9669 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.9670 - (eval "$ac_compiler --version >&5") 2>&5
1.9671 - ac_status=$?
1.9672 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9673 - (exit $ac_status); }
1.9674 -{ (ac_try="$ac_compiler -v >&5"
1.9675 -case "(($ac_try" in
1.9676 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.9677 - *) ac_try_echo=$ac_try;;
1.9678 -esac
1.9679 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.9680 - (eval "$ac_compiler -v >&5") 2>&5
1.9681 - ac_status=$?
1.9682 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9683 - (exit $ac_status); }
1.9684 -{ (ac_try="$ac_compiler -V >&5"
1.9685 -case "(($ac_try" in
1.9686 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.9687 - *) ac_try_echo=$ac_try;;
1.9688 -esac
1.9689 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.9690 - (eval "$ac_compiler -V >&5") 2>&5
1.9691 - ac_status=$?
1.9692 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9693 - (exit $ac_status); }
1.9694 -
1.9695 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.9696 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.9697 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.9698 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.9699 -else
1.9700 - cat >conftest.$ac_ext <<_ACEOF
1.9701 -/* confdefs.h. */
1.9702 -_ACEOF
1.9703 -cat confdefs.h >>conftest.$ac_ext
1.9704 -cat >>conftest.$ac_ext <<_ACEOF
1.9705 -/* end confdefs.h. */
1.9706 -
1.9707 -int
1.9708 -main ()
1.9709 -{
1.9710 -#ifndef __GNUC__
1.9711 - choke me
1.9712 -#endif
1.9713 -
1.9714 - ;
1.9715 - return 0;
1.9716 -}
1.9717 -_ACEOF
1.9718 -rm -f conftest.$ac_build_objext
1.9719 -if { (ac_try="$ac_build_compile"
1.9720 -case "(($ac_try" in
1.9721 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.9722 - *) ac_try_echo=$ac_try;;
1.9723 -esac
1.9724 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.9725 - (eval "$ac_build_compile") 2>conftest.er1
1.9726 - ac_status=$?
1.9727 - grep -v '^ *+' conftest.er1 >conftest.err
1.9728 - rm -f conftest.er1
1.9729 - cat conftest.err >&5
1.9730 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9731 - (exit $ac_status); } && {
1.9732 - test -z "$ac_c_werror_flag" ||
1.9733 - test ! -s conftest.err
1.9734 - } && test -s conftest.$ac_build_objext; then
1.9735 - ac_build_compiler_gnu=yes
1.9736 -else
1.9737 - echo "$as_me: failed program was:" >&5
1.9738 -sed 's/^/| /' conftest.$ac_ext >&5
1.9739 -
1.9740 - ac_build_compiler_gnu=no
1.9741 -fi
1.9742 -
1.9743 -rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
1.9744 -ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
1.9745 -
1.9746 -fi
1.9747 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.9748 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.9749 -GCC=`test $ac_build_compiler_gnu = yes && echo yes`
1.9750 -ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
1.9751 -ac_save_CFLAGS=$CFLAGS_FOR_BUILD
1.9752 -{ echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
1.9753 -echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
1.9754 -if test "${ac_cv_build_prog_cc_g+set}" = set; then
1.9755 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.9756 -else
1.9757 - ac_save_c_werror_flag=$ac_c_werror_flag
1.9758 - ac_c_werror_flag=yes
1.9759 - ac_cv_build_prog_cc_g=no
1.9760 - CFLAGS_FOR_BUILD="-g"
1.9761 - cat >conftest.$ac_ext <<_ACEOF
1.9762 -/* confdefs.h. */
1.9763 -_ACEOF
1.9764 -cat confdefs.h >>conftest.$ac_ext
1.9765 -cat >>conftest.$ac_ext <<_ACEOF
1.9766 -/* end confdefs.h. */
1.9767 -
1.9768 -int
1.9769 -main ()
1.9770 -{
1.9771 -
1.9772 - ;
1.9773 - return 0;
1.9774 -}
1.9775 -_ACEOF
1.9776 -rm -f conftest.$ac_build_objext
1.9777 -if { (ac_try="$ac_build_compile"
1.9778 -case "(($ac_try" in
1.9779 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.9780 - *) ac_try_echo=$ac_try;;
1.9781 -esac
1.9782 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.9783 - (eval "$ac_build_compile") 2>conftest.er1
1.9784 - ac_status=$?
1.9785 - grep -v '^ *+' conftest.er1 >conftest.err
1.9786 - rm -f conftest.er1
1.9787 - cat conftest.err >&5
1.9788 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9789 - (exit $ac_status); } && {
1.9790 - test -z "$ac_c_werror_flag" ||
1.9791 - test ! -s conftest.err
1.9792 - } && test -s conftest.$ac_build_objext; then
1.9793 - ac_cv_build_prog_cc_g=yes
1.9794 -else
1.9795 - echo "$as_me: failed program was:" >&5
1.9796 -sed 's/^/| /' conftest.$ac_ext >&5
1.9797 -
1.9798 - CFLAGS_FOR_BUILD=""
1.9799 - cat >conftest.$ac_ext <<_ACEOF
1.9800 -/* confdefs.h. */
1.9801 -_ACEOF
1.9802 -cat confdefs.h >>conftest.$ac_ext
1.9803 -cat >>conftest.$ac_ext <<_ACEOF
1.9804 -/* end confdefs.h. */
1.9805 -
1.9806 -int
1.9807 -main ()
1.9808 -{
1.9809 -
1.9810 - ;
1.9811 - return 0;
1.9812 -}
1.9813 -_ACEOF
1.9814 -rm -f conftest.$ac_build_objext
1.9815 -if { (ac_try="$ac_build_compile"
1.9816 -case "(($ac_try" in
1.9817 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.9818 - *) ac_try_echo=$ac_try;;
1.9819 -esac
1.9820 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.9821 - (eval "$ac_build_compile") 2>conftest.er1
1.9822 - ac_status=$?
1.9823 - grep -v '^ *+' conftest.er1 >conftest.err
1.9824 - rm -f conftest.er1
1.9825 - cat conftest.err >&5
1.9826 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9827 - (exit $ac_status); } && {
1.9828 - test -z "$ac_c_werror_flag" ||
1.9829 - test ! -s conftest.err
1.9830 - } && test -s conftest.$ac_build_objext; then
1.9831 - :
1.9832 -else
1.9833 - echo "$as_me: failed program was:" >&5
1.9834 -sed 's/^/| /' conftest.$ac_ext >&5
1.9835 -
1.9836 - ac_c_werror_flag=$ac_save_c_werror_flag
1.9837 - CFLAGS_FOR_BUILD="-g"
1.9838 - cat >conftest.$ac_ext <<_ACEOF
1.9839 -/* confdefs.h. */
1.9840 -_ACEOF
1.9841 -cat confdefs.h >>conftest.$ac_ext
1.9842 -cat >>conftest.$ac_ext <<_ACEOF
1.9843 -/* end confdefs.h. */
1.9844 -
1.9845 -int
1.9846 -main ()
1.9847 -{
1.9848 -
1.9849 - ;
1.9850 - return 0;
1.9851 -}
1.9852 -_ACEOF
1.9853 -rm -f conftest.$ac_build_objext
1.9854 -if { (ac_try="$ac_build_compile"
1.9855 -case "(($ac_try" in
1.9856 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.9857 - *) ac_try_echo=$ac_try;;
1.9858 -esac
1.9859 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.9860 - (eval "$ac_build_compile") 2>conftest.er1
1.9861 - ac_status=$?
1.9862 - grep -v '^ *+' conftest.er1 >conftest.err
1.9863 - rm -f conftest.er1
1.9864 - cat conftest.err >&5
1.9865 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9866 - (exit $ac_status); } && {
1.9867 - test -z "$ac_c_werror_flag" ||
1.9868 - test ! -s conftest.err
1.9869 - } && test -s conftest.$ac_build_objext; then
1.9870 - ac_cv_build_prog_cc_g=yes
1.9871 -else
1.9872 - echo "$as_me: failed program was:" >&5
1.9873 -sed 's/^/| /' conftest.$ac_ext >&5
1.9874 -
1.9875 -
1.9876 -fi
1.9877 -
1.9878 -rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
1.9879 -fi
1.9880 -
1.9881 -rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
1.9882 -fi
1.9883 -
1.9884 -rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
1.9885 - ac_c_werror_flag=$ac_save_c_werror_flag
1.9886 -fi
1.9887 -{ echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
1.9888 -echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
1.9889 -if test "$ac_test_CFLAGS" = set; then
1.9890 - CFLAGS_FOR_BUILD=$ac_save_CFLAGS
1.9891 -elif test $ac_cv_build_prog_cc_g = yes; then
1.9892 - if test "$GCC" = yes; then
1.9893 - CFLAGS_FOR_BUILD="-g -O2"
1.9894 - else
1.9895 - CFLAGS_FOR_BUILD="-g"
1.9896 - fi
1.9897 -else
1.9898 - if test "$GCC" = yes; then
1.9899 - CFLAGS_FOR_BUILD="-O2"
1.9900 - else
1.9901 - CFLAGS_FOR_BUILD=
1.9902 - fi
1.9903 -fi
1.9904 -{ echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
1.9905 -echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
1.9906 -if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.9907 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.9908 -else
1.9909 - ac_cv_build_prog_cc_stdc=no
1.9910 -ac_save_CC=$CC_FOR_BUILD
1.9911 -cat >conftest.$ac_ext <<_ACEOF
1.9912 -/* confdefs.h. */
1.9913 -_ACEOF
1.9914 -cat confdefs.h >>conftest.$ac_ext
1.9915 -cat >>conftest.$ac_ext <<_ACEOF
1.9916 -/* end confdefs.h. */
1.9917 -#include <stdarg.h>
1.9918 -#include <stdio.h>
1.9919 -#include <sys/types.h>
1.9920 -#include <sys/stat.h>
1.9921 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.9922 -struct buf { int x; };
1.9923 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.9924 -static char *e (p, i)
1.9925 - char **p;
1.9926 - int i;
1.9927 -{
1.9928 - return p[i];
1.9929 -}
1.9930 -static char *f (char * (*g) (char **, int), char **p, ...)
1.9931 -{
1.9932 - char *s;
1.9933 - va_list v;
1.9934 - va_start (v,p);
1.9935 - s = g (p, va_arg (v,int));
1.9936 - va_end (v);
1.9937 - return s;
1.9938 -}
1.9939 -
1.9940 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.9941 - function prototypes and stuff, but not '\xHH' hex character constants.
1.9942 - These don't provoke an error unfortunately, instead are silently treated
1.9943 - as 'x'. The following induces an error, until -std is added to get
1.9944 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.9945 - array size at least. It's necessary to write '\x00'==0 to get something
1.9946 - that's true only with -std. */
1.9947 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.9948 -
1.9949 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.9950 - inside strings and character constants. */
1.9951 -#define FOO(x) 'x'
1.9952 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.9953 -
1.9954 -int test (int i, double x);
1.9955 -struct s1 {int (*f) (int a);};
1.9956 -struct s2 {int (*f) (double a);};
1.9957 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.9958 -int argc;
1.9959 -char **argv;
1.9960 -int
1.9961 -main ()
1.9962 -{
1.9963 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.9964 - ;
1.9965 - return 0;
1.9966 -}
1.9967 -_ACEOF
1.9968 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.9969 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.9970 -do
1.9971 - CC_FOR_BUILD="$ac_save_CC $ac_arg"
1.9972 - rm -f conftest.$ac_build_objext
1.9973 -if { (ac_try="$ac_build_compile"
1.9974 -case "(($ac_try" in
1.9975 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.9976 - *) ac_try_echo=$ac_try;;
1.9977 -esac
1.9978 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.9979 - (eval "$ac_build_compile") 2>conftest.er1
1.9980 - ac_status=$?
1.9981 - grep -v '^ *+' conftest.er1 >conftest.err
1.9982 - rm -f conftest.er1
1.9983 - cat conftest.err >&5
1.9984 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9985 - (exit $ac_status); } && {
1.9986 - test -z "$ac_c_werror_flag" ||
1.9987 - test ! -s conftest.err
1.9988 - } && test -s conftest.$ac_build_objext; then
1.9989 - ac_cv_build_prog_cc_stdc=$ac_arg
1.9990 -else
1.9991 - echo "$as_me: failed program was:" >&5
1.9992 -sed 's/^/| /' conftest.$ac_ext >&5
1.9993 -
1.9994 -
1.9995 -fi
1.9996 -
1.9997 -rm -f core conftest.err conftest.$ac_build_objext
1.9998 - test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
1.9999 -done
1.10000 -rm -f conftest.$ac_ext
1.10001 -CC_FOR_BUILD=$ac_save_CC
1.10002 -
1.10003 -fi
1.10004 -# AC_CACHE_VAL
1.10005 -case "x$ac_cv_build_prog_cc_stdc" in
1.10006 - x)
1.10007 - { echo "$as_me:$LINENO: result: none needed" >&5
1.10008 -echo "${ECHO_T}none needed" >&6; } ;;
1.10009 - xno)
1.10010 - { echo "$as_me:$LINENO: result: unsupported" >&5
1.10011 -echo "${ECHO_T}unsupported" >&6; } ;;
1.10012 - *)
1.10013 - CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
1.10014 - { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.10015 -echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.10016 -esac
1.10017 -
1.10018 -
1.10019 -ac_ext=c
1.10020 -ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.10021 -ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.10022 -ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.10023 -ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.10024 -
1.10025 -depcc="$CC_FOR_BUILD" am_compiler_list=
1.10026 -
1.10027 -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.10028 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.10029 -if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
1.10030 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.10031 -else
1.10032 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.10033 - # We make a subdir and do the tests there. Otherwise we can end up
1.10034 - # making bogus files that we don't know about and never remove. For
1.10035 - # instance it was reported that on HP-UX the gcc test will end up
1.10036 - # making a dummy file named `D' -- because `-MD' means `put the output
1.10037 - # in D'.
1.10038 - mkdir conftest.dir
1.10039 - # Copy depcomp to subdir because otherwise we won't find it if we're
1.10040 - # using a relative directory.
1.10041 - cp "$am_depcomp" conftest.dir
1.10042 - cd conftest.dir
1.10043 - # We will build objects and dependencies in a subdirectory because
1.10044 - # it helps to detect inapplicable dependency modes. For instance
1.10045 - # both Tru64's cc and ICC support -MD to output dependencies as a
1.10046 - # side effect of compilation, but ICC will put the dependencies in
1.10047 - # the current directory while Tru64 will put them in the object
1.10048 - # directory.
1.10049 - mkdir sub
1.10050 -
1.10051 - am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
1.10052 - if test "$am_compiler_list" = ""; then
1.10053 - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.10054 - fi
1.10055 - for depmode in $am_compiler_list; do
1.10056 - # Setup a source with many dependencies, because some compilers
1.10057 - # like to wrap large dependency lists on column 80 (with \), and
1.10058 - # we should not choose a depcomp mode which is confused by this.
1.10059 - #
1.10060 - # We need to recreate these files for each test, as the compiler may
1.10061 - # overwrite some of them when testing with obscure command lines.
1.10062 - # This happens at least with the AIX C compiler.
1.10063 - : > sub/conftest.c
1.10064 - for i in 1 2 3 4 5 6; do
1.10065 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.10066 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.10067 - # Solaris 8's {/usr,}/bin/sh.
1.10068 - touch sub/conftst$i.h
1.10069 - done
1.10070 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.10071 -
1.10072 - case $depmode in
1.10073 - nosideeffect)
1.10074 - # after this tag, mechanisms are not by side-effect, so they'll
1.10075 - # only be used when explicitly requested
1.10076 - if test "x$enable_dependency_tracking" = xyes; then
1.10077 - continue
1.10078 - else
1.10079 - break
1.10080 - fi
1.10081 - ;;
1.10082 - none) break ;;
1.10083 - esac
1.10084 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.10085 - # mode. It turns out that the SunPro C++ compiler does not properly
1.10086 - # handle `-M -o', and we need to detect this.
1.10087 - if depmode=$depmode \
1.10088 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.10089 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.10090 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.10091 - >/dev/null 2>conftest.err &&
1.10092 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.10093 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.10094 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.10095 - # icc doesn't choke on unknown options, it will just issue warnings
1.10096 - # or remarks (even with -Werror). So we grep stderr for any message
1.10097 - # that says an option was ignored or not supported.
1.10098 - # When given -MP, icc 7.0 and 7.1 complain thusly:
1.10099 - # icc: Command line warning: ignoring option '-M'; no argument required
1.10100 - # The diagnosis changed in icc 8.0:
1.10101 - # icc: Command line remark: option '-MP' not supported
1.10102 - if (grep 'ignoring option' conftest.err ||
1.10103 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.10104 - am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
1.10105 - break
1.10106 - fi
1.10107 - fi
1.10108 - done
1.10109 -
1.10110 - cd ..
1.10111 - rm -rf conftest.dir
1.10112 -else
1.10113 - am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
1.10114 -fi
1.10115 -
1.10116 -fi
1.10117 -{ echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
1.10118 -echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
1.10119 -CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
1.10120 -
1.10121 -
1.10122 -
1.10123 -if
1.10124 - test "x$enable_dependency_tracking" != xno \
1.10125 - && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
1.10126 - am__fastdepCC_FOR_BUILD_TRUE=
1.10127 - am__fastdepCC_FOR_BUILD_FALSE='#'
1.10128 -else
1.10129 - am__fastdepCC_FOR_BUILD_TRUE='#'
1.10130 - am__fastdepCC_FOR_BUILD_FALSE=
1.10131 -fi
1.10132 -
1.10133 -
1.10134 - case $ac_cv_build_prog_cc_stdc in
1.10135 - no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
1.10136 - *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
1.10137 -echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
1.10138 -if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.10139 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.10140 -else
1.10141 - ac_cv_build_prog_cc_stdc=no
1.10142 -ac_save_CC=$CC_FOR_BUILD
1.10143 -cat >conftest.$ac_ext <<_ACEOF
1.10144 -/* confdefs.h. */
1.10145 -_ACEOF
1.10146 -cat confdefs.h >>conftest.$ac_ext
1.10147 -cat >>conftest.$ac_ext <<_ACEOF
1.10148 -/* end confdefs.h. */
1.10149 -#include <stdarg.h>
1.10150 -#include <stdbool.h>
1.10151 -#include <stdlib.h>
1.10152 -#include <wchar.h>
1.10153 -#include <stdio.h>
1.10154 -
1.10155 -// Check varargs macros. These examples are taken from C99 6.10.3.5.
1.10156 -#define debug(...) fprintf (stderr, __VA_ARGS__)
1.10157 -#define showlist(...) puts (#__VA_ARGS__)
1.10158 -#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1.10159 -static void
1.10160 -test_varargs_macros (void)
1.10161 -{
1.10162 - int x = 1234;
1.10163 - int y = 5678;
1.10164 - debug ("Flag");
1.10165 - debug ("X = %d\n", x);
1.10166 - showlist (The first, second, and third items.);
1.10167 - report (x>y, "x is %d but y is %d", x, y);
1.10168 -}
1.10169 -
1.10170 -// Check long long types.
1.10171 -#define BIG64 18446744073709551615ull
1.10172 -#define BIG32 4294967295ul
1.10173 -#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1.10174 -#if !BIG_OK
1.10175 - your preprocessor is broken;
1.10176 -#endif
1.10177 -#if BIG_OK
1.10178 -#else
1.10179 - your preprocessor is broken;
1.10180 -#endif
1.10181 -static long long int bignum = -9223372036854775807LL;
1.10182 -static unsigned long long int ubignum = BIG64;
1.10183 -
1.10184 -struct incomplete_array
1.10185 -{
1.10186 - int datasize;
1.10187 - double data[];
1.10188 -};
1.10189 -
1.10190 -struct named_init {
1.10191 - int number;
1.10192 - const wchar_t *name;
1.10193 - double average;
1.10194 -};
1.10195 -
1.10196 -typedef const char *ccp;
1.10197 -
1.10198 -static inline int
1.10199 -test_restrict (ccp restrict text)
1.10200 -{
1.10201 - // See if C++-style comments work.
1.10202 - // Iterate through items via the restricted pointer.
1.10203 - // Also check for declarations in for loops.
1.10204 - for (unsigned int i = 0; *(text+i) != '\0'; ++i)
1.10205 - continue;
1.10206 - return 0;
1.10207 -}
1.10208 -
1.10209 -// Check varargs and va_copy.
1.10210 -static void
1.10211 -test_varargs (const char *format, ...)
1.10212 -{
1.10213 - va_list args;
1.10214 - va_start (args, format);
1.10215 - va_list args_copy;
1.10216 - va_copy (args_copy, args);
1.10217 -
1.10218 - const char *str;
1.10219 - int number;
1.10220 - float fnumber;
1.10221 -
1.10222 - while (*format)
1.10223 - {
1.10224 - switch (*format++)
1.10225 - {
1.10226 - case 's': // string
1.10227 - str = va_arg (args_copy, const char *);
1.10228 - break;
1.10229 - case 'd': // int
1.10230 - number = va_arg (args_copy, int);
1.10231 - break;
1.10232 - case 'f': // float
1.10233 - fnumber = va_arg (args_copy, double);
1.10234 - break;
1.10235 - default:
1.10236 - break;
1.10237 - }
1.10238 - }
1.10239 - va_end (args_copy);
1.10240 - va_end (args);
1.10241 -}
1.10242 -
1.10243 -int
1.10244 -main ()
1.10245 -{
1.10246 -
1.10247 - // Check bool.
1.10248 - _Bool success = false;
1.10249 -
1.10250 - // Check restrict.
1.10251 - if (test_restrict ("String literal") == 0)
1.10252 - success = true;
1.10253 - char *restrict newvar = "Another string";
1.10254 -
1.10255 - // Check varargs.
1.10256 - test_varargs ("s, d' f .", "string", 65, 34.234);
1.10257 - test_varargs_macros ();
1.10258 -
1.10259 - // Check flexible array members.
1.10260 - struct incomplete_array *ia =
1.10261 - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
1.10262 - ia->datasize = 10;
1.10263 - for (int i = 0; i < ia->datasize; ++i)
1.10264 - ia->data[i] = i * 1.234;
1.10265 -
1.10266 - // Check named initializers.
1.10267 - struct named_init ni = {
1.10268 - .number = 34,
1.10269 - .name = L"Test wide string",
1.10270 - .average = 543.34343,
1.10271 - };
1.10272 -
1.10273 - ni.number = 58;
1.10274 -
1.10275 - int dynamic_array[ni.number];
1.10276 - dynamic_array[ni.number - 1] = 543;
1.10277 -
1.10278 - // work around unused variable warnings
1.10279 - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
1.10280 - || dynamic_array[ni.number - 1] != 543);
1.10281 -
1.10282 - ;
1.10283 - return 0;
1.10284 -}
1.10285 -_ACEOF
1.10286 -for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
1.10287 -do
1.10288 - CC_FOR_BUILD="$ac_save_CC $ac_arg"
1.10289 - rm -f conftest.$ac_build_objext
1.10290 -if { (ac_try="$ac_build_compile"
1.10291 -case "(($ac_try" in
1.10292 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.10293 - *) ac_try_echo=$ac_try;;
1.10294 -esac
1.10295 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.10296 - (eval "$ac_build_compile") 2>conftest.er1
1.10297 - ac_status=$?
1.10298 - grep -v '^ *+' conftest.er1 >conftest.err
1.10299 - rm -f conftest.er1
1.10300 - cat conftest.err >&5
1.10301 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10302 - (exit $ac_status); } && {
1.10303 - test -z "$ac_c_werror_flag" ||
1.10304 - test ! -s conftest.err
1.10305 - } && test -s conftest.$ac_build_objext; then
1.10306 - ac_cv_build_prog_cc_stdc=$ac_arg
1.10307 -else
1.10308 - echo "$as_me: failed program was:" >&5
1.10309 -sed 's/^/| /' conftest.$ac_ext >&5
1.10310 -
1.10311 -
1.10312 -fi
1.10313 -
1.10314 -rm -f core conftest.err conftest.$ac_build_objext
1.10315 - test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
1.10316 -done
1.10317 -rm -f conftest.$ac_ext
1.10318 -CC_FOR_BUILD=$ac_save_CC
1.10319 -
1.10320 -fi
1.10321 -# AC_CACHE_VAL
1.10322 -case "x$ac_cv_build_prog_cc_stdc" in
1.10323 - x)
1.10324 - { echo "$as_me:$LINENO: result: none needed" >&5
1.10325 -echo "${ECHO_T}none needed" >&6; } ;;
1.10326 - xno)
1.10327 - { echo "$as_me:$LINENO: result: unsupported" >&5
1.10328 -echo "${ECHO_T}unsupported" >&6; } ;;
1.10329 - *)
1.10330 - CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
1.10331 - { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.10332 -echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.10333 -esac
1.10334 -if test "x$ac_cv_build_prog_cc_stdc" != xno; then
1.10335 - ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
1.10336 -else
1.10337 - { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
1.10338 -echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
1.10339 -if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.10340 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.10341 -else
1.10342 - ac_cv_build_prog_cc_stdc=no
1.10343 -ac_save_CC=$CC_FOR_BUILD
1.10344 -cat >conftest.$ac_ext <<_ACEOF
1.10345 -/* confdefs.h. */
1.10346 -_ACEOF
1.10347 -cat confdefs.h >>conftest.$ac_ext
1.10348 -cat >>conftest.$ac_ext <<_ACEOF
1.10349 -/* end confdefs.h. */
1.10350 -#include <stdarg.h>
1.10351 -#include <stdio.h>
1.10352 -#include <sys/types.h>
1.10353 -#include <sys/stat.h>
1.10354 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.10355 -struct buf { int x; };
1.10356 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.10357 -static char *e (p, i)
1.10358 - char **p;
1.10359 - int i;
1.10360 -{
1.10361 - return p[i];
1.10362 -}
1.10363 -static char *f (char * (*g) (char **, int), char **p, ...)
1.10364 -{
1.10365 - char *s;
1.10366 - va_list v;
1.10367 - va_start (v,p);
1.10368 - s = g (p, va_arg (v,int));
1.10369 - va_end (v);
1.10370 - return s;
1.10371 -}
1.10372 -
1.10373 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.10374 - function prototypes and stuff, but not '\xHH' hex character constants.
1.10375 - These don't provoke an error unfortunately, instead are silently treated
1.10376 - as 'x'. The following induces an error, until -std is added to get
1.10377 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.10378 - array size at least. It's necessary to write '\x00'==0 to get something
1.10379 - that's true only with -std. */
1.10380 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.10381 -
1.10382 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.10383 - inside strings and character constants. */
1.10384 -#define FOO(x) 'x'
1.10385 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.10386 -
1.10387 -int test (int i, double x);
1.10388 -struct s1 {int (*f) (int a);};
1.10389 -struct s2 {int (*f) (double a);};
1.10390 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.10391 -int argc;
1.10392 -char **argv;
1.10393 -int
1.10394 -main ()
1.10395 -{
1.10396 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.10397 - ;
1.10398 - return 0;
1.10399 -}
1.10400 -_ACEOF
1.10401 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.10402 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.10403 -do
1.10404 - CC_FOR_BUILD="$ac_save_CC $ac_arg"
1.10405 - rm -f conftest.$ac_build_objext
1.10406 -if { (ac_try="$ac_build_compile"
1.10407 -case "(($ac_try" in
1.10408 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.10409 - *) ac_try_echo=$ac_try;;
1.10410 -esac
1.10411 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.10412 - (eval "$ac_build_compile") 2>conftest.er1
1.10413 - ac_status=$?
1.10414 - grep -v '^ *+' conftest.er1 >conftest.err
1.10415 - rm -f conftest.er1
1.10416 - cat conftest.err >&5
1.10417 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10418 - (exit $ac_status); } && {
1.10419 - test -z "$ac_c_werror_flag" ||
1.10420 - test ! -s conftest.err
1.10421 - } && test -s conftest.$ac_build_objext; then
1.10422 - ac_cv_build_prog_cc_stdc=$ac_arg
1.10423 -else
1.10424 - echo "$as_me: failed program was:" >&5
1.10425 -sed 's/^/| /' conftest.$ac_ext >&5
1.10426 -
1.10427 -
1.10428 -fi
1.10429 -
1.10430 -rm -f core conftest.err conftest.$ac_build_objext
1.10431 - test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
1.10432 -done
1.10433 -rm -f conftest.$ac_ext
1.10434 -CC_FOR_BUILD=$ac_save_CC
1.10435 -
1.10436 -fi
1.10437 -# AC_CACHE_VAL
1.10438 -case "x$ac_cv_build_prog_cc_stdc" in
1.10439 - x)
1.10440 - { echo "$as_me:$LINENO: result: none needed" >&5
1.10441 -echo "${ECHO_T}none needed" >&6; } ;;
1.10442 - xno)
1.10443 - { echo "$as_me:$LINENO: result: unsupported" >&5
1.10444 -echo "${ECHO_T}unsupported" >&6; } ;;
1.10445 - *)
1.10446 - CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
1.10447 - { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.10448 -echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.10449 -esac
1.10450 -if test "x$ac_cv_build_prog_cc_stdc" != xno; then
1.10451 - ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
1.10452 -else
1.10453 - ac_cv_build_prog_cc_stdc=no
1.10454 -fi
1.10455 -
1.10456 -
1.10457 -fi
1.10458 -
1.10459 - ;;
1.10460 -esac
1.10461 - { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
1.10462 -echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
1.10463 - if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.10464 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.10465 -fi
1.10466 -
1.10467 - case $ac_cv_build_prog_cc_stdc in
1.10468 - no) { echo "$as_me:$LINENO: result: unsupported" >&5
1.10469 -echo "${ECHO_T}unsupported" >&6; } ;;
1.10470 - '') { echo "$as_me:$LINENO: result: none needed" >&5
1.10471 -echo "${ECHO_T}none needed" >&6; } ;;
1.10472 - *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.10473 -echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.10474 -esac
1.10475 -
1.10476 -
1.10477 -ac_ext=c
1.10478 -ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.10479 -ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.10480 -ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.10481 -ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.10482 -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.10483 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.10484 -# On Suns, sometimes $CPP names a directory.
1.10485 -if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
1.10486 - CPP_FOR_BUILD=
1.10487 -fi
1.10488 -if test -z "$CPP_FOR_BUILD"; then
1.10489 - if test "${ac_cv_build_prog_CPP+set}" = set; then
1.10490 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.10491 -else
1.10492 - # Double quotes because CPP needs to be expanded
1.10493 - for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
1.10494 - do
1.10495 - ac_preproc_ok=false
1.10496 -for ac_c_preproc_warn_flag in '' yes
1.10497 -do
1.10498 - # Use a header file that comes with gcc, so configuring glibc
1.10499 - # with a fresh cross-compiler works.
1.10500 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.10501 - # <limits.h> exists even on freestanding compilers.
1.10502 - # On the NeXT, cc -E runs the code through the compiler's parser,
1.10503 - # not just through cpp. "Syntax error" is here to catch this case.
1.10504 - cat >conftest.$ac_ext <<_ACEOF
1.10505 -/* confdefs.h. */
1.10506 -_ACEOF
1.10507 -cat confdefs.h >>conftest.$ac_ext
1.10508 -cat >>conftest.$ac_ext <<_ACEOF
1.10509 -/* end confdefs.h. */
1.10510 -#ifdef __STDC__
1.10511 -# include <limits.h>
1.10512 -#else
1.10513 -# include <assert.h>
1.10514 -#endif
1.10515 - Syntax error
1.10516 -_ACEOF
1.10517 -if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.10518 -case "(($ac_try" in
1.10519 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.10520 - *) ac_try_echo=$ac_try;;
1.10521 -esac
1.10522 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.10523 - (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.10524 - ac_status=$?
1.10525 - grep -v '^ *+' conftest.er1 >conftest.err
1.10526 - rm -f conftest.er1
1.10527 - cat conftest.err >&5
1.10528 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10529 - (exit $ac_status); } >/dev/null && {
1.10530 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.10531 - test ! -s conftest.err
1.10532 - }; then
1.10533 - :
1.10534 -else
1.10535 - echo "$as_me: failed program was:" >&5
1.10536 -sed 's/^/| /' conftest.$ac_ext >&5
1.10537 -
1.10538 - # Broken: fails on valid input.
1.10539 -continue
1.10540 -fi
1.10541 -
1.10542 -rm -f conftest.err conftest.$ac_ext
1.10543 -
1.10544 - # OK, works on sane cases. Now check whether nonexistent headers
1.10545 - # can be detected and how.
1.10546 - cat >conftest.$ac_ext <<_ACEOF
1.10547 -/* confdefs.h. */
1.10548 -_ACEOF
1.10549 -cat confdefs.h >>conftest.$ac_ext
1.10550 -cat >>conftest.$ac_ext <<_ACEOF
1.10551 -/* end confdefs.h. */
1.10552 -#include <ac_nonexistent.h>
1.10553 -_ACEOF
1.10554 -if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.10555 -case "(($ac_try" in
1.10556 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.10557 - *) ac_try_echo=$ac_try;;
1.10558 -esac
1.10559 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.10560 - (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.10561 - ac_status=$?
1.10562 - grep -v '^ *+' conftest.er1 >conftest.err
1.10563 - rm -f conftest.er1
1.10564 - cat conftest.err >&5
1.10565 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10566 - (exit $ac_status); } >/dev/null && {
1.10567 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.10568 - test ! -s conftest.err
1.10569 - }; then
1.10570 - # Broken: success on invalid input.
1.10571 -continue
1.10572 -else
1.10573 - echo "$as_me: failed program was:" >&5
1.10574 -sed 's/^/| /' conftest.$ac_ext >&5
1.10575 -
1.10576 - # Passes both tests.
1.10577 -ac_preproc_ok=:
1.10578 -break
1.10579 -fi
1.10580 -
1.10581 -rm -f conftest.err conftest.$ac_ext
1.10582 -
1.10583 -done
1.10584 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.10585 -rm -f conftest.err conftest.$ac_ext
1.10586 -if $ac_preproc_ok; then
1.10587 - break
1.10588 -fi
1.10589 -
1.10590 - done
1.10591 - ac_cv_build_prog_CPP=$CPP_FOR_BUILD
1.10592 -
1.10593 -fi
1.10594 - CPP_FOR_BUILD=$ac_cv_build_prog_CPP
1.10595 -else
1.10596 - ac_cv_build_prog_CPP=$CPP_FOR_BUILD
1.10597 -fi
1.10598 -{ echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
1.10599 -echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
1.10600 -ac_preproc_ok=false
1.10601 -for ac_c_preproc_warn_flag in '' yes
1.10602 -do
1.10603 - # Use a header file that comes with gcc, so configuring glibc
1.10604 - # with a fresh cross-compiler works.
1.10605 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.10606 - # <limits.h> exists even on freestanding compilers.
1.10607 - # On the NeXT, cc -E runs the code through the compiler's parser,
1.10608 - # not just through cpp. "Syntax error" is here to catch this case.
1.10609 - cat >conftest.$ac_ext <<_ACEOF
1.10610 -/* confdefs.h. */
1.10611 -_ACEOF
1.10612 -cat confdefs.h >>conftest.$ac_ext
1.10613 -cat >>conftest.$ac_ext <<_ACEOF
1.10614 -/* end confdefs.h. */
1.10615 -#ifdef __STDC__
1.10616 -# include <limits.h>
1.10617 -#else
1.10618 -# include <assert.h>
1.10619 -#endif
1.10620 - Syntax error
1.10621 -_ACEOF
1.10622 -if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.10623 -case "(($ac_try" in
1.10624 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.10625 - *) ac_try_echo=$ac_try;;
1.10626 -esac
1.10627 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.10628 - (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.10629 - ac_status=$?
1.10630 - grep -v '^ *+' conftest.er1 >conftest.err
1.10631 - rm -f conftest.er1
1.10632 - cat conftest.err >&5
1.10633 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10634 - (exit $ac_status); } >/dev/null && {
1.10635 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.10636 - test ! -s conftest.err
1.10637 - }; then
1.10638 - :
1.10639 -else
1.10640 - echo "$as_me: failed program was:" >&5
1.10641 -sed 's/^/| /' conftest.$ac_ext >&5
1.10642 -
1.10643 - # Broken: fails on valid input.
1.10644 -continue
1.10645 -fi
1.10646 -
1.10647 -rm -f conftest.err conftest.$ac_ext
1.10648 -
1.10649 - # OK, works on sane cases. Now check whether nonexistent headers
1.10650 - # can be detected and how.
1.10651 - cat >conftest.$ac_ext <<_ACEOF
1.10652 -/* confdefs.h. */
1.10653 -_ACEOF
1.10654 -cat confdefs.h >>conftest.$ac_ext
1.10655 -cat >>conftest.$ac_ext <<_ACEOF
1.10656 -/* end confdefs.h. */
1.10657 -#include <ac_nonexistent.h>
1.10658 -_ACEOF
1.10659 -if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.10660 -case "(($ac_try" in
1.10661 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.10662 - *) ac_try_echo=$ac_try;;
1.10663 -esac
1.10664 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.10665 - (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.10666 - ac_status=$?
1.10667 - grep -v '^ *+' conftest.er1 >conftest.err
1.10668 - rm -f conftest.er1
1.10669 - cat conftest.err >&5
1.10670 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10671 - (exit $ac_status); } >/dev/null && {
1.10672 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.10673 - test ! -s conftest.err
1.10674 - }; then
1.10675 - # Broken: success on invalid input.
1.10676 -continue
1.10677 -else
1.10678 - echo "$as_me: failed program was:" >&5
1.10679 -sed 's/^/| /' conftest.$ac_ext >&5
1.10680 -
1.10681 - # Passes both tests.
1.10682 -ac_preproc_ok=:
1.10683 -break
1.10684 -fi
1.10685 -
1.10686 -rm -f conftest.err conftest.$ac_ext
1.10687 -
1.10688 -done
1.10689 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.10690 -rm -f conftest.err conftest.$ac_ext
1.10691 -if $ac_preproc_ok; then
1.10692 - :
1.10693 -else
1.10694 - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
1.10695 -See \`config.log' for more details." >&5
1.10696 -echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
1.10697 -See \`config.log' for more details." >&2;}
1.10698 - { (exit 1); exit 1; }; }
1.10699 -fi
1.10700 -
1.10701 -ac_ext=c
1.10702 -ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.10703 -ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.10704 -ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.10705 -ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.10706 -
1.10707 -
1.10708 -
1.10709 -
1.10710 -BUILD_EXEEXT=$ac_build_exeext
1.10711 -BUILD_OBJEXT=$ac_build_objext
1.10712 -
1.10713 -ac_ext=m
1.10714 -ac_cpp='$OBJCPP $CPPFLAGS'
1.10715 -ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.10716 -ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.10717 -ac_compiler_gnu=$ac_cv_objc_compiler_gnu
1.10718 -if test -n "$ac_tool_prefix"; then
1.10719 - for ac_prog in gcc objcc objc cc CC
1.10720 - do
1.10721 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.10722 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.10723 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.10724 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.10725 -if test "${ac_cv_prog_OBJC+set}" = set; then
1.10726 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.10727 -else
1.10728 - if test -n "$OBJC"; then
1.10729 - ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
1.10730 -else
1.10731 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.10732 -for as_dir in $PATH
1.10733 -do
1.10734 - IFS=$as_save_IFS
1.10735 - test -z "$as_dir" && as_dir=.
1.10736 - for ac_exec_ext in '' $ac_executable_extensions; do
1.10737 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.10738 - ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
1.10739 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10740 - break 2
1.10741 - fi
1.10742 -done
1.10743 -done
1.10744 -IFS=$as_save_IFS
1.10745 -
1.10746 -fi
1.10747 -fi
1.10748 -OBJC=$ac_cv_prog_OBJC
1.10749 -if test -n "$OBJC"; then
1.10750 - { echo "$as_me:$LINENO: result: $OBJC" >&5
1.10751 -echo "${ECHO_T}$OBJC" >&6; }
1.10752 -else
1.10753 - { echo "$as_me:$LINENO: result: no" >&5
1.10754 -echo "${ECHO_T}no" >&6; }
1.10755 -fi
1.10756 -
1.10757 -
1.10758 - test -n "$OBJC" && break
1.10759 - done
1.10760 -fi
1.10761 -if test -z "$OBJC"; then
1.10762 - ac_ct_OBJC=$OBJC
1.10763 - for ac_prog in gcc objcc objc cc CC
1.10764 -do
1.10765 - # Extract the first word of "$ac_prog", so it can be a program name with args.
1.10766 -set dummy $ac_prog; ac_word=$2
1.10767 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.10768 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.10769 -if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
1.10770 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.10771 -else
1.10772 - if test -n "$ac_ct_OBJC"; then
1.10773 - ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
1.10774 -else
1.10775 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.10776 -for as_dir in $PATH
1.10777 -do
1.10778 - IFS=$as_save_IFS
1.10779 - test -z "$as_dir" && as_dir=.
1.10780 - for ac_exec_ext in '' $ac_executable_extensions; do
1.10781 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.10782 - ac_cv_prog_ac_ct_OBJC="$ac_prog"
1.10783 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10784 - break 2
1.10785 - fi
1.10786 -done
1.10787 -done
1.10788 -IFS=$as_save_IFS
1.10789 -
1.10790 -fi
1.10791 -fi
1.10792 -ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
1.10793 -if test -n "$ac_ct_OBJC"; then
1.10794 - { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
1.10795 -echo "${ECHO_T}$ac_ct_OBJC" >&6; }
1.10796 -else
1.10797 - { echo "$as_me:$LINENO: result: no" >&5
1.10798 -echo "${ECHO_T}no" >&6; }
1.10799 -fi
1.10800 -
1.10801 -
1.10802 - test -n "$ac_ct_OBJC" && break
1.10803 -done
1.10804 -
1.10805 - if test "x$ac_ct_OBJC" = x; then
1.10806 - OBJC="gcc"
1.10807 - else
1.10808 - case $cross_compiling:$ac_tool_warned in
1.10809 -yes:)
1.10810 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.10811 -whose name does not start with the host triplet. If you think this
1.10812 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.10813 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.10814 -whose name does not start with the host triplet. If you think this
1.10815 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.10816 -ac_tool_warned=yes ;;
1.10817 -esac
1.10818 - OBJC=$ac_ct_OBJC
1.10819 - fi
1.10820 -fi
1.10821 -
1.10822 -# Provide some information about the compiler.
1.10823 -echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
1.10824 -ac_compiler=`set X $ac_compile; echo $2`
1.10825 -{ (ac_try="$ac_compiler --version >&5"
1.10826 -case "(($ac_try" in
1.10827 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.10828 - *) ac_try_echo=$ac_try;;
1.10829 -esac
1.10830 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.10831 - (eval "$ac_compiler --version >&5") 2>&5
1.10832 - ac_status=$?
1.10833 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10834 - (exit $ac_status); }
1.10835 -{ (ac_try="$ac_compiler -v >&5"
1.10836 -case "(($ac_try" in
1.10837 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.10838 - *) ac_try_echo=$ac_try;;
1.10839 -esac
1.10840 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.10841 - (eval "$ac_compiler -v >&5") 2>&5
1.10842 - ac_status=$?
1.10843 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10844 - (exit $ac_status); }
1.10845 -{ (ac_try="$ac_compiler -V >&5"
1.10846 -case "(($ac_try" in
1.10847 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.10848 - *) ac_try_echo=$ac_try;;
1.10849 -esac
1.10850 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.10851 - (eval "$ac_compiler -V >&5") 2>&5
1.10852 - ac_status=$?
1.10853 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10854 - (exit $ac_status); }
1.10855 -
1.10856 -{ echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
1.10857 -echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
1.10858 -if test "${ac_cv_objc_compiler_gnu+set}" = set; then
1.10859 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.10860 -else
1.10861 - cat >conftest.$ac_ext <<_ACEOF
1.10862 -/* confdefs.h. */
1.10863 -_ACEOF
1.10864 -cat confdefs.h >>conftest.$ac_ext
1.10865 -cat >>conftest.$ac_ext <<_ACEOF
1.10866 -/* end confdefs.h. */
1.10867 -
1.10868 -int
1.10869 -main ()
1.10870 -{
1.10871 -#ifndef __GNUC__
1.10872 - choke me
1.10873 -#endif
1.10874 -
1.10875 - ;
1.10876 - return 0;
1.10877 -}
1.10878 -_ACEOF
1.10879 -rm -f conftest.$ac_objext
1.10880 -if { (ac_try="$ac_compile"
1.10881 -case "(($ac_try" in
1.10882 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.10883 - *) ac_try_echo=$ac_try;;
1.10884 -esac
1.10885 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.10886 - (eval "$ac_compile") 2>conftest.er1
1.10887 - ac_status=$?
1.10888 - grep -v '^ *+' conftest.er1 >conftest.err
1.10889 - rm -f conftest.er1
1.10890 - cat conftest.err >&5
1.10891 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10892 - (exit $ac_status); } && {
1.10893 - test -z "$ac_objc_werror_flag" ||
1.10894 - test ! -s conftest.err
1.10895 - } && test -s conftest.$ac_objext; then
1.10896 - ac_compiler_gnu=yes
1.10897 -else
1.10898 - echo "$as_me: failed program was:" >&5
1.10899 -sed 's/^/| /' conftest.$ac_ext >&5
1.10900 -
1.10901 - ac_compiler_gnu=no
1.10902 -fi
1.10903 -
1.10904 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.10905 -ac_cv_objc_compiler_gnu=$ac_compiler_gnu
1.10906 -
1.10907 -fi
1.10908 -{ echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
1.10909 -echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
1.10910 -GOBJC=`test $ac_compiler_gnu = yes && echo yes`
1.10911 -ac_test_OBJCFLAGS=${OBJCFLAGS+set}
1.10912 -ac_save_OBJCFLAGS=$OBJCFLAGS
1.10913 -{ echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
1.10914 -echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
1.10915 -if test "${ac_cv_prog_objc_g+set}" = set; then
1.10916 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.10917 -else
1.10918 - ac_save_objc_werror_flag=$ac_objc_werror_flag
1.10919 - ac_objc_werror_flag=yes
1.10920 - ac_cv_prog_objc_g=no
1.10921 - OBJCFLAGS="-g"
1.10922 - cat >conftest.$ac_ext <<_ACEOF
1.10923 -/* confdefs.h. */
1.10924 -_ACEOF
1.10925 -cat confdefs.h >>conftest.$ac_ext
1.10926 -cat >>conftest.$ac_ext <<_ACEOF
1.10927 -/* end confdefs.h. */
1.10928 -
1.10929 -int
1.10930 -main ()
1.10931 -{
1.10932 -
1.10933 - ;
1.10934 - return 0;
1.10935 -}
1.10936 -_ACEOF
1.10937 -rm -f conftest.$ac_objext
1.10938 -if { (ac_try="$ac_compile"
1.10939 -case "(($ac_try" in
1.10940 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.10941 - *) ac_try_echo=$ac_try;;
1.10942 -esac
1.10943 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.10944 - (eval "$ac_compile") 2>conftest.er1
1.10945 - ac_status=$?
1.10946 - grep -v '^ *+' conftest.er1 >conftest.err
1.10947 - rm -f conftest.er1
1.10948 - cat conftest.err >&5
1.10949 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10950 - (exit $ac_status); } && {
1.10951 - test -z "$ac_objc_werror_flag" ||
1.10952 - test ! -s conftest.err
1.10953 - } && test -s conftest.$ac_objext; then
1.10954 - ac_cv_prog_objc_g=yes
1.10955 -else
1.10956 - echo "$as_me: failed program was:" >&5
1.10957 -sed 's/^/| /' conftest.$ac_ext >&5
1.10958 -
1.10959 - OBJCFLAGS=""
1.10960 - cat >conftest.$ac_ext <<_ACEOF
1.10961 -/* confdefs.h. */
1.10962 -_ACEOF
1.10963 -cat confdefs.h >>conftest.$ac_ext
1.10964 -cat >>conftest.$ac_ext <<_ACEOF
1.10965 -/* end confdefs.h. */
1.10966 -
1.10967 -int
1.10968 -main ()
1.10969 -{
1.10970 -
1.10971 - ;
1.10972 - return 0;
1.10973 -}
1.10974 -_ACEOF
1.10975 -rm -f conftest.$ac_objext
1.10976 -if { (ac_try="$ac_compile"
1.10977 -case "(($ac_try" in
1.10978 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.10979 - *) ac_try_echo=$ac_try;;
1.10980 -esac
1.10981 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.10982 - (eval "$ac_compile") 2>conftest.er1
1.10983 - ac_status=$?
1.10984 - grep -v '^ *+' conftest.er1 >conftest.err
1.10985 - rm -f conftest.er1
1.10986 - cat conftest.err >&5
1.10987 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10988 - (exit $ac_status); } && {
1.10989 - test -z "$ac_objc_werror_flag" ||
1.10990 - test ! -s conftest.err
1.10991 - } && test -s conftest.$ac_objext; then
1.10992 - :
1.10993 -else
1.10994 - echo "$as_me: failed program was:" >&5
1.10995 -sed 's/^/| /' conftest.$ac_ext >&5
1.10996 -
1.10997 - ac_objc_werror_flag=$ac_save_objc_werror_flag
1.10998 - OBJCFLAGS="-g"
1.10999 - cat >conftest.$ac_ext <<_ACEOF
1.11000 -/* confdefs.h. */
1.11001 -_ACEOF
1.11002 -cat confdefs.h >>conftest.$ac_ext
1.11003 -cat >>conftest.$ac_ext <<_ACEOF
1.11004 -/* end confdefs.h. */
1.11005 -
1.11006 -int
1.11007 -main ()
1.11008 -{
1.11009 -
1.11010 - ;
1.11011 - return 0;
1.11012 -}
1.11013 -_ACEOF
1.11014 -rm -f conftest.$ac_objext
1.11015 -if { (ac_try="$ac_compile"
1.11016 -case "(($ac_try" in
1.11017 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.11018 - *) ac_try_echo=$ac_try;;
1.11019 -esac
1.11020 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.11021 - (eval "$ac_compile") 2>conftest.er1
1.11022 - ac_status=$?
1.11023 - grep -v '^ *+' conftest.er1 >conftest.err
1.11024 - rm -f conftest.er1
1.11025 - cat conftest.err >&5
1.11026 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.11027 - (exit $ac_status); } && {
1.11028 - test -z "$ac_objc_werror_flag" ||
1.11029 - test ! -s conftest.err
1.11030 - } && test -s conftest.$ac_objext; then
1.11031 - ac_cv_prog_objc_g=yes
1.11032 -else
1.11033 - echo "$as_me: failed program was:" >&5
1.11034 -sed 's/^/| /' conftest.$ac_ext >&5
1.11035 -
1.11036 -
1.11037 -fi
1.11038 -
1.11039 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11040 -fi
1.11041 -
1.11042 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11043 -fi
1.11044 -
1.11045 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11046 - ac_objc_werror_flag=$ac_save_objc_werror_flag
1.11047 -fi
1.11048 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
1.11049 -echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
1.11050 -if test "$ac_test_OBJCFLAGS" = set; then
1.11051 - OBJCFLAGS=$ac_save_OBJCFLAGS
1.11052 -elif test $ac_cv_prog_objc_g = yes; then
1.11053 - if test "$GOBJC" = yes; then
1.11054 - OBJCFLAGS="-g -O2"
1.11055 - else
1.11056 - OBJCFLAGS="-g"
1.11057 - fi
1.11058 -else
1.11059 - if test "$GOBJC" = yes; then
1.11060 - OBJCFLAGS="-O2"
1.11061 - else
1.11062 - OBJCFLAGS=
1.11063 - fi
1.11064 -fi
1.11065 -ac_ext=c
1.11066 -ac_cpp='$CPP $CPPFLAGS'
1.11067 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.11068 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.11069 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11070 -
1.11071 -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
1.11072 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
1.11073 -if test "${ac_cv_path_SED+set}" = set; then
1.11074 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.11075 -else
1.11076 - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
1.11077 - for ac_i in 1 2 3 4 5 6 7; do
1.11078 - ac_script="$ac_script$as_nl$ac_script"
1.11079 - done
1.11080 - echo "$ac_script" | sed 99q >conftest.sed
1.11081 - $as_unset ac_script || ac_script=
1.11082 - # Extract the first word of "sed gsed" to use in msg output
1.11083 -if test -z "$SED"; then
1.11084 -set dummy sed gsed; ac_prog_name=$2
1.11085 -if test "${ac_cv_path_SED+set}" = set; then
1.11086 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.11087 -else
1.11088 - ac_path_SED_found=false
1.11089 -# Loop through the user's path and test for each of PROGNAME-LIST
1.11090 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.11091 -for as_dir in $PATH
1.11092 -do
1.11093 - IFS=$as_save_IFS
1.11094 - test -z "$as_dir" && as_dir=.
1.11095 - for ac_prog in sed gsed; do
1.11096 - for ac_exec_ext in '' $ac_executable_extensions; do
1.11097 - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.11098 - { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
1.11099 - # Check for GNU ac_path_SED and select it if it is found.
1.11100 - # Check for GNU $ac_path_SED
1.11101 -case `"$ac_path_SED" --version 2>&1` in
1.11102 -*GNU*)
1.11103 - ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
1.11104 -*)
1.11105 - ac_count=0
1.11106 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
1.11107 - while :
1.11108 - do
1.11109 - cat "conftest.in" "conftest.in" >"conftest.tmp"
1.11110 - mv "conftest.tmp" "conftest.in"
1.11111 - cp "conftest.in" "conftest.nl"
1.11112 - echo '' >> "conftest.nl"
1.11113 - "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
1.11114 - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.11115 - ac_count=`expr $ac_count + 1`
1.11116 - if test $ac_count -gt ${ac_path_SED_max-0}; then
1.11117 - # Best one so far, save it but keep looking for a better one
1.11118 - ac_cv_path_SED="$ac_path_SED"
1.11119 - ac_path_SED_max=$ac_count
1.11120 - fi
1.11121 - # 10*(2^10) chars as input seems more than enough
1.11122 - test $ac_count -gt 10 && break
1.11123 - done
1.11124 - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1.11125 -esac
1.11126 -
1.11127 -
1.11128 - $ac_path_SED_found && break 3
1.11129 - done
1.11130 -done
1.11131 -
1.11132 -done
1.11133 -IFS=$as_save_IFS
1.11134 -
1.11135 -
1.11136 -fi
1.11137 -
1.11138 -SED="$ac_cv_path_SED"
1.11139 -if test -z "$SED"; then
1.11140 - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
1.11141 -echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
1.11142 - { (exit 1); exit 1; }; }
1.11143 -fi
1.11144 -
1.11145 -else
1.11146 - ac_cv_path_SED=$SED
1.11147 -fi
1.11148 -
1.11149 -fi
1.11150 -{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
1.11151 -echo "${ECHO_T}$ac_cv_path_SED" >&6; }
1.11152 - SED="$ac_cv_path_SED"
1.11153 - rm -f conftest.sed
1.11154 -
1.11155 -# By default we simply use the C compiler to build assembly code.
1.11156 -
1.11157 -test "${CCAS+set}" = set || CCAS=$CC
1.11158 -test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
1.11159 -
1.11160 -
1.11161 -
1.11162 -if test -n "$ac_tool_prefix"; then
1.11163 - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1.11164 -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.11165 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.11166 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.11167 -if test "${ac_cv_prog_RANLIB+set}" = set; then
1.11168 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.11169 -else
1.11170 - if test -n "$RANLIB"; then
1.11171 - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.11172 -else
1.11173 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.11174 -for as_dir in $PATH
1.11175 -do
1.11176 - IFS=$as_save_IFS
1.11177 - test -z "$as_dir" && as_dir=.
1.11178 - for ac_exec_ext in '' $ac_executable_extensions; do
1.11179 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.11180 - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.11181 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11182 - break 2
1.11183 - fi
1.11184 -done
1.11185 -done
1.11186 -IFS=$as_save_IFS
1.11187 -
1.11188 -fi
1.11189 -fi
1.11190 -RANLIB=$ac_cv_prog_RANLIB
1.11191 -if test -n "$RANLIB"; then
1.11192 - { echo "$as_me:$LINENO: result: $RANLIB" >&5
1.11193 -echo "${ECHO_T}$RANLIB" >&6; }
1.11194 -else
1.11195 - { echo "$as_me:$LINENO: result: no" >&5
1.11196 -echo "${ECHO_T}no" >&6; }
1.11197 -fi
1.11198 -
1.11199 -
1.11200 -fi
1.11201 -if test -z "$ac_cv_prog_RANLIB"; then
1.11202 - ac_ct_RANLIB=$RANLIB
1.11203 - # Extract the first word of "ranlib", so it can be a program name with args.
1.11204 -set dummy ranlib; ac_word=$2
1.11205 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.11206 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.11207 -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1.11208 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.11209 -else
1.11210 - if test -n "$ac_ct_RANLIB"; then
1.11211 - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.11212 -else
1.11213 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.11214 -for as_dir in $PATH
1.11215 -do
1.11216 - IFS=$as_save_IFS
1.11217 - test -z "$as_dir" && as_dir=.
1.11218 - for ac_exec_ext in '' $ac_executable_extensions; do
1.11219 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.11220 - ac_cv_prog_ac_ct_RANLIB="ranlib"
1.11221 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11222 - break 2
1.11223 - fi
1.11224 -done
1.11225 -done
1.11226 -IFS=$as_save_IFS
1.11227 -
1.11228 -fi
1.11229 -fi
1.11230 -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1.11231 -if test -n "$ac_ct_RANLIB"; then
1.11232 - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1.11233 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
1.11234 -else
1.11235 - { echo "$as_me:$LINENO: result: no" >&5
1.11236 -echo "${ECHO_T}no" >&6; }
1.11237 -fi
1.11238 -
1.11239 - if test "x$ac_ct_RANLIB" = x; then
1.11240 - RANLIB=":"
1.11241 - else
1.11242 - case $cross_compiling:$ac_tool_warned in
1.11243 -yes:)
1.11244 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.11245 -whose name does not start with the host triplet. If you think this
1.11246 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.11247 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.11248 -whose name does not start with the host triplet. If you think this
1.11249 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.11250 -ac_tool_warned=yes ;;
1.11251 -esac
1.11252 - RANLIB=$ac_ct_RANLIB
1.11253 - fi
1.11254 -else
1.11255 - RANLIB="$ac_cv_prog_RANLIB"
1.11256 -fi
1.11257 -
1.11258 -
1.11259 -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
1.11260 -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
1.11261 -if test "${ac_cv_path_GREP+set}" = set; then
1.11262 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.11263 -else
1.11264 - # Extract the first word of "grep ggrep" to use in msg output
1.11265 -if test -z "$GREP"; then
1.11266 -set dummy grep ggrep; ac_prog_name=$2
1.11267 -if test "${ac_cv_path_GREP+set}" = set; then
1.11268 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.11269 -else
1.11270 - ac_path_GREP_found=false
1.11271 -# Loop through the user's path and test for each of PROGNAME-LIST
1.11272 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.11273 -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1.11274 -do
1.11275 - IFS=$as_save_IFS
1.11276 - test -z "$as_dir" && as_dir=.
1.11277 - for ac_prog in grep ggrep; do
1.11278 - for ac_exec_ext in '' $ac_executable_extensions; do
1.11279 - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.11280 - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
1.11281 - # Check for GNU ac_path_GREP and select it if it is found.
1.11282 - # Check for GNU $ac_path_GREP
1.11283 -case `"$ac_path_GREP" --version 2>&1` in
1.11284 -*GNU*)
1.11285 - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
1.11286 -*)
1.11287 - ac_count=0
1.11288 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
1.11289 - while :
1.11290 - do
1.11291 - cat "conftest.in" "conftest.in" >"conftest.tmp"
1.11292 - mv "conftest.tmp" "conftest.in"
1.11293 - cp "conftest.in" "conftest.nl"
1.11294 - echo 'GREP' >> "conftest.nl"
1.11295 - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
1.11296 - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.11297 - ac_count=`expr $ac_count + 1`
1.11298 - if test $ac_count -gt ${ac_path_GREP_max-0}; then
1.11299 - # Best one so far, save it but keep looking for a better one
1.11300 - ac_cv_path_GREP="$ac_path_GREP"
1.11301 - ac_path_GREP_max=$ac_count
1.11302 - fi
1.11303 - # 10*(2^10) chars as input seems more than enough
1.11304 - test $ac_count -gt 10 && break
1.11305 - done
1.11306 - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1.11307 -esac
1.11308 -
1.11309 -
1.11310 - $ac_path_GREP_found && break 3
1.11311 - done
1.11312 -done
1.11313 -
1.11314 -done
1.11315 -IFS=$as_save_IFS
1.11316 -
1.11317 -
1.11318 -fi
1.11319 -
1.11320 -GREP="$ac_cv_path_GREP"
1.11321 -if test -z "$GREP"; then
1.11322 - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
1.11323 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
1.11324 - { (exit 1); exit 1; }; }
1.11325 -fi
1.11326 -
1.11327 -else
1.11328 - ac_cv_path_GREP=$GREP
1.11329 -fi
1.11330 -
1.11331 -
1.11332 -fi
1.11333 -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
1.11334 -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
1.11335 - GREP="$ac_cv_path_GREP"
1.11336 -
1.11337 -
1.11338 -{ echo "$as_me:$LINENO: checking for egrep" >&5
1.11339 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
1.11340 -if test "${ac_cv_path_EGREP+set}" = set; then
1.11341 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.11342 -else
1.11343 - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1.11344 - then ac_cv_path_EGREP="$GREP -E"
1.11345 - else
1.11346 - # Extract the first word of "egrep" to use in msg output
1.11347 -if test -z "$EGREP"; then
1.11348 -set dummy egrep; ac_prog_name=$2
1.11349 -if test "${ac_cv_path_EGREP+set}" = set; then
1.11350 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.11351 -else
1.11352 - ac_path_EGREP_found=false
1.11353 -# Loop through the user's path and test for each of PROGNAME-LIST
1.11354 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.11355 -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1.11356 -do
1.11357 - IFS=$as_save_IFS
1.11358 - test -z "$as_dir" && as_dir=.
1.11359 - for ac_prog in egrep; do
1.11360 - for ac_exec_ext in '' $ac_executable_extensions; do
1.11361 - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.11362 - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
1.11363 - # Check for GNU ac_path_EGREP and select it if it is found.
1.11364 - # Check for GNU $ac_path_EGREP
1.11365 -case `"$ac_path_EGREP" --version 2>&1` in
1.11366 -*GNU*)
1.11367 - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
1.11368 -*)
1.11369 - ac_count=0
1.11370 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
1.11371 - while :
1.11372 - do
1.11373 - cat "conftest.in" "conftest.in" >"conftest.tmp"
1.11374 - mv "conftest.tmp" "conftest.in"
1.11375 - cp "conftest.in" "conftest.nl"
1.11376 - echo 'EGREP' >> "conftest.nl"
1.11377 - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
1.11378 - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.11379 - ac_count=`expr $ac_count + 1`
1.11380 - if test $ac_count -gt ${ac_path_EGREP_max-0}; then
1.11381 - # Best one so far, save it but keep looking for a better one
1.11382 - ac_cv_path_EGREP="$ac_path_EGREP"
1.11383 - ac_path_EGREP_max=$ac_count
1.11384 - fi
1.11385 - # 10*(2^10) chars as input seems more than enough
1.11386 - test $ac_count -gt 10 && break
1.11387 - done
1.11388 - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1.11389 -esac
1.11390 -
1.11391 -
1.11392 - $ac_path_EGREP_found && break 3
1.11393 - done
1.11394 -done
1.11395 -
1.11396 -done
1.11397 -IFS=$as_save_IFS
1.11398 -
1.11399 -
1.11400 -fi
1.11401 -
1.11402 -EGREP="$ac_cv_path_EGREP"
1.11403 -if test -z "$EGREP"; then
1.11404 - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
1.11405 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
1.11406 - { (exit 1); exit 1; }; }
1.11407 -fi
1.11408 -
1.11409 -else
1.11410 - ac_cv_path_EGREP=$EGREP
1.11411 -fi
1.11412 -
1.11413 -
1.11414 - fi
1.11415 -fi
1.11416 -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
1.11417 -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
1.11418 - EGREP="$ac_cv_path_EGREP"
1.11419 -
1.11420 -
1.11421 -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1.11422 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.11423 -if test "${ac_cv_header_stdc+set}" = set; then
1.11424 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.11425 -else
1.11426 - cat >conftest.$ac_ext <<_ACEOF
1.11427 -/* confdefs.h. */
1.11428 -_ACEOF
1.11429 -cat confdefs.h >>conftest.$ac_ext
1.11430 -cat >>conftest.$ac_ext <<_ACEOF
1.11431 -/* end confdefs.h. */
1.11432 -#include <stdlib.h>
1.11433 -#include <stdarg.h>
1.11434 -#include <string.h>
1.11435 -#include <float.h>
1.11436 -
1.11437 -int
1.11438 -main ()
1.11439 -{
1.11440 -
1.11441 - ;
1.11442 - return 0;
1.11443 -}
1.11444 -_ACEOF
1.11445 -rm -f conftest.$ac_objext
1.11446 -if { (ac_try="$ac_compile"
1.11447 -case "(($ac_try" in
1.11448 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.11449 - *) ac_try_echo=$ac_try;;
1.11450 -esac
1.11451 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.11452 - (eval "$ac_compile") 2>conftest.er1
1.11453 - ac_status=$?
1.11454 - grep -v '^ *+' conftest.er1 >conftest.err
1.11455 - rm -f conftest.er1
1.11456 - cat conftest.err >&5
1.11457 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.11458 - (exit $ac_status); } && {
1.11459 - test -z "$ac_c_werror_flag" ||
1.11460 - test ! -s conftest.err
1.11461 - } && test -s conftest.$ac_objext; then
1.11462 - ac_cv_header_stdc=yes
1.11463 -else
1.11464 - echo "$as_me: failed program was:" >&5
1.11465 -sed 's/^/| /' conftest.$ac_ext >&5
1.11466 -
1.11467 - ac_cv_header_stdc=no
1.11468 -fi
1.11469 -
1.11470 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11471 -
1.11472 -if test $ac_cv_header_stdc = yes; then
1.11473 - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.11474 - cat >conftest.$ac_ext <<_ACEOF
1.11475 -/* confdefs.h. */
1.11476 -_ACEOF
1.11477 -cat confdefs.h >>conftest.$ac_ext
1.11478 -cat >>conftest.$ac_ext <<_ACEOF
1.11479 -/* end confdefs.h. */
1.11480 -#include <string.h>
1.11481 -
1.11482 -_ACEOF
1.11483 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.11484 - $EGREP "memchr" >/dev/null 2>&1; then
1.11485 - :
1.11486 -else
1.11487 - ac_cv_header_stdc=no
1.11488 -fi
1.11489 -rm -f conftest*
1.11490 -
1.11491 -fi
1.11492 -
1.11493 -if test $ac_cv_header_stdc = yes; then
1.11494 - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.11495 - cat >conftest.$ac_ext <<_ACEOF
1.11496 -/* confdefs.h. */
1.11497 -_ACEOF
1.11498 -cat confdefs.h >>conftest.$ac_ext
1.11499 -cat >>conftest.$ac_ext <<_ACEOF
1.11500 -/* end confdefs.h. */
1.11501 -#include <stdlib.h>
1.11502 -
1.11503 -_ACEOF
1.11504 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.11505 - $EGREP "free" >/dev/null 2>&1; then
1.11506 - :
1.11507 -else
1.11508 - ac_cv_header_stdc=no
1.11509 -fi
1.11510 -rm -f conftest*
1.11511 -
1.11512 -fi
1.11513 -
1.11514 -if test $ac_cv_header_stdc = yes; then
1.11515 - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.11516 - if test "$cross_compiling" = yes; then
1.11517 - :
1.11518 -else
1.11519 - cat >conftest.$ac_ext <<_ACEOF
1.11520 -/* confdefs.h. */
1.11521 -_ACEOF
1.11522 -cat confdefs.h >>conftest.$ac_ext
1.11523 -cat >>conftest.$ac_ext <<_ACEOF
1.11524 -/* end confdefs.h. */
1.11525 -#include <ctype.h>
1.11526 -#include <stdlib.h>
1.11527 -#if ((' ' & 0x0FF) == 0x020)
1.11528 -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1.11529 -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1.11530 -#else
1.11531 -# define ISLOWER(c) \
1.11532 - (('a' <= (c) && (c) <= 'i') \
1.11533 - || ('j' <= (c) && (c) <= 'r') \
1.11534 - || ('s' <= (c) && (c) <= 'z'))
1.11535 -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1.11536 -#endif
1.11537 -
1.11538 -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.11539 -int
1.11540 -main ()
1.11541 -{
1.11542 - int i;
1.11543 - for (i = 0; i < 256; i++)
1.11544 - if (XOR (islower (i), ISLOWER (i))
1.11545 - || toupper (i) != TOUPPER (i))
1.11546 - return 2;
1.11547 - return 0;
1.11548 -}
1.11549 -_ACEOF
1.11550 -rm -f conftest$ac_exeext
1.11551 -if { (ac_try="$ac_link"
1.11552 -case "(($ac_try" in
1.11553 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.11554 - *) ac_try_echo=$ac_try;;
1.11555 -esac
1.11556 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.11557 - (eval "$ac_link") 2>&5
1.11558 - ac_status=$?
1.11559 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.11560 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.11561 - { (case "(($ac_try" in
1.11562 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.11563 - *) ac_try_echo=$ac_try;;
1.11564 -esac
1.11565 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.11566 - (eval "$ac_try") 2>&5
1.11567 - ac_status=$?
1.11568 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.11569 - (exit $ac_status); }; }; then
1.11570 - :
1.11571 -else
1.11572 - echo "$as_me: program exited with status $ac_status" >&5
1.11573 -echo "$as_me: failed program was:" >&5
1.11574 -sed 's/^/| /' conftest.$ac_ext >&5
1.11575 -
1.11576 -( exit $ac_status )
1.11577 -ac_cv_header_stdc=no
1.11578 -fi
1.11579 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.11580 -fi
1.11581 -
1.11582 -
1.11583 -fi
1.11584 -fi
1.11585 -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1.11586 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.11587 -if test $ac_cv_header_stdc = yes; then
1.11588 -
1.11589 -cat >>confdefs.h <<\_ACEOF
1.11590 -#define STDC_HEADERS 1
1.11591 -_ACEOF
1.11592 -
1.11593 -fi
1.11594 -
1.11595 -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.11596 -
1.11597 -
1.11598 -
1.11599 -
1.11600 -
1.11601 -
1.11602 -
1.11603 -
1.11604 -
1.11605 -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1.11606 - inttypes.h stdint.h unistd.h
1.11607 -do
1.11608 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.11609 -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
1.11610 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
1.11611 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.11612 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.11613 -else
1.11614 - cat >conftest.$ac_ext <<_ACEOF
1.11615 -/* confdefs.h. */
1.11616 -_ACEOF
1.11617 -cat confdefs.h >>conftest.$ac_ext
1.11618 -cat >>conftest.$ac_ext <<_ACEOF
1.11619 -/* end confdefs.h. */
1.11620 -$ac_includes_default
1.11621 -
1.11622 -#include <$ac_header>
1.11623 -_ACEOF
1.11624 -rm -f conftest.$ac_objext
1.11625 -if { (ac_try="$ac_compile"
1.11626 -case "(($ac_try" in
1.11627 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.11628 - *) ac_try_echo=$ac_try;;
1.11629 -esac
1.11630 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.11631 - (eval "$ac_compile") 2>conftest.er1
1.11632 - ac_status=$?
1.11633 - grep -v '^ *+' conftest.er1 >conftest.err
1.11634 - rm -f conftest.er1
1.11635 - cat conftest.err >&5
1.11636 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.11637 - (exit $ac_status); } && {
1.11638 - test -z "$ac_c_werror_flag" ||
1.11639 - test ! -s conftest.err
1.11640 - } && test -s conftest.$ac_objext; then
1.11641 - eval "$as_ac_Header=yes"
1.11642 -else
1.11643 - echo "$as_me: failed program was:" >&5
1.11644 -sed 's/^/| /' conftest.$ac_ext >&5
1.11645 -
1.11646 - eval "$as_ac_Header=no"
1.11647 -fi
1.11648 -
1.11649 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11650 -fi
1.11651 -ac_res=`eval echo '${'$as_ac_Header'}'`
1.11652 - { echo "$as_me:$LINENO: result: $ac_res" >&5
1.11653 -echo "${ECHO_T}$ac_res" >&6; }
1.11654 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.11655 - cat >>confdefs.h <<_ACEOF
1.11656 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.11657 -_ACEOF
1.11658 -
1.11659 -fi
1.11660 -
1.11661 -done
1.11662 -
1.11663 -
1.11664 -{ echo "$as_me:$LINENO: checking for void *" >&5
1.11665 -echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
1.11666 -if test "${ac_cv_type_void_p+set}" = set; then
1.11667 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.11668 -else
1.11669 - cat >conftest.$ac_ext <<_ACEOF
1.11670 -/* confdefs.h. */
1.11671 -_ACEOF
1.11672 -cat confdefs.h >>conftest.$ac_ext
1.11673 -cat >>conftest.$ac_ext <<_ACEOF
1.11674 -/* end confdefs.h. */
1.11675 -$ac_includes_default
1.11676 -typedef void * ac__type_new_;
1.11677 -int
1.11678 -main ()
1.11679 -{
1.11680 -if ((ac__type_new_ *) 0)
1.11681 - return 0;
1.11682 -if (sizeof (ac__type_new_))
1.11683 - return 0;
1.11684 - ;
1.11685 - return 0;
1.11686 -}
1.11687 -_ACEOF
1.11688 -rm -f conftest.$ac_objext
1.11689 -if { (ac_try="$ac_compile"
1.11690 -case "(($ac_try" in
1.11691 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.11692 - *) ac_try_echo=$ac_try;;
1.11693 -esac
1.11694 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.11695 - (eval "$ac_compile") 2>conftest.er1
1.11696 - ac_status=$?
1.11697 - grep -v '^ *+' conftest.er1 >conftest.err
1.11698 - rm -f conftest.er1
1.11699 - cat conftest.err >&5
1.11700 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.11701 - (exit $ac_status); } && {
1.11702 - test -z "$ac_c_werror_flag" ||
1.11703 - test ! -s conftest.err
1.11704 - } && test -s conftest.$ac_objext; then
1.11705 - ac_cv_type_void_p=yes
1.11706 -else
1.11707 - echo "$as_me: failed program was:" >&5
1.11708 -sed 's/^/| /' conftest.$ac_ext >&5
1.11709 -
1.11710 - ac_cv_type_void_p=no
1.11711 -fi
1.11712 -
1.11713 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11714 -fi
1.11715 -{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
1.11716 -echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
1.11717 -
1.11718 -# The cast to long int works around a bug in the HP C Compiler
1.11719 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
1.11720 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
1.11721 -# This bug is HP SR number 8606223364.
1.11722 -{ echo "$as_me:$LINENO: checking size of void *" >&5
1.11723 -echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
1.11724 -if test "${ac_cv_sizeof_void_p+set}" = set; then
1.11725 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.11726 -else
1.11727 - if test "$cross_compiling" = yes; then
1.11728 - # Depending upon the size, compute the lo and hi bounds.
1.11729 -cat >conftest.$ac_ext <<_ACEOF
1.11730 -/* confdefs.h. */
1.11731 -_ACEOF
1.11732 -cat confdefs.h >>conftest.$ac_ext
1.11733 -cat >>conftest.$ac_ext <<_ACEOF
1.11734 -/* end confdefs.h. */
1.11735 -$ac_includes_default
1.11736 - typedef void * ac__type_sizeof_;
1.11737 -int
1.11738 -main ()
1.11739 -{
1.11740 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.11741 -test_array [0] = 0
1.11742 -
1.11743 - ;
1.11744 - return 0;
1.11745 -}
1.11746 -_ACEOF
1.11747 -rm -f conftest.$ac_objext
1.11748 -if { (ac_try="$ac_compile"
1.11749 -case "(($ac_try" in
1.11750 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.11751 - *) ac_try_echo=$ac_try;;
1.11752 -esac
1.11753 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.11754 - (eval "$ac_compile") 2>conftest.er1
1.11755 - ac_status=$?
1.11756 - grep -v '^ *+' conftest.er1 >conftest.err
1.11757 - rm -f conftest.er1
1.11758 - cat conftest.err >&5
1.11759 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.11760 - (exit $ac_status); } && {
1.11761 - test -z "$ac_c_werror_flag" ||
1.11762 - test ! -s conftest.err
1.11763 - } && test -s conftest.$ac_objext; then
1.11764 - ac_lo=0 ac_mid=0
1.11765 - while :; do
1.11766 - cat >conftest.$ac_ext <<_ACEOF
1.11767 -/* confdefs.h. */
1.11768 -_ACEOF
1.11769 -cat confdefs.h >>conftest.$ac_ext
1.11770 -cat >>conftest.$ac_ext <<_ACEOF
1.11771 -/* end confdefs.h. */
1.11772 -$ac_includes_default
1.11773 - typedef void * ac__type_sizeof_;
1.11774 -int
1.11775 -main ()
1.11776 -{
1.11777 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.11778 -test_array [0] = 0
1.11779 -
1.11780 - ;
1.11781 - return 0;
1.11782 -}
1.11783 -_ACEOF
1.11784 -rm -f conftest.$ac_objext
1.11785 -if { (ac_try="$ac_compile"
1.11786 -case "(($ac_try" in
1.11787 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.11788 - *) ac_try_echo=$ac_try;;
1.11789 -esac
1.11790 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.11791 - (eval "$ac_compile") 2>conftest.er1
1.11792 - ac_status=$?
1.11793 - grep -v '^ *+' conftest.er1 >conftest.err
1.11794 - rm -f conftest.er1
1.11795 - cat conftest.err >&5
1.11796 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.11797 - (exit $ac_status); } && {
1.11798 - test -z "$ac_c_werror_flag" ||
1.11799 - test ! -s conftest.err
1.11800 - } && test -s conftest.$ac_objext; then
1.11801 - ac_hi=$ac_mid; break
1.11802 -else
1.11803 - echo "$as_me: failed program was:" >&5
1.11804 -sed 's/^/| /' conftest.$ac_ext >&5
1.11805 -
1.11806 - ac_lo=`expr $ac_mid + 1`
1.11807 - if test $ac_lo -le $ac_mid; then
1.11808 - ac_lo= ac_hi=
1.11809 - break
1.11810 - fi
1.11811 - ac_mid=`expr 2 '*' $ac_mid + 1`
1.11812 -fi
1.11813 -
1.11814 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11815 - done
1.11816 -else
1.11817 - echo "$as_me: failed program was:" >&5
1.11818 -sed 's/^/| /' conftest.$ac_ext >&5
1.11819 -
1.11820 - cat >conftest.$ac_ext <<_ACEOF
1.11821 -/* confdefs.h. */
1.11822 -_ACEOF
1.11823 -cat confdefs.h >>conftest.$ac_ext
1.11824 -cat >>conftest.$ac_ext <<_ACEOF
1.11825 -/* end confdefs.h. */
1.11826 -$ac_includes_default
1.11827 - typedef void * ac__type_sizeof_;
1.11828 -int
1.11829 -main ()
1.11830 -{
1.11831 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.11832 -test_array [0] = 0
1.11833 -
1.11834 - ;
1.11835 - return 0;
1.11836 -}
1.11837 -_ACEOF
1.11838 -rm -f conftest.$ac_objext
1.11839 -if { (ac_try="$ac_compile"
1.11840 -case "(($ac_try" in
1.11841 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.11842 - *) ac_try_echo=$ac_try;;
1.11843 -esac
1.11844 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.11845 - (eval "$ac_compile") 2>conftest.er1
1.11846 - ac_status=$?
1.11847 - grep -v '^ *+' conftest.er1 >conftest.err
1.11848 - rm -f conftest.er1
1.11849 - cat conftest.err >&5
1.11850 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.11851 - (exit $ac_status); } && {
1.11852 - test -z "$ac_c_werror_flag" ||
1.11853 - test ! -s conftest.err
1.11854 - } && test -s conftest.$ac_objext; then
1.11855 - ac_hi=-1 ac_mid=-1
1.11856 - while :; do
1.11857 - cat >conftest.$ac_ext <<_ACEOF
1.11858 -/* confdefs.h. */
1.11859 -_ACEOF
1.11860 -cat confdefs.h >>conftest.$ac_ext
1.11861 -cat >>conftest.$ac_ext <<_ACEOF
1.11862 -/* end confdefs.h. */
1.11863 -$ac_includes_default
1.11864 - typedef void * ac__type_sizeof_;
1.11865 -int
1.11866 -main ()
1.11867 -{
1.11868 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.11869 -test_array [0] = 0
1.11870 -
1.11871 - ;
1.11872 - return 0;
1.11873 -}
1.11874 -_ACEOF
1.11875 -rm -f conftest.$ac_objext
1.11876 -if { (ac_try="$ac_compile"
1.11877 -case "(($ac_try" in
1.11878 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.11879 - *) ac_try_echo=$ac_try;;
1.11880 -esac
1.11881 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.11882 - (eval "$ac_compile") 2>conftest.er1
1.11883 - ac_status=$?
1.11884 - grep -v '^ *+' conftest.er1 >conftest.err
1.11885 - rm -f conftest.er1
1.11886 - cat conftest.err >&5
1.11887 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.11888 - (exit $ac_status); } && {
1.11889 - test -z "$ac_c_werror_flag" ||
1.11890 - test ! -s conftest.err
1.11891 - } && test -s conftest.$ac_objext; then
1.11892 - ac_lo=$ac_mid; break
1.11893 -else
1.11894 - echo "$as_me: failed program was:" >&5
1.11895 -sed 's/^/| /' conftest.$ac_ext >&5
1.11896 -
1.11897 - ac_hi=`expr '(' $ac_mid ')' - 1`
1.11898 - if test $ac_mid -le $ac_hi; then
1.11899 - ac_lo= ac_hi=
1.11900 - break
1.11901 - fi
1.11902 - ac_mid=`expr 2 '*' $ac_mid`
1.11903 -fi
1.11904 -
1.11905 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11906 - done
1.11907 -else
1.11908 - echo "$as_me: failed program was:" >&5
1.11909 -sed 's/^/| /' conftest.$ac_ext >&5
1.11910 -
1.11911 - ac_lo= ac_hi=
1.11912 -fi
1.11913 -
1.11914 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11915 -fi
1.11916 -
1.11917 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11918 -# Binary search between lo and hi bounds.
1.11919 -while test "x$ac_lo" != "x$ac_hi"; do
1.11920 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
1.11921 - cat >conftest.$ac_ext <<_ACEOF
1.11922 -/* confdefs.h. */
1.11923 -_ACEOF
1.11924 -cat confdefs.h >>conftest.$ac_ext
1.11925 -cat >>conftest.$ac_ext <<_ACEOF
1.11926 -/* end confdefs.h. */
1.11927 -$ac_includes_default
1.11928 - typedef void * ac__type_sizeof_;
1.11929 -int
1.11930 -main ()
1.11931 -{
1.11932 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.11933 -test_array [0] = 0
1.11934 -
1.11935 - ;
1.11936 - return 0;
1.11937 -}
1.11938 -_ACEOF
1.11939 -rm -f conftest.$ac_objext
1.11940 -if { (ac_try="$ac_compile"
1.11941 -case "(($ac_try" in
1.11942 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.11943 - *) ac_try_echo=$ac_try;;
1.11944 -esac
1.11945 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.11946 - (eval "$ac_compile") 2>conftest.er1
1.11947 - ac_status=$?
1.11948 - grep -v '^ *+' conftest.er1 >conftest.err
1.11949 - rm -f conftest.er1
1.11950 - cat conftest.err >&5
1.11951 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.11952 - (exit $ac_status); } && {
1.11953 - test -z "$ac_c_werror_flag" ||
1.11954 - test ! -s conftest.err
1.11955 - } && test -s conftest.$ac_objext; then
1.11956 - ac_hi=$ac_mid
1.11957 -else
1.11958 - echo "$as_me: failed program was:" >&5
1.11959 -sed 's/^/| /' conftest.$ac_ext >&5
1.11960 -
1.11961 - ac_lo=`expr '(' $ac_mid ')' + 1`
1.11962 -fi
1.11963 -
1.11964 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11965 -done
1.11966 -case $ac_lo in
1.11967 -?*) ac_cv_sizeof_void_p=$ac_lo;;
1.11968 -'') if test "$ac_cv_type_void_p" = yes; then
1.11969 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
1.11970 -See \`config.log' for more details." >&5
1.11971 -echo "$as_me: error: cannot compute sizeof (void *)
1.11972 -See \`config.log' for more details." >&2;}
1.11973 - { (exit 77); exit 77; }; }
1.11974 - else
1.11975 - ac_cv_sizeof_void_p=0
1.11976 - fi ;;
1.11977 -esac
1.11978 -else
1.11979 - cat >conftest.$ac_ext <<_ACEOF
1.11980 -/* confdefs.h. */
1.11981 -_ACEOF
1.11982 -cat confdefs.h >>conftest.$ac_ext
1.11983 -cat >>conftest.$ac_ext <<_ACEOF
1.11984 -/* end confdefs.h. */
1.11985 -$ac_includes_default
1.11986 - typedef void * ac__type_sizeof_;
1.11987 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.11988 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.11989 -#include <stdio.h>
1.11990 -#include <stdlib.h>
1.11991 -int
1.11992 -main ()
1.11993 -{
1.11994 -
1.11995 - FILE *f = fopen ("conftest.val", "w");
1.11996 - if (! f)
1.11997 - return 1;
1.11998 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.11999 - {
1.12000 - long int i = longval ();
1.12001 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
1.12002 - return 1;
1.12003 - fprintf (f, "%ld\n", i);
1.12004 - }
1.12005 - else
1.12006 - {
1.12007 - unsigned long int i = ulongval ();
1.12008 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
1.12009 - return 1;
1.12010 - fprintf (f, "%lu\n", i);
1.12011 - }
1.12012 - return ferror (f) || fclose (f) != 0;
1.12013 -
1.12014 - ;
1.12015 - return 0;
1.12016 -}
1.12017 -_ACEOF
1.12018 -rm -f conftest$ac_exeext
1.12019 -if { (ac_try="$ac_link"
1.12020 -case "(($ac_try" in
1.12021 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.12022 - *) ac_try_echo=$ac_try;;
1.12023 -esac
1.12024 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.12025 - (eval "$ac_link") 2>&5
1.12026 - ac_status=$?
1.12027 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12028 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.12029 - { (case "(($ac_try" in
1.12030 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.12031 - *) ac_try_echo=$ac_try;;
1.12032 -esac
1.12033 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.12034 - (eval "$ac_try") 2>&5
1.12035 - ac_status=$?
1.12036 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12037 - (exit $ac_status); }; }; then
1.12038 - ac_cv_sizeof_void_p=`cat conftest.val`
1.12039 -else
1.12040 - echo "$as_me: program exited with status $ac_status" >&5
1.12041 -echo "$as_me: failed program was:" >&5
1.12042 -sed 's/^/| /' conftest.$ac_ext >&5
1.12043 -
1.12044 -( exit $ac_status )
1.12045 -if test "$ac_cv_type_void_p" = yes; then
1.12046 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
1.12047 -See \`config.log' for more details." >&5
1.12048 -echo "$as_me: error: cannot compute sizeof (void *)
1.12049 -See \`config.log' for more details." >&2;}
1.12050 - { (exit 77); exit 77; }; }
1.12051 - else
1.12052 - ac_cv_sizeof_void_p=0
1.12053 - fi
1.12054 -fi
1.12055 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.12056 -fi
1.12057 -rm -f conftest.val
1.12058 -fi
1.12059 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
1.12060 -echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
1.12061 -
1.12062 -
1.12063 -
1.12064 -cat >>confdefs.h <<_ACEOF
1.12065 -#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.12066 -_ACEOF
1.12067 -
1.12068 -
1.12069 -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1.12070 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.12071 -if test "${ac_cv_header_stdc+set}" = set; then
1.12072 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.12073 -else
1.12074 - cat >conftest.$ac_ext <<_ACEOF
1.12075 -/* confdefs.h. */
1.12076 -_ACEOF
1.12077 -cat confdefs.h >>conftest.$ac_ext
1.12078 -cat >>conftest.$ac_ext <<_ACEOF
1.12079 -/* end confdefs.h. */
1.12080 -#include <stdlib.h>
1.12081 -#include <stdarg.h>
1.12082 -#include <string.h>
1.12083 -#include <float.h>
1.12084 -
1.12085 -int
1.12086 -main ()
1.12087 -{
1.12088 -
1.12089 - ;
1.12090 - return 0;
1.12091 -}
1.12092 -_ACEOF
1.12093 -rm -f conftest.$ac_objext
1.12094 -if { (ac_try="$ac_compile"
1.12095 -case "(($ac_try" in
1.12096 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.12097 - *) ac_try_echo=$ac_try;;
1.12098 -esac
1.12099 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.12100 - (eval "$ac_compile") 2>conftest.er1
1.12101 - ac_status=$?
1.12102 - grep -v '^ *+' conftest.er1 >conftest.err
1.12103 - rm -f conftest.er1
1.12104 - cat conftest.err >&5
1.12105 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12106 - (exit $ac_status); } && {
1.12107 - test -z "$ac_c_werror_flag" ||
1.12108 - test ! -s conftest.err
1.12109 - } && test -s conftest.$ac_objext; then
1.12110 - ac_cv_header_stdc=yes
1.12111 -else
1.12112 - echo "$as_me: failed program was:" >&5
1.12113 -sed 's/^/| /' conftest.$ac_ext >&5
1.12114 -
1.12115 - ac_cv_header_stdc=no
1.12116 -fi
1.12117 -
1.12118 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.12119 -
1.12120 -if test $ac_cv_header_stdc = yes; then
1.12121 - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.12122 - cat >conftest.$ac_ext <<_ACEOF
1.12123 -/* confdefs.h. */
1.12124 -_ACEOF
1.12125 -cat confdefs.h >>conftest.$ac_ext
1.12126 -cat >>conftest.$ac_ext <<_ACEOF
1.12127 -/* end confdefs.h. */
1.12128 -#include <string.h>
1.12129 -
1.12130 -_ACEOF
1.12131 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.12132 - $EGREP "memchr" >/dev/null 2>&1; then
1.12133 - :
1.12134 -else
1.12135 - ac_cv_header_stdc=no
1.12136 -fi
1.12137 -rm -f conftest*
1.12138 -
1.12139 -fi
1.12140 -
1.12141 -if test $ac_cv_header_stdc = yes; then
1.12142 - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.12143 - cat >conftest.$ac_ext <<_ACEOF
1.12144 -/* confdefs.h. */
1.12145 -_ACEOF
1.12146 -cat confdefs.h >>conftest.$ac_ext
1.12147 -cat >>conftest.$ac_ext <<_ACEOF
1.12148 -/* end confdefs.h. */
1.12149 -#include <stdlib.h>
1.12150 -
1.12151 -_ACEOF
1.12152 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.12153 - $EGREP "free" >/dev/null 2>&1; then
1.12154 - :
1.12155 -else
1.12156 - ac_cv_header_stdc=no
1.12157 -fi
1.12158 -rm -f conftest*
1.12159 -
1.12160 -fi
1.12161 -
1.12162 -if test $ac_cv_header_stdc = yes; then
1.12163 - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.12164 - if test "$cross_compiling" = yes; then
1.12165 - :
1.12166 -else
1.12167 - cat >conftest.$ac_ext <<_ACEOF
1.12168 -/* confdefs.h. */
1.12169 -_ACEOF
1.12170 -cat confdefs.h >>conftest.$ac_ext
1.12171 -cat >>conftest.$ac_ext <<_ACEOF
1.12172 -/* end confdefs.h. */
1.12173 -#include <ctype.h>
1.12174 -#include <stdlib.h>
1.12175 -#if ((' ' & 0x0FF) == 0x020)
1.12176 -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1.12177 -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1.12178 -#else
1.12179 -# define ISLOWER(c) \
1.12180 - (('a' <= (c) && (c) <= 'i') \
1.12181 - || ('j' <= (c) && (c) <= 'r') \
1.12182 - || ('s' <= (c) && (c) <= 'z'))
1.12183 -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1.12184 -#endif
1.12185 -
1.12186 -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.12187 -int
1.12188 -main ()
1.12189 -{
1.12190 - int i;
1.12191 - for (i = 0; i < 256; i++)
1.12192 - if (XOR (islower (i), ISLOWER (i))
1.12193 - || toupper (i) != TOUPPER (i))
1.12194 - return 2;
1.12195 - return 0;
1.12196 -}
1.12197 -_ACEOF
1.12198 -rm -f conftest$ac_exeext
1.12199 -if { (ac_try="$ac_link"
1.12200 -case "(($ac_try" in
1.12201 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.12202 - *) ac_try_echo=$ac_try;;
1.12203 -esac
1.12204 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.12205 - (eval "$ac_link") 2>&5
1.12206 - ac_status=$?
1.12207 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12208 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.12209 - { (case "(($ac_try" in
1.12210 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.12211 - *) ac_try_echo=$ac_try;;
1.12212 -esac
1.12213 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.12214 - (eval "$ac_try") 2>&5
1.12215 - ac_status=$?
1.12216 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12217 - (exit $ac_status); }; }; then
1.12218 - :
1.12219 -else
1.12220 - echo "$as_me: program exited with status $ac_status" >&5
1.12221 -echo "$as_me: failed program was:" >&5
1.12222 -sed 's/^/| /' conftest.$ac_ext >&5
1.12223 -
1.12224 -( exit $ac_status )
1.12225 -ac_cv_header_stdc=no
1.12226 -fi
1.12227 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.12228 -fi
1.12229 -
1.12230 -
1.12231 -fi
1.12232 -fi
1.12233 -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1.12234 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.12235 -if test $ac_cv_header_stdc = yes; then
1.12236 -
1.12237 -cat >>confdefs.h <<\_ACEOF
1.12238 -#define STDC_HEADERS 1
1.12239 -_ACEOF
1.12240 -
1.12241 -fi
1.12242 -
1.12243 -
1.12244 -
1.12245 -depcc="$OBJC" am_compiler_list='gcc3 gcc'
1.12246 -
1.12247 -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.12248 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.12249 -if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
1.12250 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.12251 -else
1.12252 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.12253 - # We make a subdir and do the tests there. Otherwise we can end up
1.12254 - # making bogus files that we don't know about and never remove. For
1.12255 - # instance it was reported that on HP-UX the gcc test will end up
1.12256 - # making a dummy file named `D' -- because `-MD' means `put the output
1.12257 - # in D'.
1.12258 - mkdir conftest.dir
1.12259 - # Copy depcomp to subdir because otherwise we won't find it if we're
1.12260 - # using a relative directory.
1.12261 - cp "$am_depcomp" conftest.dir
1.12262 - cd conftest.dir
1.12263 - # We will build objects and dependencies in a subdirectory because
1.12264 - # it helps to detect inapplicable dependency modes. For instance
1.12265 - # both Tru64's cc and ICC support -MD to output dependencies as a
1.12266 - # side effect of compilation, but ICC will put the dependencies in
1.12267 - # the current directory while Tru64 will put them in the object
1.12268 - # directory.
1.12269 - mkdir sub
1.12270 -
1.12271 - am_cv_OBJC_dependencies_compiler_type=none
1.12272 - if test "$am_compiler_list" = ""; then
1.12273 - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.12274 - fi
1.12275 - for depmode in $am_compiler_list; do
1.12276 - # Setup a source with many dependencies, because some compilers
1.12277 - # like to wrap large dependency lists on column 80 (with \), and
1.12278 - # we should not choose a depcomp mode which is confused by this.
1.12279 - #
1.12280 - # We need to recreate these files for each test, as the compiler may
1.12281 - # overwrite some of them when testing with obscure command lines.
1.12282 - # This happens at least with the AIX C compiler.
1.12283 - : > sub/conftest.c
1.12284 - for i in 1 2 3 4 5 6; do
1.12285 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.12286 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.12287 - # Solaris 8's {/usr,}/bin/sh.
1.12288 - touch sub/conftst$i.h
1.12289 - done
1.12290 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.12291 -
1.12292 - case $depmode in
1.12293 - nosideeffect)
1.12294 - # after this tag, mechanisms are not by side-effect, so they'll
1.12295 - # only be used when explicitly requested
1.12296 - if test "x$enable_dependency_tracking" = xyes; then
1.12297 - continue
1.12298 - else
1.12299 - break
1.12300 - fi
1.12301 - ;;
1.12302 - none) break ;;
1.12303 - esac
1.12304 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.12305 - # mode. It turns out that the SunPro C++ compiler does not properly
1.12306 - # handle `-M -o', and we need to detect this.
1.12307 - if depmode=$depmode \
1.12308 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.12309 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.12310 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.12311 - >/dev/null 2>conftest.err &&
1.12312 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.12313 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.12314 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.12315 - # icc doesn't choke on unknown options, it will just issue warnings
1.12316 - # or remarks (even with -Werror). So we grep stderr for any message
1.12317 - # that says an option was ignored or not supported.
1.12318 - # When given -MP, icc 7.0 and 7.1 complain thusly:
1.12319 - # icc: Command line warning: ignoring option '-M'; no argument required
1.12320 - # The diagnosis changed in icc 8.0:
1.12321 - # icc: Command line remark: option '-MP' not supported
1.12322 - if (grep 'ignoring option' conftest.err ||
1.12323 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.12324 - am_cv_OBJC_dependencies_compiler_type=$depmode
1.12325 - break
1.12326 - fi
1.12327 - fi
1.12328 - done
1.12329 -
1.12330 - cd ..
1.12331 - rm -rf conftest.dir
1.12332 -else
1.12333 - am_cv_OBJC_dependencies_compiler_type=none
1.12334 -fi
1.12335 -
1.12336 -fi
1.12337 -{ echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
1.12338 -echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
1.12339 -OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
1.12340 -
1.12341 -
1.12342 -
1.12343 -if
1.12344 - test "x$enable_dependency_tracking" != xno \
1.12345 - && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
1.12346 - am__fastdepOBJC_TRUE=
1.12347 - am__fastdepOBJC_FALSE='#'
1.12348 -else
1.12349 - am__fastdepOBJC_TRUE='#'
1.12350 - am__fastdepOBJC_FALSE=
1.12351 -fi
1.12352 -
1.12353 -
1.12354 -
1.12355 -# Extract the first word of "pod2man", so it can be a program name with args.
1.12356 -set dummy pod2man; ac_word=$2
1.12357 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.12358 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.12359 -if test "${ac_cv_path_POD2MAN+set}" = set; then
1.12360 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.12361 -else
1.12362 - case $POD2MAN in
1.12363 - [\\/]* | ?:[\\/]*)
1.12364 - ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
1.12365 - ;;
1.12366 - *)
1.12367 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.12368 -for as_dir in $PATH
1.12369 -do
1.12370 - IFS=$as_save_IFS
1.12371 - test -z "$as_dir" && as_dir=.
1.12372 - for ac_exec_ext in '' $ac_executable_extensions; do
1.12373 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.12374 - ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
1.12375 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.12376 - break 2
1.12377 - fi
1.12378 -done
1.12379 -done
1.12380 -IFS=$as_save_IFS
1.12381 -
1.12382 - ;;
1.12383 -esac
1.12384 -fi
1.12385 -POD2MAN=$ac_cv_path_POD2MAN
1.12386 -if test -n "$POD2MAN"; then
1.12387 - { echo "$as_me:$LINENO: result: $POD2MAN" >&5
1.12388 -echo "${ECHO_T}$POD2MAN" >&6; }
1.12389 -else
1.12390 - { echo "$as_me:$LINENO: result: no" >&5
1.12391 -echo "${ECHO_T}no" >&6; }
1.12392 -fi
1.12393 -
1.12394 -
1.12395 -# Extract the first word of "pod2html", so it can be a program name with args.
1.12396 -set dummy pod2html; ac_word=$2
1.12397 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.12398 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.12399 -if test "${ac_cv_path_POD2HTML+set}" = set; then
1.12400 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.12401 -else
1.12402 - case $POD2HTML in
1.12403 - [\\/]* | ?:[\\/]*)
1.12404 - ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
1.12405 - ;;
1.12406 - *)
1.12407 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.12408 -for as_dir in $PATH
1.12409 -do
1.12410 - IFS=$as_save_IFS
1.12411 - test -z "$as_dir" && as_dir=.
1.12412 - for ac_exec_ext in '' $ac_executable_extensions; do
1.12413 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.12414 - ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
1.12415 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.12416 - break 2
1.12417 - fi
1.12418 -done
1.12419 -done
1.12420 -IFS=$as_save_IFS
1.12421 -
1.12422 - ;;
1.12423 -esac
1.12424 -fi
1.12425 -POD2HTML=$ac_cv_path_POD2HTML
1.12426 -if test -n "$POD2HTML"; then
1.12427 - { echo "$as_me:$LINENO: result: $POD2HTML" >&5
1.12428 -echo "${ECHO_T}$POD2HTML" >&6; }
1.12429 -else
1.12430 - { echo "$as_me:$LINENO: result: no" >&5
1.12431 -echo "${ECHO_T}no" >&6; }
1.12432 -fi
1.12433 -
1.12434 -
1.12435 -
1.12436 -
1.12437 -cat >>confdefs.h <<_ACEOF
1.12438 -#define BUILD_SED_PROG "${SED}"
1.12439 -_ACEOF
1.12440 -
1.12441 -
1.12442 -cat >>confdefs.h <<_ACEOF
1.12443 -#define BUILD_CPP_PROG "${CPP}"
1.12444 -_ACEOF
1.12445 -
1.12446 -
1.12447 -
1.12448 -# Check whether --enable-strict-warn was given.
1.12449 -if test "${enable_strict_warn+set}" = set; then
1.12450 - enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
1.12451 - enable_strictwarn=yes
1.12452 - fi
1.12453 -fi
1.12454 -
1.12455 -# Check whether --enable-translator was given.
1.12456 -if test "${enable_translator+set}" = set; then
1.12457 - enableval=$enable_translator; true
1.12458 -else
1.12459 - enable_translator=yes
1.12460 -fi
1.12461 -
1.12462 -# Check whether --enable-optimized was given.
1.12463 -if test "${enable_optimized+set}" = set; then
1.12464 - enableval=$enable_optimized; true
1.12465 -else
1.12466 - enable_optimized=yes
1.12467 -fi
1.12468 -
1.12469 -# Check whether --enable-shared was given.
1.12470 -if test "${enable_shared+set}" = set; then
1.12471 - enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
1.12472 -else
1.12473 - enable_shared=cond
1.12474 -fi
1.12475 -
1.12476 -# Check whether --enable-profiled was given.
1.12477 -if test "${enable_profiled+set}" = set; then
1.12478 - enableval=$enable_profiled; if test "$enableval" == "yes"; then
1.12479 - enable_profiled=yes;
1.12480 - fi
1.12481 -fi
1.12482 -
1.12483 -# Check whether --enable-trace was given.
1.12484 -if test "${enable_trace+set}" = set; then
1.12485 - enableval=$enable_trace; if test "$enableval" == "yes"; then
1.12486 -
1.12487 -cat >>confdefs.h <<\_ACEOF
1.12488 -#define ENABLE_TRACE_IO 1
1.12489 -_ACEOF
1.12490 -
1.12491 - fi
1.12492 -fi
1.12493 -
1.12494 -# Check whether --enable-watch was given.
1.12495 -if test "${enable_watch+set}" = set; then
1.12496 - enableval=$enable_watch; if test "$enableval" == "yes"; then
1.12497 -
1.12498 -cat >>confdefs.h <<\_ACEOF
1.12499 -#define ENABLE_WATCH 1
1.12500 -_ACEOF
1.12501 -
1.12502 - fi
1.12503 -fi
1.12504 -
1.12505 -# Check whether --enable-sh4stats was given.
1.12506 -if test "${enable_sh4stats+set}" = set; then
1.12507 - enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
1.12508 -
1.12509 -cat >>confdefs.h <<\_ACEOF
1.12510 -#define ENABLE_SH4STATS 1
1.12511 -_ACEOF
1.12512 -
1.12513 - fi
1.12514 -fi
1.12515 -
1.12516 -
1.12517 -# Check whether --with-osmesa was given.
1.12518 -if test "${with_osmesa+set}" = set; then
1.12519 - withval=$with_osmesa;
1.12520 -else
1.12521 - with_osmesa=no
1.12522 -fi
1.12523 -
1.12524 -
1.12525 -# Check whether --with-gtk was given.
1.12526 -if test "${with_gtk+set}" = set; then
1.12527 - withval=$with_gtk; with_gtk=yes
1.12528 -else
1.12529 - with_gtk=x11
1.12530 -fi
1.12531 -
1.12532 -
1.12533 -# Check whether --with-esd was given.
1.12534 -if test "${with_esd+set}" = set; then
1.12535 - withval=$with_esd;
1.12536 -fi
1.12537 -
1.12538 -
1.12539 -# Check whether --with-pulse was given.
1.12540 -if test "${with_pulse+set}" = set; then
1.12541 - withval=$with_pulse;
1.12542 -fi
1.12543 -
1.12544 -
1.12545 -# Check whether --with-sdl was given.
1.12546 -if test "${with_sdl+set}" = set; then
1.12547 - withval=$with_sdl;
1.12548 -fi
1.12549 -
1.12550 -
1.12551
1.12552 if test "$ANDROID_BUILD" = "yes"; then
1.12553 with_gtk=no;
1.12554 EXTRA_OUTPUT_FILES="src/android/build.properties"
1.12555 - LIBS="-lEGL -lGLESv2 $LIBS"
1.12556 -
1.12557 -cat >>confdefs.h <<\_ACEOF
1.12558 -#define HAVE_GLES2 1
1.12559 -_ACEOF
1.12560 -
1.12561 UI_DRIVER="Android"
1.12562 - VIDEO_DRIVERS="egl"
1.12563 with_sdl=no
1.12564 else
1.12565
1.12566 @@ -11325,6 +11341,12 @@
1.12567 fi
1.12568
1.12569
1.12570 +if test "$BUILD_PKG_CONFIG_LIBDIR" != "$TARGET_PKG_CONFIG_LIBDIR"; then
1.12571 + PKG_CONFIG_LIBDIR="$BUILD_PKG_CONFIG_LIBDIR";
1.12572 + if test "x$PKG_CONFIG_LIBDIR" = "x"; then
1.12573 + export -n PKG_CONFIG_LIBDIR
1.12574 + fi
1.12575 +fi
1.12576
1.12577 pkg_failed=no
1.12578 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
1.12579 @@ -11432,6 +11454,10 @@
1.12580 echo "${ECHO_T}yes" >&6; }
1.12581 :
1.12582 fi
1.12583 +if test "$BUILD_PKG_CONFIG_LIBDIR" != "$TARGET_PKG_CONFIG_LIBDIR"; then
1.12584 + PKG_CONFIG_LIBDIR="$TARGET_PKG_CONFIG_LIBDIR";
1.12585 + export PKG_CONFIG_LIBDIR
1.12586 +fi
1.12587
1.12588
1.12589
1.12590 @@ -11779,7 +11805,7 @@
1.12591 else
1.12592
1.12593
1.12594 - if test "x$APPLE_BUILD" != 'xyes' -a "x$ANDROID_BUILD" != 'xyes'; then
1.12595 + if test "x$APPLE_BUILD" != 'xyes'; then
1.12596
1.12597 pkg_failed=no
1.12598 { echo "$as_me:$LINENO: checking for LIBGL" >&5
1.12599 @@ -11789,12 +11815,12 @@
1.12600 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
1.12601 elif test -n "$PKG_CONFIG"; then
1.12602 if test -n "$PKG_CONFIG" && \
1.12603 - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
1.12604 - ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
1.12605 - ac_status=$?
1.12606 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12607 - (exit $ac_status); }; then
1.12608 - pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
1.12609 + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl\"") >&5
1.12610 + ($PKG_CONFIG --exists --print-errors "gl") 2>&5
1.12611 + ac_status=$?
1.12612 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12613 + (exit $ac_status); }; then
1.12614 + pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
1.12615 else
1.12616 pkg_failed=yes
1.12617 fi
1.12618 @@ -11805,12 +11831,12 @@
1.12619 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
1.12620 elif test -n "$PKG_CONFIG"; then
1.12621 if test -n "$PKG_CONFIG" && \
1.12622 - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
1.12623 - ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
1.12624 - ac_status=$?
1.12625 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12626 - (exit $ac_status); }; then
1.12627 - pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
1.12628 + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl\"") >&5
1.12629 + ($PKG_CONFIG --exists --print-errors "gl") 2>&5
1.12630 + ac_status=$?
1.12631 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12632 + (exit $ac_status); }; then
1.12633 + pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
1.12634 else
1.12635 pkg_failed=yes
1.12636 fi
1.12637 @@ -11828,67 +11854,173 @@
1.12638 _pkg_short_errors_supported=no
1.12639 fi
1.12640 if test $_pkg_short_errors_supported = yes; then
1.12641 - LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
1.12642 + LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl" 2>&1`
1.12643 else
1.12644 - LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
1.12645 + LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl" 2>&1`
1.12646 fi
1.12647 # Put the nasty error message in config.log where it belongs
1.12648 echo "$LIBGL_PKG_ERRORS" >&5
1.12649
1.12650 - { { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
1.12651 -
1.12652 -$LIBGL_PKG_ERRORS
1.12653 -
1.12654 -Consider adjusting the PKG_CONFIG_PATH environment variable if you
1.12655 -installed software in a non-standard prefix.
1.12656 -
1.12657 -Alternatively, you may set the environment variables LIBGL_CFLAGS
1.12658 -and LIBGL_LIBS to avoid the need to call pkg-config.
1.12659 -See the pkg-config man page for more details.
1.12660 -" >&5
1.12661 -echo "$as_me: error: Package requirements (gl ) were not met:
1.12662 -
1.12663 -$LIBGL_PKG_ERRORS
1.12664 -
1.12665 -Consider adjusting the PKG_CONFIG_PATH environment variable if you
1.12666 -installed software in a non-standard prefix.
1.12667 -
1.12668 -Alternatively, you may set the environment variables LIBGL_CFLAGS
1.12669 -and LIBGL_LIBS to avoid the need to call pkg-config.
1.12670 -See the pkg-config man page for more details.
1.12671 -" >&2;}
1.12672 - { (exit 1); exit 1; }; }
1.12673 + { echo "$as_me:$LINENO: result: no" >&5
1.12674 +echo "${ECHO_T}no" >&6; }
1.12675 +
1.12676 + { echo "$as_me:$LINENO: checking for glEnable in -lGLESv2" >&5
1.12677 +echo $ECHO_N "checking for glEnable in -lGLESv2... $ECHO_C" >&6; }
1.12678 +if test "${ac_cv_lib_GLESv2_glEnable+set}" = set; then
1.12679 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.12680 +else
1.12681 + ac_check_lib_save_LIBS=$LIBS
1.12682 +LIBS="-lGLESv2 $LIBS"
1.12683 +cat >conftest.$ac_ext <<_ACEOF
1.12684 +/* confdefs.h. */
1.12685 +_ACEOF
1.12686 +cat confdefs.h >>conftest.$ac_ext
1.12687 +cat >>conftest.$ac_ext <<_ACEOF
1.12688 +/* end confdefs.h. */
1.12689 +
1.12690 +/* Override any GCC internal prototype to avoid an error.
1.12691 + Use char because int might match the return type of a GCC
1.12692 + builtin and then its argument prototype would still apply. */
1.12693 +#ifdef __cplusplus
1.12694 +extern "C"
1.12695 +#endif
1.12696 +char glEnable ();
1.12697 +int
1.12698 +main ()
1.12699 +{
1.12700 +return glEnable ();
1.12701 + ;
1.12702 + return 0;
1.12703 +}
1.12704 +_ACEOF
1.12705 +rm -f conftest.$ac_objext conftest$ac_exeext
1.12706 +if { (ac_try="$ac_link"
1.12707 +case "(($ac_try" in
1.12708 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.12709 + *) ac_try_echo=$ac_try;;
1.12710 +esac
1.12711 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.12712 + (eval "$ac_link") 2>conftest.er1
1.12713 + ac_status=$?
1.12714 + grep -v '^ *+' conftest.er1 >conftest.err
1.12715 + rm -f conftest.er1
1.12716 + cat conftest.err >&5
1.12717 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12718 + (exit $ac_status); } && {
1.12719 + test -z "$ac_c_werror_flag" ||
1.12720 + test ! -s conftest.err
1.12721 + } && test -s conftest$ac_exeext &&
1.12722 + $as_test_x conftest$ac_exeext; then
1.12723 + ac_cv_lib_GLESv2_glEnable=yes
1.12724 +else
1.12725 + echo "$as_me: failed program was:" >&5
1.12726 +sed 's/^/| /' conftest.$ac_ext >&5
1.12727 +
1.12728 + ac_cv_lib_GLESv2_glEnable=no
1.12729 +fi
1.12730 +
1.12731 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.12732 + conftest$ac_exeext conftest.$ac_ext
1.12733 +LIBS=$ac_check_lib_save_LIBS
1.12734 +fi
1.12735 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLESv2_glEnable" >&5
1.12736 +echo "${ECHO_T}$ac_cv_lib_GLESv2_glEnable" >&6; }
1.12737 +if test $ac_cv_lib_GLESv2_glEnable = yes; then
1.12738 + LIBS="-lGLESv2 $LIBS"; HAVE_GLES2='yes'
1.12739 +else
1.12740 + { { echo "$as_me:$LINENO: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
1.12741 +See \`config.log' for more details." >&5
1.12742 +echo "$as_me: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
1.12743 +See \`config.log' for more details." >&2;}
1.12744 + { (exit 1); exit 1; }; }
1.12745 +fi
1.12746 +
1.12747 +
1.12748 elif test $pkg_failed = untried; then
1.12749 - { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
1.12750 -is in your PATH or set the PKG_CONFIG environment variable to the full
1.12751 -path to pkg-config.
1.12752 -
1.12753 -Alternatively, you may set the environment variables LIBGL_CFLAGS
1.12754 -and LIBGL_LIBS to avoid the need to call pkg-config.
1.12755 -See the pkg-config man page for more details.
1.12756 -
1.12757 -To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1.12758 -See \`config.log' for more details." >&5
1.12759 -echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
1.12760 -is in your PATH or set the PKG_CONFIG environment variable to the full
1.12761 -path to pkg-config.
1.12762 -
1.12763 -Alternatively, you may set the environment variables LIBGL_CFLAGS
1.12764 -and LIBGL_LIBS to avoid the need to call pkg-config.
1.12765 -See the pkg-config man page for more details.
1.12766 -
1.12767 -To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1.12768 -See \`config.log' for more details." >&2;}
1.12769 - { (exit 1); exit 1; }; }
1.12770 +
1.12771 + { echo "$as_me:$LINENO: checking for glEnable in -lGLESv2" >&5
1.12772 +echo $ECHO_N "checking for glEnable in -lGLESv2... $ECHO_C" >&6; }
1.12773 +if test "${ac_cv_lib_GLESv2_glEnable+set}" = set; then
1.12774 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.12775 +else
1.12776 + ac_check_lib_save_LIBS=$LIBS
1.12777 +LIBS="-lGLESv2 $LIBS"
1.12778 +cat >conftest.$ac_ext <<_ACEOF
1.12779 +/* confdefs.h. */
1.12780 +_ACEOF
1.12781 +cat confdefs.h >>conftest.$ac_ext
1.12782 +cat >>conftest.$ac_ext <<_ACEOF
1.12783 +/* end confdefs.h. */
1.12784 +
1.12785 +/* Override any GCC internal prototype to avoid an error.
1.12786 + Use char because int might match the return type of a GCC
1.12787 + builtin and then its argument prototype would still apply. */
1.12788 +#ifdef __cplusplus
1.12789 +extern "C"
1.12790 +#endif
1.12791 +char glEnable ();
1.12792 +int
1.12793 +main ()
1.12794 +{
1.12795 +return glEnable ();
1.12796 + ;
1.12797 + return 0;
1.12798 +}
1.12799 +_ACEOF
1.12800 +rm -f conftest.$ac_objext conftest$ac_exeext
1.12801 +if { (ac_try="$ac_link"
1.12802 +case "(($ac_try" in
1.12803 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.12804 + *) ac_try_echo=$ac_try;;
1.12805 +esac
1.12806 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.12807 + (eval "$ac_link") 2>conftest.er1
1.12808 + ac_status=$?
1.12809 + grep -v '^ *+' conftest.er1 >conftest.err
1.12810 + rm -f conftest.er1
1.12811 + cat conftest.err >&5
1.12812 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12813 + (exit $ac_status); } && {
1.12814 + test -z "$ac_c_werror_flag" ||
1.12815 + test ! -s conftest.err
1.12816 + } && test -s conftest$ac_exeext &&
1.12817 + $as_test_x conftest$ac_exeext; then
1.12818 + ac_cv_lib_GLESv2_glEnable=yes
1.12819 +else
1.12820 + echo "$as_me: failed program was:" >&5
1.12821 +sed 's/^/| /' conftest.$ac_ext >&5
1.12822 +
1.12823 + ac_cv_lib_GLESv2_glEnable=no
1.12824 +fi
1.12825 +
1.12826 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.12827 + conftest$ac_exeext conftest.$ac_ext
1.12828 +LIBS=$ac_check_lib_save_LIBS
1.12829 +fi
1.12830 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLESv2_glEnable" >&5
1.12831 +echo "${ECHO_T}$ac_cv_lib_GLESv2_glEnable" >&6; }
1.12832 +if test $ac_cv_lib_GLESv2_glEnable = yes; then
1.12833 + LIBS="-lGLESv2 $LIBS"; HAVE_GLES2='yes'
1.12834 +else
1.12835 + { { echo "$as_me:$LINENO: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
1.12836 +See \`config.log' for more details." >&5
1.12837 +echo "$as_me: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
1.12838 +See \`config.log' for more details." >&2;}
1.12839 + { (exit 1); exit 1; }; }
1.12840 +fi
1.12841 +
1.12842 +
1.12843 else
1.12844 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
1.12845 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
1.12846 { echo "$as_me:$LINENO: result: yes" >&5
1.12847 echo "${ECHO_T}yes" >&6; }
1.12848 - :
1.12849 -fi
1.12850 - LIBS="$LIBS $LIBGL_LIBS";
1.12851 - CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
1.12852 +
1.12853 + LIBS="$LIBS $LIBGL_LIBS";
1.12854 + CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
1.12855 +
1.12856 +fi
1.12857 +
1.12858 else
1.12859 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
1.12860 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
1.12861 @@ -11982,13 +12114,12 @@
1.12862
1.12863 fi
1.12864
1.12865 + if test "x$HAVE_GTK_X11" = "xyes"; then
1.12866 + LIBS="$LIBS -L/usr/X11/lib -lGL"
1.12867 + fi
1.12868 fi
1.12869
1.12870 - if test "x$HAVE_GTK_X11" = "xyes"; then
1.12871 - if test "x$APPLE_BUILD" = "xyes"; then
1.12872 - LIBS="$LIBS -L/usr/X11/lib -lGL"
1.12873 - fi
1.12874 - { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
1.12875 + { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
1.12876 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
1.12877 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
1.12878 echo $ECHO_N "(cached) $ECHO_C" >&6
1.12879 @@ -12071,8 +12202,8 @@
1.12880 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
1.12881 if test $ac_cv_func_glXQueryVersion = yes; then
1.12882
1.12883 - HAVE_GLX='yes'
1.12884 - VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
1.12885 + HAVE_GLX='yes'
1.12886 + VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
1.12887
1.12888 cat >>confdefs.h <<\_ACEOF
1.12889 #define HAVE_GLX 1
1.12890 @@ -12080,13 +12211,85 @@
1.12891
1.12892 fi
1.12893
1.12894 - fi
1.12895 -
1.12896 -
1.12897 -fi
1.12898 -
1.12899 -
1.12900 -
1.12901 + { echo "$as_me:$LINENO: checking for eglGetDisplay in -lEGL" >&5
1.12902 +echo $ECHO_N "checking for eglGetDisplay in -lEGL... $ECHO_C" >&6; }
1.12903 +if test "${ac_cv_lib_EGL_eglGetDisplay+set}" = set; then
1.12904 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.12905 +else
1.12906 + ac_check_lib_save_LIBS=$LIBS
1.12907 +LIBS="-lEGL $LIBS"
1.12908 +cat >conftest.$ac_ext <<_ACEOF
1.12909 +/* confdefs.h. */
1.12910 +_ACEOF
1.12911 +cat confdefs.h >>conftest.$ac_ext
1.12912 +cat >>conftest.$ac_ext <<_ACEOF
1.12913 +/* end confdefs.h. */
1.12914 +
1.12915 +/* Override any GCC internal prototype to avoid an error.
1.12916 + Use char because int might match the return type of a GCC
1.12917 + builtin and then its argument prototype would still apply. */
1.12918 +#ifdef __cplusplus
1.12919 +extern "C"
1.12920 +#endif
1.12921 +char eglGetDisplay ();
1.12922 +int
1.12923 +main ()
1.12924 +{
1.12925 +return eglGetDisplay ();
1.12926 + ;
1.12927 + return 0;
1.12928 +}
1.12929 +_ACEOF
1.12930 +rm -f conftest.$ac_objext conftest$ac_exeext
1.12931 +if { (ac_try="$ac_link"
1.12932 +case "(($ac_try" in
1.12933 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.12934 + *) ac_try_echo=$ac_try;;
1.12935 +esac
1.12936 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.12937 + (eval "$ac_link") 2>conftest.er1
1.12938 + ac_status=$?
1.12939 + grep -v '^ *+' conftest.er1 >conftest.err
1.12940 + rm -f conftest.er1
1.12941 + cat conftest.err >&5
1.12942 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12943 + (exit $ac_status); } && {
1.12944 + test -z "$ac_c_werror_flag" ||
1.12945 + test ! -s conftest.err
1.12946 + } && test -s conftest$ac_exeext &&
1.12947 + $as_test_x conftest$ac_exeext; then
1.12948 + ac_cv_lib_EGL_eglGetDisplay=yes
1.12949 +else
1.12950 + echo "$as_me: failed program was:" >&5
1.12951 +sed 's/^/| /' conftest.$ac_ext >&5
1.12952 +
1.12953 + ac_cv_lib_EGL_eglGetDisplay=no
1.12954 +fi
1.12955 +
1.12956 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.12957 + conftest$ac_exeext conftest.$ac_ext
1.12958 +LIBS=$ac_check_lib_save_LIBS
1.12959 +fi
1.12960 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_EGL_eglGetDisplay" >&5
1.12961 +echo "${ECHO_T}$ac_cv_lib_EGL_eglGetDisplay" >&6; }
1.12962 +if test $ac_cv_lib_EGL_eglGetDisplay = yes; then
1.12963 +
1.12964 + LIBS="-lEGL $LIBS"
1.12965 + HAVE_EGL='yes'
1.12966 + VIDEO_DRIVERS="$VIDEO_DRIVERS egl"
1.12967 +fi
1.12968 +
1.12969 +
1.12970 +fi
1.12971 +
1.12972 +
1.12973 +if test "x$HAVE_GLES2" = "xyes"; then
1.12974 +
1.12975 +cat >>confdefs.h <<\_ACEOF
1.12976 +#define HAVE_GLES2 1
1.12977 +_ACEOF
1.12978 +
1.12979 +fi
1.12980
1.12981
1.12982
1.12983 @@ -12119,6 +12322,16 @@
1.12984 fi
1.12985
1.12986
1.12987 +
1.12988 +if test "x$HAVE_EGL" = "xyes"; then
1.12989 + VIDEO_EGL_TRUE=
1.12990 + VIDEO_EGL_FALSE='#'
1.12991 +else
1.12992 + VIDEO_EGL_TRUE='#'
1.12993 + VIDEO_EGL_FALSE=
1.12994 +fi
1.12995 +
1.12996 +
1.12997 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
1.12998 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
1.12999 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
1.13000 @@ -16063,6 +16276,48 @@
1.13001 Usually this means the macro was only invoked conditionally." >&2;}
1.13002 { (exit 1); exit 1; }; }
1.13003 fi
1.13004 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.13005 + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
1.13006 +Usually this means the macro was only invoked conditionally." >&5
1.13007 +echo "$as_me: error: conditional \"AMDEP\" was never defined.
1.13008 +Usually this means the macro was only invoked conditionally." >&2;}
1.13009 + { (exit 1); exit 1; }; }
1.13010 +fi
1.13011 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.13012 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.13013 +Usually this means the macro was only invoked conditionally." >&5
1.13014 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.13015 +Usually this means the macro was only invoked conditionally." >&2;}
1.13016 + { (exit 1); exit 1; }; }
1.13017 +fi
1.13018 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.13019 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.13020 +Usually this means the macro was only invoked conditionally." >&5
1.13021 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.13022 +Usually this means the macro was only invoked conditionally." >&2;}
1.13023 + { (exit 1); exit 1; }; }
1.13024 +fi
1.13025 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.13026 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.13027 +Usually this means the macro was only invoked conditionally." >&5
1.13028 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.13029 +Usually this means the macro was only invoked conditionally." >&2;}
1.13030 + { (exit 1); exit 1; }; }
1.13031 +fi
1.13032 +if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
1.13033 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
1.13034 +Usually this means the macro was only invoked conditionally." >&5
1.13035 +echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
1.13036 +Usually this means the macro was only invoked conditionally." >&2;}
1.13037 + { (exit 1); exit 1; }; }
1.13038 +fi
1.13039 +if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
1.13040 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
1.13041 +Usually this means the macro was only invoked conditionally." >&5
1.13042 +echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
1.13043 +Usually this means the macro was only invoked conditionally." >&2;}
1.13044 + { (exit 1); exit 1; }; }
1.13045 +fi
1.13046 if test -z "${GUI_ANDROID_TRUE}" && test -z "${GUI_ANDROID_FALSE}"; then
1.13047 { { echo "$as_me:$LINENO: error: conditional \"GUI_ANDROID\" was never defined.
1.13048 Usually this means the macro was only invoked conditionally." >&5
1.13049 @@ -16070,48 +16325,6 @@
1.13050 Usually this means the macro was only invoked conditionally." >&2;}
1.13051 { (exit 1); exit 1; }; }
1.13052 fi
1.13053 -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.13054 - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
1.13055 -Usually this means the macro was only invoked conditionally." >&5
1.13056 -echo "$as_me: error: conditional \"AMDEP\" was never defined.
1.13057 -Usually this means the macro was only invoked conditionally." >&2;}
1.13058 - { (exit 1); exit 1; }; }
1.13059 -fi
1.13060 -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.13061 - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.13062 -Usually this means the macro was only invoked conditionally." >&5
1.13063 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.13064 -Usually this means the macro was only invoked conditionally." >&2;}
1.13065 - { (exit 1); exit 1; }; }
1.13066 -fi
1.13067 -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.13068 - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.13069 -Usually this means the macro was only invoked conditionally." >&5
1.13070 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.13071 -Usually this means the macro was only invoked conditionally." >&2;}
1.13072 - { (exit 1); exit 1; }; }
1.13073 -fi
1.13074 -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.13075 - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.13076 -Usually this means the macro was only invoked conditionally." >&5
1.13077 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.13078 -Usually this means the macro was only invoked conditionally." >&2;}
1.13079 - { (exit 1); exit 1; }; }
1.13080 -fi
1.13081 -if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
1.13082 - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
1.13083 -Usually this means the macro was only invoked conditionally." >&5
1.13084 -echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
1.13085 -Usually this means the macro was only invoked conditionally." >&2;}
1.13086 - { (exit 1); exit 1; }; }
1.13087 -fi
1.13088 -if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
1.13089 - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
1.13090 -Usually this means the macro was only invoked conditionally." >&5
1.13091 -echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
1.13092 -Usually this means the macro was only invoked conditionally." >&2;}
1.13093 - { (exit 1); exit 1; }; }
1.13094 -fi
1.13095 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
1.13096 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
1.13097 Usually this means the macro was only invoked conditionally." >&5
1.13098 @@ -16154,6 +16367,13 @@
1.13099 Usually this means the macro was only invoked conditionally." >&2;}
1.13100 { (exit 1); exit 1; }; }
1.13101 fi
1.13102 +if test -z "${VIDEO_EGL_TRUE}" && test -z "${VIDEO_EGL_FALSE}"; then
1.13103 + { { echo "$as_me:$LINENO: error: conditional \"VIDEO_EGL\" was never defined.
1.13104 +Usually this means the macro was only invoked conditionally." >&5
1.13105 +echo "$as_me: error: conditional \"VIDEO_EGL\" was never defined.
1.13106 +Usually this means the macro was only invoked conditionally." >&2;}
1.13107 + { (exit 1); exit 1; }; }
1.13108 +fi
1.13109 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
1.13110 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
1.13111 Usually this means the macro was only invoked conditionally." >&5
1.13112 @@ -16852,16 +17072,6 @@
1.13113 host_cpu!$host_cpu$ac_delim
1.13114 host_vendor!$host_vendor$ac_delim
1.13115 host_os!$host_os$ac_delim
1.13116 -ANT!$ANT$ac_delim
1.13117 -ANDROID_ABI!$ANDROID_ABI$ac_delim
1.13118 -ANDROID_SDK_HOME!$ANDROID_SDK_HOME$ac_delim
1.13119 -ANDROID_NDK_HOME!$ANDROID_NDK_HOME$ac_delim
1.13120 -ANDROID_SDK_VERSION!$ANDROID_SDK_VERSION$ac_delim
1.13121 -ANDROID_NDK_VERSION!$ANDROID_NDK_VERSION$ac_delim
1.13122 -ANDROID_GDBSERVER!$ANDROID_GDBSERVER$ac_delim
1.13123 -GDB!$GDB$ac_delim
1.13124 -GUI_ANDROID_TRUE!$GUI_ANDROID_TRUE$ac_delim
1.13125 -GUI_ANDROID_FALSE!$GUI_ANDROID_FALSE$ac_delim
1.13126 CC!$CC$ac_delim
1.13127 CFLAGS!$CFLAGS$ac_delim
1.13128 LDFLAGS!$LDFLAGS$ac_delim
1.13129 @@ -16880,6 +17090,16 @@
1.13130 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
1.13131 CPP!$CPP$ac_delim
1.13132 CC!$CC$ac_delim
1.13133 +CFLAGS!$CFLAGS$ac_delim
1.13134 +CPPFLAGS!$CPPFLAGS$ac_delim
1.13135 +CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
1.13136 +ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
1.13137 +CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
1.13138 +am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
1.13139 +am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
1.13140 +CPP!$CPP$ac_delim
1.13141 +CPPFLAGS!$CPPFLAGS$ac_delim
1.13142 +CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
1.13143 _ACEOF
1.13144
1.13145 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
1.13146 @@ -16921,16 +17141,6 @@
1.13147 ac_delim='%!_!# '
1.13148 for ac_last_try in false false false false false :; do
1.13149 cat >conf$$subs.sed <<_ACEOF
1.13150 -CFLAGS!$CFLAGS$ac_delim
1.13151 -CPPFLAGS!$CPPFLAGS$ac_delim
1.13152 -CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
1.13153 -ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
1.13154 -CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
1.13155 -am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
1.13156 -am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
1.13157 -CPP!$CPP$ac_delim
1.13158 -CPPFLAGS!$CPPFLAGS$ac_delim
1.13159 -CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
1.13160 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
1.13161 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
1.13162 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
1.13163 @@ -16949,6 +17159,15 @@
1.13164 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
1.13165 POD2MAN!$POD2MAN$ac_delim
1.13166 POD2HTML!$POD2HTML$ac_delim
1.13167 +ANT!$ANT$ac_delim
1.13168 +ANDROID_ABI!$ANDROID_ABI$ac_delim
1.13169 +ANDROID_SDK_HOME!$ANDROID_SDK_HOME$ac_delim
1.13170 +ANDROID_NDK_HOME!$ANDROID_NDK_HOME$ac_delim
1.13171 +ANDROID_SDK_VERSION!$ANDROID_SDK_VERSION$ac_delim
1.13172 +ANDROID_NDK_VERSION!$ANDROID_NDK_VERSION$ac_delim
1.13173 +ANDROID_GDBSERVER!$ANDROID_GDBSERVER$ac_delim
1.13174 +GUI_ANDROID_TRUE!$GUI_ANDROID_TRUE$ac_delim
1.13175 +GUI_ANDROID_FALSE!$GUI_ANDROID_FALSE$ac_delim
1.13176 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
1.13177 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
1.13178 SOEXT!$SOEXT$ac_delim
1.13179 @@ -16979,6 +17198,8 @@
1.13180 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
1.13181 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
1.13182 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
1.13183 +VIDEO_EGL_TRUE!$VIDEO_EGL_TRUE$ac_delim
1.13184 +VIDEO_EGL_FALSE!$VIDEO_EGL_FALSE$ac_delim
1.13185 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
1.13186 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
1.13187 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
1.13188 @@ -17017,7 +17238,6 @@
1.13189 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
1.13190 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
1.13191 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
1.13192 -BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
1.13193 _ACEOF
1.13194
1.13195 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
1.13196 @@ -17059,6 +17279,7 @@
1.13197 ac_delim='%!_!# '
1.13198 for ac_last_try in false false false false false :; do
1.13199 cat >conf$$subs.sed <<_ACEOF
1.13200 +BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
1.13201 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
1.13202 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
1.13203 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
1.13204 @@ -17082,7 +17303,7 @@
1.13205 LTLIBOBJS!$LTLIBOBJS$ac_delim
1.13206 _ACEOF
1.13207
1.13208 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
1.13209 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
1.13210 break
1.13211 elif $ac_last_try; then
1.13212 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
.