configure
changeset 2 e273b0e38b8b
parent 0 76be7dab668c
     1.1 --- a/configure	Thu Aug 10 06:06:57 2000 +0000
     1.2 +++ b/configure	Thu Aug 10 06:12:39 2000 +0000
     1.3 @@ -22,8 +22,6 @@
     1.4  ac_help="$ac_help
     1.5    --disable-libtool-lock  avoid locking (might break parallel builds)"
     1.6  ac_help="$ac_help
     1.7 -  --with-pic              try to use only PIC/non-PIC objects [default=use both]"
     1.8 -ac_help="$ac_help
     1.9    --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)"
    1.10  ac_help="$ac_help
    1.11    --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)"
    1.12 @@ -621,7 +619,7 @@
    1.13  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    1.14  # ./install, which can be erroneously created by make from ./install.sh.
    1.15  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1.16 -echo "configure:625: checking for a BSD compatible install" >&5
    1.17 +echo "configure:623: checking for a BSD compatible install" >&5
    1.18  if test -z "$INSTALL"; then
    1.19  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    1.20    echo $ac_n "(cached) $ac_c" 1>&6
    1.21 @@ -674,7 +672,7 @@
    1.22  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    1.23  
    1.24  echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    1.25 -echo "configure:678: checking whether build environment is sane" >&5
    1.26 +echo "configure:676: checking whether build environment is sane" >&5
    1.27  # Just in case
    1.28  sleep 1
    1.29  echo timestamp > conftestfile
    1.30 @@ -731,7 +729,7 @@
    1.31  test "$program_transform_name" = "" && program_transform_name="s,x,x,"
    1.32  
    1.33  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1.34 -echo "configure:735: checking whether ${MAKE-make} sets \${MAKE}" >&5
    1.35 +echo "configure:733: checking whether ${MAKE-make} sets \${MAKE}" >&5
    1.36  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    1.37  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    1.38    echo $ac_n "(cached) $ac_c" 1>&6
    1.39 @@ -777,7 +775,7 @@
    1.40  
    1.41  missing_dir=`cd $ac_aux_dir && pwd`
    1.42  echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    1.43 -echo "configure:781: checking for working aclocal" >&5
    1.44 +echo "configure:779: checking for working aclocal" >&5
    1.45  # Run test in a subshell; some versions of sh will print an error if
    1.46  # an executable is not found, even if stderr is redirected.
    1.47  # Redirect stdin to placate older versions of autoconf.  Sigh.
    1.48 @@ -790,7 +788,7 @@
    1.49  fi
    1.50  
    1.51  echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    1.52 -echo "configure:794: checking for working autoconf" >&5
    1.53 +echo "configure:792: checking for working autoconf" >&5
    1.54  # Run test in a subshell; some versions of sh will print an error if
    1.55  # an executable is not found, even if stderr is redirected.
    1.56  # Redirect stdin to placate older versions of autoconf.  Sigh.
    1.57 @@ -803,7 +801,7 @@
    1.58  fi
    1.59  
    1.60  echo $ac_n "checking for working automake""... $ac_c" 1>&6
    1.61 -echo "configure:807: checking for working automake" >&5
    1.62 +echo "configure:805: checking for working automake" >&5
    1.63  # Run test in a subshell; some versions of sh will print an error if
    1.64  # an executable is not found, even if stderr is redirected.
    1.65  # Redirect stdin to placate older versions of autoconf.  Sigh.
    1.66 @@ -816,7 +814,7 @@
    1.67  fi
    1.68  
    1.69  echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    1.70 -echo "configure:820: checking for working autoheader" >&5
    1.71 +echo "configure:818: checking for working autoheader" >&5
    1.72  # Run test in a subshell; some versions of sh will print an error if
    1.73  # an executable is not found, even if stderr is redirected.
    1.74  # Redirect stdin to placate older versions of autoconf.  Sigh.
    1.75 @@ -829,7 +827,7 @@
    1.76  fi
    1.77  
    1.78  echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    1.79 -echo "configure:833: checking for working makeinfo" >&5
    1.80 +echo "configure:831: checking for working makeinfo" >&5
    1.81  # Run test in a subshell; some versions of sh will print an error if
    1.82  # an executable is not found, even if stderr is redirected.
    1.83  # Redirect stdin to placate older versions of autoconf.  Sigh.
    1.84 @@ -844,254 +842,52 @@
    1.85  
    1.86  
    1.87  
    1.88 -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1.89 -echo "configure:849: checking whether ${MAKE-make} sets \${MAKE}" >&5
    1.90 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    1.91 -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    1.92 -  echo $ac_n "(cached) $ac_c" 1>&6
    1.93 -else
    1.94 -  cat > conftestmake <<\EOF
    1.95 -all:
    1.96 -	@echo 'ac_maketemp="${MAKE}"'
    1.97 -EOF
    1.98 -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    1.99 -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
   1.100 -if test -n "$ac_maketemp"; then
   1.101 -  eval ac_cv_prog_make_${ac_make}_set=yes
   1.102 -else
   1.103 -  eval ac_cv_prog_make_${ac_make}_set=no
   1.104 -fi
   1.105 -rm -f conftestmake
   1.106 -fi
   1.107 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
   1.108 -  echo "$ac_t""yes" 1>&6
   1.109 -  SET_MAKE=
   1.110 -else
   1.111 -  echo "$ac_t""no" 1>&6
   1.112 -  SET_MAKE="MAKE=${MAKE-make}"
   1.113 +# Make sure we can run config.sub.
   1.114 +if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
   1.115 +else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
   1.116  fi
   1.117  
   1.118 -# Extract the first word of "gcc", so it can be a program name with args.
   1.119 -set dummy gcc; ac_word=$2
   1.120 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.121 -echo "configure:878: checking for $ac_word" >&5
   1.122 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   1.123 -  echo $ac_n "(cached) $ac_c" 1>&6
   1.124 -else
   1.125 -  if test -n "$CC"; then
   1.126 -  ac_cv_prog_CC="$CC" # Let the user override the test.
   1.127 -else
   1.128 -  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.129 -  ac_dummy="$PATH"
   1.130 -  for ac_dir in $ac_dummy; do
   1.131 -    test -z "$ac_dir" && ac_dir=.
   1.132 -    if test -f $ac_dir/$ac_word; then
   1.133 -      ac_cv_prog_CC="gcc"
   1.134 -      break
   1.135 -    fi
   1.136 -  done
   1.137 -  IFS="$ac_save_ifs"
   1.138 -fi
   1.139 -fi
   1.140 -CC="$ac_cv_prog_CC"
   1.141 -if test -n "$CC"; then
   1.142 -  echo "$ac_t""$CC" 1>&6
   1.143 -else
   1.144 -  echo "$ac_t""no" 1>&6
   1.145 -fi
   1.146 +echo $ac_n "checking host system type""... $ac_c" 1>&6
   1.147 +echo "configure:852: checking host system type" >&5
   1.148  
   1.149 -if test -z "$CC"; then
   1.150 -  # Extract the first word of "cc", so it can be a program name with args.
   1.151 -set dummy cc; ac_word=$2
   1.152 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.153 -echo "configure:908: checking for $ac_word" >&5
   1.154 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   1.155 -  echo $ac_n "(cached) $ac_c" 1>&6
   1.156 -else
   1.157 -  if test -n "$CC"; then
   1.158 -  ac_cv_prog_CC="$CC" # Let the user override the test.
   1.159 -else
   1.160 -  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.161 -  ac_prog_rejected=no
   1.162 -  ac_dummy="$PATH"
   1.163 -  for ac_dir in $ac_dummy; do
   1.164 -    test -z "$ac_dir" && ac_dir=.
   1.165 -    if test -f $ac_dir/$ac_word; then
   1.166 -      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
   1.167 -        ac_prog_rejected=yes
   1.168 -	continue
   1.169 -      fi
   1.170 -      ac_cv_prog_CC="cc"
   1.171 -      break
   1.172 -    fi
   1.173 -  done
   1.174 -  IFS="$ac_save_ifs"
   1.175 -if test $ac_prog_rejected = yes; then
   1.176 -  # We found a bogon in the path, so make sure we never use it.
   1.177 -  set dummy $ac_cv_prog_CC
   1.178 -  shift
   1.179 -  if test $# -gt 0; then
   1.180 -    # We chose a different compiler from the bogus one.
   1.181 -    # However, it has the same basename, so the bogon will be chosen
   1.182 -    # first if we set CC to just the basename; use the full file name.
   1.183 -    shift
   1.184 -    set dummy "$ac_dir/$ac_word" "$@"
   1.185 -    shift
   1.186 -    ac_cv_prog_CC="$@"
   1.187 -  fi
   1.188 -fi
   1.189 -fi
   1.190 -fi
   1.191 -CC="$ac_cv_prog_CC"
   1.192 -if test -n "$CC"; then
   1.193 -  echo "$ac_t""$CC" 1>&6
   1.194 -else
   1.195 -  echo "$ac_t""no" 1>&6
   1.196 -fi
   1.197 +host_alias=$host
   1.198 +case "$host_alias" in
   1.199 +NONE)
   1.200 +  case $nonopt in
   1.201 +  NONE)
   1.202 +    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
   1.203 +    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
   1.204 +    fi ;;
   1.205 +  *) host_alias=$nonopt ;;
   1.206 +  esac ;;
   1.207 +esac
   1.208  
   1.209 -  if test -z "$CC"; then
   1.210 -    case "`uname -s`" in
   1.211 -    *win32* | *WIN32*)
   1.212 -      # Extract the first word of "cl", so it can be a program name with args.
   1.213 -set dummy cl; ac_word=$2
   1.214 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.215 -echo "configure:959: checking for $ac_word" >&5
   1.216 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   1.217 -  echo $ac_n "(cached) $ac_c" 1>&6
   1.218 -else
   1.219 -  if test -n "$CC"; then
   1.220 -  ac_cv_prog_CC="$CC" # Let the user override the test.
   1.221 -else
   1.222 -  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.223 -  ac_dummy="$PATH"
   1.224 -  for ac_dir in $ac_dummy; do
   1.225 -    test -z "$ac_dir" && ac_dir=.
   1.226 -    if test -f $ac_dir/$ac_word; then
   1.227 -      ac_cv_prog_CC="cl"
   1.228 -      break
   1.229 -    fi
   1.230 -  done
   1.231 -  IFS="$ac_save_ifs"
   1.232 -fi
   1.233 -fi
   1.234 -CC="$ac_cv_prog_CC"
   1.235 -if test -n "$CC"; then
   1.236 -  echo "$ac_t""$CC" 1>&6
   1.237 -else
   1.238 -  echo "$ac_t""no" 1>&6
   1.239 -fi
   1.240 - ;;
   1.241 -    esac
   1.242 -  fi
   1.243 -  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
   1.244 -fi
   1.245 +host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
   1.246 +host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1.247 +host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1.248 +host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1.249 +echo "$ac_t""$host" 1>&6
   1.250  
   1.251 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
   1.252 -echo "configure:991: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
   1.253 +echo $ac_n "checking target system type""... $ac_c" 1>&6
   1.254 +echo "configure:873: checking target system type" >&5
   1.255  
   1.256 -ac_ext=c
   1.257 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
   1.258 -ac_cpp='$CPP $CPPFLAGS'
   1.259 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
   1.260 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   1.261 -cross_compiling=$ac_cv_prog_cc_cross
   1.262 +target_alias=$target
   1.263 +case "$target_alias" in
   1.264 +NONE)
   1.265 +  case $nonopt in
   1.266 +  NONE) target_alias=$host_alias ;;
   1.267 +  *) target_alias=$nonopt ;;
   1.268 +  esac ;;
   1.269 +esac
   1.270  
   1.271 -cat > conftest.$ac_ext << EOF
   1.272 +target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
   1.273 +target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1.274 +target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1.275 +target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1.276 +echo "$ac_t""$target" 1>&6
   1.277  
   1.278 -#line 1002 "configure"
   1.279 -#include "confdefs.h"
   1.280  
   1.281 -main(){return(0);}
   1.282 -EOF
   1.283 -if { (eval echo configure:1007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   1.284 -  ac_cv_prog_cc_works=yes
   1.285 -  # If we can't run a trivial program, we are probably using a cross compiler.
   1.286 -  if (./conftest; exit) 2>/dev/null; then
   1.287 -    ac_cv_prog_cc_cross=no
   1.288 -  else
   1.289 -    ac_cv_prog_cc_cross=yes
   1.290 -  fi
   1.291 -else
   1.292 -  echo "configure: failed program was:" >&5
   1.293 -  cat conftest.$ac_ext >&5
   1.294 -  ac_cv_prog_cc_works=no
   1.295 -fi
   1.296 -rm -fr conftest*
   1.297 -ac_ext=c
   1.298 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
   1.299 -ac_cpp='$CPP $CPPFLAGS'
   1.300 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
   1.301 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   1.302 -cross_compiling=$ac_cv_prog_cc_cross
   1.303  
   1.304 -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
   1.305 -if test $ac_cv_prog_cc_works = no; then
   1.306 -  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
   1.307 -fi
   1.308 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
   1.309 -echo "configure:1033: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
   1.310 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
   1.311 -cross_compiling=$ac_cv_prog_cc_cross
   1.312 -
   1.313 -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
   1.314 -echo "configure:1038: checking whether we are using GNU C" >&5
   1.315 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
   1.316 -  echo $ac_n "(cached) $ac_c" 1>&6
   1.317 -else
   1.318 -  cat > conftest.c <<EOF
   1.319 -#ifdef __GNUC__
   1.320 -  yes;
   1.321 -#endif
   1.322 -EOF
   1.323 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
   1.324 -  ac_cv_prog_gcc=yes
   1.325 -else
   1.326 -  ac_cv_prog_gcc=no
   1.327 -fi
   1.328 -fi
   1.329 -
   1.330 -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
   1.331 -
   1.332 -if test $ac_cv_prog_gcc = yes; then
   1.333 -  GCC=yes
   1.334 -else
   1.335 -  GCC=
   1.336 -fi
   1.337 -
   1.338 -ac_test_CFLAGS="${CFLAGS+set}"
   1.339 -ac_save_CFLAGS="$CFLAGS"
   1.340 -CFLAGS=
   1.341 -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
   1.342 -echo "configure:1066: checking whether ${CC-cc} accepts -g" >&5
   1.343 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
   1.344 -  echo $ac_n "(cached) $ac_c" 1>&6
   1.345 -else
   1.346 -  echo 'void f(){}' > conftest.c
   1.347 -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
   1.348 -  ac_cv_prog_cc_g=yes
   1.349 -else
   1.350 -  ac_cv_prog_cc_g=no
   1.351 -fi
   1.352 -rm -f conftest*
   1.353 -
   1.354 -fi
   1.355 -
   1.356 -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
   1.357 -if test "$ac_test_CFLAGS" = set; then
   1.358 -  CFLAGS="$ac_save_CFLAGS"
   1.359 -elif test $ac_cv_prog_cc_g = yes; then
   1.360 -  if test "$GCC" = yes; then
   1.361 -    CFLAGS="-g -O2"
   1.362 -  else
   1.363 -    CFLAGS="-g"
   1.364 -  fi
   1.365 -else
   1.366 -  if test "$GCC" = yes; then
   1.367 -    CFLAGS="-O2"
   1.368 -  else
   1.369 -    CFLAGS=
   1.370 -  fi
   1.371 -fi
   1.372  
   1.373  # Check whether --enable-shared or --disable-shared was given.
   1.374  if test "${enable_shared+set}" = set; then
   1.375 @@ -1162,35 +958,8 @@
   1.376    enable_fast_install=yes
   1.377  fi
   1.378  
   1.379 -
   1.380 -# Make sure we can run config.sub.
   1.381 -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
   1.382 -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
   1.383 -fi
   1.384 -
   1.385 -echo $ac_n "checking host system type""... $ac_c" 1>&6
   1.386 -echo "configure:1173: checking host system type" >&5
   1.387 -
   1.388 -host_alias=$host
   1.389 -case "$host_alias" in
   1.390 -NONE)
   1.391 -  case $nonopt in
   1.392 -  NONE)
   1.393 -    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
   1.394 -    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
   1.395 -    fi ;;
   1.396 -  *) host_alias=$nonopt ;;
   1.397 -  esac ;;
   1.398 -esac
   1.399 -
   1.400 -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
   1.401 -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1.402 -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1.403 -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1.404 -echo "$ac_t""$host" 1>&6
   1.405 -
   1.406  echo $ac_n "checking build system type""... $ac_c" 1>&6
   1.407 -echo "configure:1194: checking build system type" >&5
   1.408 +echo "configure:963: checking build system type" >&5
   1.409  
   1.410  build_alias=$build
   1.411  case "$build_alias" in
   1.412 @@ -1207,6 +976,258 @@
   1.413  build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1.414  echo "$ac_t""$build" 1>&6
   1.415  
   1.416 +# Extract the first word of "ranlib", so it can be a program name with args.
   1.417 +set dummy ranlib; ac_word=$2
   1.418 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.419 +echo "configure:983: checking for $ac_word" >&5
   1.420 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
   1.421 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.422 +else
   1.423 +  if test -n "$RANLIB"; then
   1.424 +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   1.425 +else
   1.426 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.427 +  ac_dummy="$PATH"
   1.428 +  for ac_dir in $ac_dummy; do
   1.429 +    test -z "$ac_dir" && ac_dir=.
   1.430 +    if test -f $ac_dir/$ac_word; then
   1.431 +      ac_cv_prog_RANLIB="ranlib"
   1.432 +      break
   1.433 +    fi
   1.434 +  done
   1.435 +  IFS="$ac_save_ifs"
   1.436 +  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
   1.437 +fi
   1.438 +fi
   1.439 +RANLIB="$ac_cv_prog_RANLIB"
   1.440 +if test -n "$RANLIB"; then
   1.441 +  echo "$ac_t""$RANLIB" 1>&6
   1.442 +else
   1.443 +  echo "$ac_t""no" 1>&6
   1.444 +fi
   1.445 +
   1.446 +# Extract the first word of "gcc", so it can be a program name with args.
   1.447 +set dummy gcc; ac_word=$2
   1.448 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.449 +echo "configure:1013: checking for $ac_word" >&5
   1.450 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   1.451 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.452 +else
   1.453 +  if test -n "$CC"; then
   1.454 +  ac_cv_prog_CC="$CC" # Let the user override the test.
   1.455 +else
   1.456 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.457 +  ac_dummy="$PATH"
   1.458 +  for ac_dir in $ac_dummy; do
   1.459 +    test -z "$ac_dir" && ac_dir=.
   1.460 +    if test -f $ac_dir/$ac_word; then
   1.461 +      ac_cv_prog_CC="gcc"
   1.462 +      break
   1.463 +    fi
   1.464 +  done
   1.465 +  IFS="$ac_save_ifs"
   1.466 +fi
   1.467 +fi
   1.468 +CC="$ac_cv_prog_CC"
   1.469 +if test -n "$CC"; then
   1.470 +  echo "$ac_t""$CC" 1>&6
   1.471 +else
   1.472 +  echo "$ac_t""no" 1>&6
   1.473 +fi
   1.474 +
   1.475 +if test -z "$CC"; then
   1.476 +  # Extract the first word of "cc", so it can be a program name with args.
   1.477 +set dummy cc; ac_word=$2
   1.478 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.479 +echo "configure:1043: checking for $ac_word" >&5
   1.480 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   1.481 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.482 +else
   1.483 +  if test -n "$CC"; then
   1.484 +  ac_cv_prog_CC="$CC" # Let the user override the test.
   1.485 +else
   1.486 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.487 +  ac_prog_rejected=no
   1.488 +  ac_dummy="$PATH"
   1.489 +  for ac_dir in $ac_dummy; do
   1.490 +    test -z "$ac_dir" && ac_dir=.
   1.491 +    if test -f $ac_dir/$ac_word; then
   1.492 +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
   1.493 +        ac_prog_rejected=yes
   1.494 +	continue
   1.495 +      fi
   1.496 +      ac_cv_prog_CC="cc"
   1.497 +      break
   1.498 +    fi
   1.499 +  done
   1.500 +  IFS="$ac_save_ifs"
   1.501 +if test $ac_prog_rejected = yes; then
   1.502 +  # We found a bogon in the path, so make sure we never use it.
   1.503 +  set dummy $ac_cv_prog_CC
   1.504 +  shift
   1.505 +  if test $# -gt 0; then
   1.506 +    # We chose a different compiler from the bogus one.
   1.507 +    # However, it has the same basename, so the bogon will be chosen
   1.508 +    # first if we set CC to just the basename; use the full file name.
   1.509 +    shift
   1.510 +    set dummy "$ac_dir/$ac_word" "$@"
   1.511 +    shift
   1.512 +    ac_cv_prog_CC="$@"
   1.513 +  fi
   1.514 +fi
   1.515 +fi
   1.516 +fi
   1.517 +CC="$ac_cv_prog_CC"
   1.518 +if test -n "$CC"; then
   1.519 +  echo "$ac_t""$CC" 1>&6
   1.520 +else
   1.521 +  echo "$ac_t""no" 1>&6
   1.522 +fi
   1.523 +
   1.524 +  if test -z "$CC"; then
   1.525 +    case "`uname -s`" in
   1.526 +    *win32* | *WIN32*)
   1.527 +      # Extract the first word of "cl", so it can be a program name with args.
   1.528 +set dummy cl; ac_word=$2
   1.529 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.530 +echo "configure:1094: checking for $ac_word" >&5
   1.531 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   1.532 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.533 +else
   1.534 +  if test -n "$CC"; then
   1.535 +  ac_cv_prog_CC="$CC" # Let the user override the test.
   1.536 +else
   1.537 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.538 +  ac_dummy="$PATH"
   1.539 +  for ac_dir in $ac_dummy; do
   1.540 +    test -z "$ac_dir" && ac_dir=.
   1.541 +    if test -f $ac_dir/$ac_word; then
   1.542 +      ac_cv_prog_CC="cl"
   1.543 +      break
   1.544 +    fi
   1.545 +  done
   1.546 +  IFS="$ac_save_ifs"
   1.547 +fi
   1.548 +fi
   1.549 +CC="$ac_cv_prog_CC"
   1.550 +if test -n "$CC"; then
   1.551 +  echo "$ac_t""$CC" 1>&6
   1.552 +else
   1.553 +  echo "$ac_t""no" 1>&6
   1.554 +fi
   1.555 + ;;
   1.556 +    esac
   1.557 +  fi
   1.558 +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
   1.559 +fi
   1.560 +
   1.561 +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
   1.562 +echo "configure:1126: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
   1.563 +
   1.564 +ac_ext=c
   1.565 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
   1.566 +ac_cpp='$CPP $CPPFLAGS'
   1.567 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
   1.568 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   1.569 +cross_compiling=$ac_cv_prog_cc_cross
   1.570 +
   1.571 +cat > conftest.$ac_ext << EOF
   1.572 +
   1.573 +#line 1137 "configure"
   1.574 +#include "confdefs.h"
   1.575 +
   1.576 +main(){return(0);}
   1.577 +EOF
   1.578 +if { (eval echo configure:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   1.579 +  ac_cv_prog_cc_works=yes
   1.580 +  # If we can't run a trivial program, we are probably using a cross compiler.
   1.581 +  if (./conftest; exit) 2>/dev/null; then
   1.582 +    ac_cv_prog_cc_cross=no
   1.583 +  else
   1.584 +    ac_cv_prog_cc_cross=yes
   1.585 +  fi
   1.586 +else
   1.587 +  echo "configure: failed program was:" >&5
   1.588 +  cat conftest.$ac_ext >&5
   1.589 +  ac_cv_prog_cc_works=no
   1.590 +fi
   1.591 +rm -fr conftest*
   1.592 +ac_ext=c
   1.593 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
   1.594 +ac_cpp='$CPP $CPPFLAGS'
   1.595 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
   1.596 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   1.597 +cross_compiling=$ac_cv_prog_cc_cross
   1.598 +
   1.599 +echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
   1.600 +if test $ac_cv_prog_cc_works = no; then
   1.601 +  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
   1.602 +fi
   1.603 +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
   1.604 +echo "configure:1168: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
   1.605 +echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
   1.606 +cross_compiling=$ac_cv_prog_cc_cross
   1.607 +
   1.608 +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
   1.609 +echo "configure:1173: checking whether we are using GNU C" >&5
   1.610 +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
   1.611 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.612 +else
   1.613 +  cat > conftest.c <<EOF
   1.614 +#ifdef __GNUC__
   1.615 +  yes;
   1.616 +#endif
   1.617 +EOF
   1.618 +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
   1.619 +  ac_cv_prog_gcc=yes
   1.620 +else
   1.621 +  ac_cv_prog_gcc=no
   1.622 +fi
   1.623 +fi
   1.624 +
   1.625 +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
   1.626 +
   1.627 +if test $ac_cv_prog_gcc = yes; then
   1.628 +  GCC=yes
   1.629 +else
   1.630 +  GCC=
   1.631 +fi
   1.632 +
   1.633 +ac_test_CFLAGS="${CFLAGS+set}"
   1.634 +ac_save_CFLAGS="$CFLAGS"
   1.635 +CFLAGS=
   1.636 +echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
   1.637 +echo "configure:1201: checking whether ${CC-cc} accepts -g" >&5
   1.638 +if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
   1.639 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.640 +else
   1.641 +  echo 'void f(){}' > conftest.c
   1.642 +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
   1.643 +  ac_cv_prog_cc_g=yes
   1.644 +else
   1.645 +  ac_cv_prog_cc_g=no
   1.646 +fi
   1.647 +rm -f conftest*
   1.648 +
   1.649 +fi
   1.650 +
   1.651 +echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
   1.652 +if test "$ac_test_CFLAGS" = set; then
   1.653 +  CFLAGS="$ac_save_CFLAGS"
   1.654 +elif test $ac_cv_prog_cc_g = yes; then
   1.655 +  if test "$GCC" = yes; then
   1.656 +    CFLAGS="-g -O2"
   1.657 +  else
   1.658 +    CFLAGS="-g"
   1.659 +  fi
   1.660 +else
   1.661 +  if test "$GCC" = yes; then
   1.662 +    CFLAGS="-O2"
   1.663 +  else
   1.664 +    CFLAGS=
   1.665 +  fi
   1.666 +fi
   1.667 +
   1.668  # Check whether --with-gnu-ld or --without-gnu-ld was given.
   1.669  if test "${with_gnu_ld+set}" = set; then
   1.670    withval="$with_gnu_ld"
   1.671 @@ -1219,14 +1240,8 @@
   1.672  if test "$ac_cv_prog_gcc" = yes; then
   1.673    # Check if gcc -print-prog-name=ld gives a path.
   1.674    echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
   1.675 -echo "configure:1223: checking for ld used by GCC" >&5
   1.676 -  case $host in
   1.677 -  *-*-mingw*)
   1.678 -    # gcc leaves a trailing carriage return which upsets mingw
   1.679 -    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   1.680 -  *)
   1.681 -    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   1.682 -  esac
   1.683 +echo "configure:1244: checking for ld used by GCC" >&5
   1.684 +  ac_prog=`($CC -print-prog-name=ld) 2>&5`
   1.685    case "$ac_prog" in
   1.686      # Accept absolute paths.
   1.687      [\\/]* | [A-Za-z]:[\\/]*)
   1.688 @@ -1249,10 +1264,10 @@
   1.689    esac
   1.690  elif test "$with_gnu_ld" = yes; then
   1.691    echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
   1.692 -echo "configure:1253: checking for GNU ld" >&5
   1.693 +echo "configure:1268: checking for GNU ld" >&5
   1.694  else
   1.695    echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
   1.696 -echo "configure:1256: checking for non-GNU ld" >&5
   1.697 +echo "configure:1271: checking for non-GNU ld" >&5
   1.698  fi
   1.699  if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
   1.700    echo $ac_n "(cached) $ac_c" 1>&6
   1.701 @@ -1286,9 +1301,8 @@
   1.702    echo "$ac_t""no" 1>&6
   1.703  fi
   1.704  test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
   1.705 -
   1.706  echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
   1.707 -echo "configure:1292: checking if the linker ($LD) is GNU ld" >&5
   1.708 +echo "configure:1306: checking if the linker ($LD) is GNU ld" >&5
   1.709  if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
   1.710    echo $ac_n "(cached) $ac_c" 1>&6
   1.711  else
   1.712 @@ -1304,7 +1318,7 @@
   1.713  
   1.714  
   1.715  echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
   1.716 -echo "configure:1308: checking for BSD-compatible nm" >&5
   1.717 +echo "configure:1322: checking for BSD-compatible nm" >&5
   1.718  if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
   1.719    echo $ac_n "(cached) $ac_c" 1>&6
   1.720  else
   1.721 @@ -1339,9 +1353,8 @@
   1.722  NM="$ac_cv_path_NM"
   1.723  echo "$ac_t""$NM" 1>&6
   1.724  
   1.725 -
   1.726  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
   1.727 -echo "configure:1345: checking whether ln -s works" >&5
   1.728 +echo "configure:1358: checking whether ln -s works" >&5
   1.729  if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
   1.730    echo $ac_n "(cached) $ac_c" 1>&6
   1.731  else
   1.732 @@ -1368,73 +1381,10 @@
   1.733  fi
   1.734  
   1.735  
   1.736 -# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   1.737 -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   1.738 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.739 -echo "configure:1375: checking for $ac_word" >&5
   1.740 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
   1.741 -  echo $ac_n "(cached) $ac_c" 1>&6
   1.742 -else
   1.743 -  if test -n "$RANLIB"; then
   1.744 -  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   1.745 -else
   1.746 -  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.747 -  ac_dummy="$PATH"
   1.748 -  for ac_dir in $ac_dummy; do
   1.749 -    test -z "$ac_dir" && ac_dir=.
   1.750 -    if test -f $ac_dir/$ac_word; then
   1.751 -      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   1.752 -      break
   1.753 -    fi
   1.754 -  done
   1.755 -  IFS="$ac_save_ifs"
   1.756 -fi
   1.757 -fi
   1.758 -RANLIB="$ac_cv_prog_RANLIB"
   1.759 -if test -n "$RANLIB"; then
   1.760 -  echo "$ac_t""$RANLIB" 1>&6
   1.761 -else
   1.762 -  echo "$ac_t""no" 1>&6
   1.763 -fi
   1.764 -
   1.765 -
   1.766 -if test -z "$ac_cv_prog_RANLIB"; then
   1.767 -if test -n "$ac_tool_prefix"; then
   1.768 -  # Extract the first word of "ranlib", so it can be a program name with args.
   1.769 -set dummy ranlib; ac_word=$2
   1.770 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.771 -echo "configure:1407: checking for $ac_word" >&5
   1.772 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
   1.773 -  echo $ac_n "(cached) $ac_c" 1>&6
   1.774 -else
   1.775 -  if test -n "$RANLIB"; then
   1.776 -  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   1.777 -else
   1.778 -  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.779 -  ac_dummy="$PATH"
   1.780 -  for ac_dir in $ac_dummy; do
   1.781 -    test -z "$ac_dir" && ac_dir=.
   1.782 -    if test -f $ac_dir/$ac_word; then
   1.783 -      ac_cv_prog_RANLIB="ranlib"
   1.784 -      break
   1.785 -    fi
   1.786 -  done
   1.787 -  IFS="$ac_save_ifs"
   1.788 -  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
   1.789 -fi
   1.790 -fi
   1.791 -RANLIB="$ac_cv_prog_RANLIB"
   1.792 -if test -n "$RANLIB"; then
   1.793 -  echo "$ac_t""$RANLIB" 1>&6
   1.794 -else
   1.795 -  echo "$ac_t""no" 1>&6
   1.796 -fi
   1.797 -
   1.798 -else
   1.799 -  RANLIB=":"
   1.800 -fi
   1.801 -fi
   1.802 -
   1.803 +case "$target" in
   1.804 +NONE) lt_target="$host" ;;
   1.805 +*) lt_target="$target" ;;
   1.806 +esac
   1.807  
   1.808  # Check for any special flags to pass to ltconfig.
   1.809  libtool_flags="--cache-file=$cache_file"
   1.810 @@ -1444,7 +1394,7 @@
   1.811  test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
   1.812  test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
   1.813  
   1.814 -
   1.815 +libtool_flags="$libtool_flags --enable-win32-dll"
   1.816  # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
   1.817  if test "${enable_libtool_lock+set}" = set; then
   1.818    enableval="$enable_libtool_lock"
   1.819 @@ -1454,24 +1404,13 @@
   1.820  test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
   1.821  test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
   1.822  
   1.823 -# Check whether --with-pic or --without-pic was given.
   1.824 -if test "${with_pic+set}" = set; then
   1.825 -  withval="$with_pic"
   1.826 -  pic_mode="$withval"
   1.827 -else
   1.828 -  pic_mode=default
   1.829 -fi
   1.830 -
   1.831 -test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
   1.832 -test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
   1.833 -
   1.834  # Some flags need to be propagated to the compiler or linker for good
   1.835  # libtool support.
   1.836 -case "$host" in
   1.837 +case "$lt_target" in
   1.838  *-*-irix6*)
   1.839    # Find out which ABI we are using.
   1.840 -  echo '#line 1474 "configure"' > conftest.$ac_ext
   1.841 -  if { (eval echo configure:1475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   1.842 +  echo '#line 1413 "configure"' > conftest.$ac_ext
   1.843 +  if { (eval echo configure:1414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   1.844      case "`/usr/bin/file conftest.o`" in
   1.845      *32-bit*)
   1.846        LD="${LD-ld} -32"
   1.847 @@ -1492,19 +1431,19 @@
   1.848    SAVE_CFLAGS="$CFLAGS"
   1.849    CFLAGS="$CFLAGS -belf"
   1.850    echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
   1.851 -echo "configure:1496: checking whether the C compiler needs -belf" >&5
   1.852 +echo "configure:1435: checking whether the C compiler needs -belf" >&5
   1.853  if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
   1.854    echo $ac_n "(cached) $ac_c" 1>&6
   1.855  else
   1.856    cat > conftest.$ac_ext <<EOF
   1.857 -#line 1501 "configure"
   1.858 +#line 1440 "configure"
   1.859  #include "confdefs.h"
   1.860  
   1.861  int main() {
   1.862  
   1.863  ; return 0; }
   1.864  EOF
   1.865 -if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   1.866 +if { (eval echo configure:1447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   1.867    rm -rf conftest*
   1.868    lt_cv_cc_needs_belf=yes
   1.869  else
   1.870 @@ -1523,6 +1462,209 @@
   1.871    fi
   1.872    ;;
   1.873  
   1.874 +*-*-cygwin* | *-*-mingw*)
   1.875 +  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   1.876 +set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   1.877 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.878 +echo "configure:1470: checking for $ac_word" >&5
   1.879 +if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
   1.880 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.881 +else
   1.882 +  if test -n "$DLLTOOL"; then
   1.883 +  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   1.884 +else
   1.885 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.886 +  ac_dummy="$PATH"
   1.887 +  for ac_dir in $ac_dummy; do
   1.888 +    test -z "$ac_dir" && ac_dir=.
   1.889 +    if test -f $ac_dir/$ac_word; then
   1.890 +      ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   1.891 +      break
   1.892 +    fi
   1.893 +  done
   1.894 +  IFS="$ac_save_ifs"
   1.895 +fi
   1.896 +fi
   1.897 +DLLTOOL="$ac_cv_prog_DLLTOOL"
   1.898 +if test -n "$DLLTOOL"; then
   1.899 +  echo "$ac_t""$DLLTOOL" 1>&6
   1.900 +else
   1.901 +  echo "$ac_t""no" 1>&6
   1.902 +fi
   1.903 +
   1.904 +
   1.905 +if test -z "$ac_cv_prog_DLLTOOL"; then
   1.906 +if test -n "$ac_tool_prefix"; then
   1.907 +  # Extract the first word of "dlltool", so it can be a program name with args.
   1.908 +set dummy dlltool; ac_word=$2
   1.909 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.910 +echo "configure:1502: checking for $ac_word" >&5
   1.911 +if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
   1.912 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.913 +else
   1.914 +  if test -n "$DLLTOOL"; then
   1.915 +  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   1.916 +else
   1.917 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.918 +  ac_dummy="$PATH"
   1.919 +  for ac_dir in $ac_dummy; do
   1.920 +    test -z "$ac_dir" && ac_dir=.
   1.921 +    if test -f $ac_dir/$ac_word; then
   1.922 +      ac_cv_prog_DLLTOOL="dlltool"
   1.923 +      break
   1.924 +    fi
   1.925 +  done
   1.926 +  IFS="$ac_save_ifs"
   1.927 +  test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
   1.928 +fi
   1.929 +fi
   1.930 +DLLTOOL="$ac_cv_prog_DLLTOOL"
   1.931 +if test -n "$DLLTOOL"; then
   1.932 +  echo "$ac_t""$DLLTOOL" 1>&6
   1.933 +else
   1.934 +  echo "$ac_t""no" 1>&6
   1.935 +fi
   1.936 +
   1.937 +else
   1.938 +  DLLTOOL="false"
   1.939 +fi
   1.940 +fi
   1.941 +
   1.942 +  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
   1.943 +set dummy ${ac_tool_prefix}as; ac_word=$2
   1.944 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.945 +echo "configure:1537: checking for $ac_word" >&5
   1.946 +if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
   1.947 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.948 +else
   1.949 +  if test -n "$AS"; then
   1.950 +  ac_cv_prog_AS="$AS" # Let the user override the test.
   1.951 +else
   1.952 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.953 +  ac_dummy="$PATH"
   1.954 +  for ac_dir in $ac_dummy; do
   1.955 +    test -z "$ac_dir" && ac_dir=.
   1.956 +    if test -f $ac_dir/$ac_word; then
   1.957 +      ac_cv_prog_AS="${ac_tool_prefix}as"
   1.958 +      break
   1.959 +    fi
   1.960 +  done
   1.961 +  IFS="$ac_save_ifs"
   1.962 +fi
   1.963 +fi
   1.964 +AS="$ac_cv_prog_AS"
   1.965 +if test -n "$AS"; then
   1.966 +  echo "$ac_t""$AS" 1>&6
   1.967 +else
   1.968 +  echo "$ac_t""no" 1>&6
   1.969 +fi
   1.970 +
   1.971 +
   1.972 +if test -z "$ac_cv_prog_AS"; then
   1.973 +if test -n "$ac_tool_prefix"; then
   1.974 +  # Extract the first word of "as", so it can be a program name with args.
   1.975 +set dummy as; ac_word=$2
   1.976 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.977 +echo "configure:1569: checking for $ac_word" >&5
   1.978 +if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
   1.979 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.980 +else
   1.981 +  if test -n "$AS"; then
   1.982 +  ac_cv_prog_AS="$AS" # Let the user override the test.
   1.983 +else
   1.984 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.985 +  ac_dummy="$PATH"
   1.986 +  for ac_dir in $ac_dummy; do
   1.987 +    test -z "$ac_dir" && ac_dir=.
   1.988 +    if test -f $ac_dir/$ac_word; then
   1.989 +      ac_cv_prog_AS="as"
   1.990 +      break
   1.991 +    fi
   1.992 +  done
   1.993 +  IFS="$ac_save_ifs"
   1.994 +  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
   1.995 +fi
   1.996 +fi
   1.997 +AS="$ac_cv_prog_AS"
   1.998 +if test -n "$AS"; then
   1.999 +  echo "$ac_t""$AS" 1>&6
  1.1000 +else
  1.1001 +  echo "$ac_t""no" 1>&6
  1.1002 +fi
  1.1003 +
  1.1004 +else
  1.1005 +  AS="false"
  1.1006 +fi
  1.1007 +fi
  1.1008 +
  1.1009 +  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  1.1010 +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  1.1011 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1.1012 +echo "configure:1604: checking for $ac_word" >&5
  1.1013 +if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
  1.1014 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1015 +else
  1.1016 +  if test -n "$OBJDUMP"; then
  1.1017 +  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  1.1018 +else
  1.1019 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  1.1020 +  ac_dummy="$PATH"
  1.1021 +  for ac_dir in $ac_dummy; do
  1.1022 +    test -z "$ac_dir" && ac_dir=.
  1.1023 +    if test -f $ac_dir/$ac_word; then
  1.1024 +      ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  1.1025 +      break
  1.1026 +    fi
  1.1027 +  done
  1.1028 +  IFS="$ac_save_ifs"
  1.1029 +fi
  1.1030 +fi
  1.1031 +OBJDUMP="$ac_cv_prog_OBJDUMP"
  1.1032 +if test -n "$OBJDUMP"; then
  1.1033 +  echo "$ac_t""$OBJDUMP" 1>&6
  1.1034 +else
  1.1035 +  echo "$ac_t""no" 1>&6
  1.1036 +fi
  1.1037 +
  1.1038 +
  1.1039 +if test -z "$ac_cv_prog_OBJDUMP"; then
  1.1040 +if test -n "$ac_tool_prefix"; then
  1.1041 +  # Extract the first word of "objdump", so it can be a program name with args.
  1.1042 +set dummy objdump; ac_word=$2
  1.1043 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1.1044 +echo "configure:1636: checking for $ac_word" >&5
  1.1045 +if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
  1.1046 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1047 +else
  1.1048 +  if test -n "$OBJDUMP"; then
  1.1049 +  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  1.1050 +else
  1.1051 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  1.1052 +  ac_dummy="$PATH"
  1.1053 +  for ac_dir in $ac_dummy; do
  1.1054 +    test -z "$ac_dir" && ac_dir=.
  1.1055 +    if test -f $ac_dir/$ac_word; then
  1.1056 +      ac_cv_prog_OBJDUMP="objdump"
  1.1057 +      break
  1.1058 +    fi
  1.1059 +  done
  1.1060 +  IFS="$ac_save_ifs"
  1.1061 +  test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
  1.1062 +fi
  1.1063 +fi
  1.1064 +OBJDUMP="$ac_cv_prog_OBJDUMP"
  1.1065 +if test -n "$OBJDUMP"; then
  1.1066 +  echo "$ac_t""$OBJDUMP" 1>&6
  1.1067 +else
  1.1068 +  echo "$ac_t""no" 1>&6
  1.1069 +fi
  1.1070 +
  1.1071 +else
  1.1072 +  OBJDUMP="false"
  1.1073 +fi
  1.1074 +fi
  1.1075 +
  1.1076 +  ;;
  1.1077  
  1.1078  esac
  1.1079  
  1.1080 @@ -1582,7 +1724,7 @@
  1.1081  LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
  1.1082  DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
  1.1083  ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  1.1084 -$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
  1.1085 +$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
  1.1086  || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  1.1087  
  1.1088  # Reload cache, that may have been modified by ltconfig
  1.1089 @@ -1605,6 +1747,255 @@
  1.1090  # clobbered by the next message.
  1.1091  exec 5>>./config.log
  1.1092  
  1.1093 +echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  1.1094 +echo "configure:1752: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1.1095 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  1.1096 +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  1.1097 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1098 +else
  1.1099 +  cat > conftestmake <<\EOF
  1.1100 +all:
  1.1101 +	@echo 'ac_maketemp="${MAKE}"'
  1.1102 +EOF
  1.1103 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1.1104 +eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  1.1105 +if test -n "$ac_maketemp"; then
  1.1106 +  eval ac_cv_prog_make_${ac_make}_set=yes
  1.1107 +else
  1.1108 +  eval ac_cv_prog_make_${ac_make}_set=no
  1.1109 +fi
  1.1110 +rm -f conftestmake
  1.1111 +fi
  1.1112 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1.1113 +  echo "$ac_t""yes" 1>&6
  1.1114 +  SET_MAKE=
  1.1115 +else
  1.1116 +  echo "$ac_t""no" 1>&6
  1.1117 +  SET_MAKE="MAKE=${MAKE-make}"
  1.1118 +fi
  1.1119 +
  1.1120 +# Extract the first word of "gcc", so it can be a program name with args.
  1.1121 +set dummy gcc; ac_word=$2
  1.1122 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1.1123 +echo "configure:1781: checking for $ac_word" >&5
  1.1124 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1.1125 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1126 +else
  1.1127 +  if test -n "$CC"; then
  1.1128 +  ac_cv_prog_CC="$CC" # Let the user override the test.
  1.1129 +else
  1.1130 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  1.1131 +  ac_dummy="$PATH"
  1.1132 +  for ac_dir in $ac_dummy; do
  1.1133 +    test -z "$ac_dir" && ac_dir=.
  1.1134 +    if test -f $ac_dir/$ac_word; then
  1.1135 +      ac_cv_prog_CC="gcc"
  1.1136 +      break
  1.1137 +    fi
  1.1138 +  done
  1.1139 +  IFS="$ac_save_ifs"
  1.1140 +fi
  1.1141 +fi
  1.1142 +CC="$ac_cv_prog_CC"
  1.1143 +if test -n "$CC"; then
  1.1144 +  echo "$ac_t""$CC" 1>&6
  1.1145 +else
  1.1146 +  echo "$ac_t""no" 1>&6
  1.1147 +fi
  1.1148 +
  1.1149 +if test -z "$CC"; then
  1.1150 +  # Extract the first word of "cc", so it can be a program name with args.
  1.1151 +set dummy cc; ac_word=$2
  1.1152 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1.1153 +echo "configure:1811: checking for $ac_word" >&5
  1.1154 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1.1155 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1156 +else
  1.1157 +  if test -n "$CC"; then
  1.1158 +  ac_cv_prog_CC="$CC" # Let the user override the test.
  1.1159 +else
  1.1160 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  1.1161 +  ac_prog_rejected=no
  1.1162 +  ac_dummy="$PATH"
  1.1163 +  for ac_dir in $ac_dummy; do
  1.1164 +    test -z "$ac_dir" && ac_dir=.
  1.1165 +    if test -f $ac_dir/$ac_word; then
  1.1166 +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1.1167 +        ac_prog_rejected=yes
  1.1168 +	continue
  1.1169 +      fi
  1.1170 +      ac_cv_prog_CC="cc"
  1.1171 +      break
  1.1172 +    fi
  1.1173 +  done
  1.1174 +  IFS="$ac_save_ifs"
  1.1175 +if test $ac_prog_rejected = yes; then
  1.1176 +  # We found a bogon in the path, so make sure we never use it.
  1.1177 +  set dummy $ac_cv_prog_CC
  1.1178 +  shift
  1.1179 +  if test $# -gt 0; then
  1.1180 +    # We chose a different compiler from the bogus one.
  1.1181 +    # However, it has the same basename, so the bogon will be chosen
  1.1182 +    # first if we set CC to just the basename; use the full file name.
  1.1183 +    shift
  1.1184 +    set dummy "$ac_dir/$ac_word" "$@"
  1.1185 +    shift
  1.1186 +    ac_cv_prog_CC="$@"
  1.1187 +  fi
  1.1188 +fi
  1.1189 +fi
  1.1190 +fi
  1.1191 +CC="$ac_cv_prog_CC"
  1.1192 +if test -n "$CC"; then
  1.1193 +  echo "$ac_t""$CC" 1>&6
  1.1194 +else
  1.1195 +  echo "$ac_t""no" 1>&6
  1.1196 +fi
  1.1197 +
  1.1198 +  if test -z "$CC"; then
  1.1199 +    case "`uname -s`" in
  1.1200 +    *win32* | *WIN32*)
  1.1201 +      # Extract the first word of "cl", so it can be a program name with args.
  1.1202 +set dummy cl; ac_word=$2
  1.1203 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1.1204 +echo "configure:1862: checking for $ac_word" >&5
  1.1205 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1.1206 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1207 +else
  1.1208 +  if test -n "$CC"; then
  1.1209 +  ac_cv_prog_CC="$CC" # Let the user override the test.
  1.1210 +else
  1.1211 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  1.1212 +  ac_dummy="$PATH"
  1.1213 +  for ac_dir in $ac_dummy; do
  1.1214 +    test -z "$ac_dir" && ac_dir=.
  1.1215 +    if test -f $ac_dir/$ac_word; then
  1.1216 +      ac_cv_prog_CC="cl"
  1.1217 +      break
  1.1218 +    fi
  1.1219 +  done
  1.1220 +  IFS="$ac_save_ifs"
  1.1221 +fi
  1.1222 +fi
  1.1223 +CC="$ac_cv_prog_CC"
  1.1224 +if test -n "$CC"; then
  1.1225 +  echo "$ac_t""$CC" 1>&6
  1.1226 +else
  1.1227 +  echo "$ac_t""no" 1>&6
  1.1228 +fi
  1.1229 + ;;
  1.1230 +    esac
  1.1231 +  fi
  1.1232 +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1.1233 +fi
  1.1234 +
  1.1235 +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1.1236 +echo "configure:1894: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1.1237 +
  1.1238 +ac_ext=c
  1.1239 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1.1240 +ac_cpp='$CPP $CPPFLAGS'
  1.1241 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1.1242 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1.1243 +cross_compiling=$ac_cv_prog_cc_cross
  1.1244 +
  1.1245 +cat > conftest.$ac_ext << EOF
  1.1246 +
  1.1247 +#line 1905 "configure"
  1.1248 +#include "confdefs.h"
  1.1249 +
  1.1250 +main(){return(0);}
  1.1251 +EOF
  1.1252 +if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.1253 +  ac_cv_prog_cc_works=yes
  1.1254 +  # If we can't run a trivial program, we are probably using a cross compiler.
  1.1255 +  if (./conftest; exit) 2>/dev/null; then
  1.1256 +    ac_cv_prog_cc_cross=no
  1.1257 +  else
  1.1258 +    ac_cv_prog_cc_cross=yes
  1.1259 +  fi
  1.1260 +else
  1.1261 +  echo "configure: failed program was:" >&5
  1.1262 +  cat conftest.$ac_ext >&5
  1.1263 +  ac_cv_prog_cc_works=no
  1.1264 +fi
  1.1265 +rm -fr conftest*
  1.1266 +ac_ext=c
  1.1267 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1.1268 +ac_cpp='$CPP $CPPFLAGS'
  1.1269 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1.1270 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1.1271 +cross_compiling=$ac_cv_prog_cc_cross
  1.1272 +
  1.1273 +echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1.1274 +if test $ac_cv_prog_cc_works = no; then
  1.1275 +  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1.1276 +fi
  1.1277 +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1.1278 +echo "configure:1936: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1.1279 +echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1.1280 +cross_compiling=$ac_cv_prog_cc_cross
  1.1281 +
  1.1282 +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1.1283 +echo "configure:1941: checking whether we are using GNU C" >&5
  1.1284 +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1.1285 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1286 +else
  1.1287 +  cat > conftest.c <<EOF
  1.1288 +#ifdef __GNUC__
  1.1289 +  yes;
  1.1290 +#endif
  1.1291 +EOF
  1.1292 +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1.1293 +  ac_cv_prog_gcc=yes
  1.1294 +else
  1.1295 +  ac_cv_prog_gcc=no
  1.1296 +fi
  1.1297 +fi
  1.1298 +
  1.1299 +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1.1300 +
  1.1301 +if test $ac_cv_prog_gcc = yes; then
  1.1302 +  GCC=yes
  1.1303 +else
  1.1304 +  GCC=
  1.1305 +fi
  1.1306 +
  1.1307 +ac_test_CFLAGS="${CFLAGS+set}"
  1.1308 +ac_save_CFLAGS="$CFLAGS"
  1.1309 +CFLAGS=
  1.1310 +echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1.1311 +echo "configure:1969: checking whether ${CC-cc} accepts -g" >&5
  1.1312 +if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1.1313 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1314 +else
  1.1315 +  echo 'void f(){}' > conftest.c
  1.1316 +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1.1317 +  ac_cv_prog_cc_g=yes
  1.1318 +else
  1.1319 +  ac_cv_prog_cc_g=no
  1.1320 +fi
  1.1321 +rm -f conftest*
  1.1322 +
  1.1323 +fi
  1.1324 +
  1.1325 +echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1.1326 +if test "$ac_test_CFLAGS" = set; then
  1.1327 +  CFLAGS="$ac_save_CFLAGS"
  1.1328 +elif test $ac_cv_prog_cc_g = yes; then
  1.1329 +  if test "$GCC" = yes; then
  1.1330 +    CFLAGS="-g -O2"
  1.1331 +  else
  1.1332 +    CFLAGS="-g"
  1.1333 +  fi
  1.1334 +else
  1.1335 +  if test "$GCC" = yes; then
  1.1336 +    CFLAGS="-O2"
  1.1337 +  else
  1.1338 +    CFLAGS=
  1.1339 +  fi
  1.1340 +fi
  1.1341 +
  1.1342  # Find a good install program.  We prefer a C program (faster),
  1.1343  # so one script is as good as another.  But avoid the broken or
  1.1344  # incompatible versions:
  1.1345 @@ -1617,7 +2008,7 @@
  1.1346  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1.1347  # ./install, which can be erroneously created by make from ./install.sh.
  1.1348  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1.1349 -echo "configure:1621: checking for a BSD compatible install" >&5
  1.1350 +echo "configure:2012: checking for a BSD compatible install" >&5
  1.1351  if test -z "$INSTALL"; then
  1.1352  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1.1353    echo $ac_n "(cached) $ac_c" 1>&6
  1.1354 @@ -1670,28 +2061,15 @@
  1.1355  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1.1356  
  1.1357  
  1.1358 -echo $ac_n "checking target system type""... $ac_c" 1>&6
  1.1359 -echo "configure:1675: checking target system type" >&5
  1.1360 -
  1.1361 -target_alias=$target
  1.1362 -case "$target_alias" in
  1.1363 -NONE)
  1.1364 -  case $nonopt in
  1.1365 -  NONE) target_alias=$host_alias ;;
  1.1366 -  *) target_alias=$nonopt ;;
  1.1367 -  esac ;;
  1.1368 -esac
  1.1369 -
  1.1370 -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  1.1371 -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1.1372 -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1.1373 -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1.1374 -echo "$ac_t""$target" 1>&6
  1.1375 -
  1.1376  case "$target" in
  1.1377      alpha*-*-linux*)
  1.1378          CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"
  1.1379          ;;
  1.1380 +    *-*-cygwin* | *-*-mingw32*)
  1.1381 +        if test "$build" != "$target"; then # cross-compiling
  1.1382 +            ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc
  1.1383 +        fi
  1.1384 +        ;;
  1.1385  esac
  1.1386  
  1.1387  SDL_VERSION=1.1.3
  1.1388 @@ -1736,7 +2114,7 @@
  1.1389    # Extract the first word of "sdl-config", so it can be a program name with args.
  1.1390  set dummy sdl-config; ac_word=$2
  1.1391  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1.1392 -echo "configure:1740: checking for $ac_word" >&5
  1.1393 +echo "configure:2118: checking for $ac_word" >&5
  1.1394  if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
  1.1395    echo $ac_n "(cached) $ac_c" 1>&6
  1.1396  else
  1.1397 @@ -1771,7 +2149,7 @@
  1.1398  
  1.1399    min_sdl_version=$SDL_VERSION
  1.1400    echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6
  1.1401 -echo "configure:1775: checking for SDL - version >= $min_sdl_version" >&5
  1.1402 +echo "configure:2153: checking for SDL - version >= $min_sdl_version" >&5
  1.1403    no_sdl=""
  1.1404    if test "$SDL_CONFIG" = "no" ; then
  1.1405      no_sdl=yes
  1.1406 @@ -1795,13 +2173,13 @@
  1.1407    echo $ac_n "cross compiling; assumed OK... $ac_c"
  1.1408  else
  1.1409    cat > conftest.$ac_ext <<EOF
  1.1410 -#line 1799 "configure"
  1.1411 +#line 2177 "configure"
  1.1412  #include "confdefs.h"
  1.1413  
  1.1414  #include <stdio.h>
  1.1415  #include <stdlib.h>
  1.1416  #include <string.h>
  1.1417 -#include <SDL/SDL.h>
  1.1418 +#include "SDL.h"
  1.1419  
  1.1420  char*
  1.1421  my_strdup (char *str)
  1.1422 @@ -1810,7 +2188,7 @@
  1.1423    
  1.1424    if (str)
  1.1425      {
  1.1426 -      new_str = malloc ((strlen (str) + 1) * sizeof(char));
  1.1427 +      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
  1.1428        strcpy (new_str, str);
  1.1429      }
  1.1430    else
  1.1431 @@ -1819,12 +2197,15 @@
  1.1432    return new_str;
  1.1433  }
  1.1434  
  1.1435 -int main ()
  1.1436 +int main (int argc, char *argv[])
  1.1437  {
  1.1438    int major, minor, micro;
  1.1439    char *tmp_version;
  1.1440  
  1.1441 +  /* This hangs on some systems (?)
  1.1442    system ("touch conf.sdltest");
  1.1443 +  */
  1.1444 +  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
  1.1445  
  1.1446    /* HP/UX 9 (%@#!) writes to sscanf strings */
  1.1447    tmp_version = my_strdup("$min_sdl_version");
  1.1448 @@ -1853,7 +2234,7 @@
  1.1449  
  1.1450  
  1.1451  EOF
  1.1452 -if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1.1453 +if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1.1454  then
  1.1455    :
  1.1456  else
  1.1457 @@ -1887,17 +2268,17 @@
  1.1458            CFLAGS="$CFLAGS $SDL_CFLAGS"
  1.1459            LIBS="$LIBS $SDL_LIBS"
  1.1460            cat > conftest.$ac_ext <<EOF
  1.1461 -#line 1891 "configure"
  1.1462 +#line 2272 "configure"
  1.1463  #include "confdefs.h"
  1.1464  
  1.1465  #include <stdio.h>
  1.1466 -#include <SDL/SDL.h>
  1.1467 +#include "SDL.h"
  1.1468  
  1.1469  int main() {
  1.1470   return 0; 
  1.1471  ; return 0; }
  1.1472  EOF
  1.1473 -if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.1474 +if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.1475    rm -rf conftest*
  1.1476     echo "*** The test program compiled, but did not run. This usually means"
  1.1477            echo "*** that the run-time linker is not finding SDL or finding the wrong"
  1.1478 @@ -1933,6 +2314,7 @@
  1.1479  
  1.1480  CFLAGS="$CFLAGS $SDL_CFLAGS"
  1.1481  IMG_LIBS="$IMG_LIBS $SDL_LIBS"
  1.1482 +LIBS="$SDL_LIBS $LIBS"
  1.1483  
  1.1484  # Check whether --enable-bmp or --disable-bmp was given.
  1.1485  if test "${enable_bmp+set}" = set; then
  1.1486 @@ -1966,7 +2348,7 @@
  1.1487  
  1.1488  if test x$enable_jpg = xyes; then
  1.1489      echo $ac_n "checking for jpeg_CreateDecompress in -ljpeg""... $ac_c" 1>&6
  1.1490 -echo "configure:1970: checking for jpeg_CreateDecompress in -ljpeg" >&5
  1.1491 +echo "configure:2352: checking for jpeg_CreateDecompress in -ljpeg" >&5
  1.1492  ac_lib_var=`echo jpeg'_'jpeg_CreateDecompress | sed 'y%./+-%__p_%'`
  1.1493  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1.1494    echo $ac_n "(cached) $ac_c" 1>&6
  1.1495 @@ -1974,7 +2356,7 @@
  1.1496    ac_save_LIBS="$LIBS"
  1.1497  LIBS="-ljpeg  $LIBS"
  1.1498  cat > conftest.$ac_ext <<EOF
  1.1499 -#line 1978 "configure"
  1.1500 +#line 2360 "configure"
  1.1501  #include "confdefs.h"
  1.1502  /* Override any gcc2 internal prototype to avoid an error.  */
  1.1503  /* We use char because int might match the return type of a gcc2
  1.1504 @@ -1985,7 +2367,7 @@
  1.1505  jpeg_CreateDecompress()
  1.1506  ; return 0; }
  1.1507  EOF
  1.1508 -if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.1509 +if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.1510    rm -rf conftest*
  1.1511    eval "ac_cv_lib_$ac_lib_var=yes"
  1.1512  else
  1.1513 @@ -2035,7 +2417,7 @@
  1.1514  
  1.1515  if test x$enable_png = xyes; then
  1.1516      echo $ac_n "checking for png_create_read_struct in -lpng""... $ac_c" 1>&6
  1.1517 -echo "configure:2039: checking for png_create_read_struct in -lpng" >&5
  1.1518 +echo "configure:2421: checking for png_create_read_struct in -lpng" >&5
  1.1519  ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'`
  1.1520  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1.1521    echo $ac_n "(cached) $ac_c" 1>&6
  1.1522 @@ -2043,7 +2425,7 @@
  1.1523    ac_save_LIBS="$LIBS"
  1.1524  LIBS="-lpng -lz $LIBS"
  1.1525  cat > conftest.$ac_ext <<EOF
  1.1526 -#line 2047 "configure"
  1.1527 +#line 2429 "configure"
  1.1528  #include "confdefs.h"
  1.1529  /* Override any gcc2 internal prototype to avoid an error.  */
  1.1530  /* We use char because int might match the return type of a gcc2
  1.1531 @@ -2054,7 +2436,7 @@
  1.1532  png_create_read_struct()
  1.1533  ; return 0; }
  1.1534  EOF
  1.1535 -if { (eval echo configure:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.1536 +if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.1537    rm -rf conftest*
  1.1538    eval "ac_cv_lib_$ac_lib_var=yes"
  1.1539  else
  1.1540 @@ -2080,7 +2462,7 @@
  1.1541  " 1>&2
  1.1542      fi
  1.1543      echo $ac_n "checking for uncompress in -lz""... $ac_c" 1>&6
  1.1544 -echo "configure:2084: checking for uncompress in -lz" >&5
  1.1545 +echo "configure:2466: checking for uncompress in -lz" >&5
  1.1546  ac_lib_var=`echo z'_'uncompress | sed 'y%./+-%__p_%'`
  1.1547  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1.1548    echo $ac_n "(cached) $ac_c" 1>&6
  1.1549 @@ -2088,7 +2470,7 @@
  1.1550    ac_save_LIBS="$LIBS"
  1.1551  LIBS="-lz  $LIBS"
  1.1552  cat > conftest.$ac_ext <<EOF
  1.1553 -#line 2092 "configure"
  1.1554 +#line 2474 "configure"
  1.1555  #include "confdefs.h"
  1.1556  /* Override any gcc2 internal prototype to avoid an error.  */
  1.1557  /* We use char because int might match the return type of a gcc2
  1.1558 @@ -2099,7 +2481,7 @@
  1.1559  uncompress()
  1.1560  ; return 0; }
  1.1561  EOF
  1.1562 -if { (eval echo configure:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.1563 +if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.1564    rm -rf conftest*
  1.1565    eval "ac_cv_lib_$ac_lib_var=yes"
  1.1566  else
  1.1567 @@ -2163,7 +2545,7 @@
  1.1568  
  1.1569  if test x$enable_tif = xyes; then
  1.1570      echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
  1.1571 -echo "configure:2167: checking for TIFFClientOpen in -ltiff" >&5
  1.1572 +echo "configure:2549: checking for TIFFClientOpen in -ltiff" >&5
  1.1573  ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
  1.1574  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1.1575    echo $ac_n "(cached) $ac_c" 1>&6
  1.1576 @@ -2171,7 +2553,7 @@
  1.1577    ac_save_LIBS="$LIBS"
  1.1578  LIBS="-ltiff  $LIBS"
  1.1579  cat > conftest.$ac_ext <<EOF
  1.1580 -#line 2175 "configure"
  1.1581 +#line 2557 "configure"
  1.1582  #include "confdefs.h"
  1.1583  /* Override any gcc2 internal prototype to avoid an error.  */
  1.1584  /* We use char because int might match the return type of a gcc2
  1.1585 @@ -2182,7 +2564,7 @@
  1.1586  TIFFClientOpen()
  1.1587  ; return 0; }
  1.1588  EOF
  1.1589 -if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.1590 +if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.1591    rm -rf conftest*
  1.1592    eval "ac_cv_lib_$ac_lib_var=yes"
  1.1593  else
  1.1594 @@ -2382,27 +2764,28 @@
  1.1595  s%@AUTOHEADER@%$AUTOHEADER%g
  1.1596  s%@MAKEINFO@%$MAKEINFO%g
  1.1597  s%@SET_MAKE@%$SET_MAKE%g
  1.1598 -s%@CC@%$CC%g
  1.1599  s%@host@%$host%g
  1.1600  s%@host_alias@%$host_alias%g
  1.1601  s%@host_cpu@%$host_cpu%g
  1.1602  s%@host_vendor@%$host_vendor%g
  1.1603  s%@host_os@%$host_os%g
  1.1604 +s%@target@%$target%g
  1.1605 +s%@target_alias@%$target_alias%g
  1.1606 +s%@target_cpu@%$target_cpu%g
  1.1607 +s%@target_vendor@%$target_vendor%g
  1.1608 +s%@target_os@%$target_os%g
  1.1609  s%@build@%$build%g
  1.1610  s%@build_alias@%$build_alias%g
  1.1611  s%@build_cpu@%$build_cpu%g
  1.1612  s%@build_vendor@%$build_vendor%g
  1.1613  s%@build_os@%$build_os%g
  1.1614 -s%@LD@%$LD%g
  1.1615 -s%@NM@%$NM%g
  1.1616 +s%@RANLIB@%$RANLIB%g
  1.1617 +s%@CC@%$CC%g
  1.1618  s%@LN_S@%$LN_S%g
  1.1619 -s%@RANLIB@%$RANLIB%g
  1.1620 +s%@DLLTOOL@%$DLLTOOL%g
  1.1621 +s%@AS@%$AS%g
  1.1622 +s%@OBJDUMP@%$OBJDUMP%g
  1.1623  s%@LIBTOOL@%$LIBTOOL%g
  1.1624 -s%@target@%$target%g
  1.1625 -s%@target_alias@%$target_alias%g
  1.1626 -s%@target_cpu@%$target_cpu%g
  1.1627 -s%@target_vendor@%$target_vendor%g
  1.1628 -s%@target_os@%$target_os%g
  1.1629  s%@SDL_CONFIG@%$SDL_CONFIG%g
  1.1630  s%@SDL_CFLAGS@%$SDL_CFLAGS%g
  1.1631  s%@SDL_LIBS@%$SDL_LIBS%g