Search
lxdream.org :: lxdream :: r1287:dac8f363f1fe
lxdream 0.9.1
released Jun 29
Download Now
changeset1287:dac8f363f1fe
parent1286:8376a612a79d
child1288:fdb8f59143c7
authornkeynes
dateSun Jul 01 13:20:34 2012 +1000 (11 years ago)
Add support for Nokia N900
- Generic support for EGL with GTK
- Workaround for nokia bug with egl config
Based on patch from guinux, thanks!
Makefile.in
configure
configure.in
src/Makefile.am
src/Makefile.in
src/drivers/gl_sl.c
src/drivers/video_egl.c
src/drivers/video_egl.h
src/drivers/video_gtk.c
src/pvr2/glutil.h
src/tools/Makefile.am
src/tools/Makefile.in
1.1 --- a/Makefile.in Sun Jul 01 13:19:27 2012 +1000
1.2 +++ b/Makefile.in Sun Jul 01 13:20:34 2012 +1000
1.3 @@ -240,6 +240,8 @@
1.4 STRIP = @STRIP@
1.5 USE_NLS = @USE_NLS@
1.6 VERSION = @VERSION@
1.7 +VIDEO_EGL_FALSE = @VIDEO_EGL_FALSE@
1.8 +VIDEO_EGL_TRUE = @VIDEO_EGL_TRUE@
1.9 VIDEO_GLX_FALSE = @VIDEO_GLX_FALSE@
1.10 VIDEO_GLX_TRUE = @VIDEO_GLX_TRUE@
1.11 VIDEO_NSGL_FALSE = @VIDEO_NSGL_FALSE@
2.1 --- a/configure Sun Jul 01 13:19:27 2012 +1000
2.2 +++ b/configure Sun Jul 01 13:20:34 2012 +1000
2.3 @@ -682,16 +682,6 @@
2.4 host_cpu
2.5 host_vendor
2.6 host_os
2.7 -ANT
2.8 -ANDROID_ABI
2.9 -ANDROID_SDK_HOME
2.10 -ANDROID_NDK_HOME
2.11 -ANDROID_SDK_VERSION
2.12 -ANDROID_NDK_VERSION
2.13 -ANDROID_GDBSERVER
2.14 -GDB
2.15 -GUI_ANDROID_TRUE
2.16 -GUI_ANDROID_FALSE
2.17 CC
2.18 CFLAGS
2.19 LDFLAGS
2.20 @@ -738,6 +728,15 @@
2.21 am__fastdepOBJC_FALSE
2.22 POD2MAN
2.23 POD2HTML
2.24 +ANT
2.25 +ANDROID_ABI
2.26 +ANDROID_SDK_HOME
2.27 +ANDROID_NDK_HOME
2.28 +ANDROID_SDK_VERSION
2.29 +ANDROID_NDK_VERSION
2.30 +ANDROID_GDBSERVER
2.31 +GUI_ANDROID_TRUE
2.32 +GUI_ANDROID_FALSE
2.33 GUI_COCOA_TRUE
2.34 GUI_COCOA_FALSE
2.35 SOEXT
2.36 @@ -768,6 +767,8 @@
2.37 VIDEO_GLX_FALSE
2.38 VIDEO_NSGL_TRUE
2.39 VIDEO_NSGL_FALSE
2.40 +VIDEO_EGL_TRUE
2.41 +VIDEO_EGL_FALSE
2.42 BUILD_SH4X86_TRUE
2.43 BUILD_SH4X86_FALSE
2.44 AUDIO_OSX_TRUE
2.45 @@ -1465,17 +1466,18 @@
2.46 Optional Packages:
2.47 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2.48 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2.49 - --with-android=SDK Specify the location of the Android SDK
2.50 - --with-android-ndk=NDK Specify the location of the Android NDK
2.51 - --with-android-version Specify target Android SDK version
2.52 - --with-android-version Specify target Android NDK version
2.53 - --with-android-abi Specify target Android ABI
2.54 --with-osmesa Build with the osmesa GL library (software
2.55 rendering)
2.56 --with-gtk Build with the GTK UI. Default on X11 systems
2.57 --with-esd Build with support for the ESounD audio system
2.58 --with-pulse Build with support for the PulseAudio audio system
2.59 --with-sdl Build with support for SDL audio
2.60 + --with-sysroot=SYSROOT Build using an alternate sysroot
2.61 + --with-android=SDK Specify the location of the Android SDK
2.62 + --with-android-ndk=NDK Specify the location of the Android NDK
2.63 + --with-android-version Specify target Android SDK version
2.64 + --with-android-version Specify target Android NDK version
2.65 + --with-android-abi Specify target Android ABI
2.66
2.67 Some influential environment variables:
2.68 CC C compiler command
2.69 @@ -2530,6 +2532,6245 @@
2.70
2.71
2.72
2.73 +DEPDIR="${am__leading_dot}deps"
2.74 +
2.75 +ac_config_commands="$ac_config_commands depfiles"
2.76 +
2.77 +
2.78 +am_make=${MAKE-make}
2.79 +cat > confinc << 'END'
2.80 +am__doit:
2.81 + @echo done
2.82 +.PHONY: am__doit
2.83 +END
2.84 +# If we don't find an include directive, just comment out the code.
2.85 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2.86 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2.87 +am__include="#"
2.88 +am__quote=
2.89 +_am_result=none
2.90 +# First try GNU make style include.
2.91 +echo "include confinc" > confmf
2.92 +# We grep out `Entering directory' and `Leaving directory'
2.93 +# messages which can occur if `w' ends up in MAKEFLAGS.
2.94 +# In particular we don't look at `^make:' because GNU make might
2.95 +# be invoked under some other name (usually "gmake"), in which
2.96 +# case it prints its new name instead of `make'.
2.97 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2.98 + am__include=include
2.99 + am__quote=
2.100 + _am_result=GNU
2.101 +fi
2.102 +# Now try BSD make style include.
2.103 +if test "$am__include" = "#"; then
2.104 + echo '.include "confinc"' > confmf
2.105 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2.106 + am__include=.include
2.107 + am__quote="\""
2.108 + _am_result=BSD
2.109 + fi
2.110 +fi
2.111 +
2.112 +
2.113 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
2.114 +echo "${ECHO_T}$_am_result" >&6; }
2.115 +rm -f confinc confmf
2.116 +
2.117 +# Check whether --enable-dependency-tracking was given.
2.118 +if test "${enable_dependency_tracking+set}" = set; then
2.119 + enableval=$enable_dependency_tracking;
2.120 +fi
2.121 +
2.122 +if test "x$enable_dependency_tracking" != xno; then
2.123 + am_depcomp="$ac_aux_dir/depcomp"
2.124 + AMDEPBACKSLASH='\'
2.125 +fi
2.126 +
2.127 +
2.128 +if test "x$enable_dependency_tracking" != xno; then
2.129 + AMDEP_TRUE=
2.130 + AMDEP_FALSE='#'
2.131 +else
2.132 + AMDEP_TRUE='#'
2.133 + AMDEP_FALSE=
2.134 +fi
2.135 +
2.136 +
2.137 +
2.138 +ac_ext=c
2.139 +ac_cpp='$CPP $CPPFLAGS'
2.140 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.141 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.142 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.143 +if test -n "$ac_tool_prefix"; then
2.144 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2.145 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
2.146 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.147 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.148 +if test "${ac_cv_prog_CC+set}" = set; then
2.149 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.150 +else
2.151 + if test -n "$CC"; then
2.152 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.153 +else
2.154 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.155 +for as_dir in $PATH
2.156 +do
2.157 + IFS=$as_save_IFS
2.158 + test -z "$as_dir" && as_dir=.
2.159 + for ac_exec_ext in '' $ac_executable_extensions; do
2.160 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.161 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
2.162 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.163 + break 2
2.164 + fi
2.165 +done
2.166 +done
2.167 +IFS=$as_save_IFS
2.168 +
2.169 +fi
2.170 +fi
2.171 +CC=$ac_cv_prog_CC
2.172 +if test -n "$CC"; then
2.173 + { echo "$as_me:$LINENO: result: $CC" >&5
2.174 +echo "${ECHO_T}$CC" >&6; }
2.175 +else
2.176 + { echo "$as_me:$LINENO: result: no" >&5
2.177 +echo "${ECHO_T}no" >&6; }
2.178 +fi
2.179 +
2.180 +
2.181 +fi
2.182 +if test -z "$ac_cv_prog_CC"; then
2.183 + ac_ct_CC=$CC
2.184 + # Extract the first word of "gcc", so it can be a program name with args.
2.185 +set dummy gcc; ac_word=$2
2.186 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.187 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.188 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.189 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.190 +else
2.191 + if test -n "$ac_ct_CC"; then
2.192 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.193 +else
2.194 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.195 +for as_dir in $PATH
2.196 +do
2.197 + IFS=$as_save_IFS
2.198 + test -z "$as_dir" && as_dir=.
2.199 + for ac_exec_ext in '' $ac_executable_extensions; do
2.200 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.201 + ac_cv_prog_ac_ct_CC="gcc"
2.202 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.203 + break 2
2.204 + fi
2.205 +done
2.206 +done
2.207 +IFS=$as_save_IFS
2.208 +
2.209 +fi
2.210 +fi
2.211 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.212 +if test -n "$ac_ct_CC"; then
2.213 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.214 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2.215 +else
2.216 + { echo "$as_me:$LINENO: result: no" >&5
2.217 +echo "${ECHO_T}no" >&6; }
2.218 +fi
2.219 +
2.220 + if test "x$ac_ct_CC" = x; then
2.221 + CC=""
2.222 + else
2.223 + case $cross_compiling:$ac_tool_warned in
2.224 +yes:)
2.225 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.226 +whose name does not start with the host triplet. If you think this
2.227 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.228 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.229 +whose name does not start with the host triplet. If you think this
2.230 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.231 +ac_tool_warned=yes ;;
2.232 +esac
2.233 + CC=$ac_ct_CC
2.234 + fi
2.235 +else
2.236 + CC="$ac_cv_prog_CC"
2.237 +fi
2.238 +
2.239 +if test -z "$CC"; then
2.240 + if test -n "$ac_tool_prefix"; then
2.241 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2.242 +set dummy ${ac_tool_prefix}cc; ac_word=$2
2.243 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.244 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.245 +if test "${ac_cv_prog_CC+set}" = set; then
2.246 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.247 +else
2.248 + if test -n "$CC"; then
2.249 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.250 +else
2.251 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.252 +for as_dir in $PATH
2.253 +do
2.254 + IFS=$as_save_IFS
2.255 + test -z "$as_dir" && as_dir=.
2.256 + for ac_exec_ext in '' $ac_executable_extensions; do
2.257 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.258 + ac_cv_prog_CC="${ac_tool_prefix}cc"
2.259 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.260 + break 2
2.261 + fi
2.262 +done
2.263 +done
2.264 +IFS=$as_save_IFS
2.265 +
2.266 +fi
2.267 +fi
2.268 +CC=$ac_cv_prog_CC
2.269 +if test -n "$CC"; then
2.270 + { echo "$as_me:$LINENO: result: $CC" >&5
2.271 +echo "${ECHO_T}$CC" >&6; }
2.272 +else
2.273 + { echo "$as_me:$LINENO: result: no" >&5
2.274 +echo "${ECHO_T}no" >&6; }
2.275 +fi
2.276 +
2.277 +
2.278 + fi
2.279 +fi
2.280 +if test -z "$CC"; then
2.281 + # Extract the first word of "cc", so it can be a program name with args.
2.282 +set dummy cc; ac_word=$2
2.283 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.284 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.285 +if test "${ac_cv_prog_CC+set}" = set; then
2.286 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.287 +else
2.288 + if test -n "$CC"; then
2.289 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.290 +else
2.291 + ac_prog_rejected=no
2.292 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.293 +for as_dir in $PATH
2.294 +do
2.295 + IFS=$as_save_IFS
2.296 + test -z "$as_dir" && as_dir=.
2.297 + for ac_exec_ext in '' $ac_executable_extensions; do
2.298 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.299 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2.300 + ac_prog_rejected=yes
2.301 + continue
2.302 + fi
2.303 + ac_cv_prog_CC="cc"
2.304 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.305 + break 2
2.306 + fi
2.307 +done
2.308 +done
2.309 +IFS=$as_save_IFS
2.310 +
2.311 +if test $ac_prog_rejected = yes; then
2.312 + # We found a bogon in the path, so make sure we never use it.
2.313 + set dummy $ac_cv_prog_CC
2.314 + shift
2.315 + if test $# != 0; then
2.316 + # We chose a different compiler from the bogus one.
2.317 + # However, it has the same basename, so the bogon will be chosen
2.318 + # first if we set CC to just the basename; use the full file name.
2.319 + shift
2.320 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2.321 + fi
2.322 +fi
2.323 +fi
2.324 +fi
2.325 +CC=$ac_cv_prog_CC
2.326 +if test -n "$CC"; then
2.327 + { echo "$as_me:$LINENO: result: $CC" >&5
2.328 +echo "${ECHO_T}$CC" >&6; }
2.329 +else
2.330 + { echo "$as_me:$LINENO: result: no" >&5
2.331 +echo "${ECHO_T}no" >&6; }
2.332 +fi
2.333 +
2.334 +
2.335 +fi
2.336 +if test -z "$CC"; then
2.337 + if test -n "$ac_tool_prefix"; then
2.338 + for ac_prog in cl.exe
2.339 + do
2.340 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.341 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2.342 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.343 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.344 +if test "${ac_cv_prog_CC+set}" = set; then
2.345 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.346 +else
2.347 + if test -n "$CC"; then
2.348 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.349 +else
2.350 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.351 +for as_dir in $PATH
2.352 +do
2.353 + IFS=$as_save_IFS
2.354 + test -z "$as_dir" && as_dir=.
2.355 + for ac_exec_ext in '' $ac_executable_extensions; do
2.356 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.357 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2.358 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.359 + break 2
2.360 + fi
2.361 +done
2.362 +done
2.363 +IFS=$as_save_IFS
2.364 +
2.365 +fi
2.366 +fi
2.367 +CC=$ac_cv_prog_CC
2.368 +if test -n "$CC"; then
2.369 + { echo "$as_me:$LINENO: result: $CC" >&5
2.370 +echo "${ECHO_T}$CC" >&6; }
2.371 +else
2.372 + { echo "$as_me:$LINENO: result: no" >&5
2.373 +echo "${ECHO_T}no" >&6; }
2.374 +fi
2.375 +
2.376 +
2.377 + test -n "$CC" && break
2.378 + done
2.379 +fi
2.380 +if test -z "$CC"; then
2.381 + ac_ct_CC=$CC
2.382 + for ac_prog in cl.exe
2.383 +do
2.384 + # Extract the first word of "$ac_prog", so it can be a program name with args.
2.385 +set dummy $ac_prog; ac_word=$2
2.386 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.387 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.388 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.389 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.390 +else
2.391 + if test -n "$ac_ct_CC"; then
2.392 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.393 +else
2.394 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.395 +for as_dir in $PATH
2.396 +do
2.397 + IFS=$as_save_IFS
2.398 + test -z "$as_dir" && as_dir=.
2.399 + for ac_exec_ext in '' $ac_executable_extensions; do
2.400 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.401 + ac_cv_prog_ac_ct_CC="$ac_prog"
2.402 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.403 + break 2
2.404 + fi
2.405 +done
2.406 +done
2.407 +IFS=$as_save_IFS
2.408 +
2.409 +fi
2.410 +fi
2.411 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.412 +if test -n "$ac_ct_CC"; then
2.413 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.414 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2.415 +else
2.416 + { echo "$as_me:$LINENO: result: no" >&5
2.417 +echo "${ECHO_T}no" >&6; }
2.418 +fi
2.419 +
2.420 +
2.421 + test -n "$ac_ct_CC" && break
2.422 +done
2.423 +
2.424 + if test "x$ac_ct_CC" = x; then
2.425 + CC=""
2.426 + else
2.427 + case $cross_compiling:$ac_tool_warned in
2.428 +yes:)
2.429 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.430 +whose name does not start with the host triplet. If you think this
2.431 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.432 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.433 +whose name does not start with the host triplet. If you think this
2.434 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.435 +ac_tool_warned=yes ;;
2.436 +esac
2.437 + CC=$ac_ct_CC
2.438 + fi
2.439 +fi
2.440 +
2.441 +fi
2.442 +
2.443 +
2.444 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2.445 +See \`config.log' for more details." >&5
2.446 +echo "$as_me: error: no acceptable C compiler found in \$PATH
2.447 +See \`config.log' for more details." >&2;}
2.448 + { (exit 1); exit 1; }; }
2.449 +
2.450 +# Provide some information about the compiler.
2.451 +echo "$as_me:$LINENO: checking for C compiler version" >&5
2.452 +ac_compiler=`set X $ac_compile; echo $2`
2.453 +{ (ac_try="$ac_compiler --version >&5"
2.454 +case "(($ac_try" in
2.455 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.456 + *) ac_try_echo=$ac_try;;
2.457 +esac
2.458 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.459 + (eval "$ac_compiler --version >&5") 2>&5
2.460 + ac_status=$?
2.461 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.462 + (exit $ac_status); }
2.463 +{ (ac_try="$ac_compiler -v >&5"
2.464 +case "(($ac_try" in
2.465 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.466 + *) ac_try_echo=$ac_try;;
2.467 +esac
2.468 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.469 + (eval "$ac_compiler -v >&5") 2>&5
2.470 + ac_status=$?
2.471 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.472 + (exit $ac_status); }
2.473 +{ (ac_try="$ac_compiler -V >&5"
2.474 +case "(($ac_try" in
2.475 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.476 + *) ac_try_echo=$ac_try;;
2.477 +esac
2.478 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.479 + (eval "$ac_compiler -V >&5") 2>&5
2.480 + ac_status=$?
2.481 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.482 + (exit $ac_status); }
2.483 +
2.484 +cat >conftest.$ac_ext <<_ACEOF
2.485 +/* confdefs.h. */
2.486 +_ACEOF
2.487 +cat confdefs.h >>conftest.$ac_ext
2.488 +cat >>conftest.$ac_ext <<_ACEOF
2.489 +/* end confdefs.h. */
2.490 +
2.491 +int
2.492 +main ()
2.493 +{
2.494 +
2.495 + ;
2.496 + return 0;
2.497 +}
2.498 +_ACEOF
2.499 +ac_clean_files_save=$ac_clean_files
2.500 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
2.501 +# Try to create an executable without -o first, disregard a.out.
2.502 +# It will help us diagnose broken compilers, and finding out an intuition
2.503 +# of exeext.
2.504 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2.505 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2.506 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2.507 +#
2.508 +# List of possible output files, starting from the most likely.
2.509 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2.510 +# only as a last resort. b.out is created by i960 compilers.
2.511 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2.512 +#
2.513 +# The IRIX 6 linker writes into existing files which may not be
2.514 +# executable, retaining their permissions. Remove them first so a
2.515 +# subsequent execution test works.
2.516 +ac_rmfiles=
2.517 +for ac_file in $ac_files
2.518 +do
2.519 + case $ac_file in
2.520 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2.521 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2.522 + esac
2.523 +done
2.524 +rm -f $ac_rmfiles
2.525 +
2.526 +if { (ac_try="$ac_link_default"
2.527 +case "(($ac_try" in
2.528 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.529 + *) ac_try_echo=$ac_try;;
2.530 +esac
2.531 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.532 + (eval "$ac_link_default") 2>&5
2.533 + ac_status=$?
2.534 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.535 + (exit $ac_status); }; then
2.536 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2.537 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2.538 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
2.539 +# so that the user can short-circuit this test for compilers unknown to
2.540 +# Autoconf.
2.541 +for ac_file in $ac_files ''
2.542 +do
2.543 + test -f "$ac_file" || continue
2.544 + case $ac_file in
2.545 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2.546 + ;;
2.547 + [ab].out )
2.548 + # We found the default executable, but exeext='' is most
2.549 + # certainly right.
2.550 + break;;
2.551 + *.* )
2.552 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2.553 + then :; else
2.554 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2.555 + fi
2.556 + # We set ac_cv_exeext here because the later test for it is not
2.557 + # safe: cross compilers may not add the suffix if given an `-o'
2.558 + # argument, so we may need to know it at that point already.
2.559 + # Even if this section looks crufty: it has the advantage of
2.560 + # actually working.
2.561 + break;;
2.562 + * )
2.563 + break;;
2.564 + esac
2.565 +done
2.566 +test "$ac_cv_exeext" = no && ac_cv_exeext=
2.567 +
2.568 +else
2.569 + ac_file=''
2.570 +fi
2.571 +
2.572 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
2.573 +echo "${ECHO_T}$ac_file" >&6; }
2.574 +if test -z "$ac_file"; then
2.575 + echo "$as_me: failed program was:" >&5
2.576 +sed 's/^/| /' conftest.$ac_ext >&5
2.577 +
2.578 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2.579 +See \`config.log' for more details." >&5
2.580 +echo "$as_me: error: C compiler cannot create executables
2.581 +See \`config.log' for more details." >&2;}
2.582 + { (exit 77); exit 77; }; }
2.583 +fi
2.584 +
2.585 +ac_exeext=$ac_cv_exeext
2.586 +
2.587 +# Check that the compiler produces executables we can run. If not, either
2.588 +# the compiler is broken, or we cross compile.
2.589 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2.590 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2.591 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2.592 +# If not cross compiling, check that we can run a simple program.
2.593 +if test "$cross_compiling" != yes; then
2.594 + if { ac_try='./$ac_file'
2.595 + { (case "(($ac_try" in
2.596 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.597 + *) ac_try_echo=$ac_try;;
2.598 +esac
2.599 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.600 + (eval "$ac_try") 2>&5
2.601 + ac_status=$?
2.602 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.603 + (exit $ac_status); }; }; then
2.604 + cross_compiling=no
2.605 + else
2.606 + if test "$cross_compiling" = maybe; then
2.607 + cross_compiling=yes
2.608 + else
2.609 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2.610 +If you meant to cross compile, use \`--host'.
2.611 +See \`config.log' for more details." >&5
2.612 +echo "$as_me: error: cannot run C compiled programs.
2.613 +If you meant to cross compile, use \`--host'.
2.614 +See \`config.log' for more details." >&2;}
2.615 + { (exit 1); exit 1; }; }
2.616 + fi
2.617 + fi
2.618 +fi
2.619 +{ echo "$as_me:$LINENO: result: yes" >&5
2.620 +echo "${ECHO_T}yes" >&6; }
2.621 +
2.622 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
2.623 +ac_clean_files=$ac_clean_files_save
2.624 +# Check that the compiler produces executables we can run. If not, either
2.625 +# the compiler is broken, or we cross compile.
2.626 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2.627 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2.628 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2.629 +echo "${ECHO_T}$cross_compiling" >&6; }
2.630 +
2.631 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2.632 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2.633 +if { (ac_try="$ac_link"
2.634 +case "(($ac_try" in
2.635 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.636 + *) ac_try_echo=$ac_try;;
2.637 +esac
2.638 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.639 + (eval "$ac_link") 2>&5
2.640 + ac_status=$?
2.641 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.642 + (exit $ac_status); }; then
2.643 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
2.644 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2.645 +# work properly (i.e., refer to `conftest.exe'), while it won't with
2.646 +# `rm'.
2.647 +for ac_file in conftest.exe conftest conftest.*; do
2.648 + test -f "$ac_file" || continue
2.649 + case $ac_file in
2.650 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2.651 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2.652 + break;;
2.653 + * ) break;;
2.654 + esac
2.655 +done
2.656 +else
2.657 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2.658 +See \`config.log' for more details." >&5
2.659 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2.660 +See \`config.log' for more details." >&2;}
2.661 + { (exit 1); exit 1; }; }
2.662 +fi
2.663 +
2.664 +rm -f conftest$ac_cv_exeext
2.665 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2.666 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
2.667 +
2.668 +rm -f conftest.$ac_ext
2.669 +EXEEXT=$ac_cv_exeext
2.670 +ac_exeext=$EXEEXT
2.671 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2.672 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2.673 +if test "${ac_cv_objext+set}" = set; then
2.674 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.675 +else
2.676 + cat >conftest.$ac_ext <<_ACEOF
2.677 +/* confdefs.h. */
2.678 +_ACEOF
2.679 +cat confdefs.h >>conftest.$ac_ext
2.680 +cat >>conftest.$ac_ext <<_ACEOF
2.681 +/* end confdefs.h. */
2.682 +
2.683 +int
2.684 +main ()
2.685 +{
2.686 +
2.687 + ;
2.688 + return 0;
2.689 +}
2.690 +_ACEOF
2.691 +rm -f conftest.o conftest.obj
2.692 +if { (ac_try="$ac_compile"
2.693 +case "(($ac_try" in
2.694 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.695 + *) ac_try_echo=$ac_try;;
2.696 +esac
2.697 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.698 + (eval "$ac_compile") 2>&5
2.699 + ac_status=$?
2.700 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.701 + (exit $ac_status); }; then
2.702 + for ac_file in conftest.o conftest.obj conftest.*; do
2.703 + test -f "$ac_file" || continue;
2.704 + case $ac_file in
2.705 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2.706 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2.707 + break;;
2.708 + esac
2.709 +done
2.710 +else
2.711 + echo "$as_me: failed program was:" >&5
2.712 +sed 's/^/| /' conftest.$ac_ext >&5
2.713 +
2.714 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2.715 +See \`config.log' for more details." >&5
2.716 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
2.717 +See \`config.log' for more details." >&2;}
2.718 + { (exit 1); exit 1; }; }
2.719 +fi
2.720 +
2.721 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
2.722 +fi
2.723 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2.724 +echo "${ECHO_T}$ac_cv_objext" >&6; }
2.725 +OBJEXT=$ac_cv_objext
2.726 +ac_objext=$OBJEXT
2.727 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2.728 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2.729 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
2.730 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.731 +else
2.732 + cat >conftest.$ac_ext <<_ACEOF
2.733 +/* confdefs.h. */
2.734 +_ACEOF
2.735 +cat confdefs.h >>conftest.$ac_ext
2.736 +cat >>conftest.$ac_ext <<_ACEOF
2.737 +/* end confdefs.h. */
2.738 +
2.739 +int
2.740 +main ()
2.741 +{
2.742 +#ifndef __GNUC__
2.743 + choke me
2.744 +#endif
2.745 +
2.746 + ;
2.747 + return 0;
2.748 +}
2.749 +_ACEOF
2.750 +rm -f conftest.$ac_objext
2.751 +if { (ac_try="$ac_compile"
2.752 +case "(($ac_try" in
2.753 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.754 + *) ac_try_echo=$ac_try;;
2.755 +esac
2.756 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.757 + (eval "$ac_compile") 2>conftest.er1
2.758 + ac_status=$?
2.759 + grep -v '^ *+' conftest.er1 >conftest.err
2.760 + rm -f conftest.er1
2.761 + cat conftest.err >&5
2.762 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.763 + (exit $ac_status); } && {
2.764 + test -z "$ac_c_werror_flag" ||
2.765 + test ! -s conftest.err
2.766 + } && test -s conftest.$ac_objext; then
2.767 + ac_compiler_gnu=yes
2.768 +else
2.769 + echo "$as_me: failed program was:" >&5
2.770 +sed 's/^/| /' conftest.$ac_ext >&5
2.771 +
2.772 + ac_compiler_gnu=no
2.773 +fi
2.774 +
2.775 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.776 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
2.777 +
2.778 +fi
2.779 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2.780 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2.781 +GCC=`test $ac_compiler_gnu = yes && echo yes`
2.782 +ac_test_CFLAGS=${CFLAGS+set}
2.783 +ac_save_CFLAGS=$CFLAGS
2.784 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2.785 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2.786 +if test "${ac_cv_prog_cc_g+set}" = set; then
2.787 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.788 +else
2.789 + ac_save_c_werror_flag=$ac_c_werror_flag
2.790 + ac_c_werror_flag=yes
2.791 + ac_cv_prog_cc_g=no
2.792 + CFLAGS="-g"
2.793 + cat >conftest.$ac_ext <<_ACEOF
2.794 +/* confdefs.h. */
2.795 +_ACEOF
2.796 +cat confdefs.h >>conftest.$ac_ext
2.797 +cat >>conftest.$ac_ext <<_ACEOF
2.798 +/* end confdefs.h. */
2.799 +
2.800 +int
2.801 +main ()
2.802 +{
2.803 +
2.804 + ;
2.805 + return 0;
2.806 +}
2.807 +_ACEOF
2.808 +rm -f conftest.$ac_objext
2.809 +if { (ac_try="$ac_compile"
2.810 +case "(($ac_try" in
2.811 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.812 + *) ac_try_echo=$ac_try;;
2.813 +esac
2.814 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.815 + (eval "$ac_compile") 2>conftest.er1
2.816 + ac_status=$?
2.817 + grep -v '^ *+' conftest.er1 >conftest.err
2.818 + rm -f conftest.er1
2.819 + cat conftest.err >&5
2.820 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.821 + (exit $ac_status); } && {
2.822 + test -z "$ac_c_werror_flag" ||
2.823 + test ! -s conftest.err
2.824 + } && test -s conftest.$ac_objext; then
2.825 + ac_cv_prog_cc_g=yes
2.826 +else
2.827 + echo "$as_me: failed program was:" >&5
2.828 +sed 's/^/| /' conftest.$ac_ext >&5
2.829 +
2.830 + CFLAGS=""
2.831 + cat >conftest.$ac_ext <<_ACEOF
2.832 +/* confdefs.h. */
2.833 +_ACEOF
2.834 +cat confdefs.h >>conftest.$ac_ext
2.835 +cat >>conftest.$ac_ext <<_ACEOF
2.836 +/* end confdefs.h. */
2.837 +
2.838 +int
2.839 +main ()
2.840 +{
2.841 +
2.842 + ;
2.843 + return 0;
2.844 +}
2.845 +_ACEOF
2.846 +rm -f conftest.$ac_objext
2.847 +if { (ac_try="$ac_compile"
2.848 +case "(($ac_try" in
2.849 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.850 + *) ac_try_echo=$ac_try;;
2.851 +esac
2.852 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.853 + (eval "$ac_compile") 2>conftest.er1
2.854 + ac_status=$?
2.855 + grep -v '^ *+' conftest.er1 >conftest.err
2.856 + rm -f conftest.er1
2.857 + cat conftest.err >&5
2.858 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.859 + (exit $ac_status); } && {
2.860 + test -z "$ac_c_werror_flag" ||
2.861 + test ! -s conftest.err
2.862 + } && test -s conftest.$ac_objext; then
2.863 + :
2.864 +else
2.865 + echo "$as_me: failed program was:" >&5
2.866 +sed 's/^/| /' conftest.$ac_ext >&5
2.867 +
2.868 + ac_c_werror_flag=$ac_save_c_werror_flag
2.869 + CFLAGS="-g"
2.870 + cat >conftest.$ac_ext <<_ACEOF
2.871 +/* confdefs.h. */
2.872 +_ACEOF
2.873 +cat confdefs.h >>conftest.$ac_ext
2.874 +cat >>conftest.$ac_ext <<_ACEOF
2.875 +/* end confdefs.h. */
2.876 +
2.877 +int
2.878 +main ()
2.879 +{
2.880 +
2.881 + ;
2.882 + return 0;
2.883 +}
2.884 +_ACEOF
2.885 +rm -f conftest.$ac_objext
2.886 +if { (ac_try="$ac_compile"
2.887 +case "(($ac_try" in
2.888 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.889 + *) ac_try_echo=$ac_try;;
2.890 +esac
2.891 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.892 + (eval "$ac_compile") 2>conftest.er1
2.893 + ac_status=$?
2.894 + grep -v '^ *+' conftest.er1 >conftest.err
2.895 + rm -f conftest.er1
2.896 + cat conftest.err >&5
2.897 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.898 + (exit $ac_status); } && {
2.899 + test -z "$ac_c_werror_flag" ||
2.900 + test ! -s conftest.err
2.901 + } && test -s conftest.$ac_objext; then
2.902 + ac_cv_prog_cc_g=yes
2.903 +else
2.904 + echo "$as_me: failed program was:" >&5
2.905 +sed 's/^/| /' conftest.$ac_ext >&5
2.906 +
2.907 +
2.908 +fi
2.909 +
2.910 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.911 +fi
2.912 +
2.913 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.914 +fi
2.915 +
2.916 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.917 + ac_c_werror_flag=$ac_save_c_werror_flag
2.918 +fi
2.919 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2.920 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2.921 +if test "$ac_test_CFLAGS" = set; then
2.922 + CFLAGS=$ac_save_CFLAGS
2.923 +elif test $ac_cv_prog_cc_g = yes; then
2.924 + if test "$GCC" = yes; then
2.925 + CFLAGS="-g -O2"
2.926 + else
2.927 + CFLAGS="-g"
2.928 + fi
2.929 +else
2.930 + if test "$GCC" = yes; then
2.931 + CFLAGS="-O2"
2.932 + else
2.933 + CFLAGS=
2.934 + fi
2.935 +fi
2.936 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2.937 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2.938 +if test "${ac_cv_prog_cc_c89+set}" = set; then
2.939 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.940 +else
2.941 + ac_cv_prog_cc_c89=no
2.942 +ac_save_CC=$CC
2.943 +cat >conftest.$ac_ext <<_ACEOF
2.944 +/* confdefs.h. */
2.945 +_ACEOF
2.946 +cat confdefs.h >>conftest.$ac_ext
2.947 +cat >>conftest.$ac_ext <<_ACEOF
2.948 +/* end confdefs.h. */
2.949 +#include <stdarg.h>
2.950 +#include <stdio.h>
2.951 +#include <sys/types.h>
2.952 +#include <sys/stat.h>
2.953 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.954 +struct buf { int x; };
2.955 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.956 +static char *e (p, i)
2.957 + char **p;
2.958 + int i;
2.959 +{
2.960 + return p[i];
2.961 +}
2.962 +static char *f (char * (*g) (char **, int), char **p, ...)
2.963 +{
2.964 + char *s;
2.965 + va_list v;
2.966 + va_start (v,p);
2.967 + s = g (p, va_arg (v,int));
2.968 + va_end (v);
2.969 + return s;
2.970 +}
2.971 +
2.972 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.973 + function prototypes and stuff, but not '\xHH' hex character constants.
2.974 + These don't provoke an error unfortunately, instead are silently treated
2.975 + as 'x'. The following induces an error, until -std is added to get
2.976 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.977 + array size at least. It's necessary to write '\x00'==0 to get something
2.978 + that's true only with -std. */
2.979 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.980 +
2.981 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.982 + inside strings and character constants. */
2.983 +#define FOO(x) 'x'
2.984 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.985 +
2.986 +int test (int i, double x);
2.987 +struct s1 {int (*f) (int a);};
2.988 +struct s2 {int (*f) (double a);};
2.989 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.990 +int argc;
2.991 +char **argv;
2.992 +int
2.993 +main ()
2.994 +{
2.995 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.996 + ;
2.997 + return 0;
2.998 +}
2.999 +_ACEOF
2.1000 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.1001 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.1002 +do
2.1003 + CC="$ac_save_CC $ac_arg"
2.1004 + rm -f conftest.$ac_objext
2.1005 +if { (ac_try="$ac_compile"
2.1006 +case "(($ac_try" in
2.1007 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1008 + *) ac_try_echo=$ac_try;;
2.1009 +esac
2.1010 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1011 + (eval "$ac_compile") 2>conftest.er1
2.1012 + ac_status=$?
2.1013 + grep -v '^ *+' conftest.er1 >conftest.err
2.1014 + rm -f conftest.er1
2.1015 + cat conftest.err >&5
2.1016 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1017 + (exit $ac_status); } && {
2.1018 + test -z "$ac_c_werror_flag" ||
2.1019 + test ! -s conftest.err
2.1020 + } && test -s conftest.$ac_objext; then
2.1021 + ac_cv_prog_cc_c89=$ac_arg
2.1022 +else
2.1023 + echo "$as_me: failed program was:" >&5
2.1024 +sed 's/^/| /' conftest.$ac_ext >&5
2.1025 +
2.1026 +
2.1027 +fi
2.1028 +
2.1029 +rm -f core conftest.err conftest.$ac_objext
2.1030 + test "x$ac_cv_prog_cc_c89" != "xno" && break
2.1031 +done
2.1032 +rm -f conftest.$ac_ext
2.1033 +CC=$ac_save_CC
2.1034 +
2.1035 +fi
2.1036 +# AC_CACHE_VAL
2.1037 +case "x$ac_cv_prog_cc_c89" in
2.1038 + x)
2.1039 + { echo "$as_me:$LINENO: result: none needed" >&5
2.1040 +echo "${ECHO_T}none needed" >&6; } ;;
2.1041 + xno)
2.1042 + { echo "$as_me:$LINENO: result: unsupported" >&5
2.1043 +echo "${ECHO_T}unsupported" >&6; } ;;
2.1044 + *)
2.1045 + CC="$CC $ac_cv_prog_cc_c89"
2.1046 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2.1047 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2.1048 +esac
2.1049 +
2.1050 +
2.1051 +ac_ext=c
2.1052 +ac_cpp='$CPP $CPPFLAGS'
2.1053 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.1054 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.1055 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.1056 +
2.1057 +depcc="$CC" am_compiler_list=
2.1058 +
2.1059 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.1060 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.1061 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2.1062 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1063 +else
2.1064 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.1065 + # We make a subdir and do the tests there. Otherwise we can end up
2.1066 + # making bogus files that we don't know about and never remove. For
2.1067 + # instance it was reported that on HP-UX the gcc test will end up
2.1068 + # making a dummy file named `D' -- because `-MD' means `put the output
2.1069 + # in D'.
2.1070 + mkdir conftest.dir
2.1071 + # Copy depcomp to subdir because otherwise we won't find it if we're
2.1072 + # using a relative directory.
2.1073 + cp "$am_depcomp" conftest.dir
2.1074 + cd conftest.dir
2.1075 + # We will build objects and dependencies in a subdirectory because
2.1076 + # it helps to detect inapplicable dependency modes. For instance
2.1077 + # both Tru64's cc and ICC support -MD to output dependencies as a
2.1078 + # side effect of compilation, but ICC will put the dependencies in
2.1079 + # the current directory while Tru64 will put them in the object
2.1080 + # directory.
2.1081 + mkdir sub
2.1082 +
2.1083 + am_cv_CC_dependencies_compiler_type=none
2.1084 + if test "$am_compiler_list" = ""; then
2.1085 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.1086 + fi
2.1087 + for depmode in $am_compiler_list; do
2.1088 + # Setup a source with many dependencies, because some compilers
2.1089 + # like to wrap large dependency lists on column 80 (with \), and
2.1090 + # we should not choose a depcomp mode which is confused by this.
2.1091 + #
2.1092 + # We need to recreate these files for each test, as the compiler may
2.1093 + # overwrite some of them when testing with obscure command lines.
2.1094 + # This happens at least with the AIX C compiler.
2.1095 + : > sub/conftest.c
2.1096 + for i in 1 2 3 4 5 6; do
2.1097 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.1098 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.1099 + # Solaris 8's {/usr,}/bin/sh.
2.1100 + touch sub/conftst$i.h
2.1101 + done
2.1102 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.1103 +
2.1104 + case $depmode in
2.1105 + nosideeffect)
2.1106 + # after this tag, mechanisms are not by side-effect, so they'll
2.1107 + # only be used when explicitly requested
2.1108 + if test "x$enable_dependency_tracking" = xyes; then
2.1109 + continue
2.1110 + else
2.1111 + break
2.1112 + fi
2.1113 + ;;
2.1114 + none) break ;;
2.1115 + esac
2.1116 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.1117 + # mode. It turns out that the SunPro C++ compiler does not properly
2.1118 + # handle `-M -o', and we need to detect this.
2.1119 + if depmode=$depmode \
2.1120 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.1121 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.1122 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.1123 + >/dev/null 2>conftest.err &&
2.1124 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.1125 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.1126 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.1127 + # icc doesn't choke on unknown options, it will just issue warnings
2.1128 + # or remarks (even with -Werror). So we grep stderr for any message
2.1129 + # that says an option was ignored or not supported.
2.1130 + # When given -MP, icc 7.0 and 7.1 complain thusly:
2.1131 + # icc: Command line warning: ignoring option '-M'; no argument required
2.1132 + # The diagnosis changed in icc 8.0:
2.1133 + # icc: Command line remark: option '-MP' not supported
2.1134 + if (grep 'ignoring option' conftest.err ||
2.1135 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.1136 + am_cv_CC_dependencies_compiler_type=$depmode
2.1137 + break
2.1138 + fi
2.1139 + fi
2.1140 + done
2.1141 +
2.1142 + cd ..
2.1143 + rm -rf conftest.dir
2.1144 +else
2.1145 + am_cv_CC_dependencies_compiler_type=none
2.1146 +fi
2.1147 +
2.1148 +fi
2.1149 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2.1150 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
2.1151 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2.1152 +
2.1153 +
2.1154 +
2.1155 +if
2.1156 + test "x$enable_dependency_tracking" != xno \
2.1157 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2.1158 + am__fastdepCC_TRUE=
2.1159 + am__fastdepCC_FALSE='#'
2.1160 +else
2.1161 + am__fastdepCC_TRUE='#'
2.1162 + am__fastdepCC_FALSE=
2.1163 +fi
2.1164 +
2.1165 +
2.1166 +
2.1167 +
2.1168 + { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2.1169 +echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
2.1170 +if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2.1171 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1172 +else
2.1173 + ac_check_lib_save_LIBS=$LIBS
2.1174 +LIBS="-lcposix $LIBS"
2.1175 +cat >conftest.$ac_ext <<_ACEOF
2.1176 +/* confdefs.h. */
2.1177 +_ACEOF
2.1178 +cat confdefs.h >>conftest.$ac_ext
2.1179 +cat >>conftest.$ac_ext <<_ACEOF
2.1180 +/* end confdefs.h. */
2.1181 +
2.1182 +/* Override any GCC internal prototype to avoid an error.
2.1183 + Use char because int might match the return type of a GCC
2.1184 + builtin and then its argument prototype would still apply. */
2.1185 +#ifdef __cplusplus
2.1186 +extern "C"
2.1187 +#endif
2.1188 +char strerror ();
2.1189 +int
2.1190 +main ()
2.1191 +{
2.1192 +return strerror ();
2.1193 + ;
2.1194 + return 0;
2.1195 +}
2.1196 +_ACEOF
2.1197 +rm -f conftest.$ac_objext conftest$ac_exeext
2.1198 +if { (ac_try="$ac_link"
2.1199 +case "(($ac_try" in
2.1200 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1201 + *) ac_try_echo=$ac_try;;
2.1202 +esac
2.1203 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1204 + (eval "$ac_link") 2>conftest.er1
2.1205 + ac_status=$?
2.1206 + grep -v '^ *+' conftest.er1 >conftest.err
2.1207 + rm -f conftest.er1
2.1208 + cat conftest.err >&5
2.1209 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1210 + (exit $ac_status); } && {
2.1211 + test -z "$ac_c_werror_flag" ||
2.1212 + test ! -s conftest.err
2.1213 + } && test -s conftest$ac_exeext &&
2.1214 + $as_test_x conftest$ac_exeext; then
2.1215 + ac_cv_lib_cposix_strerror=yes
2.1216 +else
2.1217 + echo "$as_me: failed program was:" >&5
2.1218 +sed 's/^/| /' conftest.$ac_ext >&5
2.1219 +
2.1220 + ac_cv_lib_cposix_strerror=no
2.1221 +fi
2.1222 +
2.1223 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2.1224 + conftest$ac_exeext conftest.$ac_ext
2.1225 +LIBS=$ac_check_lib_save_LIBS
2.1226 +fi
2.1227 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2.1228 +echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
2.1229 +if test $ac_cv_lib_cposix_strerror = yes; then
2.1230 + LIBS="$LIBS -lcposix"
2.1231 +fi
2.1232 +
2.1233 +
2.1234 +
2.1235 +ac_ext=c
2.1236 +ac_cpp='$CPP $CPPFLAGS'
2.1237 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.1238 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.1239 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.1240 +if test -n "$ac_tool_prefix"; then
2.1241 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2.1242 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
2.1243 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.1244 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.1245 +if test "${ac_cv_prog_CC+set}" = set; then
2.1246 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1247 +else
2.1248 + if test -n "$CC"; then
2.1249 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.1250 +else
2.1251 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.1252 +for as_dir in $PATH
2.1253 +do
2.1254 + IFS=$as_save_IFS
2.1255 + test -z "$as_dir" && as_dir=.
2.1256 + for ac_exec_ext in '' $ac_executable_extensions; do
2.1257 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.1258 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
2.1259 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.1260 + break 2
2.1261 + fi
2.1262 +done
2.1263 +done
2.1264 +IFS=$as_save_IFS
2.1265 +
2.1266 +fi
2.1267 +fi
2.1268 +CC=$ac_cv_prog_CC
2.1269 +if test -n "$CC"; then
2.1270 + { echo "$as_me:$LINENO: result: $CC" >&5
2.1271 +echo "${ECHO_T}$CC" >&6; }
2.1272 +else
2.1273 + { echo "$as_me:$LINENO: result: no" >&5
2.1274 +echo "${ECHO_T}no" >&6; }
2.1275 +fi
2.1276 +
2.1277 +
2.1278 +fi
2.1279 +if test -z "$ac_cv_prog_CC"; then
2.1280 + ac_ct_CC=$CC
2.1281 + # Extract the first word of "gcc", so it can be a program name with args.
2.1282 +set dummy gcc; ac_word=$2
2.1283 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.1284 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.1285 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.1286 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1287 +else
2.1288 + if test -n "$ac_ct_CC"; then
2.1289 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.1290 +else
2.1291 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.1292 +for as_dir in $PATH
2.1293 +do
2.1294 + IFS=$as_save_IFS
2.1295 + test -z "$as_dir" && as_dir=.
2.1296 + for ac_exec_ext in '' $ac_executable_extensions; do
2.1297 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.1298 + ac_cv_prog_ac_ct_CC="gcc"
2.1299 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.1300 + break 2
2.1301 + fi
2.1302 +done
2.1303 +done
2.1304 +IFS=$as_save_IFS
2.1305 +
2.1306 +fi
2.1307 +fi
2.1308 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.1309 +if test -n "$ac_ct_CC"; then
2.1310 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.1311 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2.1312 +else
2.1313 + { echo "$as_me:$LINENO: result: no" >&5
2.1314 +echo "${ECHO_T}no" >&6; }
2.1315 +fi
2.1316 +
2.1317 + if test "x$ac_ct_CC" = x; then
2.1318 + CC=""
2.1319 + else
2.1320 + case $cross_compiling:$ac_tool_warned in
2.1321 +yes:)
2.1322 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.1323 +whose name does not start with the host triplet. If you think this
2.1324 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.1325 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.1326 +whose name does not start with the host triplet. If you think this
2.1327 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.1328 +ac_tool_warned=yes ;;
2.1329 +esac
2.1330 + CC=$ac_ct_CC
2.1331 + fi
2.1332 +else
2.1333 + CC="$ac_cv_prog_CC"
2.1334 +fi
2.1335 +
2.1336 +if test -z "$CC"; then
2.1337 + if test -n "$ac_tool_prefix"; then
2.1338 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2.1339 +set dummy ${ac_tool_prefix}cc; ac_word=$2
2.1340 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.1341 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.1342 +if test "${ac_cv_prog_CC+set}" = set; then
2.1343 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1344 +else
2.1345 + if test -n "$CC"; then
2.1346 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.1347 +else
2.1348 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.1349 +for as_dir in $PATH
2.1350 +do
2.1351 + IFS=$as_save_IFS
2.1352 + test -z "$as_dir" && as_dir=.
2.1353 + for ac_exec_ext in '' $ac_executable_extensions; do
2.1354 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.1355 + ac_cv_prog_CC="${ac_tool_prefix}cc"
2.1356 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.1357 + break 2
2.1358 + fi
2.1359 +done
2.1360 +done
2.1361 +IFS=$as_save_IFS
2.1362 +
2.1363 +fi
2.1364 +fi
2.1365 +CC=$ac_cv_prog_CC
2.1366 +if test -n "$CC"; then
2.1367 + { echo "$as_me:$LINENO: result: $CC" >&5
2.1368 +echo "${ECHO_T}$CC" >&6; }
2.1369 +else
2.1370 + { echo "$as_me:$LINENO: result: no" >&5
2.1371 +echo "${ECHO_T}no" >&6; }
2.1372 +fi
2.1373 +
2.1374 +
2.1375 + fi
2.1376 +fi
2.1377 +if test -z "$CC"; then
2.1378 + # Extract the first word of "cc", so it can be a program name with args.
2.1379 +set dummy cc; ac_word=$2
2.1380 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.1381 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.1382 +if test "${ac_cv_prog_CC+set}" = set; then
2.1383 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1384 +else
2.1385 + if test -n "$CC"; then
2.1386 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.1387 +else
2.1388 + ac_prog_rejected=no
2.1389 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.1390 +for as_dir in $PATH
2.1391 +do
2.1392 + IFS=$as_save_IFS
2.1393 + test -z "$as_dir" && as_dir=.
2.1394 + for ac_exec_ext in '' $ac_executable_extensions; do
2.1395 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.1396 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2.1397 + ac_prog_rejected=yes
2.1398 + continue
2.1399 + fi
2.1400 + ac_cv_prog_CC="cc"
2.1401 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.1402 + break 2
2.1403 + fi
2.1404 +done
2.1405 +done
2.1406 +IFS=$as_save_IFS
2.1407 +
2.1408 +if test $ac_prog_rejected = yes; then
2.1409 + # We found a bogon in the path, so make sure we never use it.
2.1410 + set dummy $ac_cv_prog_CC
2.1411 + shift
2.1412 + if test $# != 0; then
2.1413 + # We chose a different compiler from the bogus one.
2.1414 + # However, it has the same basename, so the bogon will be chosen
2.1415 + # first if we set CC to just the basename; use the full file name.
2.1416 + shift
2.1417 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2.1418 + fi
2.1419 +fi
2.1420 +fi
2.1421 +fi
2.1422 +CC=$ac_cv_prog_CC
2.1423 +if test -n "$CC"; then
2.1424 + { echo "$as_me:$LINENO: result: $CC" >&5
2.1425 +echo "${ECHO_T}$CC" >&6; }
2.1426 +else
2.1427 + { echo "$as_me:$LINENO: result: no" >&5
2.1428 +echo "${ECHO_T}no" >&6; }
2.1429 +fi
2.1430 +
2.1431 +
2.1432 +fi
2.1433 +if test -z "$CC"; then
2.1434 + if test -n "$ac_tool_prefix"; then
2.1435 + for ac_prog in cl.exe
2.1436 + do
2.1437 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.1438 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2.1439 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.1440 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.1441 +if test "${ac_cv_prog_CC+set}" = set; then
2.1442 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1443 +else
2.1444 + if test -n "$CC"; then
2.1445 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.1446 +else
2.1447 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.1448 +for as_dir in $PATH
2.1449 +do
2.1450 + IFS=$as_save_IFS
2.1451 + test -z "$as_dir" && as_dir=.
2.1452 + for ac_exec_ext in '' $ac_executable_extensions; do
2.1453 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.1454 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2.1455 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.1456 + break 2
2.1457 + fi
2.1458 +done
2.1459 +done
2.1460 +IFS=$as_save_IFS
2.1461 +
2.1462 +fi
2.1463 +fi
2.1464 +CC=$ac_cv_prog_CC
2.1465 +if test -n "$CC"; then
2.1466 + { echo "$as_me:$LINENO: result: $CC" >&5
2.1467 +echo "${ECHO_T}$CC" >&6; }
2.1468 +else
2.1469 + { echo "$as_me:$LINENO: result: no" >&5
2.1470 +echo "${ECHO_T}no" >&6; }
2.1471 +fi
2.1472 +
2.1473 +
2.1474 + test -n "$CC" && break
2.1475 + done
2.1476 +fi
2.1477 +if test -z "$CC"; then
2.1478 + ac_ct_CC=$CC
2.1479 + for ac_prog in cl.exe
2.1480 +do
2.1481 + # Extract the first word of "$ac_prog", so it can be a program name with args.
2.1482 +set dummy $ac_prog; ac_word=$2
2.1483 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.1484 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.1485 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.1486 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1487 +else
2.1488 + if test -n "$ac_ct_CC"; then
2.1489 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.1490 +else
2.1491 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.1492 +for as_dir in $PATH
2.1493 +do
2.1494 + IFS=$as_save_IFS
2.1495 + test -z "$as_dir" && as_dir=.
2.1496 + for ac_exec_ext in '' $ac_executable_extensions; do
2.1497 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.1498 + ac_cv_prog_ac_ct_CC="$ac_prog"
2.1499 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.1500 + break 2
2.1501 + fi
2.1502 +done
2.1503 +done
2.1504 +IFS=$as_save_IFS
2.1505 +
2.1506 +fi
2.1507 +fi
2.1508 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.1509 +if test -n "$ac_ct_CC"; then
2.1510 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.1511 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2.1512 +else
2.1513 + { echo "$as_me:$LINENO: result: no" >&5
2.1514 +echo "${ECHO_T}no" >&6; }
2.1515 +fi
2.1516 +
2.1517 +
2.1518 + test -n "$ac_ct_CC" && break
2.1519 +done
2.1520 +
2.1521 + if test "x$ac_ct_CC" = x; then
2.1522 + CC=""
2.1523 + else
2.1524 + case $cross_compiling:$ac_tool_warned in
2.1525 +yes:)
2.1526 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.1527 +whose name does not start with the host triplet. If you think this
2.1528 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.1529 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.1530 +whose name does not start with the host triplet. If you think this
2.1531 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.1532 +ac_tool_warned=yes ;;
2.1533 +esac
2.1534 + CC=$ac_ct_CC
2.1535 + fi
2.1536 +fi
2.1537 +
2.1538 +fi
2.1539 +
2.1540 +
2.1541 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2.1542 +See \`config.log' for more details." >&5
2.1543 +echo "$as_me: error: no acceptable C compiler found in \$PATH
2.1544 +See \`config.log' for more details." >&2;}
2.1545 + { (exit 1); exit 1; }; }
2.1546 +
2.1547 +# Provide some information about the compiler.
2.1548 +echo "$as_me:$LINENO: checking for C compiler version" >&5
2.1549 +ac_compiler=`set X $ac_compile; echo $2`
2.1550 +{ (ac_try="$ac_compiler --version >&5"
2.1551 +case "(($ac_try" in
2.1552 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1553 + *) ac_try_echo=$ac_try;;
2.1554 +esac
2.1555 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1556 + (eval "$ac_compiler --version >&5") 2>&5
2.1557 + ac_status=$?
2.1558 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1559 + (exit $ac_status); }
2.1560 +{ (ac_try="$ac_compiler -v >&5"
2.1561 +case "(($ac_try" in
2.1562 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1563 + *) ac_try_echo=$ac_try;;
2.1564 +esac
2.1565 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1566 + (eval "$ac_compiler -v >&5") 2>&5
2.1567 + ac_status=$?
2.1568 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1569 + (exit $ac_status); }
2.1570 +{ (ac_try="$ac_compiler -V >&5"
2.1571 +case "(($ac_try" in
2.1572 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1573 + *) ac_try_echo=$ac_try;;
2.1574 +esac
2.1575 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1576 + (eval "$ac_compiler -V >&5") 2>&5
2.1577 + ac_status=$?
2.1578 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1579 + (exit $ac_status); }
2.1580 +
2.1581 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2.1582 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2.1583 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
2.1584 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1585 +else
2.1586 + cat >conftest.$ac_ext <<_ACEOF
2.1587 +/* confdefs.h. */
2.1588 +_ACEOF
2.1589 +cat confdefs.h >>conftest.$ac_ext
2.1590 +cat >>conftest.$ac_ext <<_ACEOF
2.1591 +/* end confdefs.h. */
2.1592 +
2.1593 +int
2.1594 +main ()
2.1595 +{
2.1596 +#ifndef __GNUC__
2.1597 + choke me
2.1598 +#endif
2.1599 +
2.1600 + ;
2.1601 + return 0;
2.1602 +}
2.1603 +_ACEOF
2.1604 +rm -f conftest.$ac_objext
2.1605 +if { (ac_try="$ac_compile"
2.1606 +case "(($ac_try" in
2.1607 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1608 + *) ac_try_echo=$ac_try;;
2.1609 +esac
2.1610 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1611 + (eval "$ac_compile") 2>conftest.er1
2.1612 + ac_status=$?
2.1613 + grep -v '^ *+' conftest.er1 >conftest.err
2.1614 + rm -f conftest.er1
2.1615 + cat conftest.err >&5
2.1616 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1617 + (exit $ac_status); } && {
2.1618 + test -z "$ac_c_werror_flag" ||
2.1619 + test ! -s conftest.err
2.1620 + } && test -s conftest.$ac_objext; then
2.1621 + ac_compiler_gnu=yes
2.1622 +else
2.1623 + echo "$as_me: failed program was:" >&5
2.1624 +sed 's/^/| /' conftest.$ac_ext >&5
2.1625 +
2.1626 + ac_compiler_gnu=no
2.1627 +fi
2.1628 +
2.1629 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.1630 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
2.1631 +
2.1632 +fi
2.1633 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2.1634 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2.1635 +GCC=`test $ac_compiler_gnu = yes && echo yes`
2.1636 +ac_test_CFLAGS=${CFLAGS+set}
2.1637 +ac_save_CFLAGS=$CFLAGS
2.1638 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2.1639 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2.1640 +if test "${ac_cv_prog_cc_g+set}" = set; then
2.1641 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1642 +else
2.1643 + ac_save_c_werror_flag=$ac_c_werror_flag
2.1644 + ac_c_werror_flag=yes
2.1645 + ac_cv_prog_cc_g=no
2.1646 + CFLAGS="-g"
2.1647 + cat >conftest.$ac_ext <<_ACEOF
2.1648 +/* confdefs.h. */
2.1649 +_ACEOF
2.1650 +cat confdefs.h >>conftest.$ac_ext
2.1651 +cat >>conftest.$ac_ext <<_ACEOF
2.1652 +/* end confdefs.h. */
2.1653 +
2.1654 +int
2.1655 +main ()
2.1656 +{
2.1657 +
2.1658 + ;
2.1659 + return 0;
2.1660 +}
2.1661 +_ACEOF
2.1662 +rm -f conftest.$ac_objext
2.1663 +if { (ac_try="$ac_compile"
2.1664 +case "(($ac_try" in
2.1665 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1666 + *) ac_try_echo=$ac_try;;
2.1667 +esac
2.1668 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1669 + (eval "$ac_compile") 2>conftest.er1
2.1670 + ac_status=$?
2.1671 + grep -v '^ *+' conftest.er1 >conftest.err
2.1672 + rm -f conftest.er1
2.1673 + cat conftest.err >&5
2.1674 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1675 + (exit $ac_status); } && {
2.1676 + test -z "$ac_c_werror_flag" ||
2.1677 + test ! -s conftest.err
2.1678 + } && test -s conftest.$ac_objext; then
2.1679 + ac_cv_prog_cc_g=yes
2.1680 +else
2.1681 + echo "$as_me: failed program was:" >&5
2.1682 +sed 's/^/| /' conftest.$ac_ext >&5
2.1683 +
2.1684 + CFLAGS=""
2.1685 + cat >conftest.$ac_ext <<_ACEOF
2.1686 +/* confdefs.h. */
2.1687 +_ACEOF
2.1688 +cat confdefs.h >>conftest.$ac_ext
2.1689 +cat >>conftest.$ac_ext <<_ACEOF
2.1690 +/* end confdefs.h. */
2.1691 +
2.1692 +int
2.1693 +main ()
2.1694 +{
2.1695 +
2.1696 + ;
2.1697 + return 0;
2.1698 +}
2.1699 +_ACEOF
2.1700 +rm -f conftest.$ac_objext
2.1701 +if { (ac_try="$ac_compile"
2.1702 +case "(($ac_try" in
2.1703 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1704 + *) ac_try_echo=$ac_try;;
2.1705 +esac
2.1706 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1707 + (eval "$ac_compile") 2>conftest.er1
2.1708 + ac_status=$?
2.1709 + grep -v '^ *+' conftest.er1 >conftest.err
2.1710 + rm -f conftest.er1
2.1711 + cat conftest.err >&5
2.1712 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1713 + (exit $ac_status); } && {
2.1714 + test -z "$ac_c_werror_flag" ||
2.1715 + test ! -s conftest.err
2.1716 + } && test -s conftest.$ac_objext; then
2.1717 + :
2.1718 +else
2.1719 + echo "$as_me: failed program was:" >&5
2.1720 +sed 's/^/| /' conftest.$ac_ext >&5
2.1721 +
2.1722 + ac_c_werror_flag=$ac_save_c_werror_flag
2.1723 + CFLAGS="-g"
2.1724 + cat >conftest.$ac_ext <<_ACEOF
2.1725 +/* confdefs.h. */
2.1726 +_ACEOF
2.1727 +cat confdefs.h >>conftest.$ac_ext
2.1728 +cat >>conftest.$ac_ext <<_ACEOF
2.1729 +/* end confdefs.h. */
2.1730 +
2.1731 +int
2.1732 +main ()
2.1733 +{
2.1734 +
2.1735 + ;
2.1736 + return 0;
2.1737 +}
2.1738 +_ACEOF
2.1739 +rm -f conftest.$ac_objext
2.1740 +if { (ac_try="$ac_compile"
2.1741 +case "(($ac_try" in
2.1742 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1743 + *) ac_try_echo=$ac_try;;
2.1744 +esac
2.1745 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1746 + (eval "$ac_compile") 2>conftest.er1
2.1747 + ac_status=$?
2.1748 + grep -v '^ *+' conftest.er1 >conftest.err
2.1749 + rm -f conftest.er1
2.1750 + cat conftest.err >&5
2.1751 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1752 + (exit $ac_status); } && {
2.1753 + test -z "$ac_c_werror_flag" ||
2.1754 + test ! -s conftest.err
2.1755 + } && test -s conftest.$ac_objext; then
2.1756 + ac_cv_prog_cc_g=yes
2.1757 +else
2.1758 + echo "$as_me: failed program was:" >&5
2.1759 +sed 's/^/| /' conftest.$ac_ext >&5
2.1760 +
2.1761 +
2.1762 +fi
2.1763 +
2.1764 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.1765 +fi
2.1766 +
2.1767 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.1768 +fi
2.1769 +
2.1770 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.1771 + ac_c_werror_flag=$ac_save_c_werror_flag
2.1772 +fi
2.1773 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2.1774 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2.1775 +if test "$ac_test_CFLAGS" = set; then
2.1776 + CFLAGS=$ac_save_CFLAGS
2.1777 +elif test $ac_cv_prog_cc_g = yes; then
2.1778 + if test "$GCC" = yes; then
2.1779 + CFLAGS="-g -O2"
2.1780 + else
2.1781 + CFLAGS="-g"
2.1782 + fi
2.1783 +else
2.1784 + if test "$GCC" = yes; then
2.1785 + CFLAGS="-O2"
2.1786 + else
2.1787 + CFLAGS=
2.1788 + fi
2.1789 +fi
2.1790 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2.1791 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2.1792 +if test "${ac_cv_prog_cc_c89+set}" = set; then
2.1793 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1794 +else
2.1795 + ac_cv_prog_cc_c89=no
2.1796 +ac_save_CC=$CC
2.1797 +cat >conftest.$ac_ext <<_ACEOF
2.1798 +/* confdefs.h. */
2.1799 +_ACEOF
2.1800 +cat confdefs.h >>conftest.$ac_ext
2.1801 +cat >>conftest.$ac_ext <<_ACEOF
2.1802 +/* end confdefs.h. */
2.1803 +#include <stdarg.h>
2.1804 +#include <stdio.h>
2.1805 +#include <sys/types.h>
2.1806 +#include <sys/stat.h>
2.1807 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.1808 +struct buf { int x; };
2.1809 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.1810 +static char *e (p, i)
2.1811 + char **p;
2.1812 + int i;
2.1813 +{
2.1814 + return p[i];
2.1815 +}
2.1816 +static char *f (char * (*g) (char **, int), char **p, ...)
2.1817 +{
2.1818 + char *s;
2.1819 + va_list v;
2.1820 + va_start (v,p);
2.1821 + s = g (p, va_arg (v,int));
2.1822 + va_end (v);
2.1823 + return s;
2.1824 +}
2.1825 +
2.1826 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.1827 + function prototypes and stuff, but not '\xHH' hex character constants.
2.1828 + These don't provoke an error unfortunately, instead are silently treated
2.1829 + as 'x'. The following induces an error, until -std is added to get
2.1830 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.1831 + array size at least. It's necessary to write '\x00'==0 to get something
2.1832 + that's true only with -std. */
2.1833 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.1834 +
2.1835 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.1836 + inside strings and character constants. */
2.1837 +#define FOO(x) 'x'
2.1838 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.1839 +
2.1840 +int test (int i, double x);
2.1841 +struct s1 {int (*f) (int a);};
2.1842 +struct s2 {int (*f) (double a);};
2.1843 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.1844 +int argc;
2.1845 +char **argv;
2.1846 +int
2.1847 +main ()
2.1848 +{
2.1849 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.1850 + ;
2.1851 + return 0;
2.1852 +}
2.1853 +_ACEOF
2.1854 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.1855 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.1856 +do
2.1857 + CC="$ac_save_CC $ac_arg"
2.1858 + rm -f conftest.$ac_objext
2.1859 +if { (ac_try="$ac_compile"
2.1860 +case "(($ac_try" in
2.1861 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1862 + *) ac_try_echo=$ac_try;;
2.1863 +esac
2.1864 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1865 + (eval "$ac_compile") 2>conftest.er1
2.1866 + ac_status=$?
2.1867 + grep -v '^ *+' conftest.er1 >conftest.err
2.1868 + rm -f conftest.er1
2.1869 + cat conftest.err >&5
2.1870 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1871 + (exit $ac_status); } && {
2.1872 + test -z "$ac_c_werror_flag" ||
2.1873 + test ! -s conftest.err
2.1874 + } && test -s conftest.$ac_objext; then
2.1875 + ac_cv_prog_cc_c89=$ac_arg
2.1876 +else
2.1877 + echo "$as_me: failed program was:" >&5
2.1878 +sed 's/^/| /' conftest.$ac_ext >&5
2.1879 +
2.1880 +
2.1881 +fi
2.1882 +
2.1883 +rm -f core conftest.err conftest.$ac_objext
2.1884 + test "x$ac_cv_prog_cc_c89" != "xno" && break
2.1885 +done
2.1886 +rm -f conftest.$ac_ext
2.1887 +CC=$ac_save_CC
2.1888 +
2.1889 +fi
2.1890 +# AC_CACHE_VAL
2.1891 +case "x$ac_cv_prog_cc_c89" in
2.1892 + x)
2.1893 + { echo "$as_me:$LINENO: result: none needed" >&5
2.1894 +echo "${ECHO_T}none needed" >&6; } ;;
2.1895 + xno)
2.1896 + { echo "$as_me:$LINENO: result: unsupported" >&5
2.1897 +echo "${ECHO_T}unsupported" >&6; } ;;
2.1898 + *)
2.1899 + CC="$CC $ac_cv_prog_cc_c89"
2.1900 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2.1901 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2.1902 +esac
2.1903 +
2.1904 +
2.1905 +ac_ext=c
2.1906 +ac_cpp='$CPP $CPPFLAGS'
2.1907 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.1908 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.1909 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.1910 +
2.1911 +depcc="$CC" am_compiler_list=
2.1912 +
2.1913 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.1914 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.1915 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2.1916 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1917 +else
2.1918 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.1919 + # We make a subdir and do the tests there. Otherwise we can end up
2.1920 + # making bogus files that we don't know about and never remove. For
2.1921 + # instance it was reported that on HP-UX the gcc test will end up
2.1922 + # making a dummy file named `D' -- because `-MD' means `put the output
2.1923 + # in D'.
2.1924 + mkdir conftest.dir
2.1925 + # Copy depcomp to subdir because otherwise we won't find it if we're
2.1926 + # using a relative directory.
2.1927 + cp "$am_depcomp" conftest.dir
2.1928 + cd conftest.dir
2.1929 + # We will build objects and dependencies in a subdirectory because
2.1930 + # it helps to detect inapplicable dependency modes. For instance
2.1931 + # both Tru64's cc and ICC support -MD to output dependencies as a
2.1932 + # side effect of compilation, but ICC will put the dependencies in
2.1933 + # the current directory while Tru64 will put them in the object
2.1934 + # directory.
2.1935 + mkdir sub
2.1936 +
2.1937 + am_cv_CC_dependencies_compiler_type=none
2.1938 + if test "$am_compiler_list" = ""; then
2.1939 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.1940 + fi
2.1941 + for depmode in $am_compiler_list; do
2.1942 + # Setup a source with many dependencies, because some compilers
2.1943 + # like to wrap large dependency lists on column 80 (with \), and
2.1944 + # we should not choose a depcomp mode which is confused by this.
2.1945 + #
2.1946 + # We need to recreate these files for each test, as the compiler may
2.1947 + # overwrite some of them when testing with obscure command lines.
2.1948 + # This happens at least with the AIX C compiler.
2.1949 + : > sub/conftest.c
2.1950 + for i in 1 2 3 4 5 6; do
2.1951 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.1952 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.1953 + # Solaris 8's {/usr,}/bin/sh.
2.1954 + touch sub/conftst$i.h
2.1955 + done
2.1956 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.1957 +
2.1958 + case $depmode in
2.1959 + nosideeffect)
2.1960 + # after this tag, mechanisms are not by side-effect, so they'll
2.1961 + # only be used when explicitly requested
2.1962 + if test "x$enable_dependency_tracking" = xyes; then
2.1963 + continue
2.1964 + else
2.1965 + break
2.1966 + fi
2.1967 + ;;
2.1968 + none) break ;;
2.1969 + esac
2.1970 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.1971 + # mode. It turns out that the SunPro C++ compiler does not properly
2.1972 + # handle `-M -o', and we need to detect this.
2.1973 + if depmode=$depmode \
2.1974 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.1975 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.1976 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.1977 + >/dev/null 2>conftest.err &&
2.1978 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.1979 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.1980 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.1981 + # icc doesn't choke on unknown options, it will just issue warnings
2.1982 + # or remarks (even with -Werror). So we grep stderr for any message
2.1983 + # that says an option was ignored or not supported.
2.1984 + # When given -MP, icc 7.0 and 7.1 complain thusly:
2.1985 + # icc: Command line warning: ignoring option '-M'; no argument required
2.1986 + # The diagnosis changed in icc 8.0:
2.1987 + # icc: Command line remark: option '-MP' not supported
2.1988 + if (grep 'ignoring option' conftest.err ||
2.1989 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.1990 + am_cv_CC_dependencies_compiler_type=$depmode
2.1991 + break
2.1992 + fi
2.1993 + fi
2.1994 + done
2.1995 +
2.1996 + cd ..
2.1997 + rm -rf conftest.dir
2.1998 +else
2.1999 + am_cv_CC_dependencies_compiler_type=none
2.2000 +fi
2.2001 +
2.2002 +fi
2.2003 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2.2004 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
2.2005 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2.2006 +
2.2007 +
2.2008 +
2.2009 +if
2.2010 + test "x$enable_dependency_tracking" != xno \
2.2011 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2.2012 + am__fastdepCC_TRUE=
2.2013 + am__fastdepCC_FALSE='#'
2.2014 +else
2.2015 + am__fastdepCC_TRUE='#'
2.2016 + am__fastdepCC_FALSE=
2.2017 +fi
2.2018 +
2.2019 +
2.2020 +ac_ext=c
2.2021 +ac_cpp='$CPP $CPPFLAGS'
2.2022 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.2023 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.2024 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.2025 +if test -n "$ac_tool_prefix"; then
2.2026 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2.2027 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
2.2028 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.2029 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.2030 +if test "${ac_cv_prog_CC+set}" = set; then
2.2031 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2032 +else
2.2033 + if test -n "$CC"; then
2.2034 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.2035 +else
2.2036 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.2037 +for as_dir in $PATH
2.2038 +do
2.2039 + IFS=$as_save_IFS
2.2040 + test -z "$as_dir" && as_dir=.
2.2041 + for ac_exec_ext in '' $ac_executable_extensions; do
2.2042 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.2043 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
2.2044 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.2045 + break 2
2.2046 + fi
2.2047 +done
2.2048 +done
2.2049 +IFS=$as_save_IFS
2.2050 +
2.2051 +fi
2.2052 +fi
2.2053 +CC=$ac_cv_prog_CC
2.2054 +if test -n "$CC"; then
2.2055 + { echo "$as_me:$LINENO: result: $CC" >&5
2.2056 +echo "${ECHO_T}$CC" >&6; }
2.2057 +else
2.2058 + { echo "$as_me:$LINENO: result: no" >&5
2.2059 +echo "${ECHO_T}no" >&6; }
2.2060 +fi
2.2061 +
2.2062 +
2.2063 +fi
2.2064 +if test -z "$ac_cv_prog_CC"; then
2.2065 + ac_ct_CC=$CC
2.2066 + # Extract the first word of "gcc", so it can be a program name with args.
2.2067 +set dummy gcc; ac_word=$2
2.2068 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.2069 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.2070 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.2071 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2072 +else
2.2073 + if test -n "$ac_ct_CC"; then
2.2074 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.2075 +else
2.2076 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.2077 +for as_dir in $PATH
2.2078 +do
2.2079 + IFS=$as_save_IFS
2.2080 + test -z "$as_dir" && as_dir=.
2.2081 + for ac_exec_ext in '' $ac_executable_extensions; do
2.2082 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.2083 + ac_cv_prog_ac_ct_CC="gcc"
2.2084 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.2085 + break 2
2.2086 + fi
2.2087 +done
2.2088 +done
2.2089 +IFS=$as_save_IFS
2.2090 +
2.2091 +fi
2.2092 +fi
2.2093 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.2094 +if test -n "$ac_ct_CC"; then
2.2095 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.2096 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2.2097 +else
2.2098 + { echo "$as_me:$LINENO: result: no" >&5
2.2099 +echo "${ECHO_T}no" >&6; }
2.2100 +fi
2.2101 +
2.2102 + if test "x$ac_ct_CC" = x; then
2.2103 + CC=""
2.2104 + else
2.2105 + case $cross_compiling:$ac_tool_warned in
2.2106 +yes:)
2.2107 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.2108 +whose name does not start with the host triplet. If you think this
2.2109 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.2110 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.2111 +whose name does not start with the host triplet. If you think this
2.2112 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.2113 +ac_tool_warned=yes ;;
2.2114 +esac
2.2115 + CC=$ac_ct_CC
2.2116 + fi
2.2117 +else
2.2118 + CC="$ac_cv_prog_CC"
2.2119 +fi
2.2120 +
2.2121 +if test -z "$CC"; then
2.2122 + if test -n "$ac_tool_prefix"; then
2.2123 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2.2124 +set dummy ${ac_tool_prefix}cc; ac_word=$2
2.2125 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.2126 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.2127 +if test "${ac_cv_prog_CC+set}" = set; then
2.2128 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2129 +else
2.2130 + if test -n "$CC"; then
2.2131 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.2132 +else
2.2133 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.2134 +for as_dir in $PATH
2.2135 +do
2.2136 + IFS=$as_save_IFS
2.2137 + test -z "$as_dir" && as_dir=.
2.2138 + for ac_exec_ext in '' $ac_executable_extensions; do
2.2139 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.2140 + ac_cv_prog_CC="${ac_tool_prefix}cc"
2.2141 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.2142 + break 2
2.2143 + fi
2.2144 +done
2.2145 +done
2.2146 +IFS=$as_save_IFS
2.2147 +
2.2148 +fi
2.2149 +fi
2.2150 +CC=$ac_cv_prog_CC
2.2151 +if test -n "$CC"; then
2.2152 + { echo "$as_me:$LINENO: result: $CC" >&5
2.2153 +echo "${ECHO_T}$CC" >&6; }
2.2154 +else
2.2155 + { echo "$as_me:$LINENO: result: no" >&5
2.2156 +echo "${ECHO_T}no" >&6; }
2.2157 +fi
2.2158 +
2.2159 +
2.2160 + fi
2.2161 +fi
2.2162 +if test -z "$CC"; then
2.2163 + # Extract the first word of "cc", so it can be a program name with args.
2.2164 +set dummy cc; ac_word=$2
2.2165 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.2166 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.2167 +if test "${ac_cv_prog_CC+set}" = set; then
2.2168 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2169 +else
2.2170 + if test -n "$CC"; then
2.2171 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.2172 +else
2.2173 + ac_prog_rejected=no
2.2174 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.2175 +for as_dir in $PATH
2.2176 +do
2.2177 + IFS=$as_save_IFS
2.2178 + test -z "$as_dir" && as_dir=.
2.2179 + for ac_exec_ext in '' $ac_executable_extensions; do
2.2180 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.2181 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2.2182 + ac_prog_rejected=yes
2.2183 + continue
2.2184 + fi
2.2185 + ac_cv_prog_CC="cc"
2.2186 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.2187 + break 2
2.2188 + fi
2.2189 +done
2.2190 +done
2.2191 +IFS=$as_save_IFS
2.2192 +
2.2193 +if test $ac_prog_rejected = yes; then
2.2194 + # We found a bogon in the path, so make sure we never use it.
2.2195 + set dummy $ac_cv_prog_CC
2.2196 + shift
2.2197 + if test $# != 0; then
2.2198 + # We chose a different compiler from the bogus one.
2.2199 + # However, it has the same basename, so the bogon will be chosen
2.2200 + # first if we set CC to just the basename; use the full file name.
2.2201 + shift
2.2202 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2.2203 + fi
2.2204 +fi
2.2205 +fi
2.2206 +fi
2.2207 +CC=$ac_cv_prog_CC
2.2208 +if test -n "$CC"; then
2.2209 + { echo "$as_me:$LINENO: result: $CC" >&5
2.2210 +echo "${ECHO_T}$CC" >&6; }
2.2211 +else
2.2212 + { echo "$as_me:$LINENO: result: no" >&5
2.2213 +echo "${ECHO_T}no" >&6; }
2.2214 +fi
2.2215 +
2.2216 +
2.2217 +fi
2.2218 +if test -z "$CC"; then
2.2219 + if test -n "$ac_tool_prefix"; then
2.2220 + for ac_prog in cl.exe
2.2221 + do
2.2222 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.2223 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2.2224 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.2225 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.2226 +if test "${ac_cv_prog_CC+set}" = set; then
2.2227 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2228 +else
2.2229 + if test -n "$CC"; then
2.2230 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.2231 +else
2.2232 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.2233 +for as_dir in $PATH
2.2234 +do
2.2235 + IFS=$as_save_IFS
2.2236 + test -z "$as_dir" && as_dir=.
2.2237 + for ac_exec_ext in '' $ac_executable_extensions; do
2.2238 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.2239 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2.2240 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.2241 + break 2
2.2242 + fi
2.2243 +done
2.2244 +done
2.2245 +IFS=$as_save_IFS
2.2246 +
2.2247 +fi
2.2248 +fi
2.2249 +CC=$ac_cv_prog_CC
2.2250 +if test -n "$CC"; then
2.2251 + { echo "$as_me:$LINENO: result: $CC" >&5
2.2252 +echo "${ECHO_T}$CC" >&6; }
2.2253 +else
2.2254 + { echo "$as_me:$LINENO: result: no" >&5
2.2255 +echo "${ECHO_T}no" >&6; }
2.2256 +fi
2.2257 +
2.2258 +
2.2259 + test -n "$CC" && break
2.2260 + done
2.2261 +fi
2.2262 +if test -z "$CC"; then
2.2263 + ac_ct_CC=$CC
2.2264 + for ac_prog in cl.exe
2.2265 +do
2.2266 + # Extract the first word of "$ac_prog", so it can be a program name with args.
2.2267 +set dummy $ac_prog; ac_word=$2
2.2268 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.2269 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.2270 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.2271 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2272 +else
2.2273 + if test -n "$ac_ct_CC"; then
2.2274 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.2275 +else
2.2276 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.2277 +for as_dir in $PATH
2.2278 +do
2.2279 + IFS=$as_save_IFS
2.2280 + test -z "$as_dir" && as_dir=.
2.2281 + for ac_exec_ext in '' $ac_executable_extensions; do
2.2282 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.2283 + ac_cv_prog_ac_ct_CC="$ac_prog"
2.2284 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.2285 + break 2
2.2286 + fi
2.2287 +done
2.2288 +done
2.2289 +IFS=$as_save_IFS
2.2290 +
2.2291 +fi
2.2292 +fi
2.2293 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.2294 +if test -n "$ac_ct_CC"; then
2.2295 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.2296 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2.2297 +else
2.2298 + { echo "$as_me:$LINENO: result: no" >&5
2.2299 +echo "${ECHO_T}no" >&6; }
2.2300 +fi
2.2301 +
2.2302 +
2.2303 + test -n "$ac_ct_CC" && break
2.2304 +done
2.2305 +
2.2306 + if test "x$ac_ct_CC" = x; then
2.2307 + CC=""
2.2308 + else
2.2309 + case $cross_compiling:$ac_tool_warned in
2.2310 +yes:)
2.2311 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.2312 +whose name does not start with the host triplet. If you think this
2.2313 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.2314 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.2315 +whose name does not start with the host triplet. If you think this
2.2316 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.2317 +ac_tool_warned=yes ;;
2.2318 +esac
2.2319 + CC=$ac_ct_CC
2.2320 + fi
2.2321 +fi
2.2322 +
2.2323 +fi
2.2324 +
2.2325 +
2.2326 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2.2327 +See \`config.log' for more details." >&5
2.2328 +echo "$as_me: error: no acceptable C compiler found in \$PATH
2.2329 +See \`config.log' for more details." >&2;}
2.2330 + { (exit 1); exit 1; }; }
2.2331 +
2.2332 +# Provide some information about the compiler.
2.2333 +echo "$as_me:$LINENO: checking for C compiler version" >&5
2.2334 +ac_compiler=`set X $ac_compile; echo $2`
2.2335 +{ (ac_try="$ac_compiler --version >&5"
2.2336 +case "(($ac_try" in
2.2337 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2338 + *) ac_try_echo=$ac_try;;
2.2339 +esac
2.2340 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2341 + (eval "$ac_compiler --version >&5") 2>&5
2.2342 + ac_status=$?
2.2343 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2344 + (exit $ac_status); }
2.2345 +{ (ac_try="$ac_compiler -v >&5"
2.2346 +case "(($ac_try" in
2.2347 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2348 + *) ac_try_echo=$ac_try;;
2.2349 +esac
2.2350 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2351 + (eval "$ac_compiler -v >&5") 2>&5
2.2352 + ac_status=$?
2.2353 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2354 + (exit $ac_status); }
2.2355 +{ (ac_try="$ac_compiler -V >&5"
2.2356 +case "(($ac_try" in
2.2357 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2358 + *) ac_try_echo=$ac_try;;
2.2359 +esac
2.2360 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2361 + (eval "$ac_compiler -V >&5") 2>&5
2.2362 + ac_status=$?
2.2363 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2364 + (exit $ac_status); }
2.2365 +
2.2366 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2.2367 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2.2368 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
2.2369 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2370 +else
2.2371 + cat >conftest.$ac_ext <<_ACEOF
2.2372 +/* confdefs.h. */
2.2373 +_ACEOF
2.2374 +cat confdefs.h >>conftest.$ac_ext
2.2375 +cat >>conftest.$ac_ext <<_ACEOF
2.2376 +/* end confdefs.h. */
2.2377 +
2.2378 +int
2.2379 +main ()
2.2380 +{
2.2381 +#ifndef __GNUC__
2.2382 + choke me
2.2383 +#endif
2.2384 +
2.2385 + ;
2.2386 + return 0;
2.2387 +}
2.2388 +_ACEOF
2.2389 +rm -f conftest.$ac_objext
2.2390 +if { (ac_try="$ac_compile"
2.2391 +case "(($ac_try" in
2.2392 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2393 + *) ac_try_echo=$ac_try;;
2.2394 +esac
2.2395 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2396 + (eval "$ac_compile") 2>conftest.er1
2.2397 + ac_status=$?
2.2398 + grep -v '^ *+' conftest.er1 >conftest.err
2.2399 + rm -f conftest.er1
2.2400 + cat conftest.err >&5
2.2401 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2402 + (exit $ac_status); } && {
2.2403 + test -z "$ac_c_werror_flag" ||
2.2404 + test ! -s conftest.err
2.2405 + } && test -s conftest.$ac_objext; then
2.2406 + ac_compiler_gnu=yes
2.2407 +else
2.2408 + echo "$as_me: failed program was:" >&5
2.2409 +sed 's/^/| /' conftest.$ac_ext >&5
2.2410 +
2.2411 + ac_compiler_gnu=no
2.2412 +fi
2.2413 +
2.2414 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.2415 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
2.2416 +
2.2417 +fi
2.2418 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2.2419 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2.2420 +GCC=`test $ac_compiler_gnu = yes && echo yes`
2.2421 +ac_test_CFLAGS=${CFLAGS+set}
2.2422 +ac_save_CFLAGS=$CFLAGS
2.2423 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2.2424 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2.2425 +if test "${ac_cv_prog_cc_g+set}" = set; then
2.2426 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2427 +else
2.2428 + ac_save_c_werror_flag=$ac_c_werror_flag
2.2429 + ac_c_werror_flag=yes
2.2430 + ac_cv_prog_cc_g=no
2.2431 + CFLAGS="-g"
2.2432 + cat >conftest.$ac_ext <<_ACEOF
2.2433 +/* confdefs.h. */
2.2434 +_ACEOF
2.2435 +cat confdefs.h >>conftest.$ac_ext
2.2436 +cat >>conftest.$ac_ext <<_ACEOF
2.2437 +/* end confdefs.h. */
2.2438 +
2.2439 +int
2.2440 +main ()
2.2441 +{
2.2442 +
2.2443 + ;
2.2444 + return 0;
2.2445 +}
2.2446 +_ACEOF
2.2447 +rm -f conftest.$ac_objext
2.2448 +if { (ac_try="$ac_compile"
2.2449 +case "(($ac_try" in
2.2450 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2451 + *) ac_try_echo=$ac_try;;
2.2452 +esac
2.2453 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2454 + (eval "$ac_compile") 2>conftest.er1
2.2455 + ac_status=$?
2.2456 + grep -v '^ *+' conftest.er1 >conftest.err
2.2457 + rm -f conftest.er1
2.2458 + cat conftest.err >&5
2.2459 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2460 + (exit $ac_status); } && {
2.2461 + test -z "$ac_c_werror_flag" ||
2.2462 + test ! -s conftest.err
2.2463 + } && test -s conftest.$ac_objext; then
2.2464 + ac_cv_prog_cc_g=yes
2.2465 +else
2.2466 + echo "$as_me: failed program was:" >&5
2.2467 +sed 's/^/| /' conftest.$ac_ext >&5
2.2468 +
2.2469 + CFLAGS=""
2.2470 + cat >conftest.$ac_ext <<_ACEOF
2.2471 +/* confdefs.h. */
2.2472 +_ACEOF
2.2473 +cat confdefs.h >>conftest.$ac_ext
2.2474 +cat >>conftest.$ac_ext <<_ACEOF
2.2475 +/* end confdefs.h. */
2.2476 +
2.2477 +int
2.2478 +main ()
2.2479 +{
2.2480 +
2.2481 + ;
2.2482 + return 0;
2.2483 +}
2.2484 +_ACEOF
2.2485 +rm -f conftest.$ac_objext
2.2486 +if { (ac_try="$ac_compile"
2.2487 +case "(($ac_try" in
2.2488 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2489 + *) ac_try_echo=$ac_try;;
2.2490 +esac
2.2491 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2492 + (eval "$ac_compile") 2>conftest.er1
2.2493 + ac_status=$?
2.2494 + grep -v '^ *+' conftest.er1 >conftest.err
2.2495 + rm -f conftest.er1
2.2496 + cat conftest.err >&5
2.2497 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2498 + (exit $ac_status); } && {
2.2499 + test -z "$ac_c_werror_flag" ||
2.2500 + test ! -s conftest.err
2.2501 + } && test -s conftest.$ac_objext; then
2.2502 + :
2.2503 +else
2.2504 + echo "$as_me: failed program was:" >&5
2.2505 +sed 's/^/| /' conftest.$ac_ext >&5
2.2506 +
2.2507 + ac_c_werror_flag=$ac_save_c_werror_flag
2.2508 + CFLAGS="-g"
2.2509 + cat >conftest.$ac_ext <<_ACEOF
2.2510 +/* confdefs.h. */
2.2511 +_ACEOF
2.2512 +cat confdefs.h >>conftest.$ac_ext
2.2513 +cat >>conftest.$ac_ext <<_ACEOF
2.2514 +/* end confdefs.h. */
2.2515 +
2.2516 +int
2.2517 +main ()
2.2518 +{
2.2519 +
2.2520 + ;
2.2521 + return 0;
2.2522 +}
2.2523 +_ACEOF
2.2524 +rm -f conftest.$ac_objext
2.2525 +if { (ac_try="$ac_compile"
2.2526 +case "(($ac_try" in
2.2527 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2528 + *) ac_try_echo=$ac_try;;
2.2529 +esac
2.2530 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2531 + (eval "$ac_compile") 2>conftest.er1
2.2532 + ac_status=$?
2.2533 + grep -v '^ *+' conftest.er1 >conftest.err
2.2534 + rm -f conftest.er1
2.2535 + cat conftest.err >&5
2.2536 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2537 + (exit $ac_status); } && {
2.2538 + test -z "$ac_c_werror_flag" ||
2.2539 + test ! -s conftest.err
2.2540 + } && test -s conftest.$ac_objext; then
2.2541 + ac_cv_prog_cc_g=yes
2.2542 +else
2.2543 + echo "$as_me: failed program was:" >&5
2.2544 +sed 's/^/| /' conftest.$ac_ext >&5
2.2545 +
2.2546 +
2.2547 +fi
2.2548 +
2.2549 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.2550 +fi
2.2551 +
2.2552 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.2553 +fi
2.2554 +
2.2555 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.2556 + ac_c_werror_flag=$ac_save_c_werror_flag
2.2557 +fi
2.2558 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2.2559 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2.2560 +if test "$ac_test_CFLAGS" = set; then
2.2561 + CFLAGS=$ac_save_CFLAGS
2.2562 +elif test $ac_cv_prog_cc_g = yes; then
2.2563 + if test "$GCC" = yes; then
2.2564 + CFLAGS="-g -O2"
2.2565 + else
2.2566 + CFLAGS="-g"
2.2567 + fi
2.2568 +else
2.2569 + if test "$GCC" = yes; then
2.2570 + CFLAGS="-O2"
2.2571 + else
2.2572 + CFLAGS=
2.2573 + fi
2.2574 +fi
2.2575 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2.2576 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2.2577 +if test "${ac_cv_prog_cc_c89+set}" = set; then
2.2578 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2579 +else
2.2580 + ac_cv_prog_cc_c89=no
2.2581 +ac_save_CC=$CC
2.2582 +cat >conftest.$ac_ext <<_ACEOF
2.2583 +/* confdefs.h. */
2.2584 +_ACEOF
2.2585 +cat confdefs.h >>conftest.$ac_ext
2.2586 +cat >>conftest.$ac_ext <<_ACEOF
2.2587 +/* end confdefs.h. */
2.2588 +#include <stdarg.h>
2.2589 +#include <stdio.h>
2.2590 +#include <sys/types.h>
2.2591 +#include <sys/stat.h>
2.2592 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.2593 +struct buf { int x; };
2.2594 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.2595 +static char *e (p, i)
2.2596 + char **p;
2.2597 + int i;
2.2598 +{
2.2599 + return p[i];
2.2600 +}
2.2601 +static char *f (char * (*g) (char **, int), char **p, ...)
2.2602 +{
2.2603 + char *s;
2.2604 + va_list v;
2.2605 + va_start (v,p);
2.2606 + s = g (p, va_arg (v,int));
2.2607 + va_end (v);
2.2608 + return s;
2.2609 +}
2.2610 +
2.2611 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.2612 + function prototypes and stuff, but not '\xHH' hex character constants.
2.2613 + These don't provoke an error unfortunately, instead are silently treated
2.2614 + as 'x'. The following induces an error, until -std is added to get
2.2615 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.2616 + array size at least. It's necessary to write '\x00'==0 to get something
2.2617 + that's true only with -std. */
2.2618 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.2619 +
2.2620 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.2621 + inside strings and character constants. */
2.2622 +#define FOO(x) 'x'
2.2623 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.2624 +
2.2625 +int test (int i, double x);
2.2626 +struct s1 {int (*f) (int a);};
2.2627 +struct s2 {int (*f) (double a);};
2.2628 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.2629 +int argc;
2.2630 +char **argv;
2.2631 +int
2.2632 +main ()
2.2633 +{
2.2634 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.2635 + ;
2.2636 + return 0;
2.2637 +}
2.2638 +_ACEOF
2.2639 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.2640 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.2641 +do
2.2642 + CC="$ac_save_CC $ac_arg"
2.2643 + rm -f conftest.$ac_objext
2.2644 +if { (ac_try="$ac_compile"
2.2645 +case "(($ac_try" in
2.2646 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2647 + *) ac_try_echo=$ac_try;;
2.2648 +esac
2.2649 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2650 + (eval "$ac_compile") 2>conftest.er1
2.2651 + ac_status=$?
2.2652 + grep -v '^ *+' conftest.er1 >conftest.err
2.2653 + rm -f conftest.er1
2.2654 + cat conftest.err >&5
2.2655 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2656 + (exit $ac_status); } && {
2.2657 + test -z "$ac_c_werror_flag" ||
2.2658 + test ! -s conftest.err
2.2659 + } && test -s conftest.$ac_objext; then
2.2660 + ac_cv_prog_cc_c89=$ac_arg
2.2661 +else
2.2662 + echo "$as_me: failed program was:" >&5
2.2663 +sed 's/^/| /' conftest.$ac_ext >&5
2.2664 +
2.2665 +
2.2666 +fi
2.2667 +
2.2668 +rm -f core conftest.err conftest.$ac_objext
2.2669 + test "x$ac_cv_prog_cc_c89" != "xno" && break
2.2670 +done
2.2671 +rm -f conftest.$ac_ext
2.2672 +CC=$ac_save_CC
2.2673 +
2.2674 +fi
2.2675 +# AC_CACHE_VAL
2.2676 +case "x$ac_cv_prog_cc_c89" in
2.2677 + x)
2.2678 + { echo "$as_me:$LINENO: result: none needed" >&5
2.2679 +echo "${ECHO_T}none needed" >&6; } ;;
2.2680 + xno)
2.2681 + { echo "$as_me:$LINENO: result: unsupported" >&5
2.2682 +echo "${ECHO_T}unsupported" >&6; } ;;
2.2683 + *)
2.2684 + CC="$CC $ac_cv_prog_cc_c89"
2.2685 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2.2686 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2.2687 +esac
2.2688 +
2.2689 +
2.2690 +ac_ext=c
2.2691 +ac_cpp='$CPP $CPPFLAGS'
2.2692 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.2693 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.2694 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.2695 +
2.2696 +depcc="$CC" am_compiler_list=
2.2697 +
2.2698 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.2699 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.2700 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2.2701 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2702 +else
2.2703 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.2704 + # We make a subdir and do the tests there. Otherwise we can end up
2.2705 + # making bogus files that we don't know about and never remove. For
2.2706 + # instance it was reported that on HP-UX the gcc test will end up
2.2707 + # making a dummy file named `D' -- because `-MD' means `put the output
2.2708 + # in D'.
2.2709 + mkdir conftest.dir
2.2710 + # Copy depcomp to subdir because otherwise we won't find it if we're
2.2711 + # using a relative directory.
2.2712 + cp "$am_depcomp" conftest.dir
2.2713 + cd conftest.dir
2.2714 + # We will build objects and dependencies in a subdirectory because
2.2715 + # it helps to detect inapplicable dependency modes. For instance
2.2716 + # both Tru64's cc and ICC support -MD to output dependencies as a
2.2717 + # side effect of compilation, but ICC will put the dependencies in
2.2718 + # the current directory while Tru64 will put them in the object
2.2719 + # directory.
2.2720 + mkdir sub
2.2721 +
2.2722 + am_cv_CC_dependencies_compiler_type=none
2.2723 + if test "$am_compiler_list" = ""; then
2.2724 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.2725 + fi
2.2726 + for depmode in $am_compiler_list; do
2.2727 + # Setup a source with many dependencies, because some compilers
2.2728 + # like to wrap large dependency lists on column 80 (with \), and
2.2729 + # we should not choose a depcomp mode which is confused by this.
2.2730 + #
2.2731 + # We need to recreate these files for each test, as the compiler may
2.2732 + # overwrite some of them when testing with obscure command lines.
2.2733 + # This happens at least with the AIX C compiler.
2.2734 + : > sub/conftest.c
2.2735 + for i in 1 2 3 4 5 6; do
2.2736 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.2737 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.2738 + # Solaris 8's {/usr,}/bin/sh.
2.2739 + touch sub/conftst$i.h
2.2740 + done
2.2741 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.2742 +
2.2743 + case $depmode in
2.2744 + nosideeffect)
2.2745 + # after this tag, mechanisms are not by side-effect, so they'll
2.2746 + # only be used when explicitly requested
2.2747 + if test "x$enable_dependency_tracking" = xyes; then
2.2748 + continue
2.2749 + else
2.2750 + break
2.2751 + fi
2.2752 + ;;
2.2753 + none) break ;;
2.2754 + esac
2.2755 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.2756 + # mode. It turns out that the SunPro C++ compiler does not properly
2.2757 + # handle `-M -o', and we need to detect this.
2.2758 + if depmode=$depmode \
2.2759 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.2760 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.2761 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.2762 + >/dev/null 2>conftest.err &&
2.2763 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.2764 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.2765 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.2766 + # icc doesn't choke on unknown options, it will just issue warnings
2.2767 + # or remarks (even with -Werror). So we grep stderr for any message
2.2768 + # that says an option was ignored or not supported.
2.2769 + # When given -MP, icc 7.0 and 7.1 complain thusly:
2.2770 + # icc: Command line warning: ignoring option '-M'; no argument required
2.2771 + # The diagnosis changed in icc 8.0:
2.2772 + # icc: Command line remark: option '-MP' not supported
2.2773 + if (grep 'ignoring option' conftest.err ||
2.2774 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.2775 + am_cv_CC_dependencies_compiler_type=$depmode
2.2776 + break
2.2777 + fi
2.2778 + fi
2.2779 + done
2.2780 +
2.2781 + cd ..
2.2782 + rm -rf conftest.dir
2.2783 +else
2.2784 + am_cv_CC_dependencies_compiler_type=none
2.2785 +fi
2.2786 +
2.2787 +fi
2.2788 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2.2789 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
2.2790 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2.2791 +
2.2792 +
2.2793 +
2.2794 +if
2.2795 + test "x$enable_dependency_tracking" != xno \
2.2796 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2.2797 + am__fastdepCC_TRUE=
2.2798 + am__fastdepCC_FALSE='#'
2.2799 +else
2.2800 + am__fastdepCC_TRUE='#'
2.2801 + am__fastdepCC_FALSE=
2.2802 +fi
2.2803 +
2.2804 +
2.2805 +
2.2806 +am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
2.2807 +
2.2808 +ac_ext=c
2.2809 +ac_cpp='$CPP $CPPFLAGS'
2.2810 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.2811 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.2812 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.2813 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2.2814 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2.2815 +# On Suns, sometimes $CPP names a directory.
2.2816 +if test -n "$CPP" && test -d "$CPP"; then
2.2817 + CPP=
2.2818 +fi
2.2819 +if test -z "$CPP"; then
2.2820 + if test "${ac_cv_prog_CPP+set}" = set; then
2.2821 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2822 +else
2.2823 + # Double quotes because CPP needs to be expanded
2.2824 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2.2825 + do
2.2826 + ac_preproc_ok=false
2.2827 +for ac_c_preproc_warn_flag in '' yes
2.2828 +do
2.2829 + # Use a header file that comes with gcc, so configuring glibc
2.2830 + # with a fresh cross-compiler works.
2.2831 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2.2832 + # <limits.h> exists even on freestanding compilers.
2.2833 + # On the NeXT, cc -E runs the code through the compiler's parser,
2.2834 + # not just through cpp. "Syntax error" is here to catch this case.
2.2835 + cat >conftest.$ac_ext <<_ACEOF
2.2836 +/* confdefs.h. */
2.2837 +_ACEOF
2.2838 +cat confdefs.h >>conftest.$ac_ext
2.2839 +cat >>conftest.$ac_ext <<_ACEOF
2.2840 +/* end confdefs.h. */
2.2841 +#ifdef __STDC__
2.2842 +# include <limits.h>
2.2843 +#else
2.2844 +# include <assert.h>
2.2845 +#endif
2.2846 + Syntax error
2.2847 +_ACEOF
2.2848 +if { (ac_try="$ac_cpp conftest.$ac_ext"
2.2849 +case "(($ac_try" in
2.2850 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2851 + *) ac_try_echo=$ac_try;;
2.2852 +esac
2.2853 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2854 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2.2855 + ac_status=$?
2.2856 + grep -v '^ *+' conftest.er1 >conftest.err
2.2857 + rm -f conftest.er1
2.2858 + cat conftest.err >&5
2.2859 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2860 + (exit $ac_status); } >/dev/null && {
2.2861 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.2862 + test ! -s conftest.err
2.2863 + }; then
2.2864 + :
2.2865 +else
2.2866 + echo "$as_me: failed program was:" >&5
2.2867 +sed 's/^/| /' conftest.$ac_ext >&5
2.2868 +
2.2869 + # Broken: fails on valid input.
2.2870 +continue
2.2871 +fi
2.2872 +
2.2873 +rm -f conftest.err conftest.$ac_ext
2.2874 +
2.2875 + # OK, works on sane cases. Now check whether nonexistent headers
2.2876 + # can be detected and how.
2.2877 + cat >conftest.$ac_ext <<_ACEOF
2.2878 +/* confdefs.h. */
2.2879 +_ACEOF
2.2880 +cat confdefs.h >>conftest.$ac_ext
2.2881 +cat >>conftest.$ac_ext <<_ACEOF
2.2882 +/* end confdefs.h. */
2.2883 +#include <ac_nonexistent.h>
2.2884 +_ACEOF
2.2885 +if { (ac_try="$ac_cpp conftest.$ac_ext"
2.2886 +case "(($ac_try" in
2.2887 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2888 + *) ac_try_echo=$ac_try;;
2.2889 +esac
2.2890 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2891 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2.2892 + ac_status=$?
2.2893 + grep -v '^ *+' conftest.er1 >conftest.err
2.2894 + rm -f conftest.er1
2.2895 + cat conftest.err >&5
2.2896 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2897 + (exit $ac_status); } >/dev/null && {
2.2898 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.2899 + test ! -s conftest.err
2.2900 + }; then
2.2901 + # Broken: success on invalid input.
2.2902 +continue
2.2903 +else
2.2904 + echo "$as_me: failed program was:" >&5
2.2905 +sed 's/^/| /' conftest.$ac_ext >&5
2.2906 +
2.2907 + # Passes both tests.
2.2908 +ac_preproc_ok=:
2.2909 +break
2.2910 +fi
2.2911 +
2.2912 +rm -f conftest.err conftest.$ac_ext
2.2913 +
2.2914 +done
2.2915 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2.2916 +rm -f conftest.err conftest.$ac_ext
2.2917 +if $ac_preproc_ok; then
2.2918 + break
2.2919 +fi
2.2920 +
2.2921 + done
2.2922 + ac_cv_prog_CPP=$CPP
2.2923 +
2.2924 +fi
2.2925 + CPP=$ac_cv_prog_CPP
2.2926 +else
2.2927 + ac_cv_prog_CPP=$CPP
2.2928 +fi
2.2929 +{ echo "$as_me:$LINENO: result: $CPP" >&5
2.2930 +echo "${ECHO_T}$CPP" >&6; }
2.2931 +ac_preproc_ok=false
2.2932 +for ac_c_preproc_warn_flag in '' yes
2.2933 +do
2.2934 + # Use a header file that comes with gcc, so configuring glibc
2.2935 + # with a fresh cross-compiler works.
2.2936 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2.2937 + # <limits.h> exists even on freestanding compilers.
2.2938 + # On the NeXT, cc -E runs the code through the compiler's parser,
2.2939 + # not just through cpp. "Syntax error" is here to catch this case.
2.2940 + cat >conftest.$ac_ext <<_ACEOF
2.2941 +/* confdefs.h. */
2.2942 +_ACEOF
2.2943 +cat confdefs.h >>conftest.$ac_ext
2.2944 +cat >>conftest.$ac_ext <<_ACEOF
2.2945 +/* end confdefs.h. */
2.2946 +#ifdef __STDC__
2.2947 +# include <limits.h>
2.2948 +#else
2.2949 +# include <assert.h>
2.2950 +#endif
2.2951 + Syntax error
2.2952 +_ACEOF
2.2953 +if { (ac_try="$ac_cpp conftest.$ac_ext"
2.2954 +case "(($ac_try" in
2.2955 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2956 + *) ac_try_echo=$ac_try;;
2.2957 +esac
2.2958 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2959 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2.2960 + ac_status=$?
2.2961 + grep -v '^ *+' conftest.er1 >conftest.err
2.2962 + rm -f conftest.er1
2.2963 + cat conftest.err >&5
2.2964 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2965 + (exit $ac_status); } >/dev/null && {
2.2966 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.2967 + test ! -s conftest.err
2.2968 + }; then
2.2969 + :
2.2970 +else
2.2971 + echo "$as_me: failed program was:" >&5
2.2972 +sed 's/^/| /' conftest.$ac_ext >&5
2.2973 +
2.2974 + # Broken: fails on valid input.
2.2975 +continue
2.2976 +fi
2.2977 +
2.2978 +rm -f conftest.err conftest.$ac_ext
2.2979 +
2.2980 + # OK, works on sane cases. Now check whether nonexistent headers
2.2981 + # can be detected and how.
2.2982 + cat >conftest.$ac_ext <<_ACEOF
2.2983 +/* confdefs.h. */
2.2984 +_ACEOF
2.2985 +cat confdefs.h >>conftest.$ac_ext
2.2986 +cat >>conftest.$ac_ext <<_ACEOF
2.2987 +/* end confdefs.h. */
2.2988 +#include <ac_nonexistent.h>
2.2989 +_ACEOF
2.2990 +if { (ac_try="$ac_cpp conftest.$ac_ext"
2.2991 +case "(($ac_try" in
2.2992 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2993 + *) ac_try_echo=$ac_try;;
2.2994 +esac
2.2995 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2996 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2.2997 + ac_status=$?
2.2998 + grep -v '^ *+' conftest.er1 >conftest.err
2.2999 + rm -f conftest.er1
2.3000 + cat conftest.err >&5
2.3001 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3002 + (exit $ac_status); } >/dev/null && {
2.3003 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.3004 + test ! -s conftest.err
2.3005 + }; then
2.3006 + # Broken: success on invalid input.
2.3007 +continue
2.3008 +else
2.3009 + echo "$as_me: failed program was:" >&5
2.3010 +sed 's/^/| /' conftest.$ac_ext >&5
2.3011 +
2.3012 + # Passes both tests.
2.3013 +ac_preproc_ok=:
2.3014 +break
2.3015 +fi
2.3016 +
2.3017 +rm -f conftest.err conftest.$ac_ext
2.3018 +
2.3019 +done
2.3020 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2.3021 +rm -f conftest.err conftest.$ac_ext
2.3022 +if $ac_preproc_ok; then
2.3023 + :
2.3024 +else
2.3025 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2.3026 +See \`config.log' for more details." >&5
2.3027 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2.3028 +See \`config.log' for more details." >&2;}
2.3029 + { (exit 1); exit 1; }; }
2.3030 +fi
2.3031 +
2.3032 +ac_ext=c
2.3033 +ac_cpp='$CPP $CPPFLAGS'
2.3034 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.3035 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.3036 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.3037 +
2.3038 +
2.3039 +ac_main_cc="$CC"
2.3040 +test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
2.3041 +
2.3042 +if test -z "$CC_FOR_BUILD"; then
2.3043 + if test "$#" = yes; then
2.3044 + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2.3045 +See \`config.log' for more details." >&5
2.3046 +echo "$as_me: error: cannot run test program while cross compiling
2.3047 +See \`config.log' for more details." >&2;}
2.3048 + { (exit 1); exit 1; }; }
2.3049 +else
2.3050 + cat >conftest.$ac_ext <<_ACEOF
2.3051 +int main(){return 0;}
2.3052 +_ACEOF
2.3053 +rm -f conftest$ac_exeext
2.3054 +if { (ac_try="$ac_link"
2.3055 +case "(($ac_try" in
2.3056 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3057 + *) ac_try_echo=$ac_try;;
2.3058 +esac
2.3059 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3060 + (eval "$ac_link") 2>&5
2.3061 + ac_status=$?
2.3062 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3063 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2.3064 + { (case "(($ac_try" in
2.3065 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3066 + *) ac_try_echo=$ac_try;;
2.3067 +esac
2.3068 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3069 + (eval "$ac_try") 2>&5
2.3070 + ac_status=$?
2.3071 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3072 + (exit $ac_status); }; }; then
2.3073 + CC_FOR_BUILD="$CC"
2.3074 +else
2.3075 + echo "$as_me: program exited with status $ac_status" >&5
2.3076 +echo "$as_me: failed program was:" >&5
2.3077 +sed 's/^/| /' conftest.$ac_ext >&5
2.3078 +
2.3079 +fi
2.3080 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2.3081 +fi
2.3082 +
2.3083 +
2.3084 +fi
2.3085 +
2.3086 +
2.3087 +ac_ext=c
2.3088 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
2.3089 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
2.3090 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.3091 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
2.3092 +if test -n "$ac_build_tool_prefix"; then
2.3093 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2.3094 +set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
2.3095 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.3096 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.3097 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
2.3098 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3099 +else
2.3100 + if test -n "$CC_FOR_BUILD"; then
2.3101 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
2.3102 +else
2.3103 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.3104 +for as_dir in $PATH
2.3105 +do
2.3106 + IFS=$as_save_IFS
2.3107 + test -z "$as_dir" && as_dir=.
2.3108 + for ac_exec_ext in '' $ac_executable_extensions; do
2.3109 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.3110 + ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
2.3111 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.3112 + break 2
2.3113 + fi
2.3114 +done
2.3115 +done
2.3116 +IFS=$as_save_IFS
2.3117 +
2.3118 +fi
2.3119 +fi
2.3120 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
2.3121 +if test -n "$CC_FOR_BUILD"; then
2.3122 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
2.3123 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
2.3124 +else
2.3125 + { echo "$as_me:$LINENO: result: no" >&5
2.3126 +echo "${ECHO_T}no" >&6; }
2.3127 +fi
2.3128 +
2.3129 +
2.3130 +fi
2.3131 +if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
2.3132 + ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
2.3133 + # Extract the first word of "gcc", so it can be a program name with args.
2.3134 +set dummy gcc; ac_word=$2
2.3135 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.3136 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.3137 +if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
2.3138 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3139 +else
2.3140 + if test -n "$ac_ct_CC_FOR_BUILD"; then
2.3141 + ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
2.3142 +else
2.3143 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.3144 +for as_dir in $PATH
2.3145 +do
2.3146 + IFS=$as_save_IFS
2.3147 + test -z "$as_dir" && as_dir=.
2.3148 + for ac_exec_ext in '' $ac_executable_extensions; do
2.3149 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.3150 + ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
2.3151 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.3152 + break 2
2.3153 + fi
2.3154 +done
2.3155 +done
2.3156 +IFS=$as_save_IFS
2.3157 +
2.3158 +fi
2.3159 +fi
2.3160 +ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
2.3161 +if test -n "$ac_ct_CC_FOR_BUILD"; then
2.3162 + { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
2.3163 +echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
2.3164 +else
2.3165 + { echo "$as_me:$LINENO: result: no" >&5
2.3166 +echo "${ECHO_T}no" >&6; }
2.3167 +fi
2.3168 +
2.3169 + if test "x$ac_ct_CC_FOR_BUILD" = x; then
2.3170 + CC_FOR_BUILD=""
2.3171 + else
2.3172 + case $#:$ac_tool_warned in
2.3173 +yes:)
2.3174 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.3175 +whose name does not start with the build triplet. If you think this
2.3176 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.3177 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.3178 +whose name does not start with the build triplet. If you think this
2.3179 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.3180 +ac_tool_warned=yes ;;
2.3181 +esac
2.3182 + CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
2.3183 + fi
2.3184 +else
2.3185 + CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
2.3186 +fi
2.3187 +
2.3188 +if test -z "$CC_FOR_BUILD"; then
2.3189 + if test -n "$ac_build_tool_prefix"; then
2.3190 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2.3191 +set dummy ${ac_build_tool_prefix}cc; ac_word=$2
2.3192 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.3193 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.3194 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
2.3195 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3196 +else
2.3197 + if test -n "$CC_FOR_BUILD"; then
2.3198 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
2.3199 +else
2.3200 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.3201 +for as_dir in $PATH
2.3202 +do
2.3203 + IFS=$as_save_IFS
2.3204 + test -z "$as_dir" && as_dir=.
2.3205 + for ac_exec_ext in '' $ac_executable_extensions; do
2.3206 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.3207 + ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
2.3208 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.3209 + break 2
2.3210 + fi
2.3211 +done
2.3212 +done
2.3213 +IFS=$as_save_IFS
2.3214 +
2.3215 +fi
2.3216 +fi
2.3217 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
2.3218 +if test -n "$CC_FOR_BUILD"; then
2.3219 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
2.3220 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
2.3221 +else
2.3222 + { echo "$as_me:$LINENO: result: no" >&5
2.3223 +echo "${ECHO_T}no" >&6; }
2.3224 +fi
2.3225 +
2.3226 +
2.3227 + fi
2.3228 +fi
2.3229 +if test -z "$CC_FOR_BUILD"; then
2.3230 + # Extract the first word of "cc", so it can be a program name with args.
2.3231 +set dummy cc; ac_word=$2
2.3232 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.3233 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.3234 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
2.3235 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3236 +else
2.3237 + if test -n "$CC_FOR_BUILD"; then
2.3238 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
2.3239 +else
2.3240 + ac_prog_rejected=no
2.3241 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.3242 +for as_dir in $PATH
2.3243 +do
2.3244 + IFS=$as_save_IFS
2.3245 + test -z "$as_dir" && as_dir=.
2.3246 + for ac_exec_ext in '' $ac_executable_extensions; do
2.3247 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.3248 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2.3249 + ac_prog_rejected=yes
2.3250 + continue
2.3251 + fi
2.3252 + ac_cv_prog_CC_FOR_BUILD="cc"
2.3253 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.3254 + break 2
2.3255 + fi
2.3256 +done
2.3257 +done
2.3258 +IFS=$as_save_IFS
2.3259 +
2.3260 +if test $ac_prog_rejected = yes; then
2.3261 + # We found a bogon in the path, so make sure we never use it.
2.3262 + set dummy $ac_cv_prog_CC_FOR_BUILD
2.3263 + shift
2.3264 + if test $# != 0; then
2.3265 + # We chose a different compiler from the bogus one.
2.3266 + # However, it has the same basename, so the bogon will be chosen
2.3267 + # first if we set CC_FOR_BUILD to just the basename; use the full file name.
2.3268 + shift
2.3269 + ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
2.3270 + fi
2.3271 +fi
2.3272 +fi
2.3273 +fi
2.3274 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
2.3275 +if test -n "$CC_FOR_BUILD"; then
2.3276 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
2.3277 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
2.3278 +else
2.3279 + { echo "$as_me:$LINENO: result: no" >&5
2.3280 +echo "${ECHO_T}no" >&6; }
2.3281 +fi
2.3282 +
2.3283 +
2.3284 +fi
2.3285 +if test -z "$CC_FOR_BUILD"; then
2.3286 + if test -n "$ac_build_tool_prefix"; then
2.3287 + for ac_prog in cl.exe
2.3288 + do
2.3289 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.3290 +set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
2.3291 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.3292 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.3293 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
2.3294 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3295 +else
2.3296 + if test -n "$CC_FOR_BUILD"; then
2.3297 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
2.3298 +else
2.3299 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.3300 +for as_dir in $PATH
2.3301 +do
2.3302 + IFS=$as_save_IFS
2.3303 + test -z "$as_dir" && as_dir=.
2.3304 + for ac_exec_ext in '' $ac_executable_extensions; do
2.3305 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.3306 + ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
2.3307 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.3308 + break 2
2.3309 + fi
2.3310 +done
2.3311 +done
2.3312 +IFS=$as_save_IFS
2.3313 +
2.3314 +fi
2.3315 +fi
2.3316 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
2.3317 +if test -n "$CC_FOR_BUILD"; then
2.3318 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
2.3319 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
2.3320 +else
2.3321 + { echo "$as_me:$LINENO: result: no" >&5
2.3322 +echo "${ECHO_T}no" >&6; }
2.3323 +fi
2.3324 +
2.3325 +
2.3326 + test -n "$CC_FOR_BUILD" && break
2.3327 + done
2.3328 +fi
2.3329 +if test -z "$CC_FOR_BUILD"; then
2.3330 + ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
2.3331 + for ac_prog in cl.exe
2.3332 +do
2.3333 + # Extract the first word of "$ac_prog", so it can be a program name with args.
2.3334 +set dummy $ac_prog; ac_word=$2
2.3335 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.3336 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.3337 +if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
2.3338 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3339 +else
2.3340 + if test -n "$ac_ct_CC_FOR_BUILD"; then
2.3341 + ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
2.3342 +else
2.3343 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.3344 +for as_dir in $PATH
2.3345 +do
2.3346 + IFS=$as_save_IFS
2.3347 + test -z "$as_dir" && as_dir=.
2.3348 + for ac_exec_ext in '' $ac_executable_extensions; do
2.3349 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.3350 + ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
2.3351 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.3352 + break 2
2.3353 + fi
2.3354 +done
2.3355 +done
2.3356 +IFS=$as_save_IFS
2.3357 +
2.3358 +fi
2.3359 +fi
2.3360 +ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
2.3361 +if test -n "$ac_ct_CC_FOR_BUILD"; then
2.3362 + { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
2.3363 +echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
2.3364 +else
2.3365 + { echo "$as_me:$LINENO: result: no" >&5
2.3366 +echo "${ECHO_T}no" >&6; }
2.3367 +fi
2.3368 +
2.3369 +
2.3370 + test -n "$ac_ct_CC_FOR_BUILD" && break
2.3371 +done
2.3372 +
2.3373 + if test "x$ac_ct_CC_FOR_BUILD" = x; then
2.3374 + CC_FOR_BUILD=""
2.3375 + else
2.3376 + case $#:$ac_tool_warned in
2.3377 +yes:)
2.3378 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.3379 +whose name does not start with the build triplet. If you think this
2.3380 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.3381 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.3382 +whose name does not start with the build triplet. If you think this
2.3383 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.3384 +ac_tool_warned=yes ;;
2.3385 +esac
2.3386 + CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
2.3387 + fi
2.3388 +fi
2.3389 +
2.3390 +fi
2.3391 +
2.3392 +
2.3393 +test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2.3394 +See \`config.log' for more details." >&5
2.3395 +echo "$as_me: error: no acceptable C compiler found in \$PATH
2.3396 +See \`config.log' for more details." >&2;}
2.3397 + { (exit 1); exit 1; }; }
2.3398 +
2.3399 +# Provide some information about the compiler.
2.3400 +echo "$as_me:$LINENO: checking for C compiler version" >&5
2.3401 +ac_compiler=`set X $ac_build_compile; echo $2`
2.3402 +{ (ac_try="$ac_compiler --version >&5"
2.3403 +case "(($ac_try" in
2.3404 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3405 + *) ac_try_echo=$ac_try;;
2.3406 +esac
2.3407 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3408 + (eval "$ac_compiler --version >&5") 2>&5
2.3409 + ac_status=$?
2.3410 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3411 + (exit $ac_status); }
2.3412 +{ (ac_try="$ac_compiler -v >&5"
2.3413 +case "(($ac_try" in
2.3414 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3415 + *) ac_try_echo=$ac_try;;
2.3416 +esac
2.3417 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3418 + (eval "$ac_compiler -v >&5") 2>&5
2.3419 + ac_status=$?
2.3420 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3421 + (exit $ac_status); }
2.3422 +{ (ac_try="$ac_compiler -V >&5"
2.3423 +case "(($ac_try" in
2.3424 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3425 + *) ac_try_echo=$ac_try;;
2.3426 +esac
2.3427 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3428 + (eval "$ac_compiler -V >&5") 2>&5
2.3429 + ac_status=$?
2.3430 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3431 + (exit $ac_status); }
2.3432 +
2.3433 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2.3434 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2.3435 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
2.3436 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3437 +else
2.3438 + cat >conftest.$ac_ext <<_ACEOF
2.3439 +/* confdefs.h. */
2.3440 +_ACEOF
2.3441 +cat confdefs.h >>conftest.$ac_ext
2.3442 +cat >>conftest.$ac_ext <<_ACEOF
2.3443 +/* end confdefs.h. */
2.3444 +
2.3445 +int
2.3446 +main ()
2.3447 +{
2.3448 +#ifndef __GNUC__
2.3449 + choke me
2.3450 +#endif
2.3451 +
2.3452 + ;
2.3453 + return 0;
2.3454 +}
2.3455 +_ACEOF
2.3456 +rm -f conftest.$ac_build_objext
2.3457 +if { (ac_try="$ac_build_compile"
2.3458 +case "(($ac_try" in
2.3459 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3460 + *) ac_try_echo=$ac_try;;
2.3461 +esac
2.3462 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3463 + (eval "$ac_build_compile") 2>conftest.er1
2.3464 + ac_status=$?
2.3465 + grep -v '^ *+' conftest.er1 >conftest.err
2.3466 + rm -f conftest.er1
2.3467 + cat conftest.err >&5
2.3468 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3469 + (exit $ac_status); } && {
2.3470 + test -z "$ac_c_werror_flag" ||
2.3471 + test ! -s conftest.err
2.3472 + } && test -s conftest.$ac_build_objext; then
2.3473 + ac_build_compiler_gnu=yes
2.3474 +else
2.3475 + echo "$as_me: failed program was:" >&5
2.3476 +sed 's/^/| /' conftest.$ac_ext >&5
2.3477 +
2.3478 + ac_build_compiler_gnu=no
2.3479 +fi
2.3480 +
2.3481 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
2.3482 +ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
2.3483 +
2.3484 +fi
2.3485 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2.3486 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2.3487 +GCC=`test $ac_build_compiler_gnu = yes && echo yes`
2.3488 +ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
2.3489 +ac_save_CFLAGS=$CFLAGS_FOR_BUILD
2.3490 +{ echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
2.3491 +echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
2.3492 +if test "${ac_cv_build_prog_cc_g+set}" = set; then
2.3493 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3494 +else
2.3495 + ac_save_c_werror_flag=$ac_c_werror_flag
2.3496 + ac_c_werror_flag=yes
2.3497 + ac_cv_build_prog_cc_g=no
2.3498 + CFLAGS_FOR_BUILD="-g"
2.3499 + cat >conftest.$ac_ext <<_ACEOF
2.3500 +/* confdefs.h. */
2.3501 +_ACEOF
2.3502 +cat confdefs.h >>conftest.$ac_ext
2.3503 +cat >>conftest.$ac_ext <<_ACEOF
2.3504 +/* end confdefs.h. */
2.3505 +
2.3506 +int
2.3507 +main ()
2.3508 +{
2.3509 +
2.3510 + ;
2.3511 + return 0;
2.3512 +}
2.3513 +_ACEOF
2.3514 +rm -f conftest.$ac_build_objext
2.3515 +if { (ac_try="$ac_build_compile"
2.3516 +case "(($ac_try" in
2.3517 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3518 + *) ac_try_echo=$ac_try;;
2.3519 +esac
2.3520 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3521 + (eval "$ac_build_compile") 2>conftest.er1
2.3522 + ac_status=$?
2.3523 + grep -v '^ *+' conftest.er1 >conftest.err
2.3524 + rm -f conftest.er1
2.3525 + cat conftest.err >&5
2.3526 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3527 + (exit $ac_status); } && {
2.3528 + test -z "$ac_c_werror_flag" ||
2.3529 + test ! -s conftest.err
2.3530 + } && test -s conftest.$ac_build_objext; then
2.3531 + ac_cv_build_prog_cc_g=yes
2.3532 +else
2.3533 + echo "$as_me: failed program was:" >&5
2.3534 +sed 's/^/| /' conftest.$ac_ext >&5
2.3535 +
2.3536 + CFLAGS_FOR_BUILD=""
2.3537 + cat >conftest.$ac_ext <<_ACEOF
2.3538 +/* confdefs.h. */
2.3539 +_ACEOF
2.3540 +cat confdefs.h >>conftest.$ac_ext
2.3541 +cat >>conftest.$ac_ext <<_ACEOF
2.3542 +/* end confdefs.h. */
2.3543 +
2.3544 +int
2.3545 +main ()
2.3546 +{
2.3547 +
2.3548 + ;
2.3549 + return 0;
2.3550 +}
2.3551 +_ACEOF
2.3552 +rm -f conftest.$ac_build_objext
2.3553 +if { (ac_try="$ac_build_compile"
2.3554 +case "(($ac_try" in
2.3555 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3556 + *) ac_try_echo=$ac_try;;
2.3557 +esac
2.3558 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3559 + (eval "$ac_build_compile") 2>conftest.er1
2.3560 + ac_status=$?
2.3561 + grep -v '^ *+' conftest.er1 >conftest.err
2.3562 + rm -f conftest.er1
2.3563 + cat conftest.err >&5
2.3564 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3565 + (exit $ac_status); } && {
2.3566 + test -z "$ac_c_werror_flag" ||
2.3567 + test ! -s conftest.err
2.3568 + } && test -s conftest.$ac_build_objext; then
2.3569 + :
2.3570 +else
2.3571 + echo "$as_me: failed program was:" >&5
2.3572 +sed 's/^/| /' conftest.$ac_ext >&5
2.3573 +
2.3574 + ac_c_werror_flag=$ac_save_c_werror_flag
2.3575 + CFLAGS_FOR_BUILD="-g"
2.3576 + cat >conftest.$ac_ext <<_ACEOF
2.3577 +/* confdefs.h. */
2.3578 +_ACEOF
2.3579 +cat confdefs.h >>conftest.$ac_ext
2.3580 +cat >>conftest.$ac_ext <<_ACEOF
2.3581 +/* end confdefs.h. */
2.3582 +
2.3583 +int
2.3584 +main ()
2.3585 +{
2.3586 +
2.3587 + ;
2.3588 + return 0;
2.3589 +}
2.3590 +_ACEOF
2.3591 +rm -f conftest.$ac_build_objext
2.3592 +if { (ac_try="$ac_build_compile"
2.3593 +case "(($ac_try" in
2.3594 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3595 + *) ac_try_echo=$ac_try;;
2.3596 +esac
2.3597 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3598 + (eval "$ac_build_compile") 2>conftest.er1
2.3599 + ac_status=$?
2.3600 + grep -v '^ *+' conftest.er1 >conftest.err
2.3601 + rm -f conftest.er1
2.3602 + cat conftest.err >&5
2.3603 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3604 + (exit $ac_status); } && {
2.3605 + test -z "$ac_c_werror_flag" ||
2.3606 + test ! -s conftest.err
2.3607 + } && test -s conftest.$ac_build_objext; then
2.3608 + ac_cv_build_prog_cc_g=yes
2.3609 +else
2.3610 + echo "$as_me: failed program was:" >&5
2.3611 +sed 's/^/| /' conftest.$ac_ext >&5
2.3612 +
2.3613 +
2.3614 +fi
2.3615 +
2.3616 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
2.3617 +fi
2.3618 +
2.3619 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
2.3620 +fi
2.3621 +
2.3622 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
2.3623 + ac_c_werror_flag=$ac_save_c_werror_flag
2.3624 +fi
2.3625 +{ echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
2.3626 +echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
2.3627 +if test "$ac_test_CFLAGS" = set; then
2.3628 + CFLAGS_FOR_BUILD=$ac_save_CFLAGS
2.3629 +elif test $ac_cv_build_prog_cc_g = yes; then
2.3630 + if test "$GCC" = yes; then
2.3631 + CFLAGS_FOR_BUILD="-g -O2"
2.3632 + else
2.3633 + CFLAGS_FOR_BUILD="-g"
2.3634 + fi
2.3635 +else
2.3636 + if test "$GCC" = yes; then
2.3637 + CFLAGS_FOR_BUILD="-O2"
2.3638 + else
2.3639 + CFLAGS_FOR_BUILD=
2.3640 + fi
2.3641 +fi
2.3642 +{ echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
2.3643 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
2.3644 +if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
2.3645 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3646 +else
2.3647 + ac_cv_build_prog_cc_stdc=no
2.3648 +ac_save_CC=$CC_FOR_BUILD
2.3649 +cat >conftest.$ac_ext <<_ACEOF
2.3650 +/* confdefs.h. */
2.3651 +_ACEOF
2.3652 +cat confdefs.h >>conftest.$ac_ext
2.3653 +cat >>conftest.$ac_ext <<_ACEOF
2.3654 +/* end confdefs.h. */
2.3655 +#include <stdarg.h>
2.3656 +#include <stdio.h>
2.3657 +#include <sys/types.h>
2.3658 +#include <sys/stat.h>
2.3659 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.3660 +struct buf { int x; };
2.3661 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.3662 +static char *e (p, i)
2.3663 + char **p;
2.3664 + int i;
2.3665 +{
2.3666 + return p[i];
2.3667 +}
2.3668 +static char *f (char * (*g) (char **, int), char **p, ...)
2.3669 +{
2.3670 + char *s;
2.3671 + va_list v;
2.3672 + va_start (v,p);
2.3673 + s = g (p, va_arg (v,int));
2.3674 + va_end (v);
2.3675 + return s;
2.3676 +}
2.3677 +
2.3678 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.3679 + function prototypes and stuff, but not '\xHH' hex character constants.
2.3680 + These don't provoke an error unfortunately, instead are silently treated
2.3681 + as 'x'. The following induces an error, until -std is added to get
2.3682 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.3683 + array size at least. It's necessary to write '\x00'==0 to get something
2.3684 + that's true only with -std. */
2.3685 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.3686 +
2.3687 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.3688 + inside strings and character constants. */
2.3689 +#define FOO(x) 'x'
2.3690 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.3691 +
2.3692 +int test (int i, double x);
2.3693 +struct s1 {int (*f) (int a);};
2.3694 +struct s2 {int (*f) (double a);};
2.3695 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.3696 +int argc;
2.3697 +char **argv;
2.3698 +int
2.3699 +main ()
2.3700 +{
2.3701 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.3702 + ;
2.3703 + return 0;
2.3704 +}
2.3705 +_ACEOF
2.3706 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.3707 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.3708 +do
2.3709 + CC_FOR_BUILD="$ac_save_CC $ac_arg"
2.3710 + rm -f conftest.$ac_build_objext
2.3711 +if { (ac_try="$ac_build_compile"
2.3712 +case "(($ac_try" in
2.3713 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3714 + *) ac_try_echo=$ac_try;;
2.3715 +esac
2.3716 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3717 + (eval "$ac_build_compile") 2>conftest.er1
2.3718 + ac_status=$?
2.3719 + grep -v '^ *+' conftest.er1 >conftest.err
2.3720 + rm -f conftest.er1
2.3721 + cat conftest.err >&5
2.3722 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3723 + (exit $ac_status); } && {
2.3724 + test -z "$ac_c_werror_flag" ||
2.3725 + test ! -s conftest.err
2.3726 + } && test -s conftest.$ac_build_objext; then
2.3727 + ac_cv_build_prog_cc_stdc=$ac_arg
2.3728 +else
2.3729 + echo "$as_me: failed program was:" >&5
2.3730 +sed 's/^/| /' conftest.$ac_ext >&5
2.3731 +
2.3732 +
2.3733 +fi
2.3734 +
2.3735 +rm -f core conftest.err conftest.$ac_build_objext
2.3736 + test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
2.3737 +done
2.3738 +rm -f conftest.$ac_ext
2.3739 +CC_FOR_BUILD=$ac_save_CC
2.3740 +
2.3741 +fi
2.3742 +# AC_CACHE_VAL
2.3743 +case "x$ac_cv_build_prog_cc_stdc" in
2.3744 + x)
2.3745 + { echo "$as_me:$LINENO: result: none needed" >&5
2.3746 +echo "${ECHO_T}none needed" >&6; } ;;
2.3747 + xno)
2.3748 + { echo "$as_me:$LINENO: result: unsupported" >&5
2.3749 +echo "${ECHO_T}unsupported" >&6; } ;;
2.3750 + *)
2.3751 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
2.3752 + { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
2.3753 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
2.3754 +esac
2.3755 +
2.3756 +
2.3757 +ac_ext=c
2.3758 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
2.3759 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
2.3760 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.3761 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
2.3762 +
2.3763 +depcc="$CC_FOR_BUILD" am_compiler_list=
2.3764 +
2.3765 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.3766 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.3767 +if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
2.3768 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3769 +else
2.3770 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.3771 + # We make a subdir and do the tests there. Otherwise we can end up
2.3772 + # making bogus files that we don't know about and never remove. For
2.3773 + # instance it was reported that on HP-UX the gcc test will end up
2.3774 + # making a dummy file named `D' -- because `-MD' means `put the output
2.3775 + # in D'.
2.3776 + mkdir conftest.dir
2.3777 + # Copy depcomp to subdir because otherwise we won't find it if we're
2.3778 + # using a relative directory.
2.3779 + cp "$am_depcomp" conftest.dir
2.3780 + cd conftest.dir
2.3781 + # We will build objects and dependencies in a subdirectory because
2.3782 + # it helps to detect inapplicable dependency modes. For instance
2.3783 + # both Tru64's cc and ICC support -MD to output dependencies as a
2.3784 + # side effect of compilation, but ICC will put the dependencies in
2.3785 + # the current directory while Tru64 will put them in the object
2.3786 + # directory.
2.3787 + mkdir sub
2.3788 +
2.3789 + am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
2.3790 + if test "$am_compiler_list" = ""; then
2.3791 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.3792 + fi
2.3793 + for depmode in $am_compiler_list; do
2.3794 + # Setup a source with many dependencies, because some compilers
2.3795 + # like to wrap large dependency lists on column 80 (with \), and
2.3796 + # we should not choose a depcomp mode which is confused by this.
2.3797 + #
2.3798 + # We need to recreate these files for each test, as the compiler may
2.3799 + # overwrite some of them when testing with obscure command lines.
2.3800 + # This happens at least with the AIX C compiler.
2.3801 + : > sub/conftest.c
2.3802 + for i in 1 2 3 4 5 6; do
2.3803 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.3804 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.3805 + # Solaris 8's {/usr,}/bin/sh.
2.3806 + touch sub/conftst$i.h
2.3807 + done
2.3808 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.3809 +
2.3810 + case $depmode in
2.3811 + nosideeffect)
2.3812 + # after this tag, mechanisms are not by side-effect, so they'll
2.3813 + # only be used when explicitly requested
2.3814 + if test "x$enable_dependency_tracking" = xyes; then
2.3815 + continue
2.3816 + else
2.3817 + break
2.3818 + fi
2.3819 + ;;
2.3820 + none) break ;;
2.3821 + esac
2.3822 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.3823 + # mode. It turns out that the SunPro C++ compiler does not properly
2.3824 + # handle `-M -o', and we need to detect this.
2.3825 + if depmode=$depmode \
2.3826 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.3827 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.3828 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.3829 + >/dev/null 2>conftest.err &&
2.3830 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.3831 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.3832 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.3833 + # icc doesn't choke on unknown options, it will just issue warnings
2.3834 + # or remarks (even with -Werror). So we grep stderr for any message
2.3835 + # that says an option was ignored or not supported.
2.3836 + # When given -MP, icc 7.0 and 7.1 complain thusly:
2.3837 + # icc: Command line warning: ignoring option '-M'; no argument required
2.3838 + # The diagnosis changed in icc 8.0:
2.3839 + # icc: Command line remark: option '-MP' not supported
2.3840 + if (grep 'ignoring option' conftest.err ||
2.3841 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.3842 + am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
2.3843 + break
2.3844 + fi
2.3845 + fi
2.3846 + done
2.3847 +
2.3848 + cd ..
2.3849 + rm -rf conftest.dir
2.3850 +else
2.3851 + am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
2.3852 +fi
2.3853 +
2.3854 +fi
2.3855 +{ echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
2.3856 +echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
2.3857 +CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
2.3858 +
2.3859 +
2.3860 +
2.3861 +if
2.3862 + test "x$enable_dependency_tracking" != xno \
2.3863 + && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
2.3864 + am__fastdepCC_FOR_BUILD_TRUE=
2.3865 + am__fastdepCC_FOR_BUILD_FALSE='#'
2.3866 +else
2.3867 + am__fastdepCC_FOR_BUILD_TRUE='#'
2.3868 + am__fastdepCC_FOR_BUILD_FALSE=
2.3869 +fi
2.3870 +
2.3871 +
2.3872 + case $ac_cv_build_prog_cc_stdc in
2.3873 + no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
2.3874 + *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
2.3875 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
2.3876 +if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
2.3877 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3878 +else
2.3879 + ac_cv_build_prog_cc_stdc=no
2.3880 +ac_save_CC=$CC_FOR_BUILD
2.3881 +cat >conftest.$ac_ext <<_ACEOF
2.3882 +/* confdefs.h. */
2.3883 +_ACEOF
2.3884 +cat confdefs.h >>conftest.$ac_ext
2.3885 +cat >>conftest.$ac_ext <<_ACEOF
2.3886 +/* end confdefs.h. */
2.3887 +#include <stdarg.h>
2.3888 +#include <stdbool.h>
2.3889 +#include <stdlib.h>
2.3890 +#include <wchar.h>
2.3891 +#include <stdio.h>
2.3892 +
2.3893 +// Check varargs macros. These examples are taken from C99 6.10.3.5.
2.3894 +#define debug(...) fprintf (stderr, __VA_ARGS__)
2.3895 +#define showlist(...) puts (#__VA_ARGS__)
2.3896 +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2.3897 +static void
2.3898 +test_varargs_macros (void)
2.3899 +{
2.3900 + int x = 1234;
2.3901 + int y = 5678;
2.3902 + debug ("Flag");
2.3903 + debug ("X = %d\n", x);
2.3904 + showlist (The first, second, and third items.);
2.3905 + report (x>y, "x is %d but y is %d", x, y);
2.3906 +}
2.3907 +
2.3908 +// Check long long types.
2.3909 +#define BIG64 18446744073709551615ull
2.3910 +#define BIG32 4294967295ul
2.3911 +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2.3912 +#if !BIG_OK
2.3913 + your preprocessor is broken;
2.3914 +#endif
2.3915 +#if BIG_OK
2.3916 +#else
2.3917 + your preprocessor is broken;
2.3918 +#endif
2.3919 +static long long int bignum = -9223372036854775807LL;
2.3920 +static unsigned long long int ubignum = BIG64;
2.3921 +
2.3922 +struct incomplete_array
2.3923 +{
2.3924 + int datasize;
2.3925 + double data[];
2.3926 +};
2.3927 +
2.3928 +struct named_init {
2.3929 + int number;
2.3930 + const wchar_t *name;
2.3931 + double average;
2.3932 +};
2.3933 +
2.3934 +typedef const char *ccp;
2.3935 +
2.3936 +static inline int
2.3937 +test_restrict (ccp restrict text)
2.3938 +{
2.3939 + // See if C++-style comments work.
2.3940 + // Iterate through items via the restricted pointer.
2.3941 + // Also check for declarations in for loops.
2.3942 + for (unsigned int i = 0; *(text+i) != '\0'; ++i)
2.3943 + continue;
2.3944 + return 0;
2.3945 +}
2.3946 +
2.3947 +// Check varargs and va_copy.
2.3948 +static void
2.3949 +test_varargs (const char *format, ...)
2.3950 +{
2.3951 + va_list args;
2.3952 + va_start (args, format);
2.3953 + va_list args_copy;
2.3954 + va_copy (args_copy, args);
2.3955 +
2.3956 + const char *str;
2.3957 + int number;
2.3958 + float fnumber;
2.3959 +
2.3960 + while (*format)
2.3961 + {
2.3962 + switch (*format++)
2.3963 + {
2.3964 + case 's': // string
2.3965 + str = va_arg (args_copy, const char *);
2.3966 + break;
2.3967 + case 'd': // int
2.3968 + number = va_arg (args_copy, int);
2.3969 + break;
2.3970 + case 'f': // float
2.3971 + fnumber = va_arg (args_copy, double);
2.3972 + break;
2.3973 + default:
2.3974 + break;
2.3975 + }
2.3976 + }
2.3977 + va_end (args_copy);
2.3978 + va_end (args);
2.3979 +}
2.3980 +
2.3981 +int
2.3982 +main ()
2.3983 +{
2.3984 +
2.3985 + // Check bool.
2.3986 + _Bool success = false;
2.3987 +
2.3988 + // Check restrict.
2.3989 + if (test_restrict ("String literal") == 0)
2.3990 + success = true;
2.3991 + char *restrict newvar = "Another string";
2.3992 +
2.3993 + // Check varargs.
2.3994 + test_varargs ("s, d' f .", "string", 65, 34.234);
2.3995 + test_varargs_macros ();
2.3996 +
2.3997 + // Check flexible array members.
2.3998 + struct incomplete_array *ia =
2.3999 + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2.4000 + ia->datasize = 10;
2.4001 + for (int i = 0; i < ia->datasize; ++i)
2.4002 + ia->data[i] = i * 1.234;
2.4003 +
2.4004 + // Check named initializers.
2.4005 + struct named_init ni = {
2.4006 + .number = 34,
2.4007 + .name = L"Test wide string",
2.4008 + .average = 543.34343,
2.4009 + };
2.4010 +
2.4011 + ni.number = 58;
2.4012 +
2.4013 + int dynamic_array[ni.number];
2.4014 + dynamic_array[ni.number - 1] = 543;
2.4015 +
2.4016 + // work around unused variable warnings
2.4017 + return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
2.4018 + || dynamic_array[ni.number - 1] != 543);
2.4019 +
2.4020 + ;
2.4021 + return 0;
2.4022 +}
2.4023 +_ACEOF
2.4024 +for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
2.4025 +do
2.4026 + CC_FOR_BUILD="$ac_save_CC $ac_arg"
2.4027 + rm -f conftest.$ac_build_objext
2.4028 +if { (ac_try="$ac_build_compile"
2.4029 +case "(($ac_try" in
2.4030 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4031 + *) ac_try_echo=$ac_try;;
2.4032 +esac
2.4033 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4034 + (eval "$ac_build_compile") 2>conftest.er1
2.4035 + ac_status=$?
2.4036 + grep -v '^ *+' conftest.er1 >conftest.err
2.4037 + rm -f conftest.er1
2.4038 + cat conftest.err >&5
2.4039 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4040 + (exit $ac_status); } && {
2.4041 + test -z "$ac_c_werror_flag" ||
2.4042 + test ! -s conftest.err
2.4043 + } && test -s conftest.$ac_build_objext; then
2.4044 + ac_cv_build_prog_cc_stdc=$ac_arg
2.4045 +else
2.4046 + echo "$as_me: failed program was:" >&5
2.4047 +sed 's/^/| /' conftest.$ac_ext >&5
2.4048 +
2.4049 +
2.4050 +fi
2.4051 +
2.4052 +rm -f core conftest.err conftest.$ac_build_objext
2.4053 + test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
2.4054 +done
2.4055 +rm -f conftest.$ac_ext
2.4056 +CC_FOR_BUILD=$ac_save_CC
2.4057 +
2.4058 +fi
2.4059 +# AC_CACHE_VAL
2.4060 +case "x$ac_cv_build_prog_cc_stdc" in
2.4061 + x)
2.4062 + { echo "$as_me:$LINENO: result: none needed" >&5
2.4063 +echo "${ECHO_T}none needed" >&6; } ;;
2.4064 + xno)
2.4065 + { echo "$as_me:$LINENO: result: unsupported" >&5
2.4066 +echo "${ECHO_T}unsupported" >&6; } ;;
2.4067 + *)
2.4068 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
2.4069 + { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
2.4070 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
2.4071 +esac
2.4072 +if test "x$ac_cv_build_prog_cc_stdc" != xno; then
2.4073 + ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
2.4074 +else
2.4075 + { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
2.4076 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
2.4077 +if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
2.4078 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4079 +else
2.4080 + ac_cv_build_prog_cc_stdc=no
2.4081 +ac_save_CC=$CC_FOR_BUILD
2.4082 +cat >conftest.$ac_ext <<_ACEOF
2.4083 +/* confdefs.h. */
2.4084 +_ACEOF
2.4085 +cat confdefs.h >>conftest.$ac_ext
2.4086 +cat >>conftest.$ac_ext <<_ACEOF
2.4087 +/* end confdefs.h. */
2.4088 +#include <stdarg.h>
2.4089 +#include <stdio.h>
2.4090 +#include <sys/types.h>
2.4091 +#include <sys/stat.h>
2.4092 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.4093 +struct buf { int x; };
2.4094 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.4095 +static char *e (p, i)
2.4096 + char **p;
2.4097 + int i;
2.4098 +{
2.4099 + return p[i];
2.4100 +}
2.4101 +static char *f (char * (*g) (char **, int), char **p, ...)
2.4102 +{
2.4103 + char *s;
2.4104 + va_list v;
2.4105 + va_start (v,p);
2.4106 + s = g (p, va_arg (v,int));
2.4107 + va_end (v);
2.4108 + return s;
2.4109 +}
2.4110 +
2.4111 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.4112 + function prototypes and stuff, but not '\xHH' hex character constants.
2.4113 + These don't provoke an error unfortunately, instead are silently treated
2.4114 + as 'x'. The following induces an error, until -std is added to get
2.4115 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.4116 + array size at least. It's necessary to write '\x00'==0 to get something
2.4117 + that's true only with -std. */
2.4118 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.4119 +
2.4120 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.4121 + inside strings and character constants. */
2.4122 +#define FOO(x) 'x'
2.4123 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.4124 +
2.4125 +int test (int i, double x);
2.4126 +struct s1 {int (*f) (int a);};
2.4127 +struct s2 {int (*f) (double a);};
2.4128 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.4129 +int argc;
2.4130 +char **argv;
2.4131 +int
2.4132 +main ()
2.4133 +{
2.4134 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.4135 + ;
2.4136 + return 0;
2.4137 +}
2.4138 +_ACEOF
2.4139 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.4140 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.4141 +do
2.4142 + CC_FOR_BUILD="$ac_save_CC $ac_arg"
2.4143 + rm -f conftest.$ac_build_objext
2.4144 +if { (ac_try="$ac_build_compile"
2.4145 +case "(($ac_try" in
2.4146 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4147 + *) ac_try_echo=$ac_try;;
2.4148 +esac
2.4149 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4150 + (eval "$ac_build_compile") 2>conftest.er1
2.4151 + ac_status=$?
2.4152 + grep -v '^ *+' conftest.er1 >conftest.err
2.4153 + rm -f conftest.er1
2.4154 + cat conftest.err >&5
2.4155 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4156 + (exit $ac_status); } && {
2.4157 + test -z "$ac_c_werror_flag" ||
2.4158 + test ! -s conftest.err
2.4159 + } && test -s conftest.$ac_build_objext; then
2.4160 + ac_cv_build_prog_cc_stdc=$ac_arg
2.4161 +else
2.4162 + echo "$as_me: failed program was:" >&5
2.4163 +sed 's/^/| /' conftest.$ac_ext >&5
2.4164 +
2.4165 +
2.4166 +fi
2.4167 +
2.4168 +rm -f core conftest.err conftest.$ac_build_objext
2.4169 + test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
2.4170 +done
2.4171 +rm -f conftest.$ac_ext
2.4172 +CC_FOR_BUILD=$ac_save_CC
2.4173 +
2.4174 +fi
2.4175 +# AC_CACHE_VAL
2.4176 +case "x$ac_cv_build_prog_cc_stdc" in
2.4177 + x)
2.4178 + { echo "$as_me:$LINENO: result: none needed" >&5
2.4179 +echo "${ECHO_T}none needed" >&6; } ;;
2.4180 + xno)
2.4181 + { echo "$as_me:$LINENO: result: unsupported" >&5
2.4182 +echo "${ECHO_T}unsupported" >&6; } ;;
2.4183 + *)
2.4184 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
2.4185 + { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
2.4186 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
2.4187 +esac
2.4188 +if test "x$ac_cv_build_prog_cc_stdc" != xno; then
2.4189 + ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
2.4190 +else
2.4191 + ac_cv_build_prog_cc_stdc=no
2.4192 +fi
2.4193 +
2.4194 +
2.4195 +fi
2.4196 +
2.4197 + ;;
2.4198 +esac
2.4199 + { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
2.4200 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
2.4201 + if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
2.4202 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4203 +fi
2.4204 +
2.4205 + case $ac_cv_build_prog_cc_stdc in
2.4206 + no) { echo "$as_me:$LINENO: result: unsupported" >&5
2.4207 +echo "${ECHO_T}unsupported" >&6; } ;;
2.4208 + '') { echo "$as_me:$LINENO: result: none needed" >&5
2.4209 +echo "${ECHO_T}none needed" >&6; } ;;
2.4210 + *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
2.4211 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
2.4212 +esac
2.4213 +
2.4214 +
2.4215 +ac_ext=c
2.4216 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
2.4217 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
2.4218 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.4219 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
2.4220 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2.4221 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2.4222 +# On Suns, sometimes $CPP names a directory.
2.4223 +if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
2.4224 + CPP_FOR_BUILD=
2.4225 +fi
2.4226 +if test -z "$CPP_FOR_BUILD"; then
2.4227 + if test "${ac_cv_build_prog_CPP+set}" = set; then
2.4228 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4229 +else
2.4230 + # Double quotes because CPP needs to be expanded
2.4231 + for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
2.4232 + do
2.4233 + ac_preproc_ok=false
2.4234 +for ac_c_preproc_warn_flag in '' yes
2.4235 +do
2.4236 + # Use a header file that comes with gcc, so configuring glibc
2.4237 + # with a fresh cross-compiler works.
2.4238 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2.4239 + # <limits.h> exists even on freestanding compilers.
2.4240 + # On the NeXT, cc -E runs the code through the compiler's parser,
2.4241 + # not just through cpp. "Syntax error" is here to catch this case.
2.4242 + cat >conftest.$ac_ext <<_ACEOF
2.4243 +/* confdefs.h. */
2.4244 +_ACEOF
2.4245 +cat confdefs.h >>conftest.$ac_ext
2.4246 +cat >>conftest.$ac_ext <<_ACEOF
2.4247 +/* end confdefs.h. */
2.4248 +#ifdef __STDC__
2.4249 +# include <limits.h>
2.4250 +#else
2.4251 +# include <assert.h>
2.4252 +#endif
2.4253 + Syntax error
2.4254 +_ACEOF
2.4255 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
2.4256 +case "(($ac_try" in
2.4257 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4258 + *) ac_try_echo=$ac_try;;
2.4259 +esac
2.4260 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4261 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
2.4262 + ac_status=$?
2.4263 + grep -v '^ *+' conftest.er1 >conftest.err
2.4264 + rm -f conftest.er1
2.4265 + cat conftest.err >&5
2.4266 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4267 + (exit $ac_status); } >/dev/null && {
2.4268 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.4269 + test ! -s conftest.err
2.4270 + }; then
2.4271 + :
2.4272 +else
2.4273 + echo "$as_me: failed program was:" >&5
2.4274 +sed 's/^/| /' conftest.$ac_ext >&5
2.4275 +
2.4276 + # Broken: fails on valid input.
2.4277 +continue
2.4278 +fi
2.4279 +
2.4280 +rm -f conftest.err conftest.$ac_ext
2.4281 +
2.4282 + # OK, works on sane cases. Now check whether nonexistent headers
2.4283 + # can be detected and how.
2.4284 + cat >conftest.$ac_ext <<_ACEOF
2.4285 +/* confdefs.h. */
2.4286 +_ACEOF
2.4287 +cat confdefs.h >>conftest.$ac_ext
2.4288 +cat >>conftest.$ac_ext <<_ACEOF
2.4289 +/* end confdefs.h. */
2.4290 +#include <ac_nonexistent.h>
2.4291 +_ACEOF
2.4292 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
2.4293 +case "(($ac_try" in
2.4294 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4295 + *) ac_try_echo=$ac_try;;
2.4296 +esac
2.4297 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4298 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
2.4299 + ac_status=$?
2.4300 + grep -v '^ *+' conftest.er1 >conftest.err
2.4301 + rm -f conftest.er1
2.4302 + cat conftest.err >&5
2.4303 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4304 + (exit $ac_status); } >/dev/null && {
2.4305 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.4306 + test ! -s conftest.err
2.4307 + }; then
2.4308 + # Broken: success on invalid input.
2.4309 +continue
2.4310 +else
2.4311 + echo "$as_me: failed program was:" >&5
2.4312 +sed 's/^/| /' conftest.$ac_ext >&5
2.4313 +
2.4314 + # Passes both tests.
2.4315 +ac_preproc_ok=:
2.4316 +break
2.4317 +fi
2.4318 +
2.4319 +rm -f conftest.err conftest.$ac_ext
2.4320 +
2.4321 +done
2.4322 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2.4323 +rm -f conftest.err conftest.$ac_ext
2.4324 +if $ac_preproc_ok; then
2.4325 + break
2.4326 +fi
2.4327 +
2.4328 + done
2.4329 + ac_cv_build_prog_CPP=$CPP_FOR_BUILD
2.4330 +
2.4331 +fi
2.4332 + CPP_FOR_BUILD=$ac_cv_build_prog_CPP
2.4333 +else
2.4334 + ac_cv_build_prog_CPP=$CPP_FOR_BUILD
2.4335 +fi
2.4336 +{ echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
2.4337 +echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
2.4338 +ac_preproc_ok=false
2.4339 +for ac_c_preproc_warn_flag in '' yes
2.4340 +do
2.4341 + # Use a header file that comes with gcc, so configuring glibc
2.4342 + # with a fresh cross-compiler works.
2.4343 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2.4344 + # <limits.h> exists even on freestanding compilers.
2.4345 + # On the NeXT, cc -E runs the code through the compiler's parser,
2.4346 + # not just through cpp. "Syntax error" is here to catch this case.
2.4347 + cat >conftest.$ac_ext <<_ACEOF
2.4348 +/* confdefs.h. */
2.4349 +_ACEOF
2.4350 +cat confdefs.h >>conftest.$ac_ext
2.4351 +cat >>conftest.$ac_ext <<_ACEOF
2.4352 +/* end confdefs.h. */
2.4353 +#ifdef __STDC__
2.4354 +# include <limits.h>
2.4355 +#else
2.4356 +# include <assert.h>
2.4357 +#endif
2.4358 + Syntax error
2.4359 +_ACEOF
2.4360 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
2.4361 +case "(($ac_try" in
2.4362 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4363 + *) ac_try_echo=$ac_try;;
2.4364 +esac
2.4365 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4366 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
2.4367 + ac_status=$?
2.4368 + grep -v '^ *+' conftest.er1 >conftest.err
2.4369 + rm -f conftest.er1
2.4370 + cat conftest.err >&5
2.4371 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4372 + (exit $ac_status); } >/dev/null && {
2.4373 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.4374 + test ! -s conftest.err
2.4375 + }; then
2.4376 + :
2.4377 +else
2.4378 + echo "$as_me: failed program was:" >&5
2.4379 +sed 's/^/| /' conftest.$ac_ext >&5
2.4380 +
2.4381 + # Broken: fails on valid input.
2.4382 +continue
2.4383 +fi
2.4384 +
2.4385 +rm -f conftest.err conftest.$ac_ext
2.4386 +
2.4387 + # OK, works on sane cases. Now check whether nonexistent headers
2.4388 + # can be detected and how.
2.4389 + cat >conftest.$ac_ext <<_ACEOF
2.4390 +/* confdefs.h. */
2.4391 +_ACEOF
2.4392 +cat confdefs.h >>conftest.$ac_ext
2.4393 +cat >>conftest.$ac_ext <<_ACEOF
2.4394 +/* end confdefs.h. */
2.4395 +#include <ac_nonexistent.h>
2.4396 +_ACEOF
2.4397 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
2.4398 +case "(($ac_try" in
2.4399 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4400 + *) ac_try_echo=$ac_try;;
2.4401 +esac
2.4402 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4403 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
2.4404 + ac_status=$?
2.4405 + grep -v '^ *+' conftest.er1 >conftest.err
2.4406 + rm -f conftest.er1
2.4407 + cat conftest.err >&5
2.4408 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4409 + (exit $ac_status); } >/dev/null && {
2.4410 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.4411 + test ! -s conftest.err
2.4412 + }; then
2.4413 + # Broken: success on invalid input.
2.4414 +continue
2.4415 +else
2.4416 + echo "$as_me: failed program was:" >&5
2.4417 +sed 's/^/| /' conftest.$ac_ext >&5
2.4418 +
2.4419 + # Passes both tests.
2.4420 +ac_preproc_ok=:
2.4421 +break
2.4422 +fi
2.4423 +
2.4424 +rm -f conftest.err conftest.$ac_ext
2.4425 +
2.4426 +done
2.4427 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2.4428 +rm -f conftest.err conftest.$ac_ext
2.4429 +if $ac_preproc_ok; then
2.4430 + :
2.4431 +else
2.4432 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
2.4433 +See \`config.log' for more details." >&5
2.4434 +echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
2.4435 +See \`config.log' for more details." >&2;}
2.4436 + { (exit 1); exit 1; }; }
2.4437 +fi
2.4438 +
2.4439 +ac_ext=c
2.4440 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
2.4441 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
2.4442 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.4443 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
2.4444 +
2.4445 +
2.4446 +
2.4447 +
2.4448 +BUILD_EXEEXT=$ac_build_exeext
2.4449 +BUILD_OBJEXT=$ac_build_objext
2.4450 +
2.4451 +ac_ext=m
2.4452 +ac_cpp='$OBJCPP $CPPFLAGS'
2.4453 +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.4454 +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.4455 +ac_compiler_gnu=$ac_cv_objc_compiler_gnu
2.4456 +if test -n "$ac_tool_prefix"; then
2.4457 + for ac_prog in gcc objcc objc cc CC
2.4458 + do
2.4459 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.4460 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2.4461 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.4462 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.4463 +if test "${ac_cv_prog_OBJC+set}" = set; then
2.4464 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4465 +else
2.4466 + if test -n "$OBJC"; then
2.4467 + ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
2.4468 +else
2.4469 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.4470 +for as_dir in $PATH
2.4471 +do
2.4472 + IFS=$as_save_IFS
2.4473 + test -z "$as_dir" && as_dir=.
2.4474 + for ac_exec_ext in '' $ac_executable_extensions; do
2.4475 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.4476 + ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
2.4477 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.4478 + break 2
2.4479 + fi
2.4480 +done
2.4481 +done
2.4482 +IFS=$as_save_IFS
2.4483 +
2.4484 +fi
2.4485 +fi
2.4486 +OBJC=$ac_cv_prog_OBJC
2.4487 +if test -n "$OBJC"; then
2.4488 + { echo "$as_me:$LINENO: result: $OBJC" >&5
2.4489 +echo "${ECHO_T}$OBJC" >&6; }
2.4490 +else
2.4491 + { echo "$as_me:$LINENO: result: no" >&5
2.4492 +echo "${ECHO_T}no" >&6; }
2.4493 +fi
2.4494 +
2.4495 +
2.4496 + test -n "$OBJC" && break
2.4497 + done
2.4498 +fi
2.4499 +if test -z "$OBJC"; then
2.4500 + ac_ct_OBJC=$OBJC
2.4501 + for ac_prog in gcc objcc objc cc CC
2.4502 +do
2.4503 + # Extract the first word of "$ac_prog", so it can be a program name with args.
2.4504 +set dummy $ac_prog; ac_word=$2
2.4505 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.4506 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.4507 +if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
2.4508 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4509 +else
2.4510 + if test -n "$ac_ct_OBJC"; then
2.4511 + ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
2.4512 +else
2.4513 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.4514 +for as_dir in $PATH
2.4515 +do
2.4516 + IFS=$as_save_IFS
2.4517 + test -z "$as_dir" && as_dir=.
2.4518 + for ac_exec_ext in '' $ac_executable_extensions; do
2.4519 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.4520 + ac_cv_prog_ac_ct_OBJC="$ac_prog"
2.4521 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.4522 + break 2
2.4523 + fi
2.4524 +done
2.4525 +done
2.4526 +IFS=$as_save_IFS
2.4527 +
2.4528 +fi
2.4529 +fi
2.4530 +ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
2.4531 +if test -n "$ac_ct_OBJC"; then
2.4532 + { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
2.4533 +echo "${ECHO_T}$ac_ct_OBJC" >&6; }
2.4534 +else
2.4535 + { echo "$as_me:$LINENO: result: no" >&5
2.4536 +echo "${ECHO_T}no" >&6; }
2.4537 +fi
2.4538 +
2.4539 +
2.4540 + test -n "$ac_ct_OBJC" && break
2.4541 +done
2.4542 +
2.4543 + if test "x$ac_ct_OBJC" = x; then
2.4544 + OBJC="gcc"
2.4545 + else
2.4546 + case $cross_compiling:$ac_tool_warned in
2.4547 +yes:)
2.4548 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.4549 +whose name does not start with the host triplet. If you think this
2.4550 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.4551 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.4552 +whose name does not start with the host triplet. If you think this
2.4553 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.4554 +ac_tool_warned=yes ;;
2.4555 +esac
2.4556 + OBJC=$ac_ct_OBJC
2.4557 + fi
2.4558 +fi
2.4559 +
2.4560 +# Provide some information about the compiler.
2.4561 +echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
2.4562 +ac_compiler=`set X $ac_compile; echo $2`
2.4563 +{ (ac_try="$ac_compiler --version >&5"
2.4564 +case "(($ac_try" in
2.4565 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4566 + *) ac_try_echo=$ac_try;;
2.4567 +esac
2.4568 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4569 + (eval "$ac_compiler --version >&5") 2>&5
2.4570 + ac_status=$?
2.4571 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4572 + (exit $ac_status); }
2.4573 +{ (ac_try="$ac_compiler -v >&5"
2.4574 +case "(($ac_try" in
2.4575 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4576 + *) ac_try_echo=$ac_try;;
2.4577 +esac
2.4578 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4579 + (eval "$ac_compiler -v >&5") 2>&5
2.4580 + ac_status=$?
2.4581 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4582 + (exit $ac_status); }
2.4583 +{ (ac_try="$ac_compiler -V >&5"
2.4584 +case "(($ac_try" in
2.4585 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4586 + *) ac_try_echo=$ac_try;;
2.4587 +esac
2.4588 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4589 + (eval "$ac_compiler -V >&5") 2>&5
2.4590 + ac_status=$?
2.4591 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4592 + (exit $ac_status); }
2.4593 +
2.4594 +{ echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
2.4595 +echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
2.4596 +if test "${ac_cv_objc_compiler_gnu+set}" = set; then
2.4597 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4598 +else
2.4599 + cat >conftest.$ac_ext <<_ACEOF
2.4600 +/* confdefs.h. */
2.4601 +_ACEOF
2.4602 +cat confdefs.h >>conftest.$ac_ext
2.4603 +cat >>conftest.$ac_ext <<_ACEOF
2.4604 +/* end confdefs.h. */
2.4605 +
2.4606 +int
2.4607 +main ()
2.4608 +{
2.4609 +#ifndef __GNUC__
2.4610 + choke me
2.4611 +#endif
2.4612 +
2.4613 + ;
2.4614 + return 0;
2.4615 +}
2.4616 +_ACEOF
2.4617 +rm -f conftest.$ac_objext
2.4618 +if { (ac_try="$ac_compile"
2.4619 +case "(($ac_try" in
2.4620 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4621 + *) ac_try_echo=$ac_try;;
2.4622 +esac
2.4623 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4624 + (eval "$ac_compile") 2>conftest.er1
2.4625 + ac_status=$?
2.4626 + grep -v '^ *+' conftest.er1 >conftest.err
2.4627 + rm -f conftest.er1
2.4628 + cat conftest.err >&5
2.4629 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4630 + (exit $ac_status); } && {
2.4631 + test -z "$ac_objc_werror_flag" ||
2.4632 + test ! -s conftest.err
2.4633 + } && test -s conftest.$ac_objext; then
2.4634 + ac_compiler_gnu=yes
2.4635 +else
2.4636 + echo "$as_me: failed program was:" >&5
2.4637 +sed 's/^/| /' conftest.$ac_ext >&5
2.4638 +
2.4639 + ac_compiler_gnu=no
2.4640 +fi
2.4641 +
2.4642 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.4643 +ac_cv_objc_compiler_gnu=$ac_compiler_gnu
2.4644 +
2.4645 +fi
2.4646 +{ echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
2.4647 +echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
2.4648 +GOBJC=`test $ac_compiler_gnu = yes && echo yes`
2.4649 +ac_test_OBJCFLAGS=${OBJCFLAGS+set}
2.4650 +ac_save_OBJCFLAGS=$OBJCFLAGS
2.4651 +{ echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
2.4652 +echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
2.4653 +if test "${ac_cv_prog_objc_g+set}" = set; then
2.4654 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4655 +else
2.4656 + ac_save_objc_werror_flag=$ac_objc_werror_flag
2.4657 + ac_objc_werror_flag=yes
2.4658 + ac_cv_prog_objc_g=no
2.4659 + OBJCFLAGS="-g"
2.4660 + cat >conftest.$ac_ext <<_ACEOF
2.4661 +/* confdefs.h. */
2.4662 +_ACEOF
2.4663 +cat confdefs.h >>conftest.$ac_ext
2.4664 +cat >>conftest.$ac_ext <<_ACEOF
2.4665 +/* end confdefs.h. */
2.4666 +
2.4667 +int
2.4668 +main ()
2.4669 +{
2.4670 +
2.4671 + ;
2.4672 + return 0;
2.4673 +}
2.4674 +_ACEOF
2.4675 +rm -f conftest.$ac_objext
2.4676 +if { (ac_try="$ac_compile"
2.4677 +case "(($ac_try" in
2.4678 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4679 + *) ac_try_echo=$ac_try;;
2.4680 +esac
2.4681 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4682 + (eval "$ac_compile") 2>conftest.er1
2.4683 + ac_status=$?
2.4684 + grep -v '^ *+' conftest.er1 >conftest.err
2.4685 + rm -f conftest.er1
2.4686 + cat conftest.err >&5
2.4687 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4688 + (exit $ac_status); } && {
2.4689 + test -z "$ac_objc_werror_flag" ||
2.4690 + test ! -s conftest.err
2.4691 + } && test -s conftest.$ac_objext; then
2.4692 + ac_cv_prog_objc_g=yes
2.4693 +else
2.4694 + echo "$as_me: failed program was:" >&5
2.4695 +sed 's/^/| /' conftest.$ac_ext >&5
2.4696 +
2.4697 + OBJCFLAGS=""
2.4698 + cat >conftest.$ac_ext <<_ACEOF
2.4699 +/* confdefs.h. */
2.4700 +_ACEOF
2.4701 +cat confdefs.h >>conftest.$ac_ext
2.4702 +cat >>conftest.$ac_ext <<_ACEOF
2.4703 +/* end confdefs.h. */
2.4704 +
2.4705 +int
2.4706 +main ()
2.4707 +{
2.4708 +
2.4709 + ;
2.4710 + return 0;
2.4711 +}
2.4712 +_ACEOF
2.4713 +rm -f conftest.$ac_objext
2.4714 +if { (ac_try="$ac_compile"
2.4715 +case "(($ac_try" in
2.4716 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4717 + *) ac_try_echo=$ac_try;;
2.4718 +esac
2.4719 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4720 + (eval "$ac_compile") 2>conftest.er1
2.4721 + ac_status=$?
2.4722 + grep -v '^ *+' conftest.er1 >conftest.err
2.4723 + rm -f conftest.er1
2.4724 + cat conftest.err >&5
2.4725 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4726 + (exit $ac_status); } && {
2.4727 + test -z "$ac_objc_werror_flag" ||
2.4728 + test ! -s conftest.err
2.4729 + } && test -s conftest.$ac_objext; then
2.4730 + :
2.4731 +else
2.4732 + echo "$as_me: failed program was:" >&5
2.4733 +sed 's/^/| /' conftest.$ac_ext >&5
2.4734 +
2.4735 + ac_objc_werror_flag=$ac_save_objc_werror_flag
2.4736 + OBJCFLAGS="-g"
2.4737 + cat >conftest.$ac_ext <<_ACEOF
2.4738 +/* confdefs.h. */
2.4739 +_ACEOF
2.4740 +cat confdefs.h >>conftest.$ac_ext
2.4741 +cat >>conftest.$ac_ext <<_ACEOF
2.4742 +/* end confdefs.h. */
2.4743 +
2.4744 +int
2.4745 +main ()
2.4746 +{
2.4747 +
2.4748 + ;
2.4749 + return 0;
2.4750 +}
2.4751 +_ACEOF
2.4752 +rm -f conftest.$ac_objext
2.4753 +if { (ac_try="$ac_compile"
2.4754 +case "(($ac_try" in
2.4755 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4756 + *) ac_try_echo=$ac_try;;
2.4757 +esac
2.4758 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4759 + (eval "$ac_compile") 2>conftest.er1
2.4760 + ac_status=$?
2.4761 + grep -v '^ *+' conftest.er1 >conftest.err
2.4762 + rm -f conftest.er1
2.4763 + cat conftest.err >&5
2.4764 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4765 + (exit $ac_status); } && {
2.4766 + test -z "$ac_objc_werror_flag" ||
2.4767 + test ! -s conftest.err
2.4768 + } && test -s conftest.$ac_objext; then
2.4769 + ac_cv_prog_objc_g=yes
2.4770 +else
2.4771 + echo "$as_me: failed program was:" >&5
2.4772 +sed 's/^/| /' conftest.$ac_ext >&5
2.4773 +
2.4774 +
2.4775 +fi
2.4776 +
2.4777 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.4778 +fi
2.4779 +
2.4780 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.4781 +fi
2.4782 +
2.4783 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.4784 + ac_objc_werror_flag=$ac_save_objc_werror_flag
2.4785 +fi
2.4786 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
2.4787 +echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
2.4788 +if test "$ac_test_OBJCFLAGS" = set; then
2.4789 + OBJCFLAGS=$ac_save_OBJCFLAGS
2.4790 +elif test $ac_cv_prog_objc_g = yes; then
2.4791 + if test "$GOBJC" = yes; then
2.4792 + OBJCFLAGS="-g -O2"
2.4793 + else
2.4794 + OBJCFLAGS="-g"
2.4795 + fi
2.4796 +else
2.4797 + if test "$GOBJC" = yes; then
2.4798 + OBJCFLAGS="-O2"
2.4799 + else
2.4800 + OBJCFLAGS=
2.4801 + fi
2.4802 +fi
2.4803 +ac_ext=c
2.4804 +ac_cpp='$CPP $CPPFLAGS'
2.4805 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.4806 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.4807 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.4808 +
2.4809 +{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2.4810 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
2.4811 +if test "${ac_cv_path_SED+set}" = set; then
2.4812 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4813 +else
2.4814 + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2.4815 + for ac_i in 1 2 3 4 5 6 7; do
2.4816 + ac_script="$ac_script$as_nl$ac_script"
2.4817 + done
2.4818 + echo "$ac_script" | sed 99q >conftest.sed
2.4819 + $as_unset ac_script || ac_script=
2.4820 + # Extract the first word of "sed gsed" to use in msg output
2.4821 +if test -z "$SED"; then
2.4822 +set dummy sed gsed; ac_prog_name=$2
2.4823 +if test "${ac_cv_path_SED+set}" = set; then
2.4824 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4825 +else
2.4826 + ac_path_SED_found=false
2.4827 +# Loop through the user's path and test for each of PROGNAME-LIST
2.4828 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.4829 +for as_dir in $PATH
2.4830 +do
2.4831 + IFS=$as_save_IFS
2.4832 + test -z "$as_dir" && as_dir=.
2.4833 + for ac_prog in sed gsed; do
2.4834 + for ac_exec_ext in '' $ac_executable_extensions; do
2.4835 + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2.4836 + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2.4837 + # Check for GNU ac_path_SED and select it if it is found.
2.4838 + # Check for GNU $ac_path_SED
2.4839 +case `"$ac_path_SED" --version 2>&1` in
2.4840 +*GNU*)
2.4841 + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2.4842 +*)
2.4843 + ac_count=0
2.4844 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2.4845 + while :
2.4846 + do
2.4847 + cat "conftest.in" "conftest.in" >"conftest.tmp"
2.4848 + mv "conftest.tmp" "conftest.in"
2.4849 + cp "conftest.in" "conftest.nl"
2.4850 + echo '' >> "conftest.nl"
2.4851 + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2.4852 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2.4853 + ac_count=`expr $ac_count + 1`
2.4854 + if test $ac_count -gt ${ac_path_SED_max-0}; then
2.4855 + # Best one so far, save it but keep looking for a better one
2.4856 + ac_cv_path_SED="$ac_path_SED"
2.4857 + ac_path_SED_max=$ac_count
2.4858 + fi
2.4859 + # 10*(2^10) chars as input seems more than enough
2.4860 + test $ac_count -gt 10 && break
2.4861 + done
2.4862 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2.4863 +esac
2.4864 +
2.4865 +
2.4866 + $ac_path_SED_found && break 3
2.4867 + done
2.4868 +done
2.4869 +
2.4870 +done
2.4871 +IFS=$as_save_IFS
2.4872 +
2.4873 +
2.4874 +fi
2.4875 +
2.4876 +SED="$ac_cv_path_SED"
2.4877 +if test -z "$SED"; then
2.4878 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
2.4879 +echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
2.4880 + { (exit 1); exit 1; }; }
2.4881 +fi
2.4882 +
2.4883 +else
2.4884 + ac_cv_path_SED=$SED
2.4885 +fi
2.4886 +
2.4887 +fi
2.4888 +{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2.4889 +echo "${ECHO_T}$ac_cv_path_SED" >&6; }
2.4890 + SED="$ac_cv_path_SED"
2.4891 + rm -f conftest.sed
2.4892 +
2.4893 +# By default we simply use the C compiler to build assembly code.
2.4894 +
2.4895 +test "${CCAS+set}" = set || CCAS=$CC
2.4896 +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2.4897 +
2.4898 +
2.4899 +
2.4900 +if test -n "$ac_tool_prefix"; then
2.4901 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2.4902 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2.4903 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.4904 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.4905 +if test "${ac_cv_prog_RANLIB+set}" = set; then
2.4906 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4907 +else
2.4908 + if test -n "$RANLIB"; then
2.4909 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2.4910 +else
2.4911 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.4912 +for as_dir in $PATH
2.4913 +do
2.4914 + IFS=$as_save_IFS
2.4915 + test -z "$as_dir" && as_dir=.
2.4916 + for ac_exec_ext in '' $ac_executable_extensions; do
2.4917 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.4918 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2.4919 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.4920 + break 2
2.4921 + fi
2.4922 +done
2.4923 +done
2.4924 +IFS=$as_save_IFS
2.4925 +
2.4926 +fi
2.4927 +fi
2.4928 +RANLIB=$ac_cv_prog_RANLIB
2.4929 +if test -n "$RANLIB"; then
2.4930 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
2.4931 +echo "${ECHO_T}$RANLIB" >&6; }
2.4932 +else
2.4933 + { echo "$as_me:$LINENO: result: no" >&5
2.4934 +echo "${ECHO_T}no" >&6; }
2.4935 +fi
2.4936 +
2.4937 +
2.4938 +fi
2.4939 +if test -z "$ac_cv_prog_RANLIB"; then
2.4940 + ac_ct_RANLIB=$RANLIB
2.4941 + # Extract the first word of "ranlib", so it can be a program name with args.
2.4942 +set dummy ranlib; ac_word=$2
2.4943 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.4944 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.4945 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2.4946 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4947 +else
2.4948 + if test -n "$ac_ct_RANLIB"; then
2.4949 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2.4950 +else
2.4951 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.4952 +for as_dir in $PATH
2.4953 +do
2.4954 + IFS=$as_save_IFS
2.4955 + test -z "$as_dir" && as_dir=.
2.4956 + for ac_exec_ext in '' $ac_executable_extensions; do
2.4957 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.4958 + ac_cv_prog_ac_ct_RANLIB="ranlib"
2.4959 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.4960 + break 2
2.4961 + fi
2.4962 +done
2.4963 +done
2.4964 +IFS=$as_save_IFS
2.4965 +
2.4966 +fi
2.4967 +fi
2.4968 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2.4969 +if test -n "$ac_ct_RANLIB"; then
2.4970 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2.4971 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2.4972 +else
2.4973 + { echo "$as_me:$LINENO: result: no" >&5
2.4974 +echo "${ECHO_T}no" >&6; }
2.4975 +fi
2.4976 +
2.4977 + if test "x$ac_ct_RANLIB" = x; then
2.4978 + RANLIB=":"
2.4979 + else
2.4980 + case $cross_compiling:$ac_tool_warned in
2.4981 +yes:)
2.4982 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.4983 +whose name does not start with the host triplet. If you think this
2.4984 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.4985 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.4986 +whose name does not start with the host triplet. If you think this
2.4987 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.4988 +ac_tool_warned=yes ;;
2.4989 +esac
2.4990 + RANLIB=$ac_ct_RANLIB
2.4991 + fi
2.4992 +else
2.4993 + RANLIB="$ac_cv_prog_RANLIB"
2.4994 +fi
2.4995 +
2.4996 +
2.4997 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2.4998 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2.4999 +if test "${ac_cv_path_GREP+set}" = set; then
2.5000 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5001 +else
2.5002 + # Extract the first word of "grep ggrep" to use in msg output
2.5003 +if test -z "$GREP"; then
2.5004 +set dummy grep ggrep; ac_prog_name=$2
2.5005 +if test "${ac_cv_path_GREP+set}" = set; then
2.5006 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5007 +else
2.5008 + ac_path_GREP_found=false
2.5009 +# Loop through the user's path and test for each of PROGNAME-LIST
2.5010 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.5011 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2.5012 +do
2.5013 + IFS=$as_save_IFS
2.5014 + test -z "$as_dir" && as_dir=.
2.5015 + for ac_prog in grep ggrep; do
2.5016 + for ac_exec_ext in '' $ac_executable_extensions; do
2.5017 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2.5018 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2.5019 + # Check for GNU ac_path_GREP and select it if it is found.
2.5020 + # Check for GNU $ac_path_GREP
2.5021 +case `"$ac_path_GREP" --version 2>&1` in
2.5022 +*GNU*)
2.5023 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2.5024 +*)
2.5025 + ac_count=0
2.5026 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2.5027 + while :
2.5028 + do
2.5029 + cat "conftest.in" "conftest.in" >"conftest.tmp"
2.5030 + mv "conftest.tmp" "conftest.in"
2.5031 + cp "conftest.in" "conftest.nl"
2.5032 + echo 'GREP' >> "conftest.nl"
2.5033 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2.5034 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2.5035 + ac_count=`expr $ac_count + 1`
2.5036 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
2.5037 + # Best one so far, save it but keep looking for a better one
2.5038 + ac_cv_path_GREP="$ac_path_GREP"
2.5039 + ac_path_GREP_max=$ac_count
2.5040 + fi
2.5041 + # 10*(2^10) chars as input seems more than enough
2.5042 + test $ac_count -gt 10 && break
2.5043 + done
2.5044 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2.5045 +esac
2.5046 +
2.5047 +
2.5048 + $ac_path_GREP_found && break 3
2.5049 + done
2.5050 +done
2.5051 +
2.5052 +done
2.5053 +IFS=$as_save_IFS
2.5054 +
2.5055 +
2.5056 +fi
2.5057 +
2.5058 +GREP="$ac_cv_path_GREP"
2.5059 +if test -z "$GREP"; then
2.5060 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2.5061 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2.5062 + { (exit 1); exit 1; }; }
2.5063 +fi
2.5064 +
2.5065 +else
2.5066 + ac_cv_path_GREP=$GREP
2.5067 +fi
2.5068 +
2.5069 +
2.5070 +fi
2.5071 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
2.5072 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
2.5073 + GREP="$ac_cv_path_GREP"
2.5074 +
2.5075 +
2.5076 +{ echo "$as_me:$LINENO: checking for egrep" >&5
2.5077 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
2.5078 +if test "${ac_cv_path_EGREP+set}" = set; then
2.5079 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5080 +else
2.5081 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2.5082 + then ac_cv_path_EGREP="$GREP -E"
2.5083 + else
2.5084 + # Extract the first word of "egrep" to use in msg output
2.5085 +if test -z "$EGREP"; then
2.5086 +set dummy egrep; ac_prog_name=$2
2.5087 +if test "${ac_cv_path_EGREP+set}" = set; then
2.5088 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5089 +else
2.5090 + ac_path_EGREP_found=false
2.5091 +# Loop through the user's path and test for each of PROGNAME-LIST
2.5092 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.5093 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2.5094 +do
2.5095 + IFS=$as_save_IFS
2.5096 + test -z "$as_dir" && as_dir=.
2.5097 + for ac_prog in egrep; do
2.5098 + for ac_exec_ext in '' $ac_executable_extensions; do
2.5099 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2.5100 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
2.5101 + # Check for GNU ac_path_EGREP and select it if it is found.
2.5102 + # Check for GNU $ac_path_EGREP
2.5103 +case `"$ac_path_EGREP" --version 2>&1` in
2.5104 +*GNU*)
2.5105 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2.5106 +*)
2.5107 + ac_count=0
2.5108 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2.5109 + while :
2.5110 + do
2.5111 + cat "conftest.in" "conftest.in" >"conftest.tmp"
2.5112 + mv "conftest.tmp" "conftest.in"
2.5113 + cp "conftest.in" "conftest.nl"
2.5114 + echo 'EGREP' >> "conftest.nl"
2.5115 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2.5116 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2.5117 + ac_count=`expr $ac_count + 1`
2.5118 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2.5119 + # Best one so far, save it but keep looking for a better one
2.5120 + ac_cv_path_EGREP="$ac_path_EGREP"
2.5121 + ac_path_EGREP_max=$ac_count
2.5122 + fi
2.5123 + # 10*(2^10) chars as input seems more than enough
2.5124 + test $ac_count -gt 10 && break
2.5125 + done
2.5126 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2.5127 +esac
2.5128 +
2.5129 +
2.5130 + $ac_path_EGREP_found && break 3
2.5131 + done
2.5132 +done
2.5133 +
2.5134 +done
2.5135 +IFS=$as_save_IFS
2.5136 +
2.5137 +
2.5138 +fi
2.5139 +
2.5140 +EGREP="$ac_cv_path_EGREP"
2.5141 +if test -z "$EGREP"; then
2.5142 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2.5143 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2.5144 + { (exit 1); exit 1; }; }
2.5145 +fi
2.5146 +
2.5147 +else
2.5148 + ac_cv_path_EGREP=$EGREP
2.5149 +fi
2.5150 +
2.5151 +
2.5152 + fi
2.5153 +fi
2.5154 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
2.5155 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
2.5156 + EGREP="$ac_cv_path_EGREP"
2.5157 +
2.5158 +
2.5159 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2.5160 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
2.5161 +if test "${ac_cv_header_stdc+set}" = set; then
2.5162 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5163 +else
2.5164 + cat >conftest.$ac_ext <<_ACEOF
2.5165 +/* confdefs.h. */
2.5166 +_ACEOF
2.5167 +cat confdefs.h >>conftest.$ac_ext
2.5168 +cat >>conftest.$ac_ext <<_ACEOF
2.5169 +/* end confdefs.h. */
2.5170 +#include <stdlib.h>
2.5171 +#include <stdarg.h>
2.5172 +#include <string.h>
2.5173 +#include <float.h>
2.5174 +
2.5175 +int
2.5176 +main ()
2.5177 +{
2.5178 +
2.5179 + ;
2.5180 + return 0;
2.5181 +}
2.5182 +_ACEOF
2.5183 +rm -f conftest.$ac_objext
2.5184 +if { (ac_try="$ac_compile"
2.5185 +case "(($ac_try" in
2.5186 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5187 + *) ac_try_echo=$ac_try;;
2.5188 +esac
2.5189 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5190 + (eval "$ac_compile") 2>conftest.er1
2.5191 + ac_status=$?
2.5192 + grep -v '^ *+' conftest.er1 >conftest.err
2.5193 + rm -f conftest.er1
2.5194 + cat conftest.err >&5
2.5195 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5196 + (exit $ac_status); } && {
2.5197 + test -z "$ac_c_werror_flag" ||
2.5198 + test ! -s conftest.err
2.5199 + } && test -s conftest.$ac_objext; then
2.5200 + ac_cv_header_stdc=yes
2.5201 +else
2.5202 + echo "$as_me: failed program was:" >&5
2.5203 +sed 's/^/| /' conftest.$ac_ext >&5
2.5204 +
2.5205 + ac_cv_header_stdc=no
2.5206 +fi
2.5207 +
2.5208 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5209 +
2.5210 +if test $ac_cv_header_stdc = yes; then
2.5211 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2.5212 + cat >conftest.$ac_ext <<_ACEOF
2.5213 +/* confdefs.h. */
2.5214 +_ACEOF
2.5215 +cat confdefs.h >>conftest.$ac_ext
2.5216 +cat >>conftest.$ac_ext <<_ACEOF
2.5217 +/* end confdefs.h. */
2.5218 +#include <string.h>
2.5219 +
2.5220 +_ACEOF
2.5221 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2.5222 + $EGREP "memchr" >/dev/null 2>&1; then
2.5223 + :
2.5224 +else
2.5225 + ac_cv_header_stdc=no
2.5226 +fi
2.5227 +rm -f conftest*
2.5228 +
2.5229 +fi
2.5230 +
2.5231 +if test $ac_cv_header_stdc = yes; then
2.5232 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2.5233 + cat >conftest.$ac_ext <<_ACEOF
2.5234 +/* confdefs.h. */
2.5235 +_ACEOF
2.5236 +cat confdefs.h >>conftest.$ac_ext
2.5237 +cat >>conftest.$ac_ext <<_ACEOF
2.5238 +/* end confdefs.h. */
2.5239 +#include <stdlib.h>
2.5240 +
2.5241 +_ACEOF
2.5242 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2.5243 + $EGREP "free" >/dev/null 2>&1; then
2.5244 + :
2.5245 +else
2.5246 + ac_cv_header_stdc=no
2.5247 +fi
2.5248 +rm -f conftest*
2.5249 +
2.5250 +fi
2.5251 +
2.5252 +if test $ac_cv_header_stdc = yes; then
2.5253 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2.5254 + if test "$cross_compiling" = yes; then
2.5255 + :
2.5256 +else
2.5257 + cat >conftest.$ac_ext <<_ACEOF
2.5258 +/* confdefs.h. */
2.5259 +_ACEOF
2.5260 +cat confdefs.h >>conftest.$ac_ext
2.5261 +cat >>conftest.$ac_ext <<_ACEOF
2.5262 +/* end confdefs.h. */
2.5263 +#include <ctype.h>
2.5264 +#include <stdlib.h>
2.5265 +#if ((' ' & 0x0FF) == 0x020)
2.5266 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2.5267 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2.5268 +#else
2.5269 +# define ISLOWER(c) \
2.5270 + (('a' <= (c) && (c) <= 'i') \
2.5271 + || ('j' <= (c) && (c) <= 'r') \
2.5272 + || ('s' <= (c) && (c) <= 'z'))
2.5273 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2.5274 +#endif
2.5275 +
2.5276 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2.5277 +int
2.5278 +main ()
2.5279 +{
2.5280 + int i;
2.5281 + for (i = 0; i < 256; i++)
2.5282 + if (XOR (islower (i), ISLOWER (i))
2.5283 + || toupper (i) != TOUPPER (i))
2.5284 + return 2;
2.5285 + return 0;
2.5286 +}
2.5287 +_ACEOF
2.5288 +rm -f conftest$ac_exeext
2.5289 +if { (ac_try="$ac_link"
2.5290 +case "(($ac_try" in
2.5291 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5292 + *) ac_try_echo=$ac_try;;
2.5293 +esac
2.5294 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5295 + (eval "$ac_link") 2>&5
2.5296 + ac_status=$?
2.5297 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5298 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2.5299 + { (case "(($ac_try" in
2.5300 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5301 + *) ac_try_echo=$ac_try;;
2.5302 +esac
2.5303 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5304 + (eval "$ac_try") 2>&5
2.5305 + ac_status=$?
2.5306 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5307 + (exit $ac_status); }; }; then
2.5308 + :
2.5309 +else
2.5310 + echo "$as_me: program exited with status $ac_status" >&5
2.5311 +echo "$as_me: failed program was:" >&5
2.5312 +sed 's/^/| /' conftest.$ac_ext >&5
2.5313 +
2.5314 +( exit $ac_status )
2.5315 +ac_cv_header_stdc=no
2.5316 +fi
2.5317 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2.5318 +fi
2.5319 +
2.5320 +
2.5321 +fi
2.5322 +fi
2.5323 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2.5324 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
2.5325 +if test $ac_cv_header_stdc = yes; then
2.5326 +
2.5327 +cat >>confdefs.h <<\_ACEOF
2.5328 +#define STDC_HEADERS 1
2.5329 +_ACEOF
2.5330 +
2.5331 +fi
2.5332 +
2.5333 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2.5334 +
2.5335 +
2.5336 +
2.5337 +
2.5338 +
2.5339 +
2.5340 +
2.5341 +
2.5342 +
2.5343 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2.5344 + inttypes.h stdint.h unistd.h
2.5345 +do
2.5346 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2.5347 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
2.5348 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
2.5349 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2.5350 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5351 +else
2.5352 + cat >conftest.$ac_ext <<_ACEOF
2.5353 +/* confdefs.h. */
2.5354 +_ACEOF
2.5355 +cat confdefs.h >>conftest.$ac_ext
2.5356 +cat >>conftest.$ac_ext <<_ACEOF
2.5357 +/* end confdefs.h. */
2.5358 +$ac_includes_default
2.5359 +
2.5360 +#include <$ac_header>
2.5361 +_ACEOF
2.5362 +rm -f conftest.$ac_objext
2.5363 +if { (ac_try="$ac_compile"
2.5364 +case "(($ac_try" in
2.5365 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5366 + *) ac_try_echo=$ac_try;;
2.5367 +esac
2.5368 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5369 + (eval "$ac_compile") 2>conftest.er1
2.5370 + ac_status=$?
2.5371 + grep -v '^ *+' conftest.er1 >conftest.err
2.5372 + rm -f conftest.er1
2.5373 + cat conftest.err >&5
2.5374 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5375 + (exit $ac_status); } && {
2.5376 + test -z "$ac_c_werror_flag" ||
2.5377 + test ! -s conftest.err
2.5378 + } && test -s conftest.$ac_objext; then
2.5379 + eval "$as_ac_Header=yes"
2.5380 +else
2.5381 + echo "$as_me: failed program was:" >&5
2.5382 +sed 's/^/| /' conftest.$ac_ext >&5
2.5383 +
2.5384 + eval "$as_ac_Header=no"
2.5385 +fi
2.5386 +
2.5387 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5388 +fi
2.5389 +ac_res=`eval echo '${'$as_ac_Header'}'`
2.5390 + { echo "$as_me:$LINENO: result: $ac_res" >&5
2.5391 +echo "${ECHO_T}$ac_res" >&6; }
2.5392 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
2.5393 + cat >>confdefs.h <<_ACEOF
2.5394 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2.5395 +_ACEOF
2.5396 +
2.5397 +fi
2.5398 +
2.5399 +done
2.5400 +
2.5401 +
2.5402 +{ echo "$as_me:$LINENO: checking for void *" >&5
2.5403 +echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
2.5404 +if test "${ac_cv_type_void_p+set}" = set; then
2.5405 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5406 +else
2.5407 + cat >conftest.$ac_ext <<_ACEOF
2.5408 +/* confdefs.h. */
2.5409 +_ACEOF
2.5410 +cat confdefs.h >>conftest.$ac_ext
2.5411 +cat >>conftest.$ac_ext <<_ACEOF
2.5412 +/* end confdefs.h. */
2.5413 +$ac_includes_default
2.5414 +typedef void * ac__type_new_;
2.5415 +int
2.5416 +main ()
2.5417 +{
2.5418 +if ((ac__type_new_ *) 0)
2.5419 + return 0;
2.5420 +if (sizeof (ac__type_new_))
2.5421 + return 0;
2.5422 + ;
2.5423 + return 0;
2.5424 +}
2.5425 +_ACEOF
2.5426 +rm -f conftest.$ac_objext
2.5427 +if { (ac_try="$ac_compile"
2.5428 +case "(($ac_try" in
2.5429 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5430 + *) ac_try_echo=$ac_try;;
2.5431 +esac
2.5432 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5433 + (eval "$ac_compile") 2>conftest.er1
2.5434 + ac_status=$?
2.5435 + grep -v '^ *+' conftest.er1 >conftest.err
2.5436 + rm -f conftest.er1
2.5437 + cat conftest.err >&5
2.5438 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5439 + (exit $ac_status); } && {
2.5440 + test -z "$ac_c_werror_flag" ||
2.5441 + test ! -s conftest.err
2.5442 + } && test -s conftest.$ac_objext; then
2.5443 + ac_cv_type_void_p=yes
2.5444 +else
2.5445 + echo "$as_me: failed program was:" >&5
2.5446 +sed 's/^/| /' conftest.$ac_ext >&5
2.5447 +
2.5448 + ac_cv_type_void_p=no
2.5449 +fi
2.5450 +
2.5451 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5452 +fi
2.5453 +{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
2.5454 +echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
2.5455 +
2.5456 +# The cast to long int works around a bug in the HP C Compiler
2.5457 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
2.5458 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
2.5459 +# This bug is HP SR number 8606223364.
2.5460 +{ echo "$as_me:$LINENO: checking size of void *" >&5
2.5461 +echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
2.5462 +if test "${ac_cv_sizeof_void_p+set}" = set; then
2.5463 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5464 +else
2.5465 + if test "$cross_compiling" = yes; then
2.5466 + # Depending upon the size, compute the lo and hi bounds.
2.5467 +cat >conftest.$ac_ext <<_ACEOF
2.5468 +/* confdefs.h. */
2.5469 +_ACEOF
2.5470 +cat confdefs.h >>conftest.$ac_ext
2.5471 +cat >>conftest.$ac_ext <<_ACEOF
2.5472 +/* end confdefs.h. */
2.5473 +$ac_includes_default
2.5474 + typedef void * ac__type_sizeof_;
2.5475 +int
2.5476 +main ()
2.5477 +{
2.5478 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
2.5479 +test_array [0] = 0
2.5480 +
2.5481 + ;
2.5482 + return 0;
2.5483 +}
2.5484 +_ACEOF
2.5485 +rm -f conftest.$ac_objext
2.5486 +if { (ac_try="$ac_compile"
2.5487 +case "(($ac_try" in
2.5488 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5489 + *) ac_try_echo=$ac_try;;
2.5490 +esac
2.5491 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5492 + (eval "$ac_compile") 2>conftest.er1
2.5493 + ac_status=$?
2.5494 + grep -v '^ *+' conftest.er1 >conftest.err
2.5495 + rm -f conftest.er1
2.5496 + cat conftest.err >&5
2.5497 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5498 + (exit $ac_status); } && {
2.5499 + test -z "$ac_c_werror_flag" ||
2.5500 + test ! -s conftest.err
2.5501 + } && test -s conftest.$ac_objext; then
2.5502 + ac_lo=0 ac_mid=0
2.5503 + while :; do
2.5504 + cat >conftest.$ac_ext <<_ACEOF
2.5505 +/* confdefs.h. */
2.5506 +_ACEOF
2.5507 +cat confdefs.h >>conftest.$ac_ext
2.5508 +cat >>conftest.$ac_ext <<_ACEOF
2.5509 +/* end confdefs.h. */
2.5510 +$ac_includes_default
2.5511 + typedef void * ac__type_sizeof_;
2.5512 +int
2.5513 +main ()
2.5514 +{
2.5515 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
2.5516 +test_array [0] = 0
2.5517 +
2.5518 + ;
2.5519 + return 0;
2.5520 +}
2.5521 +_ACEOF
2.5522 +rm -f conftest.$ac_objext
2.5523 +if { (ac_try="$ac_compile"
2.5524 +case "(($ac_try" in
2.5525 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5526 + *) ac_try_echo=$ac_try;;
2.5527 +esac
2.5528 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5529 + (eval "$ac_compile") 2>conftest.er1
2.5530 + ac_status=$?
2.5531 + grep -v '^ *+' conftest.er1 >conftest.err
2.5532 + rm -f conftest.er1
2.5533 + cat conftest.err >&5
2.5534 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5535 + (exit $ac_status); } && {
2.5536 + test -z "$ac_c_werror_flag" ||
2.5537 + test ! -s conftest.err
2.5538 + } && test -s conftest.$ac_objext; then
2.5539 + ac_hi=$ac_mid; break
2.5540 +else
2.5541 + echo "$as_me: failed program was:" >&5
2.5542 +sed 's/^/| /' conftest.$ac_ext >&5
2.5543 +
2.5544 + ac_lo=`expr $ac_mid + 1`
2.5545 + if test $ac_lo -le $ac_mid; then
2.5546 + ac_lo= ac_hi=
2.5547 + break
2.5548 + fi
2.5549 + ac_mid=`expr 2 '*' $ac_mid + 1`
2.5550 +fi
2.5551 +
2.5552 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5553 + done
2.5554 +else
2.5555 + echo "$as_me: failed program was:" >&5
2.5556 +sed 's/^/| /' conftest.$ac_ext >&5
2.5557 +
2.5558 + cat >conftest.$ac_ext <<_ACEOF
2.5559 +/* confdefs.h. */
2.5560 +_ACEOF
2.5561 +cat confdefs.h >>conftest.$ac_ext
2.5562 +cat >>conftest.$ac_ext <<_ACEOF
2.5563 +/* end confdefs.h. */
2.5564 +$ac_includes_default
2.5565 + typedef void * ac__type_sizeof_;
2.5566 +int
2.5567 +main ()
2.5568 +{
2.5569 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
2.5570 +test_array [0] = 0
2.5571 +
2.5572 + ;
2.5573 + return 0;
2.5574 +}
2.5575 +_ACEOF
2.5576 +rm -f conftest.$ac_objext
2.5577 +if { (ac_try="$ac_compile"
2.5578 +case "(($ac_try" in
2.5579 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5580 + *) ac_try_echo=$ac_try;;
2.5581 +esac
2.5582 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5583 + (eval "$ac_compile") 2>conftest.er1
2.5584 + ac_status=$?
2.5585 + grep -v '^ *+' conftest.er1 >conftest.err
2.5586 + rm -f conftest.er1
2.5587 + cat conftest.err >&5
2.5588 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5589 + (exit $ac_status); } && {
2.5590 + test -z "$ac_c_werror_flag" ||
2.5591 + test ! -s conftest.err
2.5592 + } && test -s conftest.$ac_objext; then
2.5593 + ac_hi=-1 ac_mid=-1
2.5594 + while :; do
2.5595 + cat >conftest.$ac_ext <<_ACEOF
2.5596 +/* confdefs.h. */
2.5597 +_ACEOF
2.5598 +cat confdefs.h >>conftest.$ac_ext
2.5599 +cat >>conftest.$ac_ext <<_ACEOF
2.5600 +/* end confdefs.h. */
2.5601 +$ac_includes_default
2.5602 + typedef void * ac__type_sizeof_;
2.5603 +int
2.5604 +main ()
2.5605 +{
2.5606 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
2.5607 +test_array [0] = 0
2.5608 +
2.5609 + ;
2.5610 + return 0;
2.5611 +}
2.5612 +_ACEOF
2.5613 +rm -f conftest.$ac_objext
2.5614 +if { (ac_try="$ac_compile"
2.5615 +case "(($ac_try" in
2.5616 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5617 + *) ac_try_echo=$ac_try;;
2.5618 +esac
2.5619 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5620 + (eval "$ac_compile") 2>conftest.er1
2.5621 + ac_status=$?
2.5622 + grep -v '^ *+' conftest.er1 >conftest.err
2.5623 + rm -f conftest.er1
2.5624 + cat conftest.err >&5
2.5625 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5626 + (exit $ac_status); } && {
2.5627 + test -z "$ac_c_werror_flag" ||
2.5628 + test ! -s conftest.err
2.5629 + } && test -s conftest.$ac_objext; then
2.5630 + ac_lo=$ac_mid; break
2.5631 +else
2.5632 + echo "$as_me: failed program was:" >&5
2.5633 +sed 's/^/| /' conftest.$ac_ext >&5
2.5634 +
2.5635 + ac_hi=`expr '(' $ac_mid ')' - 1`
2.5636 + if test $ac_mid -le $ac_hi; then
2.5637 + ac_lo= ac_hi=
2.5638 + break
2.5639 + fi
2.5640 + ac_mid=`expr 2 '*' $ac_mid`
2.5641 +fi
2.5642 +
2.5643 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5644 + done
2.5645 +else
2.5646 + echo "$as_me: failed program was:" >&5
2.5647 +sed 's/^/| /' conftest.$ac_ext >&5
2.5648 +
2.5649 + ac_lo= ac_hi=
2.5650 +fi
2.5651 +
2.5652 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5653 +fi
2.5654 +
2.5655 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5656 +# Binary search between lo and hi bounds.
2.5657 +while test "x$ac_lo" != "x$ac_hi"; do
2.5658 + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2.5659 + cat >conftest.$ac_ext <<_ACEOF
2.5660 +/* confdefs.h. */
2.5661 +_ACEOF
2.5662 +cat confdefs.h >>conftest.$ac_ext
2.5663 +cat >>conftest.$ac_ext <<_ACEOF
2.5664 +/* end confdefs.h. */
2.5665 +$ac_includes_default
2.5666 + typedef void * ac__type_sizeof_;
2.5667 +int
2.5668 +main ()
2.5669 +{
2.5670 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
2.5671 +test_array [0] = 0
2.5672 +
2.5673 + ;
2.5674 + return 0;
2.5675 +}
2.5676 +_ACEOF
2.5677 +rm -f conftest.$ac_objext
2.5678 +if { (ac_try="$ac_compile"
2.5679 +case "(($ac_try" in
2.5680 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5681 + *) ac_try_echo=$ac_try;;
2.5682 +esac
2.5683 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5684 + (eval "$ac_compile") 2>conftest.er1
2.5685 + ac_status=$?
2.5686 + grep -v '^ *+' conftest.er1 >conftest.err
2.5687 + rm -f conftest.er1
2.5688 + cat conftest.err >&5
2.5689 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5690 + (exit $ac_status); } && {
2.5691 + test -z "$ac_c_werror_flag" ||
2.5692 + test ! -s conftest.err
2.5693 + } && test -s conftest.$ac_objext; then
2.5694 + ac_hi=$ac_mid
2.5695 +else
2.5696 + echo "$as_me: failed program was:" >&5
2.5697 +sed 's/^/| /' conftest.$ac_ext >&5
2.5698 +
2.5699 + ac_lo=`expr '(' $ac_mid ')' + 1`
2.5700 +fi
2.5701 +
2.5702 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5703 +done
2.5704 +case $ac_lo in
2.5705 +?*) ac_cv_sizeof_void_p=$ac_lo;;
2.5706 +'') if test "$ac_cv_type_void_p" = yes; then
2.5707 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
2.5708 +See \`config.log' for more details." >&5
2.5709 +echo "$as_me: error: cannot compute sizeof (void *)
2.5710 +See \`config.log' for more details." >&2;}
2.5711 + { (exit 77); exit 77; }; }
2.5712 + else
2.5713 + ac_cv_sizeof_void_p=0
2.5714 + fi ;;
2.5715 +esac
2.5716 +else
2.5717 + cat >conftest.$ac_ext <<_ACEOF
2.5718 +/* confdefs.h. */
2.5719 +_ACEOF
2.5720 +cat confdefs.h >>conftest.$ac_ext
2.5721 +cat >>conftest.$ac_ext <<_ACEOF
2.5722 +/* end confdefs.h. */
2.5723 +$ac_includes_default
2.5724 + typedef void * ac__type_sizeof_;
2.5725 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
2.5726 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
2.5727 +#include <stdio.h>
2.5728 +#include <stdlib.h>
2.5729 +int
2.5730 +main ()
2.5731 +{
2.5732 +
2.5733 + FILE *f = fopen ("conftest.val", "w");
2.5734 + if (! f)
2.5735 + return 1;
2.5736 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
2.5737 + {
2.5738 + long int i = longval ();
2.5739 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
2.5740 + return 1;
2.5741 + fprintf (f, "%ld\n", i);
2.5742 + }
2.5743 + else
2.5744 + {
2.5745 + unsigned long int i = ulongval ();
2.5746 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
2.5747 + return 1;
2.5748 + fprintf (f, "%lu\n", i);
2.5749 + }
2.5750 + return ferror (f) || fclose (f) != 0;
2.5751 +
2.5752 + ;
2.5753 + return 0;
2.5754 +}
2.5755 +_ACEOF
2.5756 +rm -f conftest$ac_exeext
2.5757 +if { (ac_try="$ac_link"
2.5758 +case "(($ac_try" in
2.5759 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5760 + *) ac_try_echo=$ac_try;;
2.5761 +esac
2.5762 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5763 + (eval "$ac_link") 2>&5
2.5764 + ac_status=$?
2.5765 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5766 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2.5767 + { (case "(($ac_try" in
2.5768 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5769 + *) ac_try_echo=$ac_try;;
2.5770 +esac
2.5771 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5772 + (eval "$ac_try") 2>&5
2.5773 + ac_status=$?
2.5774 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5775 + (exit $ac_status); }; }; then
2.5776 + ac_cv_sizeof_void_p=`cat conftest.val`
2.5777 +else
2.5778 + echo "$as_me: program exited with status $ac_status" >&5
2.5779 +echo "$as_me: failed program was:" >&5
2.5780 +sed 's/^/| /' conftest.$ac_ext >&5
2.5781 +
2.5782 +( exit $ac_status )
2.5783 +if test "$ac_cv_type_void_p" = yes; then
2.5784 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
2.5785 +See \`config.log' for more details." >&5
2.5786 +echo "$as_me: error: cannot compute sizeof (void *)
2.5787 +See \`config.log' for more details." >&2;}
2.5788 + { (exit 77); exit 77; }; }
2.5789 + else
2.5790 + ac_cv_sizeof_void_p=0
2.5791 + fi
2.5792 +fi
2.5793 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2.5794 +fi
2.5795 +rm -f conftest.val
2.5796 +fi
2.5797 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
2.5798 +echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
2.5799 +
2.5800 +
2.5801 +
2.5802 +cat >>confdefs.h <<_ACEOF
2.5803 +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2.5804 +_ACEOF
2.5805 +
2.5806 +
2.5807 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2.5808 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
2.5809 +if test "${ac_cv_header_stdc+set}" = set; then
2.5810 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5811 +else
2.5812 + cat >conftest.$ac_ext <<_ACEOF
2.5813 +/* confdefs.h. */
2.5814 +_ACEOF
2.5815 +cat confdefs.h >>conftest.$ac_ext
2.5816 +cat >>conftest.$ac_ext <<_ACEOF
2.5817 +/* end confdefs.h. */
2.5818 +#include <stdlib.h>
2.5819 +#include <stdarg.h>
2.5820 +#include <string.h>
2.5821 +#include <float.h>
2.5822 +
2.5823 +int
2.5824 +main ()
2.5825 +{
2.5826 +
2.5827 + ;
2.5828 + return 0;
2.5829 +}
2.5830 +_ACEOF
2.5831 +rm -f conftest.$ac_objext
2.5832 +if { (ac_try="$ac_compile"
2.5833 +case "(($ac_try" in
2.5834 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5835 + *) ac_try_echo=$ac_try;;
2.5836 +esac
2.5837 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5838 + (eval "$ac_compile") 2>conftest.er1
2.5839 + ac_status=$?
2.5840 + grep -v '^ *+' conftest.er1 >conftest.err
2.5841 + rm -f conftest.er1
2.5842 + cat conftest.err >&5
2.5843 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5844 + (exit $ac_status); } && {
2.5845 + test -z "$ac_c_werror_flag" ||
2.5846 + test ! -s conftest.err
2.5847 + } && test -s conftest.$ac_objext; then
2.5848 + ac_cv_header_stdc=yes
2.5849 +else
2.5850 + echo "$as_me: failed program was:" >&5
2.5851 +sed 's/^/| /' conftest.$ac_ext >&5
2.5852 +
2.5853 + ac_cv_header_stdc=no
2.5854 +fi
2.5855 +
2.5856 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5857 +
2.5858 +if test $ac_cv_header_stdc = yes; then
2.5859 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2.5860 + cat >conftest.$ac_ext <<_ACEOF
2.5861 +/* confdefs.h. */
2.5862 +_ACEOF
2.5863 +cat confdefs.h >>conftest.$ac_ext
2.5864 +cat >>conftest.$ac_ext <<_ACEOF
2.5865 +/* end confdefs.h. */
2.5866 +#include <string.h>
2.5867 +
2.5868 +_ACEOF
2.5869 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2.5870 + $EGREP "memchr" >/dev/null 2>&1; then
2.5871 + :
2.5872 +else
2.5873 + ac_cv_header_stdc=no
2.5874 +fi
2.5875 +rm -f conftest*
2.5876 +
2.5877 +fi
2.5878 +
2.5879 +if test $ac_cv_header_stdc = yes; then
2.5880 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2.5881 + cat >conftest.$ac_ext <<_ACEOF
2.5882 +/* confdefs.h. */
2.5883 +_ACEOF
2.5884 +cat confdefs.h >>conftest.$ac_ext
2.5885 +cat >>conftest.$ac_ext <<_ACEOF
2.5886 +/* end confdefs.h. */
2.5887 +#include <stdlib.h>
2.5888 +
2.5889 +_ACEOF
2.5890 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2.5891 + $EGREP "free" >/dev/null 2>&1; then
2.5892 + :
2.5893 +else
2.5894 + ac_cv_header_stdc=no
2.5895 +fi
2.5896 +rm -f conftest*
2.5897 +
2.5898 +fi
2.5899 +
2.5900 +if test $ac_cv_header_stdc = yes; then
2.5901 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2.5902 + if test "$cross_compiling" = yes; then
2.5903 + :
2.5904 +else
2.5905 + cat >conftest.$ac_ext <<_ACEOF
2.5906 +/* confdefs.h. */
2.5907 +_ACEOF
2.5908 +cat confdefs.h >>conftest.$ac_ext
2.5909 +cat >>conftest.$ac_ext <<_ACEOF
2.5910 +/* end confdefs.h. */
2.5911 +#include <ctype.h>
2.5912 +#include <stdlib.h>
2.5913 +#if ((' ' & 0x0FF) == 0x020)
2.5914 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2.5915 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2.5916 +#else
2.5917 +# define ISLOWER(c) \
2.5918 + (('a' <= (c) && (c) <= 'i') \
2.5919 + || ('j' <= (c) && (c) <= 'r') \
2.5920 + || ('s' <= (c) && (c) <= 'z'))
2.5921 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2.5922 +#endif
2.5923 +
2.5924 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2.5925 +int
2.5926 +main ()
2.5927 +{
2.5928 + int i;
2.5929 + for (i = 0; i < 256; i++)
2.5930 + if (XOR (islower (i), ISLOWER (i))
2.5931 + || toupper (i) != TOUPPER (i))
2.5932 + return 2;
2.5933 + return 0;
2.5934 +}
2.5935 +_ACEOF
2.5936 +rm -f conftest$ac_exeext
2.5937 +if { (ac_try="$ac_link"
2.5938 +case "(($ac_try" in
2.5939 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5940 + *) ac_try_echo=$ac_try;;
2.5941 +esac
2.5942 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5943 + (eval "$ac_link") 2>&5
2.5944 + ac_status=$?
2.5945 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5946 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2.5947 + { (case "(($ac_try" in
2.5948 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5949 + *) ac_try_echo=$ac_try;;
2.5950 +esac
2.5951 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5952 + (eval "$ac_try") 2>&5
2.5953 + ac_status=$?
2.5954 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5955 + (exit $ac_status); }; }; then
2.5956 + :
2.5957 +else
2.5958 + echo "$as_me: program exited with status $ac_status" >&5
2.5959 +echo "$as_me: failed program was:" >&5
2.5960 +sed 's/^/| /' conftest.$ac_ext >&5
2.5961 +
2.5962 +( exit $ac_status )
2.5963 +ac_cv_header_stdc=no
2.5964 +fi
2.5965 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2.5966 +fi
2.5967 +
2.5968 +
2.5969 +fi
2.5970 +fi
2.5971 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2.5972 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
2.5973 +if test $ac_cv_header_stdc = yes; then
2.5974 +
2.5975 +cat >>confdefs.h <<\_ACEOF
2.5976 +#define STDC_HEADERS 1
2.5977 +_ACEOF
2.5978 +
2.5979 +fi
2.5980 +
2.5981 +
2.5982 +
2.5983 +depcc="$OBJC" am_compiler_list='gcc3 gcc'
2.5984 +
2.5985 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.5986 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.5987 +if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
2.5988 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5989 +else
2.5990 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.5991 + # We make a subdir and do the tests there. Otherwise we can end up
2.5992 + # making bogus files that we don't know about and never remove. For
2.5993 + # instance it was reported that on HP-UX the gcc test will end up
2.5994 + # making a dummy file named `D' -- because `-MD' means `put the output
2.5995 + # in D'.
2.5996 + mkdir conftest.dir
2.5997 + # Copy depcomp to subdir because otherwise we won't find it if we're
2.5998 + # using a relative directory.
2.5999 + cp "$am_depcomp" conftest.dir
2.6000 + cd conftest.dir
2.6001 + # We will build objects and dependencies in a subdirectory because
2.6002 + # it helps to detect inapplicable dependency modes. For instance
2.6003 + # both Tru64's cc and ICC support -MD to output dependencies as a
2.6004 + # side effect of compilation, but ICC will put the dependencies in
2.6005 + # the current directory while Tru64 will put them in the object
2.6006 + # directory.
2.6007 + mkdir sub
2.6008 +
2.6009 + am_cv_OBJC_dependencies_compiler_type=none
2.6010 + if test "$am_compiler_list" = ""; then
2.6011 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.6012 + fi
2.6013 + for depmode in $am_compiler_list; do
2.6014 + # Setup a source with many dependencies, because some compilers
2.6015 + # like to wrap large dependency lists on column 80 (with \), and
2.6016 + # we should not choose a depcomp mode which is confused by this.
2.6017 + #
2.6018 + # We need to recreate these files for each test, as the compiler may
2.6019 + # overwrite some of them when testing with obscure command lines.
2.6020 + # This happens at least with the AIX C compiler.
2.6021 + : > sub/conftest.c
2.6022 + for i in 1 2 3 4 5 6; do
2.6023 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.6024 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.6025 + # Solaris 8's {/usr,}/bin/sh.
2.6026 + touch sub/conftst$i.h
2.6027 + done
2.6028 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.6029 +
2.6030 + case $depmode in
2.6031 + nosideeffect)
2.6032 + # after this tag, mechanisms are not by side-effect, so they'll
2.6033 + # only be used when explicitly requested
2.6034 + if test "x$enable_dependency_tracking" = xyes; then
2.6035 + continue
2.6036 + else
2.6037 + break
2.6038 + fi
2.6039 + ;;
2.6040 + none) break ;;
2.6041 + esac
2.6042 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.6043 + # mode. It turns out that the SunPro C++ compiler does not properly
2.6044 + # handle `-M -o', and we need to detect this.
2.6045 + if depmode=$depmode \
2.6046 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.6047 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.6048 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.6049 + >/dev/null 2>conftest.err &&
2.6050 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.6051 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.6052 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.6053 + # icc doesn't choke on unknown options, it will just issue warnings
2.6054 + # or remarks (even with -Werror). So we grep stderr for any message
2.6055 + # that says an option was ignored or not supported.
2.6056 + # When given -MP, icc 7.0 and 7.1 complain thusly:
2.6057 + # icc: Command line warning: ignoring option '-M'; no argument required
2.6058 + # The diagnosis changed in icc 8.0:
2.6059 + # icc: Command line remark: option '-MP' not supported
2.6060 + if (grep 'ignoring option' conftest.err ||
2.6061 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.6062 + am_cv_OBJC_dependencies_compiler_type=$depmode
2.6063 + break
2.6064 + fi
2.6065 + fi
2.6066 + done
2.6067 +
2.6068 + cd ..
2.6069 + rm -rf conftest.dir
2.6070 +else
2.6071 + am_cv_OBJC_dependencies_compiler_type=none
2.6072 +fi
2.6073 +
2.6074 +fi
2.6075 +{ echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
2.6076 +echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
2.6077 +OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
2.6078 +
2.6079 +
2.6080 +
2.6081 +if
2.6082 + test "x$enable_dependency_tracking" != xno \
2.6083 + && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
2.6084 + am__fastdepOBJC_TRUE=
2.6085 + am__fastdepOBJC_FALSE='#'
2.6086 +else
2.6087 + am__fastdepOBJC_TRUE='#'
2.6088 + am__fastdepOBJC_FALSE=
2.6089 +fi
2.6090 +
2.6091 +
2.6092 +
2.6093 +# Extract the first word of "pod2man", so it can be a program name with args.
2.6094 +set dummy pod2man; ac_word=$2
2.6095 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6096 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6097 +if test "${ac_cv_path_POD2MAN+set}" = set; then
2.6098 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.6099 +else
2.6100 + case $POD2MAN in
2.6101 + [\\/]* | ?:[\\/]*)
2.6102 + ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
2.6103 + ;;
2.6104 + *)
2.6105 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6106 +for as_dir in $PATH
2.6107 +do
2.6108 + IFS=$as_save_IFS
2.6109 + test -z "$as_dir" && as_dir=.
2.6110 + for ac_exec_ext in '' $ac_executable_extensions; do
2.6111 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6112 + ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
2.6113 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6114 + break 2
2.6115 + fi
2.6116 +done
2.6117 +done
2.6118 +IFS=$as_save_IFS
2.6119 +
2.6120 + ;;
2.6121 +esac
2.6122 +fi
2.6123 +POD2MAN=$ac_cv_path_POD2MAN
2.6124 +if test -n "$POD2MAN"; then
2.6125 + { echo "$as_me:$LINENO: result: $POD2MAN" >&5
2.6126 +echo "${ECHO_T}$POD2MAN" >&6; }
2.6127 +else
2.6128 + { echo "$as_me:$LINENO: result: no" >&5
2.6129 +echo "${ECHO_T}no" >&6; }
2.6130 +fi
2.6131 +
2.6132 +
2.6133 +# Extract the first word of "pod2html", so it can be a program name with args.
2.6134 +set dummy pod2html; ac_word=$2
2.6135 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6136 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6137 +if test "${ac_cv_path_POD2HTML+set}" = set; then
2.6138 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.6139 +else
2.6140 + case $POD2HTML in
2.6141 + [\\/]* | ?:[\\/]*)
2.6142 + ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
2.6143 + ;;
2.6144 + *)
2.6145 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6146 +for as_dir in $PATH
2.6147 +do
2.6148 + IFS=$as_save_IFS
2.6149 + test -z "$as_dir" && as_dir=.
2.6150 + for ac_exec_ext in '' $ac_executable_extensions; do
2.6151 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6152 + ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
2.6153 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6154 + break 2
2.6155 + fi
2.6156 +done
2.6157 +done
2.6158 +IFS=$as_save_IFS
2.6159 +
2.6160 + ;;
2.6161 +esac
2.6162 +fi
2.6163 +POD2HTML=$ac_cv_path_POD2HTML
2.6164 +if test -n "$POD2HTML"; then
2.6165 + { echo "$as_me:$LINENO: result: $POD2HTML" >&5
2.6166 +echo "${ECHO_T}$POD2HTML" >&6; }
2.6167 +else
2.6168 + { echo "$as_me:$LINENO: result: no" >&5
2.6169 +echo "${ECHO_T}no" >&6; }
2.6170 +fi
2.6171 +
2.6172 +
2.6173 +
2.6174 +
2.6175 +cat >>confdefs.h <<_ACEOF
2.6176 +#define BUILD_SED_PROG "${SED}"
2.6177 +_ACEOF
2.6178 +
2.6179 +
2.6180 +cat >>confdefs.h <<_ACEOF
2.6181 +#define BUILD_CPP_PROG "${CPP}"
2.6182 +_ACEOF
2.6183 +
2.6184 +
2.6185 +
2.6186 +# Check whether --enable-strict-warn was given.
2.6187 +if test "${enable_strict_warn+set}" = set; then
2.6188 + enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
2.6189 + enable_strictwarn=yes
2.6190 + fi
2.6191 +fi
2.6192 +
2.6193 +# Check whether --enable-translator was given.
2.6194 +if test "${enable_translator+set}" = set; then
2.6195 + enableval=$enable_translator; true
2.6196 +else
2.6197 + enable_translator=yes
2.6198 +fi
2.6199 +
2.6200 +# Check whether --enable-optimized was given.
2.6201 +if test "${enable_optimized+set}" = set; then
2.6202 + enableval=$enable_optimized; true
2.6203 +else
2.6204 + enable_optimized=yes
2.6205 +fi
2.6206 +
2.6207 +# Check whether --enable-shared was given.
2.6208 +if test "${enable_shared+set}" = set; then
2.6209 + enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
2.6210 +else
2.6211 + enable_shared=cond
2.6212 +fi
2.6213 +
2.6214 +# Check whether --enable-profiled was given.
2.6215 +if test "${enable_profiled+set}" = set; then
2.6216 + enableval=$enable_profiled; if test "$enableval" == "yes"; then
2.6217 + enable_profiled=yes;
2.6218 + fi
2.6219 +fi
2.6220 +
2.6221 +# Check whether --enable-trace was given.
2.6222 +if test "${enable_trace+set}" = set; then
2.6223 + enableval=$enable_trace; if test "$enableval" == "yes"; then
2.6224 +
2.6225 +cat >>confdefs.h <<\_ACEOF
2.6226 +#define ENABLE_TRACE_IO 1
2.6227 +_ACEOF
2.6228 +
2.6229 + fi
2.6230 +fi
2.6231 +
2.6232 +# Check whether --enable-watch was given.
2.6233 +if test "${enable_watch+set}" = set; then
2.6234 + enableval=$enable_watch; if test "$enableval" == "yes"; then
2.6235 +
2.6236 +cat >>confdefs.h <<\_ACEOF
2.6237 +#define ENABLE_WATCH 1
2.6238 +_ACEOF
2.6239 +
2.6240 + fi
2.6241 +fi
2.6242 +
2.6243 +# Check whether --enable-sh4stats was given.
2.6244 +if test "${enable_sh4stats+set}" = set; then
2.6245 + enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
2.6246 +
2.6247 +cat >>confdefs.h <<\_ACEOF
2.6248 +#define ENABLE_SH4STATS 1
2.6249 +_ACEOF
2.6250 +
2.6251 + fi
2.6252 +fi
2.6253 +
2.6254 +
2.6255 +# Check whether --with-osmesa was given.
2.6256 +if test "${with_osmesa+set}" = set; then
2.6257 + withval=$with_osmesa;
2.6258 +else
2.6259 + with_osmesa=no
2.6260 +fi
2.6261 +
2.6262 +
2.6263 +# Check whether --with-gtk was given.
2.6264 +if test "${with_gtk+set}" = set; then
2.6265 + withval=$with_gtk; with_gtk=yes
2.6266 +else
2.6267 + with_gtk=x11
2.6268 +fi
2.6269 +
2.6270 +
2.6271 +# Check whether --with-esd was given.
2.6272 +if test "${with_esd+set}" = set; then
2.6273 + withval=$with_esd;
2.6274 +fi
2.6275 +
2.6276 +
2.6277 +# Check whether --with-pulse was given.
2.6278 +if test "${with_pulse+set}" = set; then
2.6279 + withval=$with_pulse;
2.6280 +fi
2.6281 +
2.6282 +
2.6283 +# Check whether --with-sdl was given.
2.6284 +if test "${with_sdl+set}" = set; then
2.6285 + withval=$with_sdl;
2.6286 +fi
2.6287 +
2.6288 +
2.6289 +
2.6290 +# Check whether --with-sysroot was given.
2.6291 +if test "${with_sysroot+set}" = set; then
2.6292 + withval=$with_sysroot;
2.6293 + if test -d "$with_sysroot/lib/pkgconfig"; then
2.6294 + LDFLAGS="$LDFLAGS -L$with_sysroot/lib"
2.6295 + CPPFLAGS="$CPPFLAGS -I$with_sysroot/include"
2.6296 + BUILD_PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
2.6297 + TARGET_PKG_CONFIG_LIBDIR="$with_sysroot/lib/pkgconfig"
2.6298 + PKG_CONFIG_LIBDIR="$TARGET_PKG_CONFIG_LIBDIR"
2.6299 + export PKG_CONFIG_LIBDIR;
2.6300 + else
2.6301 + { { echo "$as_me:$LINENO: error: pkg-config directory $with_sysroot/lib/pkgconfig not found, when using --with-sysroot=$with_sysroot option
2.6302 +See \`config.log' for more details." >&5
2.6303 +echo "$as_me: error: pkg-config directory $with_sysroot/lib/pkgconfig not found, when using --with-sysroot=$with_sysroot option
2.6304 +See \`config.log' for more details." >&2;}
2.6305 + { (exit 1); exit 1; }; }
2.6306 + fi
2.6307 +
2.6308 +fi
2.6309 +
2.6310 +
2.6311 +
2.6312
2.6313
2.6314 # Check whether --with-android was given.
2.6315 @@ -2748,7 +8989,6 @@
2.6316 CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
2.6317 LD="$ANDROID_NDK_BIN/${host_alias}-ld"
2.6318 AR="$ANDROID_NDK_BIN/${host_alias}-ar"
2.6319 - GDB="$ANDROID_NDK_BIN/${host_alias}-gdb"
2.6320 RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
2.6321 STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
2.6322 OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
2.6323 @@ -2763,7 +9003,6 @@
2.6324
2.6325
2.6326
2.6327 -
2.6328 ANDROID_BUILD=yes
2.6329 cross_compiling=yes
2.6330 fi
2.6331 @@ -2781,6234 +9020,11 @@
2.6332
2.6333
2.6334
2.6335 -DEPDIR="${am__leading_dot}deps"
2.6336 -
2.6337 -ac_config_commands="$ac_config_commands depfiles"
2.6338 -
2.6339 -
2.6340 -am_make=${MAKE-make}
2.6341 -cat > confinc << 'END'
2.6342 -am__doit:
2.6343 - @echo done
2.6344 -.PHONY: am__doit
2.6345 -END
2.6346 -# If we don't find an include directive, just comment out the code.
2.6347 -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2.6348 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2.6349 -am__include="#"
2.6350 -am__quote=
2.6351 -_am_result=none
2.6352 -# First try GNU make style include.
2.6353 -echo "include confinc" > confmf
2.6354 -# We grep out `Entering directory' and `Leaving directory'
2.6355 -# messages which can occur if `w' ends up in MAKEFLAGS.
2.6356 -# In particular we don't look at `^make:' because GNU make might
2.6357 -# be invoked under some other name (usually "gmake"), in which
2.6358 -# case it prints its new name instead of `make'.
2.6359 -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2.6360 - am__include=include
2.6361 - am__quote=
2.6362 - _am_result=GNU
2.6363 -fi
2.6364 -# Now try BSD make style include.
2.6365 -if test "$am__include" = "#"; then
2.6366 - echo '.include "confinc"' > confmf
2.6367 - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2.6368 - am__include=.include
2.6369 - am__quote="\""
2.6370 - _am_result=BSD
2.6371 - fi
2.6372 -fi
2.6373 -
2.6374 -
2.6375 -{ echo "$as_me:$LINENO: result: $_am_result" >&5
2.6376 -echo "${ECHO_T}$_am_result" >&6; }
2.6377 -rm -f confinc confmf
2.6378 -
2.6379 -# Check whether --enable-dependency-tracking was given.
2.6380 -if test "${enable_dependency_tracking+set}" = set; then
2.6381 - enableval=$enable_dependency_tracking;
2.6382 -fi
2.6383 -
2.6384 -if test "x$enable_dependency_tracking" != xno; then
2.6385 - am_depcomp="$ac_aux_dir/depcomp"
2.6386 - AMDEPBACKSLASH='\'
2.6387 -fi
2.6388 -
2.6389 -
2.6390 -if test "x$enable_dependency_tracking" != xno; then
2.6391 - AMDEP_TRUE=
2.6392 - AMDEP_FALSE='#'
2.6393 -else
2.6394 - AMDEP_TRUE='#'
2.6395 - AMDEP_FALSE=
2.6396 -fi
2.6397 -
2.6398 -
2.6399 -
2.6400 -ac_ext=c
2.6401 -ac_cpp='$CPP $CPPFLAGS'
2.6402 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.6403 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.6404 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.6405 -if test -n "$ac_tool_prefix"; then
2.6406 - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2.6407 -set dummy ${ac_tool_prefix}gcc; ac_word=$2
2.6408 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6409 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6410 -if test "${ac_cv_prog_CC+set}" = set; then
2.6411 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6412 -else
2.6413 - if test -n "$CC"; then
2.6414 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.6415 -else
2.6416 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6417 -for as_dir in $PATH
2.6418 -do
2.6419 - IFS=$as_save_IFS
2.6420 - test -z "$as_dir" && as_dir=.
2.6421 - for ac_exec_ext in '' $ac_executable_extensions; do
2.6422 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6423 - ac_cv_prog_CC="${ac_tool_prefix}gcc"
2.6424 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6425 - break 2
2.6426 - fi
2.6427 -done
2.6428 -done
2.6429 -IFS=$as_save_IFS
2.6430 -
2.6431 -fi
2.6432 -fi
2.6433 -CC=$ac_cv_prog_CC
2.6434 -if test -n "$CC"; then
2.6435 - { echo "$as_me:$LINENO: result: $CC" >&5
2.6436 -echo "${ECHO_T}$CC" >&6; }
2.6437 -else
2.6438 - { echo "$as_me:$LINENO: result: no" >&5
2.6439 -echo "${ECHO_T}no" >&6; }
2.6440 -fi
2.6441 -
2.6442 -
2.6443 -fi
2.6444 -if test -z "$ac_cv_prog_CC"; then
2.6445 - ac_ct_CC=$CC
2.6446 - # Extract the first word of "gcc", so it can be a program name with args.
2.6447 -set dummy gcc; ac_word=$2
2.6448 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6449 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6450 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.6451 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6452 -else
2.6453 - if test -n "$ac_ct_CC"; then
2.6454 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.6455 -else
2.6456 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6457 -for as_dir in $PATH
2.6458 -do
2.6459 - IFS=$as_save_IFS
2.6460 - test -z "$as_dir" && as_dir=.
2.6461 - for ac_exec_ext in '' $ac_executable_extensions; do
2.6462 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6463 - ac_cv_prog_ac_ct_CC="gcc"
2.6464 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6465 - break 2
2.6466 - fi
2.6467 -done
2.6468 -done
2.6469 -IFS=$as_save_IFS
2.6470 -
2.6471 -fi
2.6472 -fi
2.6473 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.6474 -if test -n "$ac_ct_CC"; then
2.6475 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.6476 -echo "${ECHO_T}$ac_ct_CC" >&6; }
2.6477 -else
2.6478 - { echo "$as_me:$LINENO: result: no" >&5
2.6479 -echo "${ECHO_T}no" >&6; }
2.6480 -fi
2.6481 -
2.6482 - if test "x$ac_ct_CC" = x; then
2.6483 - CC=""
2.6484 - else
2.6485 - case $cross_compiling:$ac_tool_warned in
2.6486 -yes:)
2.6487 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.6488 -whose name does not start with the host triplet. If you think this
2.6489 -configuration is useful to you, please write to autoconf@gnu.org." >&5
2.6490 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.6491 -whose name does not start with the host triplet. If you think this
2.6492 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.6493 -ac_tool_warned=yes ;;
2.6494 -esac
2.6495 - CC=$ac_ct_CC
2.6496 - fi
2.6497 -else
2.6498 - CC="$ac_cv_prog_CC"
2.6499 -fi
2.6500 -
2.6501 -if test -z "$CC"; then
2.6502 - if test -n "$ac_tool_prefix"; then
2.6503 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2.6504 -set dummy ${ac_tool_prefix}cc; ac_word=$2
2.6505 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6506 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6507 -if test "${ac_cv_prog_CC+set}" = set; then
2.6508 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6509 -else
2.6510 - if test -n "$CC"; then
2.6511 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.6512 -else
2.6513 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6514 -for as_dir in $PATH
2.6515 -do
2.6516 - IFS=$as_save_IFS
2.6517 - test -z "$as_dir" && as_dir=.
2.6518 - for ac_exec_ext in '' $ac_executable_extensions; do
2.6519 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6520 - ac_cv_prog_CC="${ac_tool_prefix}cc"
2.6521 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6522 - break 2
2.6523 - fi
2.6524 -done
2.6525 -done
2.6526 -IFS=$as_save_IFS
2.6527 -
2.6528 -fi
2.6529 -fi
2.6530 -CC=$ac_cv_prog_CC
2.6531 -if test -n "$CC"; then
2.6532 - { echo "$as_me:$LINENO: result: $CC" >&5
2.6533 -echo "${ECHO_T}$CC" >&6; }
2.6534 -else
2.6535 - { echo "$as_me:$LINENO: result: no" >&5
2.6536 -echo "${ECHO_T}no" >&6; }
2.6537 -fi
2.6538 -
2.6539 -
2.6540 - fi
2.6541 -fi
2.6542 -if test -z "$CC"; then
2.6543 - # Extract the first word of "cc", so it can be a program name with args.
2.6544 -set dummy cc; ac_word=$2
2.6545 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6546 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6547 -if test "${ac_cv_prog_CC+set}" = set; then
2.6548 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6549 -else
2.6550 - if test -n "$CC"; then
2.6551 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.6552 -else
2.6553 - ac_prog_rejected=no
2.6554 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6555 -for as_dir in $PATH
2.6556 -do
2.6557 - IFS=$as_save_IFS
2.6558 - test -z "$as_dir" && as_dir=.
2.6559 - for ac_exec_ext in '' $ac_executable_extensions; do
2.6560 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6561 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2.6562 - ac_prog_rejected=yes
2.6563 - continue
2.6564 - fi
2.6565 - ac_cv_prog_CC="cc"
2.6566 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6567 - break 2
2.6568 - fi
2.6569 -done
2.6570 -done
2.6571 -IFS=$as_save_IFS
2.6572 -
2.6573 -if test $ac_prog_rejected = yes; then
2.6574 - # We found a bogon in the path, so make sure we never use it.
2.6575 - set dummy $ac_cv_prog_CC
2.6576 - shift
2.6577 - if test $# != 0; then
2.6578 - # We chose a different compiler from the bogus one.
2.6579 - # However, it has the same basename, so the bogon will be chosen
2.6580 - # first if we set CC to just the basename; use the full file name.
2.6581 - shift
2.6582 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2.6583 - fi
2.6584 -fi
2.6585 -fi
2.6586 -fi
2.6587 -CC=$ac_cv_prog_CC
2.6588 -if test -n "$CC"; then
2.6589 - { echo "$as_me:$LINENO: result: $CC" >&5
2.6590 -echo "${ECHO_T}$CC" >&6; }
2.6591 -else
2.6592 - { echo "$as_me:$LINENO: result: no" >&5
2.6593 -echo "${ECHO_T}no" >&6; }
2.6594 -fi
2.6595 -
2.6596 -
2.6597 -fi
2.6598 -if test -z "$CC"; then
2.6599 - if test -n "$ac_tool_prefix"; then
2.6600 - for ac_prog in cl.exe
2.6601 - do
2.6602 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.6603 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2.6604 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6605 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6606 -if test "${ac_cv_prog_CC+set}" = set; then
2.6607 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6608 -else
2.6609 - if test -n "$CC"; then
2.6610 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.6611 -else
2.6612 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6613 -for as_dir in $PATH
2.6614 -do
2.6615 - IFS=$as_save_IFS
2.6616 - test -z "$as_dir" && as_dir=.
2.6617 - for ac_exec_ext in '' $ac_executable_extensions; do
2.6618 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6619 - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2.6620 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6621 - break 2
2.6622 - fi
2.6623 -done
2.6624 -done
2.6625 -IFS=$as_save_IFS
2.6626 -
2.6627 -fi
2.6628 -fi
2.6629 -CC=$ac_cv_prog_CC
2.6630 -if test -n "$CC"; then
2.6631 - { echo "$as_me:$LINENO: result: $CC" >&5
2.6632 -echo "${ECHO_T}$CC" >&6; }
2.6633 -else
2.6634 - { echo "$as_me:$LINENO: result: no" >&5
2.6635 -echo "${ECHO_T}no" >&6; }
2.6636 -fi
2.6637 -
2.6638 -
2.6639 - test -n "$CC" && break
2.6640 - done
2.6641 -fi
2.6642 -if test -z "$CC"; then
2.6643 - ac_ct_CC=$CC
2.6644 - for ac_prog in cl.exe
2.6645 -do
2.6646 - # Extract the first word of "$ac_prog", so it can be a program name with args.
2.6647 -set dummy $ac_prog; ac_word=$2
2.6648 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6649 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6650 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.6651 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6652 -else
2.6653 - if test -n "$ac_ct_CC"; then
2.6654 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.6655 -else
2.6656 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6657 -for as_dir in $PATH
2.6658 -do
2.6659 - IFS=$as_save_IFS
2.6660 - test -z "$as_dir" && as_dir=.
2.6661 - for ac_exec_ext in '' $ac_executable_extensions; do
2.6662 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6663 - ac_cv_prog_ac_ct_CC="$ac_prog"
2.6664 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6665 - break 2
2.6666 - fi
2.6667 -done
2.6668 -done
2.6669 -IFS=$as_save_IFS
2.6670 -
2.6671 -fi
2.6672 -fi
2.6673 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.6674 -if test -n "$ac_ct_CC"; then
2.6675 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.6676 -echo "${ECHO_T}$ac_ct_CC" >&6; }
2.6677 -else
2.6678 - { echo "$as_me:$LINENO: result: no" >&5
2.6679 -echo "${ECHO_T}no" >&6; }
2.6680 -fi
2.6681 -
2.6682 -
2.6683 - test -n "$ac_ct_CC" && break
2.6684 -done
2.6685 -
2.6686 - if test "x$ac_ct_CC" = x; then
2.6687 - CC=""
2.6688 - else
2.6689 - case $cross_compiling:$ac_tool_warned in
2.6690 -yes:)
2.6691 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.6692 -whose name does not start with the host triplet. If you think this
2.6693 -configuration is useful to you, please write to autoconf@gnu.org." >&5
2.6694 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.6695 -whose name does not start with the host triplet. If you think this
2.6696 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.6697 -ac_tool_warned=yes ;;
2.6698 -esac
2.6699 - CC=$ac_ct_CC
2.6700 - fi
2.6701 -fi
2.6702 -
2.6703 -fi
2.6704 -
2.6705 -
2.6706 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2.6707 -See \`config.log' for more details." >&5
2.6708 -echo "$as_me: error: no acceptable C compiler found in \$PATH
2.6709 -See \`config.log' for more details." >&2;}
2.6710 - { (exit 1); exit 1; }; }
2.6711 -
2.6712 -# Provide some information about the compiler.
2.6713 -echo "$as_me:$LINENO: checking for C compiler version" >&5
2.6714 -ac_compiler=`set X $ac_compile; echo $2`
2.6715 -{ (ac_try="$ac_compiler --version >&5"
2.6716 -case "(($ac_try" in
2.6717 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.6718 - *) ac_try_echo=$ac_try;;
2.6719 -esac
2.6720 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.6721 - (eval "$ac_compiler --version >&5") 2>&5
2.6722 - ac_status=$?
2.6723 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.6724 - (exit $ac_status); }
2.6725 -{ (ac_try="$ac_compiler -v >&5"
2.6726 -case "(($ac_try" in
2.6727 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.6728 - *) ac_try_echo=$ac_try;;
2.6729 -esac
2.6730 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.6731 - (eval "$ac_compiler -v >&5") 2>&5
2.6732 - ac_status=$?
2.6733 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.6734 - (exit $ac_status); }
2.6735 -{ (ac_try="$ac_compiler -V >&5"
2.6736 -case "(($ac_try" in
2.6737 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.6738 - *) ac_try_echo=$ac_try;;
2.6739 -esac
2.6740 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.6741 - (eval "$ac_compiler -V >&5") 2>&5
2.6742 - ac_status=$?
2.6743 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.6744 - (exit $ac_status); }
2.6745 -
2.6746 -cat >conftest.$ac_ext <<_ACEOF
2.6747 -/* confdefs.h. */
2.6748 -_ACEOF
2.6749 -cat confdefs.h >>conftest.$ac_ext
2.6750 -cat >>conftest.$ac_ext <<_ACEOF
2.6751 -/* end confdefs.h. */
2.6752 -
2.6753 -int
2.6754 -main ()
2.6755 -{
2.6756 -
2.6757 - ;
2.6758 - return 0;
2.6759 -}
2.6760 -_ACEOF
2.6761 -ac_clean_files_save=$ac_clean_files
2.6762 -ac_clean_files="$ac_clean_files a.out a.exe b.out"
2.6763 -# Try to create an executable without -o first, disregard a.out.
2.6764 -# It will help us diagnose broken compilers, and finding out an intuition
2.6765 -# of exeext.
2.6766 -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2.6767 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2.6768 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2.6769 -#
2.6770 -# List of possible output files, starting from the most likely.
2.6771 -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2.6772 -# only as a last resort. b.out is created by i960 compilers.
2.6773 -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2.6774 -#
2.6775 -# The IRIX 6 linker writes into existing files which may not be
2.6776 -# executable, retaining their permissions. Remove them first so a
2.6777 -# subsequent execution test works.
2.6778 -ac_rmfiles=
2.6779 -for ac_file in $ac_files
2.6780 -do
2.6781 - case $ac_file in
2.6782 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2.6783 - * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2.6784 - esac
2.6785 -done
2.6786 -rm -f $ac_rmfiles
2.6787 -
2.6788 -if { (ac_try="$ac_link_default"
2.6789 -case "(($ac_try" in
2.6790 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.6791 - *) ac_try_echo=$ac_try;;
2.6792 -esac
2.6793 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.6794 - (eval "$ac_link_default") 2>&5
2.6795 - ac_status=$?
2.6796 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.6797 - (exit $ac_status); }; then
2.6798 - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2.6799 -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2.6800 -# in a Makefile. We should not override ac_cv_exeext if it was cached,
2.6801 -# so that the user can short-circuit this test for compilers unknown to
2.6802 -# Autoconf.
2.6803 -for ac_file in $ac_files ''
2.6804 -do
2.6805 - test -f "$ac_file" || continue
2.6806 - case $ac_file in
2.6807 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2.6808 - ;;
2.6809 - [ab].out )
2.6810 - # We found the default executable, but exeext='' is most
2.6811 - # certainly right.
2.6812 - break;;
2.6813 - *.* )
2.6814 - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2.6815 - then :; else
2.6816 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2.6817 - fi
2.6818 - # We set ac_cv_exeext here because the later test for it is not
2.6819 - # safe: cross compilers may not add the suffix if given an `-o'
2.6820 - # argument, so we may need to know it at that point already.
2.6821 - # Even if this section looks crufty: it has the advantage of
2.6822 - # actually working.
2.6823 - break;;
2.6824 - * )
2.6825 - break;;
2.6826 - esac
2.6827 -done
2.6828 -test "$ac_cv_exeext" = no && ac_cv_exeext=
2.6829 -
2.6830 -else
2.6831 - ac_file=''
2.6832 -fi
2.6833 -
2.6834 -{ echo "$as_me:$LINENO: result: $ac_file" >&5
2.6835 -echo "${ECHO_T}$ac_file" >&6; }
2.6836 -if test -z "$ac_file"; then
2.6837 - echo "$as_me: failed program was:" >&5
2.6838 -sed 's/^/| /' conftest.$ac_ext >&5
2.6839 -
2.6840 -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2.6841 -See \`config.log' for more details." >&5
2.6842 -echo "$as_me: error: C compiler cannot create executables
2.6843 -See \`config.log' for more details." >&2;}
2.6844 - { (exit 77); exit 77; }; }
2.6845 -fi
2.6846 -
2.6847 -ac_exeext=$ac_cv_exeext
2.6848 -
2.6849 -# Check that the compiler produces executables we can run. If not, either
2.6850 -# the compiler is broken, or we cross compile.
2.6851 -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2.6852 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2.6853 -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2.6854 -# If not cross compiling, check that we can run a simple program.
2.6855 -if test "$cross_compiling" != yes; then
2.6856 - if { ac_try='./$ac_file'
2.6857 - { (case "(($ac_try" in
2.6858 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.6859 - *) ac_try_echo=$ac_try;;
2.6860 -esac
2.6861 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.6862 - (eval "$ac_try") 2>&5
2.6863 - ac_status=$?
2.6864 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.6865 - (exit $ac_status); }; }; then
2.6866 - cross_compiling=no
2.6867 - else
2.6868 - if test "$cross_compiling" = maybe; then
2.6869 - cross_compiling=yes
2.6870 - else
2.6871 - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2.6872 -If you meant to cross compile, use \`--host'.
2.6873 -See \`config.log' for more details." >&5
2.6874 -echo "$as_me: error: cannot run C compiled programs.
2.6875 -If you meant to cross compile, use \`--host'.
2.6876 -See \`config.log' for more details." >&2;}
2.6877 - { (exit 1); exit 1; }; }
2.6878 - fi
2.6879 - fi
2.6880 -fi
2.6881 -{ echo "$as_me:$LINENO: result: yes" >&5
2.6882 -echo "${ECHO_T}yes" >&6; }
2.6883 -
2.6884 -rm -f a.out a.exe conftest$ac_cv_exeext b.out
2.6885 -ac_clean_files=$ac_clean_files_save
2.6886 -# Check that the compiler produces executables we can run. If not, either
2.6887 -# the compiler is broken, or we cross compile.
2.6888 -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2.6889 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2.6890 -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2.6891 -echo "${ECHO_T}$cross_compiling" >&6; }
2.6892 -
2.6893 -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2.6894 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2.6895 -if { (ac_try="$ac_link"
2.6896 -case "(($ac_try" in
2.6897 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.6898 - *) ac_try_echo=$ac_try;;
2.6899 -esac
2.6900 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.6901 - (eval "$ac_link") 2>&5
2.6902 - ac_status=$?
2.6903 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.6904 - (exit $ac_status); }; then
2.6905 - # If both `conftest.exe' and `conftest' are `present' (well, observable)
2.6906 -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2.6907 -# work properly (i.e., refer to `conftest.exe'), while it won't with
2.6908 -# `rm'.
2.6909 -for ac_file in conftest.exe conftest conftest.*; do
2.6910 - test -f "$ac_file" || continue
2.6911 - case $ac_file in
2.6912 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2.6913 - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2.6914 - break;;
2.6915 - * ) break;;
2.6916 - esac
2.6917 -done
2.6918 -else
2.6919 - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2.6920 -See \`config.log' for more details." >&5
2.6921 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2.6922 -See \`config.log' for more details." >&2;}
2.6923 - { (exit 1); exit 1; }; }
2.6924 -fi
2.6925 -
2.6926 -rm -f conftest$ac_cv_exeext
2.6927 -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2.6928 -echo "${ECHO_T}$ac_cv_exeext" >&6; }
2.6929 -
2.6930 -rm -f conftest.$ac_ext
2.6931 -EXEEXT=$ac_cv_exeext
2.6932 -ac_exeext=$EXEEXT
2.6933 -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2.6934 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2.6935 -if test "${ac_cv_objext+set}" = set; then
2.6936 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6937 -else
2.6938 - cat >conftest.$ac_ext <<_ACEOF
2.6939 -/* confdefs.h. */
2.6940 -_ACEOF
2.6941 -cat confdefs.h >>conftest.$ac_ext
2.6942 -cat >>conftest.$ac_ext <<_ACEOF
2.6943 -/* end confdefs.h. */
2.6944 -
2.6945 -int
2.6946 -main ()
2.6947 -{
2.6948 -
2.6949 - ;
2.6950 - return 0;
2.6951 -}
2.6952 -_ACEOF
2.6953 -rm -f conftest.o conftest.obj
2.6954 -if { (ac_try="$ac_compile"
2.6955 -case "(($ac_try" in
2.6956 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.6957 - *) ac_try_echo=$ac_try;;
2.6958 -esac
2.6959 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.6960 - (eval "$ac_compile") 2>&5
2.6961 - ac_status=$?
2.6962 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.6963 - (exit $ac_status); }; then
2.6964 - for ac_file in conftest.o conftest.obj conftest.*; do
2.6965 - test -f "$ac_file" || continue;
2.6966 - case $ac_file in
2.6967 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2.6968 - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2.6969 - break;;
2.6970 - esac
2.6971 -done
2.6972 -else
2.6973 - echo "$as_me: failed program was:" >&5
2.6974 -sed 's/^/| /' conftest.$ac_ext >&5
2.6975 -
2.6976 -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2.6977 -See \`config.log' for more details." >&5
2.6978 -echo "$as_me: error: cannot compute suffix of object files: cannot compile
2.6979 -See \`config.log' for more details." >&2;}
2.6980 - { (exit 1); exit 1; }; }
2.6981 -fi
2.6982 -
2.6983 -rm -f conftest.$ac_cv_objext conftest.$ac_ext
2.6984 -fi
2.6985 -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2.6986 -echo "${ECHO_T}$ac_cv_objext" >&6; }
2.6987 -OBJEXT=$ac_cv_objext
2.6988 -ac_objext=$OBJEXT
2.6989 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2.6990 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2.6991 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
2.6992 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6993 -else
2.6994 - cat >conftest.$ac_ext <<_ACEOF
2.6995 -/* confdefs.h. */
2.6996 -_ACEOF
2.6997 -cat confdefs.h >>conftest.$ac_ext
2.6998 -cat >>conftest.$ac_ext <<_ACEOF
2.6999 -/* end confdefs.h. */
2.7000 -
2.7001 -int
2.7002 -main ()
2.7003 -{
2.7004 -#ifndef __GNUC__
2.7005 - choke me
2.7006 -#endif
2.7007 -
2.7008 - ;
2.7009 - return 0;
2.7010 -}
2.7011 -_ACEOF
2.7012 -rm -f conftest.$ac_objext
2.7013 -if { (ac_try="$ac_compile"
2.7014 -case "(($ac_try" in
2.7015 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7016 - *) ac_try_echo=$ac_try;;
2.7017 -esac
2.7018 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7019 - (eval "$ac_compile") 2>conftest.er1
2.7020 - ac_status=$?
2.7021 - grep -v '^ *+' conftest.er1 >conftest.err
2.7022 - rm -f conftest.er1
2.7023 - cat conftest.err >&5
2.7024 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7025 - (exit $ac_status); } && {
2.7026 - test -z "$ac_c_werror_flag" ||
2.7027 - test ! -s conftest.err
2.7028 - } && test -s conftest.$ac_objext; then
2.7029 - ac_compiler_gnu=yes
2.7030 -else
2.7031 - echo "$as_me: failed program was:" >&5
2.7032 -sed 's/^/| /' conftest.$ac_ext >&5
2.7033 -
2.7034 - ac_compiler_gnu=no
2.7035 -fi
2.7036 -
2.7037 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.7038 -ac_cv_c_compiler_gnu=$ac_compiler_gnu
2.7039 -
2.7040 -fi
2.7041 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2.7042 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2.7043 -GCC=`test $ac_compiler_gnu = yes && echo yes`
2.7044 -ac_test_CFLAGS=${CFLAGS+set}
2.7045 -ac_save_CFLAGS=$CFLAGS
2.7046 -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2.7047 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2.7048 -if test "${ac_cv_prog_cc_g+set}" = set; then
2.7049 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7050 -else
2.7051 - ac_save_c_werror_flag=$ac_c_werror_flag
2.7052 - ac_c_werror_flag=yes
2.7053 - ac_cv_prog_cc_g=no
2.7054 - CFLAGS="-g"
2.7055 - cat >conftest.$ac_ext <<_ACEOF
2.7056 -/* confdefs.h. */
2.7057 -_ACEOF
2.7058 -cat confdefs.h >>conftest.$ac_ext
2.7059 -cat >>conftest.$ac_ext <<_ACEOF
2.7060 -/* end confdefs.h. */
2.7061 -
2.7062 -int
2.7063 -main ()
2.7064 -{
2.7065 -
2.7066 - ;
2.7067 - return 0;
2.7068 -}
2.7069 -_ACEOF
2.7070 -rm -f conftest.$ac_objext
2.7071 -if { (ac_try="$ac_compile"
2.7072 -case "(($ac_try" in
2.7073 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7074 - *) ac_try_echo=$ac_try;;
2.7075 -esac
2.7076 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7077 - (eval "$ac_compile") 2>conftest.er1
2.7078 - ac_status=$?
2.7079 - grep -v '^ *+' conftest.er1 >conftest.err
2.7080 - rm -f conftest.er1
2.7081 - cat conftest.err >&5
2.7082 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7083 - (exit $ac_status); } && {
2.7084 - test -z "$ac_c_werror_flag" ||
2.7085 - test ! -s conftest.err
2.7086 - } && test -s conftest.$ac_objext; then
2.7087 - ac_cv_prog_cc_g=yes
2.7088 -else
2.7089 - echo "$as_me: failed program was:" >&5
2.7090 -sed 's/^/| /' conftest.$ac_ext >&5
2.7091 -
2.7092 - CFLAGS=""
2.7093 - cat >conftest.$ac_ext <<_ACEOF
2.7094 -/* confdefs.h. */
2.7095 -_ACEOF
2.7096 -cat confdefs.h >>conftest.$ac_ext
2.7097 -cat >>conftest.$ac_ext <<_ACEOF
2.7098 -/* end confdefs.h. */
2.7099 -
2.7100 -int
2.7101 -main ()
2.7102 -{
2.7103 -
2.7104 - ;
2.7105 - return 0;
2.7106 -}
2.7107 -_ACEOF
2.7108 -rm -f conftest.$ac_objext
2.7109 -if { (ac_try="$ac_compile"
2.7110 -case "(($ac_try" in
2.7111 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7112 - *) ac_try_echo=$ac_try;;
2.7113 -esac
2.7114 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7115 - (eval "$ac_compile") 2>conftest.er1
2.7116 - ac_status=$?
2.7117 - grep -v '^ *+' conftest.er1 >conftest.err
2.7118 - rm -f conftest.er1
2.7119 - cat conftest.err >&5
2.7120 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7121 - (exit $ac_status); } && {
2.7122 - test -z "$ac_c_werror_flag" ||
2.7123 - test ! -s conftest.err
2.7124 - } && test -s conftest.$ac_objext; then
2.7125 - :
2.7126 -else
2.7127 - echo "$as_me: failed program was:" >&5
2.7128 -sed 's/^/| /' conftest.$ac_ext >&5
2.7129 -
2.7130 - ac_c_werror_flag=$ac_save_c_werror_flag
2.7131 - CFLAGS="-g"
2.7132 - cat >conftest.$ac_ext <<_ACEOF
2.7133 -/* confdefs.h. */
2.7134 -_ACEOF
2.7135 -cat confdefs.h >>conftest.$ac_ext
2.7136 -cat >>conftest.$ac_ext <<_ACEOF
2.7137 -/* end confdefs.h. */
2.7138 -
2.7139 -int
2.7140 -main ()
2.7141 -{
2.7142 -
2.7143 - ;
2.7144 - return 0;
2.7145 -}
2.7146 -_ACEOF
2.7147 -rm -f conftest.$ac_objext
2.7148 -if { (ac_try="$ac_compile"
2.7149 -case "(($ac_try" in
2.7150 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7151 - *) ac_try_echo=$ac_try;;
2.7152 -esac
2.7153 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7154 - (eval "$ac_compile") 2>conftest.er1
2.7155 - ac_status=$?
2.7156 - grep -v '^ *+' conftest.er1 >conftest.err
2.7157 - rm -f conftest.er1
2.7158 - cat conftest.err >&5
2.7159 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7160 - (exit $ac_status); } && {
2.7161 - test -z "$ac_c_werror_flag" ||
2.7162 - test ! -s conftest.err
2.7163 - } && test -s conftest.$ac_objext; then
2.7164 - ac_cv_prog_cc_g=yes
2.7165 -else
2.7166 - echo "$as_me: failed program was:" >&5
2.7167 -sed 's/^/| /' conftest.$ac_ext >&5
2.7168 -
2.7169 -
2.7170 -fi
2.7171 -
2.7172 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.7173 -fi
2.7174 -
2.7175 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.7176 -fi
2.7177 -
2.7178 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.7179 - ac_c_werror_flag=$ac_save_c_werror_flag
2.7180 -fi
2.7181 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2.7182 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2.7183 -if test "$ac_test_CFLAGS" = set; then
2.7184 - CFLAGS=$ac_save_CFLAGS
2.7185 -elif test $ac_cv_prog_cc_g = yes; then
2.7186 - if test "$GCC" = yes; then
2.7187 - CFLAGS="-g -O2"
2.7188 - else
2.7189 - CFLAGS="-g"
2.7190 - fi
2.7191 -else
2.7192 - if test "$GCC" = yes; then
2.7193 - CFLAGS="-O2"
2.7194 - else
2.7195 - CFLAGS=
2.7196 - fi
2.7197 -fi
2.7198 -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2.7199 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2.7200 -if test "${ac_cv_prog_cc_c89+set}" = set; then
2.7201 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7202 -else
2.7203 - ac_cv_prog_cc_c89=no
2.7204 -ac_save_CC=$CC
2.7205 -cat >conftest.$ac_ext <<_ACEOF
2.7206 -/* confdefs.h. */
2.7207 -_ACEOF
2.7208 -cat confdefs.h >>conftest.$ac_ext
2.7209 -cat >>conftest.$ac_ext <<_ACEOF
2.7210 -/* end confdefs.h. */
2.7211 -#include <stdarg.h>
2.7212 -#include <stdio.h>
2.7213 -#include <sys/types.h>
2.7214 -#include <sys/stat.h>
2.7215 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.7216 -struct buf { int x; };
2.7217 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.7218 -static char *e (p, i)
2.7219 - char **p;
2.7220 - int i;
2.7221 -{
2.7222 - return p[i];
2.7223 -}
2.7224 -static char *f (char * (*g) (char **, int), char **p, ...)
2.7225 -{
2.7226 - char *s;
2.7227 - va_list v;
2.7228 - va_start (v,p);
2.7229 - s = g (p, va_arg (v,int));
2.7230 - va_end (v);
2.7231 - return s;
2.7232 -}
2.7233 -
2.7234 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.7235 - function prototypes and stuff, but not '\xHH' hex character constants.
2.7236 - These don't provoke an error unfortunately, instead are silently treated
2.7237 - as 'x'. The following induces an error, until -std is added to get
2.7238 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.7239 - array size at least. It's necessary to write '\x00'==0 to get something
2.7240 - that's true only with -std. */
2.7241 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.7242 -
2.7243 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.7244 - inside strings and character constants. */
2.7245 -#define FOO(x) 'x'
2.7246 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.7247 -
2.7248 -int test (int i, double x);
2.7249 -struct s1 {int (*f) (int a);};
2.7250 -struct s2 {int (*f) (double a);};
2.7251 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.7252 -int argc;
2.7253 -char **argv;
2.7254 -int
2.7255 -main ()
2.7256 -{
2.7257 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.7258 - ;
2.7259 - return 0;
2.7260 -}
2.7261 -_ACEOF
2.7262 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.7263 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.7264 -do
2.7265 - CC="$ac_save_CC $ac_arg"
2.7266 - rm -f conftest.$ac_objext
2.7267 -if { (ac_try="$ac_compile"
2.7268 -case "(($ac_try" in
2.7269 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7270 - *) ac_try_echo=$ac_try;;
2.7271 -esac
2.7272 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7273 - (eval "$ac_compile") 2>conftest.er1
2.7274 - ac_status=$?
2.7275 - grep -v '^ *+' conftest.er1 >conftest.err
2.7276 - rm -f conftest.er1
2.7277 - cat conftest.err >&5
2.7278 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7279 - (exit $ac_status); } && {
2.7280 - test -z "$ac_c_werror_flag" ||
2.7281 - test ! -s conftest.err
2.7282 - } && test -s conftest.$ac_objext; then
2.7283 - ac_cv_prog_cc_c89=$ac_arg
2.7284 -else
2.7285 - echo "$as_me: failed program was:" >&5
2.7286 -sed 's/^/| /' conftest.$ac_ext >&5
2.7287 -
2.7288 -
2.7289 -fi
2.7290 -
2.7291 -rm -f core conftest.err conftest.$ac_objext
2.7292 - test "x$ac_cv_prog_cc_c89" != "xno" && break
2.7293 -done
2.7294 -rm -f conftest.$ac_ext
2.7295 -CC=$ac_save_CC
2.7296 -
2.7297 -fi
2.7298 -# AC_CACHE_VAL
2.7299 -case "x$ac_cv_prog_cc_c89" in
2.7300 - x)
2.7301 - { echo "$as_me:$LINENO: result: none needed" >&5
2.7302 -echo "${ECHO_T}none needed" >&6; } ;;
2.7303 - xno)
2.7304 - { echo "$as_me:$LINENO: result: unsupported" >&5
2.7305 -echo "${ECHO_T}unsupported" >&6; } ;;
2.7306 - *)
2.7307 - CC="$CC $ac_cv_prog_cc_c89"
2.7308 - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2.7309 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2.7310 -esac
2.7311 -
2.7312 -
2.7313 -ac_ext=c
2.7314 -ac_cpp='$CPP $CPPFLAGS'
2.7315 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.7316 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.7317 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.7318 -
2.7319 -depcc="$CC" am_compiler_list=
2.7320 -
2.7321 -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.7322 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.7323 -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2.7324 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7325 -else
2.7326 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.7327 - # We make a subdir and do the tests there. Otherwise we can end up
2.7328 - # making bogus files that we don't know about and never remove. For
2.7329 - # instance it was reported that on HP-UX the gcc test will end up
2.7330 - # making a dummy file named `D' -- because `-MD' means `put the output
2.7331 - # in D'.
2.7332 - mkdir conftest.dir
2.7333 - # Copy depcomp to subdir because otherwise we won't find it if we're
2.7334 - # using a relative directory.
2.7335 - cp "$am_depcomp" conftest.dir
2.7336 - cd conftest.dir
2.7337 - # We will build objects and dependencies in a subdirectory because
2.7338 - # it helps to detect inapplicable dependency modes. For instance
2.7339 - # both Tru64's cc and ICC support -MD to output dependencies as a
2.7340 - # side effect of compilation, but ICC will put the dependencies in
2.7341 - # the current directory while Tru64 will put them in the object
2.7342 - # directory.
2.7343 - mkdir sub
2.7344 -
2.7345 - am_cv_CC_dependencies_compiler_type=none
2.7346 - if test "$am_compiler_list" = ""; then
2.7347 - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.7348 - fi
2.7349 - for depmode in $am_compiler_list; do
2.7350 - # Setup a source with many dependencies, because some compilers
2.7351 - # like to wrap large dependency lists on column 80 (with \), and
2.7352 - # we should not choose a depcomp mode which is confused by this.
2.7353 - #
2.7354 - # We need to recreate these files for each test, as the compiler may
2.7355 - # overwrite some of them when testing with obscure command lines.
2.7356 - # This happens at least with the AIX C compiler.
2.7357 - : > sub/conftest.c
2.7358 - for i in 1 2 3 4 5 6; do
2.7359 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.7360 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.7361 - # Solaris 8's {/usr,}/bin/sh.
2.7362 - touch sub/conftst$i.h
2.7363 - done
2.7364 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.7365 -
2.7366 - case $depmode in
2.7367 - nosideeffect)
2.7368 - # after this tag, mechanisms are not by side-effect, so they'll
2.7369 - # only be used when explicitly requested
2.7370 - if test "x$enable_dependency_tracking" = xyes; then
2.7371 - continue
2.7372 - else
2.7373 - break
2.7374 - fi
2.7375 - ;;
2.7376 - none) break ;;
2.7377 - esac
2.7378 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.7379 - # mode. It turns out that the SunPro C++ compiler does not properly
2.7380 - # handle `-M -o', and we need to detect this.
2.7381 - if depmode=$depmode \
2.7382 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.7383 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.7384 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.7385 - >/dev/null 2>conftest.err &&
2.7386 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.7387 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.7388 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.7389 - # icc doesn't choke on unknown options, it will just issue warnings
2.7390 - # or remarks (even with -Werror). So we grep stderr for any message
2.7391 - # that says an option was ignored or not supported.
2.7392 - # When given -MP, icc 7.0 and 7.1 complain thusly:
2.7393 - # icc: Command line warning: ignoring option '-M'; no argument required
2.7394 - # The diagnosis changed in icc 8.0:
2.7395 - # icc: Command line remark: option '-MP' not supported
2.7396 - if (grep 'ignoring option' conftest.err ||
2.7397 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.7398 - am_cv_CC_dependencies_compiler_type=$depmode
2.7399 - break
2.7400 - fi
2.7401 - fi
2.7402 - done
2.7403 -
2.7404 - cd ..
2.7405 - rm -rf conftest.dir
2.7406 -else
2.7407 - am_cv_CC_dependencies_compiler_type=none
2.7408 -fi
2.7409 -
2.7410 -fi
2.7411 -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2.7412 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
2.7413 -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2.7414 -
2.7415 -
2.7416 -
2.7417 -if
2.7418 - test "x$enable_dependency_tracking" != xno \
2.7419 - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2.7420 - am__fastdepCC_TRUE=
2.7421 - am__fastdepCC_FALSE='#'
2.7422 -else
2.7423 - am__fastdepCC_TRUE='#'
2.7424 - am__fastdepCC_FALSE=
2.7425 -fi
2.7426 -
2.7427 -
2.7428 -
2.7429 -
2.7430 - { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2.7431 -echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
2.7432 -if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2.7433 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7434 -else
2.7435 - ac_check_lib_save_LIBS=$LIBS
2.7436 -LIBS="-lcposix $LIBS"
2.7437 -cat >conftest.$ac_ext <<_ACEOF
2.7438 -/* confdefs.h. */
2.7439 -_ACEOF
2.7440 -cat confdefs.h >>conftest.$ac_ext
2.7441 -cat >>conftest.$ac_ext <<_ACEOF
2.7442 -/* end confdefs.h. */
2.7443 -
2.7444 -/* Override any GCC internal prototype to avoid an error.
2.7445 - Use char because int might match the return type of a GCC
2.7446 - builtin and then its argument prototype would still apply. */
2.7447 -#ifdef __cplusplus
2.7448 -extern "C"
2.7449 -#endif
2.7450 -char strerror ();
2.7451 -int
2.7452 -main ()
2.7453 -{
2.7454 -return strerror ();
2.7455 - ;
2.7456 - return 0;
2.7457 -}
2.7458 -_ACEOF
2.7459 -rm -f conftest.$ac_objext conftest$ac_exeext
2.7460 -if { (ac_try="$ac_link"
2.7461 -case "(($ac_try" in
2.7462 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7463 - *) ac_try_echo=$ac_try;;
2.7464 -esac
2.7465 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7466 - (eval "$ac_link") 2>conftest.er1
2.7467 - ac_status=$?
2.7468 - grep -v '^ *+' conftest.er1 >conftest.err
2.7469 - rm -f conftest.er1
2.7470 - cat conftest.err >&5
2.7471 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7472 - (exit $ac_status); } && {
2.7473 - test -z "$ac_c_werror_flag" ||
2.7474 - test ! -s conftest.err
2.7475 - } && test -s conftest$ac_exeext &&
2.7476 - $as_test_x conftest$ac_exeext; then
2.7477 - ac_cv_lib_cposix_strerror=yes
2.7478 -else
2.7479 - echo "$as_me: failed program was:" >&5
2.7480 -sed 's/^/| /' conftest.$ac_ext >&5
2.7481 -
2.7482 - ac_cv_lib_cposix_strerror=no
2.7483 -fi
2.7484 -
2.7485 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2.7486 - conftest$ac_exeext conftest.$ac_ext
2.7487 -LIBS=$ac_check_lib_save_LIBS
2.7488 -fi
2.7489 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2.7490 -echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
2.7491 -if test $ac_cv_lib_cposix_strerror = yes; then
2.7492 - LIBS="$LIBS -lcposix"
2.7493 -fi
2.7494 -
2.7495 -
2.7496 -
2.7497 -ac_ext=c
2.7498 -ac_cpp='$CPP $CPPFLAGS'
2.7499 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.7500 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.7501 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.7502 -if test -n "$ac_tool_prefix"; then
2.7503 - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2.7504 -set dummy ${ac_tool_prefix}gcc; ac_word=$2
2.7505 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.7506 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.7507 -if test "${ac_cv_prog_CC+set}" = set; then
2.7508 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7509 -else
2.7510 - if test -n "$CC"; then
2.7511 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.7512 -else
2.7513 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.7514 -for as_dir in $PATH
2.7515 -do
2.7516 - IFS=$as_save_IFS
2.7517 - test -z "$as_dir" && as_dir=.
2.7518 - for ac_exec_ext in '' $ac_executable_extensions; do
2.7519 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.7520 - ac_cv_prog_CC="${ac_tool_prefix}gcc"
2.7521 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.7522 - break 2
2.7523 - fi
2.7524 -done
2.7525 -done
2.7526 -IFS=$as_save_IFS
2.7527 -
2.7528 -fi
2.7529 -fi
2.7530 -CC=$ac_cv_prog_CC
2.7531 -if test -n "$CC"; then
2.7532 - { echo "$as_me:$LINENO: result: $CC" >&5
2.7533 -echo "${ECHO_T}$CC" >&6; }
2.7534 -else
2.7535 - { echo "$as_me:$LINENO: result: no" >&5
2.7536 -echo "${ECHO_T}no" >&6; }
2.7537 -fi
2.7538 -
2.7539 -
2.7540 -fi
2.7541 -if test -z "$ac_cv_prog_CC"; then
2.7542 - ac_ct_CC=$CC
2.7543 - # Extract the first word of "gcc", so it can be a program name with args.
2.7544 -set dummy gcc; ac_word=$2
2.7545 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.7546 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.7547 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.7548 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7549 -else
2.7550 - if test -n "$ac_ct_CC"; then
2.7551 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.7552 -else
2.7553 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.7554 -for as_dir in $PATH
2.7555 -do
2.7556 - IFS=$as_save_IFS
2.7557 - test -z "$as_dir" && as_dir=.
2.7558 - for ac_exec_ext in '' $ac_executable_extensions; do
2.7559 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.7560 - ac_cv_prog_ac_ct_CC="gcc"
2.7561 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.7562 - break 2
2.7563 - fi
2.7564 -done
2.7565 -done
2.7566 -IFS=$as_save_IFS
2.7567 -
2.7568 -fi
2.7569 -fi
2.7570 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.7571 -if test -n "$ac_ct_CC"; then
2.7572 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.7573 -echo "${ECHO_T}$ac_ct_CC" >&6; }
2.7574 -else
2.7575 - { echo "$as_me:$LINENO: result: no" >&5
2.7576 -echo "${ECHO_T}no" >&6; }
2.7577 -fi
2.7578 -
2.7579 - if test "x$ac_ct_CC" = x; then
2.7580 - CC=""
2.7581 - else
2.7582 - case $cross_compiling:$ac_tool_warned in
2.7583 -yes:)
2.7584 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.7585 -whose name does not start with the host triplet. If you think this
2.7586 -configuration is useful to you, please write to autoconf@gnu.org." >&5
2.7587 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.7588 -whose name does not start with the host triplet. If you think this
2.7589 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.7590 -ac_tool_warned=yes ;;
2.7591 -esac
2.7592 - CC=$ac_ct_CC
2.7593 - fi
2.7594 -else
2.7595 - CC="$ac_cv_prog_CC"
2.7596 -fi
2.7597 -
2.7598 -if test -z "$CC"; then
2.7599 - if test -n "$ac_tool_prefix"; then
2.7600 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2.7601 -set dummy ${ac_tool_prefix}cc; ac_word=$2
2.7602 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.7603 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.7604 -if test "${ac_cv_prog_CC+set}" = set; then
2.7605 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7606 -else
2.7607 - if test -n "$CC"; then
2.7608 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.7609 -else
2.7610 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.7611 -for as_dir in $PATH
2.7612 -do
2.7613 - IFS=$as_save_IFS
2.7614 - test -z "$as_dir" && as_dir=.
2.7615 - for ac_exec_ext in '' $ac_executable_extensions; do
2.7616 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.7617 - ac_cv_prog_CC="${ac_tool_prefix}cc"
2.7618 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.7619 - break 2
2.7620 - fi
2.7621 -done
2.7622 -done
2.7623 -IFS=$as_save_IFS
2.7624 -
2.7625 -fi
2.7626 -fi
2.7627 -CC=$ac_cv_prog_CC
2.7628 -if test -n "$CC"; then
2.7629 - { echo "$as_me:$LINENO: result: $CC" >&5
2.7630 -echo "${ECHO_T}$CC" >&6; }
2.7631 -else
2.7632 - { echo "$as_me:$LINENO: result: no" >&5
2.7633 -echo "${ECHO_T}no" >&6; }
2.7634 -fi
2.7635 -
2.7636 -
2.7637 - fi
2.7638 -fi
2.7639 -if test -z "$CC"; then
2.7640 - # Extract the first word of "cc", so it can be a program name with args.
2.7641 -set dummy cc; ac_word=$2
2.7642 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.7643 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.7644 -if test "${ac_cv_prog_CC+set}" = set; then
2.7645 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7646 -else
2.7647 - if test -n "$CC"; then
2.7648 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.7649 -else
2.7650 - ac_prog_rejected=no
2.7651 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.7652 -for as_dir in $PATH
2.7653 -do
2.7654 - IFS=$as_save_IFS
2.7655 - test -z "$as_dir" && as_dir=.
2.7656 - for ac_exec_ext in '' $ac_executable_extensions; do
2.7657 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.7658 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2.7659 - ac_prog_rejected=yes
2.7660 - continue
2.7661 - fi
2.7662 - ac_cv_prog_CC="cc"
2.7663 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.7664 - break 2
2.7665 - fi
2.7666 -done
2.7667 -done
2.7668 -IFS=$as_save_IFS
2.7669 -
2.7670 -if test $ac_prog_rejected = yes; then
2.7671 - # We found a bogon in the path, so make sure we never use it.
2.7672 - set dummy $ac_cv_prog_CC
2.7673 - shift
2.7674 - if test $# != 0; then
2.7675 - # We chose a different compiler from the bogus one.
2.7676 - # However, it has the same basename, so the bogon will be chosen
2.7677 - # first if we set CC to just the basename; use the full file name.
2.7678 - shift
2.7679 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2.7680 - fi
2.7681 -fi
2.7682 -fi
2.7683 -fi
2.7684 -CC=$ac_cv_prog_CC
2.7685 -if test -n "$CC"; then
2.7686 - { echo "$as_me:$LINENO: result: $CC" >&5
2.7687 -echo "${ECHO_T}$CC" >&6; }
2.7688 -else
2.7689 - { echo "$as_me:$LINENO: result: no" >&5
2.7690 -echo "${ECHO_T}no" >&6; }
2.7691 -fi
2.7692 -
2.7693 -
2.7694 -fi
2.7695 -if test -z "$CC"; then
2.7696 - if test -n "$ac_tool_prefix"; then
2.7697 - for ac_prog in cl.exe
2.7698 - do
2.7699 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.7700 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2.7701 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.7702 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.7703 -if test "${ac_cv_prog_CC+set}" = set; then
2.7704 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7705 -else
2.7706 - if test -n "$CC"; then
2.7707 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.7708 -else
2.7709 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.7710 -for as_dir in $PATH
2.7711 -do
2.7712 - IFS=$as_save_IFS
2.7713 - test -z "$as_dir" && as_dir=.
2.7714 - for ac_exec_ext in '' $ac_executable_extensions; do
2.7715 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.7716 - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2.7717 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.7718 - break 2
2.7719 - fi
2.7720 -done
2.7721 -done
2.7722 -IFS=$as_save_IFS
2.7723 -
2.7724 -fi
2.7725 -fi
2.7726 -CC=$ac_cv_prog_CC
2.7727 -if test -n "$CC"; then
2.7728 - { echo "$as_me:$LINENO: result: $CC" >&5
2.7729 -echo "${ECHO_T}$CC" >&6; }
2.7730 -else
2.7731 - { echo "$as_me:$LINENO: result: no" >&5
2.7732 -echo "${ECHO_T}no" >&6; }
2.7733 -fi
2.7734 -
2.7735 -
2.7736 - test -n "$CC" && break
2.7737 - done
2.7738 -fi
2.7739 -if test -z "$CC"; then
2.7740 - ac_ct_CC=$CC
2.7741 - for ac_prog in cl.exe
2.7742 -do
2.7743 - # Extract the first word of "$ac_prog", so it can be a program name with args.
2.7744 -set dummy $ac_prog; ac_word=$2
2.7745 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.7746 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.7747 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.7748 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7749 -else
2.7750 - if test -n "$ac_ct_CC"; then
2.7751 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.7752 -else
2.7753 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.7754 -for as_dir in $PATH
2.7755 -do
2.7756 - IFS=$as_save_IFS
2.7757 - test -z "$as_dir" && as_dir=.
2.7758 - for ac_exec_ext in '' $ac_executable_extensions; do
2.7759 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.7760 - ac_cv_prog_ac_ct_CC="$ac_prog"
2.7761 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.7762 - break 2
2.7763 - fi
2.7764 -done
2.7765 -done
2.7766 -IFS=$as_save_IFS
2.7767 -
2.7768 -fi
2.7769 -fi
2.7770 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.7771 -if test -n "$ac_ct_CC"; then
2.7772 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.7773 -echo "${ECHO_T}$ac_ct_CC" >&6; }
2.7774 -else
2.7775 - { echo "$as_me:$LINENO: result: no" >&5
2.7776 -echo "${ECHO_T}no" >&6; }
2.7777 -fi
2.7778 -
2.7779 -
2.7780 - test -n "$ac_ct_CC" && break
2.7781 -done
2.7782 -
2.7783 - if test "x$ac_ct_CC" = x; then
2.7784 - CC=""
2.7785 - else
2.7786 - case $cross_compiling:$ac_tool_warned in
2.7787 -yes:)
2.7788 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.7789 -whose name does not start with the host triplet. If you think this
2.7790 -configuration is useful to you, please write to autoconf@gnu.org." >&5
2.7791 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.7792 -whose name does not start with the host triplet. If you think this
2.7793 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.7794 -ac_tool_warned=yes ;;
2.7795 -esac
2.7796 - CC=$ac_ct_CC
2.7797 - fi
2.7798 -fi
2.7799 -
2.7800 -fi
2.7801 -
2.7802 -
2.7803 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2.7804 -See \`config.log' for more details." >&5
2.7805 -echo "$as_me: error: no acceptable C compiler found in \$PATH
2.7806 -See \`config.log' for more details." >&2;}
2.7807 - { (exit 1); exit 1; }; }
2.7808 -
2.7809 -# Provide some information about the compiler.
2.7810 -echo "$as_me:$LINENO: checking for C compiler version" >&5
2.7811 -ac_compiler=`set X $ac_compile; echo $2`
2.7812 -{ (ac_try="$ac_compiler --version >&5"
2.7813 -case "(($ac_try" in
2.7814 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7815 - *) ac_try_echo=$ac_try;;
2.7816 -esac
2.7817 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7818 - (eval "$ac_compiler --version >&5") 2>&5
2.7819 - ac_status=$?
2.7820 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7821 - (exit $ac_status); }
2.7822 -{ (ac_try="$ac_compiler -v >&5"
2.7823 -case "(($ac_try" in
2.7824 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7825 - *) ac_try_echo=$ac_try;;
2.7826 -esac
2.7827 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7828 - (eval "$ac_compiler -v >&5") 2>&5
2.7829 - ac_status=$?
2.7830 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7831 - (exit $ac_status); }
2.7832 -{ (ac_try="$ac_compiler -V >&5"
2.7833 -case "(($ac_try" in
2.7834 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7835 - *) ac_try_echo=$ac_try;;
2.7836 -esac
2.7837 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7838 - (eval "$ac_compiler -V >&5") 2>&5
2.7839 - ac_status=$?
2.7840 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7841 - (exit $ac_status); }
2.7842 -
2.7843 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2.7844 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2.7845 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
2.7846 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7847 -else
2.7848 - cat >conftest.$ac_ext <<_ACEOF
2.7849 -/* confdefs.h. */
2.7850 -_ACEOF
2.7851 -cat confdefs.h >>conftest.$ac_ext
2.7852 -cat >>conftest.$ac_ext <<_ACEOF
2.7853 -/* end confdefs.h. */
2.7854 -
2.7855 -int
2.7856 -main ()
2.7857 -{
2.7858 -#ifndef __GNUC__
2.7859 - choke me
2.7860 -#endif
2.7861 -
2.7862 - ;
2.7863 - return 0;
2.7864 -}
2.7865 -_ACEOF
2.7866 -rm -f conftest.$ac_objext
2.7867 -if { (ac_try="$ac_compile"
2.7868 -case "(($ac_try" in
2.7869 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7870 - *) ac_try_echo=$ac_try;;
2.7871 -esac
2.7872 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7873 - (eval "$ac_compile") 2>conftest.er1
2.7874 - ac_status=$?
2.7875 - grep -v '^ *+' conftest.er1 >conftest.err
2.7876 - rm -f conftest.er1
2.7877 - cat conftest.err >&5
2.7878 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7879 - (exit $ac_status); } && {
2.7880 - test -z "$ac_c_werror_flag" ||
2.7881 - test ! -s conftest.err
2.7882 - } && test -s conftest.$ac_objext; then
2.7883 - ac_compiler_gnu=yes
2.7884 -else
2.7885 - echo "$as_me: failed program was:" >&5
2.7886 -sed 's/^/| /' conftest.$ac_ext >&5
2.7887 -
2.7888 - ac_compiler_gnu=no
2.7889 -fi
2.7890 -
2.7891 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.7892 -ac_cv_c_compiler_gnu=$ac_compiler_gnu
2.7893 -
2.7894 -fi
2.7895 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2.7896 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2.7897 -GCC=`test $ac_compiler_gnu = yes && echo yes`
2.7898 -ac_test_CFLAGS=${CFLAGS+set}
2.7899 -ac_save_CFLAGS=$CFLAGS
2.7900 -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2.7901 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2.7902 -if test "${ac_cv_prog_cc_g+set}" = set; then
2.7903 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7904 -else
2.7905 - ac_save_c_werror_flag=$ac_c_werror_flag
2.7906 - ac_c_werror_flag=yes
2.7907 - ac_cv_prog_cc_g=no
2.7908 - CFLAGS="-g"
2.7909 - cat >conftest.$ac_ext <<_ACEOF
2.7910 -/* confdefs.h. */
2.7911 -_ACEOF
2.7912 -cat confdefs.h >>conftest.$ac_ext
2.7913 -cat >>conftest.$ac_ext <<_ACEOF
2.7914 -/* end confdefs.h. */
2.7915 -
2.7916 -int
2.7917 -main ()
2.7918 -{
2.7919 -
2.7920 - ;
2.7921 - return 0;
2.7922 -}
2.7923 -_ACEOF
2.7924 -rm -f conftest.$ac_objext
2.7925 -if { (ac_try="$ac_compile"
2.7926 -case "(($ac_try" in
2.7927 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7928 - *) ac_try_echo=$ac_try;;
2.7929 -esac
2.7930 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7931 - (eval "$ac_compile") 2>conftest.er1
2.7932 - ac_status=$?
2.7933 - grep -v '^ *+' conftest.er1 >conftest.err
2.7934 - rm -f conftest.er1
2.7935 - cat conftest.err >&5
2.7936 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7937 - (exit $ac_status); } && {
2.7938 - test -z "$ac_c_werror_flag" ||
2.7939 - test ! -s conftest.err
2.7940 - } && test -s conftest.$ac_objext; then
2.7941 - ac_cv_prog_cc_g=yes
2.7942 -else
2.7943 - echo "$as_me: failed program was:" >&5
2.7944 -sed 's/^/| /' conftest.$ac_ext >&5
2.7945 -
2.7946 - CFLAGS=""
2.7947 - cat >conftest.$ac_ext <<_ACEOF
2.7948 -/* confdefs.h. */
2.7949 -_ACEOF
2.7950 -cat confdefs.h >>conftest.$ac_ext
2.7951 -cat >>conftest.$ac_ext <<_ACEOF
2.7952 -/* end confdefs.h. */
2.7953 -
2.7954 -int
2.7955 -main ()
2.7956 -{
2.7957 -
2.7958 - ;
2.7959 - return 0;
2.7960 -}
2.7961 -_ACEOF
2.7962 -rm -f conftest.$ac_objext
2.7963 -if { (ac_try="$ac_compile"
2.7964 -case "(($ac_try" in
2.7965 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7966 - *) ac_try_echo=$ac_try;;
2.7967 -esac
2.7968 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7969 - (eval "$ac_compile") 2>conftest.er1
2.7970 - ac_status=$?
2.7971 - grep -v '^ *+' conftest.er1 >conftest.err
2.7972 - rm -f conftest.er1
2.7973 - cat conftest.err >&5
2.7974 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7975 - (exit $ac_status); } && {
2.7976 - test -z "$ac_c_werror_flag" ||
2.7977 - test ! -s conftest.err
2.7978 - } && test -s conftest.$ac_objext; then
2.7979 - :
2.7980 -else
2.7981 - echo "$as_me: failed program was:" >&5
2.7982 -sed 's/^/| /' conftest.$ac_ext >&5
2.7983 -
2.7984 - ac_c_werror_flag=$ac_save_c_werror_flag
2.7985 - CFLAGS="-g"
2.7986 - cat >conftest.$ac_ext <<_ACEOF
2.7987 -/* confdefs.h. */
2.7988 -_ACEOF
2.7989 -cat confdefs.h >>conftest.$ac_ext
2.7990 -cat >>conftest.$ac_ext <<_ACEOF
2.7991 -/* end confdefs.h. */
2.7992 -
2.7993 -int
2.7994 -main ()
2.7995 -{
2.7996 -
2.7997 - ;
2.7998 - return 0;
2.7999 -}
2.8000 -_ACEOF
2.8001 -rm -f conftest.$ac_objext
2.8002 -if { (ac_try="$ac_compile"
2.8003 -case "(($ac_try" in
2.8004 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.8005 - *) ac_try_echo=$ac_try;;
2.8006 -esac
2.8007 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.8008 - (eval "$ac_compile") 2>conftest.er1
2.8009 - ac_status=$?
2.8010 - grep -v '^ *+' conftest.er1 >conftest.err
2.8011 - rm -f conftest.er1
2.8012 - cat conftest.err >&5
2.8013 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.8014 - (exit $ac_status); } && {
2.8015 - test -z "$ac_c_werror_flag" ||
2.8016 - test ! -s conftest.err
2.8017 - } && test -s conftest.$ac_objext; then
2.8018 - ac_cv_prog_cc_g=yes
2.8019 -else
2.8020 - echo "$as_me: failed program was:" >&5
2.8021 -sed 's/^/| /' conftest.$ac_ext >&5
2.8022 -
2.8023 -
2.8024 -fi
2.8025 -
2.8026 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.8027 -fi
2.8028 -
2.8029 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.8030 -fi
2.8031 -
2.8032 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.8033 - ac_c_werror_flag=$ac_save_c_werror_flag
2.8034 -fi
2.8035 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2.8036 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2.8037 -if test "$ac_test_CFLAGS" = set; then
2.8038 - CFLAGS=$ac_save_CFLAGS
2.8039 -elif test $ac_cv_prog_cc_g = yes; then
2.8040 - if test "$GCC" = yes; then
2.8041 - CFLAGS="-g -O2"
2.8042 - else
2.8043 - CFLAGS="-g"
2.8044 - fi
2.8045 -else
2.8046 - if test "$GCC" = yes; then
2.8047 - CFLAGS="-O2"
2.8048 - else
2.8049 - CFLAGS=
2.8050 - fi
2.8051 -fi
2.8052 -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2.8053 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2.8054 -if test "${ac_cv_prog_cc_c89+set}" = set; then
2.8055 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.8056 -else
2.8057 - ac_cv_prog_cc_c89=no
2.8058 -ac_save_CC=$CC
2.8059 -cat >conftest.$ac_ext <<_ACEOF
2.8060 -/* confdefs.h. */
2.8061 -_ACEOF
2.8062 -cat confdefs.h >>conftest.$ac_ext
2.8063 -cat >>conftest.$ac_ext <<_ACEOF
2.8064 -/* end confdefs.h. */
2.8065 -#include <stdarg.h>
2.8066 -#include <stdio.h>
2.8067 -#include <sys/types.h>
2.8068 -#include <sys/stat.h>
2.8069 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.8070 -struct buf { int x; };
2.8071 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.8072 -static char *e (p, i)
2.8073 - char **p;
2.8074 - int i;
2.8075 -{
2.8076 - return p[i];
2.8077 -}
2.8078 -static char *f (char * (*g) (char **, int), char **p, ...)
2.8079 -{
2.8080 - char *s;
2.8081 - va_list v;
2.8082 - va_start (v,p);
2.8083 - s = g (p, va_arg (v,int));
2.8084 - va_end (v);
2.8085 - return s;
2.8086 -}
2.8087 -
2.8088 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.8089 - function prototypes and stuff, but not '\xHH' hex character constants.
2.8090 - These don't provoke an error unfortunately, instead are silently treated
2.8091 - as 'x'. The following induces an error, until -std is added to get
2.8092 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.8093 - array size at least. It's necessary to write '\x00'==0 to get something
2.8094 - that's true only with -std. */
2.8095 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.8096 -
2.8097 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.8098 - inside strings and character constants. */
2.8099 -#define FOO(x) 'x'
2.8100 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.8101 -
2.8102 -int test (int i, double x);
2.8103 -struct s1 {int (*f) (int a);};
2.8104 -struct s2 {int (*f) (double a);};
2.8105 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.8106 -int argc;
2.8107 -char **argv;
2.8108 -int
2.8109 -main ()
2.8110 -{
2.8111 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.8112 - ;
2.8113 - return 0;
2.8114 -}
2.8115 -_ACEOF
2.8116 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.8117 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.8118 -do
2.8119 - CC="$ac_save_CC $ac_arg"
2.8120 - rm -f conftest.$ac_objext
2.8121 -if { (ac_try="$ac_compile"
2.8122 -case "(($ac_try" in
2.8123 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.8124 - *) ac_try_echo=$ac_try;;
2.8125 -esac
2.8126 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.8127 - (eval "$ac_compile") 2>conftest.er1
2.8128 - ac_status=$?
2.8129 - grep -v '^ *+' conftest.er1 >conftest.err
2.8130 - rm -f conftest.er1
2.8131 - cat conftest.err >&5
2.8132 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.8133 - (exit $ac_status); } && {
2.8134 - test -z "$ac_c_werror_flag" ||
2.8135 - test ! -s conftest.err
2.8136 - } && test -s conftest.$ac_objext; then
2.8137 - ac_cv_prog_cc_c89=$ac_arg
2.8138 -else
2.8139 - echo "$as_me: failed program was:" >&5
2.8140 -sed 's/^/| /' conftest.$ac_ext >&5
2.8141 -
2.8142 -
2.8143 -fi
2.8144 -
2.8145 -rm -f core conftest.err conftest.$ac_objext
2.8146 - test "x$ac_cv_prog_cc_c89" != "xno" && break
2.8147 -done
2.8148 -rm -f conftest.$ac_ext
2.8149 -CC=$ac_save_CC
2.8150 -
2.8151 -fi
2.8152 -# AC_CACHE_VAL
2.8153 -case "x$ac_cv_prog_cc_c89" in
2.8154 - x)
2.8155 - { echo "$as_me:$LINENO: result: none needed" >&5
2.8156 -echo "${ECHO_T}none needed" >&6; } ;;
2.8157 - xno)
2.8158 - { echo "$as_me:$LINENO: result: unsupported" >&5
2.8159 -echo "${ECHO_T}unsupported" >&6; } ;;
2.8160 - *)
2.8161 - CC="$CC $ac_cv_prog_cc_c89"
2.8162 - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2.8163 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2.8164 -esac
2.8165 -
2.8166 -
2.8167 -ac_ext=c
2.8168 -ac_cpp='$CPP $CPPFLAGS'
2.8169 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.8170 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.8171 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.8172 -
2.8173 -depcc="$CC" am_compiler_list=
2.8174 -
2.8175 -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.8176 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.8177 -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2.8178 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.8179 -else
2.8180 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.8181 - # We make a subdir and do the tests there. Otherwise we can end up
2.8182 - # making bogus files that we don't know about and never remove. For
2.8183 - # instance it was reported that on HP-UX the gcc test will end up
2.8184 - # making a dummy file named `D' -- because `-MD' means `put the output
2.8185 - # in D'.
2.8186 - mkdir conftest.dir
2.8187 - # Copy depcomp to subdir because otherwise we won't find it if we're
2.8188 - # using a relative directory.
2.8189 - cp "$am_depcomp" conftest.dir
2.8190 - cd conftest.dir
2.8191 - # We will build objects and dependencies in a subdirectory because
2.8192 - # it helps to detect inapplicable dependency modes. For instance
2.8193 - # both Tru64's cc and ICC support -MD to output dependencies as a
2.8194 - # side effect of compilation, but ICC will put the dependencies in
2.8195 - # the current directory while Tru64 will put them in the object
2.8196 - # directory.
2.8197 - mkdir sub
2.8198 -
2.8199 - am_cv_CC_dependencies_compiler_type=none
2.8200 - if test "$am_compiler_list" = ""; then
2.8201 - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.8202 - fi
2.8203 - for depmode in $am_compiler_list; do
2.8204 - # Setup a source with many dependencies, because some compilers
2.8205 - # like to wrap large dependency lists on column 80 (with \), and
2.8206 - # we should not choose a depcomp mode which is confused by this.
2.8207 - #
2.8208 - # We need to recreate these files for each test, as the compiler may
2.8209 - # overwrite some of them when testing with obscure command lines.
2.8210 - # This happens at least with the AIX C compiler.
2.8211 - : > sub/conftest.c
2.8212 - for i in 1 2 3 4 5 6; do
2.8213 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.8214 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.8215 - # Solaris 8's {/usr,}/bin/sh.
2.8216 - touch sub/conftst$i.h
2.8217 - done
2.8218 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.8219 -
2.8220 - case $depmode in
2.8221 - nosideeffect)
2.8222 - # after this tag, mechanisms are not by side-effect, so they'll
2.8223 - # only be used when explicitly requested
2.8224 - if test "x$enable_dependency_tracking" = xyes; then
2.8225 - continue
2.8226 - else
2.8227 - break
2.8228 - fi
2.8229 - ;;
2.8230 - none) break ;;
2.8231 - esac
2.8232 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.8233 - # mode. It turns out that the SunPro C++ compiler does not properly
2.8234 - # handle `-M -o', and we need to detect this.
2.8235 - if depmode=$depmode \
2.8236 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.8237 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.8238 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.8239 - >/dev/null 2>conftest.err &&
2.8240 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.8241 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.8242 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.8243 - # icc doesn't choke on unknown options, it will just issue warnings
2.8244 - # or remarks (even with -Werror). So we grep stderr for any message
2.8245 - # that says an option was ignored or not supported.
2.8246 - # When given -MP, icc 7.0 and 7.1 complain thusly:
2.8247 - # icc: Command line warning: ignoring option '-M'; no argument required
2.8248 - # The diagnosis changed in icc 8.0:
2.8249 - # icc: Command line remark: option '-MP' not supported
2.8250 - if (grep 'ignoring option' conftest.err ||
2.8251 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.8252 - am_cv_CC_dependencies_compiler_type=$depmode
2.8253 - break
2.8254 - fi
2.8255 - fi
2.8256 - done
2.8257 -
2.8258 - cd ..
2.8259 - rm -rf conftest.dir
2.8260 -else
2.8261 - am_cv_CC_dependencies_compiler_type=none
2.8262 -fi
2.8263 -
2.8264 -fi
2.8265 -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2.8266 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
2.8267 -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2.8268 -
2.8269 -
2.8270 -
2.8271 -if
2.8272 - test "x$enable_dependency_tracking" != xno \
2.8273 - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2.8274 - am__fastdepCC_TRUE=
2.8275 - am__fastdepCC_FALSE='#'
2.8276 -else
2.8277 - am__fastdepCC_TRUE='#'
2.8278 - am__fastdepCC_FALSE=
2.8279 -fi
2.8280 -
2.8281 -
2.8282 -ac_ext=c
2.8283 -ac_cpp='$CPP $CPPFLAGS'
2.8284 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.8285 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.8286 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.8287 -if test -n "$ac_tool_prefix"; then
2.8288 - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2.8289 -set dummy ${ac_tool_prefix}gcc; ac_word=$2
2.8290 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.8291 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.8292 -if test "${ac_cv_prog_CC+set}" = set; then
2.8293 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.8294 -else
2.8295 - if test -n "$CC"; then
2.8296 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.8297 -else
2.8298 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.8299 -for as_dir in $PATH
2.8300 -do
2.8301 - IFS=$as_save_IFS
2.8302 - test -z "$as_dir" && as_dir=.
2.8303 - for ac_exec_ext in '' $ac_executable_extensions; do
2.8304 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.8305 - ac_cv_prog_CC="${ac_tool_prefix}gcc"
2.8306 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.8307 - break 2
2.8308 - fi
2.8309 -done
2.8310 -done
2.8311 -IFS=$as_save_IFS
2.8312 -
2.8313 -fi
2.8314 -fi
2.8315 -CC=$ac_cv_prog_CC
2.8316 -if test -n "$CC"; then
2.8317 - { echo "$as_me:$LINENO: result: $CC" >&5
2.8318 -echo "${ECHO_T}$CC" >&6; }
2.8319 -else
2.8320 - { echo "$as_me:$LINENO: result: no" >&5
2.8321 -echo "${ECHO_T}no" >&6; }
2.8322 -fi
2.8323 -
2.8324 -
2.8325 -fi
2.8326 -if test -z "$ac_cv_prog_CC"; then
2.8327 - ac_ct_CC=$CC
2.8328 - # Extract the first word of "gcc", so it can be a program name with args.
2.8329 -set dummy gcc; ac_word=$2
2.8330 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.8331 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.8332 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.8333 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.8334 -else
2.8335 - if test -n "$ac_ct_CC"; then
2.8336 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.8337 -else
2.8338 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.8339 -for as_dir in $PATH
2.8340 -do
2.8341 - IFS=$as_save_IFS
2.8342 - test -z "$as_dir" && as_dir=.
2.8343 - for ac_exec_ext in '' $ac_executable_extensions; do
2.8344 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.8345 - ac_cv_prog_ac_ct_CC="gcc"
2.8346 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.8347 - break 2
2.8348 - fi
2.8349 -done
2.8350 -done
2.8351 -IFS=$as_save_IFS
2.8352 -
2.8353 -fi
2.8354 -fi
2.8355 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.8356 -if test -n "$ac_ct_CC"; then
2.8357 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.8358 -echo "${ECHO_T}$ac_ct_CC" >&6; }
2.8359 -else
2.8360 - { echo "$as_me:$LINENO: result: no" >&5
2.8361 -echo "${ECHO_T}no" >&6; }
2.8362 -fi
2.8363 -
2.8364 - if test "x$ac_ct_CC" = x; then
2.8365 - CC=""
2.8366 - else
2.8367 - case $cross_compiling:$ac_tool_warned in
2.8368 -yes:)
2.8369 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.8370 -whose name does not start with the host triplet. If you think this
2.8371 -configuration is useful to you, please write to autoconf@gnu.org." >&5
2.8372 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.8373 -whose name does not start with the host triplet. If you think this
2.8374 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.8375 -ac_tool_warned=yes ;;
2.8376 -esac
2.8377 - CC=$ac_ct_CC
2.8378 - fi
2.8379 -else
2.8380 - CC="$ac_cv_prog_CC"
2.8381 -fi
2.8382 -
2.8383 -if test -z "$CC"; then
2.8384 - if test -n "$ac_tool_prefix"; then
2.8385 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2.8386 -set dummy ${ac_tool_prefix}cc; ac_word=$2
2.8387 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.8388 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.8389 -if test "${ac_cv_prog_CC+set}" = set; then
2.8390 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.8391 -else
2.8392 - if test -n "$CC"; then
2.8393 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.8394 -else
2.8395 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.8396 -for as_dir in $PATH
2.8397 -do
2.8398 - IFS=$as_save_IFS
2.8399 - test -z "$as_dir" && as_dir=.
2.8400 - for ac_exec_ext in '' $ac_executable_extensions; do
2.8401 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.8402 - ac_cv_prog_CC="${ac_tool_prefix}cc"
2.8403 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.8404 - break 2
2.8405 - fi
2.8406 -done
2.8407 -done
2.8408 -IFS=$as_save_IFS
2.8409 -
2.8410 -fi
2.8411 -fi
2.8412 -CC=$ac_cv_prog_CC
2.8413 -if test -n "$CC"; then
2.8414 - { echo "$as_me:$LINENO: result: $CC" >&5
2.8415 -echo "${ECHO_T}$CC" >&6; }
2.8416 -else
2.8417 - { echo "$as_me:$LINENO: result: no" >&5
2.8418 -echo "${ECHO_T}no" >&6; }
2.8419 -fi
2.8420 -
2.8421 -
2.8422 - fi
2.8423 -fi
2.8424 -if test -z "$CC"; then
2.8425 - # Extract the first word of "cc", so it can be a program name with args.
2.8426 -set dummy cc; ac_word=$2
2.8427 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.8428 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.8429 -if test "${ac_cv_prog_CC+set}" = set; then
2.8430 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.8431 -else
2.8432 - if test -n "$CC"; then
2.8433 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.8434 -else
2.8435 - ac_prog_rejected=no
2.8436 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.8437 -for as_dir in $PATH
2.8438 -do
2.8439 - IFS=$as_save_IFS
2.8440 - test -z "$as_dir" && as_dir=.
2.8441 - for ac_exec_ext in '' $ac_executable_extensions; do
2.8442 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.8443 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2.8444 - ac_prog_rejected=yes
2.8445 - continue
2.8446 - fi
2.8447 - ac_cv_prog_CC="cc"
2.8448 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.8449 - break 2
2.8450 - fi
2.8451 -done
2.8452 -done
2.8453 -IFS=$as_save_IFS
2.8454 -
2.8455 -if test $ac_prog_rejected = yes; then
2.8456 - # We found a bogon in the path, so make sure we never use it.
2.8457 - set dummy $ac_cv_prog_CC
2.8458 - shift
2.8459 - if test $# != 0; then
2.8460 - # We chose a different compiler from the bogus one.
2.8461 - # However, it has the same basename, so the bogon will be chosen
2.8462 - # first if we set CC to just the basename; use the full file name.
2.8463 - shift
2.8464 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2.8465 - fi
2.8466 -fi
2.8467 -fi
2.8468 -fi
2.8469 -CC=$ac_cv_prog_CC
2.8470 -if test -n "$CC"; then
2.8471 - { echo "$as_me:$LINENO: result: $CC" >&5
2.8472 -echo "${ECHO_T}$CC" >&6; }
2.8473 -else
2.8474 - { echo "$as_me:$LINENO: result: no" >&5
2.8475 -echo "${ECHO_T}no" >&6; }
2.8476 -fi
2.8477 -
2.8478 -
2.8479 -fi
2.8480 -if test -z "$CC"; then
2.8481 - if test -n "$ac_tool_prefix"; then
2.8482 - for ac_prog in cl.exe
2.8483 - do
2.8484 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.8485 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2.8486 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.8487 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.8488 -if test "${ac_cv_prog_CC+set}" = set; then
2.8489 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.8490 -else
2.8491 - if test -n "$CC"; then
2.8492 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.8493 -else
2.8494 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.8495 -for as_dir in $PATH
2.8496 -do
2.8497 - IFS=$as_save_IFS
2.8498 - test -z "$as_dir" && as_dir=.
2.8499 - for ac_exec_ext in '' $ac_executable_extensions; do
2.8500 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.8501 - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2.8502 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.8503 - break 2
2.8504 - fi
2.8505 -done
2.8506 -done
2.8507 -IFS=$as_save_IFS
2.8508 -
2.8509 -fi
2.8510 -fi
2.8511 -CC=$ac_cv_prog_CC
2.8512 -if test -n "$CC"; then
2.8513 - { echo "$as_me:$LINENO: result: $CC" >&5
2.8514 -echo "${ECHO_T}$CC" >&6; }
2.8515 -else
2.8516 - { echo "$as_me:$LINENO: result: no" >&5
2.8517 -echo "${ECHO_T}no" >&6; }
2.8518 -fi
2.8519 -
2.8520 -
2.8521 - test -n "$CC" && break
2.8522 - done
2.8523 -fi
2.8524 -if test -z "$CC"; then
2.8525 - ac_ct_CC=$CC
2.8526 - for ac_prog in cl.exe
2.8527 -do
2.8528 - # Extract the first word of "$ac_prog", so it can be a program name with args.
2.8529 -set dummy $ac_prog; ac_word=$2
2.8530 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.8531 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.8532 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.8533 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.8534 -else
2.8535 - if test -n "$ac_ct_CC"; then
2.8536 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.8537 -else
2.8538 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.8539 -for as_dir in $PATH
2.8540 -do
2.8541 - IFS=$as_save_IFS
2.8542 - test -z "$as_dir" && as_dir=.
2.8543 - for ac_exec_ext in '' $ac_executable_extensions; do
2.8544 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.8545 - ac_cv_prog_ac_ct_CC="$ac_prog"
2.8546 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.8547 - break 2
2.8548 - fi
2.8549 -done
2.8550 -done
2.8551 -IFS=$as_save_IFS
2.8552 -
2.8553 -fi
2.8554 -fi
2.8555 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.8556 -if test -n "$ac_ct_CC"; then
2.8557 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.8558 -echo "${ECHO_T}$ac_ct_CC" >&6; }
2.8559 -else
2.8560 - { echo "$as_me:$LINENO: result: no" >&5
2.8561 -echo "${ECHO_T}no" >&6; }
2.8562 -fi
2.8563 -
2.8564 -
2.8565 - test -n "$ac_ct_CC" && break
2.8566 -done
2.8567 -
2.8568 - if test "x$ac_ct_CC" = x; then
2.8569 - CC=""
2.8570 - else
2.8571 - case $cross_compiling:$ac_tool_warned in
2.8572 -yes:)
2.8573 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.8574 -whose name does not start with the host triplet. If you think this
2.8575 -configuration is useful to you, please write to autoconf@gnu.org." >&5
2.8576 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.8577 -whose name does not start with the host triplet. If you think this
2.8578 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.8579 -ac_tool_warned=yes ;;
2.8580 -esac
2.8581 - CC=$ac_ct_CC
2.8582 - fi
2.8583 -fi
2.8584 -
2.8585 -fi
2.8586 -
2.8587 -
2.8588 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2.8589 -See \`config.log' for more details." >&5
2.8590 -echo "$as_me: error: no acceptable C compiler found in \$PATH
2.8591 -See \`config.log' for more details." >&2;}
2.8592 - { (exit 1); exit 1; }; }
2.8593 -
2.8594 -# Provide some information about the compiler.
2.8595 -echo "$as_me:$LINENO: checking for C compiler version" >&5
2.8596 -ac_compiler=`set X $ac_compile; echo $2`
2.8597 -{ (ac_try="$ac_compiler --version >&5"
2.8598 -case "(($ac_try" in
2.8599 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.8600 - *) ac_try_echo=$ac_try;;
2.8601 -esac
2.8602 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.8603 - (eval "$ac_compiler --version >&5") 2>&5
2.8604 - ac_status=$?
2.8605 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.8606 - (exit $ac_status); }
2.8607 -{ (ac_try="$ac_compiler -v >&5"
2.8608 -case "(($ac_try" in
2.8609 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.8610 - *) ac_try_echo=$ac_try;;
2.8611 -esac
2.8612 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.8613 - (eval "$ac_compiler -v >&5") 2>&5
2.8614 - ac_status=$?
2.8615 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.8616 - (exit $ac_status); }
2.8617 -{ (ac_try="$ac_compiler -V >&5"
2.8618 -case "(($ac_try" in
2.8619 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.8620 - *) ac_try_echo=$ac_try;;
2.8621 -esac
2.8622 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.8623 - (eval "$ac_compiler -V >&5") 2>&5
2.8624 - ac_status=$?
2.8625 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.8626 - (exit $ac_status); }
2.8627 -
2.8628 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2.8629 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2.8630 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
2.8631 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.8632 -else
2.8633 - cat >conftest.$ac_ext <<_ACEOF
2.8634 -/* confdefs.h. */
2.8635 -_ACEOF
2.8636 -cat confdefs.h >>conftest.$ac_ext
2.8637 -cat >>conftest.$ac_ext <<_ACEOF
2.8638 -/* end confdefs.h. */
2.8639 -
2.8640 -int
2.8641 -main ()
2.8642 -{
2.8643 -#ifndef __GNUC__
2.8644 - choke me
2.8645 -#endif
2.8646 -
2.8647 - ;
2.8648 - return 0;
2.8649 -}
2.8650 -_ACEOF
2.8651 -rm -f conftest.$ac_objext
2.8652 -if { (ac_try="$ac_compile"
2.8653 -case "(($ac_try" in
2.8654 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.8655 - *) ac_try_echo=$ac_try;;
2.8656 -esac
2.8657 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.8658 - (eval "$ac_compile") 2>conftest.er1
2.8659 - ac_status=$?
2.8660 - grep -v '^ *+' conftest.er1 >conftest.err
2.8661 - rm -f conftest.er1
2.8662 - cat conftest.err >&5
2.8663 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.8664 - (exit $ac_status); } && {
2.8665 - test -z "$ac_c_werror_flag" ||
2.8666 - test ! -s conftest.err
2.8667 - } && test -s conftest.$ac_objext; then
2.8668 - ac_compiler_gnu=yes
2.8669 -else
2.8670 - echo "$as_me: failed program was:" >&5
2.8671 -sed 's/^/| /' conftest.$ac_ext >&5
2.8672 -
2.8673 - ac_compiler_gnu=no
2.8674 -fi
2.8675 -
2.8676 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.8677 -ac_cv_c_compiler_gnu=$ac_compiler_gnu
2.8678 -
2.8679 -fi
2.8680 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2.8681 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2.8682 -GCC=`test $ac_compiler_gnu = yes && echo yes`
2.8683 -ac_test_CFLAGS=${CFLAGS+set}
2.8684 -ac_save_CFLAGS=$CFLAGS
2.8685 -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2.8686 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2.8687 -if test "${ac_cv_prog_cc_g+set}" = set; then
2.8688 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.8689 -else
2.8690 - ac_save_c_werror_flag=$ac_c_werror_flag
2.8691 - ac_c_werror_flag=yes
2.8692 - ac_cv_prog_cc_g=no
2.8693 - CFLAGS="-g"
2.8694 - cat >conftest.$ac_ext <<_ACEOF
2.8695 -/* confdefs.h. */
2.8696 -_ACEOF
2.8697 -cat confdefs.h >>conftest.$ac_ext
2.8698 -cat >>conftest.$ac_ext <<_ACEOF
2.8699 -/* end confdefs.h. */
2.8700 -
2.8701 -int
2.8702 -main ()
2.8703 -{
2.8704 -
2.8705 - ;
2.8706 - return 0;
2.8707 -}
2.8708 -_ACEOF
2.8709 -rm -f conftest.$ac_objext
2.8710 -if { (ac_try="$ac_compile"
2.8711 -case "(($ac_try" in
2.8712 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.8713 - *) ac_try_echo=$ac_try;;
2.8714 -esac
2.8715 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.8716 - (eval "$ac_compile") 2>conftest.er1
2.8717 - ac_status=$?
2.8718 - grep -v '^ *+' conftest.er1 >conftest.err
2.8719 - rm -f conftest.er1
2.8720 - cat conftest.err >&5
2.8721 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.8722 - (exit $ac_status); } && {
2.8723 - test -z "$ac_c_werror_flag" ||
2.8724 - test ! -s conftest.err
2.8725 - } && test -s conftest.$ac_objext; then
2.8726 - ac_cv_prog_cc_g=yes
2.8727 -else
2.8728 - echo "$as_me: failed program was:" >&5
2.8729 -sed 's/^/| /' conftest.$ac_ext >&5
2.8730 -
2.8731 - CFLAGS=""
2.8732 - cat >conftest.$ac_ext <<_ACEOF
2.8733 -/* confdefs.h. */
2.8734 -_ACEOF
2.8735 -cat confdefs.h >>conftest.$ac_ext
2.8736 -cat >>conftest.$ac_ext <<_ACEOF
2.8737 -/* end confdefs.h. */
2.8738 -
2.8739 -int
2.8740 -main ()
2.8741 -{
2.8742 -
2.8743 - ;
2.8744 - return 0;
2.8745 -}
2.8746 -_ACEOF
2.8747 -rm -f conftest.$ac_objext
2.8748 -if { (ac_try="$ac_compile"
2.8749 -case "(($ac_try" in
2.8750 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.8751 - *) ac_try_echo=$ac_try;;
2.8752 -esac
2.8753 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.8754 - (eval "$ac_compile") 2>conftest.er1
2.8755 - ac_status=$?
2.8756 - grep -v '^ *+' conftest.er1 >conftest.err
2.8757 - rm -f conftest.er1
2.8758 - cat conftest.err >&5
2.8759 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.8760 - (exit $ac_status); } && {
2.8761 - test -z "$ac_c_werror_flag" ||
2.8762 - test ! -s conftest.err
2.8763 - } && test -s conftest.$ac_objext; then
2.8764 - :
2.8765 -else
2.8766 - echo "$as_me: failed program was:" >&5
2.8767 -sed 's/^/| /' conftest.$ac_ext >&5
2.8768 -
2.8769 - ac_c_werror_flag=$ac_save_c_werror_flag
2.8770 - CFLAGS="-g"
2.8771 - cat >conftest.$ac_ext <<_ACEOF
2.8772 -/* confdefs.h. */
2.8773 -_ACEOF
2.8774 -cat confdefs.h >>conftest.$ac_ext
2.8775 -cat >>conftest.$ac_ext <<_ACEOF
2.8776 -/* end confdefs.h. */
2.8777 -
2.8778 -int
2.8779 -main ()
2.8780 -{
2.8781 -
2.8782 - ;
2.8783 - return 0;
2.8784 -}
2.8785 -_ACEOF
2.8786 -rm -f conftest.$ac_objext
2.8787 -if { (ac_try="$ac_compile"
2.8788 -case "(($ac_try" in
2.8789 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.8790 - *) ac_try_echo=$ac_try;;
2.8791 -esac
2.8792 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.8793 - (eval "$ac_compile") 2>conftest.er1
2.8794 - ac_status=$?
2.8795 - grep -v '^ *+' conftest.er1 >conftest.err
2.8796 - rm -f conftest.er1
2.8797 - cat conftest.err >&5
2.8798 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.8799 - (exit $ac_status); } && {
2.8800 - test -z "$ac_c_werror_flag" ||
2.8801 - test ! -s conftest.err
2.8802 - } && test -s conftest.$ac_objext; then
2.8803 - ac_cv_prog_cc_g=yes
2.8804 -else
2.8805 - echo "$as_me: failed program was:" >&5
2.8806 -sed 's/^/| /' conftest.$ac_ext >&5
2.8807 -
2.8808 -
2.8809 -fi
2.8810 -
2.8811 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.8812 -fi
2.8813 -
2.8814 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.8815 -fi
2.8816 -
2.8817 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.8818 - ac_c_werror_flag=$ac_save_c_werror_flag
2.8819 -fi
2.8820 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2.8821 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2.8822 -if test "$ac_test_CFLAGS" = set; then
2.8823 - CFLAGS=$ac_save_CFLAGS
2.8824 -elif test $ac_cv_prog_cc_g = yes; then
2.8825 - if test "$GCC" = yes; then
2.8826 - CFLAGS="-g -O2"
2.8827 - else
2.8828 - CFLAGS="-g"
2.8829 - fi
2.8830 -else
2.8831 - if test "$GCC" = yes; then
2.8832 - CFLAGS="-O2"
2.8833 - else
2.8834 - CFLAGS=
2.8835 - fi
2.8836 -fi
2.8837 -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2.8838 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2.8839 -if test "${ac_cv_prog_cc_c89+set}" = set; then
2.8840 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.8841 -else
2.8842 - ac_cv_prog_cc_c89=no
2.8843 -ac_save_CC=$CC
2.8844 -cat >conftest.$ac_ext <<_ACEOF
2.8845 -/* confdefs.h. */
2.8846 -_ACEOF
2.8847 -cat confdefs.h >>conftest.$ac_ext
2.8848 -cat >>conftest.$ac_ext <<_ACEOF
2.8849 -/* end confdefs.h. */
2.8850 -#include <stdarg.h>
2.8851 -#include <stdio.h>
2.8852 -#include <sys/types.h>
2.8853 -#include <sys/stat.h>
2.8854 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.8855 -struct buf { int x; };
2.8856 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.8857 -static char *e (p, i)
2.8858 - char **p;
2.8859 - int i;
2.8860 -{
2.8861 - return p[i];
2.8862 -}
2.8863 -static char *f (char * (*g) (char **, int), char **p, ...)
2.8864 -{
2.8865 - char *s;
2.8866 - va_list v;
2.8867 - va_start (v,p);
2.8868 - s = g (p, va_arg (v,int));
2.8869 - va_end (v);
2.8870 - return s;
2.8871 -}
2.8872 -
2.8873 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.8874 - function prototypes and stuff, but not '\xHH' hex character constants.
2.8875 - These don't provoke an error unfortunately, instead are silently treated
2.8876 - as 'x'. The following induces an error, until -std is added to get
2.8877 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.8878 - array size at least. It's necessary to write '\x00'==0 to get something
2.8879 - that's true only with -std. */
2.8880 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.8881 -
2.8882 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.8883 - inside strings and character constants. */
2.8884 -#define FOO(x) 'x'
2.8885 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.8886 -
2.8887 -int test (int i, double x);
2.8888 -struct s1 {int (*f) (int a);};
2.8889 -struct s2 {int (*f) (double a);};
2.8890 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.8891 -int argc;
2.8892 -char **argv;
2.8893 -int
2.8894 -main ()
2.8895 -{
2.8896 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.8897 - ;
2.8898 - return 0;
2.8899 -}
2.8900 -_ACEOF
2.8901 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.8902 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.8903 -do
2.8904 - CC="$ac_save_CC $ac_arg"
2.8905 - rm -f conftest.$ac_objext
2.8906 -if { (ac_try="$ac_compile"
2.8907 -case "(($ac_try" in
2.8908 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.8909 - *) ac_try_echo=$ac_try;;
2.8910 -esac
2.8911 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.8912 - (eval "$ac_compile") 2>conftest.er1
2.8913 - ac_status=$?
2.8914 - grep -v '^ *+' conftest.er1 >conftest.err
2.8915 - rm -f conftest.er1
2.8916 - cat conftest.err >&5
2.8917 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.8918 - (exit $ac_status); } && {
2.8919 - test -z "$ac_c_werror_flag" ||
2.8920 - test ! -s conftest.err
2.8921 - } && test -s conftest.$ac_objext; then
2.8922 - ac_cv_prog_cc_c89=$ac_arg
2.8923 -else
2.8924 - echo "$as_me: failed program was:" >&5
2.8925 -sed 's/^/| /' conftest.$ac_ext >&5
2.8926 -
2.8927 -
2.8928 -fi
2.8929 -
2.8930 -rm -f core conftest.err conftest.$ac_objext
2.8931 - test "x$ac_cv_prog_cc_c89" != "xno" && break
2.8932 -done
2.8933 -rm -f conftest.$ac_ext
2.8934 -CC=$ac_save_CC
2.8935 -
2.8936 -fi
2.8937 -# AC_CACHE_VAL
2.8938 -case "x$ac_cv_prog_cc_c89" in
2.8939 - x)
2.8940 - { echo "$as_me:$LINENO: result: none needed" >&5
2.8941 -echo "${ECHO_T}none needed" >&6; } ;;
2.8942 - xno)
2.8943 - { echo "$as_me:$LINENO: result: unsupported" >&5
2.8944 -echo "${ECHO_T}unsupported" >&6; } ;;
2.8945 - *)
2.8946 - CC="$CC $ac_cv_prog_cc_c89"
2.8947 - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2.8948 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2.8949 -esac
2.8950 -
2.8951 -
2.8952 -ac_ext=c
2.8953 -ac_cpp='$CPP $CPPFLAGS'
2.8954 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.8955 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.8956 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.8957 -
2.8958 -depcc="$CC" am_compiler_list=
2.8959 -
2.8960 -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.8961 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.8962 -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2.8963 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.8964 -else
2.8965 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.8966 - # We make a subdir and do the tests there. Otherwise we can end up
2.8967 - # making bogus files that we don't know about and never remove. For
2.8968 - # instance it was reported that on HP-UX the gcc test will end up
2.8969 - # making a dummy file named `D' -- because `-MD' means `put the output
2.8970 - # in D'.
2.8971 - mkdir conftest.dir
2.8972 - # Copy depcomp to subdir because otherwise we won't find it if we're
2.8973 - # using a relative directory.
2.8974 - cp "$am_depcomp" conftest.dir
2.8975 - cd conftest.dir
2.8976 - # We will build objects and dependencies in a subdirectory because
2.8977 - # it helps to detect inapplicable dependency modes. For instance
2.8978 - # both Tru64's cc and ICC support -MD to output dependencies as a
2.8979 - # side effect of compilation, but ICC will put the dependencies in
2.8980 - # the current directory while Tru64 will put them in the object
2.8981 - # directory.
2.8982 - mkdir sub
2.8983 -
2.8984 - am_cv_CC_dependencies_compiler_type=none
2.8985 - if test "$am_compiler_list" = ""; then
2.8986 - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.8987 - fi
2.8988 - for depmode in $am_compiler_list; do
2.8989 - # Setup a source with many dependencies, because some compilers
2.8990 - # like to wrap large dependency lists on column 80 (with \), and
2.8991 - # we should not choose a depcomp mode which is confused by this.
2.8992 - #
2.8993 - # We need to recreate these files for each test, as the compiler may
2.8994 - # overwrite some of them when testing with obscure command lines.
2.8995 - # This happens at least with the AIX C compiler.
2.8996 - : > sub/conftest.c
2.8997 - for i in 1 2 3 4 5 6; do
2.8998 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.8999 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.9000 - # Solaris 8's {/usr,}/bin/sh.
2.9001 - touch sub/conftst$i.h
2.9002 - done
2.9003 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.9004 -
2.9005 - case $depmode in
2.9006 - nosideeffect)
2.9007 - # after this tag, mechanisms are not by side-effect, so they'll
2.9008 - # only be used when explicitly requested
2.9009 - if test "x$enable_dependency_tracking" = xyes; then
2.9010 - continue
2.9011 - else
2.9012 - break
2.9013 - fi
2.9014 - ;;
2.9015 - none) break ;;
2.9016 - esac
2.9017 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.9018 - # mode. It turns out that the SunPro C++ compiler does not properly
2.9019 - # handle `-M -o', and we need to detect this.
2.9020 - if depmode=$depmode \
2.9021 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.9022 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.9023 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.9024 - >/dev/null 2>conftest.err &&
2.9025 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.9026 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.9027 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.9028 - # icc doesn't choke on unknown options, it will just issue warnings
2.9029 - # or remarks (even with -Werror). So we grep stderr for any message
2.9030 - # that says an option was ignored or not supported.
2.9031 - # When given -MP, icc 7.0 and 7.1 complain thusly:
2.9032 - # icc: Command line warning: ignoring option '-M'; no argument required
2.9033 - # The diagnosis changed in icc 8.0:
2.9034 - # icc: Command line remark: option '-MP' not supported
2.9035 - if (grep 'ignoring option' conftest.err ||
2.9036 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.9037 - am_cv_CC_dependencies_compiler_type=$depmode
2.9038 - break
2.9039 - fi
2.9040 - fi
2.9041 - done
2.9042 -
2.9043 - cd ..
2.9044 - rm -rf conftest.dir
2.9045 -else
2.9046 - am_cv_CC_dependencies_compiler_type=none
2.9047 -fi
2.9048 -
2.9049 -fi
2.9050 -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2.9051 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
2.9052 -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2.9053 -
2.9054 -
2.9055 -
2.9056 -if
2.9057 - test "x$enable_dependency_tracking" != xno \
2.9058 - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2.9059 - am__fastdepCC_TRUE=
2.9060 - am__fastdepCC_FALSE='#'
2.9061 -else
2.9062 - am__fastdepCC_TRUE='#'
2.9063 - am__fastdepCC_FALSE=
2.9064 -fi
2.9065 -
2.9066 -
2.9067 -
2.9068 -am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
2.9069 -
2.9070 -ac_ext=c
2.9071 -ac_cpp='$CPP $CPPFLAGS'
2.9072 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.9073 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.9074 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.9075 -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2.9076 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2.9077 -# On Suns, sometimes $CPP names a directory.
2.9078 -if test -n "$CPP" && test -d "$CPP"; then
2.9079 - CPP=
2.9080 -fi
2.9081 -if test -z "$CPP"; then
2.9082 - if test "${ac_cv_prog_CPP+set}" = set; then
2.9083 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.9084 -else
2.9085 - # Double quotes because CPP needs to be expanded
2.9086 - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2.9087 - do
2.9088 - ac_preproc_ok=false
2.9089 -for ac_c_preproc_warn_flag in '' yes
2.9090 -do
2.9091 - # Use a header file that comes with gcc, so configuring glibc
2.9092 - # with a fresh cross-compiler works.
2.9093 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2.9094 - # <limits.h> exists even on freestanding compilers.
2.9095 - # On the NeXT, cc -E runs the code through the compiler's parser,
2.9096 - # not just through cpp. "Syntax error" is here to catch this case.
2.9097 - cat >conftest.$ac_ext <<_ACEOF
2.9098 -/* confdefs.h. */
2.9099 -_ACEOF
2.9100 -cat confdefs.h >>conftest.$ac_ext
2.9101 -cat >>conftest.$ac_ext <<_ACEOF
2.9102 -/* end confdefs.h. */
2.9103 -#ifdef __STDC__
2.9104 -# include <limits.h>
2.9105 -#else
2.9106 -# include <assert.h>
2.9107 -#endif
2.9108 - Syntax error
2.9109 -_ACEOF
2.9110 -if { (ac_try="$ac_cpp conftest.$ac_ext"
2.9111 -case "(($ac_try" in
2.9112 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.9113 - *) ac_try_echo=$ac_try;;
2.9114 -esac
2.9115 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.9116 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2.9117 - ac_status=$?
2.9118 - grep -v '^ *+' conftest.er1 >conftest.err
2.9119 - rm -f conftest.er1
2.9120 - cat conftest.err >&5
2.9121 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.9122 - (exit $ac_status); } >/dev/null && {
2.9123 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.9124 - test ! -s conftest.err
2.9125 - }; then
2.9126 - :
2.9127 -else
2.9128 - echo "$as_me: failed program was:" >&5
2.9129 -sed 's/^/| /' conftest.$ac_ext >&5
2.9130 -
2.9131 - # Broken: fails on valid input.
2.9132 -continue
2.9133 -fi
2.9134 -
2.9135 -rm -f conftest.err conftest.$ac_ext
2.9136 -
2.9137 - # OK, works on sane cases. Now check whether nonexistent headers
2.9138 - # can be detected and how.
2.9139 - cat >conftest.$ac_ext <<_ACEOF
2.9140 -/* confdefs.h. */
2.9141 -_ACEOF
2.9142 -cat confdefs.h >>conftest.$ac_ext
2.9143 -cat >>conftest.$ac_ext <<_ACEOF
2.9144 -/* end confdefs.h. */
2.9145 -#include <ac_nonexistent.h>
2.9146 -_ACEOF
2.9147 -if { (ac_try="$ac_cpp conftest.$ac_ext"
2.9148 -case "(($ac_try" in
2.9149 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.9150 - *) ac_try_echo=$ac_try;;
2.9151 -esac
2.9152 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.9153 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2.9154 - ac_status=$?
2.9155 - grep -v '^ *+' conftest.er1 >conftest.err
2.9156 - rm -f conftest.er1
2.9157 - cat conftest.err >&5
2.9158 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.9159 - (exit $ac_status); } >/dev/null && {
2.9160 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.9161 - test ! -s conftest.err
2.9162 - }; then
2.9163 - # Broken: success on invalid input.
2.9164 -continue
2.9165 -else
2.9166 - echo "$as_me: failed program was:" >&5
2.9167 -sed 's/^/| /' conftest.$ac_ext >&5
2.9168 -
2.9169 - # Passes both tests.
2.9170 -ac_preproc_ok=:
2.9171 -break
2.9172 -fi
2.9173 -
2.9174 -rm -f conftest.err conftest.$ac_ext
2.9175 -
2.9176 -done
2.9177 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2.9178 -rm -f conftest.err conftest.$ac_ext
2.9179 -if $ac_preproc_ok; then
2.9180 - break
2.9181 -fi
2.9182 -
2.9183 - done
2.9184 - ac_cv_prog_CPP=$CPP
2.9185 -
2.9186 -fi
2.9187 - CPP=$ac_cv_prog_CPP
2.9188 -else
2.9189 - ac_cv_prog_CPP=$CPP
2.9190 -fi
2.9191 -{ echo "$as_me:$LINENO: result: $CPP" >&5
2.9192 -echo "${ECHO_T}$CPP" >&6; }
2.9193 -ac_preproc_ok=false
2.9194 -for ac_c_preproc_warn_flag in '' yes
2.9195 -do
2.9196 - # Use a header file that comes with gcc, so configuring glibc
2.9197 - # with a fresh cross-compiler works.
2.9198 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2.9199 - # <limits.h> exists even on freestanding compilers.
2.9200 - # On the NeXT, cc -E runs the code through the compiler's parser,
2.9201 - # not just through cpp. "Syntax error" is here to catch this case.
2.9202 - cat >conftest.$ac_ext <<_ACEOF
2.9203 -/* confdefs.h. */
2.9204 -_ACEOF
2.9205 -cat confdefs.h >>conftest.$ac_ext
2.9206 -cat >>conftest.$ac_ext <<_ACEOF
2.9207 -/* end confdefs.h. */
2.9208 -#ifdef __STDC__
2.9209 -# include <limits.h>
2.9210 -#else
2.9211 -# include <assert.h>
2.9212 -#endif
2.9213 - Syntax error
2.9214 -_ACEOF
2.9215 -if { (ac_try="$ac_cpp conftest.$ac_ext"
2.9216 -case "(($ac_try" in
2.9217 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.9218 - *) ac_try_echo=$ac_try;;
2.9219 -esac
2.9220 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.9221 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2.9222 - ac_status=$?
2.9223 - grep -v '^ *+' conftest.er1 >conftest.err
2.9224 - rm -f conftest.er1
2.9225 - cat conftest.err >&5
2.9226 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.9227 - (exit $ac_status); } >/dev/null && {
2.9228 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.9229 - test ! -s conftest.err
2.9230 - }; then
2.9231 - :
2.9232 -else
2.9233 - echo "$as_me: failed program was:" >&5
2.9234 -sed 's/^/| /' conftest.$ac_ext >&5
2.9235 -
2.9236 - # Broken: fails on valid input.
2.9237 -continue
2.9238 -fi
2.9239 -
2.9240 -rm -f conftest.err conftest.$ac_ext
2.9241 -
2.9242 - # OK, works on sane cases. Now check whether nonexistent headers
2.9243 - # can be detected and how.
2.9244 - cat >conftest.$ac_ext <<_ACEOF
2.9245 -/* confdefs.h. */
2.9246 -_ACEOF
2.9247 -cat confdefs.h >>conftest.$ac_ext
2.9248 -cat >>conftest.$ac_ext <<_ACEOF
2.9249 -/* end confdefs.h. */
2.9250 -#include <ac_nonexistent.h>
2.9251 -_ACEOF
2.9252 -if { (ac_try="$ac_cpp conftest.$ac_ext"
2.9253 -case "(($ac_try" in
2.9254 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.9255 - *) ac_try_echo=$ac_try;;
2.9256 -esac
2.9257 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.9258 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2.9259 - ac_status=$?
2.9260 - grep -v '^ *+' conftest.er1 >conftest.err
2.9261 - rm -f conftest.er1
2.9262 - cat conftest.err >&5
2.9263 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.9264 - (exit $ac_status); } >/dev/null && {
2.9265 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.9266 - test ! -s conftest.err
2.9267 - }; then
2.9268 - # Broken: success on invalid input.
2.9269 -continue
2.9270 -else
2.9271 - echo "$as_me: failed program was:" >&5
2.9272 -sed 's/^/| /' conftest.$ac_ext >&5
2.9273 -
2.9274 - # Passes both tests.
2.9275 -ac_preproc_ok=:
2.9276 -break
2.9277 -fi
2.9278 -
2.9279 -rm -f conftest.err conftest.$ac_ext
2.9280 -
2.9281 -done
2.9282 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2.9283 -rm -f conftest.err conftest.$ac_ext
2.9284 -if $ac_preproc_ok; then
2.9285 - :
2.9286 -else
2.9287 - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2.9288 -See \`config.log' for more details." >&5
2.9289 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2.9290 -See \`config.log' for more details." >&2;}
2.9291 - { (exit 1); exit 1; }; }
2.9292 -fi
2.9293 -
2.9294 -ac_ext=c
2.9295 -ac_cpp='$CPP $CPPFLAGS'
2.9296 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.9297 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.9298 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.9299 -
2.9300 -
2.9301 -ac_main_cc="$CC"
2.9302 -test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
2.9303 -
2.9304 -if test -z "$CC_FOR_BUILD"; then
2.9305 - if test "$#" = yes; then
2.9306 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2.9307 -See \`config.log' for more details." >&5
2.9308 -echo "$as_me: error: cannot run test program while cross compiling
2.9309 -See \`config.log' for more details." >&2;}
2.9310 - { (exit 1); exit 1; }; }
2.9311 -else
2.9312 - cat >conftest.$ac_ext <<_ACEOF
2.9313 -int main(){return 0;}
2.9314 -_ACEOF
2.9315 -rm -f conftest$ac_exeext
2.9316 -if { (ac_try="$ac_link"
2.9317 -case "(($ac_try" in
2.9318 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.9319 - *) ac_try_echo=$ac_try;;
2.9320 -esac
2.9321 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.9322 - (eval "$ac_link") 2>&5
2.9323 - ac_status=$?
2.9324 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.9325 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2.9326 - { (case "(($ac_try" in
2.9327 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.9328 - *) ac_try_echo=$ac_try;;
2.9329 -esac
2.9330 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.9331 - (eval "$ac_try") 2>&5
2.9332 - ac_status=$?
2.9333 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.9334 - (exit $ac_status); }; }; then
2.9335 - CC_FOR_BUILD="$CC"
2.9336 -else
2.9337 - echo "$as_me: program exited with status $ac_status" >&5
2.9338 -echo "$as_me: failed program was:" >&5
2.9339 -sed 's/^/| /' conftest.$ac_ext >&5
2.9340 -
2.9341 -fi
2.9342 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2.9343 -fi
2.9344 -
2.9345 -
2.9346 -fi
2.9347 -
2.9348 -
2.9349 -ac_ext=c
2.9350 -ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
2.9351 -ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
2.9352 -ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.9353 -ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
2.9354 -if test -n "$ac_build_tool_prefix"; then
2.9355 - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2.9356 -set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
2.9357 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.9358 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.9359 -if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
2.9360 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.9361 -else
2.9362 - if test -n "$CC_FOR_BUILD"; then
2.9363 - ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
2.9364 -else
2.9365 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.9366 -for as_dir in $PATH
2.9367 -do
2.9368 - IFS=$as_save_IFS
2.9369 - test -z "$as_dir" && as_dir=.
2.9370 - for ac_exec_ext in '' $ac_executable_extensions; do
2.9371 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.9372 - ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
2.9373 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.9374 - break 2
2.9375 - fi
2.9376 -done
2.9377 -done
2.9378 -IFS=$as_save_IFS
2.9379 -
2.9380 -fi
2.9381 -fi
2.9382 -CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
2.9383 -if test -n "$CC_FOR_BUILD"; then
2.9384 - { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
2.9385 -echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
2.9386 -else
2.9387 - { echo "$as_me:$LINENO: result: no" >&5
2.9388 -echo "${ECHO_T}no" >&6; }
2.9389 -fi
2.9390 -
2.9391 -
2.9392 -fi
2.9393 -if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
2.9394 - ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
2.9395 - # Extract the first word of "gcc", so it can be a program name with args.
2.9396 -set dummy gcc; ac_word=$2
2.9397 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.9398 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.9399 -if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
2.9400 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.9401 -else
2.9402 - if test -n "$ac_ct_CC_FOR_BUILD"; then
2.9403 - ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
2.9404 -else
2.9405 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.9406 -for as_dir in $PATH
2.9407 -do
2.9408 - IFS=$as_save_IFS
2.9409 - test -z "$as_dir" && as_dir=.
2.9410 - for ac_exec_ext in '' $ac_executable_extensions; do
2.9411 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.9412 - ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
2.9413 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.9414 - break 2
2.9415 - fi
2.9416 -done
2.9417 -done
2.9418 -IFS=$as_save_IFS
2.9419 -
2.9420 -fi
2.9421 -fi
2.9422 -ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
2.9423 -if test -n "$ac_ct_CC_FOR_BUILD"; then
2.9424 - { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
2.9425 -echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
2.9426 -else
2.9427 - { echo "$as_me:$LINENO: result: no" >&5
2.9428 -echo "${ECHO_T}no" >&6; }
2.9429 -fi
2.9430 -
2.9431 - if test "x$ac_ct_CC_FOR_BUILD" = x; then
2.9432 - CC_FOR_BUILD=""
2.9433 - else
2.9434 - case $#:$ac_tool_warned in
2.9435 -yes:)
2.9436 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.9437 -whose name does not start with the build triplet. If you think this
2.9438 -configuration is useful to you, please write to autoconf@gnu.org." >&5
2.9439 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.9440 -whose name does not start with the build triplet. If you think this
2.9441 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.9442 -ac_tool_warned=yes ;;
2.9443 -esac
2.9444 - CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
2.9445 - fi
2.9446 -else
2.9447 - CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
2.9448 -fi
2.9449 -
2.9450 -if test -z "$CC_FOR_BUILD"; then
2.9451 - if test -n "$ac_build_tool_prefix"; then
2.9452 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2.9453 -set dummy ${ac_build_tool_prefix}cc; ac_word=$2
2.9454 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.9455 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.9456 -if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
2.9457 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.9458 -else
2.9459 - if test -n "$CC_FOR_BUILD"; then
2.9460 - ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
2.9461 -else
2.9462 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.9463 -for as_dir in $PATH
2.9464 -do
2.9465 - IFS=$as_save_IFS
2.9466 - test -z "$as_dir" && as_dir=.
2.9467 - for ac_exec_ext in '' $ac_executable_extensions; do
2.9468 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.9469 - ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
2.9470 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.9471 - break 2
2.9472 - fi
2.9473 -done
2.9474 -done
2.9475 -IFS=$as_save_IFS
2.9476 -
2.9477 -fi
2.9478 -fi
2.9479 -CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
2.9480 -if test -n "$CC_FOR_BUILD"; then
2.9481 - { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
2.9482 -echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
2.9483 -else
2.9484 - { echo "$as_me:$LINENO: result: no" >&5
2.9485 -echo "${ECHO_T}no" >&6; }
2.9486 -fi
2.9487 -
2.9488 -
2.9489 - fi
2.9490 -fi
2.9491 -if test -z "$CC_FOR_BUILD"; then
2.9492 - # Extract the first word of "cc", so it can be a program name with args.
2.9493 -set dummy cc; ac_word=$2
2.9494 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.9495 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.9496 -if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
2.9497 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.9498 -else
2.9499 - if test -n "$CC_FOR_BUILD"; then
2.9500 - ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
2.9501 -else
2.9502 - ac_prog_rejected=no
2.9503 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.9504 -for as_dir in $PATH
2.9505 -do
2.9506 - IFS=$as_save_IFS
2.9507 - test -z "$as_dir" && as_dir=.
2.9508 - for ac_exec_ext in '' $ac_executable_extensions; do
2.9509 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.9510 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2.9511 - ac_prog_rejected=yes
2.9512 - continue
2.9513 - fi
2.9514 - ac_cv_prog_CC_FOR_BUILD="cc"
2.9515 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.9516 - break 2
2.9517 - fi
2.9518 -done
2.9519 -done
2.9520 -IFS=$as_save_IFS
2.9521 -
2.9522 -if test $ac_prog_rejected = yes; then
2.9523 - # We found a bogon in the path, so make sure we never use it.
2.9524 - set dummy $ac_cv_prog_CC_FOR_BUILD
2.9525 - shift
2.9526 - if test $# != 0; then
2.9527 - # We chose a different compiler from the bogus one.
2.9528 - # However, it has the same basename, so the bogon will be chosen
2.9529 - # first if we set CC_FOR_BUILD to just the basename; use the full file name.
2.9530 - shift
2.9531 - ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
2.9532 - fi
2.9533 -fi
2.9534 -fi
2.9535 -fi
2.9536 -CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
2.9537 -if test -n "$CC_FOR_BUILD"; then
2.9538 - { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
2.9539 -echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
2.9540 -else
2.9541 - { echo "$as_me:$LINENO: result: no" >&5
2.9542 -echo "${ECHO_T}no" >&6; }
2.9543 -fi
2.9544 -
2.9545 -
2.9546 -fi
2.9547 -if test -z "$CC_FOR_BUILD"; then
2.9548 - if test -n "$ac_build_tool_prefix"; then
2.9549 - for ac_prog in cl.exe
2.9550 - do
2.9551 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.9552 -set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
2.9553 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.9554 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.9555 -if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
2.9556 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.9557 -else
2.9558 - if test -n "$CC_FOR_BUILD"; then
2.9559 - ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
2.9560 -else
2.9561 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.9562 -for as_dir in $PATH
2.9563 -do
2.9564 - IFS=$as_save_IFS
2.9565 - test -z "$as_dir" && as_dir=.
2.9566 - for ac_exec_ext in '' $ac_executable_extensions; do
2.9567 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.9568 - ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
2.9569 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.9570 - break 2
2.9571 - fi
2.9572 -done
2.9573 -done
2.9574 -IFS=$as_save_IFS
2.9575 -
2.9576 -fi
2.9577 -fi
2.9578 -CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
2.9579 -if test -n "$CC_FOR_BUILD"; then
2.9580 - { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
2.9581 -echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
2.9582 -else
2.9583 - { echo "$as_me:$LINENO: result: no" >&5
2.9584 -echo "${ECHO_T}no" >&6; }
2.9585 -fi
2.9586 -
2.9587 -
2.9588 - test -n "$CC_FOR_BUILD" && break
2.9589 - done
2.9590 -fi
2.9591 -if test -z "$CC_FOR_BUILD"; then
2.9592 - ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
2.9593 - for ac_prog in cl.exe
2.9594 -do
2.9595 - # Extract the first word of "$ac_prog", so it can be a program name with args.
2.9596 -set dummy $ac_prog; ac_word=$2
2.9597 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.9598 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.9599 -if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
2.9600 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.9601 -else
2.9602 - if test -n "$ac_ct_CC_FOR_BUILD"; then
2.9603 - ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
2.9604 -else
2.9605 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.9606 -for as_dir in $PATH
2.9607 -do
2.9608 - IFS=$as_save_IFS
2.9609 - test -z "$as_dir" && as_dir=.
2.9610 - for ac_exec_ext in '' $ac_executable_extensions; do
2.9611 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.9612 - ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
2.9613 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.9614 - break 2
2.9615 - fi
2.9616 -done
2.9617 -done
2.9618 -IFS=$as_save_IFS
2.9619 -
2.9620 -fi
2.9621 -fi
2.9622 -ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
2.9623 -if test -n "$ac_ct_CC_FOR_BUILD"; then
2.9624 - { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
2.9625 -echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
2.9626 -else
2.9627 - { echo "$as_me:$LINENO: result: no" >&5
2.9628 -echo "${ECHO_T}no" >&6; }
2.9629 -fi
2.9630 -
2.9631 -
2.9632 - test -n "$ac_ct_CC_FOR_BUILD" && break
2.9633 -done
2.9634 -
2.9635 - if test "x$ac_ct_CC_FOR_BUILD" = x; then
2.9636 - CC_FOR_BUILD=""
2.9637 - else
2.9638 - case $#:$ac_tool_warned in
2.9639 -yes:)
2.9640 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.9641 -whose name does not start with the build triplet. If you think this
2.9642 -configuration is useful to you, please write to autoconf@gnu.org." >&5
2.9643 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.9644 -whose name does not start with the build triplet. If you think this
2.9645 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.9646 -ac_tool_warned=yes ;;
2.9647 -esac
2.9648 - CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
2.9649 - fi
2.9650 -fi
2.9651 -
2.9652 -fi
2.9653 -
2.9654 -
2.9655 -test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2.9656 -See \`config.log' for more details." >&5
2.9657 -echo "$as_me: error: no acceptable C compiler found in \$PATH
2.9658 -See \`config.log' for more details." >&2;}
2.9659 - { (exit 1); exit 1; }; }
2.9660 -
2.9661 -# Provide some information about the compiler.
2.9662 -echo "$as_me:$LINENO: checking for C compiler version" >&5
2.9663 -ac_compiler=`set X $ac_build_compile; echo $2`
2.9664 -{ (ac_try="$ac_compiler --version >&5"
2.9665 -case "(($ac_try" in
2.9666 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.9667 - *) ac_try_echo=$ac_try;;
2.9668 -esac
2.9669 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.9670 - (eval "$ac_compiler --version >&5") 2>&5
2.9671 - ac_status=$?
2.9672 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.9673 - (exit $ac_status); }
2.9674 -{ (ac_try="$ac_compiler -v >&5"
2.9675 -case "(($ac_try" in
2.9676 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.9677 - *) ac_try_echo=$ac_try;;
2.9678 -esac
2.9679 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.9680 - (eval "$ac_compiler -v >&5") 2>&5
2.9681 - ac_status=$?
2.9682 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.9683 - (exit $ac_status); }
2.9684 -{ (ac_try="$ac_compiler -V >&5"
2.9685 -case "(($ac_try" in
2.9686 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.9687 - *) ac_try_echo=$ac_try;;
2.9688 -esac
2.9689 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.9690 - (eval "$ac_compiler -V >&5") 2>&5
2.9691 - ac_status=$?
2.9692 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.9693 - (exit $ac_status); }
2.9694 -
2.9695 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2.9696 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2.9697 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
2.9698 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.9699 -else
2.9700 - cat >conftest.$ac_ext <<_ACEOF
2.9701 -/* confdefs.h. */
2.9702 -_ACEOF
2.9703 -cat confdefs.h >>conftest.$ac_ext
2.9704 -cat >>conftest.$ac_ext <<_ACEOF
2.9705 -/* end confdefs.h. */
2.9706 -
2.9707 -int
2.9708 -main ()
2.9709 -{
2.9710 -#ifndef __GNUC__
2.9711 - choke me
2.9712 -#endif
2.9713 -
2.9714 - ;
2.9715 - return 0;
2.9716 -}
2.9717 -_ACEOF
2.9718 -rm -f conftest.$ac_build_objext
2.9719 -if { (ac_try="$ac_build_compile"
2.9720 -case "(($ac_try" in
2.9721 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.9722 - *) ac_try_echo=$ac_try;;
2.9723 -esac
2.9724 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.9725 - (eval "$ac_build_compile") 2>conftest.er1
2.9726 - ac_status=$?
2.9727 - grep -v '^ *+' conftest.er1 >conftest.err
2.9728 - rm -f conftest.er1
2.9729 - cat conftest.err >&5
2.9730 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.9731 - (exit $ac_status); } && {
2.9732 - test -z "$ac_c_werror_flag" ||
2.9733 - test ! -s conftest.err
2.9734 - } && test -s conftest.$ac_build_objext; then
2.9735 - ac_build_compiler_gnu=yes
2.9736 -else
2.9737 - echo "$as_me: failed program was:" >&5
2.9738 -sed 's/^/| /' conftest.$ac_ext >&5
2.9739 -
2.9740 - ac_build_compiler_gnu=no
2.9741 -fi
2.9742 -
2.9743 -rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
2.9744 -ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
2.9745 -
2.9746 -fi
2.9747 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2.9748 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2.9749 -GCC=`test $ac_build_compiler_gnu = yes && echo yes`
2.9750 -ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
2.9751 -ac_save_CFLAGS=$CFLAGS_FOR_BUILD
2.9752 -{ echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
2.9753 -echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
2.9754 -if test "${ac_cv_build_prog_cc_g+set}" = set; then
2.9755 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.9756 -else
2.9757 - ac_save_c_werror_flag=$ac_c_werror_flag
2.9758 - ac_c_werror_flag=yes
2.9759 - ac_cv_build_prog_cc_g=no
2.9760 - CFLAGS_FOR_BUILD="-g"
2.9761 - cat >conftest.$ac_ext <<_ACEOF
2.9762 -/* confdefs.h. */
2.9763 -_ACEOF
2.9764 -cat confdefs.h >>conftest.$ac_ext
2.9765 -cat >>conftest.$ac_ext <<_ACEOF
2.9766 -/* end confdefs.h. */
2.9767 -
2.9768 -int
2.9769 -main ()
2.9770 -{
2.9771 -
2.9772 - ;
2.9773 - return 0;
2.9774 -}
2.9775 -_ACEOF
2.9776 -rm -f conftest.$ac_build_objext
2.9777 -if { (ac_try="$ac_build_compile"
2.9778 -case "(($ac_try" in
2.9779 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.9780 - *) ac_try_echo=$ac_try;;
2.9781 -esac
2.9782 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.9783 - (eval "$ac_build_compile") 2>conftest.er1
2.9784 - ac_status=$?
2.9785 - grep -v '^ *+' conftest.er1 >conftest.err
2.9786 - rm -f conftest.er1
2.9787 - cat conftest.err >&5
2.9788 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.9789 - (exit $ac_status); } && {
2.9790 - test -z "$ac_c_werror_flag" ||
2.9791 - test ! -s conftest.err
2.9792 - } && test -s conftest.$ac_build_objext; then
2.9793 - ac_cv_build_prog_cc_g=yes
2.9794 -else
2.9795 - echo "$as_me: failed program was:" >&5
2.9796 -sed 's/^/| /' conftest.$ac_ext >&5
2.9797 -
2.9798 - CFLAGS_FOR_BUILD=""
2.9799 - cat >conftest.$ac_ext <<_ACEOF
2.9800 -/* confdefs.h. */
2.9801 -_ACEOF
2.9802 -cat confdefs.h >>conftest.$ac_ext
2.9803 -cat >>conftest.$ac_ext <<_ACEOF
2.9804 -/* end confdefs.h. */
2.9805 -
2.9806 -int
2.9807 -main ()
2.9808 -{
2.9809 -
2.9810 - ;
2.9811 - return 0;
2.9812 -}
2.9813 -_ACEOF
2.9814 -rm -f conftest.$ac_build_objext
2.9815 -if { (ac_try="$ac_build_compile"
2.9816 -case "(($ac_try" in
2.9817 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.9818 - *) ac_try_echo=$ac_try;;
2.9819 -esac
2.9820 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.9821 - (eval "$ac_build_compile") 2>conftest.er1
2.9822 - ac_status=$?
2.9823 - grep -v '^ *+' conftest.er1 >conftest.err
2.9824 - rm -f conftest.er1
2.9825 - cat conftest.err >&5
2.9826 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.9827 - (exit $ac_status); } && {
2.9828 - test -z "$ac_c_werror_flag" ||
2.9829 - test ! -s conftest.err
2.9830 - } && test -s conftest.$ac_build_objext; then
2.9831 - :
2.9832 -else
2.9833 - echo "$as_me: failed program was:" >&5
2.9834 -sed 's/^/| /' conftest.$ac_ext >&5
2.9835 -
2.9836 - ac_c_werror_flag=$ac_save_c_werror_flag
2.9837 - CFLAGS_FOR_BUILD="-g"
2.9838 - cat >conftest.$ac_ext <<_ACEOF
2.9839 -/* confdefs.h. */
2.9840 -_ACEOF
2.9841 -cat confdefs.h >>conftest.$ac_ext
2.9842 -cat >>conftest.$ac_ext <<_ACEOF
2.9843 -/* end confdefs.h. */
2.9844 -
2.9845 -int
2.9846 -main ()
2.9847 -{
2.9848 -
2.9849 - ;
2.9850 - return 0;
2.9851 -}
2.9852 -_ACEOF
2.9853 -rm -f conftest.$ac_build_objext
2.9854 -if { (ac_try="$ac_build_compile"
2.9855 -case "(($ac_try" in
2.9856 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.9857 - *) ac_try_echo=$ac_try;;
2.9858 -esac
2.9859 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.9860 - (eval "$ac_build_compile") 2>conftest.er1
2.9861 - ac_status=$?
2.9862 - grep -v '^ *+' conftest.er1 >conftest.err
2.9863 - rm -f conftest.er1
2.9864 - cat conftest.err >&5
2.9865 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.9866 - (exit $ac_status); } && {
2.9867 - test -z "$ac_c_werror_flag" ||
2.9868 - test ! -s conftest.err
2.9869 - } && test -s conftest.$ac_build_objext; then
2.9870 - ac_cv_build_prog_cc_g=yes
2.9871 -else
2.9872 - echo "$as_me: failed program was:" >&5
2.9873 -sed 's/^/| /' conftest.$ac_ext >&5
2.9874 -
2.9875 -
2.9876 -fi
2.9877 -
2.9878 -rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
2.9879 -fi
2.9880 -
2.9881 -rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
2.9882 -fi
2.9883 -
2.9884 -rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
2.9885 - ac_c_werror_flag=$ac_save_c_werror_flag
2.9886 -fi
2.9887 -{ echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
2.9888 -echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
2.9889 -if test "$ac_test_CFLAGS" = set; then
2.9890 - CFLAGS_FOR_BUILD=$ac_save_CFLAGS
2.9891 -elif test $ac_cv_build_prog_cc_g = yes; then
2.9892 - if test "$GCC" = yes; then
2.9893 - CFLAGS_FOR_BUILD="-g -O2"
2.9894 - else
2.9895 - CFLAGS_FOR_BUILD="-g"
2.9896 - fi
2.9897 -else
2.9898 - if test "$GCC" = yes; then
2.9899 - CFLAGS_FOR_BUILD="-O2"
2.9900 - else
2.9901 - CFLAGS_FOR_BUILD=
2.9902 - fi
2.9903 -fi
2.9904 -{ echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
2.9905 -echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
2.9906 -if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
2.9907 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.9908 -else
2.9909 - ac_cv_build_prog_cc_stdc=no
2.9910 -ac_save_CC=$CC_FOR_BUILD
2.9911 -cat >conftest.$ac_ext <<_ACEOF
2.9912 -/* confdefs.h. */
2.9913 -_ACEOF
2.9914 -cat confdefs.h >>conftest.$ac_ext
2.9915 -cat >>conftest.$ac_ext <<_ACEOF
2.9916 -/* end confdefs.h. */
2.9917 -#include <stdarg.h>
2.9918 -#include <stdio.h>
2.9919 -#include <sys/types.h>
2.9920 -#include <sys/stat.h>
2.9921 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.9922 -struct buf { int x; };
2.9923 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.9924 -static char *e (p, i)
2.9925 - char **p;
2.9926 - int i;
2.9927 -{
2.9928 - return p[i];
2.9929 -}
2.9930 -static char *f (char * (*g) (char **, int), char **p, ...)
2.9931 -{
2.9932 - char *s;
2.9933 - va_list v;
2.9934 - va_start (v,p);
2.9935 - s = g (p, va_arg (v,int));
2.9936 - va_end (v);
2.9937 - return s;
2.9938 -}
2.9939 -
2.9940 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.9941 - function prototypes and stuff, but not '\xHH' hex character constants.
2.9942 - These don't provoke an error unfortunately, instead are silently treated
2.9943 - as 'x'. The following induces an error, until -std is added to get
2.9944 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.9945 - array size at least. It's necessary to write '\x00'==0 to get something
2.9946 - that's true only with -std. */
2.9947 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.9948 -
2.9949 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.9950 - inside strings and character constants. */
2.9951 -#define FOO(x) 'x'
2.9952 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.9953 -
2.9954 -int test (int i, double x);
2.9955 -struct s1 {int (*f) (int a);};
2.9956 -struct s2 {int (*f) (double a);};
2.9957 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.9958 -int argc;
2.9959 -char **argv;
2.9960 -int
2.9961 -main ()
2.9962 -{
2.9963 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.9964 - ;
2.9965 - return 0;
2.9966 -}
2.9967 -_ACEOF
2.9968 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.9969 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.9970 -do
2.9971 - CC_FOR_BUILD="$ac_save_CC $ac_arg"
2.9972 - rm -f conftest.$ac_build_objext
2.9973 -if { (ac_try="$ac_build_compile"
2.9974 -case "(($ac_try" in
2.9975 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.9976 - *) ac_try_echo=$ac_try;;
2.9977 -esac
2.9978 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.9979 - (eval "$ac_build_compile") 2>conftest.er1
2.9980 - ac_status=$?
2.9981 - grep -v '^ *+' conftest.er1 >conftest.err
2.9982 - rm -f conftest.er1
2.9983 - cat conftest.err >&5
2.9984 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.9985 - (exit $ac_status); } && {
2.9986 - test -z "$ac_c_werror_flag" ||
2.9987 - test ! -s conftest.err
2.9988 - } && test -s conftest.$ac_build_objext; then
2.9989 - ac_cv_build_prog_cc_stdc=$ac_arg
2.9990 -else
2.9991 - echo "$as_me: failed program was:" >&5
2.9992 -sed 's/^/| /' conftest.$ac_ext >&5
2.9993 -
2.9994 -
2.9995 -fi
2.9996 -
2.9997 -rm -f core conftest.err conftest.$ac_build_objext
2.9998 - test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
2.9999 -done
2.10000 -rm -f conftest.$ac_ext
2.10001 -CC_FOR_BUILD=$ac_save_CC
2.10002 -
2.10003 -fi
2.10004 -# AC_CACHE_VAL
2.10005 -case "x$ac_cv_build_prog_cc_stdc" in
2.10006 - x)
2.10007 - { echo "$as_me:$LINENO: result: none needed" >&5
2.10008 -echo "${ECHO_T}none needed" >&6; } ;;
2.10009 - xno)
2.10010 - { echo "$as_me:$LINENO: result: unsupported" >&5
2.10011 -echo "${ECHO_T}unsupported" >&6; } ;;
2.10012 - *)
2.10013 - CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
2.10014 - { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
2.10015 -echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
2.10016 -esac
2.10017 -
2.10018 -
2.10019 -ac_ext=c
2.10020 -ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
2.10021 -ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
2.10022 -ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.10023 -ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
2.10024 -
2.10025 -depcc="$CC_FOR_BUILD" am_compiler_list=
2.10026 -
2.10027 -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.10028 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.10029 -if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
2.10030 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.10031 -else
2.10032 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.10033 - # We make a subdir and do the tests there. Otherwise we can end up
2.10034 - # making bogus files that we don't know about and never remove. For
2.10035 - # instance it was reported that on HP-UX the gcc test will end up
2.10036 - # making a dummy file named `D' -- because `-MD' means `put the output
2.10037 - # in D'.
2.10038 - mkdir conftest.dir
2.10039 - # Copy depcomp to subdir because otherwise we won't find it if we're
2.10040 - # using a relative directory.
2.10041 - cp "$am_depcomp" conftest.dir
2.10042 - cd conftest.dir
2.10043 - # We will build objects and dependencies in a subdirectory because
2.10044 - # it helps to detect inapplicable dependency modes. For instance
2.10045 - # both Tru64's cc and ICC support -MD to output dependencies as a
2.10046 - # side effect of compilation, but ICC will put the dependencies in
2.10047 - # the current directory while Tru64 will put them in the object
2.10048 - # directory.
2.10049 - mkdir sub
2.10050 -
2.10051 - am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
2.10052 - if test "$am_compiler_list" = ""; then
2.10053 - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.10054 - fi
2.10055 - for depmode in $am_compiler_list; do
2.10056 - # Setup a source with many dependencies, because some compilers
2.10057 - # like to wrap large dependency lists on column 80 (with \), and
2.10058 - # we should not choose a depcomp mode which is confused by this.
2.10059 - #
2.10060 - # We need to recreate these files for each test, as the compiler may
2.10061 - # overwrite some of them when testing with obscure command lines.
2.10062 - # This happens at least with the AIX C compiler.
2.10063 - : > sub/conftest.c
2.10064 - for i in 1 2 3 4 5 6; do
2.10065 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.10066 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.10067 - # Solaris 8's {/usr,}/bin/sh.
2.10068 - touch sub/conftst$i.h
2.10069 - done
2.10070 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.10071 -
2.10072 - case $depmode in
2.10073 - nosideeffect)
2.10074 - # after this tag, mechanisms are not by side-effect, so they'll
2.10075 - # only be used when explicitly requested
2.10076 - if test "x$enable_dependency_tracking" = xyes; then
2.10077 - continue
2.10078 - else
2.10079 - break
2.10080 - fi
2.10081 - ;;
2.10082 - none) break ;;
2.10083 - esac
2.10084 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.10085 - # mode. It turns out that the SunPro C++ compiler does not properly
2.10086 - # handle `-M -o', and we need to detect this.
2.10087 - if depmode=$depmode \
2.10088 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.10089 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.10090 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.10091 - >/dev/null 2>conftest.err &&
2.10092 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.10093 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.10094 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.10095 - # icc doesn't choke on unknown options, it will just issue warnings
2.10096 - # or remarks (even with -Werror). So we grep stderr for any message
2.10097 - # that says an option was ignored or not supported.
2.10098 - # When given -MP, icc 7.0 and 7.1 complain thusly:
2.10099 - # icc: Command line warning: ignoring option '-M'; no argument required
2.10100 - # The diagnosis changed in icc 8.0:
2.10101 - # icc: Command line remark: option '-MP' not supported
2.10102 - if (grep 'ignoring option' conftest.err ||
2.10103 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.10104 - am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
2.10105 - break
2.10106 - fi
2.10107 - fi
2.10108 - done
2.10109 -
2.10110 - cd ..
2.10111 - rm -rf conftest.dir
2.10112 -else
2.10113 - am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
2.10114 -fi
2.10115 -
2.10116 -fi
2.10117 -{ echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
2.10118 -echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
2.10119 -CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
2.10120 -
2.10121 -
2.10122 -
2.10123 -if
2.10124 - test "x$enable_dependency_tracking" != xno \
2.10125 - && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
2.10126 - am__fastdepCC_FOR_BUILD_TRUE=
2.10127 - am__fastdepCC_FOR_BUILD_FALSE='#'
2.10128 -else
2.10129 - am__fastdepCC_FOR_BUILD_TRUE='#'
2.10130 - am__fastdepCC_FOR_BUILD_FALSE=
2.10131 -fi
2.10132 -
2.10133 -
2.10134 - case $ac_cv_build_prog_cc_stdc in
2.10135 - no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
2.10136 - *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
2.10137 -echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
2.10138 -if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
2.10139 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.10140 -else
2.10141 - ac_cv_build_prog_cc_stdc=no
2.10142 -ac_save_CC=$CC_FOR_BUILD
2.10143 -cat >conftest.$ac_ext <<_ACEOF
2.10144 -/* confdefs.h. */
2.10145 -_ACEOF
2.10146 -cat confdefs.h >>conftest.$ac_ext
2.10147 -cat >>conftest.$ac_ext <<_ACEOF
2.10148 -/* end confdefs.h. */
2.10149 -#include <stdarg.h>
2.10150 -#include <stdbool.h>
2.10151 -#include <stdlib.h>
2.10152 -#include <wchar.h>
2.10153 -#include <stdio.h>
2.10154 -
2.10155 -// Check varargs macros. These examples are taken from C99 6.10.3.5.
2.10156 -#define debug(...) fprintf (stderr, __VA_ARGS__)
2.10157 -#define showlist(...) puts (#__VA_ARGS__)
2.10158 -#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2.10159 -static void
2.10160 -test_varargs_macros (void)
2.10161 -{
2.10162 - int x = 1234;
2.10163 - int y = 5678;
2.10164 - debug ("Flag");
2.10165 - debug ("X = %d\n", x);
2.10166 - showlist (The first, second, and third items.);
2.10167 - report (x>y, "x is %d but y is %d", x, y);
2.10168 -}
2.10169 -
2.10170 -// Check long long types.
2.10171 -#define BIG64 18446744073709551615ull
2.10172 -#define BIG32 4294967295ul
2.10173 -#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2.10174 -#if !BIG_OK
2.10175 - your preprocessor is broken;
2.10176 -#endif
2.10177 -#if BIG_OK
2.10178 -#else
2.10179 - your preprocessor is broken;
2.10180 -#endif
2.10181 -static long long int bignum = -9223372036854775807LL;
2.10182 -static unsigned long long int ubignum = BIG64;
2.10183 -
2.10184 -struct incomplete_array
2.10185 -{
2.10186 - int datasize;
2.10187 - double data[];
2.10188 -};
2.10189 -
2.10190 -struct named_init {
2.10191 - int number;
2.10192 - const wchar_t *name;
2.10193 - double average;
2.10194 -};
2.10195 -
2.10196 -typedef const char *ccp;
2.10197 -
2.10198 -static inline int
2.10199 -test_restrict (ccp restrict text)
2.10200 -{
2.10201 - // See if C++-style comments work.
2.10202 - // Iterate through items via the restricted pointer.
2.10203 - // Also check for declarations in for loops.
2.10204 - for (unsigned int i = 0; *(text+i) != '\0'; ++i)
2.10205 - continue;
2.10206 - return 0;
2.10207 -}
2.10208 -
2.10209 -// Check varargs and va_copy.
2.10210 -static void
2.10211 -test_varargs (const char *format, ...)
2.10212 -{
2.10213 - va_list args;
2.10214 - va_start (args, format);
2.10215 - va_list args_copy;
2.10216 - va_copy (args_copy, args);
2.10217 -
2.10218 - const char *str;
2.10219 - int number;
2.10220 - float fnumber;
2.10221 -
2.10222 - while (*format)
2.10223 - {
2.10224 - switch (*format++)
2.10225 - {
2.10226 - case 's': // string
2.10227 - str = va_arg (args_copy, const char *);
2.10228 - break;
2.10229 - case 'd': // int
2.10230 - number = va_arg (args_copy, int);
2.10231 - break;
2.10232 - case 'f': // float
2.10233 - fnumber = va_arg (args_copy, double);
2.10234 - break;
2.10235 - default:
2.10236 - break;
2.10237 - }
2.10238 - }
2.10239 - va_end (args_copy);
2.10240 - va_end (args);
2.10241 -}
2.10242 -
2.10243 -int
2.10244 -main ()
2.10245 -{
2.10246 -
2.10247 - // Check bool.
2.10248 - _Bool success = false;
2.10249 -
2.10250 - // Check restrict.
2.10251 - if (test_restrict ("String literal") == 0)
2.10252 - success = true;
2.10253 - char *restrict newvar = "Another string";
2.10254 -
2.10255 - // Check varargs.
2.10256 - test_varargs ("s, d' f .", "string", 65, 34.234);
2.10257 - test_varargs_macros ();
2.10258 -
2.10259 - // Check flexible array members.
2.10260 - struct incomplete_array *ia =
2.10261 - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2.10262 - ia->datasize = 10;
2.10263 - for (int i = 0; i < ia->datasize; ++i)
2.10264 - ia->data[i] = i * 1.234;
2.10265 -
2.10266 - // Check named initializers.
2.10267 - struct named_init ni = {
2.10268 - .number = 34,
2.10269 - .name = L"Test wide string",
2.10270 - .average = 543.34343,
2.10271 - };
2.10272 -
2.10273 - ni.number = 58;
2.10274 -
2.10275 - int dynamic_array[ni.number];
2.10276 - dynamic_array[ni.number - 1] = 543;
2.10277 -
2.10278 - // work around unused variable warnings
2.10279 - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
2.10280 - || dynamic_array[ni.number - 1] != 543);
2.10281 -
2.10282 - ;
2.10283 - return 0;
2.10284 -}
2.10285 -_ACEOF
2.10286 -for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
2.10287 -do
2.10288 - CC_FOR_BUILD="$ac_save_CC $ac_arg"
2.10289 - rm -f conftest.$ac_build_objext
2.10290 -if { (ac_try="$ac_build_compile"
2.10291 -case "(($ac_try" in
2.10292 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.10293 - *) ac_try_echo=$ac_try;;
2.10294 -esac
2.10295 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.10296 - (eval "$ac_build_compile") 2>conftest.er1
2.10297 - ac_status=$?
2.10298 - grep -v '^ *+' conftest.er1 >conftest.err
2.10299 - rm -f conftest.er1
2.10300 - cat conftest.err >&5
2.10301 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.10302 - (exit $ac_status); } && {
2.10303 - test -z "$ac_c_werror_flag" ||
2.10304 - test ! -s conftest.err
2.10305 - } && test -s conftest.$ac_build_objext; then
2.10306 - ac_cv_build_prog_cc_stdc=$ac_arg
2.10307 -else
2.10308 - echo "$as_me: failed program was:" >&5
2.10309 -sed 's/^/| /' conftest.$ac_ext >&5
2.10310 -
2.10311 -
2.10312 -fi
2.10313 -
2.10314 -rm -f core conftest.err conftest.$ac_build_objext
2.10315 - test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
2.10316 -done
2.10317 -rm -f conftest.$ac_ext
2.10318 -CC_FOR_BUILD=$ac_save_CC
2.10319 -
2.10320 -fi
2.10321 -# AC_CACHE_VAL
2.10322 -case "x$ac_cv_build_prog_cc_stdc" in
2.10323 - x)
2.10324 - { echo "$as_me:$LINENO: result: none needed" >&5
2.10325 -echo "${ECHO_T}none needed" >&6; } ;;
2.10326 - xno)
2.10327 - { echo "$as_me:$LINENO: result: unsupported" >&5
2.10328 -echo "${ECHO_T}unsupported" >&6; } ;;
2.10329 - *)
2.10330 - CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
2.10331 - { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
2.10332 -echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
2.10333 -esac
2.10334 -if test "x$ac_cv_build_prog_cc_stdc" != xno; then
2.10335 - ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
2.10336 -else
2.10337 - { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
2.10338 -echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
2.10339 -if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
2.10340 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.10341 -else
2.10342 - ac_cv_build_prog_cc_stdc=no
2.10343 -ac_save_CC=$CC_FOR_BUILD
2.10344 -cat >conftest.$ac_ext <<_ACEOF
2.10345 -/* confdefs.h. */
2.10346 -_ACEOF
2.10347 -cat confdefs.h >>conftest.$ac_ext
2.10348 -cat >>conftest.$ac_ext <<_ACEOF
2.10349 -/* end confdefs.h. */
2.10350 -#include <stdarg.h>
2.10351 -#include <stdio.h>
2.10352 -#include <sys/types.h>
2.10353 -#include <sys/stat.h>
2.10354 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.10355 -struct buf { int x; };
2.10356 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.10357 -static char *e (p, i)
2.10358 - char **p;
2.10359 - int i;
2.10360 -{
2.10361 - return p[i];
2.10362 -}
2.10363 -static char *f (char * (*g) (char **, int), char **p, ...)
2.10364 -{
2.10365 - char *s;
2.10366 - va_list v;
2.10367 - va_start (v,p);
2.10368 - s = g (p, va_arg (v,int));
2.10369 - va_end (v);
2.10370 - return s;
2.10371 -}
2.10372 -
2.10373 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.10374 - function prototypes and stuff, but not '\xHH' hex character constants.
2.10375 - These don't provoke an error unfortunately, instead are silently treated
2.10376 - as 'x'. The following induces an error, until -std is added to get
2.10377 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.10378 - array size at least. It's necessary to write '\x00'==0 to get something
2.10379 - that's true only with -std. */
2.10380 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.10381 -
2.10382 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.10383 - inside strings and character constants. */
2.10384 -#define FOO(x) 'x'
2.10385 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.10386 -
2.10387 -int test (int i, double x);
2.10388 -struct s1 {int (*f) (int a);};
2.10389 -struct s2 {int (*f) (double a);};
2.10390 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.10391 -int argc;
2.10392 -char **argv;
2.10393 -int
2.10394 -main ()
2.10395 -{
2.10396 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.10397 - ;
2.10398 - return 0;
2.10399 -}
2.10400 -_ACEOF
2.10401 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.10402 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.10403 -do
2.10404 - CC_FOR_BUILD="$ac_save_CC $ac_arg"
2.10405 - rm -f conftest.$ac_build_objext
2.10406 -if { (ac_try="$ac_build_compile"
2.10407 -case "(($ac_try" in
2.10408 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.10409 - *) ac_try_echo=$ac_try;;
2.10410 -esac
2.10411 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.10412 - (eval "$ac_build_compile") 2>conftest.er1
2.10413 - ac_status=$?
2.10414 - grep -v '^ *+' conftest.er1 >conftest.err
2.10415 - rm -f conftest.er1
2.10416 - cat conftest.err >&5
2.10417 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.10418 - (exit $ac_status); } && {
2.10419 - test -z "$ac_c_werror_flag" ||
2.10420 - test ! -s conftest.err
2.10421 - } && test -s conftest.$ac_build_objext; then
2.10422 - ac_cv_build_prog_cc_stdc=$ac_arg
2.10423 -else
2.10424 - echo "$as_me: failed program was:" >&5
2.10425 -sed 's/^/| /' conftest.$ac_ext >&5
2.10426 -
2.10427 -
2.10428 -fi
2.10429 -
2.10430 -rm -f core conftest.err conftest.$ac_build_objext
2.10431 - test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
2.10432 -done
2.10433 -rm -f conftest.$ac_ext
2.10434 -CC_FOR_BUILD=$ac_save_CC
2.10435 -
2.10436 -fi
2.10437 -# AC_CACHE_VAL
2.10438 -case "x$ac_cv_build_prog_cc_stdc" in
2.10439 - x)
2.10440 - { echo "$as_me:$LINENO: result: none needed" >&5
2.10441 -echo "${ECHO_T}none needed" >&6; } ;;
2.10442 - xno)
2.10443 - { echo "$as_me:$LINENO: result: unsupported" >&5
2.10444 -echo "${ECHO_T}unsupported" >&6; } ;;
2.10445 - *)
2.10446 - CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
2.10447 - { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
2.10448 -echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
2.10449 -esac
2.10450 -if test "x$ac_cv_build_prog_cc_stdc" != xno; then
2.10451 - ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
2.10452 -else
2.10453 - ac_cv_build_prog_cc_stdc=no
2.10454 -fi
2.10455 -
2.10456 -
2.10457 -fi
2.10458 -
2.10459 - ;;
2.10460 -esac
2.10461 - { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
2.10462 -echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
2.10463 - if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
2.10464 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.10465 -fi
2.10466 -
2.10467 - case $ac_cv_build_prog_cc_stdc in
2.10468 - no) { echo "$as_me:$LINENO: result: unsupported" >&5
2.10469 -echo "${ECHO_T}unsupported" >&6; } ;;
2.10470 - '') { echo "$as_me:$LINENO: result: none needed" >&5
2.10471 -echo "${ECHO_T}none needed" >&6; } ;;
2.10472 - *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
2.10473 -echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
2.10474 -esac
2.10475 -
2.10476 -
2.10477 -ac_ext=c
2.10478 -ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
2.10479 -ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
2.10480 -ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.10481 -ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
2.10482 -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2.10483 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2.10484 -# On Suns, sometimes $CPP names a directory.
2.10485 -if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
2.10486 - CPP_FOR_BUILD=
2.10487 -fi
2.10488 -if test -z "$CPP_FOR_BUILD"; then
2.10489 - if test "${ac_cv_build_prog_CPP+set}" = set; then
2.10490 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.10491 -else
2.10492 - # Double quotes because CPP needs to be expanded
2.10493 - for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
2.10494 - do
2.10495 - ac_preproc_ok=false
2.10496 -for ac_c_preproc_warn_flag in '' yes
2.10497 -do
2.10498 - # Use a header file that comes with gcc, so configuring glibc
2.10499 - # with a fresh cross-compiler works.
2.10500 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2.10501 - # <limits.h> exists even on freestanding compilers.
2.10502 - # On the NeXT, cc -E runs the code through the compiler's parser,
2.10503 - # not just through cpp. "Syntax error" is here to catch this case.
2.10504 - cat >conftest.$ac_ext <<_ACEOF
2.10505 -/* confdefs.h. */
2.10506 -_ACEOF
2.10507 -cat confdefs.h >>conftest.$ac_ext
2.10508 -cat >>conftest.$ac_ext <<_ACEOF
2.10509 -/* end confdefs.h. */
2.10510 -#ifdef __STDC__
2.10511 -# include <limits.h>
2.10512 -#else
2.10513 -# include <assert.h>
2.10514 -#endif
2.10515 - Syntax error
2.10516 -_ACEOF
2.10517 -if { (ac_try="$ac_build_cpp conftest.$ac_ext"
2.10518 -case "(($ac_try" in
2.10519 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.10520 - *) ac_try_echo=$ac_try;;
2.10521 -esac
2.10522 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.10523 - (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
2.10524 - ac_status=$?
2.10525 - grep -v '^ *+' conftest.er1 >conftest.err
2.10526 - rm -f conftest.er1
2.10527 - cat conftest.err >&5
2.10528 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.10529 - (exit $ac_status); } >/dev/null && {
2.10530 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.10531 - test ! -s conftest.err
2.10532 - }; then
2.10533 - :
2.10534 -else
2.10535 - echo "$as_me: failed program was:" >&5
2.10536 -sed 's/^/| /' conftest.$ac_ext >&5
2.10537 -
2.10538 - # Broken: fails on valid input.
2.10539 -continue
2.10540 -fi
2.10541 -
2.10542 -rm -f conftest.err conftest.$ac_ext
2.10543 -
2.10544 - # OK, works on sane cases. Now check whether nonexistent headers
2.10545 - # can be detected and how.
2.10546 - cat >conftest.$ac_ext <<_ACEOF
2.10547 -/* confdefs.h. */
2.10548 -_ACEOF
2.10549 -cat confdefs.h >>conftest.$ac_ext
2.10550 -cat >>conftest.$ac_ext <<_ACEOF
2.10551 -/* end confdefs.h. */
2.10552 -#include <ac_nonexistent.h>
2.10553 -_ACEOF
2.10554 -if { (ac_try="$ac_build_cpp conftest.$ac_ext"
2.10555 -case "(($ac_try" in
2.10556 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.10557 - *) ac_try_echo=$ac_try;;
2.10558 -esac
2.10559 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.10560 - (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
2.10561 - ac_status=$?
2.10562 - grep -v '^ *+' conftest.er1 >conftest.err
2.10563 - rm -f conftest.er1
2.10564 - cat conftest.err >&5
2.10565 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.10566 - (exit $ac_status); } >/dev/null && {
2.10567 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.10568 - test ! -s conftest.err
2.10569 - }; then
2.10570 - # Broken: success on invalid input.
2.10571 -continue
2.10572 -else
2.10573 - echo "$as_me: failed program was:" >&5
2.10574 -sed 's/^/| /' conftest.$ac_ext >&5
2.10575 -
2.10576 - # Passes both tests.
2.10577 -ac_preproc_ok=:
2.10578 -break
2.10579 -fi
2.10580 -
2.10581 -rm -f conftest.err conftest.$ac_ext
2.10582 -
2.10583 -done
2.10584 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2.10585 -rm -f conftest.err conftest.$ac_ext
2.10586 -if $ac_preproc_ok; then
2.10587 - break
2.10588 -fi
2.10589 -
2.10590 - done
2.10591 - ac_cv_build_prog_CPP=$CPP_FOR_BUILD
2.10592 -
2.10593 -fi
2.10594 - CPP_FOR_BUILD=$ac_cv_build_prog_CPP
2.10595 -else
2.10596 - ac_cv_build_prog_CPP=$CPP_FOR_BUILD
2.10597 -fi
2.10598 -{ echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
2.10599 -echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
2.10600 -ac_preproc_ok=false
2.10601 -for ac_c_preproc_warn_flag in '' yes
2.10602 -do
2.10603 - # Use a header file that comes with gcc, so configuring glibc
2.10604 - # with a fresh cross-compiler works.
2.10605 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2.10606 - # <limits.h> exists even on freestanding compilers.
2.10607 - # On the NeXT, cc -E runs the code through the compiler's parser,
2.10608 - # not just through cpp. "Syntax error" is here to catch this case.
2.10609 - cat >conftest.$ac_ext <<_ACEOF
2.10610 -/* confdefs.h. */
2.10611 -_ACEOF
2.10612 -cat confdefs.h >>conftest.$ac_ext
2.10613 -cat >>conftest.$ac_ext <<_ACEOF
2.10614 -/* end confdefs.h. */
2.10615 -#ifdef __STDC__
2.10616 -# include <limits.h>
2.10617 -#else
2.10618 -# include <assert.h>
2.10619 -#endif
2.10620 - Syntax error
2.10621 -_ACEOF
2.10622 -if { (ac_try="$ac_build_cpp conftest.$ac_ext"
2.10623 -case "(($ac_try" in
2.10624 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.10625 - *) ac_try_echo=$ac_try;;
2.10626 -esac
2.10627 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.10628 - (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
2.10629 - ac_status=$?
2.10630 - grep -v '^ *+' conftest.er1 >conftest.err
2.10631 - rm -f conftest.er1
2.10632 - cat conftest.err >&5
2.10633 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.10634 - (exit $ac_status); } >/dev/null && {
2.10635 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.10636 - test ! -s conftest.err
2.10637 - }; then
2.10638 - :
2.10639 -else
2.10640 - echo "$as_me: failed program was:" >&5
2.10641 -sed 's/^/| /' conftest.$ac_ext >&5
2.10642 -
2.10643 - # Broken: fails on valid input.
2.10644 -continue
2.10645 -fi
2.10646 -
2.10647 -rm -f conftest.err conftest.$ac_ext
2.10648 -
2.10649 - # OK, works on sane cases. Now check whether nonexistent headers
2.10650 - # can be detected and how.
2.10651 - cat >conftest.$ac_ext <<_ACEOF
2.10652 -/* confdefs.h. */
2.10653 -_ACEOF
2.10654 -cat confdefs.h >>conftest.$ac_ext
2.10655 -cat >>conftest.$ac_ext <<_ACEOF
2.10656 -/* end confdefs.h. */
2.10657 -#include <ac_nonexistent.h>
2.10658 -_ACEOF
2.10659 -if { (ac_try="$ac_build_cpp conftest.$ac_ext"
2.10660 -case "(($ac_try" in
2.10661 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.10662 - *) ac_try_echo=$ac_try;;
2.10663 -esac
2.10664 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.10665 - (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
2.10666 - ac_status=$?
2.10667 - grep -v '^ *+' conftest.er1 >conftest.err
2.10668 - rm -f conftest.er1
2.10669 - cat conftest.err >&5
2.10670 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.10671 - (exit $ac_status); } >/dev/null && {
2.10672 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.10673 - test ! -s conftest.err
2.10674 - }; then
2.10675 - # Broken: success on invalid input.
2.10676 -continue
2.10677 -else
2.10678 - echo "$as_me: failed program was:" >&5
2.10679 -sed 's/^/| /' conftest.$ac_ext >&5
2.10680 -
2.10681 - # Passes both tests.
2.10682 -ac_preproc_ok=:
2.10683 -break
2.10684 -fi
2.10685 -
2.10686 -rm -f conftest.err conftest.$ac_ext
2.10687 -
2.10688 -done
2.10689 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2.10690 -rm -f conftest.err conftest.$ac_ext
2.10691 -if $ac_preproc_ok; then
2.10692 - :
2.10693 -else
2.10694 - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
2.10695 -See \`config.log' for more details." >&5
2.10696 -echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
2.10697 -See \`config.log' for more details." >&2;}
2.10698 - { (exit 1); exit 1; }; }
2.10699 -fi
2.10700 -
2.10701 -ac_ext=c
2.10702 -ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
2.10703 -ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
2.10704 -ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.10705 -ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
2.10706 -
2.10707 -
2.10708 -
2.10709 -
2.10710 -BUILD_EXEEXT=$ac_build_exeext
2.10711 -BUILD_OBJEXT=$ac_build_objext
2.10712 -
2.10713 -ac_ext=m
2.10714 -ac_cpp='$OBJCPP $CPPFLAGS'
2.10715 -ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.10716 -ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.10717 -ac_compiler_gnu=$ac_cv_objc_compiler_gnu
2.10718 -if test -n "$ac_tool_prefix"; then
2.10719 - for ac_prog in gcc objcc objc cc CC
2.10720 - do
2.10721 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.10722 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2.10723 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.10724 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.10725 -if test "${ac_cv_prog_OBJC+set}" = set; then
2.10726 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.10727 -else
2.10728 - if test -n "$OBJC"; then
2.10729 - ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
2.10730 -else
2.10731 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.10732 -for as_dir in $PATH
2.10733 -do
2.10734 - IFS=$as_save_IFS
2.10735 - test -z "$as_dir" && as_dir=.
2.10736 - for ac_exec_ext in '' $ac_executable_extensions; do
2.10737 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.10738 - ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
2.10739 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.10740 - break 2
2.10741 - fi
2.10742 -done
2.10743 -done
2.10744 -IFS=$as_save_IFS
2.10745 -
2.10746 -fi
2.10747 -fi
2.10748 -OBJC=$ac_cv_prog_OBJC
2.10749 -if test -n "$OBJC"; then
2.10750 - { echo "$as_me:$LINENO: result: $OBJC" >&5
2.10751 -echo "${ECHO_T}$OBJC" >&6; }
2.10752 -else
2.10753 - { echo "$as_me:$LINENO: result: no" >&5
2.10754 -echo "${ECHO_T}no" >&6; }
2.10755 -fi
2.10756 -
2.10757 -
2.10758 - test -n "$OBJC" && break
2.10759 - done
2.10760 -fi
2.10761 -if test -z "$OBJC"; then
2.10762 - ac_ct_OBJC=$OBJC
2.10763 - for ac_prog in gcc objcc objc cc CC
2.10764 -do
2.10765 - # Extract the first word of "$ac_prog", so it can be a program name with args.
2.10766 -set dummy $ac_prog; ac_word=$2
2.10767 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.10768 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.10769 -if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
2.10770 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.10771 -else
2.10772 - if test -n "$ac_ct_OBJC"; then
2.10773 - ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
2.10774 -else
2.10775 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.10776 -for as_dir in $PATH
2.10777 -do
2.10778 - IFS=$as_save_IFS
2.10779 - test -z "$as_dir" && as_dir=.
2.10780 - for ac_exec_ext in '' $ac_executable_extensions; do
2.10781 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.10782 - ac_cv_prog_ac_ct_OBJC="$ac_prog"
2.10783 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.10784 - break 2
2.10785 - fi
2.10786 -done
2.10787 -done
2.10788 -IFS=$as_save_IFS
2.10789 -
2.10790 -fi
2.10791 -fi
2.10792 -ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
2.10793 -if test -n "$ac_ct_OBJC"; then
2.10794 - { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
2.10795 -echo "${ECHO_T}$ac_ct_OBJC" >&6; }
2.10796 -else
2.10797 - { echo "$as_me:$LINENO: result: no" >&5
2.10798 -echo "${ECHO_T}no" >&6; }
2.10799 -fi
2.10800 -
2.10801 -
2.10802 - test -n "$ac_ct_OBJC" && break
2.10803 -done
2.10804 -
2.10805 - if test "x$ac_ct_OBJC" = x; then
2.10806 - OBJC="gcc"
2.10807 - else
2.10808 - case $cross_compiling:$ac_tool_warned in
2.10809 -yes:)
2.10810 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.10811 -whose name does not start with the host triplet. If you think this
2.10812 -configuration is useful to you, please write to autoconf@gnu.org." >&5
2.10813 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.10814 -whose name does not start with the host triplet. If you think this
2.10815 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.10816 -ac_tool_warned=yes ;;
2.10817 -esac
2.10818 - OBJC=$ac_ct_OBJC
2.10819 - fi
2.10820 -fi
2.10821 -
2.10822 -# Provide some information about the compiler.
2.10823 -echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
2.10824 -ac_compiler=`set X $ac_compile; echo $2`
2.10825 -{ (ac_try="$ac_compiler --version >&5"
2.10826 -case "(($ac_try" in
2.10827 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.10828 - *) ac_try_echo=$ac_try;;
2.10829 -esac
2.10830 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.10831 - (eval "$ac_compiler --version >&5") 2>&5
2.10832 - ac_status=$?
2.10833 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.10834 - (exit $ac_status); }
2.10835 -{ (ac_try="$ac_compiler -v >&5"
2.10836 -case "(($ac_try" in
2.10837 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.10838 - *) ac_try_echo=$ac_try;;
2.10839 -esac
2.10840 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.10841 - (eval "$ac_compiler -v >&5") 2>&5
2.10842 - ac_status=$?
2.10843 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.10844 - (exit $ac_status); }
2.10845 -{ (ac_try="$ac_compiler -V >&5"
2.10846 -case "(($ac_try" in
2.10847 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.10848 - *) ac_try_echo=$ac_try;;
2.10849 -esac
2.10850 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.10851 - (eval "$ac_compiler -V >&5") 2>&5
2.10852 - ac_status=$?
2.10853 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.10854 - (exit $ac_status); }
2.10855 -
2.10856 -{ echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
2.10857 -echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
2.10858 -if test "${ac_cv_objc_compiler_gnu+set}" = set; then
2.10859 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.10860 -else
2.10861 - cat >conftest.$ac_ext <<_ACEOF
2.10862 -/* confdefs.h. */
2.10863 -_ACEOF
2.10864 -cat confdefs.h >>conftest.$ac_ext
2.10865 -cat >>conftest.$ac_ext <<_ACEOF
2.10866 -/* end confdefs.h. */
2.10867 -
2.10868 -int
2.10869 -main ()
2.10870 -{
2.10871 -#ifndef __GNUC__
2.10872 - choke me
2.10873 -#endif
2.10874 -
2.10875 - ;
2.10876 - return 0;
2.10877 -}
2.10878 -_ACEOF
2.10879 -rm -f conftest.$ac_objext
2.10880 -if { (ac_try="$ac_compile"
2.10881 -case "(($ac_try" in
2.10882 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.10883 - *) ac_try_echo=$ac_try;;
2.10884 -esac
2.10885 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.10886 - (eval "$ac_compile") 2>conftest.er1
2.10887 - ac_status=$?
2.10888 - grep -v '^ *+' conftest.er1 >conftest.err
2.10889 - rm -f conftest.er1
2.10890 - cat conftest.err >&5
2.10891 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.10892 - (exit $ac_status); } && {
2.10893 - test -z "$ac_objc_werror_flag" ||
2.10894 - test ! -s conftest.err
2.10895 - } && test -s conftest.$ac_objext; then
2.10896 - ac_compiler_gnu=yes
2.10897 -else
2.10898 - echo "$as_me: failed program was:" >&5
2.10899 -sed 's/^/| /' conftest.$ac_ext >&5
2.10900 -
2.10901 - ac_compiler_gnu=no
2.10902 -fi
2.10903 -
2.10904 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.10905 -ac_cv_objc_compiler_gnu=$ac_compiler_gnu
2.10906 -
2.10907 -fi
2.10908 -{ echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
2.10909 -echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
2.10910 -GOBJC=`test $ac_compiler_gnu = yes && echo yes`
2.10911 -ac_test_OBJCFLAGS=${OBJCFLAGS+set}
2.10912 -ac_save_OBJCFLAGS=$OBJCFLAGS
2.10913 -{ echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
2.10914 -echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
2.10915 -if test "${ac_cv_prog_objc_g+set}" = set; then
2.10916 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.10917 -else
2.10918 - ac_save_objc_werror_flag=$ac_objc_werror_flag
2.10919 - ac_objc_werror_flag=yes
2.10920 - ac_cv_prog_objc_g=no
2.10921 - OBJCFLAGS="-g"
2.10922 - cat >conftest.$ac_ext <<_ACEOF
2.10923 -/* confdefs.h. */
2.10924 -_ACEOF
2.10925 -cat confdefs.h >>conftest.$ac_ext
2.10926 -cat >>conftest.$ac_ext <<_ACEOF
2.10927 -/* end confdefs.h. */
2.10928 -
2.10929 -int
2.10930 -main ()
2.10931 -{
2.10932 -
2.10933 - ;
2.10934 - return 0;
2.10935 -}
2.10936 -_ACEOF
2.10937 -rm -f conftest.$ac_objext
2.10938 -if { (ac_try="$ac_compile"
2.10939 -case "(($ac_try" in
2.10940 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.10941 - *) ac_try_echo=$ac_try;;
2.10942 -esac
2.10943 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.10944 - (eval "$ac_compile") 2>conftest.er1
2.10945 - ac_status=$?
2.10946 - grep -v '^ *+' conftest.er1 >conftest.err
2.10947 - rm -f conftest.er1
2.10948 - cat conftest.err >&5
2.10949 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.10950 - (exit $ac_status); } && {
2.10951 - test -z "$ac_objc_werror_flag" ||
2.10952 - test ! -s conftest.err
2.10953 - } && test -s conftest.$ac_objext; then
2.10954 - ac_cv_prog_objc_g=yes
2.10955 -else
2.10956 - echo "$as_me: failed program was:" >&5
2.10957 -sed 's/^/| /' conftest.$ac_ext >&5
2.10958 -
2.10959 - OBJCFLAGS=""
2.10960 - cat >conftest.$ac_ext <<_ACEOF
2.10961 -/* confdefs.h. */
2.10962 -_ACEOF
2.10963 -cat confdefs.h >>conftest.$ac_ext
2.10964 -cat >>conftest.$ac_ext <<_ACEOF
2.10965 -/* end confdefs.h. */
2.10966 -
2.10967 -int
2.10968 -main ()
2.10969 -{
2.10970 -
2.10971 - ;
2.10972 - return 0;
2.10973 -}
2.10974 -_ACEOF
2.10975 -rm -f conftest.$ac_objext
2.10976 -if { (ac_try="$ac_compile"
2.10977 -case "(($ac_try" in
2.10978 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.10979 - *) ac_try_echo=$ac_try;;
2.10980 -esac
2.10981 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.10982 - (eval "$ac_compile") 2>conftest.er1
2.10983 - ac_status=$?
2.10984 - grep -v '^ *+' conftest.er1 >conftest.err
2.10985 - rm -f conftest.er1
2.10986 - cat conftest.err >&5
2.10987 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.10988 - (exit $ac_status); } && {
2.10989 - test -z "$ac_objc_werror_flag" ||
2.10990 - test ! -s conftest.err
2.10991 - } && test -s conftest.$ac_objext; then
2.10992 - :
2.10993 -else
2.10994 - echo "$as_me: failed program was:" >&5
2.10995 -sed 's/^/| /' conftest.$ac_ext >&5
2.10996 -
2.10997 - ac_objc_werror_flag=$ac_save_objc_werror_flag
2.10998 - OBJCFLAGS="-g"
2.10999 - cat >conftest.$ac_ext <<_ACEOF
2.11000 -/* confdefs.h. */
2.11001 -_ACEOF
2.11002 -cat confdefs.h >>conftest.$ac_ext
2.11003 -cat >>conftest.$ac_ext <<_ACEOF
2.11004 -/* end confdefs.h. */
2.11005 -
2.11006 -int
2.11007 -main ()
2.11008 -{
2.11009 -
2.11010 - ;
2.11011 - return 0;
2.11012 -}
2.11013 -_ACEOF
2.11014 -rm -f conftest.$ac_objext
2.11015 -if { (ac_try="$ac_compile"
2.11016 -case "(($ac_try" in
2.11017 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.11018 - *) ac_try_echo=$ac_try;;
2.11019 -esac
2.11020 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.11021 - (eval "$ac_compile") 2>conftest.er1
2.11022 - ac_status=$?
2.11023 - grep -v '^ *+' conftest.er1 >conftest.err
2.11024 - rm -f conftest.er1
2.11025 - cat conftest.err >&5
2.11026 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.11027 - (exit $ac_status); } && {
2.11028 - test -z "$ac_objc_werror_flag" ||
2.11029 - test ! -s conftest.err
2.11030 - } && test -s conftest.$ac_objext; then
2.11031 - ac_cv_prog_objc_g=yes
2.11032 -else
2.11033 - echo "$as_me: failed program was:" >&5
2.11034 -sed 's/^/| /' conftest.$ac_ext >&5
2.11035 -
2.11036 -
2.11037 -fi
2.11038 -
2.11039 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.11040 -fi
2.11041 -
2.11042 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.11043 -fi
2.11044 -
2.11045 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.11046 - ac_objc_werror_flag=$ac_save_objc_werror_flag
2.11047 -fi
2.11048 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
2.11049 -echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
2.11050 -if test "$ac_test_OBJCFLAGS" = set; then
2.11051 - OBJCFLAGS=$ac_save_OBJCFLAGS
2.11052 -elif test $ac_cv_prog_objc_g = yes; then
2.11053 - if test "$GOBJC" = yes; then
2.11054 - OBJCFLAGS="-g -O2"
2.11055 - else
2.11056 - OBJCFLAGS="-g"
2.11057 - fi
2.11058 -else
2.11059 - if test "$GOBJC" = yes; then
2.11060 - OBJCFLAGS="-O2"
2.11061 - else
2.11062 - OBJCFLAGS=
2.11063 - fi
2.11064 -fi
2.11065 -ac_ext=c
2.11066 -ac_cpp='$CPP $CPPFLAGS'
2.11067 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.11068 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.11069 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.11070 -
2.11071 -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2.11072 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
2.11073 -if test "${ac_cv_path_SED+set}" = set; then
2.11074 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.11075 -else
2.11076 - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2.11077 - for ac_i in 1 2 3 4 5 6 7; do
2.11078 - ac_script="$ac_script$as_nl$ac_script"
2.11079 - done
2.11080 - echo "$ac_script" | sed 99q >conftest.sed
2.11081 - $as_unset ac_script || ac_script=
2.11082 - # Extract the first word of "sed gsed" to use in msg output
2.11083 -if test -z "$SED"; then
2.11084 -set dummy sed gsed; ac_prog_name=$2
2.11085 -if test "${ac_cv_path_SED+set}" = set; then
2.11086 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.11087 -else
2.11088 - ac_path_SED_found=false
2.11089 -# Loop through the user's path and test for each of PROGNAME-LIST
2.11090 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.11091 -for as_dir in $PATH
2.11092 -do
2.11093 - IFS=$as_save_IFS
2.11094 - test -z "$as_dir" && as_dir=.
2.11095 - for ac_prog in sed gsed; do
2.11096 - for ac_exec_ext in '' $ac_executable_extensions; do
2.11097 - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2.11098 - { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2.11099 - # Check for GNU ac_path_SED and select it if it is found.
2.11100 - # Check for GNU $ac_path_SED
2.11101 -case `"$ac_path_SED" --version 2>&1` in
2.11102 -*GNU*)
2.11103 - ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2.11104 -*)
2.11105 - ac_count=0
2.11106 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2.11107 - while :
2.11108 - do
2.11109 - cat "conftest.in" "conftest.in" >"conftest.tmp"
2.11110 - mv "conftest.tmp" "conftest.in"
2.11111 - cp "conftest.in" "conftest.nl"
2.11112 - echo '' >> "conftest.nl"
2.11113 - "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2.11114 - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2.11115 - ac_count=`expr $ac_count + 1`
2.11116 - if test $ac_count -gt ${ac_path_SED_max-0}; then
2.11117 - # Best one so far, save it but keep looking for a better one
2.11118 - ac_cv_path_SED="$ac_path_SED"
2.11119 - ac_path_SED_max=$ac_count
2.11120 - fi
2.11121 - # 10*(2^10) chars as input seems more than enough
2.11122 - test $ac_count -gt 10 && break
2.11123 - done
2.11124 - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2.11125 -esac
2.11126 -
2.11127 -
2.11128 - $ac_path_SED_found && break 3
2.11129 - done
2.11130 -done
2.11131 -
2.11132 -done
2.11133 -IFS=$as_save_IFS
2.11134 -
2.11135 -
2.11136 -fi
2.11137 -
2.11138 -SED="$ac_cv_path_SED"
2.11139 -if test -z "$SED"; then
2.11140 - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
2.11141 -echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
2.11142 - { (exit 1); exit 1; }; }
2.11143 -fi
2.11144 -
2.11145 -else
2.11146 - ac_cv_path_SED=$SED
2.11147 -fi
2.11148 -
2.11149 -fi
2.11150 -{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2.11151 -echo "${ECHO_T}$ac_cv_path_SED" >&6; }
2.11152 - SED="$ac_cv_path_SED"
2.11153 - rm -f conftest.sed
2.11154 -
2.11155 -# By default we simply use the C compiler to build assembly code.
2.11156 -
2.11157 -test "${CCAS+set}" = set || CCAS=$CC
2.11158 -test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2.11159 -
2.11160 -
2.11161 -
2.11162 -if test -n "$ac_tool_prefix"; then
2.11163 - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2.11164 -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2.11165 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.11166 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.11167 -if test "${ac_cv_prog_RANLIB+set}" = set; then
2.11168 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.11169 -else
2.11170 - if test -n "$RANLIB"; then
2.11171 - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2.11172 -else
2.11173 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.11174 -for as_dir in $PATH
2.11175 -do
2.11176 - IFS=$as_save_IFS
2.11177 - test -z "$as_dir" && as_dir=.
2.11178 - for ac_exec_ext in '' $ac_executable_extensions; do
2.11179 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.11180 - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2.11181 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.11182 - break 2
2.11183 - fi
2.11184 -done
2.11185 -done
2.11186 -IFS=$as_save_IFS
2.11187 -
2.11188 -fi
2.11189 -fi
2.11190 -RANLIB=$ac_cv_prog_RANLIB
2.11191 -if test -n "$RANLIB"; then
2.11192 - { echo "$as_me:$LINENO: result: $RANLIB" >&5
2.11193 -echo "${ECHO_T}$RANLIB" >&6; }
2.11194 -else
2.11195 - { echo "$as_me:$LINENO: result: no" >&5
2.11196 -echo "${ECHO_T}no" >&6; }
2.11197 -fi
2.11198 -
2.11199 -
2.11200 -fi
2.11201 -if test -z "$ac_cv_prog_RANLIB"; then
2.11202 - ac_ct_RANLIB=$RANLIB
2.11203 - # Extract the first word of "ranlib", so it can be a program name with args.
2.11204 -set dummy ranlib; ac_word=$2
2.11205 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.11206 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.11207 -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2.11208 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.11209 -else
2.11210 - if test -n "$ac_ct_RANLIB"; then
2.11211 - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2.11212 -else
2.11213 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.11214 -for as_dir in $PATH
2.11215 -do
2.11216 - IFS=$as_save_IFS
2.11217 - test -z "$as_dir" && as_dir=.
2.11218 - for ac_exec_ext in '' $ac_executable_extensions; do
2.11219 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.11220 - ac_cv_prog_ac_ct_RANLIB="ranlib"
2.11221 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.11222 - break 2
2.11223 - fi
2.11224 -done
2.11225 -done
2.11226 -IFS=$as_save_IFS
2.11227 -
2.11228 -fi
2.11229 -fi
2.11230 -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2.11231 -if test -n "$ac_ct_RANLIB"; then
2.11232 - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2.11233 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2.11234 -else
2.11235 - { echo "$as_me:$LINENO: result: no" >&5
2.11236 -echo "${ECHO_T}no" >&6; }
2.11237 -fi
2.11238 -
2.11239 - if test "x$ac_ct_RANLIB" = x; then
2.11240 - RANLIB=":"
2.11241 - else
2.11242 - case $cross_compiling:$ac_tool_warned in
2.11243 -yes:)
2.11244 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.11245 -whose name does not start with the host triplet. If you think this
2.11246 -configuration is useful to you, please write to autoconf@gnu.org." >&5
2.11247 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.11248 -whose name does not start with the host triplet. If you think this
2.11249 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.11250 -ac_tool_warned=yes ;;
2.11251 -esac
2.11252 - RANLIB=$ac_ct_RANLIB
2.11253 - fi
2.11254 -else
2.11255 - RANLIB="$ac_cv_prog_RANLIB"
2.11256 -fi
2.11257 -
2.11258 -
2.11259 -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2.11260 -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2.11261 -if test "${ac_cv_path_GREP+set}" = set; then
2.11262 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.11263 -else
2.11264 - # Extract the first word of "grep ggrep" to use in msg output
2.11265 -if test -z "$GREP"; then
2.11266 -set dummy grep ggrep; ac_prog_name=$2
2.11267 -if test "${ac_cv_path_GREP+set}" = set; then
2.11268 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.11269 -else
2.11270 - ac_path_GREP_found=false
2.11271 -# Loop through the user's path and test for each of PROGNAME-LIST
2.11272 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.11273 -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2.11274 -do
2.11275 - IFS=$as_save_IFS
2.11276 - test -z "$as_dir" && as_dir=.
2.11277 - for ac_prog in grep ggrep; do
2.11278 - for ac_exec_ext in '' $ac_executable_extensions; do
2.11279 - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2.11280 - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2.11281 - # Check for GNU ac_path_GREP and select it if it is found.
2.11282 - # Check for GNU $ac_path_GREP
2.11283 -case `"$ac_path_GREP" --version 2>&1` in
2.11284 -*GNU*)
2.11285 - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2.11286 -*)
2.11287 - ac_count=0
2.11288 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2.11289 - while :
2.11290 - do
2.11291 - cat "conftest.in" "conftest.in" >"conftest.tmp"
2.11292 - mv "conftest.tmp" "conftest.in"
2.11293 - cp "conftest.in" "conftest.nl"
2.11294 - echo 'GREP' >> "conftest.nl"
2.11295 - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2.11296 - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2.11297 - ac_count=`expr $ac_count + 1`
2.11298 - if test $ac_count -gt ${ac_path_GREP_max-0}; then
2.11299 - # Best one so far, save it but keep looking for a better one
2.11300 - ac_cv_path_GREP="$ac_path_GREP"
2.11301 - ac_path_GREP_max=$ac_count
2.11302 - fi
2.11303 - # 10*(2^10) chars as input seems more than enough
2.11304 - test $ac_count -gt 10 && break
2.11305 - done
2.11306 - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2.11307 -esac
2.11308 -
2.11309 -
2.11310 - $ac_path_GREP_found && break 3
2.11311 - done
2.11312 -done
2.11313 -
2.11314 -done
2.11315 -IFS=$as_save_IFS
2.11316 -
2.11317 -
2.11318 -fi
2.11319 -
2.11320 -GREP="$ac_cv_path_GREP"
2.11321 -if test -z "$GREP"; then
2.11322 - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2.11323 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2.11324 - { (exit 1); exit 1; }; }
2.11325 -fi
2.11326 -
2.11327 -else
2.11328 - ac_cv_path_GREP=$GREP
2.11329 -fi
2.11330 -
2.11331 -
2.11332 -fi
2.11333 -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
2.11334 -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
2.11335 - GREP="$ac_cv_path_GREP"
2.11336 -
2.11337 -
2.11338 -{ echo "$as_me:$LINENO: checking for egrep" >&5
2.11339 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
2.11340 -if test "${ac_cv_path_EGREP+set}" = set; then
2.11341 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.11342 -else
2.11343 - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2.11344 - then ac_cv_path_EGREP="$GREP -E"
2.11345 - else
2.11346 - # Extract the first word of "egrep" to use in msg output
2.11347 -if test -z "$EGREP"; then
2.11348 -set dummy egrep; ac_prog_name=$2
2.11349 -if test "${ac_cv_path_EGREP+set}" = set; then
2.11350 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.11351 -else
2.11352 - ac_path_EGREP_found=false
2.11353 -# Loop through the user's path and test for each of PROGNAME-LIST
2.11354 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.11355 -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2.11356 -do
2.11357 - IFS=$as_save_IFS
2.11358 - test -z "$as_dir" && as_dir=.
2.11359 - for ac_prog in egrep; do
2.11360 - for ac_exec_ext in '' $ac_executable_extensions; do
2.11361 - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2.11362 - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
2.11363 - # Check for GNU ac_path_EGREP and select it if it is found.
2.11364 - # Check for GNU $ac_path_EGREP
2.11365 -case `"$ac_path_EGREP" --version 2>&1` in
2.11366 -*GNU*)
2.11367 - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2.11368 -*)
2.11369 - ac_count=0
2.11370 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2.11371 - while :
2.11372 - do
2.11373 - cat "conftest.in" "conftest.in" >"conftest.tmp"
2.11374 - mv "conftest.tmp" "conftest.in"
2.11375 - cp "conftest.in" "conftest.nl"
2.11376 - echo 'EGREP' >> "conftest.nl"
2.11377 - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2.11378 - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2.11379 - ac_count=`expr $ac_count + 1`
2.11380 - if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2.11381 - # Best one so far, save it but keep looking for a better one
2.11382 - ac_cv_path_EGREP="$ac_path_EGREP"
2.11383 - ac_path_EGREP_max=$ac_count
2.11384 - fi
2.11385 - # 10*(2^10) chars as input seems more than enough
2.11386 - test $ac_count -gt 10 && break
2.11387 - done
2.11388 - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2.11389 -esac
2.11390 -
2.11391 -
2.11392 - $ac_path_EGREP_found && break 3
2.11393 - done
2.11394 -done
2.11395 -
2.11396 -done
2.11397 -IFS=$as_save_IFS
2.11398 -
2.11399 -
2.11400 -fi
2.11401 -
2.11402 -EGREP="$ac_cv_path_EGREP"
2.11403 -if test -z "$EGREP"; then
2.11404 - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2.11405 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2.11406 - { (exit 1); exit 1; }; }
2.11407 -fi
2.11408 -
2.11409 -else
2.11410 - ac_cv_path_EGREP=$EGREP
2.11411 -fi
2.11412 -
2.11413 -
2.11414 - fi
2.11415 -fi
2.11416 -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
2.11417 -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
2.11418 - EGREP="$ac_cv_path_EGREP"
2.11419 -
2.11420 -
2.11421 -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2.11422 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
2.11423 -if test "${ac_cv_header_stdc+set}" = set; then
2.11424 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.11425 -else
2.11426 - cat >conftest.$ac_ext <<_ACEOF
2.11427 -/* confdefs.h. */
2.11428 -_ACEOF
2.11429 -cat confdefs.h >>conftest.$ac_ext
2.11430 -cat >>conftest.$ac_ext <<_ACEOF
2.11431 -/* end confdefs.h. */
2.11432 -#include <stdlib.h>
2.11433 -#include <stdarg.h>
2.11434 -#include <string.h>
2.11435 -#include <float.h>
2.11436 -
2.11437 -int
2.11438 -main ()
2.11439 -{
2.11440 -
2.11441 - ;
2.11442 - return 0;
2.11443 -}
2.11444 -_ACEOF
2.11445 -rm -f conftest.$ac_objext
2.11446 -if { (ac_try="$ac_compile"
2.11447 -case "(($ac_try" in
2.11448 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.11449 - *) ac_try_echo=$ac_try;;
2.11450 -esac
2.11451 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.11452 - (eval "$ac_compile") 2>conftest.er1
2.11453 - ac_status=$?
2.11454 - grep -v '^ *+' conftest.er1 >conftest.err
2.11455 - rm -f conftest.er1
2.11456 - cat conftest.err >&5
2.11457 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.11458 - (exit $ac_status); } && {
2.11459 - test -z "$ac_c_werror_flag" ||
2.11460 - test ! -s conftest.err
2.11461 - } && test -s conftest.$ac_objext; then
2.11462 - ac_cv_header_stdc=yes
2.11463 -else
2.11464 - echo "$as_me: failed program was:" >&5
2.11465 -sed 's/^/| /' conftest.$ac_ext >&5
2.11466 -
2.11467 - ac_cv_header_stdc=no
2.11468 -fi
2.11469 -
2.11470 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.11471 -
2.11472 -if test $ac_cv_header_stdc = yes; then
2.11473 - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2.11474 - cat >conftest.$ac_ext <<_ACEOF
2.11475 -/* confdefs.h. */
2.11476 -_ACEOF
2.11477 -cat confdefs.h >>conftest.$ac_ext
2.11478 -cat >>conftest.$ac_ext <<_ACEOF
2.11479 -/* end confdefs.h. */
2.11480 -#include <string.h>
2.11481 -
2.11482 -_ACEOF
2.11483 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2.11484 - $EGREP "memchr" >/dev/null 2>&1; then
2.11485 - :
2.11486 -else
2.11487 - ac_cv_header_stdc=no
2.11488 -fi
2.11489 -rm -f conftest*
2.11490 -
2.11491 -fi
2.11492 -
2.11493 -if test $ac_cv_header_stdc = yes; then
2.11494 - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2.11495 - cat >conftest.$ac_ext <<_ACEOF
2.11496 -/* confdefs.h. */
2.11497 -_ACEOF
2.11498 -cat confdefs.h >>conftest.$ac_ext
2.11499 -cat >>conftest.$ac_ext <<_ACEOF
2.11500 -/* end confdefs.h. */
2.11501 -#include <stdlib.h>
2.11502 -
2.11503 -_ACEOF
2.11504 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2.11505 - $EGREP "free" >/dev/null 2>&1; then
2.11506 - :
2.11507 -else
2.11508 - ac_cv_header_stdc=no
2.11509 -fi
2.11510 -rm -f conftest*
2.11511 -
2.11512 -fi
2.11513 -
2.11514 -if test $ac_cv_header_stdc = yes; then
2.11515 - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2.11516 - if test "$cross_compiling" = yes; then
2.11517 - :
2.11518 -else
2.11519 - cat >conftest.$ac_ext <<_ACEOF
2.11520 -/* confdefs.h. */
2.11521 -_ACEOF
2.11522 -cat confdefs.h >>conftest.$ac_ext
2.11523 -cat >>conftest.$ac_ext <<_ACEOF
2.11524 -/* end confdefs.h. */
2.11525 -#include <ctype.h>
2.11526 -#include <stdlib.h>
2.11527 -#if ((' ' & 0x0FF) == 0x020)
2.11528 -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2.11529 -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2.11530 -#else
2.11531 -# define ISLOWER(c) \
2.11532 - (('a' <= (c) && (c) <= 'i') \
2.11533 - || ('j' <= (c) && (c) <= 'r') \
2.11534 - || ('s' <= (c) && (c) <= 'z'))
2.11535 -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2.11536 -#endif
2.11537 -
2.11538 -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2.11539 -int
2.11540 -main ()
2.11541 -{
2.11542 - int i;
2.11543 - for (i = 0; i < 256; i++)
2.11544 - if (XOR (islower (i), ISLOWER (i))
2.11545 - || toupper (i) != TOUPPER (i))
2.11546 - return 2;
2.11547 - return 0;
2.11548 -}
2.11549 -_ACEOF
2.11550 -rm -f conftest$ac_exeext
2.11551 -if { (ac_try="$ac_link"
2.11552 -case "(($ac_try" in
2.11553 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.11554 - *) ac_try_echo=$ac_try;;
2.11555 -esac
2.11556 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.11557 - (eval "$ac_link") 2>&5
2.11558 - ac_status=$?
2.11559 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.11560 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2.11561 - { (case "(($ac_try" in
2.11562 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.11563 - *) ac_try_echo=$ac_try;;
2.11564 -esac
2.11565 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.11566 - (eval "$ac_try") 2>&5
2.11567 - ac_status=$?
2.11568 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.11569 - (exit $ac_status); }; }; then
2.11570 - :
2.11571 -else
2.11572 - echo "$as_me: program exited with status $ac_status" >&5
2.11573 -echo "$as_me: failed program was:" >&5
2.11574 -sed 's/^/| /' conftest.$ac_ext >&5
2.11575 -
2.11576 -( exit $ac_status )
2.11577 -ac_cv_header_stdc=no
2.11578 -fi
2.11579 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2.11580 -fi
2.11581 -
2.11582 -
2.11583 -fi
2.11584 -fi
2.11585 -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2.11586 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
2.11587 -if test $ac_cv_header_stdc = yes; then
2.11588 -
2.11589 -cat >>confdefs.h <<\_ACEOF
2.11590 -#define STDC_HEADERS 1
2.11591 -_ACEOF
2.11592 -
2.11593 -fi
2.11594 -
2.11595 -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2.11596 -
2.11597 -
2.11598 -
2.11599 -
2.11600 -
2.11601 -
2.11602 -
2.11603 -
2.11604 -
2.11605 -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2.11606 - inttypes.h stdint.h unistd.h
2.11607 -do
2.11608 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2.11609 -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
2.11610 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
2.11611 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2.11612 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.11613 -else
2.11614 - cat >conftest.$ac_ext <<_ACEOF
2.11615 -/* confdefs.h. */
2.11616 -_ACEOF
2.11617 -cat confdefs.h >>conftest.$ac_ext
2.11618 -cat >>conftest.$ac_ext <<_ACEOF
2.11619 -/* end confdefs.h. */
2.11620 -$ac_includes_default
2.11621 -
2.11622 -#include <$ac_header>
2.11623 -_ACEOF
2.11624 -rm -f conftest.$ac_objext
2.11625 -if { (ac_try="$ac_compile"
2.11626 -case "(($ac_try" in
2.11627 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.11628 - *) ac_try_echo=$ac_try;;
2.11629 -esac
2.11630 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.11631 - (eval "$ac_compile") 2>conftest.er1
2.11632 - ac_status=$?
2.11633 - grep -v '^ *+' conftest.er1 >conftest.err
2.11634 - rm -f conftest.er1
2.11635 - cat conftest.err >&5
2.11636 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.11637 - (exit $ac_status); } && {
2.11638 - test -z "$ac_c_werror_flag" ||
2.11639 - test ! -s conftest.err
2.11640 - } && test -s conftest.$ac_objext; then
2.11641 - eval "$as_ac_Header=yes"
2.11642 -else
2.11643 - echo "$as_me: failed program was:" >&5
2.11644 -sed 's/^/| /' conftest.$ac_ext >&5
2.11645 -
2.11646 - eval "$as_ac_Header=no"
2.11647 -fi
2.11648 -
2.11649 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.11650 -fi
2.11651 -ac_res=`eval echo '${'$as_ac_Header'}'`
2.11652 - { echo "$as_me:$LINENO: result: $ac_res" >&5
2.11653 -echo "${ECHO_T}$ac_res" >&6; }
2.11654 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
2.11655 - cat >>confdefs.h <<_ACEOF
2.11656 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2.11657 -_ACEOF
2.11658 -
2.11659 -fi
2.11660 -
2.11661 -done
2.11662 -
2.11663 -
2.11664 -{ echo "$as_me:$LINENO: checking for void *" >&5
2.11665 -echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
2.11666 -if test "${ac_cv_type_void_p+set}" = set; then
2.11667 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.11668 -else
2.11669 - cat >conftest.$ac_ext <<_ACEOF
2.11670 -/* confdefs.h. */
2.11671 -_ACEOF
2.11672 -cat confdefs.h >>conftest.$ac_ext
2.11673 -cat >>conftest.$ac_ext <<_ACEOF
2.11674 -/* end confdefs.h. */
2.11675 -$ac_includes_default
2.11676 -typedef void * ac__type_new_;
2.11677 -int
2.11678 -main ()
2.11679 -{
2.11680 -if ((ac__type_new_ *) 0)
2.11681 - return 0;
2.11682 -if (sizeof (ac__type_new_))
2.11683 - return 0;
2.11684 - ;
2.11685 - return 0;
2.11686 -}
2.11687 -_ACEOF
2.11688 -rm -f conftest.$ac_objext
2.11689 -if { (ac_try="$ac_compile"
2.11690 -case "(($ac_try" in
2.11691 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.11692 - *) ac_try_echo=$ac_try;;
2.11693 -esac
2.11694 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.11695 - (eval "$ac_compile") 2>conftest.er1
2.11696 - ac_status=$?
2.11697 - grep -v '^ *+' conftest.er1 >conftest.err
2.11698 - rm -f conftest.er1
2.11699 - cat conftest.err >&5
2.11700 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.11701 - (exit $ac_status); } && {
2.11702 - test -z "$ac_c_werror_flag" ||
2.11703 - test ! -s conftest.err
2.11704 - } && test -s conftest.$ac_objext; then
2.11705 - ac_cv_type_void_p=yes
2.11706 -else
2.11707 - echo "$as_me: failed program was:" >&5
2.11708 -sed 's/^/| /' conftest.$ac_ext >&5
2.11709 -
2.11710 - ac_cv_type_void_p=no
2.11711 -fi
2.11712 -
2.11713 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.11714 -fi
2.11715 -{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
2.11716 -echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
2.11717 -
2.11718 -# The cast to long int works around a bug in the HP C Compiler
2.11719 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
2.11720 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
2.11721 -# This bug is HP SR number 8606223364.
2.11722 -{ echo "$as_me:$LINENO: checking size of void *" >&5
2.11723 -echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
2.11724 -if test "${ac_cv_sizeof_void_p+set}" = set; then
2.11725 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.11726 -else
2.11727 - if test "$cross_compiling" = yes; then
2.11728 - # Depending upon the size, compute the lo and hi bounds.
2.11729 -cat >conftest.$ac_ext <<_ACEOF
2.11730 -/* confdefs.h. */
2.11731 -_ACEOF
2.11732 -cat confdefs.h >>conftest.$ac_ext
2.11733 -cat >>conftest.$ac_ext <<_ACEOF
2.11734 -/* end confdefs.h. */
2.11735 -$ac_includes_default
2.11736 - typedef void * ac__type_sizeof_;
2.11737 -int
2.11738 -main ()
2.11739 -{
2.11740 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
2.11741 -test_array [0] = 0
2.11742 -
2.11743 - ;
2.11744 - return 0;
2.11745 -}
2.11746 -_ACEOF
2.11747 -rm -f conftest.$ac_objext
2.11748 -if { (ac_try="$ac_compile"
2.11749 -case "(($ac_try" in
2.11750 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.11751 - *) ac_try_echo=$ac_try;;
2.11752 -esac
2.11753 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.11754 - (eval "$ac_compile") 2>conftest.er1
2.11755 - ac_status=$?
2.11756 - grep -v '^ *+' conftest.er1 >conftest.err
2.11757 - rm -f conftest.er1
2.11758 - cat conftest.err >&5
2.11759 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.11760 - (exit $ac_status); } && {
2.11761 - test -z "$ac_c_werror_flag" ||
2.11762 - test ! -s conftest.err
2.11763 - } && test -s conftest.$ac_objext; then
2.11764 - ac_lo=0 ac_mid=0
2.11765 - while :; do
2.11766 - cat >conftest.$ac_ext <<_ACEOF
2.11767 -/* confdefs.h. */
2.11768 -_ACEOF
2.11769 -cat confdefs.h >>conftest.$ac_ext
2.11770 -cat >>conftest.$ac_ext <<_ACEOF
2.11771 -/* end confdefs.h. */
2.11772 -$ac_includes_default
2.11773 - typedef void * ac__type_sizeof_;
2.11774 -int
2.11775 -main ()
2.11776 -{
2.11777 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
2.11778 -test_array [0] = 0
2.11779 -
2.11780 - ;
2.11781 - return 0;
2.11782 -}
2.11783 -_ACEOF
2.11784 -rm -f conftest.$ac_objext
2.11785 -if { (ac_try="$ac_compile"
2.11786 -case "(($ac_try" in
2.11787 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.11788 - *) ac_try_echo=$ac_try;;
2.11789 -esac
2.11790 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.11791 - (eval "$ac_compile") 2>conftest.er1
2.11792 - ac_status=$?
2.11793 - grep -v '^ *+' conftest.er1 >conftest.err
2.11794 - rm -f conftest.er1
2.11795 - cat conftest.err >&5
2.11796 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.11797 - (exit $ac_status); } && {
2.11798 - test -z "$ac_c_werror_flag" ||
2.11799 - test ! -s conftest.err
2.11800 - } && test -s conftest.$ac_objext; then
2.11801 - ac_hi=$ac_mid; break
2.11802 -else
2.11803 - echo "$as_me: failed program was:" >&5
2.11804 -sed 's/^/| /' conftest.$ac_ext >&5
2.11805 -
2.11806 - ac_lo=`expr $ac_mid + 1`
2.11807 - if test $ac_lo -le $ac_mid; then
2.11808 - ac_lo= ac_hi=
2.11809 - break
2.11810 - fi
2.11811 - ac_mid=`expr 2 '*' $ac_mid + 1`
2.11812 -fi
2.11813 -
2.11814 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.11815 - done
2.11816 -else
2.11817 - echo "$as_me: failed program was:" >&5
2.11818 -sed 's/^/| /' conftest.$ac_ext >&5
2.11819 -
2.11820 - cat >conftest.$ac_ext <<_ACEOF
2.11821 -/* confdefs.h. */
2.11822 -_ACEOF
2.11823 -cat confdefs.h >>conftest.$ac_ext
2.11824 -cat >>conftest.$ac_ext <<_ACEOF
2.11825 -/* end confdefs.h. */
2.11826 -$ac_includes_default
2.11827 - typedef void * ac__type_sizeof_;
2.11828 -int
2.11829 -main ()
2.11830 -{
2.11831 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
2.11832 -test_array [0] = 0
2.11833 -
2.11834 - ;
2.11835 - return 0;
2.11836 -}
2.11837 -_ACEOF
2.11838 -rm -f conftest.$ac_objext
2.11839 -if { (ac_try="$ac_compile"
2.11840 -case "(($ac_try" in
2.11841 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.11842 - *) ac_try_echo=$ac_try;;
2.11843 -esac
2.11844 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.11845 - (eval "$ac_compile") 2>conftest.er1
2.11846 - ac_status=$?
2.11847 - grep -v '^ *+' conftest.er1 >conftest.err
2.11848 - rm -f conftest.er1
2.11849 - cat conftest.err >&5
2.11850 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.11851 - (exit $ac_status); } && {
2.11852 - test -z "$ac_c_werror_flag" ||
2.11853 - test ! -s conftest.err
2.11854 - } && test -s conftest.$ac_objext; then
2.11855 - ac_hi=-1 ac_mid=-1
2.11856 - while :; do
2.11857 - cat >conftest.$ac_ext <<_ACEOF
2.11858 -/* confdefs.h. */
2.11859 -_ACEOF
2.11860 -cat confdefs.h >>conftest.$ac_ext
2.11861 -cat >>conftest.$ac_ext <<_ACEOF
2.11862 -/* end confdefs.h. */
2.11863 -$ac_includes_default
2.11864 - typedef void * ac__type_sizeof_;
2.11865 -int
2.11866 -main ()
2.11867 -{
2.11868 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
2.11869 -test_array [0] = 0
2.11870 -
2.11871 - ;
2.11872 - return 0;
2.11873 -}
2.11874 -_ACEOF
2.11875 -rm -f conftest.$ac_objext
2.11876 -if { (ac_try="$ac_compile"
2.11877 -case "(($ac_try" in
2.11878 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.11879 - *) ac_try_echo=$ac_try;;
2.11880 -esac
2.11881 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.11882 - (eval "$ac_compile") 2>conftest.er1
2.11883 - ac_status=$?
2.11884 - grep -v '^ *+' conftest.er1 >conftest.err
2.11885 - rm -f conftest.er1
2.11886 - cat conftest.err >&5
2.11887 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.11888 - (exit $ac_status); } && {
2.11889 - test -z "$ac_c_werror_flag" ||
2.11890 - test ! -s conftest.err
2.11891 - } && test -s conftest.$ac_objext; then
2.11892 - ac_lo=$ac_mid; break
2.11893 -else
2.11894 - echo "$as_me: failed program was:" >&5
2.11895 -sed 's/^/| /' conftest.$ac_ext >&5
2.11896 -
2.11897 - ac_hi=`expr '(' $ac_mid ')' - 1`
2.11898 - if test $ac_mid -le $ac_hi; then
2.11899 - ac_lo= ac_hi=
2.11900 - break
2.11901 - fi
2.11902 - ac_mid=`expr 2 '*' $ac_mid`
2.11903 -fi
2.11904 -
2.11905 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.11906 - done
2.11907 -else
2.11908 - echo "$as_me: failed program was:" >&5
2.11909 -sed 's/^/| /' conftest.$ac_ext >&5
2.11910 -
2.11911 - ac_lo= ac_hi=
2.11912 -fi
2.11913 -
2.11914 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.11915 -fi
2.11916 -
2.11917 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.11918 -# Binary search between lo and hi bounds.
2.11919 -while test "x$ac_lo" != "x$ac_hi"; do
2.11920 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2.11921 - cat >conftest.$ac_ext <<_ACEOF
2.11922 -/* confdefs.h. */
2.11923 -_ACEOF
2.11924 -cat confdefs.h >>conftest.$ac_ext
2.11925 -cat >>conftest.$ac_ext <<_ACEOF
2.11926 -/* end confdefs.h. */
2.11927 -$ac_includes_default
2.11928 - typedef void * ac__type_sizeof_;
2.11929 -int
2.11930 -main ()
2.11931 -{
2.11932 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
2.11933 -test_array [0] = 0
2.11934 -
2.11935 - ;
2.11936 - return 0;
2.11937 -}
2.11938 -_ACEOF
2.11939 -rm -f conftest.$ac_objext
2.11940 -if { (ac_try="$ac_compile"
2.11941 -case "(($ac_try" in
2.11942 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.11943 - *) ac_try_echo=$ac_try;;
2.11944 -esac
2.11945 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.11946 - (eval "$ac_compile") 2>conftest.er1
2.11947 - ac_status=$?
2.11948 - grep -v '^ *+' conftest.er1 >conftest.err
2.11949 - rm -f conftest.er1
2.11950 - cat conftest.err >&5
2.11951 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.11952 - (exit $ac_status); } && {
2.11953 - test -z "$ac_c_werror_flag" ||
2.11954 - test ! -s conftest.err
2.11955 - } && test -s conftest.$ac_objext; then
2.11956 - ac_hi=$ac_mid
2.11957 -else
2.11958 - echo "$as_me: failed program was:" >&5
2.11959 -sed 's/^/| /' conftest.$ac_ext >&5
2.11960 -
2.11961 - ac_lo=`expr '(' $ac_mid ')' + 1`
2.11962 -fi
2.11963 -
2.11964 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.11965 -done
2.11966 -case $ac_lo in
2.11967 -?*) ac_cv_sizeof_void_p=$ac_lo;;
2.11968 -'') if test "$ac_cv_type_void_p" = yes; then
2.11969 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
2.11970 -See \`config.log' for more details." >&5
2.11971 -echo "$as_me: error: cannot compute sizeof (void *)
2.11972 -See \`config.log' for more details." >&2;}
2.11973 - { (exit 77); exit 77; }; }
2.11974 - else
2.11975 - ac_cv_sizeof_void_p=0
2.11976 - fi ;;
2.11977 -esac
2.11978 -else
2.11979 - cat >conftest.$ac_ext <<_ACEOF
2.11980 -/* confdefs.h. */
2.11981 -_ACEOF
2.11982 -cat confdefs.h >>conftest.$ac_ext
2.11983 -cat >>conftest.$ac_ext <<_ACEOF
2.11984 -/* end confdefs.h. */
2.11985 -$ac_includes_default
2.11986 - typedef void * ac__type_sizeof_;
2.11987 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
2.11988 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
2.11989 -#include <stdio.h>
2.11990 -#include <stdlib.h>
2.11991 -int
2.11992 -main ()
2.11993 -{
2.11994 -
2.11995 - FILE *f = fopen ("conftest.val", "w");
2.11996 - if (! f)
2.11997 - return 1;
2.11998 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
2.11999 - {
2.12000 - long int i = longval ();
2.12001 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
2.12002 - return 1;
2.12003 - fprintf (f, "%ld\n", i);
2.12004 - }
2.12005 - else
2.12006 - {
2.12007 - unsigned long int i = ulongval ();
2.12008 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
2.12009 - return 1;
2.12010 - fprintf (f, "%lu\n", i);
2.12011 - }
2.12012 - return ferror (f) || fclose (f) != 0;
2.12013 -
2.12014 - ;
2.12015 - return 0;
2.12016 -}
2.12017 -_ACEOF
2.12018 -rm -f conftest$ac_exeext
2.12019 -if { (ac_try="$ac_link"
2.12020 -case "(($ac_try" in
2.12021 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.12022 - *) ac_try_echo=$ac_try;;
2.12023 -esac
2.12024 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.12025 - (eval "$ac_link") 2>&5
2.12026 - ac_status=$?
2.12027 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.12028 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2.12029 - { (case "(($ac_try" in
2.12030 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.12031 - *) ac_try_echo=$ac_try;;
2.12032 -esac
2.12033 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.12034 - (eval "$ac_try") 2>&5
2.12035 - ac_status=$?
2.12036 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.12037 - (exit $ac_status); }; }; then
2.12038 - ac_cv_sizeof_void_p=`cat conftest.val`
2.12039 -else
2.12040 - echo "$as_me: program exited with status $ac_status" >&5
2.12041 -echo "$as_me: failed program was:" >&5
2.12042 -sed 's/^/| /' conftest.$ac_ext >&5
2.12043 -
2.12044 -( exit $ac_status )
2.12045 -if test "$ac_cv_type_void_p" = yes; then
2.12046 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
2.12047 -See \`config.log' for more details." >&5
2.12048 -echo "$as_me: error: cannot compute sizeof (void *)
2.12049 -See \`config.log' for more details." >&2;}
2.12050 - { (exit 77); exit 77; }; }
2.12051 - else
2.12052 - ac_cv_sizeof_void_p=0
2.12053 - fi
2.12054 -fi
2.12055 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2.12056 -fi
2.12057 -rm -f conftest.val
2.12058 -fi
2.12059 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
2.12060 -echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
2.12061 -
2.12062 -
2.12063 -
2.12064 -cat >>confdefs.h <<_ACEOF
2.12065 -#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2.12066 -_ACEOF
2.12067 -
2.12068 -
2.12069 -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2.12070 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
2.12071 -if test "${ac_cv_header_stdc+set}" = set; then
2.12072 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.12073 -else
2.12074 - cat >conftest.$ac_ext <<_ACEOF
2.12075 -/* confdefs.h. */
2.12076 -_ACEOF
2.12077 -cat confdefs.h >>conftest.$ac_ext
2.12078 -cat >>conftest.$ac_ext <<_ACEOF
2.12079 -/* end confdefs.h. */
2.12080 -#include <stdlib.h>
2.12081 -#include <stdarg.h>
2.12082 -#include <string.h>
2.12083 -#include <float.h>
2.12084 -
2.12085 -int
2.12086 -main ()
2.12087 -{
2.12088 -
2.12089 - ;
2.12090 - return 0;
2.12091 -}
2.12092 -_ACEOF
2.12093 -rm -f conftest.$ac_objext
2.12094 -if { (ac_try="$ac_compile"
2.12095 -case "(($ac_try" in
2.12096 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.12097 - *) ac_try_echo=$ac_try;;
2.12098 -esac
2.12099 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.12100 - (eval "$ac_compile") 2>conftest.er1
2.12101 - ac_status=$?
2.12102 - grep -v '^ *+' conftest.er1 >conftest.err
2.12103 - rm -f conftest.er1
2.12104 - cat conftest.err >&5
2.12105 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.12106 - (exit $ac_status); } && {
2.12107 - test -z "$ac_c_werror_flag" ||
2.12108 - test ! -s conftest.err
2.12109 - } && test -s conftest.$ac_objext; then
2.12110 - ac_cv_header_stdc=yes
2.12111 -else
2.12112 - echo "$as_me: failed program was:" >&5
2.12113 -sed 's/^/| /' conftest.$ac_ext >&5
2.12114 -
2.12115 - ac_cv_header_stdc=no
2.12116 -fi
2.12117 -
2.12118 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.12119 -
2.12120 -if test $ac_cv_header_stdc = yes; then
2.12121 - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2.12122 - cat >conftest.$ac_ext <<_ACEOF
2.12123 -/* confdefs.h. */
2.12124 -_ACEOF
2.12125 -cat confdefs.h >>conftest.$ac_ext
2.12126 -cat >>conftest.$ac_ext <<_ACEOF
2.12127 -/* end confdefs.h. */
2.12128 -#include <string.h>
2.12129 -
2.12130 -_ACEOF
2.12131 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2.12132 - $EGREP "memchr" >/dev/null 2>&1; then
2.12133 - :
2.12134 -else
2.12135 - ac_cv_header_stdc=no
2.12136 -fi
2.12137 -rm -f conftest*
2.12138 -
2.12139 -fi
2.12140 -
2.12141 -if test $ac_cv_header_stdc = yes; then
2.12142 - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2.12143 - cat >conftest.$ac_ext <<_ACEOF
2.12144 -/* confdefs.h. */
2.12145 -_ACEOF
2.12146 -cat confdefs.h >>conftest.$ac_ext
2.12147 -cat >>conftest.$ac_ext <<_ACEOF
2.12148 -/* end confdefs.h. */
2.12149 -#include <stdlib.h>
2.12150 -
2.12151 -_ACEOF
2.12152 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2.12153 - $EGREP "free" >/dev/null 2>&1; then
2.12154 - :
2.12155 -else
2.12156 - ac_cv_header_stdc=no
2.12157 -fi
2.12158 -rm -f conftest*
2.12159 -
2.12160 -fi
2.12161 -
2.12162 -if test $ac_cv_header_stdc = yes; then
2.12163 - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2.12164 - if test "$cross_compiling" = yes; then
2.12165 - :
2.12166 -else
2.12167 - cat >conftest.$ac_ext <<_ACEOF
2.12168 -/* confdefs.h. */
2.12169 -_ACEOF
2.12170 -cat confdefs.h >>conftest.$ac_ext
2.12171 -cat >>conftest.$ac_ext <<_ACEOF
2.12172 -/* end confdefs.h. */
2.12173 -#include <ctype.h>
2.12174 -#include <stdlib.h>
2.12175 -#if ((' ' & 0x0FF) == 0x020)
2.12176 -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2.12177 -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2.12178 -#else
2.12179 -# define ISLOWER(c) \
2.12180 - (('a' <= (c) && (c) <= 'i') \
2.12181 - || ('j' <= (c) && (c) <= 'r') \
2.12182 - || ('s' <= (c) && (c) <= 'z'))
2.12183 -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2.12184 -#endif
2.12185 -
2.12186 -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2.12187 -int
2.12188 -main ()
2.12189 -{
2.12190 - int i;
2.12191 - for (i = 0; i < 256; i++)
2.12192 - if (XOR (islower (i), ISLOWER (i))
2.12193 - || toupper (i) != TOUPPER (i))
2.12194 - return 2;
2.12195 - return 0;
2.12196 -}
2.12197 -_ACEOF
2.12198 -rm -f conftest$ac_exeext
2.12199 -if { (ac_try="$ac_link"
2.12200 -case "(($ac_try" in
2.12201 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.12202 - *) ac_try_echo=$ac_try;;
2.12203 -esac
2.12204 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.12205 - (eval "$ac_link") 2>&5
2.12206 - ac_status=$?
2.12207 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.12208 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2.12209 - { (case "(($ac_try" in
2.12210 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.12211 - *) ac_try_echo=$ac_try;;
2.12212 -esac
2.12213 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.12214 - (eval "$ac_try") 2>&5
2.12215 - ac_status=$?
2.12216 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.12217 - (exit $ac_status); }; }; then
2.12218 - :
2.12219 -else
2.12220 - echo "$as_me: program exited with status $ac_status" >&5
2.12221 -echo "$as_me: failed program was:" >&5
2.12222 -sed 's/^/| /' conftest.$ac_ext >&5
2.12223 -
2.12224 -( exit $ac_status )
2.12225 -ac_cv_header_stdc=no
2.12226 -fi
2.12227 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2.12228 -fi
2.12229 -
2.12230 -
2.12231 -fi
2.12232 -fi
2.12233 -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2.12234 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
2.12235 -if test $ac_cv_header_stdc = yes; then
2.12236 -
2.12237 -cat >>confdefs.h <<\_ACEOF
2.12238 -#define STDC_HEADERS 1
2.12239 -_ACEOF
2.12240 -
2.12241 -fi
2.12242 -
2.12243 -
2.12244 -
2.12245 -depcc="$OBJC" am_compiler_list='gcc3 gcc'
2.12246 -
2.12247 -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.12248 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.12249 -if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
2.12250 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.12251 -else
2.12252 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.12253 - # We make a subdir and do the tests there. Otherwise we can end up
2.12254 - # making bogus files that we don't know about and never remove. For
2.12255 - # instance it was reported that on HP-UX the gcc test will end up
2.12256 - # making a dummy file named `D' -- because `-MD' means `put the output
2.12257 - # in D'.
2.12258 - mkdir conftest.dir
2.12259 - # Copy depcomp to subdir because otherwise we won't find it if we're
2.12260 - # using a relative directory.
2.12261 - cp "$am_depcomp" conftest.dir
2.12262 - cd conftest.dir
2.12263 - # We will build objects and dependencies in a subdirectory because
2.12264 - # it helps to detect inapplicable dependency modes. For instance
2.12265 - # both Tru64's cc and ICC support -MD to output dependencies as a
2.12266 - # side effect of compilation, but ICC will put the dependencies in
2.12267 - # the current directory while Tru64 will put them in the object
2.12268 - # directory.
2.12269 - mkdir sub
2.12270 -
2.12271 - am_cv_OBJC_dependencies_compiler_type=none
2.12272 - if test "$am_compiler_list" = ""; then
2.12273 - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.12274 - fi
2.12275 - for depmode in $am_compiler_list; do
2.12276 - # Setup a source with many dependencies, because some compilers
2.12277 - # like to wrap large dependency lists on column 80 (with \), and
2.12278 - # we should not choose a depcomp mode which is confused by this.
2.12279 - #
2.12280 - # We need to recreate these files for each test, as the compiler may
2.12281 - # overwrite some of them when testing with obscure command lines.
2.12282 - # This happens at least with the AIX C compiler.
2.12283 - : > sub/conftest.c
2.12284 - for i in 1 2 3 4 5 6; do
2.12285 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.12286 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.12287 - # Solaris 8's {/usr,}/bin/sh.
2.12288 - touch sub/conftst$i.h
2.12289 - done
2.12290 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.12291 -
2.12292 - case $depmode in
2.12293 - nosideeffect)
2.12294 - # after this tag, mechanisms are not by side-effect, so they'll
2.12295 - # only be used when explicitly requested
2.12296 - if test "x$enable_dependency_tracking" = xyes; then
2.12297 - continue
2.12298 - else
2.12299 - break
2.12300 - fi
2.12301 - ;;
2.12302 - none) break ;;
2.12303 - esac
2.12304 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.12305 - # mode. It turns out that the SunPro C++ compiler does not properly
2.12306 - # handle `-M -o', and we need to detect this.
2.12307 - if depmode=$depmode \
2.12308 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.12309 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.12310 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.12311 - >/dev/null 2>conftest.err &&
2.12312 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.12313 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.12314 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.12315 - # icc doesn't choke on unknown options, it will just issue warnings
2.12316 - # or remarks (even with -Werror). So we grep stderr for any message
2.12317 - # that says an option was ignored or not supported.
2.12318 - # When given -MP, icc 7.0 and 7.1 complain thusly:
2.12319 - # icc: Command line warning: ignoring option '-M'; no argument required
2.12320 - # The diagnosis changed in icc 8.0:
2.12321 - # icc: Command line remark: option '-MP' not supported
2.12322 - if (grep 'ignoring option' conftest.err ||
2.12323 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.12324 - am_cv_OBJC_dependencies_compiler_type=$depmode
2.12325 - break
2.12326 - fi
2.12327 - fi
2.12328 - done
2.12329 -
2.12330 - cd ..
2.12331 - rm -rf conftest.dir
2.12332 -else
2.12333 - am_cv_OBJC_dependencies_compiler_type=none
2.12334 -fi
2.12335 -
2.12336 -fi
2.12337 -{ echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
2.12338 -echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
2.12339 -OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
2.12340 -
2.12341 -
2.12342 -
2.12343 -if
2.12344 - test "x$enable_dependency_tracking" != xno \
2.12345 - && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
2.12346 - am__fastdepOBJC_TRUE=
2.12347 - am__fastdepOBJC_FALSE='#'
2.12348 -else
2.12349 - am__fastdepOBJC_TRUE='#'
2.12350 - am__fastdepOBJC_FALSE=
2.12351 -fi
2.12352 -
2.12353 -
2.12354 -
2.12355 -# Extract the first word of "pod2man", so it can be a program name with args.
2.12356 -set dummy pod2man; ac_word=$2
2.12357 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.12358 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.12359 -if test "${ac_cv_path_POD2MAN+set}" = set; then
2.12360 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.12361 -else
2.12362 - case $POD2MAN in
2.12363 - [\\/]* | ?:[\\/]*)
2.12364 - ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
2.12365 - ;;
2.12366 - *)
2.12367 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.12368 -for as_dir in $PATH
2.12369 -do
2.12370 - IFS=$as_save_IFS
2.12371 - test -z "$as_dir" && as_dir=.
2.12372 - for ac_exec_ext in '' $ac_executable_extensions; do
2.12373 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.12374 - ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
2.12375 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.12376 - break 2
2.12377 - fi
2.12378 -done
2.12379 -done
2.12380 -IFS=$as_save_IFS
2.12381 -
2.12382 - ;;
2.12383 -esac
2.12384 -fi
2.12385 -POD2MAN=$ac_cv_path_POD2MAN
2.12386 -if test -n "$POD2MAN"; then
2.12387 - { echo "$as_me:$LINENO: result: $POD2MAN" >&5
2.12388 -echo "${ECHO_T}$POD2MAN" >&6; }
2.12389 -else
2.12390 - { echo "$as_me:$LINENO: result: no" >&5
2.12391 -echo "${ECHO_T}no" >&6; }
2.12392 -fi
2.12393 -
2.12394 -
2.12395 -# Extract the first word of "pod2html", so it can be a program name with args.
2.12396 -set dummy pod2html; ac_word=$2
2.12397 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.12398 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.12399 -if test "${ac_cv_path_POD2HTML+set}" = set; then
2.12400 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.12401 -else
2.12402 - case $POD2HTML in
2.12403 - [\\/]* | ?:[\\/]*)
2.12404 - ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
2.12405 - ;;
2.12406 - *)
2.12407 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.12408 -for as_dir in $PATH
2.12409 -do
2.12410 - IFS=$as_save_IFS
2.12411 - test -z "$as_dir" && as_dir=.
2.12412 - for ac_exec_ext in '' $ac_executable_extensions; do
2.12413 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.12414 - ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
2.12415 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.12416 - break 2
2.12417 - fi
2.12418 -done
2.12419 -done
2.12420 -IFS=$as_save_IFS
2.12421 -
2.12422 - ;;
2.12423 -esac
2.12424 -fi
2.12425 -POD2HTML=$ac_cv_path_POD2HTML
2.12426 -if test -n "$POD2HTML"; then
2.12427 - { echo "$as_me:$LINENO: result: $POD2HTML" >&5
2.12428 -echo "${ECHO_T}$POD2HTML" >&6; }
2.12429 -else
2.12430 - { echo "$as_me:$LINENO: result: no" >&5
2.12431 -echo "${ECHO_T}no" >&6; }
2.12432 -fi
2.12433 -
2.12434 -
2.12435 -
2.12436 -
2.12437 -cat >>confdefs.h <<_ACEOF
2.12438 -#define BUILD_SED_PROG "${SED}"
2.12439 -_ACEOF
2.12440 -
2.12441 -
2.12442 -cat >>confdefs.h <<_ACEOF
2.12443 -#define BUILD_CPP_PROG "${CPP}"
2.12444 -_ACEOF
2.12445 -
2.12446 -
2.12447 -
2.12448 -# Check whether --enable-strict-warn was given.
2.12449 -if test "${enable_strict_warn+set}" = set; then
2.12450 - enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
2.12451 - enable_strictwarn=yes
2.12452 - fi
2.12453 -fi
2.12454 -
2.12455 -# Check whether --enable-translator was given.
2.12456 -if test "${enable_translator+set}" = set; then
2.12457 - enableval=$enable_translator; true
2.12458 -else
2.12459 - enable_translator=yes
2.12460 -fi
2.12461 -
2.12462 -# Check whether --enable-optimized was given.
2.12463 -if test "${enable_optimized+set}" = set; then
2.12464 - enableval=$enable_optimized; true
2.12465 -else
2.12466 - enable_optimized=yes
2.12467 -fi
2.12468 -
2.12469 -# Check whether --enable-shared was given.
2.12470 -if test "${enable_shared+set}" = set; then
2.12471 - enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
2.12472 -else
2.12473 - enable_shared=cond
2.12474 -fi
2.12475 -
2.12476 -# Check whether --enable-profiled was given.
2.12477 -if test "${enable_profiled+set}" = set; then
2.12478 - enableval=$enable_profiled; if test "$enableval" == "yes"; then
2.12479 - enable_profiled=yes;
2.12480 - fi
2.12481 -fi
2.12482 -
2.12483 -# Check whether --enable-trace was given.
2.12484 -if test "${enable_trace+set}" = set; then
2.12485 - enableval=$enable_trace; if test "$enableval" == "yes"; then
2.12486 -
2.12487 -cat >>confdefs.h <<\_ACEOF
2.12488 -#define ENABLE_TRACE_IO 1
2.12489 -_ACEOF
2.12490 -
2.12491 - fi
2.12492 -fi
2.12493 -
2.12494 -# Check whether --enable-watch was given.
2.12495 -if test "${enable_watch+set}" = set; then
2.12496 - enableval=$enable_watch; if test "$enableval" == "yes"; then
2.12497 -
2.12498 -cat >>confdefs.h <<\_ACEOF
2.12499 -#define ENABLE_WATCH 1
2.12500 -_ACEOF
2.12501 -
2.12502 - fi
2.12503 -fi
2.12504 -
2.12505 -# Check whether --enable-sh4stats was given.
2.12506 -if test "${enable_sh4stats+set}" = set; then
2.12507 - enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
2.12508 -
2.12509 -cat >>confdefs.h <<\_ACEOF
2.12510 -#define ENABLE_SH4STATS 1
2.12511 -_ACEOF
2.12512 -
2.12513 - fi
2.12514 -fi
2.12515 -
2.12516 -
2.12517 -# Check whether --with-osmesa was given.
2.12518 -if test "${with_osmesa+set}" = set; then
2.12519 - withval=$with_osmesa;
2.12520 -else
2.12521 - with_osmesa=no
2.12522 -fi
2.12523 -
2.12524 -
2.12525 -# Check whether --with-gtk was given.
2.12526 -if test "${with_gtk+set}" = set; then
2.12527 - withval=$with_gtk; with_gtk=yes
2.12528 -else
2.12529 - with_gtk=x11
2.12530 -fi
2.12531 -
2.12532 -
2.12533 -# Check whether --with-esd was given.
2.12534 -if test "${with_esd+set}" = set; then
2.12535 - withval=$with_esd;
2.12536 -fi
2.12537 -
2.12538 -
2.12539 -# Check whether --with-pulse was given.
2.12540 -if test "${with_pulse+set}" = set; then
2.12541 - withval=$with_pulse;
2.12542 -fi
2.12543 -
2.12544 -
2.12545 -# Check whether --with-sdl was given.
2.12546 -if test "${with_sdl+set}" = set; then
2.12547 - withval=$with_sdl;
2.12548 -fi
2.12549 -
2.12550 -
2.12551
2.12552 if test "$ANDROID_BUILD" = "yes"; then
2.12553 with_gtk=no;
2.12554 EXTRA_OUTPUT_FILES="src/android/build.properties"
2.12555 - LIBS="-lEGL -lGLESv2 $LIBS"
2.12556 -
2.12557 -cat >>confdefs.h <<\_ACEOF
2.12558 -#define HAVE_GLES2 1
2.12559 -_ACEOF
2.12560 -
2.12561 UI_DRIVER="Android"
2.12562 - VIDEO_DRIVERS="egl"
2.12563 with_sdl=no
2.12564 else
2.12565
2.12566 @@ -11325,6 +11341,12 @@
2.12567 fi
2.12568
2.12569
2.12570 +if test "$BUILD_PKG_CONFIG_LIBDIR" != "$TARGET_PKG_CONFIG_LIBDIR"; then
2.12571 + PKG_CONFIG_LIBDIR="$BUILD_PKG_CONFIG_LIBDIR";
2.12572 + if test "x$PKG_CONFIG_LIBDIR" = "x"; then
2.12573 + export -n PKG_CONFIG_LIBDIR
2.12574 + fi
2.12575 +fi
2.12576
2.12577 pkg_failed=no
2.12578 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
2.12579 @@ -11432,6 +11454,10 @@
2.12580 echo "${ECHO_T}yes" >&6; }
2.12581 :
2.12582 fi
2.12583 +if test "$BUILD_PKG_CONFIG_LIBDIR" != "$TARGET_PKG_CONFIG_LIBDIR"; then
2.12584 + PKG_CONFIG_LIBDIR="$TARGET_PKG_CONFIG_LIBDIR";
2.12585 + export PKG_CONFIG_LIBDIR
2.12586 +fi
2.12587
2.12588
2.12589
2.12590 @@ -11779,7 +11805,7 @@
2.12591 else
2.12592
2.12593
2.12594 - if test "x$APPLE_BUILD" != 'xyes' -a "x$ANDROID_BUILD" != 'xyes'; then
2.12595 + if test "x$APPLE_BUILD" != 'xyes'; then
2.12596
2.12597 pkg_failed=no
2.12598 { echo "$as_me:$LINENO: checking for LIBGL" >&5
2.12599 @@ -11789,12 +11815,12 @@
2.12600 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
2.12601 elif test -n "$PKG_CONFIG"; then
2.12602 if test -n "$PKG_CONFIG" && \
2.12603 - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
2.12604 - ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
2.12605 - ac_status=$?
2.12606 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.12607 - (exit $ac_status); }; then
2.12608 - pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
2.12609 + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl\"") >&5
2.12610 + ($PKG_CONFIG --exists --print-errors "gl") 2>&5
2.12611 + ac_status=$?
2.12612 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.12613 + (exit $ac_status); }; then
2.12614 + pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
2.12615 else
2.12616 pkg_failed=yes
2.12617 fi
2.12618 @@ -11805,12 +11831,12 @@
2.12619 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
2.12620 elif test -n "$PKG_CONFIG"; then
2.12621 if test -n "$PKG_CONFIG" && \
2.12622 - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
2.12623 - ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
2.12624 - ac_status=$?
2.12625 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.12626 - (exit $ac_status); }; then
2.12627 - pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
2.12628 + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl\"") >&5
2.12629 + ($PKG_CONFIG --exists --print-errors "gl") 2>&5
2.12630 + ac_status=$?
2.12631 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.12632 + (exit $ac_status); }; then
2.12633 + pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
2.12634 else
2.12635 pkg_failed=yes
2.12636 fi
2.12637 @@ -11828,67 +11854,173 @@
2.12638 _pkg_short_errors_supported=no
2.12639 fi
2.12640 if test $_pkg_short_errors_supported = yes; then
2.12641 - LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
2.12642 + LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl" 2>&1`
2.12643 else
2.12644 - LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
2.12645 + LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl" 2>&1`
2.12646 fi
2.12647 # Put the nasty error message in config.log where it belongs
2.12648 echo "$LIBGL_PKG_ERRORS" >&5
2.12649
2.12650 - { { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
2.12651 -
2.12652 -$LIBGL_PKG_ERRORS
2.12653 -
2.12654 -Consider adjusting the PKG_CONFIG_PATH environment variable if you
2.12655 -installed software in a non-standard prefix.
2.12656 -
2.12657 -Alternatively, you may set the environment variables LIBGL_CFLAGS
2.12658 -and LIBGL_LIBS to avoid the need to call pkg-config.
2.12659 -See the pkg-config man page for more details.
2.12660 -" >&5
2.12661 -echo "$as_me: error: Package requirements (gl ) were not met:
2.12662 -
2.12663 -$LIBGL_PKG_ERRORS
2.12664 -
2.12665 -Consider adjusting the PKG_CONFIG_PATH environment variable if you
2.12666 -installed software in a non-standard prefix.
2.12667 -
2.12668 -Alternatively, you may set the environment variables LIBGL_CFLAGS
2.12669 -and LIBGL_LIBS to avoid the need to call pkg-config.
2.12670 -See the pkg-config man page for more details.
2.12671 -" >&2;}
2.12672 - { (exit 1); exit 1; }; }
2.12673 + { echo "$as_me:$LINENO: result: no" >&5
2.12674 +echo "${ECHO_T}no" >&6; }
2.12675 +
2.12676 + { echo "$as_me:$LINENO: checking for glEnable in -lGLESv2" >&5
2.12677 +echo $ECHO_N "checking for glEnable in -lGLESv2... $ECHO_C" >&6; }
2.12678 +if test "${ac_cv_lib_GLESv2_glEnable+set}" = set; then
2.12679 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.12680 +else
2.12681 + ac_check_lib_save_LIBS=$LIBS
2.12682 +LIBS="-lGLESv2 $LIBS"
2.12683 +cat >conftest.$ac_ext <<_ACEOF
2.12684 +/* confdefs.h. */
2.12685 +_ACEOF
2.12686 +cat confdefs.h >>conftest.$ac_ext
2.12687 +cat >>conftest.$ac_ext <<_ACEOF
2.12688 +/* end confdefs.h. */
2.12689 +
2.12690 +/* Override any GCC internal prototype to avoid an error.
2.12691 + Use char because int might match the return type of a GCC
2.12692 + builtin and then its argument prototype would still apply. */
2.12693 +#ifdef __cplusplus
2.12694 +extern "C"
2.12695 +#endif
2.12696 +char glEnable ();
2.12697 +int
2.12698 +main ()
2.12699 +{
2.12700 +return glEnable ();
2.12701 + ;
2.12702 + return 0;
2.12703 +}
2.12704 +_ACEOF
2.12705 +rm -f conftest.$ac_objext conftest$ac_exeext
2.12706 +if { (ac_try="$ac_link"
2.12707 +case "(($ac_try" in
2.12708 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.12709 + *) ac_try_echo=$ac_try;;
2.12710 +esac
2.12711 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.12712 + (eval "$ac_link") 2>conftest.er1
2.12713 + ac_status=$?
2.12714 + grep -v '^ *+' conftest.er1 >conftest.err
2.12715 + rm -f conftest.er1
2.12716 + cat conftest.err >&5
2.12717 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.12718 + (exit $ac_status); } && {
2.12719 + test -z "$ac_c_werror_flag" ||
2.12720 + test ! -s conftest.err
2.12721 + } && test -s conftest$ac_exeext &&
2.12722 + $as_test_x conftest$ac_exeext; then
2.12723 + ac_cv_lib_GLESv2_glEnable=yes
2.12724 +else
2.12725 + echo "$as_me: failed program was:" >&5
2.12726 +sed 's/^/| /' conftest.$ac_ext >&5
2.12727 +
2.12728 + ac_cv_lib_GLESv2_glEnable=no
2.12729 +fi
2.12730 +
2.12731 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2.12732 + conftest$ac_exeext conftest.$ac_ext
2.12733 +LIBS=$ac_check_lib_save_LIBS
2.12734 +fi
2.12735 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLESv2_glEnable" >&5
2.12736 +echo "${ECHO_T}$ac_cv_lib_GLESv2_glEnable" >&6; }
2.12737 +if test $ac_cv_lib_GLESv2_glEnable = yes; then
2.12738 + LIBS="-lGLESv2 $LIBS"; HAVE_GLES2='yes'
2.12739 +else
2.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.
2.12741 +See \`config.log' for more details." >&5
2.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.
2.12743 +See \`config.log' for more details." >&2;}
2.12744 + { (exit 1); exit 1; }; }
2.12745 +fi
2.12746 +
2.12747 +
2.12748 elif test $pkg_failed = untried; then
2.12749 - { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
2.12750 -is in your PATH or set the PKG_CONFIG environment variable to the full
2.12751 -path to pkg-config.
2.12752 -
2.12753 -Alternatively, you may set the environment variables LIBGL_CFLAGS
2.12754 -and LIBGL_LIBS to avoid the need to call pkg-config.
2.12755 -See the pkg-config man page for more details.
2.12756 -
2.12757 -To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2.12758 -See \`config.log' for more details." >&5
2.12759 -echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
2.12760 -is in your PATH or set the PKG_CONFIG environment variable to the full
2.12761 -path to pkg-config.
2.12762 -
2.12763 -Alternatively, you may set the environment variables LIBGL_CFLAGS
2.12764 -and LIBGL_LIBS to avoid the need to call pkg-config.
2.12765 -See the pkg-config man page for more details.
2.12766 -
2.12767 -To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2.12768 -See \`config.log' for more details." >&2;}
2.12769 - { (exit 1); exit 1; }; }
2.12770 +
2.12771 + { echo "$as_me:$LINENO: checking for glEnable in -lGLESv2" >&5
2.12772 +echo $ECHO_N "checking for glEnable in -lGLESv2... $ECHO_C" >&6; }
2.12773 +if test "${ac_cv_lib_GLESv2_glEnable+set}" = set; then
2.12774 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.12775 +else
2.12776 + ac_check_lib_save_LIBS=$LIBS
2.12777 +LIBS="-lGLESv2 $LIBS"
2.12778 +cat >conftest.$ac_ext <<_ACEOF
2.12779 +/* confdefs.h. */
2.12780 +_ACEOF
2.12781 +cat confdefs.h >>conftest.$ac_ext
2.12782 +cat >>conftest.$ac_ext <<_ACEOF
2.12783 +/* end confdefs.h. */
2.12784 +
2.12785 +/* Override any GCC internal prototype to avoid an error.
2.12786 + Use char because int might match the return type of a GCC
2.12787 + builtin and then its argument prototype would still apply. */
2.12788 +#ifdef __cplusplus
2.12789 +extern "C"
2.12790 +#endif
2.12791 +char glEnable ();
2.12792 +int
2.12793 +main ()
2.12794 +{
2.12795 +return glEnable ();
2.12796 + ;
2.12797 + return 0;
2.12798 +}
2.12799 +_ACEOF
2.12800 +rm -f conftest.$ac_objext conftest$ac_exeext
2.12801 +if { (ac_try="$ac_link"
2.12802 +case "(($ac_try" in
2.12803 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.12804 + *) ac_try_echo=$ac_try;;
2.12805 +esac
2.12806 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.12807 + (eval "$ac_link") 2>conftest.er1
2.12808 + ac_status=$?
2.12809 + grep -v '^ *+' conftest.er1 >conftest.err
2.12810 + rm -f conftest.er1
2.12811 + cat conftest.err >&5
2.12812 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.12813 + (exit $ac_status); } && {
2.12814 + test -z "$ac_c_werror_flag" ||
2.12815 + test ! -s conftest.err
2.12816 + } && test -s conftest$ac_exeext &&
2.12817 + $as_test_x conftest$ac_exeext; then
2.12818 + ac_cv_lib_GLESv2_glEnable=yes
2.12819 +else
2.12820 + echo "$as_me: failed program was:" >&5
2.12821 +sed 's/^/| /' conftest.$ac_ext >&5
2.12822 +
2.12823 + ac_cv_lib_GLESv2_glEnable=no
2.12824 +fi
2.12825 +
2.12826 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2.12827 + conftest$ac_exeext conftest.$ac_ext
2.12828 +LIBS=$ac_check_lib_save_LIBS
2.12829 +fi
2.12830 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLESv2_glEnable" >&5
2.12831 +echo "${ECHO_T}$ac_cv_lib_GLESv2_glEnable" >&6; }
2.12832 +if test $ac_cv_lib_GLESv2_glEnable = yes; then
2.12833 + LIBS="-lGLESv2 $LIBS"; HAVE_GLES2='yes'
2.12834 +else
2.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.
2.12836 +See \`config.log' for more details." >&5
2.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.
2.12838 +See \`config.log' for more details." >&2;}
2.12839 + { (exit 1); exit 1; }; }
2.12840 +fi
2.12841 +
2.12842 +
2.12843 else
2.12844 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
2.12845 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
2.12846 { echo "$as_me:$LINENO: result: yes" >&5
2.12847 echo "${ECHO_T}yes" >&6; }
2.12848 - :
2.12849 -fi
2.12850 - LIBS="$LIBS $LIBGL_LIBS";
2.12851 - CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
2.12852 +
2.12853 + LIBS="$LIBS $LIBGL_LIBS";
2.12854 + CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
2.12855 +
2.12856 +fi
2.12857 +
2.12858 else
2.12859 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
2.12860 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
2.12861 @@ -11982,13 +12114,12 @@
2.12862
2.12863 fi
2.12864
2.12865 + if test "x$HAVE_GTK_X11" = "xyes"; then
2.12866 + LIBS="$LIBS -L/usr/X11/lib -lGL"
2.12867 + fi
2.12868 fi
2.12869
2.12870 - if test "x$HAVE_GTK_X11" = "xyes"; then
2.12871 - if test "x$APPLE_BUILD" = "xyes"; then
2.12872 - LIBS="$LIBS -L/usr/X11/lib -lGL"
2.12873 - fi
2.12874 - { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
2.12875 + { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
2.12876 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
2.12877 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
2.12878 echo $ECHO_N "(cached) $ECHO_C" >&6
2.12879 @@ -12071,8 +12202,8 @@
2.12880 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
2.12881 if test $ac_cv_func_glXQueryVersion = yes; then
2.12882
2.12883 - HAVE_GLX='yes'
2.12884 - VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
2.12885 + HAVE_GLX='yes'
2.12886 + VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
2.12887
2.12888 cat >>confdefs.h <<\_ACEOF
2.12889 #define HAVE_GLX 1
2.12890 @@ -12080,13 +12211,85 @@
2.12891
2.12892 fi
2.12893
2.12894 - fi
2.12895 -
2.12896 -
2.12897 -fi
2.12898 -
2.12899 -
2.12900 -
2.12901 + { echo "$as_me:$LINENO: checking for eglGetDisplay in -lEGL" >&5
2.12902 +echo $ECHO_N "checking for eglGetDisplay in -lEGL... $ECHO_C" >&6; }
2.12903 +if test "${ac_cv_lib_EGL_eglGetDisplay+set}" = set; then
2.12904 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.12905 +else
2.12906 + ac_check_lib_save_LIBS=$LIBS
2.12907 +LIBS="-lEGL $LIBS"
2.12908 +cat >conftest.$ac_ext <<_ACEOF
2.12909 +/* confdefs.h. */
2.12910 +_ACEOF
2.12911 +cat confdefs.h >>conftest.$ac_ext
2.12912 +cat >>conftest.$ac_ext <<_ACEOF
2.12913 +/* end confdefs.h. */
2.12914 +
2.12915 +/* Override any GCC internal prototype to avoid an error.
2.12916 + Use char because int might match the return type of a GCC
2.12917 + builtin and then its argument prototype would still apply. */
2.12918 +#ifdef __cplusplus
2.12919 +extern "C"
2.12920 +#endif
2.12921 +char eglGetDisplay ();
2.12922 +int
2.12923 +main ()
2.12924 +{
2.12925 +return eglGetDisplay ();
2.12926 + ;
2.12927 + return 0;
2.12928 +}
2.12929 +_ACEOF
2.12930 +rm -f conftest.$ac_objext conftest$ac_exeext
2.12931 +if { (ac_try="$ac_link"
2.12932 +case "(($ac_try" in
2.12933 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.12934 + *) ac_try_echo=$ac_try;;
2.12935 +esac
2.12936 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.12937 + (eval "$ac_link") 2>conftest.er1
2.12938 + ac_status=$?
2.12939 + grep -v '^ *+' conftest.er1 >conftest.err
2.12940 + rm -f conftest.er1
2.12941 + cat conftest.err >&5
2.12942 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.12943 + (exit $ac_status); } && {
2.12944 + test -z "$ac_c_werror_flag" ||
2.12945 + test ! -s conftest.err
2.12946 + } && test -s conftest$ac_exeext &&
2.12947 + $as_test_x conftest$ac_exeext; then
2.12948 + ac_cv_lib_EGL_eglGetDisplay=yes
2.12949 +else
2.12950 + echo "$as_me: failed program was:" >&5
2.12951 +sed 's/^/| /' conftest.$ac_ext >&5
2.12952 +
2.12953 + ac_cv_lib_EGL_eglGetDisplay=no
2.12954 +fi
2.12955 +
2.12956 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2.12957 + conftest$ac_exeext conftest.$ac_ext
2.12958 +LIBS=$ac_check_lib_save_LIBS
2.12959 +fi
2.12960 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_EGL_eglGetDisplay" >&5
2.12961 +echo "${ECHO_T}$ac_cv_lib_EGL_eglGetDisplay" >&6; }
2.12962 +if test $ac_cv_lib_EGL_eglGetDisplay = yes; then
2.12963 +
2.12964 + LIBS="-lEGL $LIBS"
2.12965 + HAVE_EGL='yes'
2.12966 + VIDEO_DRIVERS="$VIDEO_DRIVERS egl"
2.12967 +fi
2.12968 +
2.12969 +
2.12970 +fi
2.12971 +
2.12972 +
2.12973 +if test "x$HAVE_GLES2" = "xyes"; then
2.12974 +
2.12975 +cat >>confdefs.h <<\_ACEOF
2.12976 +#define HAVE_GLES2 1
2.12977 +_ACEOF
2.12978 +
2.12979 +fi
2.12980
2.12981
2.12982
2.12983 @@ -12119,6 +12322,16 @@
2.12984 fi
2.12985
2.12986
2.12987 +
2.12988 +if test "x$HAVE_EGL" = "xyes"; then
2.12989 + VIDEO_EGL_TRUE=
2.12990 + VIDEO_EGL_FALSE='#'
2.12991 +else
2.12992 + VIDEO_EGL_TRUE='#'
2.12993 + VIDEO_EGL_FALSE=
2.12994 +fi
2.12995 +
2.12996 +
2.12997 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
2.12998 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
2.12999 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
2.13000 @@ -16063,6 +16276,48 @@
2.13001 Usually this means the macro was only invoked conditionally." >&2;}
2.13002 { (exit 1); exit 1; }; }
2.13003 fi
2.13004 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
2.13005 + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
2.13006 +Usually this means the macro was only invoked conditionally." >&5
2.13007 +echo "$as_me: error: conditional \"AMDEP\" was never defined.
2.13008 +Usually this means the macro was only invoked conditionally." >&2;}
2.13009 + { (exit 1); exit 1; }; }
2.13010 +fi
2.13011 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
2.13012 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2.13013 +Usually this means the macro was only invoked conditionally." >&5
2.13014 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2.13015 +Usually this means the macro was only invoked conditionally." >&2;}
2.13016 + { (exit 1); exit 1; }; }
2.13017 +fi
2.13018 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
2.13019 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2.13020 +Usually this means the macro was only invoked conditionally." >&5
2.13021 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2.13022 +Usually this means the macro was only invoked conditionally." >&2;}
2.13023 + { (exit 1); exit 1; }; }
2.13024 +fi
2.13025 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
2.13026 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2.13027 +Usually this means the macro was only invoked conditionally." >&5
2.13028 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2.13029 +Usually this means the macro was only invoked conditionally." >&2;}
2.13030 + { (exit 1); exit 1; }; }
2.13031 +fi
2.13032 +if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
2.13033 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
2.13034 +Usually this means the macro was only invoked conditionally." >&5
2.13035 +echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
2.13036 +Usually this means the macro was only invoked conditionally." >&2;}
2.13037 + { (exit 1); exit 1; }; }
2.13038 +fi
2.13039 +if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
2.13040 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
2.13041 +Usually this means the macro was only invoked conditionally." >&5
2.13042 +echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
2.13043 +Usually this means the macro was only invoked conditionally." >&2;}
2.13044 + { (exit 1); exit 1; }; }
2.13045 +fi
2.13046 if test -z "${GUI_ANDROID_TRUE}" && test -z "${GUI_ANDROID_FALSE}"; then
2.13047 { { echo "$as_me:$LINENO: error: conditional \"GUI_ANDROID\" was never defined.
2.13048 Usually this means the macro was only invoked conditionally." >&5
2.13049 @@ -16070,48 +16325,6 @@
2.13050 Usually this means the macro was only invoked conditionally." >&2;}
2.13051 { (exit 1); exit 1; }; }
2.13052 fi
2.13053 -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
2.13054 - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
2.13055 -Usually this means the macro was only invoked conditionally." >&5
2.13056 -echo "$as_me: error: conditional \"AMDEP\" was never defined.
2.13057 -Usually this means the macro was only invoked conditionally." >&2;}
2.13058 - { (exit 1); exit 1; }; }
2.13059 -fi
2.13060 -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
2.13061 - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2.13062 -Usually this means the macro was only invoked conditionally." >&5
2.13063 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2.13064 -Usually this means the macro was only invoked conditionally." >&2;}
2.13065 - { (exit 1); exit 1; }; }
2.13066 -fi
2.13067 -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
2.13068 - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2.13069 -Usually this means the macro was only invoked conditionally." >&5
2.13070 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2.13071 -Usually this means the macro was only invoked conditionally." >&2;}
2.13072 - { (exit 1); exit 1; }; }
2.13073 -fi
2.13074 -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
2.13075 - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2.13076 -Usually this means the macro was only invoked conditionally." >&5
2.13077 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2.13078 -Usually this means the macro was only invoked conditionally." >&2;}
2.13079 - { (exit 1); exit 1; }; }
2.13080 -fi
2.13081 -if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
2.13082 - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
2.13083 -Usually this means the macro was only invoked conditionally." >&5
2.13084 -echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
2.13085 -Usually this means the macro was only invoked conditionally." >&2;}
2.13086 - { (exit 1); exit 1; }; }
2.13087 -fi
2.13088 -if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
2.13089 - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
2.13090 -Usually this means the macro was only invoked conditionally." >&5
2.13091 -echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
2.13092 -Usually this means the macro was only invoked conditionally." >&2;}
2.13093 - { (exit 1); exit 1; }; }
2.13094 -fi
2.13095 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
2.13096 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
2.13097 Usually this means the macro was only invoked conditionally." >&5
2.13098 @@ -16154,6 +16367,13 @@
2.13099 Usually this means the macro was only invoked conditionally." >&2;}
2.13100 { (exit 1); exit 1; }; }
2.13101 fi
2.13102 +if test -z "${VIDEO_EGL_TRUE}" && test -z "${VIDEO_EGL_FALSE}"; then
2.13103 + { { echo "$as_me:$LINENO: error: conditional \"VIDEO_EGL\" was never defined.
2.13104 +Usually this means the macro was only invoked conditionally." >&5
2.13105 +echo "$as_me: error: conditional \"VIDEO_EGL\" was never defined.
2.13106 +Usually this means the macro was only invoked conditionally." >&2;}
2.13107 + { (exit 1); exit 1; }; }
2.13108 +fi
2.13109 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
2.13110 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
2.13111 Usually this means the macro was only invoked conditionally." >&5
2.13112 @@ -16852,16 +17072,6 @@
2.13113 host_cpu!$host_cpu$ac_delim
2.13114 host_vendor!$host_vendor$ac_delim
2.13115 host_os!$host_os$ac_delim
2.13116 -ANT!$ANT$ac_delim
2.13117 -ANDROID_ABI!$ANDROID_ABI$ac_delim
2.13118 -ANDROID_SDK_HOME!$ANDROID_SDK_HOME$ac_delim
2.13119 -ANDROID_NDK_HOME!$ANDROID_NDK_HOME$ac_delim
2.13120 -ANDROID_SDK_VERSION!$ANDROID_SDK_VERSION$ac_delim
2.13121 -ANDROID_NDK_VERSION!$ANDROID_NDK_VERSION$ac_delim
2.13122 -ANDROID_GDBSERVER!$ANDROID_GDBSERVER$ac_delim
2.13123 -GDB!$GDB$ac_delim
2.13124 -GUI_ANDROID_TRUE!$GUI_ANDROID_TRUE$ac_delim
2.13125 -GUI_ANDROID_FALSE!$GUI_ANDROID_FALSE$ac_delim
2.13126 CC!$CC$ac_delim
2.13127 CFLAGS!$CFLAGS$ac_delim
2.13128 LDFLAGS!$LDFLAGS$ac_delim
2.13129 @@ -16880,6 +17090,16 @@
2.13130 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
2.13131 CPP!$CPP$ac_delim
2.13132 CC!$CC$ac_delim
2.13133 +CFLAGS!$CFLAGS$ac_delim
2.13134 +CPPFLAGS!$CPPFLAGS$ac_delim
2.13135 +CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
2.13136 +ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
2.13137 +CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
2.13138 +am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
2.13139 +am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
2.13140 +CPP!$CPP$ac_delim
2.13141 +CPPFLAGS!$CPPFLAGS$ac_delim
2.13142 +CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
2.13143 _ACEOF
2.13144
2.13145 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
2.13146 @@ -16921,16 +17141,6 @@
2.13147 ac_delim='%!_!# '
2.13148 for ac_last_try in false false false false false :; do
2.13149 cat >conf$$subs.sed <<_ACEOF
2.13150 -CFLAGS!$CFLAGS$ac_delim
2.13151 -CPPFLAGS!$CPPFLAGS$ac_delim
2.13152 -CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
2.13153 -ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
2.13154 -CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
2.13155 -am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
2.13156 -am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
2.13157 -CPP!$CPP$ac_delim
2.13158 -CPPFLAGS!$CPPFLAGS$ac_delim
2.13159 -CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
2.13160 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
2.13161 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
2.13162 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
2.13163 @@ -16949,6 +17159,15 @@
2.13164 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
2.13165 POD2MAN!$POD2MAN$ac_delim
2.13166 POD2HTML!$POD2HTML$ac_delim
2.13167 +ANT!$ANT$ac_delim
2.13168 +ANDROID_ABI!$ANDROID_ABI$ac_delim
2.13169 +ANDROID_SDK_HOME!$ANDROID_SDK_HOME$ac_delim
2.13170 +ANDROID_NDK_HOME!$ANDROID_NDK_HOME$ac_delim
2.13171 +ANDROID_SDK_VERSION!$ANDROID_SDK_VERSION$ac_delim
2.13172 +ANDROID_NDK_VERSION!$ANDROID_NDK_VERSION$ac_delim
2.13173 +ANDROID_GDBSERVER!$ANDROID_GDBSERVER$ac_delim
2.13174 +GUI_ANDROID_TRUE!$GUI_ANDROID_TRUE$ac_delim
2.13175 +GUI_ANDROID_FALSE!$GUI_ANDROID_FALSE$ac_delim
2.13176 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
2.13177 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
2.13178 SOEXT!$SOEXT$ac_delim
2.13179 @@ -16979,6 +17198,8 @@
2.13180 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
2.13181 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
2.13182 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
2.13183 +VIDEO_EGL_TRUE!$VIDEO_EGL_TRUE$ac_delim
2.13184 +VIDEO_EGL_FALSE!$VIDEO_EGL_FALSE$ac_delim
2.13185 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
2.13186 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
2.13187 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
2.13188 @@ -17017,7 +17238,6 @@
2.13189 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
2.13190 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
2.13191 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
2.13192 -BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
2.13193 _ACEOF
2.13194
2.13195 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
2.13196 @@ -17059,6 +17279,7 @@
2.13197 ac_delim='%!_!# '
2.13198 for ac_last_try in false false false false false :; do
2.13199 cat >conf$$subs.sed <<_ACEOF
2.13200 +BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
2.13201 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
2.13202 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
2.13203 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
2.13204 @@ -17082,7 +17303,7 @@
2.13205 LTLIBOBJS!$LTLIBOBJS$ac_delim
2.13206 _ACEOF
2.13207
2.13208 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
2.13209 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
2.13210 break
2.13211 elif $ac_last_try; then
2.13212 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
3.1 --- a/configure.in Sun Jul 01 13:19:27 2012 +1000
3.2 +++ b/configure.in Sun Jul 01 13:20:34 2012 +1000
3.3 @@ -10,7 +10,6 @@
3.4
3.5 m4_include([m4/ccforbuild.m4])
3.6 m4_include([m4/android.m4])
3.7 -LX_ANDROID_BUILD
3.8
3.9 AC_ISC_POSIX
3.10 AC_PROG_CC
3.11 @@ -79,16 +78,30 @@
3.12 AC_ARG_WITH( sdl,
3.13 AS_HELP_STRING( [--with-sdl], [Build with support for SDL audio]) )
3.14
3.15 +AC_ARG_WITH( sysroot,
3.16 + AS_HELP_STRING( [--with-sysroot=SYSROOT], [Build using an alternate sysroot]),
3.17 + [ m4_pattern_allow([PKG_CONFIG_LIBDIR])
3.18 + if test -d "$with_sysroot/lib/pkgconfig"; then
3.19 + LDFLAGS="$LDFLAGS -L$with_sysroot/lib"
3.20 + CPPFLAGS="$CPPFLAGS -I$with_sysroot/include"
3.21 + BUILD_PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3.22 + TARGET_PKG_CONFIG_LIBDIR="$with_sysroot/lib/pkgconfig"
3.23 + PKG_CONFIG_LIBDIR="$TARGET_PKG_CONFIG_LIBDIR"
3.24 + export PKG_CONFIG_LIBDIR;
3.25 + else
3.26 + AC_MSG_FAILURE([pkg-config directory $with_sysroot/lib/pkgconfig not found, when using --with-sysroot=$with_sysroot option])
3.27 + fi
3.28 + ])
3.29 +
3.30 +LX_ANDROID_BUILD
3.31 +
3.32 dnl ------------ Check if we're building on Darwin or Android --------------
3.33
3.34 dnl For starters, do we have a working objective-c compiler?
3.35 if test "$ANDROID_BUILD" = "yes"; then
3.36 with_gtk=no;
3.37 EXTRA_OUTPUT_FILES="src/android/build.properties"
3.38 - LIBS="-lEGL -lGLESv2 $LIBS"
3.39 - AC_DEFINE(HAVE_GLES2, 1, [Using GLESv2])
3.40 UI_DRIVER="Android"
3.41 - VIDEO_DRIVERS="egl"
3.42 with_sdl=no
3.43 else
3.44 AC_HAVE_OBJC([
3.45 @@ -255,7 +268,17 @@
3.46 fi
3.47
3.48 AC_PUSH_CC_FOR_BUILD
3.49 +if test "$BUILD_PKG_CONFIG_LIBDIR" != "$TARGET_PKG_CONFIG_LIBDIR"; then
3.50 + PKG_CONFIG_LIBDIR="$BUILD_PKG_CONFIG_LIBDIR";
3.51 + if test "x$PKG_CONFIG_LIBDIR" = "x"; then
3.52 + export -n PKG_CONFIG_LIBDIR
3.53 + fi
3.54 +fi
3.55 PKG_CHECK_MODULES(GLIB_FOR_BUILD, glib-2.0)
3.56 +if test "$BUILD_PKG_CONFIG_LIBDIR" != "$TARGET_PKG_CONFIG_LIBDIR"; then
3.57 + PKG_CONFIG_LIBDIR="$TARGET_PKG_CONFIG_LIBDIR";
3.58 + export PKG_CONFIG_LIBDIR
3.59 +fi
3.60 AC_POP_CC_FOR_BUILD
3.61
3.62 AM_CONDITIONAL(GUI_GTK, [test "$HAVE_GTK" = 'yes'])
3.63 @@ -281,39 +304,45 @@
3.64
3.65 dnl Otherwise we want a real GL library (unless we're on darwin or android, in which case it's already
3.66 dnl taken care of above).
3.67 - if test "x$APPLE_BUILD" != 'xyes' -a "x$ANDROID_BUILD" != 'xyes'; then
3.68 - PKG_CHECK_MODULES(LIBGL, [gl] )
3.69 - dnl AC_CHECK_LIB(GL, glVertex3f, [], [
3.70 - dnl AC_MSG_FAILURE( ["The OpenGL library (libGL.so) could not be found, but is required."])])
3.71 - dnl AC_CHECK_HEADER([GL/gl.h], [], [
3.72 - dnl AC_MSG_FAILURE( ["The OpenGL header files (eg GL/gl.h) could not be found, but are required."])])
3.73 - LIBS="$LIBS $LIBGL_LIBS";
3.74 - CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
3.75 + if test "x$APPLE_BUILD" != 'xyes'; then
3.76 + PKG_CHECK_MODULES(LIBGL, [gl], [
3.77 + LIBS="$LIBS $LIBGL_LIBS";
3.78 + CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
3.79 + ], [
3.80 + dnl GL library not found, try for GLESv2 + EGL
3.81 + AC_CHECK_LIB(GLESv2, glEnable, [LIBS="-lGLESv2 $LIBS"; HAVE_GLES2='yes'],
3.82 + [ AC_MSG_FAILURE([Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.]) ])
3.83 + ])
3.84 +
3.85 else
3.86 AC_CHECK_FUNC(NSOpenGLGetVersion, [
3.87 HAVE_NSGL='yes'
3.88 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
3.89 AC_DEFINE([HAVE_NSGL],1, [Have NSOpenGL support]) ] )
3.90 + if test "x$HAVE_GTK_X11" = "xyes"; then
3.91 + LIBS="$LIBS -L/usr/X11/lib -lGL"
3.92 + fi
3.93 fi
3.94
3.95 dnl Now work out how to get from the UI to GL - this is usually the painful part.
3.96 - if test "x$HAVE_GTK_X11" = "xyes"; then
3.97 - if test "x$APPLE_BUILD" = "xyes"; then
3.98 - LIBS="$LIBS -L/usr/X11/lib -lGL"
3.99 - fi
3.100 - AC_CHECK_FUNC(glXQueryVersion, [
3.101 - HAVE_GLX='yes'
3.102 - VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
3.103 - AC_DEFINE([HAVE_GLX], 1, [Have GLX support]) ] )
3.104 - fi
3.105 -
3.106 + AC_CHECK_FUNC(glXQueryVersion, [
3.107 + HAVE_GLX='yes'
3.108 + VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
3.109 + AC_DEFINE([HAVE_GLX], 1, [Have GLX support]) ] )
3.110 + AC_CHECK_LIB(EGL, eglGetDisplay, [
3.111 + LIBS="-lEGL $LIBS"
3.112 + HAVE_EGL='yes'
3.113 + VIDEO_DRIVERS="$VIDEO_DRIVERS egl"])
3.114 ])
3.115
3.116 -
3.117 +if test "x$HAVE_GLES2" = "xyes"; then
3.118 + AC_DEFINE(HAVE_GLES2, 1, [Using GLESv2])
3.119 +fi
3.120
3.121 AM_CONDITIONAL(VIDEO_OSMESA, [test "x$HAVE_OSMESA" = "xyes"])
3.122 AM_CONDITIONAL(VIDEO_GLX, [test "x$HAVE_GLX" = "xyes"])
3.123 AM_CONDITIONAL(VIDEO_NSGL, [test "x$HAVE_NSGL" = "xyes"])
3.124 +AM_CONDITIONAL(VIDEO_EGL, [test "x$HAVE_EGL" = "xyes"])
3.125
3.126 dnl Check for optional (but highly desireable) OpenGL features
3.127 AC_CHECK_FUNC(glGenFramebuffers, [ AC_DEFINE([HAVE_OPENGL_FBO],1,[Have 2.0 framebuffer_object support]) ], [])
4.1 --- a/src/Makefile.am Sun Jul 01 13:19:27 2012 +1000
4.2 +++ b/src/Makefile.am Sun Jul 01 13:20:34 2012 +1000
4.3 @@ -116,7 +116,7 @@
4.4 endif
4.5
4.6 if GUI_ANDROID
4.7 -lxdream_SOURCES += gui_none.c drivers/video_egl.c drivers/video_egl.h
4.8 +lxdream_SOURCES += gui_none.c
4.9 noinst_PROGRAMS=liblxdream.so
4.10 liblxdream_so_LINK = $(LINK) -Wl,-soname,liblxdream.so -shared
4.11 liblxdream_so_LDADD = liblxdream-core.a @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@ @LIBISOFS_LIBS@ $(INTLLIBS) @LXDREAM_LIBS@ -lm
4.12 @@ -145,6 +145,10 @@
4.13 lxdream_SOURCES += drivers/video_nsgl.m drivers/video_nsgl.h
4.14 endif
4.15
4.16 +if VIDEO_EGL
4.17 +lxdream_SOURCES += drivers/video_egl.c drivers/video_egl.h
4.18 +endif
4.19 +
4.20 if AUDIO_OSX
4.21 lxdream_SOURCES += drivers/audio_osx.m
4.22 endif
5.1 --- a/src/Makefile.in Sun Jul 01 13:19:27 2012 +1000
5.2 +++ b/src/Makefile.in Sun Jul 01 13:20:34 2012 +1000
5.3 @@ -60,7 +60,7 @@
5.4 @GUI_GTK_TRUE@ gtkui/gtk_ctrl.c gtkui/gtk_gd.c \
5.5 @GUI_GTK_TRUE@ drivers/video_gtk.c
5.6
5.7 -@GUI_ANDROID_TRUE@am__append_5 = gui_none.c drivers/video_egl.c drivers/video_egl.h
5.8 +@GUI_ANDROID_TRUE@am__append_5 = gui_none.c
5.9 @GUI_ANDROID_TRUE@noinst_PROGRAMS = liblxdream.so$(EXEEXT)
5.10 @GUI_COCOA_TRUE@am__append_6 = cocoaui/paths_osx.m drivers/io_osx.m drivers/mac_keymap.h drivers/mac_keymap.txt
5.11 @GUI_COCOA_TRUE@am__append_7 = cocoaui/cocoaui.m cocoaui/cocoaui.h cocoaui/cocoa_cfg.m \
5.12 @@ -71,27 +71,28 @@
5.13 @VIDEO_OSMESA_TRUE@am__append_9 = drivers/video_gdk.c
5.14 @VIDEO_GLX_TRUE@am__append_10 = drivers/video_glx.c drivers/video_glx.h
5.15 @VIDEO_NSGL_TRUE@am__append_11 = drivers/video_nsgl.m drivers/video_nsgl.h
5.16 -@AUDIO_OSX_TRUE@am__append_12 = drivers/audio_osx.m
5.17 -@BUILD_PLUGINS_TRUE@am__append_13 = lxdream_dummy.@SOEXT@
5.18 -@AUDIO_SDL_TRUE@@BUILD_PLUGINS_TRUE@am__append_14 = audio_sdl.@SOEXT@
5.19 -@AUDIO_PULSE_TRUE@@BUILD_PLUGINS_TRUE@am__append_15 = audio_pulse.@SOEXT@
5.20 -@AUDIO_ESOUND_TRUE@@BUILD_PLUGINS_TRUE@am__append_16 = audio_esd.@SOEXT@
5.21 -@AUDIO_ALSA_TRUE@@BUILD_PLUGINS_TRUE@am__append_17 = audio_alsa.@SOEXT@
5.22 -@BUILD_PLUGINS_TRUE@@INPUT_LIRC_TRUE@am__append_18 = input_lirc.@SOEXT@
5.23 -@AUDIO_SDL_TRUE@@BUILD_PLUGINS_FALSE@am__append_19 = drivers/audio_sdl.c
5.24 -@AUDIO_SDL_TRUE@@BUILD_PLUGINS_FALSE@am__append_20 = @SDL_LIBS@
5.25 -@AUDIO_PULSE_TRUE@@BUILD_PLUGINS_FALSE@am__append_21 = drivers/audio_pulse.c
5.26 -@AUDIO_PULSE_TRUE@@BUILD_PLUGINS_FALSE@am__append_22 = @PULSE_LIBS@
5.27 -@AUDIO_ESOUND_TRUE@@BUILD_PLUGINS_FALSE@am__append_23 = drivers/audio_esd.c
5.28 -@AUDIO_ESOUND_TRUE@@BUILD_PLUGINS_FALSE@am__append_24 = @ESOUND_LIBS@
5.29 -@AUDIO_ALSA_TRUE@@BUILD_PLUGINS_FALSE@am__append_25 = drivers/audio_alsa.c
5.30 -@AUDIO_ALSA_TRUE@@BUILD_PLUGINS_FALSE@am__append_26 = @ALSA_LIBS@
5.31 -@BUILD_PLUGINS_FALSE@@INPUT_LIRC_TRUE@am__append_27 = drivers/input_lirc.c
5.32 -@BUILD_PLUGINS_FALSE@@INPUT_LIRC_TRUE@am__append_28 = -llirc_client
5.33 -@CDROM_LINUX_TRUE@am__append_29 = drivers/cdrom/cd_linux.c
5.34 -@CDROM_OSX_TRUE@am__append_30 = drivers/cdrom/cd_osx.c drivers/osx_iokit.m drivers/osx_iokit.h
5.35 -@CDROM_NONE_TRUE@am__append_31 = drivers/cdrom/cd_none.c
5.36 -@JOY_LINUX_TRUE@am__append_32 = drivers/joy_linux.c drivers/joy_linux.h
5.37 +@VIDEO_EGL_TRUE@am__append_12 = drivers/video_egl.c drivers/video_egl.h
5.38 +@AUDIO_OSX_TRUE@am__append_13 = drivers/audio_osx.m
5.39 +@BUILD_PLUGINS_TRUE@am__append_14 = lxdream_dummy.@SOEXT@
5.40 +@AUDIO_SDL_TRUE@@BUILD_PLUGINS_TRUE@am__append_15 = audio_sdl.@SOEXT@
5.41 +@AUDIO_PULSE_TRUE@@BUILD_PLUGINS_TRUE@am__append_16 = audio_pulse.@SOEXT@
5.42 +@AUDIO_ESOUND_TRUE@@BUILD_PLUGINS_TRUE@am__append_17 = audio_esd.@SOEXT@
5.43 +@AUDIO_ALSA_TRUE@@BUILD_PLUGINS_TRUE@am__append_18 = audio_alsa.@SOEXT@
5.44 +@BUILD_PLUGINS_TRUE@@INPUT_LIRC_TRUE@am__append_19 = input_lirc.@SOEXT@
5.45 +@AUDIO_SDL_TRUE@@BUILD_PLUGINS_FALSE@am__append_20 = drivers/audio_sdl.c
5.46 +@AUDIO_SDL_TRUE@@BUILD_PLUGINS_FALSE@am__append_21 = @SDL_LIBS@
5.47 +@AUDIO_PULSE_TRUE@@BUILD_PLUGINS_FALSE@am__append_22 = drivers/audio_pulse.c
5.48 +@AUDIO_PULSE_TRUE@@BUILD_PLUGINS_FALSE@am__append_23 = @PULSE_LIBS@
5.49 +@AUDIO_ESOUND_TRUE@@BUILD_PLUGINS_FALSE@am__append_24 = drivers/audio_esd.c
5.50 +@AUDIO_ESOUND_TRUE@@BUILD_PLUGINS_FALSE@am__append_25 = @ESOUND_LIBS@
5.51 +@AUDIO_ALSA_TRUE@@BUILD_PLUGINS_FALSE@am__append_26 = drivers/audio_alsa.c
5.52 +@AUDIO_ALSA_TRUE@@BUILD_PLUGINS_FALSE@am__append_27 = @ALSA_LIBS@
5.53 +@BUILD_PLUGINS_FALSE@@INPUT_LIRC_TRUE@am__append_28 = drivers/input_lirc.c
5.54 +@BUILD_PLUGINS_FALSE@@INPUT_LIRC_TRUE@am__append_29 = -llirc_client
5.55 +@CDROM_LINUX_TRUE@am__append_30 = drivers/cdrom/cd_linux.c
5.56 +@CDROM_OSX_TRUE@am__append_31 = drivers/cdrom/cd_osx.c drivers/osx_iokit.m drivers/osx_iokit.h
5.57 +@CDROM_NONE_TRUE@am__append_32 = drivers/cdrom/cd_none.c
5.58 +@JOY_LINUX_TRUE@am__append_33 = drivers/joy_linux.c drivers/joy_linux.h
5.59 subdir = src
5.60 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
5.61 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
5.62 @@ -296,11 +297,11 @@
5.63 gtkui/gtkui.h gtkui/gtk_win.c gtkui/gtkcb.c gtkui/gtk_cfg.c \
5.64 gtkui/gtk_mmio.c gtkui/gtk_debug.c gtkui/gtk_dump.c \
5.65 gtkui/gtk_ctrl.c gtkui/gtk_gd.c drivers/video_gtk.c gui_none.c \
5.66 - drivers/video_egl.c drivers/video_egl.h cocoaui/cocoaui.m \
5.67 - cocoaui/cocoaui.h cocoaui/cocoa_cfg.m cocoaui/cocoa_win.m \
5.68 - cocoaui/cocoa_gd.m cocoaui/cocoa_prefs.m cocoaui/cocoa_ctrl.m \
5.69 - drivers/video_osx.m drivers/video_gdk.c drivers/video_glx.c \
5.70 - drivers/video_glx.h drivers/video_nsgl.m drivers/video_nsgl.h \
5.71 + cocoaui/cocoaui.m cocoaui/cocoaui.h cocoaui/cocoa_cfg.m \
5.72 + cocoaui/cocoa_win.m cocoaui/cocoa_gd.m cocoaui/cocoa_prefs.m \
5.73 + cocoaui/cocoa_ctrl.m drivers/video_osx.m drivers/video_gdk.c \
5.74 + drivers/video_glx.c drivers/video_glx.h drivers/video_nsgl.m \
5.75 + drivers/video_nsgl.h drivers/video_egl.c drivers/video_egl.h \
5.76 drivers/audio_osx.m drivers/audio_sdl.c drivers/audio_pulse.c \
5.77 drivers/audio_esd.c drivers/audio_alsa.c drivers/input_lirc.c \
5.78 drivers/cdrom/cd_linux.c drivers/cdrom/cd_osx.c \
5.79 @@ -318,8 +319,7 @@
5.80 @GUI_GTK_TRUE@ lxdream-gtk_ctrl.$(OBJEXT) \
5.81 @GUI_GTK_TRUE@ lxdream-gtk_gd.$(OBJEXT) \
5.82 @GUI_GTK_TRUE@ lxdream-video_gtk.$(OBJEXT)
5.83 -@GUI_ANDROID_TRUE@am__objects_6 = lxdream-gui_none.$(OBJEXT) \
5.84 -@GUI_ANDROID_TRUE@ lxdream-video_egl.$(OBJEXT)
5.85 +@GUI_ANDROID_TRUE@am__objects_6 = lxdream-gui_none.$(OBJEXT)
5.86 @GUI_COCOA_TRUE@am__objects_7 = lxdream-cocoaui.$(OBJEXT) \
5.87 @GUI_COCOA_TRUE@ lxdream-cocoa_cfg.$(OBJEXT) \
5.88 @GUI_COCOA_TRUE@ lxdream-cocoa_win.$(OBJEXT) \
5.89 @@ -330,24 +330,25 @@
5.90 @VIDEO_OSMESA_TRUE@am__objects_8 = lxdream-video_gdk.$(OBJEXT)
5.91 @VIDEO_GLX_TRUE@am__objects_9 = lxdream-video_glx.$(OBJEXT)
5.92 @VIDEO_NSGL_TRUE@am__objects_10 = lxdream-video_nsgl.$(OBJEXT)
5.93 -@AUDIO_OSX_TRUE@am__objects_11 = lxdream-audio_osx.$(OBJEXT)
5.94 -@AUDIO_SDL_TRUE@@BUILD_PLUGINS_FALSE@am__objects_12 = lxdream-audio_sdl.$(OBJEXT)
5.95 -@AUDIO_PULSE_TRUE@@BUILD_PLUGINS_FALSE@am__objects_13 = lxdream-audio_pulse.$(OBJEXT)
5.96 -@AUDIO_ESOUND_TRUE@@BUILD_PLUGINS_FALSE@am__objects_14 = lxdream-audio_esd.$(OBJEXT)
5.97 -@AUDIO_ALSA_TRUE@@BUILD_PLUGINS_FALSE@am__objects_15 = lxdream-audio_alsa.$(OBJEXT)
5.98 -@BUILD_PLUGINS_FALSE@@INPUT_LIRC_TRUE@am__objects_16 = lxdream-input_lirc.$(OBJEXT)
5.99 -@CDROM_LINUX_TRUE@am__objects_17 = lxdream-cd_linux.$(OBJEXT)
5.100 -@CDROM_OSX_TRUE@am__objects_18 = lxdream-cd_osx.$(OBJEXT) \
5.101 +@VIDEO_EGL_TRUE@am__objects_11 = lxdream-video_egl.$(OBJEXT)
5.102 +@AUDIO_OSX_TRUE@am__objects_12 = lxdream-audio_osx.$(OBJEXT)
5.103 +@AUDIO_SDL_TRUE@@BUILD_PLUGINS_FALSE@am__objects_13 = lxdream-audio_sdl.$(OBJEXT)
5.104 +@AUDIO_PULSE_TRUE@@BUILD_PLUGINS_FALSE@am__objects_14 = lxdream-audio_pulse.$(OBJEXT)
5.105 +@AUDIO_ESOUND_TRUE@@BUILD_PLUGINS_FALSE@am__objects_15 = lxdream-audio_esd.$(OBJEXT)
5.106 +@AUDIO_ALSA_TRUE@@BUILD_PLUGINS_FALSE@am__objects_16 = lxdream-audio_alsa.$(OBJEXT)
5.107 +@BUILD_PLUGINS_FALSE@@INPUT_LIRC_TRUE@am__objects_17 = lxdream-input_lirc.$(OBJEXT)
5.108 +@CDROM_LINUX_TRUE@am__objects_18 = lxdream-cd_linux.$(OBJEXT)
5.109 +@CDROM_OSX_TRUE@am__objects_19 = lxdream-cd_osx.$(OBJEXT) \
5.110 @CDROM_OSX_TRUE@ lxdream-osx_iokit.$(OBJEXT)
5.111 -@CDROM_NONE_TRUE@am__objects_19 = lxdream-cd_none.$(OBJEXT)
5.112 -@JOY_LINUX_TRUE@am__objects_20 = lxdream-joy_linux.$(OBJEXT)
5.113 +@CDROM_NONE_TRUE@am__objects_20 = lxdream-cd_none.$(OBJEXT)
5.114 +@JOY_LINUX_TRUE@am__objects_21 = lxdream-joy_linux.$(OBJEXT)
5.115 am_lxdream_OBJECTS = lxdream-main.$(OBJEXT) $(am__objects_4) \
5.116 $(am__objects_5) $(am__objects_6) $(am__objects_7) \
5.117 $(am__objects_8) $(am__objects_9) $(am__objects_10) \
5.118 $(am__objects_11) $(am__objects_12) $(am__objects_13) \
5.119 $(am__objects_14) $(am__objects_15) $(am__objects_16) \
5.120 $(am__objects_17) $(am__objects_18) $(am__objects_19) \
5.121 - $(am__objects_20)
5.122 + $(am__objects_20) $(am__objects_21)
5.123 lxdream_OBJECTS = $(am_lxdream_OBJECTS)
5.124 lxdream_DEPENDENCIES = liblxdream-core.a $(am__DEPENDENCIES_1) \
5.125 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
5.126 @@ -576,6 +577,8 @@
5.127 STRIP = @STRIP@
5.128 USE_NLS = @USE_NLS@
5.129 VERSION = @VERSION@
5.130 +VIDEO_EGL_FALSE = @VIDEO_EGL_FALSE@
5.131 +VIDEO_EGL_TRUE = @VIDEO_EGL_TRUE@
5.132 VIDEO_GLX_FALSE = @VIDEO_GLX_FALSE@
5.133 VIDEO_GLX_TRUE = @VIDEO_GLX_TRUE@
5.134 VIDEO_NSGL_FALSE = @VIDEO_NSGL_FALSE@
5.135 @@ -655,15 +658,16 @@
5.136
5.137 lxdream_LINK = $(LINK) @LXDREAMLDFLAGS@
5.138 lxdream_LDADD = liblxdream-core.a @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@ \
5.139 - @LIBISOFS_LIBS@ $(INTLLIBS) @LXDREAM_LIBS@ $(am__append_20) \
5.140 - $(am__append_22) $(am__append_24) $(am__append_26) \
5.141 - $(am__append_28)
5.142 + @LIBISOFS_LIBS@ $(INTLLIBS) @LXDREAM_LIBS@ $(am__append_21) \
5.143 + $(am__append_23) $(am__append_25) $(am__append_27) \
5.144 + $(am__append_29)
5.145 lxdream_SOURCES = main.c $(am__append_1) $(am__append_4) \
5.146 $(am__append_5) $(am__append_7) $(am__append_9) \
5.147 $(am__append_10) $(am__append_11) $(am__append_12) \
5.148 - $(am__append_19) $(am__append_21) $(am__append_23) \
5.149 - $(am__append_25) $(am__append_27) $(am__append_29) \
5.150 - $(am__append_30) $(am__append_31) $(am__append_32)
5.151 + $(am__append_13) $(am__append_20) $(am__append_22) \
5.152 + $(am__append_24) $(am__append_26) $(am__append_28) \
5.153 + $(am__append_30) $(am__append_31) $(am__append_32) \
5.154 + $(am__append_33)
5.155 lxdream_LIBS = liblxdream-core.a
5.156 lxdream_CPPFLAGS = @LXDREAMCPPFLAGS@
5.157 noinst_LIBRARIES = liblxdream-core.a
5.158 @@ -2516,20 +2520,6 @@
5.159 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
5.160 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lxdream_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lxdream-gui_none.obj `if test -f 'gui_none.c'; then $(CYGPATH_W) 'gui_none.c'; else $(CYGPATH_W) '$(srcdir)/gui_none.c'; fi`
5.161
5.162 -lxdream-video_egl.o: drivers/video_egl.c
5.163 -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lxdream_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lxdream-video_egl.o -MD -MP -MF "$(DEPDIR)/lxdream-video_egl.Tpo" -c -o lxdream-video_egl.o `test -f 'drivers/video_egl.c' || echo '$(srcdir)/'`drivers/video_egl.c; \
5.164 -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/lxdream-video_egl.Tpo" "$(DEPDIR)/lxdream-video_egl.Po"; else rm -f "$(DEPDIR)/lxdream-video_egl.Tpo"; exit 1; fi
5.165 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='drivers/video_egl.c' object='lxdream-video_egl.o' libtool=no @AMDEPBACKSLASH@
5.166 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
5.167 -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lxdream_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lxdream-video_egl.o `test -f 'drivers/video_egl.c' || echo '$(srcdir)/'`drivers/video_egl.c
5.168 -
5.169 -lxdream-video_egl.obj: drivers/video_egl.c
5.170 -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lxdream_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lxdream-video_egl.obj -MD -MP -MF "$(DEPDIR)/lxdream-video_egl.Tpo" -c -o lxdream-video_egl.obj `if test -f 'drivers/video_egl.c'; then $(CYGPATH_W) 'drivers/video_egl.c'; else $(CYGPATH_W) '$(srcdir)/drivers/video_egl.c'; fi`; \
5.171 -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/lxdream-video_egl.Tpo" "$(DEPDIR)/lxdream-video_egl.Po"; else rm -f "$(DEPDIR)/lxdream-video_egl.Tpo"; exit 1; fi
5.172 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='drivers/video_egl.c' object='lxdream-video_egl.obj' libtool=no @AMDEPBACKSLASH@
5.173 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
5.174 -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lxdream_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lxdream-video_egl.obj `if test -f 'drivers/video_egl.c'; then $(CYGPATH_W) 'drivers/video_egl.c'; else $(CYGPATH_W) '$(srcdir)/drivers/video_egl.c'; fi`
5.175 -
5.176 lxdream-video_gdk.o: drivers/video_gdk.c
5.177 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lxdream_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lxdream-video_gdk.o -MD -MP -MF "$(DEPDIR)/lxdream-video_gdk.Tpo" -c -o lxdream-video_gdk.o `test -f 'drivers/video_gdk.c' || echo '$(srcdir)/'`drivers/video_gdk.c; \
5.178 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/lxdream-video_gdk.Tpo" "$(DEPDIR)/lxdream-video_gdk.Po"; else rm -f "$(DEPDIR)/lxdream-video_gdk.Tpo"; exit 1; fi
5.179 @@ -2558,6 +2548,20 @@
5.180 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
5.181 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lxdream_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lxdream-video_glx.obj `if test -f 'drivers/video_glx.c'; then $(CYGPATH_W) 'drivers/video_glx.c'; else $(CYGPATH_W) '$(srcdir)/drivers/video_glx.c'; fi`
5.182
5.183 +lxdream-video_egl.o: drivers/video_egl.c
5.184 +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lxdream_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lxdream-video_egl.o -MD -MP -MF "$(DEPDIR)/lxdream-video_egl.Tpo" -c -o lxdream-video_egl.o `test -f 'drivers/video_egl.c' || echo '$(srcdir)/'`drivers/video_egl.c; \
5.185 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/lxdream-video_egl.Tpo" "$(DEPDIR)/lxdream-video_egl.Po"; else rm -f "$(DEPDIR)/lxdream-video_egl.Tpo"; exit 1; fi
5.186 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='drivers/video_egl.c' object='lxdream-video_egl.o' libtool=no @AMDEPBACKSLASH@
5.187 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
5.188 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lxdream_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lxdream-video_egl.o `test -f 'drivers/video_egl.c' || echo '$(srcdir)/'`drivers/video_egl.c
5.189 +
5.190 +lxdream-video_egl.obj: drivers/video_egl.c
5.191 +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lxdream_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lxdream-video_egl.obj -MD -MP -MF "$(DEPDIR)/lxdream-video_egl.Tpo" -c -o lxdream-video_egl.obj `if test -f 'drivers/video_egl.c'; then $(CYGPATH_W) 'drivers/video_egl.c'; else $(CYGPATH_W) '$(srcdir)/drivers/video_egl.c'; fi`; \
5.192 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/lxdream-video_egl.Tpo" "$(DEPDIR)/lxdream-video_egl.Po"; else rm -f "$(DEPDIR)/lxdream-video_egl.Tpo"; exit 1; fi
5.193 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='drivers/video_egl.c' object='lxdream-video_egl.obj' libtool=no @AMDEPBACKSLASH@
5.194 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
5.195 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lxdream_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lxdream-video_egl.obj `if test -f 'drivers/video_egl.c'; then $(CYGPATH_W) 'drivers/video_egl.c'; else $(CYGPATH_W) '$(srcdir)/drivers/video_egl.c'; fi`
5.196 +
5.197 lxdream-audio_sdl.o: drivers/audio_sdl.c
5.198 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lxdream_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lxdream-audio_sdl.o -MD -MP -MF "$(DEPDIR)/lxdream-audio_sdl.Tpo" -c -o lxdream-audio_sdl.o `test -f 'drivers/audio_sdl.c' || echo '$(srcdir)/'`drivers/audio_sdl.c; \
5.199 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/lxdream-audio_sdl.Tpo" "$(DEPDIR)/lxdream-audio_sdl.Po"; else rm -f "$(DEPDIR)/lxdream-audio_sdl.Tpo"; exit 1; fi
6.1 --- a/src/drivers/gl_sl.c Sun Jul 01 13:19:27 2012 +1000
6.2 +++ b/src/drivers/gl_sl.c Sun Jul 01 13:20:34 2012 +1000
6.3 @@ -316,12 +316,12 @@
6.4 {
6.5 }
6.6
6.7 -static static inline GLint glsl_get_uniform_location(gl_program_t program, const char *name)
6.8 +static inline GLint glsl_get_uniform_location(gl_program_t program, const char *name)
6.9 {
6.10 return 0;
6.11 }
6.12
6.13 -static static inline GLint glsl_get_attrib_location(gl_program_t program, const char *name)
6.14 +static inline GLint glsl_get_attrib_location(gl_program_t program, const char *name)
6.15 {
6.16 return 0;
6.17 }
7.1 --- a/src/drivers/video_egl.c Sun Jul 01 13:19:27 2012 +1000
7.2 +++ b/src/drivers/video_egl.c Sun Jul 01 13:20:34 2012 +1000
7.3 @@ -72,6 +72,13 @@
7.4 EGL_RENDERABLE_TYPE,EGL_OPENGL_ES2_BIT,
7.5 EGL_NONE, EGL_NONE };
7.6
7.7 +static const EGLint alt_attributes[] = {
7.8 + EGL_DEPTH_SIZE, 16,
7.9 + EGL_STENCIL_SIZE, 8,
7.10 + EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
7.11 + EGL_RENDERABLE_TYPE,EGL_OPENGL_ES2_BIT,
7.12 + EGL_NONE, EGL_NONE };
7.13 +
7.14 static const EGLint context_attributes[] = {
7.15 EGL_CONTEXT_CLIENT_VERSION, 2,
7.16 EGL_NONE, EGL_NONE };
7.17 @@ -81,60 +88,79 @@
7.18 static EGLSurface surface = EGL_NO_SURFACE;
7.19 static gboolean fbo_created = FALSE;
7.20
7.21 -gboolean video_egl_set_window(EGLNativeWindowType window, int width, int height, int format)
7.22 +static void video_egl_swap_buffers();
7.23 +static int video_egl_major = 0, video_egl_minor = 0;
7.24 +
7.25 +gboolean video_egl_init()
7.26 {
7.27 - EGLConfig config;
7.28 - EGLint num_config, major = 0, minor = 0;
7.29 - const EGLint *attribute_list;
7.30 -
7.31 display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
7.32 - if( eglInitialize(display, &major, &minor) != EGL_TRUE ) {
7.33 + if( eglInitialize(display, &video_egl_major, &video_egl_minor) != EGL_TRUE ) {
7.34 logEGLError( "Unable to initialise EGL display" );
7.35 return FALSE;
7.36 }
7.37 + return TRUE;
7.38 +}
7.39 +
7.40 +gboolean video_egl_init_context( EGLNativeWindowType window, int format )
7.41 +{
7.42 + EGLConfig config;
7.43 + EGLint num_config;
7.44 + const EGLint *attribute_list;
7.45
7.46 if( format == COLFMT_RGB565 || format == COLFMT_BGRA1555 ) {
7.47 attribute_list = RGB565_attributes;
7.48 } else {
7.49 attribute_list = RGB888_attributes;
7.50 }
7.51 + eglChooseConfig(display, attribute_list, &config, 1, &num_config);
7.52
7.53 + surface = eglCreateWindowSurface(display, config, window, NULL);
7.54 + if( surface == EGL_NO_SURFACE ) {
7.55 + /* Try alternate config in case of failure. This provides a workaround for
7.56 + * the Nokia N900 where eglCreateWindowSurface fails when color attributes
7.57 + * are specified. (bug report: https://bugs.maemo.org/show_bug.cgi?id=9335)
7.58 + */
7.59 + eglChooseConfig(display, alt_attributes, &config, 1, &num_config);
7.60 + surface = eglCreateWindowSurface(display, config, window, NULL);
7.61
7.62 - eglChooseConfig(display, attribute_list, &config, 1, &num_config);
7.63 + if( surface == EGL_NO_SURFACE ) {
7.64 + logEGLError( "Unable to create EGL surface" );
7.65 + video_egl_shutdown();
7.66 + return FALSE;
7.67 + }
7.68 + }
7.69
7.70 context = eglCreateContext(display, config, EGL_NO_CONTEXT, context_attributes);
7.71 if( context == EGL_NO_CONTEXT ) {
7.72 logEGLError( "Unable to create EGL context" );
7.73 - video_egl_clear_window();
7.74 + video_egl_shutdown();
7.75 return FALSE;
7.76 }
7.77
7.78 - surface = eglCreateWindowSurface(display, config, window, NULL);
7.79 - if( surface == EGL_NO_SURFACE ) {
7.80 - logEGLError( "Unable to create EGL surface" );
7.81 - video_egl_clear_window();
7.82 +
7.83 +
7.84 + if( eglMakeCurrent( display, surface, surface, context ) == EGL_FALSE ) {
7.85 + logEGLError( "Unable to make EGL context current" );
7.86 + video_egl_shutdown();
7.87 return FALSE;
7.88 }
7.89
7.90 - if( eglMakeCurrent( display, surface, surface, context ) == EGL_FALSE ) {
7.91 - logEGLError( "Unable to make EGL context current" );
7.92 - video_egl_clear_window();
7.93 - return FALSE;
7.94 - }
7.95 + return TRUE;
7.96 +}
7.97
7.98 - display_egl_driver.capabilities.depth_bits = 16; /* TODO: get from config info */
7.99 - if( !gl_init_driver(&display_egl_driver, TRUE) ) {
7.100 - video_egl_clear_window();
7.101 +gboolean video_egl_init_driver( display_driver_t driver )
7.102 +{
7.103 + driver->swap_buffers = video_egl_swap_buffers;
7.104 + driver->capabilities.depth_bits = 16; /* TODO: get from config info */
7.105 + if( !gl_init_driver(driver, TRUE) ) {
7.106 + video_egl_shutdown();
7.107 return FALSE;
7.108 }
7.109 fbo_created = TRUE;
7.110 - gl_set_video_size(width, height, 0);
7.111 - pvr2_setup_gl_context();
7.112 - INFO( "Initialised EGL %d.%d", major, minor );
7.113 return TRUE;
7.114 }
7.115
7.116 -void video_egl_clear_window()
7.117 +void video_egl_shutdown()
7.118 {
7.119 if( fbo_created ) {
7.120 pvr2_shutdown_gl_context();
7.121 @@ -154,6 +180,24 @@
7.122 eglTerminate(display);
7.123 display = EGL_NO_DISPLAY;
7.124 }
7.125 +}
7.126 +
7.127 +gboolean video_egl_set_window(EGLNativeWindowType window, int width, int height, int format)
7.128 +{
7.129 + if( ! video_egl_init() ||
7.130 + ! video_egl_init_context( window, format ) ||
7.131 + ! video_egl_init_driver( &display_egl_driver ) ) {
7.132 + return FALSE;
7.133 + }
7.134 + gl_set_video_size(width, height, 0);
7.135 + pvr2_setup_gl_context();
7.136 + INFO( "Initialised EGL %d.%d", video_egl_major, video_egl_minor );
7.137 + return TRUE;
7.138 +}
7.139 +
7.140 +void video_egl_clear_window()
7.141 +{
7.142 + video_egl_shutdown();
7.143 INFO( "Terminated EGL" );
7.144 }
7.145
8.1 --- a/src/drivers/video_egl.h Sun Jul 01 13:19:27 2012 +1000
8.2 +++ b/src/drivers/video_egl.h Sun Jul 01 13:20:34 2012 +1000
8.3 @@ -28,6 +28,10 @@
8.4
8.5 #include <EGL/egl.h>
8.6
8.7 +gboolean video_egl_init();
8.8 +gboolean video_egl_init_context(EGLNativeWindowType window, int format);
8.9 +gboolean video_egl_init_driver(display_driver_t driver);
8.10 +void video_egl_shutdown();
8.11 gboolean video_egl_set_window(EGLNativeWindowType window, int width, int height, int format);
8.12 void video_egl_clear_window();
8.13
9.1 --- a/src/drivers/video_gtk.c Sun Jul 01 13:19:27 2012 +1000
9.2 +++ b/src/drivers/video_gtk.c Sun Jul 01 13:20:34 2012 +1000
9.3 @@ -114,6 +114,10 @@
9.4
9.5 #endif
9.6
9.7 +#ifdef HAVE_GLES2
9.8 +#include "drivers/video_egl.h"
9.9 +#endif
9.10 +
9.11
9.12
9.13 GtkWidget *gtk_video_drawable = NULL;
9.14 @@ -266,6 +270,13 @@
9.15 GdkColormap *colormap = gdk_colormap_new( gdkvis, FALSE );
9.16 gtk_widget_set_colormap( drawable, colormap );
9.17 }
9.18 +#else
9.19 +#ifdef HAVE_GLES2
9.20 + if( ! video_egl_init() ) {
9.21 + ERROR( "Unable to initialize EGL, aborting" );
9.22 + exit(3);
9.23 + }
9.24 +#endif
9.25 #endif
9.26 gtk_video_drawable = drawable;
9.27 return drawable;
9.28 @@ -295,6 +306,14 @@
9.29 if( ! video_nsgl_init_driver( view, &display_gtk_driver ) ) {
9.30 return FALSE;
9.31 }
9.32 +#else
9.33 +#ifdef HAVE_GLES2
9.34 + Window window = GDK_WINDOW_XWINDOW( GTK_WIDGET(gtk_video_drawable)->window );
9.35 + if( ! video_egl_init_context( window, COLFMT_RGB888 ) ||
9.36 + ! video_egl_init_driver( &display_gtk_driver ) ) {
9.37 + return FALSE;
9.38 + }
9.39 +#endif
9.40 #endif
9.41 #endif
9.42 #endif
9.43 @@ -331,6 +350,10 @@
9.44 #else
9.45 #ifdef HAVE_NSGL
9.46 video_nsgl_shutdown();
9.47 +#else
9.48 +#ifdef HAVE_GLES2
9.49 + video_egl_shutdown();
9.50 +#endif
9.51 #endif
9.52 #endif
9.53 #endif
10.1 --- a/src/pvr2/glutil.h Sun Jul 01 13:19:27 2012 +1000
10.2 +++ b/src/pvr2/glutil.h Sun Jul 01 13:20:34 2012 +1000
10.3 @@ -156,6 +156,20 @@
10.4 /* Convenience formatting function for driver use */
10.5 void fprint_extensions( FILE *out, const char *extensions );
10.6
10.7 +/****** Texture formats (missing definitions) *****/
10.8 +
10.9 +#ifndef GL_UNSIGNED_SHORT_4_4_4_4_REV
10.10 +#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
10.11 +#endif
10.12 +
10.13 +#ifndef GL_UNSIGNED_SHORT_1_5_5_5_REV
10.14 +#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
10.15 +#endif
10.16 +
10.17 +#ifndef GL_BGRA
10.18 +#define GL_BGRA 0x80E1
10.19 +#endif
10.20 +
10.21 #ifdef __cplusplus
10.22 }
10.23 #endif
11.1 --- a/src/tools/Makefile.am Sun Jul 01 13:19:27 2012 +1000
11.2 +++ b/src/tools/Makefile.am Sun Jul 01 13:20:34 2012 +1000
11.3 @@ -9,11 +9,11 @@
11.4 noinst_PROGRAMS = gendec genglsl genmach
11.5
11.6 gendec_SOURCES = gendec.c gendec.h insparse.c actparse.c
11.7 -gendec_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
11.8 +gendec_LDADD = @GLIB_FOR_BUILD_LIBS@ @GTK_LIBS@ $(INTLLIBS)
11.9
11.10 genmach_SOURCES = genmach.c genmach.h mdparse.c
11.11 -genmach_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
11.12 +genmach_LDADD = @GLIB_FOR_BUILD_LIBS@ @GTK_LIBS@ $(INTLLIBS)
11.13
11.14 genglsl_SOURCES = genglsl.c
11.15 -genglsl_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
11.16 +genglsl_LDADD = @GLIB_FOR_BUILD_LIBS@ @GTK_LIBS@ $(INTLLIBS)
11.17
12.1 --- a/src/tools/Makefile.in Sun Jul 01 13:19:27 2012 +1000
12.2 +++ b/src/tools/Makefile.in Sun Jul 01 13:20:34 2012 +1000
12.3 @@ -224,6 +224,8 @@
12.4 STRIP = @STRIP@
12.5 USE_NLS = @USE_NLS@
12.6 VERSION = @VERSION@
12.7 +VIDEO_EGL_FALSE = @VIDEO_EGL_FALSE@
12.8 +VIDEO_EGL_TRUE = @VIDEO_EGL_TRUE@
12.9 VIDEO_GLX_FALSE = @VIDEO_GLX_FALSE@
12.10 VIDEO_GLX_TRUE = @VIDEO_GLX_TRUE@
12.11 VIDEO_NSGL_FALSE = @VIDEO_NSGL_FALSE@
12.12 @@ -283,11 +285,11 @@
12.13 AM_CPPFLAGS = -I$(top_srcdir)/src $(GLIB_FOR_BUILD_CFLAGS)
12.14 AM_LDFLAGS = $(GLIB_FOR_BUILD_LDFLAGS)
12.15 gendec_SOURCES = gendec.c gendec.h insparse.c actparse.c
12.16 -gendec_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
12.17 +gendec_LDADD = @GLIB_FOR_BUILD_LIBS@ @GTK_LIBS@ $(INTLLIBS)
12.18 genmach_SOURCES = genmach.c genmach.h mdparse.c
12.19 -genmach_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
12.20 +genmach_LDADD = @GLIB_FOR_BUILD_LIBS@ @GTK_LIBS@ $(INTLLIBS)
12.21 genglsl_SOURCES = genglsl.c
12.22 -genglsl_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
12.23 +genglsl_LDADD = @GLIB_FOR_BUILD_LIBS@ @GTK_LIBS@ $(INTLLIBS)
12.24 all: all-am
12.25
12.26 .SUFFIXES:
.